@gridsuite/commons-ui 0.57.0 → 0.59.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/_mocks_/svg.d.ts +4 -0
- package/dist/_mocks_/svg.js +8 -0
- package/dist/chunks/{criteria-based-filter-edition-dialog.BEXoNmzz.js → criteria-based-filter-edition-dialog.p2pUWzxc.js} +142 -158
- package/dist/chunks/{filter-properties.GRon8-ML.js → filter-properties.B7-q_yPf.js} +4 -4
- 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/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +14 -26
- package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +18 -15
- package/dist/components/ElementSearchDialog/element-search-dialog.js +28 -65
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
- package/dist/components/ElementSearchDialog/equipment-item.js +9 -8
- 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 +39 -26
- 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/TreeViewFinder/TreeViewFinder.js +1 -1
- package/dist/components/TreeViewFinder/index.d.ts +7 -0
- package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -1
- package/dist/components/dialogs/custom-mui-dialog.js +6 -4
- package/dist/components/dialogs/description-modification-dialog.js +2 -2
- package/dist/components/dialogs/modify-element-selection.d.ts +14 -0
- package/dist/components/dialogs/modify-element-selection.js +99 -0
- package/dist/components/dialogs/popup-confirmation-dialog.js +1 -1
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +2 -3
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +4 -4
- package/dist/components/filter/criteria-based/criteria-based-filter-form.js +5 -3
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.d.ts +12 -6
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +44 -4
- package/dist/components/filter/criteria-based/criteria-based-form.d.ts +2 -0
- package/dist/components/filter/criteria-based/criteria-based-form.js +6 -6
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-free-properties.js +5 -5
- package/dist/components/filter/criteria-based/filter-properties.js +3 -3
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-property.js +3 -3
- package/dist/components/filter/{constants → expert}/expert-filter-constants.d.ts +22 -1
- package/dist/components/filter/{constants → expert}/expert-filter-constants.js +46 -16
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +1 -7
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +5 -7
- package/dist/components/filter/expert/expert-filter-form.js +5 -5
- package/dist/components/filter/expert/expert-filter-utils.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.d.ts +0 -2
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +4 -4
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +10 -2
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +12 -8
- package/dist/components/filter/filter-creation-dialog.d.ts +4 -8
- package/dist/components/filter/filter-creation-dialog.js +3 -4
- package/dist/components/filter/filter-form.d.ts +4 -0
- package/dist/components/filter/filter-form.js +6 -5
- package/dist/components/filter/utils/filter-api.d.ts +5 -0
- package/dist/components/filter/utils/{filters-utils.js → filter-api.js} +16 -10
- package/dist/components/filter/utils/filter-form-utils.d.ts +17 -0
- package/dist/components/filter/utils/{criteria-based-utils.js → filter-form-utils.js} +16 -63
- package/dist/components/{react-hook-form/ag-grid-table-rhf → 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 +61 -0
- package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/custom-ag-grid-table.js +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form/autocomplete-inputs}/autocomplete-input.d.ts +3 -3
- package/dist/components/{react-hook-form → inputs/react-hook-form/autocomplete-inputs}/autocomplete-input.js +4 -4
- package/dist/components/{react-hook-form → inputs/react-hook-form}/autocomplete-inputs/multiple-autocomplete-input.js +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +10 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/boolean-input.js +0 -7
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +9 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/checkbox-input.js +0 -6
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +9 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/booleans/switch-input.js +0 -6
- package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.d.ts +0 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/directory-items-input.js +11 -15
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +6 -0
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +4 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/integer-input.js +1 -4
- package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/custom-form-provider.js +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/range-input.d.ts +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/range-input.js +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/countries-input.d.ts +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/countries-input.js +14 -4
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/input-with-popup-confirmation.js +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.d.ts +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/select-input.js +4 -1
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +8 -0
- package/dist/components/{react-hook-form → inputs/react-hook-form}/slider-input.js +4 -12
- package/dist/components/{react-hook-form → inputs/react-hook-form}/text-input.d.ts +1 -1
- package/dist/components/{react-hook-form → inputs/react-hook-form}/unique-name-input.d.ts +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/unique-name-input.js +2 -2
- package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/text-field-with-adornment.d.ts +1 -1
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/combinator-selector.js +1 -1
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/country-value-editor.js +1 -1
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/custom-react-query-builder.js +3 -3
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/element-value-editor.js +21 -28
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/property-value-editor.js +3 -3
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/remove-button.js +2 -2
- package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-convert-value.js +1 -1
- package/dist/components/inputs/react-query-builder/value-editor.js +18 -0
- package/dist/components/inputs/select-clearable.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/hooks/useDebounce.d.ts +1 -1
- package/dist/hooks/useSnackMessage.d.ts +4 -7
- package/dist/hooks/useSnackMessage.js +36 -43
- package/dist/index.d.ts +76 -218
- package/dist/index.js +156 -122
- package/dist/redux/actions.d.ts +54 -0
- package/dist/redux/commonStore.d.ts +15 -0
- package/dist/redux/commonStore.js +11 -0
- 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 +6 -0
- package/dist/services/explore.js +62 -0
- package/dist/services/index.d.ts +16 -0
- package/dist/services/index.js +20 -0
- package/dist/services/study.d.ts +3 -0
- package/dist/services/study.js +16 -0
- package/dist/services/utils.d.ts +9 -0
- package/dist/services/utils.js +62 -0
- package/dist/utils/AuthService.d.ts +20 -9
- package/dist/utils/AuthService.js +30 -14
- package/dist/utils/ElementIcon.d.ts +4 -1
- 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 +9 -7
- package/dist/components/filter/filter-context.d.ts +0 -12
- package/dist/components/filter/filter-context.js +0 -10
- package/dist/components/filter/utils/criteria-based-utils.d.ts +0 -28
- package/dist/components/filter/utils/filters-utils.d.ts +0 -5
- package/dist/components/react-hook-form/ag-grid-table-rhf/csv-uploader/csv-uploader.js +0 -69
- package/dist/components/react-hook-form/booleans/boolean-input.d.ts +0 -16
- package/dist/components/react-hook-form/booleans/checkbox-input.d.ts +0 -14
- package/dist/components/react-hook-form/booleans/switch-input.d.ts +0 -14
- package/dist/components/react-hook-form/error-management/mid-form-error.d.ts +0 -4
- package/dist/components/react-hook-form/numbers/integer-input.d.ts +0 -21
- package/dist/components/react-hook-form/slider-input.d.ts +0 -21
- package/dist/components/react-query-builder-inputs/value-editor.js +0 -18
- package/dist/utils/actions.d.ts +0 -50
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/ExpandingTextField.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/ExpandingTextField.js +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/bottom-right-buttons.d.ts +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/cell-editors/numericEditor.d.ts +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/cell-editors/numericEditor.js +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/csv-uploader/csv-uploader.d.ts +0 -0
- /package/dist/components/{react-hook-form/ag-grid-table-rhf → inputs/react-hook-form/ag-grid-table}/custom-ag-grid-table.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/autocomplete-inputs/multiple-autocomplete-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/error-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/error-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/field-error-alert.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/field-error-alert.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/error-management/mid-form-error.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/float-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/float-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/utils.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/numbers/utils.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/custom-form-provider.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/use-custom-form-context.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/provider/use-custom-form-context.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/radio-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/radio-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/raw-read-only-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/raw-read-only-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/input-with-popup-confirmation.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/mui-select-input.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/select-inputs/mui-select-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/text-input.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/cancel-button.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/cancel-button.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/field-label.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/field-label.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/functions.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/functions.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/submit-button.d.ts +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/submit-button.js +0 -0
- /package/dist/components/{react-hook-form → inputs/react-hook-form}/utils/text-field-with-adornment.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/add-button.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/combinator-selector.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/country-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/custom-react-query-builder.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/element-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/property-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/remove-button.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/text-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/text-value-editor.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/translated-value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/translated-value-editor.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-convert-value.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/use-valid.js +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-editor.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-selector.d.ts +0 -0
- /package/dist/components/{react-query-builder-inputs → inputs/react-query-builder}/value-selector.js +0 -0
- /package/dist/{utils → redux}/actions.js +0 -0
- /package/dist/{components/filter/constants → utils}/equipment-types.d.ts +0 -0
- /package/dist/{components/filter/constants → utils}/equipment-types.js +0 -0
- /package/dist/{components/filter/constants → utils}/field-constants.d.ts +0 -0
- /package/dist/{components/filter/constants → utils}/field-constants.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OperatorType, CombinatorType, FieldType, DataType } from "
|
|
1
|
+
import { OperatorType, CombinatorType, FieldType, DataType } from "./expert-filter.type.js";
|
|
2
2
|
var RULES = /* @__PURE__ */ ((RULES2) => {
|
|
3
3
|
RULES2["EMPTY_RULE"] = "emptyRule";
|
|
4
4
|
RULES2["EMPTY_GROUP"] = "emptyGroup";
|
|
@@ -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,25 +576,27 @@ 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,
|
|
562
585
|
FIELDS_OPTIONS.NAME,
|
|
586
|
+
FIELDS_OPTIONS.COUNTRY,
|
|
587
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_ID_1,
|
|
588
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_ID_2,
|
|
563
589
|
FIELDS_OPTIONS.NOMINAL_VOLTAGE_1,
|
|
564
590
|
FIELDS_OPTIONS.NOMINAL_VOLTAGE_2,
|
|
565
591
|
FIELDS_OPTIONS.RATED_VOLTAGE_1,
|
|
566
592
|
FIELDS_OPTIONS.RATED_VOLTAGE_2,
|
|
593
|
+
FIELDS_OPTIONS.CONNECTED_1,
|
|
594
|
+
FIELDS_OPTIONS.CONNECTED_2,
|
|
567
595
|
FIELDS_OPTIONS.RATED_S,
|
|
568
596
|
FIELDS_OPTIONS.SERIE_RESISTANCE,
|
|
569
597
|
FIELDS_OPTIONS.SERIE_REACTANCE,
|
|
570
598
|
FIELDS_OPTIONS.MAGNETIZING_CONDUCTANCE,
|
|
571
599
|
FIELDS_OPTIONS.MAGNETIZING_SUSCEPTANCE,
|
|
572
|
-
FIELDS_OPTIONS.CONNECTED_1,
|
|
573
|
-
FIELDS_OPTIONS.CONNECTED_2,
|
|
574
|
-
FIELDS_OPTIONS.VOLTAGE_LEVEL_ID_1,
|
|
575
|
-
FIELDS_OPTIONS.VOLTAGE_LEVEL_ID_2,
|
|
576
|
-
FIELDS_OPTIONS.COUNTRY,
|
|
577
600
|
FIELDS_OPTIONS.HAS_RATIO_TAP_CHANGER,
|
|
578
601
|
FIELDS_OPTIONS.LOAD_TAP_CHANGING_CAPABILITIES,
|
|
579
602
|
FIELDS_OPTIONS.RATIO_REGULATION_MODE,
|
|
@@ -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,11 +632,13 @@ 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,
|
|
614
640
|
FIELDS_OPTIONS.NAME,
|
|
641
|
+
FIELDS_OPTIONS.LOAD_TYPE,
|
|
615
642
|
FIELDS_OPTIONS.COUNTRY,
|
|
616
643
|
FIELDS_OPTIONS.VOLTAGE_LEVEL_ID,
|
|
617
644
|
FIELDS_OPTIONS.NOMINAL_VOLTAGE,
|
|
@@ -619,7 +646,8 @@ const fields = {
|
|
|
619
646
|
FIELDS_OPTIONS.P0,
|
|
620
647
|
FIELDS_OPTIONS.Q0,
|
|
621
648
|
FIELDS_OPTIONS.PROPERTY,
|
|
622
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY
|
|
649
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
650
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
623
651
|
],
|
|
624
652
|
BATTERY: [
|
|
625
653
|
FIELDS_OPTIONS.ID,
|
|
@@ -633,7 +661,8 @@ const fields = {
|
|
|
633
661
|
FIELDS_OPTIONS.TARGET_P,
|
|
634
662
|
FIELDS_OPTIONS.TARGET_Q,
|
|
635
663
|
FIELDS_OPTIONS.PROPERTY,
|
|
636
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY
|
|
664
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
665
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
637
666
|
],
|
|
638
667
|
SHUNT_COMPENSATOR: [
|
|
639
668
|
FIELDS_OPTIONS.ID,
|
|
@@ -650,7 +679,8 @@ const fields = {
|
|
|
650
679
|
FIELDS_OPTIONS.MAX_SUSCEPTANCE,
|
|
651
680
|
FIELDS_OPTIONS.SWITCHED_ON_SUSCEPTANCE,
|
|
652
681
|
FIELDS_OPTIONS.PROPERTY,
|
|
653
|
-
FIELDS_OPTIONS.SUBSTATION_PROPERTY
|
|
682
|
+
FIELDS_OPTIONS.SUBSTATION_PROPERTY,
|
|
683
|
+
FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
|
|
654
684
|
]
|
|
655
685
|
};
|
|
656
686
|
export {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ElementAttributes } from '../../../utils/types.ts';
|
|
2
1
|
import { elementExistsType } from '../criteria-based/criteria-based-filter-edition-dialog';
|
|
3
2
|
import { UUID } from 'crypto';
|
|
4
3
|
import { FunctionComponent } from 'react';
|
|
@@ -15,14 +14,9 @@ export interface ExpertFilterEditionDialogProps {
|
|
|
15
14
|
[prop: string]: any;
|
|
16
15
|
}>;
|
|
17
16
|
setSelectionForCopy: (selection: any) => void;
|
|
18
|
-
createFilter: (filter: any, name: string, description: string, activeDirectory: any) => Promise<void>;
|
|
19
|
-
saveFilter: (filter: any, name: string) => Promise<void>;
|
|
20
17
|
activeDirectory?: UUID;
|
|
21
18
|
elementExists?: elementExistsType;
|
|
22
19
|
language?: string;
|
|
23
|
-
fetchDirectoryContent: (directoryUuid: UUID, elementTypes: string[]) => Promise<ElementAttributes[]>;
|
|
24
|
-
fetchRootFolders: (types: string[]) => Promise<ElementAttributes[]>;
|
|
25
|
-
fetchElementsInfos: (ids: UUID[], elementTypes?: string[], equipmentTypes?: string[]) => Promise<ElementAttributes[]>;
|
|
26
20
|
}
|
|
27
|
-
|
|
21
|
+
declare const ExpertFilterEditionDialog: FunctionComponent<ExpertFilterEditionDialogProps>;
|
|
28
22
|
export default ExpertFilterEditionDialog;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "../../../utils/field-constants.js";
|
|
4
|
+
import "../../../utils/equipment-types.js";
|
|
5
5
|
import "react-hook-form";
|
|
6
6
|
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
|
|
11
|
-
import "../utils/
|
|
10
|
+
import { E } from "../../../chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
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";
|
|
17
16
|
export {
|
|
18
|
-
E as
|
|
19
|
-
E2 as default
|
|
17
|
+
E as default
|
|
20
18
|
};
|
|
@@ -2,17 +2,17 @@ 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.p2pUWzxc.js";
|
|
6
6
|
import "react-hook-form";
|
|
7
7
|
import "./expert-filter-utils.js";
|
|
8
|
-
import "
|
|
8
|
+
import "./expert-filter-constants.js";
|
|
9
9
|
import "yup";
|
|
10
10
|
import "./expert-filter.type.js";
|
|
11
11
|
import "uuid";
|
|
12
12
|
import "react-intl";
|
|
13
|
-
import "
|
|
14
|
-
import "../../react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
15
|
-
import "../../react-hook-form/select-inputs/select-input.js";
|
|
13
|
+
import "../../../utils/field-constants.js";
|
|
14
|
+
import "../../inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
15
|
+
import "../../inputs/react-hook-form/select-inputs/select-input.js";
|
|
16
16
|
import "../constants/filter-constants.js";
|
|
17
17
|
export {
|
|
18
18
|
k as EXPERT_FILTER_QUERY,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultOperators, getParentPath, remove, findPath } from "react-querybuilder";
|
|
2
2
|
import { FieldType, DataType, OperatorType } from "./expert-filter.type.js";
|
|
3
3
|
import { validate } from "uuid";
|
|
4
|
-
import { FIELDS_OPTIONS, OPERATOR_OPTIONS, RULES } from "
|
|
4
|
+
import { FIELDS_OPTIONS, OPERATOR_OPTIONS, RULES } from "./expert-filter-constants.js";
|
|
5
5
|
import { isBlankOrEmpty, microUnitToUnit, unitToMicroUnit } from "../../../utils/conversion-utils.js";
|
|
6
6
|
const microUnits = [
|
|
7
7
|
FieldType.SHUNT_CONDUCTANCE_1,
|
|
@@ -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) => {
|
|
@@ -12,8 +12,6 @@ interface ExplicitNamingFilterEditionDialogProps {
|
|
|
12
12
|
selectionForCopy: any;
|
|
13
13
|
setSelectionForCopy: (selection: any) => void;
|
|
14
14
|
getFilterById: (id: string) => Promise<any>;
|
|
15
|
-
createFilter: (filter: any, name: string, description: string, activeDirectory: any) => Promise<void>;
|
|
16
|
-
saveFilter: (filter: any, name: string) => Promise<void>;
|
|
17
15
|
activeDirectory?: UUID;
|
|
18
16
|
elementExists?: elementExistsType;
|
|
19
17
|
language?: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "prop-types";
|
|
4
|
-
import "../utils/
|
|
4
|
+
import "../utils/filter-api.js";
|
|
5
5
|
import "react-hook-form";
|
|
6
6
|
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.
|
|
11
|
-
import "
|
|
10
|
+
import { a } from "../../../chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
11
|
+
import "../../../utils/field-constants.js";
|
|
12
12
|
import "uuid";
|
|
13
|
-
import "
|
|
13
|
+
import "../../../utils/equipment-types.js";
|
|
14
14
|
import "../constants/filter-constants.js";
|
|
15
15
|
import "../../../utils/FetchStatus.js";
|
|
16
16
|
import "yup";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { UUID } from 'crypto';
|
|
1
2
|
import { DISTRIBUTION_KEY } from '../constants/filter-constants';
|
|
2
3
|
import { default as yup } from '../../../utils/yup-config';
|
|
3
|
-
import { FieldConstants } from '
|
|
4
|
+
import { FieldConstants } from '../../../utils/field-constants';
|
|
4
5
|
import { FunctionComponent } from 'react';
|
|
5
6
|
|
|
6
7
|
export declare const FILTER_EQUIPMENTS_ATTRIBUTES = "filterEquipmentsAttributes";
|
|
@@ -18,5 +19,12 @@ interface FilterTableRow {
|
|
|
18
19
|
export declare function getExplicitNamingFilterEmptyFormData(): {
|
|
19
20
|
filterEquipmentsAttributes: FilterTableRow[];
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
export interface FilterForExplicitConversionProps {
|
|
23
|
+
id: UUID;
|
|
24
|
+
equipmentType: String;
|
|
25
|
+
}
|
|
26
|
+
interface ExplicitNamingFilterFormProps {
|
|
27
|
+
sourceFilterForExplicitNamingConversion?: FilterForExplicitConversionProps;
|
|
28
|
+
}
|
|
29
|
+
declare const ExplicitNamingFilterForm: FunctionComponent<ExplicitNamingFilterFormProps>;
|
|
22
30
|
export default ExplicitNamingFilterForm;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "
|
|
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.p2pUWzxc.js";
|
|
6
6
|
import "react-intl";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import "@mui/material/Grid";
|
|
9
|
-
import "../../react-hook-form/select-inputs/select-input.js";
|
|
10
|
-
import "
|
|
11
|
-
import "../../react-hook-form/ag-grid-table
|
|
12
|
-
import "../../react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
9
|
+
import "../../inputs/react-hook-form/select-inputs/select-input.js";
|
|
10
|
+
import "../../../utils/equipment-types.js";
|
|
11
|
+
import "../../inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.js";
|
|
12
|
+
import "../../inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
13
13
|
import "uuid";
|
|
14
|
-
import "../../react-hook-form/utils/functions.js";
|
|
14
|
+
import "../../inputs/react-hook-form/utils/functions.js";
|
|
15
15
|
import "../constants/filter-constants.js";
|
|
16
|
-
import "../utils/
|
|
16
|
+
import "../utils/filter-form-utils.js";
|
|
17
|
+
import "../../../hooks/useSnackMessage.js";
|
|
18
|
+
import "../../../utils/ElementType.js";
|
|
19
|
+
import "../../dialogs/modify-element-selection.js";
|
|
20
|
+
import "../../../services/study.js";
|
|
17
21
|
import "yup";
|
|
18
22
|
export {
|
|
19
23
|
d as FILTER_EQUIPMENTS_ATTRIBUTES,
|
|
@@ -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,14 +6,12 @@ export interface FilterCreationDialogProps {
|
|
|
8
6
|
open: boolean;
|
|
9
7
|
onClose: () => void;
|
|
10
8
|
activeDirectory?: UUID;
|
|
11
|
-
createFilter: (filter: any, name: string, description: string, activeDirectory: any) => Promise<void>;
|
|
12
|
-
saveFilter: (filter: any, name: string) => Promise<void>;
|
|
13
|
-
fetchAppsAndUrls: () => Promise<StudyMetadata[]>;
|
|
14
9
|
elementExists?: elementExistsType;
|
|
15
10
|
language?: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
sourceFilterForExplicitNamingConversion?: {
|
|
12
|
+
id: UUID;
|
|
13
|
+
equipmentType: string;
|
|
14
|
+
};
|
|
19
15
|
}
|
|
20
16
|
declare const FilterCreationDialog: FunctionComponent<FilterCreationDialogProps>;
|
|
21
17
|
export default FilterCreationDialog;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "./utils/
|
|
3
|
+
import "./utils/filter-api.js";
|
|
4
4
|
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.
|
|
9
|
-
import "
|
|
8
|
+
import { F } from "../../chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
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 {
|
|
@@ -6,6 +6,10 @@ interface FilterFormProps {
|
|
|
6
6
|
creation?: boolean;
|
|
7
7
|
activeDirectory?: UUID;
|
|
8
8
|
elementExists?: elementExistsType;
|
|
9
|
+
sourceFilterForExplicitNamingConversion?: {
|
|
10
|
+
id: UUID;
|
|
11
|
+
equipmentType: string;
|
|
12
|
+
};
|
|
9
13
|
}
|
|
10
14
|
export declare const FilterForm: FunctionComponent<FilterFormProps>;
|
|
11
15
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../react-hook-form/unique-name-input.js";
|
|
3
|
-
import "
|
|
2
|
+
import "../inputs/react-hook-form/unique-name-input.js";
|
|
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.p2pUWzxc.js";
|
|
6
|
+
import "react";
|
|
6
7
|
import "react-hook-form";
|
|
7
8
|
import "@mui/material";
|
|
8
|
-
import "../react-hook-form/radio-input.js";
|
|
9
|
+
import "../inputs/react-hook-form/radio-input.js";
|
|
9
10
|
import "../../utils/ElementType.js";
|
|
10
|
-
import "../react-hook-form/ExpandingTextField.js";
|
|
11
|
+
import "../inputs/react-hook-form/ExpandingTextField.js";
|
|
11
12
|
import "./constants/filter-constants.js";
|
|
12
13
|
export {
|
|
13
14
|
o as FilterForm
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UUID } from 'crypto';
|
|
2
|
+
|
|
3
|
+
export declare const saveExplicitNamingFilter: (tableValues: any[], isFilterCreation: boolean, equipmentType: string, name: string, description: string, id: string | null, setCreateFilterErr: (value: any) => void, handleClose: () => void, activeDirectory?: UUID, token?: string) => void;
|
|
4
|
+
export declare const saveCriteriaBasedFilter: (filter: any, activeDirectory: any, onClose: () => void, onError: (message: string) => void, token?: string) => void;
|
|
5
|
+
export declare const saveExpertFilter: (id: string | null, query: any, equipmentType: string, name: string, description: string, isFilterCreation: boolean, activeDirectory: any, onClose: () => void, onError: (message: string) => void, token?: string) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FieldConstants } from "
|
|
1
|
+
import { FieldConstants } from "../../../utils/field-constants.js";
|
|
2
2
|
import { frontToBackTweak } from "../criteria-based/criteria-based-filter-utils.js";
|
|
3
|
-
import { Generator, Load } from "
|
|
3
|
+
import { Generator, Load } from "../../../utils/equipment-types.js";
|
|
4
4
|
import { exportExpertRules } from "../expert/expert-filter-utils.js";
|
|
5
5
|
import { DISTRIBUTION_KEY, FilterType } from "../constants/filter-constants.js";
|
|
6
|
-
|
|
6
|
+
import { createFilter, saveFilter } from "../../../services/explore.js";
|
|
7
|
+
const saveExplicitNamingFilter = (tableValues, isFilterCreation, equipmentType, name, description, id, setCreateFilterErr, handleClose, activeDirectory, token) => {
|
|
7
8
|
let cleanedTableValues;
|
|
8
9
|
const isGeneratorOrLoad = equipmentType === Generator.type || equipmentType === Load.type;
|
|
9
10
|
if (isGeneratorOrLoad) {
|
|
@@ -25,7 +26,8 @@ const saveExplicitNamingFilter = (tableValues, isFilterCreation, equipmentType,
|
|
|
25
26
|
},
|
|
26
27
|
name,
|
|
27
28
|
description,
|
|
28
|
-
activeDirectory
|
|
29
|
+
activeDirectory,
|
|
30
|
+
token
|
|
29
31
|
).then(() => {
|
|
30
32
|
handleClose();
|
|
31
33
|
}).catch((error) => {
|
|
@@ -39,7 +41,8 @@ const saveExplicitNamingFilter = (tableValues, isFilterCreation, equipmentType,
|
|
|
39
41
|
equipmentType,
|
|
40
42
|
filterEquipmentsAttributes: cleanedTableValues
|
|
41
43
|
},
|
|
42
|
-
name
|
|
44
|
+
name,
|
|
45
|
+
token
|
|
43
46
|
).then(() => {
|
|
44
47
|
handleClose();
|
|
45
48
|
}).catch((error) => {
|
|
@@ -47,20 +50,21 @@ const saveExplicitNamingFilter = (tableValues, isFilterCreation, equipmentType,
|
|
|
47
50
|
});
|
|
48
51
|
}
|
|
49
52
|
};
|
|
50
|
-
const saveCriteriaBasedFilter = (filter, activeDirectory, onClose, onError,
|
|
53
|
+
const saveCriteriaBasedFilter = (filter, activeDirectory, onClose, onError, token) => {
|
|
51
54
|
const filterForBack = frontToBackTweak(void 0, filter);
|
|
52
55
|
createFilter(
|
|
53
56
|
filterForBack,
|
|
54
57
|
filter[FieldConstants.NAME],
|
|
55
58
|
filter[FieldConstants.DESCRIPTION],
|
|
56
|
-
activeDirectory
|
|
59
|
+
activeDirectory,
|
|
60
|
+
token
|
|
57
61
|
).then(() => {
|
|
58
62
|
onClose();
|
|
59
63
|
}).catch((error) => {
|
|
60
64
|
onError(error.message);
|
|
61
65
|
});
|
|
62
66
|
};
|
|
63
|
-
const saveExpertFilter = (id, query, equipmentType, name, description, isFilterCreation, activeDirectory, onClose, onError,
|
|
67
|
+
const saveExpertFilter = (id, query, equipmentType, name, description, isFilterCreation, activeDirectory, onClose, onError, token) => {
|
|
64
68
|
if (isFilterCreation) {
|
|
65
69
|
createFilter(
|
|
66
70
|
{
|
|
@@ -70,7 +74,8 @@ const saveExpertFilter = (id, query, equipmentType, name, description, isFilterC
|
|
|
70
74
|
},
|
|
71
75
|
name,
|
|
72
76
|
description,
|
|
73
|
-
activeDirectory
|
|
77
|
+
activeDirectory,
|
|
78
|
+
token
|
|
74
79
|
).then(() => {
|
|
75
80
|
onClose();
|
|
76
81
|
}).catch((error) => {
|
|
@@ -84,7 +89,8 @@ const saveExpertFilter = (id, query, equipmentType, name, description, isFilterC
|
|
|
84
89
|
equipmentType,
|
|
85
90
|
rules: exportExpertRules(query)
|
|
86
91
|
},
|
|
87
|
-
name
|
|
92
|
+
name,
|
|
93
|
+
token
|
|
88
94
|
).then(() => {
|
|
89
95
|
onClose();
|
|
90
96
|
}).catch((error) => {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
|
|
3
|
+
type FormField = {
|
|
4
|
+
renderer: FunctionComponent<any>;
|
|
5
|
+
props: {
|
|
6
|
+
label: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type FormEquipment = {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
fields: FormField[];
|
|
14
|
+
};
|
|
15
|
+
export declare const CONTINGENCY_LIST_EQUIPMENTS: Record<string, FormEquipment>;
|
|
16
|
+
export declare const FILTER_EQUIPMENTS: Record<string, FormEquipment>;
|
|
17
|
+
export {};
|
|
@@ -1,45 +1,7 @@
|
|
|
1
|
-
import { FieldConstants } from "
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import SelectInput from "../../react-hook-form/select-inputs/select-input.js";
|
|
6
|
-
import * as yup from "yup";
|
|
7
|
-
const getCriteriaBasedSchema = (extraFields) => ({
|
|
8
|
-
[FieldConstants.CRITERIA_BASED]: yup.object().shape({
|
|
9
|
-
[FieldConstants.COUNTRIES]: yup.array().of(yup.string()),
|
|
10
|
-
[FieldConstants.COUNTRIES_1]: yup.array().of(yup.string()),
|
|
11
|
-
[FieldConstants.COUNTRIES_2]: yup.array().of(yup.string()),
|
|
12
|
-
...getRangeInputSchema(FieldConstants.NOMINAL_VOLTAGE),
|
|
13
|
-
...getRangeInputSchema(FieldConstants.NOMINAL_VOLTAGE_1),
|
|
14
|
-
...getRangeInputSchema(FieldConstants.NOMINAL_VOLTAGE_2),
|
|
15
|
-
...getRangeInputSchema(FieldConstants.NOMINAL_VOLTAGE_3),
|
|
16
|
-
...extraFields
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
const getCriteriaBasedFormData = (criteriaValues, extraFields) => ({
|
|
20
|
-
[FieldConstants.CRITERIA_BASED]: {
|
|
21
|
-
[FieldConstants.COUNTRIES]: (criteriaValues == null ? void 0 : criteriaValues[FieldConstants.COUNTRIES]) ?? [],
|
|
22
|
-
[FieldConstants.COUNTRIES_1]: (criteriaValues == null ? void 0 : criteriaValues[FieldConstants.COUNTRIES_1]) ?? [],
|
|
23
|
-
[FieldConstants.COUNTRIES_2]: (criteriaValues == null ? void 0 : criteriaValues[FieldConstants.COUNTRIES_2]) ?? [],
|
|
24
|
-
...getRangeInputDataForm(
|
|
25
|
-
FieldConstants.NOMINAL_VOLTAGE,
|
|
26
|
-
(criteriaValues == null ? void 0 : criteriaValues[FieldConstants.NOMINAL_VOLTAGE]) ?? DEFAULT_RANGE_VALUE
|
|
27
|
-
),
|
|
28
|
-
...getRangeInputDataForm(
|
|
29
|
-
FieldConstants.NOMINAL_VOLTAGE_1,
|
|
30
|
-
(criteriaValues == null ? void 0 : criteriaValues[FieldConstants.NOMINAL_VOLTAGE_1]) ?? DEFAULT_RANGE_VALUE
|
|
31
|
-
),
|
|
32
|
-
...getRangeInputDataForm(
|
|
33
|
-
FieldConstants.NOMINAL_VOLTAGE_2,
|
|
34
|
-
(criteriaValues == null ? void 0 : criteriaValues[FieldConstants.NOMINAL_VOLTAGE_2]) ?? DEFAULT_RANGE_VALUE
|
|
35
|
-
),
|
|
36
|
-
...getRangeInputDataForm(
|
|
37
|
-
FieldConstants.NOMINAL_VOLTAGE_3,
|
|
38
|
-
(criteriaValues == null ? void 0 : criteriaValues[FieldConstants.NOMINAL_VOLTAGE_3]) ?? DEFAULT_RANGE_VALUE
|
|
39
|
-
),
|
|
40
|
-
...extraFields
|
|
41
|
-
}
|
|
42
|
-
});
|
|
1
|
+
import { FieldConstants } from "../../../utils/field-constants.js";
|
|
2
|
+
import RangeInput from "../../inputs/react-hook-form/range-input.js";
|
|
3
|
+
import CountriesInput from "../../inputs/react-hook-form/select-inputs/countries-input.js";
|
|
4
|
+
import SelectInput from "../../inputs/react-hook-form/select-inputs/select-input.js";
|
|
43
5
|
const countries = {
|
|
44
6
|
renderer: CountriesInput,
|
|
45
7
|
props: {
|
|
@@ -104,7 +66,7 @@ const energySource = {
|
|
|
104
66
|
]
|
|
105
67
|
}
|
|
106
68
|
};
|
|
107
|
-
const
|
|
69
|
+
const COMMON_EQUIPMENTS = {
|
|
108
70
|
LINE: {
|
|
109
71
|
id: "LINE",
|
|
110
72
|
label: "Lines",
|
|
@@ -127,22 +89,25 @@ const CONTINGENCY_LIST_EQUIPMENTS = {
|
|
|
127
89
|
},
|
|
128
90
|
HVDC_LINE: {
|
|
129
91
|
id: "HVDC_LINE",
|
|
130
|
-
label: "
|
|
92
|
+
label: "Hvdc",
|
|
131
93
|
fields: [countries1, countries2, nominalVoltage]
|
|
132
94
|
},
|
|
133
|
-
BUSBAR_SECTION: {
|
|
134
|
-
id: "BUSBAR_SECTION",
|
|
135
|
-
label: "BusBarSections",
|
|
136
|
-
fields: [countries, nominalVoltage]
|
|
137
|
-
},
|
|
138
95
|
DANGLING_LINE: {
|
|
139
96
|
id: "DANGLING_LINE",
|
|
140
97
|
label: "DanglingLines",
|
|
141
98
|
fields: [countries, nominalVoltage]
|
|
142
99
|
}
|
|
143
100
|
};
|
|
101
|
+
const CONTINGENCY_LIST_EQUIPMENTS = {
|
|
102
|
+
...COMMON_EQUIPMENTS,
|
|
103
|
+
BUSBAR_SECTION: {
|
|
104
|
+
id: "BUSBAR_SECTION",
|
|
105
|
+
label: "BusBarSections",
|
|
106
|
+
fields: [countries, nominalVoltage]
|
|
107
|
+
}
|
|
108
|
+
};
|
|
144
109
|
const FILTER_EQUIPMENTS = {
|
|
145
|
-
...
|
|
110
|
+
...COMMON_EQUIPMENTS,
|
|
146
111
|
THREE_WINDINGS_TRANSFORMER: {
|
|
147
112
|
id: "THREE_WINDINGS_TRANSFORMER",
|
|
148
113
|
label: "ThreeWindingsTransformers",
|
|
@@ -163,16 +128,6 @@ const FILTER_EQUIPMENTS = {
|
|
|
163
128
|
label: "Batteries",
|
|
164
129
|
fields: [countries, nominalVoltage]
|
|
165
130
|
},
|
|
166
|
-
LCC_CONVERTER_STATION: {
|
|
167
|
-
id: "LCC_CONVERTER_STATION",
|
|
168
|
-
label: "LccConverterStations",
|
|
169
|
-
fields: [countries, nominalVoltage]
|
|
170
|
-
},
|
|
171
|
-
VSC_CONVERTER_STATION: {
|
|
172
|
-
id: "VSC_CONVERTER_STATION",
|
|
173
|
-
label: "VscConverterStations",
|
|
174
|
-
fields: [countries, nominalVoltage]
|
|
175
|
-
},
|
|
176
131
|
VOLTAGE_LEVEL: {
|
|
177
132
|
id: "VOLTAGE_LEVEL",
|
|
178
133
|
label: "VoltageLevels",
|
|
@@ -191,7 +146,5 @@ const FILTER_EQUIPMENTS = {
|
|
|
191
146
|
};
|
|
192
147
|
export {
|
|
193
148
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
194
|
-
FILTER_EQUIPMENTS
|
|
195
|
-
getCriteriaBasedFormData,
|
|
196
|
-
getCriteriaBasedSchema
|
|
149
|
+
FILTER_EQUIPMENTS
|
|
197
150
|
};
|
|
@@ -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 "
|
|
7
|
+
import { B } from "../../../../chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "react-intl";
|
|
10
10
|
import "@mui/material/styles";
|