This repository has been archived by the owner on Mar 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wijmo.angular2.directiveBase.d.ts
executable file
·155 lines (155 loc) · 5.72 KB
/
wijmo.angular2.directiveBase.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import * as ng2 from '@angular/core';
import { Injector, EventEmitter, NgZone } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
export declare class WjOptions {
static asyncBindings: boolean;
}
export interface IWjMetaBase {
selector: string;
inputs: string[];
outputs: string[];
providers: any[];
}
export interface IWjComponentMeta extends IWjMetaBase {
template: string;
}
export interface IWjDirectiveMeta extends IWjMetaBase {
exportAs: string;
}
export declare type ChangePropertyEvent = {
prop: string;
evExposed: string;
evImpl: string;
};
export declare type EventPropertiesItem = {
event: string;
eventImpl: string;
props?: ChangePropertyEvent[];
};
export declare type EventProperties = EventPropertiesItem[];
export interface IWjComponentMetadata {
changeEvents?: {
[event: string]: string[];
};
outputs?: string[];
siblingId?: string;
parentRefProperty?: string;
}
export interface IPendingEvent {
event: EventEmitter<any>;
args: any;
}
export declare class WjComponentResolvedMetadata {
readonly changeEventMap: EventPropertiesItem[];
allImplEvents: string[];
constructor(rawMeta: IWjComponentMetadata);
private resolveChangeEventMap(rawMeta);
}
export declare class WjDirectiveBehavior {
static directiveTypeDataProp: string;
static directiveResolvedTypeDataProp: string;
static BehaviourRefProp: string;
static parPropAttr: string;
static wjModelPropAttr: string;
static initializedEventAttr: string;
static isInitializedPropAttr: string;
static siblingDirIdAttr: string;
static asyncBindingUpdatePropAttr: string;
static siblingDirId: number;
static wijmoComponentProviderId: string;
static ngZone: NgZone;
private static _ngZoneRun;
static outsideZoneEvents: {
'pointermove': boolean;
'pointerover': boolean;
'mousemove': boolean;
'wheel': boolean;
'touchmove': boolean;
};
private static _pathBinding;
private _siblingInsertedEH;
private _pendingEvents;
private _pendingEventsTO;
directive: Object;
typeData: IWjComponentMetadata;
resolvedTypeData: WjComponentResolvedMetadata;
elementRef: ng2.ElementRef;
injector: ng2.Injector;
injectedParent: any;
parentBehavior: WjDirectiveBehavior;
isInitialized: boolean;
isDestroyed: boolean;
static getHostElement(ngHostElRef: ng2.ElementRef, injector?: Injector): HTMLElement;
static attach(directive: Object, elementRef: ng2.ElementRef, injector: ng2.Injector, injectedParent: any): WjDirectiveBehavior;
constructor(directive: Object, elementRef: ng2.ElementRef, injector: ng2.Injector, injectedParent: any);
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
static instantiateTemplate(parent: HTMLElement, viewContainerRef: ng2.ViewContainerRef, templateRef: ng2.TemplateRef<any>, domRenderer: ng2.Renderer, useTemplateRoot?: boolean, dataContext?: any): {
viewRef: ng2.EmbeddedViewRef<any>;
rootElement: Element;
};
getPropChangeEvent(propName: string): string;
private _createEvents();
private subscribeToEvents(afterInit);
private addHandlers(eventMap);
private triggerPropChangeEvents(eventMap, allowAsync?);
private _setupAsChild();
private _isAsyncBinding();
private _isChild();
private _isParentInitializer();
private _isParentReferencer();
private _getParentProp();
private _getParentReferenceProperty();
private _useParentObj();
private _parentInCtor();
private _initParent();
_getSiblingIndex(): number;
private _siblingInserted(e);
private _isHostElement();
private _runInsideNgZone(func);
private _triggerEvent(event, args, allowAsync);
private _triggerPendingEvents(flush);
flushPendingEvents(): void;
private static evaluatePath(obj, path);
static getBehavior(directive: any): WjDirectiveBehavior;
}
export declare class Ng2Utils {
static changeEventImplementSuffix: string;
static wjEventImplementSuffix: string;
static initEvents(directiveType: any, changeEvents: EventPropertiesItem[]): string[];
static getChangeEventNameImplemented(propertyName: any): string;
static getChangeEventNameExposed(propertyName: any): string;
private static getWjEventNameImplemented(eventName);
static getWjEventName(ngEventName: string): string;
static getBaseType(type: any): any;
static getAnnotations(type: any): any[];
static getAnnotation(annotations: any[], annotationType: any): any;
static getTypeAnnotation(type: any, annotationType: any, own?: boolean): any;
static equals(v1: any, v2: any): boolean;
static _copy(dst: any, src: any, override?: boolean, includePrivate?: boolean, filter?: (name: string, value: any) => boolean): void;
}
export declare class WjValueAccessor implements ControlValueAccessor {
private _isFirstChange;
private _directive;
private _behavior;
private _ngModelProp;
private _modelValue;
private _isSubscribed;
private _dirInitEh;
private _onChange;
private _onTouched;
constructor(directive: any);
writeValue(value: any): void;
registerOnChange(fn: (_: any) => void): void;
registerOnTouched(fn: () => void): void;
private _updateDirective();
private _ensureSubscribed();
private _ensureNgModelProp();
private _ensureInitEhUnsubscribed();
private _dirValChgEh(s, e);
private _dirLostFocusEh(s, e);
}
export declare function WjValueAccessorFactory(directive: any): WjValueAccessor;
export declare class WjDirectiveBaseModule {
}