Commit Graph

77 Commits

Author SHA1 Message Date
Konstantinos Triantafyllou a58e926c3d Prefilling: Alphabetical order in the returning list. Autocomplete of prefilling: no search with empty value. 2022-03-29 15:14:34 +03:00
Konstantina Galouni 9ab9e6abc9 #7528: [NEW] Upload files field type - frontend.
1. dataset-profile-field-view-style.ts: Include "upload" field type.
2. field-data.ts: Export interface UploadFieldData.
3. config.json: Added new property "maxFileSizeInMB":10.
4. configuration.service.ts: Added _maxFileSizeInMB field and getter for it.
5. enum-utils.service.ts: Added cases for upload and table (not ready, to be added) field types.
6. rich-text-editor.module.ts: [Bug fix] Removed import of HttpClientModule (this is imported only once in order to work with interceptor).
7. field-editor-model.ts & dataset-profile-editor.component.ts: Added case and validators for "upload" field type.
8. dataset-profile.module.ts: Imports for upload.
9.dataset-profile-editor-composite-field.component & dataset-profile-editor-field.component: Added button for upload.
10. form-field.component: Added functionality for uploading and downloading files.
11. dataset-description-form.module.ts: Added "FileService" provider and import of "NgxDropzoneModule".
12. en.json: New literals for upload and table (to be added in other language files too).
13. New files for upload field type: file.service.ts, upload-field-data-editor-model.ts, dataset-profile-editor-upload-field.component.html, dataset-profile-editor-upload-field.component.ts, dataset-profile-editor-upload-field.component.scss
2022-03-16 13:00:03 +02:00
Konstantina Galouni b68ede8cd7 #7518 & #7519: [Bug fix] in Required indication in Rich Text Area fields & editable general info on dataset template new version & date with time shown in dataset templates.
1. rich-text-editor.component.scss: Css for .editor-wrapper .disabled added.
2. rich-text-editor.component.ts: New "editable" Input() field added, to allow rich text area to be disabled and not editable.
3. dataset-profile-editor.component.html:
   a. In <rich-text-editor-component> set [editable]="form.controls['description'].status !== 'DISABLED'"
   b. #7518 Show required message and css  in rich text area when there is error "required" and description is touched (not dirty)
4. dataset-profile-editor.component.ts: #7519 comment disable of form controls label (title), description and language.
5. dataset-profile-listing.component.html: #7519 Time added in created column of dataset templates.
6. dataset-editor.component.html & form-field.component.html: #7518 Show required message and css  in rich text area when there is error "required" and description is touched (not dirty).
7. clone-dialog.component.html: Replaced <textarea> with <rich-text-editor-component> for description field.
8. clone-dialog.module.ts: Import RichTextEditorModule.
9. clone-dialog.component.ts: #7519 comment disable of form group label (title)
10. styles.scss: Css for class .form-field-subscript-wrapper updated.
2022-02-28 18:08:38 +02:00
Konstantinos Triantafyllou 6cdf560713 Add clear input in rich text editor 2022-02-08 20:51:40 +02:00
Konstantina Galouni 52c7796e8e #7183: Do not query for authors (DMP invitation) until 3 letters have been typed.
1. multiple-auto-complete.component.ts:
   a. Added @Input field minLength (default 0)
   b. In method "_onInputFocus()" filter results, only if query >= minLength.
2. dmp-invitation-dialog.component.html: In <app-multiple-auto-complete>, added property [minLength]="3" (invite users to a DMP).
2021-11-22 13:36:02 +02:00
Konstantina Galouni de99784b5e In multiple and single autocomplete do not show "no results found" when user is typing | in multiple auto complete added parameter to check if "no results found" will be displayed | in multiple auto complete show full width for input & wrap title into multiple lines.
1. multiple-auto-complete.component.html:
   a. #7137: show full width for input ([matAutocompleteConnectedTo]="origin") | wrap title into multiple lines (added classes "title-subtitle-fn", "subtitle-fn", "subtitle-fn-inner" and updated classes "title-fn", "title-fn-inner").
   b. single-auto-complete.component.html: #7136: Show "No results found" when user is not typing and there are no results.
   c. added check to show this label according to "showNoResultsLabel" input parameter.
2. multiple-auto-complete.component.ts & single-auto-complete.component.ts:
   a. Added field "queryValue", input "showNoResultsLabel".
   b. increase "requestDelay" from 400 to 600ms.
3. multiple-auto-complete.component.scss: wrap title into multiple lines (added classes "title-subtitle-fn", "subtitle-fn", "subtitle-fn-inner" and updated classes "title-fn", "title-fn-inner").
4. dmp-invitation-dialog.component.html: In <app-multiple-auto-complete> added parameter [showNoResultsLabel]="false".
2021-11-09 14:14:19 +02:00
Konstantina Galouni ca5883724a In Dataset Template selection cut description when templates are displayed in list and show description (instead of DMP-EDITOR.DATASET-DESCRIPTION.INTRO) in template preview.
1. multiple-auto-complete.component.html: Added class "title-fn-inner" to cut the displayed description of dataset templates.
2. multiple-auto-complete.component.scss: Css for class "title-fn" updated and for class "title-fn-inner" added to cut the displayed description of dataset templates.
3. available-profiles.component.html: Added class "list-option-inner" to cut the displayed description of dataset templates.
4. available-profiles.component.scss: Css for class "list-option" updated and for class "list-option-inner" added to cut the displayed description of dataset templates.
5. dataset-preview-dialog.component.html: Added [datasetDescription]="data?.template?.description" in <app-dataset-description>
6. dataset-description.component.ts: Added in class, field "datasetDescription".
7. dataset-description.component.html: Show template datasetDescription (as html) instead of DMP-EDITOR.DATASET-DESCRIPTION.INTRO.
2021-11-02 16:50:43 +02:00
Konstantina Galouni 7bdfcb70af Created common component for rich text editor configuration & added rich text for dmp and dataset description.
1. library/rich-text-editor: [NEW] Common component which configures a rich text editor.
2. dataset-editor.component.html & main-info.component.html: Use <rich-text-editor-component> to allow rich text in dataset and dmp description.
3. dataset-overview.component.html & dmp-overview.component.html: Show dataset and dmp description as innerHTML.
4. dataset.module.ts & dmp.module.ts: Imported RichTextEditorModule.
2021-11-01 14:45:02 +02:00
Konstantina Galouni 198061aeaa Description boxes in admin forms replaced with rich text editor <angular-editor>.
1. dataset-profile-editor-composite-field.component.ts & dataset-profile-editor-section.component.ts & dataset-profile-editor.component.ts: Initialize AngularEditorConfig.
2. dataset-profile-editor-composite-field.component.html & dataset-profile-editor-section.component.html & dataset-profile-editor.component.html: Use <angular-editor> in description.
3. multiple-auto-complete.component.html & dataset-profile-listing.component.html & form-section.component.html: Show description as html.
4. dataset-profile.module.ts: Imported HttpClientModule, AngularEditorModule (needed for <angular-editor>).
5. available-profiles.component.html: Show description as html, under the Dataset Template title, not as tooltip (matTooltip does not receive html).
6. available-profiles.component.ts: Added styleUrls: ['available-profiles.component.scss'].
7. available-profiles.component.scss: [NEW] Added css for class "list-option" to cut description if too long.
8. form-composite-title.component.html: Show description and extendedDescription as html | Add view more/less functionality to show/hide extendedDescription.
9. form-composite-title.component.ts: Added "public showExtendedDescription: boolean = false;" field.
10. form-composite-title.component.scss: Added css for "more" class, to make "view more/less" seem like link.
11. assets/i18n/: In language files added DATASET-EDITOR.QUESTION.EXTENDED-DESCRIPTION.VIEW-MORE (-LESS).
12. assets/styles.css: Added css for <angular-editor>, to be similar to the other text areas and forms.
2021-10-12 18:14:22 +03:00
Diamantis Tziotzios 9cac208546 upgrade to Angular 12 2021-09-24 21:52:14 +03:00
Kristian Ntavidi 06961c0254 Deactivate Guard on dataset template editor 2021-07-23 17:03:29 +03:00
Kristian Ntavidi a212f4e5a1 Subtle border on invalid emails inputs (in invitation dialog)
* Mutli auto compolete component extended
2021-07-21 12:16:22 +03:00
Kristian Ntavidi 1b731fdf20 Changes on multi-auto complete component.
* Give precedence on autocomplete option-selected over onblur.
* Invitation dialog on blur commit given email till that time, on emails list.
2021-07-21 11:09:13 +03:00
Kristian Ntavidi add23dab2f Grant search fix.
* Change the way the single auto complete refreshes.
* Remove some unnecessary code.
2021-06-14 01:46:29 +03:00
Kristian Ntavidi d9826095bc Dmp editor. Fix issue on selecting grant after search. 2021-06-11 15:35:47 +03:00
Kristian Ntavidi ab9bb3e8cf DMP Editor: remove modal when navigating to dataset. Minor ui fixes. 2021-04-08 12:57:44 +03:00
Kristian Ntavidi abaf61cf02 DMP Editor. Uncompleted guide steps appear with red color when form is invalid and the user attemps to save. 2021-03-19 13:30:21 +02:00
Kristian Ntavidi 4d6e4fb2cd Dataset ProfileEditor Validator fixes. More validators added. Table of contents mark invalid entries. Guided tour fix. Fix ng-deep leaks from user listing. 2021-03-12 18:19:51 +02:00
apapachristou 2f61e47139 On focus out of autocompletes clear value if not selected option (to be reviewed) 2020-11-25 18:08:51 +02:00
apapachristou 06f156c687 Fix bug on dmp editor that prevented request grants on funder change (change on single autocomplete component to be reviewed) 2020-11-25 14:22:30 +02:00
apapachristou f5d5835edb Style fix on tour guide panel 2020-11-25 13:43:01 +02:00
apapachristou 208824f55b Adds guided tour on dashboard for new user 2020-11-24 19:09:10 +02:00
apapachristou 4552525e1c On multiple autocomple inputs removes permanent placeholder inside the container, adds overflow 2020-11-19 10:38:43 +02:00
apapachristou ce6c0f3b20 Fixes position of arrow on auto complete 2020-10-29 12:10:39 +02:00
apapachristou 32caed9f6f Adds preview of dataset template, adds delete with spacebar on multiple autocomplete 2020-10-20 13:00:02 +03:00
apapachristou 56cf5a7552 Adds new assets 2020-09-09 17:56:20 +03:00
apapachristou eb7a5571c4 Edit template on dmp-dataset editor 2020-09-08 10:36:18 +03:00
apapachristou 2c9475da2c Fixes bug of double select dropdown.
The attribute autocomplete="nope", set by downshift, is ignored in Chrome 67 and Opera 54 (latest at the time of writing)
2020-08-24 15:47:58 +03:00
gpapavgeri 370360872a Guided tour comments added 2020-08-05 11:23:09 +03:00
gpapavgeri 84047fc035 Guided Tour Update 2020-08-04 18:27:13 +03:00
gpapavgeri 24855f776b Guided tour added in dataset editor details 2020-07-31 17:39:57 +03:00
gpapavgeri b36621877e Guided Tour added 2020-07-30 18:29:20 +03:00
gpapavgeri a4b61c2172 dmp&dataset overview_remove user & invite user update 2020-07-09 10:17:49 +03:00
Diamantis Tziotzios 4ae13704c5 autocomplete fix 2020-03-11 16:21:58 +02:00
George Kalampokis e2982b6c3d Improved auto complete styling 2020-02-28 16:59:04 +02:00
Diamantis Tziotzios c8600b315e autocomplete fix 2019-12-18 17:37:00 +02:00
Diamantis Tziotzios 3bab68265b added grant id to displayfn 2019-12-13 17:05:19 +02:00
Diamantis Tziotzios 3327131ad8 autocomplete style fix 2019-12-12 16:54:26 +02:00
Diamantis Tziotzios d21e5c3d78 autocomplete fixes 2019-12-12 16:12:46 +02:00
Diamantis Tziotzios bcf4a3f6a2 autocomplete style changes 2019-12-12 12:42:00 +02:00
Diamantis Tziotzios d1d0cbd931 autocomplete fix 2019-12-12 12:04:29 +02:00
Diamantis Tziotzios 16d57bd0ad dmp advanced editor changed to remain at the same page when saving 2019-12-11 16:51:03 +02:00
apapachristou 9a694e167b Creates /contact-support. (Issue #202) 2019-11-11 12:42:55 +02:00
apapachristou de5dcb7d4c Improves usability of Copy Dataset Description dialog 2019-11-07 16:37:07 +02:00
apapachristou a95c1ecc94 Edit dialogs to have similar style 2019-11-06 16:30:15 +02:00
apapachristou 8adfc1d46d Adds link to SingleAutoCompleteConfiguration 2019-11-04 17:51:08 +02:00
apapachristou f1a79459a0 Fixes bug on Autocomplete drop down menu (Issue #201) 2019-11-04 13:06:30 +02:00
apapachristou ca16a26f56 Fixes progress bar layer, snack bar color, listing menu panel width 2019-11-04 12:48:36 +02:00
apapachristou 8d343caf91 Adds pop-up box that informs the owner/admin that their names will be made visible to everyone when openly publishing the DMP/ Dataset Desrciption. (Issue #186) 2019-10-09 11:45:47 +03:00
apapachristou 27ddc0a184 Adds information dialogue on DMP Wizard Save button when list of datasets is empty. (Issue #189) 2019-10-08 17:44:18 +03:00