@gridsuite/commons-ui 0.58.0 → 0.59.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/chunks/{criteria-based-filter-edition-dialog.CbhgOSRk.js → criteria-based-filter-edition-dialog.DcXcQOoT.js} +21 -65
- package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +28 -9
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +1 -1
- package/dist/components/AuthenticationRouter/index.d.ts +6 -0
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +27 -13
- package/dist/components/CardErrorBoundary/card-error-boundary.js +7 -6
- package/dist/components/CardErrorBoundary/index.d.ts +6 -0
- package/dist/components/CustomAGGrid/custom-aggrid.d.ts +11 -0
- package/dist/components/CustomAGGrid/custom-aggrid.js +73 -0
- package/dist/components/CustomAGGrid/custom-aggrid.style.d.ts +20 -0
- package/dist/components/CustomAGGrid/custom-aggrid.style.js +47 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +13 -26
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
- package/dist/components/ElementSearchDialog/equipment-item.js +5 -5
- package/dist/components/ElementSearchDialog/index.d.ts +6 -0
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
- package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
- package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
- package/dist/components/FlatParameters/FlatParameters.js +3 -3
- package/dist/components/FlatParameters/index.d.ts +6 -0
- package/dist/components/Login/Login.d.ts +11 -4
- package/dist/components/Login/Logout.d.ts +11 -4
- package/dist/components/Login/index.d.ts +6 -0
- package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
- package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
- package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
- package/dist/components/OverflowableText/index.d.ts +6 -0
- package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
- package/dist/components/OverflowableText/overflowable-text.js +1 -18
- package/dist/components/ReportViewer/filter-button.d.ts +11 -1
- package/dist/components/ReportViewer/filter-button.js +5 -2
- package/dist/components/ReportViewer/index.d.ts +6 -0
- package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
- package/dist/components/ReportViewer/log-report-item.js +13 -47
- package/dist/components/ReportViewer/log-report.d.ts +16 -17
- package/dist/components/ReportViewer/log-report.js +2 -1
- package/dist/components/ReportViewer/log-severity.d.ts +13 -0
- package/dist/components/ReportViewer/log-severity.js +35 -0
- package/dist/components/ReportViewer/log-table.d.ts +9 -6
- package/dist/components/ReportViewer/log-table.js +6 -4
- package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
- package/dist/components/ReportViewer/report-item.d.ts +12 -12
- package/dist/components/ReportViewer/report-item.js +0 -7
- package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
- package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
- package/dist/components/ReportViewer/report-viewer.js +8 -6
- package/dist/components/ReportViewer/report.type.d.ts +22 -0
- package/dist/components/ReportViewer/report.type.js +1 -0
- package/dist/components/ReportViewerDialog/index.d.ts +6 -0
- package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
- package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
- package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
- package/dist/components/SnackbarProvider/index.d.ts +6 -0
- package/dist/components/TopBar/AboutDialog.d.ts +30 -23
- package/dist/components/TopBar/AboutDialog.js +4 -22
- package/dist/components/TopBar/GridLogo.d.ts +13 -32
- package/dist/components/TopBar/GridLogo.js +12 -15
- package/dist/components/TopBar/TopBar.d.ts +52 -51
- package/dist/components/TopBar/TopBar.js +389 -380
- package/dist/components/TopBar/TopBar.test.d.ts +6 -0
- package/dist/components/TopBar/index.d.ts +6 -0
- package/dist/components/dialogs/modify-element-selection.d.ts +1 -1
- package/dist/components/dialogs/modify-element-selection.js +5 -14
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +1 -1
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +1 -1
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
- package/dist/components/filter/expert/expert-filter-constants.d.ts +22 -1
- package/dist/components/filter/expert/expert-filter-constants.js +39 -10
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +0 -6
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +1 -2
- package/dist/components/filter/expert/expert-filter-form.js +1 -1
- package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
- package/dist/components/filter/expert/expert-filter.type.js +3 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +1 -1
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +1 -1
- package/dist/components/filter/filter-creation-dialog.d.ts +0 -7
- package/dist/components/filter/filter-creation-dialog.js +1 -2
- package/dist/components/filter/filter-form.js +1 -1
- package/dist/components/filter/utils/filter-form-utils.d.ts +3 -2
- package/dist/components/filter/utils/filter-form-utils.js +42 -28
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +1 -1
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +6 -13
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +1 -1
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +9 -15
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +0 -7
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +8 -13
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +0 -6
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +8 -13
- package/dist/components/inputs/react-hook-form/booleans/switch-input.js +0 -6
- package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +0 -2
- package/dist/components/inputs/react-hook-form/directory-items-input.js +10 -14
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +5 -3
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +3 -20
- package/dist/components/inputs/react-hook-form/numbers/integer-input.js +1 -4
- package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +12 -1
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +7 -20
- package/dist/components/inputs/react-hook-form/slider-input.js +4 -12
- package/dist/components/inputs/react-hook-form/text-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +1 -1
- package/dist/components/inputs/react-query-builder/element-value-editor.js +8 -14
- package/dist/components/inputs/react-query-builder/remove-button.js +1 -1
- package/dist/components/inputs/react-query-builder/value-editor.js +1 -1
- package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
- package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
- package/dist/components/translations/common-button-en.d.ts +10 -4
- package/dist/components/translations/common-button-fr.d.ts +10 -4
- package/dist/components/translations/directory-items-input-en.d.ts +1 -1
- package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
- package/dist/components/translations/element-search-en.d.ts +1 -1
- package/dist/components/translations/element-search-fr.d.ts +1 -1
- package/dist/components/translations/equipment-search-en.d.ts +1 -1
- package/dist/components/translations/equipment-search-fr.d.ts +1 -1
- package/dist/components/translations/filter-en.d.ts +27 -21
- package/dist/components/translations/filter-en.js +2 -1
- package/dist/components/translations/filter-expert-en.d.ts +73 -0
- package/dist/components/translations/filter-expert-en.js +69 -0
- package/dist/components/translations/filter-expert-fr.d.ts +73 -0
- package/dist/components/translations/filter-expert-fr.js +69 -0
- package/dist/components/translations/filter-fr.d.ts +27 -21
- package/dist/components/translations/filter-fr.js +2 -1
- package/dist/components/translations/flat-parameters-en.d.ts +1 -1
- package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
- package/dist/components/translations/inputs-en.d.ts +1 -1
- package/dist/components/translations/inputs-fr.d.ts +1 -1
- package/dist/components/translations/login-en.d.ts +1 -1
- package/dist/components/translations/login-fr.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
- package/dist/components/translations/report-viewer-en.d.ts +1 -1
- package/dist/components/translations/report-viewer-fr.d.ts +1 -1
- package/dist/components/translations/table-en.d.ts +1 -1
- package/dist/components/translations/table-fr.d.ts +1 -1
- package/dist/components/translations/top-bar-en.d.ts +1 -1
- package/dist/components/translations/top-bar-fr.d.ts +1 -1
- package/dist/components/translations/treeview-finder-en.d.ts +1 -1
- package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
- package/dist/hooks/localized-countries-hook.d.ts +10 -4
- package/dist/hooks/localized-countries-hook.js +1 -1
- package/dist/hooks/predefined-properties-hook.d.ts +1 -15
- package/dist/hooks/predefined-properties-hook.js +8 -16
- package/dist/index.d.ts +65 -217
- package/dist/index.js +104 -77
- package/dist/module-mui.d.js +1 -0
- package/dist/redux/actions.d.ts +33 -29
- package/dist/services/apps-metadata.d.ts +32 -0
- package/dist/services/apps-metadata.js +26 -0
- package/dist/services/directory.d.ts +6 -0
- package/dist/services/directory.js +42 -0
- package/dist/services/explore.d.ts +2 -0
- package/dist/services/explore.js +29 -1
- package/dist/services/index.d.ts +16 -0
- package/dist/services/index.js +20 -0
- package/dist/services/utils.d.ts +1 -0
- package/dist/services/utils.js +5 -1
- package/dist/utils/AuthService.d.ts +20 -9
- package/dist/utils/AuthService.js +29 -13
- package/dist/utils/ElementIcon.d.ts +4 -1
- package/dist/utils/EquipmentType.d.ts +13 -9
- package/dist/utils/EquipmentType.js +9 -9
- package/dist/utils/UserManagerMock.d.ts +14 -14
- package/dist/utils/UserManagerMock.js +9 -15
- package/dist/utils/algos.d.ts +1 -1
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
- package/dist/utils/functions.d.ts +0 -1
- package/dist/utils/functions.js +1 -3
- package/dist/utils/styles.d.ts +5 -3
- package/dist/utils/styles.js +4 -1
- package/dist/utils/types.d.ts +13 -3
- package/package.json +2 -1
- package/dist/components/filter/filter-context.d.ts +0 -13
- package/dist/components/filter/filter-context.js +0 -11
|
@@ -1 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, 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
|
+
*/
|
|
1
7
|
export {};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020, 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
|
+
*/
|
|
1
7
|
export { default } from './TopBar';
|
|
2
8
|
export * from './GridLogo';
|
|
3
9
|
export { default as AboutDialog } from './AboutDialog';
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState,
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
3
|
import { Grid, Button, Typography } from "@mui/material";
|
|
4
4
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
5
5
|
import { useController } from "react-hook-form";
|
|
6
|
-
import { FilterContext } from "../filter/filter-context.js";
|
|
7
6
|
import { FieldConstants } from "../../utils/field-constants.js";
|
|
8
7
|
import DirectoryItemSelector from "../DirectoryItemSelector/directory-item-selector.js";
|
|
9
8
|
import { ElementType } from "../../utils/ElementType.js";
|
|
9
|
+
import { fetchDirectoryElementPath } from "../../services/directory.js";
|
|
10
10
|
const ModifyElementSelection = (props) => {
|
|
11
11
|
const intl = useIntl();
|
|
12
12
|
const [open, setOpen] = useState(false);
|
|
13
13
|
const [activeDirectoryName, setActiveDirectoryName] = useState("");
|
|
14
|
-
const {
|
|
15
|
-
fetchDirectoryContent,
|
|
16
|
-
fetchRootFolders,
|
|
17
|
-
fetchElementsInfos,
|
|
18
|
-
fetchPath
|
|
19
|
-
} = useContext(FilterContext);
|
|
20
14
|
const {
|
|
21
15
|
field: { onChange, value: directory }
|
|
22
16
|
} = useController({
|
|
@@ -24,13 +18,13 @@ const ModifyElementSelection = (props) => {
|
|
|
24
18
|
});
|
|
25
19
|
useEffect(() => {
|
|
26
20
|
if (directory) {
|
|
27
|
-
|
|
21
|
+
fetchDirectoryElementPath(directory).then((res) => {
|
|
28
22
|
setActiveDirectoryName(
|
|
29
23
|
res.map((element) => element.elementName.trim()).reverse().join("/")
|
|
30
24
|
);
|
|
31
25
|
});
|
|
32
26
|
}
|
|
33
|
-
}, [directory
|
|
27
|
+
}, [directory]);
|
|
34
28
|
const handleSelectFolder = () => {
|
|
35
29
|
setOpen(true);
|
|
36
30
|
};
|
|
@@ -93,10 +87,7 @@ const ModifyElementSelection = (props) => {
|
|
|
93
87
|
}),
|
|
94
88
|
contentText: intl.formatMessage({
|
|
95
89
|
id: props.dialogMessageLabel
|
|
96
|
-
})
|
|
97
|
-
fetchDirectoryContent,
|
|
98
|
-
fetchRootFolders,
|
|
99
|
-
fetchElementsInfos
|
|
90
|
+
})
|
|
100
91
|
}
|
|
101
92
|
)
|
|
102
93
|
]
|
|
@@ -8,7 +8,7 @@ import "react-hook-form";
|
|
|
8
8
|
import "@hookform/resolvers/yup";
|
|
9
9
|
import "./criteria-based-filter-form.js";
|
|
10
10
|
import "../../../utils/yup-config.js";
|
|
11
|
-
import { b, p } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
11
|
+
import { b, p } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
12
12
|
import "../constants/filter-constants.js";
|
|
13
13
|
import "../../../utils/FetchStatus.js";
|
|
14
14
|
import "../../../services/explore.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from 'react-querybuilder';
|
|
2
|
-
import { CombinatorType, DataType, FieldType, OperatorType } from '
|
|
2
|
+
import { CombinatorType, DataType, FieldType, OperatorType } from './expert-filter.type';
|
|
3
3
|
|
|
4
4
|
export declare enum RULES {
|
|
5
5
|
EMPTY_RULE = "emptyRule",
|
|
@@ -547,5 +547,26 @@ export declare const FIELDS_OPTIONS: {
|
|
|
547
547
|
valueEditorType: string;
|
|
548
548
|
defaultValue: string;
|
|
549
549
|
};
|
|
550
|
+
VOLTAGE_LEVEL_PROPERTY: {
|
|
551
|
+
name: FieldType;
|
|
552
|
+
label: string;
|
|
553
|
+
dataType: DataType;
|
|
554
|
+
valueEditorType: string;
|
|
555
|
+
defaultValue: string;
|
|
556
|
+
};
|
|
557
|
+
VOLTAGE_LEVEL_PROPERTY_1: {
|
|
558
|
+
name: FieldType;
|
|
559
|
+
label: string;
|
|
560
|
+
dataType: DataType;
|
|
561
|
+
valueEditorType: string;
|
|
562
|
+
defaultValue: string;
|
|
563
|
+
};
|
|
564
|
+
VOLTAGE_LEVEL_PROPERTY_2: {
|
|
565
|
+
name: FieldType;
|
|
566
|
+
label: string;
|
|
567
|
+
dataType: DataType;
|
|
568
|
+
valueEditorType: string;
|
|
569
|
+
defaultValue: string;
|
|
570
|
+
};
|
|
550
571
|
};
|
|
551
572
|
export declare const fields: Record<string, Field[]>;
|
|
@@ -340,25 +340,25 @@ const FIELDS_OPTIONS = {
|
|
|
340
340
|
},
|
|
341
341
|
NOMINAL_VOLTAGE_1: {
|
|
342
342
|
name: FieldType.NOMINAL_VOLTAGE_1,
|
|
343
|
-
label: "
|
|
343
|
+
label: "nominalVoltage1KV",
|
|
344
344
|
dataType: DataType.NUMBER,
|
|
345
345
|
inputType: "number"
|
|
346
346
|
},
|
|
347
347
|
NOMINAL_VOLTAGE_2: {
|
|
348
348
|
name: FieldType.NOMINAL_VOLTAGE_2,
|
|
349
|
-
label: "
|
|
349
|
+
label: "nominalVoltage2KV",
|
|
350
350
|
dataType: DataType.NUMBER,
|
|
351
351
|
inputType: "number"
|
|
352
352
|
},
|
|
353
353
|
RATED_VOLTAGE_1: {
|
|
354
354
|
name: FieldType.RATED_VOLTAGE_1,
|
|
355
|
-
label: "
|
|
355
|
+
label: "ratedVoltage1KV",
|
|
356
356
|
dataType: DataType.NUMBER,
|
|
357
357
|
inputType: "number"
|
|
358
358
|
},
|
|
359
359
|
RATED_VOLTAGE_2: {
|
|
360
360
|
name: FieldType.RATED_VOLTAGE_2,
|
|
361
|
-
label: "
|
|
361
|
+
label: "ratedVoltage2KV",
|
|
362
362
|
dataType: DataType.NUMBER,
|
|
363
363
|
inputType: "number"
|
|
364
364
|
},
|
|
@@ -517,6 +517,27 @@ const FIELDS_OPTIONS = {
|
|
|
517
517
|
dataType: DataType.PROPERTY,
|
|
518
518
|
valueEditorType: "select",
|
|
519
519
|
defaultValue: ""
|
|
520
|
+
},
|
|
521
|
+
VOLTAGE_LEVEL_PROPERTY: {
|
|
522
|
+
name: FieldType.VOLTAGE_LEVEL_PROPERTY,
|
|
523
|
+
label: "voltageLevelProperty",
|
|
524
|
+
dataType: DataType.PROPERTY,
|
|
525
|
+
valueEditorType: "select",
|
|
526
|
+
defaultValue: ""
|
|
527
|
+
},
|
|
528
|
+
VOLTAGE_LEVEL_PROPERTY_1: {
|
|
529
|
+
name: FieldType.VOLTAGE_LEVEL_PROPERTY_1,
|
|
530
|
+
label: "voltageLevelProperty1",
|
|
531
|
+
dataType: DataType.PROPERTY,
|
|
532
|
+
valueEditorType: "select",
|
|
533
|
+
defaultValue: ""
|
|
534
|
+
},
|
|
535
|
+
VOLTAGE_LEVEL_PROPERTY_2: {
|
|
536
|
+
name: FieldType.VOLTAGE_LEVEL_PROPERTY_2,
|
|
537
|
+
label: "voltageLevelProperty2",
|
|
538
|
+
dataType: DataType.PROPERTY,
|
|
539
|
+
valueEditorType: "select",
|
|
540
|
+
defaultValue: ""
|
|
520
541
|
}
|
|
521
542
|
};
|
|
522
543
|
const fields = {
|
|
@@ -555,7 +576,9 @@ const fields = {
|
|
|
555
576
|
FIELDS_OPTIONS.SHUNT_SUSCEPTANCE_2,
|
|
556
577
|
FIELDS_OPTIONS.PROPERTY,
|
|
557
578
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY_1,
|
|
558
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY_2
|
|
579
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY_2,
|
|
580
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
|
|
581
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_2
|
|
559
582
|
],
|
|
560
583
|
TWO_WINDINGS_TRANSFORMER: [
|
|
561
584
|
FIELDS_OPTIONS.ID,
|
|
@@ -585,7 +608,9 @@ const fields = {
|
|
|
585
608
|
FIELDS_OPTIONS.PHASE_REGULATION_VALUE,
|
|
586
609
|
FIELDS_OPTIONS.PROPERTY,
|
|
587
610
|
FIELDS_OPTIONS.SUBSTATION_PROPERTY_1,
|
|
588
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY_2
|
|
611
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY_2,
|
|
612
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
|
|
613
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_2
|
|
589
614
|
],
|
|
590
615
|
GENERATOR: [
|
|
591
616
|
FIELDS_OPTIONS.ID,
|
|
@@ -607,7 +632,8 @@ const fields = {
|
|
|
607
632
|
FIELDS_OPTIONS.PLANNED_OUTAGE_RATE,
|
|
608
633
|
FIELDS_OPTIONS.FORCED_OUTAGE_RATE,
|
|
609
634
|
FIELDS_OPTIONS.PROPERTY,
|
|
610
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY
|
|
635
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
636
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
611
637
|
],
|
|
612
638
|
LOAD: [
|
|
613
639
|
FIELDS_OPTIONS.ID,
|
|
@@ -620,7 +646,8 @@ const fields = {
|
|
|
620
646
|
FIELDS_OPTIONS.P0,
|
|
621
647
|
FIELDS_OPTIONS.Q0,
|
|
622
648
|
FIELDS_OPTIONS.PROPERTY,
|
|
623
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY
|
|
649
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
650
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
624
651
|
],
|
|
625
652
|
BATTERY: [
|
|
626
653
|
FIELDS_OPTIONS.ID,
|
|
@@ -634,7 +661,8 @@ const fields = {
|
|
|
634
661
|
FIELDS_OPTIONS.TARGET_P,
|
|
635
662
|
FIELDS_OPTIONS.TARGET_Q,
|
|
636
663
|
FIELDS_OPTIONS.PROPERTY,
|
|
637
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY
|
|
664
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
665
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
638
666
|
],
|
|
639
667
|
SHUNT_COMPENSATOR: [
|
|
640
668
|
FIELDS_OPTIONS.ID,
|
|
@@ -651,7 +679,8 @@ const fields = {
|
|
|
651
679
|
FIELDS_OPTIONS.MAX_SUSCEPTANCE,
|
|
652
680
|
FIELDS_OPTIONS.SWITCHED_ON_SUSCEPTANCE,
|
|
653
681
|
FIELDS_OPTIONS.PROPERTY,
|
|
654
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY
|
|
682
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
683
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
655
684
|
]
|
|
656
685
|
};
|
|
657
686
|
export {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { StudyMetadata } from '../../../hooks/predefined-properties-hook.ts';
|
|
2
|
-
import { ElementAttributes } from '../../../utils/types.ts';
|
|
3
1
|
import { elementExistsType } from '../criteria-based/criteria-based-filter-edition-dialog';
|
|
4
2
|
import { UUID } from 'crypto';
|
|
5
3
|
import { FunctionComponent } from 'react';
|
|
@@ -19,10 +17,6 @@ export interface ExpertFilterEditionDialogProps {
|
|
|
19
17
|
activeDirectory?: UUID;
|
|
20
18
|
elementExists?: elementExistsType;
|
|
21
19
|
language?: string;
|
|
22
|
-
fetchDirectoryContent: (directoryUuid: UUID, elementTypes: string[]) => Promise<ElementAttributes[]>;
|
|
23
|
-
fetchRootFolders: (types: string[]) => Promise<ElementAttributes[]>;
|
|
24
|
-
fetchElementsInfos: (ids: UUID[], elementTypes?: string[], equipmentTypes?: string[]) => Promise<ElementAttributes[]>;
|
|
25
|
-
fetchAppsAndUrls: () => Promise<StudyMetadata[]>;
|
|
26
20
|
}
|
|
27
21
|
declare const ExpertFilterEditionDialog: FunctionComponent<ExpertFilterEditionDialogProps>;
|
|
28
22
|
export default ExpertFilterEditionDialog;
|
|
@@ -7,10 +7,9 @@ import "@hookform/resolvers/yup";
|
|
|
7
7
|
import "../../../hooks/useSnackMessage.js";
|
|
8
8
|
import "../../dialogs/custom-mui-dialog.js";
|
|
9
9
|
import "../../../utils/yup-config.js";
|
|
10
|
-
import { E } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
10
|
+
import { E } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
11
11
|
import "../utils/filter-api.js";
|
|
12
12
|
import "./expert-filter-utils.js";
|
|
13
|
-
import "../filter-context.js";
|
|
14
13
|
import "../constants/filter-constants.js";
|
|
15
14
|
import "../../../utils/FetchStatus.js";
|
|
16
15
|
import "yup";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "@mui/material/Grid";
|
|
4
4
|
import "react-querybuilder";
|
|
5
|
-
import { k, n, l, m } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
5
|
+
import { k, n, l, m } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
6
6
|
import "react-hook-form";
|
|
7
7
|
import "./expert-filter-utils.js";
|
|
8
8
|
import "./expert-filter-constants.js";
|
|
@@ -87,7 +87,10 @@ export declare enum FieldType {
|
|
|
87
87
|
PROPERTY = "FREE_PROPERTIES",
|
|
88
88
|
SUBSTATION_PROPERTY = "SUBSTATION_PROPERTIES",
|
|
89
89
|
SUBSTATION_PROPERTY_1 = "SUBSTATION_PROPERTIES_1",
|
|
90
|
-
SUBSTATION_PROPERTY_2 = "SUBSTATION_PROPERTIES_2"
|
|
90
|
+
SUBSTATION_PROPERTY_2 = "SUBSTATION_PROPERTIES_2",
|
|
91
|
+
VOLTAGE_LEVEL_PROPERTY = "VOLTAGE_LEVEL_PROPERTIES",
|
|
92
|
+
VOLTAGE_LEVEL_PROPERTY_1 = "VOLTAGE_LEVEL_PROPERTIES_1",
|
|
93
|
+
VOLTAGE_LEVEL_PROPERTY_2 = "VOLTAGE_LEVEL_PROPERTIES_2"
|
|
91
94
|
}
|
|
92
95
|
export declare enum DataType {
|
|
93
96
|
STRING = "STRING",
|
|
@@ -84,6 +84,9 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
|
84
84
|
FieldType2["SUBSTATION_PROPERTY"] = "SUBSTATION_PROPERTIES";
|
|
85
85
|
FieldType2["SUBSTATION_PROPERTY_1"] = "SUBSTATION_PROPERTIES_1";
|
|
86
86
|
FieldType2["SUBSTATION_PROPERTY_2"] = "SUBSTATION_PROPERTIES_2";
|
|
87
|
+
FieldType2["VOLTAGE_LEVEL_PROPERTY"] = "VOLTAGE_LEVEL_PROPERTIES";
|
|
88
|
+
FieldType2["VOLTAGE_LEVEL_PROPERTY_1"] = "VOLTAGE_LEVEL_PROPERTIES_1";
|
|
89
|
+
FieldType2["VOLTAGE_LEVEL_PROPERTY_2"] = "VOLTAGE_LEVEL_PROPERTIES_2";
|
|
87
90
|
return FieldType2;
|
|
88
91
|
})(FieldType || {});
|
|
89
92
|
var DataType = /* @__PURE__ */ ((DataType2) => {
|
|
@@ -7,7 +7,7 @@ import "@hookform/resolvers/yup";
|
|
|
7
7
|
import "../../../hooks/useSnackMessage.js";
|
|
8
8
|
import "../../dialogs/custom-mui-dialog.js";
|
|
9
9
|
import "../../../utils/yup-config.js";
|
|
10
|
-
import { a } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
10
|
+
import { a } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
11
11
|
import "../../../utils/field-constants.js";
|
|
12
12
|
import "uuid";
|
|
13
13
|
import "../../../utils/equipment-types.js";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../utils/field-constants.js";
|
|
4
4
|
import "../../../utils/yup-config.js";
|
|
5
|
-
import { d, f, e, g } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
5
|
+
import { d, f, e, g } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
6
6
|
import "react-intl";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import "@mui/material/Grid";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ElementAttributes } from '../../utils/types.ts';
|
|
2
|
-
import { StudyMetadata } from '../../hooks/predefined-properties-hook.ts';
|
|
3
1
|
import { UUID } from 'crypto';
|
|
4
2
|
import { elementExistsType } from './criteria-based/criteria-based-filter-edition-dialog';
|
|
5
3
|
import { FunctionComponent } from 'react';
|
|
@@ -8,13 +6,8 @@ export interface FilterCreationDialogProps {
|
|
|
8
6
|
open: boolean;
|
|
9
7
|
onClose: () => void;
|
|
10
8
|
activeDirectory?: UUID;
|
|
11
|
-
fetchAppsAndUrls: () => Promise<StudyMetadata[]>;
|
|
12
9
|
elementExists?: elementExistsType;
|
|
13
10
|
language?: string;
|
|
14
|
-
fetchDirectoryContent?: (directoryUuid: UUID, elementTypes: string[]) => Promise<ElementAttributes[]>;
|
|
15
|
-
fetchRootFolders?: (types: string[]) => Promise<ElementAttributes[]>;
|
|
16
|
-
fetchElementsInfos?: (ids: UUID[], elementTypes?: string[], equipmentTypes?: string[]) => Promise<ElementAttributes[]>;
|
|
17
|
-
fetchPath?: (elementUuid: UUID) => Promise<ElementAttributes[]>;
|
|
18
11
|
sourceFilterForExplicitNamingConversion?: {
|
|
19
12
|
id: UUID;
|
|
20
13
|
equipmentType: string;
|
|
@@ -5,11 +5,10 @@ import "react-hook-form";
|
|
|
5
5
|
import "../../hooks/useSnackMessage.js";
|
|
6
6
|
import "../dialogs/custom-mui-dialog.js";
|
|
7
7
|
import "./criteria-based/criteria-based-filter-form.js";
|
|
8
|
-
import { F } from "../../chunks/criteria-based-filter-edition-dialog.
|
|
8
|
+
import { F } from "../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
9
9
|
import "../../utils/field-constants.js";
|
|
10
10
|
import "../../utils/yup-config.js";
|
|
11
11
|
import "@hookform/resolvers/yup";
|
|
12
|
-
import "./filter-context.js";
|
|
13
12
|
import "./constants/filter-constants.js";
|
|
14
13
|
import "yup";
|
|
15
14
|
export {
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../inputs/react-hook-form/unique-name-input.js";
|
|
3
3
|
import "../../utils/field-constants.js";
|
|
4
4
|
import "./criteria-based/criteria-based-filter-form.js";
|
|
5
|
-
import { o } from "../../chunks/criteria-based-filter-edition-dialog.
|
|
5
|
+
import { o } from "../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import "@mui/material";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EquipmentType } from '../../../utils/EquipmentType';
|
|
1
2
|
import { FunctionComponent } from 'react';
|
|
2
3
|
|
|
3
4
|
type FormField = {
|
|
@@ -12,6 +13,6 @@ export type FormEquipment = {
|
|
|
12
13
|
label: string;
|
|
13
14
|
fields: FormField[];
|
|
14
15
|
};
|
|
15
|
-
export declare const CONTINGENCY_LIST_EQUIPMENTS: Record<
|
|
16
|
-
export declare const FILTER_EQUIPMENTS: Record<
|
|
16
|
+
export declare const CONTINGENCY_LIST_EQUIPMENTS: Record<EquipmentType.BUSBAR_SECTION | EquipmentType.LINE | EquipmentType.TWO_WINDINGS_TRANSFORMER | EquipmentType.GENERATOR | EquipmentType.SHUNT_COMPENSATOR | EquipmentType.HVDC_LINE | EquipmentType.DANGLING_LINE, FormEquipment>;
|
|
17
|
+
export declare const FILTER_EQUIPMENTS: Record<EquipmentType.SUBSTATION | EquipmentType.VOLTAGE_LEVEL | EquipmentType.LINE | EquipmentType.TWO_WINDINGS_TRANSFORMER | EquipmentType.THREE_WINDINGS_TRANSFORMER | EquipmentType.GENERATOR | EquipmentType.BATTERY | EquipmentType.LOAD | EquipmentType.SHUNT_COMPENSATOR | EquipmentType.STATIC_VAR_COMPENSATOR | EquipmentType.HVDC_LINE | EquipmentType.DANGLING_LINE, FormEquipment>;
|
|
17
18
|
export {};
|
|
@@ -67,6 +67,11 @@ const energySource = {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
const CONTINGENCY_LIST_EQUIPMENTS = {
|
|
70
|
+
BUSBAR_SECTION: {
|
|
71
|
+
id: "BUSBAR_SECTION",
|
|
72
|
+
label: "BusBarSections",
|
|
73
|
+
fields: [countries, nominalVoltage]
|
|
74
|
+
},
|
|
70
75
|
LINE: {
|
|
71
76
|
id: "LINE",
|
|
72
77
|
label: "Lines",
|
|
@@ -89,14 +94,9 @@ const CONTINGENCY_LIST_EQUIPMENTS = {
|
|
|
89
94
|
},
|
|
90
95
|
HVDC_LINE: {
|
|
91
96
|
id: "HVDC_LINE",
|
|
92
|
-
label: "
|
|
97
|
+
label: "Hvdc",
|
|
93
98
|
fields: [countries1, countries2, nominalVoltage]
|
|
94
99
|
},
|
|
95
|
-
BUSBAR_SECTION: {
|
|
96
|
-
id: "BUSBAR_SECTION",
|
|
97
|
-
label: "BusBarSections",
|
|
98
|
-
fields: [countries, nominalVoltage]
|
|
99
|
-
},
|
|
100
100
|
DANGLING_LINE: {
|
|
101
101
|
id: "DANGLING_LINE",
|
|
102
102
|
label: "DanglingLines",
|
|
@@ -104,7 +104,26 @@ const CONTINGENCY_LIST_EQUIPMENTS = {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
const FILTER_EQUIPMENTS = {
|
|
107
|
-
|
|
107
|
+
SUBSTATION: {
|
|
108
|
+
id: "SUBSTATION",
|
|
109
|
+
label: "Substations",
|
|
110
|
+
fields: [countries, nominalVoltage]
|
|
111
|
+
},
|
|
112
|
+
VOLTAGE_LEVEL: {
|
|
113
|
+
id: "VOLTAGE_LEVEL",
|
|
114
|
+
label: "VoltageLevels",
|
|
115
|
+
fields: [countries, nominalVoltage]
|
|
116
|
+
},
|
|
117
|
+
LINE: {
|
|
118
|
+
id: "LINE",
|
|
119
|
+
label: "Lines",
|
|
120
|
+
fields: [countries1, countries2, nominalVoltage1, nominalVoltage2]
|
|
121
|
+
},
|
|
122
|
+
TWO_WINDINGS_TRANSFORMER: {
|
|
123
|
+
id: "TWO_WINDINGS_TRANSFORMER",
|
|
124
|
+
label: "TwoWindingsTransformers",
|
|
125
|
+
fields: [countries, nominalVoltage1, nominalVoltage2]
|
|
126
|
+
},
|
|
108
127
|
THREE_WINDINGS_TRANSFORMER: {
|
|
109
128
|
id: "THREE_WINDINGS_TRANSFORMER",
|
|
110
129
|
label: "ThreeWindingsTransformers",
|
|
@@ -115,40 +134,35 @@ const FILTER_EQUIPMENTS = {
|
|
|
115
134
|
label: "Generators",
|
|
116
135
|
fields: [countries, energySource, nominalVoltage]
|
|
117
136
|
},
|
|
118
|
-
LOAD: {
|
|
119
|
-
id: "LOAD",
|
|
120
|
-
label: "Loads",
|
|
121
|
-
fields: [countries, nominalVoltage]
|
|
122
|
-
},
|
|
123
137
|
BATTERY: {
|
|
124
138
|
id: "BATTERY",
|
|
125
139
|
label: "Batteries",
|
|
126
140
|
fields: [countries, nominalVoltage]
|
|
127
141
|
},
|
|
128
|
-
|
|
129
|
-
id: "
|
|
130
|
-
label: "
|
|
131
|
-
fields: [countries, nominalVoltage]
|
|
132
|
-
},
|
|
133
|
-
VSC_CONVERTER_STATION: {
|
|
134
|
-
id: "VSC_CONVERTER_STATION",
|
|
135
|
-
label: "VscConverterStations",
|
|
136
|
-
fields: [countries, nominalVoltage]
|
|
137
|
-
},
|
|
138
|
-
VOLTAGE_LEVEL: {
|
|
139
|
-
id: "VOLTAGE_LEVEL",
|
|
140
|
-
label: "VoltageLevels",
|
|
142
|
+
LOAD: {
|
|
143
|
+
id: "LOAD",
|
|
144
|
+
label: "Loads",
|
|
141
145
|
fields: [countries, nominalVoltage]
|
|
142
146
|
},
|
|
143
|
-
|
|
144
|
-
id: "
|
|
145
|
-
label: "
|
|
147
|
+
SHUNT_COMPENSATOR: {
|
|
148
|
+
id: "SHUNT_COMPENSATOR",
|
|
149
|
+
label: "ShuntCompensators",
|
|
146
150
|
fields: [countries, nominalVoltage]
|
|
147
151
|
},
|
|
148
152
|
STATIC_VAR_COMPENSATOR: {
|
|
149
153
|
id: "STATIC_VAR_COMPENSATOR",
|
|
150
154
|
label: "StaticVarCompensators",
|
|
151
155
|
fields: [countries, nominalVoltage]
|
|
156
|
+
},
|
|
157
|
+
HVDC_LINE: {
|
|
158
|
+
id: "HVDC_LINE",
|
|
159
|
+
label: "Hvdc",
|
|
160
|
+
fields: [countries1, countries2, nominalVoltage]
|
|
161
|
+
},
|
|
162
|
+
DANGLING_LINE: {
|
|
163
|
+
id: "DANGLING_LINE",
|
|
164
|
+
label: "DanglingLines",
|
|
165
|
+
fields: [countries, nominalVoltage]
|
|
152
166
|
}
|
|
153
167
|
};
|
|
154
168
|
export {
|
|
@@ -4,7 +4,7 @@ import "@mui/material/IconButton";
|
|
|
4
4
|
import "@mui/icons-material";
|
|
5
5
|
import "@mui/icons-material/ControlPoint";
|
|
6
6
|
import "@mui/icons-material/Delete";
|
|
7
|
-
import { B } from "../../../../chunks/criteria-based-filter-edition-dialog.
|
|
7
|
+
import { B } from "../../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "react-intl";
|
|
10
10
|
import "@mui/material/styles";
|
|
@@ -14,12 +14,11 @@ import "@mui/material";
|
|
|
14
14
|
import "react-hook-form";
|
|
15
15
|
import "../../../../TreeViewFinder/TreeViewFinder.js";
|
|
16
16
|
import "../../../../TopBar/TopBar.js";
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
17
|
+
import "@mui/icons-material";
|
|
18
|
+
import "@mui/lab";
|
|
19
|
+
import "notistack";
|
|
20
20
|
import "react-router-dom";
|
|
21
21
|
import "../../../../../utils/AuthService.js";
|
|
22
|
-
import "@mui/icons-material";
|
|
23
22
|
import "../../../../MuiVirtualizedTable/MuiVirtualizedTable.js";
|
|
24
23
|
import "../../../../ReportViewer/report-item.js";
|
|
25
24
|
import "uuid";
|
|
@@ -27,29 +26,23 @@ import "../../../../ReportViewer/log-table.js";
|
|
|
27
26
|
import "../../../../ReportViewer/report-tree-view-context.js";
|
|
28
27
|
import "@mui/x-tree-view";
|
|
29
28
|
import "../../../../OverflowableText/overflowable-text.js";
|
|
30
|
-
import "
|
|
29
|
+
import "clsx";
|
|
31
30
|
import "../../utils/submit-button.js";
|
|
32
31
|
import "../../utils/cancel-button.js";
|
|
33
32
|
import "../../provider/custom-form-provider.js";
|
|
34
33
|
import "../../../../dialogs/description-modification-dialog.js";
|
|
35
|
-
import "../../../../filter/filter-context.js";
|
|
36
34
|
import "../../../../../utils/field-constants.js";
|
|
37
|
-
import "notistack";
|
|
38
35
|
import "yup";
|
|
39
36
|
import "../../../../dialogs/popup-confirmation-dialog.js";
|
|
40
|
-
import { c } from "../../../../../chunks/criteria-based-filter-edition-dialog.
|
|
37
|
+
import { c } from "../../../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
41
38
|
import "ag-grid-react";
|
|
42
39
|
import "ag-grid-community/styles/ag-grid.css";
|
|
43
40
|
import "ag-grid-community/styles/ag-theme-alpine.css";
|
|
44
41
|
import "autosuggest-highlight/match";
|
|
45
42
|
import "autosuggest-highlight/parse";
|
|
46
|
-
import "clsx";
|
|
47
43
|
import "../../../../CardErrorBoundary/card-error-boundary.js";
|
|
48
|
-
import "../../slider-input.js";
|
|
49
|
-
import "../../numbers/integer-input.js";
|
|
50
|
-
import "../../booleans/checkbox-input.js";
|
|
51
|
-
import "../../booleans/switch-input.js";
|
|
52
44
|
import "@mui/icons-material/Folder";
|
|
45
|
+
import "../../../../CustomAGGrid/custom-aggrid.js";
|
|
53
46
|
import "../../../../../chunks/filter-properties.B7-q_yPf.js";
|
|
54
47
|
import "@mui/icons-material/Delete";
|
|
55
48
|
import "@mui/material/IconButton";
|
|
@@ -5,7 +5,7 @@ import "ag-grid-react";
|
|
|
5
5
|
import "ag-grid-community/styles/ag-grid.css";
|
|
6
6
|
import "ag-grid-community/styles/ag-theme-alpine.css";
|
|
7
7
|
import "@mui/material";
|
|
8
|
-
import { C, R, C as C2 } from "../../../../chunks/criteria-based-filter-edition-dialog.
|
|
8
|
+
import { C, R, C as C2 } from "../../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
9
9
|
import "react-intl";
|
|
10
10
|
import "../../../../utils/field-constants.js";
|
|
11
11
|
export {
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name:
|
|
5
|
-
label
|
|
6
|
-
formProps
|
|
7
|
-
Input:
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare namespace BooleanInput {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
let name: PropTypes.Validator<string>;
|
|
12
|
-
let label: PropTypes.Requireable<string>;
|
|
13
|
-
let formProps: PropTypes.Requireable<object>;
|
|
14
|
-
let Input: PropTypes.Validator<NonNullable<PropTypes.ReactComponentLike>>;
|
|
15
|
-
}
|
|
1
|
+
import { Checkbox, Switch } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface BooleanInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
formProps?: any;
|
|
7
|
+
Input: typeof Switch | typeof Checkbox;
|
|
16
8
|
}
|
|
9
|
+
declare const BooleanInput: ({ name, label, formProps, Input }: BooleanInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BooleanInput;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { FormControlLabel } from "@mui/material";
|
|
6
5
|
import { useController } from "react-hook-form";
|
|
@@ -38,12 +37,6 @@ const BooleanInput = ({ name, label, formProps, Input }) => {
|
|
|
38
37
|
}
|
|
39
38
|
return CustomInput;
|
|
40
39
|
};
|
|
41
|
-
BooleanInput.propTypes = {
|
|
42
|
-
name: PropTypes.string.isRequired,
|
|
43
|
-
label: PropTypes.string,
|
|
44
|
-
formProps: PropTypes.object,
|
|
45
|
-
Input: PropTypes.elementType.isRequired
|
|
46
|
-
};
|
|
47
40
|
export {
|
|
48
41
|
BooleanInput as default
|
|
49
42
|
};
|