@gridsuite/commons-ui 0.62.0 → 0.63.1
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 +8 -1
- package/dist/components/filter/expert/expert-filter-constants.js +7 -0
- 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 +2 -2
- package/dist/components/filter/expert/expert-filter-form.js +115 -20
- package/dist/components/filter/expert/expert-filter-utils.d.ts +2 -2
- package/dist/components/filter/expert/expert-filter-utils.js +58 -46
- package/dist/components/filter/expert/expert-filter.type.d.ts +4 -0
- 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/usePrevious.d.ts +2 -0
- package/dist/hooks/usePrevious.js +12 -0
- package/dist/hooks/useSnackMessage.d.ts +2 -2
- package/dist/hooks/useSnackMessage.js +36 -36
- package/dist/index.d.ts +27 -16
- package/dist/index.js +183 -159
- 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,16 +1,75 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "../
|
|
12
|
-
import "
|
|
13
|
-
import "../inputs/react-hook-form/ExpandingTextField.js";
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import { useFormContext, useWatch } from "react-hook-form";
|
|
4
|
+
import { Grid } from "@mui/material";
|
|
5
|
+
import FieldConstants from "../../utils/field-constants.js";
|
|
6
|
+
import CriteriaBasedFilterForm from "./criteria-based/criteria-based-filter-form.js";
|
|
7
|
+
import ExplicitNamingFilterForm from "./explicit-naming/explicit-naming-filter-form.js";
|
|
8
|
+
import ExpertFilterForm from "./expert/expert-filter-form.js";
|
|
9
|
+
import { FilterType } from "./constants/filter-constants.js";
|
|
10
|
+
import ExpandableGroup from "../ExpandableGroup/expandable-group.js";
|
|
11
|
+
import RadioInput from "../inputs/react-hook-form/radio-input.js";
|
|
12
|
+
import { ElementType } from "../../utils/ElementType.js";
|
|
13
|
+
import ExpandingTextField from "../inputs/react-hook-form/ExpandingTextField.js";
|
|
14
|
+
import UniqueNameInput from "../inputs/react-hook-form/unique-name-input.js";
|
|
15
|
+
function FilterForm(props) {
|
|
16
|
+
const {
|
|
17
|
+
sourceFilterForExplicitNamingConversion,
|
|
18
|
+
creation,
|
|
19
|
+
activeDirectory,
|
|
20
|
+
elementExists
|
|
21
|
+
} = props;
|
|
22
|
+
const { setValue } = useFormContext();
|
|
23
|
+
const filterType = useWatch({ name: FieldConstants.FILTER_TYPE });
|
|
24
|
+
const handleChange = (_event, value) => {
|
|
25
|
+
setValue(FieldConstants.FILTER_TYPE, value);
|
|
26
|
+
};
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (sourceFilterForExplicitNamingConversion) {
|
|
29
|
+
setValue(FieldConstants.FILTER_TYPE, FilterType.EXPLICIT_NAMING.id);
|
|
30
|
+
}
|
|
31
|
+
}, [sourceFilterForExplicitNamingConversion, setValue]);
|
|
32
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(
|
|
34
|
+
UniqueNameInput,
|
|
35
|
+
{
|
|
36
|
+
name: FieldConstants.NAME,
|
|
37
|
+
label: "nameProperty",
|
|
38
|
+
elementType: ElementType.FILTER,
|
|
39
|
+
autoFocus: creation,
|
|
40
|
+
activeDirectory,
|
|
41
|
+
elementExists
|
|
42
|
+
}
|
|
43
|
+
) }),
|
|
44
|
+
creation && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(ExpandableGroup, { renderHeader: "Description", children: /* @__PURE__ */ jsx(
|
|
46
|
+
ExpandingTextField,
|
|
47
|
+
{
|
|
48
|
+
name: FieldConstants.DESCRIPTION,
|
|
49
|
+
label: "descriptionProperty",
|
|
50
|
+
minRows: 3,
|
|
51
|
+
rows: 5
|
|
52
|
+
}
|
|
53
|
+
) }) }),
|
|
54
|
+
!sourceFilterForExplicitNamingConversion && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
55
|
+
RadioInput,
|
|
56
|
+
{
|
|
57
|
+
name: FieldConstants.FILTER_TYPE,
|
|
58
|
+
options: Object.values(FilterType),
|
|
59
|
+
formProps: { onChange: handleChange }
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
|
+
] }),
|
|
63
|
+
filterType === FilterType.CRITERIA_BASED.id && /* @__PURE__ */ jsx(CriteriaBasedFilterForm, {}),
|
|
64
|
+
filterType === FilterType.EXPLICIT_NAMING.id && /* @__PURE__ */ jsx(
|
|
65
|
+
ExplicitNamingFilterForm,
|
|
66
|
+
{
|
|
67
|
+
sourceFilterForExplicitNamingConversion
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
filterType === FilterType.EXPERT.id && /* @__PURE__ */ jsx(ExpertFilterForm, {})
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
14
73
|
export {
|
|
15
|
-
|
|
74
|
+
FilterForm as default
|
|
16
75
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import FieldConstants from "../../../utils/field-constants.js";
|
|
2
2
|
import { frontToBackTweak } from "../criteria-based/criteria-based-filter-utils.js";
|
|
3
3
|
import { Generator, Load } from "../../../utils/equipment-types.js";
|
|
4
4
|
import { exportExpertRules } from "../expert/expert-filter-utils.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import FieldConstants from "../../../utils/field-constants.js";
|
|
2
2
|
import RangeInput from "../../inputs/react-hook-form/range-input.js";
|
|
3
3
|
import CountriesInput from "../../inputs/react-hook-form/select-inputs/countries-input.js";
|
|
4
4
|
import SelectInput from "../../inputs/react-hook-form/select-inputs/select-input.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextInputProps } from './text-input';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
|
-
import { FunctionComponent } from 'react';
|
|
4
3
|
|
|
5
4
|
interface ExpandingTextFieldProps extends TextInputProps {
|
|
6
5
|
name: string;
|
|
@@ -11,5 +10,5 @@ interface ExpandingTextFieldProps extends TextInputProps {
|
|
|
11
10
|
label?: string;
|
|
12
11
|
textFieldFormProps?: TextFieldProps;
|
|
13
12
|
}
|
|
14
|
-
declare
|
|
13
|
+
declare function ExpandingTextField({ name, maxCharactersNumber, rows, minRows, sx, label, textFieldFormProps, ...otherTexFieldProps }: ExpandingTextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default ExpandingTextField;
|
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { Typography } from "@mui/material";
|
|
4
4
|
import { useWatch } from "react-hook-form";
|
|
5
|
-
import
|
|
5
|
+
import useCustomFormContext from "./provider/use-custom-form-context.js";
|
|
6
6
|
import TextInput from "./text-input.js";
|
|
7
|
-
|
|
7
|
+
function ExpandingTextField({
|
|
8
8
|
name,
|
|
9
9
|
maxCharactersNumber = 500,
|
|
10
10
|
rows,
|
|
@@ -13,7 +13,7 @@ const ExpandingTextField = ({
|
|
|
13
13
|
label,
|
|
14
14
|
textFieldFormProps,
|
|
15
15
|
...otherTexFieldProps
|
|
16
|
-
})
|
|
16
|
+
}) {
|
|
17
17
|
const [isFocused, setIsFocused] = useState(false);
|
|
18
18
|
const { control } = useCustomFormContext();
|
|
19
19
|
const descriptionWatch = useWatch({
|
|
@@ -28,7 +28,7 @@ const ExpandingTextField = ({
|
|
|
28
28
|
};
|
|
29
29
|
const isOverTheLimit = (descriptionWatch == null ? void 0 : descriptionWatch.length) > maxCharactersNumber;
|
|
30
30
|
const descriptionLength = (descriptionWatch == null ? void 0 : descriptionWatch.length) ?? 0;
|
|
31
|
-
const descriptionCounter = descriptionLength
|
|
31
|
+
const descriptionCounter = `${descriptionLength}/${maxCharactersNumber}`;
|
|
32
32
|
const rowsToDisplay = isFocused ? rows : minRows;
|
|
33
33
|
const formProps = {
|
|
34
34
|
size: "medium",
|
|
@@ -65,7 +65,7 @@ const ExpandingTextField = ({
|
|
|
65
65
|
...otherTexFieldProps
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
|
-
}
|
|
68
|
+
}
|
|
69
69
|
export {
|
|
70
70
|
ExpandingTextField as default
|
|
71
71
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FieldValues, UseFieldArrayReturn } from 'react-hook-form';
|
|
2
|
-
import { FunctionComponent } from 'react';
|
|
3
2
|
|
|
4
3
|
export interface BottomRightButtonsProps {
|
|
5
4
|
name: string;
|
|
@@ -13,5 +12,5 @@ export interface BottomRightButtonsProps {
|
|
|
13
12
|
useFieldArrayOutput: UseFieldArrayReturn<FieldValues, string, 'id'>;
|
|
14
13
|
csvProps: any;
|
|
15
14
|
}
|
|
16
|
-
declare
|
|
15
|
+
declare function BottomRightButtons({ name, disableUp, disableDown, disableDelete, handleAddRow, handleDeleteRows, handleMoveRowUp, handleMoveRowDown, useFieldArrayOutput, csvProps, }: BottomRightButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
export default BottomRightButtons;
|
|
@@ -1,15 +1,104 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "@mui/material";
|
|
3
|
-
import "@mui/material/IconButton";
|
|
4
|
-
import "@mui/icons-material";
|
|
5
|
-
import "@mui/icons-material/ControlPoint";
|
|
6
|
-
import "@mui/icons-material/Delete";
|
|
7
|
-
import {
|
|
8
|
-
import "react";
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "../error-management/error-
|
|
12
|
-
import "
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Grid, Tooltip } from "@mui/material";
|
|
3
|
+
import IconButton from "@mui/material/IconButton";
|
|
4
|
+
import { Upload, ArrowCircleUp, ArrowCircleDown } from "@mui/icons-material";
|
|
5
|
+
import AddIcon from "@mui/icons-material/ControlPoint";
|
|
6
|
+
import DeleteIcon from "@mui/icons-material/Delete";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { useIntl } from "react-intl";
|
|
9
|
+
import { styled } from "@mui/material/styles";
|
|
10
|
+
import ErrorInput from "../error-management/error-input.js";
|
|
11
|
+
import FieldErrorAlert from "../error-management/field-error-alert.js";
|
|
12
|
+
import CsvUploader from "./csv-uploader/csv-uploader.js";
|
|
13
|
+
const InnerColoredButton = styled(IconButton)(({ theme }) => {
|
|
14
|
+
return {
|
|
15
|
+
color: theme.palette.primary.main
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
function BottomRightButtons({
|
|
19
|
+
name,
|
|
20
|
+
disableUp,
|
|
21
|
+
disableDown,
|
|
22
|
+
disableDelete,
|
|
23
|
+
handleAddRow,
|
|
24
|
+
handleDeleteRows,
|
|
25
|
+
handleMoveRowUp,
|
|
26
|
+
handleMoveRowDown,
|
|
27
|
+
useFieldArrayOutput,
|
|
28
|
+
csvProps
|
|
29
|
+
}) {
|
|
30
|
+
const [uploaderOpen, setUploaderOpen] = useState(false);
|
|
31
|
+
const intl = useIntl();
|
|
32
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, paddingTop: 1, paddingLeft: 2, children: [
|
|
34
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 1, children: csvProps && /* @__PURE__ */ jsx(
|
|
35
|
+
InnerColoredButton,
|
|
36
|
+
{
|
|
37
|
+
onClick: () => setUploaderOpen(true),
|
|
38
|
+
children: /* @__PURE__ */ jsx(
|
|
39
|
+
Tooltip,
|
|
40
|
+
{
|
|
41
|
+
title: intl.formatMessage({
|
|
42
|
+
id: "ImportCSV"
|
|
43
|
+
}),
|
|
44
|
+
placement: "bottom",
|
|
45
|
+
children: /* @__PURE__ */ jsx(Upload, {})
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
) }),
|
|
50
|
+
/* @__PURE__ */ jsxs(
|
|
51
|
+
Grid,
|
|
52
|
+
{
|
|
53
|
+
item: true,
|
|
54
|
+
xs: 11,
|
|
55
|
+
sx: { display: "flex", justifyContent: "right" },
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsx(InnerColoredButton, { onClick: handleAddRow, children: /* @__PURE__ */ jsx(AddIcon, {}) }, "addButton"),
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
59
|
+
InnerColoredButton,
|
|
60
|
+
{
|
|
61
|
+
onClick: handleDeleteRows,
|
|
62
|
+
disabled: disableDelete,
|
|
63
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
64
|
+
},
|
|
65
|
+
"DeleteButton"
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
InnerColoredButton,
|
|
69
|
+
{
|
|
70
|
+
disabled: disableUp,
|
|
71
|
+
onClick: handleMoveRowUp,
|
|
72
|
+
children: /* @__PURE__ */ jsx(ArrowCircleUp, {})
|
|
73
|
+
},
|
|
74
|
+
"upButton"
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
InnerColoredButton,
|
|
78
|
+
{
|
|
79
|
+
disabled: disableDown,
|
|
80
|
+
onClick: handleMoveRowDown,
|
|
81
|
+
children: /* @__PURE__ */ jsx(ArrowCircleDown, {})
|
|
82
|
+
},
|
|
83
|
+
"downButton"
|
|
84
|
+
)
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(ErrorInput, { name, InputField: FieldErrorAlert }) }),
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
CsvUploader,
|
|
92
|
+
{
|
|
93
|
+
open: uploaderOpen,
|
|
94
|
+
onClose: () => setUploaderOpen(false),
|
|
95
|
+
name,
|
|
96
|
+
useFieldArrayOutput,
|
|
97
|
+
...csvProps
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] });
|
|
101
|
+
}
|
|
13
102
|
export {
|
|
14
|
-
|
|
103
|
+
BottomRightButtons as default
|
|
15
104
|
};
|
package/dist/components/inputs/react-hook-form/ag-grid-table/cell-editors/numericEditor.d.ts
CHANGED
|
@@ -7,17 +7,18 @@ import { ICellEditorComp, ICellEditorParams } from 'ag-grid-community';
|
|
|
7
7
|
* React version if you want to check, with forwardRef, useEffect and useImperativeHandle :
|
|
8
8
|
* https://www.ag-grid.com/react-data-grid/component-cell-editor/#cell-editor-example
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
declare class NumericEditor implements ICellEditorComp {
|
|
11
11
|
eInput: HTMLInputElement;
|
|
12
12
|
cancelBeforeStart: boolean;
|
|
13
13
|
init(params: ICellEditorParams): void;
|
|
14
|
-
isBackspace(event: any): boolean;
|
|
15
|
-
isNavigationKey(event: any): boolean;
|
|
14
|
+
static isBackspace(event: any): boolean;
|
|
15
|
+
static isNavigationKey(event: any): boolean;
|
|
16
16
|
getGui(): HTMLInputElement;
|
|
17
17
|
afterGuiAttached(): void;
|
|
18
18
|
isCancelBeforeStart(): boolean;
|
|
19
19
|
getValue(): number | null;
|
|
20
|
-
isCharNumeric(charStr: string | null): boolean | "" | null;
|
|
21
|
-
isNumericKey(event: any): boolean | "" | null;
|
|
22
|
-
focusOut(): boolean;
|
|
20
|
+
static isCharNumeric(charStr: string | null): boolean | "" | null;
|
|
21
|
+
static isNumericKey(event: any): boolean | "" | null;
|
|
22
|
+
static focusOut(): boolean;
|
|
23
23
|
}
|
|
24
|
+
export default NumericEditor;
|
|
@@ -6,33 +6,31 @@ class NumericEditor {
|
|
|
6
6
|
this.eInput.classList.add("numeric-input");
|
|
7
7
|
if (params.eventKey === KEY_BACKSPACE) {
|
|
8
8
|
this.eInput.value = "";
|
|
9
|
-
} else if (
|
|
9
|
+
} else if (NumericEditor.isCharNumeric(params.eventKey)) {
|
|
10
10
|
this.eInput.value = params.eventKey;
|
|
11
|
-
} else {
|
|
12
|
-
|
|
13
|
-
this.eInput.value = params.value;
|
|
14
|
-
}
|
|
11
|
+
} else if (params.value !== void 0 && params.value !== null) {
|
|
12
|
+
this.eInput.value = params.value;
|
|
15
13
|
}
|
|
16
14
|
this.eInput.addEventListener("keydown", (event) => {
|
|
17
15
|
if (!event.key || event.key.length !== 1) {
|
|
18
16
|
return;
|
|
19
17
|
}
|
|
20
|
-
if (!
|
|
18
|
+
if (!NumericEditor.isNumericKey(event)) {
|
|
21
19
|
this.eInput.focus();
|
|
22
20
|
if (event.preventDefault) {
|
|
23
21
|
event.preventDefault();
|
|
24
22
|
}
|
|
25
|
-
} else if (
|
|
23
|
+
} else if (NumericEditor.isNavigationKey(event) || NumericEditor.isBackspace(event)) {
|
|
26
24
|
event.stopPropagation();
|
|
27
25
|
}
|
|
28
26
|
});
|
|
29
27
|
const isNotANumber = params.eventKey && params.eventKey.length === 1 && "1234567890,.".indexOf(params.eventKey) < 0;
|
|
30
28
|
this.cancelBeforeStart = !!isNotANumber;
|
|
31
29
|
}
|
|
32
|
-
isBackspace(event) {
|
|
30
|
+
static isBackspace(event) {
|
|
33
31
|
return event.key === KEY_BACKSPACE;
|
|
34
32
|
}
|
|
35
|
-
isNavigationKey(event) {
|
|
33
|
+
static isNavigationKey(event) {
|
|
36
34
|
return event.key === "ArrowLeft" || event.key === "ArrowRight";
|
|
37
35
|
}
|
|
38
36
|
// gets called once when grid ready to insert the element
|
|
@@ -49,22 +47,22 @@ class NumericEditor {
|
|
|
49
47
|
}
|
|
50
48
|
// returns the new value after editing
|
|
51
49
|
getValue() {
|
|
52
|
-
const value = this.eInput
|
|
50
|
+
const { value } = this.eInput;
|
|
53
51
|
const tmp = (value == null ? void 0 : value.replace(",", ".")) || "";
|
|
54
52
|
return parseFloat(tmp) || null;
|
|
55
53
|
}
|
|
56
|
-
isCharNumeric(charStr) {
|
|
54
|
+
static isCharNumeric(charStr) {
|
|
57
55
|
return charStr && !!/\d|,|\./.test(charStr);
|
|
58
56
|
}
|
|
59
|
-
isNumericKey(event) {
|
|
57
|
+
static isNumericKey(event) {
|
|
60
58
|
const charStr = event.key;
|
|
61
|
-
return
|
|
59
|
+
return NumericEditor.isCharNumeric(charStr);
|
|
62
60
|
}
|
|
63
61
|
// force call when focus is leaving the editor
|
|
64
|
-
focusOut() {
|
|
62
|
+
static focusOut() {
|
|
65
63
|
return true;
|
|
66
64
|
}
|
|
67
65
|
}
|
|
68
66
|
export {
|
|
69
|
-
NumericEditor
|
|
67
|
+
NumericEditor as default
|
|
70
68
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
3
7
|
interface CsvUploaderProps {
|
|
4
8
|
name: string;
|
|
5
9
|
onClose: () => void;
|
|
@@ -12,5 +16,5 @@ interface CsvUploaderProps {
|
|
|
12
16
|
getDataFromCsv: any;
|
|
13
17
|
useFieldArrayOutput: any;
|
|
14
18
|
}
|
|
15
|
-
declare
|
|
19
|
+
declare function CsvUploader({ name, onClose, open, title, fileHeaders, fileName, csvData, validateData, getDataFromCsv, useFieldArrayOutput, }: CsvUploaderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
20
|
export default CsvUploader;
|