Skip to content

Commit f157011

Browse files
committed
build(angular): update angular to 9.1.11
1 parent 4679113 commit f157011

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2100
-1087
lines changed

angular.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14+
"aot": true,
1415
"outputPath": "dist",
1516
"index": "src/index.html",
1617
"main": "src/main.ts",
@@ -28,6 +29,12 @@
2829
},
2930
"configurations": {
3031
"production": {
32+
"budgets": [
33+
{
34+
"type": "anyComponentStyle",
35+
"maximumWarning": "6kb"
36+
}
37+
],
3138
"optimization": true,
3239
"outputHashing": "all",
3340
"sourceMap": false,
@@ -89,7 +96,7 @@
8996
"schematics": {
9097
"@schematics/angular:component": {
9198
"prefix": "app",
92-
"styleext": "scss"
99+
"style": "scss"
93100
},
94101
"@schematics/angular:directive": {
95102
"prefix": "app"

package.json

+17-16
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
},
3434
"homepage": "https://github.com/CreativeIT/material-angular-dashboard",
3535
"dependencies": {
36-
"@angular/animations": "8.2.14",
37-
"@angular/common": "8.2.14",
38-
"@angular/compiler": "8.2.14",
39-
"@angular/core": "8.2.14",
40-
"@angular/forms": "8.2.14",
36+
"@angular/animations": "9.1.11",
37+
"@angular/common": "9.1.11",
38+
"@angular/compiler": "9.1.11",
39+
"@angular/core": "9.1.11",
40+
"@angular/forms": "9.1.11",
4141
"@angular/http": "7.2.1",
42-
"@angular/platform-browser": "8.2.14",
43-
"@angular/platform-browser-dynamic": "8.2.14",
44-
"@angular/router": "8.2.14",
42+
"@angular/platform-browser": "9.1.11",
43+
"@angular/platform-browser-dynamic": "9.1.11",
44+
"@angular/router": "9.1.11",
4545
"@types/googlemaps": "^3.30.18",
4646
"classlist.js": "1.1.20150312",
4747
"core-js": "2.5.6",
@@ -50,18 +50,19 @@
5050
"material-design-lite": "1.3.0",
5151
"nvd3": "1.8.6",
5252
"rxjs": "6.5.5",
53-
"zone.js": "0.9.1"
53+
"tslib": "^2.0.0",
54+
"zone.js": "~0.10.3"
5455
},
5556
"devDependencies": {
56-
"@angular-devkit/build-angular": "0.803.28",
57-
"@angular/cli": "8.3.28",
58-
"@angular/compiler-cli": "8.2.14",
59-
"@angular/language-service": "8.2.14",
57+
"@angular-devkit/build-angular": "~0.1000.0",
58+
"@angular/cli": "9.1.9",
59+
"@angular/compiler-cli": "9.1.11",
60+
"@angular/language-service": "9.1.11",
6061
"@types/d3": "3.5.40",
6162
"@types/material-design-lite": "1.1.15",
62-
"@types/node": "10.1.2",
63+
"@types/node": "^12.11.1",
6364
"@types/nvd3": "1.8.38",
64-
"codelyzer": "5.0.1",
65+
"codelyzer": "^5.1.2",
6566
"node-sass": "^4.14.1",
6667
"pre-commit": "1.2.2",
6768
"stylelint": "9.2.1",
@@ -72,6 +73,6 @@
7273
"tslint": "5.10.0",
7374
"tslint-angular": "1.1.2",
7475
"tslint-config-airbnb": "5.9.2",
75-
"typescript": "3.5.3"
76+
"typescript": "3.8.3"
7677
}
7778
}

src/app/components/blank-layout-card/blank-layout-card.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { UpgradableComponent } from 'theme/components/upgradable';
66
template: '',
77
})
88
export class BlankLayoutCardComponent extends UpgradableComponent {
9-
@HostBinding('class.blank-layout-card') protected readonly blankLayoutCard = true;
9+
@HostBinding('class.blank-layout-card') public readonly blankLayoutCard = true;
1010
}

src/app/components/message-menu/message-menu.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { MessageMenuService } from './message-menu.service';
99
providers: [MessageMenuService],
1010
})
1111
export class MessageMenuComponent {
12-
@HostBinding('class.message-menu') private readonly messageMenu = true;
12+
@HostBinding('class.message-menu') public readonly messageMenu = true;
1313

14-
private messages: object[];
14+
public messages: object[];
1515

1616
constructor(messageMenuService: MessageMenuService) {
1717
this.messages = messageMenuService.getMessages();

src/app/components/notification-menu/notification-menu.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { NotificationMenuService } from './notification-menu.service';
99
providers: [NotificationMenuService],
1010
})
1111
export class NotificationMenuComponent {
12-
@HostBinding('class.notification-menu') private readonly notificationMenu = true;
12+
@HostBinding('class.notification-menu') public readonly notificationMenu = true;
1313

14-
private notifications: object[];
14+
public notifications: object[];
1515

1616
constructor(notificationMenuService: NotificationMenuService) {
1717
this.notifications = notificationMenuService.getNotifications();

src/app/pages/charts/browser-statistics-chart/browser-statistics-chart.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { BrowserStatisticsChartService } from './browser-statistics-chart.servic
1515
})
1616
export class BrowserStatisticsChartComponent extends BasePieChartComponent implements OnInit {
1717
constructor(
18-
private el: ElementRef,
19-
private browserStatisticsChartService: BrowserStatisticsChartService,
18+
public el: ElementRef,
19+
public browserStatisticsChartService: BrowserStatisticsChartService,
2020
) {
2121
super();
2222
}

src/app/pages/charts/charts.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import { UpgradableComponent } from 'theme/components/upgradable';
88
templateUrl: './charts.component.html',
99
})
1010
export class ChartsComponent extends UpgradableComponent {
11-
@HostBinding('class.mdl-grid') private readonly mdlGrid = true;
12-
@HostBinding('class.charts') private readonly charts = true;
11+
@HostBinding('class.mdl-grid') public readonly mdlGrid = true;
12+
@HostBinding('class.charts') public readonly charts = true;
1313
}

src/app/pages/charts/country-statistics-chart/country-statistics-chart.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { CountryStatisticsChartService } from './country-statistics-chart.servic
1515
})
1616
export class CountryStatisticsChartComponent extends BasePieChartComponent implements OnInit {
1717
constructor(
18-
private el: ElementRef,
19-
private countryStatisticsChartService: CountryStatisticsChartService,
18+
public el: ElementRef,
19+
public countryStatisticsChartService: CountryStatisticsChartService,
2020
) {
2121
super();
2222
}

src/app/pages/charts/discrete-bar-chart/discrete-bar-chart.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import { DiscreteBarChartService } from './discrete-bar-chart.service';
1212
providers: [DiscreteBarChartService],
1313
})
1414
export class DiscreteBarChartComponent implements OnInit {
15-
@HostBinding('class.discrete-bar-chart__container') private readonly discreteBarChartContainer = true;
15+
@HostBinding('class.discrete-bar-chart__container') public readonly discreteBarChartContainer = true;
1616

1717
constructor(
18-
private discreteBarChartService: DiscreteBarChartService,
19-
private el: ElementRef,
18+
public discreteBarChartService: DiscreteBarChartService,
19+
public el: ElementRef,
2020
) { }
2121

2222
public ngOnInit() {

src/app/pages/charts/line-chart-1/line-chart-1.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { LineChart1Service } from './line-chart-1.service';
1313
export class LineChart1Component extends LineChartComponent {
1414
constructor(
1515
el: ElementRef,
16-
private lineChart1Service: LineChart1Service,
16+
public lineChart1Service: LineChart1Service,
1717
) {
1818
super(el);
1919

src/app/pages/charts/line-chart-1/line-chart-1.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class LineChart1Service {
5-
private firstComplexFunction(x) {
5+
public firstComplexFunction(x) {
66
return Math.cos(x + 10) + 0.5;
77
}
88

9-
private secondComplexFunction(x) {
9+
public secondComplexFunction(x) {
1010
return Math.cos(x) + 1;
1111
}
1212

src/app/pages/charts/line-chart-2/line-chart-2.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { LineChart2Service } from './line-chart-2.service';
1313
export class LineChart2Component extends LineChartComponent {
1414
constructor(
1515
el: ElementRef,
16-
private lineChart2Service: LineChart2Service,
16+
public lineChart2Service: LineChart2Service,
1717
) {
1818
super(el);
1919

src/app/pages/charts/line-chart-2/line-chart-2.service.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class LineChart2Service {
5-
private tealFunction(x) {
5+
public tealFunction(x) {
66
if (x < 7) {
77
return Math.random() * 0.2 * x;
88
}
99
return (Math.random() * 0.1 + 0.2) * x - 1;
1010
}
1111

12-
private orangeFunction(x) {
12+
public orangeFunction(x) {
1313
if (x < 10) {
1414
return -Math.random() * 1.5 + 2.5;
1515
}
1616
return 1.5;
1717
}
1818

19-
private greenFunction(x) {
19+
public greenFunction(x) {
2020
if ((x + 1) % 4 === 0) {
2121
return Math.random() * 1.5 + 0.6;
2222
}

src/app/pages/charts/line-plus-bar-chart/line-plus-bar-chart.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import { LinePlusBarChartService } from './line-plus-bar-chart.service';
1212
providers: [LinePlusBarChartService],
1313
})
1414
export class LinePlusBarChartComponent implements OnInit {
15-
@HostBinding('class.line-plus-bar-chart__container') private readonly linePlusBarChartContainer = true;
15+
@HostBinding('class.line-plus-bar-chart__container') public readonly linePlusBarChartContainer = true;
1616

1717
constructor(
18-
private linePlusBarBarChartService: LinePlusBarChartService,
19-
private el: ElementRef,
18+
public linePlusBarBarChartService: LinePlusBarChartService,
19+
public el: ElementRef,
2020
) { }
2121

2222
public ngOnInit() {

src/app/pages/charts/stacked-bar-chart/stacked-bar-chart.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import { StackedBarChartService } from './stacked-bar-chart.service';
1212
providers: [StackedBarChartService],
1313
})
1414
export class StackedBarChartComponent implements OnInit {
15-
@HostBinding('class.stacked-bar-chart__container') private readonly stackedBarChartContainer = true;
15+
@HostBinding('class.stacked-bar-chart__container') public readonly stackedBarChartContainer = true;
1616

1717
constructor(
18-
private stackedBarChartService: StackedBarChartService,
19-
private el: ElementRef,
18+
public stackedBarChartService: StackedBarChartService,
19+
public el: ElementRef,
2020
) { }
2121

2222
public ngOnInit() {

src/app/pages/charts/stacked-bar-chart/stacked-bar-chart.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class StackedBarChartService {
5-
private testFunction(x, k) {
5+
public testFunction(x, k) {
66
return Math.round(((Math.random() * 0.15 + 1.15) * (200 - 2 * x) * k) * 1000 / x);
77
}
88

src/app/pages/components/components.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { UpgradableComponent } from 'theme/components/upgradable';
88
styleUrls: ['./components.component.scss'],
99
})
1010
export class ComponentsComponent extends UpgradableComponent {
11-
@HostBinding('class.mdl-grid') private readonly mdlGrid = true;
12-
@HostBinding('class.ui-components') private readonly uiComponents = true;
11+
@HostBinding('class.mdl-grid') public readonly mdlGrid = true;
12+
@HostBinding('class.ui-components') public readonly uiComponents = true;
1313

14-
private data = [
14+
public data = [
1515
{
1616
name: 'Nathan Fillion',
1717
description: 'Malcolm “Mal” Reynolds',

src/app/pages/dashboard/cotoneaster-card/cotoneaster-card.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { Component, HostBinding } from '@angular/core';
66
templateUrl: './cotoneaster-card.component.html',
77
})
88
export class CotoneasterCardComponent {
9-
@HostBinding('class.cotoneaster') private readonly cotoneaster = true;
9+
@HostBinding('class.cotoneaster') public readonly cotoneaster = true;
1010
}

src/app/pages/dashboard/dashboard.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import { UpgradableComponent } from 'theme/components/upgradable';
88
templateUrl: './dashboard.component.html',
99
})
1010
export class DashboardComponent extends UpgradableComponent {
11-
@HostBinding('class.mdl-grid') private readonly mdlGrid = true;
12-
@HostBinding('class.mdl-grid--no-spacing') private readonly mdlGridNoSpacing = true;
11+
@HostBinding('class.mdl-grid') public readonly mdlGrid = true;
12+
@HostBinding('class.mdl-grid--no-spacing') public readonly mdlGridNoSpacing = true;
1313
}

src/app/pages/dashboard/line-chart/line-chart.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { LineChartService } from './line-chart.service';
1616
export class LineChartComponent extends BaseLineChartComponent {
1717
constructor(
1818
el: ElementRef,
19-
private lineChartService: LineChartService,
19+
public lineChartService: LineChartService,
2020
) {
2121
super(el);
2222

src/app/pages/dashboard/line-chart/line-chart.service.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class LineChartService {
5-
private awesomeFunction(x) {
5+
public awesomeFunction(x) {
66
const INTERVAL_1 = 2.8;
77
const INTERVAL_2 = 7.1;
88
const INTERVAL_3 = 11.0;
@@ -19,7 +19,7 @@ export class LineChartService {
1919
return ((x - 11.4) * (x - 11.4) * (x - 11.4)) / 13 + 2.476;
2020
}
2121

22-
private goodFunction(x) {
22+
public goodFunction(x) {
2323
const INTERVAL_1 = 3.0;
2424
const INTERVAL_2 = 8.2;
2525

@@ -32,7 +32,7 @@ export class LineChartService {
3232
return ((x - 9) * (x - 9) * (x - 9)) / 120 + 1.805;
3333
}
3434

35-
private failFunction(x) {
35+
public failFunction(x) {
3636
const INTERVAL_1 = 3.1;
3737
const INTERVAL_2 = 10.3;
3838

src/app/pages/dashboard/pie-chart/pie-chart.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { PieChartService } from './pie-chart.service';
1515
})
1616
export class PieChartComponent extends BasePieChartComponent implements OnInit {
1717
constructor(
18-
private el: ElementRef,
19-
private pieChartService: PieChartService,
18+
public el: ElementRef,
19+
public pieChartService: PieChartService,
2020
) {
2121
super();
2222
}

src/app/pages/dashboard/robot-card/robot-card.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { Component, HostBinding } from '@angular/core';
66
templateUrl: './robot-card.component.html',
77
})
88
export class RobotCardComponent {
9-
@HostBinding('class.robot') private readonly robot = true;
9+
@HostBinding('class.robot') public readonly robot = true;
1010
}

src/app/pages/dashboard/table-card/table-card.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import { Component, HostBinding } from '@angular/core';
66
templateUrl: './table-card.component.html',
77
})
88
export class TableCardComponent {
9-
@HostBinding('class.projects-table') private readonly projectsTable = true;
9+
@HostBinding('class.projects-table') public readonly projectsTable = true;
1010

11-
private tableHeader: string[] = [
11+
public tableHeader: string[] = [
1212
'Project',
1313
'Responsible',
1414
'Client contact',
1515
'Deadline',
1616
'Progress',
1717
];
18-
private data: object[] = [
18+
public data: object[] = [
1919
{
2020
project: 'Darkboard',
2121
responsible: [

0 commit comments

Comments
 (0)