@gridsuite/commons-ui 0.106.1 → 0.107.1
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/directoryItemSelector/DirectoryItemSelector.js +1 -0
- package/dist/components/filter/expert/expertFilterConstants.d.ts +15 -0
- package/dist/components/filter/expert/expertFilterConstants.js +28 -0
- package/dist/components/filter/expert/expertFilterUtils.js +1 -1
- package/dist/components/grid/grid-item.d.ts +8 -0
- package/dist/components/grid/grid-item.js +8 -0
- package/dist/components/grid/grid-section.d.ts +8 -0
- package/dist/components/grid/grid-section.js +9 -0
- package/dist/components/grid/index.d.ts +8 -0
- package/dist/components/grid/index.js +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +19 -0
- package/dist/components/inputs/reactQueryBuilder/ValueEditor.js +4 -2
- package/dist/components/parameters/common/index.d.ts +1 -0
- package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +14 -0
- package/dist/components/parameters/common/parameters-edition-dialog-props.js +1 -0
- package/dist/components/parameters/index.d.ts +1 -0
- package/dist/components/parameters/index.js +16 -0
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.d.ts +1 -14
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.d.ts +0 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +0 -35
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +1 -2
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +4 -4
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.d.ts +2 -14
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +7 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +7 -1
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.d.ts +16 -2
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +15 -6
- package/dist/components/parameters/short-circuit/constants.d.ts +37 -0
- package/dist/components/parameters/short-circuit/constants.js +58 -0
- package/dist/components/parameters/short-circuit/index.d.ts +10 -0
- package/dist/components/parameters/short-circuit/index.js +18 -0
- package/dist/components/parameters/short-circuit/short-circuit-fields.d.ts +9 -0
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +169 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.d.ts +2 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +91 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.d.ts +9 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +69 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.d.ts +8 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +147 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters.type.d.ts +38 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters.type.js +1 -0
- package/dist/components/parameters/short-circuit/short-circuit-voltage-table.d.ts +5 -0
- package/dist/components/parameters/short-circuit/short-circuit-voltage-table.js +38 -0
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.d.ts +29 -0
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +222 -0
- package/dist/components/treeViewFinder/TreeViewFinder.d.ts +2 -0
- package/dist/index.js +23 -1
- package/dist/services/index.js +4 -1
- package/dist/services/short-circuit-analysis.d.ts +2 -0
- package/dist/services/short-circuit-analysis.js +13 -0
- package/dist/services/study.d.ts +4 -0
- package/dist/services/study.js +25 -1
- package/dist/translations/en/filterExpertEn.d.ts +3 -0
- package/dist/translations/en/filterExpertEn.js +4 -1
- package/dist/translations/en/parameters.d.ts +28 -0
- package/dist/translations/en/parameters.js +29 -1
- package/dist/translations/fr/filterExpertFr.d.ts +3 -0
- package/dist/translations/fr/filterExpertFr.js +4 -1
- package/dist/translations/fr/parameters.d.ts +28 -0
- package/dist/translations/fr/parameters.js +29 -1
- package/dist/utils/types/fieldType.d.ts +3 -0
- package/dist/utils/types/fieldType.js +3 -0
- package/package.json +1 -1
|
@@ -1155,5 +1155,20 @@ export declare const FIELDS_OPTIONS: {
|
|
|
1155
1155
|
dataType: DataType;
|
|
1156
1156
|
inputType: string;
|
|
1157
1157
|
};
|
|
1158
|
+
SUBSTATION_ID: {
|
|
1159
|
+
name: FieldType;
|
|
1160
|
+
label: string;
|
|
1161
|
+
dataType: DataType;
|
|
1162
|
+
};
|
|
1163
|
+
SUBSTATION_ID_1: {
|
|
1164
|
+
name: FieldType;
|
|
1165
|
+
label: string;
|
|
1166
|
+
dataType: DataType;
|
|
1167
|
+
};
|
|
1168
|
+
SUBSTATION_ID_2: {
|
|
1169
|
+
name: FieldType;
|
|
1170
|
+
label: string;
|
|
1171
|
+
dataType: DataType;
|
|
1172
|
+
};
|
|
1158
1173
|
};
|
|
1159
1174
|
export declare const EXPERT_FILTER_FIELDS: Record<string, Field[]>;
|
|
@@ -1096,6 +1096,21 @@ const FIELDS_OPTIONS = {
|
|
|
1096
1096
|
unit: KILO_AMPERE,
|
|
1097
1097
|
dataType: DataType.NUMBER,
|
|
1098
1098
|
inputType: "number"
|
|
1099
|
+
},
|
|
1100
|
+
SUBSTATION_ID: {
|
|
1101
|
+
name: FieldType.SUBSTATION_ID,
|
|
1102
|
+
label: "substationId",
|
|
1103
|
+
dataType: DataType.STRING
|
|
1104
|
+
},
|
|
1105
|
+
SUBSTATION_ID_1: {
|
|
1106
|
+
name: FieldType.SUBSTATION_ID_1,
|
|
1107
|
+
label: "substationId1",
|
|
1108
|
+
dataType: DataType.STRING
|
|
1109
|
+
},
|
|
1110
|
+
SUBSTATION_ID_2: {
|
|
1111
|
+
name: FieldType.SUBSTATION_ID_2,
|
|
1112
|
+
label: "substationId2",
|
|
1113
|
+
dataType: DataType.STRING
|
|
1099
1114
|
}
|
|
1100
1115
|
};
|
|
1101
1116
|
const EXPERT_FILTER_FIELDS = {
|
|
@@ -1108,6 +1123,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1108
1123
|
FIELDS_OPTIONS.LOW_VOLTAGE_LIMIT,
|
|
1109
1124
|
FIELDS_OPTIONS.HIGH_VOLTAGE_LIMIT,
|
|
1110
1125
|
FIELDS_OPTIONS.PROPERTY,
|
|
1126
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1111
1127
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1112
1128
|
FIELDS_OPTIONS.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
|
|
1113
1129
|
FIELDS_OPTIONS.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT
|
|
@@ -1130,6 +1146,8 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1130
1146
|
FIELDS_OPTIONS.SHUNT_SUSCEPTANCE_1,
|
|
1131
1147
|
FIELDS_OPTIONS.SHUNT_SUSCEPTANCE_2,
|
|
1132
1148
|
FIELDS_OPTIONS.PROPERTY,
|
|
1149
|
+
FIELDS_OPTIONS.SUBSTATION_ID_1,
|
|
1150
|
+
FIELDS_OPTIONS.SUBSTATION_ID_2,
|
|
1133
1151
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY_1,
|
|
1134
1152
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY_2,
|
|
1135
1153
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
|
|
@@ -1160,6 +1178,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1160
1178
|
FIELDS_OPTIONS.PHASE_REGULATION_MODE,
|
|
1161
1179
|
FIELDS_OPTIONS.PHASE_REGULATION_VALUE,
|
|
1162
1180
|
FIELDS_OPTIONS.PROPERTY,
|
|
1181
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1163
1182
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1164
1183
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
|
|
1165
1184
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_2
|
|
@@ -1242,6 +1261,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1242
1261
|
FIELDS_OPTIONS.PHASE_REGULATION_MODE_2,
|
|
1243
1262
|
FIELDS_OPTIONS.PHASE_REGULATION_MODE_3,
|
|
1244
1263
|
FIELDS_OPTIONS.PROPERTY,
|
|
1264
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1245
1265
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1246
1266
|
{
|
|
1247
1267
|
...FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
|
|
@@ -1273,6 +1293,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1273
1293
|
FIELDS_OPTIONS.PLANNED_OUTAGE_RATE,
|
|
1274
1294
|
FIELDS_OPTIONS.FORCED_OUTAGE_RATE,
|
|
1275
1295
|
FIELDS_OPTIONS.PROPERTY,
|
|
1296
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1276
1297
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1277
1298
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
1278
1299
|
],
|
|
@@ -1288,6 +1309,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1288
1309
|
FIELDS_OPTIONS.TARGET_P,
|
|
1289
1310
|
FIELDS_OPTIONS.TARGET_Q,
|
|
1290
1311
|
FIELDS_OPTIONS.PROPERTY,
|
|
1312
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1291
1313
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1292
1314
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
1293
1315
|
],
|
|
@@ -1302,6 +1324,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1302
1324
|
FIELDS_OPTIONS.P0,
|
|
1303
1325
|
FIELDS_OPTIONS.Q0,
|
|
1304
1326
|
FIELDS_OPTIONS.PROPERTY,
|
|
1327
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1305
1328
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1306
1329
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
1307
1330
|
],
|
|
@@ -1320,6 +1343,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1320
1343
|
FIELDS_OPTIONS.MAX_SUSCEPTANCE,
|
|
1321
1344
|
FIELDS_OPTIONS.SWITCHED_ON_SUSCEPTANCE,
|
|
1322
1345
|
FIELDS_OPTIONS.PROPERTY,
|
|
1346
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1323
1347
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1324
1348
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
1325
1349
|
],
|
|
@@ -1364,6 +1388,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1364
1388
|
},
|
|
1365
1389
|
FIELDS_OPTIONS.SUSCEPTANCE_FIX,
|
|
1366
1390
|
FIELDS_OPTIONS.PROPERTY,
|
|
1391
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1367
1392
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1368
1393
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
1369
1394
|
],
|
|
@@ -1386,6 +1411,8 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1386
1411
|
FIELDS_OPTIONS.ACTIVE_POWER_SET_POINT,
|
|
1387
1412
|
FIELDS_OPTIONS.CONVERTERS_MODE,
|
|
1388
1413
|
FIELDS_OPTIONS.PROPERTY,
|
|
1414
|
+
FIELDS_OPTIONS.SUBSTATION_ID_1,
|
|
1415
|
+
FIELDS_OPTIONS.SUBSTATION_ID_2,
|
|
1389
1416
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY_1,
|
|
1390
1417
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY_2,
|
|
1391
1418
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
|
|
@@ -1408,6 +1435,7 @@ const EXPERT_FILTER_FIELDS = {
|
|
|
1408
1435
|
FIELDS_OPTIONS.PAIRED,
|
|
1409
1436
|
FIELDS_OPTIONS.PAIRING_KEY,
|
|
1410
1437
|
FIELDS_OPTIONS.PROPERTY,
|
|
1438
|
+
FIELDS_OPTIONS.SUBSTATION_ID,
|
|
1411
1439
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
1412
1440
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
1413
1441
|
]
|
|
@@ -43,7 +43,7 @@ const getOperators = (fieldName, intl) => {
|
|
|
43
43
|
OPERATOR_OPTIONS.EXISTS,
|
|
44
44
|
OPERATOR_OPTIONS.NOT_EXISTS
|
|
45
45
|
];
|
|
46
|
-
if (field.name === FieldType.ID || field.name === FieldType.VOLTAGE_LEVEL_ID || field.name === FieldType.VOLTAGE_LEVEL_ID_1 || field.name === FieldType.VOLTAGE_LEVEL_ID_2 || field.name === FieldType.VOLTAGE_LEVEL_ID_3) {
|
|
46
|
+
if (field.name === FieldType.ID || field.name === FieldType.VOLTAGE_LEVEL_ID || field.name === FieldType.VOLTAGE_LEVEL_ID_1 || field.name === FieldType.VOLTAGE_LEVEL_ID_2 || field.name === FieldType.VOLTAGE_LEVEL_ID_3 || field.name === FieldType.SUBSTATION_ID || field.name === FieldType.SUBSTATION_ID_1 || field.name === FieldType.SUBSTATION_ID_2) {
|
|
47
47
|
stringOperators.push(OPERATOR_OPTIONS.IS_PART_OF);
|
|
48
48
|
stringOperators.push(OPERATOR_OPTIONS.IS_NOT_PART_OF);
|
|
49
49
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { GridSize } from '@mui/material';
|
|
3
|
+
export interface GridItemProps extends PropsWithChildren {
|
|
4
|
+
size?: GridSize;
|
|
5
|
+
alignItem?: string;
|
|
6
|
+
tooltip?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export default function GridItem({ children, size, alignItem, tooltip }: Readonly<GridItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Grid, Tooltip } from "@mui/material";
|
|
3
|
+
function GridItem({ children, size = 6, alignItem = "flex-start", tooltip }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(Grid, { item: true, xs: size, alignItems: alignItem, children: children && (tooltip ? /* @__PURE__ */ jsx(Tooltip, { title: tooltip, children: /* @__PURE__ */ jsx("div", { children }) }) : children) });
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
GridItem as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
export interface GridSectionProps {
|
|
3
|
+
title: string;
|
|
4
|
+
heading?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
+
size?: number;
|
|
6
|
+
customStyle?: SxProps<Theme>;
|
|
7
|
+
}
|
|
8
|
+
export default function GridSection({ title, heading, size, customStyle }: Readonly<GridSectionProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Grid, Box } from "@mui/material";
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
|
+
function GridSection({ title, heading = 3, size = 12, customStyle }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: size, children: /* @__PURE__ */ jsx(Box, { sx: customStyle, component: `h${heading}`, children: /* @__PURE__ */ jsx(FormattedMessage, { id: title }) }) }) });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
GridSection as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export * from './grid-item';
|
|
8
|
+
export * from './grid-section';
|
|
@@ -14,6 +14,7 @@ export * from './directoryItemSelector/DirectoryItemSelector';
|
|
|
14
14
|
export * from './elementSearch';
|
|
15
15
|
export * from './filter';
|
|
16
16
|
export * from './flatParameters';
|
|
17
|
+
export * from './grid';
|
|
17
18
|
export * from './inputs';
|
|
18
19
|
export * from './multipleSelectionDialog';
|
|
19
20
|
export * from './overflowableText';
|
package/dist/components/index.js
CHANGED
|
@@ -43,6 +43,9 @@ import { FILTER_EQUIPMENTS_ATTRIBUTES } from "./filter/explicitNaming/ExplicitNa
|
|
|
43
43
|
import { saveExpertFilter, saveExplicitNamingFilter } from "./filter/utils/filterApi.js";
|
|
44
44
|
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./filter/utils/filterFormUtils.js";
|
|
45
45
|
import { FlatParameters, extractDefault } from "./flatParameters/FlatParameters.js";
|
|
46
|
+
import "react/jsx-runtime";
|
|
47
|
+
import "@mui/material";
|
|
48
|
+
import "react-intl";
|
|
46
49
|
import { SelectClearable } from "./inputs/SelectClearable.js";
|
|
47
50
|
import { DESCRIPTION_INPUT, DirectoryItemsInput, NAME } from "./inputs/reactHookForm/DirectoryItemsInput.js";
|
|
48
51
|
import { RawReadOnlyInput } from "./inputs/reactHookForm/RawReadOnlyInput.js";
|
|
@@ -139,6 +142,9 @@ import { getTabIndicatorStyle, getTabStyle, parametersStyles } from "./parameter
|
|
|
139
142
|
import { BALANCE_TYPE, COMMON_PARAMETERS, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, SPECIFIC_PARAMETERS, TRANSFORMER_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./parameters/loadflow/constants.js";
|
|
140
143
|
import { LoadFlowParametersInline } from "./parameters/loadflow/load-flow-parameters-inline.js";
|
|
141
144
|
import { LoadFlowParametersEditionDialog } from "./parameters/loadflow/load-flow-parameters-dialog.js";
|
|
145
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions } from "./parameters/short-circuit/constants.js";
|
|
146
|
+
import { ShortCircuitParametersInLine } from "./parameters/short-circuit/short-circuit-parameters-inline.js";
|
|
147
|
+
import { ShortCircuitParametersEditionDialog } from "./parameters/short-circuit/short-circuit-parameters-dialog.js";
|
|
142
148
|
import { CustomMenuItem, CustomNestedMenuItem } from "./menus/custom-nested-menu.js";
|
|
143
149
|
export {
|
|
144
150
|
AboutDialog,
|
|
@@ -238,6 +244,7 @@ export {
|
|
|
238
244
|
INTL_MAP_BASE_MAP_OPTIONS,
|
|
239
245
|
INTL_SUBSTATION_LAYOUT_OPTIONS,
|
|
240
246
|
IST_FORM,
|
|
247
|
+
InitialVoltage,
|
|
241
248
|
InputWithPopupConfirmation,
|
|
242
249
|
IntegerInput,
|
|
243
250
|
LIMIT_DURATION_FORM,
|
|
@@ -307,6 +314,7 @@ export {
|
|
|
307
314
|
ParameterLineSlider,
|
|
308
315
|
ParameterSwitch,
|
|
309
316
|
PopupConfirmationDialog,
|
|
317
|
+
PredefinedParameters,
|
|
310
318
|
PropertyValueEditor,
|
|
311
319
|
ProviderParam,
|
|
312
320
|
RATIO_REGULATION_MODE_OPTIONS,
|
|
@@ -319,6 +327,13 @@ export {
|
|
|
319
327
|
RawReadOnlyInput,
|
|
320
328
|
RemoveButton,
|
|
321
329
|
RuleValueEditor,
|
|
330
|
+
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
331
|
+
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
332
|
+
SHORT_CIRCUIT_WITH_FEEDER_RESULT,
|
|
333
|
+
SHORT_CIRCUIT_WITH_LOADS,
|
|
334
|
+
SHORT_CIRCUIT_WITH_NEUTRAL_POSITION,
|
|
335
|
+
SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS,
|
|
336
|
+
SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS,
|
|
322
337
|
SHUNT_COMPENSATOR_TYPE_OPTIONS,
|
|
323
338
|
SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
|
|
324
339
|
SPECIFIC_PARAMETERS,
|
|
@@ -326,6 +341,8 @@ export {
|
|
|
326
341
|
SVAR_REGULATION_MODE_OPTIONS,
|
|
327
342
|
SelectClearable,
|
|
328
343
|
SelectInput,
|
|
344
|
+
ShortCircuitParametersEditionDialog,
|
|
345
|
+
ShortCircuitParametersInLine,
|
|
329
346
|
SignInCallbackHandler,
|
|
330
347
|
SilentRenewCallbackHandler,
|
|
331
348
|
SliderInput,
|
|
@@ -385,6 +402,8 @@ export {
|
|
|
385
402
|
importExpertRules,
|
|
386
403
|
initializeAuthenticationDev,
|
|
387
404
|
initializeAuthenticationProd,
|
|
405
|
+
intlInitialVoltageProfileMode,
|
|
406
|
+
intlPredefinedParametersOptions,
|
|
388
407
|
isFieldRequired,
|
|
389
408
|
isFloatNumber,
|
|
390
409
|
isIntegerNumber,
|
|
@@ -32,12 +32,12 @@ function ValueEditor(props) {
|
|
|
32
32
|
const { getValues } = formContext;
|
|
33
33
|
const itemFilter = useCallback(
|
|
34
34
|
(filterValue) => {
|
|
35
|
-
var _a, _b, _c;
|
|
35
|
+
var _a, _b, _c, _d;
|
|
36
36
|
if ((filterValue == null ? void 0 : filterValue.type) === ElementType.FILTER) {
|
|
37
37
|
return (
|
|
38
38
|
// we do not authorize to use an expert filter in the rules of
|
|
39
39
|
// another expert filter, to prevent potential cycle problems
|
|
40
|
-
((_a = filterValue == null ? void 0 : filterValue.specificMetadata) == null ? void 0 : _a.type) !== FilterType.EXPERT.id && (field === FieldType.ID && ((_b = filterValue == null ? void 0 : filterValue.specificMetadata) == null ? void 0 : _b.equipmentType) === getValues(FieldConstants.EQUIPMENT_TYPE) || (field === FieldType.VOLTAGE_LEVEL_ID || field === FieldType.VOLTAGE_LEVEL_ID_1 || field === FieldType.VOLTAGE_LEVEL_ID_2 || field === FieldType.VOLTAGE_LEVEL_ID_3) && ((_c = filterValue == null ? void 0 : filterValue.specificMetadata) == null ? void 0 : _c.equipmentType) === VoltageLevel.type)
|
|
40
|
+
((_a = filterValue == null ? void 0 : filterValue.specificMetadata) == null ? void 0 : _a.type) !== FilterType.EXPERT.id && (field === FieldType.ID && ((_b = filterValue == null ? void 0 : filterValue.specificMetadata) == null ? void 0 : _b.equipmentType) === getValues(FieldConstants.EQUIPMENT_TYPE) || (field === FieldType.VOLTAGE_LEVEL_ID || field === FieldType.VOLTAGE_LEVEL_ID_1 || field === FieldType.VOLTAGE_LEVEL_ID_2 || field === FieldType.VOLTAGE_LEVEL_ID_3) && ((_c = filterValue == null ? void 0 : filterValue.specificMetadata) == null ? void 0 : _c.equipmentType) === VoltageLevel.type || (field === FieldType.SUBSTATION_ID || field === FieldType.SUBSTATION_ID_1 || field === FieldType.SUBSTATION_ID_2) && ((_d = filterValue == null ? void 0 : filterValue.specificMetadata) == null ? void 0 : _d.equipmentType) === Substation.type)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
return true;
|
|
@@ -57,6 +57,8 @@ function ValueEditor(props) {
|
|
|
57
57
|
let equipmentTypes;
|
|
58
58
|
if (field === FieldType.VOLTAGE_LEVEL_ID || field === FieldType.VOLTAGE_LEVEL_ID_1 || field === FieldType.VOLTAGE_LEVEL_ID_2 || field === FieldType.VOLTAGE_LEVEL_ID_3) {
|
|
59
59
|
equipmentTypes = [VoltageLevel.type];
|
|
60
|
+
} else if (field === FieldType.SUBSTATION_ID || field === FieldType.SUBSTATION_ID_1 || field === FieldType.SUBSTATION_ID_2) {
|
|
61
|
+
equipmentTypes = [Substation.type];
|
|
60
62
|
} else if (field === FieldType.ID) {
|
|
61
63
|
equipmentTypes = [getValues(FieldConstants.EQUIPMENT_TYPE)];
|
|
62
64
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UUID } from 'crypto';
|
|
2
|
+
import { User } from 'oidc-client';
|
|
3
|
+
export interface ParametersEditionDialogProps {
|
|
4
|
+
id: UUID;
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
titleId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string | null;
|
|
10
|
+
activeDirectory: UUID;
|
|
11
|
+
language?: string;
|
|
12
|
+
user: User | null;
|
|
13
|
+
enableDeveloperMode?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -25,6 +25,9 @@ import { getTabIndicatorStyle, getTabStyle, parametersStyles } from "./parameter
|
|
|
25
25
|
import { BALANCE_TYPE, COMMON_PARAMETERS, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, DC, DC_POWER_FACTOR, DC_USE_TRANSFORMER_RATIO, DEFAULT_LIMIT_REDUCTION_VALUE, DISTRIBUTED_SLACK, HVDC_AC_EMULATION, MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION, PARAM_LIMIT_REDUCTION, PARAM_PROVIDER_OPENLOADFLOW, PHASE_SHIFTER_REGULATION_ON, READ_SLACK_BUS, SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON, SPECIFIC_PARAMETERS, TRANSFORMER_VOLTAGE_CONTROL_ON, TWT_SPLIT_SHUNT_ADMITTANCE, USE_REACTIVE_LIMITS, VOLTAGE_INIT_MODE, WRITE_SLACK_BUS, alertThresholdMarks } from "./loadflow/constants.js";
|
|
26
26
|
import { LoadFlowParametersInline } from "./loadflow/load-flow-parameters-inline.js";
|
|
27
27
|
import { LoadFlowParametersEditionDialog } from "./loadflow/load-flow-parameters-dialog.js";
|
|
28
|
+
import { InitialVoltage, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, intlInitialVoltageProfileMode, intlPredefinedParametersOptions } from "./short-circuit/constants.js";
|
|
29
|
+
import { ShortCircuitParametersInLine } from "./short-circuit/short-circuit-parameters-inline.js";
|
|
30
|
+
import { ShortCircuitParametersEditionDialog } from "./short-circuit/short-circuit-parameters-dialog.js";
|
|
28
31
|
export {
|
|
29
32
|
BALANCE_TYPE,
|
|
30
33
|
CENTER_LABEL,
|
|
@@ -50,6 +53,7 @@ export {
|
|
|
50
53
|
INTL_MAP_BASE_MAP_OPTIONS,
|
|
51
54
|
INTL_SUBSTATION_LAYOUT_OPTIONS,
|
|
52
55
|
IST_FORM,
|
|
56
|
+
InitialVoltage,
|
|
53
57
|
LIMIT_DURATION_FORM,
|
|
54
58
|
LIMIT_REDUCTIONS_FORM,
|
|
55
59
|
LINE_FLOW_MODE,
|
|
@@ -96,11 +100,21 @@ export {
|
|
|
96
100
|
ParameterLineDirectoryItemsInput,
|
|
97
101
|
ParameterLineSlider,
|
|
98
102
|
ParameterSwitch,
|
|
103
|
+
PredefinedParameters,
|
|
99
104
|
ProviderParam,
|
|
100
105
|
READ_SLACK_BUS,
|
|
106
|
+
SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
|
|
107
|
+
SHORT_CIRCUIT_PREDEFINED_PARAMS,
|
|
108
|
+
SHORT_CIRCUIT_WITH_FEEDER_RESULT,
|
|
109
|
+
SHORT_CIRCUIT_WITH_LOADS,
|
|
110
|
+
SHORT_CIRCUIT_WITH_NEUTRAL_POSITION,
|
|
111
|
+
SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS,
|
|
112
|
+
SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS,
|
|
101
113
|
SHUNT_COMPENSATOR_VOLTAGE_CONTROL_ON,
|
|
102
114
|
SPECIFIC_PARAMETERS,
|
|
103
115
|
SUBSTATION_LAYOUT,
|
|
116
|
+
ShortCircuitParametersEditionDialog,
|
|
117
|
+
ShortCircuitParametersInLine,
|
|
104
118
|
SubstationLayout,
|
|
105
119
|
SwitchWithLabel,
|
|
106
120
|
TAB_INFO,
|
|
@@ -119,6 +133,8 @@ export {
|
|
|
119
133
|
getSAParametersFromSchema,
|
|
120
134
|
getTabIndicatorStyle,
|
|
121
135
|
getTabStyle,
|
|
136
|
+
intlInitialVoltageProfileMode,
|
|
137
|
+
intlPredefinedParametersOptions,
|
|
122
138
|
isValidComputingType,
|
|
123
139
|
parametersStyles,
|
|
124
140
|
sanitizePercentageValue,
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { User } from 'oidc-client';
|
|
3
|
-
export interface ParametersEditionDialogProps {
|
|
4
|
-
id: UUID;
|
|
5
|
-
open: boolean;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
titleId: string;
|
|
8
|
-
name: string;
|
|
9
|
-
description: string | null;
|
|
10
|
-
activeDirectory: UUID;
|
|
11
|
-
language?: string;
|
|
12
|
-
user: User | null;
|
|
13
|
-
enableDeveloperMode: boolean;
|
|
14
|
-
}
|
|
1
|
+
import { ParametersEditionDialogProps } from '../common';
|
|
15
2
|
export declare function LoadFlowParametersEditionDialog({ id, open, onClose, titleId, name, description, activeDirectory, language, user, enableDeveloperMode, }: Readonly<ParametersEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,9 +45,6 @@ export declare const getAdvancedLoadFlowParametersFormSchema: () => yup.ObjectSc
|
|
|
45
45
|
dcUseTransformerRatio: undefined;
|
|
46
46
|
dcPowerFactor: undefined;
|
|
47
47
|
}, "">;
|
|
48
|
-
export declare const getDialogLoadFlowParametersFormSchema: (name: string | null) => {
|
|
49
|
-
[key: string]: yup.AnySchema;
|
|
50
|
-
};
|
|
51
48
|
export declare const getCommonLoadFlowParametersFormSchema: () => yup.ObjectSchema<{
|
|
52
49
|
commonParameters: {
|
|
53
50
|
transformerVoltageControlOn?: unknown;
|
|
@@ -3,33 +3,7 @@ import { HVDC_AC_EMULATION, CONNECTED_COMPONENT_MODE, COUNTRIES_TO_BALANCE, BALA
|
|
|
3
3
|
import { toFormValuesLimitReductions } from "../common/limitreductions/limit-reductions-form-util.js";
|
|
4
4
|
import "../../../utils/yupConfig.js";
|
|
5
5
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
6
|
-
import "react/jsx-runtime";
|
|
7
|
-
import "react-intl";
|
|
8
|
-
import "@mui/material";
|
|
9
|
-
import { NAME, DESCRIPTION_INPUT } from "../../inputs/reactHookForm/DirectoryItemsInput.js";
|
|
10
|
-
import "react-hook-form";
|
|
11
|
-
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
12
|
-
import "react";
|
|
13
|
-
import "../../customAGGrid/customAggrid.js";
|
|
14
|
-
import "ag-grid-community";
|
|
15
|
-
import "react-papaparse";
|
|
16
|
-
import "react-csv-downloader";
|
|
17
6
|
import * as yup from "yup";
|
|
18
|
-
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
19
|
-
import "@mui/icons-material";
|
|
20
|
-
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
21
|
-
import "localized-countries";
|
|
22
|
-
import "localized-countries/data/fr";
|
|
23
|
-
import "localized-countries/data/en";
|
|
24
|
-
import "../../../utils/conversionUtils.js";
|
|
25
|
-
import "../../../utils/types/equipmentType.js";
|
|
26
|
-
import "notistack";
|
|
27
|
-
import "@react-querybuilder/material";
|
|
28
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
29
|
-
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
30
|
-
import "uuid";
|
|
31
|
-
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
32
|
-
import "react-querybuilder";
|
|
33
7
|
var TabValues = /* @__PURE__ */ ((TabValues2) => {
|
|
34
8
|
TabValues2["GENERAL"] = "General";
|
|
35
9
|
TabValues2["LIMIT_REDUCTIONS"] = "LimitReductions";
|
|
@@ -59,14 +33,6 @@ const getAdvancedLoadFlowParametersFormSchema = () => {
|
|
|
59
33
|
[DC_POWER_FACTOR]: yup.number().required().positive("dcPowerFactorGreaterThan0").max(1, "dcPowerFactorLessOrEqualThan1")
|
|
60
34
|
});
|
|
61
35
|
};
|
|
62
|
-
const getDialogLoadFlowParametersFormSchema = (name) => {
|
|
63
|
-
const shape = {};
|
|
64
|
-
if (name) {
|
|
65
|
-
shape[NAME] = yup.string().required();
|
|
66
|
-
shape[DESCRIPTION_INPUT] = yup.string();
|
|
67
|
-
}
|
|
68
|
-
return shape;
|
|
69
|
-
};
|
|
70
36
|
const getCommonLoadFlowParametersFormSchema = () => {
|
|
71
37
|
return yup.object().shape({
|
|
72
38
|
[COMMON_PARAMETERS]: yup.object().shape({
|
|
@@ -150,7 +116,6 @@ export {
|
|
|
150
116
|
getBasicLoadFlowParametersFormSchema,
|
|
151
117
|
getCommonLoadFlowParametersFormSchema,
|
|
152
118
|
getDefaultSpecificParamsValues,
|
|
153
|
-
getDialogLoadFlowParametersFormSchema,
|
|
154
119
|
getSpecificLoadFlowParametersFormSchema,
|
|
155
120
|
mapLimitReductions,
|
|
156
121
|
setLimitReductions,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useForm } from "react-hook-form";
|
|
2
2
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
3
3
|
import { useState, useCallback, useMemo, useEffect } from "react";
|
|
4
|
-
import { TabValues, getDefaultSpecificParamsValues, getSpecificLoadFlowParametersFormSchema, getCommonLoadFlowParametersFormSchema,
|
|
4
|
+
import { TabValues, getDefaultSpecificParamsValues, getSpecificLoadFlowParametersFormSchema, getCommonLoadFlowParametersFormSchema, mapLimitReductions, setSpecificParameters, setLimitReductions } from "./load-flow-parameters-utils.js";
|
|
5
5
|
import { ParameterType } from "../../../utils/types/parameters.type.js";
|
|
6
6
|
import { PROVIDER } from "../common/constant.js";
|
|
7
7
|
import "react/jsx-runtime";
|
|
@@ -79,7 +79,6 @@ const useLoadFlowParametersForm = (parametersBackend, enableDeveloperMode, param
|
|
|
79
79
|
const formSchema = useMemo(() => {
|
|
80
80
|
var _a;
|
|
81
81
|
return yup.object({
|
|
82
|
-
...getDialogLoadFlowParametersFormSchema(name),
|
|
83
82
|
[PROVIDER]: yup.string().required(),
|
|
84
83
|
[PARAM_LIMIT_REDUCTION]: yup.number().nullable(),
|
|
85
84
|
...getCommonLoadFlowParametersFormSchema().fields,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Grid, Tabs, Tab
|
|
2
|
+
import { Grid, LinearProgress, Tabs, Tab } from "@mui/material";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import "@mui/icons-material";
|
|
@@ -57,10 +57,10 @@ function NetworkVisualizationParametersForm({
|
|
|
57
57
|
user
|
|
58
58
|
}) {
|
|
59
59
|
const componentLibraries = useGetAvailableComponentLibraries(user);
|
|
60
|
-
const { formMethods, formSchema, selectedTab, handleTabChange,
|
|
60
|
+
const { formMethods, formSchema, selectedTab, handleTabChange, paramsLoading } = networkVisuMethods;
|
|
61
61
|
return /* @__PURE__ */ jsx(CustomFormProvider, { validationSchema: formSchema, ...formMethods, removeOptional: true, children: /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", children: [
|
|
62
62
|
/* @__PURE__ */ jsx(Grid, { item: true, container: true, direction: "column", children: renderTitleFields == null ? void 0 : renderTitleFields() }),
|
|
63
|
-
|
|
63
|
+
paramsLoading ? /* @__PURE__ */ jsx(LinearProgress, {}) : /* @__PURE__ */ jsxs(Grid, { item: true, container: true, direction: "column", children: [
|
|
64
64
|
/* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: handleTabChange, children: [
|
|
65
65
|
/* @__PURE__ */ jsx(Tab, { label: /* @__PURE__ */ jsx(FormattedMessage, { id: "Map" }), value: NetworkVisualizationTabValues.MAP }),
|
|
66
66
|
/* @__PURE__ */ jsx(
|
|
@@ -81,7 +81,7 @@ function NetworkVisualizationParametersForm({
|
|
|
81
81
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: NetworkVisualizationTabValues.MAP, children: /* @__PURE__ */ jsx(MapParameters, {}) }),
|
|
82
82
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: NetworkVisualizationTabValues.SINGLE_LINE_DIAGRAM, children: /* @__PURE__ */ jsx(SingleLineDiagramParameters, { componentLibraries }) }),
|
|
83
83
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: NetworkVisualizationTabValues.NETWORK_AREA_DIAGRAM, children: /* @__PURE__ */ jsx(NetworkAreaDiagramParameters, {}) })
|
|
84
|
-
] })
|
|
84
|
+
] }),
|
|
85
85
|
/* @__PURE__ */ jsx(
|
|
86
86
|
Grid,
|
|
87
87
|
{
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface NetworkVisualizationsParametersEditionDialogProps {
|
|
4
|
-
id: UUID;
|
|
5
|
-
open: boolean;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
titleId: string;
|
|
8
|
-
name: string;
|
|
9
|
-
description: string | null;
|
|
10
|
-
activeDirectory: UUID;
|
|
11
|
-
language?: string;
|
|
12
|
-
user: User | null;
|
|
13
|
-
}
|
|
14
|
-
export declare function NetworkVisualizationsParametersEditionDialog({ id, open, onClose, titleId, name, description, activeDirectory, language, user, }: Readonly<NetworkVisualizationsParametersEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ParametersEditionDialogProps } from '../common';
|
|
2
|
+
export declare function NetworkVisualizationsParametersEditionDialog({ id, open, onClose, titleId, name, description, activeDirectory, language, user, }: Readonly<ParametersEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,7 +45,13 @@ function NetworkVisualizationsParametersEditionDialog({
|
|
|
45
45
|
language,
|
|
46
46
|
user
|
|
47
47
|
}) {
|
|
48
|
-
const networkVisuMethods = useNetworkVisualizationParametersForm(
|
|
48
|
+
const networkVisuMethods = useNetworkVisualizationParametersForm({
|
|
49
|
+
parametersUuid: id,
|
|
50
|
+
name,
|
|
51
|
+
description,
|
|
52
|
+
studyUuid: null,
|
|
53
|
+
parameters: null
|
|
54
|
+
});
|
|
49
55
|
const {
|
|
50
56
|
formState: { errors, dirtyFields }
|
|
51
57
|
} = networkVisuMethods.formMethods;
|
|
@@ -42,7 +42,13 @@ function NetworkVisualizationParametersInline({
|
|
|
42
42
|
user,
|
|
43
43
|
parameters
|
|
44
44
|
}) {
|
|
45
|
-
const networkVisuMethods = useNetworkVisualizationParametersForm(
|
|
45
|
+
const networkVisuMethods = useNetworkVisualizationParametersForm({
|
|
46
|
+
parametersUuid: null,
|
|
47
|
+
name: null,
|
|
48
|
+
description: null,
|
|
49
|
+
studyUuid,
|
|
50
|
+
parameters
|
|
51
|
+
});
|
|
46
52
|
const intl = useIntl();
|
|
47
53
|
const [openCreateParameterDialog, setOpenCreateParameterDialog] = useState(false);
|
|
48
54
|
const [openSelectParameterDialog, setOpenSelectParameterDialog] = useState(false);
|
|
@@ -9,8 +9,22 @@ export interface UseNetworkVisualizationParametersFormReturn {
|
|
|
9
9
|
formSchema: ObjectSchema<any>;
|
|
10
10
|
selectedTab: TabValues;
|
|
11
11
|
handleTabChange: (event: SyntheticEvent, newValue: TabValues) => void;
|
|
12
|
-
|
|
12
|
+
paramsLoading: boolean;
|
|
13
13
|
onSaveInline: (formData: Record<string, any>) => void;
|
|
14
14
|
onSaveDialog: (formData: Record<string, any>) => void;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
type UseNetworkVisualizationParametersFormProps = {
|
|
17
|
+
parametersUuid: UUID;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
studyUuid: null;
|
|
21
|
+
parameters: null;
|
|
22
|
+
} | {
|
|
23
|
+
parametersUuid: null;
|
|
24
|
+
name: null;
|
|
25
|
+
description: null;
|
|
26
|
+
studyUuid: UUID | null;
|
|
27
|
+
parameters: NetworkVisualizationParameters | null;
|
|
28
|
+
};
|
|
29
|
+
export declare const useNetworkVisualizationParametersForm: ({ parametersUuid, name, description, studyUuid, parameters, }: UseNetworkVisualizationParametersFormProps) => UseNetworkVisualizationParametersFormReturn;
|
|
30
|
+
export {};
|