feat: angular 7+ update (#1910)

Closes #1890

BREAKING CHANGES:
Angular 7+ now required.
The following libraries were updated:
- @agm/core
- @ng-bootstrap/ng-bootstrap
- @swimlane/ngx-charts
- ng2-ckeditor
- ngx-echarts
This commit is contained in:
Nikita Poltoratsky 2018-11-19 15:40:01 +02:00 committed by Dmitry Nehaychik
parent 3f422db62e
commit aa7579ccd6
13 changed files with 4568 additions and 1504 deletions

View file

@ -2,8 +2,8 @@ import { Component, OnDestroy } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { combineLatest } from 'rxjs';
import { takeWhile } from 'rxjs/operators';
import { NgxEchartsService } from 'ngx-echarts';
import { NbThemeService } from '@nebular/theme';
import { registerMap } from 'echarts';
@Component({
selector: 'ngx-bubble-map',
@ -31,8 +31,7 @@ export class BubbleMapComponent implements OnDestroy {
private alive = true;
constructor(private theme: NbThemeService,
private http: HttpClient,
private es: NgxEchartsService) {
private http: HttpClient) {
combineLatest([
this.http.get('assets/map/world.json'),
@ -41,7 +40,7 @@ export class BubbleMapComponent implements OnDestroy {
.pipe(takeWhile(() => this.alive))
.subscribe(([map, config]: [any, any]) => {
this.es.registerMap('world', map);
registerMap('world', map);
const colors = config.variables;
this.bubbleTheme = config.variables.bubbleMap;

View file

@ -1,7 +1,7 @@
import { Component, ElementRef, EventEmitter, NgZone, OnInit, Output, ViewChild } from '@angular/core';
import { MapsAPILoader } from '@agm/core';
import { Location } from '../entity/Location';
import {} from 'googlemaps';
@Component({
selector: 'ngx-search',