@gridsuite/commons-ui 0.107.1 → 0.109.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/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/index.d.ts +1 -0
- package/dist/components/index.js +60 -4
- 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/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 +42 -4
- package/dist/components/parameters/loadflow/constants.d.ts +0 -1
- package/dist/components/parameters/loadflow/constants.js +0 -2
- package/dist/components/parameters/loadflow/index.js +1 -2
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +7 -12
- 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 +48 -12
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.d.ts +0 -4
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -2
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +2 -1
- package/dist/components/parameters/network-visualizations/constants.js +5 -1
- package/dist/components/parameters/network-visualizations/index.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/network-visualizations.types.d.ts +2 -1
- package/dist/components/parameters/network-visualizations/network-visualizations.types.js +2 -0
- 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 +173 -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/index.js +72 -5
- 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/index.d.ts +1 -0
- package/dist/translations/en/index.js +2 -0
- package/dist/translations/en/networkModificationsEn.js +12 -12
- package/dist/translations/en/parameters.d.ts +32 -1
- package/dist/translations/en/parameters.js +33 -2
- package/dist/translations/fr/dndTableFr.d.ts +16 -0
- package/dist/translations/fr/dndTableFr.js +13 -0
- package/dist/translations/fr/index.d.ts +1 -0
- package/dist/translations/fr/index.js +2 -0
- package/dist/translations/fr/networkModificationsFr.js +12 -12
- package/dist/translations/fr/parameters.d.ts +33 -1
- package/dist/translations/fr/parameters.js +34 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.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
|
@@ -3,12 +3,16 @@ import { Box, Grid, LinearProgress } from "@mui/material";
|
|
|
3
3
|
import LoadFlowParametersHeader from "./load-flow-parameters-header.js";
|
|
4
4
|
import LoadFlowParametersContent from "./load-flow-parameters-content.js";
|
|
5
5
|
import "react-intl";
|
|
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 { CustomFormProvider } from "../../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";
|
|
@@ -17,11 +21,7 @@ import "ag-grid-community";
|
|
|
17
21
|
import "react-papaparse";
|
|
18
22
|
import "react-csv-downloader";
|
|
19
23
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
20
|
-
import "localized-countries";
|
|
21
|
-
import "localized-countries/data/fr";
|
|
22
|
-
import "localized-countries/data/en";
|
|
23
24
|
import "../../../utils/conversionUtils.js";
|
|
24
|
-
import "../../../utils/types/equipmentType.js";
|
|
25
25
|
import "../../../utils/yupConfig.js";
|
|
26
26
|
import "@react-querybuilder/material";
|
|
27
27
|
import "../../filter/expert/expertFilterConstants.js";
|
|
@@ -3,12 +3,16 @@ import { Box, Grid, Tabs, Tab } from "@mui/material";
|
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { TabValues } from "./load-flow-parameters-utils.js";
|
|
5
5
|
import { parametersStyles, getTabStyle } 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";
|
|
@@ -17,12 +21,8 @@ import "ag-grid-community";
|
|
|
17
21
|
import "react-papaparse";
|
|
18
22
|
import "react-csv-downloader";
|
|
19
23
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
20
|
-
import "localized-countries";
|
|
21
|
-
import "localized-countries/data/fr";
|
|
22
|
-
import "localized-countries/data/en";
|
|
23
24
|
import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
|
|
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";
|
|
@@ -10,12 +10,13 @@ import "localized-countries";
|
|
|
10
10
|
import "localized-countries/data/fr";
|
|
11
11
|
import "localized-countries/data/en";
|
|
12
12
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
13
|
-
import "@mui/icons-material";
|
|
14
13
|
import "react-hook-form";
|
|
15
14
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
15
|
+
import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
16
|
+
import "@mui/icons-material";
|
|
16
17
|
import "yup";
|
|
17
|
-
import { mergeSx } from "../../../utils/styles.js";
|
|
18
18
|
import "../../overflowableText/OverflowableText.js";
|
|
19
|
+
import { mergeSx } from "../../../utils/styles.js";
|
|
19
20
|
import { DirectoryItemSelector } from "../../directoryItemSelector/DirectoryItemSelector.js";
|
|
20
21
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
21
22
|
import "../../customAGGrid/customAggrid.js";
|
|
@@ -23,10 +24,10 @@ import "ag-grid-community";
|
|
|
23
24
|
import "react-papaparse";
|
|
24
25
|
import "react-csv-downloader";
|
|
25
26
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
27
|
+
import { PopupConfirmationDialog } from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
26
28
|
import "../../../utils/conversionUtils.js";
|
|
27
29
|
import { ElementType } from "../../../utils/types/elementType.js";
|
|
28
30
|
import "../../../utils/yupConfig.js";
|
|
29
|
-
import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
30
31
|
import "@react-querybuilder/material";
|
|
31
32
|
import "../../filter/expert/expertFilterConstants.js";
|
|
32
33
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -40,6 +41,8 @@ import "../common/widget/parameter-line-slider.js";
|
|
|
40
41
|
import "../common/limitreductions/columns-definitions.js";
|
|
41
42
|
import { useLoadFlowParametersForm } from "./use-load-flow-parameters-form.js";
|
|
42
43
|
import { LoadFlowParametersForm } from "./load-flow-parameters-form.js";
|
|
44
|
+
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
45
|
+
import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
43
46
|
function LoadFlowParametersInline({
|
|
44
47
|
studyUuid,
|
|
45
48
|
parametersBackend,
|
|
@@ -51,14 +54,31 @@ function LoadFlowParametersInline({
|
|
|
51
54
|
const intl = useIntl();
|
|
52
55
|
const [openCreateParameterDialog, setOpenCreateParameterDialog] = useState(false);
|
|
53
56
|
const [openSelectParameterDialog, setOpenSelectParameterDialog] = useState(false);
|
|
57
|
+
const [openResetConfirmation, setOpenResetConfirmation] = useState(false);
|
|
58
|
+
const [pendingResetAction, setPendingResetAction] = useState(null);
|
|
54
59
|
const { snackError } = useSnackMessage();
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
const executeResetAction = useCallback(() => {
|
|
61
|
+
if (pendingResetAction === "all") {
|
|
62
|
+
resetParameters();
|
|
63
|
+
resetProvider();
|
|
64
|
+
} else if (pendingResetAction === "parameters") {
|
|
65
|
+
resetParameters();
|
|
66
|
+
}
|
|
67
|
+
setOpenResetConfirmation(false);
|
|
68
|
+
setPendingResetAction(null);
|
|
69
|
+
}, [pendingResetAction, resetParameters, resetProvider]);
|
|
70
|
+
const handleResetAllClick = useCallback(() => {
|
|
71
|
+
setPendingResetAction("all");
|
|
72
|
+
setOpenResetConfirmation(true);
|
|
73
|
+
}, []);
|
|
74
|
+
const handleResetParametersClick = useCallback(() => {
|
|
75
|
+
setPendingResetAction("parameters");
|
|
76
|
+
setOpenResetConfirmation(true);
|
|
77
|
+
}, []);
|
|
78
|
+
const handleCancelReset = useCallback(() => {
|
|
79
|
+
setOpenResetConfirmation(false);
|
|
80
|
+
setPendingResetAction(null);
|
|
81
|
+
}, []);
|
|
62
82
|
const { reset, getValues, formState, handleSubmit } = loadflowMethods.formMethods;
|
|
63
83
|
const handleLoadParameter = useCallback(
|
|
64
84
|
(newParams) => {
|
|
@@ -109,8 +129,14 @@ function LoadFlowParametersInline({
|
|
|
109
129
|
}
|
|
110
130
|
),
|
|
111
131
|
/* @__PURE__ */ jsx(LabelledButton, { callback: () => setOpenCreateParameterDialog(true), label: "save" }),
|
|
112
|
-
/* @__PURE__ */ jsx(LabelledButton, { callback:
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
132
|
+
/* @__PURE__ */ jsx(LabelledButton, { callback: handleResetAllClick, label: "resetToDefault" }),
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
LabelledButton,
|
|
135
|
+
{
|
|
136
|
+
label: "resetProviderValuesToDefault",
|
|
137
|
+
callback: handleResetParametersClick
|
|
138
|
+
}
|
|
139
|
+
),
|
|
114
140
|
/* @__PURE__ */ jsx(
|
|
115
141
|
SubmitButton,
|
|
116
142
|
{
|
|
@@ -151,6 +177,16 @@ function LoadFlowParametersInline({
|
|
|
151
177
|
id: "validate"
|
|
152
178
|
})
|
|
153
179
|
}
|
|
180
|
+
),
|
|
181
|
+
openResetConfirmation && /* @__PURE__ */ jsx(
|
|
182
|
+
PopupConfirmationDialog,
|
|
183
|
+
{
|
|
184
|
+
message: "resetParamsConfirmation",
|
|
185
|
+
validateButtonLabel: "validate",
|
|
186
|
+
openConfirmationPopup: openResetConfirmation,
|
|
187
|
+
setOpenConfirmationPopup: handleCancelReset,
|
|
188
|
+
handlePopupConfirmation: executeResetAction
|
|
189
|
+
}
|
|
154
190
|
)
|
|
155
191
|
] });
|
|
156
192
|
}
|
|
@@ -8,7 +8,6 @@ export declare enum TabValues {
|
|
|
8
8
|
LIMIT_REDUCTIONS = "LimitReductions"
|
|
9
9
|
}
|
|
10
10
|
export declare const getBasicLoadFlowParametersFormSchema: () => yup.ObjectSchema<{
|
|
11
|
-
transformerVoltageControlOn: NonNullable<boolean | undefined>;
|
|
12
11
|
phaseShifterRegulationOn: NonNullable<boolean | undefined>;
|
|
13
12
|
dc: NonNullable<boolean | undefined>;
|
|
14
13
|
balanceType: string;
|
|
@@ -16,7 +15,6 @@ export declare const getBasicLoadFlowParametersFormSchema: () => yup.ObjectSchem
|
|
|
16
15
|
connectedComponentMode: string;
|
|
17
16
|
hvdcAcEmulation: NonNullable<boolean | undefined>;
|
|
18
17
|
}, yup.AnyObject, {
|
|
19
|
-
transformerVoltageControlOn: undefined;
|
|
20
18
|
phaseShifterRegulationOn: undefined;
|
|
21
19
|
dc: undefined;
|
|
22
20
|
balanceType: undefined;
|
|
@@ -47,7 +45,6 @@ export declare const getAdvancedLoadFlowParametersFormSchema: () => yup.ObjectSc
|
|
|
47
45
|
}, "">;
|
|
48
46
|
export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSchema<{
|
|
49
47
|
commonParameters: {
|
|
50
|
-
transformerVoltageControlOn?: unknown;
|
|
51
48
|
phaseShifterRegulationOn?: unknown;
|
|
52
49
|
dc?: unknown;
|
|
53
50
|
balanceType?: unknown;
|
|
@@ -75,7 +72,6 @@ export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSche
|
|
|
75
72
|
shuntCompensatorVoltageControlOn: undefined;
|
|
76
73
|
dcUseTransformerRatio: undefined;
|
|
77
74
|
dcPowerFactor: undefined;
|
|
78
|
-
transformerVoltageControlOn: undefined;
|
|
79
75
|
phaseShifterRegulationOn: undefined;
|
|
80
76
|
dc: undefined;
|
|
81
77
|
balanceType: undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LIMIT_REDUCTIONS_FORM, IST_FORM, LIMIT_DURATION_FORM } from "../common/limitreductions/columns-definitions.js";
|
|
2
|
-
import { HVDC_AC_EMULATION, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, BALANCE_TYPE, DC, PHASE_SHIFTER_REGULATION_ON,
|
|
2
|
+
import { HVDC_AC_EMULATION, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, BALANCE_TYPE, DC, PHASE_SHIFTER_REGULATION_ON, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, DISTRIBUTED_SLACK, WRITE_SLACK_BUS, READ_SLACK_BUS, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, COMMON_PARAMETERS, SPECIFIC_PARAMETERS, PARAM_PROVIDER_OPENLOADFLOW, PARAM_LIMIT_REDUCTION, DEFAULT_LIMIT_REDUCTION_VALUE } from "./constants.js";
|
|
3
3
|
import { toFormValuesLimitReductions } from "../common/limitreductions/limit-reductions-form-util.js";
|
|
4
4
|
import "../../../utils/yupConfig.js";
|
|
5
5
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
@@ -11,7 +11,6 @@ var TabValues = /* @__PURE__ */ ((TabValues2) => {
|
|
|
11
11
|
})(TabValues || {});
|
|
12
12
|
const getBasicLoadFlowParametersFormSchema = () => {
|
|
13
13
|
return yup.object().shape({
|
|
14
|
-
[TRANSFORMER_VOLTAGE_CONTROL_ON]: yup.boolean().required(),
|
|
15
14
|
[PHASE_SHIFTER_REGULATION_ON]: yup.boolean().required(),
|
|
16
15
|
[DC]: yup.boolean().required(),
|
|
17
16
|
[BALANCE_TYPE]: yup.string().required(),
|
|
@@ -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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubstationLayout, MAP_BASEMAP_MAPBOX, MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL } from "./network-visualizations.types.js";
|
|
1
|
+
import { SubstationLayout, MAP_BASEMAP_MAPBOX, MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB } from "./network-visualizations.types.js";
|
|
2
2
|
var LineFlowMode = /* @__PURE__ */ ((LineFlowMode2) => {
|
|
3
3
|
LineFlowMode2["STATIC_ARROWS"] = "staticArrows";
|
|
4
4
|
LineFlowMode2["ANIMATED_ARROWS"] = "animatedArrows";
|
|
@@ -55,6 +55,10 @@ const INTL_MAP_BASE_MAP_OPTIONS = [
|
|
|
55
55
|
{
|
|
56
56
|
id: MAP_BASEMAP_CARTO_NOLABEL,
|
|
57
57
|
label: "CartoNoLabel"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: MAP_BASEMAP_ETALAB,
|
|
61
|
+
label: "Etalab"
|
|
58
62
|
}
|
|
59
63
|
];
|
|
60
64
|
const INTL_SUBSTATION_LAYOUT_OPTIONS = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INIT_NAD_WITH_GEO_DATA, INTL_LINE_FLOW_MODE_OPTIONS, INTL_MAP_BASE_MAP_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_INIT_NAD_WITH_GEO_DATA, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./constants.js";
|
|
2
|
-
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_MAPBOX, SubstationLayout } from "./network-visualizations.types.js";
|
|
2
|
+
import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, SubstationLayout } from "./network-visualizations.types.js";
|
|
3
3
|
import { NetworkVisualizationParametersInline } from "./network-visualizations-parameters-inline.js";
|
|
4
4
|
import { NetworkVisualizationsParametersEditionDialog } from "./network-visualizations-parameters-dialog.js";
|
|
5
5
|
export {
|
|
@@ -14,6 +14,7 @@ export {
|
|
|
14
14
|
LineFlowMode,
|
|
15
15
|
MAP_BASEMAP_CARTO,
|
|
16
16
|
MAP_BASEMAP_CARTO_NOLABEL,
|
|
17
|
+
MAP_BASEMAP_ETALAB,
|
|
17
18
|
MAP_BASEMAP_MAPBOX,
|
|
18
19
|
MAP_BASE_MAP,
|
|
19
20
|
MAP_MANUAL_REFRESH,
|
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";
|
|
@@ -2,6 +2,7 @@ import { UUID } from 'crypto';
|
|
|
2
2
|
export declare const MAP_BASEMAP_MAPBOX = "mapbox";
|
|
3
3
|
export declare const MAP_BASEMAP_CARTO = "carto";
|
|
4
4
|
export declare const MAP_BASEMAP_CARTO_NOLABEL = "cartonolabel";
|
|
5
|
+
export declare const MAP_BASEMAP_ETALAB = "etalab";
|
|
5
6
|
export declare enum SubstationLayout {
|
|
6
7
|
HORIZONTAL = "horizontal",
|
|
7
8
|
VERTICAL = "vertical",
|
|
@@ -14,7 +15,7 @@ type MapParameters = {
|
|
|
14
15
|
lineParallelPath: boolean;
|
|
15
16
|
lineFlowMode: string;
|
|
16
17
|
mapManualRefresh: boolean;
|
|
17
|
-
mapBaseMap: typeof MAP_BASEMAP_MAPBOX | typeof MAP_BASEMAP_CARTO | typeof MAP_BASEMAP_CARTO_NOLABEL;
|
|
18
|
+
mapBaseMap: typeof MAP_BASEMAP_MAPBOX | typeof MAP_BASEMAP_CARTO | typeof MAP_BASEMAP_CARTO_NOLABEL | typeof MAP_BASEMAP_ETALAB;
|
|
18
19
|
};
|
|
19
20
|
type SingleLineDiagramParameters = {
|
|
20
21
|
diagonalLabel: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const MAP_BASEMAP_MAPBOX = "mapbox";
|
|
2
2
|
const MAP_BASEMAP_CARTO = "carto";
|
|
3
3
|
const MAP_BASEMAP_CARTO_NOLABEL = "cartonolabel";
|
|
4
|
+
const MAP_BASEMAP_ETALAB = "etalab";
|
|
4
5
|
var SubstationLayout = /* @__PURE__ */ ((SubstationLayout2) => {
|
|
5
6
|
SubstationLayout2["HORIZONTAL"] = "horizontal";
|
|
6
7
|
SubstationLayout2["VERTICAL"] = "vertical";
|
|
@@ -12,6 +13,7 @@ var SubstationLayout = /* @__PURE__ */ ((SubstationLayout2) => {
|
|
|
12
13
|
export {
|
|
13
14
|
MAP_BASEMAP_CARTO,
|
|
14
15
|
MAP_BASEMAP_CARTO_NOLABEL,
|
|
16
|
+
MAP_BASEMAP_ETALAB,
|
|
15
17
|
MAP_BASEMAP_MAPBOX,
|
|
16
18
|
SubstationLayout
|
|
17
19
|
};
|
|
@@ -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";
|