@gridsuite/commons-ui 0.279.0 → 0.281.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/composite/customAGGrid/separatorCellRenderer.d.ts +7 -2
- package/dist/components/composite/customAGGrid/separatorCellRenderer.js +2 -2
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +6 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +29 -5
- package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -0
- package/dist/components/ui/reactHookForm/booleans/RadioInput.js +2 -1
- package/dist/features/index.js +93 -3
- package/dist/features/network-modifications/index.d.ts +1 -0
- package/dist/features/network-modifications/index.js +91 -3
- package/dist/features/network-modifications/tabular/TabularForm.d.ts +22 -0
- package/dist/features/network-modifications/tabular/TabularForm.js +536 -0
- package/dist/features/network-modifications/tabular/index.d.ts +7 -0
- package/dist/features/network-modifications/tabular/index.js +65 -0
- package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.d.ts +12 -0
- package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +123 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.d.ts +1 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +87 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.d.ts +5 -0
- package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +91 -0
- package/dist/features/network-modifications/tabular/properties/index.d.ts +4 -0
- package/dist/features/network-modifications/tabular/properties/index.js +13 -0
- package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.d.ts +26 -0
- package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.js +50 -0
- package/dist/features/network-modifications/tabular/tabular.constants.d.ts +59 -0
- package/dist/features/network-modifications/tabular/tabular.constants.js +75 -0
- package/dist/features/network-modifications/tabular/tabular.types.d.ts +41 -0
- package/dist/features/network-modifications/tabular/tabular.types.js +8 -0
- package/dist/features/network-modifications/tabular/tabular.utils.d.ts +68 -0
- package/dist/features/network-modifications/tabular/tabular.utils.js +301 -0
- package/dist/features/network-modifications/tabular/tabularCreation.utils.d.ts +25 -0
- package/dist/features/network-modifications/tabular/tabularCreation.utils.js +276 -0
- package/dist/features/network-modifications/tabular/tabularModification.utils.d.ts +43 -0
- package/dist/features/network-modifications/tabular/tabularModification.utils.js +406 -0
- package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.js +119 -0
- package/dist/features/network-modifications/voltageLevel/common/index.d.ts +1 -0
- package/dist/features/network-modifications/voltageLevel/common/index.js +4 -0
- package/dist/features/network-modifications/voltageLevel/index.d.ts +4 -1
- package/dist/features/network-modifications/voltageLevel/index.js +28 -3
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.d.ts +8 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +387 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js +64 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +102 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.d.ts +2 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.js +6 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.d.ts +4 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.js +13 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.type.d.ts +36 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.d.ts +37 -0
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js +86 -0
- package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.d.ts → creation/CreateVoltageLevelTopologyForm.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.js → creation/CreateVoltageLevelTopologyForm.js} +38 -38
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.d.ts → creation/voltageLevelTopologyCreation.types.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/creation/voltageLevelTopologyCreation.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.d.ts → creation/voltageLevelTopologyCreation.utils.d.ts} +1 -1
- package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.js → creation/voltageLevelTopologyCreation.utils.js} +5 -5
- package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.d.ts +6 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +80 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +284 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/constants.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/constants.js +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/index.d.ts +10 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/index.js +14 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.d.ts +28 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.js +1 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.d.ts +29 -0
- package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +124 -0
- package/dist/features/parameters/common/index.d.ts +1 -0
- package/dist/features/parameters/common/index.js +2 -0
- package/dist/features/parameters/common/parameter-field.d.ts +2 -2
- package/dist/features/parameters/common/parameter-field.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +6 -6
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +6 -6
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +6 -6
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +1 -1
- package/dist/features/parameters/index.js +2 -0
- package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +5 -5
- package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +5 -5
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +5 -5
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -6
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +5 -5
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +5 -5
- package/dist/features/side-bar/AppSideBarHeader.js +20 -5
- package/dist/features/side-bar/EnvironmentChip.d.ts +13 -0
- package/dist/features/side-bar/EnvironmentChip.js +49 -0
- package/dist/index.js +97 -5
- package/dist/services/appsMetadata.d.ts +2 -0
- package/dist/services/directory.d.ts +1 -1
- package/dist/services/directory.js +6 -2
- package/dist/services/index.js +2 -1
- package/dist/services/userAdmin.d.ts +2 -1
- package/dist/services/userAdmin.js +9 -1
- package/dist/translations/en/businessErrorsEn.d.ts +1 -0
- package/dist/translations/en/businessErrorsEn.js +1 -0
- package/dist/translations/en/networkModificationsEn.d.ts +97 -0
- package/dist/translations/en/networkModificationsEn.js +103 -1
- package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
- package/dist/translations/fr/businessErrorsFr.js +1 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +97 -0
- package/dist/translations/fr/networkModificationsFr.js +103 -1
- package/dist/utils/constants/fieldConstants.d.ts +7 -1
- package/dist/utils/constants/fieldConstants.js +6 -0
- package/dist/utils/constants/index.js +2 -1
- package/dist/utils/constants/notificationsProvider.d.ts +1 -0
- package/dist/utils/constants/notificationsProvider.js +1 -0
- package/dist/utils/constants/translationKeys.d.ts +1 -0
- package/dist/utils/constants/translationKeys.js +2 -0
- package/dist/utils/index.js +2 -1
- package/dist/utils/types/types.d.ts +4 -0
- package/package.json +1 -1
- /package/dist/features/network-modifications/voltageLevel/{topology/voltageLevelTopologyCreation.types.js → moveFeederBays/moveVoltageLevelFeederBays.type.js} +0 -0
- /package/dist/features/network-modifications/voltageLevel/topology/{index.d.ts → creation/index.d.ts} +0 -0
- /package/dist/features/network-modifications/voltageLevel/topology/{index.js → creation/index.js} +0 -0
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
type SeparatorCellRendererProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
sx?: SxProps;
|
|
5
|
+
};
|
|
6
|
+
export declare function SeparatorCellRenderer({ value, sx }: Readonly<SeparatorCellRendererProps>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -12,8 +12,8 @@ const styles = {
|
|
|
12
12
|
marginTop: theme.spacing(1)
|
|
13
13
|
})
|
|
14
14
|
};
|
|
15
|
-
function SeparatorCellRenderer({
|
|
16
|
-
return /* @__PURE__ */ jsx(Typography, { variant: "subtitle1", color: "primary", sx: mergeSx(styles.separator, sx),
|
|
15
|
+
function SeparatorCellRenderer({ value, sx }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(Typography, { variant: "subtitle1", color: "primary", sx: mergeSx(styles.separator, sx), children: value });
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
19
|
SeparatorCellRenderer
|
|
@@ -2,6 +2,7 @@ import { UUID } from 'node:crypto';
|
|
|
2
2
|
import { ElementAttributes, ElementType, FieldConstants } from '../../../../utils';
|
|
3
3
|
declare enum OperationType {
|
|
4
4
|
CREATE = "CREATE",
|
|
5
|
+
CREATE_SHARED = "CREATE_SHARED",
|
|
5
6
|
UPDATE = "UPDATE"
|
|
6
7
|
}
|
|
7
8
|
export interface IElementCommonFields {
|
|
@@ -24,6 +25,10 @@ export type ElementSaveDialogProps = {
|
|
|
24
25
|
titleId: string;
|
|
25
26
|
onSave: (data: IElementCreationDialog) => void;
|
|
26
27
|
OnUpdate?: (data: IElementUpdateDialog) => void;
|
|
28
|
+
/** when provided, an extra operation is offered to save the element as a shared one */
|
|
29
|
+
onSaveShared?: (data: IElementCreationDialog) => void;
|
|
30
|
+
createSharedLabelId?: string;
|
|
31
|
+
createSharedDisabled?: boolean;
|
|
27
32
|
prefixIdForGeneratedName?: string;
|
|
28
33
|
defaultName?: string | null;
|
|
29
34
|
initialOperation?: OperationType;
|
|
@@ -53,5 +58,5 @@ export type ElementSaveDialogProps = {
|
|
|
53
58
|
/** or directly a given directory */
|
|
54
59
|
initDirectory?: ElementAttributes;
|
|
55
60
|
});
|
|
56
|
-
export declare function ElementSaveDialog({ open, onSave, OnUpdate, onClose, type, titleId, prefixIdForGeneratedName, defaultName, studyUuid, initDirectory, initialOperation, selectorTitleId, createLabelId, updateLabelId, createOnlyMode, }: Readonly<ElementSaveDialogProps>): import("react").JSX.Element;
|
|
61
|
+
export declare function ElementSaveDialog({ open, onSave, OnUpdate, onSaveShared, createSharedLabelId, createSharedDisabled, onClose, type, titleId, prefixIdForGeneratedName, defaultName, studyUuid, initDirectory, initialOperation, selectorTitleId, createLabelId, updateLabelId, createOnlyMode, }: Readonly<ElementSaveDialogProps>): import("react").JSX.Element;
|
|
57
62
|
export {};
|
|
@@ -35,6 +35,7 @@ import { CustomMuiDialog } from "../customMuiDialog/CustomMuiDialog.js";
|
|
|
35
35
|
import { initializeDirectory } from "./utils.js";
|
|
36
36
|
var OperationType = /* @__PURE__ */ ((OperationType2) => {
|
|
37
37
|
OperationType2["CREATE"] = "CREATE";
|
|
38
|
+
OperationType2["CREATE_SHARED"] = "CREATE_SHARED";
|
|
38
39
|
OperationType2["UPDATE"] = "UPDATE";
|
|
39
40
|
return OperationType2;
|
|
40
41
|
})(OperationType || {});
|
|
@@ -53,6 +54,9 @@ function ElementSaveDialog({
|
|
|
53
54
|
open,
|
|
54
55
|
onSave,
|
|
55
56
|
OnUpdate,
|
|
57
|
+
onSaveShared,
|
|
58
|
+
createSharedLabelId,
|
|
59
|
+
createSharedDisabled = false,
|
|
56
60
|
onClose,
|
|
57
61
|
type,
|
|
58
62
|
titleId,
|
|
@@ -86,7 +90,7 @@ function ElementSaveDialog({
|
|
|
86
90
|
formState: { errors }
|
|
87
91
|
} = formMethods;
|
|
88
92
|
const operationType = createOnlyMode ? "CREATE" : watch(FieldConstants.OPERATION_TYPE);
|
|
89
|
-
const isCreateMode = operationType
|
|
93
|
+
const isCreateMode = operationType !== "UPDATE";
|
|
90
94
|
const disableSave = Object.keys(errors).length > 0 || isCreateMode && !destinationFolder || !isCreateMode && !selectedItem;
|
|
91
95
|
const setDestinationFolderWithPath = useCallback(
|
|
92
96
|
(elementUuid, elementName, path) => {
|
|
@@ -132,6 +136,15 @@ function ElementSaveDialog({
|
|
|
132
136
|
}
|
|
133
137
|
initializeDestinationFolder();
|
|
134
138
|
}, [open, isCreateMode, initializeDestinationFolder]);
|
|
139
|
+
useEffect(() => {
|
|
140
|
+
if (createSharedDisabled && operationType === "CREATE_SHARED") {
|
|
141
|
+
setValue(
|
|
142
|
+
FieldConstants.OPERATION_TYPE,
|
|
143
|
+
"CREATE"
|
|
144
|
+
/* CREATE */
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
}, [createSharedDisabled, operationType, setValue]);
|
|
135
148
|
const handleChangeFolder = useCallback(() => {
|
|
136
149
|
setDirectorySelectorOpen(true);
|
|
137
150
|
}, []);
|
|
@@ -164,14 +177,18 @@ function ElementSaveDialog({
|
|
|
164
177
|
);
|
|
165
178
|
const onSubmit = useCallback(
|
|
166
179
|
(values) => {
|
|
167
|
-
if (isCreateMode && destinationFolder
|
|
180
|
+
if (isCreateMode && destinationFolder) {
|
|
168
181
|
const creationData = {
|
|
169
182
|
[FieldConstants.NAME]: values.name,
|
|
170
183
|
[FieldConstants.DESCRIPTION]: values.description ?? "",
|
|
171
184
|
[FieldConstants.FOLDER_NAME]: destinationFolder.name ?? "",
|
|
172
185
|
[FieldConstants.FOLDER_ID]: destinationFolder.id
|
|
173
186
|
};
|
|
174
|
-
|
|
187
|
+
if (values.type === "CREATE_SHARED" && onSaveShared) {
|
|
188
|
+
onSaveShared(creationData);
|
|
189
|
+
} else if (onSave) {
|
|
190
|
+
onSave(creationData);
|
|
191
|
+
}
|
|
175
192
|
} else if (!isCreateMode && selectedItem && OnUpdate) {
|
|
176
193
|
const updateData = {
|
|
177
194
|
[FieldConstants.ID]: selectedItem.id,
|
|
@@ -183,7 +200,7 @@ function ElementSaveDialog({
|
|
|
183
200
|
OnUpdate(updateData);
|
|
184
201
|
}
|
|
185
202
|
},
|
|
186
|
-
[isCreateMode, onSave, OnUpdate, destinationFolder, selectedItem]
|
|
203
|
+
[isCreateMode, onSave, onSaveShared, OnUpdate, destinationFolder, selectedItem]
|
|
187
204
|
);
|
|
188
205
|
const renderChooser = () => {
|
|
189
206
|
if (isCreateMode) {
|
|
@@ -214,12 +231,19 @@ function ElementSaveDialog({
|
|
|
214
231
|
name: FieldConstants.OPERATION_TYPE,
|
|
215
232
|
options: [
|
|
216
233
|
{ id: "CREATE", label: createLabelId ?? "createLabelId" },
|
|
234
|
+
...onSaveShared ? [
|
|
235
|
+
{
|
|
236
|
+
id: "CREATE_SHARED",
|
|
237
|
+
label: createSharedLabelId ?? "createSharedLabelId",
|
|
238
|
+
disabled: createSharedDisabled
|
|
239
|
+
}
|
|
240
|
+
] : [],
|
|
217
241
|
{ id: "UPDATE", label: updateLabelId ?? "updateLabelId" }
|
|
218
242
|
],
|
|
219
243
|
formProps: {
|
|
220
244
|
sx: {
|
|
221
245
|
"& .MuiFormControlLabel-root": {
|
|
222
|
-
marginRight: 15
|
|
246
|
+
marginRight: onSaveShared ? 4 : 15
|
|
223
247
|
}
|
|
224
248
|
}
|
|
225
249
|
}
|
|
@@ -14,7 +14,8 @@ function RadioInput({ name, label, id, options, formProps }) {
|
|
|
14
14
|
{
|
|
15
15
|
control: /* @__PURE__ */ jsx(Radio, {}),
|
|
16
16
|
value: option.id,
|
|
17
|
-
label: /* @__PURE__ */ jsx(FieldLabel, { label: option.label })
|
|
17
|
+
label: /* @__PURE__ */ jsx(FieldLabel, { label: option.label }),
|
|
18
|
+
disabled: option.disabled
|
|
18
19
|
},
|
|
19
20
|
option.id
|
|
20
21
|
)) })
|
package/dist/features/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import { ParameterLayoutProvider, useParameterLayoutContext } from "./parameters
|
|
|
26
26
|
import { formatComputingTypeLabel, isValidComputingType } from "./parameters/common/computing-type.js";
|
|
27
27
|
import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, PROVIDER, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./parameters/common/constants.js";
|
|
28
28
|
import { LineSeparator } from "./parameters/common/line-separator.js";
|
|
29
|
+
import { ParameterField } from "./parameters/common/parameter-field.js";
|
|
29
30
|
import { LabelledButton, SwitchWithLabel, TabPanel } from "./parameters/common/parameters.js";
|
|
30
31
|
import { CreateParameterDialog } from "./parameters/common/parameters-creation-dialog.js";
|
|
31
32
|
import { ProviderParam } from "./parameters/common/provider-param.js";
|
|
@@ -167,10 +168,18 @@ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, ge
|
|
|
167
168
|
import { SwitchKind } from "./network-modifications/voltageLevel/creation/voltageLevelCreation.types.js";
|
|
168
169
|
import { VoltageLevelModificationForm } from "./network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js";
|
|
169
170
|
import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
|
|
170
|
-
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
|
|
171
|
-
import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
|
|
171
|
+
import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./network-modifications/voltageLevel/topology/creation/voltageLevelTopologyCreation.utils.js";
|
|
172
|
+
import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js";
|
|
173
|
+
import { voltageLevelTopologyModificationDtoToForm, voltageLevelTopologyModificationEmptyFormData, voltageLevelTopologyModificationFormSchema, voltageLevelTopologyModificationFormToDto } from "./network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js";
|
|
174
|
+
import { VoltageLevelTopologyModificationForm } from "./network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js";
|
|
175
|
+
import { CURRENT_CONNECTION_STATUS, PREV_CONNECTION_STATUS, SWITCH_ID, TOPOLOGY_MODIFICATION_TABLE } from "./network-modifications/voltageLevel/topology/modification/constants.js";
|
|
172
176
|
import { VoltageLevelSectionCreationForm } from "./network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js";
|
|
173
177
|
import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js";
|
|
178
|
+
import { FeederBayPositionCellRenderer } from "./network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js";
|
|
179
|
+
import { FeederBayDirectionCellRenderer } from "./network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js";
|
|
180
|
+
import { emptyMoveVoltageLevelFeederBaysFormData, moveVoltageLevelFeederBaysDtoToForm, moveVoltageLevelFeederBaysFormSchema, moveVoltageLevelFeederBaysFormToDto } from "./network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js";
|
|
181
|
+
import { MoveVoltageLevelFeederBaysForm } from "./network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js";
|
|
182
|
+
import { HeaderWithTooltip } from "./network-modifications/voltageLevel/common/HeaderWithTooltip.js";
|
|
174
183
|
import { LOAD_TAB_FIELDS, LoadDialogTab } from "./network-modifications/load/common/load.utils.js";
|
|
175
184
|
import { LoadDialogTabs } from "./network-modifications/load/common/LoadDialogTabs.js";
|
|
176
185
|
import { LoadDialogTabsContent } from "./network-modifications/load/common/LoadDialogTabsContent.js";
|
|
@@ -255,6 +264,16 @@ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValid
|
|
|
255
264
|
import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./network-modifications/static-var-compensator/common/standby-automaton-form-utils.js";
|
|
256
265
|
import { StaticVarCompensatorCreationForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js";
|
|
257
266
|
import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js";
|
|
267
|
+
import { DefineTabularPropertiesDialog } from "./network-modifications/tabular/properties/DefineTabularPropertiesDialog.js";
|
|
268
|
+
import { TabularPropertiesForm } from "./network-modifications/tabular/properties/TabularPropertiesForm.js";
|
|
269
|
+
import { TabularPropertyForm } from "./network-modifications/tabular/properties/TabularPropertyForm.js";
|
|
270
|
+
import { buildPredefinedTabularProperties, emptyTabularProperties, initializedTabularProperty, tabularPropertiesSchema } from "./network-modifications/tabular/properties/tabularProperty.utils.js";
|
|
271
|
+
import { LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION, PROPERTY_CSV_COLUMN_PREFIX, REGULATING_TERMINAL_TYPES, TABULAR_BOOLEAN, TABULAR_ENUM, TABULAR_NUMBER, TabularFieldConstants } from "./network-modifications/tabular/tabular.constants.js";
|
|
272
|
+
import { TabularModificationType } from "./network-modifications/tabular/tabular.types.js";
|
|
273
|
+
import { addPropertiesFromBack, convertReactiveCapabilityCurvePointsFromBackToFront, convertReactiveCapabilityCurvePointsFromFrontToBack, formatModification, generateCommentLines, getEmptyTabularFormData, getSelectedTabularPropertyNames, isFieldTypeOk, sanitizeRowValue, setFieldTypeError, tabularFormSchema, transformProperties } from "./network-modifications/tabular/tabular.utils.js";
|
|
274
|
+
import { TABULAR_CREATION_FIELDS, TABULAR_CREATION_TYPES, convertCreationFieldFromBackToFront, convertCreationFieldFromFrontToBack, convertCreations, getEquipmentTypeFromCreationType, tabularCreationDtoToForm, tabularCreationFormToDto, transformCreationsTable, transformRowToBackEndCreation } from "./network-modifications/tabular/tabularCreation.utils.js";
|
|
275
|
+
import { MODIFICATION_TRANSFORMATION_STRATEGIES, TABULAR_MODIFICATION_FIELDS, TABULAR_MODIFICATION_TYPES, TWT_TAP_CHANGER_FIELDS, convertGeneratorOrBatteryModificationFromBackToFront, convertGeneratorOrBatteryModificationFromFrontToBack, convertInputValues, convertOutputValues, convertTWTTapChangerModificationFromFrontToBack, getEquipmentTypeFromModificationType, getTabularFieldType, tabularModificationDtoToForm, tabularModificationFormToDto, transformModificationsTable, transformRowToBackEndModification } from "./network-modifications/tabular/tabularModification.utils.js";
|
|
276
|
+
import { TabularForm } from "./network-modifications/tabular/TabularForm.js";
|
|
258
277
|
import { BuildStatusChip } from "./node/build-status-chip.js";
|
|
259
278
|
import { BuildStatus } from "./node/constant.js";
|
|
260
279
|
import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTTOM, DROP_FORBIDDEN_INDICATOR_TOP, DROP_INDICATOR_BOTTOM, DROP_INDICATOR_TOP, MODIFICATION_ROW_HEIGHT, createCellBorderColor, createCellContentWrapperSx, createCellStyle, createEditDescriptionStyle, createHeaderCellStyle, createModificationNameCellStyle, createNameCellLabelBoxSx, createNameCellRootStyle, createRootNetworkChipCellSx, createRowSx, networkModificationTableStyles } from "./network-modification-table/network-modification-table-styles.js";
|
|
@@ -358,6 +377,7 @@ export {
|
|
|
358
377
|
CONTINGENCY_LISTS,
|
|
359
378
|
CONTINGENCY_LISTS_INFOS,
|
|
360
379
|
COUNTRIES_TO_BALANCE,
|
|
380
|
+
CURRENT_CONNECTION_STATUS,
|
|
361
381
|
CUSTOM_REAL_TIME_STATE_ESTIMATION,
|
|
362
382
|
CardErrorBoundary,
|
|
363
383
|
CharacteristicsForm,
|
|
@@ -387,6 +407,7 @@ export {
|
|
|
387
407
|
DROP_FORBIDDEN_INDICATOR_TOP,
|
|
388
408
|
DROP_INDICATOR_BOTTOM,
|
|
389
409
|
DROP_INDICATOR_TOP,
|
|
410
|
+
DefineTabularPropertiesDialog,
|
|
390
411
|
DepthBox,
|
|
391
412
|
DescriptionCell,
|
|
392
413
|
DescriptionCellRenderer,
|
|
@@ -408,6 +429,8 @@ export {
|
|
|
408
429
|
FORMULAS,
|
|
409
430
|
FROM_COLUMN_TO_FIELD,
|
|
410
431
|
FROM_COLUMN_TO_FIELD_ONE_BUS,
|
|
432
|
+
FeederBayDirectionCellRenderer,
|
|
433
|
+
FeederBayPositionCellRenderer,
|
|
411
434
|
GENERAL,
|
|
412
435
|
GENERAL_APPLY_MODIFICATIONS,
|
|
413
436
|
GENERATORS_SELECTION_TYPE,
|
|
@@ -427,6 +450,7 @@ export {
|
|
|
427
450
|
HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
428
451
|
HVDC_AC_EMULATION,
|
|
429
452
|
HVDC_EQUIPMENT_TYPES,
|
|
453
|
+
HeaderWithTooltip,
|
|
430
454
|
HvdcLccDeletionSpecificForm,
|
|
431
455
|
INJECTIONS_EQUIPMENT_TYPES,
|
|
432
456
|
INJECTION_DISTRIBUTION_TYPES,
|
|
@@ -448,6 +472,7 @@ export {
|
|
|
448
472
|
LOAD_INCREASE_STOP_TIME,
|
|
449
473
|
LOAD_MODELS_RULE,
|
|
450
474
|
LOAD_TAB_FIELDS,
|
|
475
|
+
LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION,
|
|
451
476
|
LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
|
|
452
477
|
LOW_VOLTAGE_LIMIT,
|
|
453
478
|
LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
|
|
@@ -496,11 +521,13 @@ export {
|
|
|
496
521
|
MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
497
522
|
MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
|
|
498
523
|
MODIFICATION_ROW_HEIGHT,
|
|
524
|
+
MODIFICATION_TRANSFORMATION_STRATEGIES,
|
|
499
525
|
MONITORED_BRANCHES_EQUIPMENT_TYPES,
|
|
500
526
|
MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
|
|
501
527
|
ModificationByAssignmentForm,
|
|
502
528
|
ModificationByFormulaForm,
|
|
503
529
|
ModificationRow,
|
|
530
|
+
MoveVoltageLevelFeederBaysForm,
|
|
504
531
|
NAD_POSITIONS_GENERATION_MODE,
|
|
505
532
|
NAD_POSITIONS_GENERATION_MODE_LABEL,
|
|
506
533
|
NODE_CLUSTER,
|
|
@@ -537,9 +564,12 @@ export {
|
|
|
537
564
|
PARAM_SUBSTATION_LAYOUT,
|
|
538
565
|
PHASE_SHIFTER_REGULATION_ON,
|
|
539
566
|
POSITION_NEW_SECTION_SIDE,
|
|
567
|
+
PREV_CONNECTION_STATUS,
|
|
540
568
|
PRIORITY,
|
|
569
|
+
PROPERTY_CSV_COLUMN_PREFIX,
|
|
541
570
|
PROVIDER,
|
|
542
571
|
PSTS_EQUIPMENT_TYPES,
|
|
572
|
+
ParameterField,
|
|
543
573
|
ParameterFloat,
|
|
544
574
|
ParameterGroup,
|
|
545
575
|
ParameterLayout,
|
|
@@ -568,6 +598,7 @@ export {
|
|
|
568
598
|
RECENT_FILTER,
|
|
569
599
|
REFERENCE_FIELD_OR_VALUE_1,
|
|
570
600
|
REFERENCE_FIELD_OR_VALUE_2,
|
|
601
|
+
REGULATING_TERMINAL_TYPES,
|
|
571
602
|
REGULATION_TYPES,
|
|
572
603
|
REMOVE,
|
|
573
604
|
RESULTS_LOADING_DELAY,
|
|
@@ -614,6 +645,7 @@ export {
|
|
|
614
645
|
STATIC_VAR_COMPENSATOR_TAB_FIELDS,
|
|
615
646
|
STOP_TIME,
|
|
616
647
|
SUBSTATION_LAYOUT,
|
|
648
|
+
SWITCH_ID,
|
|
617
649
|
SWITCH_TYPE,
|
|
618
650
|
SecurityAnalysisParametersDialog,
|
|
619
651
|
SecurityAnalysisParametersInline,
|
|
@@ -656,12 +688,26 @@ export {
|
|
|
656
688
|
SwitchKind,
|
|
657
689
|
SwitchWithLabel,
|
|
658
690
|
SwitchesBetweenSections,
|
|
691
|
+
TABULAR_BOOLEAN,
|
|
692
|
+
TABULAR_CREATION_FIELDS,
|
|
693
|
+
TABULAR_CREATION_TYPES,
|
|
694
|
+
TABULAR_ENUM,
|
|
695
|
+
TABULAR_MODIFICATION_FIELDS,
|
|
696
|
+
TABULAR_MODIFICATION_TYPES,
|
|
697
|
+
TABULAR_NUMBER,
|
|
659
698
|
TEMPORARY_LIMIT_MODIFICATION_TYPE,
|
|
699
|
+
TOPOLOGY_MODIFICATION_TABLE,
|
|
660
700
|
TRANSFORMERS_SELECTION_TYPE,
|
|
661
701
|
TWT_SPLIT_SHUNT_ADMITTANCE,
|
|
662
702
|
TWT_TAB_FIELDS,
|
|
703
|
+
TWT_TAP_CHANGER_FIELDS,
|
|
663
704
|
TabPanel,
|
|
664
705
|
TabValues,
|
|
706
|
+
TabularFieldConstants,
|
|
707
|
+
TabularForm,
|
|
708
|
+
TabularModificationType,
|
|
709
|
+
TabularPropertiesForm,
|
|
710
|
+
TabularPropertyForm,
|
|
665
711
|
TapChangerSteps,
|
|
666
712
|
TemporaryLimitsTable,
|
|
667
713
|
ToBeEstimatedForm,
|
|
@@ -696,12 +742,14 @@ export {
|
|
|
696
742
|
VoltageLevelCreationForm,
|
|
697
743
|
VoltageLevelModificationForm,
|
|
698
744
|
VoltageLevelSectionCreationForm,
|
|
745
|
+
VoltageLevelTopologyModificationForm,
|
|
699
746
|
VoltageRegulationForm,
|
|
700
747
|
WRITE_SLACK_BUS,
|
|
701
748
|
addGlobalFilterId,
|
|
702
749
|
addModificationTypeToOpLimitsGroups,
|
|
703
750
|
addModificationTypeToTemporaryLimits,
|
|
704
751
|
addOperationTypeToSelectedOpLG,
|
|
752
|
+
addPropertiesFromBack,
|
|
705
753
|
addSelectedGlobalFiltersToTableState,
|
|
706
754
|
alertThresholdMarks,
|
|
707
755
|
batteryCreationDtoToForm,
|
|
@@ -713,6 +761,7 @@ export {
|
|
|
713
761
|
batteryModificationFormSchema,
|
|
714
762
|
batteryModificationFormToDto,
|
|
715
763
|
buildNewBusbarSections,
|
|
764
|
+
buildPredefinedTabularProperties,
|
|
716
765
|
buildValidGlobalFilters,
|
|
717
766
|
byFilterDeletionDtoToForm,
|
|
718
767
|
byFilterDeletionFormSchema,
|
|
@@ -726,8 +775,18 @@ export {
|
|
|
726
775
|
computeSwitchedOnValue,
|
|
727
776
|
computeTagMinSize,
|
|
728
777
|
containsReferenceModification,
|
|
778
|
+
convertCreationFieldFromBackToFront,
|
|
779
|
+
convertCreationFieldFromFrontToBack,
|
|
780
|
+
convertCreations,
|
|
729
781
|
convertFilterValues,
|
|
782
|
+
convertGeneratorOrBatteryModificationFromBackToFront,
|
|
783
|
+
convertGeneratorOrBatteryModificationFromFrontToBack,
|
|
784
|
+
convertInputValues,
|
|
730
785
|
convertLimitsToOperationalLimitsGroupFormSchema,
|
|
786
|
+
convertOutputValues,
|
|
787
|
+
convertReactiveCapabilityCurvePointsFromBackToFront,
|
|
788
|
+
convertReactiveCapabilityCurvePointsFromFrontToBack,
|
|
789
|
+
convertTWTTapChangerModificationFromFrontToBack,
|
|
731
790
|
convertToLineSegmentInfos,
|
|
732
791
|
convertToLineSegmentsFormData,
|
|
733
792
|
convertToOperationalLimitsGroupFormSchema,
|
|
@@ -759,8 +818,10 @@ export {
|
|
|
759
818
|
emptyLineSegment,
|
|
760
819
|
emptyModificationByAssignmentFormData,
|
|
761
820
|
emptyModificationFormData,
|
|
821
|
+
emptyMoveVoltageLevelFeederBaysFormData,
|
|
762
822
|
emptyProcessConfigModificationsFormData,
|
|
763
823
|
emptyProperties,
|
|
824
|
+
emptyTabularProperties,
|
|
764
825
|
equipmentDeletionDtoToForm,
|
|
765
826
|
equipmentDeletionEmptyFormData,
|
|
766
827
|
equipmentDeletionFormSchema,
|
|
@@ -775,9 +836,11 @@ export {
|
|
|
775
836
|
flattenNmKResultsContingencies,
|
|
776
837
|
formatComputingTypeLabel,
|
|
777
838
|
formatMapInfosToTemporaryLimitsFormSchema,
|
|
839
|
+
formatModification,
|
|
778
840
|
formatOpLimitGroupsToFormInfos,
|
|
779
841
|
formatTemporaryLimitsModificationToFormSchema,
|
|
780
842
|
formatToComposedModification,
|
|
843
|
+
generateCommentLines,
|
|
781
844
|
generateEmptyOperationalLimitsGroup,
|
|
782
845
|
generateUniqueId,
|
|
783
846
|
generatorCreationDtoToForm,
|
|
@@ -839,6 +902,9 @@ export {
|
|
|
839
902
|
getCreateRuleValidationSchema,
|
|
840
903
|
getCreateSwitchesEmptyFormData,
|
|
841
904
|
getCreateSwitchesValidationSchema,
|
|
905
|
+
getEmptyTabularFormData,
|
|
906
|
+
getEquipmentTypeFromCreationType,
|
|
907
|
+
getEquipmentTypeFromModificationType,
|
|
842
908
|
getFilledPropertiesFromModification,
|
|
843
909
|
getFormulaInitialValue,
|
|
844
910
|
getFormulaSchema,
|
|
@@ -898,6 +964,7 @@ export {
|
|
|
898
964
|
getRegulationTypeForEdit,
|
|
899
965
|
getRegulationTypeLabel,
|
|
900
966
|
getRowEmptyFormData,
|
|
967
|
+
getSelectedTabularPropertyNames,
|
|
901
968
|
getSetPointsEmptyFormData,
|
|
902
969
|
getSetPointsSchema,
|
|
903
970
|
getShortCircuitEmptyFormData,
|
|
@@ -908,6 +975,7 @@ export {
|
|
|
908
975
|
getStandbyAutomatonFormValidationSchema,
|
|
909
976
|
getTabIndicatorStyle,
|
|
910
977
|
getTabStyle,
|
|
978
|
+
getTabularFieldType,
|
|
911
979
|
getTapChangerEquipmentSectionTypeValue,
|
|
912
980
|
getTapSideForEdit,
|
|
913
981
|
getTapSideLabel,
|
|
@@ -923,12 +991,14 @@ export {
|
|
|
923
991
|
initializeAuthenticationDev,
|
|
924
992
|
initializeAuthenticationProd,
|
|
925
993
|
initializedProperty,
|
|
994
|
+
initializedTabularProperty,
|
|
926
995
|
intlInitialVoltageProfileMode,
|
|
927
996
|
intlPredefinedParametersOptions,
|
|
928
997
|
isCompositeModification,
|
|
929
998
|
isCriteriaFilter,
|
|
930
999
|
isCriteriaFilterType,
|
|
931
1000
|
isEditingGlobalFilter,
|
|
1001
|
+
isFieldTypeOk,
|
|
932
1002
|
isProcessType,
|
|
933
1003
|
isReferenceModification,
|
|
934
1004
|
isValidComputingType,
|
|
@@ -967,6 +1037,9 @@ export {
|
|
|
967
1037
|
modificationByFormulaFormToDto,
|
|
968
1038
|
modificationPropertiesSchema,
|
|
969
1039
|
moveSubModificationInTree,
|
|
1040
|
+
moveVoltageLevelFeederBaysDtoToForm,
|
|
1041
|
+
moveVoltageLevelFeederBaysFormSchema,
|
|
1042
|
+
moveVoltageLevelFeederBaysFormToDto,
|
|
970
1043
|
networkModificationTableStyles,
|
|
971
1044
|
newEquipmentDeletionDto,
|
|
972
1045
|
numericFilterParams,
|
|
@@ -979,7 +1052,9 @@ export {
|
|
|
979
1052
|
sanitizeLimitNames,
|
|
980
1053
|
sanitizeLimitsGroups,
|
|
981
1054
|
sanitizePercentageValue,
|
|
1055
|
+
sanitizeRowValue,
|
|
982
1056
|
setCurrentReactiveCapabilityCurveTable,
|
|
1057
|
+
setFieldTypeError,
|
|
983
1058
|
setSelectedReactiveLimits,
|
|
984
1059
|
shuntCompensatorCreationDtoToForm,
|
|
985
1060
|
shuntCompensatorCreationEmptyFormData,
|
|
@@ -1003,6 +1078,12 @@ export {
|
|
|
1003
1078
|
substationModificationFormSchema,
|
|
1004
1079
|
substationModificationFormToDto,
|
|
1005
1080
|
syncGlobalFilters,
|
|
1081
|
+
tabularCreationDtoToForm,
|
|
1082
|
+
tabularCreationFormToDto,
|
|
1083
|
+
tabularFormSchema,
|
|
1084
|
+
tabularModificationDtoToForm,
|
|
1085
|
+
tabularModificationFormToDto,
|
|
1086
|
+
tabularPropertiesSchema,
|
|
1006
1087
|
testValueWithinPowerInterval,
|
|
1007
1088
|
textFilterParams,
|
|
1008
1089
|
toBeEstimatedEmptyFormData,
|
|
@@ -1012,6 +1093,11 @@ export {
|
|
|
1012
1093
|
toReactiveCapabilityCurveChoiceForGeneratorCreation,
|
|
1013
1094
|
toReactiveCapabilityCurveChoiceForGeneratorModification,
|
|
1014
1095
|
toTapChangerStepList,
|
|
1096
|
+
transformCreationsTable,
|
|
1097
|
+
transformModificationsTable,
|
|
1098
|
+
transformProperties,
|
|
1099
|
+
transformRowToBackEndCreation,
|
|
1100
|
+
transformRowToBackEndModification,
|
|
1015
1101
|
translateSwitchKinds,
|
|
1016
1102
|
twoWindingsTransformerCreationDtoToForm,
|
|
1017
1103
|
twoWindingsTransformerCreationEmptyFormData,
|
|
@@ -1048,5 +1134,9 @@ export {
|
|
|
1048
1134
|
voltageLevelSectionCreationDtoToForm,
|
|
1049
1135
|
voltageLevelSectionCreationEmptyFormData,
|
|
1050
1136
|
voltageLevelSectionCreationFormSchema,
|
|
1051
|
-
voltageLevelSectionCreationFormToDto
|
|
1137
|
+
voltageLevelSectionCreationFormToDto,
|
|
1138
|
+
voltageLevelTopologyModificationDtoToForm,
|
|
1139
|
+
voltageLevelTopologyModificationEmptyFormData,
|
|
1140
|
+
voltageLevelTopologyModificationFormSchema,
|
|
1141
|
+
voltageLevelTopologyModificationFormToDto
|
|
1052
1142
|
};
|