Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Upgrade to angular 9 #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18,620 changes: 10,488 additions & 8,132 deletions package-lock.json

Large diffs are not rendered by default.

79 changes: 38 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,45 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~7.0.0",
"@angular/cdk": "~7.1.0",
"@angular/common": "~7.0.0",
"@angular/compiler": "~7.0.0",
"@angular/core": "~7.0.0",
"@angular/forms": "~7.0.0",
"@angular/http": "~7.0.0",
"@angular/material": "^7.1.0",
"@angular/platform-browser": "~7.0.0",
"@angular/platform-browser-dynamic": "~7.0.0",
"@angular/router": "~7.0.0",
"core-js": "^2.5.4",
"hammerjs": "^2.0.8",
"rxjs": "~6.3.3",
"zone.js": "~0.8.26"
"@angular/animations": "~9.1.7",
"@angular/cdk": "~9.2.4",
"@angular/common": "~9.1.7",
"@angular/compiler": "~9.1.7",
"@angular/core": "~9.1.7",
"@angular/forms": "~9.1.7",
"@angular/material": "~9.2.4",
"@angular/platform-browser": "~9.1.7",
"@angular/platform-browser-dynamic": "~9.1.7",
"@angular/router": "~9.1.7",
"rxjs": "~6.5.4",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.12.4",
"@angular-devkit/build-ng-packagr": "~0.10.0",
"@angular/cli": "~7.0.6",
"@angular/compiler-cli": "~7.0.0",
"@angular/language-service": "~7.0.0",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-firefox-launcher": "^1.1.0",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"ng-packagr": "^4.2.0",
"prettier": "^1.15.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tsickle": ">=0.29.0",
"tslib": "^1.9.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6",
"typescript-tslint-plugin": "^0.1.2"
"@angular-devkit/build-angular": "~0.901.6",
"@angular-devkit/build-ng-packagr": "~0.901.6",
"@angular/cli": "~9.1.6",
"@angular/compiler-cli": "~9.1.7",
"@angular/language-service": "~9.1.7",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.0",
"@types/node": "~13.9.0",
"codelyzer": "^5.2.2",
"core-js": "^3.6.5",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.2",
"karma": "~5.0.8",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-firefox-launcher": "^1.3.0",
"karma-jasmine": "~3.1.1",
"karma-jasmine-html-reporter": "^1.5.4",
"ng-packagr": "^9.0.0",
"prettier": "^2.0.5",
"protractor": "~7.0.0",
"ts-node": "~8.10.1",
"tsickle": "^0.38.1",
"tslib": "^1.10.0",
"tslint": "~6.1.2",
"typescript": "~3.8.3"
}
}
7 changes: 4 additions & 3 deletions projects/carousel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"access": "public"
},
"peerDependencies": {
"@angular/material": "^7.0.0",
"hammerjs": "^2.0.8",
"rxjs": "~6.3.3"
"@angular/material": "~9.2.4",
"@angular/common": "~9.1.7",
"@angular/core": "~9.1.7",
"rxjs": "~6.5.4"
}
}
1 change: 0 additions & 1 deletion projects/carousel/src/lib/carousel.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'hammerjs';
import { Component } from '@angular/core';
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
Expand Down
6 changes: 3 additions & 3 deletions projects/carousel/src/lib/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ export class MatCarouselComponent
public onMouseWheel(event: MouseWheelEvent): void {
if (this.useMouseWheel) {
event.preventDefault(); // prevent window to scroll
const Δ = Math.sign(event.wheelDelta);
const Δ = Math.sign(event.deltaY);

if (Δ < 0) {
if (Δ > 0) {
this.next();
} else if (Δ > 0) {
} else if (Δ < 0) {
this.previous();
}
}
Expand Down
2 changes: 1 addition & 1 deletion projects/carousel/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'core-js/es7/reflect';
import 'core-js/es/reflect';
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
Expand Down
1 change: 0 additions & 1 deletion projects/demo/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'hammerjs';
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

Expand Down
8 changes: 8 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,13 @@
"alwaysShowRuleFailuresAsWarnings": true
}
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true,
"enableIvy": false
}
}