From 55a045433077a4fb866345456694e6490654c89f Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 14 Jul 2023 18:27:16 +0300 Subject: [PATCH 01/48] Input: Fix errors when searchInput doesn't exists. --- sharedComponents/input/input.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 775a3b63..55acecd8 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -530,8 +530,10 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang ?this.getFormByName(this.yearRange.from.control).errors:this.getFormByName(this.yearRange.to.control).errors)); } else if(this.formAsControl) { return this.formAsControl.errors; - } else { + } else if(this.searchControl) { return this.searchControl.errors; + } else { + return null; } } From 3e12962add10a00c37d934f9e82cd8dc77a9a26f Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 17 Jul 2023 12:40:30 +0300 Subject: [PATCH 02/48] Fix intersaction Observer in fos-selections. --- fos/fos-selection/fos-selection.component.ts | 7 ++++--- fos/fos.component.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fos/fos-selection/fos-selection.component.ts b/fos/fos-selection/fos-selection.component.ts index e978ea88..64d50cfa 100644 --- a/fos/fos-selection/fos-selection.component.ts +++ b/fos/fos-selection/fos-selection.component.ts @@ -72,8 +72,9 @@ export class FosSelectionComponent { } else { this.activeSection = this.fos[0].id; } - - this.setObserver(); + if(typeof IntersectionObserver !== "undefined") { + this.setObserver(); + } this.cdr.detectChanges(); }); } @@ -93,7 +94,7 @@ export class FosSelectionComponent { this.subscriptions.push(this.keywordControl.valueChanges.pipe(debounceTime(500), distinctUntilChanged()).subscribe(value => { this.keyword = value; this.findMatches(this.keyword); - if (typeof document !== 'undefined') { + if (typeof IntersectionObserver !== 'undefined') { setTimeout(() => { this.setObserver(); }); diff --git a/fos/fos.component.ts b/fos/fos.component.ts index 90664f4b..49edfd5b 100644 --- a/fos/fos.component.ts +++ b/fos/fos.component.ts @@ -105,7 +105,7 @@ export class FosComponent implements OnInit, OnDestroy { this.subscriptions.push(this.keywordControl.valueChanges.pipe(debounceTime(500), distinctUntilChanged()).subscribe(value => { this.keyword = value; this.findMatches(this.keyword); - if (typeof document !== 'undefined') { + if (typeof IntersectionObserver !== 'undefined') { setTimeout(() => { this.setObserver(); }); From 9855f5c179bc5503d32d52a2211dc6fbf8fdcb76 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 18 Jul 2023 13:20:04 +0300 Subject: [PATCH 03/48] Slider-tabs: Add template in slider-tab instead of title. Change tabs in search-all with slider-tabs. --- searchPages/find/searchAll.component.html | 57 +++++++++++-- searchPages/find/searchAll.module.ts | 3 +- sharedComponents/tabs/slider-tab.component.ts | 1 + .../tabs/slider-tabs.component.ts | 84 ++++++++++++------- 4 files changed, 107 insertions(+), 38 deletions(-) diff --git a/searchPages/find/searchAll.component.html b/searchPages/find/searchAll.component.html index ba82eb23..d6056c69 100644 --- a/searchPages/find/searchAll.component.html +++ b/searchPages/find/searchAll.component.html @@ -28,10 +28,57 @@ -
-
-
+
+
+ + + + + {{resultsName}} + + ({{fetchPublications.searchUtils.totalResults | number}}) + + + + + + + {{projectName}} + + ({{fetchProjects.searchUtils.totalResults | number}}) + + + + + + + {{dataSourcesName}} + + ({{fetchDataproviders.searchUtils.totalResults | number}}) + + + + + + + {{servicesName}} + + ({{fetchServices.searchUtils.totalResults | number}}) + + + + + + + {{organizationsName}} + + ({{fetchOrganizations.searchUtils.totalResults | number}}) + + + + +
diff --git a/searchPages/find/searchAll.module.ts b/searchPages/find/searchAll.module.ts index ba4b882d..ae6e9160 100644 --- a/searchPages/find/searchAll.module.ts +++ b/searchPages/find/searchAll.module.ts @@ -22,13 +22,14 @@ import {SearchOrganizationsModule} from "../searchOrganizations.module"; import {SearchDataProvidersModule} from "../searchDataProviders.module"; import {PreviousRouteRecorder} from "../../utils/piwik/previousRouteRecorder.guard"; import {BreadcrumbsModule} from "../../utils/breadcrumbs/breadcrumbs.module"; +import {SliderTabsModule} from "../../sharedComponents/tabs/slider-tabs.module"; @NgModule({ imports: [ CommonModule, FormsModule, RouterModule, DataProvidersServiceModule, ProjectsServiceModule, SearchResearchResultsServiceModule, OrganizationsServiceModule, - SearchResultsModule, PiwikServiceModule, Schema2jsonldModule, SEOServiceModule, AdvancedSearchFormModule, SearchResearchResultsModule, SearchProjectsModule, SearchOrganizationsModule, SearchDataProvidersModule, BreadcrumbsModule + SearchResultsModule, PiwikServiceModule, Schema2jsonldModule, SEOServiceModule, AdvancedSearchFormModule, SearchResearchResultsModule, SearchProjectsModule, SearchOrganizationsModule, SearchDataProvidersModule, BreadcrumbsModule, SliderTabsModule ], declarations: [ SearchAllComponent diff --git a/sharedComponents/tabs/slider-tab.component.ts b/sharedComponents/tabs/slider-tab.component.ts index 97d5a70b..a9bc8845 100644 --- a/sharedComponents/tabs/slider-tab.component.ts +++ b/sharedComponents/tabs/slider-tab.component.ts @@ -21,4 +21,5 @@ export class SliderTabComponent { public queryParams: any = null; @Input() public customClass: string = ''; + @Input() tabTemplate: any; } diff --git a/sharedComponents/tabs/slider-tabs.component.ts b/sharedComponents/tabs/slider-tabs.component.ts index 59149387..75c86cfd 100644 --- a/sharedComponents/tabs/slider-tabs.component.ts +++ b/sharedComponents/tabs/slider-tabs.component.ts @@ -28,34 +28,52 @@ declare var UIkit; [ngClass]="'uk-flex-' + flexPosition + ' ' + tabsClass">
  • - {{tab.title}} + + {{tab.title}} + +
  • - {{tab.title}} + + {{tab.title}} + +
  • {{tab.title}} + class="uk-text-capitalize uk-text-truncate uk-display-block"> + {{tab.title}} + +
  • {{tab.title}} + class="uk-text-capitalize uk-text-truncate uk-display-block"> + {{tab.title}} + +
  • - {{tab.title}} + + {{tab.title}} + +
  • - {{tab.title}} + + {{tab.title}} + +
  • @@ -127,34 +145,36 @@ export class SliderTabsComponent implements AfterViewInit, OnDestroy { } ngAfterViewInit() { - if (typeof document !== 'undefined' && this.tabs.length > 0) { - setTimeout(() => { - if (this.position === 'horizontal') { - this.slider = UIkit.slider(this.sliderElement.nativeElement, {finite: true}); - this.slider.clsActive = 'uk-slider-active'; - this.slider.updateActiveClasses(); - this.slider.slides.forEach((item, index) => { - if(!this.tabs.get(index).active) { - item.classList.remove('uk-active'); + this.tabs.changes.subscribe(tabs => { + if (typeof document !== 'undefined' && this.tabs.length > 0) { + setTimeout(() => { + if (this.position === 'horizontal') { + this.slider = UIkit.slider(this.sliderElement.nativeElement, {finite: true}); + this.slider.clsActive = 'uk-slider-active'; + this.slider.updateActiveClasses(); + this.slider.slides.forEach((item, index) => { + if(!this.tabs.get(index).active) { + item.classList.remove('uk-active'); + } + }); + if (this.type === 'static') { + let tabs = UIkit.tab(this.tabsElement.nativeElement, {connect: this.connect}); + tabs.show(this.activeIndex); + if (this.connect.includes('#')) { + this.scrollToStart(); + } + } else if(this.type =='dynamic') { + this.activeIndex = this.tabs.toArray().findIndex(tab => tab.active); + this.slider.show(this.activeIndex); + } else if (this.type === 'scrollable') { + this.scrollable(this.slider); } - }); - if (this.type === 'static') { - let tabs = UIkit.tab(this.tabsElement.nativeElement, {connect: this.connect}); - tabs.show(this.activeIndex); - if (this.connect.includes('#')) { - this.scrollToStart(); - } - } else if(this.type =='dynamic') { - this.activeIndex = this.tabs.toArray().findIndex(tab => tab.active); - this.slider.show(this.activeIndex); - } else if (this.type === 'scrollable') { - this.scrollable(this.slider); + } else { + this.scrollable(); } - } else { - this.scrollable(); - } - }); - } + }); + } + }); } private scrollToStart() { From 2b7c5da3d7049f327f97ac9b274d5d71f6206284 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 18 Jul 2023 15:27:02 +0300 Subject: [PATCH 04/48] Input: Add * for required fields with type array. Scroll to top in open of a modal. --- sharedComponents/input/input.component.ts | 2 +- utils/modal/alert.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 55acecd8..18036a87 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -566,7 +566,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang } })); } - if (this.formAsControl?.validator) { + if (this.formAsControl?.validator || this.formAsArray?.validator) { let validator = this.formControl.validator({} as AbstractControl); this.required = (validator && validator.required); } diff --git a/utils/modal/alert.ts b/utils/modal/alert.ts index 4173ae39..27e6c0a4 100644 --- a/utils/modal/alert.ts +++ b/utils/modal/alert.ts @@ -205,6 +205,9 @@ export class AlertModal implements OnInit, AfterViewInit, OnDestroy { open() { if(typeof UIkit !== "undefined") { UIkit.modal(this.element.nativeElement).show(); + if(this.overflowBody) { + this.bodyElement.nativeElement.scrollTo(0, 0); + } } } From 39876e4ce6e436d8dea3f88ca4d26673e25c1d7c Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Wed, 19 Jul 2023 12:20:49 +0300 Subject: [PATCH 05/48] landing & search: match top row info between the 2 as much as possible --- .../landing-utils/entity-metadata.component.ts | 8 ++++---- .../landing-header/landing-header.component.ts | 3 +++ landingPages/landing-utils/showPublisher.component.ts | 10 ++++++---- landingPages/result/resultLanding.component.html | 3 ++- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/landingPages/landing-utils/entity-metadata.component.ts b/landingPages/landing-utils/entity-metadata.component.ts index f306d388..c15f50e0 100644 --- a/landingPages/landing-utils/entity-metadata.component.ts +++ b/landingPages/landing-utils/entity-metadata.component.ts @@ -151,7 +151,7 @@ import {RouterHelper} from "../../utils/routerHelper.class"; Thematic - + {{projectNames.slice(0,3).join(', ')}} @@ -238,9 +238,9 @@ export class EntityMetadataComponent { value = value + ' | ' + (project.acronym ? project.acronym : (project.title.length > 25 ? (project.title.slice(0, 25) + '...'): project.title)); } - if(project.code) { - value = value + ' (' + project.code + ')'; - } + // if(project.code) { + // value = value + ' (' + project.code + ')'; + // } return value; }); } diff --git a/landingPages/landing-utils/landing-header/landing-header.component.ts b/landingPages/landing-utils/landing-header/landing-header.component.ts index 11ab1c0c..adfe3268 100644 --- a/landingPages/landing-utils/landing-header/landing-header.component.ts +++ b/landingPages/landing-utils/landing-header/landing-header.component.ts @@ -21,6 +21,7 @@ import {AlertModal} from "../../../utils/modal/alert"; [languages]="languages" [programmingLanguages]="programmingLanguages" [compatibility]="compatibility" [aggregationStatus]="aggregationStatus" [thematic]="thematic" [type]="type" [prevPath]="prevPath" + [countries]="countries" [projects]="projects" >
    @@ -61,4 +62,6 @@ export class LandingHeaderComponent { @Input() thematic: boolean; // data provider landing @Input() type; // data provider landing @Input() prevPath: string = ""; + @Input() countries; + @Input() projects; } diff --git a/landingPages/landing-utils/showPublisher.component.ts b/landingPages/landing-utils/showPublisher.component.ts index 004c146a..37c0838b 100644 --- a/landingPages/landing-utils/showPublisher.component.ts +++ b/landingPages/landing-utils/showPublisher.component.ts @@ -4,6 +4,12 @@ import {EnvProperties} from "../../utils/properties/env-properties"; @Component({ selector: 'showPublisher, [showPublisher]', template: ` + + {{publisher}} + + ) - - - - {{publisher}} ` }) diff --git a/landingPages/result/resultLanding.component.html b/landingPages/result/resultLanding.component.html index 6a93da39..0abe1f56 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -222,7 +222,8 @@ [date]="resultLandingInfo.dateofacceptance" [embargoEndDate]="resultLandingInfo.embargoEndDate" [publisher]="resultLandingInfo.publisher" [journal]="resultLandingInfo.journal" [languages]="resultLandingInfo.languages" [programmingLanguages]="resultLandingInfo.programmingLanguages" - [prevPath]="prevPath"> + [prevPath]="prevPath" [countries]="resultLandingInfo.countries" + [projects]="resultLandingInfo.fundedByProjects"> From 584f1d22f825cd493cfcaeb44ee45d96f70235ca Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 19 Jul 2023 14:09:10 +0300 Subject: [PATCH 06/48] Slider tabs: Fix initialization. --- .../tabs/slider-tabs.component.ts | 63 ++++++++++--------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/sharedComponents/tabs/slider-tabs.component.ts b/sharedComponents/tabs/slider-tabs.component.ts index 75c86cfd..bf05910a 100644 --- a/sharedComponents/tabs/slider-tabs.component.ts +++ b/sharedComponents/tabs/slider-tabs.component.ts @@ -145,37 +145,42 @@ export class SliderTabsComponent implements AfterViewInit, OnDestroy { } ngAfterViewInit() { - this.tabs.changes.subscribe(tabs => { - if (typeof document !== 'undefined' && this.tabs.length > 0) { - setTimeout(() => { - if (this.position === 'horizontal') { - this.slider = UIkit.slider(this.sliderElement.nativeElement, {finite: true}); - this.slider.clsActive = 'uk-slider-active'; - this.slider.updateActiveClasses(); - this.slider.slides.forEach((item, index) => { - if(!this.tabs.get(index).active) { - item.classList.remove('uk-active'); - } - }); - if (this.type === 'static') { - let tabs = UIkit.tab(this.tabsElement.nativeElement, {connect: this.connect}); - tabs.show(this.activeIndex); - if (this.connect.includes('#')) { - this.scrollToStart(); - } - } else if(this.type =='dynamic') { - this.activeIndex = this.tabs.toArray().findIndex(tab => tab.active); - this.slider.show(this.activeIndex); - } else if (this.type === 'scrollable') { - this.scrollable(this.slider); - } - } else { - this.scrollable(); - } - }); - } + this.initTabs(); + this.tabs.changes.subscribe(() => { + this.initTabs(); }); } + + public initTabs() { + if (typeof document !== 'undefined' && this.tabs.length > 0) { + setTimeout(() => { + if (this.position === 'horizontal') { + this.slider = UIkit.slider(this.sliderElement.nativeElement, {finite: true}); + this.slider.clsActive = 'uk-slider-active'; + this.slider.updateActiveClasses(); + this.slider.slides.forEach((item, index) => { + if(!this.tabs.get(index).active) { + item.classList.remove('uk-active'); + } + }); + if (this.type === 'static') { + let tabs = UIkit.tab(this.tabsElement.nativeElement, {connect: this.connect}); + tabs.show(this.activeIndex); + if (this.connect.includes('#')) { + this.scrollToStart(); + } + } else if(this.type =='dynamic') { + this.activeIndex = this.tabs.toArray().findIndex(tab => tab.active); + this.slider.show(this.activeIndex); + } else if (this.type === 'scrollable') { + this.scrollable(this.slider); + } + } else { + this.scrollable(); + } + }); + } + } private scrollToStart() { this.subscriptions.push(UIkit.util.on(this.connect, 'shown', (event): void => { From a7e32a2a6591c0650183a346d518b9cb1eb2b753 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 19 Jul 2023 17:38:19 +0300 Subject: [PATCH 07/48] [Library | develop]: searchDataproviders.service.ts: In method "getDataproviderType()", add check for datasourcetype field. --- services/searchDataproviders.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/searchDataproviders.service.ts b/services/searchDataproviders.service.ts index 91c4fd14..a3c71083 100644 --- a/services/searchDataproviders.service.ts +++ b/services/searchDataproviders.service.ts @@ -190,7 +190,7 @@ export class SearchDataprovidersService { return subjects; } getDataproviderType(resData: any): string { - if(resData['datasourcetype'].hasOwnProperty("classname")) { + if(resData.hasOwnProperty('datasourcetype') && resData['datasourcetype'].hasOwnProperty("classname")) { return resData['datasourcetype'].classname; } else { return ''; From f7d8490e43d61dd99635b8cdb00582b07781cad0 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 19 Jul 2023 19:51:54 +0300 Subject: [PATCH 08/48] Stakeholder: Add projectUpdateDate. Input: Add date type. --- monitor/entities/stakeholder.ts | 1 + sharedComponents/input/input.component.ts | 60 +++++++++++++++++------ sharedComponents/input/input.module.ts | 10 +++- 3 files changed, 55 insertions(+), 16 deletions(-) diff --git a/monitor/entities/stakeholder.ts b/monitor/entities/stakeholder.ts index 2fece777..9284ad42 100644 --- a/monitor/entities/stakeholder.ts +++ b/monitor/entities/stakeholder.ts @@ -29,6 +29,7 @@ export class Stakeholder { visibility: Visibility; creationDate: Date = null; updateDate: Date; + projectUpdateDate: Date; /** @warning Use pipe in HTML or StringUtils.getLogoUrl in components */ logoUrl: string; isUpload: boolean = false; diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 18036a87..64de88d8 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -23,6 +23,7 @@ import {properties} from "../../../../environments/environment"; import {ClickEvent} from "../../utils/click/click-outside-or-esc.directive"; import {LayoutService} from "../../dashboard/sharedComponents/sidebar/layout.service"; import {MobileDropdownComponent} from "../../utils/mobile-dropdown/mobile-dropdown.component"; +import {MatDatepicker} from "@angular/material/datepicker"; export type InputType = 'text' @@ -33,7 +34,8 @@ export type InputType = | 'textarea' | 'select' | 'chips' - | 'year-range'; + | 'year-range' + | 'date'; export interface Option { icon?: string, @@ -75,9 +77,9 @@ declare var UIkit;
    -
    @@ -90,8 +92,8 @@ declare var UIkit; [class.uk-text-truncate]="!focused"> - + @@ -163,8 +165,11 @@ declare var UIkit; maxlength="4" (click)="activeIndex = 1;$event.preventDefault()" [formControl]="getFormByName(yearRange.to.control)">
    -
    +
    {{selectADate}}
    +
    {{formAsControl.getRawValue() | date: 'dd-MM-yyyy'}}
    + +
    @@ -174,8 +179,10 @@ declare var UIkit; (click)="resetSearch($event)"> - @@ -188,15 +195,18 @@ declare var UIkit;
    +
    + +
    + uk-dropdown="pos: bottom-justify; mode: none; boundary-align: true;" [attr.boundary]="'#' + id"> @@ -279,7 +289,9 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang /** Year Range Configuration */ @Input() yearRange: YearRange; public activeIndex: 0 | 1 | null = null; - + /** Date Configuration*/ + @Input() selectADate: string = 'Select a date'; + public selectedDate: Date; @Input() visibleRows: number = -1; @Input() extendEnter: () => void = null; @Output() focusEmitter: EventEmitter = new EventEmitter(); @@ -299,9 +311,11 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang private subscriptions: any[] = []; @ViewChild('inputBox') inputBox: ElementRef; @ViewChild('optionBox') optionBox: ElementRef; + @ViewChild('calendarBox') calendarBox: ElementRef; @ViewChild('mobileDropdown') mobileDropdown: MobileDropdownComponent; @ViewChild('searchInput') searchInput: ElementRef; @ViewChildren('chip') chips: QueryList; + @ViewChild('datepicker') datepicker: MatDatepicker; @Input() set placeholder(placeholder: string | Placeholder) { @@ -570,6 +584,9 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang let validator = this.formControl.validator({} as AbstractControl); this.required = (validator && validator.required); } + if(this.type === 'date') { + this.selectedDate = this.formAsControl.getRawValue()?new Date(this.formAsControl.getRawValue()):null; + } this.subscriptions.push(this.formControl.valueChanges.subscribe(value => { if (this.formControl.enabled) { if(this.type !== 'year-range') { @@ -589,6 +606,9 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang this.open(true); } } + if (this.type === 'date') { + this.selectedDate = value?new Date(value):null; + } } if ((this.value && value && this.value !== value) || (!this.value && value) || this.value && !value) { this.valueChange.emit(this.formControl.value); @@ -737,7 +757,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang this.searchInput.nativeElement.focus(); this.activeElement.next(this.chips.last); } - if (this.selectArrow) { + if (this.selectArrow || this.datepicker) { this.open(!this.opened); } else if (this.type !== 'autocomplete' || this.showOptionsOnEmpty || !this.formControl.value) { this.open(true); @@ -776,6 +796,13 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang UIkit.dropdown(this.optionBox.nativeElement).hide(); this.focused = false; } + } else if(this.calendarBox) { + if (this.opened) { + UIkit.dropdown(this.calendarBox.nativeElement).show(); + } else { + UIkit.dropdown(this.calendarBox.nativeElement).hide(); + this.focused = false; + } } else if(this.mobileDropdown) { if(this.opened) { this.mobileDropdown.open(); @@ -813,4 +840,9 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang } } } + + dateChanged(event: Date) { + this.focus(false); + this.formAsControl.setValue(event.getTime()); + } } diff --git a/sharedComponents/input/input.module.ts b/sharedComponents/input/input.module.ts index d332485a..fea6cc2c 100644 --- a/sharedComponents/input/input.module.ts +++ b/sharedComponents/input/input.module.ts @@ -1,10 +1,13 @@ import {NgModule} from '@angular/core'; import {InputComponent} from "./input.component"; -import {SharedModule} from "../../../openaireLibrary/shared/shared.module"; +import {SharedModule} from "../../shared/shared.module"; import {IconsModule} from "../../utils/icons/icons.module"; import {SafeHtmlPipeModule} from "../../utils/pipes/safeHTMLPipe.module"; import {ClickModule} from "../../utils/click/click.module"; import {MobileDropdownModule} from "../../utils/mobile-dropdown/mobile-dropdown.module"; +import {MatDatepickerModule} from "@angular/material/datepicker"; +import {MatNativeDateModule} from "@angular/material/core"; +import {MatInputModule} from "@angular/material/input"; @NgModule({ imports: [ @@ -12,7 +15,10 @@ import {MobileDropdownModule} from "../../utils/mobile-dropdown/mobile-dropdown. IconsModule, SafeHtmlPipeModule, ClickModule, - MobileDropdownModule + MobileDropdownModule, + MatDatepickerModule, + MatNativeDateModule, + MatInputModule ], exports: [ InputComponent From 73d6a9f32f255823effa506d08090e51e0590528 Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Thu, 20 Jul 2023 11:50:10 +0300 Subject: [PATCH 09/48] landing mobile: view all modal for FoS & SDGs. update how they appear --- landingPages/landing-utils/fos.component.ts | 14 +++++++++- landingPages/landing-utils/sdg.component.ts | 29 +++++++++++++-------- 2 files changed, 31 insertions(+), 12 deletions(-) diff --git a/landingPages/landing-utils/fos.component.ts b/landingPages/landing-utils/fos.component.ts index 39eaa6c5..c8445f9f 100644 --- a/landingPages/landing-utils/fos.component.ts +++ b/landingPages/landing-utils/fos.component.ts @@ -39,7 +39,7 @@ import {StringUtils} from "../../utils/string-utils.class";
    -
    Beta
    -
    - sdg_colors - SDGs: -
    From b18cfcf533541c26d71ec540e941d3c9d85228a3 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Thu, 20 Jul 2023 17:06:46 +0300 Subject: [PATCH 10/48] [Library | develop]: resultLanding.component.html & resultLanding.component.ts & transferData.component.html & transferData.component.ts: In desktop view, reverted data transfer modal to normal instead of full screen & small fixes for action icon and modal view | aligned "Go to search" back button with the rest of the page contents. --- .../result/resultLanding.component.html | 24 +- .../result/resultLanding.component.ts | 1 + .../dataTransfer/transferData.component.html | 272 +++++++++--------- utils/dataTransfer/transferData.component.ts | 37 ++- 4 files changed, 192 insertions(+), 142 deletions(-) diff --git a/landingPages/result/resultLanding.component.html b/landingPages/result/resultLanding.component.html index 0abe1f56..df125f35 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -3,7 +3,7 @@