@gridsuite/commons-ui 0.190.0 → 0.192.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -0
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +1 -0
- package/dist/components/dnd-table/dnd-table.js +1 -0
- package/dist/components/filter/HeaderFilterForm.js +1 -0
- package/dist/components/filter/expert/ExpertFilterForm.js +1 -0
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -0
- package/dist/components/inputs/reactHookForm/expandableInput/ExpandableInput.d.ts +5 -5
- package/dist/components/inputs/reactHookForm/expandableInput/ExpandableInput.js +66 -54
- package/dist/components/network-modifications/by-filter/assignment/assignment/assignment-form.js +1 -0
- package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.d.ts +0 -6
- package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +7 -10
- package/dist/components/network-modifications/common/connectivity/BranchConnectivityForm.js +35 -39
- package/dist/components/network-modifications/common/connectivity/ConnectivityForm.js +1 -0
- package/dist/components/network-modifications/common/measurements/BranchActiveReactivePowerMeasurementsForm.js +1 -7
- package/dist/components/network-modifications/common/measurements/PowerMeasurementsForm.js +3 -4
- package/dist/components/network-modifications/common/measurements/PowerWithValidityForm.js +20 -22
- package/dist/components/network-modifications/common/properties/PropertiesForm.js +14 -15
- package/dist/components/network-modifications/common/properties/PropertyForm.d.ts +1 -1
- package/dist/components/network-modifications/common/properties/PropertyForm.js +43 -50
- package/dist/components/network-modifications/common/setpoints/SetPointsForm.js +22 -24
- package/dist/components/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +36 -38
- package/dist/components/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +2 -1
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js +5 -6
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.d.ts +0 -6
- package/dist/components/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +7 -5
- package/dist/components/network-modifications/index.js +1 -0
- package/dist/components/network-modifications/load/common/LoadDialogHeader.js +7 -17
- package/dist/components/network-modifications/load/common/LoadDialogTabs.js +4 -4
- package/dist/components/network-modifications/load/common/LoadDialogTabsContent.js +21 -18
- package/dist/components/network-modifications/load/creation/loadCreation.utils.js +1 -0
- package/dist/components/network-modifications/load/modification/loadModification.utils.js +2 -1
- package/dist/components/network-modifications/substation/creation/SubstationCreationForm.js +17 -12
- package/dist/components/network-modifications/substation/modification/SubstationModificationForm.js +41 -44
- package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +23 -14
- package/dist/components/network-modifications/voltageLevel/creation/index.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +6 -6
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +4 -4
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.js +3 -3
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +3 -3
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialog.js +1 -0
- package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesForm.js +11 -21
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +4 -3
- package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +3 -2
- package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +1 -0
- package/dist/components/network-modifications/voltageLevel/index.js +1 -0
- package/dist/components/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +104 -110
- package/dist/components/node/build-status-chip.d.ts +2 -1
- package/dist/components/node/build-status-chip.js +13 -3
- package/dist/components/parameters/common/ProviderParam.js +1 -0
- package/dist/components/parameters/common/contingency-table/columns-definitions.js +1 -0
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -0
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +1 -0
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +1 -0
- package/dist/components/parameters/common/parameter-dnd-table-field.js +1 -0
- package/dist/components/parameters/common/parameter-field.js +1 -0
- package/dist/components/parameters/common/parameter-table/table-cell.js +1 -0
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +1 -0
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -0
- package/dist/components/parameters/common/widget/parameter-float.js +1 -0
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -0
- package/dist/components/parameters/common/widget/parameter-line-slider.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -0
- package/dist/components/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/contingency-parameters.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +1 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -0
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +1 -0
- package/dist/components/parameters/network-visualizations/map-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -0
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -0
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -0
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +1 -0
- package/dist/components/parameters/pcc-min/pcc-min-parameters-inline.js +1 -0
- package/dist/components/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -0
- package/dist/components/parameters/security-analysis/columns-definitions.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -0
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +1 -0
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -0
- package/dist/components/parameters/sensi/columns-definitions.js +1 -0
- package/dist/components/parameters/sensi/constants.d.ts +2 -2
- package/dist/components/parameters/sensi/constants.js +1 -1
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +1 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +1 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +6 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-factor-count.d.ts +1 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-factor-count.js +4 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +2 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +3 -0
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.d.ts +2 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -2
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.d.ts +2 -1
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +11 -2
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +6 -1
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +37 -9
- package/dist/components/parameters/sensi/utils.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-general-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-content.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-study-area-tab-panel.js +1 -0
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
- package/dist/components/parameters/util/make-component-utils.js +1 -0
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +1 -0
- package/dist/components/parameters/voltage-init/general-parameters.js +1 -0
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +1 -0
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +1 -0
- package/dist/translations/en/parameters.d.ts +1 -0
- package/dist/translations/en/parameters.js +4 -3
- package/dist/translations/fr/parameters.d.ts +1 -0
- package/dist/translations/fr/parameters.js +4 -3
- package/dist/utils/types/sensitivity-analysis.type.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useWatch } from "react-hook-form";
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
4
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
5
6
|
import "../../../../utils/conversionUtils.js";
|
|
6
7
|
import "../../../../utils/types/equipmentType.js";
|
|
7
8
|
import "@mui/icons-material";
|
|
8
9
|
import "../../../../utils/yupConfig.js";
|
|
9
|
-
import GridItem from "../../../grid/grid-item.js";
|
|
10
10
|
import "react-intl";
|
|
11
|
-
import "@mui/material";
|
|
12
11
|
import "../../../overflowableText/OverflowableText.js";
|
|
13
12
|
import "localized-countries";
|
|
14
13
|
import "localized-countries/data/fr";
|
|
@@ -30,6 +29,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
30
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
30
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
31
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
|
+
import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
33
|
import "@react-querybuilder/material";
|
|
34
34
|
import "../../../filter/expert/expertFilterConstants.js";
|
|
35
35
|
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -37,7 +37,7 @@ import "uuid";
|
|
|
37
37
|
import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
38
38
|
import "react-querybuilder";
|
|
39
39
|
import { italicFontTextField } from "../form.utils.js";
|
|
40
|
-
|
|
40
|
+
function PropertyForm({ name, index, predefinedProperties }) {
|
|
41
41
|
const watchPropertyName = useWatch({ name: `${name}.${index}.${FieldConstants.NAME}` });
|
|
42
42
|
const watchPropertyPreviousValue = useWatch({
|
|
43
43
|
name: `${name}.${index}.${FieldConstants.PREVIOUS_VALUE}`
|
|
@@ -56,52 +56,45 @@ const PropertyForm = ({ name, index, predefinedProperties }) => {
|
|
|
56
56
|
const values = predefinedProperties?.[watchPropertyName] ?? [];
|
|
57
57
|
return values.sort((a, b) => a.localeCompare(b));
|
|
58
58
|
}, [watchPropertyName, predefinedProperties]);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
99
|
-
watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(GridItem, { size: 5, children: nameReadOnlyField }) : /* @__PURE__ */ jsx(GridItem, { size: 5, children: nameField }),
|
|
100
|
-
watchPropertyDeletionMark ? /* @__PURE__ */ jsx(GridItem, { size: 5, children: valueReadOnlyField }) : /* @__PURE__ */ jsx(GridItem, { size: 5, children: valueField })
|
|
101
|
-
] });
|
|
102
|
-
}
|
|
103
|
-
return renderPropertyLine();
|
|
104
|
-
};
|
|
59
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60
|
+
watchPropertyDeletionMark || watchPropertyAdded === false && watchPropertyPreviousValue ? /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
61
|
+
TextInput,
|
|
62
|
+
{
|
|
63
|
+
name: `${name}.${index}.${FieldConstants.NAME}`,
|
|
64
|
+
label: "PropertyName",
|
|
65
|
+
formProps: { disabled: true, ...italicFontTextField }
|
|
66
|
+
}
|
|
67
|
+
) }) : /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
68
|
+
AutocompleteInput,
|
|
69
|
+
{
|
|
70
|
+
name: `${name}.${index}.${FieldConstants.NAME}`,
|
|
71
|
+
options: predefinedNames,
|
|
72
|
+
label: "PropertyName",
|
|
73
|
+
size: "small",
|
|
74
|
+
allowNewValue: true
|
|
75
|
+
}
|
|
76
|
+
) }),
|
|
77
|
+
watchPropertyDeletionMark ? /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
78
|
+
TextInput,
|
|
79
|
+
{
|
|
80
|
+
name: `${name}.${index}.${FieldConstants.VALUE}`,
|
|
81
|
+
label: "PropertyValue",
|
|
82
|
+
previousValue: watchPropertyPreviousValue,
|
|
83
|
+
formProps: { disabled: true, ...italicFontTextField }
|
|
84
|
+
}
|
|
85
|
+
) }) : /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
86
|
+
AutocompleteInput,
|
|
87
|
+
{
|
|
88
|
+
name: `${name}.${index}.${FieldConstants.VALUE}`,
|
|
89
|
+
options: predefinedValues,
|
|
90
|
+
label: "PropertyValue",
|
|
91
|
+
size: "small",
|
|
92
|
+
allowNewValue: true,
|
|
93
|
+
previousValue: watchPropertyPreviousValue
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
] });
|
|
97
|
+
}
|
|
105
98
|
export {
|
|
106
99
|
PropertyForm
|
|
107
100
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
3
|
import GridSection from "../../../grid/grid-section.js";
|
|
4
|
-
import GridItem from "../../../grid/grid-item.js";
|
|
5
4
|
import { ActivePowerAdornment, ReactivePowerAdornment } from "../../../../utils/constants/adornments.js";
|
|
6
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
7
6
|
import "../../../../utils/conversionUtils.js";
|
|
@@ -31,6 +30,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
31
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
32
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
|
+
import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
34
34
|
import "@react-querybuilder/material";
|
|
35
35
|
import "../../../filter/expert/expertFilterConstants.js";
|
|
36
36
|
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -38,31 +38,29 @@ import "uuid";
|
|
|
38
38
|
import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
39
39
|
import "react-querybuilder";
|
|
40
40
|
function SetPointsForm({ previousValues, isModification = false }) {
|
|
41
|
-
const activePowerSetPointField = /* @__PURE__ */ jsx(
|
|
42
|
-
FloatInput,
|
|
43
|
-
{
|
|
44
|
-
name: FieldConstants.ACTIVE_POWER_SET_POINT,
|
|
45
|
-
label: "ActivePowerText",
|
|
46
|
-
adornment: ActivePowerAdornment,
|
|
47
|
-
previousValue: previousValues?.activePower ?? void 0,
|
|
48
|
-
clearable: isModification
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
const reactivePowerSetPointField = /* @__PURE__ */ jsx(
|
|
52
|
-
FloatInput,
|
|
53
|
-
{
|
|
54
|
-
name: FieldConstants.REACTIVE_POWER_SET_POINT,
|
|
55
|
-
label: "ReactivePowerText",
|
|
56
|
-
adornment: ReactivePowerAdornment,
|
|
57
|
-
previousValue: previousValues?.reactivePower ?? void 0,
|
|
58
|
-
clearable: isModification
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
41
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
42
|
/* @__PURE__ */ jsx(GridSection, { title: "Setpoints" }),
|
|
63
43
|
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
64
|
-
/* @__PURE__ */ jsx(
|
|
65
|
-
|
|
44
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
45
|
+
FloatInput,
|
|
46
|
+
{
|
|
47
|
+
name: FieldConstants.ACTIVE_POWER_SET_POINT,
|
|
48
|
+
label: "ActivePowerText",
|
|
49
|
+
adornment: ActivePowerAdornment,
|
|
50
|
+
previousValue: previousValues?.activePower ?? void 0,
|
|
51
|
+
clearable: isModification
|
|
52
|
+
}
|
|
53
|
+
) }),
|
|
54
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsx(
|
|
55
|
+
FloatInput,
|
|
56
|
+
{
|
|
57
|
+
name: FieldConstants.REACTIVE_POWER_SET_POINT,
|
|
58
|
+
label: "ReactivePowerText",
|
|
59
|
+
adornment: ReactivePowerAdornment,
|
|
60
|
+
previousValue: previousValues?.reactivePower ?? void 0,
|
|
61
|
+
clearable: isModification
|
|
62
|
+
}
|
|
63
|
+
) })
|
|
66
64
|
] })
|
|
67
65
|
] });
|
|
68
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
3
|
import { useRef, useState, useMemo, useEffect, useCallback } from "react";
|
|
4
4
|
import { useWatch, useFormContext } from "react-hook-form";
|
|
@@ -12,7 +12,6 @@ import { richTypeEquals, getObjectId, areIdsEqual } from "../../../utils/ts-util
|
|
|
12
12
|
import "../../../utils/yupConfig.js";
|
|
13
13
|
import { filledTextField } from "../common/form.utils.js";
|
|
14
14
|
import "../common/properties/propertyUtils.js";
|
|
15
|
-
import GridItem from "../../grid/grid-item.js";
|
|
16
15
|
import "react-intl";
|
|
17
16
|
import "../../overflowableText/OverflowableText.js";
|
|
18
17
|
import "localized-countries";
|
|
@@ -35,6 +34,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
35
34
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
36
35
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
37
36
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
37
|
+
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
38
38
|
import "@react-querybuilder/material";
|
|
39
39
|
import "../../filter/expert/expertFilterConstants.js";
|
|
40
40
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -130,42 +130,40 @@ function EquipmentDeletionForm({
|
|
|
130
130
|
const handleTypeChange = useCallback(() => {
|
|
131
131
|
setValue(FieldConstants.EQUIPMENT_ID, null);
|
|
132
132
|
}, [setValue]);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
] }),
|
|
168
|
-
watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {})
|
|
133
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", children: [
|
|
134
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
135
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
|
|
136
|
+
AutocompleteInput,
|
|
137
|
+
{
|
|
138
|
+
isOptionEqualToValue: richTypeEquals,
|
|
139
|
+
name: FieldConstants.TYPE,
|
|
140
|
+
label: "Type",
|
|
141
|
+
options: typesOptions,
|
|
142
|
+
onChangeCallback: handleTypeChange,
|
|
143
|
+
getOptionLabel,
|
|
144
|
+
size: "small",
|
|
145
|
+
inputTransform: (value) => typesOptions.find((option) => option === value) || value,
|
|
146
|
+
formProps: filledTextField
|
|
147
|
+
}
|
|
148
|
+
) }),
|
|
149
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
|
|
150
|
+
AutocompleteInput,
|
|
151
|
+
{
|
|
152
|
+
isOptionEqualToValue: areIdsEqual,
|
|
153
|
+
allowNewValue: true,
|
|
154
|
+
forcePopupIcon: true,
|
|
155
|
+
name: FieldConstants.EQUIPMENT_ID,
|
|
156
|
+
label: "ID",
|
|
157
|
+
options: equipmentsOptions,
|
|
158
|
+
getOptionLabel: getObjectId,
|
|
159
|
+
inputTransform: (value) => value ?? "",
|
|
160
|
+
outputTransform: (value) => value === "" ? null : getObjectId(value),
|
|
161
|
+
size: "small",
|
|
162
|
+
formProps: filledTextField
|
|
163
|
+
}
|
|
164
|
+
) })
|
|
165
|
+
] }) }),
|
|
166
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: watchSpecificData?.specificType === FieldConstants.HVDC_LINE_LCC_DELETION_SPECIFIC_TYPE && /* @__PURE__ */ jsx(HvdcLccDeletionSpecificForm, {}) })
|
|
169
167
|
] });
|
|
170
168
|
}
|
|
171
169
|
export {
|
|
@@ -2,7 +2,6 @@ import { object, mixed, string } from "yup";
|
|
|
2
2
|
import { EquipmentType } from "../../../utils/types/equipmentType.js";
|
|
3
3
|
import { getHvdcLccDeletionSchema } from "./hvdcLccDeletion/hvdcLccDeletion.utils.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
|
-
import "react-intl";
|
|
6
5
|
import "@mui/material";
|
|
7
6
|
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
8
7
|
import { YUP_REQUIRED } from "../../../utils/constants/translationKeys.js";
|
|
@@ -10,6 +9,7 @@ import "../../../utils/conversionUtils.js";
|
|
|
10
9
|
import { ModificationType } from "../../../utils/types/modificationType.js";
|
|
11
10
|
import "@mui/icons-material";
|
|
12
11
|
import "../../../utils/yupConfig.js";
|
|
12
|
+
import "react-intl";
|
|
13
13
|
import "../../overflowableText/OverflowableText.js";
|
|
14
14
|
import "react";
|
|
15
15
|
import "react-hook-form";
|
|
@@ -30,6 +30,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
30
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
32
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
|
+
import "../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
34
|
import "@react-querybuilder/material";
|
|
34
35
|
import "../../filter/expert/expertFilterConstants.js";
|
|
35
36
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
3
|
import { useFieldArray } from "react-hook-form";
|
|
4
4
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -7,7 +7,6 @@ import "../../../../utils/types/equipmentType.js";
|
|
|
7
7
|
import "@mui/icons-material";
|
|
8
8
|
import "../../../../utils/yupConfig.js";
|
|
9
9
|
import GridSection from "../../../grid/grid-section.js";
|
|
10
|
-
import GridItem from "../../../grid/grid-item.js";
|
|
11
10
|
import { ShuntCompensatorSelectionForm } from "./ShuntCompensatorSelectionForm.js";
|
|
12
11
|
function HvdcLccDeletionSpecificForm() {
|
|
13
12
|
const { fields: mcsRows1 } = useFieldArray({
|
|
@@ -16,10 +15,10 @@ function HvdcLccDeletionSpecificForm() {
|
|
|
16
15
|
const { fields: mcsRows2 } = useFieldArray({
|
|
17
16
|
name: `${FieldConstants.DELETION_SPECIFIC_DATA}.${FieldConstants.SHUNT_COMPENSATOR_SIDE_2}`
|
|
18
17
|
});
|
|
19
|
-
return /* @__PURE__ */ jsxs(
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
19
|
/* @__PURE__ */ jsx(GridSection, { title: "LCCConverterStationShuntCompensators" }),
|
|
21
|
-
/* @__PURE__ */ jsxs(Grid, { container: true, spacing:
|
|
22
|
-
/* @__PURE__ */ jsx(
|
|
20
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
21
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
|
|
23
22
|
ShuntCompensatorSelectionForm,
|
|
24
23
|
{
|
|
25
24
|
title: "Side1",
|
|
@@ -27,7 +26,7 @@ function HvdcLccDeletionSpecificForm() {
|
|
|
27
26
|
mcsRows: mcsRows1
|
|
28
27
|
}
|
|
29
28
|
) }),
|
|
30
|
-
/* @__PURE__ */ jsx(
|
|
29
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
|
|
31
30
|
ShuntCompensatorSelectionForm,
|
|
32
31
|
{
|
|
33
32
|
title: "Side2",
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
-
*/
|
|
7
1
|
interface ShuntCompensatorSelectionFormProps {
|
|
8
2
|
title: string;
|
|
9
3
|
arrayFormName: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FormattedMessage } from "react-intl";
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
2
|
import { Grid } from "@mui/material";
|
|
4
3
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
5
4
|
import "../../../../utils/conversionUtils.js";
|
|
6
5
|
import "../../../../utils/types/equipmentType.js";
|
|
7
6
|
import "@mui/icons-material";
|
|
8
7
|
import "../../../../utils/yupConfig.js";
|
|
8
|
+
import "react-intl";
|
|
9
9
|
import "../../../overflowableText/OverflowableText.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "react-hook-form";
|
|
@@ -29,19 +29,21 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
29
29
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
30
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
31
31
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
32
|
+
import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
32
33
|
import "@react-querybuilder/material";
|
|
33
34
|
import "../../../filter/expert/expertFilterConstants.js";
|
|
34
35
|
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
35
36
|
import "uuid";
|
|
36
37
|
import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
37
38
|
import "react-querybuilder";
|
|
39
|
+
import GridSection from "../../../grid/grid-section.js";
|
|
38
40
|
function ShuntCompensatorSelectionForm({
|
|
39
41
|
title,
|
|
40
42
|
arrayFormName,
|
|
41
43
|
mcsRows
|
|
42
44
|
}) {
|
|
43
|
-
return /* @__PURE__ */ jsxs(
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46
|
+
/* @__PURE__ */ jsx(GridSection, { title, heading: 4 }),
|
|
45
47
|
mcsRows.map((field, index) => /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, alignItems: "center", children: [
|
|
46
48
|
/* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: /* @__PURE__ */ jsx(
|
|
47
49
|
CheckboxInput,
|
|
@@ -49,7 +51,7 @@ function ShuntCompensatorSelectionForm({
|
|
|
49
51
|
name: `${arrayFormName}[${index}].${FieldConstants.SHUNT_COMPENSATOR_SELECTED}`
|
|
50
52
|
}
|
|
51
53
|
) }),
|
|
52
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs:
|
|
54
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(ReadOnlyInput, { name: `${arrayFormName}[${index}].${FieldConstants.ID}` }) })
|
|
53
55
|
] }, field.id))
|
|
54
56
|
] });
|
|
55
57
|
}
|
|
@@ -53,6 +53,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
53
53
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
54
54
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
55
55
|
import "../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
56
|
+
import "../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
56
57
|
import "@react-querybuilder/material";
|
|
57
58
|
import "../filter/expert/expertFilterConstants.js";
|
|
58
59
|
import "../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TextField,
|
|
2
|
+
import { TextField, Grid } from "@mui/material";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
5
|
import { filledTextField } from "../../common/form.utils.js";
|
|
@@ -10,7 +10,6 @@ import "../../../../utils/conversionUtils.js";
|
|
|
10
10
|
import { getLoadTypeLabel, LOAD_TYPES } from "../../../../utils/types/equipmentType.js";
|
|
11
11
|
import "@mui/icons-material";
|
|
12
12
|
import "../../../../utils/yupConfig.js";
|
|
13
|
-
import GridItem from "../../../grid/grid-item.js";
|
|
14
13
|
import "../../../overflowableText/OverflowableText.js";
|
|
15
14
|
import "localized-countries";
|
|
16
15
|
import "localized-countries/data/fr";
|
|
@@ -32,6 +31,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
32
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
33
32
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
34
33
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
34
|
+
import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
35
35
|
import "@react-querybuilder/material";
|
|
36
36
|
import "../../../filter/expert/expertFilterConstants.js";
|
|
37
37
|
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -79,21 +79,11 @@ function LoadDialogHeader({ loadToModify, isModification = false }) {
|
|
|
79
79
|
}) : void 0
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
flexWrap: "wrap",
|
|
88
|
-
gap: "15px"
|
|
89
|
-
},
|
|
90
|
-
children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
91
|
-
/* @__PURE__ */ jsx(GridItem, { size: 4, children: loadIdField }),
|
|
92
|
-
/* @__PURE__ */ jsx(GridItem, { size: 4, children: loadNameField }),
|
|
93
|
-
/* @__PURE__ */ jsx(GridItem, { size: 4, children: loadTypeField })
|
|
94
|
-
] })
|
|
95
|
-
}
|
|
96
|
-
);
|
|
82
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
83
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: loadIdField }),
|
|
84
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: loadNameField }),
|
|
85
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: loadTypeField })
|
|
86
|
+
] });
|
|
97
87
|
}
|
|
98
88
|
export {
|
|
99
89
|
LoadDialogHeader
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs, Tab } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { LoadDialogTab } from "./load.utils.js";
|
|
5
5
|
import { getTabIndicatorStyle, getTabStyle } from "../../../parameters/parameters-style.js";
|
|
@@ -9,7 +9,7 @@ function LoadDialogTabs({
|
|
|
9
9
|
setTabIndex,
|
|
10
10
|
isModification = false
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ jsxs(
|
|
13
13
|
Tabs,
|
|
14
14
|
{
|
|
15
15
|
value: tabIndex,
|
|
@@ -42,7 +42,7 @@ function LoadDialogTabs({
|
|
|
42
42
|
)
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
|
-
)
|
|
45
|
+
);
|
|
46
46
|
}
|
|
47
47
|
export {
|
|
48
48
|
LoadDialogTabs
|
|
@@ -15,23 +15,26 @@ function LoadDialogTabsContent({
|
|
|
15
15
|
fetchBusesOrBusbarSections
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
/* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== LoadDialogTab.CONNECTIVITY_TAB, children: [
|
|
19
|
+
/* @__PURE__ */ jsx(GridSection, { title: "ConnectivityTab" }),
|
|
20
|
+
/* @__PURE__ */ jsx(
|
|
21
|
+
ConnectivityForm,
|
|
22
|
+
{
|
|
23
|
+
withPosition: true,
|
|
24
|
+
isEquipmentModification: isModification,
|
|
25
|
+
previousValues: {
|
|
26
|
+
connectablePosition: loadToModify?.connectablePosition,
|
|
27
|
+
voltageLevelId: loadToModify?.voltageLevelId,
|
|
28
|
+
busOrBusbarSectionId: loadToModify?.busOrBusbarSectionId,
|
|
29
|
+
terminalConnected: loadToModify?.terminalConnected
|
|
30
|
+
},
|
|
31
|
+
voltageLevelOptions,
|
|
32
|
+
PositionDiagramPane,
|
|
33
|
+
fetchBusesOrBusbarSections
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== LoadDialogTab.CHARACTERISTICS_TAB, children: [
|
|
35
38
|
/* @__PURE__ */ jsx(
|
|
36
39
|
SetPointsForm,
|
|
37
40
|
{
|
|
@@ -44,7 +47,7 @@ function LoadDialogTabsContent({
|
|
|
44
47
|
),
|
|
45
48
|
/* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "load", isModification })
|
|
46
49
|
] }),
|
|
47
|
-
isModification && /* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== LoadDialogTab.STATE_ESTIMATION_TAB,
|
|
50
|
+
isModification && /* @__PURE__ */ jsxs(Box, { hidden: tabIndex !== LoadDialogTab.STATE_ESTIMATION_TAB, children: [
|
|
48
51
|
/* @__PURE__ */ jsx(GridSection, { title: "MeasurementsSection" }),
|
|
49
52
|
/* @__PURE__ */ jsx(
|
|
50
53
|
PowerMeasurementsForm,
|
|
@@ -31,6 +31,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
31
31
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
32
32
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
33
33
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
34
|
+
import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
34
35
|
import "@react-querybuilder/material";
|
|
35
36
|
import "../../../filter/expert/expertFilterConstants.js";
|
|
36
37
|
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -7,10 +7,10 @@ import "react/jsx-runtime";
|
|
|
7
7
|
import "@mui/icons-material";
|
|
8
8
|
import { sanitizeString } from "../../../../utils/ts-utils.js";
|
|
9
9
|
import "../../../../utils/yupConfig.js";
|
|
10
|
-
import "@mui/material";
|
|
11
10
|
import "react";
|
|
12
11
|
import "react-hook-form";
|
|
13
12
|
import { modificationPropertiesSchema, getPropertiesFromModification, toModificationProperties } from "../../common/properties/propertyUtils.js";
|
|
13
|
+
import "@mui/material";
|
|
14
14
|
import "react-intl";
|
|
15
15
|
import "../../../overflowableText/OverflowableText.js";
|
|
16
16
|
import "localized-countries";
|
|
@@ -30,6 +30,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
30
30
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
31
31
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
32
32
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
33
|
+
import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
33
34
|
import "@react-querybuilder/material";
|
|
34
35
|
import "../../../filter/expert/expertFilterConstants.js";
|
|
35
36
|
import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
|
-
import GridItem from "../../../grid/grid-item.js";
|
|
4
3
|
import "react-intl";
|
|
5
4
|
import "../../../overflowableText/OverflowableText.js";
|
|
6
5
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
@@ -29,6 +28,7 @@ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
|
29
28
|
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
30
29
|
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
31
30
|
import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
31
|
+
import "../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
|
|
32
32
|
import { CountrySelectionInput } from "../../../inputs/reactHookForm/CountrySelectionInput.js";
|
|
33
33
|
import "@react-querybuilder/material";
|
|
34
34
|
import "../../../filter/expert/expertFilterConstants.js";
|
|
@@ -40,16 +40,21 @@ import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
|
|
|
40
40
|
import { filledTextField } from "../../common/form.utils.js";
|
|
41
41
|
import "../../common/properties/propertyUtils.js";
|
|
42
42
|
function SubstationCreationForm() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 2, children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_ID, label: "ID", formProps: filledTextField }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: filledTextField }) }),
|
|
47
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(
|
|
48
|
+
CountrySelectionInput,
|
|
49
|
+
{
|
|
50
|
+
name: FieldConstants.COUNTRY,
|
|
51
|
+
label: "Country",
|
|
52
|
+
formProps: filledTextField,
|
|
53
|
+
size: "small"
|
|
54
|
+
}
|
|
55
|
+
) })
|
|
56
|
+
] }) }),
|
|
57
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "substation" }) })
|
|
53
58
|
] });
|
|
54
59
|
}
|
|
55
60
|
export {
|