@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,195 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import Grid$1 from "@mui/material/Grid";
|
|
3
|
-
import { useMemo, useEffect } from "react";
|
|
4
|
-
import { useWatch, useFieldArray } from "react-hook-form";
|
|
5
|
-
import { FormattedMessage } from "react-intl";
|
|
6
|
-
import { Line, Hvdc, Substation, Load, Generator, TwoWindingTransfo, Battery, ShuntCompensator, VoltageLevel } from "../utils/equipment-types.js";
|
|
7
|
-
import { areArrayElementsUnique } from "../utils/functions.js";
|
|
8
|
-
import { FieldConstants } from "../utils/field-constants.js";
|
|
9
|
-
import "../utils/yup-config.js";
|
|
10
|
-
import ErrorInput from "../components/inputs/react-hook-form/error-management/error-input.js";
|
|
11
|
-
import FieldErrorAlert from "../components/inputs/react-hook-form/error-management/field-error-alert.js";
|
|
12
|
-
import { Grid, ListItem, Button } from "@mui/material";
|
|
13
|
-
import FilterProperty, { PROPERTY_NAME, PROPERTY_VALUES_1, PROPERTY_VALUES_2, PROPERTY_VALUES } from "../components/filter/criteria-based/filter-property.js";
|
|
14
|
-
import { usePredefinedProperties } from "../hooks/predefined-properties-hook.js";
|
|
15
|
-
import { FilterType } from "../components/filter/constants/filter-constants.js";
|
|
16
|
-
import * as yup from "yup";
|
|
17
|
-
import AddIcon from "@mui/icons-material/Add";
|
|
18
|
-
const FilterFreeProperties = ({
|
|
19
|
-
freePropertiesType,
|
|
20
|
-
predefined
|
|
21
|
-
}) => {
|
|
22
|
-
const watchEquipmentType = useWatch({
|
|
23
|
-
name: FieldConstants.EQUIPMENT_TYPE
|
|
24
|
-
});
|
|
25
|
-
const isForLineOrHvdcLineSubstation = (watchEquipmentType === Line.type || watchEquipmentType === Hvdc.type) && freePropertiesType === FreePropertiesTypes.SUBSTATION_FILTER_PROPERTIES;
|
|
26
|
-
const fieldName = `${FieldConstants.CRITERIA_BASED}.${freePropertiesType}`;
|
|
27
|
-
const {
|
|
28
|
-
fields: filterProperties,
|
|
29
|
-
// don't use it to access form data ! check doc,
|
|
30
|
-
append,
|
|
31
|
-
remove
|
|
32
|
-
} = useFieldArray({
|
|
33
|
-
name: fieldName
|
|
34
|
-
});
|
|
35
|
-
function addNewProp() {
|
|
36
|
-
if (isForLineOrHvdcLineSubstation) {
|
|
37
|
-
append({
|
|
38
|
-
[PROPERTY_NAME]: null,
|
|
39
|
-
[PROPERTY_VALUES_1]: [],
|
|
40
|
-
[PROPERTY_VALUES_2]: []
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
append({ [PROPERTY_NAME]: null, [PROPERTY_VALUES]: [] });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const valuesFields = isForLineOrHvdcLineSubstation ? [
|
|
47
|
-
{ name: PROPERTY_VALUES_1, label: "PropertyValues1" },
|
|
48
|
-
{ name: PROPERTY_VALUES_2, label: "PropertyValues2" }
|
|
49
|
-
] : [{ name: PROPERTY_VALUES, label: "PropertyValues" }];
|
|
50
|
-
const title = useMemo(() => {
|
|
51
|
-
return freePropertiesType === FreePropertiesTypes.FREE_FILTER_PROPERTIES ? "FreeProps" : "SubstationFreeProps";
|
|
52
|
-
}, [freePropertiesType]);
|
|
53
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
54
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(FormattedMessage, { id: title, children: (title2) => /* @__PURE__ */ jsx("h4", { children: title2 }) }) }),
|
|
55
|
-
filterProperties.map((prop, index) => /* @__PURE__ */ jsx(ListItem, { children: /* @__PURE__ */ jsx(
|
|
56
|
-
FilterProperty,
|
|
57
|
-
{
|
|
58
|
-
index,
|
|
59
|
-
valuesFields,
|
|
60
|
-
predefined,
|
|
61
|
-
handleDelete: remove,
|
|
62
|
-
propertyType: freePropertiesType
|
|
63
|
-
}
|
|
64
|
-
) }, prop.id)),
|
|
65
|
-
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Button, { startIcon: /* @__PURE__ */ jsx(AddIcon, {}), onClick: addNewProp, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "AddFreePropCrit" }) }) }),
|
|
66
|
-
/* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(ErrorInput, { name: fieldName, InputField: FieldErrorAlert }) })
|
|
67
|
-
] });
|
|
68
|
-
};
|
|
69
|
-
var FreePropertiesTypes = /* @__PURE__ */ ((FreePropertiesTypes2) => {
|
|
70
|
-
FreePropertiesTypes2["SUBSTATION_FILTER_PROPERTIES"] = "substationFreeProperties";
|
|
71
|
-
FreePropertiesTypes2["FREE_FILTER_PROPERTIES"] = "freeProperties";
|
|
72
|
-
return FreePropertiesTypes2;
|
|
73
|
-
})(FreePropertiesTypes || {});
|
|
74
|
-
function propertyValuesTest(values, context, doublePropertyValues) {
|
|
75
|
-
const rootLevelForm = context.from[context.from.length - 1];
|
|
76
|
-
const filterType = rootLevelForm.value[FieldConstants.FILTER_TYPE];
|
|
77
|
-
if (filterType !== FilterType.CRITERIA_BASED.id) {
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
const equipmentType = rootLevelForm.value[FieldConstants.EQUIPMENT_TYPE];
|
|
81
|
-
const isForLineOrHvdcLine = equipmentType === Line.type || equipmentType === Hvdc.type;
|
|
82
|
-
if (doublePropertyValues) {
|
|
83
|
-
return isForLineOrHvdcLine ? (values == null ? void 0 : values.length) > 0 : true;
|
|
84
|
-
} else {
|
|
85
|
-
return isForLineOrHvdcLine ? true : (values == null ? void 0 : values.length) > 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
const filterPropertiesYupSchema = {
|
|
89
|
-
[
|
|
90
|
-
"substationFreeProperties"
|
|
91
|
-
/* SUBSTATION_FILTER_PROPERTIES */
|
|
92
|
-
]: yup.array().of(
|
|
93
|
-
yup.object().shape({
|
|
94
|
-
[PROPERTY_NAME]: yup.string().required(),
|
|
95
|
-
[PROPERTY_VALUES]: yup.array().of(yup.string()).test(
|
|
96
|
-
"can not be empty if not line",
|
|
97
|
-
"YupRequired",
|
|
98
|
-
(values, context) => propertyValuesTest(values, context, false)
|
|
99
|
-
),
|
|
100
|
-
[PROPERTY_VALUES_1]: yup.array().of(yup.string()).test(
|
|
101
|
-
"can not be empty if line",
|
|
102
|
-
"YupRequired",
|
|
103
|
-
(values, context) => propertyValuesTest(values, context, true)
|
|
104
|
-
),
|
|
105
|
-
[PROPERTY_VALUES_2]: yup.array().of(yup.string()).test(
|
|
106
|
-
"can not be empty if line",
|
|
107
|
-
"YupRequired",
|
|
108
|
-
(values, context) => propertyValuesTest(values, context, true)
|
|
109
|
-
)
|
|
110
|
-
})
|
|
111
|
-
).test(
|
|
112
|
-
"distinct names",
|
|
113
|
-
"filterPropertiesNameUniquenessError",
|
|
114
|
-
(properties, context) => {
|
|
115
|
-
const rootLevelForm = context.from[context.from.length - 1];
|
|
116
|
-
const filterType = rootLevelForm.value[FieldConstants.FILTER_TYPE];
|
|
117
|
-
if (filterType !== FilterType.CRITERIA_BASED.id) {
|
|
118
|
-
return true;
|
|
119
|
-
}
|
|
120
|
-
const names = properties.filter((prop) => !!prop[PROPERTY_NAME]).map((prop) => prop[PROPERTY_NAME]);
|
|
121
|
-
return areArrayElementsUnique(names);
|
|
122
|
-
}
|
|
123
|
-
),
|
|
124
|
-
[
|
|
125
|
-
"freeProperties"
|
|
126
|
-
/* FREE_FILTER_PROPERTIES */
|
|
127
|
-
]: yup.array().of(
|
|
128
|
-
yup.object().shape({
|
|
129
|
-
[PROPERTY_NAME]: yup.string().required(),
|
|
130
|
-
[PROPERTY_VALUES]: yup.array().of(yup.string()).test(
|
|
131
|
-
"can not be empty if not line",
|
|
132
|
-
"YupRequired",
|
|
133
|
-
(values, context) => propertyValuesTest(values, context, false)
|
|
134
|
-
)
|
|
135
|
-
})
|
|
136
|
-
).test(
|
|
137
|
-
"distinct names",
|
|
138
|
-
"filterPropertiesNameUniquenessError",
|
|
139
|
-
(properties, context) => {
|
|
140
|
-
const rootLevelForm = context.from[context.from.length - 1];
|
|
141
|
-
const filterType = rootLevelForm.value[FieldConstants.FILTER_TYPE];
|
|
142
|
-
if (filterType !== FilterType.CRITERIA_BASED.id) {
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
const names = properties.filter((prop) => !!prop[PROPERTY_NAME]).map((prop) => prop[PROPERTY_NAME]);
|
|
146
|
-
return areArrayElementsUnique(names);
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
};
|
|
150
|
-
const FilterProperties = () => {
|
|
151
|
-
const watchEquipmentType = useWatch({
|
|
152
|
-
name: FieldConstants.EQUIPMENT_TYPE
|
|
153
|
-
});
|
|
154
|
-
const [equipmentPredefinedProps, setEquipmentType] = usePredefinedProperties(watchEquipmentType);
|
|
155
|
-
const [substationPredefinedProps, setSubstationType] = usePredefinedProperties(null);
|
|
156
|
-
const displayEquipmentProperties = useMemo(() => {
|
|
157
|
-
return watchEquipmentType === Substation.type || watchEquipmentType === Load.type || watchEquipmentType === Generator.type || watchEquipmentType === Line.type || watchEquipmentType === TwoWindingTransfo.type || watchEquipmentType === Battery.type || watchEquipmentType === ShuntCompensator.type || watchEquipmentType === VoltageLevel.type;
|
|
158
|
-
}, [watchEquipmentType]);
|
|
159
|
-
const displaySubstationProperties = useMemo(() => {
|
|
160
|
-
return watchEquipmentType !== Substation.type && watchEquipmentType !== null;
|
|
161
|
-
}, [watchEquipmentType]);
|
|
162
|
-
useEffect(() => {
|
|
163
|
-
if (displayEquipmentProperties) {
|
|
164
|
-
setEquipmentType(watchEquipmentType);
|
|
165
|
-
}
|
|
166
|
-
}, [displayEquipmentProperties, watchEquipmentType, setEquipmentType]);
|
|
167
|
-
useEffect(() => {
|
|
168
|
-
if (displaySubstationProperties) {
|
|
169
|
-
setSubstationType(Substation.type);
|
|
170
|
-
}
|
|
171
|
-
}, [displaySubstationProperties, setSubstationType]);
|
|
172
|
-
return watchEquipmentType && /* @__PURE__ */ jsx(Grid$1, { item: true, container: true, spacing: 1, children: /* @__PURE__ */ jsxs(Grid$1, { item: true, xs: 12, children: [
|
|
173
|
-
/* @__PURE__ */ jsx(FormattedMessage, { id: "FreePropsCrit", children: (txt) => /* @__PURE__ */ jsx("h3", { children: txt }) }),
|
|
174
|
-
displayEquipmentProperties && /* @__PURE__ */ jsx(
|
|
175
|
-
FilterFreeProperties,
|
|
176
|
-
{
|
|
177
|
-
freePropertiesType: "freeProperties",
|
|
178
|
-
predefined: equipmentPredefinedProps
|
|
179
|
-
}
|
|
180
|
-
),
|
|
181
|
-
displaySubstationProperties && /* @__PURE__ */ jsx(
|
|
182
|
-
FilterFreeProperties,
|
|
183
|
-
{
|
|
184
|
-
freePropertiesType: "substationFreeProperties",
|
|
185
|
-
predefined: substationPredefinedProps
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
] }) });
|
|
189
|
-
};
|
|
190
|
-
export {
|
|
191
|
-
FreePropertiesTypes as F,
|
|
192
|
-
FilterProperties as a,
|
|
193
|
-
FilterFreeProperties as b,
|
|
194
|
-
filterPropertiesYupSchema as f
|
|
195
|
-
};
|
package/dist/redux/actions.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
};
|
|
File without changes
|
|
File without changes
|