Skip to content

Commit

Permalink
Fixed #677
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Aug 2, 2016
1 parent 97392ed commit 5a8958d
Show file tree
Hide file tree
Showing 59 changed files with 189 additions and 189 deletions.
2 changes: 1 addition & 1 deletion components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Accordion {

public tabs: AccordionTab[] = [];

constructor(private el: ElementRef) {}
constructor(protected el: ElementRef) {}

addTab(tab: AccordionTab) {
this.tabs.push(tab);
Expand Down
2 changes: 1 addition & 1 deletion components/accordion/accordiontab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AccordionTab {

@ContentChild(Header) headerFacet;

constructor(private accordion: Accordion) {
constructor(protected accordion: Accordion) {
this.accordion.addTab(this);
}

Expand Down
2 changes: 1 addition & 1 deletion components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class AutoComplete implements AfterViewInit,DoCheck,AfterViewChecked,Cont

highlightOptionChanged: boolean;

constructor(private el: ElementRef, private domHandler: DomHandler, differs: IterableDiffers, private renderer: Renderer) {
constructor(protected el: ElementRef, protected domHandler: DomHandler, differs: IterableDiffers, protected renderer: Renderer) {
this.differ = differs.find([]).create(null);
}

Expand Down
2 changes: 1 addition & 1 deletion components/breadcrumb/breadcrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class Breadcrumb implements OnDestroy {

@Input() styleClass: string;

constructor(private router: Router) {}
constructor(protected router: Router) {}

itemClick(event, item: MenuItem) {
if(!item.url||item.routerLink) {
Expand Down
12 changes: 6 additions & 6 deletions components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ export class Button implements AfterViewInit, OnDestroy {

@Input() iconPos: string = 'left';

private _label: string;
protected _label: string;

private hover: boolean;
protected hover: boolean;

private focus: boolean;
protected focus: boolean;

private active: boolean;
protected active: boolean;

private initialized: boolean;
protected initialized: boolean;

constructor(private el: ElementRef, private domHandler: DomHandler) {}
constructor(protected el: ElementRef, protected domHandler: DomHandler) {}

ngAfterViewInit() {
this.domHandler.addMultipleClasses(this.el.nativeElement, this.getStyleClass());
Expand Down
2 changes: 1 addition & 1 deletion components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class Calendar implements AfterViewInit,OnChanges,OnDestroy,ControlValueA

calendarElement: any;

constructor(private el: ElementRef, private zone:NgZone) {
constructor(protected el: ElementRef, protected zone:NgZone) {
this.initialized = false;
}

Expand Down
28 changes: 14 additions & 14 deletions components/carousel/carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,37 +66,37 @@ export class Carousel implements OnInit,AfterViewChecked,AfterViewInit,DoCheck,O

@ContentChild(TemplateRef) itemTemplate: TemplateRef<any>;

private container: any;
protected container: any;

private left: any = 0;
protected left: any = 0;

private viewport: any;
protected viewport: any;

private itemsContainer: any;
protected itemsContainer: any;

private items: any;
protected items: any;

private columns: any;
protected columns: any;

private page: number;
protected page: number;

private valuesChanged: any;
protected valuesChanged: any;

private interval: any;
protected interval: any;

private anchorPageLinks: any[];
protected anchorPageLinks: any[];

private mobileDropdownOptions: any[];
protected mobileDropdownOptions: any[];

private selectDropdownOptions: any[];
protected selectDropdownOptions: any[];

private shrinked: boolean;
protected shrinked: boolean;

documentResponsiveListener: any;

differ: any;

constructor(private el: ElementRef, private domHandler: DomHandler, differs: IterableDiffers, private renderer: Renderer) {
constructor(protected el: ElementRef, protected domHandler: DomHandler, differs: IterableDiffers, protected renderer: Renderer) {
this.differ = differs.find([]).create(null);
}

Expand Down
2 changes: 1 addition & 1 deletion components/chart/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class UIChart implements AfterViewInit, OnDestroy, DoCheck {

differ: any;

constructor(private el: ElementRef, differs: IterableDiffers) {
constructor(protected el: ElementRef, differs: IterableDiffers) {
this.differ = differs.find([]).create(null);
}

Expand Down
2 changes: 1 addition & 1 deletion components/codehighlighter/codehighlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare var Prism: any;
})
export class CodeHighlighter implements OnInit {

constructor(private el: ElementRef) {}
constructor(protected el: ElementRef) {}

ngOnInit() {
Prism.highlightElement(this.el.nativeElement);
Expand Down
2 changes: 1 addition & 1 deletion components/column/columntemplateloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ColumnTemplateLoader {

@Input() rowIndex: number;

constructor(private viewContainer: ViewContainerRef) {}
constructor(protected viewContainer: ViewContainerRef) {}

ngOnInit() {
let view = this.viewContainer.createEmbeddedView(this.column.template, {
Expand Down
2 changes: 1 addition & 1 deletion components/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class TemplateWrapper implements OnInit {

@Input('pTemplateWrapper') templateRef: TemplateRef<any>;

constructor(private viewContainer: ViewContainerRef) {}
constructor(protected viewContainer: ViewContainerRef) {}

ngOnInit() {
let view = this.viewContainer.createEmbeddedView(this.templateRef, {
Expand Down
4 changes: 2 additions & 2 deletions components/contextmenu/contextmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ContextMenuSub {

@Input() root: boolean;

constructor(private domHandler: DomHandler, private router: Router) {}
constructor(protected domHandler: DomHandler, protected router: Router) {}

activeItem: any;

Expand Down Expand Up @@ -113,7 +113,7 @@ export class ContextMenu implements AfterViewInit,OnDestroy {

documentRightClickListener: any;

constructor(private el: ElementRef, private domHandler: DomHandler, private renderer: Renderer) {}
constructor(protected el: ElementRef, protected domHandler: DomHandler, protected renderer: Renderer) {}

ngAfterViewInit() {
this.container = this.el.nativeElement.children[0];
Expand Down
8 changes: 4 additions & 4 deletions components/datagrid/datagrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ export class DataGrid implements AfterViewInit,DoCheck {

@ContentChild(TemplateRef) itemTemplate: TemplateRef<any>;

private dataToRender: any[];
protected dataToRender: any[];

private first: number = 0;
protected first: number = 0;

private page: number = 0;
protected page: number = 0;

differ: any;

constructor(private el: ElementRef, differs: IterableDiffers) {
constructor(protected el: ElementRef, differs: IterableDiffers) {
this.differ = differs.find([]).create(null);
}

Expand Down
8 changes: 4 additions & 4 deletions components/datalist/datalist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ export class DataList implements AfterViewInit,DoCheck {

@ContentChild(TemplateRef) itemTemplate: TemplateRef<any>;

private dataToRender: any[];
protected dataToRender: any[];

private first: number = 0;
protected first: number = 0;

private page: number = 0;
protected page: number = 0;

differ: any;

constructor(private el: ElementRef, differs: IterableDiffers) {
constructor(protected el: ElementRef, differs: IterableDiffers) {
this.differ = differs.find([]).create(null);
}

Expand Down
6 changes: 3 additions & 3 deletions components/datascroller/datascroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ export class DataScroller implements AfterViewInit,DoCheck,OnDestroy {

@Input() loader: any;

private dataToRender: any[] = [];
protected dataToRender: any[] = [];

private first: number = 0;
protected first: number = 0;

differ: any;

scrollFunction: any;

contentElement: any;

constructor(private el: ElementRef, differs: IterableDiffers, private renderer: Renderer, private domHandler: DomHandler) {
constructor(protected el: ElementRef, differs: IterableDiffers, protected renderer: Renderer, protected domHandler: DomHandler) {
this.differ = differs.find([]).create(null);
}

Expand Down
58 changes: 29 additions & 29 deletions components/datatable/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,59 +328,59 @@ export class DataTable implements AfterViewChecked,AfterViewInit,OnInit,DoCheck,

@ContentChild(TemplateRef) rowExpansionTemplate: TemplateRef<any>;

private dataToRender: any[];
protected dataToRender: any[];

private first: number = 0;
protected first: number = 0;

private page: number = 0;
protected page: number = 0;

private filterTimeout: any;
protected filterTimeout: any;

private filters: {[s: string]: FilterMetadata;} = {};
protected filters: {[s: string]: FilterMetadata;} = {};

private filteredValue: any[];
protected filteredValue: any[];

private columns: Column[];
protected columns: Column[];

private columnsUpdated: boolean = false;
protected columnsUpdated: boolean = false;

private stopSortPropagation: boolean;
protected stopSortPropagation: boolean;

private sortColumn: Column;
protected sortColumn: Column;

private percentageScrollHeight: boolean;
protected percentageScrollHeight: boolean;

private scrollBody: any;
protected scrollBody: any;

private scrollHeader: any
protected scrollHeader: any

private scrollHeaderBox: any;
protected scrollHeaderBox: any;

private bodyScrollListener: any;
protected bodyScrollListener: any;

private headerScrollListener: any;
protected headerScrollListener: any;

private resizeScrollListener: any;
protected resizeScrollListener: any;

private columnResizing: boolean;
protected columnResizing: boolean;

private lastPageX: number;
protected lastPageX: number;

private documentColumnResizeListener: any;
protected documentColumnResizeListener: any;

private documentColumnResizeEndListener: any;
protected documentColumnResizeEndListener: any;

private resizerHelper: any;
protected resizerHelper: any;

private resizeColumn: any;
protected resizeColumn: any;

private reorderIndicatorUp: any;
protected reorderIndicatorUp: any;

private reorderIndicatorDown: any;
protected reorderIndicatorDown: any;

private draggedColumn: any;
protected draggedColumn: any;

private tbody: any;
protected tbody: any;

differ: any;

Expand All @@ -390,8 +390,8 @@ export class DataTable implements AfterViewChecked,AfterViewInit,OnInit,DoCheck,

columnsSubscription: Subscription;

constructor(private el: ElementRef, private domHandler: DomHandler, differs: IterableDiffers,
@Query(Column) cols: QueryList<Column>, private renderer: Renderer, changeDetector: ChangeDetectorRef) {
constructor(protected el: ElementRef, protected domHandler: DomHandler, differs: IterableDiffers,
@Query(Column) cols: QueryList<Column>, protected renderer: Renderer, changeDetector: ChangeDetectorRef) {
this.differ = differs.find([]).create(null);
this.columnsSubscription = cols.changes.subscribe(_ => {
this.columns = cols.toArray();
Expand Down
2 changes: 1 addition & 1 deletion components/datatable/rowexpansionloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class RowExpansionLoader {

@Input() rowData: any;

constructor(private viewContainer: ViewContainerRef) {}
constructor(protected viewContainer: ViewContainerRef) {}

ngOnInit() {
let view = this.viewContainer.createEmbeddedView(this.template, {
Expand Down
2 changes: 1 addition & 1 deletion components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class Dialog implements AfterViewInit,AfterViewChecked,OnDestroy {

positionInitialized: boolean;

constructor(private el: ElementRef, private domHandler: DomHandler, private renderer: Renderer) {}
constructor(protected el: ElementRef, protected domHandler: DomHandler, protected renderer: Renderer) {}

@Input() get visible(): boolean {
return this._visible;
Expand Down
4 changes: 2 additions & 2 deletions components/dragdrop/draggable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export class Draggable {

@Output() onDrag: EventEmitter<any> = new EventEmitter();

private handle: any;
protected handle: any;

constructor(private el: ElementRef, private domHandler: DomHandler) {}
constructor(protected el: ElementRef, protected domHandler: DomHandler) {}

@HostListener('dragstart', ['$event'])
dragStart(event) {
Expand Down
2 changes: 1 addition & 1 deletion components/dragdrop/droppable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Droppable {

@Output() onDragOver: EventEmitter<any> = new EventEmitter();

constructor(private el: ElementRef, private domHandler: DomHandler) {}
constructor(protected el: ElementRef, protected domHandler: DomHandler) {}

@HostListener('drop', ['$event'])
drop(event) {
Expand Down
Loading

0 comments on commit 5a8958d

Please sign in to comment.