@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
|
@@ -16,7 +16,8 @@ const filter_fr = {
|
|
|
16
16
|
emptyRule: "Le filtre contient un champ vide",
|
|
17
17
|
incorrectRule: "Le filtre contient un champ incorrect",
|
|
18
18
|
betweenRule: "La valeur de gauche d'une règle 'entre' doit être inférieure à la valeur de droite",
|
|
19
|
-
emptyGroup: "Le filtre contient un groupe vide. Supprimez le ou ajoutez des règles à ce groupe"
|
|
19
|
+
emptyGroup: "Le filtre contient un groupe vide. Supprimez le ou ajoutez des règles à ce groupe",
|
|
20
|
+
Hvdc: "HVDC"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
filter_fr as default
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default flat_parameters_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const flat_parameters_en: {
|
|
|
10
9
|
'flat_parameters/some': string;
|
|
11
10
|
'flat_parameters/all': string;
|
|
12
11
|
};
|
|
12
|
+
export default flat_parameters_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default flat_parameters_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const flat_parameters_fr: {
|
|
|
10
9
|
'flat_parameters/some': string;
|
|
11
10
|
'flat_parameters/all': string;
|
|
12
11
|
};
|
|
12
|
+
export default flat_parameters_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default inputs_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -23,3 +22,4 @@ declare const inputs_en: {
|
|
|
23
22
|
'inputs/switch': string;
|
|
24
23
|
Optional: string;
|
|
25
24
|
};
|
|
25
|
+
export default inputs_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default inputs_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -23,3 +22,4 @@ declare const inputs_fr: {
|
|
|
23
22
|
'inputs/switch': string;
|
|
24
23
|
Optional: string;
|
|
25
24
|
};
|
|
25
|
+
export default inputs_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default login_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -16,3 +15,4 @@ declare const login_en: {
|
|
|
16
15
|
'login/errorInLogoutMessage': string;
|
|
17
16
|
'login/logout': string;
|
|
18
17
|
};
|
|
18
|
+
export default login_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default login_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -16,3 +15,4 @@ declare const login_fr: {
|
|
|
16
15
|
'login/errorInLogoutMessage': string;
|
|
17
16
|
'login/logout': string;
|
|
18
17
|
};
|
|
18
|
+
export default login_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default multiple_selection_dialog_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const multiple_selection_dialog_en: {
|
|
|
10
9
|
'multiple_selection_dialog/validate': string;
|
|
11
10
|
'multiple_selection_dialog/selectAll': string;
|
|
12
11
|
};
|
|
12
|
+
export default multiple_selection_dialog_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default multiple_selection_dialog_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const multiple_selection_dialog_fr: {
|
|
|
10
9
|
'multiple_selection_dialog/validate': string;
|
|
11
10
|
'multiple_selection_dialog/selectAll': string;
|
|
12
11
|
};
|
|
12
|
+
export default multiple_selection_dialog_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default report_viewer_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const report_viewer_en: {
|
|
|
10
9
|
'report_viewer/severity': string;
|
|
11
10
|
'report_viewer/message': string;
|
|
12
11
|
};
|
|
12
|
+
export default report_viewer_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default report_viewer_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const report_viewer_fr: {
|
|
|
10
9
|
'report_viewer/severity': string;
|
|
11
10
|
'report_viewer/message': string;
|
|
12
11
|
};
|
|
12
|
+
export default report_viewer_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default table_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -8,3 +7,4 @@ export default table_en;
|
|
|
8
7
|
declare const table_en: {
|
|
9
8
|
'MuiVirtualizedTable/exportCSV': string;
|
|
10
9
|
};
|
|
10
|
+
export default table_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default table_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -8,3 +7,4 @@ export default table_fr;
|
|
|
8
7
|
declare const table_fr: {
|
|
9
8
|
'MuiVirtualizedTable/exportCSV': string;
|
|
10
9
|
};
|
|
10
|
+
export default table_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default top_bar_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -28,3 +27,4 @@ declare const top_bar_en: {
|
|
|
28
27
|
'about-dialog/module-tooltip-server': string;
|
|
29
28
|
'about-dialog/module-tooltip-other': string;
|
|
30
29
|
};
|
|
30
|
+
export default top_bar_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default top_bar_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -28,3 +27,4 @@ declare const top_bar_fr: {
|
|
|
28
27
|
'about-dialog/module-tooltip-server': string;
|
|
29
28
|
'about-dialog/module-tooltip-other': string;
|
|
30
29
|
};
|
|
30
|
+
export default top_bar_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default treeview_finder_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -15,3 +14,4 @@ declare const treeview_finder_en: {
|
|
|
15
14
|
'treeview_finder/addElementsValidation': string;
|
|
16
15
|
'treeview_finder/replaceElementsValidation': string;
|
|
17
16
|
};
|
|
17
|
+
export default treeview_finder_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default treeview_finder_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -15,3 +14,4 @@ declare const treeview_finder_fr: {
|
|
|
15
14
|
'treeview_finder/addElementsValidation': string;
|
|
16
15
|
'treeview_finder/replaceElementsValidation': string;
|
|
17
16
|
};
|
|
17
|
+
export default treeview_finder_fr;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023, 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
|
+
*/
|
|
7
|
+
export declare const getSystemLanguage: () => string;
|
|
8
|
+
export declare const getComputedLanguage: (language: string | undefined) => string;
|
|
9
|
+
export declare const useLocalizedCountries: (language: string | undefined) => {
|
|
10
|
+
translate: (countryCode: string) => string;
|
|
5
11
|
countryCodes: string[];
|
|
6
12
|
};
|
|
@@ -9,7 +9,7 @@ const getSystemLanguage = () => {
|
|
|
9
9
|
return supportedLanguages.includes(systemLanguage) ? systemLanguage : LANG_ENGLISH;
|
|
10
10
|
};
|
|
11
11
|
const getComputedLanguage = (language) => {
|
|
12
|
-
return language === LANG_SYSTEM ? getSystemLanguage() : language;
|
|
12
|
+
return language === LANG_SYSTEM ? getSystemLanguage() : language ?? LANG_ENGLISH;
|
|
13
13
|
};
|
|
14
14
|
const useLocalizedCountries = (language) => {
|
|
15
15
|
const [localizedCountriesModule, setLocalizedCountriesModule] = useState();
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import { EquipmentType, PredefinedProperties } from '../utils/types
|
|
1
|
+
import { EquipmentType, PredefinedProperties } from '../utils/types';
|
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
|
3
3
|
|
|
4
|
-
interface Metadata {
|
|
5
|
-
name: string;
|
|
6
|
-
url: string;
|
|
7
|
-
appColor: string;
|
|
8
|
-
hiddenInAppsMenu: boolean;
|
|
9
|
-
resources: unknown;
|
|
10
|
-
}
|
|
11
|
-
export interface StudyMetadata extends Metadata {
|
|
12
|
-
name: 'Study';
|
|
13
|
-
predefinedEquipmentProperties: {
|
|
14
|
-
[networkElementType: string]: PredefinedProperties;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
4
|
export declare const usePredefinedProperties: (initialType: EquipmentType | null) => [PredefinedProperties, Dispatch<SetStateAction<EquipmentType | null>>];
|
|
18
|
-
export {};
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import { useState,
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
2
2
|
import { mapEquipmentTypeForPredefinedProperties } from "../utils/equipment-types-for-predefined-properties-mapper.js";
|
|
3
3
|
import { useSnackMessage } from "./useSnackMessage.js";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
return metadata.name === "Study";
|
|
7
|
-
};
|
|
8
|
-
const fetchPredefinedProperties = async (equipmentType, fetchAppsAndUrls) => {
|
|
4
|
+
import { fetchStudyMetadata } from "../services/apps-metadata.js";
|
|
5
|
+
const fetchPredefinedProperties = async (equipmentType) => {
|
|
9
6
|
var _a;
|
|
10
7
|
const networkEquipmentType = mapEquipmentTypeForPredefinedProperties(equipmentType);
|
|
11
8
|
if (networkEquipmentType === void 0) {
|
|
12
9
|
return Promise.resolve(void 0);
|
|
13
10
|
}
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
if (!studyMetadata) {
|
|
17
|
-
return Promise.reject("Study entry could not be found in metadata");
|
|
18
|
-
}
|
|
19
|
-
return (_a = studyMetadata[0].predefinedEquipmentProperties) == null ? void 0 : _a[networkEquipmentType];
|
|
11
|
+
const studyMetadata = await fetchStudyMetadata();
|
|
12
|
+
return (_a = studyMetadata.predefinedEquipmentProperties) == null ? void 0 : _a[networkEquipmentType];
|
|
20
13
|
};
|
|
21
14
|
const usePredefinedProperties = (initialType) => {
|
|
22
15
|
const [type, setType] = useState(initialType);
|
|
23
16
|
const [equipmentPredefinedProps, setEquipmentPredefinedProps] = useState({});
|
|
24
17
|
const { snackError } = useSnackMessage();
|
|
25
|
-
const { fetchAppsAndUrls } = useContext(FilterContext);
|
|
26
18
|
useEffect(() => {
|
|
27
|
-
if (
|
|
28
|
-
fetchPredefinedProperties(type
|
|
19
|
+
if (type !== null) {
|
|
20
|
+
fetchPredefinedProperties(type).then((p) => {
|
|
29
21
|
if (p !== void 0) {
|
|
30
22
|
setEquipmentPredefinedProps(p);
|
|
31
23
|
}
|
|
@@ -35,7 +27,7 @@ const usePredefinedProperties = (initialType) => {
|
|
|
35
27
|
});
|
|
36
28
|
});
|
|
37
29
|
}
|
|
38
|
-
}, [type, setEquipmentPredefinedProps, snackError
|
|
30
|
+
}, [type, setEquipmentPredefinedProps, snackError]);
|
|
39
31
|
return [equipmentPredefinedProps, setType];
|
|
40
32
|
};
|
|
41
33
|
export {
|
|
@@ -4,4 +4,4 @@
|
|
|
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
|
-
export declare const useDebounce:
|
|
7
|
+
export declare const useDebounce: <T extends (...args: any[]) => any>(func: T, delay?: number) => T & import('@mui/utils/debounce').Cancelable;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
*/
|
|
7
|
-
interface SnackInputs {
|
|
1
|
+
import { OptionsObject, closeSnackbar } from 'notistack';
|
|
2
|
+
|
|
3
|
+
interface SnackInputs extends Omit<OptionsObject, 'variant' | 'style'> {
|
|
8
4
|
messageTxt?: string;
|
|
9
5
|
messageId?: string;
|
|
10
6
|
messageValues?: {
|
|
@@ -18,6 +14,7 @@ export interface UseSnackMessageReturn {
|
|
|
18
14
|
snackError: (snackInputs: SnackInputs) => void;
|
|
19
15
|
snackWarning: (snackInputs: SnackInputs) => void;
|
|
20
16
|
snackInfo: (snackInputs: SnackInputs) => void;
|
|
17
|
+
closeSnackbar: typeof closeSnackbar;
|
|
21
18
|
}
|
|
22
19
|
export declare function useSnackMessage(): UseSnackMessageReturn;
|
|
23
20
|
export {};
|
|
@@ -3,49 +3,34 @@ import { useSnackbar } from "notistack";
|
|
|
3
3
|
import { useIntlRef } from "./useIntlRef.js";
|
|
4
4
|
function useSnackMessage() {
|
|
5
5
|
const intlRef = useIntlRef();
|
|
6
|
-
const { enqueueSnackbar } = useSnackbar();
|
|
7
|
-
const
|
|
8
|
-
(snackInputs) =>
|
|
6
|
+
const { enqueueSnackbar, closeSnackbar: closeSnackbar2 } = useSnackbar();
|
|
7
|
+
const enqueue = useCallback(
|
|
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
|
+
},
|
|
9
19
|
[enqueueSnackbar, intlRef]
|
|
10
20
|
);
|
|
21
|
+
const snackError = useCallback(
|
|
22
|
+
(snackInputs) => enqueue(snackInputs, "error"),
|
|
23
|
+
[enqueue]
|
|
24
|
+
);
|
|
11
25
|
const snackWarning = useCallback(
|
|
12
|
-
(snackInputs) =>
|
|
13
|
-
|
|
14
|
-
intlRef,
|
|
15
|
-
enqueueSnackbar,
|
|
16
|
-
"warning",
|
|
17
|
-
true
|
|
18
|
-
),
|
|
19
|
-
[enqueueSnackbar, intlRef]
|
|
26
|
+
(snackInputs) => enqueue(snackInputs, "warning"),
|
|
27
|
+
[enqueue]
|
|
20
28
|
);
|
|
21
29
|
const snackInfo = useCallback(
|
|
22
|
-
(snackInputs) =>
|
|
23
|
-
[
|
|
24
|
-
);
|
|
25
|
-
return { snackError, snackInfo, snackWarning };
|
|
26
|
-
}
|
|
27
|
-
function makeSnackbar(snackInputs, intlRef, enqueueSnackbar, level, persistent) {
|
|
28
|
-
const message = checkAndTranslateIfNecessary(
|
|
29
|
-
intlRef,
|
|
30
|
-
snackInputs.messageTxt,
|
|
31
|
-
snackInputs.messageId,
|
|
32
|
-
snackInputs.messageValues
|
|
33
|
-
);
|
|
34
|
-
const header = checkAndTranslateIfNecessary(
|
|
35
|
-
intlRef,
|
|
36
|
-
snackInputs.headerTxt,
|
|
37
|
-
snackInputs.headerId,
|
|
38
|
-
snackInputs.headerValues
|
|
30
|
+
(snackInputs) => enqueue(snackInputs, "info"),
|
|
31
|
+
[enqueue]
|
|
39
32
|
);
|
|
40
|
-
|
|
41
|
-
displayMessageWithSnackbar(
|
|
42
|
-
message,
|
|
43
|
-
header,
|
|
44
|
-
enqueueSnackbar,
|
|
45
|
-
level,
|
|
46
|
-
persistent
|
|
47
|
-
);
|
|
48
|
-
}
|
|
33
|
+
return { snackError, snackInfo, snackWarning, closeSnackbar: closeSnackbar2 };
|
|
49
34
|
}
|
|
50
35
|
function checkAndTranslateIfNecessary(intlRef, txt, id, values) {
|
|
51
36
|
checkInputs(txt, id, values);
|
|
@@ -61,7 +46,19 @@ function checkInputs(txt, id, values) {
|
|
|
61
46
|
console.warn("Snack inputs should be [*Txt] OR [*Id, *Values]");
|
|
62
47
|
}
|
|
63
48
|
}
|
|
64
|
-
function
|
|
49
|
+
function makeMessage(intlRef, snackInputs) {
|
|
50
|
+
const message = checkAndTranslateIfNecessary(
|
|
51
|
+
intlRef,
|
|
52
|
+
snackInputs.messageTxt,
|
|
53
|
+
snackInputs.messageId,
|
|
54
|
+
snackInputs.messageValues
|
|
55
|
+
);
|
|
56
|
+
const header = checkAndTranslateIfNecessary(
|
|
57
|
+
intlRef,
|
|
58
|
+
snackInputs.headerTxt,
|
|
59
|
+
snackInputs.headerId,
|
|
60
|
+
snackInputs.headerValues
|
|
61
|
+
);
|
|
65
62
|
let fullMessage = "";
|
|
66
63
|
if (header) {
|
|
67
64
|
fullMessage += header;
|
|
@@ -72,11 +69,7 @@ function displayMessageWithSnackbar(message, header, enqueueSnackbar, level, per
|
|
|
72
69
|
}
|
|
73
70
|
fullMessage += message;
|
|
74
71
|
}
|
|
75
|
-
|
|
76
|
-
variant: level,
|
|
77
|
-
persist: persistent,
|
|
78
|
-
style: { whiteSpace: "pre-line" }
|
|
79
|
-
});
|
|
72
|
+
return fullMessage;
|
|
80
73
|
}
|
|
81
74
|
export {
|
|
82
75
|
useSnackMessage
|