@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
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { object, boolean, string } from "yup";
|
|
2
|
+
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
3
|
+
import "../../../../utils/conversionUtils.js";
|
|
4
|
+
import "../../../../utils/types/equipmentType.js";
|
|
5
|
+
import { ModificationType } from "../../../../utils/types/modificationType.js";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "@mui/icons-material";
|
|
8
|
+
const POSITION_NEW_SECTION_SIDE = {
|
|
9
|
+
BEFORE: { id: "BEFORE", label: "Before" },
|
|
10
|
+
AFTER: { id: "AFTER", label: "After" }
|
|
11
|
+
};
|
|
12
|
+
const voltageLevelSectionCreationFormSchema = object().shape({
|
|
13
|
+
[FieldConstants.EQUIPMENT_ID]: string().required(),
|
|
14
|
+
[FieldConstants.BUS_BAR_INDEX]: object().nullable().required().shape({
|
|
15
|
+
[FieldConstants.ID]: string().nullable().required()
|
|
16
|
+
}),
|
|
17
|
+
[FieldConstants.BUSBAR_SECTION_ID]: object().nullable().required().shape({
|
|
18
|
+
[FieldConstants.ID]: string().nullable().required()
|
|
19
|
+
}),
|
|
20
|
+
[FieldConstants.IS_AFTER_BUSBAR_SECTION_ID]: string().nullable().required(),
|
|
21
|
+
[FieldConstants.SWITCHES_BEFORE_SECTIONS]: string().nullable().when([FieldConstants.IS_AFTER_BUSBAR_SECTION_ID, FieldConstants.SWITCH_BEFORE_NOT_REQUIRED], {
|
|
22
|
+
is: (isAfterBusBarSectionId, switchBeforeNotRequired) => isAfterBusBarSectionId === POSITION_NEW_SECTION_SIDE.BEFORE.id && switchBeforeNotRequired,
|
|
23
|
+
then: (schema) => schema.notRequired(),
|
|
24
|
+
otherwise: (schema) => schema.required()
|
|
25
|
+
}),
|
|
26
|
+
[FieldConstants.SWITCHES_AFTER_SECTIONS]: string().nullable().when([FieldConstants.IS_AFTER_BUSBAR_SECTION_ID, FieldConstants.SWITCH_AFTER_NOT_REQUIRED], {
|
|
27
|
+
is: (isAfterBusBarSectionId, switchAfterNotRequired) => isAfterBusBarSectionId === POSITION_NEW_SECTION_SIDE.AFTER.id && switchAfterNotRequired,
|
|
28
|
+
then: (schema) => schema.notRequired(),
|
|
29
|
+
otherwise: (schema) => schema.required()
|
|
30
|
+
}),
|
|
31
|
+
[FieldConstants.ALL_BUS_BAR_SECTIONS]: boolean(),
|
|
32
|
+
[FieldConstants.NEW_SWITCH_STATES]: boolean(),
|
|
33
|
+
[FieldConstants.SWITCH_BEFORE_NOT_REQUIRED]: boolean(),
|
|
34
|
+
[FieldConstants.SWITCH_AFTER_NOT_REQUIRED]: boolean()
|
|
35
|
+
}).required();
|
|
36
|
+
const voltageLevelSectionCreationEmptyFormData = {
|
|
37
|
+
[FieldConstants.EQUIPMENT_ID]: "",
|
|
38
|
+
[FieldConstants.BUS_BAR_INDEX]: null,
|
|
39
|
+
[FieldConstants.BUSBAR_SECTION_ID]: null,
|
|
40
|
+
[FieldConstants.IS_AFTER_BUSBAR_SECTION_ID]: null,
|
|
41
|
+
[FieldConstants.SWITCHES_BEFORE_SECTIONS]: null,
|
|
42
|
+
[FieldConstants.SWITCHES_AFTER_SECTIONS]: null,
|
|
43
|
+
[FieldConstants.ALL_BUS_BAR_SECTIONS]: false,
|
|
44
|
+
[FieldConstants.NEW_SWITCH_STATES]: true,
|
|
45
|
+
[FieldConstants.SWITCH_BEFORE_NOT_REQUIRED]: false,
|
|
46
|
+
[FieldConstants.SWITCH_AFTER_NOT_REQUIRED]: false
|
|
47
|
+
};
|
|
48
|
+
const getBusBarIndexValue = ({
|
|
49
|
+
busbarIndex,
|
|
50
|
+
allBusbars
|
|
51
|
+
}) => {
|
|
52
|
+
if (allBusbars) {
|
|
53
|
+
return { id: "all" };
|
|
54
|
+
}
|
|
55
|
+
return { id: busbarIndex ?? "" };
|
|
56
|
+
};
|
|
57
|
+
const getBusBarSectionValue = ({ busbarSectionId }) => {
|
|
58
|
+
return { id: busbarSectionId ?? "" };
|
|
59
|
+
};
|
|
60
|
+
const findBusbarKeyForSection = (busBarSectionInfos, sectionId) => {
|
|
61
|
+
if (!sectionId) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return Object.keys(busBarSectionInfos || {}).find((key) => busBarSectionInfos?.[key]?.includes(sectionId)) ?? null;
|
|
65
|
+
};
|
|
66
|
+
const voltageLevelSectionCreationDtoToForm = (dto) => {
|
|
67
|
+
return {
|
|
68
|
+
equipmentID: dto.voltageLevelId,
|
|
69
|
+
busbarIndex: getBusBarIndexValue({
|
|
70
|
+
busbarIndex: dto.busbarIndex,
|
|
71
|
+
allBusbars: dto.allBusbars
|
|
72
|
+
}),
|
|
73
|
+
allBusbarSections: dto.allBusbars ?? false,
|
|
74
|
+
busbarSectionId: getBusBarSectionValue({ busbarSectionId: dto.busbarSectionId }),
|
|
75
|
+
isAfterBusBarSectionId: dto.afterBusbarSectionId ? POSITION_NEW_SECTION_SIDE.AFTER.id : POSITION_NEW_SECTION_SIDE.BEFORE.id,
|
|
76
|
+
switchesBeforeSections: dto.leftSwitchKind ?? null,
|
|
77
|
+
switchesAfterSections: dto.rightSwitchKind ?? null,
|
|
78
|
+
newSwitchStates: !(dto.switchOpen ?? true)
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
const voltageLevelSectionCreationFormToDto = (form, busBarSectionInfos) => {
|
|
82
|
+
return {
|
|
83
|
+
type: ModificationType.CREATE_VOLTAGE_LEVEL_SECTION,
|
|
84
|
+
voltageLevelId: form.equipmentID,
|
|
85
|
+
busbarIndex: form.allBusbarSections ? findBusbarKeyForSection(busBarSectionInfos, form.busbarSectionId?.id) : form.busbarIndex?.id ?? null,
|
|
86
|
+
busbarSectionId: form.busbarSectionId?.id ?? null,
|
|
87
|
+
allBusbars: form.allBusbarSections ?? false,
|
|
88
|
+
afterBusbarSectionId: form.isAfterBusBarSectionId === POSITION_NEW_SECTION_SIDE.AFTER.id,
|
|
89
|
+
leftSwitchKind: form.switchesBeforeSections ?? null,
|
|
90
|
+
rightSwitchKind: form.switchesAfterSections ?? null,
|
|
91
|
+
switchOpen: !form.newSwitchStates
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
POSITION_NEW_SECTION_SIDE,
|
|
96
|
+
voltageLevelSectionCreationDtoToForm,
|
|
97
|
+
voltageLevelSectionCreationEmptyFormData,
|
|
98
|
+
voltageLevelSectionCreationFormSchema,
|
|
99
|
+
voltageLevelSectionCreationFormToDto
|
|
100
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -300,13 +300,13 @@ import { MAX_CHAR_DESCRIPTION } from "./utils/constants/uiConstants.js";
|
|
|
300
300
|
import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./utils/constants/unitsConstants.js";
|
|
301
301
|
import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./utils/constants/configConstants.js";
|
|
302
302
|
import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./utils/constants/filterConstant.js";
|
|
303
|
-
import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./utils/constants/translationKeys.js";
|
|
303
|
+
import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./utils/constants/translationKeys.js";
|
|
304
304
|
import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, toModificationOperation, unitToKiloUnit, unitToMicroUnit } from "./utils/conversionUtils.js";
|
|
305
305
|
import { catchErrorHandler, extractErrorMessageDescriptor, snackWithFallback } from "./utils/error.js";
|
|
306
306
|
import { isDisabledValidationButton } from "./utils/form-utils.js";
|
|
307
|
-
import { areArrayElementsUnique, arraysContainIdenticalStrings, getRows, hasNonEmptyRows, isEmpty, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
307
|
+
import { addSelectedFieldToRows, areArrayElementsUnique, areNumbersOrdered, arraysContainIdenticalStrings, getRows, hasNonEmptyRows, isEmpty, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
308
308
|
import { getEquipmentTypeShortLabel } from "./utils/labelUtils.js";
|
|
309
|
-
import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM, getCsvDelimiter } from "./utils/langs.js";
|
|
309
|
+
import { LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM, getCsvDelimiter, transformIfFrenchNumber } from "./utils/langs.js";
|
|
310
310
|
import { getFileIcon } from "./utils/mapper/getFileIcon.js";
|
|
311
311
|
import { equipmentTypesForPredefinedPropertiesMapper } from "./utils/mapper/equipmentTypesForPredefinedPropertiesMapper.js";
|
|
312
312
|
import { copyToClipboard } from "./utils/navigator-clipboard.js";
|
|
@@ -316,7 +316,7 @@ import { CustomError } from "./utils/types/CustomError.js";
|
|
|
316
316
|
import { ProblemDetailError } from "./utils/types/ProblemDetailError.js";
|
|
317
317
|
import { NetworkTimeoutError } from "./utils/types/NetworkTimeoutError.js";
|
|
318
318
|
import { ElementType } from "./utils/types/elementType.js";
|
|
319
|
-
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./utils/types/equipmentType.js";
|
|
319
|
+
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, CONNECTION_DIRECTIONS, ENERGY_SOURCES, EQUIPMENTS_WITH_ONE_NOMINAL_VOLTAGE, EQUIPMENTS_WITH_ONE_SUBSTATION, EQUIPMENTS_WITH_THREE_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_NOMINAL_VOLTAGES, EQUIPMENTS_WITH_TWO_SUBSTATIONS, EquipmentType, ExtendedEquipmentType, HvdcType, LOAD_TYPES, OperatingStatus, PHASE_REGULATION_MODES, RATIO_REGULATION_MODES, REGULATION_SIDES, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, UNDEFINED_CONNECTION_DIRECTION, UNDEFINED_LOAD_TYPE, VL_TAG_MAX_SIZE, equipmentStyles, getConnectionDirectionLabel, getEnergySourceLabel, getEquipmentsInfosForSearchBar, getLoadTypeLabel } from "./utils/types/equipmentType.js";
|
|
320
320
|
import { Battery, BoundaryLine, BusBar, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, isInjection } from "./utils/types/equipmentTypes.js";
|
|
321
321
|
import { AnnouncementSeverity, ArrayAction, ElementStatus, ReferenceType } from "./utils/types/types.js";
|
|
322
322
|
import { MODIFICATION_TYPES, ModificationType } from "./utils/types/modificationType.js";
|
|
@@ -362,6 +362,8 @@ import { VoltageLevelModificationForm } from "./features/network-modifications/v
|
|
|
362
362
|
import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
|
|
363
363
|
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./features/network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
|
|
364
364
|
import { CreateVoltageLevelTopologyForm } from "./features/network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
|
|
365
|
+
import { VoltageLevelSectionCreationForm } from "./features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js";
|
|
366
|
+
import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./features/network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js";
|
|
365
367
|
import { LOAD_TAB_FIELDS, LoadDialogTab } from "./features/network-modifications/load/common/load.utils.js";
|
|
366
368
|
import { LoadDialogTabs } from "./features/network-modifications/load/common/LoadDialogTabs.js";
|
|
367
369
|
import { LoadDialogTabsContent } from "./features/network-modifications/load/common/LoadDialogTabsContent.js";
|
|
@@ -401,7 +403,7 @@ import { ShuntCompensatorCreationForm } from "./features/network-modifications/s
|
|
|
401
403
|
import { shuntCompensatorCreationDtoToForm, shuntCompensatorCreationEmptyFormData, shuntCompensatorCreationFormSchema, shuntCompensatorCreationFormToDto } from "./features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js";
|
|
402
404
|
import { ShuntCompensatorModificationForm } from "./features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js";
|
|
403
405
|
import { shuntCompensatorModificationDtoToForm, shuntCompensatorModificationEmptyFormData, shuntCompensatorModificationFormSchema, shuntCompensatorModificationFormToDto } from "./features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js";
|
|
404
|
-
import {
|
|
406
|
+
import { getLineCharacteristicsEmptyFormData, getLineCharacteristicsFormData, getLineCharacteristicsValidationSchemaProps } from "./features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js";
|
|
405
407
|
import { LineCharacteristicsPane } from "./features/network-modifications/line/characteristics/LineCharacteristicsPane.js";
|
|
406
408
|
import { CATEGORIES_TABS } from "./features/network-modifications/line/catalog/lineCatalog.type.js";
|
|
407
409
|
import { LineSegmentsInfoSchema, SegmentCurrentLimitsSchema, SegmentInfoSchema, SegmentSchema, SegmentTemporaryLimitSchema, convertLimitsToOperationalLimitsGroupFormSchema, convertToLineSegmentInfos, convertToLineSegmentsFormData, emptyLineSegment } from "./features/network-modifications/line/catalog/segment.utils.js";
|
|
@@ -412,6 +414,32 @@ import { LineDialogHeader } from "./features/network-modifications/line/common/L
|
|
|
412
414
|
import { LineForm } from "./features/network-modifications/line/common/LineForm.js";
|
|
413
415
|
import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./features/network-modifications/line/creation/lineCreation.utils.js";
|
|
414
416
|
import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./features/network-modifications/line/modification/lineModification.utils.js";
|
|
417
|
+
import { TWT_TAB_FIELDS, TwoWindingsTransformerDialogTab } from "./features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.js";
|
|
418
|
+
import { TwoWindingsTransformerDialogHeader } from "./features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js";
|
|
419
|
+
import { TwoWindingsTransformerDialogTabs } from "./features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js";
|
|
420
|
+
import { TwoWindingsTransformerDialogTabsContent } from "./features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js";
|
|
421
|
+
import { TwoWindingsTransformerForm } from "./features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js";
|
|
422
|
+
import { getTwtCharacteristicsEmptyFormData, getTwtCharacteristicsFormData, getTwtCharacteristicsValidationSchemaProps } from "./features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js";
|
|
423
|
+
import { TwoWindingsTransformerCharacteristicsPane } from "./features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js";
|
|
424
|
+
import { compareStepsWithPreviousValues, computeHighTapPosition, getRegulationTypeLabel, getTapChangerEquipmentSectionTypeValue, getTapSideLabel, toTapChangerStepList } from "./features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.js";
|
|
425
|
+
import { getCreateRuleEmptyFormData, getCreateRuleValidationSchema } from "./features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js";
|
|
426
|
+
import { CreateRuleDialogSubmitButton } from "./features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js";
|
|
427
|
+
import { CreateRuleForm } from "./features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js";
|
|
428
|
+
import { CreateRuleDialog } from "./features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js";
|
|
429
|
+
import { ImportRuleDialog } from "./features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js";
|
|
430
|
+
import { getComputedPhaseRegulationType, getComputedPhaseRegulationTypeId, getComputedPhaseTapChangerRegulationMode, getComputedPreviousPhaseRegulationType, getPhaseTapChangerEmptyFormData, getPhaseTapChangerFormData, getPhaseTapChangerValidationSchemaProps, getPhaseTapRegulationSideId } from "./features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js";
|
|
431
|
+
import { PhaseTapChangerPaneSteps } from "./features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js";
|
|
432
|
+
import { PhaseTapChangerPane } from "./features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js";
|
|
433
|
+
import { getComputedPreviousRatioRegulationType, getComputedRegulationMode, getComputedRegulationModeId, getComputedRegulationType, getComputedRegulationTypeId, getComputedTapSide, getComputedTapSideId, getInitialTwtRatioRegulationModeId, getRatioTapChangerEmptyFormData, getRatioTapChangerFormData, getRatioTapChangerValidationSchemaProps } from "./features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js";
|
|
434
|
+
import { RatioTapChangerPaneSteps } from "./features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js";
|
|
435
|
+
import { RatioTapChangerPane } from "./features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js";
|
|
436
|
+
import { RegulatedTerminalSection } from "./features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js";
|
|
437
|
+
import { TapChangerSteps } from "./features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js";
|
|
438
|
+
import { PhaseTapChangerRegulationMode } from "./features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js";
|
|
439
|
+
import { computeRatioTapChangerRegulationMode, getRegulationTypeForEdit, getTapSideForEdit, twoWindingsTransformerCreationDtoToForm, twoWindingsTransformerCreationEmptyFormData, twoWindingsTransformerCreationFormSchema, twoWindingsTransformerCreationFormToDto } from "./features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js";
|
|
440
|
+
import { twoWindingsTransformerModificationEmptyFormData, twoWindingsTransformerModificationFormSchema } from "./features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js";
|
|
441
|
+
import { getToBeEstimatedValidationSchemaObject, toBeEstimatedEmptyFormData } from "./features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js";
|
|
442
|
+
import { ToBeEstimatedForm } from "./features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js";
|
|
415
443
|
import { StaticVarCompensatorDialogHeader } from "./features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-header.js";
|
|
416
444
|
import { StaticVarCompensatorDialogTabs } from "./features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js";
|
|
417
445
|
import { STATIC_VAR_COMPENSATOR_TAB_FIELDS, StaticVarCompensatorDialogTab } from "./features/network-modifications/static-var-compensator/common/static-var-compensator-tab-utils.js";
|
|
@@ -651,6 +679,9 @@ export {
|
|
|
651
679
|
CountryValueEditor,
|
|
652
680
|
CouplingDeviceCreationForm,
|
|
653
681
|
CreateParameterDialog,
|
|
682
|
+
CreateRuleDialog,
|
|
683
|
+
CreateRuleDialogSubmitButton,
|
|
684
|
+
CreateRuleForm,
|
|
654
685
|
CreateVoltageLevelTopologyForm,
|
|
655
686
|
CsvDownloadButton,
|
|
656
687
|
CsvExport,
|
|
@@ -826,6 +857,7 @@ export {
|
|
|
826
857
|
INTL_LINE_FLOW_MODE_OPTIONS,
|
|
827
858
|
INTL_SUBSTATION_LAYOUT_OPTIONS,
|
|
828
859
|
IST_FORM,
|
|
860
|
+
ImportRuleDialog,
|
|
829
861
|
InitialVoltage,
|
|
830
862
|
InputWithPopupConfirmation,
|
|
831
863
|
IntegerInput,
|
|
@@ -999,8 +1031,10 @@ export {
|
|
|
999
1031
|
PARAM_SUBSTATION_LAYOUT,
|
|
1000
1032
|
PARAM_THEME,
|
|
1001
1033
|
PERCENTAGE,
|
|
1034
|
+
PHASE_REGULATION_MODES,
|
|
1002
1035
|
PHASE_REGULATION_MODE_OPTIONS,
|
|
1003
1036
|
PHASE_SHIFTER_REGULATION_ON,
|
|
1037
|
+
POSITION_NEW_SECTION_SIDE,
|
|
1004
1038
|
PREFIX_CONFIG_NOTIFICATION_WS,
|
|
1005
1039
|
PREFIX_DIRECTORY_NOTIFICATION_WS,
|
|
1006
1040
|
PREFIX_MONITOR_NOTIFICATION_WS,
|
|
@@ -1021,6 +1055,9 @@ export {
|
|
|
1021
1055
|
PccMinParametersInLine,
|
|
1022
1056
|
PercentageAdornment,
|
|
1023
1057
|
PermissionType,
|
|
1058
|
+
PhaseTapChangerPane,
|
|
1059
|
+
PhaseTapChangerPaneSteps,
|
|
1060
|
+
PhaseTapChangerRegulationMode,
|
|
1024
1061
|
PopupConfirmationDialog,
|
|
1025
1062
|
PowerMeasurementsForm,
|
|
1026
1063
|
PowerWithValidityForm,
|
|
@@ -1033,6 +1070,7 @@ export {
|
|
|
1033
1070
|
PropertyValueEditor,
|
|
1034
1071
|
ProviderParam,
|
|
1035
1072
|
QuickSearch,
|
|
1073
|
+
RATIO_REGULATION_MODES,
|
|
1036
1074
|
RATIO_REGULATION_MODE_OPTIONS,
|
|
1037
1075
|
RATIO_TAP_CHANGER_POSITION,
|
|
1038
1076
|
RATIO_TAP_CHANGER_TARGET_V,
|
|
@@ -1044,6 +1082,7 @@ export {
|
|
|
1044
1082
|
RECENT_FILTER,
|
|
1045
1083
|
REFERENCE_FIELD_OR_VALUE_1,
|
|
1046
1084
|
REFERENCE_FIELD_OR_VALUE_2,
|
|
1085
|
+
REGULATION_SIDES,
|
|
1047
1086
|
REGULATION_TYPES,
|
|
1048
1087
|
REGULATION_TYPE_OPTIONS,
|
|
1049
1088
|
REMOVE,
|
|
@@ -1054,6 +1093,8 @@ export {
|
|
|
1054
1093
|
RadioInput,
|
|
1055
1094
|
RangeInput,
|
|
1056
1095
|
RangeType,
|
|
1096
|
+
RatioTapChangerPane,
|
|
1097
|
+
RatioTapChangerPaneSteps,
|
|
1057
1098
|
RawReadOnlyInput,
|
|
1058
1099
|
ReactiveCapabilityCurveRowForm,
|
|
1059
1100
|
ReactiveCapabilityCurveTableForm,
|
|
@@ -1062,6 +1103,7 @@ export {
|
|
|
1062
1103
|
ReadOnlyInput,
|
|
1063
1104
|
ReferenceCellRenderer,
|
|
1064
1105
|
ReferenceType,
|
|
1106
|
+
RegulatedTerminalSection,
|
|
1065
1107
|
RegulatingTerminalForm,
|
|
1066
1108
|
RemoveButton,
|
|
1067
1109
|
RenderTableAndExportCsv,
|
|
@@ -1166,9 +1208,11 @@ export {
|
|
|
1166
1208
|
SwitchKind,
|
|
1167
1209
|
SwitchWithLabel,
|
|
1168
1210
|
SwitchesBetweenSections,
|
|
1211
|
+
TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
|
|
1169
1212
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
1170
1213
|
TRANSFORMERS_SELECTION_TYPE,
|
|
1171
1214
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
1215
|
+
TWT_TAB_FIELDS,
|
|
1172
1216
|
TYPE_TAG_MAX_SIZE,
|
|
1173
1217
|
TabPanel,
|
|
1174
1218
|
TabValues,
|
|
@@ -1176,15 +1220,23 @@ export {
|
|
|
1176
1220
|
TableTextInput,
|
|
1177
1221
|
TableType,
|
|
1178
1222
|
TagRenderer,
|
|
1223
|
+
TapChangerSteps,
|
|
1179
1224
|
TemporaryLimitsTable,
|
|
1180
1225
|
TextFieldWithAdornment,
|
|
1181
1226
|
TextInput,
|
|
1182
1227
|
TextValueEditor,
|
|
1183
1228
|
ThreeWindingTransfo,
|
|
1229
|
+
ToBeEstimatedForm,
|
|
1184
1230
|
TopBar,
|
|
1185
1231
|
TranslatedValueEditor,
|
|
1186
1232
|
TreeViewFinder,
|
|
1187
1233
|
TwoWindingTransfo,
|
|
1234
|
+
TwoWindingsTransformerCharacteristicsPane,
|
|
1235
|
+
TwoWindingsTransformerDialogHeader,
|
|
1236
|
+
TwoWindingsTransformerDialogTab,
|
|
1237
|
+
TwoWindingsTransformerDialogTabs,
|
|
1238
|
+
TwoWindingsTransformerDialogTabsContent,
|
|
1239
|
+
TwoWindingsTransformerForm,
|
|
1188
1240
|
UNAUTHORIZED_USER_INFO,
|
|
1189
1241
|
UNDEFINED_CONNECTION_DIRECTION,
|
|
1190
1242
|
UNDEFINED_LOAD_TYPE,
|
|
@@ -1221,6 +1273,7 @@ export {
|
|
|
1221
1273
|
VoltageLevelConnectivityForm,
|
|
1222
1274
|
VoltageLevelCreationForm,
|
|
1223
1275
|
VoltageLevelModificationForm,
|
|
1276
|
+
VoltageLevelSectionCreationForm,
|
|
1224
1277
|
VoltageRegulationForm,
|
|
1225
1278
|
VoltageUnitIcon,
|
|
1226
1279
|
WRITE_SLACK_BUS,
|
|
@@ -1235,11 +1288,13 @@ export {
|
|
|
1235
1288
|
addModificationTypeToOpLimitsGroups,
|
|
1236
1289
|
addModificationTypeToTemporaryLimits,
|
|
1237
1290
|
addOperationTypeToSelectedOpLG,
|
|
1291
|
+
addSelectedFieldToRows,
|
|
1238
1292
|
addSelectedGlobalFiltersToTableState,
|
|
1239
1293
|
addToleranceToFilter,
|
|
1240
1294
|
alertThresholdMarks,
|
|
1241
1295
|
areArrayElementsUnique,
|
|
1242
1296
|
areIdsEqual,
|
|
1297
|
+
areNumbersOrdered,
|
|
1243
1298
|
arraysContainIdenticalStrings,
|
|
1244
1299
|
backendFetch,
|
|
1245
1300
|
backendFetchFile,
|
|
@@ -1266,9 +1321,12 @@ export {
|
|
|
1266
1321
|
clearSelectedGlobalFiltersFromTableState,
|
|
1267
1322
|
commonButtonEn,
|
|
1268
1323
|
commonButtonFr,
|
|
1324
|
+
compareStepsWithPreviousValues,
|
|
1269
1325
|
componentsEn,
|
|
1270
1326
|
componentsFr,
|
|
1327
|
+
computeHighTapPosition,
|
|
1271
1328
|
computeQ0,
|
|
1329
|
+
computeRatioTapChangerRegulationMode,
|
|
1272
1330
|
computeSwitchedOnValue,
|
|
1273
1331
|
computeTagMinSize,
|
|
1274
1332
|
computeTolerance,
|
|
@@ -1442,8 +1500,18 @@ export {
|
|
|
1442
1500
|
getCharacteristicsEmptyFormData,
|
|
1443
1501
|
getCharacteristicsFormData,
|
|
1444
1502
|
getCharacteristicsFormValidationSchema,
|
|
1445
|
-
getCharacteristicsValidationSchema,
|
|
1446
1503
|
getComputedLanguage,
|
|
1504
|
+
getComputedPhaseRegulationType,
|
|
1505
|
+
getComputedPhaseRegulationTypeId,
|
|
1506
|
+
getComputedPhaseTapChangerRegulationMode,
|
|
1507
|
+
getComputedPreviousPhaseRegulationType,
|
|
1508
|
+
getComputedPreviousRatioRegulationType,
|
|
1509
|
+
getComputedRegulationMode,
|
|
1510
|
+
getComputedRegulationModeId,
|
|
1511
|
+
getComputedRegulationType,
|
|
1512
|
+
getComputedRegulationTypeId,
|
|
1513
|
+
getComputedTapSide,
|
|
1514
|
+
getComputedTapSideId,
|
|
1447
1515
|
getCon1andCon2WithPositionValidationSchema,
|
|
1448
1516
|
getConcatenatedProperties,
|
|
1449
1517
|
getConnectionDirectionLabel,
|
|
@@ -1464,6 +1532,8 @@ export {
|
|
|
1464
1532
|
getCont1Cont2WithPositionEmptyFormData,
|
|
1465
1533
|
getContainerDefaultSeverityList,
|
|
1466
1534
|
getContingencyListsInfosFormSchema,
|
|
1535
|
+
getCreateRuleEmptyFormData,
|
|
1536
|
+
getCreateRuleValidationSchema,
|
|
1467
1537
|
getCreateSwitchesEmptyFormData,
|
|
1468
1538
|
getCreateSwitchesValidationSchema,
|
|
1469
1539
|
getCsvDelimiter,
|
|
@@ -1482,6 +1552,7 @@ export {
|
|
|
1482
1552
|
getHvdcLccDeletionSchema,
|
|
1483
1553
|
getIdOrSelf,
|
|
1484
1554
|
getIdOrValue,
|
|
1555
|
+
getInitialTwtRatioRegulationModeId,
|
|
1485
1556
|
getInjectionActiveReactivePowerEditDataProperties,
|
|
1486
1557
|
getInjectionActiveReactivePowerEmptyFormData,
|
|
1487
1558
|
getInjectionActiveReactivePowerEmptyFormDataProperties,
|
|
@@ -1512,6 +1583,10 @@ export {
|
|
|
1512
1583
|
getOperators,
|
|
1513
1584
|
getOptionLabel,
|
|
1514
1585
|
getPccMinStudyParameters,
|
|
1586
|
+
getPhaseTapChangerEmptyFormData,
|
|
1587
|
+
getPhaseTapChangerFormData,
|
|
1588
|
+
getPhaseTapChangerValidationSchemaProps,
|
|
1589
|
+
getPhaseTapRegulationSideId,
|
|
1515
1590
|
getPowerWithValidityEditData,
|
|
1516
1591
|
getPowerWithValidityEmptyFormData,
|
|
1517
1592
|
getPowerWithValidityValidationSchema,
|
|
@@ -1522,6 +1597,9 @@ export {
|
|
|
1522
1597
|
getPropertyAvatar,
|
|
1523
1598
|
getPropertyValue,
|
|
1524
1599
|
getRangeInputSchema,
|
|
1600
|
+
getRatioTapChangerEmptyFormData,
|
|
1601
|
+
getRatioTapChangerFormData,
|
|
1602
|
+
getRatioTapChangerValidationSchemaProps,
|
|
1525
1603
|
getReactiveCapabilityCurveValidationSchema,
|
|
1526
1604
|
getReactiveCapabilityCurveValidationSchemaArray,
|
|
1527
1605
|
getReactiveFormData,
|
|
@@ -1538,6 +1616,8 @@ export {
|
|
|
1538
1616
|
getRegulatingTerminalEquipmentData,
|
|
1539
1617
|
getRegulatingTerminalFormData,
|
|
1540
1618
|
getRegulatingTerminalVoltageLevelData,
|
|
1619
|
+
getRegulationTypeForEdit,
|
|
1620
|
+
getRegulationTypeLabel,
|
|
1541
1621
|
getRequestParamFromList,
|
|
1542
1622
|
getRowEmptyFormData,
|
|
1543
1623
|
getRows,
|
|
@@ -1563,6 +1643,13 @@ export {
|
|
|
1563
1643
|
getSystemLanguage,
|
|
1564
1644
|
getTabIndicatorStyle,
|
|
1565
1645
|
getTabStyle,
|
|
1646
|
+
getTapChangerEquipmentSectionTypeValue,
|
|
1647
|
+
getTapSideForEdit,
|
|
1648
|
+
getTapSideLabel,
|
|
1649
|
+
getToBeEstimatedValidationSchemaObject,
|
|
1650
|
+
getTwtCharacteristicsEmptyFormData,
|
|
1651
|
+
getTwtCharacteristicsFormData,
|
|
1652
|
+
getTwtCharacteristicsValidationSchemaProps,
|
|
1566
1653
|
getUser,
|
|
1567
1654
|
getUserToken,
|
|
1568
1655
|
getVoltageInitParameters,
|
|
@@ -1739,6 +1826,7 @@ export {
|
|
|
1739
1826
|
tableFr,
|
|
1740
1827
|
testQuery,
|
|
1741
1828
|
testValueWithinPowerInterval,
|
|
1829
|
+
toBeEstimatedEmptyFormData,
|
|
1742
1830
|
toFloatOrNullValue,
|
|
1743
1831
|
toFormValuesContingencyListsInfos,
|
|
1744
1832
|
toFormValuesLimitReductions,
|
|
@@ -1748,11 +1836,19 @@ export {
|
|
|
1748
1836
|
toNumber,
|
|
1749
1837
|
toReactiveCapabilityCurveChoiceForGeneratorCreation,
|
|
1750
1838
|
toReactiveCapabilityCurveChoiceForGeneratorModification,
|
|
1839
|
+
toTapChangerStepList,
|
|
1751
1840
|
topBarEn,
|
|
1752
1841
|
topBarFr,
|
|
1842
|
+
transformIfFrenchNumber,
|
|
1753
1843
|
translateSwitchKinds,
|
|
1754
1844
|
treeviewFinderEn,
|
|
1755
1845
|
treeviewFinderFr,
|
|
1846
|
+
twoWindingsTransformerCreationDtoToForm,
|
|
1847
|
+
twoWindingsTransformerCreationEmptyFormData,
|
|
1848
|
+
twoWindingsTransformerCreationFormSchema,
|
|
1849
|
+
twoWindingsTransformerCreationFormToDto,
|
|
1850
|
+
twoWindingsTransformerModificationEmptyFormData,
|
|
1851
|
+
twoWindingsTransformerModificationFormSchema,
|
|
1756
1852
|
unitToKiloUnit,
|
|
1757
1853
|
unitToMicroUnit,
|
|
1758
1854
|
unmarkEditingGlobalFilter,
|
|
@@ -1821,5 +1917,9 @@ export {
|
|
|
1821
1917
|
voltageLevelModificationFormToDto,
|
|
1822
1918
|
voltageLevelModificationWithMeasurementsDtoToForm,
|
|
1823
1919
|
voltageLevelModificationWithMeasurementsFormSchema,
|
|
1824
|
-
voltageLevelModificationWithMeasurementsFormToDto
|
|
1920
|
+
voltageLevelModificationWithMeasurementsFormToDto,
|
|
1921
|
+
voltageLevelSectionCreationDtoToForm,
|
|
1922
|
+
voltageLevelSectionCreationEmptyFormData,
|
|
1923
|
+
voltageLevelSectionCreationFormSchema,
|
|
1924
|
+
voltageLevelSectionCreationFormToDto
|
|
1825
1925
|
};
|
|
@@ -75,9 +75,6 @@ export declare const filterExpertEn: {
|
|
|
75
75
|
hasPhaseTapChanger3: string;
|
|
76
76
|
Voltage: string;
|
|
77
77
|
ReactivePower: string;
|
|
78
|
-
VoltageRegulation: string;
|
|
79
|
-
FixedRatio: string;
|
|
80
|
-
CurrentLimiter: string;
|
|
81
78
|
ActivePowerControl: string;
|
|
82
79
|
ratioRegulationMode: string;
|
|
83
80
|
ratioRegulationMode1: string;
|
|
@@ -69,9 +69,6 @@ const filterExpertEn = {
|
|
|
69
69
|
hasPhaseTapChanger3: "Phase tap 3 changer exists",
|
|
70
70
|
Voltage: "Voltage",
|
|
71
71
|
ReactivePower: "Reactive power",
|
|
72
|
-
VoltageRegulation: "Voltage regulation",
|
|
73
|
-
FixedRatio: "Fixed ratio",
|
|
74
|
-
CurrentLimiter: "Current limiter",
|
|
75
72
|
ActivePowerControl: "Active power control",
|
|
76
73
|
ratioRegulationMode: "Ratio tap changer regulation mode",
|
|
77
74
|
ratioRegulationMode1: "Ratio tap 1 changer regulation mode",
|
|
@@ -16,6 +16,7 @@ export declare const networkModificationValidationEn: {
|
|
|
16
16
|
WrongRefOrValueError: string;
|
|
17
17
|
ValueMustBeNumericWhenPercentageError: string;
|
|
18
18
|
ValueMustBeRefWhenPercentageError: string;
|
|
19
|
+
TargetDeadbandMustBeGreaterOrEqualToZero: string;
|
|
19
20
|
TemporaryLimitNameUnicityError: string;
|
|
20
21
|
TemporaryLimitDurationUnicityError: string;
|
|
21
22
|
LimitSetApplicabilityError: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, REACTIVE_LIMITS_MIN_MAX_INVALID, ACTIVE_LIMITS_MIN_MAX_INVALID, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID } from "../../utils/constants/translationKeys.js";
|
|
1
|
+
import { TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, REACTIVE_LIMITS_MIN_MAX_INVALID, ACTIVE_LIMITS_MIN_MAX_INVALID, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID } from "../../utils/constants/translationKeys.js";
|
|
2
2
|
import "../../utils/conversionUtils.js";
|
|
3
3
|
import "../../utils/types/equipmentType.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
@@ -21,6 +21,7 @@ const networkModificationValidationEn = {
|
|
|
21
21
|
[WRONG_REF_OR_VALUE_ERROR]: "Please enter a valid numeric value or a valid field reference. Use # to select a field",
|
|
22
22
|
[VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR]: "When using %, this field must be a valid positive numeric value",
|
|
23
23
|
[VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR]: "When using %, this field must be a valid field reference",
|
|
24
|
+
[TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO]: "Deadband value must be greater than or equal to 0",
|
|
24
25
|
TemporaryLimitNameUnicityError: "Temporary limit names must be unique in the table",
|
|
25
26
|
TemporaryLimitDurationUnicityError: "Temporary limit acceptable durations must be unique in the table",
|
|
26
27
|
LimitSetApplicabilityError: "2 limit sets with the same name must have different application sides.",
|
|
@@ -73,6 +73,17 @@ export declare const networkModificationsEn: {
|
|
|
73
73
|
'network_modifications.CREATE_VOLTAGE_LEVEL_TOPOLOGY': string;
|
|
74
74
|
'network_modifications.CREATE_VOLTAGE_LEVEL_SECTION': string;
|
|
75
75
|
'network_modifications.MOVE_VOLTAGE_LEVEL_FEEDER_BAYS': string;
|
|
76
|
+
SubstationTab: string;
|
|
77
|
+
ConnectivityTab: string;
|
|
78
|
+
CharacteristicsTab: string;
|
|
79
|
+
LimitsTab: string;
|
|
80
|
+
SetpointsAndLimitsTab: string;
|
|
81
|
+
SpecificTab: string;
|
|
82
|
+
StructureTab: string;
|
|
83
|
+
AdditionalInformationTab: string;
|
|
84
|
+
StateEstimationTab: string;
|
|
85
|
+
TwoWindingsTransformerRatioTapChangerTab: string;
|
|
86
|
+
TwoWindingsTransformerPhaseTapChangerTab: string;
|
|
76
87
|
ModificationReadError: string;
|
|
77
88
|
CompositeModification: string;
|
|
78
89
|
CreateSubstation: string;
|
|
@@ -289,6 +300,65 @@ export declare const networkModificationsEn: {
|
|
|
289
300
|
filter: string;
|
|
290
301
|
G: string;
|
|
291
302
|
B: string;
|
|
303
|
+
CreateTwoWindingsTransformer: string;
|
|
304
|
+
TwoWindingsTransformerCreationError: string;
|
|
305
|
+
ConfigureRatioTapChanger: string;
|
|
306
|
+
WithRatioTapChanger: string;
|
|
307
|
+
ConfigurePhaseTapChanger: string;
|
|
308
|
+
WithPhaseTapChanger: string;
|
|
309
|
+
RegulatedSide: string;
|
|
310
|
+
RatioRegulatedSide: string;
|
|
311
|
+
PhaseRegulatedSide: string;
|
|
312
|
+
RegulatedSide1: string;
|
|
313
|
+
RegulatedSide2: string;
|
|
314
|
+
RatedVoltage: string;
|
|
315
|
+
RegulationSection: string;
|
|
316
|
+
OnLoad: string;
|
|
317
|
+
RegulationMode: string;
|
|
318
|
+
TargetVoltage: string;
|
|
319
|
+
TargetVoltageMustBeGreaterThanZero: string;
|
|
320
|
+
Deadband: string;
|
|
321
|
+
TargetDeadbandMustBeGreaterOrEqualToZero: string;
|
|
322
|
+
LowTapPosition: string;
|
|
323
|
+
HighTapPosition: string;
|
|
324
|
+
TapPosition: string;
|
|
325
|
+
TapPositionMustBeBetweenLowAndHighTapPositionValue: string;
|
|
326
|
+
RegulatedTerminal: string;
|
|
327
|
+
TapsSection: string;
|
|
328
|
+
Tap: string;
|
|
329
|
+
DeltaResistance: string;
|
|
330
|
+
DeltaReactance: string;
|
|
331
|
+
DeltaConductance: string;
|
|
332
|
+
DeltaSusceptance: string;
|
|
333
|
+
Ratio: string;
|
|
334
|
+
Alpha: string;
|
|
335
|
+
ImportFileResistance: string;
|
|
336
|
+
ImportFileReactance: string;
|
|
337
|
+
ImportFileConductance: string;
|
|
338
|
+
ImportFileSusceptance: string;
|
|
339
|
+
ImportFileAlpha: string;
|
|
340
|
+
CreateRegulationRule: string;
|
|
341
|
+
LowTapRatio: string;
|
|
342
|
+
HighTapRatio: string;
|
|
343
|
+
ImportRegulationRule: string;
|
|
344
|
+
CreateDephasingRule: string;
|
|
345
|
+
ResetRegulationRule: string;
|
|
346
|
+
LowTapAlpha: string;
|
|
347
|
+
HighTapAlpha: string;
|
|
348
|
+
ImportDephasingRule: string;
|
|
349
|
+
GenerateSkeleton: string;
|
|
350
|
+
RegulatingValueCurrentLimiter: string;
|
|
351
|
+
CurrentLimiterMustBeGreaterThanZero: string;
|
|
352
|
+
RegulatingValueActivePowerControl: string;
|
|
353
|
+
VoltageRegulation: string;
|
|
354
|
+
FixedRatio: string;
|
|
355
|
+
CurrentLimiter: string;
|
|
356
|
+
PhaseActivePowerControl: string;
|
|
357
|
+
RatedNominalPowerMustBeGreaterThanZero: string;
|
|
358
|
+
PhaseShiftValuesError: string;
|
|
359
|
+
GeneratePhaseTapRowsError: string;
|
|
360
|
+
GenerateRatioTapRowsError: string;
|
|
361
|
+
RatioValuesError: string;
|
|
292
362
|
maximumSusceptance: string;
|
|
293
363
|
minSusceptance: string;
|
|
294
364
|
maxQAtVnominal: string;
|
|
@@ -313,15 +383,6 @@ export declare const networkModificationsEn: {
|
|
|
313
383
|
StaticVarCompensatorAdditionalInfosTab: string;
|
|
314
384
|
b0: string;
|
|
315
385
|
fixQAtNominalV: string;
|
|
316
|
-
SubstationTab: string;
|
|
317
|
-
ConnectivityTab: string;
|
|
318
|
-
CharacteristicsTab: string;
|
|
319
|
-
LimitsTab: string;
|
|
320
|
-
SetpointsAndLimitsTab: string;
|
|
321
|
-
SpecificTab: string;
|
|
322
|
-
StructureTab: string;
|
|
323
|
-
AdditionalInformationTab: string;
|
|
324
|
-
StateEstimationTab: string;
|
|
325
386
|
copyLink: string;
|
|
326
387
|
linkCopied: string;
|
|
327
388
|
linkCopyError: string;
|
|
@@ -335,4 +396,21 @@ export declare const networkModificationsEn: {
|
|
|
335
396
|
CreateCouplingDevice: string;
|
|
336
397
|
CouplingDeviceText: string;
|
|
337
398
|
CouplingDeviceBusBarSectionToolTipText: string;
|
|
399
|
+
CreateVoltageLevelSection: string;
|
|
400
|
+
VoltageLevelSectionCreationError: string;
|
|
401
|
+
BusBarSectionsReference: string;
|
|
402
|
+
notValidVoltageLevel: string;
|
|
403
|
+
SectionPosition: string;
|
|
404
|
+
isAfterBusBarSectionId: string;
|
|
405
|
+
Switch: string;
|
|
406
|
+
newSection: string;
|
|
407
|
+
switchesAfterSections: string;
|
|
408
|
+
switchesBeforeSections: string;
|
|
409
|
+
Busbar: string;
|
|
410
|
+
Before: string;
|
|
411
|
+
After: string;
|
|
412
|
+
allBusbarSections: string;
|
|
413
|
+
allOptionHelperText: string;
|
|
414
|
+
areSwitchesOpen: string;
|
|
415
|
+
areSwitchesClosed: string;
|
|
338
416
|
};
|