@gridsuite/commons-ui 0.125.0 → 0.127.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/checkBoxList/checkBoxList.type.d.ts +10 -10
- package/dist/components/customAGGrid/customAggrid.style.d.ts +1 -2
- package/dist/components/customAGGrid/index.d.ts +1 -0
- package/dist/components/customAGGrid/index.js +2 -0
- package/dist/components/customAGGrid/separatorCellRenderer.d.ts +11 -0
- package/dist/components/customAGGrid/separatorCellRenderer.js +16 -0
- package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.d.ts +16 -16
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +5 -5
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +3 -3
- package/dist/components/elementSearch/elementItem/EquipmentItem.d.ts +6 -6
- package/dist/components/elementSearch/tagRenderer/TagRenderer.d.ts +3 -3
- package/dist/components/expandableGroup/ExpandableGroup.js +4 -4
- package/dist/components/filter/HeaderFilterForm.d.ts +6 -6
- package/dist/components/filter/HeaderFilterForm.js +3 -3
- package/dist/components/filter/expert/ExpertFilterForm.js +1 -1
- package/dist/components/filter/expert/expertFilterUtils.d.ts +1 -0
- package/dist/components/filter/expert/expertFilterUtils.js +9 -1
- package/dist/components/filter/expert/index.js +2 -1
- package/dist/components/filter/index.js +2 -1
- package/dist/components/grid/grid-section.d.ts +2 -2
- package/dist/components/index.js +4 -1
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +2 -1
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +52 -23
- package/dist/components/inputs/reactHookForm/chip-items-input.js +27 -23
- package/dist/components/inputs/reactHookForm/text/DescriptionField.d.ts +2 -2
- package/dist/components/inputs/reactHookForm/text/ExpandingTextField.js +1 -4
- package/dist/components/inputs/reactHookForm/text/UniqueNameInput.d.ts +3 -2
- package/dist/components/inputs/reactQueryBuilder/CustomReactQueryBuilder.js +2 -1
- package/dist/components/menus/custom-nested-menu.d.ts +3 -2
- package/dist/components/menus/custom-nested-menu.js +0 -4
- package/dist/components/overflowableText/OverflowableText.d.ts +4 -3
- package/dist/components/parameters/common/ProviderParam.js +3 -3
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +3 -3
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +3 -3
- package/dist/components/parameters/common/limitreductions/limit-reductions-tooltip-column.js +4 -3
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +3 -3
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +3 -3
- package/dist/components/parameters/common/widget/parameter-float.js +3 -3
- package/dist/components/parameters/common/widget/parameter-line-slider.d.ts +1 -1
- package/dist/components/parameters/common/widget/parameter-line-slider.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameter-field.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-form.d.ts +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-inline.js +3 -3
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +3 -3
- package/dist/components/parameters/loadflow/use-load-flow-parameters-form.js +3 -3
- package/dist/components/parameters/network-visualizations/map-parameters.js +3 -3
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +3 -3
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +3 -3
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-dialog.js +3 -3
- package/dist/components/parameters/network-visualizations/network-visualizations-parameters-inline.js +3 -3
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +3 -3
- package/dist/components/parameters/network-visualizations/use-network-visualizations-parameters-form.js +3 -3
- package/dist/components/parameters/parameters-style.d.ts +64 -59
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +3 -3
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +3 -3
- package/dist/components/parameters/security-analysis/security-analysis-parameters-inline.js +3 -3
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +3 -3
- package/dist/components/parameters/security-analysis/security-analysis-violations-hiding.js +3 -3
- package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js +3 -3
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +3 -3
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +3 -3
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +3 -3
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +3 -3
- package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +3 -3
- package/dist/components/parameters/sensi/sensitivity-table.js +3 -3
- package/dist/components/parameters/sensi/use-sensitivity-analysis-parameters.js +3 -3
- package/dist/components/parameters/sensi/utils.js +3 -3
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +9 -19
- package/dist/components/parameters/short-circuit/short-circuit-parameters-dialog.js +3 -3
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +3 -3
- package/dist/components/parameters/short-circuit/short-circuit-parameters-inline.js +3 -3
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +3 -3
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +3 -3
- package/dist/components/parameters/voltage-init/general-parameters.js +3 -3
- package/dist/components/parameters/voltage-init/use-voltage-init-parameters-form.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-parameters-dialog.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.d.ts +6 -7
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-init-parameters-inline.js +3 -3
- package/dist/components/parameters/voltage-init/voltage-limits-parameters.js +3 -3
- package/dist/components/topBar/AboutDialog.js +3 -7
- package/dist/components/topBar/GridLogo.d.ts +2 -2
- package/dist/components/treeViewFinder/TreeViewFinder.d.ts +3 -0
- package/dist/hooks/use-parameters-backend.d.ts +1 -1
- package/dist/hooks/use-parameters-backend.js +4 -2
- package/dist/hooks/use-unique-name-validation.js +4 -4
- package/dist/index.js +8 -1
- package/dist/translations/en/filterEn.d.ts +1 -0
- package/dist/translations/en/filterEn.js +2 -1
- package/dist/translations/en/index.d.ts +1 -0
- package/dist/translations/en/index.js +3 -1
- package/dist/translations/en/parameters.d.ts +2 -0
- package/dist/translations/en/parameters.js +3 -1
- package/dist/translations/en/use-unique-name-validation-en.d.ts +12 -0
- package/dist/translations/en/use-unique-name-validation-en.js +9 -0
- package/dist/translations/fr/filterFr.d.ts +1 -0
- package/dist/translations/fr/filterFr.js +2 -1
- package/dist/translations/fr/index.d.ts +1 -0
- package/dist/translations/fr/index.js +3 -1
- package/dist/translations/fr/parameters.d.ts +2 -0
- package/dist/translations/fr/parameters.js +4 -2
- package/dist/translations/fr/use-unique-name-validation-fr.d.ts +12 -0
- package/dist/translations/fr/use-unique-name-validation-fr.js +9 -0
- package/dist/utils/constants/fieldConstants.d.ts +2 -0
- package/dist/utils/constants/fieldConstants.js +2 -0
- package/dist/utils/mapper/getFileIcon.d.ts +2 -2
- package/dist/utils/styles.d.ts +2 -0
- package/dist/utils/types/equipmentType.d.ts +24 -25
- package/dist/utils/types/equipmentType.js +1 -5
- package/package.json +40 -41
|
@@ -21,6 +21,9 @@ import * as yup from "yup";
|
|
|
21
21
|
import "../../overflowableText/OverflowableText.js";
|
|
22
22
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
23
23
|
import { DESCRIPTION, NAME } from "../../inputs/reactHookForm/constants.js";
|
|
24
|
+
import "react-querybuilder";
|
|
25
|
+
import "uuid";
|
|
26
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
24
27
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
25
28
|
import "../../customAGGrid/customAggrid.js";
|
|
26
29
|
import "ag-grid-community";
|
|
@@ -28,11 +31,8 @@ import "react-papaparse";
|
|
|
28
31
|
import "react-csv-downloader";
|
|
29
32
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
30
33
|
import "@react-querybuilder/material";
|
|
31
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
32
34
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
33
|
-
import "uuid";
|
|
34
35
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
35
|
-
import "react-querybuilder";
|
|
36
36
|
import { NetworkVisualizationTabValues, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_COMPONENT_LIBRARY, PARAM_SUBSTATION_LAYOUT, PARAM_CENTER_LABEL, PARAM_DIAGONAL_LABEL, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_LINE_FLOW_MODE, PARAM_LINE_PARALLEL_PATH, PARAM_LINE_FULL_PATH } from "./constants.js";
|
|
37
37
|
import "../../filter/HeaderFilterForm.js";
|
|
38
38
|
import { getNameElementEditorSchema, getNameElementEditorEmptyFormData } from "../common/name-element-editor/name-element-editor-utils.js";
|
|
@@ -1,147 +1,152 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, 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
|
+
*/
|
|
2
7
|
/**
|
|
3
8
|
* Styles use in parameter forms
|
|
4
9
|
*/
|
|
5
10
|
export declare const parametersStyles: {
|
|
6
|
-
title: (theme: Theme) => {
|
|
11
|
+
readonly title: (theme: import('@mui/material').Theme) => {
|
|
7
12
|
padding: string;
|
|
8
13
|
};
|
|
9
|
-
minWidthMedium: (theme: Theme) => {
|
|
14
|
+
readonly minWidthMedium: (theme: import('@mui/material').Theme) => {
|
|
10
15
|
minWidth: string;
|
|
11
16
|
};
|
|
12
|
-
parameterName: (theme: Theme) => {
|
|
17
|
+
readonly parameterName: (theme: import('@mui/material').Theme) => {
|
|
13
18
|
fontWeight: string;
|
|
14
19
|
marginTop: string;
|
|
15
20
|
};
|
|
16
|
-
controlItem: {
|
|
17
|
-
justifyContent:
|
|
18
|
-
flexGrow:
|
|
21
|
+
readonly controlItem: {
|
|
22
|
+
readonly justifyContent: "flex-end";
|
|
23
|
+
readonly flexGrow: 1;
|
|
19
24
|
};
|
|
20
|
-
controlParametersItem: {
|
|
21
|
-
justifyContent:
|
|
22
|
-
flexGrow:
|
|
23
|
-
height:
|
|
24
|
-
paddingBottom:
|
|
25
|
+
readonly controlParametersItem: {
|
|
26
|
+
readonly justifyContent: "flex-start";
|
|
27
|
+
readonly flexGrow: 1;
|
|
28
|
+
readonly height: "fit-content";
|
|
29
|
+
readonly paddingBottom: 4;
|
|
25
30
|
};
|
|
26
|
-
button: (theme: Theme) => {
|
|
31
|
+
readonly button: (theme: import('@mui/material').Theme) => {
|
|
27
32
|
marginBottom: string;
|
|
28
33
|
marginLeft: string;
|
|
29
34
|
};
|
|
30
|
-
subgroupParameters: (theme: Theme) => {
|
|
35
|
+
readonly subgroupParameters: (theme: import('@mui/material').Theme) => {
|
|
31
36
|
marginTop: string;
|
|
32
37
|
marginBottom: string;
|
|
33
38
|
};
|
|
34
|
-
subgroupParametersAccordion: {
|
|
35
|
-
'&:before': {
|
|
36
|
-
display:
|
|
39
|
+
readonly subgroupParametersAccordion: {
|
|
40
|
+
readonly '&:before': {
|
|
41
|
+
readonly display: "none";
|
|
37
42
|
};
|
|
38
|
-
background:
|
|
43
|
+
readonly background: "none";
|
|
39
44
|
};
|
|
40
|
-
subgroupParametersAccordionSummary: (theme: Theme) => {
|
|
41
|
-
flexDirection:
|
|
45
|
+
readonly subgroupParametersAccordionSummary: (theme: import('@mui/material').Theme) => {
|
|
46
|
+
flexDirection: "row-reverse";
|
|
42
47
|
'& .MuiAccordionSummary-expandIconWrapper': {
|
|
43
|
-
transform:
|
|
48
|
+
transform: "rotate(-90deg)";
|
|
44
49
|
};
|
|
45
50
|
'& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': {
|
|
46
|
-
transform:
|
|
51
|
+
transform: "rotate(0deg)";
|
|
47
52
|
};
|
|
48
53
|
'& .MuiAccordionSummary-content': {
|
|
49
54
|
marginLeft: string;
|
|
50
55
|
};
|
|
51
56
|
};
|
|
52
|
-
subgroupParametersAccordionDetails: (theme: Theme) => {
|
|
57
|
+
readonly subgroupParametersAccordionDetails: (theme: import('@mui/material').Theme) => {
|
|
53
58
|
padding: string;
|
|
54
59
|
};
|
|
55
|
-
marginTopButton: {
|
|
56
|
-
marginTop:
|
|
57
|
-
position:
|
|
58
|
-
bottom:
|
|
60
|
+
readonly marginTopButton: {
|
|
61
|
+
readonly marginTop: "10px";
|
|
62
|
+
readonly position: "sticky";
|
|
63
|
+
readonly bottom: 0;
|
|
59
64
|
};
|
|
60
|
-
scrollableGrid: (theme: Theme) => {
|
|
61
|
-
overflowY:
|
|
62
|
-
overflowX:
|
|
65
|
+
readonly scrollableGrid: (theme: import('@mui/material').Theme) => {
|
|
66
|
+
overflowY: "auto";
|
|
67
|
+
overflowX: "hidden";
|
|
63
68
|
maxHeight: string;
|
|
64
69
|
paddingRight: string;
|
|
65
70
|
paddingTop: string;
|
|
66
71
|
paddingBottom: string;
|
|
67
72
|
flexGrow: number;
|
|
68
73
|
};
|
|
69
|
-
singleItem: (theme: Theme) => {
|
|
70
|
-
display:
|
|
74
|
+
readonly singleItem: (theme: import('@mui/material').Theme) => {
|
|
75
|
+
display: "flex";
|
|
71
76
|
flex: string;
|
|
72
|
-
alignItems:
|
|
73
|
-
justifyContent:
|
|
77
|
+
alignItems: "flex-start";
|
|
78
|
+
justifyContent: "space-between";
|
|
74
79
|
marginTop: string;
|
|
75
80
|
marginBottom: string;
|
|
76
81
|
};
|
|
77
|
-
firstTextField: (theme: Theme) => {
|
|
82
|
+
readonly firstTextField: (theme: import('@mui/material').Theme) => {
|
|
78
83
|
marginLeft: string;
|
|
79
84
|
};
|
|
80
|
-
secondTextField: (theme: Theme) => {
|
|
85
|
+
readonly secondTextField: (theme: import('@mui/material').Theme) => {
|
|
81
86
|
marginLeft: string;
|
|
82
87
|
marginRight: string;
|
|
83
88
|
};
|
|
84
|
-
singleTextField: (theme: Theme) => {
|
|
85
|
-
display:
|
|
89
|
+
readonly singleTextField: (theme: import('@mui/material').Theme) => {
|
|
90
|
+
display: "flex";
|
|
86
91
|
marginRight: string;
|
|
87
92
|
marginLeft: string;
|
|
88
93
|
};
|
|
89
|
-
tooltip: (theme: Theme) => {
|
|
94
|
+
readonly tooltip: (theme: import('@mui/material').Theme) => {
|
|
90
95
|
marginLeft: string;
|
|
91
96
|
};
|
|
92
|
-
text: (theme: Theme) => {
|
|
93
|
-
display:
|
|
97
|
+
readonly text: (theme: import('@mui/material').Theme) => {
|
|
98
|
+
display: "flex";
|
|
94
99
|
marginBottom: string;
|
|
95
100
|
marginTop: string;
|
|
96
101
|
};
|
|
97
|
-
multipleItems: (theme: Theme) => {
|
|
98
|
-
display:
|
|
102
|
+
readonly multipleItems: (theme: import('@mui/material').Theme) => {
|
|
103
|
+
display: "flex";
|
|
99
104
|
flex: string;
|
|
100
|
-
alignItems:
|
|
101
|
-
justifyContent:
|
|
105
|
+
alignItems: "flex-start";
|
|
106
|
+
justifyContent: "space-between";
|
|
102
107
|
marginTop: string;
|
|
103
108
|
marginBottom: string;
|
|
104
109
|
};
|
|
105
|
-
tabWithError: (theme: Theme) => {
|
|
110
|
+
readonly tabWithError: (theme: import('@mui/material').Theme) => {
|
|
106
111
|
'&.Mui-selected': {
|
|
107
112
|
color: string;
|
|
108
113
|
};
|
|
109
114
|
color: string;
|
|
110
115
|
};
|
|
111
|
-
tabWithErrorIndicator: (theme: Theme) => {
|
|
116
|
+
readonly tabWithErrorIndicator: (theme: import('@mui/material').Theme) => {
|
|
112
117
|
backgroundColor: string;
|
|
113
118
|
};
|
|
114
|
-
panel: (theme: Theme) => {
|
|
119
|
+
readonly panel: (theme: import('@mui/material').Theme) => {
|
|
115
120
|
marginTop: string;
|
|
116
121
|
marginBottom: string;
|
|
117
122
|
};
|
|
118
|
-
adjustExistingLimitsInfo: (theme: Theme) => {
|
|
119
|
-
display:
|
|
120
|
-
alignItems:
|
|
123
|
+
readonly adjustExistingLimitsInfo: (theme: import('@mui/material').Theme) => {
|
|
124
|
+
display: "flex";
|
|
125
|
+
alignItems: "center";
|
|
121
126
|
marginTop: string;
|
|
122
127
|
marginBottom: string;
|
|
123
128
|
};
|
|
124
|
-
circularProgress: (theme: Theme) => {
|
|
129
|
+
readonly circularProgress: (theme: import('@mui/material').Theme) => {
|
|
125
130
|
marginRight: string;
|
|
126
131
|
color: string;
|
|
127
132
|
};
|
|
128
|
-
icon: (theme: Theme) => {
|
|
133
|
+
readonly icon: (theme: import('@mui/material').Theme) => {
|
|
129
134
|
width: string;
|
|
130
135
|
};
|
|
131
|
-
modificationsTitle: (theme: Theme) => {
|
|
132
|
-
display:
|
|
133
|
-
alignItems:
|
|
136
|
+
readonly modificationsTitle: (theme: import('@mui/material').Theme) => {
|
|
137
|
+
display: "flex";
|
|
138
|
+
alignItems: "center";
|
|
134
139
|
margin: string;
|
|
135
140
|
padding: string;
|
|
136
141
|
backgroundColor: string;
|
|
137
142
|
color: string;
|
|
138
|
-
overflow:
|
|
143
|
+
overflow: "hidden";
|
|
139
144
|
};
|
|
140
145
|
};
|
|
141
|
-
export declare function getTabIndicatorStyle<T extends number | string>(tabIndexesWithError: T[], index: T): ((theme: Theme) => {
|
|
146
|
+
export declare function getTabIndicatorStyle<T extends number | string>(tabIndexesWithError: T[], index: T): ((theme: import('@mui/material').Theme) => {
|
|
142
147
|
backgroundColor: string;
|
|
143
148
|
}) | undefined;
|
|
144
|
-
export declare function getTabStyle<T extends number | string>(tabIndexesWithError: T[], index: T): ((theme: Theme) => {
|
|
149
|
+
export declare function getTabStyle<T extends number | string>(tabIndexesWithError: T[], index: T): ((theme: import('@mui/material').Theme) => {
|
|
145
150
|
'&.Mui-selected': {
|
|
146
151
|
color: string;
|
|
147
152
|
};
|
|
@@ -23,6 +23,9 @@ import "../../treeViewFinder/TreeViewFinder.js";
|
|
|
23
23
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
24
24
|
import "yup";
|
|
25
25
|
import "../../overflowableText/OverflowableText.js";
|
|
26
|
+
import "react-querybuilder";
|
|
27
|
+
import "uuid";
|
|
28
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
26
29
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
27
30
|
import "../../customAGGrid/customAggrid.js";
|
|
28
31
|
import "ag-grid-community";
|
|
@@ -30,11 +33,8 @@ import "react-papaparse";
|
|
|
30
33
|
import "react-csv-downloader";
|
|
31
34
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
32
35
|
import "@react-querybuilder/material";
|
|
33
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
34
36
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
35
|
-
import "uuid";
|
|
36
37
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
37
|
-
import "react-querybuilder";
|
|
38
38
|
import "../common/widget/parameter-line-slider.js";
|
|
39
39
|
import "../common/limitreductions/columns-definitions.js";
|
|
40
40
|
import { SecurityAnalysisParametersForm } from "./security-analysis-parameters-form.js";
|
|
@@ -16,6 +16,9 @@ import { CustomFormProvider } from "../../inputs/reactHookForm/provider/CustomFo
|
|
|
16
16
|
import "yup";
|
|
17
17
|
import "../../overflowableText/OverflowableText.js";
|
|
18
18
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
19
|
+
import "react-querybuilder";
|
|
20
|
+
import "uuid";
|
|
21
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
19
22
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
20
23
|
import "../../customAGGrid/customAggrid.js";
|
|
21
24
|
import "ag-grid-community";
|
|
@@ -24,11 +27,8 @@ import "react-csv-downloader";
|
|
|
24
27
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
25
28
|
import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
|
|
26
29
|
import "@react-querybuilder/material";
|
|
27
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
28
30
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
29
|
-
import "uuid";
|
|
30
31
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
31
|
-
import "react-querybuilder";
|
|
32
32
|
import { parametersStyles } from "../parameters-style.js";
|
|
33
33
|
import { PARAM_SA_PROVIDER } from "../common/constant.js";
|
|
34
34
|
import { LineSeparator } from "../common/line-separator.js";
|
|
@@ -23,6 +23,9 @@ import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
|
23
23
|
import "yup";
|
|
24
24
|
import "../../overflowableText/OverflowableText.js";
|
|
25
25
|
import { DirectoryItemSelector } from "../../directoryItemSelector/DirectoryItemSelector.js";
|
|
26
|
+
import "react-querybuilder";
|
|
27
|
+
import "uuid";
|
|
28
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
26
29
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
27
30
|
import "../../customAGGrid/customAggrid.js";
|
|
28
31
|
import "ag-grid-community";
|
|
@@ -31,11 +34,8 @@ import "react-csv-downloader";
|
|
|
31
34
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
32
35
|
import { PopupConfirmationDialog } from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
33
36
|
import "@react-querybuilder/material";
|
|
34
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
35
37
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
36
|
-
import "uuid";
|
|
37
38
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
38
|
-
import "react-querybuilder";
|
|
39
39
|
import "../common/widget/parameter-line-slider.js";
|
|
40
40
|
import "../common/limitreductions/columns-definitions.js";
|
|
41
41
|
import { toFormValueSaParameters } from "../common/limitreductions/limit-reductions-form-util.js";
|
package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js
CHANGED
|
@@ -18,6 +18,9 @@ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
|
18
18
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
19
19
|
import "yup";
|
|
20
20
|
import "../../overflowableText/OverflowableText.js";
|
|
21
|
+
import "react-querybuilder";
|
|
22
|
+
import "uuid";
|
|
23
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
21
24
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
22
25
|
import "../../customAGGrid/customAggrid.js";
|
|
23
26
|
import "ag-grid-community";
|
|
@@ -25,11 +28,8 @@ import "react-papaparse";
|
|
|
25
28
|
import "react-csv-downloader";
|
|
26
29
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
27
30
|
import "@react-querybuilder/material";
|
|
28
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
29
31
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
30
|
-
import "uuid";
|
|
31
32
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
32
|
-
import "react-querybuilder";
|
|
33
33
|
import "../common/widget/parameter-line-slider.js";
|
|
34
34
|
import { TabValues, TAB_INFO } from "../common/limitreductions/columns-definitions.js";
|
|
35
35
|
import { LimitReductionsTableForm } from "../common/limitreductions/limit-reductions-table-form.js";
|
|
@@ -16,6 +16,9 @@ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
|
16
16
|
import "yup";
|
|
17
17
|
import "../../overflowableText/OverflowableText.js";
|
|
18
18
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
19
|
+
import "react-querybuilder";
|
|
20
|
+
import "uuid";
|
|
21
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
19
22
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
20
23
|
import "../../customAGGrid/customAggrid.js";
|
|
21
24
|
import "ag-grid-community";
|
|
@@ -24,11 +27,8 @@ import "react-csv-downloader";
|
|
|
24
27
|
import { FloatInput } from "../../inputs/reactHookForm/numbers/FloatInput.js";
|
|
25
28
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
26
29
|
import "@react-querybuilder/material";
|
|
27
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
28
30
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
29
|
-
import "uuid";
|
|
30
31
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
31
|
-
import "react-querybuilder";
|
|
32
32
|
import { PARAM_SA_FLOW_PROPORTIONAL_THRESHOLD, PARAM_SA_LOW_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, PARAM_SA_HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD } from "../common/constant.js";
|
|
33
33
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
34
34
|
import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
package/dist/components/parameters/security-analysis/use-security-analysis-parameters-form.js
CHANGED
|
@@ -22,6 +22,9 @@ import "../../treeViewFinder/TreeViewFinder.js";
|
|
|
22
22
|
import "yup";
|
|
23
23
|
import "../../overflowableText/OverflowableText.js";
|
|
24
24
|
import { DESCRIPTION, NAME } from "../../inputs/reactHookForm/constants.js";
|
|
25
|
+
import "react-querybuilder";
|
|
26
|
+
import "uuid";
|
|
27
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
25
28
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
26
29
|
import "../../customAGGrid/customAggrid.js";
|
|
27
30
|
import "ag-grid-community";
|
|
@@ -29,11 +32,8 @@ import "react-papaparse";
|
|
|
29
32
|
import "react-csv-downloader";
|
|
30
33
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
31
34
|
import "@react-querybuilder/material";
|
|
32
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
33
35
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
34
|
-
import "uuid";
|
|
35
36
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
36
|
-
import "react-querybuilder";
|
|
37
37
|
import "../common/widget/parameter-line-slider.js";
|
|
38
38
|
import { getSAParametersFromSchema, LIMIT_REDUCTIONS_FORM, IST_FORM, LIMIT_DURATION_FORM } from "../common/limitreductions/columns-definitions.js";
|
|
39
39
|
import { toFormValuesLimitReductions, toFormValueSaParameters } from "../common/limitreductions/limit-reductions-form-util.js";
|
|
@@ -16,6 +16,9 @@ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
|
16
16
|
import "yup";
|
|
17
17
|
import "../../overflowableText/OverflowableText.js";
|
|
18
18
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
19
|
+
import "react-querybuilder";
|
|
20
|
+
import "uuid";
|
|
21
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
19
22
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
20
23
|
import "../../customAGGrid/customAggrid.js";
|
|
21
24
|
import "ag-grid-community";
|
|
@@ -24,11 +27,8 @@ import "react-csv-downloader";
|
|
|
24
27
|
import { FloatInput } from "../../inputs/reactHookForm/numbers/FloatInput.js";
|
|
25
28
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
26
29
|
import "@react-querybuilder/material";
|
|
27
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
28
30
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
29
|
-
import "uuid";
|
|
30
31
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
31
|
-
import "react-querybuilder";
|
|
32
32
|
function SensitivityAnalysisFields() {
|
|
33
33
|
return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
34
34
|
/* @__PURE__ */ jsx(
|
|
@@ -21,6 +21,9 @@ import "../../treeViewFinder/TreeViewFinder.js";
|
|
|
21
21
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
22
22
|
import "yup";
|
|
23
23
|
import "../../overflowableText/OverflowableText.js";
|
|
24
|
+
import "react-querybuilder";
|
|
25
|
+
import "uuid";
|
|
26
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
24
27
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
25
28
|
import "../../customAGGrid/customAggrid.js";
|
|
26
29
|
import "ag-grid-community";
|
|
@@ -28,11 +31,8 @@ import "react-papaparse";
|
|
|
28
31
|
import "react-csv-downloader";
|
|
29
32
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
30
33
|
import "@react-querybuilder/material";
|
|
31
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
32
34
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
33
|
-
import "uuid";
|
|
34
35
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
35
|
-
import "react-querybuilder";
|
|
36
36
|
import "../common/widget/parameter-line-slider.js";
|
|
37
37
|
import "../common/limitreductions/columns-definitions.js";
|
|
38
38
|
import { updateSensitivityAnalysisParameters, fetchSensitivityAnalysisParameters, fetchDefaultSensitivityAnalysisProvider, fetchSensitivityAnalysisProviders } from "../../../services/sensitivity-analysis.js";
|
|
@@ -17,6 +17,9 @@ import { CustomFormProvider } from "../../inputs/reactHookForm/provider/CustomFo
|
|
|
17
17
|
import "yup";
|
|
18
18
|
import "../../overflowableText/OverflowableText.js";
|
|
19
19
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
20
|
+
import "react-querybuilder";
|
|
21
|
+
import "uuid";
|
|
22
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
20
23
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
21
24
|
import "../../customAGGrid/customAggrid.js";
|
|
22
25
|
import "ag-grid-community";
|
|
@@ -25,11 +28,8 @@ import "react-csv-downloader";
|
|
|
25
28
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
26
29
|
import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
|
|
27
30
|
import "@react-querybuilder/material";
|
|
28
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
29
31
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
30
|
-
import "uuid";
|
|
31
32
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
32
|
-
import "react-querybuilder";
|
|
33
33
|
import { PROVIDER } from "../common/constant.js";
|
|
34
34
|
import { LineSeparator } from "../common/line-separator.js";
|
|
35
35
|
import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
@@ -20,6 +20,9 @@ import { SubmitButton } from "../../inputs/reactHookForm/utils/SubmitButton.js";
|
|
|
20
20
|
import "yup";
|
|
21
21
|
import "../../overflowableText/OverflowableText.js";
|
|
22
22
|
import { DirectoryItemSelector } from "../../directoryItemSelector/DirectoryItemSelector.js";
|
|
23
|
+
import "react-querybuilder";
|
|
24
|
+
import "uuid";
|
|
25
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
23
26
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
24
27
|
import "../../customAGGrid/customAggrid.js";
|
|
25
28
|
import "ag-grid-community";
|
|
@@ -28,11 +31,8 @@ import "react-csv-downloader";
|
|
|
28
31
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
32
|
import { PopupConfirmationDialog } from "../../dialogs/popupConfirmationDialog/PopupConfirmationDialog.js";
|
|
30
33
|
import "@react-querybuilder/material";
|
|
31
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
32
34
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
33
|
-
import "uuid";
|
|
34
35
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
35
|
-
import "react-querybuilder";
|
|
36
36
|
import "../common/widget/parameter-line-slider.js";
|
|
37
37
|
import "../common/limitreductions/columns-definitions.js";
|
|
38
38
|
import { fetchSensitivityAnalysisParameters, setSensitivityAnalysisParameters } from "../../../services/sensitivity-analysis.js";
|
|
@@ -21,6 +21,9 @@ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
|
21
21
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
22
22
|
import "yup";
|
|
23
23
|
import "../../overflowableText/OverflowableText.js";
|
|
24
|
+
import "react-querybuilder";
|
|
25
|
+
import "uuid";
|
|
26
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
24
27
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
25
28
|
import "../../customAGGrid/customAggrid.js";
|
|
26
29
|
import "ag-grid-community";
|
|
@@ -28,11 +31,8 @@ import "react-papaparse";
|
|
|
28
31
|
import "react-csv-downloader";
|
|
29
32
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
30
33
|
import "@react-querybuilder/material";
|
|
31
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
32
34
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
33
|
-
import "uuid";
|
|
34
35
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
35
|
-
import "react-querybuilder";
|
|
36
36
|
import "../common/widget/parameter-line-slider.js";
|
|
37
37
|
import "../common/limitreductions/columns-definitions.js";
|
|
38
38
|
const styles = {
|
|
@@ -19,6 +19,9 @@ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
|
19
19
|
import "yup";
|
|
20
20
|
import "../../overflowableText/OverflowableText.js";
|
|
21
21
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
22
|
+
import "react-querybuilder";
|
|
23
|
+
import "uuid";
|
|
24
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
22
25
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
23
26
|
import "../../customAGGrid/customAggrid.js";
|
|
24
27
|
import "ag-grid-community";
|
|
@@ -26,11 +29,8 @@ import "react-papaparse";
|
|
|
26
29
|
import "react-csv-downloader";
|
|
27
30
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
28
31
|
import "@react-querybuilder/material";
|
|
29
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
30
32
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
31
|
-
import "uuid";
|
|
32
33
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
33
|
-
import "react-querybuilder";
|
|
34
34
|
function SensitivityTable({
|
|
35
35
|
arrayFormName,
|
|
36
36
|
useFieldArrayOutput,
|
|
@@ -23,6 +23,9 @@ import "../../dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
|
23
23
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
24
24
|
import "yup";
|
|
25
25
|
import "../../overflowableText/OverflowableText.js";
|
|
26
|
+
import "react-querybuilder";
|
|
27
|
+
import "uuid";
|
|
28
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
26
29
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
27
30
|
import "../../customAGGrid/customAggrid.js";
|
|
28
31
|
import "ag-grid-community";
|
|
@@ -30,11 +33,8 @@ import "react-papaparse";
|
|
|
30
33
|
import "react-csv-downloader";
|
|
31
34
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
32
35
|
import "@react-querybuilder/material";
|
|
33
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
34
36
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
35
|
-
import "uuid";
|
|
36
37
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
37
|
-
import "react-querybuilder";
|
|
38
38
|
import "../common/widget/parameter-line-slider.js";
|
|
39
39
|
import "../common/limitreductions/columns-definitions.js";
|
|
40
40
|
import { getFormSchema, getSensiNodesformatNewParams, getSensiPstformatNewParams, getSensiHvdcformatNewParams, getSensiInjectionsformatNewParams, getSensiInjectionsSetformatNewParams, getGenericRowNewParams } from "./utils.js";
|
|
@@ -21,6 +21,9 @@ import "../../treeViewFinder/TreeViewFinder.js";
|
|
|
21
21
|
import * as yup from "yup";
|
|
22
22
|
import "../../overflowableText/OverflowableText.js";
|
|
23
23
|
import { NAME } from "../../inputs/reactHookForm/constants.js";
|
|
24
|
+
import "react-querybuilder";
|
|
25
|
+
import "uuid";
|
|
26
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
24
27
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
25
28
|
import "../../customAGGrid/customAggrid.js";
|
|
26
29
|
import "ag-grid-community";
|
|
@@ -28,11 +31,8 @@ import "react-papaparse";
|
|
|
28
31
|
import "react-csv-downloader";
|
|
29
32
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
30
33
|
import "@react-querybuilder/material";
|
|
31
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
32
34
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
33
|
-
import "uuid";
|
|
34
35
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
35
|
-
import "react-querybuilder";
|
|
36
36
|
import "../common/widget/parameter-line-slider.js";
|
|
37
37
|
import "../common/limitreductions/columns-definitions.js";
|
|
38
38
|
import "../../filter/HeaderFilterForm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo, useEffect } from "react";
|
|
3
3
|
import { Grid } from "@mui/material";
|
|
4
|
-
import {
|
|
4
|
+
import { green, red } from "@mui/material/colors";
|
|
5
5
|
import { Lens } from "@mui/icons-material";
|
|
6
6
|
import { useWatch } from "react-hook-form";
|
|
7
7
|
import { SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, intlPredefinedParametersOptions, intlInitialVoltageProfileMode, PredefinedParameters, InitialVoltage, SHORT_CIRCUIT_WITH_FEEDER_RESULT } from "./constants.js";
|
|
@@ -21,6 +21,9 @@ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
|
21
21
|
import "yup";
|
|
22
22
|
import "../../overflowableText/OverflowableText.js";
|
|
23
23
|
import "../../treeViewFinder/TreeViewFinder.js";
|
|
24
|
+
import "react-querybuilder";
|
|
25
|
+
import "uuid";
|
|
26
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
24
27
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
25
28
|
import "../../customAGGrid/customAggrid.js";
|
|
26
29
|
import "ag-grid-community";
|
|
@@ -32,11 +35,8 @@ import { SwitchInput } from "../../inputs/reactHookForm/booleans/SwitchInput.js"
|
|
|
32
35
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
33
36
|
import { MuiSelectInput } from "../../inputs/reactHookForm/selectInputs/MuiSelectInput.js";
|
|
34
37
|
import "@react-querybuilder/material";
|
|
35
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
36
38
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
37
|
-
import "uuid";
|
|
38
39
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
39
|
-
import "react-querybuilder";
|
|
40
40
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
41
41
|
Status2["SUCCESS"] = "SUCCESS";
|
|
42
42
|
Status2["ERROR"] = "ERROR";
|
|
@@ -77,21 +77,11 @@ function ShortCircuitFields({ resetAll }) {
|
|
|
77
77
|
const initialVoltageProfileMode = useMemo(() => {
|
|
78
78
|
return intlInitialVoltageProfileMode();
|
|
79
79
|
}, []);
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const statusToShow =
|
|
85
|
-
const styles = {
|
|
86
|
-
succeed: {
|
|
87
|
-
color: green[500]
|
|
88
|
-
},
|
|
89
|
-
fail: {
|
|
90
|
-
color: red[500]
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
return getStatus(status, styles);
|
|
94
|
-
}, [status]);
|
|
80
|
+
const statusColor = useMemo(
|
|
81
|
+
() => ({ color: status === "SUCCESS" ? green[500] : red[500] }),
|
|
82
|
+
[status]
|
|
83
|
+
);
|
|
84
|
+
const statusToShow = /* @__PURE__ */ jsx(Lens, { fontSize: "medium", sx: statusColor });
|
|
95
85
|
const onPredefinedParametersManualChange = (event) => {
|
|
96
86
|
const newPredefinedParameters = event.target.value;
|
|
97
87
|
console.debug("onPredefinedParametersManualChange new:", newPredefinedParameters);
|
|
@@ -20,6 +20,9 @@ import "localized-countries/data/en";
|
|
|
20
20
|
import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
|
|
21
21
|
import "yup";
|
|
22
22
|
import "../../overflowableText/OverflowableText.js";
|
|
23
|
+
import "react-querybuilder";
|
|
24
|
+
import "uuid";
|
|
25
|
+
import "../../filter/expert/expertFilterConstants.js";
|
|
23
26
|
import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
|
|
24
27
|
import "../../customAGGrid/customAggrid.js";
|
|
25
28
|
import "ag-grid-community";
|
|
@@ -27,11 +30,8 @@ import "react-papaparse";
|
|
|
27
30
|
import "react-csv-downloader";
|
|
28
31
|
import "../../inputs/reactHookForm/numbers/RangeInput.js";
|
|
29
32
|
import "@react-querybuilder/material";
|
|
30
|
-
import "../../filter/expert/expertFilterConstants.js";
|
|
31
33
|
import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
|
|
32
|
-
import "uuid";
|
|
33
34
|
import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
|
|
34
|
-
import "react-querybuilder";
|
|
35
35
|
import { useShortCircuitParametersForm } from "./use-short-circuit-parameters-form.js";
|
|
36
36
|
import { ShortCircuitParametersForm } from "./short-circuit-parameters-form.js";
|
|
37
37
|
function ShortCircuitParametersEditionDialog({
|