diff --git a/package.json b/package.json index 231254d..ff65c95 100644 --- a/package.json +++ b/package.json @@ -13,52 +13,52 @@ }, "private": true, "dependencies": { - "@angular/animations": "^7.2.15", + "@angular/animations": "^8.2.14", "@angular/cdk": "^7.3.7", - "@angular/common": "^7.2.15", - "@angular/compiler": "^7.2.15", - "@angular/core": "^7.2.15", - "@angular/forms": "^7.2.15", + "@angular/common": "^8.2.14", + "@angular/compiler": "^8.2.14", + "@angular/core": "^8.2.14", + "@angular/forms": "^8.2.14", "@angular/material": "^7.3.7", - "@angular/platform-browser": "^7.2.15", - "@angular/platform-browser-dynamic": "^7.2.15", - "@angular/router": "^7.2.15", + "@angular/platform-browser": "^8.2.14", + "@angular/platform-browser-dynamic": "^8.2.14", + "@angular/router": "^8.2.14", "@types/heatmap.js": "^2.0.36", "ajv": "^7.2.1", - "bootstrap": "^4.3.1", - "core-js": "^2.6.9", + "bootstrap": "^4.6.0", + "core-js": "^2.6.12", "heatmap.js": "^2.0.5", - "jquery": "^3.4.1", - "leaflet": "^1.5.1", + "jquery": "^3.6.0", + "leaflet": "^1.7.1", "leaflet-heatmap": "^1.0.0", - "ngx-gauge": "1.0.0-beta.10", + "ngx-gauge": "1.0.0-beta.13", "ngx-mqtt": "6.10.0", - "popper.js": "^1.15.0", - "rxjs": "~6.3.3", - "tslib": "^1.10.0", - "zone.js": "~0.8.26" + "popper.js": "^1.16.1", + "rxjs": "~6.6.6", + "tslib": "^1.14.1", + "zone.js": "~0.9.1" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.1102.5", - "@angular/cli": "~7.2.1", - "@angular/compiler-cli": "^7.2.15", - "@angular/language-service": "^7.2.15", - "@types/jasmine": "~2.8.8", - "@types/jasminewd2": "~2.0.3", + "@angular-devkit/build-angular": "~0.803.29", + "@angular/cli": "~8.3.29", + "@angular/compiler-cli": "^8.2.14", + "@angular/language-service": "^8.2.14", + "@types/jasmine": "^2.8.17", + "@types/jasminewd2": "^2.0.8", "@types/node": "~8.9.4", - "codecov": "^3.5.0", - "codelyzer": "~4.5.0", + "codecov": "^3.8.1", + "codelyzer": "^5.0.1", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~3.1.1", "karma-chrome-launcher": "~2.2.0", "karma-coverage": "^1.1.2", - "karma-coverage-istanbul-reporter": "^2.0.6", + "karma-coverage-istanbul-reporter": "^2.1.1", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", - "protractor": "~5.4.0", + "protractor": "^5.4.4", "ts-node": "~7.0.0", "tslint": "~5.11.0", - "typescript": "~3.2.2" + "typescript": "~3.5.3" } } diff --git a/src/app/components/heatmap/heatmap.component.ts b/src/app/components/heatmap/heatmap.component.ts index e7b203b..7637ea6 100644 --- a/src/app/components/heatmap/heatmap.component.ts +++ b/src/app/components/heatmap/heatmap.component.ts @@ -11,7 +11,7 @@ import { environment } from '../../../environments/environment'; }) export class HeatmapComponent implements AfterViewInit { - @ViewChild('heatmapDiv') + @ViewChild('heatmapDiv', { static: true }) private heatmapDiv: ElementRef; @Input() diff --git a/src/browserslist b/src/browserslist deleted file mode 100644 index 37371cb..0000000 --- a/src/browserslist +++ /dev/null @@ -1,11 +0,0 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# -# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed - -> 0.5% -last 2 versions -Firefox ESR -not dead -not IE 9-11 \ No newline at end of file diff --git a/src/polyfills.ts b/src/polyfills.ts index a6d34ea..aa665d6 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -18,31 +18,9 @@ * BROWSER POLYFILLS */ -/** IE9, IE10, IE11, and Chrome <55 requires all of the following polyfills. - * This also includes Android Emulators with older versions of Chrome and Google Search/Googlebot - */ - -// import 'core-js/es6/symbol'; -// import 'core-js/es6/object'; -// import 'core-js/es6/function'; -// import 'core-js/es6/parse-int'; -// import 'core-js/es6/parse-float'; -// import 'core-js/es6/number'; -// import 'core-js/es6/math'; -// import 'core-js/es6/string'; -// import 'core-js/es6/date'; -// import 'core-js/es6/array'; -// import 'core-js/es6/regexp'; -// import 'core-js/es6/map'; -// import 'core-js/es6/weak-map'; -// import 'core-js/es6/set'; - /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. -/** IE10 and IE11 requires the following for the Reflect API. */ -// import 'core-js/es6/reflect'; - /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. @@ -65,7 +43,7 @@ * * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick - * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames * * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge diff --git a/tsconfig.json b/tsconfig.json index b271fd9..26e538b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,15 +2,16 @@ "compileOnSave": false, "compilerOptions": { "baseUrl": "./", + "downlevelIteration": true, "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, - "module": "es2015", + "module": "esnext", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, - "target": "es5", + "target": "es2015", "typeRoots": [ "node_modules/@types" ], diff --git a/tslint.json b/tslint.json index c740a7b..a919351 100644 --- a/tslint.json +++ b/tslint.json @@ -118,12 +118,12 @@ "check-type" ], "no-output-on-prefix": true, - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, + "no-inputs-metadata-property": true, + "no-outputs-metadata-property": true, + "no-host-metadata-property": true, "no-input-rename": true, "no-output-rename": true, - "use-life-cycle-interface": true, + "use-lifecycle-interface": true, "use-pipe-transform-interface": true, "component-class-suffix": true, "directive-class-suffix": true