@gridsuite/commons-ui 0.107.0 → 0.108.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/dialogs/elementSaveDialog/ElementSaveDialog.js +10 -10
- package/dist/components/directoryItemSelector/DirectoryItemSelector.js +1 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.d.ts +13 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +69 -0
- package/dist/components/dnd-table/dnd-table-bottom-left-buttons.d.ts +17 -0
- package/dist/components/dnd-table/dnd-table-bottom-left-buttons.js +48 -0
- package/dist/components/dnd-table/dnd-table-bottom-right-buttons.d.ts +17 -0
- package/dist/components/dnd-table/dnd-table-bottom-right-buttons.js +104 -0
- package/dist/components/dnd-table/dnd-table.d.ts +28 -0
- package/dist/components/dnd-table/dnd-table.js +394 -0
- package/dist/components/dnd-table/dnd-table.type.d.ts +51 -0
- package/dist/components/dnd-table/dnd-table.type.js +16 -0
- package/dist/components/dnd-table/index.d.ts +11 -0
- package/dist/components/dnd-table/index.js +14 -0
- package/dist/components/filter/HeaderFilterForm.js +4 -4
- package/dist/components/filter/expert/expertFilterConstants.d.ts +15 -0
- package/dist/components/filter/expert/expertFilterConstants.js +28 -0
- package/dist/components/filter/expert/expertFilterUtils.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +57 -1
- package/dist/components/inputs/index.js +6 -0
- package/dist/components/inputs/reactHookForm/chip-items-input.d.ts +13 -0
- package/dist/components/inputs/reactHookForm/chip-items-input.js +129 -0
- package/dist/components/inputs/reactHookForm/index.d.ts +2 -0
- package/dist/components/inputs/reactHookForm/index.js +6 -0
- package/dist/components/inputs/reactHookForm/tableInputs/index.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/tableInputs/index.js +6 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-numerical-input.d.ts +12 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-numerical-input.js +110 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-text-input.d.ts +8 -0
- package/dist/components/inputs/reactHookForm/tableInputs/table-text-input.js +43 -0
- package/dist/components/inputs/reactQueryBuilder/ValueEditor.js +4 -2
- package/dist/components/parameters/common/ProviderParam.js +6 -6
- package/dist/components/parameters/common/constant.d.ts +8 -0
- package/dist/components/parameters/common/constant.js +12 -1
- package/dist/components/parameters/common/index.js +3 -1
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +7 -7
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +6 -6
- package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +8 -8
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +11 -10
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +7 -7
- package/dist/components/parameters/common/widget/parameter-float.js +6 -6
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +11 -10
- package/dist/components/parameters/common/widget/parameter-line-slider.js +6 -6
- package/dist/components/parameters/index.d.ts +1 -0
- package/dist/components/parameters/index.js +39 -1
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameter-field.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +6 -6
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +3 -3
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +2 -1
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +6 -6
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +7 -7
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +3 -3
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +2 -2
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +12 -11
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +5 -5
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +3 -3
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +6 -6
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +2 -2
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +11 -10
- package/dist/components/parameters/voltage-init/constants.d.ts +39 -0
- package/dist/components/parameters/voltage-init/constants.js +65 -0
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.d.ts +7 -0
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +119 -0
- package/dist/components/parameters/voltage-init/general-parameters.d.ts +4 -0
- package/dist/components/parameters/voltage-init/general-parameters.js +112 -0
- package/dist/components/parameters/voltage-init/index.d.ts +10 -0
- package/dist/components/parameters/voltage-init/index.js +38 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.d.ts +32 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +218 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.d.ts +4 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +220 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.d.ts +2 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +97 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.d.ts +30 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +150 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.d.ts +8 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +152 -0
- package/dist/components/parameters/voltage-init/voltage-init.type.d.ts +33 -0
- package/dist/components/parameters/voltage-init/voltage-init.type.js +8 -0
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.d.ts +7 -0
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +188 -0
- package/dist/components/treeViewFinder/TreeViewFinder.d.ts +2 -0
- package/dist/index.js +69 -2
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +6 -2
- package/dist/services/study.d.ts +2 -0
- package/dist/services/study.js +15 -1
- package/dist/services/voltage-init.d.ts +4 -0
- package/dist/services/voltage-init.js +14 -0
- package/dist/translations/en/dndTableEn.d.ts +16 -0
- package/dist/translations/en/dndTableEn.js +13 -0
- package/dist/translations/en/filterExpertEn.d.ts +3 -0
- package/dist/translations/en/filterExpertEn.js +4 -1
- package/dist/translations/en/index.d.ts +1 -0
- package/dist/translations/en/index.js +2 -0
- package/dist/translations/en/parameters.d.ts +30 -0
- package/dist/translations/en/parameters.js +31 -1
- package/dist/translations/fr/dndTableFr.d.ts +16 -0
- package/dist/translations/fr/dndTableFr.js +13 -0
- package/dist/translations/fr/filterExpertFr.d.ts +3 -0
- package/dist/translations/fr/filterExpertFr.js +4 -1
- package/dist/translations/fr/index.d.ts +1 -0
- package/dist/translations/fr/index.js +2 -0
- package/dist/translations/fr/parameters.d.ts +31 -0
- package/dist/translations/fr/parameters.js +32 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/types/fieldType.d.ts +3 -0
- package/dist/utils/types/fieldType.js +3 -0
- package/dist/utils/validation-functions.d.ts +8 -0
- package/dist/utils/validation-functions.js +23 -0
- package/package.json +1 -1
|
@@ -19,13 +19,14 @@ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
|
19
19
|
import "@mui/icons-material";
|
|
20
20
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
21
21
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
22
|
+
import * as yup from "yup";
|
|
23
|
+
import "../../overflowableText/OverflowableText.js";
|
|
22
24
|
import { DESCRIPTION_INPUT, NAME } from "../../inputs/reactHookForm/DirectoryItemsInput.js";
|
|
23
25
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
24
26
|
import "../../customAGGrid/customAggrid.js";
|
|
25
27
|
import "ag-grid-community";
|
|
26
28
|
import "react-papaparse";
|
|
27
29
|
import "react-csv-downloader";
|
|
28
|
-
import * as yup from "yup";
|
|
29
30
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
30
31
|
import "../../../utils/conversionUtils.js";
|
|
31
32
|
import "../../../utils/yupConfig.js";
|
package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js
CHANGED
|
@@ -3,12 +3,16 @@ import { Grid } from "@mui/material";
|
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { INIT_NAD_WITH_GEO_DATA, NetworkVisualizationTabValues, PARAM_INIT_NAD_WITH_GEO_DATA } from "./constants.js";
|
|
5
5
|
import { parametersStyles } from "../parameters-style.js";
|
|
6
|
-
import "@mui/icons-material";
|
|
7
6
|
import "react";
|
|
8
7
|
import "react-hook-form";
|
|
8
|
+
import "../../../utils/types/equipmentType.js";
|
|
9
|
+
import "localized-countries";
|
|
10
|
+
import "localized-countries/data/fr";
|
|
11
|
+
import "localized-countries/data/en";
|
|
12
|
+
import "notistack";
|
|
9
13
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
14
|
+
import "@mui/icons-material";
|
|
10
15
|
import "yup";
|
|
11
|
-
import "notistack";
|
|
12
16
|
import "../../overflowableText/OverflowableText.js";
|
|
13
17
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
14
18
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
@@ -18,11 +22,7 @@ import "react-papaparse";
|
|
|
18
22
|
import "react-csv-downloader";
|
|
19
23
|
import { SwitchInput } from "../../inputs/reactHookForm/booleans/SwitchInput.js";
|
|
20
24
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
21
|
-
import "localized-countries";
|
|
22
|
-
import "localized-countries/data/fr";
|
|
23
|
-
import "localized-countries/data/en";
|
|
24
25
|
import "../../../utils/conversionUtils.js";
|
|
25
|
-
import "../../../utils/types/equipmentType.js";
|
|
26
26
|
import "../../../utils/yupConfig.js";
|
|
27
27
|
import "@react-querybuilder/material";
|
|
28
28
|
import "../../filter/expert/expertFilterConstants.js";
|
|
@@ -2,25 +2,25 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Grid, LinearProgress, Tabs, Tab } from "@mui/material";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import "@mui/icons-material";
|
|
6
5
|
import "react-hook-form";
|
|
6
|
+
import "../../../utils/types/equipmentType.js";
|
|
7
|
+
import { getAvailableComponentLibraries } from "../../../services/study.js";
|
|
8
|
+
import "localized-countries";
|
|
9
|
+
import "localized-countries/data/fr";
|
|
10
|
+
import "localized-countries/data/en";
|
|
11
|
+
import "notistack";
|
|
7
12
|
import { CustomFormProvider } from "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
13
|
+
import "@mui/icons-material";
|
|
8
14
|
import "yup";
|
|
9
|
-
import "notistack";
|
|
10
15
|
import "../../overflowableText/OverflowableText.js";
|
|
11
16
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
12
|
-
import { getAvailableComponentLibraries } from "../../../services/study.js";
|
|
13
17
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
14
18
|
import "../../customAGGrid/customAggrid.js";
|
|
15
19
|
import "ag-grid-community";
|
|
16
20
|
import "react-papaparse";
|
|
17
21
|
import "react-csv-downloader";
|
|
18
22
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
19
|
-
import "localized-countries";
|
|
20
|
-
import "localized-countries/data/fr";
|
|
21
|
-
import "localized-countries/data/en";
|
|
22
23
|
import "../../../utils/conversionUtils.js";
|
|
23
|
-
import "../../../utils/types/equipmentType.js";
|
|
24
24
|
import "../../../utils/yupConfig.js";
|
|
25
25
|
import "@react-querybuilder/material";
|
|
26
26
|
import "../../filter/expert/expertFilterConstants.js";
|
|
@@ -16,6 +16,9 @@ import "../../../utils/yupConfig.js";
|
|
|
16
16
|
import { NetworkVisualizationParametersForm } from "./network-visualizations-form.js";
|
|
17
17
|
import { useNetworkVisualizationParametersForm } from "./use-network-visualizations-parameters-form.js";
|
|
18
18
|
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
19
|
+
import "localized-countries";
|
|
20
|
+
import "localized-countries/data/fr";
|
|
21
|
+
import "localized-countries/data/en";
|
|
19
22
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
20
23
|
import "yup";
|
|
21
24
|
import "../../overflowableText/OverflowableText.js";
|
|
@@ -25,9 +28,6 @@ import "ag-grid-community";
|
|
|
25
28
|
import "react-papaparse";
|
|
26
29
|
import "react-csv-downloader";
|
|
27
30
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
|
-
import "localized-countries";
|
|
29
|
-
import "localized-countries/data/fr";
|
|
30
|
-
import "localized-countries/data/en";
|
|
31
31
|
import "@react-querybuilder/material";
|
|
32
32
|
import "../../filter/expert/expertFilterConstants.js";
|
|
33
33
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -8,9 +8,10 @@ import "localized-countries";
|
|
|
8
8
|
import "localized-countries/data/fr";
|
|
9
9
|
import "localized-countries/data/en";
|
|
10
10
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
11
|
-
import "@mui/icons-material";
|
|
12
11
|
import "react-hook-form";
|
|
13
12
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
13
|
+
import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
14
|
+
import "@mui/icons-material";
|
|
14
15
|
import "yup";
|
|
15
16
|
import "../../overflowableText/OverflowableText.js";
|
|
16
17
|
import { DirectoryItemSelector } from "../../directoryItemSelector/DirectoryItemSelector.js";
|
|
@@ -23,7 +24,6 @@ import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
|
23
24
|
import "../../../utils/conversionUtils.js";
|
|
24
25
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
25
26
|
import "../../../utils/yupConfig.js";
|
|
26
|
-
import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
27
27
|
import "@react-querybuilder/material";
|
|
28
28
|
import "../../filter/expert/expertFilterConstants.js";
|
|
29
29
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -5,26 +5,27 @@ import "../../../utils/yupConfig.js";
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react-intl";
|
|
7
7
|
import "@mui/material";
|
|
8
|
+
import "../../../utils/types/equipmentType.js";
|
|
9
|
+
import { updateParameter } from "../../../services/explore.js";
|
|
10
|
+
import { setStudyNetworkVisualizationParameters } from "../../../services/study.js";
|
|
11
|
+
import { getNetworkVisualizationsParameters } from "../../../services/study-config.js";
|
|
12
|
+
import "localized-countries";
|
|
13
|
+
import "localized-countries/data/fr";
|
|
14
|
+
import "localized-countries/data/en";
|
|
15
|
+
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
16
|
+
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
17
|
+
import "@mui/icons-material";
|
|
18
|
+
import * as yup from "yup";
|
|
19
|
+
import "../../overflowableText/OverflowableText.js";
|
|
8
20
|
import { DESCRIPTION_INPUT, NAME } from "../../inputs/reactHookForm/DirectoryItemsInput.js";
|
|
9
21
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
10
22
|
import "../../customAGGrid/customAggrid.js";
|
|
11
23
|
import "ag-grid-community";
|
|
12
24
|
import "react-papaparse";
|
|
13
25
|
import "react-csv-downloader";
|
|
14
|
-
import * as yup from "yup";
|
|
15
|
-
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
16
|
-
import "@mui/icons-material";
|
|
17
26
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
18
|
-
import "localized-countries";
|
|
19
|
-
import "localized-countries/data/fr";
|
|
20
|
-
import "localized-countries/data/en";
|
|
21
27
|
import "../../../utils/conversionUtils.js";
|
|
22
28
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
23
|
-
import "../../../utils/types/equipmentType.js";
|
|
24
|
-
import { updateParameter } from "../../../services/explore.js";
|
|
25
|
-
import { setStudyNetworkVisualizationParameters } from "../../../services/study.js";
|
|
26
|
-
import { getNetworkVisualizationsParameters } from "../../../services/study-config.js";
|
|
27
|
-
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
28
29
|
import "@react-querybuilder/material";
|
|
29
30
|
import "../../filter/expert/expertFilterConstants.js";
|
|
30
31
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -10,9 +10,13 @@ import GridItem from "../../grid/grid-item.js";
|
|
|
10
10
|
import GridSection from "../../grid/grid-section.js";
|
|
11
11
|
import "react-intl";
|
|
12
12
|
import { FieldLabel } from "../../inputs/reactHookForm/utils/FieldLabel.js";
|
|
13
|
+
import "../../../utils/types/equipmentType.js";
|
|
14
|
+
import "localized-countries";
|
|
15
|
+
import "localized-countries/data/fr";
|
|
16
|
+
import "localized-countries/data/en";
|
|
17
|
+
import "notistack";
|
|
13
18
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
14
19
|
import "yup";
|
|
15
|
-
import "notistack";
|
|
16
20
|
import "../../overflowableText/OverflowableText.js";
|
|
17
21
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
18
22
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
@@ -24,12 +28,8 @@ import { CheckboxInput } from "../../inputs/reactHookForm/booleans/CheckboxInput
|
|
|
24
28
|
import { RadioInput } from "../../inputs/reactHookForm/booleans/RadioInput.js";
|
|
25
29
|
import { SwitchInput } from "../../inputs/reactHookForm/booleans/SwitchInput.js";
|
|
26
30
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
27
|
-
import "localized-countries";
|
|
28
|
-
import "localized-countries/data/fr";
|
|
29
|
-
import "localized-countries/data/en";
|
|
30
31
|
import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
|
|
31
32
|
import "../../../utils/conversionUtils.js";
|
|
32
|
-
import "../../../utils/types/equipmentType.js";
|
|
33
33
|
import "../../../utils/yupConfig.js";
|
|
34
34
|
import "@react-querybuilder/material";
|
|
35
35
|
import "../../filter/expert/expertFilterConstants.js";
|
|
@@ -14,6 +14,9 @@ import "../../../utils/conversionUtils.js";
|
|
|
14
14
|
import "../../../utils/types/equipmentType.js";
|
|
15
15
|
import "../../../utils/yupConfig.js";
|
|
16
16
|
import { NameElementEditorForm } from "../common/name-element-editor/name-element-editor-form.js";
|
|
17
|
+
import "localized-countries";
|
|
18
|
+
import "localized-countries/data/fr";
|
|
19
|
+
import "localized-countries/data/en";
|
|
17
20
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
18
21
|
import "yup";
|
|
19
22
|
import "../../overflowableText/OverflowableText.js";
|
|
@@ -23,9 +26,6 @@ import "ag-grid-community";
|
|
|
23
26
|
import "react-papaparse";
|
|
24
27
|
import "react-csv-downloader";
|
|
25
28
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
26
|
-
import "localized-countries";
|
|
27
|
-
import "localized-countries/data/fr";
|
|
28
|
-
import "localized-countries/data/en";
|
|
29
29
|
import "@react-querybuilder/material";
|
|
30
30
|
import "../../filter/expert/expertFilterConstants.js";
|
|
31
31
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Grid, LinearProgress } from "@mui/material";
|
|
3
3
|
import "react-intl";
|
|
4
|
-
import "@mui/icons-material";
|
|
5
4
|
import "react";
|
|
6
5
|
import "react-hook-form";
|
|
6
|
+
import "../../../utils/types/equipmentType.js";
|
|
7
|
+
import "localized-countries";
|
|
8
|
+
import "localized-countries/data/fr";
|
|
9
|
+
import "localized-countries/data/en";
|
|
10
|
+
import "notistack";
|
|
7
11
|
import { CustomFormProvider } from "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
12
|
+
import "@mui/icons-material";
|
|
8
13
|
import "yup";
|
|
9
|
-
import "notistack";
|
|
10
14
|
import "../../overflowableText/OverflowableText.js";
|
|
11
15
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
12
16
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
@@ -15,11 +19,7 @@ import "ag-grid-community";
|
|
|
15
19
|
import "react-papaparse";
|
|
16
20
|
import "react-csv-downloader";
|
|
17
21
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
18
|
-
import "localized-countries";
|
|
19
|
-
import "localized-countries/data/fr";
|
|
20
|
-
import "localized-countries/data/en";
|
|
21
22
|
import "../../../utils/conversionUtils.js";
|
|
22
|
-
import "../../../utils/types/equipmentType.js";
|
|
23
23
|
import "../../../utils/yupConfig.js";
|
|
24
24
|
import "@react-querybuilder/material";
|
|
25
25
|
import "../../filter/expert/expertFilterConstants.js";
|
|
@@ -7,9 +7,10 @@ import "localized-countries";
|
|
|
7
7
|
import "localized-countries/data/fr";
|
|
8
8
|
import "localized-countries/data/en";
|
|
9
9
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
10
|
-
import "@mui/icons-material";
|
|
11
10
|
import "react-hook-form";
|
|
12
11
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
12
|
+
import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
13
|
+
import "@mui/icons-material";
|
|
13
14
|
import "yup";
|
|
14
15
|
import "../../overflowableText/OverflowableText.js";
|
|
15
16
|
import { DirectoryItemSelector } from "../../directoryItemSelector/DirectoryItemSelector.js";
|
|
@@ -22,7 +23,6 @@ import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
|
22
23
|
import "../../../utils/conversionUtils.js";
|
|
23
24
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
24
25
|
import "../../../utils/yupConfig.js";
|
|
25
|
-
import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
26
26
|
import "@react-querybuilder/material";
|
|
27
27
|
import "../../filter/expert/expertFilterConstants.js";
|
|
28
28
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -5,25 +5,26 @@ import "../../../utils/yupConfig.js";
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react-intl";
|
|
7
7
|
import "@mui/material";
|
|
8
|
+
import "../../../utils/types/equipmentType.js";
|
|
9
|
+
import { updateParameter } from "../../../services/explore.js";
|
|
10
|
+
import { setStudyShortCircuitParameters, invalidateStudyShortCircuitStatus } from "../../../services/study.js";
|
|
11
|
+
import "localized-countries";
|
|
12
|
+
import "localized-countries/data/fr";
|
|
13
|
+
import "localized-countries/data/en";
|
|
14
|
+
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
15
|
+
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
16
|
+
import "@mui/icons-material";
|
|
17
|
+
import * as yup from "yup";
|
|
18
|
+
import "../../overflowableText/OverflowableText.js";
|
|
8
19
|
import { DESCRIPTION_INPUT, NAME } from "../../inputs/reactHookForm/DirectoryItemsInput.js";
|
|
9
20
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
10
21
|
import "../../customAGGrid/customAggrid.js";
|
|
11
22
|
import "ag-grid-community";
|
|
12
23
|
import "react-papaparse";
|
|
13
24
|
import "react-csv-downloader";
|
|
14
|
-
import * as yup from "yup";
|
|
15
|
-
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
16
|
-
import "@mui/icons-material";
|
|
17
25
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
18
|
-
import "localized-countries";
|
|
19
|
-
import "localized-countries/data/fr";
|
|
20
|
-
import "localized-countries/data/en";
|
|
21
26
|
import "../../../utils/conversionUtils.js";
|
|
22
27
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
23
|
-
import "../../../utils/types/equipmentType.js";
|
|
24
|
-
import { updateParameter } from "../../../services/explore.js";
|
|
25
|
-
import { setStudyShortCircuitParameters, invalidateStudyShortCircuitStatus } from "../../../services/study.js";
|
|
26
|
-
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
27
28
|
import "@react-querybuilder/material";
|
|
28
29
|
import "../../filter/expert/expertFilterConstants.js";
|
|
29
30
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, 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
|
+
export declare enum VoltageInitTabValues {
|
|
8
|
+
GENERAL = "GENERAL",
|
|
9
|
+
VOLTAGE_LIMITS = "voltageLimits",
|
|
10
|
+
EQUIPMENTS_SELECTION = "equipmentSelection"
|
|
11
|
+
}
|
|
12
|
+
export declare const GENERAL = "GENERAL";
|
|
13
|
+
export declare const GENERAL_APPLY_MODIFICATIONS = "GENERAL_APPLY_MODIFICATIONS";
|
|
14
|
+
export declare const DEFAULT_GENERAL_APPLY_MODIFICATIONS = true;
|
|
15
|
+
export declare const DEFAULT_UPDATE_BUS_VOLTAGE = true;
|
|
16
|
+
export declare const DEFAULT_REACTIVE_SLACKS_THRESHOLD = 500;
|
|
17
|
+
export declare const DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD = 0;
|
|
18
|
+
export declare const REACTIVE_SLACKS_THRESHOLD = "reactiveSlacksThreshold";
|
|
19
|
+
export declare const SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD = "shuntCompensatorActivationThreshold";
|
|
20
|
+
export declare const ID = "id";
|
|
21
|
+
export declare const PRIORITY = "priority";
|
|
22
|
+
export declare const FILTER_ID = "filterId";
|
|
23
|
+
export declare const FILTER_NAME = "filterName";
|
|
24
|
+
export declare const SELECTION_TYPE = "selectionType";
|
|
25
|
+
export declare const UPDATE_BUS_VOLTAGE = "updateBusVoltage";
|
|
26
|
+
export declare const VOLTAGE_LIMITS_MODIFICATION = "voltageLimitsModification";
|
|
27
|
+
export declare const VOLTAGE_LIMITS_DEFAULT = "voltageLimitsDefault";
|
|
28
|
+
export declare const GENERATORS_SELECTION_TYPE = "generatorsSelectionType";
|
|
29
|
+
export declare const VARIABLE_Q_GENERATORS = "variableQGenerators";
|
|
30
|
+
export declare const TRANSFORMERS_SELECTION_TYPE = "twoWindingsTransformersSelectionType";
|
|
31
|
+
export declare const VARIABLE_TRANSFORMERS = "variableTwoWindingsTransformers";
|
|
32
|
+
export declare const VARIABLE_SHUNT_COMPENSATORS = "variableShuntCompensators";
|
|
33
|
+
export declare const SHUNT_COMPENSATORS_SELECTION_TYPE = "shuntCompensatorsSelectionType";
|
|
34
|
+
export declare const RATIO_TAP_CHANGER_POSITION = "ratioTapChangerPosition";
|
|
35
|
+
export declare const RATIO_TAP_CHANGER_TARGET_V = "ratioTapChangerTargetV";
|
|
36
|
+
export declare const LEG_SIDE = "legSide";
|
|
37
|
+
export declare const HIGH_VOLTAGE_LIMIT = "highVoltageLimit";
|
|
38
|
+
export declare const LOW_VOLTAGE_LIMIT = "lowVoltageLimit";
|
|
39
|
+
export declare const FILTERS = "filters";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var VoltageInitTabValues = /* @__PURE__ */ ((VoltageInitTabValues2) => {
|
|
2
|
+
VoltageInitTabValues2["GENERAL"] = "GENERAL";
|
|
3
|
+
VoltageInitTabValues2["VOLTAGE_LIMITS"] = "voltageLimits";
|
|
4
|
+
VoltageInitTabValues2["EQUIPMENTS_SELECTION"] = "equipmentSelection";
|
|
5
|
+
return VoltageInitTabValues2;
|
|
6
|
+
})(VoltageInitTabValues || {});
|
|
7
|
+
const GENERAL = "GENERAL";
|
|
8
|
+
const GENERAL_APPLY_MODIFICATIONS = "GENERAL_APPLY_MODIFICATIONS";
|
|
9
|
+
const DEFAULT_GENERAL_APPLY_MODIFICATIONS = true;
|
|
10
|
+
const DEFAULT_UPDATE_BUS_VOLTAGE = true;
|
|
11
|
+
const DEFAULT_REACTIVE_SLACKS_THRESHOLD = 500;
|
|
12
|
+
const DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD = 0;
|
|
13
|
+
const REACTIVE_SLACKS_THRESHOLD = "reactiveSlacksThreshold";
|
|
14
|
+
const SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD = "shuntCompensatorActivationThreshold";
|
|
15
|
+
const ID = "id";
|
|
16
|
+
const PRIORITY = "priority";
|
|
17
|
+
const FILTER_ID = "filterId";
|
|
18
|
+
const FILTER_NAME = "filterName";
|
|
19
|
+
const SELECTION_TYPE = "selectionType";
|
|
20
|
+
const UPDATE_BUS_VOLTAGE = "updateBusVoltage";
|
|
21
|
+
const VOLTAGE_LIMITS_MODIFICATION = "voltageLimitsModification";
|
|
22
|
+
const VOLTAGE_LIMITS_DEFAULT = "voltageLimitsDefault";
|
|
23
|
+
const GENERATORS_SELECTION_TYPE = "generatorsSelectionType";
|
|
24
|
+
const VARIABLE_Q_GENERATORS = "variableQGenerators";
|
|
25
|
+
const TRANSFORMERS_SELECTION_TYPE = "twoWindingsTransformersSelectionType";
|
|
26
|
+
const VARIABLE_TRANSFORMERS = "variableTwoWindingsTransformers";
|
|
27
|
+
const VARIABLE_SHUNT_COMPENSATORS = "variableShuntCompensators";
|
|
28
|
+
const SHUNT_COMPENSATORS_SELECTION_TYPE = "shuntCompensatorsSelectionType";
|
|
29
|
+
const RATIO_TAP_CHANGER_POSITION = "ratioTapChangerPosition";
|
|
30
|
+
const RATIO_TAP_CHANGER_TARGET_V = "ratioTapChangerTargetV";
|
|
31
|
+
const LEG_SIDE = "legSide";
|
|
32
|
+
const HIGH_VOLTAGE_LIMIT = "highVoltageLimit";
|
|
33
|
+
const LOW_VOLTAGE_LIMIT = "lowVoltageLimit";
|
|
34
|
+
const FILTERS = "filters";
|
|
35
|
+
export {
|
|
36
|
+
DEFAULT_GENERAL_APPLY_MODIFICATIONS,
|
|
37
|
+
DEFAULT_REACTIVE_SLACKS_THRESHOLD,
|
|
38
|
+
DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD,
|
|
39
|
+
DEFAULT_UPDATE_BUS_VOLTAGE,
|
|
40
|
+
FILTERS,
|
|
41
|
+
FILTER_ID,
|
|
42
|
+
FILTER_NAME,
|
|
43
|
+
GENERAL,
|
|
44
|
+
GENERAL_APPLY_MODIFICATIONS,
|
|
45
|
+
GENERATORS_SELECTION_TYPE,
|
|
46
|
+
HIGH_VOLTAGE_LIMIT,
|
|
47
|
+
ID,
|
|
48
|
+
LEG_SIDE,
|
|
49
|
+
LOW_VOLTAGE_LIMIT,
|
|
50
|
+
PRIORITY,
|
|
51
|
+
RATIO_TAP_CHANGER_POSITION,
|
|
52
|
+
RATIO_TAP_CHANGER_TARGET_V,
|
|
53
|
+
REACTIVE_SLACKS_THRESHOLD,
|
|
54
|
+
SELECTION_TYPE,
|
|
55
|
+
SHUNT_COMPENSATORS_SELECTION_TYPE,
|
|
56
|
+
SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD,
|
|
57
|
+
TRANSFORMERS_SELECTION_TYPE,
|
|
58
|
+
UPDATE_BUS_VOLTAGE,
|
|
59
|
+
VARIABLE_Q_GENERATORS,
|
|
60
|
+
VARIABLE_SHUNT_COMPENSATORS,
|
|
61
|
+
VARIABLE_TRANSFORMERS,
|
|
62
|
+
VOLTAGE_LIMITS_DEFAULT,
|
|
63
|
+
VOLTAGE_LIMITS_MODIFICATION,
|
|
64
|
+
VoltageInitTabValues
|
|
65
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023, 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
|
+
export declare function EquipmentSelectionParameters(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Grid, Alert } from "@mui/material";
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-hook-form";
|
|
6
|
+
import { EquipmentType } from "../../../utils/types/equipmentType.js";
|
|
7
|
+
import "localized-countries";
|
|
8
|
+
import "localized-countries/data/fr";
|
|
9
|
+
import "localized-countries/data/en";
|
|
10
|
+
import "notistack";
|
|
11
|
+
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
12
|
+
import "@mui/icons-material";
|
|
13
|
+
import "yup";
|
|
14
|
+
import "../../overflowableText/OverflowableText.js";
|
|
15
|
+
import { ElementType } from "../../../utils/types/elementType.js";
|
|
16
|
+
import "../../treeViewFinder/TreeViewFinder.js";
|
|
17
|
+
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
18
|
+
import "../../customAGGrid/customAggrid.js";
|
|
19
|
+
import "ag-grid-community";
|
|
20
|
+
import "react-papaparse";
|
|
21
|
+
import "react-csv-downloader";
|
|
22
|
+
import { RadioInput } from "../../inputs/reactHookForm/booleans/RadioInput.js";
|
|
23
|
+
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
24
|
+
import "../../../utils/conversionUtils.js";
|
|
25
|
+
import "../../../utils/yupConfig.js";
|
|
26
|
+
import "@react-querybuilder/material";
|
|
27
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
28
|
+
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
29
|
+
import "uuid";
|
|
30
|
+
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
31
|
+
import "react-querybuilder";
|
|
32
|
+
import { GENERATORS_SELECTION_TYPE, VARIABLE_Q_GENERATORS, TRANSFORMERS_SELECTION_TYPE, VARIABLE_TRANSFORMERS, SHUNT_COMPENSATORS_SELECTION_TYPE, VARIABLE_SHUNT_COMPENSATORS } from "./constants.js";
|
|
33
|
+
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
34
|
+
import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
35
|
+
import { ParameterLineDirectoryItemsInput } from "../common/widget/parameter-line-directory-items-input.js";
|
|
36
|
+
import "../common/widget/parameter-line-slider.js";
|
|
37
|
+
import "../common/limitreductions/columns-definitions.js";
|
|
38
|
+
const equipmentsSelectionStyles = {
|
|
39
|
+
alert: (theme) => ({
|
|
40
|
+
display: "flex",
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
marginBottom: theme.spacing(2)
|
|
43
|
+
}),
|
|
44
|
+
choice: (theme) => ({
|
|
45
|
+
marginTop: theme.spacing(4)
|
|
46
|
+
}),
|
|
47
|
+
choiceContainer: {
|
|
48
|
+
paddingLeft: 1
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const initialEquipmentsSelectionType = {
|
|
52
|
+
ALL_EXCEPT: {
|
|
53
|
+
id: "ALL_EXCEPT",
|
|
54
|
+
label: "allExcept"
|
|
55
|
+
},
|
|
56
|
+
NONE_EXCEPT: {
|
|
57
|
+
id: "NONE_EXCEPT",
|
|
58
|
+
label: "noneExcept"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function EquipmentSelectionParameters() {
|
|
62
|
+
return /* @__PURE__ */ jsxs(Grid, { item: true, container: true, direction: "column", children: [
|
|
63
|
+
/* @__PURE__ */ jsx(Alert, { sx: equipmentsSelectionStyles.alert, severity: "info", variant: "outlined", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersEquipmentsSelectionAlert" }) }),
|
|
64
|
+
/* @__PURE__ */ jsx(Grid, { item: true, container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
|
|
65
|
+
RadioInput,
|
|
66
|
+
{
|
|
67
|
+
name: GENERATORS_SELECTION_TYPE,
|
|
68
|
+
options: Object.values(initialEquipmentsSelectionType)
|
|
69
|
+
}
|
|
70
|
+
) }) }),
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
ParameterLineDirectoryItemsInput,
|
|
73
|
+
{
|
|
74
|
+
name: VARIABLE_Q_GENERATORS,
|
|
75
|
+
equipmentTypes: [EquipmentType.GENERATOR],
|
|
76
|
+
elementType: ElementType.FILTER,
|
|
77
|
+
label: "VariableGenerators",
|
|
78
|
+
hideErrorMessage: true
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ jsx(Grid, { item: true, container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
|
|
82
|
+
RadioInput,
|
|
83
|
+
{
|
|
84
|
+
name: TRANSFORMERS_SELECTION_TYPE,
|
|
85
|
+
options: Object.values(initialEquipmentsSelectionType)
|
|
86
|
+
}
|
|
87
|
+
) }) }),
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
ParameterLineDirectoryItemsInput,
|
|
90
|
+
{
|
|
91
|
+
name: VARIABLE_TRANSFORMERS,
|
|
92
|
+
equipmentTypes: [EquipmentType.TWO_WINDINGS_TRANSFORMER],
|
|
93
|
+
elementType: ElementType.FILTER,
|
|
94
|
+
label: "VariableTransformers",
|
|
95
|
+
hideErrorMessage: true
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ jsx(Grid, { item: true, container: true, justifyContent: "flex-end", sx: equipmentsSelectionStyles.choiceContainer, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 5, sx: equipmentsSelectionStyles.choice, children: /* @__PURE__ */ jsx(
|
|
99
|
+
RadioInput,
|
|
100
|
+
{
|
|
101
|
+
name: SHUNT_COMPENSATORS_SELECTION_TYPE,
|
|
102
|
+
options: Object.values(initialEquipmentsSelectionType)
|
|
103
|
+
}
|
|
104
|
+
) }) }),
|
|
105
|
+
/* @__PURE__ */ jsx(
|
|
106
|
+
ParameterLineDirectoryItemsInput,
|
|
107
|
+
{
|
|
108
|
+
name: VARIABLE_SHUNT_COMPENSATORS,
|
|
109
|
+
equipmentTypes: [EquipmentType.SHUNT_COMPENSATOR],
|
|
110
|
+
elementType: ElementType.FILTER,
|
|
111
|
+
label: "VariableShuntCompensators",
|
|
112
|
+
hideErrorMessage: true
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
] });
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
EquipmentSelectionParameters
|
|
119
|
+
};
|