@gridsuite/commons-ui 0.249.0 → 0.251.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/reactQueryBuilder/CustomReactQueryBuilder.js +23 -18
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +1 -1
- package/dist/features/index.js +10 -2
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.d.ts +3 -3
- package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.js +1 -1
- package/dist/features/network-modifications/common/index.js +1 -2
- package/dist/features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.js +1 -1
- package/dist/features/network-modifications/common/measurements/index.js +1 -2
- package/dist/features/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.d.ts +0 -8
- package/dist/features/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.js +0 -8
- package/dist/features/network-modifications/index.js +6 -2
- package/dist/features/network-modifications/line/catalog/segment.utils.d.ts +1 -1
- package/dist/features/network-modifications/line/common/LineDialogTabsContent.js +2 -2
- package/dist/features/network-modifications/line/common/line.types.d.ts +7 -0
- package/dist/features/network-modifications/line/creation/lineCreation.types.d.ts +1 -7
- package/dist/features/network-modifications/line/creation/lineCreation.utils.d.ts +1 -1
- package/dist/features/network-modifications/line/index.d.ts +1 -0
- package/dist/features/network-modifications/line/index.js +6 -1
- package/dist/features/network-modifications/line/modification/index.d.ts +8 -0
- package/dist/features/network-modifications/line/modification/index.js +7 -0
- package/dist/features/network-modifications/line/modification/lineModification.types.d.ts +43 -0
- package/dist/features/network-modifications/line/modification/lineModification.types.js +1 -0
- package/dist/features/network-modifications/line/modification/lineModification.utils.d.ts +154 -0
- package/dist/features/network-modifications/line/modification/lineModification.utils.js +193 -0
- package/dist/features/parameters/common/hook/use-tabs.d.ts +3 -1
- package/dist/features/parameters/common/hook/use-tabs.js +21 -15
- package/dist/features/parameters/index.d.ts +1 -0
- package/dist/features/parameters/index.js +4 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +3 -2
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +22 -3
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +14 -29
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -0
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -1
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.d.ts +3 -1
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +19 -6
- package/dist/features/parameters/security-analysis/constants.d.ts +3 -3
- package/dist/features/parameters/security-analysis/constants.js +3 -3
- package/dist/features/parameters/security-analysis/security-analysis-parameters-content.d.ts +4 -6
- package/dist/features/parameters/security-analysis/security-analysis-parameters-content.js +26 -30
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +2 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +1 -3
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +4 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-utils.d.ts +2 -0
- package/dist/features/parameters/security-analysis/security-analysis-parameters-utils.js +54 -0
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.d.ts +8 -1
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +21 -2
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +9 -8
- package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.d.ts +1 -0
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +27 -2
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +15 -24
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +19 -18
- package/dist/features/parameters/voltage-init/voltage-init-form-utils.d.ts +2 -0
- package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +14 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -0
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +27 -38
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +1 -1
- package/dist/features/process-configs/security-analysis/update-sa-process-config.js +2 -0
- package/dist/index.js +10 -2
- package/dist/translations/en/networkModificationsEn.d.ts +2 -0
- package/dist/translations/en/networkModificationsEn.js +2 -0
- package/dist/translations/fr/networkModificationsFr.d.ts +2 -0
- package/dist/translations/fr/networkModificationsFr.js +2 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Stack, Tabs, Tab, Grid2 } from "@mui/material";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
-
import { parametersStyles, getTabStyle
|
|
4
|
+
import { parametersStyles, getTabStyle } from "../parameters-style.js";
|
|
5
5
|
import "@mui/icons-material";
|
|
6
6
|
import "react";
|
|
7
7
|
import { TabPanel } from "../common/parameters.js";
|
|
@@ -47,43 +47,32 @@ function VoltageInitParametersForm({
|
|
|
47
47
|
}) {
|
|
48
48
|
const { selectedTab, handleTabChange, tabIndexesWithError } = voltageInitMethods;
|
|
49
49
|
return /* @__PURE__ */ jsxs(Stack, { sx: parametersStyles.scrollableGrid, children: [
|
|
50
|
-
/* @__PURE__ */ jsxs(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
77
|
-
Tab,
|
|
78
|
-
{
|
|
79
|
-
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "EquipmentSelection" }),
|
|
80
|
-
value: VoltageInitTabValues.EQUIPMENTS_SELECTION,
|
|
81
|
-
sx: getTabStyle(tabIndexesWithError, VoltageInitTabValues.EQUIPMENTS_SELECTION)
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
),
|
|
50
|
+
/* @__PURE__ */ jsxs(Tabs, { value: selectedTab, variant: "scrollable", onChange: handleTabChange, children: [
|
|
51
|
+
/* @__PURE__ */ jsx(
|
|
52
|
+
Tab,
|
|
53
|
+
{
|
|
54
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageInitParametersGeneralTabLabel" }),
|
|
55
|
+
value: VoltageInitTabValues.GENERAL,
|
|
56
|
+
sx: getTabStyle(tabIndexesWithError, VoltageInitTabValues.GENERAL)
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ jsx(
|
|
60
|
+
Tab,
|
|
61
|
+
{
|
|
62
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "VoltageLimits" }),
|
|
63
|
+
value: VoltageInitTabValues.VOLTAGE_LIMITS,
|
|
64
|
+
sx: getTabStyle(tabIndexesWithError, VoltageInitTabValues.VOLTAGE_LIMITS)
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
Tab,
|
|
69
|
+
{
|
|
70
|
+
label: /* @__PURE__ */ jsx(FormattedMessage, { id: "EquipmentSelection" }),
|
|
71
|
+
value: VoltageInitTabValues.EQUIPMENTS_SELECTION,
|
|
72
|
+
sx: getTabStyle(tabIndexesWithError, VoltageInitTabValues.EQUIPMENTS_SELECTION)
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] }),
|
|
87
76
|
/* @__PURE__ */ jsxs(Grid2, { container: true, children: [
|
|
88
77
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.GENERAL, children: /* @__PURE__ */ jsx(GeneralParameters, { withApplyModifications: !!showActionsButtons }) }),
|
|
89
78
|
/* @__PURE__ */ jsx(TabPanel, { value: selectedTab, index: VoltageInitTabValues.VOLTAGE_LIMITS, children: /* @__PURE__ */ jsx(VoltageLimitsParameters, {}) }),
|
|
@@ -104,7 +104,7 @@ function VoltageInitParametersInLine({
|
|
|
104
104
|
},
|
|
105
105
|
selectParameterHandler: handleLoadParameters,
|
|
106
106
|
resetHandler: resetVoltageInitParameters,
|
|
107
|
-
validateHandler: handleSubmit(voltageInitMethods.onSaveInline),
|
|
107
|
+
validateHandler: handleSubmit(voltageInitMethods.onSaveInline, voltageInitMethods.onValidationError),
|
|
108
108
|
children: /* @__PURE__ */ jsx(VoltageInitParametersForm, { voltageInitMethods, showActionsButtons: true })
|
|
109
109
|
}
|
|
110
110
|
)
|
|
@@ -44,7 +44,9 @@ import "../../parameters/loadflow/load-flow-parameters-context.js";
|
|
|
44
44
|
import "../../parameters/loadflow/load-flow-advanced-parameters.js";
|
|
45
45
|
import "../../parameters/loadflow/load-flow-parameters-content.js";
|
|
46
46
|
import "../../parameters/short-circuit/short-circuit-parameters-content.js";
|
|
47
|
+
import "../../parameters/voltage-init/voltage-init-form-utils.js";
|
|
47
48
|
import "react-dom";
|
|
49
|
+
import "../../parameters/security-analysis/security-analysis-parameters-utils.js";
|
|
48
50
|
import "../../parameters/sensi/utils.js";
|
|
49
51
|
import "../../parameters/sensi/columns-definitions.js";
|
|
50
52
|
import "../../parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js";
|
package/dist/index.js
CHANGED
|
@@ -227,12 +227,13 @@ import { CONTINGENCIES_LIST_INFOS, CONTINGENCIES_START_TIME, SCENARIO_DURATION }
|
|
|
227
227
|
import { DynamicSecurityAnalysisInline } from "./features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js";
|
|
228
228
|
import { ACCURACY, ACTIVE, CALCULATION_TYPE, LOADS_VARIATIONS, LOAD_FILTERS, LOAD_INCREASE_START_TIME, LOAD_INCREASE_STOP_TIME, LOAD_MODELS_RULE, MARGIN_CALCULATION_START_TIME, START_TIME, STOP_TIME, VARIATION } from "./features/parameters/dynamic-margin-calculation/constants.js";
|
|
229
229
|
import { DynamicMarginCalculationInline } from "./features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js";
|
|
230
|
+
import { getTabIndicatorStyle, getTabStyle, parametersStyles } from "./features/parameters/parameters-style.js";
|
|
230
231
|
import { filledTextField, italicFontTextField, standardTextField } from "./features/network-modifications/common/form.utils.js";
|
|
231
232
|
import { PropertiesForm } from "./features/network-modifications/common/properties/PropertiesForm.js";
|
|
232
233
|
import { PropertyForm } from "./features/network-modifications/common/properties/PropertyForm.js";
|
|
233
234
|
import { copyEquipmentPropertiesForCreation, createPropertyModification, creationPropertiesSchema, emptyProperties, fetchPredefinedProperties, getConcatenatedProperties, getFilledPropertiesFromModification, getPropertiesFromModification, getPropertyValue, initializedProperty, mergeModificationAndEquipmentProperties, modificationPropertiesSchema, toModificationProperties } from "./features/network-modifications/common/properties/propertyUtils.js";
|
|
234
235
|
import { getPowerWithValidityEditData, getPowerWithValidityEmptyFormData, getPowerWithValidityValidationSchema } from "./features/network-modifications/common/measurements/powerWithValidity.utils.js";
|
|
235
|
-
import {
|
|
236
|
+
import { getInjectionActiveReactivePowerEditDataProperties, getInjectionActiveReactivePowerEmptyFormData, getInjectionActiveReactivePowerEmptyFormDataProperties, getInjectionActiveReactivePowerValidationSchema, getInjectionActiveReactivePowerValidationSchemaProperties } from "./features/network-modifications/common/measurements/injectionActiveReactivePowerForm.utils.js";
|
|
236
237
|
import { getBranchActiveReactivePowerEditData, getBranchActiveReactivePowerEditDataProperties, getBranchActiveReactivePowerEmptyFormData, getBranchActiveReactivePowerEmptyFormDataProperties, getBranchActiveReactivePowerValidationSchema, getBranchActiveReactivePowerValidationSchemaObject, getBranchActiveReactivePowerValidationSchemaProperties } from "./features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.js";
|
|
237
238
|
import { PowerWithValidityForm } from "./features/network-modifications/common/measurements/PowerWithValidityForm.js";
|
|
238
239
|
import { PowerMeasurementsForm } from "./features/network-modifications/common/measurements/PowerMeasurementsForm.js";
|
|
@@ -397,6 +398,7 @@ import { LineDialogTabsContent } from "./features/network-modifications/line/com
|
|
|
397
398
|
import { LineDialogHeader } from "./features/network-modifications/line/common/LineDialogHeader.js";
|
|
398
399
|
import { LineForm } from "./features/network-modifications/line/common/LineForm.js";
|
|
399
400
|
import { lineCreationDtoToForm, lineCreationEmptyFormData, lineCreationFormSchema, lineCreationFormToDto } from "./features/network-modifications/line/creation/lineCreation.utils.js";
|
|
401
|
+
import { lineModificationDtoToForm, lineModificationEmptyFormData, lineModificationFormSchema, lineModificationFormToDto } from "./features/network-modifications/line/modification/lineModification.utils.js";
|
|
400
402
|
import { BuildStatusChip } from "./features/node/build-status-chip.js";
|
|
401
403
|
import { BuildStatus } from "./features/node/constant.js";
|
|
402
404
|
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 "./features/network-modification-table/network-modification-table-styles.js";
|
|
@@ -1367,7 +1369,6 @@ export {
|
|
|
1367
1369
|
getHvdcLccDeletionSchema,
|
|
1368
1370
|
getIdOrSelf,
|
|
1369
1371
|
getIdOrValue,
|
|
1370
|
-
getInjectionActiveReactivePowerEditData,
|
|
1371
1372
|
getInjectionActiveReactivePowerEditDataProperties,
|
|
1372
1373
|
getInjectionActiveReactivePowerEmptyFormData,
|
|
1373
1374
|
getInjectionActiveReactivePowerEmptyFormDataProperties,
|
|
@@ -1438,6 +1439,8 @@ export {
|
|
|
1438
1439
|
getStudyUrlWithNodeUuid,
|
|
1439
1440
|
getStudyUrlWithNodeUuidAndRootNetworkUuid,
|
|
1440
1441
|
getSystemLanguage,
|
|
1442
|
+
getTabIndicatorStyle,
|
|
1443
|
+
getTabStyle,
|
|
1441
1444
|
getUser,
|
|
1442
1445
|
getUserToken,
|
|
1443
1446
|
getVoltageInitParameters,
|
|
@@ -1483,6 +1486,10 @@ export {
|
|
|
1483
1486
|
lineCreationEmptyFormData,
|
|
1484
1487
|
lineCreationFormSchema,
|
|
1485
1488
|
lineCreationFormToDto,
|
|
1489
|
+
lineModificationDtoToForm,
|
|
1490
|
+
lineModificationEmptyFormData,
|
|
1491
|
+
lineModificationFormSchema,
|
|
1492
|
+
lineModificationFormToDto,
|
|
1486
1493
|
loadCreationDtoToForm,
|
|
1487
1494
|
loadCreationEmptyFormData,
|
|
1488
1495
|
loadCreationFormSchema,
|
|
@@ -1524,6 +1531,7 @@ export {
|
|
|
1524
1531
|
onlyStartedGeneratorsOptions,
|
|
1525
1532
|
parametersEn,
|
|
1526
1533
|
parametersFr,
|
|
1534
|
+
parametersStyles,
|
|
1527
1535
|
parseError,
|
|
1528
1536
|
parseIntData,
|
|
1529
1537
|
processConfigEn,
|
|
@@ -275,7 +275,9 @@ export declare const networkModificationsEn: {
|
|
|
275
275
|
GeneratorModificationError: string;
|
|
276
276
|
NoBusbarSectionFound: string;
|
|
277
277
|
CreateLine: string;
|
|
278
|
+
LineModificationError: string;
|
|
278
279
|
LineCreationError: string;
|
|
280
|
+
ModifyLine: string;
|
|
279
281
|
SelectedOperationalLimitGroups: string;
|
|
280
282
|
LimitSets: string;
|
|
281
283
|
DeleteFromMenu: string;
|
|
@@ -280,7 +280,9 @@ const networkModificationsEn = {
|
|
|
280
280
|
GeneratorModificationError: "Error while modifying generator",
|
|
281
281
|
NoBusbarSectionFound: "No busbar section found for this voltage level",
|
|
282
282
|
CreateLine: "Create line",
|
|
283
|
+
LineModificationError: "Error while modifying line",
|
|
283
284
|
LineCreationError: "Error while creating line",
|
|
285
|
+
ModifyLine: "Modify line",
|
|
284
286
|
SelectedOperationalLimitGroups: "Active limit sets",
|
|
285
287
|
LimitSets: "Limit sets",
|
|
286
288
|
DeleteFromMenu: "Delete",
|
|
@@ -276,6 +276,8 @@ export declare const networkModificationsFr: {
|
|
|
276
276
|
NoBusbarSectionFound: string;
|
|
277
277
|
CreateLine: string;
|
|
278
278
|
LineCreationError: string;
|
|
279
|
+
ModifyLine: string;
|
|
280
|
+
LineModificationError: string;
|
|
279
281
|
SelectedOperationalLimitGroups: string;
|
|
280
282
|
LimitSets: string;
|
|
281
283
|
DeleteFromMenu: string;
|
|
@@ -281,6 +281,8 @@ const networkModificationsFr = {
|
|
|
281
281
|
NoBusbarSectionFound: "Aucun jeu de barres trouvé pour ce poste",
|
|
282
282
|
CreateLine: "Créer une ligne",
|
|
283
283
|
LineCreationError: "Erreur lors de la création d'une ligne",
|
|
284
|
+
ModifyLine: "Modifier une ligne",
|
|
285
|
+
LineModificationError: "Erreur lors de la modification d'une ligne",
|
|
284
286
|
SelectedOperationalLimitGroups: "Jeux de limites actifs",
|
|
285
287
|
LimitSets: "Jeux de limites",
|
|
286
288
|
DeleteFromMenu: "Supprimer",
|