@gridsuite/commons-ui 0.62.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +21 -20
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +15 -13
- package/dist/components/AuthenticationRouter/index.d.ts +4 -7
- package/dist/components/AuthenticationRouter/index.js +2 -2
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +0 -1
- package/dist/components/CardErrorBoundary/card-error-boundary.js +5 -3
- package/dist/components/CardErrorBoundary/index.d.ts +3 -7
- package/dist/components/CardErrorBoundary/index.js +2 -2
- package/dist/components/CustomAGGrid/custom-aggrid.js +1 -1
- package/dist/components/CustomAGGrid/custom-aggrid.style.js +5 -5
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +2 -3
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +108 -105
- package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +1 -1
- package/dist/components/ElementSearchDialog/element-search-dialog.js +2 -2
- package/dist/components/ElementSearchDialog/element-search-input.d.ts +1 -1
- package/dist/components/ElementSearchDialog/element-search-input.js +4 -6
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +3 -3
- package/dist/components/ElementSearchDialog/equipment-item.js +13 -13
- package/dist/components/ElementSearchDialog/index.d.ts +3 -3
- package/dist/components/ElementSearchDialog/index.js +5 -5
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +11 -12
- package/dist/components/ElementSearchDialog/tag-renderer.js +5 -6
- package/dist/components/ElementSearchDialog/use-element-search.d.ts +2 -2
- package/dist/components/ElementSearchDialog/use-element-search.js +2 -2
- package/dist/components/ExpandableGroup/expandable-group.d.ts +3 -3
- package/dist/components/ExpandableGroup/expandable-group.js +6 -6
- package/dist/components/ExpandableGroup/index.d.ts +3 -7
- package/dist/components/ExpandableGroup/index.js +2 -2
- package/dist/components/FlatParameters/FlatParameters.d.ts +1 -1
- package/dist/components/FlatParameters/FlatParameters.js +46 -46
- package/dist/components/FlatParameters/index.d.ts +3 -7
- package/dist/components/Login/Login.d.ts +1 -7
- package/dist/components/Login/Login.js +3 -9
- package/dist/components/Login/Logout.d.ts +1 -1
- package/dist/components/Login/Logout.js +11 -11
- package/dist/components/Login/index.d.ts +3 -7
- package/dist/components/Login/index.js +2 -2
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +9 -8
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +24 -9
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +200 -205
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +6 -6
- package/dist/components/MuiVirtualizedTable/index.d.ts +2 -2
- package/dist/components/MuiVirtualizedTable/index.js +3 -3
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +1 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +5 -15
- package/dist/components/MultipleSelectionDialog/index.d.ts +3 -7
- package/dist/components/MultipleSelectionDialog/index.js +2 -2
- package/dist/components/OverflowableText/index.d.ts +3 -7
- package/dist/components/OverflowableText/overflowable-text.js +2 -2
- package/dist/components/ReportViewer/filter-button.d.ts +1 -1
- package/dist/components/ReportViewer/filter-button.js +3 -3
- package/dist/components/ReportViewer/index.d.ts +3 -7
- package/dist/components/ReportViewer/index.js +2 -2
- package/dist/components/ReportViewer/log-report-item.d.ts +1 -1
- package/dist/components/ReportViewer/log-report-item.js +12 -9
- package/dist/components/ReportViewer/log-report.js +3 -3
- package/dist/components/ReportViewer/log-table.d.ts +2 -1
- package/dist/components/ReportViewer/log-table.js +6 -5
- package/dist/components/ReportViewer/multi-select-list.d.ts +1 -1
- package/dist/components/ReportViewer/multi-select-list.js +3 -3
- package/dist/components/ReportViewer/report-item.js +4 -3
- package/dist/components/ReportViewer/report-viewer.js +11 -12
- package/dist/components/ReportViewerDialog/index.d.ts +3 -7
- package/dist/components/ReportViewerDialog/index.js +2 -2
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +2 -2
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +3 -3
- package/dist/components/SignInCallbackHandler/index.d.ts +3 -7
- package/dist/components/SignInCallbackHandler/index.js +2 -2
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +2 -2
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.js +3 -3
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +3 -7
- package/dist/components/SilentRenewCallbackHandler/index.js +2 -2
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +1 -1
- package/dist/components/SnackbarProvider/SnackbarProvider.js +14 -13
- package/dist/components/SnackbarProvider/index.d.ts +3 -7
- package/dist/components/SnackbarProvider/index.js +2 -2
- package/dist/components/TopBar/AboutDialog.d.ts +2 -3
- package/dist/components/TopBar/AboutDialog.js +151 -153
- package/dist/components/TopBar/GridLogo.d.ts +2 -2
- package/dist/components/TopBar/GridLogo.js +24 -24
- package/dist/components/TopBar/TopBar.d.ts +5 -29
- package/dist/components/TopBar/TopBar.js +9 -33
- package/dist/components/TopBar/index.d.ts +1 -1
- package/dist/components/TopBar/index.js +1 -1
- package/dist/components/TreeViewFinder/TreeViewFinder.js +51 -45
- package/dist/components/TreeViewFinder/index.d.ts +1 -1
- package/dist/components/TreeViewFinder/index.js +1 -1
- package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -2
- package/dist/components/dialogs/custom-mui-dialog.js +5 -5
- package/dist/components/dialogs/description-modification-dialog.d.ts +7 -3
- package/dist/components/dialogs/description-modification-dialog.js +11 -5
- package/dist/components/dialogs/modify-element-selection.d.ts +1 -2
- package/dist/components/dialogs/modify-element-selection.js +21 -13
- package/dist/components/dialogs/popup-confirmation-dialog.d.ts +7 -3
- package/dist/components/dialogs/popup-confirmation-dialog.js +3 -6
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +4 -5
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +123 -16
- package/dist/components/filter/criteria-based/criteria-based-filter-form.d.ts +1 -2
- package/dist/components/filter/criteria-based/criteria-based-filter-form.js +6 -5
- package/dist/components/filter/criteria-based/criteria-based-filter-utils.js +27 -20
- package/dist/components/filter/criteria-based/criteria-based-form.d.ts +1 -2
- package/dist/components/filter/criteria-based/criteria-based-form.js +17 -6
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +5 -3
- package/dist/components/filter/criteria-based/filter-free-properties.js +69 -13
- package/dist/components/filter/criteria-based/filter-properties.d.ts +1 -6
- package/dist/components/filter/criteria-based/filter-properties.js +124 -16
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -2
- package/dist/components/filter/criteria-based/filter-property.js +16 -16
- package/dist/components/filter/expert/expert-filter-constants.d.ts +1 -1
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +3 -4
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +128 -15
- package/dist/components/filter/expert/expert-filter-form.d.ts +1 -2
- package/dist/components/filter/expert/expert-filter-form.js +141 -20
- package/dist/components/filter/expert/expert-filter-utils.d.ts +2 -2
- package/dist/components/filter/expert/expert-filter-utils.js +45 -46
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +3 -4
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +136 -16
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.d.ts +4 -5
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +241 -24
- package/dist/components/filter/filter-creation-dialog.d.ts +3 -4
- package/dist/components/filter/filter-creation-dialog.js +125 -13
- package/dist/components/filter/filter-form.d.ts +4 -5
- package/dist/components/filter/filter-form.js +73 -14
- package/dist/components/filter/utils/filter-api.js +1 -1
- package/dist/components/filter/utils/filter-form-utils.js +1 -1
- package/dist/components/inputs/react-hook-form/ExpandingTextField.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ExpandingTextField.js +5 -5
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +102 -13
- package/dist/components/inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.d.ts +7 -6
- package/dist/components/inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.js +13 -15
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.d.ts +7 -3
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +220 -61
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +243 -11
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +4 -2
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js +12 -12
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js +2 -2
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +2 -2
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +3 -3
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/switch-input.js +3 -3
- package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +11 -3
- package/dist/components/inputs/react-hook-form/directory-items-input.js +11 -11
- package/dist/components/inputs/react-hook-form/error-management/error-input.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/error-input.js +7 -9
- package/dist/components/inputs/react-hook-form/error-management/field-error-alert.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/field-error-alert.js +2 -4
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.js +2 -2
- package/dist/components/inputs/react-hook-form/numbers/float-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/numbers/float-input.js +6 -5
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/numbers/integer-input.js +5 -5
- package/dist/components/inputs/react-hook-form/provider/custom-form-provider.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/provider/custom-form-provider.js +11 -8
- package/dist/components/inputs/react-hook-form/provider/use-custom-form-context.d.ts +2 -1
- package/dist/components/inputs/react-hook-form/provider/use-custom-form-context.js +1 -1
- package/dist/components/inputs/react-hook-form/radio-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/radio-input.js +2 -8
- package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/range-input.js +5 -5
- package/dist/components/inputs/react-hook-form/raw-read-only-input.d.ts +2 -1
- package/dist/components/inputs/react-hook-form/raw-read-only-input.js +1 -1
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.d.ts +1 -3
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +4 -8
- package/dist/components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.d.ts +3 -1
- package/dist/components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js +4 -4
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.js +11 -10
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.js +16 -8
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/slider-input.js +6 -6
- package/dist/components/inputs/react-hook-form/text-input.d.ts +6 -2
- package/dist/components/inputs/react-hook-form/text-input.js +9 -9
- package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +4 -6
- package/dist/components/inputs/react-hook-form/unique-name-input.js +12 -12
- package/dist/components/inputs/react-hook-form/utils/cancel-button.d.ts +9 -10
- package/dist/components/inputs/react-hook-form/utils/cancel-button.js +2 -6
- package/dist/components/inputs/react-hook-form/utils/field-label.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/utils/field-label.js +3 -3
- package/dist/components/inputs/react-hook-form/utils/functions.js +1 -1
- package/dist/components/inputs/react-hook-form/utils/submit-button.d.ts +9 -10
- package/dist/components/inputs/react-hook-form/utils/submit-button.js +2 -6
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -2
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.js +7 -7
- package/dist/components/inputs/react-query-builder/add-button.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/add-button.js +13 -10
- package/dist/components/inputs/react-query-builder/combinator-selector.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/combinator-selector.js +7 -6
- package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/composite-rule-editor/group-value-editor.js +2 -2
- package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/composite-rule-editor/rule-value-editor.js +5 -5
- package/dist/components/inputs/react-query-builder/country-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/country-value-editor.js +18 -18
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +92 -19
- package/dist/components/inputs/react-query-builder/element-value-editor.d.ts +7 -3
- package/dist/components/inputs/react-query-builder/element-value-editor.js +50 -62
- package/dist/components/inputs/react-query-builder/property-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/property-value-editor.js +5 -5
- package/dist/components/inputs/react-query-builder/remove-button.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/remove-button.js +26 -7
- package/dist/components/inputs/react-query-builder/text-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/text-value-editor.js +17 -17
- package/dist/components/inputs/react-query-builder/translated-value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/translated-value-editor.js +22 -26
- package/dist/components/inputs/react-query-builder/value-editor.d.ts +1 -2
- package/dist/components/inputs/react-query-builder/value-editor.js +119 -18
- package/dist/components/inputs/react-query-builder/value-selector.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/value-selector.js +2 -2
- package/dist/components/inputs/select-clearable.d.ts +1 -2
- package/dist/components/inputs/select-clearable.js +6 -5
- package/dist/components/translations/card-error-boundary-en.d.ts +2 -2
- package/dist/components/translations/card-error-boundary-en.js +2 -2
- package/dist/components/translations/card-error-boundary-fr.d.ts +2 -2
- package/dist/components/translations/card-error-boundary-fr.js +2 -2
- package/dist/components/translations/common-button-en.d.ts +2 -2
- package/dist/components/translations/common-button-en.js +2 -2
- package/dist/components/translations/common-button-fr.d.ts +2 -2
- package/dist/components/translations/common-button-fr.js +2 -2
- package/dist/components/translations/directory-items-input-en.d.ts +2 -2
- package/dist/components/translations/directory-items-input-en.js +2 -2
- package/dist/components/translations/directory-items-input-fr.d.ts +2 -2
- package/dist/components/translations/directory-items-input-fr.js +2 -2
- package/dist/components/translations/element-search-en.d.ts +2 -2
- package/dist/components/translations/element-search-en.js +2 -2
- package/dist/components/translations/element-search-fr.d.ts +2 -2
- package/dist/components/translations/element-search-fr.js +2 -2
- package/dist/components/translations/equipment-search-en.d.ts +2 -2
- package/dist/components/translations/equipment-search-en.js +2 -2
- package/dist/components/translations/equipment-search-fr.d.ts +2 -2
- package/dist/components/translations/equipment-search-fr.js +2 -2
- package/dist/components/translations/filter-en.d.ts +3 -2
- package/dist/components/translations/filter-en.js +3 -2
- package/dist/components/translations/filter-expert-en.d.ts +2 -2
- package/dist/components/translations/filter-expert-en.js +2 -2
- package/dist/components/translations/filter-expert-fr.d.ts +2 -2
- package/dist/components/translations/filter-expert-fr.js +2 -2
- package/dist/components/translations/filter-fr.d.ts +3 -2
- package/dist/components/translations/filter-fr.js +3 -2
- package/dist/components/translations/flat-parameters-en.d.ts +2 -2
- package/dist/components/translations/flat-parameters-en.js +2 -2
- package/dist/components/translations/flat-parameters-fr.d.ts +2 -2
- package/dist/components/translations/flat-parameters-fr.js +2 -2
- package/dist/components/translations/inputs-en.d.ts +2 -2
- package/dist/components/translations/inputs-en.js +2 -2
- package/dist/components/translations/inputs-fr.d.ts +2 -2
- package/dist/components/translations/inputs-fr.js +2 -2
- package/dist/components/translations/login-en.d.ts +2 -2
- package/dist/components/translations/login-en.js +2 -2
- package/dist/components/translations/login-fr.d.ts +2 -2
- package/dist/components/translations/login-fr.js +2 -2
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +2 -2
- package/dist/components/translations/multiple-selection-dialog-en.js +2 -2
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +2 -2
- package/dist/components/translations/multiple-selection-dialog-fr.js +2 -2
- package/dist/components/translations/report-viewer-en.d.ts +2 -2
- package/dist/components/translations/report-viewer-en.js +2 -2
- package/dist/components/translations/report-viewer-fr.d.ts +2 -2
- package/dist/components/translations/report-viewer-fr.js +2 -2
- package/dist/components/translations/table-en.d.ts +2 -2
- package/dist/components/translations/table-en.js +2 -2
- package/dist/components/translations/table-fr.d.ts +2 -2
- package/dist/components/translations/table-fr.js +2 -2
- package/dist/components/translations/top-bar-en.d.ts +2 -2
- package/dist/components/translations/top-bar-en.js +2 -2
- package/dist/components/translations/top-bar-fr.d.ts +2 -2
- package/dist/components/translations/top-bar-fr.js +2 -2
- package/dist/components/translations/treeview-finder-en.d.ts +2 -2
- package/dist/components/translations/treeview-finder-en.js +2 -2
- package/dist/components/translations/treeview-finder-fr.d.ts +2 -2
- package/dist/components/translations/treeview-finder-fr.js +2 -2
- package/dist/hooks/localized-countries-hook.js +1 -1
- package/dist/hooks/predefined-properties-hook.d.ts +2 -1
- package/dist/hooks/predefined-properties-hook.js +2 -2
- package/dist/hooks/useDebounce.d.ts +2 -1
- package/dist/hooks/useDebounce.js +1 -1
- package/dist/hooks/useIntlRef.d.ts +2 -1
- package/dist/hooks/useIntlRef.js +1 -1
- package/dist/hooks/useSnackMessage.d.ts +2 -2
- package/dist/hooks/useSnackMessage.js +36 -36
- package/dist/index.d.ts +19 -16
- package/dist/index.js +164 -158
- package/dist/redux/authActions.d.ts +56 -0
- package/dist/redux/commonStore.d.ts +4 -3
- package/dist/redux/commonStore.js +2 -1
- package/dist/services/apps-metadata.js +1 -1
- package/dist/services/directory.js +6 -6
- package/dist/services/explore.js +14 -12
- package/dist/services/index.d.ts +0 -5
- package/dist/services/study.js +2 -2
- package/dist/services/utils.d.ts +1 -1
- package/dist/services/utils.js +26 -26
- package/dist/utils/AuthService.d.ts +9 -8
- package/dist/utils/AuthService.js +77 -76
- package/dist/utils/ElementIcon.d.ts +3 -2
- package/dist/utils/ElementIcon.js +4 -3
- package/dist/utils/ElementType.d.ts +3 -6
- package/dist/utils/EquipmentType.js +3 -3
- package/dist/utils/FetchStatus.d.ts +2 -1
- package/dist/utils/FetchStatus.js +1 -1
- package/dist/utils/Metadata.d.ts +15 -0
- package/dist/utils/Metadata.js +1 -0
- package/dist/utils/UserManagerMock.d.ts +50 -25
- package/dist/utils/UserManagerMock.js +118 -11
- package/dist/utils/algos.d.ts +2 -1
- package/dist/utils/algos.js +2 -2
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +2 -1
- package/dist/utils/equipment-types-for-predefined-properties-mapper.js +3 -1
- package/dist/utils/field-constants.d.ts +2 -1
- package/dist/utils/field-constants.js +1 -1
- package/dist/utils/functions.js +5 -2
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/yup-config.js +1 -2
- package/package.json +10 -4
- package/dist/chunks/criteria-based-filter-edition-dialog.CAT38SvB.js +0 -1694
- package/dist/chunks/filter-properties.B7-q_yPf.js +0 -195
- package/dist/redux/actions.d.ts +0 -54
- /package/dist/assets/{criteria-based-filter-edition-dialog.css → expert-filter-form.css} +0 -0
- /package/dist/redux/{actions.js → authActions.js} +0 -0
|
@@ -1,34 +1,59 @@
|
|
|
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
|
-
declare class Events {
|
|
1
|
+
import { MetadataService, SigninRequest, SigninResponse, SignoutRequest, SignoutResponse, User, UserManager, UserManagerEvents, UserManagerSettings } from 'oidc-client';
|
|
2
|
+
|
|
3
|
+
declare class Events implements UserManagerEvents {
|
|
8
4
|
userLoadedCallbacks: ((data: any) => void)[];
|
|
9
5
|
addUserLoaded(callback: (data: any) => void): void;
|
|
10
6
|
addSilentRenewError(callback: (data: any) => void): void;
|
|
7
|
+
load(): void;
|
|
8
|
+
unload(): void;
|
|
9
|
+
removeUserLoaded(): void;
|
|
10
|
+
addUserUnloaded(): void;
|
|
11
|
+
removeUserUnloaded(): void;
|
|
12
|
+
removeSilentRenewError(): void;
|
|
13
|
+
addUserSignedIn(): void;
|
|
14
|
+
removeUserSignedIn(): void;
|
|
15
|
+
addUserSignedOut(): void;
|
|
16
|
+
removeUserSignedOut(): void;
|
|
17
|
+
addUserSessionChanged(): void;
|
|
18
|
+
removeUserSessionChanged(): void;
|
|
19
|
+
addAccessTokenExpiring(): void;
|
|
20
|
+
removeAccessTokenExpiring(): void;
|
|
21
|
+
addAccessTokenExpired(): void;
|
|
22
|
+
removeAccessTokenExpired(): void;
|
|
11
23
|
}
|
|
12
|
-
export
|
|
13
|
-
settings:
|
|
24
|
+
export default class UserManagerMock implements UserManager {
|
|
25
|
+
settings: UserManagerSettings;
|
|
14
26
|
events: Events;
|
|
15
|
-
user:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
email: string;
|
|
19
|
-
};
|
|
20
|
-
id_token: string;
|
|
21
|
-
session_state: string;
|
|
22
|
-
access_token: string;
|
|
23
|
-
token_type: string;
|
|
24
|
-
scope: string;
|
|
25
|
-
};
|
|
26
|
-
constructor(settings: unknown);
|
|
27
|
+
user: User;
|
|
28
|
+
readonly metadataService: MetadataService;
|
|
29
|
+
constructor(settings: UserManagerSettings);
|
|
27
30
|
getUser(): Promise<any>;
|
|
28
|
-
signinSilent(): Promise<
|
|
31
|
+
signinSilent(): Promise<User>;
|
|
29
32
|
signinSilentCallback(): Promise<never>;
|
|
30
|
-
signinRedirect(): Promise<
|
|
31
|
-
signoutRedirect(): Promise<
|
|
32
|
-
signinRedirectCallback(): Promise<
|
|
33
|
+
signinRedirect(): Promise<void>;
|
|
34
|
+
signoutRedirect(): Promise<void>;
|
|
35
|
+
signinRedirectCallback(): Promise<User>;
|
|
36
|
+
clearStaleState(): Promise<void>;
|
|
37
|
+
storeUser(): Promise<void>;
|
|
38
|
+
removeUser(): Promise<void>;
|
|
39
|
+
signinPopup(): Promise<User>;
|
|
40
|
+
signinPopupCallback(): Promise<undefined>;
|
|
41
|
+
signoutRedirectCallback(): Promise<SignoutResponse>;
|
|
42
|
+
signoutPopup(): Promise<void>;
|
|
43
|
+
signoutPopupCallback(): Promise<void>;
|
|
44
|
+
signinCallback(): Promise<User>;
|
|
45
|
+
signoutCallback(): Promise<undefined>;
|
|
46
|
+
querySessionStatus(): Promise<{
|
|
47
|
+
session_state: string;
|
|
48
|
+
sub: string;
|
|
49
|
+
sid: undefined;
|
|
50
|
+
}>;
|
|
51
|
+
revokeAccessToken(): Promise<void>;
|
|
52
|
+
startSilentRenew(): Promise<void>;
|
|
53
|
+
stopSilentRenew(): Promise<void>;
|
|
54
|
+
createSigninRequest(): Promise<SigninRequest>;
|
|
55
|
+
processSigninResponse(): Promise<SigninResponse>;
|
|
56
|
+
createSignoutRequest(): Promise<SignoutRequest>;
|
|
57
|
+
processSignoutResponse(): Promise<SignoutResponse>;
|
|
33
58
|
}
|
|
34
59
|
export {};
|
|
@@ -5,22 +5,71 @@ class Events {
|
|
|
5
5
|
addUserLoaded(callback) {
|
|
6
6
|
this.userLoadedCallbacks.push(callback);
|
|
7
7
|
}
|
|
8
|
+
// eslint-disable-next-line
|
|
8
9
|
addSilentRenewError(callback) {
|
|
9
10
|
}
|
|
11
|
+
load() {
|
|
12
|
+
}
|
|
13
|
+
unload() {
|
|
14
|
+
}
|
|
15
|
+
removeUserLoaded() {
|
|
16
|
+
}
|
|
17
|
+
addUserUnloaded() {
|
|
18
|
+
}
|
|
19
|
+
removeUserUnloaded() {
|
|
20
|
+
}
|
|
21
|
+
removeSilentRenewError() {
|
|
22
|
+
}
|
|
23
|
+
addUserSignedIn() {
|
|
24
|
+
}
|
|
25
|
+
removeUserSignedIn() {
|
|
26
|
+
}
|
|
27
|
+
addUserSignedOut() {
|
|
28
|
+
}
|
|
29
|
+
removeUserSignedOut() {
|
|
30
|
+
}
|
|
31
|
+
addUserSessionChanged() {
|
|
32
|
+
}
|
|
33
|
+
removeUserSessionChanged() {
|
|
34
|
+
}
|
|
35
|
+
addAccessTokenExpiring() {
|
|
36
|
+
}
|
|
37
|
+
removeAccessTokenExpiring() {
|
|
38
|
+
}
|
|
39
|
+
addAccessTokenExpired() {
|
|
40
|
+
}
|
|
41
|
+
removeAccessTokenExpired() {
|
|
42
|
+
}
|
|
10
43
|
}
|
|
11
44
|
class UserManagerMock {
|
|
12
45
|
constructor(settings) {
|
|
13
46
|
this.user = {
|
|
14
|
-
profile: {
|
|
47
|
+
profile: {
|
|
48
|
+
name: "John Doe",
|
|
49
|
+
email: "Jhon.Doe@rte-france.com",
|
|
50
|
+
iss: "",
|
|
51
|
+
sub: "",
|
|
52
|
+
aud: "",
|
|
53
|
+
exp: Number.MAX_SAFE_INTEGER,
|
|
54
|
+
iat: 0
|
|
55
|
+
},
|
|
15
56
|
id_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IllNRUxIVDBndmIwbXhvU0RvWWZvbWpxZmpZVSJ9.eyJ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opes",
|
|
61
|
+
scopes: ["scopes"],
|
|
62
|
+
expires_at: Number.MAX_SAFE_INTEGER,
|
|
63
|
+
expires_in: Number.MAX_SAFE_INTEGER,
|
|
64
|
+
expired: false,
|
|
65
|
+
state: null,
|
|
66
|
+
toStorageString: () => "Mock of UserManager"
|
|
20
67
|
};
|
|
68
|
+
this.metadataService = null;
|
|
21
69
|
this.settings = settings;
|
|
22
70
|
this.events = new Events();
|
|
23
71
|
}
|
|
72
|
+
// eslint-disable-next-line class-methods-use-this
|
|
24
73
|
getUser() {
|
|
25
74
|
return Promise.resolve(
|
|
26
75
|
JSON.parse(
|
|
@@ -28,23 +77,22 @@ class UserManagerMock {
|
|
|
28
77
|
)
|
|
29
78
|
);
|
|
30
79
|
}
|
|
31
|
-
signinSilent() {
|
|
80
|
+
async signinSilent() {
|
|
32
81
|
console.info("signinSilent..............");
|
|
33
82
|
const localStorageUser = JSON.parse(
|
|
34
83
|
localStorage.getItem("powsybl-gridsuite-mock-user") ?? "null"
|
|
35
84
|
);
|
|
36
85
|
if (localStorageUser === null) {
|
|
37
|
-
|
|
38
|
-
new Error("End-User authentication required")
|
|
39
|
-
);
|
|
86
|
+
throw new Error("End-User authentication required");
|
|
40
87
|
}
|
|
41
88
|
sessionStorage.setItem(
|
|
42
89
|
"powsybl-gridsuite-mock-user",
|
|
43
90
|
JSON.stringify(localStorageUser)
|
|
44
91
|
);
|
|
45
92
|
this.events.userLoadedCallbacks.forEach((c) => c(localStorageUser));
|
|
46
|
-
return
|
|
93
|
+
return localStorageUser;
|
|
47
94
|
}
|
|
95
|
+
// eslint-disable-next-line class-methods-use-this
|
|
48
96
|
signinSilentCallback() {
|
|
49
97
|
console.error(
|
|
50
98
|
"Unsupported, iframe signinSilentCallback in UserManagerMock (dev mode)"
|
|
@@ -57,13 +105,14 @@ class UserManagerMock {
|
|
|
57
105
|
JSON.stringify(this.user)
|
|
58
106
|
);
|
|
59
107
|
window.location.href = "./sign-in-callback";
|
|
60
|
-
return Promise.resolve(
|
|
108
|
+
return Promise.resolve();
|
|
61
109
|
}
|
|
110
|
+
// eslint-disable-next-line class-methods-use-this
|
|
62
111
|
signoutRedirect() {
|
|
63
112
|
sessionStorage.removeItem("powsybl-gridsuite-mock-user");
|
|
64
113
|
localStorage.removeItem("powsybl-gridsuite-mock-user");
|
|
65
114
|
window.location.href = ".";
|
|
66
|
-
return Promise.resolve(
|
|
115
|
+
return Promise.resolve();
|
|
67
116
|
}
|
|
68
117
|
signinRedirectCallback() {
|
|
69
118
|
sessionStorage.setItem(
|
|
@@ -71,9 +120,67 @@ class UserManagerMock {
|
|
|
71
120
|
JSON.stringify(this.user)
|
|
72
121
|
);
|
|
73
122
|
this.events.userLoadedCallbacks.forEach((c) => c(this.user));
|
|
74
|
-
return Promise.resolve(
|
|
123
|
+
return Promise.resolve(this.user);
|
|
124
|
+
}
|
|
125
|
+
clearStaleState() {
|
|
126
|
+
return Promise.resolve();
|
|
127
|
+
}
|
|
128
|
+
storeUser() {
|
|
129
|
+
return Promise.resolve();
|
|
130
|
+
}
|
|
131
|
+
removeUser() {
|
|
132
|
+
return Promise.resolve();
|
|
133
|
+
}
|
|
134
|
+
signinPopup() {
|
|
135
|
+
return Promise.resolve(this.user);
|
|
136
|
+
}
|
|
137
|
+
signinPopupCallback() {
|
|
138
|
+
return Promise.resolve(void 0);
|
|
139
|
+
}
|
|
140
|
+
signoutRedirectCallback() {
|
|
141
|
+
return Promise.resolve({});
|
|
142
|
+
}
|
|
143
|
+
signoutPopup() {
|
|
144
|
+
return Promise.resolve();
|
|
145
|
+
}
|
|
146
|
+
signoutPopupCallback() {
|
|
147
|
+
return Promise.resolve();
|
|
148
|
+
}
|
|
149
|
+
signinCallback() {
|
|
150
|
+
return Promise.resolve(this.user);
|
|
151
|
+
}
|
|
152
|
+
signoutCallback() {
|
|
153
|
+
return Promise.resolve(void 0);
|
|
154
|
+
}
|
|
155
|
+
querySessionStatus() {
|
|
156
|
+
return Promise.resolve({
|
|
157
|
+
session_state: "",
|
|
158
|
+
sub: "",
|
|
159
|
+
sid: void 0
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
revokeAccessToken() {
|
|
163
|
+
return Promise.resolve();
|
|
164
|
+
}
|
|
165
|
+
startSilentRenew() {
|
|
166
|
+
return Promise.resolve();
|
|
167
|
+
}
|
|
168
|
+
stopSilentRenew() {
|
|
169
|
+
return Promise.resolve();
|
|
170
|
+
}
|
|
171
|
+
createSigninRequest() {
|
|
172
|
+
return Promise.resolve({});
|
|
173
|
+
}
|
|
174
|
+
processSigninResponse() {
|
|
175
|
+
return Promise.resolve({});
|
|
176
|
+
}
|
|
177
|
+
createSignoutRequest() {
|
|
178
|
+
return Promise.resolve({});
|
|
179
|
+
}
|
|
180
|
+
processSignoutResponse() {
|
|
181
|
+
return Promise.resolve({});
|
|
75
182
|
}
|
|
76
183
|
}
|
|
77
184
|
export {
|
|
78
|
-
UserManagerMock
|
|
185
|
+
UserManagerMock as default
|
|
79
186
|
};
|
package/dist/utils/algos.d.ts
CHANGED
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
declare function equalsArray(a: Array<any>, b: Array<any>): boolean;
|
|
8
|
+
export default equalsArray;
|
package/dist/utils/algos.js
CHANGED
|
@@ -8,7 +8,7 @@ function equalsArray(a, b) {
|
|
|
8
8
|
if (a.length !== b.length) {
|
|
9
9
|
return false;
|
|
10
10
|
}
|
|
11
|
-
for (
|
|
11
|
+
for (let i = 0, l = a.length; i < l; i++) {
|
|
12
12
|
if (a[i] instanceof Array && b[i] instanceof Array) {
|
|
13
13
|
if (!equalsArray(a[i], b[i])) {
|
|
14
14
|
return false;
|
|
@@ -20,5 +20,5 @@ function equalsArray(a, b) {
|
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
equalsArray
|
|
23
|
+
equalsArray as default
|
|
24
24
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { EquipmentType } from './types';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare const mapEquipmentTypeForPredefinedProperties: (type: EquipmentType) => string | undefined;
|
|
4
|
+
export default mapEquipmentTypeForPredefinedProperties;
|
|
@@ -24,8 +24,10 @@ const mapEquipmentTypeForPredefinedProperties = (type) => {
|
|
|
24
24
|
case "STATIC_VAR_COMPENSATOR":
|
|
25
25
|
case "VSC_CONVERTER_STATION":
|
|
26
26
|
return void 0;
|
|
27
|
+
default:
|
|
28
|
+
return void 0;
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
export {
|
|
30
|
-
mapEquipmentTypeForPredefinedProperties
|
|
32
|
+
mapEquipmentTypeForPredefinedProperties as default
|
|
31
33
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
declare enum FieldConstants {
|
|
8
8
|
ID = "id",
|
|
9
9
|
NAME = "name",
|
|
10
10
|
FILTER_TYPE = "filterType",
|
|
@@ -43,3 +43,4 @@ export declare enum FieldConstants {
|
|
|
43
43
|
PROPERTY_VALUES = "propertyValues",
|
|
44
44
|
PROPERTY_OPERATOR = "propertyOperator"
|
|
45
45
|
}
|
|
46
|
+
export default FieldConstants;
|
package/dist/utils/functions.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
function keyGenerator() {
|
|
2
2
|
let key = 1;
|
|
3
|
-
return () =>
|
|
3
|
+
return () => {
|
|
4
|
+
key += 1;
|
|
5
|
+
return key;
|
|
6
|
+
};
|
|
4
7
|
}
|
|
5
8
|
const areArrayElementsUnique = (array) => {
|
|
6
|
-
|
|
9
|
+
const uniqueValues = [...new Set(array)];
|
|
7
10
|
return uniqueValues.length === array.length;
|
|
8
11
|
};
|
|
9
12
|
const isObjectEmpty = (object) => object && Object.keys(object).length === 0;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type ElementAttributes = {
|
|
|
21
21
|
specificMetadata: Record<string, object>;
|
|
22
22
|
uploading?: boolean;
|
|
23
23
|
};
|
|
24
|
-
export type Equipment = typeof Substation | typeof Line | typeof Generator | typeof Load | typeof Battery | typeof SVC | typeof DanglingLine | typeof LCC | typeof VSC | typeof Hvdc | typeof BusBar | typeof TwoWindingTransfo | typeof ThreeWindingTransfo | typeof ShuntCompensator | typeof VoltageLevel
|
|
24
|
+
export type Equipment = typeof Substation | typeof Line | typeof Generator | typeof Load | typeof Battery | typeof SVC | typeof DanglingLine | typeof LCC | typeof VSC | typeof Hvdc | typeof BusBar | typeof TwoWindingTransfo | typeof ThreeWindingTransfo | typeof ShuntCompensator | typeof VoltageLevel;
|
|
25
25
|
export type EquipmentType = {
|
|
26
26
|
[Type in Equipment['type']]: Type;
|
|
27
27
|
}[Equipment['type']];
|
package/dist/utils/yup-config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
5
|
"engines": {
|
|
6
6
|
"npm": ">=9",
|
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
"uuid": "^9.0.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
+
"@mui/system": "^5.15.15",
|
|
49
|
+
"@mui/x-tree-view": "^6.17.0",
|
|
50
|
+
"papaparse": "^5.4.1",
|
|
48
51
|
"@emotion/react": "^11.11.4",
|
|
49
52
|
"@emotion/styled": "^11.11.0",
|
|
50
53
|
"@hookform/resolvers": "^3.3.4",
|
|
@@ -71,10 +74,10 @@
|
|
|
71
74
|
"@emotion/react": "^11.11.4",
|
|
72
75
|
"@emotion/styled": "^11.11.5",
|
|
73
76
|
"@hookform/resolvers": "^3.3.4",
|
|
77
|
+
"@jest/globals": "^29.7.0",
|
|
74
78
|
"@mui/icons-material": "^5.15.14",
|
|
75
79
|
"@mui/lab": "5.0.0-alpha.169",
|
|
76
80
|
"@mui/material": "^5.15.14",
|
|
77
|
-
"@mui/x-tree-view": "^6.17.0",
|
|
78
81
|
"@react-hook/window-size": "^3.1.1",
|
|
79
82
|
"@types/autosuggest-highlight": "^3.2.3",
|
|
80
83
|
"@types/eslint": "^8.56.7",
|
|
@@ -90,15 +93,18 @@
|
|
|
90
93
|
"@types/react-virtualized": "^9.21.29",
|
|
91
94
|
"@types/utf-8-validate": "^5.0.2",
|
|
92
95
|
"@types/uuid": "^9.0.8",
|
|
93
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
94
|
-
"@typescript-eslint/parser": "^
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
97
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
95
98
|
"@vitejs/plugin-react": "^4.2.1",
|
|
96
99
|
"ag-grid-community": "^31.0.0",
|
|
97
100
|
"ag-grid-react": "^31.2.0",
|
|
98
101
|
"babel-eslint": "^10.1.0",
|
|
102
|
+
"babel-preset-airbnb": "^5.0.0",
|
|
99
103
|
"babel-preset-vite": "^1.1.3",
|
|
100
104
|
"bufferutil": "^4.0.8",
|
|
101
105
|
"eslint": "^8.57.0",
|
|
106
|
+
"eslint-config-airbnb": "^19.0.0",
|
|
107
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
102
108
|
"eslint-config-prettier": "^9.1.0",
|
|
103
109
|
"eslint-config-react-app": "^7.0.1",
|
|
104
110
|
"eslint-plugin-flowtype": "^8.0.3",
|