@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
package/dist/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as default2 } from "./components/TreeViewFinder/TreeViewFinder.js";
|
|
2
2
|
import { DARK_THEME, LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM, LIGHT_THEME, default as default3 } from "./components/TopBar/TopBar.js";
|
|
3
|
-
import "
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "@mui/material";
|
|
5
|
+
import "@mui/icons-material";
|
|
6
|
+
import { mergeSx } from "./utils/styles.js";
|
|
4
7
|
import { default as default4 } from "./components/TopBar/AboutDialog.js";
|
|
5
8
|
import { default as default5 } from "./components/SnackbarProvider/SnackbarProvider.js";
|
|
6
9
|
import { default as default6 } from "./components/AuthenticationRouter/AuthenticationRouter.js";
|
|
@@ -15,100 +18,111 @@ import { FlatParameters } from "./components/FlatParameters/FlatParameters.js";
|
|
|
15
18
|
import { default as default11 } from "./components/MultipleSelectionDialog/MultipleSelectionDialog.js";
|
|
16
19
|
import { default as default12 } from "./components/dialogs/custom-mui-dialog.js";
|
|
17
20
|
import { default as default13 } from "./components/dialogs/description-modification-dialog.js";
|
|
18
|
-
import { default as default14 } from "./components/
|
|
19
|
-
import { default as default15 } from "./components/
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, noSelectionForCopy } from "./
|
|
23
|
-
import { FieldConstants } from "./
|
|
21
|
+
import { default as default14 } from "./components/dialogs/modify-element-selection.js";
|
|
22
|
+
import { default as default15 } from "./components/filter/criteria-based/criteria-based-form.js";
|
|
23
|
+
import { default as default16 } from "./components/dialogs/popup-confirmation-dialog.js";
|
|
24
|
+
import { B, b, c, C, E, a, F, R } from "./chunks/criteria-based-filter-edition-dialog.p2pUWzxc.js";
|
|
25
|
+
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, noSelectionForCopy } from "./utils/equipment-types.js";
|
|
26
|
+
import { FieldConstants } from "./utils/field-constants.js";
|
|
24
27
|
import { GRIDSUITE_DEFAULT_PRECISION, isBlankOrEmpty, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, unitToMicroUnit } from "./utils/conversion-utils.js";
|
|
25
28
|
import { ElementType } from "./utils/ElementType.js";
|
|
26
29
|
import { EQUIPMENT_TYPE, EquipmentType, equipmentStyles, getEquipmentsInfosForSearchBar } from "./utils/EquipmentType.js";
|
|
27
30
|
import { dispatchUser, getPreLoginPath, initializeAuthenticationDev, initializeAuthenticationProd, logout } from "./utils/AuthService.js";
|
|
28
31
|
import { getFileIcon } from "./utils/ElementIcon.js";
|
|
29
|
-
import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, setLoggedUser, setSignInCallbackError } from "./
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
32
|
+
import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, setLoggedUser, setSignInCallbackError } from "./redux/actions.js";
|
|
33
|
+
import { default as default17 } from "./components/translations/report-viewer-en.js";
|
|
34
|
+
import { default as default18 } from "./components/translations/report-viewer-fr.js";
|
|
35
|
+
import { default as default19 } from "./components/translations/login-en.js";
|
|
36
|
+
import { default as default20 } from "./components/translations/login-fr.js";
|
|
37
|
+
import { default as default21 } from "./components/translations/top-bar-en.js";
|
|
38
|
+
import { default as default22 } from "./components/translations/top-bar-fr.js";
|
|
39
|
+
import { default as default23 } from "./components/translations/table-en.js";
|
|
40
|
+
import { default as default24 } from "./components/translations/table-fr.js";
|
|
41
|
+
import { default as default25 } from "./components/translations/treeview-finder-en.js";
|
|
42
|
+
import { default as default26 } from "./components/translations/treeview-finder-fr.js";
|
|
43
|
+
import { default as default27 } from "./components/translations/element-search-en.js";
|
|
44
|
+
import { default as default28 } from "./components/translations/element-search-fr.js";
|
|
45
|
+
import { default as default29 } from "./components/translations/equipment-search-en.js";
|
|
46
|
+
import { default as default30 } from "./components/translations/equipment-search-fr.js";
|
|
47
|
+
import { default as default31 } from "./components/translations/filter-en.js";
|
|
48
|
+
import { default as default32 } from "./components/translations/filter-fr.js";
|
|
49
|
+
import { default as default33 } from "./components/translations/filter-expert-en.js";
|
|
50
|
+
import { default as default34 } from "./components/translations/filter-expert-fr.js";
|
|
51
|
+
import { default as default35 } from "./components/translations/card-error-boundary-en.js";
|
|
52
|
+
import { default as default36 } from "./components/translations/card-error-boundary-fr.js";
|
|
53
|
+
import { default as default37 } from "./components/translations/flat-parameters-en.js";
|
|
54
|
+
import { default as default38 } from "./components/translations/flat-parameters-fr.js";
|
|
55
|
+
import { default as default39 } from "./components/translations/multiple-selection-dialog-en.js";
|
|
56
|
+
import { default as default40 } from "./components/translations/multiple-selection-dialog-fr.js";
|
|
57
|
+
import { default as default41 } from "./components/translations/common-button-en.js";
|
|
58
|
+
import { default as default42 } from "./components/translations/common-button-fr.js";
|
|
59
|
+
import { default as default43 } from "./components/translations/directory-items-input-en.js";
|
|
60
|
+
import { default as default44 } from "./components/translations/directory-items-input-fr.js";
|
|
56
61
|
import { EquipmentItem } from "./components/ElementSearchDialog/equipment-item.js";
|
|
57
|
-
import { default as
|
|
62
|
+
import { default as default45 } from "./components/CardErrorBoundary/card-error-boundary.js";
|
|
58
63
|
import { useIntlRef } from "./hooks/useIntlRef.js";
|
|
59
64
|
import { useSnackMessage } from "./hooks/useSnackMessage.js";
|
|
60
65
|
import { useDebounce } from "./hooks/useDebounce.js";
|
|
61
|
-
import { default as
|
|
62
|
-
import { useCustomFormContext } from "./components/react-hook-form/provider/use-custom-form-context.js";
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/react-hook-form/utils/functions.js";
|
|
82
|
-
import { areArrayElementsUnique, isObjectEmpty, keyGenerator
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { RawReadOnlyInput } from "./components/react-hook-form/raw-read-only-input.js";
|
|
86
|
-
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/
|
|
87
|
-
import { DEFAULT_RANGE_VALUE, default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
66
|
+
import { default as default46 } from "./components/inputs/select-clearable.js";
|
|
67
|
+
import { useCustomFormContext } from "./components/inputs/react-hook-form/provider/use-custom-form-context.js";
|
|
68
|
+
import { default as default47 } from "./components/inputs/react-hook-form/provider/custom-form-provider.js";
|
|
69
|
+
import { default as default48 } from "./components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js";
|
|
70
|
+
import { default as default49 } from "./components/inputs/react-hook-form/text-input.js";
|
|
71
|
+
import { default as default50 } from "./components/inputs/react-hook-form/ExpandingTextField.js";
|
|
72
|
+
import { default as default51 } from "./components/inputs/react-hook-form/radio-input.js";
|
|
73
|
+
import { default as default52 } from "./components/inputs/react-hook-form/slider-input.js";
|
|
74
|
+
import { default as default53 } from "./components/inputs/react-hook-form/numbers/float-input.js";
|
|
75
|
+
import { default as default54 } from "./components/inputs/react-hook-form/numbers/integer-input.js";
|
|
76
|
+
import { default as default55 } from "./components/inputs/react-hook-form/select-inputs/select-input.js";
|
|
77
|
+
import { default as default56 } from "./components/inputs/react-hook-form/booleans/checkbox-input.js";
|
|
78
|
+
import { default as default57 } from "./components/inputs/react-hook-form/booleans/switch-input.js";
|
|
79
|
+
import { default as default58 } from "./components/inputs/react-hook-form/error-management/error-input.js";
|
|
80
|
+
import { default as default59 } from "./components/inputs/react-hook-form/error-management/field-error-alert.js";
|
|
81
|
+
import { default as default60 } from "./components/inputs/react-hook-form/error-management/mid-form-error.js";
|
|
82
|
+
import { default as default61 } from "./components/inputs/react-hook-form/utils/text-field-with-adornment.js";
|
|
83
|
+
import { default as default62 } from "./components/inputs/react-hook-form/utils/field-label.js";
|
|
84
|
+
import { default as default63 } from "./components/inputs/react-hook-form/utils/submit-button.js";
|
|
85
|
+
import { default as default64 } from "./components/inputs/react-hook-form/utils/cancel-button.js";
|
|
86
|
+
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/inputs/react-hook-form/utils/functions.js";
|
|
87
|
+
import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
88
|
+
import { default as default65 } from "./components/inputs/react-hook-form/directory-items-input.js";
|
|
89
|
+
import { default as default66 } from "./components/DirectoryItemSelector/directory-item-selector.js";
|
|
90
|
+
import { RawReadOnlyInput } from "./components/inputs/react-hook-form/raw-read-only-input.js";
|
|
91
|
+
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/filter-api.js";
|
|
92
|
+
import { DEFAULT_RANGE_VALUE, default as default67, getRangeInputDataForm, getRangeInputSchema } from "./components/inputs/react-hook-form/range-input.js";
|
|
93
|
+
import { default as default68 } from "./components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
94
|
+
import { default as default69 } from "./components/inputs/react-hook-form/select-inputs/mui-select-input.js";
|
|
95
|
+
import { default as default70 } from "./components/inputs/react-hook-form/select-inputs/countries-input.js";
|
|
96
|
+
import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from "./hooks/localized-countries-hook.js";
|
|
97
|
+
import { default as default71 } from "./components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
|
|
98
|
+
import { UniqueNameInput } from "./components/inputs/react-hook-form/unique-name-input.js";
|
|
93
99
|
import { UserManagerMock } from "./utils/UserManagerMock.js";
|
|
100
|
+
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./components/filter/utils/filter-form-utils.js";
|
|
101
|
+
import { getCriteriaBasedFormData, getCriteriaBasedSchema } from "./components/filter/criteria-based/criteria-based-filter-utils.js";
|
|
102
|
+
import { setCommonStore } from "./redux/commonStore.js";
|
|
103
|
+
import { backendFetch, backendFetchJson, getRequestParamFromList } from "./services/utils.js";
|
|
104
|
+
import { createFilter, fetchElementsInfos, saveFilter } from "./services/explore.js";
|
|
105
|
+
import { fetchAppsMetadata, fetchEnv, fetchStudyMetadata } from "./services/apps-metadata.js";
|
|
106
|
+
import { fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders } from "./services/directory.js";
|
|
107
|
+
import { exportFilter } from "./services/study.js";
|
|
94
108
|
export {
|
|
95
109
|
default4 as AboutDialog,
|
|
96
110
|
default6 as AuthenticationRouter,
|
|
97
|
-
|
|
111
|
+
default48 as AutocompleteInput,
|
|
98
112
|
Battery,
|
|
99
113
|
B as BottomRightButtons,
|
|
100
114
|
BusBar,
|
|
101
115
|
CHANGE_WAYS,
|
|
102
116
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
CountriesInput,
|
|
117
|
+
default64 as CancelButton,
|
|
118
|
+
default45 as CardErrorBoundary,
|
|
119
|
+
default56 as CheckboxInput,
|
|
120
|
+
default70 as CountriesInput,
|
|
107
121
|
b as CriteriaBasedFilterEditionDialog,
|
|
108
|
-
|
|
122
|
+
default15 as CriteriaBasedForm,
|
|
109
123
|
c as CsvUploader,
|
|
110
124
|
C as CustomAgGridTable,
|
|
111
|
-
|
|
125
|
+
default47 as CustomFormProvider,
|
|
112
126
|
default12 as CustomMuiDialog,
|
|
113
127
|
DARK_THEME,
|
|
114
128
|
DEFAULT_CELL_PADDING,
|
|
@@ -117,29 +131,29 @@ export {
|
|
|
117
131
|
DEFAULT_ROW_HEIGHT,
|
|
118
132
|
DanglingLine,
|
|
119
133
|
default13 as DescriptionModificationDialog,
|
|
120
|
-
|
|
121
|
-
|
|
134
|
+
default66 as DirectoryItemSelector,
|
|
135
|
+
default65 as DirectoryItemsInput,
|
|
122
136
|
EQUIPMENT_TYPE,
|
|
123
137
|
default10 as ElementSearchDialog,
|
|
124
138
|
ElementType,
|
|
125
139
|
EquipmentItem,
|
|
126
140
|
EquipmentType,
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
default58 as ErrorInput,
|
|
142
|
+
default50 as ExpandingTextField,
|
|
129
143
|
E as ExpertFilterEditionDialog,
|
|
130
144
|
a as ExplicitNamingFilterEditionDialog,
|
|
131
145
|
FILTER_EQUIPMENTS,
|
|
132
146
|
FieldConstants,
|
|
133
|
-
|
|
134
|
-
|
|
147
|
+
default59 as FieldErrorAlert,
|
|
148
|
+
default62 as FieldLabel,
|
|
135
149
|
F as FilterCreationDialog,
|
|
136
150
|
FlatParameters,
|
|
137
|
-
|
|
151
|
+
default53 as FloatInput,
|
|
138
152
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
139
153
|
Generator,
|
|
140
154
|
Hvdc,
|
|
141
|
-
|
|
142
|
-
|
|
155
|
+
default68 as InputWithPopupConfirmation,
|
|
156
|
+
default54 as IntegerInput,
|
|
143
157
|
KeyedColumnsRowIndexer,
|
|
144
158
|
LANG_ENGLISH,
|
|
145
159
|
LANG_FRENCH,
|
|
@@ -149,34 +163,35 @@ export {
|
|
|
149
163
|
LOGOUT_ERROR,
|
|
150
164
|
Line,
|
|
151
165
|
Load,
|
|
152
|
-
|
|
153
|
-
|
|
166
|
+
default60 as MidFormError,
|
|
167
|
+
default14 as ModifyElementSelection,
|
|
168
|
+
default69 as MuiSelectInput,
|
|
154
169
|
default7 as MuiVirtualizedTable,
|
|
155
|
-
|
|
170
|
+
default71 as MultipleAutocompleteInput,
|
|
156
171
|
default11 as MultipleSelectionDialog,
|
|
157
172
|
OverflowableText,
|
|
158
|
-
|
|
173
|
+
default16 as PopupConfirmationDialog,
|
|
159
174
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
160
175
|
R as ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
161
|
-
|
|
162
|
-
|
|
176
|
+
default51 as RadioInput,
|
|
177
|
+
default67 as RangeInput,
|
|
163
178
|
RawReadOnlyInput,
|
|
164
179
|
default8 as ReportViewer,
|
|
165
180
|
default9 as ReportViewerDialog,
|
|
166
181
|
SHOW_AUTH_INFO_LOGIN,
|
|
167
182
|
SIGNIN_CALLBACK_ERROR,
|
|
168
183
|
SVC,
|
|
169
|
-
|
|
170
|
-
|
|
184
|
+
default46 as SelectClearable,
|
|
185
|
+
default55 as SelectInput,
|
|
171
186
|
ShuntCompensator,
|
|
172
|
-
|
|
187
|
+
default52 as SliderInput,
|
|
173
188
|
default5 as SnackbarProvider,
|
|
174
|
-
|
|
189
|
+
default63 as SubmitButton,
|
|
175
190
|
Substation,
|
|
176
|
-
|
|
191
|
+
default57 as SwitchInput,
|
|
177
192
|
TagRenderer,
|
|
178
|
-
|
|
179
|
-
|
|
193
|
+
default61 as TextFieldWithAdornment,
|
|
194
|
+
default49 as TextInput,
|
|
180
195
|
ThreeWindingTransfo,
|
|
181
196
|
default3 as TopBar,
|
|
182
197
|
default2 as TreeViewFinder,
|
|
@@ -189,24 +204,38 @@ export {
|
|
|
189
204
|
VSC,
|
|
190
205
|
VoltageLevel,
|
|
191
206
|
areArrayElementsUnique,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
207
|
+
backendFetch,
|
|
208
|
+
backendFetchJson,
|
|
209
|
+
default35 as card_error_boundary_en,
|
|
210
|
+
default36 as card_error_boundary_fr,
|
|
211
|
+
default41 as common_button_en,
|
|
212
|
+
default42 as common_button_fr,
|
|
213
|
+
createFilter,
|
|
214
|
+
default43 as directory_items_input_en,
|
|
215
|
+
default44 as directory_items_input_fr,
|
|
198
216
|
dispatchUser,
|
|
199
|
-
|
|
200
|
-
|
|
217
|
+
default27 as element_search_en,
|
|
218
|
+
default28 as element_search_fr,
|
|
201
219
|
equipmentStyles,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
220
|
+
default29 as equipment_search_en,
|
|
221
|
+
default30 as equipment_search_fr,
|
|
222
|
+
exportFilter,
|
|
223
|
+
fetchAppsMetadata,
|
|
224
|
+
fetchDirectoryContent,
|
|
225
|
+
fetchDirectoryElementPath,
|
|
226
|
+
fetchElementsInfos,
|
|
227
|
+
fetchEnv,
|
|
228
|
+
fetchRootFolders,
|
|
229
|
+
fetchStudyMetadata,
|
|
230
|
+
default31 as filter_en,
|
|
231
|
+
default33 as filter_expert_en,
|
|
232
|
+
default34 as filter_expert_fr,
|
|
233
|
+
default32 as filter_fr,
|
|
234
|
+
default37 as flat_parameters_en,
|
|
235
|
+
default38 as flat_parameters_fr,
|
|
208
236
|
genHelperError,
|
|
209
237
|
genHelperPreviousValue,
|
|
238
|
+
getComputedLanguage,
|
|
210
239
|
getCriteriaBasedFormData,
|
|
211
240
|
getCriteriaBasedSchema,
|
|
212
241
|
getEquipmentsInfosForSearchBar,
|
|
@@ -214,6 +243,8 @@ export {
|
|
|
214
243
|
getPreLoginPath,
|
|
215
244
|
getRangeInputDataForm,
|
|
216
245
|
getRangeInputSchema,
|
|
246
|
+
getRequestParamFromList,
|
|
247
|
+
getSystemLanguage,
|
|
217
248
|
gridItem,
|
|
218
249
|
identity,
|
|
219
250
|
initializeAuthenticationDev,
|
|
@@ -223,33 +254,36 @@ export {
|
|
|
223
254
|
isFloatNumber,
|
|
224
255
|
isObjectEmpty,
|
|
225
256
|
keyGenerator,
|
|
226
|
-
|
|
227
|
-
|
|
257
|
+
default19 as login_en,
|
|
258
|
+
default20 as login_fr,
|
|
228
259
|
logout,
|
|
229
260
|
mergeSx,
|
|
230
261
|
microUnitToUnit,
|
|
231
|
-
|
|
232
|
-
|
|
262
|
+
default39 as multiple_selection_dialog_en,
|
|
263
|
+
default40 as multiple_selection_dialog_fr,
|
|
233
264
|
noSelectionForCopy,
|
|
234
|
-
|
|
235
|
-
|
|
265
|
+
default17 as report_viewer_en,
|
|
266
|
+
default18 as report_viewer_fr,
|
|
236
267
|
roundToDefaultPrecision,
|
|
237
268
|
roundToPrecision,
|
|
238
269
|
saveCriteriaBasedFilter,
|
|
239
270
|
saveExpertFilter,
|
|
240
271
|
saveExplicitNamingFilter,
|
|
272
|
+
saveFilter,
|
|
273
|
+
setCommonStore,
|
|
241
274
|
setLoggedUser,
|
|
242
275
|
setSignInCallbackError,
|
|
243
|
-
|
|
244
|
-
|
|
276
|
+
default23 as table_en,
|
|
277
|
+
default24 as table_fr,
|
|
245
278
|
toFloatOrNullValue,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
279
|
+
default21 as top_bar_en,
|
|
280
|
+
default22 as top_bar_fr,
|
|
281
|
+
default25 as treeview_finder_en,
|
|
282
|
+
default26 as treeview_finder_fr,
|
|
250
283
|
unitToMicroUnit,
|
|
251
284
|
useCustomFormContext,
|
|
252
285
|
useDebounce,
|
|
253
286
|
useIntlRef,
|
|
287
|
+
useLocalizedCountries,
|
|
254
288
|
useSnackMessage
|
|
255
289
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { User } from 'oidc-client';
|
|
2
|
+
|
|
3
|
+
export declare const USER = "USER";
|
|
4
|
+
export declare function setLoggedUser(user: User | null): {
|
|
5
|
+
type: string;
|
|
6
|
+
user: User | null;
|
|
7
|
+
};
|
|
8
|
+
export declare const SIGNIN_CALLBACK_ERROR = "SIGNIN_CALLBACK_ERROR";
|
|
9
|
+
export declare function setSignInCallbackError(signInCallbackError: string | null): {
|
|
10
|
+
type: string;
|
|
11
|
+
signInCallbackError: string | null;
|
|
12
|
+
};
|
|
13
|
+
export declare const UNAUTHORIZED_USER_INFO = "UNAUTHORIZED_USER_INFO";
|
|
14
|
+
export declare function setUnauthorizedUserInfo(userName: string | undefined, unauthorizedUserInfo: string): {
|
|
15
|
+
type: string;
|
|
16
|
+
authenticationRouterError: {
|
|
17
|
+
userName: string | undefined;
|
|
18
|
+
unauthorizedUserInfo: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const LOGOUT_ERROR = "LOGOUT_ERROR";
|
|
22
|
+
export declare function setLogoutError(userName: string | undefined, logoutError: {
|
|
23
|
+
error: Error;
|
|
24
|
+
}): {
|
|
25
|
+
type: string;
|
|
26
|
+
authenticationRouterError: {
|
|
27
|
+
userName: string | undefined;
|
|
28
|
+
logoutError: {
|
|
29
|
+
error: Error;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const USER_VALIDATION_ERROR = "USER_VALIDATION_ERROR";
|
|
34
|
+
export declare function setUserValidationError(userName: string | undefined, userValidationError: {
|
|
35
|
+
error: Error;
|
|
36
|
+
}): {
|
|
37
|
+
type: string;
|
|
38
|
+
authenticationRouterError: {
|
|
39
|
+
userName: string | undefined;
|
|
40
|
+
userValidationError: {
|
|
41
|
+
error: Error;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const RESET_AUTHENTICATION_ROUTER_ERROR = "RESET_AUTHENTICATION_ROUTER_ERROR";
|
|
46
|
+
export declare function resetAuthenticationRouterError(): {
|
|
47
|
+
type: string;
|
|
48
|
+
authenticationRouterError: null;
|
|
49
|
+
};
|
|
50
|
+
export declare const SHOW_AUTH_INFO_LOGIN = "SHOW_AUTH_INFO_LOGIN";
|
|
51
|
+
export declare function setShowAuthenticationRouterLogin(showAuthenticationRouterLogin: boolean): {
|
|
52
|
+
type: string;
|
|
53
|
+
showAuthenticationRouterLogin: boolean;
|
|
54
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from 'oidc-client';
|
|
2
|
+
|
|
3
|
+
interface CommonStore {
|
|
4
|
+
getState: () => {
|
|
5
|
+
user: User;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Set a copy of the reference to the store to be able to access it from this library.
|
|
10
|
+
* It's useful to get access to the user token outside of the React context in API files.
|
|
11
|
+
* NB : temporary solution before refactoring the token management in the whole gridsuite stack.
|
|
12
|
+
*/
|
|
13
|
+
export declare function setCommonStore(store: CommonStore): void;
|
|
14
|
+
export declare function getUserToken(): string | undefined;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PredefinedProperties } from '../utils/types';
|
|
2
|
+
|
|
3
|
+
export type Url = string | URL;
|
|
4
|
+
export type Env = {
|
|
5
|
+
appsMetadataServerUrl?: Url;
|
|
6
|
+
mapBoxToken?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function fetchEnv(): Promise<Env>;
|
|
9
|
+
export type CommonMetadata = {
|
|
10
|
+
name: string;
|
|
11
|
+
url: Url;
|
|
12
|
+
appColor: string;
|
|
13
|
+
hiddenInAppsMenu: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type StudyMetadata = CommonMetadata & {
|
|
16
|
+
readonly name: 'Study';
|
|
17
|
+
resources?: {
|
|
18
|
+
types: string[];
|
|
19
|
+
path: string;
|
|
20
|
+
}[];
|
|
21
|
+
predefinedEquipmentProperties?: {
|
|
22
|
+
[networkElementType: string]: PredefinedProperties;
|
|
23
|
+
};
|
|
24
|
+
defaultParametersValues?: {
|
|
25
|
+
fluxConvention?: string;
|
|
26
|
+
enableDeveloperMode?: string;
|
|
27
|
+
mapManualRefresh?: string;
|
|
28
|
+
};
|
|
29
|
+
defaultCountry?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function fetchAppsMetadata(): Promise<CommonMetadata[]>;
|
|
32
|
+
export declare function fetchStudyMetadata(): Promise<StudyMetadata>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
async function fetchEnv() {
|
|
2
|
+
return (await fetch("env.json")).json();
|
|
3
|
+
}
|
|
4
|
+
async function fetchAppsMetadata() {
|
|
5
|
+
console.info(`Fetching apps and urls...`);
|
|
6
|
+
const env = await fetchEnv();
|
|
7
|
+
const res = await fetch(env.appsMetadataServerUrl + "/apps-metadata.json");
|
|
8
|
+
return res.json();
|
|
9
|
+
}
|
|
10
|
+
const isStudyMetadata = (metadata) => {
|
|
11
|
+
return metadata.name === "Study";
|
|
12
|
+
};
|
|
13
|
+
async function fetchStudyMetadata() {
|
|
14
|
+
console.info(`Fetching study metadata...`);
|
|
15
|
+
const studyMetadata = (await fetchAppsMetadata()).filter(isStudyMetadata);
|
|
16
|
+
if (!studyMetadata) {
|
|
17
|
+
throw new Error("Study entry could not be found in metadata");
|
|
18
|
+
} else {
|
|
19
|
+
return studyMetadata[0];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
fetchAppsMetadata,
|
|
24
|
+
fetchEnv,
|
|
25
|
+
fetchStudyMetadata
|
|
26
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ElementAttributes } from '../utils/types';
|
|
2
|
+
import { UUID } from 'crypto';
|
|
3
|
+
|
|
4
|
+
export declare function fetchRootFolders(types: string[]): Promise<ElementAttributes[]>;
|
|
5
|
+
export declare function fetchDirectoryContent(directoryUuid: UUID, types?: string[]): Promise<ElementAttributes[]>;
|
|
6
|
+
export declare function fetchDirectoryElementPath(elementUuid: UUID): Promise<ElementAttributes[]>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getRequestParamFromList, backendFetchJson } from "./utils.js";
|
|
2
|
+
const PREFIX_DIRECTORY_SERVER_QUERIES = "api/gateway/directory";
|
|
3
|
+
function fetchRootFolders(types) {
|
|
4
|
+
console.info("Fetching Root Directories");
|
|
5
|
+
const urlSearchParams = getRequestParamFromList(
|
|
6
|
+
types,
|
|
7
|
+
"elementTypes"
|
|
8
|
+
).toString();
|
|
9
|
+
const fetchRootFoldersUrl = `${PREFIX_DIRECTORY_SERVER_QUERIES}/v1/root-directories?${urlSearchParams}`;
|
|
10
|
+
return backendFetchJson(fetchRootFoldersUrl, {
|
|
11
|
+
method: "get",
|
|
12
|
+
headers: { "Content-Type": "application/json" }
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function fetchDirectoryContent(directoryUuid, types) {
|
|
16
|
+
console.info("Fetching Folder content '%s'", directoryUuid);
|
|
17
|
+
const urlSearchParams = getRequestParamFromList(
|
|
18
|
+
types,
|
|
19
|
+
"elementTypes"
|
|
20
|
+
).toString();
|
|
21
|
+
let fetchDirectoryContentUrl = `${PREFIX_DIRECTORY_SERVER_QUERIES}/v1/directories/${directoryUuid}/elements${urlSearchParams ? "?" + urlSearchParams : ""}`;
|
|
22
|
+
return backendFetchJson(fetchDirectoryContentUrl, {
|
|
23
|
+
method: "get",
|
|
24
|
+
headers: { "Content-Type": "application/json" }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function fetchDirectoryElementPath(elementUuid) {
|
|
28
|
+
console.info(`Fetching element '${elementUuid}' and its parents info ...`);
|
|
29
|
+
const fetchPathUrl = `${PREFIX_DIRECTORY_SERVER_QUERIES}/v1/elements/${encodeURIComponent(
|
|
30
|
+
elementUuid
|
|
31
|
+
)}/path`;
|
|
32
|
+
console.debug(fetchPathUrl);
|
|
33
|
+
return backendFetchJson(fetchPathUrl, {
|
|
34
|
+
method: "get",
|
|
35
|
+
headers: { "Content-Type": "application/json" }
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
fetchDirectoryContent,
|
|
40
|
+
fetchDirectoryElementPath,
|
|
41
|
+
fetchRootFolders
|
|
42
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ElementAttributes } from '../utils/types';
|
|
2
|
+
import { UUID } from 'crypto';
|
|
3
|
+
|
|
4
|
+
export declare function createFilter(newFilter: any, name: string, description: string, parentDirectoryUuid?: UUID, token?: string): Promise<any>;
|
|
5
|
+
export declare function saveFilter(filter: any, name: string, token?: string): Promise<any>;
|
|
6
|
+
export declare function fetchElementsInfos(ids: UUID[], elementTypes?: string[], equipmentTypes?: string[]): Promise<ElementAttributes[]>;
|