@gridsuite/commons-ui 0.269.0 → 0.271.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/ui/dialogs/customMuiDialog/CustomMuiDialog.d.ts +10 -3
- package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.js +33 -28
- package/dist/features/index.js +96 -3
- package/dist/features/network-modifications/common/branch/branchCreation.types.d.ts +26 -0
- package/dist/features/network-modifications/common/branch/branchModification.types.d.ts +36 -0
- package/dist/features/network-modifications/common/branch/branchModification.types.js +1 -0
- package/dist/features/network-modifications/{line/characteristics/lineCharacteristicsPane.types.d.ts → common/branch/index.d.ts} +2 -8
- package/dist/features/network-modifications/common/branch/index.js +1 -0
- package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.d.ts +2 -0
- package/dist/features/network-modifications/common/currentLimits/limits.types.d.ts +1 -0
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.d.ts +2 -2
- package/dist/features/network-modifications/common/index.d.ts +1 -0
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.d.ts +2 -2
- package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js +2 -2
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +96 -3
- package/dist/features/network-modifications/line/characteristics/index.d.ts +0 -1
- package/dist/features/network-modifications/line/characteristics/index.js +1 -2
- package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.d.ts +4 -19
- package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +0 -14
- package/dist/features/network-modifications/line/creation/lineCreation.types.d.ts +6 -26
- package/dist/features/network-modifications/line/index.js +1 -2
- package/dist/features/network-modifications/line/modification/lineModification.types.d.ts +3 -35
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.d.ts +7 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js +168 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.d.ts +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.js +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.d.ts +41 -0
- package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js +51 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js +123 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js +89 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.d.ts +14 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js +118 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js +47 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/index.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/index.js +13 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.d.ts +87 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.d.ts +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.js +50 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/index.d.ts +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/index.js +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.d.ts +47 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js +8 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.d.ts +248 -0
- package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js +325 -0
- package/dist/features/network-modifications/twoWindingsTransformer/index.d.ts +11 -0
- package/dist/features/network-modifications/twoWindingsTransformer/index.js +88 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/index.js +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js +104 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.js +7 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.d.ts +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js +18 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.d.ts +39 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.d.ts +265 -0
- package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js +100 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.d.ts +13 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js +130 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.d.ts +20 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js +311 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.js +53 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.d.ts +2 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js +198 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js +201 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.js +15 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.d.ts +114 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js +242 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.d.ts +2 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js +283 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js +181 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.js +18 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.d.ts +132 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js +211 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.d.ts +2 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js +102 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.d.ts +7 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js +22 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.d.ts +6 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js +86 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.d.ts +10 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js +140 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.js +13 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.d.ts +12 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.js +1 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.d.ts +9 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js +19 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.d.ts +14 -0
- package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.js +79 -0
- package/dist/features/network-modifications/voltageLevel/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/index.js +9 -1
- package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +375 -0
- package/dist/features/network-modifications/voltageLevel/section/index.d.ts +9 -0
- package/dist/features/network-modifications/voltageLevel/section/index.js +10 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.types.d.ts +15 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.d.ts +48 -0
- package/dist/features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js +100 -0
- package/dist/index.js +107 -7
- package/dist/translations/en/filterExpertEn.d.ts +0 -3
- package/dist/translations/en/filterExpertEn.js +0 -3
- package/dist/translations/en/network-modification-validationEn.d.ts +1 -0
- package/dist/translations/en/network-modification-validationEn.js +2 -1
- package/dist/translations/en/networkModificationsEn.d.ts +87 -9
- package/dist/translations/en/networkModificationsEn.js +91 -12
- package/dist/translations/fr/filterExpertFr.d.ts +0 -3
- package/dist/translations/fr/filterExpertFr.js +0 -3
- package/dist/translations/fr/network-modification-validationFr.d.ts +1 -0
- package/dist/translations/fr/network-modification-validationFr.js +2 -1
- package/dist/translations/fr/networkModificationsFr.d.ts +87 -9
- package/dist/translations/fr/networkModificationsFr.js +91 -12
- package/dist/utils/constants/fieldConstants.d.ts +37 -0
- package/dist/utils/constants/fieldConstants.js +37 -0
- package/dist/utils/constants/index.js +2 -1
- package/dist/utils/constants/translationKeys.d.ts +1 -0
- package/dist/utils/constants/translationKeys.js +2 -0
- package/dist/utils/functions.d.ts +9 -0
- package/dist/utils/functions.js +40 -0
- package/dist/utils/index.js +11 -4
- package/dist/utils/langs.d.ts +1 -0
- package/dist/utils/langs.js +9 -1
- package/dist/utils/types/equipmentType.d.ts +34 -0
- package/dist/utils/types/equipmentType.js +28 -0
- package/dist/utils/types/index.js +4 -1
- package/package.json +1 -1
- /package/dist/features/network-modifications/{line/characteristics/lineCharacteristicsPane.types.js → common/branch/branchCreation.types.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { FieldErrors, FieldValues, SubmitHandler } from 'react-hook-form';
|
|
3
|
-
import { DialogProps } from '@mui/material';
|
|
3
|
+
import { Breakpoint, DialogProps } from '@mui/material';
|
|
4
4
|
import { MergedFormContextProps } from '../../../ui/reactHookForm/provider/CustomFormProvider';
|
|
5
5
|
export type CustomMuiDialogProps<T extends FieldValues = FieldValues> = DialogProps & {
|
|
6
6
|
open: boolean;
|
|
@@ -15,6 +15,7 @@ export type CustomMuiDialogProps<T extends FieldValues = FieldValues> = DialogPr
|
|
|
15
15
|
isDataFetching?: boolean;
|
|
16
16
|
confirmationMessageKey?: string;
|
|
17
17
|
unscrollableFullHeight?: boolean;
|
|
18
|
+
dialogWidth?: Breakpoint;
|
|
18
19
|
};
|
|
19
20
|
/**
|
|
20
21
|
* all those styles are made to work with each other in order to control the scroll behavior:
|
|
@@ -26,13 +27,19 @@ export type CustomMuiDialogProps<T extends FieldValues = FieldValues> = DialogPr
|
|
|
26
27
|
* </fullHeightDialog>
|
|
27
28
|
*/
|
|
28
29
|
export declare const unscrollableDialogStyles: {
|
|
29
|
-
readonly
|
|
30
|
+
readonly fullHeightDialogWithWidth: {
|
|
30
31
|
readonly '.MuiDialog-paper': {
|
|
31
32
|
readonly minWidth: "90vw";
|
|
32
33
|
readonly margin: "auto";
|
|
33
34
|
readonly height: "95vh";
|
|
34
35
|
};
|
|
35
36
|
};
|
|
37
|
+
readonly fullHeightDialog: {
|
|
38
|
+
readonly '.MuiDialog-paper': {
|
|
39
|
+
readonly margin: "auto";
|
|
40
|
+
readonly height: "95vh";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
36
43
|
readonly unscrollableContainer: {
|
|
37
44
|
readonly display: "flex";
|
|
38
45
|
readonly flexDirection: "column";
|
|
@@ -48,4 +55,4 @@ export declare const unscrollableDialogStyles: {
|
|
|
48
55
|
readonly padding: 1;
|
|
49
56
|
};
|
|
50
57
|
};
|
|
51
|
-
export declare function CustomMuiDialog<T extends FieldValues = FieldValues>({ open, formContext, onClose, onSave, isDataFetching, onValidationError, titleId, disabledSave, onCancel, children, confirmationMessageKey, unscrollableFullHeight, ...dialogProps }: Readonly<CustomMuiDialogProps<T>>): import("react").JSX.Element;
|
|
58
|
+
export declare function CustomMuiDialog<T extends FieldValues = FieldValues>({ open, formContext, onClose, onSave, isDataFetching, onValidationError, titleId, disabledSave, onCancel, children, dialogWidth, confirmationMessageKey, unscrollableFullHeight, ...dialogProps }: Readonly<CustomMuiDialogProps<T>>): import("react").JSX.Element;
|
|
@@ -16,13 +16,19 @@ const styles = {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
const unscrollableDialogStyles = {
|
|
19
|
-
|
|
19
|
+
fullHeightDialogWithWidth: {
|
|
20
20
|
".MuiDialog-paper": {
|
|
21
21
|
minWidth: "90vw",
|
|
22
22
|
margin: "auto",
|
|
23
23
|
height: "95vh"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
+
fullHeightDialog: {
|
|
27
|
+
".MuiDialog-paper": {
|
|
28
|
+
margin: "auto",
|
|
29
|
+
height: "95vh"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
26
32
|
unscrollableContainer: {
|
|
27
33
|
display: "flex",
|
|
28
34
|
flexDirection: "column",
|
|
@@ -49,6 +55,7 @@ function CustomMuiDialog({
|
|
|
49
55
|
disabledSave,
|
|
50
56
|
onCancel,
|
|
51
57
|
children,
|
|
58
|
+
dialogWidth,
|
|
52
59
|
confirmationMessageKey,
|
|
53
60
|
unscrollableFullHeight = false,
|
|
54
61
|
...dialogProps
|
|
@@ -98,34 +105,32 @@ function CustomMuiDialog({
|
|
|
98
105
|
},
|
|
99
106
|
[onValidationError]
|
|
100
107
|
);
|
|
108
|
+
let dialogSx;
|
|
109
|
+
if (unscrollableFullHeight && dialogWidth) {
|
|
110
|
+
dialogSx = unscrollableDialogStyles.fullHeightDialog;
|
|
111
|
+
} else if (unscrollableFullHeight) {
|
|
112
|
+
dialogSx = unscrollableDialogStyles.fullHeightDialogWithWidth;
|
|
113
|
+
} else if (!dialogWidth) {
|
|
114
|
+
dialogSx = styles.dialogPaper;
|
|
115
|
+
}
|
|
101
116
|
return /* @__PURE__ */ jsxs(CustomFormProvider, { ...formContext, children: [
|
|
102
|
-
/* @__PURE__ */ jsxs(
|
|
103
|
-
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
variant: "outlined",
|
|
120
|
-
disabled: disabledSave,
|
|
121
|
-
onClick: formContext?.handleSubmit(handleValidate, handleValidationError),
|
|
122
|
-
"data-testid": "ValidateButton"
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
] })
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
),
|
|
117
|
+
/* @__PURE__ */ jsxs(Dialog, { sx: dialogSx, open, onClose: handleClose, fullWidth: true, maxWidth: dialogWidth, ...dialogProps, children: [
|
|
118
|
+
isDataFetching && /* @__PURE__ */ jsx(LinearProgress, {}),
|
|
119
|
+
/* @__PURE__ */ jsx(DialogTitle, { "data-testid": "DialogTitle", children: /* @__PURE__ */ jsx(FormattedMessage, { id: titleId }) }),
|
|
120
|
+
/* @__PURE__ */ jsx(DialogContent, { sx: unscrollableFullHeight ? unscrollableDialogStyles.unscrollableContainer : null, children }),
|
|
121
|
+
/* @__PURE__ */ jsxs(DialogActions, { children: [
|
|
122
|
+
/* @__PURE__ */ jsx(CancelButton, { onClick: handleCancel, "data-testid": "CancelButton" }),
|
|
123
|
+
/* @__PURE__ */ jsx(
|
|
124
|
+
SubmitButton,
|
|
125
|
+
{
|
|
126
|
+
variant: "outlined",
|
|
127
|
+
disabled: disabledSave,
|
|
128
|
+
onClick: formContext?.handleSubmit(handleValidate, handleValidationError),
|
|
129
|
+
"data-testid": "ValidateButton"
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] })
|
|
133
|
+
] }),
|
|
129
134
|
confirmationMessageKey && /* @__PURE__ */ jsx(
|
|
130
135
|
PopupConfirmationDialog,
|
|
131
136
|
{
|
package/dist/features/index.js
CHANGED
|
@@ -166,6 +166,8 @@ import { VoltageLevelModificationForm } from "./network-modifications/voltageLev
|
|
|
166
166
|
import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
|
|
167
167
|
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
|
|
168
168
|
import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
|
|
169
|
+
import { VoltageLevelSectionCreationForm } from "./network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js";
|
|
170
|
+
import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js";
|
|
169
171
|
import { LOAD_TAB_FIELDS, LoadDialogTab } from "./network-modifications/load/common/load.utils.js";
|
|
170
172
|
import { LoadDialogTabs } from "./network-modifications/load/common/LoadDialogTabs.js";
|
|
171
173
|
import { LoadDialogTabsContent } from "./network-modifications/load/common/LoadDialogTabsContent.js";
|
|
@@ -205,7 +207,7 @@ import { ShuntCompensatorCreationForm } from "./network-modifications/shunt-comp
|
|
|
205
207
|
import { shuntCompensatorCreationDtoToForm, shuntCompensatorCreationEmptyFormData, shuntCompensatorCreationFormSchema, shuntCompensatorCreationFormToDto } from "./network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js";
|
|
206
208
|
import { ShuntCompensatorModificationForm } from "./network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js";
|
|
207
209
|
import { shuntCompensatorModificationDtoToForm, shuntCompensatorModificationEmptyFormData, shuntCompensatorModificationFormSchema, shuntCompensatorModificationFormToDto } from "./network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js";
|
|
208
|
-
import {
|
|
210
|
+
import { getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./network-modifications/line/characteristics/lineCharacteristicsPane.utils.js";
|
|
209
211
|
import { LineCharacteristicsPane } from "./network-modifications/line/characteristics/LineCharacteristicsPane.js";
|
|
210
212
|
import { CATEGORIES_TABS } from "./network-modifications/line/catalog/lineCatalog.type.js";
|
|
211
213
|
import { LineSegmentsInfoSchema, SegmentCurrentLimitsSchema, SegmentInfoSchema, SegmentSchema, SegmentTemporaryLimitSchema, convertLimitsToOperationalLimitsGroupFormSchema, convertToLineSegmentInfos, convertToLineSegmentsFormData, emptyLineSegment } from "./network-modifications/line/catalog/segment.utils.js";
|
|
@@ -216,6 +218,32 @@ import { LineDialogHeader } from "./network-modifications/line/common/LineDialog
|
|
|
216
218
|
import { LineForm } from "./network-modifications/line/common/LineForm.js";
|
|
217
219
|
import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./network-modifications/line/creation/lineCreation.utils.js";
|
|
218
220
|
import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./network-modifications/line/modification/lineModification.utils.js";
|
|
221
|
+
import { TWT_TAB_FIELDS, TwoWindingsTransformerDialogTab } from "./network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.js";
|
|
222
|
+
import { TwoWindingsTransformerDialogHeader } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js";
|
|
223
|
+
import { TwoWindingsTransformerDialogTabs } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js";
|
|
224
|
+
import { TwoWindingsTransformerDialogTabsContent } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js";
|
|
225
|
+
import { TwoWindingsTransformerForm } from "./network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js";
|
|
226
|
+
import { getTwtCharacteristicsEmptyFormData, getTwtCharacteristicsFormData, getTwtCharacteristicsValidationSchemaProps } from "./network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js";
|
|
227
|
+
import { TwoWindingsTransformerCharacteristicsPane } from "./network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js";
|
|
228
|
+
import { compareStepsWithPreviousValues, computeHighTapPosition, getRegulationTypeLabel, getTapChangerEquipmentSectionTypeValue, getTapSideLabel, toTapChangerStepList } from "./network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.js";
|
|
229
|
+
import { getCreateRuleEmptyFormData, getCreateRuleValidationSchema } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js";
|
|
230
|
+
import { CreateRuleDialogSubmitButton } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js";
|
|
231
|
+
import { CreateRuleForm } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js";
|
|
232
|
+
import { CreateRuleDialog } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js";
|
|
233
|
+
import { ImportRuleDialog } from "./network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js";
|
|
234
|
+
import { getComputedPhaseRegulationType, getComputedPhaseRegulationTypeId, getComputedPhaseTapChangerRegulationMode, getComputedPreviousPhaseRegulationType, getPhaseTapChangerEmptyFormData, getPhaseTapChangerFormData, getPhaseTapChangerValidationSchemaProps, getPhaseTapRegulationSideId } from "./network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js";
|
|
235
|
+
import { PhaseTapChangerPaneSteps } from "./network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js";
|
|
236
|
+
import { PhaseTapChangerPane } from "./network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js";
|
|
237
|
+
import { getComputedPreviousRatioRegulationType, getComputedRegulationMode, getComputedRegulationModeId, getComputedRegulationType, getComputedRegulationTypeId, getComputedTapSide, getComputedTapSideId, getInitialTwtRatioRegulationModeId, getRatioTapChangerEmptyFormData, getRatioTapChangerFormData, getRatioTapChangerValidationSchemaProps } from "./network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js";
|
|
238
|
+
import { RatioTapChangerPaneSteps } from "./network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js";
|
|
239
|
+
import { RatioTapChangerPane } from "./network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js";
|
|
240
|
+
import { RegulatedTerminalSection } from "./network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js";
|
|
241
|
+
import { TapChangerSteps } from "./network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js";
|
|
242
|
+
import { PhaseTapChangerRegulationMode } from "./network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js";
|
|
243
|
+
import { computeRatioTapChangerRegulationMode, getRegulationTypeForEdit, getTapSideForEdit, twoWindingsTransformerCreationDtoToForm, twoWindingsTransformerCreationEmptyFormData, twoWindingsTransformerCreationFormSchema, twoWindingsTransformerCreationFormToDto } from "./network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js";
|
|
244
|
+
import { twoWindingsTransformerModificationEmptyFormData, twoWindingsTransformerModificationFormSchema } from "./network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js";
|
|
245
|
+
import { getToBeEstimatedValidationSchemaObject, toBeEstimatedEmptyFormData } from "./network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js";
|
|
246
|
+
import { ToBeEstimatedForm } from "./network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js";
|
|
219
247
|
import { StaticVarCompensatorDialogHeader } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js";
|
|
220
248
|
import { StaticVarCompensatorDialogTabs } from "./network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js";
|
|
221
249
|
import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js";
|
|
@@ -325,6 +353,9 @@ export {
|
|
|
325
353
|
ContingencyTable,
|
|
326
354
|
CouplingDeviceCreationForm,
|
|
327
355
|
CreateParameterDialog,
|
|
356
|
+
CreateRuleDialog,
|
|
357
|
+
CreateRuleDialogSubmitButton,
|
|
358
|
+
CreateRuleForm,
|
|
328
359
|
CreateVoltageLevelTopologyForm,
|
|
329
360
|
CustomVoltageLevelTable,
|
|
330
361
|
CustomVoltageLevelTableCell,
|
|
@@ -389,6 +420,7 @@ export {
|
|
|
389
420
|
INTL_LINE_FLOW_MODE_OPTIONS,
|
|
390
421
|
INTL_SUBSTATION_LAYOUT_OPTIONS,
|
|
391
422
|
IST_FORM,
|
|
423
|
+
ImportRuleDialog,
|
|
392
424
|
InitialVoltage,
|
|
393
425
|
LEG_SIDE,
|
|
394
426
|
LFProcessConfigEditionDialog,
|
|
@@ -490,6 +522,7 @@ export {
|
|
|
490
522
|
PARAM_STATE_ESTIMATION,
|
|
491
523
|
PARAM_SUBSTATION_LAYOUT,
|
|
492
524
|
PHASE_SHIFTER_REGULATION_ON,
|
|
525
|
+
POSITION_NEW_SECTION_SIDE,
|
|
493
526
|
PRIORITY,
|
|
494
527
|
PROVIDER,
|
|
495
528
|
PSTS_EQUIPMENT_TYPES,
|
|
@@ -502,6 +535,9 @@ export {
|
|
|
502
535
|
ParameterSwitch,
|
|
503
536
|
PccMinParametersEditionDialog,
|
|
504
537
|
PccMinParametersInLine,
|
|
538
|
+
PhaseTapChangerPane,
|
|
539
|
+
PhaseTapChangerPaneSteps,
|
|
540
|
+
PhaseTapChangerRegulationMode,
|
|
505
541
|
PowerMeasurementsForm,
|
|
506
542
|
PowerWithValidityForm,
|
|
507
543
|
PredefinedParameters,
|
|
@@ -521,10 +557,13 @@ export {
|
|
|
521
557
|
REGULATION_TYPES,
|
|
522
558
|
REMOVE,
|
|
523
559
|
RESULTS_LOADING_DELAY,
|
|
560
|
+
RatioTapChangerPane,
|
|
561
|
+
RatioTapChangerPaneSteps,
|
|
524
562
|
ReactiveCapabilityCurveRowForm,
|
|
525
563
|
ReactiveCapabilityCurveTableForm,
|
|
526
564
|
ReactiveLimitsForm,
|
|
527
565
|
ReferenceCellRenderer,
|
|
566
|
+
RegulatedTerminalSection,
|
|
528
567
|
RegulatingTerminalForm,
|
|
529
568
|
RenderTableAndExportCsv,
|
|
530
569
|
RootNetworkCellRenderer,
|
|
@@ -599,10 +638,19 @@ export {
|
|
|
599
638
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
600
639
|
TRANSFORMERS_SELECTION_TYPE,
|
|
601
640
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
641
|
+
TWT_TAB_FIELDS,
|
|
602
642
|
TabPanel,
|
|
603
643
|
TabValues,
|
|
644
|
+
TapChangerSteps,
|
|
604
645
|
TemporaryLimitsTable,
|
|
646
|
+
ToBeEstimatedForm,
|
|
605
647
|
TopBar,
|
|
648
|
+
TwoWindingsTransformerCharacteristicsPane,
|
|
649
|
+
TwoWindingsTransformerDialogHeader,
|
|
650
|
+
TwoWindingsTransformerDialogTab,
|
|
651
|
+
TwoWindingsTransformerDialogTabs,
|
|
652
|
+
TwoWindingsTransformerDialogTabsContent,
|
|
653
|
+
TwoWindingsTransformerForm,
|
|
606
654
|
UPDATE_BUS_VOLTAGE,
|
|
607
655
|
USE_REACTIVE_LIMITS,
|
|
608
656
|
UnauthorizedAccessAlert,
|
|
@@ -624,6 +672,7 @@ export {
|
|
|
624
672
|
VoltageLevelConnectivityForm,
|
|
625
673
|
VoltageLevelCreationForm,
|
|
626
674
|
VoltageLevelModificationForm,
|
|
675
|
+
VoltageLevelSectionCreationForm,
|
|
627
676
|
VoltageRegulationForm,
|
|
628
677
|
WRITE_SLACK_BUS,
|
|
629
678
|
addGlobalFilterId,
|
|
@@ -646,7 +695,10 @@ export {
|
|
|
646
695
|
byFilterDeletionFormSchema,
|
|
647
696
|
byFilterDeletionFormToDto,
|
|
648
697
|
clearSelectedGlobalFiltersFromTableState,
|
|
698
|
+
compareStepsWithPreviousValues,
|
|
699
|
+
computeHighTapPosition,
|
|
649
700
|
computeQ0,
|
|
701
|
+
computeRatioTapChangerRegulationMode,
|
|
650
702
|
computeSwitchedOnValue,
|
|
651
703
|
computeTagMinSize,
|
|
652
704
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
@@ -727,7 +779,17 @@ export {
|
|
|
727
779
|
getCharacteristicsEmptyFormData,
|
|
728
780
|
getCharacteristicsFormData,
|
|
729
781
|
getCharacteristicsFormValidationSchema,
|
|
730
|
-
|
|
782
|
+
getComputedPhaseRegulationType,
|
|
783
|
+
getComputedPhaseRegulationTypeId,
|
|
784
|
+
getComputedPhaseTapChangerRegulationMode,
|
|
785
|
+
getComputedPreviousPhaseRegulationType,
|
|
786
|
+
getComputedPreviousRatioRegulationType,
|
|
787
|
+
getComputedRegulationMode,
|
|
788
|
+
getComputedRegulationModeId,
|
|
789
|
+
getComputedRegulationType,
|
|
790
|
+
getComputedRegulationTypeId,
|
|
791
|
+
getComputedTapSide,
|
|
792
|
+
getComputedTapSideId,
|
|
731
793
|
getCon1andCon2WithPositionValidationSchema,
|
|
732
794
|
getConcatenatedProperties,
|
|
733
795
|
getConnectivityBusBarSectionData,
|
|
@@ -746,6 +808,8 @@ export {
|
|
|
746
808
|
getConnectivityWithoutPositionValidationSchema,
|
|
747
809
|
getCont1Cont2WithPositionEmptyFormData,
|
|
748
810
|
getContingencyListsInfosFormSchema,
|
|
811
|
+
getCreateRuleEmptyFormData,
|
|
812
|
+
getCreateRuleValidationSchema,
|
|
749
813
|
getCreateSwitchesEmptyFormData,
|
|
750
814
|
getCreateSwitchesValidationSchema,
|
|
751
815
|
getFilledPropertiesFromModification,
|
|
@@ -753,6 +817,7 @@ export {
|
|
|
753
817
|
getFormulaSchema,
|
|
754
818
|
getGlobalFilterId,
|
|
755
819
|
getHvdcLccDeletionSchema,
|
|
820
|
+
getInitialTwtRatioRegulationModeId,
|
|
756
821
|
getInjectionActiveReactivePowerEditDataProperties,
|
|
757
822
|
getInjectionActiveReactivePowerEmptyFormData,
|
|
758
823
|
getInjectionActiveReactivePowerEmptyFormDataProperties,
|
|
@@ -769,6 +834,10 @@ export {
|
|
|
769
834
|
getNewVoltageLevelData,
|
|
770
835
|
getNoRowsMessage,
|
|
771
836
|
getOptionLabel,
|
|
837
|
+
getPhaseTapChangerEmptyFormData,
|
|
838
|
+
getPhaseTapChangerFormData,
|
|
839
|
+
getPhaseTapChangerValidationSchemaProps,
|
|
840
|
+
getPhaseTapRegulationSideId,
|
|
772
841
|
getPowerWithValidityEditData,
|
|
773
842
|
getPowerWithValidityEmptyFormData,
|
|
774
843
|
getPowerWithValidityValidationSchema,
|
|
@@ -778,6 +847,9 @@ export {
|
|
|
778
847
|
getPropertiesFromModification,
|
|
779
848
|
getPropertyAvatar,
|
|
780
849
|
getPropertyValue,
|
|
850
|
+
getRatioTapChangerEmptyFormData,
|
|
851
|
+
getRatioTapChangerFormData,
|
|
852
|
+
getRatioTapChangerValidationSchemaProps,
|
|
781
853
|
getReactiveCapabilityCurveValidationSchema,
|
|
782
854
|
getReactiveCapabilityCurveValidationSchemaArray,
|
|
783
855
|
getReactiveFormData,
|
|
@@ -794,6 +866,8 @@ export {
|
|
|
794
866
|
getRegulatingTerminalEquipmentData,
|
|
795
867
|
getRegulatingTerminalFormData,
|
|
796
868
|
getRegulatingTerminalVoltageLevelData,
|
|
869
|
+
getRegulationTypeForEdit,
|
|
870
|
+
getRegulationTypeLabel,
|
|
797
871
|
getRowEmptyFormData,
|
|
798
872
|
getSetPointsEmptyFormData,
|
|
799
873
|
getSetPointsSchema,
|
|
@@ -805,6 +879,13 @@ export {
|
|
|
805
879
|
getStandbyAutomatonFormValidationSchema,
|
|
806
880
|
getTabIndicatorStyle,
|
|
807
881
|
getTabStyle,
|
|
882
|
+
getTapChangerEquipmentSectionTypeValue,
|
|
883
|
+
getTapSideForEdit,
|
|
884
|
+
getTapSideLabel,
|
|
885
|
+
getToBeEstimatedValidationSchemaObject,
|
|
886
|
+
getTwtCharacteristicsEmptyFormData,
|
|
887
|
+
getTwtCharacteristicsFormData,
|
|
888
|
+
getTwtCharacteristicsValidationSchemaProps,
|
|
808
889
|
getVoltageRegulationEmptyFormData,
|
|
809
890
|
getVoltageRegulationSchema,
|
|
810
891
|
handlePostSortRows,
|
|
@@ -892,12 +973,20 @@ export {
|
|
|
892
973
|
substationModificationFormToDto,
|
|
893
974
|
syncGlobalFilters,
|
|
894
975
|
testValueWithinPowerInterval,
|
|
976
|
+
toBeEstimatedEmptyFormData,
|
|
895
977
|
toFormValuesContingencyListsInfos,
|
|
896
978
|
toFormValuesLimitReductions,
|
|
897
979
|
toModificationProperties,
|
|
898
980
|
toReactiveCapabilityCurveChoiceForGeneratorCreation,
|
|
899
981
|
toReactiveCapabilityCurveChoiceForGeneratorModification,
|
|
982
|
+
toTapChangerStepList,
|
|
900
983
|
translateSwitchKinds,
|
|
984
|
+
twoWindingsTransformerCreationDtoToForm,
|
|
985
|
+
twoWindingsTransformerCreationEmptyFormData,
|
|
986
|
+
twoWindingsTransformerCreationFormSchema,
|
|
987
|
+
twoWindingsTransformerCreationFormToDto,
|
|
988
|
+
twoWindingsTransformerModificationEmptyFormData,
|
|
989
|
+
twoWindingsTransformerModificationFormSchema,
|
|
901
990
|
unmarkEditingGlobalFilter,
|
|
902
991
|
updateModificationFieldInTree,
|
|
903
992
|
updateSubModificationsOfACompositeInTree,
|
|
@@ -921,5 +1010,9 @@ export {
|
|
|
921
1010
|
voltageLevelModificationFormToDto,
|
|
922
1011
|
voltageLevelModificationWithMeasurementsDtoToForm,
|
|
923
1012
|
voltageLevelModificationWithMeasurementsFormSchema,
|
|
924
|
-
voltageLevelModificationWithMeasurementsFormToDto
|
|
1013
|
+
voltageLevelModificationWithMeasurementsFormToDto,
|
|
1014
|
+
voltageLevelSectionCreationDtoToForm,
|
|
1015
|
+
voltageLevelSectionCreationEmptyFormData,
|
|
1016
|
+
voltageLevelSectionCreationFormSchema,
|
|
1017
|
+
voltageLevelSectionCreationFormToDto
|
|
925
1018
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ModificationType } from '../../../../utils';
|
|
2
|
+
import { Property } from '../../common/properties/properties.type';
|
|
3
|
+
import { OperationalLimitsGroupFormSchema } from '../../common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types';
|
|
4
|
+
export interface BranchCreationDto {
|
|
5
|
+
type: ModificationType;
|
|
6
|
+
equipmentId: string;
|
|
7
|
+
equipmentName: string | null;
|
|
8
|
+
properties: Property[] | null;
|
|
9
|
+
r: number | null;
|
|
10
|
+
x: number | null;
|
|
11
|
+
voltageLevelId1: string | null;
|
|
12
|
+
voltageLevelId2: string | null;
|
|
13
|
+
busOrBusbarSectionId1: string | null;
|
|
14
|
+
busOrBusbarSectionId2: string | null;
|
|
15
|
+
operationalLimitsGroups: OperationalLimitsGroupFormSchema[];
|
|
16
|
+
selectedOperationalLimitsGroupId1?: string | null;
|
|
17
|
+
selectedOperationalLimitsGroupId2?: string | null;
|
|
18
|
+
connectionName1: string | null;
|
|
19
|
+
connectionDirection1?: string | null;
|
|
20
|
+
connectionName2: string | null;
|
|
21
|
+
connectionDirection2?: string | null;
|
|
22
|
+
connectionPosition1?: number | null;
|
|
23
|
+
connectionPosition2?: number | null;
|
|
24
|
+
connected1?: boolean | null;
|
|
25
|
+
connected2?: boolean | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Property } from '../../common/properties/properties.type';
|
|
2
|
+
import { AttributeModification, ModificationType } from '../../../../utils';
|
|
3
|
+
import { OperationalLimitsGroup } from '../../common/currentLimits/operationalLimitsGroups/operationalLimitsGroups.types';
|
|
4
|
+
export interface BranchModificationDto {
|
|
5
|
+
type: ModificationType;
|
|
6
|
+
equipmentId: string;
|
|
7
|
+
equipmentName: AttributeModification<string> | null;
|
|
8
|
+
properties: Property[] | null;
|
|
9
|
+
r: AttributeModification<number> | null;
|
|
10
|
+
x: AttributeModification<number> | null;
|
|
11
|
+
operationalLimitsGroupsModificationType: 'MODIFY' | 'REPLACE' | null;
|
|
12
|
+
enableOLGModification: boolean;
|
|
13
|
+
operationalLimitsGroups: OperationalLimitsGroup[];
|
|
14
|
+
selectedOperationalLimitsGroupId1: AttributeModification<string> | null;
|
|
15
|
+
selectedOperationalLimitsGroupId2: AttributeModification<string> | null;
|
|
16
|
+
voltageLevelId1: AttributeModification<string> | null;
|
|
17
|
+
voltageLevelId2: AttributeModification<string> | null;
|
|
18
|
+
busOrBusbarSectionId1: AttributeModification<string> | null;
|
|
19
|
+
busOrBusbarSectionId2: AttributeModification<string> | null;
|
|
20
|
+
connectionName1: AttributeModification<string> | null;
|
|
21
|
+
connectionName2: AttributeModification<string> | null;
|
|
22
|
+
connectionDirection1: AttributeModification<string> | null;
|
|
23
|
+
connectionDirection2: AttributeModification<string> | null;
|
|
24
|
+
connectionPosition1: AttributeModification<number> | null;
|
|
25
|
+
connectionPosition2: AttributeModification<number> | null;
|
|
26
|
+
terminal1Connected: AttributeModification<boolean> | null;
|
|
27
|
+
terminal2Connected: AttributeModification<boolean> | null;
|
|
28
|
+
p1MeasurementValue: AttributeModification<number> | null;
|
|
29
|
+
p1MeasurementValidity: AttributeModification<boolean> | null;
|
|
30
|
+
q1MeasurementValue: AttributeModification<number> | null;
|
|
31
|
+
q1MeasurementValidity: AttributeModification<boolean> | null;
|
|
32
|
+
p2MeasurementValue: AttributeModification<number> | null;
|
|
33
|
+
p2MeasurementValidity: AttributeModification<boolean> | null;
|
|
34
|
+
q2MeasurementValue: AttributeModification<number> | null;
|
|
35
|
+
q2MeasurementValidity: AttributeModification<boolean> | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -4,11 +4,5 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
x: number | null;
|
|
10
|
-
g1: number | null;
|
|
11
|
-
b1: number | null;
|
|
12
|
-
g2: number | null;
|
|
13
|
-
b2: number | null;
|
|
14
|
-
}
|
|
7
|
+
export * from './branchCreation.types';
|
|
8
|
+
export * from './branchModification.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InferType } from 'yup';
|
|
1
2
|
import { VoltageLevelFormInfos } from '../../voltageLevel/voltage-level.type';
|
|
2
3
|
import { FieldConstants } from '../../../../utils';
|
|
3
4
|
export declare const getConnectivityPropertiesValidationSchema: (isEquipmentModification?: boolean, displayConnectivity?: boolean) => {
|
|
@@ -111,6 +112,7 @@ export declare const getBranchConnectivityWithPositionSchema: (isEquipmentModifi
|
|
|
111
112
|
terminalConnected: undefined;
|
|
112
113
|
};
|
|
113
114
|
}, "">;
|
|
115
|
+
export type BranchConnectivityFormData = InferType<ReturnType<typeof getBranchConnectivityWithPositionSchema>>;
|
|
114
116
|
export declare const getCon1andCon2WithPositionValidationSchema: (isEquipmentModification?: boolean, id?: FieldConstants) => {
|
|
115
117
|
[x: string]: import('yup').ObjectSchema<{
|
|
116
118
|
[x: string]: {
|
|
@@ -35,6 +35,7 @@ export interface CurrentLimitsData {
|
|
|
35
35
|
limitsProperties?: LimitsProperty[];
|
|
36
36
|
permanentLimit: number;
|
|
37
37
|
temporaryLimits: TemporaryLimitsData[];
|
|
38
|
+
temporaryLimitsByName?: Record<string, TemporaryLimitsData>;
|
|
38
39
|
}
|
|
39
40
|
export interface Limit {
|
|
40
41
|
name: AttributeModification<string> | null;
|
|
@@ -172,8 +172,8 @@ export declare const getAllLimitsFormDataProperties: (operationalLimitsGroups?:
|
|
|
172
172
|
selectedOperationalLimitsGroupId2: string | null;
|
|
173
173
|
enableOLGModification: boolean;
|
|
174
174
|
};
|
|
175
|
-
export declare const getAllLimitsFormData: (operationalLimitsGroups?: OperationalLimitsGroupFormSchema[], selectedOperationalLimitsGroupId1?: string | null, selectedOperationalLimitsGroupId2?: string | null, enableOLGModification?: boolean | null, id?: FieldConstants) => {
|
|
176
|
-
|
|
175
|
+
export declare const getAllLimitsFormData: (operationalLimitsGroups?: OperationalLimitsGroupFormSchema[], selectedOperationalLimitsGroupId1?: string | null, selectedOperationalLimitsGroupId2?: string | null, enableOLGModification?: boolean | null, id?: typeof FieldConstants.LIMITS) => {
|
|
176
|
+
limits: {
|
|
177
177
|
operationalLimitsGroups: OperationalLimitsGroupFormSchema[];
|
|
178
178
|
selectedOperationalLimitsGroupId1: string | null;
|
|
179
179
|
selectedOperationalLimitsGroupId2: string | null;
|
|
@@ -3,9 +3,9 @@ import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js
|
|
|
3
3
|
import { YUP_REQUIRED } from "../../../../../utils/constants/translationKeys.js";
|
|
4
4
|
import "../../../../../utils/conversionUtils.js";
|
|
5
5
|
import "../../../../../utils/types/equipmentType.js";
|
|
6
|
+
import { validateValueIsANumber, toNumber } from "../../../../../utils/validation-functions.js";
|
|
6
7
|
import "react/jsx-runtime";
|
|
7
8
|
import "@mui/icons-material";
|
|
8
|
-
import { validateValueIsANumber, toNumber } from "../../../../../utils/validation-functions.js";
|
|
9
9
|
const INSERT = "INSERT";
|
|
10
10
|
const REMOVE = "REMOVE";
|
|
11
11
|
const getCreationRowSchema = () => object().shape({
|
package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.d.ts
CHANGED
|
@@ -30,13 +30,13 @@ export declare const getRegulatingTerminalEquipmentData: ({ equipmentId, equipme
|
|
|
30
30
|
name: string | null;
|
|
31
31
|
type: string;
|
|
32
32
|
} | null;
|
|
33
|
-
export declare const getRegulatingTerminalFormData: ({ voltageLevelId, voltageLevelName, voltageLevelNominalVoltage, voltageLevelSubstationId, voltageLevelTopologyKind,
|
|
33
|
+
export declare const getRegulatingTerminalFormData: ({ voltageLevelId, voltageLevelName, voltageLevelNominalVoltage, voltageLevelSubstationId, voltageLevelTopologyKind, equipmentID, equipmentName, equipmentType, }: {
|
|
34
34
|
voltageLevelId?: string | null;
|
|
35
35
|
voltageLevelName?: string;
|
|
36
36
|
voltageLevelSubstationId?: string;
|
|
37
37
|
voltageLevelNominalVoltage?: string;
|
|
38
38
|
voltageLevelTopologyKind?: string;
|
|
39
|
-
|
|
39
|
+
equipmentID?: string | null;
|
|
40
40
|
equipmentName?: string | null;
|
|
41
41
|
equipmentType?: string;
|
|
42
42
|
}) => {
|
package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js
CHANGED
|
@@ -46,7 +46,7 @@ const getRegulatingTerminalFormData = ({
|
|
|
46
46
|
voltageLevelNominalVoltage,
|
|
47
47
|
voltageLevelSubstationId,
|
|
48
48
|
voltageLevelTopologyKind,
|
|
49
|
-
|
|
49
|
+
equipmentID = null,
|
|
50
50
|
equipmentName,
|
|
51
51
|
equipmentType
|
|
52
52
|
}) => ({
|
|
@@ -58,7 +58,7 @@ const getRegulatingTerminalFormData = ({
|
|
|
58
58
|
voltageLevelTopologyKind
|
|
59
59
|
}),
|
|
60
60
|
[FieldConstants.EQUIPMENT]: getRegulatingTerminalEquipmentData({
|
|
61
|
-
equipmentId,
|
|
61
|
+
equipmentId: equipmentID,
|
|
62
62
|
equipmentName,
|
|
63
63
|
equipmentType
|
|
64
64
|
})
|