Skip to content

Commit 38766e5

Browse files
authored
Merge pull request #1627 from CSCfi/CSCTTV-3110
Cscttv 3110
2 parents bf78b05 + 5e33c9d commit 38766e5

File tree

11 files changed

+19212
-1691
lines changed

11 files changed

+19212
-1691
lines changed

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@
216216
}
217217
}
218218
},
219-
"defaultProject": "research-fi",
220219
"cli": {
221220
"analytics": "62223fc9-a5db-4ac2-971b-f0c9a7c7c85e"
222221
}

package-lock.json

Lines changed: 19180 additions & 1658 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@
2323
},
2424
"private": true,
2525
"dependencies": {
26-
"@angular/animations": "^13.2.2",
27-
"@angular/cdk": "^13.2.2",
28-
"@angular/common": "^13.2.2",
29-
"@angular/compiler": "^13.2.2",
30-
"@angular/core": "^13.2.2",
31-
"@angular/forms": "^13.2.2",
32-
"@angular/localize": "^13.2.2",
33-
"@angular/material": "^13.2.2",
34-
"@angular/platform-browser": "^13.2.2",
35-
"@angular/platform-browser-dynamic": "^13.2.2",
36-
"@angular/platform-server": "^13.2.2",
37-
"@angular/router": "^13.2.2",
26+
"@angular/animations": "^14.2.12",
27+
"@angular/cdk": "^14.2.7",
28+
"@angular/common": "^14.2.12",
29+
"@angular/compiler": "^14.2.12",
30+
"@angular/core": "^14.2.12",
31+
"@angular/forms": "^14.2.12",
32+
"@angular/localize": "^14.2.12",
33+
"@angular/material": "^14.2.7",
34+
"@angular/platform-browser": "^14.2.12",
35+
"@angular/platform-browser-dynamic": "^14.2.12",
36+
"@angular/platform-server": "^14.2.12",
37+
"@angular/router": "^14.2.12",
3838
"@elastic/apm-rum-angular": "^2.1.4",
3939
"@fortawesome/angular-fontawesome": "^0.10.1",
4040
"@fortawesome/fontawesome-svg-core": "^1.3.0",
@@ -84,10 +84,10 @@
8484
"zone.js": "~0.11.8"
8585
},
8686
"devDependencies": {
87-
"@angular-devkit/build-angular": "^13.2.3",
88-
"@angular/cli": "^13.2.6",
89-
"@angular/compiler-cli": "^13.2.2",
90-
"@angular/language-service": "^13.2.6",
87+
"@angular-devkit/build-angular": "^14.2.10",
88+
"@angular/cli": "^14.2.10",
89+
"@angular/compiler-cli": "^14.2.12",
90+
"@angular/language-service": "^14.2.12",
9191
"@babel/cli": "^7.18.10",
9292
"@babel/core": "^7.17.4",
9393
"@babel/preset-env": "^7.16.11",
@@ -123,4 +123,4 @@
123123
"optionalDependencies": {
124124
"esbuild-android-arm64": "^0.15.13"
125125
}
126-
}
126+
}

src/app/mydata/components/welcome-stepper/welcome-stepper.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, EventEmitter, OnInit, Output, ViewEncapsulation } from '@angular/core';
22
import { MatStepperModule } from '@angular/material/stepper'
3-
import { FormBuilder, Validators } from '@angular/forms';
3+
import { UntypedFormBuilder, Validators } from '@angular/forms';
44
import { STEPPER_GLOBAL_OPTIONS } from '@angular/cdk/stepper';
55
import { ActivatedRoute, NavigationEnd, Router, RouterEvent } from '@angular/router';
66
import { Observable } from 'rxjs';
@@ -45,7 +45,7 @@ export class WelcomeStepperComponent implements OnInit {
4545
$localize`:@@welcomeStepperStep4Caption:Esikatsele julkiseen profiiliisi lisäämiäsi tietoja ennen niiden julkaisemista.`,
4646
$localize`:@@welcomeStepperStep5Caption:Jaa halutessasi profiilisi tietoja myös muille tutkimustoimijoille.`,
4747
$localize`:@@welcomeStepperStep6Caption:Valmista!`,
48-
];
48+
];
4949

5050
localizedStepContent = [$localize`:@@welcomeStepperStep1Caption:Suomi.fi-tunnistautumisen avulla vahvistamme henkilöllisyytesi. ORCID-tunnisteen avulla voit koota profiiliisi tiedot eri lähteistä.`,
5151
$localize`:@@welcomeStepperStep2Content1:Kun olet kirjautunut, voit valita, mitkä ORCID-tunnisteeseesi yhdistetyt tiedot haluat asettaa julkiseksi profiilissasi. Voit liittää profiiliin tietoja ORCID-palvelusta löytyvien tietojen lisäksi myös oman kotiorganisaatiosi tiedoista. Sinun tarvitsee vain valita julkiseksi asetettavat tiedot. Työkaluun ei ole mahdollista syöttää tietoja itse.`,
@@ -58,7 +58,7 @@ export class WelcomeStepperComponent implements OnInit {
5858
];
5959

6060
constructor(
61-
private _formBuilder: FormBuilder,
61+
private _formBuilder: UntypedFormBuilder,
6262
private dialogEvents: DialogEventsService,
6363
private oidcSecurityService: OidcSecurityService,
6464
private router: Router,

src/app/portal/components/news/news-card/news-card.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ app-news-card {
142142
}
143143
}
144144

145-
@media screen and(max-width: 991px) {
145+
@media screen and (max-width: 991px) {
146146
.mat-card-header-text {
147147
margin: 0 !important;
148148
}
149149
}
150-
@media screen and(max-width: 515px) {
150+
@media screen and (max-width: 515px) {
151151
.news-img {
152152
padding: 0px;
153153
}

src/app/portal/components/results/filters/filters.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ <h3 class="header" *ngIf="!mobile && !showButton">
331331
<mat-selection-list
332332
[attr.aria-label]="filter.field"
333333
(selectionChange)="
334-
selectionChange(filter.field, $event.option.value)
334+
selectionChange(filter.field, $event.options[0].value)
335335
"
336336
>
337337
<!-- Options -->

src/app/portal/components/science-politics/figures/figures.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
} from '@fortawesome/free-solid-svg-icons';
2828
import { faChartBar } from '@fortawesome/free-regular-svg-icons';
2929
import { isPlatformBrowser, ViewportScroller } from '@angular/common';
30-
import { FormControl } from '@angular/forms';
30+
import { UntypedFormControl } from '@angular/forms';
3131
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
3232
import { TabChangeService } from 'src/app/portal/services/tab-change.service';
3333
import { ResizeService } from 'src/app/shared/services/resize.service';
@@ -57,7 +57,7 @@ export class FiguresComponent implements OnInit, AfterViewInit, OnDestroy {
5757
faChevronUp = faChevronUp;
5858

5959
currentSection: any;
60-
queryField: FormControl = new FormControl();
60+
queryField: UntypedFormControl = new UntypedFormControl();
6161
figureData: Figure[] = [];
6262
filteredData: any[];
6363
queryResults: any[];

src/app/portal/components/search-bar/search-bar.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { SearchService } from '@portal/services/search.service';
2525
import { SortService } from '@portal/services/sort.service';
2626
import { AutosuggestService } from '@portal/services/autosuggest.service';
2727
import { TabChangeService } from '@portal/services/tab-change.service';
28-
import { FormControl } from '@angular/forms';
28+
import { UntypedFormControl } from '@angular/forms';
2929
import { Router, ActivatedRoute } from '@angular/router';
3030
import { Subscription } from 'rxjs';
3131
import { debounceTime, distinctUntilChanged, map } from 'rxjs/operators';
@@ -56,7 +56,7 @@ export class SearchBarComponent implements OnInit, AfterViewInit, OnDestroy {
5656
autoSuggestResponse: any;
5757
topData: any;
5858
otherData: any[];
59-
queryField: FormControl = new FormControl();
59+
queryField: UntypedFormControl = new UntypedFormControl();
6060
currentInput: any;
6161
showAutoSuggest = false;
6262
queryHistory: any;
@@ -152,7 +152,7 @@ export class SearchBarComponent implements OnInit, AfterViewInit, OnDestroy {
152152
this.inputSub = this.searchService.currentInput.subscribe(
153153
(input) => (this.currentTerm = input)
154154
);
155-
this.queryField = new FormControl(this.currentTerm);
155+
this.queryField = new UntypedFormControl(this.currentTerm);
156156

157157
// Hotfix to set docList infrastructure field with locale
158158
this.docList[2].field = this.docList[2].field + this.currentLocale;

src/app/shared/components/search/search.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
EventEmitter,
1616
AfterViewInit,
1717
} from '@angular/core';
18-
import { FormBuilder } from '@angular/forms';
18+
import { UntypedFormBuilder } from '@angular/forms';
1919
import { faSearch } from '@fortawesome/free-solid-svg-icons';
2020

2121
@Component({
@@ -39,7 +39,7 @@ export class SearchComponent implements OnInit, AfterViewInit {
3939

4040
@ViewChild('searchInput') searchInput: ElementRef;
4141

42-
constructor(private formBuilder: FormBuilder) {}
42+
constructor(private formBuilder: UntypedFormBuilder) {}
4343

4444
ngOnInit(): void {
4545
if (this.initialTerm)

tsconfig.es5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"target": "es5"
4+
"target": "es2020"
55
},
66
"include": ["src/**/*.d.ts"]
77
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"emitDecoratorMetadata": true,
1414
"experimentalDecorators": true,
1515
"importHelpers": true,
16-
"target": "es2015",
16+
"target": "es2020",
1717
"typeRoots": ["node_modules/@types"],
1818
"lib": ["es2019", "dom", "esnext.array"],
1919
"paths": {

0 commit comments

Comments
 (0)