1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface Inject {
|
9 | token: any;
|
10 | }
|
11 | export declare const createInject: MetadataFactory<Inject>;
|
12 | export declare const createInjectionToken: MetadataFactory<object>;
|
13 | export interface Attribute {
|
14 | attributeName?: string;
|
15 | }
|
16 | export declare const createAttribute: MetadataFactory<Attribute>;
|
17 | export interface Query {
|
18 | descendants: boolean;
|
19 | first: boolean;
|
20 | read: any;
|
21 | isViewQuery: boolean;
|
22 | selector: any;
|
23 | static?: boolean;
|
24 | }
|
25 | export declare const createContentChildren: MetadataFactory<Query>;
|
26 | export declare const createContentChild: MetadataFactory<Query>;
|
27 | export declare const createViewChildren: MetadataFactory<Query>;
|
28 | export declare const createViewChild: MetadataFactory<Query>;
|
29 | export interface Directive {
|
30 | selector?: string;
|
31 | inputs?: string[];
|
32 | outputs?: string[];
|
33 | host?: {
|
34 | [key: string]: string;
|
35 | };
|
36 | providers?: Provider[];
|
37 | exportAs?: string;
|
38 | queries?: {
|
39 | [key: string]: any;
|
40 | };
|
41 | guards?: {
|
42 | [key: string]: any;
|
43 | };
|
44 | }
|
45 | export declare const createDirective: MetadataFactory<Directive>;
|
46 | export interface Component extends Directive {
|
47 | changeDetection?: ChangeDetectionStrategy;
|
48 | viewProviders?: Provider[];
|
49 | moduleId?: string;
|
50 | templateUrl?: string;
|
51 | template?: string;
|
52 | styleUrls?: string[];
|
53 | styles?: string[];
|
54 | animations?: any[];
|
55 | encapsulation?: ViewEncapsulation;
|
56 | interpolation?: [string, string];
|
57 | entryComponents?: Array<Type | any[]>;
|
58 | preserveWhitespaces?: boolean;
|
59 | }
|
60 | export declare enum ViewEncapsulation {
|
61 | Emulated = 0,
|
62 | Native = 1,
|
63 | None = 2,
|
64 | ShadowDom = 3
|
65 | }
|
66 | export declare enum ChangeDetectionStrategy {
|
67 | OnPush = 0,
|
68 | Default = 1
|
69 | }
|
70 | export declare const createComponent: MetadataFactory<Component>;
|
71 | export interface Pipe {
|
72 | name: string;
|
73 | pure?: boolean;
|
74 | }
|
75 | export declare const createPipe: MetadataFactory<Pipe>;
|
76 | export interface Input {
|
77 | bindingPropertyName?: string;
|
78 | }
|
79 | export declare const createInput: MetadataFactory<Input>;
|
80 | export interface Output {
|
81 | bindingPropertyName?: string;
|
82 | }
|
83 | export declare const createOutput: MetadataFactory<Output>;
|
84 | export interface HostBinding {
|
85 | hostPropertyName?: string;
|
86 | }
|
87 | export declare const createHostBinding: MetadataFactory<HostBinding>;
|
88 | export interface HostListener {
|
89 | eventName?: string;
|
90 | args?: string[];
|
91 | }
|
92 | export declare const createHostListener: MetadataFactory<HostListener>;
|
93 | export interface NgModule {
|
94 | providers?: Provider[];
|
95 | declarations?: Array<Type | any[]>;
|
96 | imports?: Array<Type | ModuleWithProviders | any[]>;
|
97 | exports?: Array<Type | any[]>;
|
98 | entryComponents?: Array<Type | any[]>;
|
99 | bootstrap?: Array<Type | any[]>;
|
100 | schemas?: Array<SchemaMetadata | any[]>;
|
101 | id?: string;
|
102 | }
|
103 | export declare const createNgModule: MetadataFactory<NgModule>;
|
104 | export interface ModuleWithProviders {
|
105 | ngModule: Type;
|
106 | providers?: Provider[];
|
107 | }
|
108 | export interface Injectable {
|
109 | providedIn?: Type | 'root' | any;
|
110 | useClass?: Type | any;
|
111 | useExisting?: Type | any;
|
112 | useValue?: any;
|
113 | useFactory?: Type | any;
|
114 | deps?: Array<Type | any[]>;
|
115 | }
|
116 | export declare const createInjectable: MetadataFactory<Injectable>;
|
117 | export interface SchemaMetadata {
|
118 | name: string;
|
119 | }
|
120 | export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
|
121 | export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
|
122 | export declare const createOptional: MetadataFactory<unknown>;
|
123 | export declare const createSelf: MetadataFactory<unknown>;
|
124 | export declare const createSkipSelf: MetadataFactory<unknown>;
|
125 | export declare const createHost: MetadataFactory<unknown>;
|
126 | export interface Type extends Function {
|
127 | new (...args: any[]): any;
|
128 | }
|
129 | export declare const Type: FunctionConstructor;
|
130 | export declare enum SecurityContext {
|
131 | NONE = 0,
|
132 | HTML = 1,
|
133 | STYLE = 2,
|
134 | SCRIPT = 3,
|
135 | URL = 4,
|
136 | RESOURCE_URL = 5
|
137 | }
|
138 | export declare type Provider = any;
|
139 | export declare const enum NodeFlags {
|
140 | None = 0,
|
141 | TypeElement = 1,
|
142 | TypeText = 2,
|
143 | ProjectedTemplate = 4,
|
144 | CatRenderNode = 3,
|
145 | TypeNgContent = 8,
|
146 | TypePipe = 16,
|
147 | TypePureArray = 32,
|
148 | TypePureObject = 64,
|
149 | TypePurePipe = 128,
|
150 | CatPureExpression = 224,
|
151 | TypeValueProvider = 256,
|
152 | TypeClassProvider = 512,
|
153 | TypeFactoryProvider = 1024,
|
154 | TypeUseExistingProvider = 2048,
|
155 | LazyProvider = 4096,
|
156 | PrivateProvider = 8192,
|
157 | TypeDirective = 16384,
|
158 | Component = 32768,
|
159 | CatProviderNoDirective = 3840,
|
160 | CatProvider = 20224,
|
161 | OnInit = 65536,
|
162 | OnDestroy = 131072,
|
163 | DoCheck = 262144,
|
164 | OnChanges = 524288,
|
165 | AfterContentInit = 1048576,
|
166 | AfterContentChecked = 2097152,
|
167 | AfterViewInit = 4194304,
|
168 | AfterViewChecked = 8388608,
|
169 | EmbeddedViews = 16777216,
|
170 | ComponentView = 33554432,
|
171 | TypeContentQuery = 67108864,
|
172 | TypeViewQuery = 134217728,
|
173 | StaticQuery = 268435456,
|
174 | DynamicQuery = 536870912,
|
175 | TypeModuleProvider = 1073741824,
|
176 | CatQuery = 201326592,
|
177 | Types = 201347067
|
178 | }
|
179 | export declare const enum DepFlags {
|
180 | None = 0,
|
181 | SkipSelf = 1,
|
182 | Optional = 2,
|
183 | Self = 4,
|
184 | Value = 8
|
185 | }
|
186 |
|
187 |
|
188 |
|
189 | export declare const enum InjectFlags {
|
190 | Default = 0,
|
191 | |
192 |
|
193 |
|
194 |
|
195 | Host = 1,
|
196 |
|
197 | Self = 2,
|
198 |
|
199 | SkipSelf = 4,
|
200 |
|
201 | Optional = 8
|
202 | }
|
203 | export declare const enum ArgumentType {
|
204 | Inline = 0,
|
205 | Dynamic = 1
|
206 | }
|
207 | export declare const enum BindingFlags {
|
208 | TypeElementAttribute = 1,
|
209 | TypeElementClass = 2,
|
210 | TypeElementStyle = 4,
|
211 | TypeProperty = 8,
|
212 | SyntheticProperty = 16,
|
213 | SyntheticHostProperty = 32,
|
214 | CatSyntheticProperty = 48,
|
215 | Types = 15
|
216 | }
|
217 | export declare const enum QueryBindingType {
|
218 | First = 0,
|
219 | All = 1
|
220 | }
|
221 | export declare const enum QueryValueType {
|
222 | ElementRef = 0,
|
223 | RenderElement = 1,
|
224 | TemplateRef = 2,
|
225 | ViewContainerRef = 3,
|
226 | Provider = 4
|
227 | }
|
228 | export declare const enum ViewFlags {
|
229 | None = 0,
|
230 | OnPush = 2
|
231 | }
|
232 | export declare enum MissingTranslationStrategy {
|
233 | Error = 0,
|
234 | Warning = 1,
|
235 | Ignore = 2
|
236 | }
|
237 | export interface MetadataFactory<T> {
|
238 | (...args: any[]): T;
|
239 | isTypeOf(obj: any): obj is T;
|
240 | ngMetadataName: string;
|
241 | }
|
242 | export interface Route {
|
243 | children?: Route[];
|
244 | loadChildren?: string | Type | any;
|
245 | }
|
246 |
|
247 |
|
248 |
|
249 |
|
250 | export declare const enum SelectorFlags {
|
251 |
|
252 | NOT = 1,
|
253 |
|
254 | ATTRIBUTE = 2,
|
255 |
|
256 | ELEMENT = 4,
|
257 |
|
258 | CLASS = 8
|
259 | }
|
260 | export declare type R3CssSelector = (string | SelectorFlags)[];
|
261 | export declare type R3CssSelectorList = R3CssSelector[];
|
262 | export declare function parseSelectorToR3Selector(selector: string | null): R3CssSelectorList;
|
263 |
|
264 |
|
265 |
|
266 |
|
267 |
|
268 |
|
269 |
|
270 |
|
271 | export declare const enum RenderFlags {
|
272 | Create = 1,
|
273 | Update = 2
|
274 | }
|
275 |
|
276 |
|
277 |
|
278 |
|
279 | export declare const enum AttributeMarker {
|
280 | |
281 |
|
282 |
|
283 |
|
284 |
|
285 | NamespaceURI = 0,
|
286 | |
287 |
|
288 |
|
289 |
|
290 |
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 |
|
302 | Classes = 1,
|
303 | |
304 |
|
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 |
|
320 | Styles = 2,
|
321 | |
322 |
|
323 |
|
324 |
|
325 |
|
326 |
|
327 |
|
328 |
|
329 |
|
330 |
|
331 |
|
332 |
|
333 |
|
334 |
|
335 |
|
336 | Bindings = 3,
|
337 | |
338 |
|
339 |
|
340 |
|
341 |
|
342 |
|
343 |
|
344 |
|
345 |
|
346 |
|
347 |
|
348 |
|
349 |
|
350 |
|
351 |
|
352 |
|
353 |
|
354 |
|
355 |
|
356 |
|
357 |
|
358 |
|
359 |
|
360 | Template = 4,
|
361 | |
362 |
|
363 |
|
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 |
|
374 |
|
375 |
|
376 | ProjectAs = 5,
|
377 | |
378 |
|
379 |
|
380 |
|
381 |
|
382 |
|
383 |
|
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 |
|
390 |
|
391 | I18n = 6
|
392 | }
|