@gridsuite/commons-ui 0.185.0 → 0.187.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/index.d.ts +1 -0
- package/dist/components/index.js +28 -12
- package/dist/components/network-modifications/by-filter/commons/by-filter.type.d.ts +5 -0
- package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.d.ts +7 -0
- package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +83 -0
- package/dist/components/network-modifications/by-filter/deletion/byFilterDeletion.types.d.ts +7 -0
- package/dist/components/network-modifications/by-filter/deletion/byFilterDeletion.utils.d.ts +18 -0
- package/dist/components/network-modifications/by-filter/deletion/byFilterDeletion.utils.js +52 -0
- package/dist/components/network-modifications/by-filter/deletion/index.d.ts +9 -0
- package/dist/components/network-modifications/by-filter/deletion/index.js +10 -0
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → by-filter}/index.d.ts +1 -2
- package/dist/components/network-modifications/by-filter/index.js +10 -0
- package/dist/components/network-modifications/common/connectivity/connectivityForm.utils.d.ts +1 -1
- package/dist/components/network-modifications/index.d.ts +2 -1
- package/dist/components/network-modifications/index.js +52 -12
- package/dist/components/network-modifications/load/common/LoadDialogTabs.js +1 -1
- package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +138 -0
- package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/index.d.ts +1 -2
- package/dist/components/network-modifications/voltageLevel/creation/index.js +57 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.d.ts +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +93 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/index.d.ts +7 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/index.js +4 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/index.d.ts +9 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/index.js +10 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.d.ts +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +60 -0
- package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusCreation.d.ts +1 -1
- package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusCreation.js +6 -6
- package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusForm.js +16 -16
- package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/index.d.ts +0 -1
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/index.js +4 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/index.d.ts +8 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/index.js +6 -0
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/SwitchesBetweenSections.js +19 -17
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialog.d.ts +1 -1
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialog.js +16 -16
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialogSubmitButton.d.ts +1 -1
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesForm.js +16 -16
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/createSwitchesDialog.utils.d.ts +1 -1
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/createSwitchesDialog.utils.js +5 -5
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/index.d.ts +7 -0
- package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/index.js +0 -2
- package/dist/components/network-modifications/{voltage-level/creation/substation-creation → voltageLevel/creation/tabs/substationTab}/SubstationCreationSection.d.ts +1 -2
- package/dist/components/network-modifications/{voltage-level/creation/substation-creation → voltageLevel/creation/tabs/substationTab}/SubstationCreationSection.js +24 -26
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.d.ts +5 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +81 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/index.d.ts +7 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/index.js +4 -0
- package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.d.ts +12 -0
- package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.js +9 -0
- package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.utils.d.ts +4 -0
- package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.utils.js +16 -0
- package/dist/components/network-modifications/voltageLevel/index.js +64 -0
- package/dist/components/network-modifications/voltageLevel/modification/voltageLevelModification.types.js +1 -0
- package/dist/components/network-modifications/voltageLevel/voltage-level.type.js +1 -0
- package/dist/components/node/build-status-chip.d.ts +12 -0
- package/dist/components/node/build-status-chip.js +75 -0
- package/dist/components/node/constant.d.ts +13 -0
- package/dist/components/node/constant.js +11 -0
- package/dist/components/node/index.d.ts +2 -0
- package/dist/components/node/index.js +6 -0
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +2 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +1 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +3 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +4 -2
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.d.ts +3 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +3 -0
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.d.ts +3 -1
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +11 -7
- package/dist/components/parameters/short-circuit/columns-definition.js +2 -2
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +0 -1
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +20 -11
- package/dist/index.js +65 -52
- package/dist/translations/en/businessErrorsEn.d.ts +2 -0
- package/dist/translations/en/businessErrorsEn.js +2 -0
- package/dist/translations/en/networkModificationsEn.d.ts +7 -3
- package/dist/translations/en/networkModificationsEn.js +9 -4
- package/dist/translations/en/parameters.d.ts +7 -0
- package/dist/translations/en/parameters.js +8 -1
- package/dist/translations/fr/businessErrorsFr.d.ts +2 -0
- package/dist/translations/fr/businessErrorsFr.js +2 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +7 -3
- package/dist/translations/fr/networkModificationsFr.js +10 -5
- package/dist/translations/fr/parameters.d.ts +7 -0
- package/dist/translations/fr/parameters.js +8 -1
- package/dist/utils/types/metadata.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js +0 -174
- package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.js +0 -6
- package/dist/components/network-modifications/voltage-level/creation/index.js +0 -24
- package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.d.ts +0 -5
- package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.js +0 -79
- package/dist/components/network-modifications/voltage-level/index.js +0 -31
- /package/dist/components/network-modifications/{voltage-level/modification/voltageLevelModification.types.js → by-filter/commons/by-filter.type.js} +0 -0
- /package/dist/components/network-modifications/{voltage-level/voltage-level.type.js → by-filter/deletion/byFilterDeletion.types.js} +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/VoltageLevelCreationForm.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusForm.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/SwitchesBetweenSections.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialogSubmitButton.js +0 -0
- /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesForm.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.js +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.js +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/index.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.js +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.js +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.types.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.d.ts +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.js +0 -0
- /package/dist/components/network-modifications/{voltage-level → voltageLevel}/voltage-level.type.d.ts +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SwitchesBetweenSections } from "./tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "react-hook-form";
|
|
5
|
+
import "react-intl";
|
|
6
|
+
import "../../../overflowableText/OverflowableText.js";
|
|
7
|
+
import "../../../../utils/conversionUtils.js";
|
|
8
|
+
import "../../../../utils/types/equipmentType.js";
|
|
9
|
+
import "@mui/icons-material";
|
|
10
|
+
import "../../../../utils/yupConfig.js";
|
|
11
|
+
import "react";
|
|
12
|
+
import "localized-countries";
|
|
13
|
+
import "localized-countries/data/fr";
|
|
14
|
+
import "localized-countries/data/en";
|
|
15
|
+
import "notistack";
|
|
16
|
+
import "../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
17
|
+
import "yup";
|
|
18
|
+
import "../../../treeViewFinder/TreeViewFinder.js";
|
|
19
|
+
import "../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
20
|
+
import "../../../customAGGrid/customAggrid.js";
|
|
21
|
+
import "ag-grid-community";
|
|
22
|
+
import "react-papaparse";
|
|
23
|
+
import "react-csv-downloader";
|
|
24
|
+
import "../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
25
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
26
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
27
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
28
|
+
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
29
|
+
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
30
|
+
import "@react-querybuilder/material";
|
|
31
|
+
import "../../../filter/expert/expertFilterConstants.js";
|
|
32
|
+
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
33
|
+
import "uuid";
|
|
34
|
+
import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
35
|
+
import "react-querybuilder";
|
|
36
|
+
import "../../common/properties/propertyUtils.js";
|
|
37
|
+
import { VoltageLevelCreationForm } from "./VoltageLevelCreationForm.js";
|
|
38
|
+
import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, isAdditionalInformationTabError, isCharacteristicsTabError, isStructureTabError, isSubstationTabError, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./voltageLevelCreation.utils.js";
|
|
39
|
+
import { SwitchKind } from "./voltageLevelCreation.types.js";
|
|
40
|
+
export {
|
|
41
|
+
SWITCH_TYPE,
|
|
42
|
+
SwitchKind,
|
|
43
|
+
SwitchesBetweenSections,
|
|
44
|
+
VoltageLevelCreationForm,
|
|
45
|
+
buildNewBusbarSections,
|
|
46
|
+
getCreateSwitchesEmptyFormData,
|
|
47
|
+
getCreateSwitchesValidationSchema,
|
|
48
|
+
isAdditionalInformationTabError,
|
|
49
|
+
isCharacteristicsTabError,
|
|
50
|
+
isStructureTabError,
|
|
51
|
+
isSubstationTabError,
|
|
52
|
+
translateSwitchKinds,
|
|
53
|
+
voltageLevelCreationDtoToForm,
|
|
54
|
+
voltageLevelCreationEmptyFormData,
|
|
55
|
+
voltageLevelCreationFormSchema,
|
|
56
|
+
voltageLevelCreationFormToDto
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CharacteristicsTab(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useWatch } from "react-hook-form";
|
|
3
|
+
import { Grid } from "@mui/material";
|
|
4
|
+
import GridSection from "../../../../../grid/grid-section.js";
|
|
5
|
+
import GridItem from "../../../../../grid/grid-item.js";
|
|
6
|
+
import { VoltageAdornment, KiloAmpereAdornment } from "../../../../../../utils/constants/adornments.js";
|
|
7
|
+
import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
|
|
8
|
+
import "../../../../../../utils/conversionUtils.js";
|
|
9
|
+
import "../../../../../../utils/types/equipmentType.js";
|
|
10
|
+
import "@mui/icons-material";
|
|
11
|
+
import "../../../../../../utils/yupConfig.js";
|
|
12
|
+
import "react-intl";
|
|
13
|
+
import "../../../../../overflowableText/OverflowableText.js";
|
|
14
|
+
import "react";
|
|
15
|
+
import "localized-countries";
|
|
16
|
+
import "localized-countries/data/fr";
|
|
17
|
+
import "localized-countries/data/en";
|
|
18
|
+
import "notistack";
|
|
19
|
+
import "../../../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
+
import "yup";
|
|
21
|
+
import "../../../../../treeViewFinder/TreeViewFinder.js";
|
|
22
|
+
import "../../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
23
|
+
import "../../../../../customAGGrid/customAggrid.js";
|
|
24
|
+
import "ag-grid-community";
|
|
25
|
+
import "react-papaparse";
|
|
26
|
+
import "react-csv-downloader";
|
|
27
|
+
import { FloatInput } from "../../../../../inputs/reactHookForm/numbers/FloatInput.js";
|
|
28
|
+
import "../../../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
|
+
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
|
+
import "../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
34
|
+
import "@react-querybuilder/material";
|
|
35
|
+
import "../../../../../filter/expert/expertFilterConstants.js";
|
|
36
|
+
import "../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
37
|
+
import "uuid";
|
|
38
|
+
import "../../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
39
|
+
import "react-querybuilder";
|
|
40
|
+
function CharacteristicsTab() {
|
|
41
|
+
const watchHideNominalVoltage = useWatch({ name: FieldConstants.HIDE_NOMINAL_VOLTAGE });
|
|
42
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
|
|
44
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
45
|
+
!watchHideNominalVoltage && /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
46
|
+
FloatInput,
|
|
47
|
+
{
|
|
48
|
+
name: FieldConstants.NOMINAL_V,
|
|
49
|
+
label: "NominalVoltage",
|
|
50
|
+
adornment: VoltageAdornment
|
|
51
|
+
}
|
|
52
|
+
) }),
|
|
53
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
54
|
+
FloatInput,
|
|
55
|
+
{
|
|
56
|
+
name: FieldConstants.LOW_VOLTAGE_LIMIT,
|
|
57
|
+
label: "LowVoltageLimit",
|
|
58
|
+
adornment: VoltageAdornment
|
|
59
|
+
}
|
|
60
|
+
) }),
|
|
61
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
62
|
+
FloatInput,
|
|
63
|
+
{
|
|
64
|
+
name: FieldConstants.HIGH_VOLTAGE_LIMIT,
|
|
65
|
+
label: "HighVoltageLimit",
|
|
66
|
+
adornment: VoltageAdornment
|
|
67
|
+
}
|
|
68
|
+
) })
|
|
69
|
+
] }),
|
|
70
|
+
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
71
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
72
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
73
|
+
FloatInput,
|
|
74
|
+
{
|
|
75
|
+
name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
|
|
76
|
+
label: "LowShortCircuitCurrentLimit",
|
|
77
|
+
adornment: KiloAmpereAdornment
|
|
78
|
+
}
|
|
79
|
+
) }),
|
|
80
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
81
|
+
FloatInput,
|
|
82
|
+
{
|
|
83
|
+
name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
|
|
84
|
+
label: "HighShortCircuitCurrentLimit",
|
|
85
|
+
adornment: KiloAmpereAdornment
|
|
86
|
+
}
|
|
87
|
+
) })
|
|
88
|
+
] })
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
CharacteristicsTab
|
|
93
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export { CharacteristicsTab } from './CharacteristicsTab';
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export { StructureTab, SwitchesBetweenSections } from './structureTab';
|
|
8
|
+
export { SubstationTab, type SubstationTabContentProps } from './substationTab';
|
|
9
|
+
export { CharacteristicsTab } from './characteristicsTab';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SwitchesBetweenSections } from "./structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
|
|
2
|
+
import { StructureTab } from "./structureTab/StructureTab.js";
|
|
3
|
+
import { SubstationTab } from "./substationTab/SubstationTab.js";
|
|
4
|
+
import { CharacteristicsTab } from "./characteristicsTab/CharacteristicsTab.js";
|
|
5
|
+
export {
|
|
6
|
+
CharacteristicsTab,
|
|
7
|
+
StructureTab,
|
|
8
|
+
SubstationTab,
|
|
9
|
+
SwitchesBetweenSections
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function StructureTab(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
|
+
import { useWatch } from "react-hook-form";
|
|
4
|
+
import GridSection from "../../../../../grid/grid-section.js";
|
|
5
|
+
import GridItem from "../../../../../grid/grid-item.js";
|
|
6
|
+
import "react-intl";
|
|
7
|
+
import "../../../../../overflowableText/OverflowableText.js";
|
|
8
|
+
import { FieldConstants } from "../../../../../../utils/constants/fieldConstants.js";
|
|
9
|
+
import "../../../../../../utils/conversionUtils.js";
|
|
10
|
+
import "../../../../../../utils/types/equipmentType.js";
|
|
11
|
+
import "@mui/icons-material";
|
|
12
|
+
import "../../../../../../utils/yupConfig.js";
|
|
13
|
+
import "react";
|
|
14
|
+
import "localized-countries";
|
|
15
|
+
import "localized-countries/data/fr";
|
|
16
|
+
import "localized-countries/data/en";
|
|
17
|
+
import "notistack";
|
|
18
|
+
import "../../../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
19
|
+
import "yup";
|
|
20
|
+
import "../../../../../treeViewFinder/TreeViewFinder.js";
|
|
21
|
+
import "../../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
22
|
+
import "../../../../../customAGGrid/customAggrid.js";
|
|
23
|
+
import "ag-grid-community";
|
|
24
|
+
import "react-papaparse";
|
|
25
|
+
import "react-csv-downloader";
|
|
26
|
+
import { IntegerInput } from "../../../../../inputs/reactHookForm/numbers/IntegerInput.js";
|
|
27
|
+
import "../../../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
|
+
import "../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
|
+
import "@react-querybuilder/material";
|
|
34
|
+
import "../../../../../filter/expert/expertFilterConstants.js";
|
|
35
|
+
import "../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
36
|
+
import "uuid";
|
|
37
|
+
import "../../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
38
|
+
import "react-querybuilder";
|
|
39
|
+
import { SwitchesBetweenSections } from "./switchesBetweenSections/SwitchesBetweenSections.js";
|
|
40
|
+
import { CouplingOmnibusForm } from "./couplingOmnibus/CouplingOmnibusForm.js";
|
|
41
|
+
function StructureTab() {
|
|
42
|
+
const watchBusBarCount = useWatch({ name: FieldConstants.BUS_BAR_COUNT });
|
|
43
|
+
const watchSectionCount = useWatch({ name: FieldConstants.SECTION_COUNT });
|
|
44
|
+
const displayOmnibus = watchBusBarCount > 1 || watchSectionCount > 1;
|
|
45
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46
|
+
/* @__PURE__ */ jsx(GridSection, { title: "BusBarSections" }),
|
|
47
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
48
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
|
|
49
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ jsx(SwitchesBetweenSections, {}),
|
|
52
|
+
displayOmnibus && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
|
+
/* @__PURE__ */ jsx(GridSection, { title: "Coupling_Omnibus" }),
|
|
54
|
+
/* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: /* @__PURE__ */ jsx(CouplingOmnibusForm, {}) }) })
|
|
55
|
+
] })
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
StructureTab
|
|
60
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { useFormContext } from "react-hook-form";
|
|
4
|
-
import { AutocompleteInput } from "
|
|
5
|
-
import GridItem from "
|
|
6
|
-
import { FieldConstants } from "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
4
|
+
import { AutocompleteInput } from "../../../../../../inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js";
|
|
5
|
+
import GridItem from "../../../../../../grid/grid-item.js";
|
|
6
|
+
import { FieldConstants } from "../../../../../../../utils/constants/fieldConstants.js";
|
|
7
|
+
import "../../../../../../../utils/conversionUtils.js";
|
|
8
|
+
import "../../../../../../../utils/types/equipmentType.js";
|
|
9
9
|
import "@mui/icons-material";
|
|
10
|
-
import "
|
|
10
|
+
import "../../../../../../../utils/yupConfig.js";
|
|
11
11
|
function CouplingOmnibusCreation({ index, sectionOptions }) {
|
|
12
12
|
const { getValues, trigger, subscribe } = useFormContext();
|
|
13
13
|
useEffect(() => {
|
|
@@ -4,37 +4,37 @@ import { useFormContext } from "react-hook-form";
|
|
|
4
4
|
import { CouplingOmnibusCreation } from "./CouplingOmnibusCreation.js";
|
|
5
5
|
import "react-intl";
|
|
6
6
|
import "@mui/material";
|
|
7
|
-
import "
|
|
8
|
-
import { FieldConstants } from "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
7
|
+
import "../../../../../../overflowableText/OverflowableText.js";
|
|
8
|
+
import { FieldConstants } from "../../../../../../../utils/constants/fieldConstants.js";
|
|
9
|
+
import "../../../../../../../utils/conversionUtils.js";
|
|
10
|
+
import "../../../../../../../utils/types/equipmentType.js";
|
|
11
11
|
import "@mui/icons-material";
|
|
12
|
-
import "
|
|
13
|
-
import { fetchBusBarSectionsForNewCoupler } from "
|
|
12
|
+
import "../../../../../../../utils/yupConfig.js";
|
|
13
|
+
import { fetchBusBarSectionsForNewCoupler } from "../../../../../../../services/networkModification.js";
|
|
14
14
|
import "localized-countries";
|
|
15
15
|
import "localized-countries/data/fr";
|
|
16
16
|
import "localized-countries/data/en";
|
|
17
17
|
import "notistack";
|
|
18
|
-
import "
|
|
18
|
+
import "../../../../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
19
19
|
import "yup";
|
|
20
|
-
import "
|
|
21
|
-
import "
|
|
22
|
-
import "
|
|
20
|
+
import "../../../../../../treeViewFinder/TreeViewFinder.js";
|
|
21
|
+
import "../../../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
22
|
+
import "../../../../../../customAGGrid/customAggrid.js";
|
|
23
23
|
import "ag-grid-community";
|
|
24
24
|
import "react-papaparse";
|
|
25
25
|
import "react-csv-downloader";
|
|
26
|
-
import "
|
|
26
|
+
import "../../../../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
31
|
-
import "
|
|
32
|
-
import { ExpandableInput } from "
|
|
31
|
+
import "../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
|
+
import { ExpandableInput } from "../../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
33
|
import "@react-querybuilder/material";
|
|
34
|
-
import "
|
|
35
|
-
import "
|
|
34
|
+
import "../../../../../../filter/expert/expertFilterConstants.js";
|
|
35
|
+
import "../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
36
36
|
import "uuid";
|
|
37
|
-
import "
|
|
37
|
+
import "../../../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
38
38
|
import "react-querybuilder";
|
|
39
39
|
function CouplingOmnibusForm() {
|
|
40
40
|
const { setValue, subscribe, trigger, getValues, formState } = useFormContext();
|
package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
export { SwitchesBetweenSections } from './switchesBetweenSections';
|
|
8
|
+
export { StructureTab } from './StructureTab';
|
|
@@ -4,39 +4,40 @@ import { useState, useCallback, useRef, useEffect } from "react";
|
|
|
4
4
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { ArrowDropDown } from "@mui/icons-material";
|
|
7
|
-
import { FieldConstants } from "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import { SwitchKind } from "
|
|
12
|
-
import GridItem from "
|
|
13
|
-
import "
|
|
7
|
+
import { FieldConstants } from "../../../../../../../utils/constants/fieldConstants.js";
|
|
8
|
+
import "../../../../../../../utils/conversionUtils.js";
|
|
9
|
+
import "../../../../../../../utils/types/equipmentType.js";
|
|
10
|
+
import "../../../../../../../utils/yupConfig.js";
|
|
11
|
+
import { SwitchKind } from "../../../voltageLevelCreation.types.js";
|
|
12
|
+
import GridItem from "../../../../../../grid/grid-item.js";
|
|
13
|
+
import "../../../../../../overflowableText/OverflowableText.js";
|
|
14
14
|
import "localized-countries";
|
|
15
15
|
import "localized-countries/data/fr";
|
|
16
16
|
import "localized-countries/data/en";
|
|
17
17
|
import "notistack";
|
|
18
|
-
import "
|
|
18
|
+
import "../../../../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
19
19
|
import "yup";
|
|
20
|
-
import "
|
|
21
|
-
import "
|
|
22
|
-
import "
|
|
20
|
+
import "../../../../../../treeViewFinder/TreeViewFinder.js";
|
|
21
|
+
import "../../../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
22
|
+
import "../../../../../../customAGGrid/customAggrid.js";
|
|
23
23
|
import "ag-grid-community";
|
|
24
24
|
import "react-papaparse";
|
|
25
25
|
import "react-csv-downloader";
|
|
26
|
-
import { TextInput } from "
|
|
27
|
-
import "
|
|
26
|
+
import { TextInput } from "../../../../../../inputs/reactHookForm/text/TextInput.js";
|
|
27
|
+
import "../../../../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
|
-
import "
|
|
32
|
+
import "../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
33
|
import "@react-querybuilder/material";
|
|
34
|
-
import "
|
|
35
|
-
import "
|
|
34
|
+
import "../../../../../../filter/expert/expertFilterConstants.js";
|
|
35
|
+
import "../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
36
36
|
import "uuid";
|
|
37
|
-
import "
|
|
37
|
+
import "../../../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
38
38
|
import "react-querybuilder";
|
|
39
39
|
import { CreateSwitchesDialog } from "./creation/CreateSwitchesDialog.js";
|
|
40
|
+
import GridSection from "../../../../../../grid/grid-section.js";
|
|
40
41
|
function SwitchesBetweenSections() {
|
|
41
42
|
const { getValues, setValue } = useFormContext();
|
|
42
43
|
const [openCreateSwitchesDialog, setOpenCreateSwitchesDialog] = useState(false);
|
|
@@ -91,6 +92,7 @@ function SwitchesBetweenSections() {
|
|
|
91
92
|
return null;
|
|
92
93
|
}
|
|
93
94
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
95
|
+
/* @__PURE__ */ jsx(GridSection, { title: "SwitchesBetweenSections" }),
|
|
94
96
|
/* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
|
|
95
97
|
TextInput,
|
|
96
98
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { CreateSwitchesFormData, SwitchKindFormData } from '
|
|
2
|
+
import { CreateSwitchesFormData, SwitchKindFormData } from '../../../../voltageLevelCreation.types';
|
|
3
3
|
interface CreateSwitchesDialogProps {
|
|
4
4
|
sectionCount: number;
|
|
5
5
|
handleCreateSwitchesDialog: (data: CreateSwitchesFormData) => void;
|
|
@@ -4,37 +4,37 @@ import { useForm } from "react-hook-form";
|
|
|
4
4
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
6
|
import { object } from "yup";
|
|
7
|
-
import { getCreateSwitchesValidationSchema, getCreateSwitchesEmptyFormData } from "
|
|
8
|
-
import { FieldConstants } from "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
7
|
+
import { getCreateSwitchesValidationSchema, getCreateSwitchesEmptyFormData } from "../../../../voltageLevelCreation.utils.js";
|
|
8
|
+
import { FieldConstants } from "../../../../../../../../utils/constants/fieldConstants.js";
|
|
9
|
+
import "../../../../../../../../utils/conversionUtils.js";
|
|
10
|
+
import "../../../../../../../../utils/types/equipmentType.js";
|
|
11
11
|
import "@mui/icons-material";
|
|
12
|
-
import "
|
|
12
|
+
import "../../../../../../../../utils/yupConfig.js";
|
|
13
13
|
import "react-intl";
|
|
14
|
-
import "
|
|
14
|
+
import "../../../../../../../overflowableText/OverflowableText.js";
|
|
15
15
|
import "localized-countries";
|
|
16
16
|
import "localized-countries/data/fr";
|
|
17
17
|
import "localized-countries/data/en";
|
|
18
18
|
import "notistack";
|
|
19
|
-
import { CustomFormProvider } from "
|
|
20
|
-
import { CancelButton } from "
|
|
21
|
-
import "
|
|
22
|
-
import "
|
|
23
|
-
import "
|
|
19
|
+
import { CustomFormProvider } from "../../../../../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
20
|
+
import { CancelButton } from "../../../../../../../inputs/reactHookForm/utils/CancelButton.js";
|
|
21
|
+
import "../../../../../../../treeViewFinder/TreeViewFinder.js";
|
|
22
|
+
import "../../../../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
23
|
+
import "../../../../../../../customAGGrid/customAggrid.js";
|
|
24
24
|
import "ag-grid-community";
|
|
25
25
|
import "react-papaparse";
|
|
26
26
|
import "react-csv-downloader";
|
|
27
|
-
import "
|
|
27
|
+
import "../../../../../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
|
-
import "
|
|
32
|
+
import "../../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
33
|
import "@react-querybuilder/material";
|
|
34
|
-
import "
|
|
35
|
-
import "
|
|
34
|
+
import "../../../../../../../filter/expert/expertFilterConstants.js";
|
|
35
|
+
import "../../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
36
36
|
import "uuid";
|
|
37
|
-
import "
|
|
37
|
+
import "../../../../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
38
38
|
import "react-querybuilder";
|
|
39
39
|
import CreateSwitchesForm from "./CreateSwitchesForm.js";
|
|
40
40
|
import { CreateSwitchesDialogSubmitButton } from "./CreateSwitchesDialogSubmitButton.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateSwitchesFormData } from '
|
|
1
|
+
import { CreateSwitchesFormData } from '../../../../voltageLevelCreation.types';
|
|
2
2
|
interface CreateSwitchesDialogSubmitButtonProps {
|
|
3
3
|
handleSave: (data: CreateSwitchesFormData) => void | Promise<void>;
|
|
4
4
|
}
|
|
@@ -2,38 +2,38 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { DialogTitle, DialogContent, Grid } from "@mui/material";
|
|
3
3
|
import { useFieldArray } from "react-hook-form";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import { FieldConstants } from "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
5
|
+
import { FieldConstants } from "../../../../../../../../utils/constants/fieldConstants.js";
|
|
6
|
+
import "../../../../../../../../utils/conversionUtils.js";
|
|
7
|
+
import "../../../../../../../../utils/types/equipmentType.js";
|
|
8
8
|
import "@mui/icons-material";
|
|
9
|
-
import "
|
|
10
|
-
import { SWITCH_TYPE } from "
|
|
11
|
-
import "
|
|
9
|
+
import "../../../../../../../../utils/yupConfig.js";
|
|
10
|
+
import { SWITCH_TYPE } from "../../../../voltageLevelCreation.utils.js";
|
|
11
|
+
import "../../../../../../../overflowableText/OverflowableText.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "localized-countries";
|
|
14
14
|
import "localized-countries/data/fr";
|
|
15
15
|
import "localized-countries/data/en";
|
|
16
16
|
import "notistack";
|
|
17
|
-
import "
|
|
17
|
+
import "../../../../../../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
18
18
|
import "yup";
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
21
|
-
import "
|
|
19
|
+
import "../../../../../../../treeViewFinder/TreeViewFinder.js";
|
|
20
|
+
import "../../../../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
21
|
+
import "../../../../../../../customAGGrid/customAggrid.js";
|
|
22
22
|
import "ag-grid-community";
|
|
23
23
|
import "react-papaparse";
|
|
24
24
|
import "react-csv-downloader";
|
|
25
|
-
import "
|
|
26
|
-
import { EnumInput } from "
|
|
25
|
+
import "../../../../../../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
26
|
+
import { EnumInput } from "../../../../../../../inputs/reactHookForm/selectInputs/EnumInput.js";
|
|
27
27
|
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
28
28
|
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
31
|
-
import "
|
|
31
|
+
import "../../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
32
|
import "@react-querybuilder/material";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
33
|
+
import "../../../../../../../filter/expert/expertFilterConstants.js";
|
|
34
|
+
import "../../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
35
35
|
import "uuid";
|
|
36
|
-
import "
|
|
36
|
+
import "../../../../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
37
37
|
import "react-querybuilder";
|
|
38
38
|
function CreateSwitchesForm({ id }) {
|
|
39
39
|
const { fields: rows } = useFieldArray({ name: `${id}` });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { object, string, array } from "yup";
|
|
2
|
-
import { FieldConstants } from "
|
|
3
|
-
import { YUP_REQUIRED } from "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
2
|
+
import { FieldConstants } from "../../../../../../../../utils/constants/fieldConstants.js";
|
|
3
|
+
import { YUP_REQUIRED } from "../../../../../../../../utils/constants/translationKeys.js";
|
|
4
|
+
import "../../../../../../../../utils/conversionUtils.js";
|
|
5
|
+
import "../../../../../../../../utils/types/equipmentType.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "@mui/icons-material";
|
|
8
|
-
import "
|
|
8
|
+
import "../../../../../../../../utils/yupConfig.js";
|
|
9
9
|
const getSwitchTypeSchema = () => object().shape({
|
|
10
10
|
[FieldConstants.SWITCH_KIND]: string().nullable().required(YUP_REQUIRED)
|
|
11
11
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export { SwitchesBetweenSections } from './SwitchesBetweenSections';
|