@gridsuite/commons-ui 0.62.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +21 -20
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +15 -13
- package/dist/components/AuthenticationRouter/index.d.ts +4 -7
- package/dist/components/AuthenticationRouter/index.js +2 -2
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +0 -1
- package/dist/components/CardErrorBoundary/card-error-boundary.js +5 -3
- package/dist/components/CardErrorBoundary/index.d.ts +3 -7
- package/dist/components/CardErrorBoundary/index.js +2 -2
- package/dist/components/CustomAGGrid/custom-aggrid.js +1 -1
- package/dist/components/CustomAGGrid/custom-aggrid.style.js +5 -5
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +2 -3
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +108 -105
- package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +1 -1
- package/dist/components/ElementSearchDialog/element-search-dialog.js +2 -2
- package/dist/components/ElementSearchDialog/element-search-input.d.ts +1 -1
- package/dist/components/ElementSearchDialog/element-search-input.js +4 -6
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +3 -3
- package/dist/components/ElementSearchDialog/equipment-item.js +13 -13
- package/dist/components/ElementSearchDialog/index.d.ts +3 -3
- package/dist/components/ElementSearchDialog/index.js +5 -5
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +11 -12
- package/dist/components/ElementSearchDialog/tag-renderer.js +5 -6
- package/dist/components/ElementSearchDialog/use-element-search.d.ts +2 -2
- package/dist/components/ElementSearchDialog/use-element-search.js +2 -2
- package/dist/components/ExpandableGroup/expandable-group.d.ts +3 -3
- package/dist/components/ExpandableGroup/expandable-group.js +6 -6
- package/dist/components/ExpandableGroup/index.d.ts +3 -7
- package/dist/components/ExpandableGroup/index.js +2 -2
- package/dist/components/FlatParameters/FlatParameters.d.ts +1 -1
- package/dist/components/FlatParameters/FlatParameters.js +46 -46
- package/dist/components/FlatParameters/index.d.ts +3 -7
- package/dist/components/Login/Login.d.ts +1 -7
- package/dist/components/Login/Login.js +3 -9
- package/dist/components/Login/Logout.d.ts +1 -1
- package/dist/components/Login/Logout.js +11 -11
- package/dist/components/Login/index.d.ts +3 -7
- package/dist/components/Login/index.js +2 -2
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +9 -8
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +24 -9
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +200 -205
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +6 -6
- package/dist/components/MuiVirtualizedTable/index.d.ts +2 -2
- package/dist/components/MuiVirtualizedTable/index.js +3 -3
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +1 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +5 -15
- package/dist/components/MultipleSelectionDialog/index.d.ts +3 -7
- package/dist/components/MultipleSelectionDialog/index.js +2 -2
- package/dist/components/OverflowableText/index.d.ts +3 -7
- package/dist/components/OverflowableText/overflowable-text.js +2 -2
- package/dist/components/ReportViewer/filter-button.d.ts +1 -1
- package/dist/components/ReportViewer/filter-button.js +3 -3
- package/dist/components/ReportViewer/index.d.ts +3 -7
- package/dist/components/ReportViewer/index.js +2 -2
- package/dist/components/ReportViewer/log-report-item.d.ts +1 -1
- package/dist/components/ReportViewer/log-report-item.js +12 -9
- package/dist/components/ReportViewer/log-report.js +3 -3
- package/dist/components/ReportViewer/log-table.d.ts +2 -1
- package/dist/components/ReportViewer/log-table.js +6 -5
- package/dist/components/ReportViewer/multi-select-list.d.ts +1 -1
- package/dist/components/ReportViewer/multi-select-list.js +3 -3
- package/dist/components/ReportViewer/report-item.js +4 -3
- package/dist/components/ReportViewer/report-viewer.js +11 -12
- package/dist/components/ReportViewerDialog/index.d.ts +3 -7
- package/dist/components/ReportViewerDialog/index.js +2 -2
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +2 -2
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +3 -3
- package/dist/components/SignInCallbackHandler/index.d.ts +3 -7
- package/dist/components/SignInCallbackHandler/index.js +2 -2
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +2 -2
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.js +3 -3
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +3 -7
- package/dist/components/SilentRenewCallbackHandler/index.js +2 -2
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +1 -1
- package/dist/components/SnackbarProvider/SnackbarProvider.js +14 -13
- package/dist/components/SnackbarProvider/index.d.ts +3 -7
- package/dist/components/SnackbarProvider/index.js +2 -2
- package/dist/components/TopBar/AboutDialog.d.ts +2 -3
- package/dist/components/TopBar/AboutDialog.js +151 -153
- package/dist/components/TopBar/GridLogo.d.ts +2 -2
- package/dist/components/TopBar/GridLogo.js +24 -24
- package/dist/components/TopBar/TopBar.d.ts +5 -29
- package/dist/components/TopBar/TopBar.js +9 -33
- package/dist/components/TopBar/index.d.ts +1 -1
- package/dist/components/TopBar/index.js +1 -1
- package/dist/components/TreeViewFinder/TreeViewFinder.js +51 -45
- package/dist/components/TreeViewFinder/index.d.ts +1 -1
- package/dist/components/TreeViewFinder/index.js +1 -1
- package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -2
- package/dist/components/dialogs/custom-mui-dialog.js +5 -5
- package/dist/components/dialogs/description-modification-dialog.d.ts +7 -3
- package/dist/components/dialogs/description-modification-dialog.js +11 -5
- package/dist/components/dialogs/modify-element-selection.d.ts +1 -2
- package/dist/components/dialogs/modify-element-selection.js +21 -13
- package/dist/components/dialogs/popup-confirmation-dialog.d.ts +7 -3
- package/dist/components/dialogs/popup-confirmation-dialog.js +3 -6
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +4 -5
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +123 -16
- package/dist/components/filter/criteria-based/criteria-based-filter-form.d.ts +1 -2
- package/dist/components/filter/criteria-based/criteria-based-filter-form.js +6 -5
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +27 -20
- package/dist/components/filter/criteria-based/criteria-based-form.d.ts +1 -2
- package/dist/components/filter/criteria-based/criteria-based-form.js +17 -6
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +5 -3
- package/dist/components/filter/criteria-based/filter-free-properties.js +69 -13
- package/dist/components/filter/criteria-based/filter-properties.d.ts +1 -6
- package/dist/components/filter/criteria-based/filter-properties.js +124 -16
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -2
- package/dist/components/filter/criteria-based/filter-property.js +16 -16
- package/dist/components/filter/expert/expert-filter-constants.d.ts +1 -1
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +3 -4
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +128 -15
- package/dist/components/filter/expert/expert-filter-form.d.ts +1 -2
- package/dist/components/filter/expert/expert-filter-form.js +141 -20
- package/dist/components/filter/expert/expert-filter-utils.d.ts +2 -2
- package/dist/components/filter/expert/expert-filter-utils.js +45 -46
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +3 -4
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +136 -16
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +4 -5
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +241 -24
- package/dist/components/filter/filter-creation-dialog.d.ts +3 -4
- package/dist/components/filter/filter-creation-dialog.js +125 -13
- package/dist/components/filter/filter-form.d.ts +4 -5
- package/dist/components/filter/filter-form.js +73 -14
- package/dist/components/filter/utils/filter-api.js +1 -1
- package/dist/components/filter/utils/filter-form-utils.js +1 -1
- package/dist/components/inputs/react-hook-form/ExpandingTextField.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ExpandingTextField.js +5 -5
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +102 -13
- package/dist/components/inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.d.ts +7 -6
- package/dist/components/inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.js +13 -15
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.d.ts +7 -3
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +220 -61
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +243 -11
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +4 -2
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js +12 -12
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js +2 -2
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +2 -2
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +3 -3
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/switch-input.js +3 -3
- package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +11 -3
- package/dist/components/inputs/react-hook-form/directory-items-input.js +11 -11
- package/dist/components/inputs/react-hook-form/error-management/error-input.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/error-input.js +7 -9
- package/dist/components/inputs/react-hook-form/error-management/field-error-alert.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/field-error-alert.js +2 -4
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.js +2 -2
- package/dist/components/inputs/react-hook-form/numbers/float-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/numbers/float-input.js +6 -5
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/numbers/integer-input.js +5 -5
- package/dist/components/inputs/react-hook-form/provider/custom-form-provider.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/provider/custom-form-provider.js +11 -8
- package/dist/components/inputs/react-hook-form/provider/use-custom-form-context.d.ts +2 -1
- package/dist/components/inputs/react-hook-form/provider/use-custom-form-context.js +1 -1
- package/dist/components/inputs/react-hook-form/radio-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/radio-input.js +2 -8
- package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/range-input.js +5 -5
- package/dist/components/inputs/react-hook-form/raw-read-only-input.d.ts +2 -1
- package/dist/components/inputs/react-hook-form/raw-read-only-input.js +1 -1
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.d.ts +1 -3
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +4 -8
- package/dist/components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.d.ts +3 -1
- package/dist/components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js +4 -4
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.js +11 -10
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.js +16 -8
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/slider-input.js +6 -6
- package/dist/components/inputs/react-hook-form/text-input.d.ts +6 -2
- package/dist/components/inputs/react-hook-form/text-input.js +9 -9
- package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +4 -6
- package/dist/components/inputs/react-hook-form/unique-name-input.js +12 -12
- package/dist/components/inputs/react-hook-form/utils/cancel-button.d.ts +9 -10
- package/dist/components/inputs/react-hook-form/utils/cancel-button.js +2 -6
- package/dist/components/inputs/react-hook-form/utils/field-label.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/utils/field-label.js +3 -3
- package/dist/components/inputs/react-hook-form/utils/functions.js +1 -1
- package/dist/components/inputs/react-hook-form/utils/submit-button.d.ts +9 -10
- package/dist/components/inputs/react-hook-form/utils/submit-button.js +2 -6
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.js +7 -7
- package/dist/components/inputs/react-query-builder/add-button.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/add-button.js +13 -10
- package/dist/components/inputs/react-query-builder/combinator-selector.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/combinator-selector.js +7 -6
- package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.js +2 -2
- package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.js +5 -5
- package/dist/components/inputs/react-query-builder/country-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/country-value-editor.js +18 -18
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +92 -19
- package/dist/components/inputs/react-query-builder/element-value-editor.d.ts +7 -3
- package/dist/components/inputs/react-query-builder/element-value-editor.js +50 -62
- package/dist/components/inputs/react-query-builder/property-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/property-value-editor.js +5 -5
- package/dist/components/inputs/react-query-builder/remove-button.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/remove-button.js +26 -7
- package/dist/components/inputs/react-query-builder/text-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/text-value-editor.js +17 -17
- package/dist/components/inputs/react-query-builder/translated-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/translated-value-editor.js +22 -26
- package/dist/components/inputs/react-query-builder/value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/value-editor.js +119 -18
- package/dist/components/inputs/react-query-builder/value-selector.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/value-selector.js +2 -2
- package/dist/components/inputs/select-clearable.d.ts +1 -2
- package/dist/components/inputs/select-clearable.js +6 -5
- package/dist/components/translations/card-error-boundary-en.d.ts +2 -2
- package/dist/components/translations/card-error-boundary-en.js +2 -2
- package/dist/components/translations/card-error-boundary-fr.d.ts +2 -2
- package/dist/components/translations/card-error-boundary-fr.js +2 -2
- package/dist/components/translations/common-button-en.d.ts +2 -2
- package/dist/components/translations/common-button-en.js +2 -2
- package/dist/components/translations/common-button-fr.d.ts +2 -2
- package/dist/components/translations/common-button-fr.js +2 -2
- package/dist/components/translations/directory-items-input-en.d.ts +2 -2
- package/dist/components/translations/directory-items-input-en.js +2 -2
- package/dist/components/translations/directory-items-input-fr.d.ts +2 -2
- package/dist/components/translations/directory-items-input-fr.js +2 -2
- package/dist/components/translations/element-search-en.d.ts +2 -2
- package/dist/components/translations/element-search-en.js +2 -2
- package/dist/components/translations/element-search-fr.d.ts +2 -2
- package/dist/components/translations/element-search-fr.js +2 -2
- package/dist/components/translations/equipment-search-en.d.ts +2 -2
- package/dist/components/translations/equipment-search-en.js +2 -2
- package/dist/components/translations/equipment-search-fr.d.ts +2 -2
- package/dist/components/translations/equipment-search-fr.js +2 -2
- package/dist/components/translations/filter-en.d.ts +3 -2
- package/dist/components/translations/filter-en.js +3 -2
- package/dist/components/translations/filter-expert-en.d.ts +2 -2
- package/dist/components/translations/filter-expert-en.js +2 -2
- package/dist/components/translations/filter-expert-fr.d.ts +2 -2
- package/dist/components/translations/filter-expert-fr.js +2 -2
- package/dist/components/translations/filter-fr.d.ts +3 -2
- package/dist/components/translations/filter-fr.js +3 -2
- package/dist/components/translations/flat-parameters-en.d.ts +2 -2
- package/dist/components/translations/flat-parameters-en.js +2 -2
- package/dist/components/translations/flat-parameters-fr.d.ts +2 -2
- package/dist/components/translations/flat-parameters-fr.js +2 -2
- package/dist/components/translations/inputs-en.d.ts +2 -2
- package/dist/components/translations/inputs-en.js +2 -2
- package/dist/components/translations/inputs-fr.d.ts +2 -2
- package/dist/components/translations/inputs-fr.js +2 -2
- package/dist/components/translations/login-en.d.ts +2 -2
- package/dist/components/translations/login-en.js +2 -2
- package/dist/components/translations/login-fr.d.ts +2 -2
- package/dist/components/translations/login-fr.js +2 -2
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +2 -2
- package/dist/components/translations/multiple-selection-dialog-en.js +2 -2
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +2 -2
- package/dist/components/translations/multiple-selection-dialog-fr.js +2 -2
- package/dist/components/translations/report-viewer-en.d.ts +2 -2
- package/dist/components/translations/report-viewer-en.js +2 -2
- package/dist/components/translations/report-viewer-fr.d.ts +2 -2
- package/dist/components/translations/report-viewer-fr.js +2 -2
- package/dist/components/translations/table-en.d.ts +2 -2
- package/dist/components/translations/table-en.js +2 -2
- package/dist/components/translations/table-fr.d.ts +2 -2
- package/dist/components/translations/table-fr.js +2 -2
- package/dist/components/translations/top-bar-en.d.ts +2 -2
- package/dist/components/translations/top-bar-en.js +2 -2
- package/dist/components/translations/top-bar-fr.d.ts +2 -2
- package/dist/components/translations/top-bar-fr.js +2 -2
- package/dist/components/translations/treeview-finder-en.d.ts +2 -2
- package/dist/components/translations/treeview-finder-en.js +2 -2
- package/dist/components/translations/treeview-finder-fr.d.ts +2 -2
- package/dist/components/translations/treeview-finder-fr.js +2 -2
- package/dist/hooks/localized-countries-hook.js +1 -1
- package/dist/hooks/predefined-properties-hook.d.ts +2 -1
- package/dist/hooks/predefined-properties-hook.js +2 -2
- package/dist/hooks/useDebounce.d.ts +2 -1
- package/dist/hooks/useDebounce.js +1 -1
- package/dist/hooks/useIntlRef.d.ts +2 -1
- package/dist/hooks/useIntlRef.js +1 -1
- package/dist/hooks/useSnackMessage.d.ts +2 -2
- package/dist/hooks/useSnackMessage.js +36 -36
- package/dist/index.d.ts +19 -16
- package/dist/index.js +164 -158
- package/dist/redux/authActions.d.ts +56 -0
- package/dist/redux/commonStore.d.ts +4 -3
- package/dist/redux/commonStore.js +2 -1
- package/dist/services/apps-metadata.js +1 -1
- package/dist/services/directory.js +6 -6
- package/dist/services/explore.js +14 -12
- package/dist/services/index.d.ts +0 -5
- package/dist/services/study.js +2 -2
- package/dist/services/utils.d.ts +1 -1
- package/dist/services/utils.js +26 -26
- package/dist/utils/AuthService.d.ts +9 -8
- package/dist/utils/AuthService.js +77 -76
- package/dist/utils/ElementIcon.d.ts +3 -2
- package/dist/utils/ElementIcon.js +4 -3
- package/dist/utils/ElementType.d.ts +3 -6
- package/dist/utils/EquipmentType.js +3 -3
- package/dist/utils/FetchStatus.d.ts +2 -1
- package/dist/utils/FetchStatus.js +1 -1
- package/dist/utils/Metadata.d.ts +15 -0
- package/dist/utils/Metadata.js +1 -0
- package/dist/utils/UserManagerMock.d.ts +50 -25
- package/dist/utils/UserManagerMock.js +118 -11
- package/dist/utils/algos.d.ts +2 -1
- package/dist/utils/algos.js +2 -2
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +2 -1
- package/dist/utils/equipment-types-for-predefined-properties-mapper.js +3 -1
- package/dist/utils/field-constants.d.ts +2 -1
- package/dist/utils/field-constants.js +1 -1
- package/dist/utils/functions.js +5 -2
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/yup-config.js +1 -2
- package/package.json +10 -4
- package/dist/chunks/criteria-based-filter-edition-dialog.CAT38SvB.js +0 -1694
- package/dist/chunks/filter-properties.B7-q_yPf.js +0 -195
- package/dist/redux/actions.d.ts +0 -54
- /package/dist/assets/{criteria-based-filter-edition-dialog.css → expert-filter-form.css} +0 -0
- /package/dist/redux/{actions.js → authActions.js} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const inputsEn: {
|
|
8
8
|
'inputs/kiki': string;
|
|
9
9
|
'inputs/ney': string;
|
|
10
10
|
'inputs/lapulga': string;
|
|
@@ -22,4 +22,4 @@ declare const inputs_en: {
|
|
|
22
22
|
'inputs/switch': string;
|
|
23
23
|
Optional: string;
|
|
24
24
|
};
|
|
25
|
-
export default
|
|
25
|
+
export default inputsEn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const inputsEn = {
|
|
2
2
|
"inputs/kiki": "Kylian Mbappe",
|
|
3
3
|
"inputs/ney": "Neymar",
|
|
4
4
|
"inputs/lapulga": "Lionel Messi",
|
|
@@ -17,5 +17,5 @@ const inputs_en = {
|
|
|
17
17
|
Optional: "Optional"
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
inputsEn as default
|
|
21
21
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const inputsFr: {
|
|
8
8
|
'inputs/kiki': string;
|
|
9
9
|
'inputs/ney': string;
|
|
10
10
|
'inputs/lapulga': string;
|
|
@@ -22,4 +22,4 @@ declare const inputs_fr: {
|
|
|
22
22
|
'inputs/switch': string;
|
|
23
23
|
Optional: string;
|
|
24
24
|
};
|
|
25
|
-
export default
|
|
25
|
+
export default inputsFr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const inputsFr = {
|
|
2
2
|
"inputs/kiki": "Kylian Mbappe",
|
|
3
3
|
"inputs/ney": "Neymar",
|
|
4
4
|
"inputs/lapulga": "Lionel Messi",
|
|
@@ -17,5 +17,5 @@ const inputs_fr = {
|
|
|
17
17
|
Optional: "Optional"
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
inputsFr as default
|
|
21
21
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const loginEn: {
|
|
8
8
|
'login/login': string;
|
|
9
9
|
'login/connection': string;
|
|
10
10
|
'login/unauthorizedAccess': string;
|
|
@@ -15,4 +15,4 @@ declare const login_en: {
|
|
|
15
15
|
'login/errorInLogoutMessage': string;
|
|
16
16
|
'login/logout': string;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default loginEn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const loginEn = {
|
|
2
2
|
"login/login": "Login",
|
|
3
3
|
"login/connection": "Connection",
|
|
4
4
|
"login/unauthorizedAccess": "Unauthorized access",
|
|
@@ -10,5 +10,5 @@ const login_en = {
|
|
|
10
10
|
"login/logout": "Logout"
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
loginEn as default
|
|
14
14
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const loginFr: {
|
|
8
8
|
'login/login': string;
|
|
9
9
|
'login/connection': string;
|
|
10
10
|
'login/unauthorizedAccess': string;
|
|
@@ -15,4 +15,4 @@ declare const login_fr: {
|
|
|
15
15
|
'login/errorInLogoutMessage': string;
|
|
16
16
|
'login/logout': string;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default loginFr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const loginFr = {
|
|
2
2
|
"login/login": "Se connecter",
|
|
3
3
|
"login/connection": "Connexion",
|
|
4
4
|
"login/unauthorizedAccess": "Accès non autorisé",
|
|
@@ -10,5 +10,5 @@ const login_fr = {
|
|
|
10
10
|
"login/logout": "Se déconnecter"
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
loginFr as default
|
|
14
14
|
};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const multipleSelectionDialogEn: {
|
|
8
8
|
'multiple_selection_dialog/cancel': string;
|
|
9
9
|
'multiple_selection_dialog/validate': string;
|
|
10
10
|
'multiple_selection_dialog/selectAll': string;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default multipleSelectionDialogEn;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const multipleSelectionDialogEn = {
|
|
2
2
|
"multiple_selection_dialog/cancel": "Cancel",
|
|
3
3
|
"multiple_selection_dialog/validate": "Validate",
|
|
4
4
|
"multiple_selection_dialog/selectAll": "Select all"
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
multipleSelectionDialogEn as default
|
|
8
8
|
};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const multipleSelectionDialogFr: {
|
|
8
8
|
'multiple_selection_dialog/cancel': string;
|
|
9
9
|
'multiple_selection_dialog/validate': string;
|
|
10
10
|
'multiple_selection_dialog/selectAll': string;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default multipleSelectionDialogFr;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const multipleSelectionDialogFr = {
|
|
2
2
|
"multiple_selection_dialog/cancel": "Annuler",
|
|
3
3
|
"multiple_selection_dialog/validate": "Valider",
|
|
4
4
|
"multiple_selection_dialog/selectAll": "Tout sélectionner"
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
multipleSelectionDialogFr as default
|
|
8
8
|
};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const reportViewerEn: {
|
|
8
8
|
'report_viewer/close': string;
|
|
9
9
|
'report_viewer/severity': string;
|
|
10
10
|
'report_viewer/message': string;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default reportViewerEn;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const reportViewerFr: {
|
|
8
8
|
'report_viewer/close': string;
|
|
9
9
|
'report_viewer/severity': string;
|
|
10
10
|
'report_viewer/message': string;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default reportViewerFr;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const tableEn: {
|
|
8
8
|
'MuiVirtualizedTable/exportCSV': string;
|
|
9
9
|
};
|
|
10
|
-
export default
|
|
10
|
+
export default tableEn;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const tableFr: {
|
|
8
8
|
'MuiVirtualizedTable/exportCSV': string;
|
|
9
9
|
};
|
|
10
|
-
export default
|
|
10
|
+
export default tableFr;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const topBarEn: {
|
|
8
8
|
'top-bar/settings': string;
|
|
9
9
|
'top-bar/logout': string;
|
|
10
10
|
'top-bar/goFullScreen': string;
|
|
@@ -27,4 +27,4 @@ declare const top_bar_en: {
|
|
|
27
27
|
'about-dialog/module-tooltip-server': string;
|
|
28
28
|
'about-dialog/module-tooltip-other': string;
|
|
29
29
|
};
|
|
30
|
-
export default
|
|
30
|
+
export default topBarEn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const topBarEn = {
|
|
2
2
|
"top-bar/settings": "Settings",
|
|
3
3
|
"top-bar/logout": "Logout",
|
|
4
4
|
"top-bar/goFullScreen": "Full screen",
|
|
@@ -22,5 +22,5 @@ const top_bar_en = {
|
|
|
22
22
|
"about-dialog/module-tooltip-other": "other"
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
topBarEn as default
|
|
26
26
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const topBarFr: {
|
|
8
8
|
'top-bar/settings': string;
|
|
9
9
|
'top-bar/logout': string;
|
|
10
10
|
'top-bar/goFullScreen': string;
|
|
@@ -27,4 +27,4 @@ declare const top_bar_fr: {
|
|
|
27
27
|
'about-dialog/module-tooltip-server': string;
|
|
28
28
|
'about-dialog/module-tooltip-other': string;
|
|
29
29
|
};
|
|
30
|
-
export default
|
|
30
|
+
export default topBarFr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const topBarFr = {
|
|
2
2
|
"top-bar/settings": "Paramètres",
|
|
3
3
|
"top-bar/logout": "Se déconnecter",
|
|
4
4
|
"top-bar/goFullScreen": "Plein écran",
|
|
@@ -22,5 +22,5 @@ const top_bar_fr = {
|
|
|
22
22
|
"about-dialog/module-tooltip-other": "autre"
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
topBarFr as default
|
|
26
26
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const treeviewFinderEn: {
|
|
8
8
|
'treeview_finder/close': string;
|
|
9
9
|
'treeview_finder/validate': string;
|
|
10
10
|
'treeview_finder/add': string;
|
|
@@ -14,4 +14,4 @@ declare const treeview_finder_en: {
|
|
|
14
14
|
'treeview_finder/addElementsValidation': string;
|
|
15
15
|
'treeview_finder/replaceElementsValidation': string;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default treeviewFinderEn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const treeviewFinderEn = {
|
|
2
2
|
"treeview_finder/close": "Close",
|
|
3
3
|
"treeview_finder/validate": "Validate",
|
|
4
4
|
"treeview_finder/add": "Add...",
|
|
@@ -9,5 +9,5 @@ const treeview_finder_en = {
|
|
|
9
9
|
"treeview_finder/replaceElementsValidation": "{nbElements, plural, =0 {Please select an element} =1 {Replace with this element} other{Replace with # elements}}"
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
treeviewFinderEn as default
|
|
13
13
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
declare const
|
|
7
|
+
declare const treeviewFinderFr: {
|
|
8
8
|
'treeview_finder/close': string;
|
|
9
9
|
'treeview_finder/validate': string;
|
|
10
10
|
'treeview_finder/add': string;
|
|
@@ -14,4 +14,4 @@ declare const treeview_finder_fr: {
|
|
|
14
14
|
'treeview_finder/addElementsValidation': string;
|
|
15
15
|
'treeview_finder/replaceElementsValidation': string;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default treeviewFinderFr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const treeviewFinderFr = {
|
|
2
2
|
"treeview_finder/close": "Fermer",
|
|
3
3
|
"treeview_finder/validate": "Valider",
|
|
4
4
|
"treeview_finder/add": "Ajouter...",
|
|
@@ -9,5 +9,5 @@ const treeview_finder_fr = {
|
|
|
9
9
|
"treeview_finder/replaceElementsValidation": "{nbElements, plural, =0 {Veuillez sélectionner un élément} =1 {Remplacer par cet élément} other {Remplacer par # éléments}}"
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
treeviewFinderFr as default
|
|
13
13
|
};
|
|
@@ -22,7 +22,7 @@ const useLocalizedCountries = (language) => {
|
|
|
22
22
|
localizedCountriesResult = localizedCountries(countriesEn);
|
|
23
23
|
} else {
|
|
24
24
|
console.warn(
|
|
25
|
-
|
|
25
|
+
`Unsupported language "${lang}" for countries translation, we use english as default`
|
|
26
26
|
);
|
|
27
27
|
localizedCountriesResult = localizedCountries(countriesEn);
|
|
28
28
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EquipmentType, PredefinedProperties } from '../utils/types';
|
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
declare const usePredefinedProperties: (initialType: EquipmentType | null) => [PredefinedProperties, Dispatch<SetStateAction<EquipmentType | null>>];
|
|
5
|
+
export default usePredefinedProperties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
|
-
import
|
|
2
|
+
import mapEquipmentTypeForPredefinedProperties from "../utils/equipment-types-for-predefined-properties-mapper.js";
|
|
3
3
|
import { useSnackMessage } from "./useSnackMessage.js";
|
|
4
4
|
import { fetchStudyMetadata } from "../services/apps-metadata.js";
|
|
5
5
|
const fetchPredefinedProperties = async (equipmentType) => {
|
|
@@ -31,5 +31,5 @@ const usePredefinedProperties = (initialType) => {
|
|
|
31
31
|
return [equipmentPredefinedProps, setType];
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
usePredefinedProperties
|
|
34
|
+
usePredefinedProperties as default
|
|
35
35
|
};
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
declare const useDebounce: <T extends (...args: any[]) => any>(func: T, delay?: number) => T & import('@mui/utils/debounce').Cancelable;
|
|
8
|
+
export default useDebounce;
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
|
-
|
|
8
|
+
declare function useIntlRef(): import('react').MutableRefObject<import("react-intl").IntlShape>;
|
|
9
|
+
export default useIntlRef;
|
package/dist/hooks/useIntlRef.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionsObject, closeSnackbar } from 'notistack';
|
|
1
|
+
import { OptionsObject, closeSnackbar as closeSnackbarFromNotistack } from 'notistack';
|
|
2
2
|
|
|
3
3
|
interface SnackInputs extends Omit<OptionsObject, 'variant' | 'style'> {
|
|
4
4
|
messageTxt?: string;
|
|
@@ -14,7 +14,7 @@ export interface UseSnackMessageReturn {
|
|
|
14
14
|
snackError: (snackInputs: SnackInputs) => void;
|
|
15
15
|
snackWarning: (snackInputs: SnackInputs) => void;
|
|
16
16
|
snackInfo: (snackInputs: SnackInputs) => void;
|
|
17
|
-
closeSnackbar: typeof
|
|
17
|
+
closeSnackbar: typeof closeSnackbarFromNotistack;
|
|
18
18
|
}
|
|
19
19
|
export declare function useSnackMessage(): UseSnackMessageReturn;
|
|
20
20
|
export {};
|
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
2
|
import { useSnackbar } from "notistack";
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
(snackInputs, variant) => {
|
|
9
|
-
const message = makeMessage(intlRef, snackInputs);
|
|
10
|
-
if (message === null) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
return enqueueSnackbar(message, {
|
|
14
|
-
...snackInputs,
|
|
15
|
-
variant,
|
|
16
|
-
style: { whiteSpace: "pre-line" }
|
|
17
|
-
});
|
|
18
|
-
},
|
|
19
|
-
[enqueueSnackbar, intlRef]
|
|
20
|
-
);
|
|
21
|
-
const snackError = useCallback(
|
|
22
|
-
(snackInputs) => enqueue(snackInputs, "error"),
|
|
23
|
-
[enqueue]
|
|
24
|
-
);
|
|
25
|
-
const snackWarning = useCallback(
|
|
26
|
-
(snackInputs) => enqueue(snackInputs, "warning"),
|
|
27
|
-
[enqueue]
|
|
28
|
-
);
|
|
29
|
-
const snackInfo = useCallback(
|
|
30
|
-
(snackInputs) => enqueue(snackInputs, "info"),
|
|
31
|
-
[enqueue]
|
|
32
|
-
);
|
|
33
|
-
return { snackError, snackInfo, snackWarning, closeSnackbar: closeSnackbar2 };
|
|
3
|
+
import useIntlRef from "./useIntlRef.js";
|
|
4
|
+
function checkInputs(txt, id, values) {
|
|
5
|
+
if (txt && (id || values)) {
|
|
6
|
+
console.warn("Snack inputs should be [*Txt] OR [*Id, *Values]");
|
|
7
|
+
}
|
|
34
8
|
}
|
|
35
9
|
function checkAndTranslateIfNecessary(intlRef, txt, id, values) {
|
|
36
10
|
checkInputs(txt, id, values);
|
|
@@ -41,11 +15,6 @@ function checkAndTranslateIfNecessary(intlRef, txt, id, values) {
|
|
|
41
15
|
values
|
|
42
16
|
) : null);
|
|
43
17
|
}
|
|
44
|
-
function checkInputs(txt, id, values) {
|
|
45
|
-
if (txt && (id || values)) {
|
|
46
|
-
console.warn("Snack inputs should be [*Txt] OR [*Id, *Values]");
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
18
|
function makeMessage(intlRef, snackInputs) {
|
|
50
19
|
const message = checkAndTranslateIfNecessary(
|
|
51
20
|
intlRef,
|
|
@@ -71,6 +40,37 @@ function makeMessage(intlRef, snackInputs) {
|
|
|
71
40
|
}
|
|
72
41
|
return fullMessage;
|
|
73
42
|
}
|
|
43
|
+
function useSnackMessage() {
|
|
44
|
+
const intlRef = useIntlRef();
|
|
45
|
+
const { enqueueSnackbar, closeSnackbar } = useSnackbar();
|
|
46
|
+
const enqueue = useCallback(
|
|
47
|
+
(snackInputs, variant) => {
|
|
48
|
+
const message = makeMessage(intlRef, snackInputs);
|
|
49
|
+
if (message === null) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
enqueueSnackbar(message, {
|
|
53
|
+
...snackInputs,
|
|
54
|
+
variant,
|
|
55
|
+
style: { whiteSpace: "pre-line" }
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
[enqueueSnackbar, intlRef]
|
|
59
|
+
);
|
|
60
|
+
const snackError = useCallback(
|
|
61
|
+
(snackInputs) => enqueue(snackInputs, "error"),
|
|
62
|
+
[enqueue]
|
|
63
|
+
);
|
|
64
|
+
const snackWarning = useCallback(
|
|
65
|
+
(snackInputs) => enqueue(snackInputs, "warning"),
|
|
66
|
+
[enqueue]
|
|
67
|
+
);
|
|
68
|
+
const snackInfo = useCallback(
|
|
69
|
+
(snackInputs) => enqueue(snackInputs, "info"),
|
|
70
|
+
[enqueue]
|
|
71
|
+
);
|
|
72
|
+
return { snackError, snackInfo, snackWarning, closeSnackbar };
|
|
73
|
+
}
|
|
74
74
|
export {
|
|
75
75
|
useSnackMessage
|
|
76
76
|
};
|