1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-12 04:23:09 +02:00

Upgrading angular to v14 #587

This commit is contained in:
Patrik J. Braun 2023-03-11 10:46:29 +01:00
parent 126a7077c3
commit 3fe0c58e9a
9 changed files with 8421 additions and 5838 deletions

View File

@ -1,7 +1,9 @@
{ {
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": { "cli": {
"defaultCollection": "@angular-eslint/schematics" "schematicCollections": [
"@angular-eslint/schematics"
]
}, },
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
@ -218,6 +220,5 @@
} }
} }
} }
}, }
"defaultProject": "pigallery2"
} }

14174
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -55,27 +55,27 @@
"typeorm": "0.3.10" "typeorm": "0.3.10"
}, },
"devDependencies": { "devDependencies": {
"@angular-builders/custom-webpack": "13.1.0", "@angular-builders/custom-webpack": "14.1.0",
"@angular-devkit/build-optimizer": "0.1302.1", "@angular-devkit/build-optimizer": "0.1302.1",
"@angular-eslint/builder": "13.1.0", "@angular-eslint/builder": "14.4.0",
"@angular-eslint/eslint-plugin": "13.1.0", "@angular-eslint/eslint-plugin": "14.4.0",
"@angular-eslint/eslint-plugin-template": "13.1.0", "@angular-eslint/eslint-plugin-template": "14.4.0",
"@angular-eslint/schematics": "13.1.0", "@angular-eslint/schematics": "14.4.0",
"@angular-eslint/template-parser": "13.1.0", "@angular-eslint/template-parser": "14.4.0",
"@angular/animations": "13.3.1", "@angular/animations": "14.2.12",
"@angular/cli": "13.3.1", "@angular/cli": "14.2.10",
"@angular/common": "13.3.1", "@angular/common": "14.2.12",
"@angular/compiler": "13.3.1", "@angular/compiler": "14.2.12",
"@angular/compiler-cli": "13.3.1", "@angular/compiler-cli": "14.2.12",
"@angular/core": "13.3.1", "@angular/core": "14.2.12",
"@angular/forms": "13.3.1", "@angular/forms": "14.2.12",
"@angular/language-service": "13.3.1", "@angular/language-service": "14.2.12",
"@angular/localize": "13.3.1", "@angular/localize": "14.2.12",
"@angular/platform-browser": "13.3.1", "@angular/platform-browser": "14.2.12",
"@angular/platform-browser-dynamic": "13.3.1", "@angular/platform-browser-dynamic": "14.2.12",
"@angular/router": "13.3.1", "@angular/router": "14.2.12",
"@asymmetrik/ngx-leaflet": "13.0.2", "@asymmetrik/ngx-leaflet": "14.0.1",
"@asymmetrik/ngx-leaflet-markercluster": "13.0.1", "@asymmetrik/ngx-leaflet-markercluster": "14.0.1",
"@ngx-loading-bar/core": "6.0.2", "@ngx-loading-bar/core": "6.0.2",
"@types/archiver": "5.3.1", "@types/archiver": "5.3.1",
"@types/bcrypt": "5.0.0", "@types/bcrypt": "5.0.0",
@ -98,8 +98,8 @@
"@types/node-geocoder": "3.24.4", "@types/node-geocoder": "3.24.4",
"@types/sharp": "0.30.0", "@types/sharp": "0.30.0",
"@types/xml2js": "0.4.9", "@types/xml2js": "0.4.9",
"@typescript-eslint/eslint-plugin": "5.11.0", "@typescript-eslint/eslint-plugin": "5.36.2",
"@typescript-eslint/parser": "5.11.0", "@typescript-eslint/parser": "5.36.2",
"bootstrap": "5.3.0-alpha1", "bootstrap": "5.3.0-alpha1",
"chai": "4.3.6", "chai": "4.3.6",
"chai-http": "4.3.0", "chai-http": "4.3.0",
@ -108,7 +108,7 @@
"coveralls": "3.1.1", "coveralls": "3.1.1",
"deep-equal-in-any-order": "1.1.15", "deep-equal-in-any-order": "1.1.15",
"ejs-loader": "0.5.0", "ejs-loader": "0.5.0",
"eslint": "7.32.0", "eslint": "8.23.0",
"gulp": "4.0.2", "gulp": "4.0.2",
"gulp-json-editor": "2.5.6", "gulp-json-editor": "2.5.6",
"gulp-typescript": "5.0.1", "gulp-typescript": "5.0.1",
@ -123,12 +123,12 @@
"karma-jasmine-html-reporter": "1.7.0", "karma-jasmine-html-reporter": "1.7.0",
"leaflet": "1.7.1", "leaflet": "1.7.1",
"leaflet.markercluster": "1.5.3", "leaflet.markercluster": "1.5.3",
"mocha": "9.2.2", "mocha": "10.2.0",
"ngx-bootstrap": "8.0.0", "ngx-bootstrap": "9.0.0",
"ngx-clipboard": "15.1.0", "ngx-clipboard": "15.1.0",
"ngx-cookie-service": "13.1.2", "ngx-cookie-service": "14.0.1",
"ngx-device-detector": "3.0.0", "ngx-device-detector": "4.0.1",
"ngx-markdown": "13.1.0", "ngx-markdown": "14.0.1",
"ngx-toastr": "14.2.2", "ngx-toastr": "14.2.2",
"nyc": "15.1.0", "nyc": "15.1.0",
"open-iconic": "1.1.1", "open-iconic": "1.1.1",

View File

@ -12,7 +12,7 @@ import {
} from '../../../../../../common/entities/SearchQueryDTO'; } from '../../../../../../common/entities/SearchQueryDTO';
import { import {
ControlValueAccessor, ControlValueAccessor,
FormControl, UntypedFormControl,
NG_VALIDATORS, NG_VALIDATORS,
NG_VALUE_ACCESSOR, NG_VALUE_ACCESSOR,
ValidationErrors, ValidationErrors,
@ -75,7 +75,7 @@ export class GallerySearchQueryBuilderComponent
this.onChange(); this.onChange();
} }
validate(control: FormControl): ValidationErrors { validate(control: UntypedFormControl): ValidationErrors {
return { required: true }; return { required: true };
} }

View File

@ -15,7 +15,7 @@ import {
import { Utils } from '../../../../../../common/Utils'; import { Utils } from '../../../../../../common/Utils';
import { import {
ControlValueAccessor, ControlValueAccessor,
FormControl, UntypedFormControl,
NG_VALIDATORS, NG_VALIDATORS,
NG_VALUE_ACCESSOR, NG_VALUE_ACCESSOR,
ValidationErrors, ValidationErrors,
@ -92,7 +92,7 @@ export class GallerySearchQueryEntryComponent
return this.queryEntry as TextSearch; return this.queryEntry as TextSearch;
} }
validate(control: FormControl): ValidationErrors { validate(control: UntypedFormControl): ValidationErrors {
return { required: true }; return { required: true };
} }

View File

@ -21,7 +21,7 @@ import {
import { Config } from '../../../../../../common/config/public/Config'; import { Config } from '../../../../../../common/config/public/Config';
import { import {
ControlValueAccessor, ControlValueAccessor,
FormControl, UntypedFormControl,
NG_VALIDATORS, NG_VALIDATORS,
NG_VALUE_ACCESSOR, NG_VALUE_ACCESSOR,
ValidationErrors, ValidationErrors,
@ -249,7 +249,7 @@ export class GallerySearchFieldBaseComponent
this.propagateChange(this.rawSearchText); this.propagateChange(this.rawSearchText);
} }
validate(control: FormControl): ValidationErrors { validate(control: UntypedFormControl): ValidationErrors {
return { required: true }; return { required: true };
} }

View File

@ -2,7 +2,7 @@ import {Component, EventEmitter, forwardRef, Input, Output,TemplateRef} from '@a
import {Router, RouterLink} from '@angular/router'; import {Router, RouterLink} from '@angular/router';
import {AutoCompleteService} from '../autocomplete.service'; import {AutoCompleteService} from '../autocomplete.service';
import {SearchQueryDTO} from '../../../../../../common/entities/SearchQueryDTO'; import {SearchQueryDTO} from '../../../../../../common/entities/SearchQueryDTO';
import {ControlValueAccessor, FormControl, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator,} from '@angular/forms'; import {ControlValueAccessor, UntypedFormControl, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator,} from '@angular/forms';
import {SearchQueryParserService} from '../search-query-parser.service'; import {SearchQueryParserService} from '../search-query-parser.service';
import {BsModalRef, BsModalService,} from '../../../../../../../node_modules/ngx-bootstrap/modal'; import {BsModalRef, BsModalService,} from '../../../../../../../node_modules/ngx-bootstrap/modal';
@ -76,7 +76,7 @@ export class GallerySearchFieldComponent
this.propagateChange(this.searchQueryDTO); this.propagateChange(this.searchQueryDTO);
} }
validate(control: FormControl): ValidationErrors { validate(control: UntypedFormControl): ValidationErrors {
return {required: true}; return {required: true};
} }

View File

@ -7,7 +7,7 @@ import {WebConfig} from '../../../../../common/config/private/WebConfig';
import {JobProgressDTO} from '../../../../../common/entities/job/JobProgressDTO'; import {JobProgressDTO} from '../../../../../common/entities/job/JobProgressDTO';
import {JobDTOUtils} from '../../../../../common/entities/job/JobDTO'; import {JobDTOUtils} from '../../../../../common/entities/job/JobDTO';
import {ScheduledJobsService} from '../scheduled-jobs.service'; import {ScheduledJobsService} from '../scheduled-jobs.service';
import {FormControl} from '@angular/forms'; import {UntypedFormControl} from '@angular/forms';
import {Subscription} from 'rxjs'; import {Subscription} from 'rxjs';
import {IWebConfigClassPrivate} from '../../../../../../node_modules/typeconfig/src/decorators/class/IWebConfigClass'; import {IWebConfigClassPrivate} from '../../../../../../node_modules/typeconfig/src/decorators/class/IWebConfigClass';
import {ConfigPriority, TAGS} from '../../../../../common/config/public/ClientConfig'; import {ConfigPriority, TAGS} from '../../../../../common/config/public/ClientConfig';
@ -63,7 +63,7 @@ export class TemplateComponent implements OnInit, OnChanges, OnDestroy, ISetting
nestedConfigs: { id: string, name: string, visible: () => boolean, icon: string }[] = []; nestedConfigs: { id: string, name: string, visible: () => boolean, icon: string }[] = [];
@ViewChild('settingsForm', {static: true}) @ViewChild('settingsForm', {static: true})
form: FormControl; form: UntypedFormControl;
public inProgress = false; public inProgress = false;

View File

@ -11,7 +11,7 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2017", "target": "es2020",
"module": "CommonJS", "module": "CommonJS",
"lib": [ "lib": [
"es2020", "es2020",