2015-03-23 14:10:55 -07:00
|
|
|
import {AST} from 'angular2/change_detection';
|
2015-04-02 14:40:49 -07:00
|
|
|
import {SetterFn} from 'angular2/src/reflection/types';
|
2015-03-23 14:10:55 -07:00
|
|
|
import {List, ListWrapper} from 'angular2/src/facade/collection';
|
|
|
|
|
import * as protoViewModule from './proto_view';
|
|
|
|
|
|
|
|
|
|
export class ElementBinder {
|
|
|
|
|
contentTagSelector: string;
|
|
|
|
|
textNodeIndices: List<number>;
|
2015-04-09 21:20:11 +02:00
|
|
|
nestedProtoView: protoViewModule.RenderProtoView;
|
2015-03-23 14:10:55 -07:00
|
|
|
eventLocals: AST;
|
|
|
|
|
eventNames: List<string>;
|
|
|
|
|
componentId: string;
|
|
|
|
|
parentIndex:number;
|
|
|
|
|
distanceToParent:number;
|
2015-04-02 14:40:49 -07:00
|
|
|
propertySetters: Map<string, SetterFn>;
|
2015-03-23 14:10:55 -07:00
|
|
|
|
|
|
|
|
constructor({
|
|
|
|
|
textNodeIndices,
|
|
|
|
|
contentTagSelector,
|
|
|
|
|
nestedProtoView,
|
|
|
|
|
componentId,
|
|
|
|
|
eventLocals,
|
|
|
|
|
eventNames,
|
|
|
|
|
parentIndex,
|
2015-04-02 14:40:49 -07:00
|
|
|
distanceToParent,
|
|
|
|
|
propertySetters
|
2015-03-23 14:10:55 -07:00
|
|
|
}) {
|
|
|
|
|
this.textNodeIndices = textNodeIndices;
|
|
|
|
|
this.contentTagSelector = contentTagSelector;
|
|
|
|
|
this.nestedProtoView = nestedProtoView;
|
|
|
|
|
this.componentId = componentId;
|
|
|
|
|
this.eventLocals = eventLocals;
|
|
|
|
|
this.eventNames = eventNames;
|
|
|
|
|
this.parentIndex = parentIndex;
|
|
|
|
|
this.distanceToParent = distanceToParent;
|
2015-04-02 14:40:49 -07:00
|
|
|
this.propertySetters = propertySetters;
|
2015-03-23 14:10:55 -07:00
|
|
|
}
|
|
|
|
|
}
|