commit to migrate angular version to '14.x'

This commit is contained in:
Tarun Jain 2023-02-23 16:15:24 +05:30
parent 0fd7b932fc
commit d9d0bd2302
7 changed files with 4437 additions and 4714 deletions

View File

@ -109,7 +109,6 @@
} }
} }
}, },
"defaultProject": "WebSPA",
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
"prefix": "app", "prefix": "app",

File diff suppressed because it is too large Load Diff

View File

@ -27,19 +27,19 @@
"lint:ts": "tslint -c tslint.json Client/**/*.ts" "lint:ts": "tslint -c tslint.json Client/**/*.ts"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/schematics": "^13.3.10", "@angular-devkit/schematics": "^14.2.10",
"@angular/animations": "13.3.12", "@angular/animations": "14.2.12",
"@angular/common": "13.3.12", "@angular/common": "14.2.12",
"@angular/compiler": "13.3.12", "@angular/compiler": "14.2.12",
"@angular/core": "13.3.12", "@angular/core": "14.2.12",
"@angular/forms": "13.3.12", "@angular/forms": "14.2.12",
"@angular/platform-browser": "13.3.12", "@angular/platform-browser": "14.2.12",
"@angular/platform-browser-dynamic": "13.3.12", "@angular/platform-browser-dynamic": "14.2.12",
"@angular/platform-server": "13.3.12", "@angular/platform-server": "14.2.12",
"@angular/router": "13.3.12", "@angular/router": "14.2.12",
"@microsoft/signalr": "3.0.1", "@microsoft/signalr": "3.0.1",
"@ng-bootstrap/ng-bootstrap": "^11.0.1", "@ng-bootstrap/ng-bootstrap": "13.1.1",
"@popperjs/core": "2.0.0", "@popperjs/core": "2.11.6",
"acorn": "^6.4.1", "acorn": "^6.4.1",
"acorn-dynamic-import": "4.0.0", "acorn-dynamic-import": "4.0.0",
"bootstrap": "4.4.1", "bootstrap": "4.4.1",
@ -61,10 +61,10 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~13.3.10", "@angular-devkit/build-angular": "^14.2.10",
"@angular/cli": "13.3.10", "@angular/cli": "14.2.10",
"@angular/compiler-cli": "13.3.12", "@angular/compiler-cli": "14.2.12",
"@angular/language-service": "13.3.12", "@angular/language-service": "14.2.12",
"@types/core-js": "2.5.0", "@types/core-js": "2.5.0",
"@types/hammerjs": "2.0.35", "@types/hammerjs": "2.0.35",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",

View File

@ -7,7 +7,7 @@ import { BasketService } from '../../basket/basket.service';
import { IOrder } from '../../shared/models/order.model'; import { IOrder } from '../../shared/models/order.model';
import { BasketWrapperService } from '../../shared/services/basket.wrapper.service'; import { BasketWrapperService } from '../../shared/services/basket.wrapper.service';
import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
@Component({ @Component({
@ -16,12 +16,12 @@ import { Router } from '@angular/router';
templateUrl: './orders-new.component.html' templateUrl: './orders-new.component.html'
}) })
export class OrdersNewComponent implements OnInit { export class OrdersNewComponent implements OnInit {
newOrderForm: FormGroup; // new order form newOrderForm: UntypedFormGroup; // new order form
isOrderProcessing: boolean; isOrderProcessing: boolean;
errorReceived: boolean; errorReceived: boolean;
order: IOrder; order: IOrder;
constructor(private orderService: OrdersService, private basketService: BasketService, fb: FormBuilder, private router: Router) { constructor(private orderService: OrdersService, private basketService: BasketService, fb: UntypedFormBuilder, private router: Router) {
// Obtain user profile information // Obtain user profile information
this.order = orderService.mapOrderAndIdentityInfoNewOrder(); this.order = orderService.mapOrderAndIdentityInfoNewOrder();
this.newOrderForm = fb.group({ this.newOrderForm = fb.group({

View File

@ -2,7 +2,7 @@
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/spec", "outDir": "../out-tsc/spec",
"target": "es5", "target": "es2020",
"baseUrl": "", "baseUrl": "",
"types": [ "types": [
"jasmine", "jasmine",

View File

@ -7,7 +7,7 @@
"declaration": false, "declaration": false,
"moduleResolution": "node", "moduleResolution": "node",
"experimentalDecorators": true, "experimentalDecorators": true,
"target": "es2015", "target": "es2020",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],

File diff suppressed because it is too large Load Diff