Skip to content

Commit 39bb387

Browse files
committed
Updating to Angular 8
1 parent 972b7fd commit 39bb387

File tree

43 files changed

+161
-160
lines changed

Some content is hidden

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

43 files changed

+161
-160
lines changed

package.json

+28-32
Original file line numberDiff line numberDiff line change
@@ -15,58 +15,54 @@
1515
"url": "https://github.com/primefaces/primeng.git"
1616
},
1717
"devDependencies": {
18-
"@angular-devkit/build-angular": "^0.13.7",
19-
"@angular/animations": "~7.1.0",
20-
"@angular/cdk": "~7.1.0",
21-
"@angular/cli": "~7.1.0",
22-
"@angular/common": "~7.1.0",
23-
"@angular/compiler": "~7.1.0",
24-
"@angular/compiler-cli": "^7.2.11",
25-
"@angular/core": "~7.1.0",
26-
"@angular/forms": "~7.1.0",
27-
"@angular/http": "~7.1.0",
28-
"@angular/language-service": "~7.1.0",
29-
"@angular/platform-browser": "~7.1.0",
30-
"@angular/platform-browser-dynamic": "~7.1.0",
31-
"@angular/router": "~7.1.0",
18+
"@angular-devkit/build-angular": "~0.800.0",
19+
"@angular/animations": "~8.0.0",
20+
"@angular/cdk": "~8.0.0",
21+
"@angular/cli": "~8.0.1",
22+
"@angular/common": "~8.0.0",
23+
"@angular/compiler": "~8.0.0",
24+
"@angular/compiler-cli": "~8.0.0",
25+
"@angular/core": "~8.0.0",
26+
"@angular/forms": "~8.0.0",
27+
"@angular/language-service": "~8.0.0",
28+
"@angular/platform-browser": "~8.0.0",
29+
"@angular/platform-browser-dynamic": "~8.0.0",
30+
"@angular/router": "~8.0.0",
3231
"@fullcalendar/core": "4.0.2",
3332
"@fullcalendar/daygrid": "4.0.1",
3433
"@fullcalendar/interaction": "4.0.2",
3534
"@fullcalendar/timegrid": "4.0.1",
36-
"@types/jasmine": "~2.8.8",
37-
"@types/jasminewd2": "~2.0.3",
3835
"@types/node": "~8.9.4",
36+
"@types/jasmine": "~3.3.8",
37+
"@types/jasminewd2": "~2.0.3",
3938
"chart.js": "2.7.3",
40-
"codelyzer": "~4.5.0",
41-
"core-js": "^2.5.4",
39+
"codelyzer": "^5.0.0",
4240
"del": "3.0.0",
4341
"font-awesome": "4.7.0",
44-
"gulp": "^3.9.1",
42+
"gulp": "4.0.2",
4543
"gulp-concat": "2.6.1",
46-
"gulp-flatten": "^0.4.0",
47-
"gulp-rename": "^1.2.2",
48-
"gulp-uglify": "^3.0.1",
44+
"gulp-flatten": "0.4.0",
45+
"gulp-rename": "1.4.0",
46+
"gulp-uglify": "3.0.2",
4947
"gulp-uglifycss": "1.1.0",
50-
"install": "0.12.2",
51-
"intl": "1.2.5",
52-
"jasmine-core": "~2.99.1",
48+
"jasmine-core": "~3.4.0",
5349
"jasmine-spec-reporter": "~4.2.1",
54-
"karma": "~3.1.1",
50+
"karma": "~4.1.0",
5551
"karma-chrome-launcher": "~2.2.0",
5652
"karma-coverage-istanbul-reporter": "~2.0.1",
57-
"karma-jasmine": "~1.1.2",
58-
"karma-jasmine-html-reporter": "^0.2.2",
53+
"karma-jasmine": "~2.0.1",
54+
"karma-jasmine-html-reporter": "^1.4.0",
5955
"primeflex": "1.0.0-rc.1",
6056
"primeicons": "1.0.0",
6157
"prismjs": "1.15.0",
6258
"protractor": "~5.4.0",
6359
"quill": "1.3.6",
64-
"rxjs": "~6.3.3",
60+
"rxjs": "~6.4.0",
6561
"ts-node": "~7.0.0",
6662
"tslib": "^1.9.0",
67-
"tslint": "~5.11.0",
68-
"typescript": "~3.1.6",
63+
"tslint": "~5.15.0",
64+
"typescript": "~3.4.3",
6965
"web-animations-js": "2.3.1",
70-
"zone.js": "~0.8.26"
66+
"zone.js": "~0.9.1"
7167
}
7268
}

src/app/components/autocomplete/autocomplete.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ export class AutoComplete implements AfterViewChecked,AfterContentInit,DoCheck,O
156156

157157
@Input() autofocus: boolean;
158158

159-
@ViewChild('in') inputEL: ElementRef;
159+
@ViewChild('in', { static: false }) inputEL: ElementRef;
160160

161-
@ViewChild('multiIn') multiInputEL: ElementRef;
161+
@ViewChild('multiIn', { static: false }) multiInputEL: ElementRef;
162162

163-
@ViewChild('multiContainer') multiContainerEL: ElementRef;
163+
@ViewChild('multiContainer', { static: false }) multiContainerEL: ElementRef;
164164

165-
@ViewChild('ddBtn') dropdownButton: ElementRef;
165+
@ViewChild('ddBtn', { static: false }) dropdownButton: ElementRef;
166166

167167
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
168168

src/app/components/blockui/blockui.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class BlockUI implements AfterViewInit,OnDestroy {
1818

1919
@Input() baseZIndex: number = 0;
2020

21-
@ViewChild('mask') mask: ElementRef;
21+
@ViewChild('mask', { static: false }) mask: ElementRef;
2222

2323
_blocked: boolean;
2424

@@ -31,7 +31,7 @@ export class BlockUI implements AfterViewInit,OnDestroy {
3131
set blocked(val: boolean) {
3232
this._blocked = val;
3333

34-
if (this.mask.nativeElement) {
34+
if (this.mask && this.mask.nativeElement) {
3535
if (this._blocked)
3636
this.block();
3737
else

src/app/components/calendar/calendar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export class Calendar implements OnInit,OnDestroy,ControlValueAccessor {
347347

348348
@Input() tabindex: number;
349349

350-
@ViewChild('inputfield') inputfieldViewChild: ElementRef;
350+
@ViewChild('inputfield', { static: false }) inputfieldViewChild: ElementRef;
351351

352352
private _utc: boolean;
353353

src/app/components/card/card.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export class Card implements BlockableUI {
3333

3434
@Input() styleClass: string;
3535

36-
@ContentChild(Header) headerFacet;
36+
@ContentChild(Header, { static: false }) headerFacet;
3737

38-
@ContentChild(Footer) footerFacet;
38+
@ContentChild(Footer, { static: false }) footerFacet;
3939

4040
constructor(private el: ElementRef) { }
4141

src/app/components/carousel/carousel.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ export class Carousel implements AfterViewChecked,AfterViewInit,OnDestroy{
8989

9090
public shrinked: boolean;
9191

92-
@ViewChild('container') containerViewChild: ElementRef;
92+
@ViewChild('container', { static: false }) containerViewChild: ElementRef;
9393

94-
@ViewChild('viewport') viewportViewChild: ElementRef;
94+
@ViewChild('viewport', { static: false }) viewportViewChild: ElementRef;
9595

96-
@ViewChild('items') itemsViewChild: ElementRef;
96+
@ViewChild('items', { static: false }) itemsViewChild: ElementRef;
9797

9898
documentResponsiveListener: any;
9999

@@ -138,7 +138,7 @@ export class Carousel implements AfterViewChecked,AfterViewInit,OnDestroy{
138138
}
139139

140140
ngAfterViewChecked() {
141-
if(this.valuesChanged && this.containerViewChild.nativeElement.offsetParent) {
141+
if(this.valuesChanged && this.containerViewChild && this.containerViewChild.nativeElement.offsetParent) {
142142
this.render();
143143
this.valuesChanged = false;
144144
}

src/app/components/chips/chips.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Chips implements AfterContentInit,ControlValueAccessor {
6868

6969
@Output() onChipClick: EventEmitter<any> = new EventEmitter();
7070

71-
@ViewChild('inputtext') inputViewChild: ElementRef;
71+
@ViewChild('inputtext', { static: false }) inputViewChild: ElementRef;
7272

7373
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
7474

src/app/components/colorpicker/colorpicker.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class ColorPicker implements ControlValueAccessor, OnDestroy {
7676

7777
@Output() onChange: EventEmitter<any> = new EventEmitter();
7878

79-
@ViewChild('input') inputViewChild: ElementRef;
79+
@ViewChild('input', { static: false }) inputViewChild: ElementRef;
8080

8181
value: any;
8282

@@ -118,19 +118,19 @@ export class ColorPicker implements ControlValueAccessor, OnDestroy {
118118

119119
constructor(public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef) {}
120120

121-
@ViewChild('colorSelector') set colorSelector(element: ElementRef) {
121+
@ViewChild('colorSelector', { static: false }) set colorSelector(element: ElementRef) {
122122
this.colorSelectorViewChild = element;
123123
}
124124

125-
@ViewChild('colorHandle') set colorHandle(element: ElementRef) {
125+
@ViewChild('colorHandle', { static: false }) set colorHandle(element: ElementRef) {
126126
this.colorHandleViewChild = element;
127127
}
128128

129-
@ViewChild('hue') set hue(element: ElementRef) {
129+
@ViewChild('hue', { static: false }) set hue(element: ElementRef) {
130130
this.hueViewChild = element;
131131
}
132132

133-
@ViewChild('hueHandle') set hueHandle(element: ElementRef) {
133+
@ViewChild('hueHandle', { static: false }) set hueHandle(element: ElementRef) {
134134
this.hueHandleViewChild = element;
135135
}
136136

src/app/components/common/shared.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class Column implements AfterContentInit{
7171
@Input() resizable: boolean = true;
7272
@Output() sortFunction: EventEmitter<any> = new EventEmitter();
7373
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
74-
@ContentChild(TemplateRef) template: TemplateRef<any>;
74+
@ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;
7575

7676
public headerTemplate: TemplateRef<any>;
7777
public bodyTemplate: TemplateRef<any>;

src/app/components/confirmdialog/confirmdialog.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export class ConfirmDialog implements OnDestroy {
9494

9595
@Input() transitionOptions: string = '150ms cubic-bezier(0, 0, 0.2, 1)';
9696

97-
@ContentChild(Footer) footer;
97+
@ContentChild(Footer, { static: false }) footer;
9898

99-
@ViewChild('content') contentViewChild: ElementRef;
99+
@ViewChild('content', { static: false }) contentViewChild: ElementRef;
100100

101101
confirmation: Confirmation;
102102

src/app/components/contextmenu/contextmenu.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class ContextMenu implements AfterViewInit, OnDestroy {
148148

149149
@Input() triggerEvent: string = 'contextmenu';
150150

151-
@ViewChild('container') containerViewChild: ElementRef;
151+
@ViewChild('container', { static: false }) containerViewChild: ElementRef;
152152

153153
documentClickListener: any;
154154

src/app/components/datagrid/datagrid.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export class DataGrid implements AfterViewInit,AfterContentInit,DoCheck,Blockabl
6363

6464
@Output() onPage: EventEmitter<any> = new EventEmitter();
6565

66-
@ContentChild(Header) header;
66+
@ContentChild(Header, { static: false }) header;
6767

68-
@ContentChild(Footer) footer;
68+
@ContentChild(Footer, { static: false }) footer;
6969

7070
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
7171

src/app/components/datalist/datalist.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export class DataList implements AfterViewInit,AfterContentInit,DoCheck,Blockabl
6969

7070
@Output() onPage: EventEmitter<any> = new EventEmitter();
7171

72-
@ContentChild(Header) header;
72+
@ContentChild(Header, { static: false }) header;
7373

74-
@ContentChild(Footer) footer;
74+
@ContentChild(Footer, { static: false }) footer;
7575

7676
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
7777

src/app/components/datascroller/datascroller.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ export class DataScroller implements OnInit,AfterViewInit,OnDestroy {
4747

4848
@Input() trackBy: Function = (index: number, item: any) => item;
4949

50-
@ContentChild(Header) header;
50+
@ContentChild(Header, { static: false }) header;
5151

52-
@ContentChild(Footer) footer;
52+
@ContentChild(Footer, { static: false }) footer;
5353

5454
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
5555

56-
@ViewChild('content') contentViewChild: ElementRef;
56+
@ViewChild('content', { static: false }) contentViewChild: ElementRef;
5757

5858
@Output() onLazyLoad: EventEmitter<any> = new EventEmitter();
5959

src/app/components/datatable/datatable.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -262,19 +262,19 @@ export class ScrollableView implements AfterViewInit,AfterViewChecked,OnDestroy
262262

263263
@Input() footerColumnGroup: HeaderColumnGroup;
264264

265-
@ViewChild('scrollHeader') scrollHeaderViewChild: ElementRef;
265+
@ViewChild('scrollHeader', { static: false }) scrollHeaderViewChild: ElementRef;
266266

267-
@ViewChild('scrollHeaderBox') scrollHeaderBoxViewChild: ElementRef;
267+
@ViewChild('scrollHeaderBox', { static: false }) scrollHeaderBoxViewChild: ElementRef;
268268

269-
@ViewChild('scrollBody') scrollBodyViewChild: ElementRef;
269+
@ViewChild('scrollBody', { static: false }) scrollBodyViewChild: ElementRef;
270270

271-
@ViewChild('scrollTable') scrollTableViewChild: ElementRef;
271+
@ViewChild('scrollTable', { static: false }) scrollTableViewChild: ElementRef;
272272

273-
@ViewChild('scrollTableWrapper') scrollTableWrapperViewChild: ElementRef;
273+
@ViewChild('scrollTableWrapper', { static: false }) scrollTableWrapperViewChild: ElementRef;
274274

275-
@ViewChild('scrollFooter') scrollFooterViewChild: ElementRef;
275+
@ViewChild('scrollFooter', { static: false }) scrollFooterViewChild: ElementRef;
276276

277-
@ViewChild('scrollFooterBox') scrollFooterBoxViewChild: ElementRef;
277+
@ViewChild('scrollFooterBox', { static: false }) scrollFooterBoxViewChild: ElementRef;
278278

279279
@Input() frozen: boolean;
280280

@@ -607,9 +607,9 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni
607607

608608
@Output() onFilter: EventEmitter<any> = new EventEmitter();
609609

610-
@ContentChild(Header) header;
610+
@ContentChild(Header, { static: false }) header;
611611

612-
@ContentChild(Footer) footer;
612+
@ContentChild(Footer, { static: false }) footer;
613613

614614
@Input() expandableRows: boolean;
615615

src/app/components/dataview/dataview.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ export class DataView implements OnInit,AfterContentInit,BlockableUI {
8686

8787
@Output() onSort: EventEmitter<any> = new EventEmitter();
8888

89-
@ContentChild(Header) header;
89+
@ContentChild(Header, { static: false }) header;
9090

91-
@ContentChild(Footer) footer;
91+
@ContentChild(Footer, { static: false }) footer;
9292

9393
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
9494

src/app/components/defer/defer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class DeferredLoader implements AfterViewInit,OnDestroy {
99

1010
@Output() onLoad: EventEmitter<any> = new EventEmitter();
1111

12-
@ContentChild(TemplateRef) template: TemplateRef<any>;
12+
@ContentChild(TemplateRef, { static: false }) template: TemplateRef<any>;
1313

1414
documentScrollListener: Function;
1515

src/app/components/dialog/dialog.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ export class Dialog implements OnDestroy {
114114

115115
@ContentChildren(Footer, {descendants: false}) footerFacet: QueryList<Header>;
116116

117-
@ViewChild('titlebar') headerViewChild: ElementRef;
117+
@ViewChild('titlebar', { static: false }) headerViewChild: ElementRef;
118118

119-
@ViewChild('content') contentViewChild: ElementRef;
119+
@ViewChild('content', { static: false }) contentViewChild: ElementRef;
120120

121-
@ViewChild('footer') footerViewChild: ElementRef;
121+
@ViewChild('footer', { static: false }) footerViewChild: ElementRef;
122122

123123
@Output() onShow: EventEmitter<any> = new EventEmitter();
124124

src/app/components/dropdown/dropdown.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ export class Dropdown implements OnInit,AfterViewInit,AfterContentInit,AfterView
224224

225225
@Output() onHide: EventEmitter<any> = new EventEmitter();
226226

227-
@ViewChild('container') containerViewChild: ElementRef;
227+
@ViewChild('container', { static: false }) containerViewChild: ElementRef;
228228

229-
@ViewChild('filter') filterViewChild: ElementRef;
229+
@ViewChild('filter', { static: false }) filterViewChild: ElementRef;
230230

231-
@ViewChild('in') focusViewChild: ElementRef;
231+
@ViewChild('in', { static: false }) focusViewChild: ElementRef;
232232

233-
@ViewChild('editableInput') editableInputViewChild: ElementRef;
233+
@ViewChild('editableInput', { static: false }) editableInputViewChild: ElementRef;
234234

235235
@ContentChildren(PrimeTemplate) templates: QueryList<any>;
236236

src/app/components/dynamicdialog/dynamicdialog.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy {
5050

5151
mask: HTMLDivElement;
5252

53-
@ViewChild(DynamicDialogContent) insertionPoint: DynamicDialogContent;
53+
@ViewChild(DynamicDialogContent, { static: false }) insertionPoint: DynamicDialogContent;
5454

55-
@ViewChild('mask') maskViewChild: ElementRef;
55+
@ViewChild('mask', { static: false }) maskViewChild: ElementRef;
5656

5757
childComponentType: Type<any>;
5858

src/app/components/editor/editor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class Editor implements AfterViewInit,ControlValueAccessor {
7171

7272
@Output() onSelectionChange: EventEmitter<any> = new EventEmitter();
7373

74-
@ContentChild(Header) toolbar;
74+
@ContentChild(Header, { static: false }) toolbar;
7575

7676
@Input() style: any;
7777

0 commit comments

Comments
 (0)