From 65ed8d9d91439db53eaf6558080f671e5ec243a3 Mon Sep 17 00:00:00 2001 From: Nilesh Patel Date: Sun, 10 Jul 2022 19:03:58 +0530 Subject: [PATCH] core: update angular to 14 --- angular.json | 1 - package.json | 31 ++++++++++--------- .../multiple-custom-template.ts | 6 ++-- src/app/components/select/multiple-demo.ts | 6 ++-- src/tsconfig.spec.json | 2 +- tsconfig.json | 2 +- 6 files changed, 25 insertions(+), 23 deletions(-) diff --git a/angular.json b/angular.json index 100c3bd..baf220f 100644 --- a/angular.json +++ b/angular.json @@ -108,7 +108,6 @@ } } }, - "defaultProject": "ng-multiselect-dropdown-base", "schematics": { "@schematics/angular:component": { "prefix": "ng", diff --git a/package.json b/package.json index 0b76835..32dcf6b 100644 --- a/package.json +++ b/package.json @@ -44,21 +44,24 @@ "url": "https://github.com/nileshpatel17/ng-multiselect-dropdown/issues" }, "homepage": "https://github.com/nileshpatel17/ng-multiselect-dropdown#readme", - "peerDependencies": {}, + "peerDependencies": { + "@angular/common": ">=2.0.0", + "@angular/core": ">=2.0.0" + }, "devDependencies": { - "@angular-devkit/build-angular": "~13.3.8", - "@angular/animations": "13.3.11", - "@angular/cli": "^13.3.8", - "@angular/common": "13.3.11", - "@angular/compiler": "13.3.11", - "@angular/compiler-cli": "13.3.11", - "@angular/core": "13.3.11", - "@angular/forms": "13.3.11", + "@angular-devkit/build-angular": "^14.0.5", + "@angular/animations": "14.0.5", + "@angular/cli": "^14.0.5", + "@angular/common": "14.0.5", + "@angular/compiler": "14.0.5", + "@angular/compiler-cli": "14.0.5", + "@angular/core": "14.0.5", + "@angular/forms": "14.0.5", "@angular/http": "7.2.15", - "@angular/language-service": "13.3.11", - "@angular/platform-browser": "13.3.11", - "@angular/platform-browser-dynamic": "13.3.11", - "@angular/router": "13.3.11", + "@angular/language-service": "14.0.5", + "@angular/platform-browser": "14.0.5", + "@angular/platform-browser-dynamic": "14.0.5", + "@angular/router": "14.0.5", "@types/jasmine": "~3.4.0", "@types/jasminewd2": "~2.0.2", "@types/node": "^12.11.1", @@ -72,7 +75,7 @@ "jest": "^24.9.0", "jest-preset-angular": "^7.1.1", "ng-multiselect-dropdown": "^0.2.11", - "ng-packagr": "^13.3.1", + "ng-packagr": "^14.0.3", "ngx-bootstrap": "^5.1.1", "protractor": "~7.0.0", "rimraf": "^3.0.0", diff --git a/src/app/components/select/multiple-custom-template/multiple-custom-template.ts b/src/app/components/select/multiple-custom-template/multiple-custom-template.ts index 104e8f0..99a83a0 100644 --- a/src/app/components/select/multiple-custom-template/multiple-custom-template.ts +++ b/src/app/components/select/multiple-custom-template/multiple-custom-template.ts @@ -1,4 +1,4 @@ -import { FormBuilder, FormGroup } from "@angular/forms"; +import { UntypedFormBuilder, UntypedFormGroup } from "@angular/forms"; import { Component, OnInit } from "@angular/core"; import { IDropdownSettings } from "../../../../ng-multiselect-dropdown/src"; @@ -7,7 +7,7 @@ import { IDropdownSettings } from "../../../../ng-multiselect-dropdown/src"; templateUrl: "./multiple-custom-template.html", }) export class MultipleCustomTempComponent implements OnInit { - myForm: FormGroup; + myForm: UntypedFormGroup; disabled = false; ShowFilter = true; showAll = true; @@ -159,7 +159,7 @@ export class MultipleCustomTempComponent implements OnInit { } `; - constructor(private fb: FormBuilder) {} + constructor(private fb: UntypedFormBuilder) {} ngOnInit() { this.cities = [ diff --git a/src/app/components/select/multiple-demo.ts b/src/app/components/select/multiple-demo.ts index 2edd20f..dd5c054 100644 --- a/src/app/components/select/multiple-demo.ts +++ b/src/app/components/select/multiple-demo.ts @@ -1,4 +1,4 @@ -import { FormBuilder, FormGroup } from '@angular/forms'; +import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { Component, OnInit } from '@angular/core'; import { IDropdownSettings } from '../../../ng-multiselect-dropdown/src'; @@ -7,7 +7,7 @@ import { IDropdownSettings } from '../../../ng-multiselect-dropdown/src'; templateUrl: './multiple-demo.html' }) export class MultipleDemoComponent implements OnInit { - myForm: FormGroup; + myForm: UntypedFormGroup; disabled = false; ShowFilter = true; showAll = true; @@ -108,7 +108,7 @@ export class MultipleDemoComponent implements OnInit { } `; - constructor(private fb: FormBuilder) {} + constructor(private fb: UntypedFormBuilder) {} ngOnInit() { this.cities = [ diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json index 7518a53..6b6b866 100644 --- a/src/tsconfig.spec.json +++ b/src/tsconfig.spec.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../out-tsc/spec", "baseUrl": "./", - "target": "es5", + "target": "es2020", "types": [ "jasmine", "node" diff --git a/tsconfig.json b/tsconfig.json index 216f833..0f53ee6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "declaration": false, "moduleResolution": "node", "experimentalDecorators": true, - "target": "es2018", + "target": "es2020", "typeRoots": ["node_modules/@types"], "lib": ["es2016","es2015", "dom"] }