Commit Graph

39 Commits

Author SHA1 Message Date
Konstantina Galouni 193e7410a8 Added rich text area field type for response in dataset > chapter > section > questions.
1. dataset-profile.module.ts: Added in declarations "DatasetProfileEditorRichTextAreaFieldComponent".
2. dataset-profile-editor-composite-field.component.html: Added RichTextArea as input field type for response to a question.
3. dataset-profile-editor-composite-field.component.ts: In method "addNewInput()" added case for RichTextArea.
4. dataset-profile-field-view-style.ts & view-style-enum.ts: Added RichTextArea.
5. field-data.ts: Added interface RichTextAreaFieldData.
6. enum-utils.service.ts: In methods "toDatasetProfileFieldViewStyleString()" and "toDatasetProfileViewTypeString()" added cases for RichTextArea
7. field-editor-model.ts: Added richTextarea.
8. component-profile-editor-default-value.component.html: Added <mat-form-field> for RichTextArea (how rich text area is initialized when this type is selected as response).
9. dataset-profile-editor-field.component.html: Added <mat-option> for RichTextArea (to select it) and <app-dataset-profile-editor-rich-text-area-field-component> (to show it).
10. dataset-profile-editor-field.component.ts: Added RichTextArea case everywhere.
11. dataset-wizard.component.ts & dmp-editor.component.ts: In method "_getPlaceHolder()" added case for richTextarea.
12. dataset-description-form.module.ts: Imported RichTextEditorModule.
13. form-field.component.html: Added RichTextArea case with <rich-text-editor-component>.
14. assets/i18n/: Added DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-RICH-TEXT-AREA-TITLE, DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-RICH-TEXT-AREA-PLACEHOLDER and DMP-EDITOR.TYPES.DATASET-PROFILE-FIELD-VIEW-STYLE.RICH-TEXT-AREA.
15. field-data/rich-text-area-field-data-editor-model.ts & field-type/rich-textarea/: [NEW] Files for Rich Text Area field type.
2021-11-01 15:30:21 +02:00
Konstantina Galouni 03009edaa3 Use <rich-text-editor-component> when html editor is needed - replace in dataset template descriprion, section & question descriptions.
1. dataset-profile-editor-section.component.html & dataset-profile-editor.component.html & dataset-profile-editor-composite-field.component.html: Replace <angular-editor> with <rich-text-editor-component> (custom common component when rich text editor is set).
2. dataset-profile-editor-section.component.ts & dataset-profile-editor.component.ts & dataset-profile-editor-composite-field.component.ts: Remove AngularEditorConfig (this is set in RichTextEditorComponent).
3. dataset-profile.module.ts: Instead of AngularEditorModule, import RichTextEditorModule (common component where rich text editor is set).
4. styles.scss: Moved css for angular editor to dedicated css file (src/app/library/rich-text-editor/rich-text-editor.component.scss) and keep here only "form-field-subscript-wrapper" class.
2021-11-01 15:10:00 +02:00
Kristian Ntavidi ae0618d5be Fix multiplicty bug on Admin Template Editor. 2021-10-20 13:41:04 +03:00
Konstantinos Triantafyllou 7a3f3f2fd5 Add reordering for inputs in a dataset template 2021-10-19 11:08:38 +03: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
Kristian Ntavidi d8a2ad281c Animations on admin template editor (partial) 2021-07-23 13:16:40 +03:00
Kristian Ntavidi 4c22799f91 Bug fixes on dataset templates editor Admin (partial)
* Make use of observables instead of setTimeouts
* Remove not nessecary calculations
2021-07-23 11:23:35 +03:00
Kristian Ntavidi f4591549c2 Admin Dataset Template Editor and Dataset profile editor UI improvemenets.
[Admin Template Editor]:
* Add question underneath each question and in the table of contents
* "Make conditional question" changed position
* Small restyles in required toggler and question preview component
* Input icons update
* Scrolling on top of question

[Dataset Editor]:
* Show asterisk on required fields

Pt language updates
2021-06-16 15:52:39 +03:00
Kristian Ntavidi cc8c771ae5 Dataset profile editor. Ignore invalid data(if any) in previews. Fix Fieldset card changes height after the updated preview component is rendered . Update error messages.Now they use chapter-section namespace. 2021-03-30 17:47:35 +03:00
Kristian Ntavidi 67223bc2f0 Dataset profile editor. Minor Fix not building issue. 2021-03-30 12:11:22 +03:00
Kristian Ntavidi d667d574af Dataset Profile editor. Create section button on page component. Dataset profile listing: Add Download Option. Minor ui fixes. 2021-03-30 11:36:09 +03:00
Kristian Ntavidi c849ea13fe Dataset Profile Editor. Minor ui fix. 2021-03-29 18:56:18 +03:00
Kristian Ntavidi 7dac466f71 Dataset Profile Editor. Remove validate button. Toolbar next to fieldset.Update icons (most of them). Update texts(Quetions, sections and chapters). Add delete option on template listing. Preview Fieldset instead of each field(Enables multiplicity preview). 2021-03-29 18:42:55 +03:00
Kristian Ntavidi 12f9e9ede9 Dataset Profile Editor. Move validators from tempate to models. (Fixing issue of form classified as valid when not all formcontrols are rendered.) 2021-03-27 19:52:53 +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
Kristian Ntavidi 51228df7d5 Dataset Profile Editor. UI fixes. Stepper buttons animations. Alignments. RadioBox, Other, Select have emptyList Vaditator(custom). Numbering fix in table of contents when drag and drop. 2021-03-08 11:24:30 +02:00
Kristian Ntavidi 938e3b9554 Dataset Profile Editor. Ui fixes. Minimizing ng-deep leaks. Sidenav service. Side nav folds when create-edit template. 2021-03-05 11:05:09 +02:00
Kristian Ntavidi efc882016b Dataset profile editor. Validators are added to prevent user from proceeding with empty array of options(radio box and select). Polishing UI. 2021-03-04 14:38:46 +02:00
Kristian Ntavidi da7f91df96 Dataset Profile Editor. Pipe static text to translation. 2021-02-25 17:53:58 +02:00
Kristian Ntavidi ddd12cbba8 Dataset Profile Editor. Drag and drop with dragula. 2021-02-25 14:17:47 +02:00
Kristian Ntavidi a4db1973d3 Dataset Profile Editor. Fieldsets same level as Section Details. Show all fieldsets in one page collapsed. 2021-02-24 16:56:14 +02:00
Kristian Ntavidi 3dde61a379 Dataset Profile Editor. Same level drag n drop on table. UI fixes 2021-02-19 16:35:14 +02:00
Kristian Ntavidi 96ebf7c0d0 Dataset profile editor. Ui fixes. mat-stepper header fix and preview fixes. 2021-02-18 17:13:56 +02:00
Kristian Ntavidi dd2db4ce1f Dataset profile editor. Field Preview Fixes. Summary preview supports visibility rules. Minor UI fixes. 2021-02-17 18:39:07 +02:00
Kristian Ntavidi 8579071cf7 Dataset profile editor. Preview step basic implementation. 2021-02-15 19:16:48 +02:00
Kristian Ntavidi 35eb42e631 Redesign dataset profile editor changes. Basic UI outline and functionality. 2021-02-12 13:23:39 +02:00
apapachristou 52cfc6cde6 Fixes warning "using the disabled attribute with a reactive form directive" on /dataset-profiles 2019-10-16 17:45:08 +03:00
apapachristou c5ed60240a Makes "Order" field of Fields editor requird on Dataset Template editor. 2019-10-16 11:59:22 +03:00
gkolokythas ca3f5f267d Refactors "RDA Common Standards" property moving it from FieldSet to Field. 2019-10-15 18:29:34 +03:00
gkolokythas ae6db14ac6 Adds "RDA Common Standard" as a property of Dataset Template's Field. 2019-10-15 13:38:51 +03:00
Diamantis Tziotzios b1ea68670a Fixes bug on Additional information and rearranges nearby elements. 2019-03-08 17:09:34 +02:00
Diamantis Tziotzios 583db09764 CompositeField Set scss To Title For Render 2019-03-07 12:47:31 +02:00
Diamantis Tziotzios 5c608c11e8 ADDITIONAL-INFORMATION On CompositeFields
Fix Import Dataset Profiles Desc Extendet And  Additional
2019-03-07 12:04:54 +02:00
Diamantis Tziotzios 22592cfe75 Adds finalize functionality on Dataset Profiles and refactors frontend and backend to suit that change. 2019-02-11 14:04:45 +02:00
Diamantis Tziotzios 5f2646c98f Add Validator to Id on DatasetProfile
Fix DafaultValue on WordListComponent
set On DeleteDataset To Return Back
2019-02-04 18:10:22 +02:00
Diamantis Tziotzios 853be683a8 Delete buttons
LogIn Page Fix
fix Multiplisity Ids
fixVizibility to Child Items
2019-02-01 10:29:00 +02:00
Diamantis Tziotzios 52f7c6dc0c visibility create function scanIfChildsOfCompositeFieldHasVisibleItems
fix style delete buttons
fix AutoComplete copnonnent get from Url to external resorsis
multiplisity model clone for mulitiplicity
2019-01-31 12:29:35 +02:00
Diamantis Tziotzios 8b45ee5548 Validation to Ids and
New Component  Component-Profile-Editor-default-value
delete row in radioBox
add To i18.enJson
2019-01-29 18:34:19 +02:00
Diamantis Tziotzios 41fb94eee9 ui resrtucturing 2019-01-18 19:03:45 +02:00