@gridsuite/commons-ui 0.296.0 → 0.297.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/agGridTable/BottomTableButtons.js +56 -44
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +32 -23
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +31 -23
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +67 -43
- package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.d.ts +3 -2
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +43 -28
- package/dist/components/composite/reactQueryBuilder/CustomReactQueryBuilder.js +4 -7
- package/dist/components/composite/reactQueryBuilder/FieldSelector.js +5 -3
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.js +63 -52
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.js +22 -9
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.js +59 -24
- package/dist/components/ui/csvPicker/csv-picker.js +24 -12
- package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js +15 -7
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +82 -39
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.js +29 -9
- package/dist/components/ui/dialogs/name-element-editor/name-element-editor-form.js +24 -15
- package/dist/components/ui/inputs/ActivableChip.js +2 -2
- package/dist/components/ui/inputs/SelectClearable.js +4 -3
- package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +1 -1
- package/dist/components/ui/reactHookForm/OverflowableChip.js +24 -13
- package/dist/components/ui/reactHookForm/OverflowableChipWithHelperText.js +9 -4
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +11 -5
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +13 -3
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -1
- package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.js +11 -1
- package/dist/features/authentication/AuthenticationRouter.js +62 -53
- package/dist/features/authentication/Login.js +15 -7
- package/dist/features/authentication/Logout.js +9 -1
- package/dist/features/cardErrorBoundary/CardErrorBoundary.js +28 -10
- package/dist/features/global-filter/ui/global-filter-panel.js +4 -10
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +22 -12
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +21 -11
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +35 -25
- package/dist/features/network-modifications/common/currentLimits/LimitsPane.js +28 -16
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js +16 -4
- package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsPropertiesSideStack.js +81 -68
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +31 -21
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +32 -21
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.d.ts +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -1
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +20 -9
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +22 -12
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +28 -18
- package/dist/features/network-modifications/hvdcLine/vsc/common/converterStation/VscConverterStationPane.js +15 -4
- package/dist/features/network-modifications/static-var-compensator/common/set-points-limits-form.js +70 -40
- package/dist/features/network-modifications/static-var-compensator/common/standby-automaton-form.js +35 -6
- package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-tabs-content.js +16 -7
- package/dist/features/network-modifications/tabular/TabularForm.js +102 -72
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +20 -10
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +35 -17
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +9 -1
- package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +6 -4
- package/dist/features/network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js +17 -7
- package/dist/features/network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js +23 -13
- package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +25 -15
- package/dist/features/parameters/common/parameter-field.js +17 -4
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +23 -12
- package/dist/features/parameters/common/provider-param.js +1 -1
- package/dist/features/parameters/common/widget/parameter-float.js +16 -4
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
- package/dist/features/parameters/common/widget/parameter-switch.js +13 -1
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-select.js +6 -4
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.js +43 -32
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector.js +47 -25
- package/dist/features/parameters/network-visualizations/map-parameters.js +7 -3
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +7 -3
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +7 -3
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +23 -13
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-factor-count.js +2 -2
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +12 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +36 -26
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +67 -26
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +15 -4
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +51 -15
- package/dist/features/parameters/voltage-init/general-parameters.js +9 -1
- package/dist/features/process-configs/common/FormSubSection.js +2 -2
- package/dist/features/process-configs/common/GeneralInformationSection.js +1 -1
- package/dist/features/process-configs/common/SpecificInformationSection.js +12 -4
- package/dist/features/process-configs/common/process-config-modifications-edition.js +3 -3
- package/dist/features/process-configs/form/components/ProcessTypeChangeDialog.js +5 -2
- package/dist/features/side-bar/AppSideBarHeader.js +36 -16
- package/dist/features/side-bar/footer/AppSideBarFooter.js +46 -38
- package/dist/features/side-bar/footer/applications/OtherAppRedirection.js +10 -8
- package/dist/features/side-bar/footer/common/SideBarMenuItem.js +9 -1
- package/dist/features/side-bar/footer/profile/ProfileInfos.js +15 -6
- package/dist/features/side-bar/footer/settings/DarkModeToggle.js +16 -4
- package/dist/features/side-bar/footer/settings/SettingsMenu.js +16 -6
- package/dist/features/topBar/AboutDialog.js +46 -17
- package/dist/features/topBar/TopBar.js +2 -2
- package/dist/features/topBar/UserInformationDialog.js +198 -45
- package/package.json +16 -11
|
@@ -33,7 +33,17 @@ function HelperPreviousValue({
|
|
|
33
33
|
children: isNodeBuilt ? /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "small" }) : /* @__PURE__ */ jsx(WarningAmberRounded, { color: "warning", fontSize: "small" })
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
Typography,
|
|
38
|
+
{
|
|
39
|
+
noWrap: true,
|
|
40
|
+
align: "center",
|
|
41
|
+
sx: {
|
|
42
|
+
fontSize: 11
|
|
43
|
+
},
|
|
44
|
+
children: previousValue + (adornmentText ? ` ${adornmentText}` : "")
|
|
45
|
+
}
|
|
46
|
+
)
|
|
37
47
|
] }) : previousValue + (adornmentText ? ` ${adornmentText}` : "") });
|
|
38
48
|
}
|
|
39
49
|
export {
|
|
@@ -26,66 +26,75 @@ function AuthenticationRouter({
|
|
|
26
26
|
handleSilentRenewCallback(userManager.instance);
|
|
27
27
|
}
|
|
28
28
|
}, [userManager.instance]);
|
|
29
|
-
return /* @__PURE__ */ jsxs(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
29
|
+
return /* @__PURE__ */ jsxs(
|
|
30
|
+
Stack,
|
|
31
|
+
{
|
|
32
|
+
sx: {
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
width: "100%"
|
|
35
|
+
},
|
|
36
|
+
children: [
|
|
37
|
+
userManager.error !== null && /* @__PURE__ */ jsxs("h1", { children: [
|
|
38
|
+
"Error : Getting userManager; ",
|
|
39
|
+
userManager.error
|
|
40
|
+
] }),
|
|
41
|
+
signInCallbackError !== null && /* @__PURE__ */ jsxs("h1", { children: [
|
|
42
|
+
"Error : SignIn Callback Error;",
|
|
43
|
+
signInCallbackError.message
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ jsxs(Routes, { children: [
|
|
46
|
+
/* @__PURE__ */ jsx(
|
|
47
|
+
Route,
|
|
45
48
|
{
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
path: "sign-in-callback",
|
|
50
|
+
element: /* @__PURE__ */ jsx(
|
|
51
|
+
SignInCallbackHandler,
|
|
52
|
+
{
|
|
53
|
+
userManager: userManager.instance,
|
|
54
|
+
handleSignInCallback: handleSigninCallbackClosure
|
|
55
|
+
}
|
|
56
|
+
)
|
|
48
57
|
}
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */ jsx(
|
|
53
|
-
Route,
|
|
54
|
-
{
|
|
55
|
-
path: "silent-renew-callback",
|
|
56
|
-
element: /* @__PURE__ */ jsx(
|
|
57
|
-
SilentRenewCallbackHandler,
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ jsx(
|
|
60
|
+
Route,
|
|
58
61
|
{
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
path: "silent-renew-callback",
|
|
63
|
+
element: /* @__PURE__ */ jsx(
|
|
64
|
+
SilentRenewCallbackHandler,
|
|
65
|
+
{
|
|
66
|
+
userManager: userManager.instance,
|
|
67
|
+
handleSilentRenewCallback: handleSilentRenewCallbackClosure
|
|
68
|
+
}
|
|
69
|
+
)
|
|
61
70
|
}
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */ jsx(
|
|
67
|
-
Route,
|
|
68
|
-
{
|
|
69
|
-
path: "*",
|
|
70
|
-
element: showAuthenticationRouterLogin && authenticationRouterError == null && /* @__PURE__ */ jsx(
|
|
71
|
-
Login,
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ jsx(Route, { path: "logout-callback", element: /* @__PURE__ */ jsx(Navigate, { to: "/" }) }),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
Route,
|
|
72
75
|
{
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
path: "*",
|
|
77
|
+
element: showAuthenticationRouterLogin && authenticationRouterError == null && /* @__PURE__ */ jsx(
|
|
78
|
+
Login,
|
|
79
|
+
{
|
|
80
|
+
disabled: userManager.instance === null,
|
|
81
|
+
onLoginClick: () => login(location, userManager.instance)
|
|
82
|
+
}
|
|
83
|
+
)
|
|
75
84
|
}
|
|
76
85
|
)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
] }),
|
|
87
|
+
authenticationRouterError !== null && /* @__PURE__ */ jsx(
|
|
88
|
+
AuthenticationRouterErrorDisplay,
|
|
89
|
+
{
|
|
90
|
+
dispatch,
|
|
91
|
+
instance: userManager.instance,
|
|
92
|
+
errorState: authenticationRouterError
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
89
98
|
}
|
|
90
99
|
export {
|
|
91
100
|
AuthenticationRouter
|
|
@@ -39,13 +39,21 @@ function Login({ onLoginClick, disabled }) {
|
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
Box,
|
|
44
|
+
{
|
|
45
|
+
sx: {
|
|
46
|
+
mt: 2
|
|
47
|
+
},
|
|
48
|
+
children: /* @__PURE__ */ jsxs(Typography, { variant: "body2", color: "textSecondary", align: "center", children: [
|
|
49
|
+
"Copyright © ",
|
|
50
|
+
/* @__PURE__ */ jsx(Link, { color: "inherit", href: "#", children: "GridSuite" }),
|
|
51
|
+
" ",
|
|
52
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
53
|
+
"."
|
|
54
|
+
] })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
49
57
|
] });
|
|
50
58
|
}
|
|
51
59
|
export {
|
|
@@ -37,7 +37,15 @@ function Logout({ onLogoutClick, disabled }) {
|
|
|
37
37
|
] }),
|
|
38
38
|
/* @__PURE__ */ jsx(Button, { disabled, fullWidth: true, variant: "contained", sx: styles.submit, onClick: onLogoutClick, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "login/logout", defaultMessage: "logout" }) })
|
|
39
39
|
] }),
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
Box,
|
|
42
|
+
{
|
|
43
|
+
sx: {
|
|
44
|
+
mt: 2
|
|
45
|
+
},
|
|
46
|
+
children: /* @__PURE__ */ jsx(Copyright, {})
|
|
47
|
+
}
|
|
48
|
+
)
|
|
41
49
|
] });
|
|
42
50
|
}
|
|
43
51
|
export {
|
|
@@ -57,13 +57,22 @@ class CardErrorBoundary extends Component {
|
|
|
57
57
|
)
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
|
|
61
|
-
|
|
60
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
|
|
61
|
+
Typography,
|
|
62
62
|
{
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
variant: "body2",
|
|
64
|
+
sx: {
|
|
65
|
+
color: "text.secondary"
|
|
66
|
+
},
|
|
67
|
+
children: /* @__PURE__ */ jsx(
|
|
68
|
+
FormattedMessage,
|
|
69
|
+
{
|
|
70
|
+
id: "card_error_boundary/content",
|
|
71
|
+
defaultMessage: "Please reload, or close and reopen this application, or contact support."
|
|
72
|
+
}
|
|
73
|
+
)
|
|
65
74
|
}
|
|
66
|
-
) })
|
|
75
|
+
) }),
|
|
67
76
|
/* @__PURE__ */ jsxs(CardActions, { disableSpacing: true, children: [
|
|
68
77
|
/* @__PURE__ */ jsx(IconButton, { onClick: this.handleReloadClick, "aria-label": "reload", children: /* @__PURE__ */ jsx(Replay, {}) }),
|
|
69
78
|
/* @__PURE__ */ jsx(
|
|
@@ -78,13 +87,22 @@ class CardErrorBoundary extends Component {
|
|
|
78
87
|
)
|
|
79
88
|
] }),
|
|
80
89
|
/* @__PURE__ */ jsx(Collapse, { in: expanded, children: /* @__PURE__ */ jsxs(CardContent, { children: [
|
|
81
|
-
/* @__PURE__ */ jsx(
|
|
82
|
-
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
Typography,
|
|
83
92
|
{
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
variant: "body2",
|
|
94
|
+
sx: {
|
|
95
|
+
color: "text.secondary"
|
|
96
|
+
},
|
|
97
|
+
children: /* @__PURE__ */ jsx(
|
|
98
|
+
FormattedMessage,
|
|
99
|
+
{
|
|
100
|
+
id: "card_error_boundary/expandederrorheader",
|
|
101
|
+
defaultMessage: "Error message (and see more information in the developper console):"
|
|
102
|
+
}
|
|
103
|
+
)
|
|
86
104
|
}
|
|
87
|
-
)
|
|
105
|
+
),
|
|
88
106
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: error.message })
|
|
89
107
|
] }) })
|
|
90
108
|
] }) });
|
|
@@ -55,15 +55,9 @@ import "react-window";
|
|
|
55
55
|
import "../../../components/composite/report/report-treeview/treeview-item.js";
|
|
56
56
|
import "../../../components/composite/report/report-viewer/context/report-viewer-context.js";
|
|
57
57
|
const TAG_LIMIT_NUMBER = 4;
|
|
58
|
-
function RenderInput({
|
|
59
|
-
id,
|
|
60
|
-
size,
|
|
61
|
-
fullWidth,
|
|
62
|
-
inputProps,
|
|
63
|
-
disabled,
|
|
64
|
-
InputProps: { startAdornment, ...otherInputProps }
|
|
65
|
-
}) {
|
|
58
|
+
function RenderInput({ id, size, fullWidth, slotProps, disabled }) {
|
|
66
59
|
const intl = useIntl();
|
|
60
|
+
const { startAdornment, ...otherInputProps } = slotProps.input;
|
|
67
61
|
return /* @__PURE__ */ jsx(
|
|
68
62
|
TextField,
|
|
69
63
|
{
|
|
@@ -75,7 +69,7 @@ function RenderInput({
|
|
|
75
69
|
id: "results.globalFilter.fillerText"
|
|
76
70
|
}),
|
|
77
71
|
slotProps: {
|
|
78
|
-
htmlInput:
|
|
72
|
+
htmlInput: slotProps.htmlInput,
|
|
79
73
|
input: {
|
|
80
74
|
...otherInputProps,
|
|
81
75
|
startAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -106,7 +100,7 @@ function RenderOption(props) {
|
|
|
106
100
|
case GlobalFilterType.SUBSTATION_OR_VL:
|
|
107
101
|
case GlobalFilterType.GENERIC_FILTER:
|
|
108
102
|
content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
109
|
-
/* @__PURE__ */ jsx(OverflowableText, { text: label, width: "100%" }),
|
|
103
|
+
/* @__PURE__ */ jsx(OverflowableText, { text: label, sx: { width: "100%" } }),
|
|
110
104
|
/* @__PURE__ */ jsx(
|
|
111
105
|
IconButton,
|
|
112
106
|
{
|
|
@@ -127,18 +127,28 @@ function BatteryCreationForm({
|
|
|
127
127
|
/* @__PURE__ */ jsx(GridSection, { title: "ReactiveLimits" }),
|
|
128
128
|
/* @__PURE__ */ jsx(ReactiveLimitsForm, {}),
|
|
129
129
|
/* @__PURE__ */ jsx(SetPointsForm, {}),
|
|
130
|
-
/* @__PURE__ */ jsxs(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
130
|
+
/* @__PURE__ */ jsxs(
|
|
131
|
+
Grid,
|
|
132
|
+
{
|
|
133
|
+
container: true,
|
|
134
|
+
spacing: 2,
|
|
135
|
+
sx: {
|
|
136
|
+
paddingTop: 2
|
|
137
|
+
},
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ jsx(
|
|
140
|
+
GridItem,
|
|
141
|
+
{
|
|
142
|
+
size: 4,
|
|
143
|
+
tooltip: watchVoltageRegulation !== null ? "" : /* @__PURE__ */ jsx(FormattedMessage, { id: "NoModification" }),
|
|
144
|
+
children: voltageRegulationField
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
voltageRegulationForm,
|
|
148
|
+
/* @__PURE__ */ jsx(ActivePowerControlForm, {})
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
),
|
|
142
152
|
/* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
|
|
143
153
|
/* @__PURE__ */ jsx(ShortCircuitForm, {}),
|
|
144
154
|
/* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "battery" })
|
package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js
CHANGED
|
@@ -152,17 +152,27 @@ function BatteryDialogTabsContent({
|
|
|
152
152
|
}
|
|
153
153
|
) })
|
|
154
154
|
] }),
|
|
155
|
-
/* @__PURE__ */ jsxs(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
155
|
+
/* @__PURE__ */ jsxs(
|
|
156
|
+
Grid,
|
|
157
|
+
{
|
|
158
|
+
container: true,
|
|
159
|
+
spacing: 2,
|
|
160
|
+
sx: {
|
|
161
|
+
paddingTop: 2
|
|
162
|
+
},
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ jsx(GridItem, { size: 4, children: voltageRegulationField }),
|
|
165
|
+
voltageRegulationForm,
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
ActivePowerControlForm,
|
|
168
|
+
{
|
|
169
|
+
isEquipmentModification: true,
|
|
170
|
+
previousValues: batteryToModify?.activePowerControl
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
),
|
|
166
176
|
/* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { size: 12, children: [
|
|
167
177
|
/* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Limits" }) }),
|
|
168
178
|
/* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "ActiveLimits" }) })
|
|
@@ -38,32 +38,42 @@ function ByFilterDeletionForm() {
|
|
|
38
38
|
const handleEquipmentTypeChange = useCallback(() => {
|
|
39
39
|
setValue(FieldConstants.FILTERS, []);
|
|
40
40
|
}, [setValue]);
|
|
41
|
-
return /* @__PURE__ */ jsxs(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
options: EQUIPMENT_TYPE_ORDER,
|
|
49
|
-
onChangeCallback: handleEquipmentTypeChange,
|
|
50
|
-
getOptionLabel,
|
|
51
|
-
size: "small"
|
|
52
|
-
}
|
|
53
|
-
) }),
|
|
54
|
-
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
55
|
-
DirectoryItemsInput,
|
|
56
|
-
{
|
|
57
|
-
name: FieldConstants.FILTERS,
|
|
58
|
-
elementType: ElementType.FILTER,
|
|
59
|
-
titleId: "FiltersListsSelection",
|
|
60
|
-
label: "filter",
|
|
61
|
-
equipmentTypes: equipmentType ? [equipmentType] : [],
|
|
62
|
-
disable: !equipmentType
|
|
41
|
+
return /* @__PURE__ */ jsxs(
|
|
42
|
+
Grid,
|
|
43
|
+
{
|
|
44
|
+
container: true,
|
|
45
|
+
spacing: 2,
|
|
46
|
+
sx: {
|
|
47
|
+
pt: 1
|
|
63
48
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
51
|
+
AutocompleteInput,
|
|
52
|
+
{
|
|
53
|
+
isOptionEqualToValue: richTypeEquals,
|
|
54
|
+
name: FieldConstants.TYPE,
|
|
55
|
+
label: "Type",
|
|
56
|
+
options: EQUIPMENT_TYPE_ORDER,
|
|
57
|
+
onChangeCallback: handleEquipmentTypeChange,
|
|
58
|
+
getOptionLabel,
|
|
59
|
+
size: "small"
|
|
60
|
+
}
|
|
61
|
+
) }),
|
|
62
|
+
/* @__PURE__ */ jsx(Grid, { size: "grow", children: /* @__PURE__ */ jsx(
|
|
63
|
+
DirectoryItemsInput,
|
|
64
|
+
{
|
|
65
|
+
name: FieldConstants.FILTERS,
|
|
66
|
+
elementType: ElementType.FILTER,
|
|
67
|
+
titleId: "FiltersListsSelection",
|
|
68
|
+
label: "filter",
|
|
69
|
+
equipmentTypes: equipmentType ? [equipmentType] : [],
|
|
70
|
+
disable: !equipmentType
|
|
71
|
+
},
|
|
72
|
+
equipmentType
|
|
73
|
+
) })
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
);
|
|
67
77
|
}
|
|
68
78
|
export {
|
|
69
79
|
ByFilterDeletionForm
|
|
@@ -212,22 +212,34 @@ function LimitsPane({
|
|
|
212
212
|
}
|
|
213
213
|
)
|
|
214
214
|
] }),
|
|
215
|
-
/* @__PURE__ */ jsx(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
215
|
+
/* @__PURE__ */ jsx(
|
|
216
|
+
Grid,
|
|
217
|
+
{
|
|
218
|
+
size: 6,
|
|
219
|
+
sx: [
|
|
220
|
+
{
|
|
221
|
+
marginLeft: 2
|
|
222
|
+
},
|
|
223
|
+
limitsStyles.parametersBox
|
|
224
|
+
],
|
|
225
|
+
children: indexSelectedLimitSet !== null && operationalLimitsGroups.map(
|
|
226
|
+
(operationalLimitsGroup, index) => index === indexSelectedLimitSet && /* @__PURE__ */ jsx(
|
|
227
|
+
LimitsEditor,
|
|
228
|
+
{
|
|
229
|
+
name: `${id}.${FieldConstants.OPERATIONAL_LIMITS_GROUPS}[${index}]`,
|
|
230
|
+
clearableFields: isModification,
|
|
231
|
+
permanentCurrentLimitPreviousValue: getCurrentLimits(equipmentToModify, operationalLimitsGroup.id)?.permanentLimit ?? getCurrentLimitsIgnoreApplicability(
|
|
232
|
+
equipmentToModify,
|
|
233
|
+
operationalLimitsGroup.name
|
|
234
|
+
)?.permanentLimit,
|
|
235
|
+
temporaryLimitsPreviousValues: getCurrentLimits(equipmentToModify, operationalLimitsGroup.id)?.temporaryLimits ?? [],
|
|
236
|
+
disabled: !olgEditable
|
|
237
|
+
},
|
|
238
|
+
operationalLimitsGroup.id
|
|
239
|
+
)
|
|
240
|
+
)
|
|
241
|
+
}
|
|
242
|
+
)
|
|
231
243
|
] })
|
|
232
244
|
] });
|
|
233
245
|
}
|
package/dist/features/network-modifications/common/currentLimits/limitsEditor/LimitsEditor.js
CHANGED
|
@@ -212,10 +212,13 @@ function LimitsEditor({
|
|
|
212
212
|
Grid,
|
|
213
213
|
{
|
|
214
214
|
container: true,
|
|
215
|
-
justifyContent: "flex-start",
|
|
216
|
-
alignItems: "stretch",
|
|
217
215
|
spacing: 2,
|
|
218
|
-
sx: {
|
|
216
|
+
sx: {
|
|
217
|
+
justifyContent: "flex-start",
|
|
218
|
+
alignItems: "stretch",
|
|
219
|
+
paddingBottom: 1,
|
|
220
|
+
paddingTop: 3
|
|
221
|
+
},
|
|
219
222
|
children: [
|
|
220
223
|
/* @__PURE__ */ jsx(Grid, { size: 4, children: /* @__PURE__ */ jsx(
|
|
221
224
|
TextInput,
|
|
@@ -256,7 +259,16 @@ function LimitsEditor({
|
|
|
256
259
|
),
|
|
257
260
|
/* @__PURE__ */ jsx(ErrorInput, { InputField: FieldErrorAlert, name: `${name}.${FieldConstants.OLG_IS_DUPLICATE}` })
|
|
258
261
|
] }),
|
|
259
|
-
/* @__PURE__ */ jsx(
|
|
262
|
+
/* @__PURE__ */ jsx(
|
|
263
|
+
Box,
|
|
264
|
+
{
|
|
265
|
+
component: "h4",
|
|
266
|
+
sx: {
|
|
267
|
+
margin: 1
|
|
268
|
+
},
|
|
269
|
+
children: /* @__PURE__ */ jsx(FormattedMessage, { id: "TemporaryCurrentLimitsText" })
|
|
270
|
+
}
|
|
271
|
+
),
|
|
260
272
|
/* @__PURE__ */ jsx(
|
|
261
273
|
TemporaryLimitsTable,
|
|
262
274
|
{
|