@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 +1,7 @@
|
|
|
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 './Login';
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { BoxProps, Theme } from '@mui/material';
|
|
2
|
+
import { FilterAltOutlined as FilterAltOutlinedIcon } from '@mui/icons-material';
|
|
3
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
interface SortButtonProps {
|
|
6
|
+
signedRank?: number;
|
|
7
|
+
headerHovered: boolean;
|
|
8
|
+
hovered?: boolean;
|
|
9
|
+
onClick: BoxProps['onClick'];
|
|
10
|
+
}
|
|
11
|
+
interface FilterButtonProps {
|
|
12
|
+
filterLevel: number;
|
|
13
|
+
headerHovered: boolean;
|
|
14
|
+
onClick: ComponentProps<typeof FilterAltOutlinedIcon>['onClick'];
|
|
15
|
+
}
|
|
16
|
+
export interface ColumnHeaderProps extends BoxProps {
|
|
17
|
+
label: ReactNode;
|
|
18
|
+
numeric: boolean;
|
|
19
|
+
sortSignedRank: SortButtonProps['signedRank'];
|
|
20
|
+
filterLevel: FilterButtonProps['filterLevel'];
|
|
21
|
+
onSortClick: SortButtonProps['onClick'];
|
|
22
|
+
onFilterClick: FilterButtonProps['onClick'];
|
|
23
|
+
}
|
|
24
|
+
export declare const ColumnHeader: import('react').ForwardRefExoticComponent<Omit<ColumnHeaderProps, "ref"> & import("react").RefAttributes<import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", Theme>>>>;
|
|
25
|
+
declare const _default: import('@emotion/styled').StyledComponent<Omit<ColumnHeaderProps, "ref"> & import("react").RefAttributes<import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", Theme>>> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
3
26
|
export default _default;
|
|
@@ -41,11 +41,11 @@ const styles = {
|
|
|
41
41
|
opacity: 0.5
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
const SortButton = (props) => {
|
|
45
|
-
const sortRank = Math.abs(
|
|
46
|
-
const visibilityStyle = (!
|
|
44
|
+
const SortButton = ({ signedRank = 0, ...props }) => {
|
|
45
|
+
const sortRank = Math.abs(signedRank);
|
|
46
|
+
const visibilityStyle = (!signedRank || void 0) && (props.headerHovered ? styles.hovered : styles.transparent);
|
|
47
47
|
return /* @__PURE__ */ jsxs(Box, { sx: styles.sortDiv, onClick: props.onClick, children: [
|
|
48
|
-
|
|
48
|
+
signedRank >= 0 ? /* @__PURE__ */ jsx(ArrowUpward, { sx: visibilityStyle }) : /* @__PURE__ */ jsx(ArrowDownward, { sx: visibilityStyle }),
|
|
49
49
|
sortRank > 1 && !props.hovered && /* @__PURE__ */ jsx("sub", { children: sortRank })
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
@@ -57,69 +57,78 @@ const FilterButton = (props) => {
|
|
|
57
57
|
onClick: props.onClick,
|
|
58
58
|
sx: mergeSx(
|
|
59
59
|
styles.filterButton,
|
|
60
|
+
// @ts-ignore type incompatibility of styles
|
|
60
61
|
props.filterLevel > 1 && styles.filterTooLossy,
|
|
61
62
|
visibilityStyle
|
|
62
63
|
)
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
66
|
};
|
|
66
|
-
const ColumnHeader = forwardRef(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
label,
|
|
70
|
-
numeric,
|
|
71
|
-
sortSignedRank,
|
|
72
|
-
filterLevel,
|
|
73
|
-
onSortClick,
|
|
74
|
-
onFilterClick,
|
|
75
|
-
onContextMenu,
|
|
76
|
-
style
|
|
77
|
-
} = props;
|
|
78
|
-
const [hovered, setHovered] = useState();
|
|
79
|
-
const onHover = useCallback((evt) => {
|
|
80
|
-
setHovered(evt.type === "mouseenter");
|
|
81
|
-
}, []);
|
|
82
|
-
const topmostDiv = useRef();
|
|
83
|
-
const handleFilterClick = useMemo(() => {
|
|
84
|
-
if (!onFilterClick) {
|
|
85
|
-
return void 0;
|
|
86
|
-
}
|
|
87
|
-
return (evt) => {
|
|
88
|
-
onFilterClick(evt, topmostDiv.current);
|
|
89
|
-
};
|
|
90
|
-
}, [onFilterClick]);
|
|
91
|
-
return /* @__PURE__ */ jsxs(
|
|
92
|
-
Box,
|
|
93
|
-
{
|
|
94
|
-
ref: topmostDiv,
|
|
95
|
-
onMouseEnter: onHover,
|
|
96
|
-
onMouseLeave: onHover,
|
|
97
|
-
sx: mergeSx(styles.divFlex, numeric && styles.divNum),
|
|
67
|
+
const ColumnHeader = forwardRef(
|
|
68
|
+
(props, ref) => {
|
|
69
|
+
const {
|
|
98
70
|
className,
|
|
99
|
-
|
|
71
|
+
label,
|
|
72
|
+
numeric,
|
|
73
|
+
sortSignedRank,
|
|
74
|
+
filterLevel,
|
|
75
|
+
onSortClick,
|
|
76
|
+
onFilterClick,
|
|
100
77
|
onContextMenu,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
78
|
+
style
|
|
79
|
+
} = props;
|
|
80
|
+
const [hovered, setHovered] = useState(false);
|
|
81
|
+
const onHover = useCallback((evt) => {
|
|
82
|
+
setHovered(evt.type === "mouseenter");
|
|
83
|
+
}, []);
|
|
84
|
+
const topmostDiv = useRef();
|
|
85
|
+
const handleFilterClick = useMemo(() => {
|
|
86
|
+
if (!onFilterClick) {
|
|
87
|
+
return void 0;
|
|
88
|
+
}
|
|
89
|
+
return (evt) => {
|
|
90
|
+
onFilterClick(evt);
|
|
91
|
+
};
|
|
92
|
+
}, [onFilterClick]);
|
|
93
|
+
return (
|
|
94
|
+
//@ts-ignore it does not let us define Box with onMouseEnter/onMouseLeave attributes with 'div' I think, not sure though
|
|
95
|
+
/* @__PURE__ */ jsxs(
|
|
96
|
+
Box,
|
|
97
|
+
{
|
|
98
|
+
ref: topmostDiv,
|
|
99
|
+
onMouseEnter: onHover,
|
|
100
|
+
onMouseLeave: onHover,
|
|
101
|
+
sx: mergeSx(
|
|
102
|
+
styles.divFlex,
|
|
103
|
+
numeric ? styles.divNum : void 0
|
|
104
|
+
),
|
|
105
|
+
className,
|
|
106
|
+
style,
|
|
107
|
+
onContextMenu,
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsx(Box, { ref, sx: styles.label, children: label }),
|
|
110
|
+
onSortClick && /* @__PURE__ */ jsx(
|
|
111
|
+
SortButton,
|
|
112
|
+
{
|
|
113
|
+
headerHovered: hovered,
|
|
114
|
+
onClick: onSortClick,
|
|
115
|
+
signedRank: sortSignedRank
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
handleFilterClick && /* @__PURE__ */ jsx(
|
|
119
|
+
FilterButton,
|
|
120
|
+
{
|
|
121
|
+
headerHovered: hovered,
|
|
122
|
+
onClick: handleFilterClick,
|
|
123
|
+
filterLevel
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
);
|
|
123
132
|
const ColumnHeader$1 = styled(ColumnHeader)({});
|
|
124
133
|
export {
|
|
125
134
|
ColumnHeader,
|
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CustomColumnProps, RowProps } from './MuiVirtualizedTable';
|
|
2
|
+
|
|
3
|
+
export declare enum CHANGE_WAYS {
|
|
4
|
+
SIMPLE = "Simple",
|
|
5
|
+
TAIL = "Tail",
|
|
6
|
+
AMEND = "Amend",
|
|
7
|
+
REMOVE = "Remove"
|
|
6
8
|
}
|
|
7
|
-
export
|
|
9
|
+
export interface ColStat {
|
|
10
|
+
imin?: number | null;
|
|
11
|
+
imax?: number | null;
|
|
12
|
+
seen?: any;
|
|
13
|
+
kept?: any;
|
|
14
|
+
}
|
|
15
|
+
export declare const noOpHelper: Readonly<{
|
|
8
16
|
debugName: "noOp";
|
|
9
17
|
maintainsStats: false;
|
|
10
18
|
initStat: () => undefined;
|
|
11
|
-
updateStat: (colStat:
|
|
12
|
-
accepts: (value: any, userParams: any, outerParams: any) => true;
|
|
19
|
+
updateStat: (colStat: ColStat, value: number) => void;
|
|
20
|
+
accepts: (value: any, userParams: any[] | undefined, outerParams: any[] | undefined) => true;
|
|
13
21
|
}>;
|
|
14
|
-
export const collectibleHelper: Readonly<{
|
|
22
|
+
export declare const collectibleHelper: Readonly<{
|
|
15
23
|
debugName: "collectible";
|
|
16
24
|
maintainsStats: true;
|
|
17
25
|
initStat: () => {
|
|
18
26
|
seen: {};
|
|
19
27
|
kept: {};
|
|
20
28
|
};
|
|
21
|
-
updateStat: (colStat:
|
|
22
|
-
accepts: (value:
|
|
29
|
+
updateStat: (colStat: ColStat, cellValue: number, isForKeep: boolean) => void;
|
|
30
|
+
accepts: (value: number, userParams: any[] | undefined, outerParams: any[] | undefined) => boolean;
|
|
23
31
|
}>;
|
|
24
|
-
export
|
|
32
|
+
export declare const getHelper: (column?: CustomColumnProps) => Readonly<{
|
|
25
33
|
debugName: "noOp";
|
|
26
34
|
maintainsStats: false;
|
|
27
35
|
initStat: () => undefined;
|
|
28
|
-
updateStat: (colStat:
|
|
29
|
-
accepts: (value: any, userParams: any, outerParams: any) => true;
|
|
36
|
+
updateStat: (colStat: ColStat, value: number) => void;
|
|
37
|
+
accepts: (value: any, userParams: any[] | undefined, outerParams: any[] | undefined) => true;
|
|
30
38
|
}> | Readonly<{
|
|
31
39
|
debugName: "num";
|
|
32
40
|
maintainsStats: true;
|
|
@@ -34,8 +42,8 @@ export function getHelper(column: any): Readonly<{
|
|
|
34
42
|
imin: null;
|
|
35
43
|
imax: null;
|
|
36
44
|
};
|
|
37
|
-
updateStat: (colStat:
|
|
38
|
-
accepts: (value:
|
|
45
|
+
updateStat: (colStat: ColStat, value: number) => void;
|
|
46
|
+
accepts: (value: number, userParams: any[] | undefined, outerParams: any[] | undefined) => true;
|
|
39
47
|
}> | Readonly<{
|
|
40
48
|
debugName: "collectible";
|
|
41
49
|
maintainsStats: true;
|
|
@@ -43,62 +51,65 @@ export function getHelper(column: any): Readonly<{
|
|
|
43
51
|
seen: {};
|
|
44
52
|
kept: {};
|
|
45
53
|
};
|
|
46
|
-
updateStat: (colStat:
|
|
47
|
-
accepts: (value:
|
|
54
|
+
updateStat: (colStat: ColStat, cellValue: number, isForKeep: boolean) => void;
|
|
55
|
+
accepts: (value: number, userParams: any[] | undefined, outerParams: any[] | undefined) => boolean;
|
|
48
56
|
}>;
|
|
57
|
+
export interface Preferences {
|
|
58
|
+
isThreeState: boolean;
|
|
59
|
+
singleColumnByDefault: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface FilteredRows {
|
|
62
|
+
rowAndOrigIndex: [RowProps, number][];
|
|
63
|
+
colsStats: Record<string, ColStat>;
|
|
64
|
+
rowsCount: number;
|
|
65
|
+
}
|
|
49
66
|
/**
|
|
50
67
|
* A rows indexer for MuiVirtualizedTable to delegate to an instance of it
|
|
51
68
|
* for filtering, grouping and multi-column sorting via
|
|
52
69
|
* a view index to model index array.
|
|
53
70
|
*/
|
|
54
|
-
export class KeyedColumnsRowIndexer {
|
|
55
|
-
static get CHANGE_WAYS():
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
version: number;
|
|
71
|
+
export declare class KeyedColumnsRowIndexer {
|
|
72
|
+
static get CHANGE_WAYS(): typeof CHANGE_WAYS;
|
|
73
|
+
_versionSetter: ((version: number) => void) | null;
|
|
74
|
+
byColFilter: Record<string, {
|
|
75
|
+
userParams?: any[];
|
|
76
|
+
outerParams?: any[];
|
|
77
|
+
}> | null;
|
|
78
|
+
byRowFilter: ((row: RowProps) => boolean) | null;
|
|
79
|
+
delegatorCallback: ((instance: KeyedColumnsRowIndexer, callback: (input: any) => void) => void) | null;
|
|
64
80
|
filterVersion: number;
|
|
65
|
-
|
|
81
|
+
groupingCount: number;
|
|
66
82
|
indirectionStatus: string | null;
|
|
67
83
|
isThreeState: boolean;
|
|
68
|
-
singleColumnByDefault: boolean;
|
|
69
84
|
lastUsedRank: number;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
singleColumnByDefault: boolean;
|
|
86
|
+
sortingState: [string, string | undefined][] | null;
|
|
87
|
+
version: number;
|
|
88
|
+
constructor(isThreeState?: boolean, singleColumnByDefault?: boolean, delegatorCallback?: null, versionSetter?: ((version: number) => void) | null);
|
|
74
89
|
hasVersionSetter: () => boolean;
|
|
75
90
|
getVersion: () => number;
|
|
76
91
|
_bumpVersion: (isFilter?: boolean) => void;
|
|
77
|
-
updatePreferences: (preferences:
|
|
78
|
-
preFilterRowMapping: (columns:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
getColFilterUserParams: (colKey: any) => any;
|
|
94
|
-
setColFilterUserParams: (colKey: any, params: any) => boolean;
|
|
95
|
-
getUserFiltering: () => {};
|
|
96
|
-
updateRowFiltering: (rowFilterFunc: any) => void;
|
|
97
|
-
}
|
|
98
|
-
export namespace forTesting {
|
|
99
|
-
export { codedColumnsFromKeyAndDirection };
|
|
100
|
-
export { makeCompositeComparatorFromCodedColumns };
|
|
92
|
+
updatePreferences: (preferences: Preferences) => false | undefined;
|
|
93
|
+
preFilterRowMapping: (columns: CustomColumnProps[], rows: RowProps[], rowFilter: (row: RowProps) => boolean) => FilteredRows | null;
|
|
94
|
+
makeGroupAndSortIndirector: (preFilteredRowPairs: FilteredRows | null, columns: CustomColumnProps[]) => number[] | null;
|
|
95
|
+
getSortingAsKeyAndCodedRank: () => (string | number)[][];
|
|
96
|
+
updateSortingFromUser: (colKey: string, change_way: CHANGE_WAYS) => boolean;
|
|
97
|
+
codedRankByColumnIndex: (columns: CustomColumnProps[]) => number[] | null;
|
|
98
|
+
columnSortingSignedRank: (colKey: string) => number;
|
|
99
|
+
highestCodedColumn: (columns: CustomColumnProps[]) => number;
|
|
100
|
+
_getColFilterParams: (colKey: string | null, isForUser: boolean) => any[] | undefined;
|
|
101
|
+
_setColFilterParams: (colKey: string | null, params: any[] | null, isForUser: boolean) => boolean;
|
|
102
|
+
getColFilterOuterParams: (colKey: string | null) => any[] | undefined;
|
|
103
|
+
setColFilterOuterParams: (colKey: string, outerParams: any[]) => boolean;
|
|
104
|
+
getColFilterUserParams: (colKey: string | null) => any[] | undefined;
|
|
105
|
+
setColFilterUserParams: (colKey: string | null, params: any[] | null) => boolean;
|
|
106
|
+
getUserFiltering: () => Record<string, object>;
|
|
107
|
+
updateRowFiltering: (rowFilterFunc: (row: RowProps) => boolean) => void;
|
|
101
108
|
}
|
|
102
|
-
declare
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
export declare const forTesting: {
|
|
110
|
+
codedColumnsFromKeyAndDirection: (keyAndDirections: [
|
|
111
|
+
string,
|
|
112
|
+
string | undefined
|
|
113
|
+
][] | null, columns: CustomColumnProps[]) => number[] | null;
|
|
114
|
+
makeCompositeComparatorFromCodedColumns: (codedColumns: number[] | null, columns: CustomColumnProps[], rowExtractor: (row: [Record<string, number | string | undefined>, number][]) => Record<string, number | string | undefined>) => (row_a_i: [Record<string, number | string | undefined>, number][], row_b_i: [Record<string, number | string | undefined>, number][]) => number;
|
|
115
|
+
};
|