Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b47ce4

Browse files
vlio20Vlad Ioffe
and
Vlad Ioffe
authoredMar 30, 2020
Ng9 (#496)
* ng 8 update * upgrading to ng9 * fixing build Co-authored-by: Vlad Ioffe <[email protected]>
1 parent 3cdbf96 commit 6b47ce4

11 files changed

+6360
-3935
lines changed
 

‎CHANGELOG.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
3-
<a name="8.0.0"></a>
4-
# [8.1.0] (???)
3+
<a name="9.0.0"></a>
4+
# [9.0.0] (???)
5+
6+
### Improvements
7+
- Update to Angular 9 ([???](https://github.com/vlio20/angular-datepicker/commit/???)) closes [#493](https://github.com/vlio20/angular-datepicker/issues/493)
58

69
### Features
710
- Add number of rows to month calendar ([???](https://github.com/vlio20/angular-datepicker/commit/???)) closes [#387](https://github.com/vlio20/angular-datepicker/issues/387)

‎angular.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "src/main.ts",
1717
"tsConfig": "src/tsconfig.app.json",
1818
"polyfills": "src/polyfills.ts",
19-
"aot": false,
19+
"aot": true,
2020
"assets": [
2121
"src/assets",
2222
"src/favicon.ico"
@@ -28,12 +28,17 @@
2828
},
2929
"configurations": {
3030
"production": {
31+
"budgets": [
32+
{
33+
"type": "anyComponentStyle",
34+
"maximumWarning": "6kb"
35+
}
36+
],
3137
"optimization": true,
3238
"outputHashing": "all",
3339
"sourceMap": false,
3440
"extractCss": true,
3541
"namedChunks": false,
36-
"aot": true,
3742
"extractLicenses": true,
3843
"vendorChunk": false,
3944
"buildOptimizer": true,
@@ -120,7 +125,7 @@
120125
"schematics": {
121126
"@schematics/angular:component": {
122127
"prefix": "dp",
123-
"styleext": "less"
128+
"style": "less"
124129
},
125130
"@schematics/angular:directive": {
126131
"prefix": "dp"

‎package-lock.json

+6,308-3,894
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+19-20
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@
3838
],
3939
"peerDependencies": {},
4040
"devDependencies": {
41-
"@angular-devkit/build-angular": "^0.803.21",
42-
"@angular-devkit/build-ng-packagr": "^0.803.20",
43-
"@angular-devkit/core": "8.3.20",
44-
"@angular/cli": "^8.3.20",
45-
"@angular/common": "8.2.14",
46-
"@angular/compiler": "8.2.14",
47-
"@angular/compiler-cli": "8.2.14",
48-
"@angular/core": "8.2.14",
49-
"@angular/forms": "8.2.14",
50-
"@angular/platform-browser": "8.2.14",
51-
"@angular/platform-browser-dynamic": "8.2.14",
52-
"@angular/router": "8.2.14",
41+
"@angular-devkit/build-angular": "~0.901.0",
42+
"@angular-devkit/build-ng-packagr": "~0.901.0",
43+
"@angular-devkit/core": "9.1.0",
44+
"@angular/cli": "^9.1.0",
45+
"@angular/common": "9.1.0",
46+
"@angular/compiler": "9.1.0",
47+
"@angular/compiler-cli": "9.1.0",
48+
"@angular/core": "9.1.0",
49+
"@angular/forms": "9.1.0",
50+
"@angular/platform-browser": "9.1.0",
51+
"@angular/platform-browser-dynamic": "9.1.0",
52+
"@angular/router": "9.1.0",
5353
"@types/google.analytics": "0.0.40",
5454
"@types/jasmine": "3.3.13",
55-
"@types/node": "12.0.10",
55+
"@types/node": "^12.11.1",
5656
"classlist.js": "^1.1.20150312",
57-
"codelyzer": "^5.2.0",
57+
"codelyzer": "^5.1.2",
5858
"core-js": "^2.6.11",
5959
"jasmine-core": "~3.4.0",
6060
"jasmine-spec-reporter": "~4.2.1",
@@ -66,18 +66,16 @@
6666
"karma-jasmine-html-reporter": "^1.4.2",
6767
"less": "^3.10.3",
6868
"ncp": "^2.0.0",
69-
"ng-packagr": "^5.7.1",
69+
"ng-packagr": "^9.0.0",
7070
"protractor": "^5.4.2",
7171
"rimraf": "^2.7.1",
7272
"rxjs": "^6.5.3",
7373
"ts-node": "^8.5.4",
74-
"tsickle": "^0.35.0",
75-
"tslib": "^1.10.0",
7674
"tslint": "~5.18.0",
77-
"typescript": "3.4.5",
75+
"typescript": "3.8.3",
7876
"uglify-js": "^3.7.2",
7977
"web-animations-js": "^2.3.2",
80-
"zone.js": "^0.9.1"
78+
"zone.js": "~0.10.2"
8179
},
8280
"angularCompilerOptions": {
8381
"skipTemplateCodegen": true,
@@ -96,6 +94,7 @@
9694
]
9795
},
9896
"dependencies": {
99-
"moment": "^2.24.0"
97+
"moment": "^2.24.0",
98+
"tslib": "^1.10.0"
10099
}
101100
}

‎src/demo/demo/common/date-component.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {ViewChild} from '@angular/core';
66
import {FormControl, ValidatorFn, Validators} from '@angular/forms';
77

88
export abstract class DateComponent {
9-
@ViewChild('dateComponent', {static: false}) dateComponent: DatePickerComponent;
10-
@ViewChild(DatePickerDirective, {static: false}) dateDirective: DatePickerDirective;
9+
@ViewChild('dateComponent') dateComponent: DatePickerComponent;
10+
@ViewChild(DatePickerDirective) dateDirective: DatePickerDirective;
1111

1212
control: FormControl;
1313

‎src/demo/demo/demo.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ const DAY_TIME_CALENDAR_OPTION_KEYS = [
120120
})
121121
export class DemoComponent implements OnInit {
122122
showDemo: boolean = true;
123-
@ViewChild('dateComponent', {static: false}) dateComponent: DatePickerComponent;
124-
@ViewChild('donateForm', {static: false}) donateForm: any;
125-
@ViewChild('dateDirectivePicker', {static: false}) datePickerDirective: DatePickerDirective;
123+
@ViewChild('dateComponent') dateComponent: DatePickerComponent;
124+
@ViewChild('donateForm') donateForm: any;
125+
@ViewChild('dateDirectivePicker') datePickerDirective: DatePickerDirective;
126126
demoFormat = 'DD-MM-YYYY';
127127
readonly DAYS = ['su', 'mo', 'tu', 'we', 'th', 'fr', 'sa'];
128128
readonly LANGS = [

‎src/lib/date-picker/date-picker.component.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ export class DatePickerComponent implements OnChanges,
166166
@Output() onLeftNav: EventEmitter<INavEvent> = new EventEmitter();
167167
@Output() onRightNav: EventEmitter<INavEvent> = new EventEmitter();
168168
@Output() onSelect: EventEmitter<ISelectionEvent> = new EventEmitter();
169-
@ViewChild('container', {static: false}) calendarContainer: ElementRef;
170-
@ViewChild('dayCalendar', {static: false}) dayCalendarRef: DayCalendarComponent;
171-
@ViewChild('monthCalendar', {static: false}) monthCalendarRef: MonthCalendarComponent;
172-
@ViewChild('daytimeCalendar', {static: false}) dayTimeCalendarRef: DayTimeCalendarComponent;
173-
@ViewChild('timeSelect', {static: false}) timeSelectRef: TimeSelectComponent;
169+
@ViewChild('container') calendarContainer: ElementRef;
170+
@ViewChild('dayCalendar') dayCalendarRef: DayCalendarComponent;
171+
@ViewChild('monthCalendar') monthCalendarRef: MonthCalendarComponent;
172+
@ViewChild('daytimeCalendar') dayTimeCalendarRef: DayTimeCalendarComponent;
173+
@ViewChild('timeSelect') timeSelectRef: TimeSelectComponent;
174174
componentConfig: IDatePickerConfigInternal;
175175
dayCalendarConfig: IDayCalendarConfig;
176176
dayTimeCalendarConfig: IDayTimeCalendarConfig;

‎src/lib/day-time-calendar/day-time-calendar.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class DayTimeCalendarComponent implements OnInit, OnChanges, ControlValue
7878
@Output() onGoToCurrent: EventEmitter<void> = new EventEmitter();
7979
@Output() onLeftNav: EventEmitter<INavEvent> = new EventEmitter();
8080
@Output() onRightNav: EventEmitter<INavEvent> = new EventEmitter();
81-
@ViewChild('dayCalendar', {static: false}) dayCalendarRef: DayCalendarComponent;
81+
@ViewChild('dayCalendar') dayCalendarRef: DayCalendarComponent;
8282
isInited: boolean = false;
8383
componentConfig: IDayTimeCalendarConfig;
8484
inputValue: CalendarValue;

‎src/tsconfig.app.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
],
1212
"outDir": "../out-tsc/app",
1313
"target": "es5",
14-
"module": "es2015",
14+
"module": "esnext",
1515
"baseUrl": "",
1616
"types": []
1717
},
18-
"exclude": [
19-
"test.ts",
20-
"**/*.spec.ts"
18+
"files": [
19+
"main.ts",
20+
"polyfills.ts"
21+
],
22+
"include": [
23+
"src/**/*.d.ts"
2124
]
2225
}

‎src/tsconfig.spec.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dom"
1111
],
1212
"outDir": "../out-tsc/spec",
13-
"module": "commonjs",
13+
"module": "esnext",
1414
"target": "es6",
1515
"baseUrl": "",
1616
"types": [

‎tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"module": "esnext",
34
"target": "es5",
45
"outDir": "bin",
56
"sourceMap": true,

0 commit comments

Comments
 (0)
Please sign in to comment.