1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { BehaviorSubject } from 'rxjs';
|
9 | import { Observable } from 'rxjs';
|
10 | import { Subject } from 'rxjs';
|
11 | import { Subscribable } from 'rxjs';
|
12 | import { Subscription } from 'rxjs';
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare interface AbstractType<T> extends Function {
|
23 | prototype: T;
|
24 | }
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare interface AfterContentChecked {
|
44 | |
45 |
|
46 |
|
47 |
|
48 |
|
49 | ngAfterContentChecked(): void;
|
50 | }
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | export declare interface AfterContentInit {
|
71 | |
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 | ngAfterContentInit(): void;
|
78 | }
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 | export declare interface AfterViewChecked {
|
97 | |
98 |
|
99 |
|
100 |
|
101 |
|
102 | ngAfterViewChecked(): void;
|
103 | }
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 | export declare interface AfterViewInit {
|
124 | |
125 |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 | ngAfterViewInit(): void;
|
131 | }
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 | export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
|
139 |
|
140 |
|
141 |
|
142 |
|
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 | export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
|
151 |
|
152 | /**
|
153 | * A [DI token](guide/glossary#di-token "DI token definition") representing a string ID, used
|
154 | * primarily for prefixing application attributes and CSS styles when
|
155 | * {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.
|
156 | *
|
157 | * The token is needed in cases when multiple applications are bootstrapped on a page
|
158 | * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications
|
159 | * have different `APP_ID` value setup. For example:
|
160 | *
|
161 | * ```
|
162 | * bootstrapApplication(ComponentA, {
|
163 | * providers: [
|
164 | * { provide: APP_ID, useValue: 'app-a' },
|
165 | *
|
166 | * ]
|
167 | * });
|
168 | *
|
169 | * bootstrapApplication(ComponentB, {
|
170 | * providers: [
|
171 | * { provide: APP_ID, useValue: 'app-b' },
|
172 | *
|
173 | * ]
|
174 | * });
|
175 | * ```
|
176 | *
|
177 | * By default, when there is only one application bootstrapped, you don't need to provide the
|
178 | * `APP_ID` token (the `ng` will be used as an app ID).
|
179 | *
|
180 | * @publicApi
|
181 | */
|
182 | export declare const APP_ID: InjectionToken<string>;
|
183 |
|
184 | /**
|
185 | * A [DI token](guide/glossary#di-token "DI token definition") that you can use to provide
|
186 | * one or more initialization functions.
|
187 | *
|
188 | * The provided functions are injected at application startup and executed during
|
189 | * app initialization. If any of these functions returns a Promise or an Observable, initialization
|
190 | * does not complete until the Promise is resolved or the Observable is completed.
|
191 | *
|
192 | * You can, for example, create a factory function that loads language data
|
193 | * or an external configuration, and provide that function to the `APP_INITIALIZER` token.
|
194 | * The function is executed during the application bootstrap process,
|
195 | * and the needed data is available on startup.
|
196 | *
|
197 | * @see `ApplicationInitStatus`
|
198 | *
|
199 | * @usageNotes
|
200 | *
|
201 | * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token
|
202 | * and a function returning a promise.
|
203 | *
|
204 | * ```
|
205 | * function initializeApp(): Promise<any> {
|
206 | * return new Promise((resolve, reject) => {
|
207 | *
|
208 | * resolve();
|
209 | * });
|
210 | * }
|
211 | *
|
212 | * @NgModule({
|
213 | * imports: [BrowserModule],
|
214 | * declarations: [AppComponent],
|
215 | * bootstrap: [AppComponent],
|
216 | * providers: [{
|
217 | * provide: APP_INITIALIZER,
|
218 | * useFactory: () => initializeApp,
|
219 | * multi: true
|
220 | * }]
|
221 | * })
|
222 | * export class AppModule {}
|
223 | * ```
|
224 | *
|
225 | * It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function
|
226 | * returning an observable, see an example below. Note: the `HttpClient` in this example is used for
|
227 | * demo purposes to illustrate how the factory function can work with other providers available
|
228 | * through DI.
|
229 | *
|
230 | * ```
|
231 | * function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
|
232 | * return () => httpClient.get("https://someUrl.com/api/user")
|
233 | * .pipe(
|
234 | * tap(user => { ... })
|
235 | * );
|
236 | * }
|
237 | *
|
238 | * @NgModule({
|
239 | * imports: [BrowserModule, HttpClientModule],
|
240 | * declarations: [AppComponent],
|
241 | * bootstrap: [AppComponent],
|
242 | * providers: [{
|
243 | * provide: APP_INITIALIZER,
|
244 | * useFactory: initializeAppFactory,
|
245 | * deps: [HttpClient],
|
246 | * multi: true
|
247 | * }]
|
248 | * })
|
249 | * export class AppModule {}
|
250 | * ```
|
251 | *
|
252 | * @publicApi
|
253 | */
|
254 | export declare const APP_INITIALIZER: InjectionToken<readonly (() => Observable<unknown> | Promise<unknown> | void)[]>;
|
255 |
|
256 | /**
|
257 | * Set of config options available during the application bootstrap operation.
|
258 | *
|
259 | * @publicApi
|
260 | */
|
261 | export declare interface ApplicationConfig {
|
262 | /**
|
263 | * List of providers that should be available to the root component and all its children.
|
264 | */
|
265 | providers: Array<Provider | EnvironmentProviders>;
|
266 | }
|
267 |
|
268 | /**
|
269 | * A class that reflects the state of running {@link APP_INITIALIZER} functions.
|
270 | *
|
271 | * @publicApi
|
272 | */
|
273 | export declare class ApplicationInitStatus {
|
274 | private resolve;
|
275 | private reject;
|
276 | private initialized;
|
277 | readonly done = false;
|
278 | readonly donePromise: Promise<any>;
|
279 | private readonly appInits;
|
280 | constructor();
|
281 | static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationInitStatus, never>;
|
282 | static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationInitStatus>;
|
283 | }
|
284 |
|
285 | /**
|
286 | * Re-exported by `BrowserModule`, which is included automatically in the root
|
287 | * `AppModule` when you create a new app with the CLI `new` command. Eagerly injects
|
288 | * `ApplicationRef` to instantiate it.
|
289 | *
|
290 | * @publicApi
|
291 | */
|
292 | export declare class ApplicationModule {
|
293 | constructor(appRef: ApplicationRef);
|
294 | static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationModule, never>;
|
295 | static ɵmod: i0.ɵɵNgModuleDeclaration<ApplicationModule, never, never, never>;
|
296 | static ɵinj: i0.ɵɵInjectorDeclaration<ApplicationModule>;
|
297 | }
|
298 |
|
299 | /**
|
300 | * A reference to an Angular application running on a page.
|
301 | *
|
302 | * @usageNotes
|
303 | * {@a is-stable-examples}
|
304 | * ### isStable examples and caveats
|
305 | *
|
306 | * Note two important points about `isStable`, demonstrated in the examples below:
|
307 | * - the application will never be stable if you start any kind
|
308 | * of recurrent asynchronous task when the application starts
|
309 | * (for example for a polling process, started with a `setInterval`, a `setTimeout`
|
310 | * or using RxJS operators like `interval`);
|
311 | * - the `isStable` Observable runs outside of the Angular zone.
|
312 | *
|
313 | * Let's imagine that you start a recurrent task
|
314 | * (here incrementing a counter, using RxJS `interval`),
|
315 | * and at the same time subscribe to `isStable`.
|
316 | *
|
317 | * ```
|
318 | * constructor(appRef: ApplicationRef) {
|
319 | * appRef.isStable.pipe(
|
320 | * filter(stable => stable)
|
321 | * ).subscribe(() => console.log('App is stable now');
|
322 | * interval(1000).subscribe(counter => console.log(counter));
|
323 | * }
|
324 | * ```
|
325 | * In this example, `isStable` will never emit `true`,
|
326 | * and the trace "App is stable now" will never get logged.
|
327 | *
|
328 | * If you want to execute something when the app is stable,
|
329 | * you have to wait for the application to be stable
|
330 | * before starting your polling process.
|
331 | *
|
332 | * ```
|
333 | * constructor(appRef: ApplicationRef) {
|
334 | * appRef.isStable.pipe(
|
335 | * first(stable => stable),
|
336 | * tap(stable => console.log('App is stable now')),
|
337 | * switchMap(() => interval(1000))
|
338 | * ).subscribe(counter => console.log(counter));
|
339 | * }
|
340 | * ```
|
341 | * In this example, the trace "App is stable now" will be logged
|
342 | * and then the counter starts incrementing every second.
|
343 | *
|
344 | * Note also that this Observable runs outside of the Angular zone,
|
345 | * which means that the code in the subscription
|
346 | * to this Observable will not trigger the change detection.
|
347 | *
|
348 | * Let's imagine that instead of logging the counter value,
|
349 | * you update a field of your component
|
350 | * and display it in its template.
|
351 | *
|
352 | * ```
|
353 | * constructor(appRef: ApplicationRef) {
|
354 | * appRef.isStable.pipe(
|
355 | * first(stable => stable),
|
356 | * switchMap(() => interval(1000))
|
357 | * ).subscribe(counter => this.value = counter);
|
358 | * }
|
359 | * ```
|
360 | * As the `isStable` Observable runs outside the zone,
|
361 | * the `value` field will be updated properly,
|
362 | * but the template will not be refreshed!
|
363 | *
|
364 | * You'll have to manually trigger the change detection to update the template.
|
365 | *
|
366 | * ```
|
367 | * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {
|
368 | * appRef.isStable.pipe(
|
369 | * first(stable => stable),
|
370 | * switchMap(() => interval(1000))
|
371 | * ).subscribe(counter => {
|
372 | * this.value = counter;
|
373 | * cd.detectChanges();
|
374 | * });
|
375 | * }
|
376 | * ```
|
377 | *
|
378 | * Or make the subscription callback run inside the zone.
|
379 | *
|
380 | * ```
|
381 | * constructor(appRef: ApplicationRef, zone: NgZone) {
|
382 | * appRef.isStable.pipe(
|
383 | * first(stable => stable),
|
384 | * switchMap(() => interval(1000))
|
385 | * ).subscribe(counter => zone.run(() => this.value = counter));
|
386 | * }
|
387 | * ```
|
388 | *
|
389 | * @publicApi
|
390 | */
|
391 | export declare class ApplicationRef {
|
392 | private _runningTick;
|
393 | private _destroyed;
|
394 | private _destroyListeners;
|
395 | private readonly internalErrorHandler;
|
396 | private readonly zoneIsStable;
|
397 | /**
|
398 | * Indicates whether this instance was destroyed.
|
399 | */
|
400 | get destroyed(): boolean;
|
401 | /**
|
402 | * Get a list of component types registered to this application.
|
403 | * This list is populated even before the component is created.
|
404 | */
|
405 | readonly componentTypes: Type<any>[];
|
406 | /**
|
407 | * Get a list of components registered to this application.
|
408 | */
|
409 | readonly components: ComponentRef<any>[];
|
410 | /**
|
411 | * Returns an Observable that indicates when the application is stable or unstable.
|
412 | */
|
413 | readonly isStable: Observable<boolean>;
|
414 | private readonly _injector;
|
415 | /**
|
416 | * The `EnvironmentInjector` used to create this application.
|
417 | */
|
418 | get injector(): EnvironmentInjector;
|
419 | /**
|
420 | * Bootstrap a component onto the element identified by its selector or, optionally, to a
|
421 | * specified element.
|
422 | *
|
423 | * @usageNotes
|
424 | * ### Bootstrap process
|
425 | *
|
426 | * When bootstrapping a component, Angular mounts it onto a target DOM element
|
427 | * and kicks off automatic change detection. The target DOM element can be
|
428 | * provided using the `rootSelectorOrNode` argument.
|
429 | *
|
430 | * If the target DOM element is not provided, Angular tries to find one on a page
|
431 | * using the `selector` of the component that is being bootstrapped
|
432 | * (first matched element is used).
|
433 | *
|
434 | * ### Example
|
435 | *
|
436 | * Generally, we define the component to bootstrap in the `bootstrap` array of `NgModule`,
|
437 | * but it requires us to know the component while writing the application code.
|
438 | *
|
439 | * Imagine a situation where we have to wait for an API call to decide about the component to
|
440 | * bootstrap. We can use the `ngDoBootstrap` hook of the `NgModule` and call this method to
|
441 | * dynamically bootstrap a component.
|
442 | *
|
443 | * {@example core/ts/platform/platform.ts region='componentSelector'}
|
444 | *
|
445 | * Optionally, a component can be mounted onto a DOM element that does not match the
|
446 | * selector of the bootstrapped component.
|
447 | *
|
448 | * In the following example, we are providing a CSS selector to match the target element.
|
449 | *
|
450 | * {@example core/ts/platform/platform.ts region='cssSelector'}
|
451 | *
|
452 | * While in this example, we are providing reference to a DOM node.
|
453 | *
|
454 | * {@example core/ts/platform/platform.ts region='domNode'}
|
455 | */
|
456 | bootstrap<C>(component: Type<C>, rootSelectorOrNode?: string | any): ComponentRef<C>;
|
457 | /**
|
458 | * Bootstrap a component onto the element identified by its selector or, optionally, to a
|
459 | * specified element.
|
460 | *
|
461 | * @usageNotes
|
462 | * ### Bootstrap process
|
463 | *
|
464 | * When bootstrapping a component, Angular mounts it onto a target DOM element
|
465 | * and kicks off automatic change detection. The target DOM element can be
|
466 | * provided using the `rootSelectorOrNode` argument.
|
467 | *
|
468 | * If the target DOM element is not provided, Angular tries to find one on a page
|
469 | * using the `selector` of the component that is being bootstrapped
|
470 | * (first matched element is used).
|
471 | *
|
472 | * ### Example
|
473 | *
|
474 | * Generally, we define the component to bootstrap in the `bootstrap` array of `NgModule`,
|
475 | * but it requires us to know the component while writing the application code.
|
476 | *
|
477 | * Imagine a situation where we have to wait for an API call to decide about the component to
|
478 | * bootstrap. We can use the `ngDoBootstrap` hook of the `NgModule` and call this method to
|
479 | * dynamically bootstrap a component.
|
480 | *
|
481 | * {@example core/ts/platform/platform.ts region='componentSelector'}
|
482 | *
|
483 | * Optionally, a component can be mounted onto a DOM element that does not match the
|
484 | * selector of the bootstrapped component.
|
485 | *
|
486 | * In the following example, we are providing a CSS selector to match the target element.
|
487 | *
|
488 | * {@example core/ts/platform/platform.ts region='cssSelector'}
|
489 | *
|
490 | * While in this example, we are providing reference to a DOM node.
|
491 | *
|
492 | * {@example core/ts/platform/platform.ts region='domNode'}
|
493 | *
|
494 | * @deprecated Passing Component factories as the `Application.bootstrap` function argument is
|
495 | * deprecated. Pass Component Types instead.
|
496 | */
|
497 | bootstrap<C>(componentFactory: ComponentFactory<C>, rootSelectorOrNode?: string | any): ComponentRef<C>;
|
498 | /**
|
499 | * Invoke this method to explicitly process change detection and its side-effects.
|
500 | *
|
501 | * In development mode, `tick()` also performs a second change detection cycle to ensure that no
|
502 | * further changes are detected. If additional changes are picked up during this second cycle,
|
503 | * bindings in the app have side-effects that cannot be resolved in a single change detection
|
504 | * pass.
|
505 | * In this case, Angular throws an error, since an Angular application can only have one change
|
506 | * detection pass during which all change detection must complete.
|
507 | */
|
508 | tick(): void;
|
509 | /**
|
510 | * Attaches a view so that it will be dirty checked.
|
511 | * The view will be automatically detached when it is destroyed.
|
512 | * This will throw if the view is already attached to a ViewContainer.
|
513 | */
|
514 | attachView(viewRef: ViewRef): void;
|
515 | /**
|
516 | * Detaches a view from dirty checking again.
|
517 | */
|
518 | detachView(viewRef: ViewRef): void;
|
519 | private _loadComponent;
|
520 | /**
|
521 | * Registers a listener to be called when an instance is destroyed.
|
522 | *
|
523 | * @param callback A callback function to add as a listener.
|
524 | * @returns A function which unregisters a listener.
|
525 | */
|
526 | onDestroy(callback: () => void): VoidFunction;
|
527 | /**
|
528 | * Destroys an Angular application represented by this `ApplicationRef`. Calling this function
|
529 | * will destroy the associated environment injectors as well as all the bootstrapped components
|
530 | * with their views.
|
531 | */
|
532 | destroy(): void;
|
533 | /**
|
534 | * Returns the number of attached views.
|
535 | */
|
536 | get viewCount(): number;
|
537 | private warnIfDestroyed;
|
538 | static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationRef, never>;
|
539 | static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationRef>;
|
540 | }
|
541 |
|
542 | /**
|
543 | * @publicApi
|
544 | */
|
545 | export declare function asNativeElements(debugEls: DebugElement[]): any;
|
546 |
|
547 | /**
|
548 | * Asserts that the current stack frame is within an injection context and has access to `inject`.
|
549 | *
|
550 | * @param debugFn a reference to the function making the assertion (used for the error message).
|
551 | *
|
552 | * @publicApi
|
553 | */
|
554 | export declare function assertInInjectionContext(debugFn: Function): void;
|
555 |
|
556 | /**
|
557 | * Checks that there is currently a platform that contains the given token as a provider.
|
558 | *
|
559 | * @publicApi
|
560 | */
|
561 | export declare function assertPlatform(requiredToken: any): PlatformRef;
|
562 |
|
563 | /**
|
564 | * Type of the Attribute metadata.
|
565 | *
|
566 | * @publicApi
|
567 | */
|
568 | export declare interface Attribute {
|
569 | /**
|
570 | * The name of the attribute whose value can be injected.
|
571 | */
|
572 | attributeName: string;
|
573 | }
|
574 |
|
575 | /**
|
576 | * Attribute decorator and metadata.
|
577 | *
|
578 | * @Annotation
|
579 | * @publicApi
|
580 | */
|
581 | export declare const Attribute: AttributeDecorator;
|
582 |
|
583 |
|
584 | /**
|
585 | * Type of the Attribute decorator / constructor function.
|
586 | *
|
587 | * @publicApi
|
588 | */
|
589 | export declare interface AttributeDecorator {
|
590 | /**
|
591 | * Parameter decorator for a directive constructor that designates
|
592 | * a host-element attribute whose value is injected as a constant string literal.
|
593 | *
|
594 | * @usageNotes
|
595 | *
|
596 | * Suppose we have an `<input>` element and want to know its `type`.
|
597 | *
|
598 | * ```html
|
599 | * <input type="text">
|
600 | * ```
|
601 | *
|
602 | * The following example uses the decorator to inject the string literal `text` in a directive.
|
603 | *
|
604 | * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}
|
605 | *
|
606 | * The following example uses the decorator in a component constructor.
|
607 | *
|
608 | * {@example core/ts/metadata/metadata.ts region='attributeFactory'}
|
609 | *
|
610 | */
|
611 | (name: string): any;
|
612 | new (name: string): Attribute;
|
613 | }
|
614 |
|
615 | /**
|
616 | * Provides additional options to the bootstrapping process.
|
617 | *
|
618 | * @publicApi
|
619 | */
|
620 | export declare interface BootstrapOptions {
|
621 | /**
|
622 | * Optionally specify which `NgZone` should be used.
|
623 | *
|
624 | * - Provide your own `NgZone` instance.
|
625 | * - `zone.js` - Use default `NgZone` which requires `Zone.js`.
|
626 | * - `noop` - Use `NoopNgZone` which does nothing.
|
627 | */
|
628 | ngZone?: NgZone | 'zone.js' | 'noop';
|
629 | /**
|
630 | * Optionally specify coalescing event change detections or not.
|
631 | * Consider the following case.
|
632 | *
|
633 | * ```
|
634 | * <div (click)="doSomething()">
|
635 | * <button (click)="doSomethingElse()"></button>
|
636 | * </div>
|
637 | * ```
|
638 | *
|
639 | * When button is clicked, because of the event bubbling, both
|
640 | * event handlers will be called and 2 change detections will be
|
641 | * triggered. We can coalesce such kind of events to only trigger
|
642 | * change detection only once.
|
643 | *
|
644 | * By default, this option will be false. So the events will not be
|
645 | * coalesced and the change detection will be triggered multiple times.
|
646 | * And if this option be set to true, the change detection will be
|
647 | * triggered async by scheduling a animation frame. So in the case above,
|
648 | * the change detection will only be triggered once.
|
649 | */
|
650 | ngZoneEventCoalescing?: boolean;
|
651 | /**
|
652 | * Optionally specify if `NgZone#run()` method invocations should be coalesced
|
653 | * into a single change detection.
|
654 | *
|
655 | * Consider the following case.
|
656 | * ```
|
657 | * for (let i = 0; i < 10; i ++) {
|
658 | * ngZone.run(() => {
|
659 | *
|
660 | * });
|
661 | * }
|
662 | * ```
|
663 | *
|
664 | * This case triggers the change detection multiple times.
|
665 | * With ngZoneRunCoalescing options, all change detections in an event loop trigger only once.
|
666 | * In addition, the change detection executes in requestAnimation.
|
667 | *
|
668 | */
|
669 | ngZoneRunCoalescing?: boolean;
|
670 | }
|
671 |
|
672 |
|
673 | /**
|
674 | * The strategy that the default change detector uses to detect changes.
|
675 | * When set, takes effect the next time change detection is triggered.
|
676 | *
|
677 | * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
|
678 | *
|
679 | * @publicApi
|
680 | */
|
681 | export declare enum ChangeDetectionStrategy {
|
682 | /**
|
683 | * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
|
684 | * until reactivated by setting the strategy to `Default` (`CheckAlways`).
|
685 | * Change detection can still be explicitly invoked.
|
686 | * This strategy applies to all child directives and cannot be overridden.
|
687 | */
|
688 | OnPush = 0,
|
689 | /**
|
690 | * Use the default `CheckAlways` strategy, in which change detection is automatic until
|
691 | * explicitly deactivated.
|
692 | */
|
693 | Default = 1
|
694 | }
|
695 |
|
696 | declare type ChangeDetectionStrategy_2 = number;
|
697 |
|
698 | /**
|
699 | * Base class that provides change detection functionality.
|
700 | * A change-detection tree collects all views that are to be checked for changes.
|
701 | * Use the methods to add and remove views from the tree, initiate change-detection,
|
702 | * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.
|
703 | *
|
704 | * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)
|
705 | * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)
|
706 | *
|
707 | * @usageNotes
|
708 | *
|
709 | * The following examples demonstrate how to modify default change-detection behavior
|
710 | * to perform explicit detection when needed.
|
711 | *
|
712 | * ### Use `markForCheck()` with `CheckOnce` strategy
|
713 | *
|
714 | * The following example sets the `OnPush` change-detection strategy for a component
|
715 | * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check
|
716 | * after an interval.
|
717 | *
|
718 | * <code-example path="core/ts/change_detect/change-detection.ts"
|
719 | * region="mark-for-check"></code-example>
|
720 | *
|
721 | * ### Detach change detector to limit how often check occurs
|
722 | *
|
723 | * The following example defines a component with a large list of read-only data
|
724 | * that is expected to change constantly, many times per second.
|
725 | * To improve performance, we want to check and update the list
|
726 | * less often than the changes actually occur. To do that, we detach
|
727 | * the component's change detector and perform an explicit local check every five seconds.
|
728 | *
|
729 | * <code-example path="core/ts/change_detect/change-detection.ts" region="detach"></code-example>
|
730 | *
|
731 | *
|
732 | * ### Reattaching a detached component
|
733 | *
|
734 | * The following example creates a component displaying live data.
|
735 | * The component detaches its change detector from the main change detector tree
|
736 | * when the `live` property is set to false, and reattaches it when the property
|
737 | * becomes true.
|
738 | *
|
739 | * <code-example path="core/ts/change_detect/change-detection.ts" region="reattach"></code-example>
|
740 | *
|
741 | * @publicApi
|
742 | */
|
743 | export declare abstract class ChangeDetectorRef {
|
744 | /**
|
745 | * When a view uses the {@link ChangeDetectionStrategy#OnPush OnPush} (checkOnce)
|
746 | * change detection strategy, explicitly marks the view as changed so that
|
747 | * it can be checked again.
|
748 | *
|
749 | * Components are normally marked as dirty (in need of rerendering) when inputs
|
750 | * have changed or events have fired in the view. Call this method to ensure that
|
751 | * a component is checked even if these triggers have not occurred.
|
752 | *
|
753 | * <!-- TODO: Add a link to a chapter on OnPush components -->
|
754 | *
|
755 | */
|
756 | abstract markForCheck(): void;
|
757 | /**
|
758 | * Detaches this view from the change-detection tree.
|
759 | * A detached view is not checked until it is reattached.
|
760 | * Use in combination with `detectChanges()` to implement local change detection checks.
|
761 | *
|
762 | * Detached views are not checked during change detection runs until they are
|
763 | * re-attached, even if they are marked as dirty.
|
764 | *
|
765 | * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
766 | * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
767 | *
|
768 | */
|
769 | abstract detach(): void;
|
770 | /**
|
771 | * Checks this view and its children. Use in combination with {@link ChangeDetectorRef#detach
|
772 | * detach}
|
773 | * to implement local change detection checks.
|
774 | *
|
775 | * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
776 | * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
777 | *
|
778 | */
|
779 | abstract detectChanges(): void;
|
780 | /**
|
781 | * Checks the change detector and its children, and throws if any changes are detected.
|
782 | *
|
783 | * Use in development mode to verify that running change detection doesn't introduce
|
784 | * other changes. Calling it in production mode is a noop.
|
785 | */
|
786 | abstract checkNoChanges(): void;
|
787 | /**
|
788 | * Re-attaches the previously detached view to the change detection tree.
|
789 | * Views are attached to the tree by default.
|
790 | *
|
791 | * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
792 | *
|
793 | */
|
794 | abstract reattach(): void;
|
795 | }
|
796 |
|
797 | declare interface ChangeDetectorRefInterface extends ChangeDetectorRef {
|
798 | }
|
799 |
|
800 | declare const CHILD_HEAD = 12;
|
801 |
|
802 | declare const CHILD_TAIL = 13;
|
803 |
|
804 | /**
|
805 | * Configures the `Injector` to return an instance of `useClass` for a token.
|
806 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
807 | *
|
808 | * @usageNotes
|
809 | *
|
810 | * {@example core/di/ts/provider_spec.ts region='ClassProvider'}
|
811 | *
|
812 | * Note that following two providers are not equal:
|
813 | *
|
814 | * {@example core/di/ts/provider_spec.ts region='ClassProviderDifference'}
|
815 | *
|
816 | * ### Multi-value example
|
817 | *
|
818 | * {@example core/di/ts/provider_spec.ts region='MultiProviderAspect'}
|
819 | *
|
820 | * @publicApi
|
821 | */
|
822 | export declare interface ClassProvider extends ClassSansProvider {
|
823 | /**
|
824 | * An injection token. (Typically an instance of `Type` or `InjectionToken`, but can be `any`).
|
825 | */
|
826 | provide: any;
|
827 | /**
|
828 | * When true, injector returns an array of instances. This is useful to allow multiple
|
829 | * providers spread across many files to provide configuration information to a common token.
|
830 | */
|
831 | multi?: boolean;
|
832 | }
|
833 |
|
834 | /**
|
835 | * Configures the `Injector` to return a value by invoking a `useClass` function.
|
836 | * Base for `ClassProvider` decorator.
|
837 | *
|
838 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
839 | *
|
840 | * @publicApi
|
841 | */
|
842 | export declare interface ClassSansProvider {
|
843 | /**
|
844 | * Class to instantiate for the `token`.
|
845 | */
|
846 | useClass: Type<any>;
|
847 | }
|
848 |
|
849 | declare const CLEANUP = 7;
|
850 |
|
851 | /**
|
852 | * Low-level service for running the angular compiler during runtime
|
853 | * to create {@link ComponentFactory}s, which
|
854 | * can later be used to create and render a Component instance.
|
855 | *
|
856 | * Each `@NgModule` provides an own `Compiler` to its injector,
|
857 | * that will use the directives/pipes of the ng module for compilation
|
858 | * of components.
|
859 | *
|
860 | * @publicApi
|
861 | *
|
862 | * @deprecated
|
863 | * Ivy JIT mode doesn't require accessing this symbol.
|
864 | * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
|
865 | * additional context.
|
866 | */
|
867 | export declare class Compiler {
|
868 | /**
|
869 | * Compiles the given NgModule and all of its components. All templates of the components
|
870 | * have to be inlined.
|
871 | */
|
872 | compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T>;
|
873 | /**
|
874 | * Compiles the given NgModule and all of its components
|
875 | */
|
876 | compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>>;
|
877 | /**
|
878 | * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.
|
879 | */
|
880 | compileModuleAndAllComponentsSync<T>(moduleType: Type<T>): ModuleWithComponentFactories<T>;
|
881 | /**
|
882 | * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.
|
883 | */
|
884 | compileModuleAndAllComponentsAsync<T>(moduleType: Type<T>): Promise<ModuleWithComponentFactories<T>>;
|
885 | /**
|
886 | * Clears all caches.
|
887 | */
|
888 | clearCache(): void;
|
889 | /**
|
890 | * Clears the cache for the given component/ngModule.
|
891 | */
|
892 | clearCacheFor(type: Type<any>): void;
|
893 | /**
|
894 | * Returns the id for a given NgModule, if one is defined and known to the compiler.
|
895 | */
|
896 | getModuleId(moduleType: Type<any>): string | undefined;
|
897 | static ɵfac: i0.ɵɵFactoryDeclaration<Compiler, never>;
|
898 | static ɵprov: i0.ɵɵInjectableDeclaration<Compiler>;
|
899 | }
|
900 |
|
901 | /**
|
902 | * Token to provide CompilerOptions in the platform injector.
|
903 | *
|
904 | * @publicApi
|
905 | */
|
906 | export declare const COMPILER_OPTIONS: InjectionToken<CompilerOptions[]>;
|
907 |
|
908 | /**
|
909 | * A factory for creating a Compiler
|
910 | *
|
911 | * @publicApi
|
912 | *
|
913 | * @deprecated
|
914 | * Ivy JIT mode doesn't require accessing this symbol.
|
915 | * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
|
916 | * additional context.
|
917 | */
|
918 | export declare abstract class CompilerFactory {
|
919 | abstract createCompiler(options?: CompilerOptions[]): Compiler;
|
920 | }
|
921 |
|
922 | /**
|
923 | * Options for creating a compiler.
|
924 | *
|
925 | * Note: the `useJit` and `missingTranslation` config options are not used in Ivy, passing them has
|
926 | * no effect. Those config options are deprecated since v13.
|
927 | *
|
928 | * @publicApi
|
929 | */
|
930 | export declare type CompilerOptions = {
|
931 | /**
|
932 | * @deprecated not used at all in Ivy, providing this config option has no effect.
|
933 | */
|
934 | useJit?: boolean;
|
935 | defaultEncapsulation?: ViewEncapsulation;
|
936 | providers?: StaticProvider[];
|
937 | /**
|
938 | * @deprecated not used at all in Ivy, providing this config option has no effect.
|
939 | */
|
940 | missingTranslation?: MissingTranslationStrategy;
|
941 | preserveWhitespaces?: boolean;
|
942 | };
|
943 |
|
944 | /**
|
945 | * Supplies configuration metadata for an Angular component.
|
946 | *
|
947 | * @publicApi
|
948 | */
|
949 | export declare interface Component extends Directive {
|
950 | /**
|
951 | * The change-detection strategy to use for this component.
|
952 | *
|
953 | * When a component is instantiated, Angular creates a change detector,
|
954 | * which is responsible for propagating the component's bindings.
|
955 | * The strategy is one of:
|
956 | * - `ChangeDetectionStrategy#OnPush` sets the strategy to `CheckOnce` (on demand).
|
957 | * - `ChangeDetectionStrategy#Default` sets the strategy to `CheckAlways`.
|
958 | */
|
959 | changeDetection?: ChangeDetectionStrategy;
|
960 | /**
|
961 | * Defines the set of injectable objects that are visible to its view DOM children.
|
962 | * See [example](#injecting-a-class-with-a-view-provider).
|
963 | *
|
964 | */
|
965 | viewProviders?: Provider[];
|
966 | /**
|
967 | * The module ID of the module that contains the component.
|
968 | * The component must be able to resolve relative URLs for templates and styles.
|
969 | * SystemJS exposes the `__moduleName` variable within each module.
|
970 | * In CommonJS, this can be set to `module.id`.
|
971 | *
|
972 | * @deprecated This option does not have any effect. Will be removed in Angular v17.
|
973 | */
|
974 | moduleId?: string;
|
975 | /**
|
976 | * The relative path or absolute URL of a template file for an Angular component.
|
977 | * If provided, do not supply an inline template using `template`.
|
978 | *
|
979 | */
|
980 | templateUrl?: string;
|
981 | /**
|
982 | * An inline template for an Angular component. If provided,
|
983 | * do not supply a template file using `templateUrl`.
|
984 | *
|
985 | */
|
986 | template?: string;
|
987 | /**
|
988 | * One or more relative paths or absolute URLs for files containing CSS stylesheets to use
|
989 | * in this component.
|
990 | */
|
991 | styleUrls?: string[];
|
992 | /**
|
993 | * One or more inline CSS stylesheets to use
|
994 | * in this component.
|
995 | */
|
996 | styles?: string[];
|
997 | /**
|
998 | * One or more animation `trigger()` calls, containing
|
999 | * [`state()`](api/animations/state) and `transition()` definitions.
|
1000 | * See the [Animations guide](/guide/animations) and animations API documentation.
|
1001 | *
|
1002 | */
|
1003 | animations?: any[];
|
1004 | /**
|
1005 | * An encapsulation policy for the component's styling.
|
1006 | * Possible values:
|
1007 | * - `ViewEncapsulation.Emulated`: Apply modified component styles in order to emulate
|
1008 | * a native Shadow DOM CSS encapsulation behavior.
|
1009 | * - `ViewEncapsulation.None`: Apply component styles globally without any sort of encapsulation.
|
1010 | * - `ViewEncapsulation.ShadowDom`: Use the browser's native Shadow DOM API to encapsulate styles.
|
1011 | *
|
1012 | * If not supplied, the value is taken from the `CompilerOptions`
|
1013 | * which defaults to `ViewEncapsulation.Emulated`.
|
1014 | *
|
1015 | * If the policy is `ViewEncapsulation.Emulated` and the component has no
|
1016 | * {@link Component#styles styles} nor {@link Component#styleUrls styleUrls},
|
1017 | * the policy is automatically switched to `ViewEncapsulation.None`.
|
1018 | */
|
1019 | encapsulation?: ViewEncapsulation;
|
1020 | /**
|
1021 | * Overrides the default interpolation start and end delimiters (`{{` and `}}`).
|
1022 | */
|
1023 | interpolation?: [string, string];
|
1024 | /**
|
1025 | * True to preserve or false to remove potentially superfluous whitespace characters
|
1026 | * from the compiled template. Whitespace characters are those matching the `\s`
|
1027 | * character class in JavaScript regular expressions. Default is false, unless
|
1028 | * overridden in compiler options.
|
1029 | */
|
1030 | preserveWhitespaces?: boolean;
|
1031 | /**
|
1032 | * Angular components marked as `standalone` do not need to be declared in an NgModule. Such
|
1033 | * components directly manage their own template dependencies (components, directives, and pipes
|
1034 | * used in a template) via the imports property.
|
1035 | *
|
1036 | * More information about standalone components, directives, and pipes can be found in [this
|
1037 | * guide](guide/standalone-components).
|
1038 | */
|
1039 | standalone?: boolean;
|
1040 | /**
|
1041 | * The imports property specifies the standalone component's template dependencies — those
|
1042 | * directives, components, and pipes that can be used within its template. Standalone components
|
1043 | * can import other standalone components, directives, and pipes as well as existing NgModules.
|
1044 | *
|
1045 | * This property is only available for standalone components - specifying it for components
|
1046 | * declared in an NgModule generates a compilation error.
|
1047 | *
|
1048 | * More information about standalone components, directives, and pipes can be found in [this
|
1049 | * guide](guide/standalone-components).
|
1050 | */
|
1051 | imports?: (Type<any> | ReadonlyArray<any>)[];
|
1052 | /**
|
1053 | * The set of schemas that declare elements to be allowed in a standalone component. Elements and
|
1054 | * properties that are neither Angular components nor directives must be declared in a schema.
|
1055 | *
|
1056 | * This property is only available for standalone components - specifying it for components
|
1057 | * declared in an NgModule generates a compilation error.
|
1058 | *
|
1059 | * More information about standalone components, directives, and pipes can be found in [this
|
1060 | * guide](guide/standalone-components).
|
1061 | */
|
1062 | schemas?: SchemaMetadata[];
|
1063 | }
|
1064 |
|
1065 | /**
|
1066 | * Component decorator and metadata.
|
1067 | *
|
1068 | * @Annotation
|
1069 | * @publicApi
|
1070 | */
|
1071 | export declare const Component: ComponentDecorator;
|
1072 |
|
1073 | /**
|
1074 | * Component decorator interface
|
1075 | *
|
1076 | * @publicApi
|
1077 | */
|
1078 | export declare interface ComponentDecorator {
|
1079 | /**
|
1080 | * Decorator that marks a class as an Angular component and provides configuration
|
1081 | * metadata that determines how the component should be processed,
|
1082 | * instantiated, and used at runtime.
|
1083 | *
|
1084 | * Components are the most basic UI building block of an Angular app.
|
1085 | * An Angular app contains a tree of Angular components.
|
1086 | *
|
1087 | * Angular components are a subset of directives, always associated with a template.
|
1088 | * Unlike other directives, only one component can be instantiated for a given element in a
|
1089 | * template.
|
1090 | *
|
1091 | * A component must belong to an NgModule in order for it to be available
|
1092 | * to another component or application. To make it a member of an NgModule,
|
1093 | * list it in the `declarations` field of the `NgModule` metadata.
|
1094 | *
|
1095 | * Note that, in addition to these options for configuring a directive,
|
1096 | * you can control a component's runtime behavior by implementing
|
1097 | * life-cycle hooks. For more information, see the
|
1098 | * [Lifecycle Hooks](guide/lifecycle-hooks) guide.
|
1099 | *
|
1100 | * @usageNotes
|
1101 | *
|
1102 | * ### Setting component inputs
|
1103 | *
|
1104 | * The following example creates a component with two data-bound properties,
|
1105 | * specified by the `inputs` value.
|
1106 | *
|
1107 | * <code-example path="core/ts/metadata/directives.ts" region="component-input"></code-example>
|
1108 | *
|
1109 | *
|
1110 | * ### Setting component outputs
|
1111 | *
|
1112 | * The following example shows two event emitters that emit on an interval. One
|
1113 | * emits an output every second, while the other emits every five seconds.
|
1114 | *
|
1115 | * {@example core/ts/metadata/directives.ts region='component-output-interval'}
|
1116 | *
|
1117 | * ### Injecting a class with a view provider
|
1118 | *
|
1119 | * The following simple example injects a class into a component
|
1120 | * using the view provider specified in component metadata:
|
1121 | *
|
1122 | * ```ts
|
1123 | * class Greeter {
|
1124 | * greet(name:string) {
|
1125 | * return 'Hello ' + name + '!';
|
1126 | * }
|
1127 | * }
|
1128 | *
|
1129 | * @Directive({
|
1130 | * selector: 'needs-greeter'
|
1131 | * })
|
1132 | * class NeedsGreeter {
|
1133 | * greeter:Greeter;
|
1134 | *
|
1135 | * constructor(greeter:Greeter) {
|
1136 | * this.greeter = greeter;
|
1137 | * }
|
1138 | * }
|
1139 | *
|
1140 | * @Component({
|
1141 | * selector: 'greet',
|
1142 | * viewProviders: [
|
1143 | * Greeter
|
1144 | * ],
|
1145 | * template: `<needs-greeter></needs-greeter>`
|
1146 | * })
|
1147 | * class HelloWorld {
|
1148 | * }
|
1149 | *
|
1150 | * ```
|
1151 | *
|
1152 | * ### Preserving whitespace
|
1153 | *
|
1154 | * Removing whitespace can greatly reduce AOT-generated code size and speed up view creation.
|
1155 | * As of Angular 6, the default for `preserveWhitespaces` is false (whitespace is removed).
|
1156 | * To change the default setting for all components in your application, set
|
1157 | * the `preserveWhitespaces` option of the AOT compiler.
|
1158 | *
|
1159 | * By default, the AOT compiler removes whitespace characters as follows:
|
1160 | * * Trims all whitespaces at the beginning and the end of a template.
|
1161 | * * Removes whitespace-only text nodes. For example,
|
1162 | *
|
1163 | * ```html
|
1164 | * <button>Action 1</button> <button>Action 2</button>
|
1165 | * ```
|
1166 | *
|
1167 | * becomes:
|
1168 | *
|
1169 | * ```html
|
1170 | * <button>Action 1</button><button>Action 2</button>
|
1171 | * ```
|
1172 | *
|
1173 | * * Replaces a series of whitespace characters in text nodes with a single space.
|
1174 | * For example, `<span>\n some text\n</span>` becomes `<span> some text </span>`.
|
1175 | * * Does NOT alter text nodes inside HTML tags such as `<pre>` or `<textarea>`,
|
1176 | * where whitespace characters are significant.
|
1177 | *
|
1178 | * Note that these transformations can influence DOM nodes layout, although impact
|
1179 | * should be minimal.
|
1180 | *
|
1181 | * You can override the default behavior to preserve whitespace characters
|
1182 | * in certain fragments of a template. For example, you can exclude an entire
|
1183 | * DOM sub-tree by using the `ngPreserveWhitespaces` attribute:
|
1184 | *
|
1185 | * ```html
|
1186 | * <div ngPreserveWhitespaces>
|
1187 | * whitespaces are preserved here
|
1188 | * <span> and here </span>
|
1189 | * </div>
|
1190 | * ```
|
1191 | *
|
1192 | * You can force a single space to be preserved in a text node by using `&ngsp;`,
|
1193 | * which is replaced with a space character by Angular's template
|
1194 | * compiler:
|
1195 | *
|
1196 | * ```html
|
1197 | * <a>Spaces</a>&ngsp;<a>between</a>&ngsp;<a>links.</a>
|
1198 | * <!-- compiled to be equivalent to:
|
1199 | * <a>Spaces</a> <a>between</a> <a>links.</a> -->
|
1200 | * ```
|
1201 | *
|
1202 | * Note that sequences of `&ngsp;` are still collapsed to just one space character when
|
1203 | * the `preserveWhitespaces` option is set to `false`.
|
1204 | *
|
1205 | * ```html
|
1206 | * <a>before</a>&ngsp;&ngsp;&ngsp;<a>after</a>
|
1207 | * <!-- compiled to be equivalent to:
|
1208 | * <a>before</a> <a>after</a> -->
|
1209 | * ```
|
1210 | *
|
1211 | * To preserve sequences of whitespace characters, use the
|
1212 | * `ngPreserveWhitespaces` attribute.
|
1213 | *
|
1214 | * @Annotation
|
1215 | */
|
1216 | (obj: Component): TypeDecorator;
|
1217 | /**
|
1218 | * See the `Component` decorator.
|
1219 | */
|
1220 | new (obj: Component): Component;
|
1221 | }
|
1222 |
|
1223 | declare interface ComponentDefFeature {
|
1224 | <T>(componentDef: ɵComponentDef<T>): void;
|
1225 | /**
|
1226 | * Marks a feature as something that {@link InheritDefinitionFeature} will execute
|
1227 | * during inheritance.
|
1228 | *
|
1229 | * NOTE: DO NOT SET IN ROOT OF MODULE! Doing so will result in tree-shakers/bundlers
|
1230 | * identifying the change as a side effect, and the feature will be included in
|
1231 | * every bundle.
|
1232 | */
|
1233 | ngInherit?: true;
|
1234 | }
|
1235 |
|
1236 | declare interface ComponentDefinition<T> extends Omit<DirectiveDefinition<T>, 'features'> {
|
1237 | /**
|
1238 | * The number of nodes, local refs, and pipes in this component template.
|
1239 | *
|
1240 | * Used to calculate the length of this component's LView array, so we
|
1241 | * can pre-fill the array and set the binding start index.
|
1242 | */
|
1243 | decls: number;
|
1244 | /**
|
1245 | * The number of bindings in this component template (including pure fn bindings).
|
1246 | *
|
1247 | * Used to calculate the length of this component's LView array, so we
|
1248 | * can pre-fill the array and set the host binding start index.
|
1249 | */
|
1250 | vars: number;
|
1251 | /**
|
1252 | * Template function use for rendering DOM.
|
1253 | *
|
1254 | * This function has following structure.
|
1255 | *
|
1256 | * ```
|
1257 | * function Template<T>(ctx:T, creationMode: boolean) {
|
1258 | * if (creationMode) {
|
1259 | *
|
1260 | * }
|
1261 | *
|
1262 | * }
|
1263 | * ```
|
1264 | *
|
1265 | * Common instructions are:
|
1266 | * Creation mode instructions:
|
1267 | * - `elementStart`, `elementEnd`
|
1268 | * - `text`
|
1269 | * - `container`
|
1270 | * - `listener`
|
1271 | *
|
1272 | * Binding update instructions:
|
1273 | * - `bind`
|
1274 | * - `elementAttribute`
|
1275 | * - `elementProperty`
|
1276 | * - `elementClass`
|
1277 | * - `elementStyle`
|
1278 | *
|
1279 | */
|
1280 | template: ComponentTemplate<T>;
|
1281 | /**
|
1282 | * Constants for the nodes in the component's view.
|
1283 | * Includes attribute arrays, local definition arrays etc.
|
1284 | */
|
1285 | consts?: TConstantsOrFactory;
|
1286 | /**
|
1287 | * An array of `ngContent[selector]` values that were found in the template.
|
1288 | */
|
1289 | ngContentSelectors?: string[];
|
1290 | /**
|
1291 | * A list of optional features to apply.
|
1292 | *
|
1293 | * See: {@link NgOnChangesFeature}, {@link ProvidersFeature}
|
1294 | */
|
1295 | features?: ComponentDefFeature[];
|
1296 | /**
|
1297 | * Defines template and style encapsulation options available for Component's {@link Component}.
|
1298 | */
|
1299 | encapsulation?: ViewEncapsulation;
|
1300 | /**
|
1301 | * Defines arbitrary developer-defined data to be stored on a renderer instance.
|
1302 | * This is useful for renderers that delegate to other renderers.
|
1303 | *
|
1304 | * see: animation
|
1305 | */
|
1306 | data?: {
|
1307 | [kind: string]: any;
|
1308 | };
|
1309 | /**
|
1310 | * A set of styles that the component needs to be present for component to render correctly.
|
1311 | */
|
1312 | styles?: string[];
|
1313 | /**
|
1314 | * The strategy that the default change detector uses to detect changes.
|
1315 | * When set, takes effect the next time change detection is triggered.
|
1316 | */
|
1317 | changeDetection?: ChangeDetectionStrategy;
|
1318 | /**
|
1319 | * Registry of directives, components, and pipes that may be found in this component's view.
|
1320 | *
|
1321 | * This property is either an array of types or a function that returns the array of types. This
|
1322 | * function may be necessary to support forward declarations.
|
1323 | */
|
1324 | dependencies?: TypeOrFactory<DependencyTypeList>;
|
1325 | /**
|
1326 | * The set of schemas that declare elements to be allowed in the component's template.
|
1327 | */
|
1328 | schemas?: SchemaMetadata[] | null;
|
1329 | }
|
1330 |
|
1331 | /**
|
1332 | * Base class for a factory that can create a component dynamically.
|
1333 | * Instantiate a factory for a given type of component with `resolveComponentFactory()`.
|
1334 | * Use the resulting `ComponentFactory.create()` method to create a component of that type.
|
1335 | *
|
1336 | * @see [Dynamic Components](guide/dynamic-component-loader)
|
1337 | *
|
1338 | * @publicApi
|
1339 | *
|
1340 | * @deprecated Angular no longer requires Component factories. Please use other APIs where
|
1341 | * Component class can be used directly.
|
1342 | */
|
1343 | declare abstract class ComponentFactory<C> {
|
1344 | /**
|
1345 | * The component's HTML selector.
|
1346 | */
|
1347 | abstract get selector(): string;
|
1348 | /**
|
1349 | * The type of component the factory will create.
|
1350 | */
|
1351 | abstract get componentType(): Type<any>;
|
1352 | /**
|
1353 | * Selector for all <ng-content> elements in the component.
|
1354 | */
|
1355 | abstract get ngContentSelectors(): string[];
|
1356 | /**
|
1357 | * The inputs of the component.
|
1358 | */
|
1359 | abstract get inputs(): {
|
1360 | propName: string;
|
1361 | templateName: string;
|
1362 | }[];
|
1363 | /**
|
1364 | * The outputs of the component.
|
1365 | */
|
1366 | abstract get outputs(): {
|
1367 | propName: string;
|
1368 | templateName: string;
|
1369 | }[];
|
1370 | /**
|
1371 | * Creates a new component.
|
1372 | */
|
1373 | abstract create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any, environmentInjector?: EnvironmentInjector | NgModuleRef<any>): ComponentRef<C>;
|
1374 | }
|
1375 | export { ComponentFactory }
|
1376 | export { ComponentFactory as ɵComponentFactory }
|
1377 |
|
1378 | /**
|
1379 | * A simple registry that maps `Components` to generated `ComponentFactory` classes
|
1380 | * that can be used to create instances of components.
|
1381 | * Use to obtain the factory for a given component type,
|
1382 | * then use the factory's `create()` method to create a component of that type.
|
1383 | *
|
1384 | * Note: since v13, dynamic component creation via
|
1385 | * [`ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent)
|
1386 | * does **not** require resolving component factory: component class can be used directly.
|
1387 | *
|
1388 | * @publicApi
|
1389 | *
|
1390 | * @deprecated Angular no longer requires Component factories. Please use other APIs where
|
1391 | * Component class can be used directly.
|
1392 | */
|
1393 | export declare abstract class ComponentFactoryResolver {
|
1394 | static NULL: ComponentFactoryResolver;
|
1395 | /**
|
1396 | * Retrieves the factory object that creates a component of the given type.
|
1397 | * @param component The component type.
|
1398 | */
|
1399 | abstract resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>;
|
1400 | }
|
1401 |
|
1402 | declare class ComponentFactoryResolver_2 extends ComponentFactoryResolver {
|
1403 | private ngModule?;
|
1404 | /**
|
1405 | * @param ngModule The NgModuleRef to which all resolved factories are bound.
|
1406 | */
|
1407 | constructor(ngModule?: NgModuleRef<any> | undefined);
|
1408 | resolveComponentFactory<T>(component: Type<T>): ComponentFactory<T>;
|
1409 | }
|
1410 |
|
1411 | /**
|
1412 | * An interface that describes the subset of component metadata
|
1413 | * that can be retrieved using the `reflectComponentType` function.
|
1414 | *
|
1415 | * @publicApi
|
1416 | */
|
1417 | export declare interface ComponentMirror<C> {
|
1418 | /**
|
1419 | * The component's HTML selector.
|
1420 | */
|
1421 | get selector(): string;
|
1422 | /**
|
1423 | * The type of component the factory will create.
|
1424 | */
|
1425 | get type(): Type<C>;
|
1426 | /**
|
1427 | * The inputs of the component.
|
1428 | */
|
1429 | get inputs(): ReadonlyArray<{
|
1430 | readonly propName: string;
|
1431 | readonly templateName: string;
|
1432 | }>;
|
1433 | /**
|
1434 | * The outputs of the component.
|
1435 | */
|
1436 | get outputs(): ReadonlyArray<{
|
1437 | readonly propName: string;
|
1438 | readonly templateName: string;
|
1439 | }>;
|
1440 | /**
|
1441 | * Selector for all <ng-content> elements in the component.
|
1442 | */
|
1443 | get ngContentSelectors(): ReadonlyArray<string>;
|
1444 | /**
|
1445 | * Whether this component is marked as standalone.
|
1446 | * Note: an extra flag, not present in `ComponentFactory`.
|
1447 | */
|
1448 | get isStandalone(): boolean;
|
1449 | }
|
1450 |
|
1451 | /**
|
1452 | * Represents a component created by a `ComponentFactory`.
|
1453 | * Provides access to the component instance and related objects,
|
1454 | * and provides the means of destroying the instance.
|
1455 | *
|
1456 | * @publicApi
|
1457 | */
|
1458 | export declare abstract class ComponentRef<C> {
|
1459 | /**
|
1460 | * Updates a specified input name to a new value. Using this method will properly mark for check
|
1461 | * component using the `OnPush` change detection strategy. It will also assure that the
|
1462 | * `OnChanges` lifecycle hook runs when a dynamically created component is change-detected.
|
1463 | *
|
1464 | * @param name The name of an input.
|
1465 | * @param value The new value of an input.
|
1466 | */
|
1467 | abstract setInput(name: string, value: unknown): void;
|
1468 | /**
|
1469 | * The host or anchor [element](guide/glossary#element) for this component instance.
|
1470 | */
|
1471 | abstract get location(): ElementRef;
|
1472 | /**
|
1473 | * The [dependency injector](guide/glossary#injector) for this component instance.
|
1474 | */
|
1475 | abstract get injector(): Injector;
|
1476 | /**
|
1477 | * This component instance.
|
1478 | */
|
1479 | abstract get instance(): C;
|
1480 | /**
|
1481 | * The [host view](guide/glossary#view-hierarchy) defined by the template
|
1482 | * for this component instance.
|
1483 | */
|
1484 | abstract get hostView(): ViewRef;
|
1485 | /**
|
1486 | * The change detector for this component instance.
|
1487 | */
|
1488 | abstract get changeDetectorRef(): ChangeDetectorRef;
|
1489 | /**
|
1490 | * The type of this component (as created by a `ComponentFactory` class).
|
1491 | */
|
1492 | abstract get componentType(): Type<any>;
|
1493 | /**
|
1494 | * Destroys the component instance and all of the data structures associated with it.
|
1495 | */
|
1496 | abstract destroy(): void;
|
1497 | /**
|
1498 | * A lifecycle hook that provides additional developer-defined cleanup
|
1499 | * functionality for the component.
|
1500 | * @param callback A handler function that cleans up developer-defined data
|
1501 | * associated with this component. Called when the `destroy()` method is invoked.
|
1502 | */
|
1503 | abstract onDestroy(callback: Function): void;
|
1504 | }
|
1505 |
|
1506 | /**
|
1507 | * Definition of what a template rendering function should look like for a component.
|
1508 | */
|
1509 | declare type ComponentTemplate<T> = {
|
1510 | <U extends T>(rf: ɵRenderFlags, ctx: T | U): void;
|
1511 | };
|
1512 |
|
1513 | /**
|
1514 | * Create a computed `Signal` which derives a reactive value from an expression.
|
1515 | *
|
1516 | * @developerPreview
|
1517 | */
|
1518 | export declare function computed<T>(computation: () => T, options?: CreateComputedOptions<T>): Signal<T>;
|
1519 |
|
1520 | /**
|
1521 | * Configures the `Injector` to return an instance of a token.
|
1522 | *
|
1523 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
1524 | *
|
1525 | * @usageNotes
|
1526 | *
|
1527 | * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}
|
1528 | *
|
1529 | * ### Multi-value example
|
1530 | *
|
1531 | * {@example core/di/ts/provider_spec.ts region='MultiProviderAspect'}
|
1532 | *
|
1533 | * @publicApi
|
1534 | */
|
1535 | export declare interface ConstructorProvider extends ConstructorSansProvider {
|
1536 | /**
|
1537 | * An injection token. Typically an instance of `Type` or `InjectionToken`, but can be `any`.
|
1538 | */
|
1539 | provide: Type<any>;
|
1540 | /**
|
1541 | * When true, injector returns an array of instances. This is useful to allow multiple
|
1542 | * providers spread across many files to provide configuration information to a common token.
|
1543 | */
|
1544 | multi?: boolean;
|
1545 | }
|
1546 |
|
1547 | /**
|
1548 | * Configures the `Injector` to return an instance of a token.
|
1549 | *
|
1550 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
1551 | *
|
1552 | * @usageNotes
|
1553 | *
|
1554 | * ```ts
|
1555 | * @Injectable(SomeModule, {deps: []})
|
1556 | * class MyService {}
|
1557 | * ```
|
1558 | *
|
1559 | * @publicApi
|
1560 | */
|
1561 | export declare interface ConstructorSansProvider {
|
1562 | /**
|
1563 | * A list of `token`s to be resolved by the injector.
|
1564 | */
|
1565 | deps?: any[];
|
1566 | }
|
1567 |
|
1568 | declare const CONTAINERS = "c";
|
1569 |
|
1570 | /**
|
1571 | * Type of the ContentChild metadata.
|
1572 | *
|
1573 | * @publicApi
|
1574 | */
|
1575 | export declare type ContentChild = Query;
|
1576 |
|
1577 | /**
|
1578 | * ContentChild decorator and metadata.
|
1579 | *
|
1580 | *
|
1581 | * @Annotation
|
1582 | *
|
1583 | * @publicApi
|
1584 | */
|
1585 | export declare const ContentChild: ContentChildDecorator;
|
1586 |
|
1587 | /**
|
1588 | * Type of the ContentChild decorator / constructor function.
|
1589 | *
|
1590 | * @publicApi
|
1591 | */
|
1592 | export declare interface ContentChildDecorator {
|
1593 | /**
|
1594 | * @description
|
1595 | * Property decorator that configures a content query.
|
1596 | *
|
1597 | * Use to get the first element or the directive matching the selector from the content DOM.
|
1598 | * If the content DOM changes, and a new child matches the selector,
|
1599 | * the property will be updated.
|
1600 | *
|
1601 | * Content queries are set before the `ngAfterContentInit` callback is called.
|
1602 | *
|
1603 | * Does not retrieve elements or directives that are in other components' templates,
|
1604 | * since a component's template is always a black box to its ancestors.
|
1605 | *
|
1606 | * **Metadata Properties**:
|
1607 | *
|
1608 | * * **selector** - The directive type or the name used for querying.
|
1609 | * * **descendants** - If `true` (default) include all descendants of the element. If `false` then
|
1610 | * only query direct children of the element.
|
1611 | * * **read** - Used to read a different token from the queried element.
|
1612 | * * **static** - True to resolve query results before change detection runs,
|
1613 | * false to resolve after change detection. Defaults to false.
|
1614 | *
|
1615 | * The following selectors are supported.
|
1616 | * * Any class with the `@Component` or `@Directive` decorator
|
1617 | * * A template reference variable as a string (e.g. query `<my-component #cmp></my-component>`
|
1618 | * with `@ContentChild('cmp')`)
|
1619 | * * Any provider defined in the child component tree of the current component (e.g.
|
1620 | * `@ContentChild(SomeService) someService: SomeService`)
|
1621 | * * Any provider defined through a string token (e.g. `@ContentChild('someToken') someTokenVal:
|
1622 | * any`)
|
1623 | * * A `TemplateRef` (e.g. query `<ng-template></ng-template>` with `@ContentChild(TemplateRef)
|
1624 | * template;`)
|
1625 | *
|
1626 | * The following values are supported by `read`:
|
1627 | * * Any class with the `@Component` or `@Directive` decorator
|
1628 | * * Any provider defined on the injector of the component that is matched by the `selector` of
|
1629 | * this query
|
1630 | * * Any provider defined through a string token (e.g. `{provide: 'token', useValue: 'val'}`)
|
1631 | * * `TemplateRef`, `ElementRef`, and `ViewContainerRef`
|
1632 | *
|
1633 | * @usageNotes
|
1634 | *
|
1635 | * {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
|
1636 | *
|
1637 | * ### Example
|
1638 | *
|
1639 | * {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
|
1640 | *
|
1641 | * @Annotation
|
1642 | */
|
1643 | (selector: ProviderToken<unknown> | Function | string, opts?: {
|
1644 | descendants?: boolean;
|
1645 | read?: any;
|
1646 | static?: boolean;
|
1647 | }): any;
|
1648 | new (selector: ProviderToken<unknown> | Function | string, opts?: {
|
1649 | descendants?: boolean;
|
1650 | read?: any;
|
1651 | static?: boolean;
|
1652 | }): ContentChild;
|
1653 | }
|
1654 |
|
1655 |
|
1656 |
|
1657 |
|
1658 |
|
1659 |
|
1660 |
|
1661 |
|
1662 | export declare type ContentChildren = Query;
|
1663 |
|
1664 |
|
1665 |
|
1666 |
|
1667 |
|
1668 |
|
1669 |
|
1670 |
|
1671 | export declare const ContentChildren: ContentChildrenDecorator;
|
1672 |
|
1673 |
|
1674 |
|
1675 |
|
1676 |
|
1677 |
|
1678 |
|
1679 | export declare interface ContentChildrenDecorator {
|
1680 | |
1681 |
|
1682 |
|
1683 |
|
1684 |
|
1685 |
|
1686 |
|
1687 |
|
1688 |
|
1689 |
|
1690 |
|
1691 |
|
1692 |
|
1693 |
|
1694 |
|
1695 |
|
1696 |
|
1697 |
|
1698 |
|
1699 |
|
1700 |
|
1701 |
|
1702 |
|
1703 |
|
1704 |
|
1705 |
|
1706 |
|
1707 |
|
1708 |
|
1709 |
|
1710 |
|
1711 |
|
1712 |
|
1713 |
|
1714 |
|
1715 |
|
1716 |
|
1717 |
|
1718 |
|
1719 |
|
1720 |
|
1721 |
|
1722 |
|
1723 |
|
1724 |
|
1725 |
|
1726 |
|
1727 |
|
1728 |
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 |
|
1734 |
|
1735 |
|
1736 |
|
1737 |
|
1738 |
|
1739 |
|
1740 |
|
1741 | (selector: ProviderToken<unknown> | Function | string, opts?: {
|
1742 | descendants?: boolean;
|
1743 | emitDistinctChangesOnly?: boolean;
|
1744 | read?: any;
|
1745 | }): any;
|
1746 | new (selector: ProviderToken<unknown> | Function | string, opts?: {
|
1747 | descendants?: boolean;
|
1748 | emitDistinctChangesOnly?: boolean;
|
1749 | read?: any;
|
1750 | }): Query;
|
1751 | }
|
1752 |
|
1753 |
|
1754 |
|
1755 |
|
1756 | declare type ContentQueriesFunction<T> = <U extends T>(rf: ɵRenderFlags, ctx: U, directiveIndex: number) => void;
|
1757 |
|
1758 | declare const CONTEXT = 8;
|
1759 |
|
1760 |
|
1761 |
|
1762 |
|
1763 |
|
1764 |
|
1765 |
|
1766 |
|
1767 |
|
1768 |
|
1769 |
|
1770 |
|
1771 |
|
1772 |
|
1773 |
|
1774 |
|
1775 |
|
1776 |
|
1777 |
|
1778 |
|
1779 |
|
1780 |
|
1781 |
|
1782 |
|
1783 |
|
1784 |
|
1785 |
|
1786 |
|
1787 |
|
1788 |
|
1789 |
|
1790 |
|
1791 |
|
1792 |
|
1793 |
|
1794 |
|
1795 |
|
1796 |
|
1797 |
|
1798 |
|
1799 |
|
1800 |
|
1801 |
|
1802 |
|
1803 |
|
1804 |
|
1805 |
|
1806 |
|
1807 |
|
1808 |
|
1809 |
|
1810 |
|
1811 |
|
1812 |
|
1813 |
|
1814 |
|
1815 |
|
1816 |
|
1817 |
|
1818 |
|
1819 | export declare function createComponent<C>(component: Type<C>, options: {
|
1820 | environmentInjector: EnvironmentInjector;
|
1821 | hostElement?: Element;
|
1822 | elementInjector?: Injector;
|
1823 | projectableNodes?: Node[][];
|
1824 | }): ComponentRef<C>;
|
1825 |
|
1826 |
|
1827 |
|
1828 |
|
1829 |
|
1830 |
|
1831 | export declare interface CreateComputedOptions<T> {
|
1832 | |
1833 |
|
1834 |
|
1835 | equal?: ValueEqualityFn<T>;
|
1836 | }
|
1837 |
|
1838 |
|
1839 |
|
1840 |
|
1841 |
|
1842 |
|
1843 | export declare interface CreateEffectOptions {
|
1844 | |
1845 |
|
1846 |
|
1847 |
|
1848 |
|
1849 | injector?: Injector;
|
1850 | |
1851 |
|
1852 |
|
1853 |
|
1854 |
|
1855 |
|
1856 | manualCleanup?: boolean;
|
1857 | |
1858 |
|
1859 |
|
1860 |
|
1861 |
|
1862 |
|
1863 | allowSignalWrites?: boolean;
|
1864 | }
|
1865 |
|
1866 |
|
1867 |
|
1868 |
|
1869 |
|
1870 |
|
1871 |
|
1872 |
|
1873 |
|
1874 |
|
1875 |
|
1876 |
|
1877 |
|
1878 |
|
1879 | export declare function createEnvironmentInjector(providers: Array<Provider | EnvironmentProviders>, parent: EnvironmentInjector, debugName?: string | null): EnvironmentInjector;
|
1880 |
|
1881 |
|
1882 |
|
1883 |
|
1884 |
|
1885 |
|
1886 |
|
1887 |
|
1888 |
|
1889 |
|
1890 |
|
1891 | export declare function createNgModule<T>(ngModule: Type<T>, parentInjector?: Injector): NgModuleRef<T>;
|
1892 |
|
1893 |
|
1894 |
|
1895 |
|
1896 |
|
1897 |
|
1898 |
|
1899 | export declare const createNgModuleRef: typeof createNgModule;
|
1900 |
|
1901 |
|
1902 |
|
1903 |
|
1904 |
|
1905 |
|
1906 |
|
1907 | export declare function createPlatform(injector: Injector): PlatformRef;
|
1908 |
|
1909 |
|
1910 |
|
1911 |
|
1912 |
|
1913 |
|
1914 |
|
1915 |
|
1916 |
|
1917 |
|
1918 |
|
1919 |
|
1920 | export declare function createPlatformFactory(parentPlatformFactory: ((extraProviders?: StaticProvider[]) => PlatformRef) | null, name: string, providers?: StaticProvider[]): (extraProviders?: StaticProvider[]) => PlatformRef;
|
1921 |
|
1922 |
|
1923 |
|
1924 |
|
1925 |
|
1926 |
|
1927 | export declare interface CreateSignalOptions<T> {
|
1928 | |
1929 |
|
1930 |
|
1931 | equal?: ValueEqualityFn<T>;
|
1932 | }
|
1933 |
|
1934 |
|
1935 |
|
1936 |
|
1937 |
|
1938 |
|
1939 |
|
1940 |
|
1941 | export declare const CSP_NONCE: InjectionToken<string | null>;
|
1942 |
|
1943 |
|
1944 |
|
1945 |
|
1946 |
|
1947 |
|
1948 |
|
1949 |
|
1950 |
|
1951 |
|
1952 |
|
1953 |
|
1954 |
|
1955 |
|
1956 |
|
1957 |
|
1958 |
|
1959 |
|
1960 |
|
1961 |
|
1962 |
|
1963 |
|
1964 |
|
1965 |
|
1966 |
|
1967 |
|
1968 |
|
1969 |
|
1970 |
|
1971 |
|
1972 |
|
1973 | declare type CssSelector = (string | SelectorFlags)[];
|
1974 |
|
1975 |
|
1976 |
|
1977 |
|
1978 |
|
1979 |
|
1980 |
|
1981 | declare type CtorDependency = {
|
1982 | |
1983 |
|
1984 |
|
1985 |
|
1986 |
|
1987 | attribute?: string | unknown;
|
1988 | |
1989 |
|
1990 |
|
1991 | optional?: true;
|
1992 | |
1993 |
|
1994 |
|
1995 | host?: true;
|
1996 | |
1997 |
|
1998 |
|
1999 | self?: true;
|
2000 | |
2001 |
|
2002 |
|
2003 | skipSelf?: true;
|
2004 | } | null;
|
2005 |
|
2006 |
|
2007 |
|
2008 |
|
2009 |
|
2010 |
|
2011 |
|
2012 |
|
2013 |
|
2014 | export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
|
2015 |
|
2016 |
|
2017 |
|
2018 |
|
2019 |
|
2020 |
|
2021 |
|
2022 |
|
2023 | export declare class DebugElement extends DebugNode {
|
2024 | constructor(nativeNode: Element);
|
2025 | /**
|
2026 | * The underlying DOM element at the root of the component.
|
2027 | */
|
2028 | get nativeElement(): any;
|
2029 | /**
|
2030 | * The element tag name, if it is an element.
|
2031 | */
|
2032 | get name(): string;
|
2033 | /**
|
2034 | * Gets a map of property names to property values for an element.
|
2035 | *
|
2036 | * This map includes:
|
2037 | * - Regular property bindings (e.g. `[id]="id"`)
|
2038 | * - Host property bindings (e.g. `host: { '[id]': "id" }`)
|
2039 | * - Interpolated property bindings (e.g. `id="{{ value }}")
|
2040 | *
|
2041 | * It does not include:
|
2042 | * - input property bindings (e.g. `[myCustomInput]="value"`)
|
2043 | * - attribute bindings (e.g. `[attr.role]="menu"`)
|
2044 | */
|
2045 | get properties(): {
|
2046 | [key: string]: any;
|
2047 | };
|
2048 | |
2049 |
|
2050 |
|
2051 | get attributes(): {
|
2052 | [key: string]: string | null;
|
2053 | };
|
2054 | |
2055 |
|
2056 |
|
2057 |
|
2058 |
|
2059 |
|
2060 |
|
2061 | get styles(): {
|
2062 | [key: string]: string | null;
|
2063 | };
|
2064 | |
2065 |
|
2066 |
|
2067 |
|
2068 |
|
2069 |
|
2070 |
|
2071 |
|
2072 |
|
2073 |
|
2074 | get classes(): {
|
2075 | [key: string]: boolean;
|
2076 | };
|
2077 | |
2078 |
|
2079 |
|
2080 |
|
2081 |
|
2082 | get childNodes(): DebugNode[];
|
2083 | |
2084 |
|
2085 |
|
2086 | get children(): DebugElement[];
|
2087 | |
2088 |
|
2089 |
|
2090 | query(predicate: Predicate<DebugElement>): DebugElement;
|
2091 | |
2092 |
|
2093 |
|
2094 | queryAll(predicate: Predicate<DebugElement>): DebugElement[];
|
2095 | |
2096 |
|
2097 |
|
2098 | queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[];
|
2099 | |
2100 |
|
2101 |
|
2102 |
|
2103 |
|
2104 |
|
2105 |
|
2106 |
|
2107 |
|
2108 |
|
2109 |
|
2110 |
|
2111 | triggerEventHandler(eventName: string, eventObj?: any): void;
|
2112 | }
|
2113 |
|
2114 |
|
2115 |
|
2116 |
|
2117 | export declare class DebugEventListener {
|
2118 | name: string;
|
2119 | callback: Function;
|
2120 | constructor(name: string, callback: Function);
|
2121 | }
|
2122 |
|
2123 | /**
|
2124 | * @publicApi
|
2125 | */
|
2126 | export declare class DebugNode {
|
2127 | |
2128 |
|
2129 |
|
2130 | readonly nativeNode: any;
|
2131 | constructor(nativeNode: Node);
|
2132 | /**
|
2133 | * The `DebugElement` parent. Will be `null` if this is the root element.
|
2134 | */
|
2135 | get parent(): DebugElement | null;
|
2136 | /**
|
2137 | * The host dependency injector. For example, the root element's component instance injector.
|
2138 | */
|
2139 | get injector(): Injector;
|
2140 | /**
|
2141 | * The element's own component instance, if it has one.
|
2142 | */
|
2143 | get componentInstance(): any;
|
2144 | /**
|
2145 | * An object that provides parent context for this element. Often an ancestor component instance
|
2146 | * that governs this element.
|
2147 | *
|
2148 | * When an element is repeated within *ngFor, the context is an `NgForOf` whose `$implicit`
|
2149 | * property is the value of the row instance value. For example, the `hero` in `*ngFor="let hero
|
2150 | * of heroes"`.
|
2151 | */
|
2152 | get context(): any;
|
2153 | /**
|
2154 | * The callbacks attached to the component's @Output properties and/or the element's event
|
2155 | * properties.
|
2156 | */
|
2157 | get listeners(): DebugEventListener[];
|
2158 | /**
|
2159 | * Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local
|
2160 | * variable name.
|
2161 | */
|
2162 | get references(): {
|
2163 | [key: string]: any;
|
2164 | };
|
2165 | |
2166 |
|
2167 |
|
2168 |
|
2169 | get providerTokens(): any[];
|
2170 | }
|
2171 |
|
2172 | declare const DECLARATION_COMPONENT_VIEW = 15;
|
2173 |
|
2174 | declare const DECLARATION_LCONTAINER = 16;
|
2175 |
|
2176 | declare const DECLARATION_VIEW = 14;
|
2177 |
|
2178 |
|
2179 |
|
2180 |
|
2181 |
|
2182 |
|
2183 |
|
2184 |
|
2185 |
|
2186 |
|
2187 |
|
2188 |
|
2189 |
|
2190 |
|
2191 |
|
2192 |
|
2193 |
|
2194 |
|
2195 |
|
2196 |
|
2197 |
|
2198 |
|
2199 |
|
2200 |
|
2201 |
|
2202 |
|
2203 |
|
2204 |
|
2205 |
|
2206 |
|
2207 |
|
2208 |
|
2209 |
|
2210 |
|
2211 |
|
2212 |
|
2213 |
|
2214 |
|
2215 |
|
2216 | export declare const DEFAULT_CURRENCY_CODE: InjectionToken<string>;
|
2217 |
|
2218 |
|
2219 |
|
2220 |
|
2221 |
|
2222 | export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, IterableChanges<V> {
|
2223 | readonly length: number;
|
2224 | readonly collection: V[] | Iterable<V> | null;
|
2225 | private _linkedRecords;
|
2226 | private _unlinkedRecords;
|
2227 | private _previousItHead;
|
2228 | private _itHead;
|
2229 | private _itTail;
|
2230 | private _additionsHead;
|
2231 | private _additionsTail;
|
2232 | private _movesHead;
|
2233 | private _movesTail;
|
2234 | private _removalsHead;
|
2235 | private _removalsTail;
|
2236 | private _identityChangesHead;
|
2237 | private _identityChangesTail;
|
2238 | private _trackByFn;
|
2239 | constructor(trackByFn?: TrackByFunction<V>);
|
2240 | forEachItem(fn: (record: IterableChangeRecord_<V>) => void): void;
|
2241 | forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void): void;
|
2242 | forEachPreviousItem(fn: (record: IterableChangeRecord_<V>) => void): void;
|
2243 | forEachAddedItem(fn: (record: IterableChangeRecord_<V>) => void): void;
|
2244 | forEachMovedItem(fn: (record: IterableChangeRecord_<V>) => void): void;
|
2245 | forEachRemovedItem(fn: (record: IterableChangeRecord_<V>) => void): void;
|
2246 | forEachIdentityChange(fn: (record: IterableChangeRecord_<V>) => void): void;
|
2247 | diff(collection: NgIterable<V> | null | undefined): DefaultIterableDiffer<V> | null;
|
2248 | onDestroy(): void;
|
2249 | check(collection: NgIterable<V>): boolean;
|
2250 | get isDirty(): boolean;
|
2251 | private _addToRemovals;
|
2252 | }
|
2253 |
|
2254 | /**
|
2255 | * @deprecated in v8, delete after v10. This API should be used only by generated code, and that
|
2256 | * code should now use ɵɵdefineInjectable instead.
|
2257 | * @publicApi
|
2258 | */
|
2259 | export declare const defineInjectable: typeof ɵɵdefineInjectable;
|
2260 |
|
2261 | declare const DEHYDRATED_VIEWS = 10;
|
2262 |
|
2263 | /**
|
2264 | * An object that contains hydration-related information serialized
|
2265 | * on the server, as well as the necessary references to segments of
|
2266 | * the DOM, to facilitate the hydration process for a given view
|
2267 | * inside a view container (either an embedded view or a view created
|
2268 | * for a component).
|
2269 | */
|
2270 | declare interface DehydratedContainerView extends DehydratedView {
|
2271 | data: Readonly<SerializedContainerView>;
|
2272 | }
|
2273 |
|
2274 |
|
2275 |
|
2276 |
|
2277 |
|
2278 |
|
2279 |
|
2280 | declare interface DehydratedView {
|
2281 | |
2282 |
|
2283 |
|
2284 | data: Readonly<SerializedView>;
|
2285 | |
2286 |
|
2287 |
|
2288 |
|
2289 | firstChild: RNode | null;
|
2290 | |
2291 |
|
2292 |
|
2293 |
|
2294 | segmentHeads?: {
|
2295 | [index: number]: RNode | null;
|
2296 | };
|
2297 | |
2298 |
|
2299 |
|
2300 |
|
2301 |
|
2302 |
|
2303 |
|
2304 |
|
2305 |
|
2306 |
|
2307 |
|
2308 | disconnectedNodes?: Set<number> | null;
|
2309 | }
|
2310 |
|
2311 | declare type DependencyTypeList = (ɵDirectiveType<any> | ɵComponentType<any> | PipeType<any> | Type<any>)[];
|
2312 |
|
2313 | declare const DESCENDANT_VIEWS_TO_REFRESH = 5;
|
2314 |
|
2315 |
|
2316 |
|
2317 |
|
2318 |
|
2319 |
|
2320 |
|
2321 |
|
2322 |
|
2323 |
|
2324 |
|
2325 |
|
2326 |
|
2327 |
|
2328 |
|
2329 |
|
2330 |
|
2331 |
|
2332 |
|
2333 | declare type DestroyHookData = (HookEntry | HookData)[];
|
2334 |
|
2335 |
|
2336 |
|
2337 |
|
2338 |
|
2339 |
|
2340 |
|
2341 | export declare function destroyPlatform(): void;
|
2342 |
|
2343 |
|
2344 |
|
2345 |
|
2346 |
|
2347 |
|
2348 |
|
2349 |
|
2350 |
|
2351 |
|
2352 | export declare abstract class DestroyRef {
|
2353 | |
2354 |
|
2355 |
|
2356 |
|
2357 |
|
2358 |
|
2359 |
|
2360 |
|
2361 |
|
2362 |
|
2363 |
|
2364 |
|
2365 |
|
2366 |
|
2367 |
|
2368 |
|
2369 | abstract onDestroy(callback: () => void): () => void;
|
2370 | }
|
2371 |
|
2372 |
|
2373 |
|
2374 |
|
2375 |
|
2376 |
|
2377 |
|
2378 | export declare interface Directive {
|
2379 | |
2380 |
|
2381 |
|
2382 |
|
2383 |
|
2384 |
|
2385 |
|
2386 |
|
2387 |
|
2388 |
|
2389 |
|
2390 |
|
2391 |
|
2392 |
|
2393 |
|
2394 |
|
2395 |
|
2396 |
|
2397 |
|
2398 |
|
2399 |
|
2400 |
|
2401 |
|
2402 |
|
2403 |
|
2404 |
|
2405 |
|
2406 | selector?: string;
|
2407 | |
2408 |
|
2409 |
|
2410 |
|
2411 |
|
2412 |
|
2413 |
|
2414 |
|
2415 |
|
2416 |
|
2417 |
|
2418 |
|
2419 |
|
2420 |
|
2421 |
|
2422 |
|
2423 |
|
2424 |
|
2425 |
|
2426 |
|
2427 |
|
2428 |
|
2429 |
|
2430 |
|
2431 |
|
2432 |
|
2433 |
|
2434 |
|
2435 |
|
2436 |
|
2437 |
|
2438 |
|
2439 |
|
2440 |
|
2441 |
|
2442 |
|
2443 |
|
2444 |
|
2445 | inputs?: ({
|
2446 | name: string;
|
2447 | alias?: string;
|
2448 | required?: boolean;
|
2449 | } | string)[];
|
2450 | |
2451 |
|
2452 |
|
2453 |
|
2454 |
|
2455 |
|
2456 |
|
2457 |
|
2458 |
|
2459 |
|
2460 |
|
2461 |
|
2462 |
|
2463 |
|
2464 |
|
2465 |
|
2466 |
|
2467 |
|
2468 |
|
2469 |
|
2470 |
|
2471 |
|
2472 |
|
2473 |
|
2474 |
|
2475 |
|
2476 |
|
2477 |
|
2478 |
|
2479 |
|
2480 |
|
2481 |
|
2482 |
|
2483 |
|
2484 |
|
2485 |
|
2486 |
|
2487 |
|
2488 |
|
2489 |
|
2490 | outputs?: string[];
|
2491 | |
2492 |
|
2493 |
|
2494 |
|
2495 |
|
2496 | providers?: Provider[];
|
2497 | |
2498 |
|
2499 |
|
2500 |
|
2501 |
|
2502 |
|
2503 |
|
2504 |
|
2505 |
|
2506 |
|
2507 |
|
2508 |
|
2509 |
|
2510 |
|
2511 |
|
2512 |
|
2513 |
|
2514 |
|
2515 |
|
2516 |
|
2517 |
|
2518 |
|
2519 | exportAs?: string;
|
2520 | |
2521 |
|
2522 |
|
2523 |
|
2524 |
|
2525 |
|
2526 |
|
2527 |
|
2528 |
|
2529 |
|
2530 |
|
2531 |
|
2532 |
|
2533 |
|
2534 |
|
2535 |
|
2536 |
|
2537 |
|
2538 |
|
2539 |
|
2540 |
|
2541 |
|
2542 |
|
2543 |
|
2544 |
|
2545 |
|
2546 |
|
2547 |
|
2548 |
|
2549 |
|
2550 |
|
2551 |
|
2552 |
|
2553 |
|
2554 |
|
2555 |
|
2556 | queries?: {
|
2557 | [key: string]: any;
|
2558 | };
|
2559 | |
2560 |
|
2561 |
|
2562 |
|
2563 |
|
2564 |
|
2565 |
|
2566 |
|
2567 |
|
2568 |
|
2569 |
|
2570 |
|
2571 |
|
2572 |
|
2573 |
|
2574 |
|
2575 |
|
2576 |
|
2577 |
|
2578 |
|
2579 |
|
2580 |
|
2581 | host?: {
|
2582 | [key: string]: string;
|
2583 | };
|
2584 | |
2585 |
|
2586 |
|
2587 |
|
2588 |
|
2589 |
|
2590 | jit?: true;
|
2591 | |
2592 |
|
2593 |
|
2594 |
|
2595 |
|
2596 |
|
2597 |
|
2598 |
|
2599 | standalone?: boolean;
|
2600 | |
2601 |
|
2602 |
|
2603 |
|
2604 |
|
2605 |
|
2606 |
|
2607 |
|
2608 |
|
2609 |
|
2610 | hostDirectives?: (Type<unknown> | {
|
2611 | directive: Type<unknown>;
|
2612 | inputs?: string[];
|
2613 | outputs?: string[];
|
2614 | })[];
|
2615 | }
|
2616 |
|
2617 |
|
2618 |
|
2619 |
|
2620 |
|
2621 |
|
2622 | export declare const Directive: DirectiveDecorator;
|
2623 |
|
2624 |
|
2625 |
|
2626 |
|
2627 |
|
2628 | export declare interface DirectiveDecorator {
|
2629 | |
2630 |
|
2631 |
|
2632 |
|
2633 |
|
2634 |
|
2635 |
|
2636 |
|
2637 |
|
2638 |
|
2639 |
|
2640 |
|
2641 |
|
2642 |
|
2643 |
|
2644 |
|
2645 |
|
2646 |
|
2647 |
|
2648 |
|
2649 |
|
2650 |
|
2651 |
|
2652 |
|
2653 |
|
2654 |
|
2655 |
|
2656 |
|
2657 |
|
2658 |
|
2659 |
|
2660 |
|
2661 |
|
2662 |
|
2663 |
|
2664 |
|
2665 |
|
2666 |
|
2667 |
|
2668 |
|
2669 |
|
2670 |
|
2671 |
|
2672 |
|
2673 |
|
2674 |
|
2675 |
|
2676 |
|
2677 |
|
2678 |
|
2679 |
|
2680 |
|
2681 |
|
2682 |
|
2683 |
|
2684 |
|
2685 |
|
2686 |
|
2687 |
|
2688 |
|
2689 |
|
2690 |
|
2691 |
|
2692 |
|
2693 |
|
2694 |
|
2695 |
|
2696 |
|
2697 |
|
2698 |
|
2699 |
|
2700 |
|
2701 |
|
2702 |
|
2703 |
|
2704 |
|
2705 |
|
2706 | (obj?: Directive): TypeDecorator;
|
2707 | |
2708 |
|
2709 |
|
2710 | new (obj?: Directive): Directive;
|
2711 | }
|
2712 |
|
2713 | declare interface DirectiveDefFeature {
|
2714 | <T>(directiveDef: ɵDirectiveDef<T>): void;
|
2715 | |
2716 |
|
2717 |
|
2718 |
|
2719 |
|
2720 |
|
2721 |
|
2722 |
|
2723 | ngInherit?: true;
|
2724 | }
|
2725 |
|
2726 | declare interface DirectiveDefinition<T> {
|
2727 | |
2728 |
|
2729 |
|
2730 | type: Type<T>;
|
2731 |
|
2732 | selectors?: ɵCssSelectorList;
|
2733 | |
2734 |
|
2735 |
|
2736 |
|
2737 |
|
2738 |
|
2739 |
|
2740 |
|
2741 |
|
2742 |
|
2743 |
|
2744 |
|
2745 |
|
2746 |
|
2747 |
|
2748 |
|
2749 |
|
2750 |
|
2751 |
|
2752 |
|
2753 |
|
2754 |
|
2755 |
|
2756 |
|
2757 |
|
2758 |
|
2759 |
|
2760 |
|
2761 |
|
2762 |
|
2763 |
|
2764 |
|
2765 |
|
2766 |
|
2767 |
|
2768 |
|
2769 |
|
2770 |
|
2771 |
|
2772 |
|
2773 |
|
2774 |
|
2775 |
|
2776 | inputs?: {
|
2777 | [P in keyof T]?: string | [string, string];
|
2778 | };
|
2779 | |
2780 |
|
2781 |
|
2782 |
|
2783 |
|
2784 |
|
2785 |
|
2786 |
|
2787 |
|
2788 |
|
2789 | outputs?: {
|
2790 | [P in keyof T]?: string;
|
2791 | };
|
2792 | |
2793 |
|
2794 |
|
2795 |
|
2796 |
|
2797 | features?: DirectiveDefFeature[];
|
2798 | |
2799 |
|
2800 |
|
2801 | hostBindings?: HostBindingsFunction<T>;
|
2802 | |
2803 |
|
2804 |
|
2805 |
|
2806 |
|
2807 |
|
2808 | hostVars?: number;
|
2809 | |
2810 |
|
2811 |
|
2812 |
|
2813 |
|
2814 |
|
2815 |
|
2816 |
|
2817 |
|
2818 |
|
2819 |
|
2820 |
|
2821 |
|
2822 |
|
2823 |
|
2824 |
|
2825 |
|
2826 |
|
2827 |
|
2828 |
|
2829 |
|
2830 |
|
2831 |
|
2832 |
|
2833 |
|
2834 |
|
2835 |
|
2836 |
|
2837 |
|
2838 |
|
2839 | hostAttrs?: TAttributes;
|
2840 | |
2841 |
|
2842 |
|
2843 | contentQueries?: ContentQueriesFunction<T>;
|
2844 | |
2845 |
|
2846 |
|
2847 |
|
2848 | viewQuery?: ViewQueriesFunction<T> | null;
|
2849 | |
2850 |
|
2851 |
|
2852 |
|
2853 |
|
2854 | exportAs?: string[];
|
2855 | |
2856 |
|
2857 |
|
2858 | standalone?: boolean;
|
2859 | }
|
2860 |
|
2861 | declare type DirectiveDefList = (ɵDirectiveDef<any> | ɵComponentDef<any>)[];
|
2862 |
|
2863 |
|
2864 |
|
2865 |
|
2866 |
|
2867 |
|
2868 | declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDefList;
|
2869 |
|
2870 | declare const DISCONNECTED_NODES = "d";
|
2871 |
|
2872 | /**
|
2873 | * @description
|
2874 | * Hook for manual bootstrapping of the application instead of using `bootstrap` array in @NgModule
|
2875 | * annotation. This hook is invoked only when the `bootstrap` array is empty or not provided.
|
2876 | *
|
2877 | * Reference to the current application is provided as a parameter.
|
2878 | *
|
2879 | * See ["Bootstrapping"](guide/bootstrapping).
|
2880 | *
|
2881 | * @usageNotes
|
2882 | * The example below uses `ApplicationRef.bootstrap()` to render the
|
2883 | * `AppComponent` on the page.
|
2884 | *
|
2885 | * ```typescript
|
2886 | * class AppModule implements DoBootstrap {
|
2887 | * ngDoBootstrap(appRef: ApplicationRef) {
|
2888 | * appRef.bootstrap(AppComponent); // Or some other component
|
2889 | * }
|
2890 | * }
|
2891 | * ```
|
2892 | *
|
2893 | * @publicApi
|
2894 | */
|
2895 | export declare interface DoBootstrap {
|
2896 | ngDoBootstrap(appRef: ApplicationRef): void;
|
2897 | }
|
2898 |
|
2899 | /**
|
2900 | * A lifecycle hook that invokes a custom change-detection function for a directive,
|
2901 | * in addition to the check performed by the default change-detector.
|
2902 | *
|
2903 | * The default change-detection algorithm looks for differences by comparing
|
2904 | * bound-property values by reference across change detection runs. You can use this
|
2905 | * hook to check for and respond to changes by some other means.
|
2906 | *
|
2907 | * When the default change detector detects changes, it invokes `ngOnChanges()` if supplied,
|
2908 | * regardless of whether you perform additional change detection.
|
2909 | * Typically, you should not use both `DoCheck` and `OnChanges` to respond to
|
2910 | * changes on the same input.
|
2911 | *
|
2912 | * @see `OnChanges`
|
2913 | * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
2914 | *
|
2915 | * @usageNotes
|
2916 | * The following snippet shows how a component can implement this interface
|
2917 | * to invoke it own change-detection cycle.
|
2918 | *
|
2919 | * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='DoCheck'}
|
2920 | *
|
2921 | * For a more complete example and discussion, see
|
2922 | * [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection).
|
2923 | *
|
2924 | * @publicApi
|
2925 | */
|
2926 | export declare interface DoCheck {
|
2927 | /**
|
2928 | * A callback method that performs change-detection, invoked
|
2929 | * after the default change-detector runs.
|
2930 | * See `KeyValueDiffers` and `IterableDiffers` for implementing
|
2931 | * custom change checking for collections.
|
2932 | *
|
2933 | */
|
2934 | ngDoCheck(): void;
|
2935 | }
|
2936 |
|
2937 | /**
|
2938 | * Create a global `Effect` for the given reactive function.
|
2939 | *
|
2940 | * @developerPreview
|
2941 | */
|
2942 | export declare function effect(effectFn: (onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions): EffectRef;
|
2943 |
|
2944 | /**
|
2945 | * An effect can, optionally, register a cleanup function. If registered, the cleanup is executed
|
2946 | * before the next effect run. The cleanup function makes it possible to "cancel" any work that the
|
2947 | * previous effect run might have started.
|
2948 | *
|
2949 | * @developerPreview
|
2950 | */
|
2951 | export declare type EffectCleanupFn = () => void;
|
2952 |
|
2953 |
|
2954 |
|
2955 |
|
2956 | declare type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void;
|
2957 |
|
2958 |
|
2959 |
|
2960 |
|
2961 | declare class EffectManager {
|
2962 | private all;
|
2963 | private queue;
|
2964 | create(effectFn: (onCleanup: (cleanupFn: EffectCleanupFn) => void) => void, destroyRef: DestroyRef | null, allowSignalWrites: boolean): EffectRef;
|
2965 | flush(): void;
|
2966 | get isQueueEmpty(): boolean;
|
2967 |
|
2968 | static ɵprov: unknown;
|
2969 | }
|
2970 |
|
2971 |
|
2972 |
|
2973 |
|
2974 |
|
2975 |
|
2976 | export declare interface EffectRef {
|
2977 | |
2978 |
|
2979 |
|
2980 | destroy(): void;
|
2981 | }
|
2982 |
|
2983 |
|
2984 |
|
2985 |
|
2986 |
|
2987 | declare const ELEMENT_CONTAINERS = "e";
|
2988 |
|
2989 |
|
2990 |
|
2991 |
|
2992 |
|
2993 |
|
2994 | declare const ELEMENT_MARKER: ELEMENT_MARKER;
|
2995 |
|
2996 | declare interface ELEMENT_MARKER {
|
2997 | marker: 'element';
|
2998 | }
|
2999 |
|
3000 |
|
3001 |
|
3002 |
|
3003 |
|
3004 |
|
3005 |
|
3006 |
|
3007 |
|
3008 |
|
3009 |
|
3010 |
|
3011 |
|
3012 | export declare class ElementRef<T = any> {
|
3013 | |
3014 |
|
3015 |
|
3016 |
|
3017 |
|
3018 |
|
3019 |
|
3020 |
|
3021 |
|
3022 |
|
3023 | nativeElement: T;
|
3024 | constructor(nativeElement: T);
|
3025 | }
|
3026 |
|
3027 | declare const EMBEDDED_VIEW_INJECTOR = 20;
|
3028 |
|
3029 | /**
|
3030 | * Represents an Angular [view](guide/glossary#view) in a view container.
|
3031 | * An [embedded view](guide/glossary#view-hierarchy) can be referenced from a component
|
3032 | * other than the hosting component whose template defines it, or it can be defined
|
3033 | * independently by a `TemplateRef`.
|
3034 | *
|
3035 | * Properties of elements in a view can change, but the structure (number and order) of elements in
|
3036 | * a view cannot. Change the structure of elements by inserting, moving, or
|
3037 | * removing nested views in a view container.
|
3038 | *
|
3039 | * @see `ViewContainerRef`
|
3040 | *
|
3041 | * @usageNotes
|
3042 | *
|
3043 | * The following template breaks down into two separate `TemplateRef` instances,
|
3044 | * an outer one and an inner one.
|
3045 | *
|
3046 | * ```
|
3047 | * Count: {{items.length}}
|
3048 | * <ul>
|
3049 | * <li *ngFor="let item of items">{{item}}</li>
|
3050 | * </ul>
|
3051 | * ```
|
3052 | *
|
3053 | * This is the outer `TemplateRef`:
|
3054 | *
|
3055 | * ```
|
3056 | * Count: {{items.length}}
|
3057 | * <ul>
|
3058 | * <ng-template ngFor let-item [ngForOf]="items"></ng-template>
|
3059 | * </ul>
|
3060 | * ```
|
3061 | *
|
3062 | * This is the inner `TemplateRef`:
|
3063 | *
|
3064 | * ```
|
3065 | * <li>{{item}}</li>
|
3066 | * ```
|
3067 | *
|
3068 | * The outer and inner `TemplateRef` instances are assembled into views as follows:
|
3069 | *
|
3070 | * ```
|
3071 | * <!-- ViewRef: outer-0 -->
|
3072 | * Count: 2
|
3073 | * <ul>
|
3074 | * <ng-template view-container-ref></ng-template>
|
3075 | * <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->
|
3076 | * <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->
|
3077 | * </ul>
|
3078 | * <!-- /ViewRef: outer-0 -->
|
3079 | * ```
|
3080 | * @publicApi
|
3081 | */
|
3082 | export declare abstract class EmbeddedViewRef<C> extends ViewRef {
|
3083 | /**
|
3084 | * The context for this view, inherited from the anchor element.
|
3085 | */
|
3086 | abstract context: C;
|
3087 | /**
|
3088 | * The root nodes for this embedded view.
|
3089 | */
|
3090 | abstract get rootNodes(): any[];
|
3091 | }
|
3092 |
|
3093 | /**
|
3094 | * Disable Angular's development mode, which turns off assertions and other
|
3095 | * checks within the framework.
|
3096 | *
|
3097 | * One important assertion this disables verifies that a change detection pass
|
3098 | * does not result in additional changes to any bindings (also known as
|
3099 | * unidirectional data flow).
|
3100 | *
|
3101 | * Using this method is discouraged as the Angular CLI will set production mode when using the
|
3102 | * `optimization` option.
|
3103 | * @see {@link cli/build ng build}
|
3104 | *
|
3105 | * @publicApi
|
3106 | */
|
3107 | export declare function enableProdMode(): void;
|
3108 |
|
3109 | declare const ENVIRONMENT = 10;
|
3110 |
|
3111 | /**
|
3112 | * A multi-provider token for initialization functions that will run upon construction of an
|
3113 | * environment injector.
|
3114 | *
|
3115 | * @publicApi
|
3116 | */
|
3117 | export declare const ENVIRONMENT_INITIALIZER: InjectionToken<() => void>;
|
3118 |
|
3119 | /**
|
3120 | * An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
3121 | * component tree.
|
3122 | */
|
3123 | export declare abstract class EnvironmentInjector implements Injector {
|
3124 | /**
|
3125 | * Retrieves an instance from the injector based on the provided token.
|
3126 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
3127 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
3128 | */
|
3129 | abstract get<T>(token: ProviderToken<T>, notFoundValue: undefined, options: InjectOptions & {
|
3130 | optional?: false;
|
3131 | }): T;
|
3132 | /**
|
3133 | * Retrieves an instance from the injector based on the provided token.
|
3134 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
3135 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
3136 | */
|
3137 | abstract get<T>(token: ProviderToken<T>, notFoundValue: null | undefined, options: InjectOptions): T | null;
|
3138 | /**
|
3139 | * Retrieves an instance from the injector based on the provided token.
|
3140 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
3141 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
3142 | */
|
3143 | abstract get<T>(token: ProviderToken<T>, notFoundValue?: T, options?: InjectOptions): T;
|
3144 | /**
|
3145 | * Retrieves an instance from the injector based on the provided token.
|
3146 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
3147 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
3148 | * @deprecated use object-based flags (`InjectOptions`) instead.
|
3149 | */
|
3150 | abstract get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
3151 | /**
|
3152 | * @deprecated from v4.0.0 use ProviderToken<T>
|
3153 | * @suppress {duplicate}
|
3154 | */
|
3155 | abstract get(token: any, notFoundValue?: any): any;
|
3156 | /**
|
3157 | * Runs the given function in the context of this `EnvironmentInjector`.
|
3158 | *
|
3159 | * Within the function's stack frame, `inject` can be used to inject dependencies from this
|
3160 | * injector. Note that `inject` is only usable synchronously, and cannot be used in any
|
3161 | * asynchronous callbacks or after any `await` points.
|
3162 | *
|
3163 | * @param fn the closure to be run in the context of this injector
|
3164 | * @returns the return value of the function, if any
|
3165 | * @deprecated use the standalone function `runInInjectionContext` instead
|
3166 | */
|
3167 | abstract runInContext<ReturnT>(fn: () => ReturnT): ReturnT;
|
3168 | abstract destroy(): void;
|
3169 | }
|
3170 |
|
3171 | /**
|
3172 | * Encapsulated `Provider`s that are only accepted during creation of an `EnvironmentInjector` (e.g.
|
3173 | * in an `NgModule`).
|
3174 | *
|
3175 | * Using this wrapper type prevents providers which are only designed to work in
|
3176 | * application/environment injectors from being accidentally included in
|
3177 | * `@Component.providers` and ending up in a component injector.
|
3178 | *
|
3179 | * This wrapper type prevents access to the `Provider`s inside.
|
3180 | *
|
3181 | * @see `makeEnvironmentProviders`
|
3182 | * @see `importProvidersFrom`
|
3183 | *
|
3184 | * @publicApi
|
3185 | */
|
3186 | export declare type EnvironmentProviders = {
|
3187 | ɵbrand: 'EnvironmentProviders';
|
3188 | };
|
3189 |
|
3190 |
|
3191 | /**
|
3192 | * Provides a hook for centralized exception handling.
|
3193 | *
|
3194 | * The default implementation of `ErrorHandler` prints error messages to the `console`. To
|
3195 | * intercept error handling, write a custom exception handler that replaces this default as
|
3196 | * appropriate for your app.
|
3197 | *
|
3198 | * @usageNotes
|
3199 | * ### Example
|
3200 | *
|
3201 | * ```
|
3202 | * class MyErrorHandler implements ErrorHandler {
|
3203 | * handleError(error) {
|
3204 | *
|
3205 | * }
|
3206 | * }
|
3207 | *
|
3208 | * @NgModule({
|
3209 | * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]
|
3210 | * })
|
3211 | * class MyModule {}
|
3212 | * ```
|
3213 | *
|
3214 | * @publicApi
|
3215 | */
|
3216 | export declare class ErrorHandler {
|
3217 | handleError(error: any): void;
|
3218 | }
|
3219 |
|
3220 | /**
|
3221 | * Use in components with the `@Output` directive to emit custom events
|
3222 | * synchronously or asynchronously, and register handlers for those events
|
3223 | * by subscribing to an instance.
|
3224 | *
|
3225 | * @usageNotes
|
3226 | *
|
3227 | * Extends
|
3228 | * [RxJS `Subject`](https://rxjs.dev/api/index/class/Subject)
|
3229 | * for Angular by adding the `emit()` method.
|
3230 | *
|
3231 | * In the following example, a component defines two output properties
|
3232 | * that create event emitters. When the title is clicked, the emitter
|
3233 | * emits an open or close event to toggle the current visibility state.
|
3234 | *
|
3235 | * ```html
|
3236 | * @Component({
|
3237 | * selector: 'zippy',
|
3238 | * template: `
|
3239 | * <div class="zippy">
|
3240 | * <div (click)="toggle()">Toggle</div>
|
3241 | * <div [hidden]="!visible">
|
3242 | * <ng-content></ng-content>
|
3243 | * </div>
|
3244 | * </div>`})
|
3245 | * export class Zippy {
|
3246 | * visible: boolean = true;
|
3247 | * @Output() open: EventEmitter<any> = new EventEmitter();
|
3248 | * @Output() close: EventEmitter<any> = new EventEmitter();
|
3249 | *
|
3250 | * toggle() {
|
3251 | * this.visible = !this.visible;
|
3252 | * if (this.visible) {
|
3253 | * this.open.emit(null);
|
3254 | * } else {
|
3255 | * this.close.emit(null);
|
3256 | * }
|
3257 | * }
|
3258 | * }
|
3259 | * ```
|
3260 | *
|
3261 | * Access the event object with the `$event` argument passed to the output event
|
3262 | * handler:
|
3263 | *
|
3264 | * ```html
|
3265 | * <zippy (open)="onOpen($event)" (close)="onClose($event)"></zippy>
|
3266 | * ```
|
3267 | *
|
3268 | * @see [Observables in Angular](guide/observables-in-angular)
|
3269 | * @publicApi
|
3270 | */
|
3271 | export declare interface EventEmitter<T> extends Subject<T> {
|
3272 | /**
|
3273 | * Creates an instance of this class that can
|
3274 | * deliver events synchronously or asynchronously.
|
3275 | *
|
3276 | * @param [isAsync=false] When true, deliver events asynchronously.
|
3277 | *
|
3278 | */
|
3279 | new (isAsync?: boolean): EventEmitter<T>;
|
3280 | /**
|
3281 | * Emits an event containing a given value.
|
3282 | * @param value The value to emit.
|
3283 | */
|
3284 | emit(value?: T): void;
|
3285 | /**
|
3286 | * Registers handlers for events emitted by this instance.
|
3287 | * @param next When supplied, a custom handler for emitted events.
|
3288 | * @param error When supplied, a custom handler for an error notification from this emitter.
|
3289 | * @param complete When supplied, a custom handler for a completion notification from this
|
3290 | * emitter.
|
3291 | */
|
3292 | subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Subscription;
|
3293 | /**
|
3294 | * Registers handlers for events emitted by this instance.
|
3295 | * @param observerOrNext When supplied, a custom handler for emitted events, or an observer
|
3296 | * object.
|
3297 | * @param error When supplied, a custom handler for an error notification from this emitter.
|
3298 | * @param complete When supplied, a custom handler for a completion notification from this
|
3299 | * emitter.
|
3300 | */
|
3301 | subscribe(observerOrNext?: any, error?: any, complete?: any): Subscription;
|
3302 | }
|
3303 |
|
3304 | /**
|
3305 | * @publicApi
|
3306 | */
|
3307 | export declare const EventEmitter: {
|
3308 | new (isAsync?: boolean): EventEmitter<any>;
|
3309 | new <T>(isAsync?: boolean): EventEmitter<T>;
|
3310 | readonly prototype: EventEmitter<any>;
|
3311 | };
|
3312 |
|
3313 | /**
|
3314 | * Configures the `Injector` to return a value of another `useExisting` token.
|
3315 | *
|
3316 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
3317 | *
|
3318 | * @usageNotes
|
3319 | *
|
3320 | * {@example core/di/ts/provider_spec.ts region='ExistingProvider'}
|
3321 | *
|
3322 | * ### Multi-value example
|
3323 | *
|
3324 | * {@example core/di/ts/provider_spec.ts region='MultiProviderAspect'}
|
3325 | *
|
3326 | * @publicApi
|
3327 | */
|
3328 | export declare interface ExistingProvider extends ExistingSansProvider {
|
3329 | /**
|
3330 | * An injection token. Typically an instance of `Type` or `InjectionToken`, but can be `any`.
|
3331 | */
|
3332 | provide: any;
|
3333 | /**
|
3334 | * When true, injector returns an array of instances. This is useful to allow multiple
|
3335 | * providers spread across many files to provide configuration information to a common token.
|
3336 | */
|
3337 | multi?: boolean;
|
3338 | }
|
3339 |
|
3340 | /**
|
3341 | * Configures the `Injector` to return a value of another `useExisting` token.
|
3342 | *
|
3343 | * @see `ExistingProvider`
|
3344 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
3345 | *
|
3346 | * @publicApi
|
3347 | */
|
3348 | export declare interface ExistingSansProvider {
|
3349 | /**
|
3350 | * Existing `token` to return. (Equivalent to `injector.get(useExisting)`)
|
3351 | */
|
3352 | useExisting: any;
|
3353 | }
|
3354 |
|
3355 | /**
|
3356 | * Definition of what a factory function should look like.
|
3357 | */
|
3358 | declare type FactoryFn<T> = {
|
3359 | /**
|
3360 | * Subclasses without an explicit constructor call through to the factory of their base
|
3361 | * definition, providing it with their own constructor to instantiate.
|
3362 | */
|
3363 | <U extends T>(t?: Type<U>): U;
|
3364 | /**
|
3365 | * If no constructor to instantiate is provided, an instance of type T itself is created.
|
3366 | */
|
3367 | (t?: undefined): T;
|
3368 | };
|
3369 |
|
3370 | /**
|
3371 | * Configures the `Injector` to return a value by invoking a `useFactory` function.
|
3372 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
3373 | *
|
3374 | * @usageNotes
|
3375 | *
|
3376 | * {@example core/di/ts/provider_spec.ts region='FactoryProvider'}
|
3377 | *
|
3378 | * Dependencies can also be marked as optional:
|
3379 | *
|
3380 | * {@example core/di/ts/provider_spec.ts region='FactoryProviderOptionalDeps'}
|
3381 | *
|
3382 | * ### Multi-value example
|
3383 | *
|
3384 | * {@example core/di/ts/provider_spec.ts region='MultiProviderAspect'}
|
3385 | *
|
3386 | * @publicApi
|
3387 | */
|
3388 | export declare interface FactoryProvider extends FactorySansProvider {
|
3389 | /**
|
3390 | * An injection token. (Typically an instance of `Type` or `InjectionToken`, but can be `any`).
|
3391 | */
|
3392 | provide: any;
|
3393 | /**
|
3394 | * When true, injector returns an array of instances. This is useful to allow multiple
|
3395 | * providers spread across many files to provide configuration information to a common token.
|
3396 | */
|
3397 | multi?: boolean;
|
3398 | }
|
3399 |
|
3400 | /**
|
3401 | * Configures the `Injector` to return a value by invoking a `useFactory` function.
|
3402 | *
|
3403 | * @see `FactoryProvider`
|
3404 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
3405 | *
|
3406 | * @publicApi
|
3407 | */
|
3408 | export declare interface FactorySansProvider {
|
3409 | /**
|
3410 | * A function to invoke to create a value for this `token`. The function is invoked with
|
3411 | * resolved values of `token`s in the `deps` field.
|
3412 | */
|
3413 | useFactory: Function;
|
3414 | /**
|
3415 | * A list of `token`s to be resolved by the injector. The list of values is then
|
3416 | * used as arguments to the `useFactory` function.
|
3417 | */
|
3418 | deps?: any[];
|
3419 | }
|
3420 |
|
3421 | declare const FLAGS = 2;
|
3422 |
|
3423 | /**
|
3424 | * Allows to refer to references which are not yet defined.
|
3425 | *
|
3426 | * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
|
3427 | * DI is declared, but not yet defined. It is also used when the `token` which we use when creating
|
3428 | * a query is not yet defined.
|
3429 | *
|
3430 | * `forwardRef` is also used to break circularities in standalone components imports.
|
3431 | *
|
3432 | * @usageNotes
|
3433 | * ### Circular dependency example
|
3434 | * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
|
3435 | *
|
3436 | * ### Circular standalone reference import example
|
3437 | * ```ts
|
3438 | * @Component({
|
3439 | * standalone: true,
|
3440 | * imports: [ChildComponent],
|
3441 | * selector: 'app-parent',
|
3442 | * template: `<app-child [hideParent]="hideParent"></app-child>`,
|
3443 | * })
|
3444 | * export class ParentComponent {
|
3445 | * @Input() hideParent: boolean;
|
3446 | * }
|
3447 | *
|
3448 | *
|
3449 | * @Component({
|
3450 | * standalone: true,
|
3451 | * imports: [CommonModule, forwardRef(() => ParentComponent)],
|
3452 | * selector: 'app-child',
|
3453 | * template: `<app-parent *ngIf="!hideParent"></app-parent>`,
|
3454 | * })
|
3455 | * export class ChildComponent {
|
3456 | * @Input() hideParent: boolean;
|
3457 | * }
|
3458 | * ```
|
3459 | *
|
3460 | * @publicApi
|
3461 | */
|
3462 | export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
|
3463 |
|
3464 | /**
|
3465 | * An interface that a function passed into {@link forwardRef} has to implement.
|
3466 | *
|
3467 | * @usageNotes
|
3468 | * ### Example
|
3469 | *
|
3470 | * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref_fn'}
|
3471 | * @publicApi
|
3472 | */
|
3473 | export declare interface ForwardRefFn {
|
3474 | (): any;
|
3475 | }
|
3476 |
|
3477 | /**
|
3478 | * @publicApi
|
3479 | */
|
3480 | declare function getDebugNode(nativeNode: any): DebugNode | null;
|
3481 | export { getDebugNode }
|
3482 | export { getDebugNode as ɵgetDebugNode }
|
3483 |
|
3484 | /**
|
3485 | * Returns the NgModuleFactory with the given id (specified using [@NgModule.id
|
3486 | * field](api/core/NgModule#id)), if it exists and has been loaded. Factories for NgModules that do
|
3487 | * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.
|
3488 | * @publicApi
|
3489 | * @deprecated Use `getNgModuleById` instead.
|
3490 | */
|
3491 | export declare function getModuleFactory(id: string): NgModuleFactory<any>;
|
3492 |
|
3493 | /**
|
3494 | * Returns the NgModule class with the given id (specified using [@NgModule.id
|
3495 | * field](api/core/NgModule#id)), if it exists and has been loaded. Classes for NgModules that do
|
3496 | * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.
|
3497 | * @publicApi
|
3498 | */
|
3499 | export declare function getNgModuleById<T>(id: string): Type<T>;
|
3500 |
|
3501 | /**
|
3502 | * Returns the current platform.
|
3503 | *
|
3504 | * @publicApi
|
3505 | */
|
3506 | export declare function getPlatform(): PlatformRef | null;
|
3507 |
|
3508 | /**
|
3509 | * Adapter interface for retrieving the `Testability` service associated for a
|
3510 | * particular context.
|
3511 | *
|
3512 | * @publicApi
|
3513 | */
|
3514 | export declare interface GetTestability {
|
3515 | addToWindow(registry: TestabilityRegistry): void;
|
3516 | findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null;
|
3517 | }
|
3518 |
|
3519 | /**
|
3520 | * The goal here is to make sure that the browser DOM API is the Renderer.
|
3521 | * We do this by defining a subset of DOM API to be the renderer and then
|
3522 | * use that at runtime for rendering.
|
3523 | *
|
3524 | * At runtime we can then use the DOM api directly, in server or web-worker
|
3525 | * it will be easy to implement such API.
|
3526 | */
|
3527 | declare type GlobalTargetName = 'document' | 'window' | 'body';
|
3528 |
|
3529 | declare type GlobalTargetResolver = (element: any) => EventTarget;
|
3530 |
|
3531 | /**
|
3532 | * Flag to signify that this `LContainer` may have transplanted views which need to be change
|
3533 | * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
3534 | *
|
3535 | * This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip
|
3536 | * a lot of work in `refreshEmbeddedViews`. But when set we still need to verify
|
3537 | * that the `MOVED_VIEWS` are transplanted and on-push.
|
3538 | */
|
3539 | declare const HAS_TRANSPLANTED_VIEWS = 2;
|
3540 |
|
3541 | /**
|
3542 | * Array of hooks that should be executed for a view and their directive indices.
|
3543 | *
|
3544 | * For each node of the view, the following data is stored:
|
3545 | * 1) Node index (optional)
|
3546 | * 2) A series of number/function pairs where:
|
3547 | * - even indices are directive indices
|
3548 | * - odd indices are hook functions
|
3549 | *
|
3550 | * Special cases:
|
3551 | * - a negative directive index flags an init hook (ngOnInit, ngAfterContentInit, ngAfterViewInit)
|
3552 | */
|
3553 | declare type HookData = HookEntry[];
|
3554 |
|
3555 | /**
|
3556 | * Information necessary to call a hook. E.g. the callback that
|
3557 | * needs to invoked and the index at which to find its context.
|
3558 | */
|
3559 | declare type HookEntry = number | HookFn;
|
3560 |
|
3561 | /** Single hook callback function. */
|
3562 | declare type HookFn = () => void;
|
3563 |
|
3564 | declare const HOST = 0;
|
3565 |
|
3566 | /**
|
3567 | * Type of the Host metadata.
|
3568 | *
|
3569 | * @publicApi
|
3570 | */
|
3571 | export declare interface Host {
|
3572 | }
|
3573 |
|
3574 | /**
|
3575 | * Host decorator and metadata.
|
3576 | *
|
3577 | * @Annotation
|
3578 | * @publicApi
|
3579 | */
|
3580 | export declare const Host: HostDecorator;
|
3581 |
|
3582 | /**
|
3583 | * Type of the HostBinding metadata.
|
3584 | *
|
3585 | * @publicApi
|
3586 | */
|
3587 | export declare interface HostBinding {
|
3588 | /**
|
3589 | * The DOM property that is bound to a data property.
|
3590 | */
|
3591 | hostPropertyName?: string;
|
3592 | }
|
3593 |
|
3594 | /**
|
3595 | * @Annotation
|
3596 | * @publicApi
|
3597 | */
|
3598 | export declare const HostBinding: HostBindingDecorator;
|
3599 |
|
3600 | /**
|
3601 | * Type of the HostBinding decorator / constructor function.
|
3602 | *
|
3603 | * @publicApi
|
3604 | */
|
3605 | export declare interface HostBindingDecorator {
|
3606 | /**
|
3607 | * Decorator that marks a DOM property as a host-binding property and supplies configuration
|
3608 | * metadata.
|
3609 | * Angular automatically checks host property bindings during change detection, and
|
3610 | * if a binding changes it updates the host element of the directive.
|
3611 | *
|
3612 | * @usageNotes
|
3613 | *
|
3614 | * The following example creates a directive that sets the `valid` and `invalid`
|
3615 | * properties on the DOM element that has an `ngModel` directive on it.
|
3616 | *
|
3617 | * ```typescript
|
3618 | * @Directive({selector: '[ngModel]'})
|
3619 | * class NgModelStatus {
|
3620 | * constructor(public control: NgModel) {}
|
3621 | * @HostBinding('class.valid') get valid() { return this.control.valid; }
|
3622 | * @HostBinding('class.invalid') get invalid() { return this.control.invalid; }
|
3623 | * }
|
3624 | *
|
3625 | * @Component({
|
3626 | * selector: 'app',
|
3627 | * template: `<input [(ngModel)]="prop">`,
|
3628 | * })
|
3629 | * class App {
|
3630 | * prop;
|
3631 | * }
|
3632 | * ```
|
3633 | *
|
3634 | */
|
3635 | (hostPropertyName?: string): any;
|
3636 | new (hostPropertyName?: string): any;
|
3637 | }
|
3638 |
|
3639 | /**
|
3640 | * Stores a set of OpCodes to process `HostBindingsFunction` associated with a current view.
|
3641 | *
|
3642 | * In order to invoke `HostBindingsFunction` we need:
|
3643 | * 1. 'elementIdx`: Index to the element associated with the `HostBindingsFunction`.
|
3644 | * 2. 'directiveIdx`: Index to the directive associated with the `HostBindingsFunction`. (This will
|
3645 | * become the context for the `HostBindingsFunction` invocation.)
|
3646 | * 3. `bindingRootIdx`: Location where the bindings for the `HostBindingsFunction` start. Internally
|
3647 | * `HostBindingsFunction` binding indexes start from `0` so we need to add `bindingRootIdx` to
|
3648 | * it.
|
3649 | * 4. `HostBindingsFunction`: A host binding function to execute.
|
3650 | *
|
3651 | * The above information needs to be encoded into the `HostBindingOpCodes` in an efficient manner.
|
3652 | *
|
3653 | * 1. `elementIdx` is encoded into the `HostBindingOpCodes` as `~elementIdx` (so a negative number);
|
3654 | * 2. `directiveIdx`
|
3655 | * 3. `bindingRootIdx`
|
3656 | * 4. `HostBindingsFunction` is passed in as is.
|
3657 | *
|
3658 | * The `HostBindingOpCodes` array contains:
|
3659 | * - negative number to select the element index.
|
3660 | * - followed by 1 or more of:
|
3661 | * - a number to select the directive index
|
3662 | * - a number to select the bindingRoot index
|
3663 | * - and a function to invoke.
|
3664 | *
|
3665 | * ## Example
|
3666 | *
|
3667 | * ```
|
3668 | * const hostBindingOpCodes = [
|
3669 | * ~30, // Select element 30
|
3670 | * 40, 45, MyDir.ɵdir.hostBindings // Invoke host bindings on MyDir on element 30;
|
3671 | *
|
3672 | * 50, 55, OtherDir.ɵdir.hostBindings
|
3673 | *
|
3674 | * ]
|
3675 | * ```
|
3676 | *
|
3677 | * ## Pseudocode
|
3678 | * ```
|
3679 | * const hostBindingOpCodes = tView.hostBindingOpCodes;
|
3680 | * if (hostBindingOpCodes === null) return;
|
3681 | * for (let i = 0; i < hostBindingOpCodes.length; i++) {
|
3682 | * const opCode = hostBindingOpCodes[i] as number;
|
3683 | * if (opCode < 0) {
|
3684 | *
|
3685 | * setSelectedIndex(~opCode);
|
3686 | * } else {
|
3687 | *
|
3688 | * const directiveIdx = opCode;
|
3689 | * const bindingRootIndx = hostBindingOpCodes[++i] as number;
|
3690 | * const hostBindingFn = hostBindingOpCodes[++i] as HostBindingsFunction<any>;
|
3691 | * setBindingRootForHostBindings(bindingRootIndx, directiveIdx);
|
3692 | * const context = lView[directiveIdx];
|
3693 | * hostBindingFn(RenderFlags.Update, context);
|
3694 | * }
|
3695 | * }
|
3696 | * ```
|
3697 | *
|
3698 | */
|
3699 | declare interface HostBindingOpCodes extends Array<number | HostBindingsFunction<any>> {
|
3700 | __brand__: 'HostBindingOpCodes';
|
3701 | debug?: string[];
|
3702 | }
|
3703 |
|
3704 | declare type HostBindingsFunction<T> = <U extends T>(rf: ɵRenderFlags, ctx: U) => void;
|
3705 |
|
3706 | /**
|
3707 | * Type of the `Host` decorator / constructor function.
|
3708 | *
|
3709 | * @publicApi
|
3710 | */
|
3711 | export declare interface HostDecorator {
|
3712 | /**
|
3713 | * Parameter decorator on a view-provider parameter of a class constructor
|
3714 | * that tells the DI framework to resolve the view by checking injectors of child
|
3715 | * elements, and stop when reaching the host element of the current component.
|
3716 | *
|
3717 | * @usageNotes
|
3718 | *
|
3719 | * The following shows use with the `@Optional` decorator, and allows for a `null` result.
|
3720 | *
|
3721 | * <code-example path="core/di/ts/metadata_spec.ts" region="Host">
|
3722 | * </code-example>
|
3723 | *
|
3724 | * For an extended example, see ["Dependency Injection
|
3725 | * Guide"](guide/dependency-injection-in-action#optional).
|
3726 | */
|
3727 | (): any;
|
3728 | new (): Host;
|
3729 | }
|
3730 |
|
3731 | /**
|
3732 | * Mapping between the public aliases of directive bindings and the underlying inputs/outputs that
|
3733 | * they represent. Also serves as an allowlist of the inputs/outputs from the host directive that
|
3734 | * the author has decided to expose.
|
3735 | */
|
3736 | declare type HostDirectiveBindingMap = {
|
3737 | [publicName: string]: string;
|
3738 | };
|
3739 |
|
3740 | /** Values that can be used to define a host directive through the `HostDirectivesFeature`. */
|
3741 | declare type HostDirectiveConfig = Type<unknown> | {
|
3742 | directive: Type<unknown>;
|
3743 | inputs?: string[];
|
3744 | outputs?: string[];
|
3745 | };
|
3746 |
|
3747 | /** Runtime information used to configure a host directive. */
|
3748 | declare interface HostDirectiveDef<T = unknown> {
|
3749 | /** Class representing the host directive. */
|
3750 | directive: Type<T>;
|
3751 | /** Directive inputs that have been exposed. */
|
3752 | inputs: HostDirectiveBindingMap;
|
3753 | /** Directive outputs that have been exposed. */
|
3754 | outputs: HostDirectiveBindingMap;
|
3755 | }
|
3756 |
|
3757 | /**
|
3758 | * Mapping between a directive that was used as a host directive
|
3759 | * and the configuration that was used to define it as such.
|
3760 | */
|
3761 | declare type HostDirectiveDefs = Map<ɵDirectiveDef<unknown>, HostDirectiveDef>;
|
3762 |
|
3763 | /**
|
3764 | * Type of the HostListener metadata.
|
3765 | *
|
3766 | * @publicApi
|
3767 | */
|
3768 | export declare interface HostListener {
|
3769 | /**
|
3770 | * The DOM event to listen for.
|
3771 | */
|
3772 | eventName?: string;
|
3773 | /**
|
3774 | * A set of arguments to pass to the handler method when the event occurs.
|
3775 | */
|
3776 | args?: string[];
|
3777 | }
|
3778 |
|
3779 | /**
|
3780 | * Decorator that binds a DOM event to a host listener and supplies configuration metadata.
|
3781 | * Angular invokes the supplied handler method when the host element emits the specified event,
|
3782 | * and updates the bound element with the result.
|
3783 | *
|
3784 | * If the handler method returns false, applies `preventDefault` on the bound element.
|
3785 | *
|
3786 | * @usageNotes
|
3787 | *
|
3788 | * The following example declares a directive
|
3789 | * that attaches a click listener to a button and counts clicks.
|
3790 | *
|
3791 | * ```ts
|
3792 | * @Directive({selector: 'button[counting]'})
|
3793 | * class CountClicks {
|
3794 | * numberOfClicks = 0;
|
3795 | *
|
3796 | * @HostListener('click', ['$event.target'])
|
3797 | * onClick(btn) {
|
3798 | * console.log('button', btn, 'number of clicks:', this.numberOfClicks++);
|
3799 | * }
|
3800 | * }
|
3801 | *
|
3802 | * @Component({
|
3803 | * selector: 'app',
|
3804 | * template: '<button counting>Increment</button>',
|
3805 | * })
|
3806 | * class App {}
|
3807 | *
|
3808 | * ```
|
3809 | *
|
3810 | * The following example registers another DOM event handler that listens for `Enter` key-press
|
3811 | * events on the global `window`.
|
3812 | * ``` ts
|
3813 | * import { HostListener, Component } from "@angular/core";
|
3814 | *
|
3815 | * @Component({
|
3816 | * selector: 'app',
|
3817 | * template: `<h1>Hello, you have pressed enter {{counter}} number of times!</h1> Press enter key
|
3818 | * to increment the counter.
|
3819 | * <button (click)="resetCounter()">Reset Counter</button>`
|
3820 | * })
|
3821 | * class AppComponent {
|
3822 | * counter = 0;
|
3823 | * @HostListener('window:keydown.enter', ['$event'])
|
3824 | * handleKeyDown(event: KeyboardEvent) {
|
3825 | * this.counter++;
|
3826 | * }
|
3827 | * resetCounter() {
|
3828 | * this.counter = 0;
|
3829 | * }
|
3830 | * }
|
3831 | * ```
|
3832 | * The list of valid key names for `keydown` and `keyup` events
|
3833 | * can be found here:
|
3834 | * https://www.w3.org/TR/DOM-Level-3-Events-key/#named-key-attribute-values
|
3835 | *
|
3836 | * Note that keys can also be combined, e.g. `@HostListener('keydown.shift.a')`.
|
3837 | *
|
3838 | * The global target names that can be used to prefix an event name are
|
3839 | * `document:`, `window:` and `body:`.
|
3840 | *
|
3841 | * @Annotation
|
3842 | * @publicApi
|
3843 | */
|
3844 | export declare const HostListener: HostListenerDecorator;
|
3845 |
|
3846 | /**
|
3847 | * Type of the HostListener decorator / constructor function.
|
3848 | *
|
3849 | * @publicApi
|
3850 | */
|
3851 | export declare interface HostListenerDecorator {
|
3852 | /**
|
3853 | * Decorator that declares a DOM event to listen for,
|
3854 | * and provides a handler method to run when that event occurs.
|
3855 | *
|
3856 | * Angular invokes the supplied handler method when the host element emits the specified event,
|
3857 | * and updates the bound element with the result.
|
3858 | *
|
3859 | * If the handler method returns false, applies `preventDefault` on the bound element.
|
3860 | */
|
3861 | (eventName: string, args?: string[]): any;
|
3862 | new (eventName: string, args?: string[]): any;
|
3863 | }
|
3864 |
|
3865 | declare const HYDRATION = 22;
|
3866 |
|
3867 | declare namespace i0 {
|
3868 | export {
|
3869 | ɵɵinject,
|
3870 | ɵɵdefineInjectable,
|
3871 | ɵɵdefineInjector,
|
3872 | ɵɵInjectableDeclaration,
|
3873 | ɵNgModuleDef as NgModuleDef,
|
3874 | ɵɵdefineNgModule,
|
3875 | ɵɵFactoryDeclaration,
|
3876 | ɵɵInjectorDeclaration,
|
3877 | ɵɵNgModuleDeclaration,
|
3878 | ɵsetClassMetadata as setClassMetadata,
|
3879 | ɵNgModuleFactory as NgModuleFactory,
|
3880 | ɵnoSideEffects,
|
3881 | ITS_JUST_ANGULAR
|
3882 | }
|
3883 | }
|
3884 |
|
3885 | /**
|
3886 | * Array storing OpCode for dynamically creating `i18n` translation DOM elements.
|
3887 | *
|
3888 | * This array creates a sequence of `Text` and `Comment` (as ICU anchor) DOM elements. It consists
|
3889 | * of a pair of `number` and `string` pairs which encode the operations for the creation of the
|
3890 | * translated block.
|
3891 | *
|
3892 | * The number is shifted and encoded according to `I18nCreateOpCode`
|
3893 | *
|
3894 | * Pseudocode:
|
3895 | * ```
|
3896 | * const i18nCreateOpCodes = [
|
3897 | * 10 << I18nCreateOpCode.SHIFT, "Text Node add to DOM",
|
3898 | * 11 << I18nCreateOpCode.SHIFT | I18nCreateOpCode.COMMENT, "Comment Node add to DOM",
|
3899 | * 12 << I18nCreateOpCode.SHIFT | I18nCreateOpCode.APPEND_LATER, "Text Node added later"
|
3900 | * ];
|
3901 | *
|
3902 | * for(var i=0; i<i18nCreateOpCodes.length; i++) {
|
3903 | * const opcode = i18NCreateOpCodes[i++];
|
3904 | * const index = opcode >> I18nCreateOpCode.SHIFT;
|
3905 | * const text = i18NCreateOpCodes[i];
|
3906 | * let node: Text|Comment;
|
3907 | * if (opcode & I18nCreateOpCode.COMMENT === I18nCreateOpCode.COMMENT) {
|
3908 | * node = lView[~index] = document.createComment(text);
|
3909 | * } else {
|
3910 | * node = lView[index] = document.createText(text);
|
3911 | * }
|
3912 | * if (opcode & I18nCreateOpCode.APPEND_EAGERLY !== I18nCreateOpCode.APPEND_EAGERLY) {
|
3913 | * parentNode.appendChild(node);
|
3914 | * }
|
3915 | * }
|
3916 | * ```
|
3917 | */
|
3918 | declare interface I18nCreateOpCodes extends Array<number | string>, I18nDebug {
|
3919 | __brand__: 'I18nCreateOpCodes';
|
3920 | }
|
3921 |
|
3922 | declare interface I18nDebug {
|
3923 | /**
|
3924 | * Human readable representation of the OpCode arrays.
|
3925 | *
|
3926 | * NOTE: This property only exists if `ngDevMode` is set to `true` and it is not present in
|
3927 | * production. Its presence is purely to help debug issue in development, and should not be relied
|
3928 | * on in production application.
|
3929 | */
|
3930 | debug?: string[];
|
3931 | }
|
3932 |
|
3933 | /**
|
3934 | * Stores a list of nodes which need to be removed.
|
3935 | *
|
3936 | * Numbers are indexes into the `LView`
|
3937 | * - index > 0: `removeRNode(lView[0])`
|
3938 | * - index < 0: `removeICU(~lView[0])`
|
3939 | */
|
3940 | declare interface I18nRemoveOpCodes extends Array<number> {
|
3941 | __brand__: 'I18nRemoveOpCodes';
|
3942 | }
|
3943 |
|
3944 | /**
|
3945 | * Stores DOM operations which need to be applied to update DOM render tree due to changes in
|
3946 | * expressions.
|
3947 | *
|
3948 | * The basic idea is that `i18nExp` OpCodes capture expression changes and update a change
|
3949 | * mask bit. (Bit 1 for expression 1, bit 2 for expression 2 etc..., bit 32 for expression 32 and
|
3950 | * higher.) The OpCodes then compare its own change mask against the expression change mask to
|
3951 | * determine if the OpCodes should execute.
|
3952 | *
|
3953 | * NOTE: 32nd bit is special as it says 32nd or higher. This way if we have more than 32 bindings
|
3954 | * the code still works, but with lower efficiency. (it is unlikely that a translation would have
|
3955 | * more than 32 bindings.)
|
3956 | *
|
3957 | * These OpCodes can be used by both the i18n block as well as ICU sub-block.
|
3958 | *
|
3959 | * ## Example
|
3960 | *
|
3961 | * Assume
|
3962 | * ```ts
|
3963 | * if (rf & RenderFlags.Update) {
|
3964 | * i18nExp(ctx.exp1);
|
3965 | * i18nExp(ctx.exp2);
|
3966 | * i18nExp(ctx.exp3);
|
3967 | * i18nExp(ctx.exp4);
|
3968 | * i18nApply(0);
|
3969 | * }
|
3970 | * ```
|
3971 | * We can assume that each call to `i18nExp` sets an internal `changeMask` bit depending on the
|
3972 | * index of `i18nExp`.
|
3973 | *
|
3974 | * ### OpCodes
|
3975 | * ```ts
|
3976 | * <I18nUpdateOpCodes>[
|
3977 | *
|
3978 | *
|
3979 | *
|
3980 | *
|
3981 | * 0b11, 8,
|
3982 | *
|
3983 | * 'pre', -4, 'in', -3, 'post',
|
3984 | *
|
3985 | * 1 << SHIFT_REF | Attr, 'title', sanitizerFn,
|
3986 | *
|
3987 | *
|
3988 | *
|
3989 | *
|
3990 | *
|
3991 | * 0b100, 4,
|
3992 | *
|
3993 | * 'Hello ', -2, '!',
|
3994 | *
|
3995 | * 1 << SHIFT_REF | Text,
|
3996 | *
|
3997 | *
|
3998 | *
|
3999 | *
|
4000 | *
|
4001 | * 0b1000, 2,
|
4002 | *
|
4003 | * -1,
|
4004 | *
|
4005 | * 0 << SHIFT_ICU | 1 << SHIFT_REF | IcuSwitch,
|
4006 | *
|
4007 | *
|
4008 | * -1, 1,
|
4009 | *
|
4010 | * 0 << SHIFT_ICU | 1 << SHIFT_REF | IcuUpdate,
|
4011 | *
|
4012 | * ];
|
4013 | * ```
|
4014 | *
|
4015 | */
|
4016 | declare interface I18nUpdateOpCodes extends Array<string | number | SanitizerFn | null>, I18nDebug {
|
4017 | __brand__: 'I18nUpdateOpCodes';
|
4018 | }
|
4019 |
|
4020 | /**
|
4021 | * Marks that the next string is comment text need for ICU.
|
4022 | *
|
4023 | * See `I18nMutateOpCodes` documentation.
|
4024 | */
|
4025 | declare const ICU_MARKER: ICU_MARKER;
|
4026 |
|
4027 | declare interface ICU_MARKER {
|
4028 | marker: 'ICU';
|
4029 | }
|
4030 |
|
4031 | /**
|
4032 | * Array storing OpCode for dynamically creating `i18n` blocks.
|
4033 | *
|
4034 | * Example:
|
4035 | * ```ts
|
4036 | * <I18nCreateOpCode>[
|
4037 | *
|
4038 | *
|
4039 | *
|
4040 | *
|
4041 | * 'xyz', 0, 1 << SHIFT_PARENT | 0 << SHIFT_REF | AppendChild,
|
4042 | *
|
4043 | *
|
4044 | *
|
4045 | *
|
4046 | *
|
4047 | * ELEMENT_MARKER, 'div', 0, 1 << SHIFT_PARENT | 0 << SHIFT_REF | AppendChild,
|
4048 | *
|
4049 | *
|
4050 | *
|
4051 | *
|
4052 | *
|
4053 | * ICU_MARKER, '', 0, 1 << SHIFT_PARENT | 0 << SHIFT_REF | AppendChild,
|
4054 | *
|
4055 | *
|
4056 | *
|
4057 | *
|
4058 | *
|
4059 | *
|
4060 | * 1 << SHIFT_REF | Select, 2 << SHIFT_PARENT | 0 << SHIFT_REF | AppendChild,
|
4061 | *
|
4062 | *
|
4063 | *
|
4064 | *
|
4065 | *
|
4066 | * 1 << SHIFT_REF | Remove,
|
4067 | *
|
4068 | *
|
4069 | *
|
4070 | *
|
4071 | *
|
4072 | * 1 << SHIFT_REF | Attr, 'attr', 'value'
|
4073 | * ];
|
4074 | * ```
|
4075 | */
|
4076 | declare interface IcuCreateOpCodes extends Array<number | string | ELEMENT_MARKER | ICU_MARKER | null>, I18nDebug {
|
4077 | __brand__: 'I18nCreateOpCodes';
|
4078 | }
|
4079 |
|
4080 | /**
|
4081 | * Defines the ICU type of `select` or `plural`
|
4082 | */
|
4083 | declare const enum IcuType {
|
4084 | select = 0,
|
4085 | plural = 1
|
4086 | }
|
4087 |
|
4088 | declare const ID = 19;
|
4089 |
|
4090 | /**
|
4091 | * Providers that were imported from NgModules via the `importProvidersFrom` function.
|
4092 | *
|
4093 | * These providers are meant for use in an application injector (or other environment injectors) and
|
4094 | * should not be used in component injectors.
|
4095 | *
|
4096 | * This type cannot be directly implemented. It's returned from the `importProvidersFrom` function
|
4097 | * and serves to prevent the extracted NgModule providers from being used in the wrong contexts.
|
4098 | *
|
4099 | * @see `importProvidersFrom`
|
4100 | *
|
4101 | * @publicApi
|
4102 | * @deprecated replaced by `EnvironmentProviders`
|
4103 | */
|
4104 | export declare type ImportedNgModuleProviders = EnvironmentProviders;
|
4105 |
|
4106 | /**
|
4107 | * Collects providers from all NgModules and standalone components, including transitively imported
|
4108 | * ones.
|
4109 | *
|
4110 | * Providers extracted via `importProvidersFrom` are only usable in an application injector or
|
4111 | * another environment injector (such as a route injector). They should not be used in component
|
4112 | * providers.
|
4113 | *
|
4114 | * More information about standalone components can be found in [this
|
4115 | * guide](guide/standalone-components).
|
4116 | *
|
4117 | * @usageNotes
|
4118 | * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
|
4119 | *
|
4120 | * ```typescript
|
4121 | * await bootstrapApplication(RootComponent, {
|
4122 | * providers: [
|
4123 | * importProvidersFrom(NgModuleOne, NgModuleTwo)
|
4124 | * ]
|
4125 | * });
|
4126 | * ```
|
4127 | *
|
4128 | * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a
|
4129 | * standalone component is used:
|
4130 | *
|
4131 | * ```typescript
|
4132 | * export const ROUTES: Route[] = [
|
4133 | * {
|
4134 | * path: 'foo',
|
4135 | * providers: [
|
4136 | * importProvidersFrom(NgModuleOne, NgModuleTwo)
|
4137 | * ],
|
4138 | * component: YourStandaloneComponent
|
4139 | * }
|
4140 | * ];
|
4141 | * ```
|
4142 | *
|
4143 | * @returns Collected providers from the specified list of types.
|
4144 | * @publicApi
|
4145 | */
|
4146 | export declare function importProvidersFrom(...sources: ImportProvidersSource[]): EnvironmentProviders;
|
4147 |
|
4148 | /**
|
4149 | * A source of providers for the `importProvidersFrom` function.
|
4150 | *
|
4151 | * @publicApi
|
4152 | */
|
4153 | export declare type ImportProvidersSource = Type<unknown> | ModuleWithProviders<unknown> | Array<ImportProvidersSource>;
|
4154 |
|
4155 | /**
|
4156 | * This array contains information about input properties that
|
4157 | * need to be set once from attribute data. It's ordered by
|
4158 | * directive index (relative to element) so it's simple to
|
4159 | * look up a specific directive's initial input data.
|
4160 | *
|
4161 | * Within each sub-array:
|
4162 | *
|
4163 | * i+0: attribute name
|
4164 | * i+1: minified/internal input name
|
4165 | * i+2: initial value
|
4166 | *
|
4167 | * If a directive on a node does not have any input properties
|
4168 | * that should be set from attributes, its index is set to null
|
4169 | * to avoid a sparse array.
|
4170 | *
|
4171 | * e.g. [null, ['role-min', 'minified-input', 'button']]
|
4172 | */
|
4173 | declare type InitialInputData = (InitialInputs | null)[];
|
4174 |
|
4175 | /**
|
4176 | * Used by InitialInputData to store input properties
|
4177 | * that should be set once from attributes.
|
4178 | *
|
4179 | * i+0: attribute name
|
4180 | * i+1: minified/internal input name
|
4181 | * i+2: initial value
|
4182 | *
|
4183 | * e.g. ['role-min', 'minified-input', 'button']
|
4184 | */
|
4185 | declare type InitialInputs = string[];
|
4186 |
|
4187 | /**
|
4188 | * Type of the Inject metadata.
|
4189 | *
|
4190 | * @publicApi
|
4191 | */
|
4192 | export declare interface Inject {
|
4193 | /**
|
4194 | * A [DI token](guide/glossary#di-token) that maps to the dependency to be injected.
|
4195 | */
|
4196 | token: any;
|
4197 | }
|
4198 |
|
4199 | /**
|
4200 | * Inject decorator and metadata.
|
4201 | *
|
4202 | * @Annotation
|
4203 | * @publicApi
|
4204 | */
|
4205 | export declare const Inject: InjectDecorator;
|
4206 |
|
4207 | /**
|
4208 | * @param token A token that represents a dependency that should be injected.
|
4209 | * @returns the injected value if operation is successful, `null` otherwise.
|
4210 | * @throws if called outside of a supported context.
|
4211 | *
|
4212 | * @publicApi
|
4213 | */
|
4214 | export declare function inject<T>(token: ProviderToken<T>): T;
|
4215 |
|
4216 | /**
|
4217 | * @param token A token that represents a dependency that should be injected.
|
4218 | * @param flags Control how injection is executed. The flags correspond to injection strategies that
|
4219 | * can be specified with parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.
|
4220 | * @returns the injected value if operation is successful, `null` otherwise.
|
4221 | * @throws if called outside of a supported context.
|
4222 | *
|
4223 | * @publicApi
|
4224 | * @deprecated prefer an options object instead of `InjectFlags`
|
4225 | */
|
4226 | export declare function inject<T>(token: ProviderToken<T>, flags?: InjectFlags): T | null;
|
4227 |
|
4228 | /**
|
4229 | * @param token A token that represents a dependency that should be injected.
|
4230 | * @param options Control how injection is executed. Options correspond to injection strategies
|
4231 | * that can be specified with parameter decorators `@Host`, `@Self`, `@SkipSelf`, and
|
4232 | * `@Optional`.
|
4233 | * @returns the injected value if operation is successful.
|
4234 | * @throws if called outside of a supported context, or if the token is not found.
|
4235 | *
|
4236 | * @publicApi
|
4237 | */
|
4238 | export declare function inject<T>(token: ProviderToken<T>, options: InjectOptions & {
|
4239 | optional?: false;
|
4240 | }): T;
|
4241 |
|
4242 | /**
|
4243 | * @param token A token that represents a dependency that should be injected.
|
4244 | * @param options Control how injection is executed. Options correspond to injection strategies
|
4245 | * that can be specified with parameter decorators `@Host`, `@Self`, `@SkipSelf`, and
|
4246 | * `@Optional`.
|
4247 | * @returns the injected value if operation is successful, `null` if the token is not
|
4248 | * found and optional injection has been requested.
|
4249 | * @throws if called outside of a supported context, or if the token is not found and optional
|
4250 | * injection was not requested.
|
4251 | *
|
4252 | * @publicApi
|
4253 | */
|
4254 | export declare function inject<T>(token: ProviderToken<T>, options: InjectOptions): T | null;
|
4255 |
|
4256 | /**
|
4257 | * Type of the Injectable metadata.
|
4258 | *
|
4259 | * @publicApi
|
4260 | */
|
4261 | export declare interface Injectable {
|
4262 | /**
|
4263 | * Determines which injectors will provide the injectable.
|
4264 | *
|
4265 | * - `Type<any>` - associates the injectable with an `@NgModule` or other `InjectorType`. This
|
4266 | * option is DEPRECATED.
|
4267 | * - 'null' : Equivalent to `undefined`. The injectable is not provided in any scope automatically
|
4268 | * and must be added to a `providers` array of an [@NgModule](api/core/NgModule#providers),
|
4269 | * [@Component](api/core/Directive#providers) or [@Directive](api/core/Directive#providers).
|
4270 | *
|
4271 | * The following options specify that this injectable should be provided in one of the following
|
4272 | * injectors:
|
4273 | * - 'root' : The application-level injector in most apps.
|
4274 | * - 'platform' : A special singleton platform injector shared by all
|
4275 | * applications on the page.
|
4276 | * - 'any' : Provides a unique instance in each lazy loaded module while all eagerly loaded
|
4277 | * modules share one instance. This option is DEPRECATED.
|
4278 | *
|
4279 | */
|
4280 | providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
4281 | }
|
4282 |
|
4283 | /**
|
4284 | * Injectable decorator and metadata.
|
4285 | *
|
4286 | * @Annotation
|
4287 | * @publicApi
|
4288 | */
|
4289 | export declare const Injectable: InjectableDecorator;
|
4290 |
|
4291 | /**
|
4292 | * Type of the Injectable decorator / constructor function.
|
4293 | *
|
4294 | * @publicApi
|
4295 | */
|
4296 | export declare interface InjectableDecorator {
|
4297 | /**
|
4298 | * Decorator that marks a class as available to be
|
4299 | * provided and injected as a dependency.
|
4300 | *
|
4301 | * @see [Introduction to Services and DI](guide/architecture-services)
|
4302 | * @see [Dependency Injection Guide](guide/dependency-injection)
|
4303 | *
|
4304 | * @usageNotes
|
4305 | *
|
4306 | * Marking a class with `@Injectable` ensures that the compiler
|
4307 | * will generate the necessary metadata to create the class's
|
4308 | * dependencies when the class is injected.
|
4309 | *
|
4310 | * The following example shows how a service class is properly
|
4311 | * marked so that a supporting service can be injected upon creation.
|
4312 | *
|
4313 | * <code-example path="core/di/ts/metadata_spec.ts" region="Injectable"></code-example>
|
4314 | *
|
4315 | */
|
4316 | (): TypeDecorator;
|
4317 | (options?: {
|
4318 | providedIn: Type<any> | 'root' | 'platform' | 'any' | null;
|
4319 | } & InjectableProvider): TypeDecorator;
|
4320 | new (): Injectable;
|
4321 | new (options?: {
|
4322 | providedIn: Type<any> | 'root' | 'platform' | 'any' | null;
|
4323 | } & InjectableProvider): Injectable;
|
4324 | }
|
4325 |
|
4326 | /**
|
4327 | * Injectable providers used in `@Injectable` decorator.
|
4328 | *
|
4329 | * @publicApi
|
4330 | */
|
4331 | export declare type InjectableProvider = ValueSansProvider | ExistingSansProvider | StaticClassSansProvider | ConstructorSansProvider | FactorySansProvider | ClassSansProvider;
|
4332 |
|
4333 | /**
|
4334 | * A `Type` which has a `ɵprov: ɵɵInjectableDeclaration` static field.
|
4335 | *
|
4336 | * `InjectableType`s contain their own Dependency Injection metadata and are usable in an
|
4337 | * `InjectorDef`-based `StaticInjector`.
|
4338 | *
|
4339 | * @publicApi
|
4340 | */
|
4341 | export declare interface InjectableType<T> extends Type<T> {
|
4342 | /**
|
4343 | * Opaque type whose structure is highly version dependent. Do not rely on any properties.
|
4344 | */
|
4345 | ɵprov: unknown;
|
4346 | }
|
4347 |
|
4348 |
|
4349 | /**
|
4350 | * Type of the Inject decorator / constructor function.
|
4351 | *
|
4352 | * @publicApi
|
4353 | */
|
4354 | export declare interface InjectDecorator {
|
4355 | /**
|
4356 | * Parameter decorator on a dependency parameter of a class constructor
|
4357 | * that specifies a custom provider of the dependency.
|
4358 | *
|
4359 | * @usageNotes
|
4360 | * The following example shows a class constructor that specifies a
|
4361 | * custom provider of a dependency using the parameter decorator.
|
4362 | *
|
4363 | * When `@Inject()` is not present, the injector uses the type annotation of the
|
4364 | * parameter as the provider.
|
4365 | *
|
4366 | * <code-example path="core/di/ts/metadata_spec.ts" region="InjectWithoutDecorator">
|
4367 | * </code-example>
|
4368 | *
|
4369 | * @see ["Dependency Injection Guide"](guide/dependency-injection)
|
4370 | *
|
4371 | */
|
4372 | (token: any): any;
|
4373 | new (token: any): Inject;
|
4374 | }
|
4375 |
|
4376 | /**
|
4377 | * Injection flags for DI.
|
4378 | *
|
4379 | * @publicApi
|
4380 | * @deprecated use an options object for `inject` instead.
|
4381 | */
|
4382 | export declare enum InjectFlags {
|
4383 | /** Check self and check parent injector if needed */
|
4384 | Default = 0,
|
4385 | /**
|
4386 | * Specifies that an injector should retrieve a dependency from any injector until reaching the
|
4387 | * host element of the current component. (Only used with Element Injector)
|
4388 | */
|
4389 | Host = 1,
|
4390 | /** Don't ascend to ancestors of the node requesting injection. */
|
4391 | Self = 2,
|
4392 | /** Skip the node that is requesting injection. */
|
4393 | SkipSelf = 4,
|
4394 | /** Inject `defaultValue` instead if token not found. */
|
4395 | Optional = 8
|
4396 | }
|
4397 |
|
4398 | /**
|
4399 | * Creates a token that can be used in a DI Provider.
|
4400 | *
|
4401 | * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a
|
4402 | * runtime representation) such as when injecting an interface, callable type, array or
|
4403 | * parameterized type.
|
4404 | *
|
4405 | * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
4406 | * the `Injector`. This provides an additional level of type safety.
|
4407 | *
|
4408 | * ```
|
4409 | * interface MyInterface {...}
|
4410 | * const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
|
4411 | *
|
4412 | * ```
|
4413 | *
|
4414 | * When creating an `InjectionToken`, you can optionally specify a factory function which returns
|
4415 | * (possibly by creating) a default value of the parameterized type `T`. This sets up the
|
4416 | * `InjectionToken` using this factory as a provider as if it was defined explicitly in the
|
4417 | * application's root injector. If the factory function, which takes zero arguments, needs to inject
|
4418 | * dependencies, it can do so using the `inject` function.
|
4419 | * As you can see in the Tree-shakable InjectionToken example below.
|
4420 | *
|
4421 | * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
|
4422 | * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:
|
4423 | * this option is now deprecated). As mentioned above, `'root'` is the default value for
|
4424 | * `providedIn`.
|
4425 | *
|
4426 | * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.
|
4427 | *
|
4428 | * @usageNotes
|
4429 | * ### Basic Examples
|
4430 | *
|
4431 | * ### Plain InjectionToken
|
4432 | *
|
4433 | * {@example core/di/ts/injector_spec.ts region='InjectionToken'}
|
4434 | *
|
4435 | * ### Tree-shakable InjectionToken
|
4436 | *
|
4437 | * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
|
4438 | *
|
4439 | *
|
4440 | * @publicApi
|
4441 | */
|
4442 | export declare class InjectionToken<T> {
|
4443 | protected _desc: string;
|
4444 | readonly ɵprov: unknown;
|
4445 | /**
|
4446 | * @param _desc Description for the token,
|
4447 | * used only for debugging purposes,
|
4448 | * it should but does not need to be unique
|
4449 | * @param options Options for the token's usage, as described above
|
4450 | */
|
4451 | constructor(_desc: string, options?: {
|
4452 | providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
4453 | factory: () => T;
|
4454 | });
|
4455 | toString(): string;
|
4456 | }
|
4457 |
|
4458 | /**
|
4459 | * Type of the options argument to `inject`.
|
4460 | *
|
4461 | * @publicApi
|
4462 | */
|
4463 | export declare interface InjectOptions {
|
4464 | /**
|
4465 | * Use optional injection, and return `null` if the requested token is not found.
|
4466 | */
|
4467 | optional?: boolean;
|
4468 | /**
|
4469 | * Start injection at the parent of the current injector.
|
4470 | */
|
4471 | skipSelf?: boolean;
|
4472 | /**
|
4473 | * Only query the current injector for the token, and don't fall back to the parent injector if
|
4474 | * it's not found.
|
4475 | */
|
4476 | self?: boolean;
|
4477 | /**
|
4478 | * Stop injection at the host component's injector. Only relevant when injecting from an element
|
4479 | * injector, and a no-op for environment injectors.
|
4480 | */
|
4481 | host?: boolean;
|
4482 | }
|
4483 |
|
4484 | /**
|
4485 | * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.
|
4486 | *
|
4487 | * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a
|
4488 | * project.
|
4489 | *
|
4490 | * @publicApi
|
4491 | */
|
4492 | export declare const INJECTOR: InjectionToken<Injector>;
|
4493 |
|
4494 | /**
|
4495 | * Concrete injectors implement this interface. Injectors are configured
|
4496 | * with [providers](guide/glossary#provider) that associate
|
4497 | * dependencies of various types with [injection tokens](guide/glossary#di-token).
|
4498 | *
|
4499 | * @see ["DI Providers"](guide/dependency-injection-providers).
|
4500 | * @see `StaticProvider`
|
4501 | *
|
4502 | * @usageNotes
|
4503 | *
|
4504 | * The following example creates a service injector instance.
|
4505 | *
|
4506 | * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}
|
4507 | *
|
4508 | * ### Usage example
|
4509 | *
|
4510 | * {@example core/di/ts/injector_spec.ts region='Injector'}
|
4511 | *
|
4512 | * `Injector` returns itself when given `Injector` as a token:
|
4513 | *
|
4514 | * {@example core/di/ts/injector_spec.ts region='injectInjector'}
|
4515 | *
|
4516 | * @publicApi
|
4517 | */
|
4518 | export declare abstract class Injector {
|
4519 | static THROW_IF_NOT_FOUND: {};
|
4520 | static NULL: Injector;
|
4521 | /**
|
4522 | * Internal note on the `options?: InjectOptions|InjectFlags` override of the `get`
|
4523 | * method: consider dropping the `InjectFlags` part in one of the major versions.
|
4524 | * It can **not** be done in minor/patch, since it's breaking for custom injectors
|
4525 | * that only implement the old `InjectorFlags` interface.
|
4526 | */
|
4527 | /**
|
4528 | * Retrieves an instance from the injector based on the provided token.
|
4529 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
4530 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
4531 | */
|
4532 | abstract get<T>(token: ProviderToken<T>, notFoundValue: undefined, options: InjectOptions & {
|
4533 | optional?: false;
|
4534 | }): T;
|
4535 | /**
|
4536 | * Retrieves an instance from the injector based on the provided token.
|
4537 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
4538 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
4539 | */
|
4540 | abstract get<T>(token: ProviderToken<T>, notFoundValue: null | undefined, options: InjectOptions): T | null;
|
4541 | /**
|
4542 | * Retrieves an instance from the injector based on the provided token.
|
4543 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
4544 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
4545 | */
|
4546 | abstract get<T>(token: ProviderToken<T>, notFoundValue?: T, options?: InjectOptions | InjectFlags): T;
|
4547 | /**
|
4548 | * Retrieves an instance from the injector based on the provided token.
|
4549 | * @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
4550 | * @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
4551 | * @deprecated use object-based flags (`InjectOptions`) instead.
|
4552 | */
|
4553 | abstract get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
4554 | /**
|
4555 | * @deprecated from v4.0.0 use ProviderToken<T>
|
4556 | * @suppress {duplicate}
|
4557 | */
|
4558 | abstract get(token: any, notFoundValue?: any): any;
|
4559 | /**
|
4560 | * @deprecated from v5 use the new signature Injector.create(options)
|
4561 | */
|
4562 | static create(providers: StaticProvider[], parent?: Injector): Injector;
|
4563 | /**
|
4564 | * Creates a new injector instance that provides one or more dependencies,
|
4565 | * according to a given type or types of `StaticProvider`.
|
4566 | *
|
4567 | * @param options An object with the following properties:
|
4568 | * * `providers`: An array of providers of the [StaticProvider type](api/core/StaticProvider).
|
4569 | * * `parent`: (optional) A parent injector.
|
4570 | * * `name`: (optional) A developer-defined identifying name for the new injector.
|
4571 | *
|
4572 | * @returns The new injector instance.
|
4573 | *
|
4574 | */
|
4575 | static create(options: {
|
4576 | providers: StaticProvider[];
|
4577 | parent?: Injector;
|
4578 | name?: string;
|
4579 | }): Injector;
|
4580 | /** @nocollapse */
|
4581 | static ɵprov: unknown;
|
4582 | }
|
4583 |
|
4584 | declare const INJECTOR_2 = 9;
|
4585 |
|
4586 | declare type InjectorScope = 'root' | 'platform' | 'environment';
|
4587 |
|
4588 | /**
|
4589 | * A type which has an `InjectorDef` static field.
|
4590 | *
|
4591 | * `InjectorTypes` can be used to configure a `StaticInjector`.
|
4592 | *
|
4593 | * This is an opaque type whose structure is highly version dependent. Do not rely on any
|
4594 | * properties.
|
4595 | *
|
4596 | * @publicApi
|
4597 | */
|
4598 | export declare interface InjectorType<T> extends Type<T> {
|
4599 | ɵfac?: unknown;
|
4600 | ɵinj: unknown;
|
4601 | }
|
4602 |
|
4603 | /**
|
4604 | * Describes the `InjectorDef` equivalent of a `ModuleWithProviders`, an `InjectorType` with an
|
4605 | * associated array of providers.
|
4606 | *
|
4607 | * Objects of this type can be listed in the imports section of an `InjectorDef`.
|
4608 | *
|
4609 | * NOTE: This is a private type and should not be exported
|
4610 | */
|
4611 | declare interface InjectorTypeWithProviders<T> {
|
4612 | ngModule: InjectorType<T>;
|
4613 | providers?: (Type<any> | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | EnvironmentProviders | any[])[];
|
4614 | }
|
4615 |
|
4616 | /**
|
4617 | * Type of metadata for an `Input` property.
|
4618 | *
|
4619 | * @publicApi
|
4620 | */
|
4621 | export declare interface Input {
|
4622 | /**
|
4623 | * The name of the DOM property to which the input property is bound.
|
4624 | */
|
4625 | alias?: string;
|
4626 | /**
|
4627 | * Whether the input is required for the directive to function.
|
4628 | */
|
4629 | required?: boolean;
|
4630 | }
|
4631 |
|
4632 | /**
|
4633 | * @Annotation
|
4634 | * @publicApi
|
4635 | */
|
4636 | export declare const Input: InputDecorator;
|
4637 |
|
4638 | /**
|
4639 | * @publicApi
|
4640 | */
|
4641 | export declare interface InputDecorator {
|
4642 | /**
|
4643 | * Decorator that marks a class field as an input property and supplies configuration metadata.
|
4644 | * The input property is bound to a DOM property in the template. During change detection,
|
4645 | * Angular automatically updates the data property with the DOM property's value.
|
4646 | *
|
4647 | * @usageNotes
|
4648 | *
|
4649 | * You can supply an optional name to use in templates when the
|
4650 | * component is instantiated, that maps to the
|
4651 | * name of the bound property. By default, the original
|
4652 | * name of the bound property is used for input binding.
|
4653 | *
|
4654 | * The following example creates a component with two input properties,
|
4655 | * one of which is given a special binding name.
|
4656 | *
|
4657 | * ```typescript
|
4658 | * @Component({
|
4659 | * selector: 'bank-account',
|
4660 | * template: `
|
4661 | * Bank Name: {{bankName}}
|
4662 | * Account Id: {{id}}
|
4663 | * `
|
4664 | * })
|
4665 | * class BankAccount {
|
4666 | *
|
4667 | * @Input() bankName: string;
|
4668 | *
|
4669 | *
|
4670 | * @Input('account-id') id: string;
|
4671 | *
|
4672 | *
|
4673 | * normalizedBankName: string;
|
4674 | * }
|
4675 | *
|
4676 | * @Component({
|
4677 | * selector: 'app',
|
4678 | * template: `
|
4679 | * <bank-account bankName="RBC" account-id="4747"></bank-account>
|
4680 | * `
|
4681 | * })
|
4682 | * class App {}
|
4683 | * ```
|
4684 | *
|
4685 | * @see [Input and Output properties](guide/inputs-outputs)
|
4686 | */
|
4687 | (arg?: string | Input): any;
|
4688 | new (arg?: string | Input): any;
|
4689 | }
|
4690 |
|
4691 | /**
|
4692 | * See `TNode.insertBeforeIndex`
|
4693 | */
|
4694 | declare type InsertBeforeIndex = null | number | number[];
|
4695 |
|
4696 | declare interface InternalNgModuleRef<T> extends NgModuleRef<T> {
|
4697 | _bootstrapComponents: Type<any>[];
|
4698 | }
|
4699 |
|
4700 | declare interface InternalViewRef extends ViewRef {
|
4701 | detachFromAppRef(): void;
|
4702 | attachToAppRef(appRef: ViewRefTracker): void;
|
4703 | }
|
4704 |
|
4705 |
|
4706 | /**
|
4707 | * Returns whether Angular is in development mode.
|
4708 | *
|
4709 | * By default, this is true, unless `enableProdMode` is invoked prior to calling this method or the
|
4710 | * application is built using the Angular CLI with the `optimization` option.
|
4711 | * @see {@link cli/build ng build}
|
4712 | *
|
4713 | * @publicApi
|
4714 | */
|
4715 | export declare function isDevMode(): boolean;
|
4716 |
|
4717 | /**
|
4718 | * Checks if the given `value` is a reactive `Signal`.
|
4719 | *
|
4720 | * @developerPreview
|
4721 | */
|
4722 | export declare function isSignal(value: unknown): value is Signal<unknown>;
|
4723 |
|
4724 | /**
|
4725 | * Checks whether a given Component, Directive or Pipe is marked as standalone.
|
4726 | * This will return false if passed anything other than a Component, Directive, or Pipe class
|
4727 | * See [this guide](/guide/standalone-components) for additional information:
|
4728 | *
|
4729 | * @param type A reference to a Component, Directive or Pipe.
|
4730 | * @publicApi
|
4731 | */
|
4732 | export declare function isStandalone(type: Type<unknown>): boolean;
|
4733 |
|
4734 | /**
|
4735 | * Record representing the item change information.
|
4736 | *
|
4737 | * @publicApi
|
4738 | */
|
4739 | export declare interface IterableChangeRecord<V> {
|
4740 | /** Current index of the item in `Iterable` or null if removed. */
|
4741 | readonly currentIndex: number | null;
|
4742 | /** Previous index of the item in `Iterable` or null if added. */
|
4743 | readonly previousIndex: number | null;
|
4744 | /** The item. */
|
4745 | readonly item: V;
|
4746 | /** Track by identity as computed by the `TrackByFunction`. */
|
4747 | readonly trackById: any;
|
4748 | }
|
4749 |
|
4750 | declare class IterableChangeRecord_<V> implements IterableChangeRecord<V> {
|
4751 | item: V;
|
4752 | trackById: any;
|
4753 | currentIndex: number | null;
|
4754 | previousIndex: number | null;
|
4755 | constructor(item: V, trackById: any);
|
4756 | }
|
4757 |
|
4758 | /**
|
4759 | * An object describing the changes in the `Iterable` collection since last time
|
4760 | * `IterableDiffer#diff()` was invoked.
|
4761 | *
|
4762 | * @publicApi
|
4763 | */
|
4764 | export declare interface IterableChanges<V> {
|
4765 | /**
|
4766 | * Iterate over all changes. `IterableChangeRecord` will contain information about changes
|
4767 | * to each item.
|
4768 | */
|
4769 | forEachItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
4770 | /**
|
4771 | * Iterate over a set of operations which when applied to the original `Iterable` will produce the
|
4772 | * new `Iterable`.
|
4773 | *
|
4774 | * NOTE: These are not necessarily the actual operations which were applied to the original
|
4775 | * `Iterable`, rather these are a set of computed operations which may not be the same as the
|
4776 | * ones applied.
|
4777 | *
|
4778 | * @param record A change which needs to be applied
|
4779 | * @param previousIndex The `IterableChangeRecord#previousIndex` of the `record` refers to the
|
4780 | * original `Iterable` location, where as `previousIndex` refers to the transient location
|
4781 | * of the item, after applying the operations up to this point.
|
4782 | * @param currentIndex The `IterableChangeRecord#currentIndex` of the `record` refers to the
|
4783 | * original `Iterable` location, where as `currentIndex` refers to the transient location
|
4784 | * of the item, after applying the operations up to this point.
|
4785 | */
|
4786 | forEachOperation(fn: (record: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void): void;
|
4787 | /**
|
4788 | * Iterate over changes in the order of original `Iterable` showing where the original items
|
4789 | * have moved.
|
4790 | */
|
4791 | forEachPreviousItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
4792 | /** Iterate over all added items. */
|
4793 | forEachAddedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
4794 | /** Iterate over all moved items. */
|
4795 | forEachMovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
4796 | /** Iterate over all removed items. */
|
4797 | forEachRemovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
4798 | /**
|
4799 | * Iterate over all items which had their identity (as computed by the `TrackByFunction`)
|
4800 | * changed.
|
4801 | */
|
4802 | forEachIdentityChange(fn: (record: IterableChangeRecord<V>) => void): void;
|
4803 | }
|
4804 |
|
4805 | /**
|
4806 | * A strategy for tracking changes over time to an iterable. Used by {@link NgForOf} to
|
4807 | * respond to changes in an iterable by effecting equivalent changes in the DOM.
|
4808 | *
|
4809 | * @publicApi
|
4810 | */
|
4811 | export declare interface IterableDiffer<V> {
|
4812 | /**
|
4813 | * Compute a difference between the previous state and the new `object` state.
|
4814 | *
|
4815 | * @param object containing the new value.
|
4816 | * @returns an object describing the difference. The return value is only valid until the next
|
4817 | * `diff()` invocation.
|
4818 | */
|
4819 | diff(object: NgIterable<V> | undefined | null): IterableChanges<V> | null;
|
4820 | }
|
4821 |
|
4822 | /**
|
4823 | * Provides a factory for {@link IterableDiffer}.
|
4824 | *
|
4825 | * @publicApi
|
4826 | */
|
4827 | export declare interface IterableDifferFactory {
|
4828 | supports(objects: any): boolean;
|
4829 | create<V>(trackByFn?: TrackByFunction<V>): IterableDiffer<V>;
|
4830 | }
|
4831 |
|
4832 | /**
|
4833 | * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
|
4834 | *
|
4835 | * @publicApi
|
4836 | */
|
4837 | export declare class IterableDiffers {
|
4838 | private factories;
|
4839 | /** @nocollapse */
|
4840 | static ɵprov: unknown;
|
4841 | constructor(factories: IterableDifferFactory[]);
|
4842 | static create(factories: IterableDifferFactory[], parent?: IterableDiffers): IterableDiffers;
|
4843 | /**
|
4844 | * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the
|
4845 | * inherited {@link IterableDiffers} instance with the provided factories and return a new
|
4846 | * {@link IterableDiffers} instance.
|
4847 | *
|
4848 | * @usageNotes
|
4849 | * ### Example
|
4850 | *
|
4851 | * The following example shows how to extend an existing list of factories,
|
4852 | * which will only be applied to the injector for this component and its children.
|
4853 | * This step is all that's required to make a new {@link IterableDiffer} available.
|
4854 | *
|
4855 | * ```
|
4856 | * @Component({
|
4857 | * viewProviders: [
|
4858 | * IterableDiffers.extend([new ImmutableListDiffer()])
|
4859 | * ]
|
4860 | * })
|
4861 | * ```
|
4862 | */
|
4863 | static extend(factories: IterableDifferFactory[]): StaticProvider;
|
4864 | find(iterable: any): IterableDifferFactory;
|
4865 | }
|
4866 |
|
4867 | /**
|
4868 | * The existence of this constant (in this particular file) informs the Angular compiler that the
|
4869 | * current program is actually @angular/core, which needs to be compiled specially.
|
4870 | */
|
4871 | declare const ITS_JUST_ANGULAR = true;
|
4872 |
|
4873 | /**
|
4874 | * `KeyValueArray` is an array where even positions contain keys and odd positions contain values.
|
4875 | *
|
4876 | * `KeyValueArray` provides a very efficient way of iterating over its contents. For small
|
4877 | * sets (~10) the cost of binary searching an `KeyValueArray` has about the same performance
|
4878 | * characteristics that of a `Map` with significantly better memory footprint.
|
4879 | *
|
4880 | * If used as a `Map` the keys are stored in alphabetical order so that they can be binary searched
|
4881 | * for retrieval.
|
4882 | *
|
4883 | * See: `keyValueArraySet`, `keyValueArrayGet`, `keyValueArrayIndexOf`, `keyValueArrayDelete`.
|
4884 | */
|
4885 | declare interface KeyValueArray<VALUE> extends Array<VALUE | string> {
|
4886 | __brand__: 'array-map';
|
4887 | }
|
4888 |
|
4889 | /**
|
4890 | * Record representing the item change information.
|
4891 | *
|
4892 | * @publicApi
|
4893 | */
|
4894 | export declare interface KeyValueChangeRecord<K, V> {
|
4895 | /**
|
4896 | * Current key in the Map.
|
4897 | */
|
4898 | readonly key: K;
|
4899 | /**
|
4900 | * Current value for the key or `null` if removed.
|
4901 | */
|
4902 | readonly currentValue: V | null;
|
4903 | /**
|
4904 | * Previous value for the key or `null` if added.
|
4905 | */
|
4906 | readonly previousValue: V | null;
|
4907 | }
|
4908 |
|
4909 | /**
|
4910 | * An object describing the changes in the `Map` or `{[k:string]: string}` since last time
|
4911 | * `KeyValueDiffer#diff()` was invoked.
|
4912 | *
|
4913 | * @publicApi
|
4914 | */
|
4915 | export declare interface KeyValueChanges<K, V> {
|
4916 | /**
|
4917 | * Iterate over all changes. `KeyValueChangeRecord` will contain information about changes
|
4918 | * to each item.
|
4919 | */
|
4920 | forEachItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
|
4921 | /**
|
4922 | * Iterate over changes in the order of original Map showing where the original items
|
4923 | * have moved.
|
4924 | */
|
4925 | forEachPreviousItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
|
4926 | /**
|
4927 | * Iterate over all keys for which values have changed.
|
4928 | */
|
4929 | forEachChangedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
|
4930 | /**
|
4931 | * Iterate over all added items.
|
4932 | */
|
4933 | forEachAddedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
|
4934 | /**
|
4935 | * Iterate over all removed items.
|
4936 | */
|
4937 | forEachRemovedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void;
|
4938 | }
|
4939 |
|
4940 | /**
|
4941 | * A differ that tracks changes made to an object over time.
|
4942 | *
|
4943 | * @publicApi
|
4944 | */
|
4945 | export declare interface KeyValueDiffer<K, V> {
|
4946 | /**
|
4947 | * Compute a difference between the previous state and the new `object` state.
|
4948 | *
|
4949 | * @param object containing the new value.
|
4950 | * @returns an object describing the difference. The return value is only valid until the next
|
4951 | * `diff()` invocation.
|
4952 | */
|
4953 | diff(object: Map<K, V>): KeyValueChanges<K, V> | null;
|
4954 | /**
|
4955 | * Compute a difference between the previous state and the new `object` state.
|
4956 | *
|
4957 | * @param object containing the new value.
|
4958 | * @returns an object describing the difference. The return value is only valid until the next
|
4959 | * `diff()` invocation.
|
4960 | */
|
4961 | diff(object: {
|
4962 | [key: string]: V;
|
4963 | }): KeyValueChanges<string, V> | null;
|
4964 | }
|
4965 |
|
4966 | /**
|
4967 | * Provides a factory for {@link KeyValueDiffer}.
|
4968 | *
|
4969 | * @publicApi
|
4970 | */
|
4971 | export declare interface KeyValueDifferFactory {
|
4972 | /**
|
4973 | * Test to see if the differ knows how to diff this kind of object.
|
4974 | */
|
4975 | supports(objects: any): boolean;
|
4976 | /**
|
4977 | * Create a `KeyValueDiffer`.
|
4978 | */
|
4979 | create<K, V>(): KeyValueDiffer<K, V>;
|
4980 | }
|
4981 |
|
4982 | /**
|
4983 | * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
|
4984 | *
|
4985 | * @publicApi
|
4986 | */
|
4987 | export declare class KeyValueDiffers {
|
4988 | /** @nocollapse */
|
4989 | static ɵprov: unknown;
|
4990 | /**
|
4991 | * @deprecated v4.0.0 - Should be private.
|
4992 | */
|
4993 | factories: KeyValueDifferFactory[];
|
4994 | constructor(factories: KeyValueDifferFactory[]);
|
4995 | static create<S>(factories: KeyValueDifferFactory[], parent?: KeyValueDiffers): KeyValueDiffers;
|
4996 | /**
|
4997 | * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the
|
4998 | * inherited {@link KeyValueDiffers} instance with the provided factories and return a new
|
4999 | * {@link KeyValueDiffers} instance.
|
5000 | *
|
5001 | * @usageNotes
|
5002 | * ### Example
|
5003 | *
|
5004 | * The following example shows how to extend an existing list of factories,
|
5005 | * which will only be applied to the injector for this component and its children.
|
5006 | * This step is all that's required to make a new {@link KeyValueDiffer} available.
|
5007 | *
|
5008 | * ```
|
5009 | * @Component({
|
5010 | * viewProviders: [
|
5011 | * KeyValueDiffers.extend([new ImmutableMapDiffer()])
|
5012 | * ]
|
5013 | * })
|
5014 | * ```
|
5015 | */
|
5016 | static extend<S>(factories: KeyValueDifferFactory[]): StaticProvider;
|
5017 | find(kv: any): KeyValueDifferFactory;
|
5018 | }
|
5019 |
|
5020 | /**
|
5021 | * The state associated with a container.
|
5022 | *
|
5023 | * This is an array so that its structure is closer to LView. This helps
|
5024 | * when traversing the view tree (which is a mix of containers and component
|
5025 | * views), so we can jump to viewOrContainer[NEXT] in the same way regardless
|
5026 | * of type.
|
5027 | */
|
5028 | declare interface LContainer extends Array<any> {
|
5029 | /**
|
5030 | * The host element of this LContainer.
|
5031 | *
|
5032 | * The host could be an LView if this container is on a component node.
|
5033 | * In that case, the component LView is its HOST.
|
5034 | */
|
5035 | readonly [HOST]: RElement | RComment | LView;
|
5036 | /**
|
5037 | * This is a type field which allows us to differentiate `LContainer` from `StylingContext` in an
|
5038 | * efficient way. The value is always set to `true`
|
5039 | */
|
5040 | [TYPE]: true;
|
5041 | /**
|
5042 | * Flag to signify that this `LContainer` may have transplanted views which need to be change
|
5043 | * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
5044 | *
|
5045 | * This flag, once set, is never unset for the `LContainer`.
|
5046 | */
|
5047 | [HAS_TRANSPLANTED_VIEWS]: boolean;
|
5048 | /**
|
5049 | * Access to the parent view is necessary so we can propagate back
|
5050 | * up from inside a container to parent[NEXT].
|
5051 | */
|
5052 | [PARENT]: LView;
|
5053 | /**
|
5054 | * This allows us to jump from a container to a sibling container or component
|
5055 | * view with the same parent, so we can remove listeners efficiently.
|
5056 | */
|
5057 | [NEXT]: LView | LContainer | null;
|
5058 | /**
|
5059 | * The number of direct transplanted views which need a refresh or have descendants themselves
|
5060 | * that need a refresh but have not marked their ancestors as Dirty. This tells us that during
|
5061 | * change detection we should still descend to find those children to refresh, even if the parents
|
5062 | * are not `Dirty`/`CheckAlways`.
|
5063 | */
|
5064 | [DESCENDANT_VIEWS_TO_REFRESH]: number;
|
5065 | /**
|
5066 | * A collection of views created based on the underlying `<ng-template>` element but inserted into
|
5067 | * a different `LContainer`. We need to track views created from a given declaration point since
|
5068 | * queries collect matches from the embedded view declaration point and _not_ the insertion point.
|
5069 | */
|
5070 | [MOVED_VIEWS]: LView[] | null;
|
5071 | /**
|
5072 | * Pointer to the `TNode` which represents the host of the container.
|
5073 | */
|
5074 | [T_HOST]: TNode;
|
5075 | /** The comment element that serves as an anchor for this LContainer. */
|
5076 | [NATIVE]: RComment;
|
5077 | /**
|
5078 | * Array of `ViewRef`s used by any `ViewContainerRef`s that point to this container.
|
5079 | *
|
5080 | * This is lazily initialized by `ViewContainerRef` when the first view is inserted.
|
5081 | *
|
5082 | * NOTE: This is stored as `any[]` because render3 should really not be aware of `ViewRef` and
|
5083 | * doing so creates circular dependency.
|
5084 | */
|
5085 | [VIEW_REFS]: unknown[] | null;
|
5086 | /**
|
5087 | * Array of dehydrated views within this container.
|
5088 | *
|
5089 | * This information is used during the hydration process on the client.
|
5090 | * The hydration logic tries to find a matching dehydrated view, "claim" it
|
5091 | * and use this information to do further matching. After that, this "claimed"
|
5092 | * view is removed from the list. The remaining "unclaimed" views are
|
5093 | * "garbage-collected" later on, i.e. removed from the DOM once the hydration
|
5094 | * logic finishes.
|
5095 | */
|
5096 | [DEHYDRATED_VIEWS]: DehydratedContainerView[] | null;
|
5097 | }
|
5098 |
|
5099 | /**
|
5100 | * Provide this token to set the locale of your application.
|
5101 | * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
|
5102 | * DecimalPipe and PercentPipe) and by ICU expressions.
|
5103 | *
|
5104 | * See the [i18n guide](guide/i18n-common-locale-id) for more information.
|
5105 | *
|
5106 | * @usageNotes
|
5107 | * ### Example
|
5108 | *
|
5109 | * ```typescript
|
5110 | * import { LOCALE_ID } from '@angular/core';
|
5111 | * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
5112 | * import { AppModule } from './app/app.module';
|
5113 | *
|
5114 | * platformBrowserDynamic().bootstrapModule(AppModule, {
|
5115 | * providers: [{provide: LOCALE_ID, useValue: 'en-US' }]
|
5116 | * });
|
5117 | * ```
|
5118 | *
|
5119 | * @publicApi
|
5120 | */
|
5121 | export declare const LOCALE_ID: InjectionToken<string>;
|
5122 |
|
5123 | /**
|
5124 | * Type for a function that extracts a value for a local refs.
|
5125 | * Example:
|
5126 | * - `<div #nativeDivEl>` - `nativeDivEl` should point to the native `<div>` element;
|
5127 | * - `<ng-template #tplRef>` - `tplRef` should point to the `TemplateRef` instance;
|
5128 | */
|
5129 | declare type LocalRefExtractor = (tNode: TNodeWithLocalRefs, currentView: LView) => any;
|
5130 |
|
5131 | /**
|
5132 | * lQueries represent a collection of individual LQuery objects tracked in a given view.
|
5133 | */
|
5134 | declare interface LQueries {
|
5135 | /**
|
5136 | * A collection of queries tracked in a given view.
|
5137 | */
|
5138 | queries: LQuery<any>[];
|
5139 | /**
|
5140 | * A method called when a new embedded view is created. As a result a set of LQueries applicable
|
5141 | * for a new embedded view is instantiated (cloned) from the declaration view.
|
5142 | * @param tView
|
5143 | */
|
5144 | createEmbeddedView(tView: TView): LQueries | null;
|
5145 | /**
|
5146 | * A method called when an embedded view is inserted into a container. As a result all impacted
|
5147 | * `LQuery` objects (and associated `QueryList`) are marked as dirty.
|
5148 | * @param tView
|
5149 | */
|
5150 | insertView(tView: TView): void;
|
5151 | /**
|
5152 | * A method called when an embedded view is detached from a container. As a result all impacted
|
5153 | * `LQuery` objects (and associated `QueryList`) are marked as dirty.
|
5154 | * @param tView
|
5155 | */
|
5156 | detachView(tView: TView): void;
|
5157 | }
|
5158 |
|
5159 | /**
|
5160 | * An interface that represents query-related information specific to a view instance. Most notably
|
5161 | * it contains:
|
5162 | * - materialized query matches;
|
5163 | * - a pointer to a QueryList where materialized query results should be reported.
|
5164 | */
|
5165 | declare interface LQuery<T> {
|
5166 | /**
|
5167 | * Materialized query matches for a given view only (!). Results are initialized lazily so the
|
5168 | * array of matches is set to `null` initially.
|
5169 | */
|
5170 | matches: (T | null)[] | null;
|
5171 | /**
|
5172 | * A QueryList where materialized query results should be reported.
|
5173 | */
|
5174 | queryList: QueryList<T>;
|
5175 | /**
|
5176 | * Clones an LQuery for an embedded view. A cloned query shares the same `QueryList` but has a
|
5177 | * separate collection of materialized matches.
|
5178 | */
|
5179 | clone(): LQuery<T>;
|
5180 | /**
|
5181 | * Called when an embedded view, impacting results of this query, is inserted or removed.
|
5182 | */
|
5183 | setDirty(): void;
|
5184 | }
|
5185 |
|
5186 | /**
|
5187 | * `LView` stores all of the information needed to process the instructions as
|
5188 | * they are invoked from the template. Each embedded view and component view has its
|
5189 | * own `LView`. When processing a particular view, we set the `viewData` to that
|
5190 | * `LView`. When that view is done processing, the `viewData` is set back to
|
5191 | * whatever the original `viewData` was before (the parent `LView`).
|
5192 | *
|
5193 | * Keeping separate state for each view facilities view insertion / deletion, so we
|
5194 | * don't have to edit the data array based on which views are present.
|
5195 | */
|
5196 | declare interface LView<T = unknown> extends Array<any> {
|
5197 | /**
|
5198 | * The node into which this `LView` is inserted.
|
5199 | */
|
5200 | [HOST]: RElement | null;
|
5201 | /**
|
5202 | * The static data for this view. We need a reference to this so we can easily walk up the
|
5203 | * node tree in DI and get the TView.data array associated with a node (where the
|
5204 | * directive defs are stored).
|
5205 | */
|
5206 | readonly [TVIEW]: TView;
|
5207 | /** Flags for this view. See LViewFlags for more info. */
|
5208 | [FLAGS]: LViewFlags;
|
5209 | /**
|
5210 | * This may store an {@link LView} or {@link LContainer}.
|
5211 | *
|
5212 | * `LView` - The parent view. This is needed when we exit the view and must restore the previous
|
5213 | * LView. Without this, the render method would have to keep a stack of
|
5214 | * views as it is recursively rendering templates.
|
5215 | *
|
5216 | * `LContainer` - The current view is part of a container, and is an embedded view.
|
5217 | */
|
5218 | [PARENT]: LView | LContainer | null;
|
5219 | /**
|
5220 | *
|
5221 | * The next sibling LView or LContainer.
|
5222 | *
|
5223 | * Allows us to propagate between sibling view states that aren't in the same
|
5224 | * container. Embedded views already have a node.next, but it is only set for
|
5225 | * views in the same container. We need a way to link component views and views
|
5226 | * across containers as well.
|
5227 | */
|
5228 | [NEXT]: LView | LContainer | null;
|
5229 | /** Queries active for this view - nodes from a view are reported to those queries. */
|
5230 | [QUERIES]: LQueries | null;
|
5231 | /**
|
5232 | * Store the `TNode` of the location where the current `LView` is inserted into.
|
5233 | *
|
5234 | * Given:
|
5235 | * ```
|
5236 | * <div>
|
5237 | * <ng-template><span></span></ng-template>
|
5238 | * </div>
|
5239 | * ```
|
5240 | *
|
5241 | * We end up with two `TView`s.
|
5242 | * - `parent` `TView` which contains `<div><!-- anchor --></div>`
|
5243 | * - `child` `TView` which contains `<span></span>`
|
5244 | *
|
5245 | * Typically the `child` is inserted into the declaration location of the `parent`, but it can be
|
5246 | * inserted anywhere. Because it can be inserted anywhere it is not possible to store the
|
5247 | * insertion information in the `TView` and instead we must store it in the `LView[T_HOST]`.
|
5248 | *
|
5249 | * So to determine where is our insertion parent we would execute:
|
5250 | * ```
|
5251 | * const parentLView = lView[PARENT];
|
5252 | * const parentTNode = lView[T_HOST];
|
5253 | * const insertionParent = parentLView[parentTNode.index];
|
5254 | * ```
|
5255 | *
|
5256 | *
|
5257 | * If `null`, this is the root view of an application (root component is in this view) and it has
|
5258 | * no parents.
|
5259 | */
|
5260 | [T_HOST]: TNode | null;
|
5261 | |
5262 |
|
5263 |
|
5264 |
|
5265 |
|
5266 |
|
5267 |
|
5268 |
|
5269 |
|
5270 |
|
5271 |
|
5272 |
|
5273 | [CLEANUP]: any[] | null;
|
5274 | |
5275 |
|
5276 |
|
5277 |
|
5278 |
|
5279 |
|
5280 |
|
5281 | [CONTEXT]: T;
|
5282 |
|
5283 | readonly [INJECTOR_2]: Injector | null;
|
5284 | |
5285 |
|
5286 |
|
5287 | [ENVIRONMENT]: LViewEnvironment;
|
5288 |
|
5289 | [RENDERER]: Renderer;
|
5290 | |
5291 |
|
5292 |
|
5293 |
|
5294 |
|
5295 |
|
5296 |
|
5297 | [CHILD_HEAD]: LView | LContainer | null;
|
5298 | |
5299 |
|
5300 |
|
5301 |
|
5302 |
|
5303 |
|
5304 | [CHILD_TAIL]: LView | LContainer | null;
|
5305 | |
5306 |
|
5307 |
|
5308 |
|
5309 |
|
5310 |
|
5311 |
|
5312 |
|
5313 |
|
5314 |
|
5315 |
|
5316 |
|
5317 |
|
5318 |
|
5319 |
|
5320 |
|
5321 |
|
5322 |
|
5323 |
|
5324 |
|
5325 |
|
5326 |
|
5327 | [DECLARATION_VIEW]: LView | null;
|
5328 | |
5329 |
|
5330 |
|
5331 |
|
5332 |
|
5333 |
|
5334 |
|
5335 |
|
5336 |
|
5337 |
|
5338 |
|
5339 |
|
5340 |
|
5341 |
|
5342 |
|
5343 |
|
5344 |
|
5345 |
|
5346 |
|
5347 |
|
5348 |
|
5349 |
|
5350 |
|
5351 |
|
5352 |
|
5353 |
|
5354 |
|
5355 |
|
5356 |
|
5357 |
|
5358 |
|
5359 |
|
5360 |
|
5361 |
|
5362 |
|
5363 |
|
5364 |
|
5365 |
|
5366 |
|
5367 |
|
5368 |
|
5369 |
|
5370 |
|
5371 |
|
5372 |
|
5373 |
|
5374 |
|
5375 |
|
5376 |
|
5377 |
|
5378 |
|
5379 |
|
5380 |
|
5381 |
|
5382 |
|
5383 |
|
5384 |
|
5385 |
|
5386 |
|
5387 |
|
5388 |
|
5389 |
|
5390 |
|
5391 |
|
5392 |
|
5393 |
|
5394 |
|
5395 |
|
5396 |
|
5397 | [DECLARATION_COMPONENT_VIEW]: LView;
|
5398 | |
5399 |
|
5400 |
|
5401 |
|
5402 |
|
5403 |
|
5404 |
|
5405 |
|
5406 | [DECLARATION_LCONTAINER]: LContainer | null;
|
5407 | |
5408 |
|
5409 |
|
5410 | [PREORDER_HOOK_FLAGS]: PreOrderHookFlags;
|
5411 | |
5412 |
|
5413 |
|
5414 |
|
5415 |
|
5416 |
|
5417 | [DESCENDANT_VIEWS_TO_REFRESH]: number;
|
5418 |
|
5419 | [ID]: number;
|
5420 | |
5421 |
|
5422 |
|
5423 | [HYDRATION]: DehydratedView | null;
|
5424 | |
5425 |
|
5426 |
|
5427 |
|
5428 | readonly [EMBEDDED_VIEW_INJECTOR]: Injector | null;
|
5429 | |
5430 |
|
5431 |
|
5432 |
|
5433 |
|
5434 | [ON_DESTROY_HOOKS]: Array<() => void> | null;
|
5435 | |
5436 |
|
5437 |
|
5438 |
|
5439 |
|
5440 |
|
5441 | [REACTIVE_TEMPLATE_CONSUMER]: ReactiveLViewConsumer | null;
|
5442 | |
5443 |
|
5444 |
|
5445 | [REACTIVE_HOST_BINDING_CONSUMER]: ReactiveLViewConsumer | null;
|
5446 | }
|
5447 |
|
5448 |
|
5449 |
|
5450 |
|
5451 | declare interface LViewEnvironment {
|
5452 |
|
5453 | rendererFactory: RendererFactory;
|
5454 |
|
5455 | sanitizer: Sanitizer | null;
|
5456 |
|
5457 | effectManager: EffectManager | null;
|
5458 | }
|
5459 |
|
5460 |
|
5461 | declare const enum LViewFlags {
|
5462 |
|
5463 | InitPhaseStateIncrementer = 1,
|
5464 | InitPhaseStateMask = 3,
|
5465 | |
5466 |
|
5467 |
|
5468 |
|
5469 |
|
5470 |
|
5471 |
|
5472 |
|
5473 | CreationMode = 4,
|
5474 | |
5475 |
|
5476 |
|
5477 |
|
5478 |
|
5479 |
|
5480 |
|
5481 | FirstLViewPass = 8,
|
5482 |
|
5483 | CheckAlways = 16,
|
5484 |
|
5485 | HasI18n = 32,
|
5486 |
|
5487 | Dirty = 64,
|
5488 |
|
5489 | Attached = 128,
|
5490 |
|
5491 | Destroyed = 256,
|
5492 |
|
5493 | IsRoot = 512,
|
5494 | |
5495 |
|
5496 |
|
5497 |
|
5498 |
|
5499 |
|
5500 | RefreshView = 1024,
|
5501 |
|
5502 | HasEmbeddedViewInjector = 2048,
|
5503 | |
5504 |
|
5505 |
|
5506 | IndexWithinInitPhaseIncrementer = 4096,
|
5507 | |
5508 |
|
5509 |
|
5510 | IndexWithinInitPhaseShift = 12,
|
5511 | IndexWithinInitPhaseReset = 4095
|
5512 | }
|
5513 |
|
5514 |
|
5515 |
|
5516 |
|
5517 |
|
5518 | export declare function makeEnvironmentProviders(providers: (Provider | EnvironmentProviders)[]): EnvironmentProviders;
|
5519 |
|
5520 |
|
5521 |
|
5522 |
|
5523 |
|
5524 |
|
5525 |
|
5526 |
|
5527 |
|
5528 |
|
5529 |
|
5530 |
|
5531 |
|
5532 |
|
5533 |
|
5534 | export declare function makeStateKey<T = void>(key: string): StateKey<T>;
|
5535 |
|
5536 |
|
5537 |
|
5538 |
|
5539 |
|
5540 |
|
5541 |
|
5542 |
|
5543 |
|
5544 | export declare function mergeApplicationConfig(...configs: ApplicationConfig[]): ApplicationConfig;
|
5545 |
|
5546 |
|
5547 |
|
5548 |
|
5549 |
|
5550 |
|
5551 |
|
5552 |
|
5553 |
|
5554 |
|
5555 |
|
5556 |
|
5557 |
|
5558 |
|
5559 |
|
5560 |
|
5561 |
|
5562 |
|
5563 |
|
5564 |
|
5565 |
|
5566 |
|
5567 |
|
5568 |
|
5569 | export declare enum MissingTranslationStrategy {
|
5570 | Error = 0,
|
5571 | Warning = 1,
|
5572 | Ignore = 2
|
5573 | }
|
5574 |
|
5575 |
|
5576 |
|
5577 |
|
5578 |
|
5579 |
|
5580 |
|
5581 |
|
5582 |
|
5583 |
|
5584 |
|
5585 | export declare class ModuleWithComponentFactories<T> {
|
5586 | ngModuleFactory: NgModuleFactory<T>;
|
5587 | componentFactories: ComponentFactory<any>[];
|
5588 | constructor(ngModuleFactory: NgModuleFactory<T>, componentFactories: ComponentFactory<any>[]);
|
5589 | }
|
5590 |
|
5591 | /**
|
5592 | * A wrapper around an NgModule that associates it with [providers](guide/glossary#provider
|
5593 | * "Definition"). Usage without a generic type is deprecated.
|
5594 | *
|
5595 | * @see [Deprecations](guide/deprecations#modulewithproviders-type-without-a-generic)
|
5596 | *
|
5597 | * @publicApi
|
5598 | */
|
5599 | export declare interface ModuleWithProviders<T> {
|
5600 | ngModule: Type<T>;
|
5601 | providers?: Array<Provider | EnvironmentProviders>;
|
5602 | }
|
5603 |
|
5604 | declare const MOVED_VIEWS = 9;
|
5605 |
|
5606 | declare const MULTIPLIER = "x";
|
5607 |
|
5608 | declare type Mutable<T extends {
|
5609 | [x: string]: any;
|
5610 | }, K extends string> = {
|
5611 | [P in K]: T[P];
|
5612 | };
|
5613 |
|
5614 | declare const NATIVE = 7;
|
5615 |
|
5616 | declare const NEXT = 4;
|
5617 |
|
5618 |
|
5619 |
|
5620 |
|
5621 |
|
5622 |
|
5623 | export declare type NgIterable<T> = Array<T> | Iterable<T>;
|
5624 |
|
5625 |
|
5626 |
|
5627 |
|
5628 |
|
5629 |
|
5630 | export declare interface NgModule {
|
5631 | |
5632 |
|
5633 |
|
5634 |
|
5635 |
|
5636 |
|
5637 |
|
5638 |
|
5639 |
|
5640 |
|
5641 |
|
5642 |
|
5643 |
|
5644 |
|
5645 |
|
5646 |
|
5647 |
|
5648 |
|
5649 |
|
5650 |
|
5651 |
|
5652 |
|
5653 |
|
5654 |
|
5655 |
|
5656 |
|
5657 |
|
5658 |
|
5659 |
|
5660 |
|
5661 |
|
5662 |
|
5663 |
|
5664 |
|
5665 |
|
5666 |
|
5667 |
|
5668 |
|
5669 |
|
5670 |
|
5671 |
|
5672 |
|
5673 |
|
5674 |
|
5675 |
|
5676 |
|
5677 |
|
5678 | providers?: Array<Provider | EnvironmentProviders>;
|
5679 | |
5680 |
|
5681 |
|
5682 |
|
5683 |
|
5684 |
|
5685 |
|
5686 |
|
5687 |
|
5688 |
|
5689 |
|
5690 |
|
5691 |
|
5692 |
|
5693 |
|
5694 |
|
5695 |
|
5696 |
|
5697 |
|
5698 |
|
5699 |
|
5700 |
|
5701 |
|
5702 |
|
5703 |
|
5704 |
|
5705 | declarations?: Array<Type<any> | any[]>;
|
5706 | |
5707 |
|
5708 |
|
5709 |
|
5710 |
|
5711 |
|
5712 |
|
5713 |
|
5714 |
|
5715 |
|
5716 |
|
5717 |
|
5718 |
|
5719 |
|
5720 |
|
5721 |
|
5722 |
|
5723 |
|
5724 |
|
5725 |
|
5726 |
|
5727 |
|
5728 |
|
5729 |
|
5730 |
|
5731 |
|
5732 |
|
5733 | imports?: Array<Type<any> | ModuleWithProviders<{}> | any[]>;
|
5734 | |
5735 |
|
5736 |
|
5737 |
|
5738 |
|
5739 |
|
5740 |
|
5741 |
|
5742 |
|
5743 |
|
5744 |
|
5745 |
|
5746 |
|
5747 |
|
5748 |
|
5749 |
|
5750 |
|
5751 |
|
5752 |
|
5753 |
|
5754 |
|
5755 |
|
5756 |
|
5757 |
|
5758 |
|
5759 |
|
5760 |
|
5761 |
|
5762 |
|
5763 |
|
5764 | exports?: Array<Type<any> | any[]>;
|
5765 | |
5766 |
|
5767 |
|
5768 | bootstrap?: Array<Type<any> | any[]>;
|
5769 | |
5770 |
|
5771 |
|
5772 |
|
5773 |
|
5774 |
|
5775 |
|
5776 |
|
5777 |
|
5778 |
|
5779 | schemas?: Array<SchemaMetadata | any[]>;
|
5780 | |
5781 |
|
5782 |
|
5783 |
|
5784 | id?: string;
|
5785 | |
5786 |
|
5787 |
|
5788 |
|
5789 |
|
5790 |
|
5791 | jit?: true;
|
5792 | }
|
5793 |
|
5794 |
|
5795 |
|
5796 |
|
5797 | export declare const NgModule: NgModuleDecorator;
|
5798 |
|
5799 |
|
5800 |
|
5801 |
|
5802 |
|
5803 |
|
5804 | export declare interface NgModuleDecorator {
|
5805 | |
5806 |
|
5807 |
|
5808 | (obj?: NgModule): TypeDecorator;
|
5809 | new (obj?: NgModule): NgModule;
|
5810 | }
|
5811 |
|
5812 |
|
5813 |
|
5814 |
|
5815 |
|
5816 |
|
5817 |
|
5818 |
|
5819 |
|
5820 |
|
5821 |
|
5822 |
|
5823 | export declare abstract class NgModuleFactory<T> {
|
5824 | abstract get moduleType(): Type<T>;
|
5825 | abstract create(parentInjector: Injector | null): NgModuleRef<T>;
|
5826 | }
|
5827 |
|
5828 |
|
5829 |
|
5830 |
|
5831 |
|
5832 |
|
5833 |
|
5834 | export declare abstract class NgModuleRef<T> {
|
5835 | |
5836 |
|
5837 |
|
5838 | abstract get injector(): EnvironmentInjector;
|
5839 | |
5840 |
|
5841 |
|
5842 |
|
5843 |
|
5844 |
|
5845 |
|
5846 |
|
5847 |
|
5848 |
|
5849 | abstract get componentFactoryResolver(): ComponentFactoryResolver;
|
5850 | |
5851 |
|
5852 |
|
5853 | abstract get instance(): T;
|
5854 | |
5855 |
|
5856 |
|
5857 | abstract destroy(): void;
|
5858 | |
5859 |
|
5860 |
|
5861 | abstract onDestroy(callback: () => void): void;
|
5862 | }
|
5863 |
|
5864 |
|
5865 |
|
5866 |
|
5867 |
|
5868 |
|
5869 | export declare class NgProbeToken {
|
5870 | name: string;
|
5871 | token: any;
|
5872 | constructor(name: string, token: any);
|
5873 | }
|
5874 |
|
5875 | /**
|
5876 | * An injectable service for executing work inside or outside of the Angular zone.
|
5877 | *
|
5878 | * The most common use of this service is to optimize performance when starting a work consisting of
|
5879 | * one or more asynchronous tasks that don't require UI updates or error handling to be handled by
|
5880 | * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks
|
5881 | * can reenter the Angular zone via {@link #run}.
|
5882 | *
|
5883 | * <!-- TODO: add/fix links to:
|
5884 | * - docs explaining zones and the use of zones in Angular and change-detection
|
5885 | * - link to runOutsideAngular/run (throughout this file!)
|
5886 | * -->
|
5887 | *
|
5888 | * @usageNotes
|
5889 | * ### Example
|
5890 | *
|
5891 | * ```
|
5892 | * import {Component, NgZone} from '@angular/core';
|
5893 | * import {NgIf} from '@angular/common';
|
5894 | *
|
5895 | * @Component({
|
5896 | * selector: 'ng-zone-demo',
|
5897 | * template: `
|
5898 | * <h2>Demo: NgZone</h2>
|
5899 | *
|
5900 | * <p>Progress: {{progress}}%</p>
|
5901 | * <p *ngIf="progress >= 100">Done processing {{label}} of Angular zone!</p>
|
5902 | *
|
5903 | * <button (click)="processWithinAngularZone()">Process within Angular zone</button>
|
5904 | * <button (click)="processOutsideOfAngularZone()">Process outside of Angular zone</button>
|
5905 | * `,
|
5906 | * })
|
5907 | * export class NgZoneDemo {
|
5908 | * progress: number = 0;
|
5909 | * label: string;
|
5910 | *
|
5911 | * constructor(private _ngZone: NgZone) {}
|
5912 | *
|
5913 | * // Loop inside the Angular zone
|
5914 | * // so the UI DOES refresh after each setTimeout cycle
|
5915 | * processWithinAngularZone() {
|
5916 | * this.label = 'inside';
|
5917 | * this.progress = 0;
|
5918 | * this._increaseProgress(() => console.log('Inside Done!'));
|
5919 | * }
|
5920 | *
|
5921 | * // Loop outside of the Angular zone
|
5922 | * // so the UI DOES NOT refresh after each setTimeout cycle
|
5923 | * processOutsideOfAngularZone() {
|
5924 | * this.label = 'outside';
|
5925 | * this.progress = 0;
|
5926 | * this._ngZone.runOutsideAngular(() => {
|
5927 | * this._increaseProgress(() => {
|
5928 | * // reenter the Angular zone and display done
|
5929 | * this._ngZone.run(() => { console.log('Outside Done!'); });
|
5930 | * });
|
5931 | * });
|
5932 | * }
|
5933 | *
|
5934 | * _increaseProgress(doneCallback: () => void) {
|
5935 | * this.progress += 1;
|
5936 | * console.log(`Current progress: ${this.progress}%`);
|
5937 | *
|
5938 | * if (this.progress < 100) {
|
5939 | * window.setTimeout(() => this._increaseProgress(doneCallback), 10);
|
5940 | * } else {
|
5941 | * doneCallback();
|
5942 | * }
|
5943 | * }
|
5944 | * }
|
5945 | * ```
|
5946 | *
|
5947 | * @publicApi
|
5948 | */
|
5949 | export declare class NgZone {
|
5950 | readonly hasPendingMacrotasks: boolean;
|
5951 | readonly hasPendingMicrotasks: boolean;
|
5952 | |
5953 |
|
5954 |
|
5955 | readonly isStable: boolean;
|
5956 | |
5957 |
|
5958 |
|
5959 | readonly onUnstable: EventEmitter<any>;
|
5960 | |
5961 |
|
5962 |
|
5963 |
|
5964 |
|
5965 | readonly onMicrotaskEmpty: EventEmitter<any>;
|
5966 | |
5967 |
|
5968 |
|
5969 |
|
5970 |
|
5971 | readonly onStable: EventEmitter<any>;
|
5972 | |
5973 |
|
5974 |
|
5975 | readonly onError: EventEmitter<any>;
|
5976 | constructor({ enableLongStackTrace, shouldCoalesceEventChangeDetection, shouldCoalesceRunChangeDetection }: {
|
5977 | enableLongStackTrace?: boolean | undefined;
|
5978 | shouldCoalesceEventChangeDetection?: boolean | undefined;
|
5979 | shouldCoalesceRunChangeDetection?: boolean | undefined;
|
5980 | });
|
5981 | static isInAngularZone(): boolean;
|
5982 | static assertInAngularZone(): void;
|
5983 | static assertNotInAngularZone(): void;
|
5984 | /**
|
5985 | * Executes the `fn` function synchronously within the Angular zone and returns value returned by
|
5986 | * the function.
|
5987 | *
|
5988 | * Running functions via `run` allows you to reenter Angular zone from a task that was executed
|
5989 | * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
|
5990 | *
|
5991 | * Any future tasks or microtasks scheduled from within this function will continue executing from
|
5992 | * within the Angular zone.
|
5993 | *
|
5994 | * If a synchronous error happens it will be rethrown and not reported via `onError`.
|
5995 | */
|
5996 | run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T;
|
5997 | /**
|
5998 | * Executes the `fn` function synchronously within the Angular zone as a task and returns value
|
5999 | * returned by the function.
|
6000 | *
|
6001 | * Running functions via `run` allows you to reenter Angular zone from a task that was executed
|
6002 | * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
|
6003 | *
|
6004 | * Any future tasks or microtasks scheduled from within this function will continue executing from
|
6005 | * within the Angular zone.
|
6006 | *
|
6007 | * If a synchronous error happens it will be rethrown and not reported via `onError`.
|
6008 | */
|
6009 | runTask<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[], name?: string): T;
|
6010 | /**
|
6011 | * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not
|
6012 | * rethrown.
|
6013 | */
|
6014 | runGuarded<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T;
|
6015 | /**
|
6016 | * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by
|
6017 | * the function.
|
6018 | *
|
6019 | * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do
|
6020 | * work that
|
6021 | * doesn't trigger Angular change-detection or is subject to Angular's error handling.
|
6022 | *
|
6023 | * Any future tasks or microtasks scheduled from within this function will continue executing from
|
6024 | * outside of the Angular zone.
|
6025 | *
|
6026 | * Use {@link #run} to reenter the Angular zone and do work that updates the application model.
|
6027 | */
|
6028 | runOutsideAngular<T>(fn: (...args: any[]) => T): T;
|
6029 | }
|
6030 |
|
6031 | /**
|
6032 | * Used to configure event and run coalescing with `provideZoneChangeDetection`.
|
6033 | *
|
6034 | * @publicApi
|
6035 | *
|
6036 | * @see provideZoneChangeDetection
|
6037 | */
|
6038 | export declare interface NgZoneOptions {
|
6039 | /**
|
6040 | * Optionally specify coalescing event change detections or not.
|
6041 | * Consider the following case.
|
6042 | *
|
6043 | * ```
|
6044 | * <div (click)="doSomething()">
|
6045 | * <button (click)="doSomethingElse()"></button>
|
6046 | * </div>
|
6047 | * ```
|
6048 | *
|
6049 | * When button is clicked, because of the event bubbling, both
|
6050 | * event handlers will be called and 2 change detections will be
|
6051 | * triggered. We can coalesce such kind of events to only trigger
|
6052 | * change detection only once.
|
6053 | *
|
6054 | * By default, this option will be false. So the events will not be
|
6055 | * coalesced and the change detection will be triggered multiple times.
|
6056 | * And if this option be set to true, the change detection will be
|
6057 | * triggered async by scheduling a animation frame. So in the case above,
|
6058 | * the change detection will only be triggered once.
|
6059 | */
|
6060 | eventCoalescing?: boolean;
|
6061 | /**
|
6062 | * Optionally specify if `NgZone#run()` method invocations should be coalesced
|
6063 | * into a single change detection.
|
6064 | *
|
6065 | * Consider the following case.
|
6066 | * ```
|
6067 | * for (let i = 0; i < 10; i ++) {
|
6068 | * ngZone.run(() => {
|
6069 | *
|
6070 | * });
|
6071 | * }
|
6072 | * ```
|
6073 | *
|
6074 | * This case triggers the change detection multiple times.
|
6075 | * With ngZoneRunCoalescing options, all change detections in an event loop trigger only once.
|
6076 | * In addition, the change detection executes in requestAnimation.
|
6077 | *
|
6078 | */
|
6079 | runCoalescing?: boolean;
|
6080 | }
|
6081 |
|
6082 | /**
|
6083 | * Defines a schema that allows any property on any element.
|
6084 | *
|
6085 | * This schema allows you to ignore the errors related to any unknown elements or properties in a
|
6086 | * template. The usage of this schema is generally discouraged because it prevents useful validation
|
6087 | * and may hide real errors in your template. Consider using the `CUSTOM_ELEMENTS_SCHEMA` instead.
|
6088 | *
|
6089 | * @publicApi
|
6090 | */
|
6091 | export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
|
6092 |
|
6093 | declare const NODES = "n";
|
6094 |
|
6095 | declare const NUM_ROOT_NODES = "r";
|
6096 |
|
6097 | declare const ON_DESTROY_HOOKS = 21;
|
6098 |
|
6099 | /**
|
6100 | * @description
|
6101 | * A lifecycle hook that is called when any data-bound property of a directive changes.
|
6102 | * Define an `ngOnChanges()` method to handle the changes.
|
6103 | *
|
6104 | * @see `DoCheck`
|
6105 | * @see `OnInit`
|
6106 | * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
6107 | *
|
6108 | * @usageNotes
|
6109 | * The following snippet shows how a component can implement this interface to
|
6110 | * define an on-changes handler for an input property.
|
6111 | *
|
6112 | * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnChanges'}
|
6113 | *
|
6114 | * @publicApi
|
6115 | */
|
6116 | export declare interface OnChanges {
|
6117 | /**
|
6118 | * A callback method that is invoked immediately after the
|
6119 | * default change detector has checked data-bound properties
|
6120 | * if at least one has changed, and before the view and content
|
6121 | * children are checked.
|
6122 | * @param changes The changed properties.
|
6123 | */
|
6124 | ngOnChanges(changes: SimpleChanges): void;
|
6125 | }
|
6126 |
|
6127 | /**
|
6128 | * A lifecycle hook that is called when a directive, pipe, or service is destroyed.
|
6129 | * Use for any custom cleanup that needs to occur when the
|
6130 | * instance is destroyed.
|
6131 | * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
6132 | *
|
6133 | * @usageNotes
|
6134 | * The following snippet shows how a component can implement this interface
|
6135 | * to define its own custom clean-up method.
|
6136 | *
|
6137 | * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnDestroy'}
|
6138 | *
|
6139 | * @publicApi
|
6140 | */
|
6141 | export declare interface OnDestroy {
|
6142 | /**
|
6143 | * A callback method that performs custom clean-up, invoked immediately
|
6144 | * before a directive, pipe, or service instance is destroyed.
|
6145 | */
|
6146 | ngOnDestroy(): void;
|
6147 | }
|
6148 |
|
6149 | /**
|
6150 | * @description
|
6151 | * A lifecycle hook that is called after Angular has initialized
|
6152 | * all data-bound properties of a directive.
|
6153 | * Define an `ngOnInit()` method to handle any additional initialization tasks.
|
6154 | *
|
6155 | * @see `AfterContentInit`
|
6156 | * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
6157 | *
|
6158 | * @usageNotes
|
6159 | * The following snippet shows how a component can implement this interface to
|
6160 | * define its own initialization method.
|
6161 | *
|
6162 | * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnInit'}
|
6163 | *
|
6164 | * @publicApi
|
6165 | */
|
6166 | export declare interface OnInit {
|
6167 | /**
|
6168 | * A callback method that is invoked immediately after the
|
6169 | * default change detector has checked the directive's
|
6170 | * data-bound properties for the first time,
|
6171 | * and before any of the view or content children have been checked.
|
6172 | * It is invoked only once when the directive is instantiated.
|
6173 | */
|
6174 | ngOnInit(): void;
|
6175 | }
|
6176 |
|
6177 | declare type OpaqueValue = unknown;
|
6178 |
|
6179 | declare interface OpaqueViewState {
|
6180 | '__brand__': 'Brand for OpaqueViewState that nothing will match';
|
6181 | }
|
6182 |
|
6183 | /**
|
6184 | * Type of the Optional metadata.
|
6185 | *
|
6186 | * @publicApi
|
6187 | */
|
6188 | export declare interface Optional {
|
6189 | }
|
6190 |
|
6191 | /**
|
6192 | * Optional decorator and metadata.
|
6193 | *
|
6194 | * @Annotation
|
6195 | * @publicApi
|
6196 | */
|
6197 | export declare const Optional: OptionalDecorator;
|
6198 |
|
6199 | /**
|
6200 | * Type of the Optional decorator / constructor function.
|
6201 | *
|
6202 | * @publicApi
|
6203 | */
|
6204 | export declare interface OptionalDecorator {
|
6205 | /**
|
6206 | * Parameter decorator to be used on constructor parameters,
|
6207 | * which marks the parameter as being an optional dependency.
|
6208 | * The DI framework provides `null` if the dependency is not found.
|
6209 | *
|
6210 | * Can be used together with other parameter decorators
|
6211 | * that modify how dependency injection operates.
|
6212 | *
|
6213 | * @usageNotes
|
6214 | *
|
6215 | * The following code allows the possibility of a `null` result:
|
6216 | *
|
6217 | * <code-example path="core/di/ts/metadata_spec.ts" region="Optional">
|
6218 | * </code-example>
|
6219 | *
|
6220 | * @see ["Dependency Injection Guide"](guide/dependency-injection).
|
6221 | */
|
6222 | (): any;
|
6223 | new (): Optional;
|
6224 | }
|
6225 |
|
6226 | /**
|
6227 | * Type of the Output metadata.
|
6228 | *
|
6229 | * @publicApi
|
6230 | */
|
6231 | export declare interface Output {
|
6232 | /**
|
6233 | * The name of the DOM property to which the output property is bound.
|
6234 | */
|
6235 | alias?: string;
|
6236 | }
|
6237 |
|
6238 | /**
|
6239 | * @Annotation
|
6240 | * @publicApi
|
6241 | */
|
6242 | export declare const Output: OutputDecorator;
|
6243 |
|
6244 | /**
|
6245 | * Type of the Output decorator / constructor function.
|
6246 | *
|
6247 | * @publicApi
|
6248 | */
|
6249 | export declare interface OutputDecorator {
|
6250 | /**
|
6251 | * Decorator that marks a class field as an output property and supplies configuration metadata.
|
6252 | * The DOM property bound to the output property is automatically updated during change detection.
|
6253 | *
|
6254 | * @usageNotes
|
6255 | *
|
6256 | * You can supply an optional name to use in templates when the
|
6257 | * component is instantiated, that maps to the
|
6258 | * name of the bound property. By default, the original
|
6259 | * name of the bound property is used for output binding.
|
6260 | *
|
6261 | * See `Input` decorator for an example of providing a binding name.
|
6262 | *
|
6263 | * @see [Input and Output properties](guide/inputs-outputs)
|
6264 | *
|
6265 | */
|
6266 | (alias?: string): any;
|
6267 | new (alias?: string): any;
|
6268 | }
|
6269 |
|
6270 | /**
|
6271 | * A [DI token](guide/glossary#di-token "DI token definition") that indicates the root directory of
|
6272 | * the application
|
6273 | * @publicApi
|
6274 | */
|
6275 | export declare const PACKAGE_ROOT_URL: InjectionToken<string>;
|
6276 |
|
6277 | declare const PARENT = 3;
|
6278 |
|
6279 | /**
|
6280 | * Type of the Pipe metadata.
|
6281 | *
|
6282 | * @publicApi
|
6283 | */
|
6284 | export declare interface Pipe {
|
6285 | /**
|
6286 | * The pipe name to use in template bindings.
|
6287 | * Typically uses [lowerCamelCase](guide/glossary#case-types)
|
6288 | * because the name cannot contain hyphens.
|
6289 | */
|
6290 | name: string;
|
6291 | /**
|
6292 | * When true, the pipe is pure, meaning that the
|
6293 | * `transform()` method is invoked only when its input arguments
|
6294 | * change. Pipes are pure by default.
|
6295 | *
|
6296 | * If the pipe has internal state (that is, the result
|
6297 | * depends on state other than its arguments), set `pure` to false.
|
6298 | * In this case, the pipe is invoked on each change-detection cycle,
|
6299 | * even if the arguments have not changed.
|
6300 | */
|
6301 | pure?: boolean;
|
6302 | /**
|
6303 | * Angular pipes marked as `standalone` do not need to be declared in an NgModule. Such
|
6304 | * pipes don't depend on any "intermediate context" of an NgModule (ex. configured providers).
|
6305 | *
|
6306 | * More information about standalone components, directives, and pipes can be found in [this
|
6307 | * guide](guide/standalone-components).
|
6308 | */
|
6309 | standalone?: boolean;
|
6310 | }
|
6311 |
|
6312 | /**
|
6313 | * @Annotation
|
6314 | * @publicApi
|
6315 | */
|
6316 | export declare const Pipe: PipeDecorator;
|
6317 |
|
6318 | /**
|
6319 | * Type of the Pipe decorator / constructor function.
|
6320 | *
|
6321 | * @publicApi
|
6322 | */
|
6323 | export declare interface PipeDecorator {
|
6324 | /**
|
6325 | *
|
6326 | * Decorator that marks a class as pipe and supplies configuration metadata.
|
6327 | *
|
6328 | * A pipe class must implement the `PipeTransform` interface.
|
6329 | * For example, if the name is "myPipe", use a template binding expression
|
6330 | * such as the following:
|
6331 | *
|
6332 | * ```
|
6333 | * {{ exp | myPipe }}
|
6334 | * ```
|
6335 | *
|
6336 | * The result of the expression is passed to the pipe's `transform()` method.
|
6337 | *
|
6338 | * A pipe must belong to an NgModule in order for it to be available
|
6339 | * to a template. To make it a member of an NgModule,
|
6340 | * list it in the `declarations` field of the `NgModule` metadata.
|
6341 | *
|
6342 | * @see [Style Guide: Pipe Names](guide/styleguide#02-09)
|
6343 | *
|
6344 | */
|
6345 | (obj: Pipe): TypeDecorator;
|
6346 | /**
|
6347 | * See the `Pipe` decorator.
|
6348 | */
|
6349 | new (obj: Pipe): Pipe;
|
6350 | }
|
6351 |
|
6352 | declare type PipeDefList = ɵPipeDef<any>[];
|
6353 |
|
6354 | /**
|
6355 | * Type used for PipeDefs on component definition.
|
6356 | *
|
6357 | * The function is necessary to be able to support forward declarations.
|
6358 | */
|
6359 | declare type PipeDefListOrFactory = (() => PipeDefList) | PipeDefList;
|
6360 |
|
6361 |
|
6362 | /**
|
6363 | * An interface that is implemented by pipes in order to perform a transformation.
|
6364 | * Angular invokes the `transform` method with the value of a binding
|
6365 | * as the first argument, and any parameters as the second argument in list form.
|
6366 | *
|
6367 | * @usageNotes
|
6368 | *
|
6369 | * In the following example, `TruncatePipe` returns the shortened value with an added ellipses.
|
6370 | *
|
6371 | * <code-example path="core/ts/pipes/simple_truncate.ts" header="simple_truncate.ts"></code-example>
|
6372 | *
|
6373 | * Invoking `{{ 'It was the best of times' | truncate }}` in a template will produce `It was...`.
|
6374 | *
|
6375 | * In the following example, `TruncatePipe` takes parameters that sets the truncated length and the
|
6376 | * string to append with.
|
6377 | *
|
6378 | * <code-example path="core/ts/pipes/truncate.ts" header="truncate.ts"></code-example>
|
6379 | *
|
6380 | * Invoking `{{ 'It was the best of times' | truncate:4:'....' }}` in a template will produce `It
|
6381 | * was the best....`.
|
6382 | *
|
6383 | * @publicApi
|
6384 | */
|
6385 | export declare interface PipeTransform {
|
6386 | transform(value: any, ...args: any[]): any;
|
6387 | }
|
6388 |
|
6389 | /**
|
6390 | * A subclass of `Type` which has a static `ɵpipe`:`PipeDef` field making it
|
6391 | * consumable for rendering.
|
6392 | */
|
6393 | declare interface PipeType<T> extends Type<T> {
|
6394 | ɵpipe: unknown;
|
6395 | }
|
6396 |
|
6397 | /**
|
6398 | * A token that indicates an opaque platform ID.
|
6399 | * @publicApi
|
6400 | */
|
6401 | export declare const PLATFORM_ID: InjectionToken<Object>;
|
6402 |
|
6403 | /**
|
6404 | * A function that is executed when a platform is initialized.
|
6405 | * @publicApi
|
6406 | */
|
6407 | export declare const PLATFORM_INITIALIZER: InjectionToken<(() => void)[]>;
|
6408 |
|
6409 | /**
|
6410 | * This platform has to be included in any other platform
|
6411 | *
|
6412 | * @publicApi
|
6413 | */
|
6414 | export declare const platformCore: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
6415 |
|
6416 |
|
6417 |
|
6418 |
|
6419 |
|
6420 |
|
6421 |
|
6422 |
|
6423 |
|
6424 |
|
6425 | export declare class PlatformRef {
|
6426 | private _injector;
|
6427 | private _modules;
|
6428 | private _destroyListeners;
|
6429 | private _destroyed;
|
6430 | |
6431 |
|
6432 |
|
6433 |
|
6434 |
|
6435 |
|
6436 | bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>, options?: BootstrapOptions): Promise<NgModuleRef<M>>;
|
6437 | |
6438 |
|
6439 |
|
6440 |
|
6441 |
|
6442 |
|
6443 |
|
6444 |
|
6445 |
|
6446 |
|
6447 |
|
6448 |
|
6449 |
|
6450 |
|
6451 |
|
6452 |
|
6453 | bootstrapModule<M>(moduleType: Type<M>, compilerOptions?: (CompilerOptions & BootstrapOptions) | Array<CompilerOptions & BootstrapOptions>): Promise<NgModuleRef<M>>;
|
6454 | private _moduleDoBootstrap;
|
6455 | |
6456 |
|
6457 |
|
6458 | onDestroy(callback: () => void): void;
|
6459 | |
6460 |
|
6461 |
|
6462 |
|
6463 | get injector(): Injector;
|
6464 | |
6465 |
|
6466 |
|
6467 |
|
6468 | destroy(): void;
|
6469 | |
6470 |
|
6471 |
|
6472 | get destroyed(): boolean;
|
6473 | static ɵfac: i0.ɵɵFactoryDeclaration<PlatformRef, never>;
|
6474 | static ɵprov: i0.ɵɵInjectableDeclaration<PlatformRef>;
|
6475 | }
|
6476 |
|
6477 | declare interface PlatformReflectionCapabilities {
|
6478 | factory(type: Type<any>): Function;
|
6479 | hasLifecycleHook(type: any, lcProperty: string): boolean;
|
6480 | |
6481 |
|
6482 |
|
6483 | parameters(type: Type<any>): any[][];
|
6484 | |
6485 |
|
6486 |
|
6487 | annotations(type: Type<any>): any[];
|
6488 | |
6489 |
|
6490 |
|
6491 | propMetadata(typeOrFunc: Type<any>): {
|
6492 | [key: string]: any[];
|
6493 | };
|
6494 | }
|
6495 |
|
6496 |
|
6497 |
|
6498 |
|
6499 |
|
6500 |
|
6501 |
|
6502 | export declare interface Predicate<T> {
|
6503 | (value: T): boolean;
|
6504 | }
|
6505 |
|
6506 | declare const PREORDER_HOOK_FLAGS = 17;
|
6507 |
|
6508 |
|
6509 | declare const enum PreOrderHookFlags {
|
6510 | |
6511 |
|
6512 |
|
6513 |
|
6514 | IndexOfTheNextPreOrderHookMaskMask = 65535,
|
6515 | |
6516 |
|
6517 |
|
6518 | NumberOfInitHooksCalledIncrementer = 65536,
|
6519 | NumberOfInitHooksCalledShift = 16,
|
6520 | NumberOfInitHooksCalledMask = 4294901760
|
6521 | }
|
6522 |
|
6523 |
|
6524 |
|
6525 |
|
6526 |
|
6527 | declare type ProcessProvidersFunction = (providers: Provider[]) => Provider[];
|
6528 |
|
6529 |
|
6530 |
|
6531 |
|
6532 |
|
6533 |
|
6534 |
|
6535 |
|
6536 |
|
6537 | declare type ProjectionSlots = (ɵCssSelectorList | '*')[];
|
6538 |
|
6539 |
|
6540 |
|
6541 |
|
6542 |
|
6543 |
|
6544 |
|
6545 |
|
6546 |
|
6547 |
|
6548 |
|
6549 | declare type PropertyAliases = {
|
6550 | [key: string]: PropertyAliasValue;
|
6551 | };
|
6552 |
|
6553 |
|
6554 |
|
6555 |
|
6556 |
|
6557 |
|
6558 |
|
6559 |
|
6560 |
|
6561 | declare type PropertyAliasValue = (number | string)[];
|
6562 |
|
6563 |
|
6564 |
|
6565 |
|
6566 |
|
6567 |
|
6568 |
|
6569 |
|
6570 |
|
6571 | export declare type Provider = TypeProvider | ValueProvider | ClassProvider | ConstructorProvider | ExistingProvider | FactoryProvider | any[];
|
6572 |
|
6573 |
|
6574 |
|
6575 |
|
6576 |
|
6577 |
|
6578 |
|
6579 |
|
6580 | export declare type ProviderToken<T> = Type<T> | AbstractType<T> | InjectionToken<T>;
|
6581 |
|
6582 |
|
6583 |
|
6584 |
|
6585 |
|
6586 |
|
6587 |
|
6588 |
|
6589 |
|
6590 |
|
6591 |
|
6592 |
|
6593 |
|
6594 |
|
6595 |
|
6596 |
|
6597 |
|
6598 |
|
6599 |
|
6600 |
|
6601 |
|
6602 | export declare function provideZoneChangeDetection(options?: NgZoneOptions): EnvironmentProviders;
|
6603 |
|
6604 |
|
6605 |
|
6606 |
|
6607 |
|
6608 |
|
6609 |
|
6610 | declare interface PublicTestability {
|
6611 | isStable(): boolean;
|
6612 | whenStable(callback: Function, timeout?: number, updateCallback?: Function): void;
|
6613 | findProviders(using: any, provider: string, exactMatch: boolean): any[];
|
6614 | }
|
6615 |
|
6616 | declare const QUERIES = 18;
|
6617 |
|
6618 |
|
6619 |
|
6620 |
|
6621 |
|
6622 |
|
6623 | export declare interface Query {
|
6624 | descendants: boolean;
|
6625 | emitDistinctChangesOnly: boolean;
|
6626 | first: boolean;
|
6627 | read: any;
|
6628 | isViewQuery: boolean;
|
6629 | selector: any;
|
6630 | static?: boolean;
|
6631 | }
|
6632 |
|
6633 |
|
6634 |
|
6635 |
|
6636 |
|
6637 |
|
6638 |
|
6639 |
|
6640 |
|
6641 |
|
6642 |
|
6643 | export declare abstract class Query {
|
6644 | }
|
6645 |
|
6646 |
|
6647 |
|
6648 |
|
6649 |
|
6650 |
|
6651 | declare const enum QueryFlags {
|
6652 | |
6653 |
|
6654 |
|
6655 | none = 0,
|
6656 | |
6657 |
|
6658 |
|
6659 | descendants = 1,
|
6660 | |
6661 |
|
6662 |
|
6663 |
|
6664 |
|
6665 | isStatic = 2,
|
6666 | |
6667 |
|
6668 |
|
6669 |
|
6670 |
|
6671 | emitDistinctChangesOnly = 4
|
6672 | }
|
6673 |
|
6674 |
|
6675 |
|
6676 |
|
6677 |
|
6678 |
|
6679 |
|
6680 |
|
6681 |
|
6682 |
|
6683 |
|
6684 |
|
6685 |
|
6686 |
|
6687 |
|
6688 |
|
6689 |
|
6690 |
|
6691 |
|
6692 |
|
6693 |
|
6694 |
|
6695 |
|
6696 |
|
6697 |
|
6698 |
|
6699 |
|
6700 | export declare class QueryList<T> implements Iterable<T> {
|
6701 | private _emitDistinctChangesOnly;
|
6702 | readonly dirty = true;
|
6703 | private _results;
|
6704 | private _changesDetected;
|
6705 | private _changes;
|
6706 | readonly length: number;
|
6707 | readonly first: T;
|
6708 | readonly last: T;
|
6709 | |
6710 |
|
6711 |
|
6712 | get changes(): Observable<any>;
|
6713 | |
6714 |
|
6715 |
|
6716 |
|
6717 |
|
6718 | constructor(_emitDistinctChangesOnly?: boolean);
|
6719 | /**
|
6720 | * Returns the QueryList entry at `index`.
|
6721 | */
|
6722 | get(index: number): T | undefined;
|
6723 | /**
|
6724 | * See
|
6725 | * [Array.map](https:
|
6726 | */
|
6727 | map<U>(fn: (item: T, index: number, array: T[]) => U): U[];
|
6728 | |
6729 |
|
6730 |
|
6731 |
|
6732 | filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S): S[];
|
6733 | filter(predicate: (value: T, index: number, array: readonly T[]) => unknown): T[];
|
6734 | |
6735 |
|
6736 |
|
6737 |
|
6738 | find(fn: (item: T, index: number, array: T[]) => boolean): T | undefined;
|
6739 | |
6740 |
|
6741 |
|
6742 |
|
6743 | reduce<U>(fn: (prevValue: U, curValue: T, curIndex: number, array: T[]) => U, init: U): U;
|
6744 | |
6745 |
|
6746 |
|
6747 |
|
6748 | forEach(fn: (item: T, index: number, array: T[]) => void): void;
|
6749 | |
6750 |
|
6751 |
|
6752 |
|
6753 | some(fn: (value: T, index: number, array: T[]) => boolean): boolean;
|
6754 | |
6755 |
|
6756 |
|
6757 | toArray(): T[];
|
6758 | toString(): string;
|
6759 | |
6760 |
|
6761 |
|
6762 |
|
6763 |
|
6764 |
|
6765 |
|
6766 |
|
6767 |
|
6768 |
|
6769 |
|
6770 |
|
6771 | reset(resultsTree: Array<T | any[]>, identityAccessor?: (value: T) => unknown): void;
|
6772 | |
6773 |
|
6774 |
|
6775 | notifyOnChanges(): void;
|
6776 |
|
6777 | setDirty(): void;
|
6778 |
|
6779 | destroy(): void;
|
6780 | [Symbol.iterator]: () => Iterator<T>;
|
6781 | }
|
6782 |
|
6783 | declare interface R3DeclareComponentFacade extends R3DeclareDirectiveFacade {
|
6784 | template: string;
|
6785 | isInline?: boolean;
|
6786 | styles?: string[];
|
6787 | dependencies?: R3DeclareTemplateDependencyFacade[];
|
6788 | components?: R3DeclareDirectiveDependencyFacade[];
|
6789 | directives?: R3DeclareDirectiveDependencyFacade[];
|
6790 | pipes?: {
|
6791 | [pipeName: string]: OpaqueValue | (() => OpaqueValue);
|
6792 | };
|
6793 | viewProviders?: OpaqueValue;
|
6794 | animations?: OpaqueValue;
|
6795 | changeDetection?: ChangeDetectionStrategy_2;
|
6796 | encapsulation?: ViewEncapsulation_2;
|
6797 | interpolation?: [string, string];
|
6798 | preserveWhitespaces?: boolean;
|
6799 | }
|
6800 |
|
6801 | declare interface R3DeclareDependencyMetadataFacade {
|
6802 | token: OpaqueValue;
|
6803 | attribute?: boolean;
|
6804 | host?: boolean;
|
6805 | optional?: boolean;
|
6806 | self?: boolean;
|
6807 | skipSelf?: boolean;
|
6808 | }
|
6809 |
|
6810 | declare interface R3DeclareDirectiveDependencyFacade {
|
6811 | kind?: 'directive' | 'component';
|
6812 | selector: string;
|
6813 | type: OpaqueValue | (() => OpaqueValue);
|
6814 | inputs?: string[];
|
6815 | outputs?: string[];
|
6816 | exportAs?: string[];
|
6817 | }
|
6818 |
|
6819 | declare interface R3DeclareDirectiveFacade {
|
6820 | selector?: string;
|
6821 | type: Type_2;
|
6822 | inputs?: {
|
6823 | [classPropertyName: string]: string | [string, string];
|
6824 | };
|
6825 | outputs?: {
|
6826 | [classPropertyName: string]: string;
|
6827 | };
|
6828 | host?: {
|
6829 | attributes?: {
|
6830 | [key: string]: OpaqueValue;
|
6831 | };
|
6832 | listeners?: {
|
6833 | [key: string]: string;
|
6834 | };
|
6835 | properties?: {
|
6836 | [key: string]: string;
|
6837 | };
|
6838 | classAttribute?: string;
|
6839 | styleAttribute?: string;
|
6840 | };
|
6841 | queries?: R3DeclareQueryMetadataFacade[];
|
6842 | viewQueries?: R3DeclareQueryMetadataFacade[];
|
6843 | providers?: OpaqueValue;
|
6844 | exportAs?: string[];
|
6845 | usesInheritance?: boolean;
|
6846 | usesOnChanges?: boolean;
|
6847 | isStandalone?: boolean;
|
6848 | hostDirectives?: R3HostDirectiveMetadataFacade[] | null;
|
6849 | }
|
6850 |
|
6851 | declare interface R3DeclareFactoryFacade {
|
6852 | type: Type_2;
|
6853 | deps: R3DeclareDependencyMetadataFacade[] | 'invalid' | null;
|
6854 | target: ɵɵFactoryTarget;
|
6855 | }
|
6856 |
|
6857 | declare interface R3DeclareInjectableFacade {
|
6858 | type: Type_2;
|
6859 | providedIn?: Type_2 | 'root' | 'platform' | 'any' | null;
|
6860 | useClass?: OpaqueValue;
|
6861 | useFactory?: OpaqueValue;
|
6862 | useExisting?: OpaqueValue;
|
6863 | useValue?: OpaqueValue;
|
6864 | deps?: R3DeclareDependencyMetadataFacade[];
|
6865 | }
|
6866 |
|
6867 | declare interface R3DeclareInjectorFacade {
|
6868 | type: Type_2;
|
6869 | imports?: OpaqueValue[];
|
6870 | providers?: OpaqueValue[];
|
6871 | }
|
6872 |
|
6873 | declare interface R3DeclareNgModuleDependencyFacade {
|
6874 | kind: 'ngmodule';
|
6875 | type: OpaqueValue | (() => OpaqueValue);
|
6876 | }
|
6877 |
|
6878 | declare interface R3DeclareNgModuleFacade {
|
6879 | type: Type_2;
|
6880 | bootstrap?: OpaqueValue[] | (() => OpaqueValue[]);
|
6881 | declarations?: OpaqueValue[] | (() => OpaqueValue[]);
|
6882 | imports?: OpaqueValue[] | (() => OpaqueValue[]);
|
6883 | exports?: OpaqueValue[] | (() => OpaqueValue[]);
|
6884 | schemas?: OpaqueValue[];
|
6885 | id?: OpaqueValue;
|
6886 | }
|
6887 |
|
6888 | declare interface R3DeclarePipeDependencyFacade {
|
6889 | kind?: 'pipe';
|
6890 | name: string;
|
6891 | type: OpaqueValue | (() => OpaqueValue);
|
6892 | }
|
6893 |
|
6894 | declare interface R3DeclarePipeFacade {
|
6895 | type: Type_2;
|
6896 | name: string;
|
6897 | pure?: boolean;
|
6898 | isStandalone?: boolean;
|
6899 | }
|
6900 |
|
6901 | declare interface R3DeclareQueryMetadataFacade {
|
6902 | propertyName: string;
|
6903 | first?: boolean;
|
6904 | predicate: OpaqueValue | string[];
|
6905 | descendants?: boolean;
|
6906 | read?: OpaqueValue;
|
6907 | static?: boolean;
|
6908 | emitDistinctChangesOnly?: boolean;
|
6909 | }
|
6910 |
|
6911 | declare type R3DeclareTemplateDependencyFacade = {
|
6912 | kind: string;
|
6913 | } & (R3DeclareDirectiveDependencyFacade | R3DeclarePipeDependencyFacade | R3DeclareNgModuleDependencyFacade);
|
6914 |
|
6915 | declare interface R3HostDirectiveMetadataFacade {
|
6916 | directive: Type_2;
|
6917 | inputs?: string[];
|
6918 | outputs?: string[];
|
6919 | }
|
6920 |
|
6921 | declare class R3Injector extends EnvironmentInjector {
|
6922 | readonly parent: Injector;
|
6923 | readonly source: string | null;
|
6924 | readonly scopes: Set<InjectorScope>;
|
6925 | |
6926 |
|
6927 |
|
6928 |
|
6929 |
|
6930 | private records;
|
6931 | |
6932 |
|
6933 |
|
6934 | private _ngOnDestroyHooks;
|
6935 | private _onDestroyHooks;
|
6936 | |
6937 |
|
6938 |
|
6939 | get destroyed(): boolean;
|
6940 | private _destroyed;
|
6941 | private injectorDefTypes;
|
6942 | constructor(providers: Array<Provider | EnvironmentProviders>, parent: Injector, source: string | null, scopes: Set<InjectorScope>);
|
6943 | |
6944 |
|
6945 |
|
6946 |
|
6947 |
|
6948 |
|
6949 | destroy(): void;
|
6950 | onDestroy(callback: () => void): () => void;
|
6951 | runInContext<ReturnT>(fn: () => ReturnT): ReturnT;
|
6952 | get<T>(token: ProviderToken<T>, notFoundValue?: any, flags?: InjectFlags | InjectOptions): T;
|
6953 | toString(): string;
|
6954 | assertNotDestroyed(): void;
|
6955 | |
6956 |
|
6957 |
|
6958 | private processProvider;
|
6959 | private hydrate;
|
6960 | private injectableDefInScope;
|
6961 | private removeOnDestroy;
|
6962 | }
|
6963 |
|
6964 | declare interface RComment extends RNode {
|
6965 | textContent: string | null;
|
6966 | }
|
6967 |
|
6968 | declare interface RCssStyleDeclaration {
|
6969 | removeProperty(propertyName: string): string;
|
6970 | setProperty(propertyName: string, value: string | null, priority?: string): void;
|
6971 | }
|
6972 |
|
6973 | declare interface RDomTokenList {
|
6974 | add(token: string): void;
|
6975 | remove(token: string): void;
|
6976 | }
|
6977 |
|
6978 | declare const REACTIVE_HOST_BINDING_CONSUMER = 24;
|
6979 |
|
6980 | declare const REACTIVE_TEMPLATE_CONSUMER = 23;
|
6981 |
|
6982 | declare class ReactiveLViewConsumer extends ReactiveNode {
|
6983 | protected consumerAllowSignalWrites: boolean;
|
6984 | private _lView;
|
6985 | set lView(lView: LView);
|
6986 | protected onConsumerDependencyMayHaveChanged(): void;
|
6987 | protected onProducerUpdateValueVersion(): void;
|
6988 | get hasReadASignal(): boolean;
|
6989 | runInContext(fn: HostBindingsFunction<unknown> | ComponentTemplate<unknown>, rf: ɵRenderFlags, ctx: unknown): void;
|
6990 | destroy(): void;
|
6991 | }
|
6992 |
|
6993 |
|
6994 |
|
6995 |
|
6996 |
|
6997 |
|
6998 |
|
6999 |
|
7000 |
|
7001 |
|
7002 |
|
7003 |
|
7004 |
|
7005 |
|
7006 |
|
7007 |
|
7008 |
|
7009 |
|
7010 |
|
7011 |
|
7012 |
|
7013 |
|
7014 |
|
7015 |
|
7016 |
|
7017 |
|
7018 |
|
7019 |
|
7020 |
|
7021 |
|
7022 |
|
7023 | declare abstract class ReactiveNode {
|
7024 | private readonly id;
|
7025 | |
7026 |
|
7027 |
|
7028 | private readonly ref;
|
7029 | |
7030 |
|
7031 |
|
7032 | private readonly producers;
|
7033 | |
7034 |
|
7035 |
|
7036 | private readonly consumers;
|
7037 | |
7038 |
|
7039 |
|
7040 |
|
7041 | protected trackingVersion: number;
|
7042 | |
7043 |
|
7044 |
|
7045 |
|
7046 | protected valueVersion: number;
|
7047 | |
7048 |
|
7049 |
|
7050 | protected abstract readonly consumerAllowSignalWrites: boolean;
|
7051 | |
7052 |
|
7053 |
|
7054 |
|
7055 | protected abstract onConsumerDependencyMayHaveChanged(): void;
|
7056 | |
7057 |
|
7058 |
|
7059 |
|
7060 | protected abstract onProducerUpdateValueVersion(): void;
|
7061 | |
7062 |
|
7063 |
|
7064 |
|
7065 |
|
7066 |
|
7067 |
|
7068 | protected consumerPollProducersForChange(): boolean;
|
7069 | |
7070 |
|
7071 |
|
7072 | protected producerMayHaveChanged(): void;
|
7073 | |
7074 |
|
7075 |
|
7076 | protected producerAccessed(): void;
|
7077 | |
7078 |
|
7079 |
|
7080 | protected get hasProducers(): boolean;
|
7081 | |
7082 |
|
7083 |
|
7084 |
|
7085 | protected get producerUpdatesAllowed(): boolean;
|
7086 | |
7087 |
|
7088 |
|
7089 |
|
7090 |
|
7091 | private producerPollStatus;
|
7092 | }
|
7093 |
|
7094 |
|
7095 |
|
7096 |
|
7097 |
|
7098 |
|
7099 |
|
7100 |
|
7101 |
|
7102 |
|
7103 |
|
7104 |
|
7105 |
|
7106 |
|
7107 |
|
7108 |
|
7109 |
|
7110 |
|
7111 |
|
7112 |
|
7113 |
|
7114 |
|
7115 |
|
7116 |
|
7117 |
|
7118 |
|
7119 |
|
7120 |
|
7121 |
|
7122 |
|
7123 |
|
7124 |
|
7125 |
|
7126 |
|
7127 |
|
7128 |
|
7129 |
|
7130 |
|
7131 |
|
7132 |
|
7133 | export declare function reflectComponentType<C>(component: Type<C>): ComponentMirror<C> | null;
|
7134 |
|
7135 |
|
7136 |
|
7137 |
|
7138 |
|
7139 | declare interface RElement extends RNode {
|
7140 | firstChild: RNode | null;
|
7141 | style: RCssStyleDeclaration;
|
7142 | classList: RDomTokenList;
|
7143 | className: string;
|
7144 | tagName: string;
|
7145 | textContent: string | null;
|
7146 | getAttribute(name: string): string | null;
|
7147 | setAttribute(name: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL): void;
|
7148 | removeAttribute(name: string): void;
|
7149 | setAttributeNS(namespaceURI: string, qualifiedName: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL): void;
|
7150 | addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
|
7151 | removeEventListener(type: string, listener?: EventListener, options?: boolean): void;
|
7152 | setProperty?(name: string, value: any): void;
|
7153 | }
|
7154 |
|
7155 | declare const RENDERER = 11;
|
7156 |
|
7157 |
|
7158 |
|
7159 |
|
7160 |
|
7161 |
|
7162 |
|
7163 | declare interface Renderer {
|
7164 | destroy(): void;
|
7165 | createComment(value: string): RComment;
|
7166 | createElement(name: string, namespace?: string | null): RElement;
|
7167 | createText(value: string): RText;
|
7168 | |
7169 |
|
7170 |
|
7171 |
|
7172 |
|
7173 | destroyNode?: ((node: RNode) => void) | null;
|
7174 | appendChild(parent: RElement, newChild: RNode): void;
|
7175 | insertBefore(parent: RNode, newChild: RNode, refChild: RNode | null, isMove?: boolean): void;
|
7176 | removeChild(parent: RElement, oldChild: RNode, isHostElement?: boolean): void;
|
7177 | selectRootElement(selectorOrNode: string | any, preserveContent?: boolean): RElement;
|
7178 | parentNode(node: RNode): RElement | null;
|
7179 | nextSibling(node: RNode): RNode | null;
|
7180 | setAttribute(el: RElement, name: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL, namespace?: string | null): void;
|
7181 | removeAttribute(el: RElement, name: string, namespace?: string | null): void;
|
7182 | addClass(el: RElement, name: string): void;
|
7183 | removeClass(el: RElement, name: string): void;
|
7184 | setStyle(el: RElement, style: string, value: any, flags?: RendererStyleFlags2): void;
|
7185 | removeStyle(el: RElement, style: string, flags?: RendererStyleFlags2): void;
|
7186 | setProperty(el: RElement, name: string, value: any): void;
|
7187 | setValue(node: RText | RComment, value: string): void;
|
7188 | listen(target: GlobalTargetName | RNode, eventName: string, callback: (event: any) => boolean | void): () => void;
|
7189 | }
|
7190 |
|
7191 |
|
7192 |
|
7193 |
|
7194 |
|
7195 |
|
7196 |
|
7197 |
|
7198 |
|
7199 |
|
7200 |
|
7201 |
|
7202 |
|
7203 |
|
7204 |
|
7205 |
|
7206 | export declare abstract class Renderer2 {
|
7207 | |
7208 |
|
7209 |
|
7210 |
|
7211 |
|
7212 | abstract get data(): {
|
7213 | [key: string]: any;
|
7214 | };
|
7215 | |
7216 |
|
7217 |
|
7218 | abstract destroy(): void;
|
7219 | |
7220 |
|
7221 |
|
7222 |
|
7223 |
|
7224 |
|
7225 | abstract createElement(name: string, namespace?: string | null): any;
|
7226 | |
7227 |
|
7228 |
|
7229 |
|
7230 |
|
7231 | abstract createComment(value: string): any;
|
7232 | |
7233 |
|
7234 |
|
7235 |
|
7236 |
|
7237 | abstract createText(value: string): any;
|
7238 | |
7239 |
|
7240 |
|
7241 |
|
7242 | destroyNode: ((node: any) => void) | null;
|
7243 | |
7244 |
|
7245 |
|
7246 |
|
7247 |
|
7248 | abstract appendChild(parent: any, newChild: any): void;
|
7249 | |
7250 |
|
7251 |
|
7252 |
|
7253 |
|
7254 |
|
7255 |
|
7256 |
|
7257 |
|
7258 |
|
7259 |
|
7260 |
|
7261 | abstract insertBefore(parent: any, newChild: any, refChild: any, isMove?: boolean): void;
|
7262 | |
7263 |
|
7264 |
|
7265 |
|
7266 |
|
7267 |
|
7268 |
|
7269 | abstract removeChild(parent: any, oldChild: any, isHostElement?: boolean): void;
|
7270 | |
7271 |
|
7272 |
|
7273 |
|
7274 |
|
7275 |
|
7276 |
|
7277 |
|
7278 |
|
7279 |
|
7280 | abstract selectRootElement(selectorOrNode: string | any, preserveContent?: boolean): any;
|
7281 | |
7282 |
|
7283 |
|
7284 |
|
7285 |
|
7286 |
|
7287 |
|
7288 |
|
7289 | abstract parentNode(node: any): any;
|
7290 | |
7291 |
|
7292 |
|
7293 |
|
7294 |
|
7295 |
|
7296 |
|
7297 | abstract nextSibling(node: any): any;
|
7298 | |
7299 |
|
7300 |
|
7301 |
|
7302 |
|
7303 |
|
7304 |
|
7305 | abstract setAttribute(el: any, name: string, value: string, namespace?: string | null): void;
|
7306 | |
7307 |
|
7308 |
|
7309 |
|
7310 |
|
7311 |
|
7312 | abstract removeAttribute(el: any, name: string, namespace?: string | null): void;
|
7313 | |
7314 |
|
7315 |
|
7316 |
|
7317 |
|
7318 | abstract addClass(el: any, name: string): void;
|
7319 | |
7320 |
|
7321 |
|
7322 |
|
7323 |
|
7324 | abstract removeClass(el: any, name: string): void;
|
7325 | |
7326 |
|
7327 |
|
7328 |
|
7329 |
|
7330 |
|
7331 |
|
7332 | abstract setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2): void;
|
7333 | |
7334 |
|
7335 |
|
7336 |
|
7337 |
|
7338 |
|
7339 | abstract removeStyle(el: any, style: string, flags?: RendererStyleFlags2): void;
|
7340 | |
7341 |
|
7342 |
|
7343 |
|
7344 |
|
7345 |
|
7346 | abstract setProperty(el: any, name: string, value: any): void;
|
7347 | |
7348 |
|
7349 |
|
7350 |
|
7351 |
|
7352 | abstract setValue(node: any, value: string): void;
|
7353 | |
7354 |
|
7355 |
|
7356 |
|
7357 |
|
7358 |
|
7359 |
|
7360 |
|
7361 |
|
7362 | abstract listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => boolean | void): () => void;
|
7363 | }
|
7364 |
|
7365 | declare interface RendererFactory {
|
7366 | createRenderer(hostElement: RElement | null, rendererType: RendererType2 | null): Renderer;
|
7367 | begin?(): void;
|
7368 | end?(): void;
|
7369 | }
|
7370 |
|
7371 |
|
7372 |
|
7373 |
|
7374 |
|
7375 |
|
7376 | export declare abstract class RendererFactory2 {
|
7377 | |
7378 |
|
7379 |
|
7380 |
|
7381 |
|
7382 |
|
7383 | abstract createRenderer(hostElement: any, type: RendererType2 | null): Renderer2;
|
7384 | |
7385 |
|
7386 |
|
7387 | abstract begin?(): void;
|
7388 | |
7389 |
|
7390 |
|
7391 | abstract end?(): void;
|
7392 | |
7393 |
|
7394 |
|
7395 |
|
7396 | abstract whenRenderingDone?(): Promise<any>;
|
7397 | }
|
7398 |
|
7399 |
|
7400 |
|
7401 |
|
7402 |
|
7403 | export declare enum RendererStyleFlags2 {
|
7404 | |
7405 |
|
7406 |
|
7407 | Important = 1,
|
7408 | |
7409 |
|
7410 |
|
7411 | DashCase = 2
|
7412 | }
|
7413 |
|
7414 |
|
7415 |
|
7416 |
|
7417 |
|
7418 |
|
7419 | export declare interface RendererType2 {
|
7420 | |
7421 |
|
7422 |
|
7423 |
|
7424 | id: string;
|
7425 | |
7426 |
|
7427 |
|
7428 |
|
7429 |
|
7430 |
|
7431 |
|
7432 |
|
7433 |
|
7434 |
|
7435 | encapsulation: ViewEncapsulation;
|
7436 | |
7437 |
|
7438 |
|
7439 | styles: string[];
|
7440 | |
7441 |
|
7442 |
|
7443 |
|
7444 | data: {
|
7445 | [kind: string]: any;
|
7446 | };
|
7447 | }
|
7448 |
|
7449 |
|
7450 |
|
7451 |
|
7452 |
|
7453 |
|
7454 |
|
7455 |
|
7456 |
|
7457 |
|
7458 |
|
7459 |
|
7460 |
|
7461 |
|
7462 | export declare function resolveForwardRef<T>(type: T): T;
|
7463 |
|
7464 |
|
7465 |
|
7466 |
|
7467 |
|
7468 |
|
7469 |
|
7470 |
|
7471 |
|
7472 |
|
7473 | declare interface RNode {
|
7474 | |
7475 |
|
7476 |
|
7477 | parentNode: RNode | null;
|
7478 | |
7479 |
|
7480 |
|
7481 | parentElement: RElement | null;
|
7482 | |
7483 |
|
7484 |
|
7485 | nextSibling: RNode | null;
|
7486 | |
7487 |
|
7488 |
|
7489 |
|
7490 | removeChild(oldChild: RNode): RNode;
|
7491 | |
7492 |
|
7493 |
|
7494 |
|
7495 |
|
7496 | insertBefore(newChild: RNode, refChild: RNode | null, isViewRoot: boolean): void;
|
7497 | |
7498 |
|
7499 |
|
7500 |
|
7501 |
|
7502 | appendChild(newChild: RNode): RNode;
|
7503 | }
|
7504 |
|
7505 | declare interface RText extends RNode {
|
7506 | textContent: string | null;
|
7507 | }
|
7508 |
|
7509 |
|
7510 |
|
7511 |
|
7512 |
|
7513 |
|
7514 |
|
7515 |
|
7516 |
|
7517 |
|
7518 |
|
7519 |
|
7520 |
|
7521 | export declare function runInInjectionContext<ReturnT>(injector: Injector, fn: () => ReturnT): ReturnT;
|
7522 |
|
7523 |
|
7524 |
|
7525 |
|
7526 |
|
7527 |
|
7528 |
|
7529 |
|
7530 |
|
7531 |
|
7532 |
|
7533 |
|
7534 |
|
7535 |
|
7536 |
|
7537 |
|
7538 |
|
7539 |
|
7540 |
|
7541 |
|
7542 | declare const enum RuntimeErrorCode {
|
7543 | EXPRESSION_CHANGED_AFTER_CHECKED = -100,
|
7544 | RECURSIVE_APPLICATION_REF_TICK = 101,
|
7545 | CYCLIC_DI_DEPENDENCY = -200,
|
7546 | PROVIDER_NOT_FOUND = -201,
|
7547 | INVALID_FACTORY_DEPENDENCY = 202,
|
7548 | MISSING_INJECTION_CONTEXT = -203,
|
7549 | INVALID_INJECTION_TOKEN = 204,
|
7550 | INJECTOR_ALREADY_DESTROYED = 205,
|
7551 | PROVIDER_IN_WRONG_CONTEXT = 207,
|
7552 | MISSING_INJECTION_TOKEN = 208,
|
7553 | INVALID_MULTI_PROVIDER = -209,
|
7554 | MISSING_DOCUMENT = 210,
|
7555 | MULTIPLE_COMPONENTS_MATCH = -300,
|
7556 | EXPORT_NOT_FOUND = -301,
|
7557 | PIPE_NOT_FOUND = -302,
|
7558 | UNKNOWN_BINDING = 303,
|
7559 | UNKNOWN_ELEMENT = 304,
|
7560 | TEMPLATE_STRUCTURE_ERROR = 305,
|
7561 | INVALID_EVENT_BINDING = 306,
|
7562 | HOST_DIRECTIVE_UNRESOLVABLE = 307,
|
7563 | HOST_DIRECTIVE_NOT_STANDALONE = 308,
|
7564 | DUPLICATE_DIRECTITVE = 309,
|
7565 | HOST_DIRECTIVE_COMPONENT = 310,
|
7566 | HOST_DIRECTIVE_UNDEFINED_BINDING = 311,
|
7567 | HOST_DIRECTIVE_CONFLICTING_ALIAS = 312,
|
7568 | MULTIPLE_PLATFORMS = 400,
|
7569 | PLATFORM_NOT_FOUND = 401,
|
7570 | MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP = 402,
|
7571 | BOOTSTRAP_COMPONENTS_NOT_FOUND = -403,
|
7572 | PLATFORM_ALREADY_DESTROYED = 404,
|
7573 | ASYNC_INITIALIZERS_STILL_RUNNING = 405,
|
7574 | APPLICATION_REF_ALREADY_DESTROYED = 406,
|
7575 | RENDERER_NOT_FOUND = 407,
|
7576 | HYDRATION_NODE_MISMATCH = -500,
|
7577 | HYDRATION_MISSING_SIBLINGS = -501,
|
7578 | HYDRATION_MISSING_NODE = -502,
|
7579 | UNSUPPORTED_PROJECTION_DOM_NODES = -503,
|
7580 | INVALID_SKIP_HYDRATION_HOST = -504,
|
7581 | MISSING_HYDRATION_ANNOTATIONS = -505,
|
7582 | HYDRATION_STABLE_TIMEDOUT = -506,
|
7583 | SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
|
7584 | REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
|
7585 | INVALID_I18N_STRUCTURE = 700,
|
7586 | MISSING_LOCALE_DATA = 701,
|
7587 | IMPORT_PROVIDERS_FROM_STANDALONE = 800,
|
7588 | INVALID_DIFFER_INPUT = 900,
|
7589 | NO_SUPPORTING_DIFFER_FACTORY = 901,
|
7590 | VIEW_ALREADY_ATTACHED = 902,
|
7591 | INVALID_INHERITANCE = 903,
|
7592 | UNSAFE_VALUE_IN_RESOURCE_URL = 904,
|
7593 | UNSAFE_VALUE_IN_SCRIPT = 905,
|
7594 | MISSING_GENERATED_DEF = 906,
|
7595 | TYPE_IS_NOT_STANDALONE = 907,
|
7596 | MISSING_ZONEJS = 908,
|
7597 | UNEXPECTED_ZONE_STATE = 909,
|
7598 | UNSAFE_IFRAME_ATTRS = -910,
|
7599 | VIEW_ALREADY_DESTROYED = 911,
|
7600 | COMPONENT_ID_COLLISION = -912
|
7601 | }
|
7602 |
|
7603 |
|
7604 |
|
7605 |
|
7606 |
|
7607 |
|
7608 | export declare abstract class Sanitizer {
|
7609 | abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
|
7610 |
|
7611 | static ɵprov: unknown;
|
7612 | }
|
7613 |
|
7614 |
|
7615 |
|
7616 |
|
7617 | declare type SanitizerFn = (value: any, tagName?: string, propName?: string) => string | TrustedHTML | TrustedScript | TrustedScriptURL;
|
7618 |
|
7619 |
|
7620 |
|
7621 |
|
7622 |
|
7623 |
|
7624 |
|
7625 |
|
7626 |
|
7627 |
|
7628 |
|
7629 | export declare interface SchemaMetadata {
|
7630 | name: string;
|
7631 | }
|
7632 |
|
7633 |
|
7634 |
|
7635 |
|
7636 |
|
7637 |
|
7638 |
|
7639 |
|
7640 |
|
7641 |
|
7642 |
|
7643 | export declare enum SecurityContext {
|
7644 | NONE = 0,
|
7645 | HTML = 1,
|
7646 | STYLE = 2,
|
7647 | SCRIPT = 3,
|
7648 | URL = 4,
|
7649 | RESOURCE_URL = 5
|
7650 | }
|
7651 |
|
7652 |
|
7653 | declare const enum SelectorFlags {
|
7654 |
|
7655 | NOT = 1,
|
7656 |
|
7657 | ATTRIBUTE = 2,
|
7658 |
|
7659 | ELEMENT = 4,
|
7660 |
|
7661 | CLASS = 8
|
7662 | }
|
7663 |
|
7664 |
|
7665 |
|
7666 |
|
7667 |
|
7668 |
|
7669 | export declare interface Self {
|
7670 | }
|
7671 |
|
7672 |
|
7673 |
|
7674 |
|
7675 |
|
7676 |
|
7677 |
|
7678 | export declare const Self: SelfDecorator;
|
7679 |
|
7680 |
|
7681 |
|
7682 |
|
7683 |
|
7684 |
|
7685 | export declare interface SelfDecorator {
|
7686 | |
7687 |
|
7688 |
|
7689 |
|
7690 |
|
7691 |
|
7692 |
|
7693 |
|
7694 |
|
7695 |
|
7696 |
|
7697 |
|
7698 |
|
7699 |
|
7700 |
|
7701 |
|
7702 |
|
7703 |
|
7704 |
|
7705 |
|
7706 | (): any;
|
7707 | new (): Self;
|
7708 | }
|
7709 |
|
7710 |
|
7711 |
|
7712 |
|
7713 |
|
7714 |
|
7715 | declare interface SerializedContainerView extends SerializedView {
|
7716 | |
7717 |
|
7718 |
|
7719 |
|
7720 |
|
7721 |
|
7722 |
|
7723 | [TEMPLATE_ID]: string;
|
7724 | |
7725 |
|
7726 |
|
7727 |
|
7728 |
|
7729 | [NUM_ROOT_NODES]: number;
|
7730 | |
7731 |
|
7732 |
|
7733 |
|
7734 |
|
7735 | [MULTIPLIER]?: number;
|
7736 | }
|
7737 |
|
7738 |
|
7739 |
|
7740 |
|
7741 |
|
7742 |
|
7743 |
|
7744 |
|
7745 | declare interface SerializedElementContainers {
|
7746 | [key: number]: number;
|
7747 | }
|
7748 |
|
7749 |
|
7750 |
|
7751 |
|
7752 |
|
7753 |
|
7754 | declare interface SerializedView {
|
7755 | |
7756 |
|
7757 |
|
7758 | [ELEMENT_CONTAINERS]?: SerializedElementContainers;
|
7759 | |
7760 |
|
7761 |
|
7762 |
|
7763 |
|
7764 |
|
7765 | [TEMPLATES]?: Record<number, string>;
|
7766 | |
7767 |
|
7768 |
|
7769 |
|
7770 |
|
7771 |
|
7772 | [CONTAINERS]?: Record<number, SerializedContainerView[]>;
|
7773 | |
7774 |
|
7775 |
|
7776 |
|
7777 |
|
7778 |
|
7779 | [NODES]?: Record<number, string>;
|
7780 | |
7781 |
|
7782 |
|
7783 |
|
7784 |
|
7785 |
|
7786 |
|
7787 |
|
7788 | [DISCONNECTED_NODES]?: number[];
|
7789 | }
|
7790 |
|
7791 |
|
7792 |
|
7793 |
|
7794 |
|
7795 | export declare function setTestabilityGetter(getter: GetTestability): void;
|
7796 |
|
7797 |
|
7798 |
|
7799 |
|
7800 |
|
7801 |
|
7802 | declare const SIGNAL: unique symbol;
|
7803 |
|
7804 |
|
7805 |
|
7806 |
|
7807 |
|
7808 |
|
7809 |
|
7810 |
|
7811 |
|
7812 |
|
7813 |
|
7814 | export declare type Signal<T> = (() => T) & {
|
7815 | [SIGNAL]: unknown;
|
7816 | };
|
7817 |
|
7818 |
|
7819 |
|
7820 |
|
7821 |
|
7822 |
|
7823 | export declare function signal<T>(initialValue: T, options?: CreateSignalOptions<T>): WritableSignal<T>;
|
7824 |
|
7825 |
|
7826 |
|
7827 |
|
7828 |
|
7829 |
|
7830 |
|
7831 |
|
7832 |
|
7833 |
|
7834 |
|
7835 | export declare class SimpleChange {
|
7836 | previousValue: any;
|
7837 | currentValue: any;
|
7838 | firstChange: boolean;
|
7839 | constructor(previousValue: any, currentValue: any, firstChange: boolean);
|
7840 | |
7841 |
|
7842 |
|
7843 | isFirstChange(): boolean;
|
7844 | }
|
7845 |
|
7846 |
|
7847 |
|
7848 |
|
7849 |
|
7850 |
|
7851 |
|
7852 |
|
7853 |
|
7854 |
|
7855 | export declare interface SimpleChanges {
|
7856 | [propName: string]: SimpleChange;
|
7857 | }
|
7858 |
|
7859 |
|
7860 |
|
7861 |
|
7862 |
|
7863 |
|
7864 | export declare interface SkipSelf {
|
7865 | }
|
7866 |
|
7867 |
|
7868 |
|
7869 |
|
7870 |
|
7871 |
|
7872 |
|
7873 | export declare const SkipSelf: SkipSelfDecorator;
|
7874 |
|
7875 |
|
7876 |
|
7877 |
|
7878 |
|
7879 |
|
7880 | export declare interface SkipSelfDecorator {
|
7881 | |
7882 |
|
7883 |
|
7884 |
|
7885 |
|
7886 |
|
7887 |
|
7888 |
|
7889 |
|
7890 |
|
7891 |
|
7892 |
|
7893 |
|
7894 |
|
7895 |
|
7896 |
|
7897 |
|
7898 |
|
7899 |
|
7900 | (): any;
|
7901 | new (): SkipSelf;
|
7902 | }
|
7903 |
|
7904 |
|
7905 |
|
7906 |
|
7907 |
|
7908 |
|
7909 |
|
7910 |
|
7911 |
|
7912 |
|
7913 |
|
7914 |
|
7915 |
|
7916 |
|
7917 |
|
7918 |
|
7919 | export declare type StateKey<T> = string & {
|
7920 | __not_a_string: never;
|
7921 | __value_type?: T;
|
7922 | };
|
7923 |
|
7924 |
|
7925 |
|
7926 |
|
7927 |
|
7928 |
|
7929 |
|
7930 |
|
7931 |
|
7932 |
|
7933 |
|
7934 |
|
7935 |
|
7936 |
|
7937 |
|
7938 |
|
7939 |
|
7940 |
|
7941 |
|
7942 | export declare interface StaticClassProvider extends StaticClassSansProvider {
|
7943 | |
7944 |
|
7945 |
|
7946 | provide: any;
|
7947 | |
7948 |
|
7949 |
|
7950 |
|
7951 | multi?: boolean;
|
7952 | }
|
7953 |
|
7954 |
|
7955 |
|
7956 |
|
7957 |
|
7958 |
|
7959 |
|
7960 | export declare interface StaticClassSansProvider {
|
7961 | |
7962 |
|
7963 |
|
7964 |
|
7965 | useClass: Type<any>;
|
7966 | |
7967 |
|
7968 |
|
7969 |
|
7970 | deps: any[];
|
7971 | }
|
7972 |
|
7973 |
|
7974 |
|
7975 |
|
7976 |
|
7977 |
|
7978 |
|
7979 |
|
7980 |
|
7981 |
|
7982 | export declare type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
|
7983 |
|
7984 | declare const T_HOST = 6;
|
7985 |
|
7986 |
|
7987 |
|
7988 |
|
7989 |
|
7990 |
|
7991 |
|
7992 | declare type TAttributes = (string | ɵAttributeMarker | CssSelector)[];
|
7993 |
|
7994 |
|
7995 |
|
7996 |
|
7997 |
|
7998 |
|
7999 |
|
8000 | declare type TConstants = (TAttributes | string)[];
|
8001 |
|
8002 |
|
8003 |
|
8004 |
|
8005 |
|
8006 |
|
8007 |
|
8008 | declare type TConstantsFactory = () => TConstants;
|
8009 |
|
8010 |
|
8011 |
|
8012 |
|
8013 |
|
8014 | declare type TConstantsOrFactory = TConstants | TConstantsFactory;
|
8015 |
|
8016 |
|
8017 | declare interface TContainerNode extends TNode {
|
8018 | |
8019 |
|
8020 |
|
8021 |
|
8022 |
|
8023 |
|
8024 | index: number;
|
8025 | child: null;
|
8026 | |
8027 |
|
8028 |
|
8029 |
|
8030 |
|
8031 |
|
8032 | parent: TElementNode | TElementContainerNode | null;
|
8033 | tView: TView | null;
|
8034 | projection: null;
|
8035 | value: null;
|
8036 | }
|
8037 |
|
8038 |
|
8039 |
|
8040 |
|
8041 |
|
8042 |
|
8043 |
|
8044 |
|
8045 |
|
8046 |
|
8047 |
|
8048 |
|
8049 |
|
8050 |
|
8051 |
|
8052 |
|
8053 |
|
8054 |
|
8055 |
|
8056 |
|
8057 |
|
8058 |
|
8059 |
|
8060 |
|
8061 |
|
8062 |
|
8063 |
|
8064 |
|
8065 | declare type TData = (TNode | ɵPipeDef<any> | ɵDirectiveDef<any> | ɵComponentDef<any> | number | TStylingRange | TStylingKey | ProviderToken<any> | TI18n | I18nUpdateOpCodes | TIcu | null | string)[];
|
8066 |
|
8067 |
|
8068 | declare interface TElementContainerNode extends TNode {
|
8069 |
|
8070 | index: number;
|
8071 | child: TElementNode | TTextNode | TContainerNode | TElementContainerNode | TProjectionNode | null;
|
8072 | parent: TElementNode | TElementContainerNode | null;
|
8073 | tView: null;
|
8074 | projection: null;
|
8075 | }
|
8076 |
|
8077 |
|
8078 | declare interface TElementNode extends TNode {
|
8079 |
|
8080 | index: number;
|
8081 | child: TElementNode | TTextNode | TElementContainerNode | TContainerNode | TProjectionNode | null;
|
8082 | |
8083 |
|
8084 |
|
8085 |
|
8086 |
|
8087 | parent: TElementNode | TElementContainerNode | null;
|
8088 | tView: null;
|
8089 | |
8090 |
|
8091 |
|
8092 |
|
8093 |
|
8094 | projection: (TNode | RNode[])[] | null;
|
8095 | |
8096 |
|
8097 |
|
8098 | value: string;
|
8099 | }
|
8100 |
|
8101 | declare const TEMPLATE_ID = "i";
|
8102 |
|
8103 |
|
8104 |
|
8105 |
|
8106 |
|
8107 |
|
8108 |
|
8109 |
|
8110 |
|
8111 |
|
8112 |
|
8113 |
|
8114 |
|
8115 |
|
8116 |
|
8117 |
|
8118 |
|
8119 |
|
8120 |
|
8121 | export declare abstract class TemplateRef<C> {
|
8122 | |
8123 |
|
8124 |
|
8125 |
|
8126 |
|
8127 |
|
8128 |
|
8129 |
|
8130 |
|
8131 |
|
8132 |
|
8133 | abstract readonly elementRef: ElementRef;
|
8134 | |
8135 |
|
8136 |
|
8137 |
|
8138 |
|
8139 |
|
8140 |
|
8141 | abstract createEmbeddedView(context: C, injector?: Injector): EmbeddedViewRef<C>;
|
8142 | }
|
8143 |
|
8144 | declare const TEMPLATES = "t";
|
8145 |
|
8146 |
|
8147 |
|
8148 |
|
8149 |
|
8150 |
|
8151 |
|
8152 |
|
8153 |
|
8154 |
|
8155 |
|
8156 |
|
8157 |
|
8158 |
|
8159 |
|
8160 |
|
8161 |
|
8162 |
|
8163 |
|
8164 |
|
8165 |
|
8166 | export declare class Testability implements PublicTestability {
|
8167 | private _ngZone;
|
8168 | private registry;
|
8169 | private _pendingCount;
|
8170 | private _isZoneStable;
|
8171 | private _callbacks;
|
8172 | private taskTrackingZone;
|
8173 | constructor(_ngZone: NgZone, registry: TestabilityRegistry, testabilityGetter: GetTestability);
|
8174 | private _watchAngularEvents;
|
8175 | |
8176 |
|
8177 |
|
8178 |
|
8179 | increasePendingRequestCount(): number;
|
8180 | |
8181 |
|
8182 |
|
8183 |
|
8184 | decreasePendingRequestCount(): number;
|
8185 | |
8186 |
|
8187 |
|
8188 | isStable(): boolean;
|
8189 | private _runCallbacksIfReady;
|
8190 | private getPendingTasks;
|
8191 | private addCallback;
|
8192 | |
8193 |
|
8194 |
|
8195 |
|
8196 |
|
8197 |
|
8198 |
|
8199 |
|
8200 |
|
8201 |
|
8202 |
|
8203 |
|
8204 | whenStable(doneCb: Function, timeout?: number, updateCb?: Function): void;
|
8205 | |
8206 |
|
8207 |
|
8208 |
|
8209 | getPendingRequestCount(): number;
|
8210 | |
8211 |
|
8212 |
|
8213 |
|
8214 |
|
8215 |
|
8216 | findProviders(using: any, provider: string, exactMatch: boolean): any[];
|
8217 | static ɵfac: i0.ɵɵFactoryDeclaration<Testability, never>;
|
8218 | static ɵprov: i0.ɵɵInjectableDeclaration<Testability>;
|
8219 | }
|
8220 |
|
8221 |
|
8222 |
|
8223 |
|
8224 |
|
8225 | export declare class TestabilityRegistry {
|
8226 | |
8227 |
|
8228 |
|
8229 |
|
8230 |
|
8231 | registerApplication(token: any, testability: Testability): void;
|
8232 | |
8233 |
|
8234 |
|
8235 |
|
8236 | unregisterApplication(token: any): void;
|
8237 | |
8238 |
|
8239 |
|
8240 | unregisterAllApplications(): void;
|
8241 | |
8242 |
|
8243 |
|
8244 |
|
8245 | getTestability(elem: any): Testability | null;
|
8246 | |
8247 |
|
8248 |
|
8249 | getAllTestabilities(): Testability[];
|
8250 | |
8251 |
|
8252 |
|
8253 | getAllRootElements(): any[];
|
8254 | |
8255 |
|
8256 |
|
8257 |
|
8258 |
|
8259 |
|
8260 | findTestabilityInTree(elem: Node, findInAncestors?: boolean): Testability | null;
|
8261 | static ɵfac: i0.ɵɵFactoryDeclaration<TestabilityRegistry, never>;
|
8262 | static ɵprov: i0.ɵɵInjectableDeclaration<TestabilityRegistry>;
|
8263 | }
|
8264 |
|
8265 |
|
8266 |
|
8267 |
|
8268 | declare interface TI18n {
|
8269 | |
8270 |
|
8271 |
|
8272 |
|
8273 |
|
8274 | create: I18nCreateOpCodes;
|
8275 | |
8276 |
|
8277 |
|
8278 |
|
8279 | update: I18nUpdateOpCodes;
|
8280 | }
|
8281 |
|
8282 | declare interface TIcu {
|
8283 | |
8284 |
|
8285 |
|
8286 | type: IcuType;
|
8287 | |
8288 |
|
8289 |
|
8290 | anchorIdx: number;
|
8291 | |
8292 |
|
8293 |
|
8294 |
|
8295 |
|
8296 |
|
8297 |
|
8298 |
|
8299 |
|
8300 |
|
8301 |
|
8302 |
|
8303 | currentCaseLViewIndex: number;
|
8304 | |
8305 |
|
8306 |
|
8307 |
|
8308 |
|
8309 | cases: any[];
|
8310 | |
8311 |
|
8312 |
|
8313 | create: IcuCreateOpCodes[];
|
8314 | |
8315 |
|
8316 |
|
8317 | remove: I18nRemoveOpCodes[];
|
8318 | |
8319 |
|
8320 |
|
8321 | update: I18nUpdateOpCodes[];
|
8322 | }
|
8323 |
|
8324 |
|
8325 |
|
8326 |
|
8327 |
|
8328 |
|
8329 |
|
8330 |
|
8331 |
|
8332 |
|
8333 |
|
8334 |
|
8335 | declare interface TNode {
|
8336 |
|
8337 | type: TNodeType;
|
8338 | |
8339 |
|
8340 |
|
8341 |
|
8342 |
|
8343 |
|
8344 |
|
8345 |
|
8346 | index: number;
|
8347 | |
8348 |
|
8349 |
|
8350 |
|
8351 |
|
8352 |
|
8353 |
|
8354 |
|
8355 |
|
8356 |
|
8357 |
|
8358 |
|
8359 |
|
8360 |
|
8361 |
|
8362 |
|
8363 |
|
8364 |
|
8365 |
|
8366 |
|
8367 |
|
8368 |
|
8369 |
|
8370 |
|
8371 |
|
8372 |
|
8373 |
|
8374 |
|
8375 |
|
8376 |
|
8377 |
|
8378 |
|
8379 |
|
8380 |
|
8381 |
|
8382 |
|
8383 |
|
8384 |
|
8385 |
|
8386 |
|
8387 |
|
8388 |
|
8389 |
|
8390 |
|
8391 |
|
8392 |
|
8393 |
|
8394 |
|
8395 |
|
8396 |
|
8397 |
|
8398 | insertBeforeIndex: InsertBeforeIndex;
|
8399 | |
8400 |
|
8401 |
|
8402 |
|
8403 |
|
8404 |
|
8405 |
|
8406 |
|
8407 |
|
8408 |
|
8409 |
|
8410 |
|
8411 |
|
8412 |
|
8413 | injectorIndex: number;
|
8414 |
|
8415 | directiveStart: number;
|
8416 | |
8417 |
|
8418 |
|
8419 |
|
8420 |
|
8421 |
|
8422 |
|
8423 | directiveEnd: number;
|
8424 | |
8425 |
|
8426 |
|
8427 |
|
8428 |
|
8429 | componentOffset: number;
|
8430 | |
8431 |
|
8432 |
|
8433 |
|
8434 |
|
8435 |
|
8436 |
|
8437 |
|
8438 |
|
8439 |
|
8440 |
|
8441 |
|
8442 |
|
8443 |
|
8444 |
|
8445 |
|
8446 | directiveStylingLast: number;
|
8447 | |
8448 |
|
8449 |
|
8450 |
|
8451 | propertyBindings: number[] | null;
|
8452 | |
8453 |
|
8454 |
|
8455 |
|
8456 | flags: TNodeFlags;
|
8457 | |
8458 |
|
8459 |
|
8460 |
|
8461 |
|
8462 |
|
8463 | providerIndexes: TNodeProviderIndexes;
|
8464 | |
8465 |
|
8466 |
|
8467 |
|
8468 |
|
8469 |
|
8470 |
|
8471 | value: any;
|
8472 | |
8473 |
|
8474 |
|
8475 |
|
8476 |
|
8477 |
|
8478 |
|
8479 |
|
8480 |
|
8481 |
|
8482 |
|
8483 |
|
8484 |
|
8485 |
|
8486 | attrs: TAttributes | null;
|
8487 | |
8488 |
|
8489 |
|
8490 |
|
8491 |
|
8492 |
|
8493 |
|
8494 |
|
8495 |
|
8496 |
|
8497 |
|
8498 | mergedAttrs: TAttributes | null;
|
8499 | |
8500 |
|
8501 |
|
8502 |
|
8503 |
|
8504 |
|
8505 |
|
8506 |
|
8507 |
|
8508 |
|
8509 |
|
8510 |
|
8511 |
|
8512 |
|
8513 |
|
8514 |
|
8515 |
|
8516 | localNames: (string | number)[] | null;
|
8517 |
|
8518 | initialInputs: InitialInputData | null | undefined;
|
8519 | |
8520 |
|
8521 |
|
8522 |
|
8523 | inputs: PropertyAliases | null;
|
8524 | |
8525 |
|
8526 |
|
8527 |
|
8528 | outputs: PropertyAliases | null;
|
8529 | |
8530 |
|
8531 |
|
8532 |
|
8533 |
|
8534 |
|
8535 |
|
8536 |
|
8537 | tView: TView | null;
|
8538 | |
8539 |
|
8540 |
|
8541 |
|
8542 | next: TNode | null;
|
8543 | |
8544 |
|
8545 |
|
8546 |
|
8547 | prev: TNode | null;
|
8548 | |
8549 |
|
8550 |
|
8551 |
|
8552 |
|
8553 |
|
8554 | projectionNext: TNode | null;
|
8555 | |
8556 |
|
8557 |
|
8558 |
|
8559 |
|
8560 |
|
8561 | child: TNode | null;
|
8562 | |
8563 |
|
8564 |
|
8565 |
|
8566 |
|
8567 |
|
8568 |
|
8569 |
|
8570 |
|
8571 |
|
8572 |
|
8573 |
|
8574 |
|
8575 |
|
8576 | parent: TElementNode | TContainerNode | null;
|
8577 | |
8578 |
|
8579 |
|
8580 |
|
8581 |
|
8582 |
|
8583 |
|
8584 |
|
8585 |
|
8586 |
|
8587 |
|
8588 |
|
8589 |
|
8590 |
|
8591 |
|
8592 |
|
8593 |
|
8594 |
|
8595 |
|
8596 |
|
8597 |
|
8598 |
|
8599 |
|
8600 |
|
8601 |
|
8602 |
|
8603 |
|
8604 |
|
8605 |
|
8606 |
|
8607 |
|
8608 |
|
8609 |
|
8610 |
|
8611 |
|
8612 |
|
8613 |
|
8614 |
|
8615 |
|
8616 | projection: (TNode | RNode[])[] | number | null;
|
8617 | |
8618 |
|
8619 |
|
8620 |
|
8621 |
|
8622 |
|
8623 |
|
8624 |
|
8625 |
|
8626 | styles: string | null;
|
8627 | |
8628 |
|
8629 |
|
8630 |
|
8631 |
|
8632 |
|
8633 |
|
8634 |
|
8635 |
|
8636 |
|
8637 |
|
8638 | stylesWithoutHost: string | null;
|
8639 | |
8640 |
|
8641 |
|
8642 |
|
8643 |
|
8644 |
|
8645 |
|
8646 |
|
8647 |
|
8648 |
|
8649 |
|
8650 |
|
8651 |
|
8652 |
|
8653 |
|
8654 |
|
8655 |
|
8656 |
|
8657 |
|
8658 |
|
8659 |
|
8660 |
|
8661 |
|
8662 |
|
8663 |
|
8664 |
|
8665 |
|
8666 | residualStyles: KeyValueArray<any> | undefined | null;
|
8667 | |
8668 |
|
8669 |
|
8670 |
|
8671 |
|
8672 |
|
8673 |
|
8674 |
|
8675 |
|
8676 | classes: string | null;
|
8677 | |
8678 |
|
8679 |
|
8680 |
|
8681 |
|
8682 |
|
8683 |
|
8684 |
|
8685 |
|
8686 |
|
8687 |
|
8688 | classesWithoutHost: string | null;
|
8689 | |
8690 |
|
8691 |
|
8692 |
|
8693 |
|
8694 |
|
8695 |
|
8696 |
|
8697 |
|
8698 | residualClasses: KeyValueArray<any> | undefined | null;
|
8699 | |
8700 |
|
8701 |
|
8702 |
|
8703 |
|
8704 |
|
8705 |
|
8706 |
|
8707 |
|
8708 |
|
8709 |
|
8710 |
|
8711 |
|
8712 | classBindings: TStylingRange;
|
8713 | |
8714 |
|
8715 |
|
8716 |
|
8717 |
|
8718 |
|
8719 |
|
8720 |
|
8721 |
|
8722 |
|
8723 |
|
8724 |
|
8725 |
|
8726 | styleBindings: TStylingRange;
|
8727 | }
|
8728 |
|
8729 |
|
8730 |
|
8731 |
|
8732 | declare const enum TNodeFlags {
|
8733 |
|
8734 | isDirectiveHost = 1,
|
8735 |
|
8736 | isProjected = 2,
|
8737 |
|
8738 | hasContentQuery = 4,
|
8739 |
|
8740 | hasClassInput = 8,
|
8741 |
|
8742 | hasStyleInput = 16,
|
8743 |
|
8744 | isDetached = 32,
|
8745 | |
8746 |
|
8747 |
|
8748 |
|
8749 |
|
8750 |
|
8751 | hasHostBindings = 64,
|
8752 | |
8753 |
|
8754 |
|
8755 | inSkipHydrationBlock = 128
|
8756 | }
|
8757 |
|
8758 |
|
8759 |
|
8760 |
|
8761 | declare const enum TNodeProviderIndexes {
|
8762 |
|
8763 | ProvidersStartIndexMask = 1048575,
|
8764 | |
8765 |
|
8766 |
|
8767 |
|
8768 | CptViewProvidersCountShift = 20,
|
8769 | CptViewProvidersCountShifter = 1048576
|
8770 | }
|
8771 |
|
8772 |
|
8773 |
|
8774 |
|
8775 |
|
8776 |
|
8777 |
|
8778 |
|
8779 |
|
8780 |
|
8781 |
|
8782 |
|
8783 |
|
8784 | declare const enum TNodeType {
|
8785 | |
8786 |
|
8787 |
|
8788 | Text = 1,
|
8789 | |
8790 |
|
8791 |
|
8792 | Element = 2,
|
8793 | |
8794 |
|
8795 |
|
8796 | Container = 4,
|
8797 | |
8798 |
|
8799 |
|
8800 | ElementContainer = 8,
|
8801 | |
8802 |
|
8803 |
|
8804 | Projection = 16,
|
8805 | |
8806 |
|
8807 |
|
8808 | Icu = 32,
|
8809 | |
8810 |
|
8811 |
|
8812 |
|
8813 |
|
8814 |
|
8815 |
|
8816 |
|
8817 |
|
8818 |
|
8819 |
|
8820 |
|
8821 |
|
8822 | Placeholder = 64,
|
8823 | AnyRNode = 3,
|
8824 | AnyContainer = 12
|
8825 | }
|
8826 |
|
8827 |
|
8828 |
|
8829 |
|
8830 | declare type TNodeWithLocalRefs = TContainerNode | TElementNode | TElementContainerNode;
|
8831 |
|
8832 |
|
8833 | declare interface TProjectionNode extends TNode {
|
8834 |
|
8835 | child: null;
|
8836 | |
8837 |
|
8838 |
|
8839 |
|
8840 |
|
8841 | parent: TElementNode | TElementContainerNode | null;
|
8842 | tView: null;
|
8843 |
|
8844 | projection: number;
|
8845 | value: null;
|
8846 | }
|
8847 |
|
8848 |
|
8849 |
|
8850 |
|
8851 |
|
8852 | declare interface TQueries {
|
8853 | |
8854 |
|
8855 |
|
8856 |
|
8857 | track(tQuery: TQuery): void;
|
8858 | |
8859 |
|
8860 |
|
8861 |
|
8862 | getByIndex(index: number): TQuery;
|
8863 | |
8864 |
|
8865 |
|
8866 | length: number;
|
8867 | |
8868 |
|
8869 |
|
8870 |
|
8871 |
|
8872 |
|
8873 | elementStart(tView: TView, tNode: TNode): void;
|
8874 | |
8875 |
|
8876 |
|
8877 |
|
8878 |
|
8879 | elementEnd(tNode: TNode): void;
|
8880 | |
8881 |
|
8882 |
|
8883 |
|
8884 |
|
8885 |
|
8886 | template(tView: TView, tNode: TNode): void;
|
8887 | |
8888 |
|
8889 |
|
8890 |
|
8891 |
|
8892 | embeddedTView(tNode: TNode): TQueries | null;
|
8893 | }
|
8894 |
|
8895 |
|
8896 |
|
8897 |
|
8898 |
|
8899 |
|
8900 | declare interface TQuery {
|
8901 | |
8902 |
|
8903 |
|
8904 | metadata: TQueryMetadata;
|
8905 | |
8906 |
|
8907 |
|
8908 |
|
8909 |
|
8910 | indexInDeclarationView: number;
|
8911 | |
8912 |
|
8913 |
|
8914 |
|
8915 |
|
8916 |
|
8917 |
|
8918 |
|
8919 |
|
8920 |
|
8921 |
|
8922 |
|
8923 |
|
8924 |
|
8925 |
|
8926 |
|
8927 |
|
8928 | matches: number[] | null;
|
8929 | |
8930 |
|
8931 |
|
8932 |
|
8933 |
|
8934 | crossesNgTemplate: boolean;
|
8935 | |
8936 |
|
8937 |
|
8938 |
|
8939 |
|
8940 |
|
8941 | elementStart(tView: TView, tNode: TNode): void;
|
8942 | |
8943 |
|
8944 |
|
8945 |
|
8946 |
|
8947 | elementEnd(tNode: TNode): void;
|
8948 | |
8949 |
|
8950 |
|
8951 |
|
8952 |
|
8953 |
|
8954 | template(tView: TView, tNode: TNode): void;
|
8955 | |
8956 |
|
8957 |
|
8958 |
|
8959 |
|
8960 |
|
8961 |
|
8962 | embeddedTView(tNode: TNode, childQueryIndex: number): TQuery | null;
|
8963 | }
|
8964 |
|
8965 |
|
8966 |
|
8967 |
|
8968 | declare interface TQueryMetadata {
|
8969 | predicate: ProviderToken<unknown> | string[];
|
8970 | read: any;
|
8971 | flags: QueryFlags;
|
8972 | }
|
8973 |
|
8974 |
|
8975 |
|
8976 |
|
8977 |
|
8978 |
|
8979 |
|
8980 |
|
8981 |
|
8982 |
|
8983 |
|
8984 |
|
8985 |
|
8986 |
|
8987 |
|
8988 |
|
8989 |
|
8990 |
|
8991 |
|
8992 |
|
8993 |
|
8994 |
|
8995 |
|
8996 |
|
8997 |
|
8998 |
|
8999 |
|
9000 |
|
9001 |
|
9002 |
|
9003 |
|
9004 |
|
9005 |
|
9006 |
|
9007 |
|
9008 |
|
9009 |
|
9010 |
|
9011 |
|
9012 |
|
9013 |
|
9014 |
|
9015 |
|
9016 |
|
9017 |
|
9018 | export declare interface TrackByFunction<T> {
|
9019 | |
9020 |
|
9021 |
|
9022 |
|
9023 | <U extends T>(index: number, item: T & U): any;
|
9024 | }
|
9025 |
|
9026 |
|
9027 |
|
9028 |
|
9029 |
|
9030 |
|
9031 |
|
9032 |
|
9033 |
|
9034 |
|
9035 |
|
9036 |
|
9037 |
|
9038 |
|
9039 |
|
9040 |
|
9041 | export declare class TransferState {
|
9042 |
|
9043 | static ɵprov: unknown;
|
9044 | private onSerializeCallbacks;
|
9045 | |
9046 |
|
9047 |
|
9048 | get<T>(key: StateKey<T>, defaultValue: T): T;
|
9049 | |
9050 |
|
9051 |
|
9052 | set<T>(key: StateKey<T>, value: T): void;
|
9053 | |
9054 |
|
9055 |
|
9056 | remove<T>(key: StateKey<T>): void;
|
9057 | |
9058 |
|
9059 |
|
9060 | hasKey<T>(key: StateKey<T>): boolean;
|
9061 | |
9062 |
|
9063 |
|
9064 | get isEmpty(): boolean;
|
9065 | |
9066 |
|
9067 |
|
9068 | onSerialize<T>(key: StateKey<T>, callback: () => T): void;
|
9069 | |
9070 |
|
9071 |
|
9072 | toJson(): string;
|
9073 | }
|
9074 |
|
9075 |
|
9076 |
|
9077 |
|
9078 |
|
9079 |
|
9080 |
|
9081 |
|
9082 |
|
9083 |
|
9084 |
|
9085 |
|
9086 |
|
9087 |
|
9088 |
|
9089 |
|
9090 |
|
9091 |
|
9092 |
|
9093 |
|
9094 |
|
9095 |
|
9096 |
|
9097 |
|
9098 |
|
9099 | export declare const TRANSLATIONS: InjectionToken<string>;
|
9100 |
|
9101 |
|
9102 |
|
9103 |
|
9104 |
|
9105 |
|
9106 |
|
9107 |
|
9108 |
|
9109 |
|
9110 |
|
9111 |
|
9112 |
|
9113 |
|
9114 |
|
9115 |
|
9116 |
|
9117 |
|
9118 |
|
9119 |
|
9120 |
|
9121 |
|
9122 | export declare const TRANSLATIONS_FORMAT: InjectionToken<string>;
|
9123 |
|
9124 |
|
9125 |
|
9126 |
|
9127 |
|
9128 |
|
9129 |
|
9130 |
|
9131 |
|
9132 |
|
9133 |
|
9134 |
|
9135 |
|
9136 |
|
9137 |
|
9138 |
|
9139 |
|
9140 |
|
9141 |
|
9142 |
|
9143 | declare interface TrustedHTML {
|
9144 | __brand__: 'TrustedHTML';
|
9145 | }
|
9146 |
|
9147 | declare interface TrustedScript {
|
9148 | __brand__: 'TrustedScript';
|
9149 | }
|
9150 |
|
9151 | declare interface TrustedScriptURL {
|
9152 | __brand__: 'TrustedScriptURL';
|
9153 | }
|
9154 |
|
9155 |
|
9156 |
|
9157 |
|
9158 |
|
9159 |
|
9160 | declare type TStylingKey = TStylingKeyPrimitive | TStylingStatic;
|
9161 |
|
9162 |
|
9163 |
|
9164 |
|
9165 |
|
9166 |
|
9167 |
|
9168 |
|
9169 |
|
9170 |
|
9171 |
|
9172 | declare type TStylingKeyPrimitive = string | null | false;
|
9173 |
|
9174 |
|
9175 |
|
9176 |
|
9177 |
|
9178 |
|
9179 |
|
9180 |
|
9181 |
|
9182 |
|
9183 |
|
9184 |
|
9185 |
|
9186 |
|
9187 |
|
9188 |
|
9189 |
|
9190 |
|
9191 |
|
9192 |
|
9193 |
|
9194 |
|
9195 |
|
9196 |
|
9197 |
|
9198 |
|
9199 |
|
9200 |
|
9201 |
|
9202 | declare interface TStylingRange {
|
9203 | __brand__: 'TStylingRange';
|
9204 | }
|
9205 |
|
9206 |
|
9207 |
|
9208 |
|
9209 |
|
9210 |
|
9211 |
|
9212 |
|
9213 |
|
9214 |
|
9215 |
|
9216 |
|
9217 |
|
9218 |
|
9219 |
|
9220 |
|
9221 |
|
9222 |
|
9223 |
|
9224 |
|
9225 |
|
9226 |
|
9227 |
|
9228 |
|
9229 |
|
9230 |
|
9231 |
|
9232 |
|
9233 |
|
9234 |
|
9235 |
|
9236 |
|
9237 |
|
9238 |
|
9239 |
|
9240 |
|
9241 |
|
9242 |
|
9243 |
|
9244 |
|
9245 |
|
9246 |
|
9247 |
|
9248 |
|
9249 |
|
9250 |
|
9251 |
|
9252 |
|
9253 |
|
9254 |
|
9255 |
|
9256 |
|
9257 |
|
9258 |
|
9259 |
|
9260 |
|
9261 |
|
9262 |
|
9263 |
|
9264 |
|
9265 |
|
9266 | declare interface TStylingStatic extends KeyValueArray<any> {
|
9267 | }
|
9268 |
|
9269 |
|
9270 | declare interface TTextNode extends TNode {
|
9271 |
|
9272 | index: number;
|
9273 | child: null;
|
9274 | |
9275 |
|
9276 |
|
9277 |
|
9278 |
|
9279 | parent: TElementNode | TElementContainerNode | null;
|
9280 | tView: null;
|
9281 | projection: null;
|
9282 | }
|
9283 |
|
9284 | declare const TVIEW = 1;
|
9285 |
|
9286 |
|
9287 |
|
9288 |
|
9289 |
|
9290 |
|
9291 |
|
9292 | declare interface TView {
|
9293 | |
9294 |
|
9295 |
|
9296 | type: TViewType;
|
9297 | |
9298 |
|
9299 |
|
9300 |
|
9301 | blueprint: LView;
|
9302 | |
9303 |
|
9304 |
|
9305 |
|
9306 | template: ComponentTemplate<{}> | null;
|
9307 | |
9308 |
|
9309 |
|
9310 | viewQuery: ViewQueriesFunction<{}> | null;
|
9311 | |
9312 |
|
9313 |
|
9314 | declTNode: TNode | null;
|
9315 |
|
9316 | firstCreatePass: boolean;
|
9317 | |
9318 |
|
9319 |
|
9320 |
|
9321 |
|
9322 |
|
9323 |
|
9324 |
|
9325 |
|
9326 |
|
9327 |
|
9328 | firstUpdatePass: boolean;
|
9329 |
|
9330 | data: TData;
|
9331 | |
9332 |
|
9333 |
|
9334 |
|
9335 |
|
9336 |
|
9337 |
|
9338 |
|
9339 | bindingStartIndex: number;
|
9340 | |
9341 |
|
9342 |
|
9343 |
|
9344 |
|
9345 |
|
9346 |
|
9347 |
|
9348 |
|
9349 |
|
9350 | expandoStartIndex: number;
|
9351 | |
9352 |
|
9353 |
|
9354 |
|
9355 |
|
9356 |
|
9357 | staticViewQueries: boolean;
|
9358 | |
9359 |
|
9360 |
|
9361 |
|
9362 |
|
9363 |
|
9364 | staticContentQueries: boolean;
|
9365 | |
9366 |
|
9367 |
|
9368 | firstChild: TNode | null;
|
9369 | |
9370 |
|
9371 |
|
9372 |
|
9373 |
|
9374 | hostBindingOpCodes: HostBindingOpCodes | null;
|
9375 | |
9376 |
|
9377 |
|
9378 |
|
9379 |
|
9380 |
|
9381 | directiveRegistry: DirectiveDefList | null;
|
9382 | |
9383 |
|
9384 |
|
9385 |
|
9386 |
|
9387 |
|
9388 |
|
9389 |
|
9390 |
|
9391 | pipeRegistry: PipeDefList | null;
|
9392 | |
9393 |
|
9394 |
|
9395 |
|
9396 |
|
9397 |
|
9398 |
|
9399 |
|
9400 |
|
9401 |
|
9402 |
|
9403 | preOrderHooks: HookData | null;
|
9404 | |
9405 |
|
9406 |
|
9407 |
|
9408 |
|
9409 | preOrderCheckHooks: HookData | null;
|
9410 | |
9411 |
|
9412 |
|
9413 |
|
9414 |
|
9415 |
|
9416 |
|
9417 | contentHooks: HookData | null;
|
9418 | |
9419 |
|
9420 |
|
9421 |
|
9422 |
|
9423 |
|
9424 |
|
9425 | contentCheckHooks: HookData | null;
|
9426 | |
9427 |
|
9428 |
|
9429 |
|
9430 |
|
9431 |
|
9432 |
|
9433 | viewHooks: HookData | null;
|
9434 | |
9435 |
|
9436 |
|
9437 |
|
9438 |
|
9439 |
|
9440 |
|
9441 | viewCheckHooks: HookData | null;
|
9442 | |
9443 |
|
9444 |
|
9445 |
|
9446 |
|
9447 |
|
9448 | destroyHooks: DestroyHookData | null;
|
9449 | |
9450 |
|
9451 |
|
9452 |
|
9453 |
|
9454 |
|
9455 |
|
9456 |
|
9457 |
|
9458 |
|
9459 |
|
9460 |
|
9461 |
|
9462 |
|
9463 |
|
9464 |
|
9465 |
|
9466 |
|
9467 |
|
9468 |
|
9469 |
|
9470 |
|
9471 |
|
9472 |
|
9473 |
|
9474 |
|
9475 | cleanup: any[] | null;
|
9476 | |
9477 |
|
9478 |
|
9479 |
|
9480 |
|
9481 |
|
9482 | components: number[] | null;
|
9483 | |
9484 |
|
9485 |
|
9486 | queries: TQueries | null;
|
9487 | |
9488 |
|
9489 |
|
9490 |
|
9491 |
|
9492 |
|
9493 |
|
9494 |
|
9495 |
|
9496 | contentQueries: number[] | null;
|
9497 | |
9498 |
|
9499 |
|
9500 | schemas: SchemaMetadata[] | null;
|
9501 | |
9502 |
|
9503 |
|
9504 |
|
9505 | consts: TConstants | null;
|
9506 | |
9507 |
|
9508 |
|
9509 |
|
9510 | incompleteFirstPass: boolean;
|
9511 | |
9512 |
|
9513 |
|
9514 |
|
9515 |
|
9516 |
|
9517 | ssrId: string | null;
|
9518 | }
|
9519 |
|
9520 |
|
9521 |
|
9522 |
|
9523 |
|
9524 |
|
9525 |
|
9526 |
|
9527 |
|
9528 | declare const enum TViewType {
|
9529 | |
9530 |
|
9531 |
|
9532 |
|
9533 |
|
9534 | Root = 0,
|
9535 | |
9536 |
|
9537 |
|
9538 |
|
9539 | Component = 1,
|
9540 | |
9541 |
|
9542 |
|
9543 |
|
9544 | Embedded = 2
|
9545 | }
|
9546 |
|
9547 |
|
9548 |
|
9549 |
|
9550 |
|
9551 |
|
9552 | declare const TYPE = 1;
|
9553 |
|
9554 |
|
9555 |
|
9556 |
|
9557 |
|
9558 |
|
9559 |
|
9560 |
|
9561 |
|
9562 |
|
9563 |
|
9564 | export declare const Type: FunctionConstructor;
|
9565 |
|
9566 | export declare interface Type<T> extends Function {
|
9567 | new (...args: any[]): T;
|
9568 | }
|
9569 |
|
9570 | declare type Type_2 = Function;
|
9571 |
|
9572 |
|
9573 |
|
9574 |
|
9575 |
|
9576 |
|
9577 |
|
9578 |
|
9579 |
|
9580 |
|
9581 |
|
9582 |
|
9583 | export declare interface TypeDecorator {
|
9584 | |
9585 |
|
9586 |
|
9587 | <T extends Type<any>>(type: T): T;
|
9588 | (target: Object, propertyKey?: string | symbol, parameterIndex?: number): void;
|
9589 | (target: unknown, context: unknown): void;
|
9590 | }
|
9591 |
|
9592 | declare type TypeOrFactory<T> = T | (() => T);
|
9593 |
|
9594 |
|
9595 |
|
9596 |
|
9597 |
|
9598 |
|
9599 |
|
9600 |
|
9601 |
|
9602 |
|
9603 |
|
9604 |
|
9605 |
|
9606 |
|
9607 |
|
9608 | export declare interface TypeProvider extends Type<any> {
|
9609 | }
|
9610 |
|
9611 |
|
9612 |
|
9613 |
|
9614 |
|
9615 |
|
9616 |
|
9617 |
|
9618 | export declare function untracked<T>(nonReactiveReadsFn: () => T): T;
|
9619 |
|
9620 |
|
9621 |
|
9622 |
|
9623 |
|
9624 |
|
9625 | export declare type ValueEqualityFn<T> = (a: T, b: T) => boolean;
|
9626 |
|
9627 |
|
9628 |
|
9629 |
|
9630 |
|
9631 |
|
9632 |
|
9633 |
|
9634 |
|
9635 |
|
9636 |
|
9637 |
|
9638 |
|
9639 |
|
9640 |
|
9641 |
|
9642 |
|
9643 | export declare interface ValueProvider extends ValueSansProvider {
|
9644 | |
9645 |
|
9646 |
|
9647 | provide: any;
|
9648 | |
9649 |
|
9650 |
|
9651 |
|
9652 | multi?: boolean;
|
9653 | }
|
9654 |
|
9655 |
|
9656 |
|
9657 |
|
9658 |
|
9659 |
|
9660 |
|
9661 | export declare interface ValueSansProvider {
|
9662 | |
9663 |
|
9664 |
|
9665 | useValue: any;
|
9666 | }
|
9667 |
|
9668 |
|
9669 |
|
9670 |
|
9671 | export declare const VERSION: Version;
|
9672 |
|
9673 |
|
9674 |
|
9675 |
|
9676 |
|
9677 |
|
9678 |
|
9679 | export declare class Version {
|
9680 | full: string;
|
9681 | readonly major: string;
|
9682 | readonly minor: string;
|
9683 | readonly patch: string;
|
9684 | constructor(full: string);
|
9685 | }
|
9686 |
|
9687 | declare const VIEW_REFS = 8;
|
9688 |
|
9689 |
|
9690 |
|
9691 |
|
9692 |
|
9693 |
|
9694 | export declare type ViewChild = Query;
|
9695 |
|
9696 |
|
9697 |
|
9698 |
|
9699 |
|
9700 |
|
9701 |
|
9702 | export declare const ViewChild: ViewChildDecorator;
|
9703 |
|
9704 |
|
9705 |
|
9706 |
|
9707 |
|
9708 |
|
9709 |
|
9710 | export declare interface ViewChildDecorator {
|
9711 | |
9712 |
|
9713 |
|
9714 |
|
9715 |
|
9716 |
|
9717 |
|
9718 |
|
9719 |
|
9720 |
|
9721 |
|
9722 |
|
9723 |
|
9724 |
|
9725 |
|
9726 |
|
9727 |
|
9728 |
|
9729 |
|
9730 |
|
9731 |
|
9732 |
|
9733 |
|
9734 |
|
9735 |
|
9736 |
|
9737 |
|
9738 |
|
9739 |
|
9740 |
|
9741 |
|
9742 |
|
9743 |
|
9744 |
|
9745 |
|
9746 |
|
9747 |
|
9748 |
|
9749 |
|
9750 |
|
9751 |
|
9752 |
|
9753 |
|
9754 |
|
9755 |
|
9756 | (selector: ProviderToken<unknown> | Function | string, opts?: {
|
9757 | read?: any;
|
9758 | static?: boolean;
|
9759 | }): any;
|
9760 | new (selector: ProviderToken<unknown> | Function | string, opts?: {
|
9761 | read?: any;
|
9762 | static?: boolean;
|
9763 | }): ViewChild;
|
9764 | }
|
9765 |
|
9766 |
|
9767 |
|
9768 |
|
9769 |
|
9770 |
|
9771 | export declare type ViewChildren = Query;
|
9772 |
|
9773 |
|
9774 |
|
9775 |
|
9776 |
|
9777 |
|
9778 |
|
9779 | export declare const ViewChildren: ViewChildrenDecorator;
|
9780 |
|
9781 |
|
9782 |
|
9783 |
|
9784 |
|
9785 |
|
9786 |
|
9787 |
|
9788 | export declare interface ViewChildrenDecorator {
|
9789 | |
9790 |
|
9791 |
|
9792 |
|
9793 |
|
9794 |
|
9795 |
|
9796 |
|
9797 |
|
9798 |
|
9799 |
|
9800 |
|
9801 |
|
9802 |
|
9803 |
|
9804 |
|
9805 |
|
9806 |
|
9807 |
|
9808 |
|
9809 |
|
9810 |
|
9811 |
|
9812 |
|
9813 |
|
9814 |
|
9815 |
|
9816 |
|
9817 |
|
9818 |
|
9819 |
|
9820 |
|
9821 |
|
9822 |
|
9823 |
|
9824 |
|
9825 |
|
9826 |
|
9827 |
|
9828 |
|
9829 |
|
9830 |
|
9831 |
|
9832 |
|
9833 |
|
9834 |
|
9835 |
|
9836 |
|
9837 |
|
9838 |
|
9839 |
|
9840 | (selector: ProviderToken<unknown> | Function | string, opts?: {
|
9841 | read?: any;
|
9842 | emitDistinctChangesOnly?: boolean;
|
9843 | }): any;
|
9844 | new (selector: ProviderToken<unknown> | Function | string, opts?: {
|
9845 | read?: any;
|
9846 | emitDistinctChangesOnly?: boolean;
|
9847 | }): ViewChildren;
|
9848 | }
|
9849 |
|
9850 |
|
9851 |
|
9852 |
|
9853 |
|
9854 |
|
9855 |
|
9856 |
|
9857 |
|
9858 |
|
9859 |
|
9860 |
|
9861 |
|
9862 |
|
9863 |
|
9864 |
|
9865 | export declare abstract class ViewContainerRef {
|
9866 | |
9867 |
|
9868 |
|
9869 |
|
9870 |
|
9871 |
|
9872 |
|
9873 |
|
9874 |
|
9875 |
|
9876 |
|
9877 |
|
9878 |
|
9879 | abstract get element(): ElementRef;
|
9880 | |
9881 |
|
9882 |
|
9883 | abstract get injector(): Injector;
|
9884 |
|
9885 | abstract get parentInjector(): Injector;
|
9886 | |
9887 |
|
9888 |
|
9889 | abstract clear(): void;
|
9890 | |
9891 |
|
9892 |
|
9893 |
|
9894 |
|
9895 | abstract get(index: number): ViewRef | null;
|
9896 | |
9897 |
|
9898 |
|
9899 |
|
9900 | abstract get length(): number;
|
9901 | |
9902 |
|
9903 |
|
9904 |
|
9905 |
|
9906 |
|
9907 |
|
9908 |
|
9909 |
|
9910 |
|
9911 |
|
9912 |
|
9913 |
|
9914 | abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, options?: {
|
9915 | index?: number;
|
9916 | injector?: Injector;
|
9917 | }): EmbeddedViewRef<C>;
|
9918 | |
9919 |
|
9920 |
|
9921 |
|
9922 |
|
9923 |
|
9924 |
|
9925 |
|
9926 |
|
9927 |
|
9928 |
|
9929 | abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, index?: number): EmbeddedViewRef<C>;
|
9930 | |
9931 |
|
9932 |
|
9933 |
|
9934 |
|
9935 |
|
9936 |
|
9937 |
|
9938 |
|
9939 |
|
9940 |
|
9941 |
|
9942 |
|
9943 |
|
9944 |
|
9945 |
|
9946 |
|
9947 |
|
9948 |
|
9949 |
|
9950 | abstract createComponent<C>(componentType: Type<C>, options?: {
|
9951 | index?: number;
|
9952 | injector?: Injector;
|
9953 | ngModuleRef?: NgModuleRef<unknown>;
|
9954 | environmentInjector?: EnvironmentInjector | NgModuleRef<unknown>;
|
9955 | projectableNodes?: Node[][];
|
9956 | }): ComponentRef<C>;
|
9957 | |
9958 |
|
9959 |
|
9960 |
|
9961 |
|
9962 |
|
9963 |
|
9964 |
|
9965 |
|
9966 |
|
9967 |
|
9968 |
|
9969 |
|
9970 |
|
9971 |
|
9972 |
|
9973 |
|
9974 |
|
9975 | abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][], environmentInjector?: EnvironmentInjector | NgModuleRef<any>): ComponentRef<C>;
|
9976 | |
9977 |
|
9978 |
|
9979 |
|
9980 |
|
9981 |
|
9982 |
|
9983 |
|
9984 | abstract insert(viewRef: ViewRef, index?: number): ViewRef;
|
9985 | |
9986 |
|
9987 |
|
9988 |
|
9989 |
|
9990 |
|
9991 | abstract move(viewRef: ViewRef, currentIndex: number): ViewRef;
|
9992 | |
9993 |
|
9994 |
|
9995 |
|
9996 |
|
9997 |
|
9998 | abstract indexOf(viewRef: ViewRef): number;
|
9999 | |
10000 |
|
10001 |
|
10002 |
|
10003 |
|
10004 | abstract remove(index?: number): void;
|
10005 | |
10006 |
|
10007 |
|
10008 |
|
10009 |
|
10010 |
|
10011 | abstract detach(index?: number): ViewRef | null;
|
10012 | }
|
10013 |
|
10014 |
|
10015 |
|
10016 |
|
10017 |
|
10018 |
|
10019 |
|
10020 |
|
10021 |
|
10022 |
|
10023 |
|
10024 |
|
10025 |
|
10026 |
|
10027 |
|
10028 | export declare enum ViewEncapsulation {
|
10029 | |
10030 |
|
10031 |
|
10032 |
|
10033 |
|
10034 |
|
10035 |
|
10036 | Emulated = 0,
|
10037 | |
10038 |
|
10039 |
|
10040 |
|
10041 |
|
10042 | None = 2,
|
10043 | |
10044 |
|
10045 |
|
10046 |
|
10047 |
|
10048 | ShadowDom = 3
|
10049 | }
|
10050 |
|
10051 | declare enum ViewEncapsulation_2 {
|
10052 | Emulated = 0,
|
10053 | None = 2,
|
10054 | ShadowDom = 3
|
10055 | }
|
10056 |
|
10057 |
|
10058 |
|
10059 |
|
10060 | declare type ViewQueriesFunction<T> = <U extends T>(rf: ɵRenderFlags, ctx: U) => void;
|
10061 |
|
10062 |
|
10063 |
|
10064 |
|
10065 |
|
10066 |
|
10067 |
|
10068 |
|
10069 | export declare abstract class ViewRef extends ChangeDetectorRef {
|
10070 | |
10071 |
|
10072 |
|
10073 | abstract destroy(): void;
|
10074 | |
10075 |
|
10076 |
|
10077 |
|
10078 | abstract get destroyed(): boolean;
|
10079 | |
10080 |
|
10081 |
|
10082 |
|
10083 |
|
10084 |
|
10085 | abstract onDestroy(callback: Function): void;
|
10086 | }
|
10087 |
|
10088 |
|
10089 |
|
10090 |
|
10091 |
|
10092 |
|
10093 |
|
10094 | declare interface ViewRefTracker {
|
10095 | detachView(viewRef: ViewRef): void;
|
10096 | }
|
10097 |
|
10098 | declare interface WeakRef<T extends object> {
|
10099 | deref(): T | undefined;
|
10100 | }
|
10101 |
|
10102 | declare interface WeakRefCtor {
|
10103 | new <T extends object>(value: T): WeakRef<T>;
|
10104 | }
|
10105 |
|
10106 |
|
10107 |
|
10108 |
|
10109 |
|
10110 |
|
10111 | export declare interface WritableSignal<T> extends Signal<T> {
|
10112 | |
10113 |
|
10114 |
|
10115 | set(value: T): void;
|
10116 | |
10117 |
|
10118 |
|
10119 |
|
10120 | update(updateFn: (value: T) => T): void;
|
10121 | |
10122 |
|
10123 |
|
10124 |
|
10125 | mutate(mutatorFn: (value: T) => void): void;
|
10126 | |
10127 |
|
10128 |
|
10129 |
|
10130 |
|
10131 | asReadonly(): Signal<T>;
|
10132 | }
|
10133 |
|
10134 |
|
10135 |
|
10136 |
|
10137 |
|
10138 | export declare function ɵ_sanitizeHtml(defaultDoc: any, unsafeHtmlInput: string): TrustedHTML | string;
|
10139 |
|
10140 |
|
10141 | export declare function ɵ_sanitizeUrl(url: string): string;
|
10142 |
|
10143 |
|
10144 |
|
10145 |
|
10146 |
|
10147 | export declare const ɵALLOW_MULTIPLE_PLATFORMS: InjectionToken<boolean>;
|
10148 |
|
10149 | export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType.Html): value is ɵSafeHtml;
|
10150 |
|
10151 | export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType.ResourceUrl): value is ɵSafeResourceUrl;
|
10152 |
|
10153 | export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType.Script): value is ɵSafeScript;
|
10154 |
|
10155 | export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType.Style): value is ɵSafeStyle;
|
10156 |
|
10157 | export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType.Url): value is ɵSafeUrl;
|
10158 |
|
10159 | export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType): boolean;
|
10160 |
|
10161 |
|
10162 |
|
10163 |
|
10164 |
|
10165 |
|
10166 |
|
10167 |
|
10168 | export declare function ɵannotateForHydration(appRef: ApplicationRef, doc: Document): void;
|
10169 |
|
10170 |
|
10171 |
|
10172 |
|
10173 |
|
10174 | export declare const enum ɵAttributeMarker {
|
10175 | |
10176 |
|
10177 |
|
10178 |
|
10179 |
|
10180 |
|
10181 |
|
10182 | ImplicitAttributes = -1,
|
10183 | |
10184 |
|
10185 |
|
10186 |
|
10187 |
|
10188 | NamespaceURI = 0,
|
10189 | |
10190 |
|
10191 |
|
10192 |
|
10193 |
|
10194 |
|
10195 |
|
10196 |
|
10197 |
|
10198 |
|
10199 |
|
10200 |
|
10201 |
|
10202 |
|
10203 |
|
10204 |
|
10205 | Classes = 1,
|
10206 | |
10207 |
|
10208 |
|
10209 |
|
10210 |
|
10211 |
|
10212 |
|
10213 |
|
10214 |
|
10215 |
|
10216 |
|
10217 |
|
10218 |
|
10219 |
|
10220 |
|
10221 |
|
10222 |
|
10223 | Styles = 2,
|
10224 | |
10225 |
|
10226 |
|
10227 |
|
10228 |
|
10229 |
|
10230 |
|
10231 |
|
10232 |
|
10233 |
|
10234 |
|
10235 |
|
10236 |
|
10237 |
|
10238 |
|
10239 | Bindings = 3,
|
10240 | |
10241 |
|
10242 |
|
10243 |
|
10244 |
|
10245 |
|
10246 |
|
10247 |
|
10248 |
|
10249 |
|
10250 |
|
10251 |
|
10252 |
|
10253 |
|
10254 |
|
10255 |
|
10256 |
|
10257 |
|
10258 |
|
10259 |
|
10260 |
|
10261 |
|
10262 |
|
10263 | Template = 4,
|
10264 | |
10265 |
|
10266 |
|
10267 |
|
10268 |
|
10269 |
|
10270 |
|
10271 |
|
10272 |
|
10273 |
|
10274 |
|
10275 |
|
10276 |
|
10277 |
|
10278 |
|
10279 |
|
10280 | ProjectAs = 5,
|
10281 | |
10282 |
|
10283 |
|
10284 |
|
10285 |
|
10286 |
|
10287 |
|
10288 |
|
10289 |
|
10290 |
|
10291 |
|
10292 |
|
10293 |
|
10294 |
|
10295 | I18n = 6
|
10296 | }
|
10297 |
|
10298 |
|
10299 |
|
10300 |
|
10301 |
|
10302 |
|
10303 |
|
10304 |
|
10305 |
|
10306 |
|
10307 | export declare function ɵbypassSanitizationTrustHtml(trustedHtml: string): ɵSafeHtml;
|
10308 |
|
10309 |
|
10310 |
|
10311 |
|
10312 |
|
10313 |
|
10314 |
|
10315 |
|
10316 |
|
10317 |
|
10318 | export declare function ɵbypassSanitizationTrustResourceUrl(trustedResourceUrl: string): ɵSafeResourceUrl;
|
10319 |
|
10320 |
|
10321 |
|
10322 |
|
10323 |
|
10324 |
|
10325 |
|
10326 |
|
10327 |
|
10328 |
|
10329 | export declare function ɵbypassSanitizationTrustScript(trustedScript: string): ɵSafeScript;
|
10330 |
|
10331 |
|
10332 |
|
10333 |
|
10334 |
|
10335 |
|
10336 |
|
10337 |
|
10338 |
|
10339 |
|
10340 | export declare function ɵbypassSanitizationTrustStyle(trustedStyle: string): ɵSafeStyle;
|
10341 |
|
10342 |
|
10343 |
|
10344 |
|
10345 |
|
10346 |
|
10347 |
|
10348 |
|
10349 |
|
10350 |
|
10351 | export declare function ɵbypassSanitizationTrustUrl(trustedUrl: string): ɵSafeUrl;
|
10352 |
|
10353 |
|
10354 | export declare const enum ɵBypassType {
|
10355 | Url = "URL",
|
10356 | Html = "HTML",
|
10357 | ResourceUrl = "ResourceURL",
|
10358 | Script = "Script",
|
10359 | Style = "Style"
|
10360 | }
|
10361 |
|
10362 | export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
|
10363 |
|
10364 |
|
10365 |
|
10366 | export declare function ɵcoerceToBoolean(value: unknown): boolean;
|
10367 |
|
10368 |
|
10369 |
|
10370 |
|
10371 |
|
10372 |
|
10373 |
|
10374 |
|
10375 |
|
10376 |
|
10377 | export declare function ɵcompileComponent(type: Type<any>, metadata: Component): void;
|
10378 |
|
10379 |
|
10380 |
|
10381 |
|
10382 |
|
10383 |
|
10384 |
|
10385 |
|
10386 | export declare function ɵcompileDirective(type: Type<any>, directive: Directive | null): void;
|
10387 |
|
10388 |
|
10389 |
|
10390 |
|
10391 |
|
10392 |
|
10393 | export declare function ɵcompileNgModule(moduleType: Type<any>, ngModule?: NgModule): void;
|
10394 |
|
10395 |
|
10396 |
|
10397 |
|
10398 |
|
10399 |
|
10400 |
|
10401 | export declare function ɵcompileNgModuleDefs(moduleType: ɵNgModuleType, ngModule: NgModule, allowDuplicateDeclarationsInRoot?: boolean): void;
|
10402 |
|
10403 | export declare function ɵcompileNgModuleFactory<M>(injector: Injector, options: CompilerOptions, moduleType: Type<M>): Promise<NgModuleFactory<M>>;
|
10404 |
|
10405 | export declare function ɵcompilePipe(type: Type<any>, meta: Pipe): void;
|
10406 |
|
10407 |
|
10408 |
|
10409 |
|
10410 |
|
10411 |
|
10412 |
|
10413 |
|
10414 |
|
10415 |
|
10416 |
|
10417 |
|
10418 |
|
10419 | export declare interface ɵComponentDef<T> extends ɵDirectiveDef<T> {
|
10420 | |
10421 |
|
10422 |
|
10423 |
|
10424 | readonly id: string;
|
10425 | |
10426 |
|
10427 |
|
10428 | readonly template: ComponentTemplate<T>;
|
10429 |
|
10430 | readonly consts: TConstantsOrFactory | null;
|
10431 | |
10432 |
|
10433 |
|
10434 | readonly ngContentSelectors?: string[];
|
10435 | |
10436 |
|
10437 |
|
10438 | readonly styles: string[];
|
10439 | |
10440 |
|
10441 |
|
10442 |
|
10443 |
|
10444 |
|
10445 | readonly decls: number;
|
10446 | |
10447 |
|
10448 |
|
10449 |
|
10450 |
|
10451 |
|
10452 | readonly vars: number;
|
10453 | |
10454 |
|
10455 |
|
10456 | viewQuery: ViewQueriesFunction<T> | null;
|
10457 | |
10458 |
|
10459 |
|
10460 |
|
10461 |
|
10462 |
|
10463 |
|
10464 |
|
10465 |
|
10466 | readonly encapsulation: ViewEncapsulation;
|
10467 | |
10468 |
|
10469 |
|
10470 |
|
10471 | readonly data: {
|
10472 | [kind: string]: any;
|
10473 | };
|
10474 |
|
10475 | readonly onPush: boolean;
|
10476 | |
10477 |
|
10478 |
|
10479 |
|
10480 |
|
10481 |
|
10482 | directiveDefs: DirectiveDefListOrFactory | null;
|
10483 | |
10484 |
|
10485 |
|
10486 |
|
10487 |
|
10488 |
|
10489 | pipeDefs: PipeDefListOrFactory | null;
|
10490 | |
10491 |
|
10492 |
|
10493 | dependencies: TypeOrFactory<DependencyTypeList> | null;
|
10494 | |
10495 |
|
10496 |
|
10497 | schemas: SchemaMetadata[] | null;
|
10498 | |
10499 |
|
10500 |
|
10501 |
|
10502 | tView: TView | null;
|
10503 | |
10504 |
|
10505 |
|
10506 |
|
10507 | getStandaloneInjector: ((parentInjector: EnvironmentInjector) => EnvironmentInjector | null) | null;
|
10508 | |
10509 |
|
10510 |
|
10511 |
|
10512 | readonly _?: unknown;
|
10513 | }
|
10514 |
|
10515 |
|
10516 |
|
10517 |
|
10518 |
|
10519 | export declare interface ɵComponentType<T> extends Type<T> {
|
10520 | ɵcmp: unknown;
|
10521 | }
|
10522 |
|
10523 | export declare class ɵConsole {
|
10524 | log(message: string): void;
|
10525 | warn(message: string): void;
|
10526 | static ɵfac: i0.ɵɵFactoryDeclaration<ɵConsole, never>;
|
10527 | static ɵprov: i0.ɵɵInjectableDeclaration<ɵConsole>;
|
10528 | }
|
10529 |
|
10530 | export declare function ɵconvertToBitFlags(flags: InjectOptions | InjectFlags | undefined): InjectFlags | undefined;
|
10531 |
|
10532 |
|
10533 |
|
10534 |
|
10535 |
|
10536 |
|
10537 | export declare function ɵcreateInjector(defType: any, parent?: Injector | null, additionalProviders?: StaticProvider[] | null, name?: string): Injector;
|
10538 |
|
10539 |
|
10540 |
|
10541 |
|
10542 |
|
10543 |
|
10544 |
|
10545 |
|
10546 |
|
10547 |
|
10548 | export declare type ɵCssSelectorList = CssSelector[];
|
10549 |
|
10550 |
|
10551 |
|
10552 |
|
10553 | export declare const enum ɵCurrencyIndex {
|
10554 | Symbol = 0,
|
10555 | SymbolNarrow = 1,
|
10556 | NbOfDigits = 2
|
10557 | }
|
10558 |
|
10559 |
|
10560 |
|
10561 |
|
10562 | export declare const ɵDEFAULT_LOCALE_ID = "en-US";
|
10563 |
|
10564 | export declare const ɵdefaultIterableDiffers: IterableDiffers;
|
10565 |
|
10566 | export declare const ɵdefaultKeyValueDiffers: KeyValueDiffers;
|
10567 |
|
10568 |
|
10569 |
|
10570 |
|
10571 |
|
10572 |
|
10573 |
|
10574 |
|
10575 | export declare function ɵdetectChanges(component: {}): void;
|
10576 |
|
10577 |
|
10578 | export declare function ɵdevModeEqual(a: any, b: any): boolean;
|
10579 |
|
10580 |
|
10581 |
|
10582 |
|
10583 |
|
10584 |
|
10585 |
|
10586 |
|
10587 |
|
10588 |
|
10589 |
|
10590 |
|
10591 |
|
10592 |
|
10593 |
|
10594 | export declare interface ɵDirectiveDef<T> {
|
10595 | |
10596 |
|
10597 |
|
10598 |
|
10599 |
|
10600 | readonly inputs: {
|
10601 | [P in keyof T]: string;
|
10602 | };
|
10603 | |
10604 |
|
10605 |
|
10606 |
|
10607 | readonly declaredInputs: {
|
10608 | [P in keyof T]: string;
|
10609 | };
|
10610 | |
10611 |
|
10612 |
|
10613 |
|
10614 |
|
10615 | readonly outputs: {
|
10616 | [P in keyof T]: string;
|
10617 | };
|
10618 | |
10619 |
|
10620 |
|
10621 | contentQueries: ContentQueriesFunction<T> | null;
|
10622 | |
10623 |
|
10624 |
|
10625 |
|
10626 |
|
10627 | viewQuery: ViewQueriesFunction<T> | null;
|
10628 | |
10629 |
|
10630 |
|
10631 | readonly hostBindings: HostBindingsFunction<T> | null;
|
10632 | |
10633 |
|
10634 |
|
10635 |
|
10636 |
|
10637 |
|
10638 | readonly hostVars: number;
|
10639 | |
10640 |
|
10641 |
|
10642 |
|
10643 |
|
10644 |
|
10645 |
|
10646 |
|
10647 |
|
10648 |
|
10649 |
|
10650 |
|
10651 |
|
10652 |
|
10653 |
|
10654 |
|
10655 |
|
10656 |
|
10657 |
|
10658 |
|
10659 |
|
10660 |
|
10661 |
|
10662 |
|
10663 |
|
10664 |
|
10665 |
|
10666 |
|
10667 |
|
10668 |
|
10669 | readonly hostAttrs: TAttributes | null;
|
10670 |
|
10671 | readonly type: Type<T>;
|
10672 |
|
10673 | providersResolver: (<U extends T>(def: ɵDirectiveDef<U>, processProvidersFn?: ProcessProvidersFunction) => void) | null;
|
10674 |
|
10675 | readonly selectors: ɵCssSelectorList;
|
10676 | |
10677 |
|
10678 |
|
10679 | readonly exportAs: string[] | null;
|
10680 | |
10681 |
|
10682 |
|
10683 | readonly standalone: boolean;
|
10684 | |
10685 |
|
10686 |
|
10687 |
|
10688 | readonly factory: FactoryFn<T> | null;
|
10689 | |
10690 |
|
10691 |
|
10692 | readonly features: DirectiveDefFeature[] | null;
|
10693 | |
10694 |
|
10695 |
|
10696 |
|
10697 |
|
10698 |
|
10699 |
|
10700 |
|
10701 |
|
10702 | findHostDirectiveDefs: ((currentDef: ɵDirectiveDef<unknown>, matchedDefs: ɵDirectiveDef<unknown>[], hostDirectiveDefs: HostDirectiveDefs) => void) | null;
|
10703 |
|
10704 | hostDirectives: HostDirectiveDef[] | null;
|
10705 | setInput: (<U extends T>(this: ɵDirectiveDef<U>, instance: U, value: any, publicName: string, privateName: string) => void) | null;
|
10706 | }
|
10707 |
|
10708 |
|
10709 |
|
10710 |
|
10711 |
|
10712 | export declare interface ɵDirectiveType<T> extends Type<T> {
|
10713 | ɵdir: unknown;
|
10714 | ɵfac: unknown;
|
10715 | }
|
10716 |
|
10717 |
|
10718 |
|
10719 |
|
10720 |
|
10721 |
|
10722 |
|
10723 | export declare const ɵENABLED_SSR_FEATURES: InjectionToken<Set<string>>;
|
10724 |
|
10725 |
|
10726 |
|
10727 |
|
10728 | export declare const enum ɵExtraLocaleDataIndex {
|
10729 | ExtraDayPeriodFormats = 0,
|
10730 | ExtraDayPeriodStandalone = 1,
|
10731 | ExtraDayPeriodsRules = 2
|
10732 | }
|
10733 |
|
10734 |
|
10735 |
|
10736 |
|
10737 |
|
10738 |
|
10739 |
|
10740 |
|
10741 | export declare function ɵfindLocaleData(locale: string): any;
|
10742 |
|
10743 |
|
10744 |
|
10745 |
|
10746 |
|
10747 |
|
10748 | export declare function ɵflushModuleScopingQueueAsMuchAsPossible(): void;
|
10749 |
|
10750 |
|
10751 |
|
10752 |
|
10753 |
|
10754 | export declare function ɵformatRuntimeError<T extends number = RuntimeErrorCode>(code: T, message: null | false | string): string;
|
10755 |
|
10756 |
|
10757 |
|
10758 |
|
10759 |
|
10760 |
|
10761 |
|
10762 |
|
10763 |
|
10764 |
|
10765 |
|
10766 |
|
10767 |
|
10768 |
|
10769 |
|
10770 |
|
10771 |
|
10772 |
|
10773 |
|
10774 |
|
10775 |
|
10776 |
|
10777 |
|
10778 |
|
10779 |
|
10780 |
|
10781 | export declare function ɵgetDirectives(node: Node): {}[];
|
10782 |
|
10783 |
|
10784 |
|
10785 |
|
10786 |
|
10787 |
|
10788 |
|
10789 |
|
10790 |
|
10791 |
|
10792 |
|
10793 |
|
10794 | export declare function ɵgetHostElement(componentOrDirective: {}): Element;
|
10795 |
|
10796 |
|
10797 |
|
10798 |
|
10799 |
|
10800 |
|
10801 |
|
10802 | export declare function ɵgetInjectableDef<T>(type: any): ɵɵInjectableDeclaration<T> | null;
|
10803 |
|
10804 |
|
10805 |
|
10806 |
|
10807 |
|
10808 |
|
10809 |
|
10810 |
|
10811 |
|
10812 |
|
10813 |
|
10814 |
|
10815 |
|
10816 |
|
10817 |
|
10818 |
|
10819 |
|
10820 |
|
10821 |
|
10822 |
|
10823 |
|
10824 | export declare function ɵgetLContext(target: any): ɵLContext | null;
|
10825 |
|
10826 |
|
10827 |
|
10828 |
|
10829 |
|
10830 |
|
10831 |
|
10832 |
|
10833 |
|
10834 |
|
10835 | export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
|
10836 |
|
10837 |
|
10838 |
|
10839 |
|
10840 |
|
10841 |
|
10842 |
|
10843 |
|
10844 |
|
10845 | export declare function ɵgetLocalePluralCase(locale: string): (value: number) => number;
|
10846 |
|
10847 | export declare function ɵgetSanitizationBypassType(value: any): ɵBypassType | null;
|
10848 |
|
10849 |
|
10850 |
|
10851 |
|
10852 | export declare function ɵgetUnknownElementStrictMode(): boolean;
|
10853 |
|
10854 |
|
10855 |
|
10856 |
|
10857 | export declare function ɵgetUnknownPropertyStrictMode(): boolean;
|
10858 |
|
10859 |
|
10860 | export declare const ɵglobal: any;
|
10861 |
|
10862 |
|
10863 |
|
10864 |
|
10865 |
|
10866 |
|
10867 |
|
10868 |
|
10869 |
|
10870 |
|
10871 | export declare class ɵInitialRenderPendingTasks implements OnDestroy {
|
10872 | private taskId;
|
10873 | private pendingTasks;
|
10874 | hasPendingTasks: BehaviorSubject<boolean>;
|
10875 | add(): number;
|
10876 | remove(taskId: number): void;
|
10877 | ngOnDestroy(): void;
|
10878 | static ɵfac: i0.ɵɵFactoryDeclaration<ɵInitialRenderPendingTasks, never>;
|
10879 | static ɵprov: i0.ɵɵInjectableDeclaration<ɵInitialRenderPendingTasks>;
|
10880 | }
|
10881 |
|
10882 |
|
10883 | export declare function ɵinjectChangeDetectorRef(flags: InjectFlags): ChangeDetectorRef;
|
10884 |
|
10885 |
|
10886 |
|
10887 |
|
10888 |
|
10889 |
|
10890 | export declare const ɵINJECTOR_SCOPE: InjectionToken<InjectorScope | null>;
|
10891 |
|
10892 |
|
10893 |
|
10894 |
|
10895 |
|
10896 |
|
10897 |
|
10898 |
|
10899 |
|
10900 |
|
10901 |
|
10902 |
|
10903 | export declare function ɵinternalCreateApplication(config: {
|
10904 | rootComponent?: Type<unknown>;
|
10905 | appProviders?: Array<Provider | EnvironmentProviders>;
|
10906 | platformProviders?: Provider[];
|
10907 | }): Promise<ApplicationRef>;
|
10908 |
|
10909 | export declare interface ɵInternalEnvironmentProviders extends EnvironmentProviders {
|
10910 | ɵproviders: (Provider | EnvironmentProviders)[];
|
10911 | |
10912 |
|
10913 |
|
10914 |
|
10915 |
|
10916 | ɵfromNgModule?: true;
|
10917 | }
|
10918 |
|
10919 |
|
10920 |
|
10921 |
|
10922 |
|
10923 | export declare const ɵIS_HYDRATION_DOM_REUSE_ENABLED: InjectionToken<boolean>;
|
10924 |
|
10925 | export declare function ɵisBoundToModule<C>(cf: ComponentFactory<C>): boolean;
|
10926 |
|
10927 | export declare function ɵisEnvironmentProviders(value: Provider | EnvironmentProviders | ɵInternalEnvironmentProviders): value is ɵInternalEnvironmentProviders;
|
10928 |
|
10929 | export declare function ɵisInjectable(type: any): boolean;
|
10930 |
|
10931 | export declare function ɵisNgModule<T>(value: Type<T>): value is Type<T> & {
|
10932 | ɵmod: ɵNgModuleDef<T>;
|
10933 | };
|
10934 |
|
10935 |
|
10936 |
|
10937 |
|
10938 | export declare function ɵisPromise<T = any>(obj: any): obj is Promise<T>;
|
10939 |
|
10940 |
|
10941 |
|
10942 |
|
10943 | export declare function ɵisSubscribable<T>(obj: any | Subscribable<T>): obj is Subscribable<T>;
|
10944 |
|
10945 |
|
10946 |
|
10947 |
|
10948 |
|
10949 |
|
10950 |
|
10951 |
|
10952 |
|
10953 |
|
10954 |
|
10955 | export declare class ɵLContext {
|
10956 | |
10957 |
|
10958 |
|
10959 | private lViewId;
|
10960 | |
10961 |
|
10962 |
|
10963 | nodeIndex: number;
|
10964 | |
10965 |
|
10966 |
|
10967 | native: RNode;
|
10968 | |
10969 |
|
10970 |
|
10971 | component: {} | null | undefined;
|
10972 | |
10973 |
|
10974 |
|
10975 | directives: any[] | null | undefined;
|
10976 | |
10977 |
|
10978 |
|
10979 |
|
10980 | localRefs: {
|
10981 | [key: string]: any;
|
10982 | } | null | undefined;
|
10983 |
|
10984 | get lView(): LView | null;
|
10985 | constructor(
|
10986 | /**
|
10987 | * ID of the component's parent view data.
|
10988 | */
|
10989 | lViewId: number,
|
10990 | |
10991 |
|
10992 |
|
10993 | nodeIndex: number,
|
10994 | |
10995 |
|
10996 |
|
10997 | native: RNode);
|
10998 | }
|
10999 |
|
11000 |
|
11001 |
|
11002 |
|
11003 |
|
11004 |
|
11005 |
|
11006 |
|
11007 |
|
11008 |
|
11009 |
|
11010 |
|
11011 |
|
11012 |
|
11013 | export declare function ɵLifecycleHooksFeature(): void;
|
11014 |
|
11015 |
|
11016 |
|
11017 |
|
11018 | export declare enum ɵLocaleDataIndex {
|
11019 | LocaleId = 0,
|
11020 | DayPeriodsFormat = 1,
|
11021 | DayPeriodsStandalone = 2,
|
11022 | DaysFormat = 3,
|
11023 | DaysStandalone = 4,
|
11024 | MonthsFormat = 5,
|
11025 | MonthsStandalone = 6,
|
11026 | Eras = 7,
|
11027 | FirstDayOfWeek = 8,
|
11028 | WeekendRange = 9,
|
11029 | DateFormat = 10,
|
11030 | TimeFormat = 11,
|
11031 | DateTimeFormat = 12,
|
11032 | NumberSymbols = 13,
|
11033 | NumberFormats = 14,
|
11034 | CurrencyCode = 15,
|
11035 | CurrencySymbol = 16,
|
11036 | CurrencyName = 17,
|
11037 | Currencies = 18,
|
11038 | Directionality = 19,
|
11039 | PluralCase = 20,
|
11040 | ExtraData = 21
|
11041 | }
|
11042 |
|
11043 |
|
11044 | export declare const ɵNG_COMP_DEF: string;
|
11045 |
|
11046 | export declare const ɵNG_DIR_DEF: string;
|
11047 |
|
11048 |
|
11049 |
|
11050 |
|
11051 |
|
11052 |
|
11053 | export declare const ɵNG_ELEMENT_ID: string;
|
11054 |
|
11055 | export declare const ɵNG_INJ_DEF: string;
|
11056 |
|
11057 | export declare const ɵNG_MOD_DEF: string;
|
11058 |
|
11059 | export declare const ɵNG_PIPE_DEF: string;
|
11060 |
|
11061 | export declare const ɵNG_PROV_DEF: string;
|
11062 |
|
11063 |
|
11064 |
|
11065 |
|
11066 |
|
11067 |
|
11068 |
|
11069 |
|
11070 |
|
11071 |
|
11072 |
|
11073 | export declare interface ɵNgModuleDef<T> {
|
11074 |
|
11075 | type: T;
|
11076 |
|
11077 | bootstrap: Type<any>[] | (() => Type<any>[]);
|
11078 | /** List of components, directives, and pipes declared by this module. */
|
11079 | declarations: Type<any>[] | (() => Type<any>[]);
|
11080 | /** List of modules or `ModuleWithProviders` imported by this module. */
|
11081 | imports: Type<any>[] | (() => Type<any>[]);
|
11082 | /**
|
11083 | * List of modules, `ModuleWithProviders`, components, directives, or pipes exported by this
|
11084 | * module.
|
11085 | */
|
11086 | exports: Type<any>[] | (() => Type<any>[]);
|
11087 | /**
|
11088 | * Cached value of computed `transitiveCompileScopes` for this module.
|
11089 | *
|
11090 | * This should never be read directly, but accessed via `transitiveScopesFor`.
|
11091 | */
|
11092 | transitiveCompileScopes: ɵNgModuleTransitiveScopes | null;
|
11093 | /** The set of schemas that declare elements to be allowed in the NgModule. */
|
11094 | schemas: SchemaMetadata[] | null;
|
11095 | /** Unique ID for the module with which it should be registered. */
|
11096 | id: string | null;
|
11097 | }
|
11098 |
|
11099 | export declare class ɵNgModuleFactory<T> extends NgModuleFactory<T> {
|
11100 | moduleType: Type<T>;
|
11101 | constructor(moduleType: Type<T>);
|
11102 | create(parentInjector: Injector | null): NgModuleRef<T>;
|
11103 | }
|
11104 |
|
11105 | /**
|
11106 | * Represents the expansion of an `NgModule` into its scopes.
|
11107 | *
|
11108 | * A scope is a set of directives and pipes that are visible in a particular context. Each
|
11109 | * `NgModule` has two scopes. The `compilation` scope is the set of directives and pipes that will
|
11110 | * be recognized in the templates of components declared by the module. The `exported` scope is the
|
11111 | * set of directives and pipes exported by a module (that is, module B's exported scope gets added
|
11112 | * to module A's compilation scope when module A imports B).
|
11113 | */
|
11114 | export declare interface ɵNgModuleTransitiveScopes {
|
11115 | compilation: {
|
11116 | directives: Set<any>;
|
11117 | pipes: Set<any>;
|
11118 | };
|
11119 | exported: {
|
11120 | directives: Set<any>;
|
11121 | pipes: Set<any>;
|
11122 | };
|
11123 | schemas: SchemaMetadata[] | null;
|
11124 | }
|
11125 |
|
11126 | export declare interface ɵNgModuleType<T = any> extends Type<T> {
|
11127 | ɵmod: ɵNgModuleDef<T>;
|
11128 | }
|
11129 |
|
11130 |
|
11131 | export declare interface ɵNO_CHANGE {
|
11132 | __brand__: 'NO_CHANGE';
|
11133 | }
|
11134 |
|
11135 | /** A special value which designates that a value has not changed. */
|
11136 | export declare const ɵNO_CHANGE: ɵNO_CHANGE;
|
11137 |
|
11138 | /**
|
11139 | * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls
|
11140 | * to framework to perform rendering.
|
11141 | */
|
11142 | export declare class ɵNoopNgZone implements NgZone {
|
11143 | readonly hasPendingMicrotasks = false;
|
11144 | readonly hasPendingMacrotasks = false;
|
11145 | readonly isStable = true;
|
11146 | readonly onUnstable: EventEmitter<any>;
|
11147 | readonly onMicrotaskEmpty: EventEmitter<any>;
|
11148 | readonly onStable: EventEmitter<any>;
|
11149 | readonly onError: EventEmitter<any>;
|
11150 | run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any): T;
|
11151 | runGuarded<T>(fn: (...args: any[]) => any, applyThis?: any, applyArgs?: any): T;
|
11152 | runOutsideAngular<T>(fn: (...args: any[]) => T): T;
|
11153 | runTask<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any, name?: string): T;
|
11154 | }
|
11155 |
|
11156 |
|
11157 | /**
|
11158 | * Convince closure compiler that the wrapped function has no side-effects.
|
11159 | *
|
11160 | * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
|
11161 | * allow us to execute a function but have closure compiler mark the call as no-side-effects.
|
11162 | * It is important that the return value for the `noSideEffects` function be assigned
|
11163 | * to something which is retained otherwise the call to `noSideEffects` will be removed by closure
|
11164 | * compiler.
|
11165 | */
|
11166 | export declare function ɵnoSideEffects<T>(fn: () => T): T;
|
11167 |
|
11168 |
|
11169 | export declare const ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR: {};
|
11170 |
|
11171 | /**
|
11172 | * Patch the definition of a component with directives and pipes from the compilation scope of
|
11173 | * a given module.
|
11174 | */
|
11175 | export declare function ɵpatchComponentDefWithScope<C>(componentDef: ɵComponentDef<C>, transitiveScopes: ɵNgModuleTransitiveScopes): void;
|
11176 |
|
11177 | /**
|
11178 | * Runtime link information for Pipes.
|
11179 | *
|
11180 | * This is an internal data structure used by the renderer to link
|
11181 | * pipes into templates.
|
11182 | *
|
11183 | * NOTE: Always use `definePipe` function to create this object,
|
11184 | * never create the object directly since the shape of this object
|
11185 | * can change between versions.
|
11186 | *
|
11187 | * See: {@link definePipe}
|
11188 | */
|
11189 | export declare interface ɵPipeDef<T> {
|
11190 | /** Token representing the pipe. */
|
11191 | type: Type<T>;
|
11192 | /**
|
11193 | * Pipe name.
|
11194 | *
|
11195 | * Used to resolve pipe in templates.
|
11196 | */
|
11197 | readonly name: string;
|
11198 | /**
|
11199 | * Factory function used to create a new pipe instance. Will be null initially.
|
11200 | * Populated when the factory is first requested by pipe instantiation logic.
|
11201 | */
|
11202 | factory: FactoryFn<T> | null;
|
11203 | /**
|
11204 | * Whether or not the pipe is pure.
|
11205 | *
|
11206 | * Pure pipes result only depends on the pipe input and not on internal
|
11207 | * state of the pipe.
|
11208 | */
|
11209 | readonly pure: boolean;
|
11210 | /**
|
11211 | * Whether this pipe is standalone.
|
11212 | */
|
11213 | readonly standalone: boolean;
|
11214 | onDestroy: (() => void) | null;
|
11215 | }
|
11216 |
|
11217 | /**
|
11218 | * Profiler function which the runtime will invoke before and after user code.
|
11219 | */
|
11220 | export declare interface ɵProfiler {
|
11221 | (event: ɵProfilerEvent, instance: {} | null, hookOrListener?: (e?: any) => any): void;
|
11222 | }
|
11223 |
|
11224 |
|
11225 | /**
|
11226 | * Profiler events is an enum used by the profiler to distinguish between different calls of user
|
11227 | * code invoked throughout the application lifecycle.
|
11228 | */
|
11229 | export declare const enum ɵProfilerEvent {
|
11230 | /**
|
11231 | * Corresponds to the point in time before the runtime has called the template function of a
|
11232 | * component with `RenderFlags.Create`.
|
11233 | */
|
11234 | TemplateCreateStart = 0,
|
11235 | /**
|
11236 | * Corresponds to the point in time after the runtime has called the template function of a
|
11237 | * component with `RenderFlags.Create`.
|
11238 | */
|
11239 | TemplateCreateEnd = 1,
|
11240 | /**
|
11241 | * Corresponds to the point in time before the runtime has called the template function of a
|
11242 | * component with `RenderFlags.Update`.
|
11243 | */
|
11244 | TemplateUpdateStart = 2,
|
11245 | /**
|
11246 | * Corresponds to the point in time after the runtime has called the template function of a
|
11247 | * component with `RenderFlags.Update`.
|
11248 | */
|
11249 | TemplateUpdateEnd = 3,
|
11250 | /**
|
11251 | * Corresponds to the point in time before the runtime has called a lifecycle hook of a component
|
11252 | * or directive.
|
11253 | */
|
11254 | LifecycleHookStart = 4,
|
11255 | /**
|
11256 | * Corresponds to the point in time after the runtime has called a lifecycle hook of a component
|
11257 | * or directive.
|
11258 | */
|
11259 | LifecycleHookEnd = 5,
|
11260 | /**
|
11261 | * Corresponds to the point in time before the runtime has evaluated an expression associated with
|
11262 | * an event or an output.
|
11263 | */
|
11264 | OutputStart = 6,
|
11265 | /**
|
11266 | * Corresponds to the point in time after the runtime has evaluated an expression associated with
|
11267 | * an event or an output.
|
11268 | */
|
11269 | OutputEnd = 7
|
11270 | }
|
11271 |
|
11272 | /**
|
11273 | * Publishes a collection of default debug tools onto`window.ng`.
|
11274 | *
|
11275 | * These functions are available globally when Angular is in development
|
11276 | * mode and are automatically stripped away from prod mode is on.
|
11277 | */
|
11278 | export declare function ɵpublishDefaultGlobalUtils(): void;
|
11279 |
|
11280 | /**
|
11281 | * Publishes the given function to `window.ng` so that it can be
|
11282 | * used from the browser console when an application is not in production.
|
11283 | */
|
11284 | export declare function ɵpublishGlobalUtil(name: string, fn: Function): void;
|
11285 |
|
11286 | export declare class ɵReflectionCapabilities implements PlatformReflectionCapabilities {
|
11287 | private _reflect;
|
11288 | constructor(reflect?: any);
|
11289 | factory<T>(t: Type<T>): (args: any[]) => T;
|
11290 | private _ownParameters;
|
11291 | parameters(type: Type<any>): any[][];
|
11292 | private _ownAnnotations;
|
11293 | annotations(typeOrFunc: Type<any>): any[];
|
11294 | private _ownPropMetadata;
|
11295 | propMetadata(typeOrFunc: any): {
|
11296 | [key: string]: any[];
|
11297 | };
|
11298 | ownPropMetadata(typeOrFunc: any): {
|
11299 | [key: string]: any[];
|
11300 | };
|
11301 | hasLifecycleHook(type: any, lcProperty: string): boolean;
|
11302 | }
|
11303 |
|
11304 |
|
11305 |
|
11306 |
|
11307 |
|
11308 |
|
11309 |
|
11310 |
|
11311 | export declare function ɵregisterLocaleData(data: any, localeId?: string | any, extraData?: any): void;
|
11312 |
|
11313 |
|
11314 |
|
11315 |
|
11316 | export declare class ɵRender3ComponentFactory<T> extends ComponentFactory<T> {
|
11317 | private componentDef;
|
11318 | private ngModule?;
|
11319 | selector: string;
|
11320 | componentType: Type<any>;
|
11321 | ngContentSelectors: string[];
|
11322 | isBoundToModule: boolean;
|
11323 | get inputs(): {
|
11324 | propName: string;
|
11325 | templateName: string;
|
11326 | }[];
|
11327 | get outputs(): {
|
11328 | propName: string;
|
11329 | templateName: string;
|
11330 | }[];
|
11331 | |
11332 |
|
11333 |
|
11334 |
|
11335 | constructor(componentDef: ɵComponentDef<any>, ngModule?: NgModuleRef<any> | undefined);
|
11336 | create(injector: Injector, projectableNodes?: any[][] | undefined, rootSelectorOrNode?: any, environmentInjector?: NgModuleRef<any> | EnvironmentInjector | undefined): ComponentRef<T>;
|
11337 | }
|
11338 |
|
11339 | /**
|
11340 | * Represents an instance of a Component created via a {@link ComponentFactory}.
|
11341 | *
|
11342 | * `ComponentRef` provides access to the Component Instance as well other objects related to this
|
11343 | * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
|
11344 | * method.
|
11345 | *
|
11346 | */
|
11347 | export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
|
11348 | location: ElementRef;
|
11349 | private _rootLView;
|
11350 | private _tNode;
|
11351 | instance: T;
|
11352 | hostView: ɵViewRef<T>;
|
11353 | changeDetectorRef: ChangeDetectorRef;
|
11354 | componentType: Type<T>;
|
11355 | private previousInputValues;
|
11356 | constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: LView, _tNode: TElementNode | TContainerNode | TElementContainerNode);
|
11357 | setInput(name: string, value: unknown): void;
|
11358 | get injector(): Injector;
|
11359 | destroy(): void;
|
11360 | onDestroy(callback: () => void): void;
|
11361 | }
|
11362 |
|
11363 | export declare class ɵRender3NgModuleRef<T> extends NgModuleRef<T> implements InternalNgModuleRef<T> {
|
11364 | _parent: Injector | null;
|
11365 | _bootstrapComponents: Type<any>[];
|
11366 | _r3Injector: R3Injector;
|
11367 | instance: T;
|
11368 | destroyCbs: (() => void)[] | null;
|
11369 | readonly componentFactoryResolver: ComponentFactoryResolver_2;
|
11370 | constructor(ngModuleType: Type<T>, _parent: Injector | null, additionalProviders: StaticProvider[]);
|
11371 | get injector(): EnvironmentInjector;
|
11372 | destroy(): void;
|
11373 | onDestroy(callback: () => void): void;
|
11374 | }
|
11375 |
|
11376 | /**
|
11377 | * Flags passed into template functions to determine which blocks (i.e. creation, update)
|
11378 | * should be executed.
|
11379 | *
|
11380 | * Typically, a template runs both the creation block and the update block on initialization and
|
11381 | * subsequent runs only execute the update block. However, dynamically created views require that
|
11382 | * the creation block be executed separately from the update block (for backwards compat).
|
11383 | */
|
11384 | export declare const enum ɵRenderFlags {
|
11385 | Create = 1,
|
11386 | Update = 2
|
11387 | }
|
11388 |
|
11389 | export declare function ɵresetCompiledComponents(): void;
|
11390 |
|
11391 | export declare function ɵresetJitOptions(): void;
|
11392 |
|
11393 | /**
|
11394 | * Used to resolve resource URLs on `@Component` when used with JIT compilation.
|
11395 | *
|
11396 | * Example:
|
11397 | * ```
|
11398 | * @Component({
|
11399 | * selector: 'my-comp',
|
11400 | * templateUrl: 'my-comp.html',
|
11401 | * })
|
11402 | * class MyComponent{
|
11403 | * }
|
11404 | *
|
11405 | * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
|
11406 | * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
|
11407 | *
|
11408 | * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
|
11409 | * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
|
11410 | *
|
11411 | * // Use browser's `fetch()` function as the default resource resolution strategy.
|
11412 | * resolveComponentResources(fetch).then(() => {
|
11413 | *
|
11414 | * renderComponent(MyComponent);
|
11415 | * });
|
11416 | *
|
11417 | * ```
|
11418 | *
|
11419 | * NOTE: In AOT the resolution happens during compilation, and so there should be no need
|
11420 | * to call this method outside JIT mode.
|
11421 | *
|
11422 | * @param resourceResolver a function which is responsible for returning a `Promise` to the
|
11423 | * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
|
11424 | */
|
11425 | export declare function ɵresolveComponentResources(resourceResolver: (url: string) => (Promise<string | {
|
11426 | text(): Promise<string>;
|
11427 | }>)): Promise<void>;
|
11428 |
|
11429 | /**
|
11430 | * Class that represents a runtime error.
|
11431 | * Formats and outputs the error message in a consistent way.
|
11432 | *
|
11433 | * Example:
|
11434 | * ```
|
11435 | * throw new RuntimeError(
|
11436 | * RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,
|
11437 | * ngDevMode && 'Injector has already been destroyed.');
|
11438 | * ```
|
11439 | *
|
11440 | * Note: the `message` argument contains a descriptive error message as a string in development
|
11441 | * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the
|
11442 | * `message` argument becomes `false`, thus we account for it in the typings and the runtime
|
11443 | * logic.
|
11444 | */
|
11445 | export declare class ɵRuntimeError<T extends number = RuntimeErrorCode> extends Error {
|
11446 | code: T;
|
11447 | constructor(code: T, message: null | false | string);
|
11448 | }
|
11449 |
|
11450 | /**
|
11451 | * Marker interface for a value that's safe to use as HTML.
|
11452 | *
|
11453 | * @publicApi
|
11454 | */
|
11455 | export declare interface ɵSafeHtml extends ɵSafeValue {
|
11456 | }
|
11457 |
|
11458 | /**
|
11459 | * Marker interface for a value that's safe to use as a URL to load executable code from.
|
11460 | *
|
11461 | * @publicApi
|
11462 | */
|
11463 | export declare interface ɵSafeResourceUrl extends ɵSafeValue {
|
11464 | }
|
11465 |
|
11466 | /**
|
11467 | * Marker interface for a value that's safe to use as JavaScript.
|
11468 | *
|
11469 | * @publicApi
|
11470 | */
|
11471 | export declare interface ɵSafeScript extends ɵSafeValue {
|
11472 | }
|
11473 |
|
11474 | /**
|
11475 | * Marker interface for a value that's safe to use as style (CSS).
|
11476 | *
|
11477 | * @publicApi
|
11478 | */
|
11479 | export declare interface ɵSafeStyle extends ɵSafeValue {
|
11480 | }
|
11481 |
|
11482 | /**
|
11483 | * Marker interface for a value that's safe to use as a URL linking to a document.
|
11484 | *
|
11485 | * @publicApi
|
11486 | */
|
11487 | export declare interface ɵSafeUrl extends ɵSafeValue {
|
11488 | }
|
11489 |
|
11490 | /**
|
11491 | * Marker interface for a value that's safe to use in a particular context.
|
11492 | *
|
11493 | * @publicApi
|
11494 | */
|
11495 | export declare interface ɵSafeValue {
|
11496 | }
|
11497 |
|
11498 | /**
|
11499 | * Control whether the NgModule registration system enforces that each NgModule type registered has
|
11500 | * a unique id.
|
11501 | *
|
11502 | * This is useful for testing as the NgModule registry cannot be properly reset between tests with
|
11503 | * Angular's current API.
|
11504 | */
|
11505 | export declare function ɵsetAllowDuplicateNgModuleIdsForTest(allowDuplicates: boolean): void;
|
11506 |
|
11507 | export declare function ɵsetAlternateWeakRefImpl(impl: WeakRefCtor): void;
|
11508 |
|
11509 | /**
|
11510 | * Adds decorator, constructor, and property metadata to a given type via static metadata fields
|
11511 | * on the type.
|
11512 | *
|
11513 | * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.
|
11514 | *
|
11515 | * Calls to `setClassMetadata` can be guarded by ngDevMode, resulting in the metadata assignments
|
11516 | * being tree-shaken away during production builds.
|
11517 | */
|
11518 | export declare function ɵsetClassMetadata(type: Type<any>, decorators: any[] | null, ctorParameters: (() => any[]) | null, propDecorators: {
|
11519 | [field: string]: any;
|
11520 | } | null): void;
|
11521 |
|
11522 | export declare function ɵsetCurrentInjector(injector: Injector | null | undefined): Injector | undefined | null;
|
11523 |
|
11524 |
|
11525 | /**
|
11526 | * Tell ivy what the `document` is for this platform.
|
11527 | *
|
11528 | * It is only necessary to call this if the current platform is not a browser.
|
11529 | *
|
11530 | * @param document The object representing the global `document` in this environment.
|
11531 | */
|
11532 | export declare function ɵsetDocument(document: Document | undefined): void;
|
11533 |
|
11534 |
|
11535 | /**
|
11536 | * Sets the locale id that will be used for translations and ICU expressions.
|
11537 | * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
|
11538 | * but is now defined as a global value.
|
11539 | *
|
11540 | * @param localeId
|
11541 | */
|
11542 | export declare function ɵsetLocaleId(localeId: string): void;
|
11543 |
|
11544 | /**
|
11545 | * Sets a strict mode for JIT-compiled components to throw an error on unknown elements,
|
11546 | * instead of just logging the error.
|
11547 | * (for AOT-compiled ones this check happens at build time).
|
11548 | */
|
11549 | export declare function ɵsetUnknownElementStrictMode(shouldThrow: boolean): void;
|
11550 |
|
11551 | /**
|
11552 | * Sets a strict mode for JIT-compiled components to throw an error on unknown properties,
|
11553 | * instead of just logging the error.
|
11554 | * (for AOT-compiled ones this check happens at build time).
|
11555 | */
|
11556 | export declare function ɵsetUnknownPropertyStrictMode(shouldThrow: boolean): void;
|
11557 |
|
11558 | /** Store a value in the `data` at a given `index`. */
|
11559 | export declare function ɵstore<T>(tView: TView, lView: LView, index: number, value: T): void;
|
11560 |
|
11561 |
|
11562 | export declare function ɵstringify(token: any): string;
|
11563 |
|
11564 | /**
|
11565 | * Internal injection token that can used to access an instance of a Testability class.
|
11566 | *
|
11567 | * This token acts as a bridge between the core bootstrap code and the `Testability` class. This is
|
11568 | * needed to ensure that there are no direct references to the `Testability` class, so it can be
|
11569 | * tree-shaken away (if not referenced). For the environments/setups when the `Testability` class
|
11570 | * should be available, this token is used to add a provider that references the `Testability`
|
11571 | * class. Otherwise, only this token is retained in a bundle, but the `Testability` class is not.
|
11572 | */
|
11573 | export declare const ɵTESTABILITY: InjectionToken<Testability>;
|
11574 |
|
11575 | /**
|
11576 | * Internal injection token to retrieve Testability getter class instance.
|
11577 | */
|
11578 | export declare const ɵTESTABILITY_GETTER: InjectionToken<GetTestability>;
|
11579 |
|
11580 | /**
|
11581 | * Compute the pair of transitive scopes (compilation scope and exported scope) for a given type
|
11582 | * (either a NgModule or a standalone component / directive / pipe).
|
11583 | */
|
11584 | export declare function ɵtransitiveScopesFor<T>(type: Type<T>): ɵNgModuleTransitiveScopes;
|
11585 |
|
11586 | /**
|
11587 | * Helper function to remove all the locale data from `LOCALE_DATA`.
|
11588 | */
|
11589 | export declare function ɵunregisterLocaleData(): void;
|
11590 |
|
11591 | export declare function ɵunwrapSafeValue(value: ɵSafeValue): string;
|
11592 |
|
11593 | export declare function ɵunwrapSafeValue<T>(value: T): T;
|
11594 |
|
11595 | export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef, ChangeDetectorRefInterface {
|
11596 | /**
|
11597 | * This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
11598 | * requested.
|
11599 | *
|
11600 | * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
11601 | */
|
11602 | private _cdRefInjectingView?;
|
11603 | private _appRef;
|
11604 | private _attachedToViewContainer;
|
11605 | get rootNodes(): any[];
|
11606 | constructor(
|
11607 | |
11608 |
|
11609 |
|
11610 |
|
11611 |
|
11612 |
|
11613 |
|
11614 |
|
11615 |
|
11616 |
|
11617 |
|
11618 | _lView: LView,
|
11619 | |
11620 |
|
11621 |
|
11622 |
|
11623 |
|
11624 |
|
11625 | _cdRefInjectingView?: LView<unknown> | undefined);
|
11626 | get context(): T;
|
11627 | set context(value: T);
|
11628 | get destroyed(): boolean;
|
11629 | destroy(): void;
|
11630 | onDestroy(callback: Function): void;
|
11631 | /**
|
11632 | * Marks a view and all of its ancestors dirty.
|
11633 | *
|
11634 | * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush OnPush} component is
|
11635 | * checked when it needs to be re-rendered but the two normal triggers haven't marked it
|
11636 | * dirty (i.e. inputs haven't changed and events haven't fired in the view).
|
11637 | *
|
11638 | * <!-- TODO: Add a link to a chapter on OnPush components -->
|
11639 | *
|
11640 | * @usageNotes
|
11641 | * ### Example
|
11642 | *
|
11643 | * ```typescript
|
11644 | * @Component({
|
11645 | * selector: 'app-root',
|
11646 | * template: `Number of ticks: {{numberOfTicks}}`
|
11647 | * changeDetection: ChangeDetectionStrategy.OnPush,
|
11648 | * })
|
11649 | * class AppComponent {
|
11650 | * numberOfTicks = 0;
|
11651 | *
|
11652 | * constructor(private ref: ChangeDetectorRef) {
|
11653 | * setInterval(() => {
|
11654 | * this.numberOfTicks++;
|
11655 | *
|
11656 | * this.ref.markForCheck();
|
11657 | * }, 1000);
|
11658 | * }
|
11659 | * }
|
11660 | * ```
|
11661 | */
|
11662 | markForCheck(): void;
|
11663 | /**
|
11664 | * Detaches the view from the change detection tree.
|
11665 | *
|
11666 | * Detached views will not be checked during change detection runs until they are
|
11667 | * re-attached, even if they are dirty. `detach` can be used in combination with
|
11668 | * {@link ChangeDetectorRef#detectChanges detectChanges} to implement local change
|
11669 | * detection checks.
|
11670 | *
|
11671 | * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
11672 | * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
11673 | *
|
11674 | * @usageNotes
|
11675 | * ### Example
|
11676 | *
|
11677 | * The following example defines a component with a large list of readonly data.
|
11678 | * Imagine the data changes constantly, many times per second. For performance reasons,
|
11679 | * we want to check and update the list every five seconds. We can do that by detaching
|
11680 | * the component's change detector and doing a local check every five seconds.
|
11681 | *
|
11682 | * ```typescript
|
11683 | * class DataProvider {
|
11684 | * // in a real application the returned data will be different every time
|
11685 | * get data() {
|
11686 | * return [1,2,3,4,5];
|
11687 | * }
|
11688 | * }
|
11689 | *
|
11690 | * @Component({
|
11691 | * selector: 'giant-list',
|
11692 | * template: `
|
11693 | * <li *ngFor="let d of dataProvider.data">Data {{d}}</li>
|
11694 | * `,
|
11695 | * })
|
11696 | * class GiantList {
|
11697 | * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {
|
11698 | * ref.detach();
|
11699 | * setInterval(() => {
|
11700 | * this.ref.detectChanges();
|
11701 | * }, 5000);
|
11702 | * }
|
11703 | * }
|
11704 | *
|
11705 | * @Component({
|
11706 | * selector: 'app',
|
11707 | * providers: [DataProvider],
|
11708 | * template: `
|
11709 | * <giant-list><giant-list>
|
11710 | * `,
|
11711 | * })
|
11712 | * class App {
|
11713 | * }
|
11714 | * ```
|
11715 | */
|
11716 | detach(): void;
|
11717 | /**
|
11718 | * Re-attaches a view to the change detection tree.
|
11719 | *
|
11720 | * This can be used to re-attach views that were previously detached from the tree
|
11721 | * using {@link ChangeDetectorRef#detach detach}. Views are attached to the tree by default.
|
11722 | *
|
11723 | * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
11724 | *
|
11725 | * @usageNotes
|
11726 | * ### Example
|
11727 | *
|
11728 | * The following example creates a component displaying `live` data. The component will detach
|
11729 | * its change detector from the main change detector tree when the component's live property
|
11730 | * is set to false.
|
11731 | *
|
11732 | * ```typescript
|
11733 | * class DataProvider {
|
11734 | * data = 1;
|
11735 | *
|
11736 | * constructor() {
|
11737 | * setInterval(() => {
|
11738 | * this.data = this.data * 2;
|
11739 | * }, 500);
|
11740 | * }
|
11741 | * }
|
11742 | *
|
11743 | * @Component({
|
11744 | * selector: 'live-data',
|
11745 | * inputs: ['live'],
|
11746 | * template: 'Data: {{dataProvider.data}}'
|
11747 | * })
|
11748 | * class LiveData {
|
11749 | * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}
|
11750 | *
|
11751 | * set live(value) {
|
11752 | * if (value) {
|
11753 | * this.ref.reattach();
|
11754 | * } else {
|
11755 | * this.ref.detach();
|
11756 | * }
|
11757 | * }
|
11758 | * }
|
11759 | *
|
11760 | * @Component({
|
11761 | * selector: 'app-root',
|
11762 | * providers: [DataProvider],
|
11763 | * template: `
|
11764 | * Live Update: <input type="checkbox" [(ngModel)]="live">
|
11765 | * <live-data [live]="live"><live-data>
|
11766 | * `,
|
11767 | * })
|
11768 | * class AppComponent {
|
11769 | * live = true;
|
11770 | * }
|
11771 | * ```
|
11772 | */
|
11773 | reattach(): void;
|
11774 | /**
|
11775 | * Checks the view and its children.
|
11776 | *
|
11777 | * This can also be used in combination with {@link ChangeDetectorRef#detach detach} to implement
|
11778 | * local change detection checks.
|
11779 | *
|
11780 | * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
11781 | * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
11782 | *
|
11783 | * @usageNotes
|
11784 | * ### Example
|
11785 | *
|
11786 | * The following example defines a component with a large list of readonly data.
|
11787 | * Imagine, the data changes constantly, many times per second. For performance reasons,
|
11788 | * we want to check and update the list every five seconds.
|
11789 | *
|
11790 | * We can do that by detaching the component's change detector and doing a local change detection
|
11791 | * check every five seconds.
|
11792 | *
|
11793 | * See {@link ChangeDetectorRef#detach detach} for more information.
|
11794 | */
|
11795 | detectChanges(): void;
|
11796 | /**
|
11797 | * Checks the change detector and its children, and throws if any changes are detected.
|
11798 | *
|
11799 | * This is used in development mode to verify that running change detection doesn't
|
11800 | * introduce other changes.
|
11801 | */
|
11802 | checkNoChanges(): void;
|
11803 | attachToViewContainerRef(): void;
|
11804 | detachFromAppRef(): void;
|
11805 | attachToAppRef(appRef: ViewRefTracker): void;
|
11806 | }
|
11807 |
|
11808 | /**
|
11809 | * Returns a set of providers required to setup hydration support
|
11810 | * for an application that is server side rendered. This function is
|
11811 | * included into the `provideClientHydration` public API function from
|
11812 | * the `platform-browser` package.
|
11813 | *
|
11814 | * The function sets up an internal flag that would be recognized during
|
11815 | * the server side rendering time as well, so there is no need to
|
11816 | * configure or change anything in NgUniversal to enable the feature.
|
11817 | */
|
11818 | export declare function ɵwithDomHydration(): EnvironmentProviders;
|
11819 |
|
11820 | /**
|
11821 | * URL for the XSS security documentation.
|
11822 | */
|
11823 | export declare const ɵXSS_SECURITY_URL = "https://g.co/ng/security#xss";
|
11824 |
|
11825 | /**
|
11826 | * Advances to an element for later binding instructions.
|
11827 | *
|
11828 | * Used in conjunction with instructions like {@link property} to act on elements with specified
|
11829 | * indices, for example those created with {@link element} or {@link elementStart}.
|
11830 | *
|
11831 | * ```ts
|
11832 | * (rf: RenderFlags, ctx: any) => {
|
11833 | * if (rf & 1) {
|
11834 | * text(0, 'Hello');
|
11835 | * text(1, 'Goodbye')
|
11836 | * element(2, 'div');
|
11837 | * }
|
11838 | * if (rf & 2) {
|
11839 | * advance(2);
|
11840 | * property('title', 'test');
|
11841 | * }
|
11842 | * }
|
11843 | * ```
|
11844 | * @param delta Number of elements to advance forwards by.
|
11845 | *
|
11846 | * @codeGenApi
|
11847 | */
|
11848 | export declare function ɵɵadvance(delta: number): void;
|
11849 |
|
11850 | /**
|
11851 | * Updates the value of or removes a bound attribute on an Element.
|
11852 | *
|
11853 | * Used in the case of `[attr.title]="value"`
|
11854 | *
|
11855 | * @param name name The name of the attribute.
|
11856 | * @param value value The attribute is removed when value is `null` or `undefined`.
|
11857 | * Otherwise the attribute value is set to the stringified value.
|
11858 | * @param sanitizer An optional function used to sanitize the value.
|
11859 | * @param namespace Optional namespace to use when setting the attribute.
|
11860 | *
|
11861 | * @codeGenApi
|
11862 | */
|
11863 | export declare function ɵɵattribute(name: string, value: any, sanitizer?: SanitizerFn | null, namespace?: string): typeof ɵɵattribute;
|
11864 |
|
11865 | /**
|
11866 | *
|
11867 | * Update an interpolated attribute on an element with single bound value surrounded by text.
|
11868 | *
|
11869 | * Used when the value passed to a property has 1 interpolated value in it:
|
11870 | *
|
11871 | * ```html
|
11872 | * <div attr.title="prefix{{v0}}suffix"></div>
|
11873 | * ```
|
11874 | *
|
11875 | * Its compiled representation is::
|
11876 | *
|
11877 | * ```ts
|
11878 | * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');
|
11879 | * ```
|
11880 | *
|
11881 | * @param attrName The name of the attribute to update
|
11882 | * @param prefix Static value used for concatenation only.
|
11883 | * @param v0 Value checked for change.
|
11884 | * @param suffix Static value used for concatenation only.
|
11885 | * @param sanitizer An optional sanitizer function
|
11886 | * @returns itself, so that it may be chained.
|
11887 | * @codeGenApi
|
11888 | */
|
11889 | export declare function ɵɵattributeInterpolate1(attrName: string, prefix: string, v0: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate1;
|
11890 |
|
11891 | /**
|
11892 | *
|
11893 | * Update an interpolated attribute on an element with 2 bound values surrounded by text.
|
11894 | *
|
11895 | * Used when the value passed to a property has 2 interpolated values in it:
|
11896 | *
|
11897 | * ```html
|
11898 | * <div attr.title="prefix{{v0}}-{{v1}}suffix"></div>
|
11899 | * ```
|
11900 | *
|
11901 | * Its compiled representation is::
|
11902 | *
|
11903 | * ```ts
|
11904 | * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');
|
11905 | * ```
|
11906 | *
|
11907 | * @param attrName The name of the attribute to update
|
11908 | * @param prefix Static value used for concatenation only.
|
11909 | * @param v0 Value checked for change.
|
11910 | * @param i0 Static value used for concatenation only.
|
11911 | * @param v1 Value checked for change.
|
11912 | * @param suffix Static value used for concatenation only.
|
11913 | * @param sanitizer An optional sanitizer function
|
11914 | * @returns itself, so that it may be chained.
|
11915 | * @codeGenApi
|
11916 | */
|
11917 | export declare function ɵɵattributeInterpolate2(attrName: string, prefix: string, v0: any, i0: string, v1: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate2;
|
11918 |
|
11919 | /**
|
11920 | *
|
11921 | * Update an interpolated attribute on an element with 3 bound values surrounded by text.
|
11922 | *
|
11923 | * Used when the value passed to a property has 3 interpolated values in it:
|
11924 | *
|
11925 | * ```html
|
11926 | * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
|
11927 | * ```
|
11928 | *
|
11929 | * Its compiled representation is::
|
11930 | *
|
11931 | * ```ts
|
11932 | * ɵɵattributeInterpolate3(
|
11933 | * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
|
11934 | * ```
|
11935 | *
|
11936 | * @param attrName The name of the attribute to update
|
11937 | * @param prefix Static value used for concatenation only.
|
11938 | * @param v0 Value checked for change.
|
11939 | * @param i0 Static value used for concatenation only.
|
11940 | * @param v1 Value checked for change.
|
11941 | * @param i1 Static value used for concatenation only.
|
11942 | * @param v2 Value checked for change.
|
11943 | * @param suffix Static value used for concatenation only.
|
11944 | * @param sanitizer An optional sanitizer function
|
11945 | * @returns itself, so that it may be chained.
|
11946 | * @codeGenApi
|
11947 | */
|
11948 | export declare function ɵɵattributeInterpolate3(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate3;
|
11949 |
|
11950 | /**
|
11951 | *
|
11952 | * Update an interpolated attribute on an element with 4 bound values surrounded by text.
|
11953 | *
|
11954 | * Used when the value passed to a property has 4 interpolated values in it:
|
11955 | *
|
11956 | * ```html
|
11957 | * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
|
11958 | * ```
|
11959 | *
|
11960 | * Its compiled representation is::
|
11961 | *
|
11962 | * ```ts
|
11963 | * ɵɵattributeInterpolate4(
|
11964 | * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
|
11965 | * ```
|
11966 | *
|
11967 | * @param attrName The name of the attribute to update
|
11968 | * @param prefix Static value used for concatenation only.
|
11969 | * @param v0 Value checked for change.
|
11970 | * @param i0 Static value used for concatenation only.
|
11971 | * @param v1 Value checked for change.
|
11972 | * @param i1 Static value used for concatenation only.
|
11973 | * @param v2 Value checked for change.
|
11974 | * @param i2 Static value used for concatenation only.
|
11975 | * @param v3 Value checked for change.
|
11976 | * @param suffix Static value used for concatenation only.
|
11977 | * @param sanitizer An optional sanitizer function
|
11978 | * @returns itself, so that it may be chained.
|
11979 | * @codeGenApi
|
11980 | */
|
11981 | export declare function ɵɵattributeInterpolate4(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate4;
|
11982 |
|
11983 | /**
|
11984 | *
|
11985 | * Update an interpolated attribute on an element with 5 bound values surrounded by text.
|
11986 | *
|
11987 | * Used when the value passed to a property has 5 interpolated values in it:
|
11988 | *
|
11989 | * ```html
|
11990 | * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
|
11991 | * ```
|
11992 | *
|
11993 | * Its compiled representation is::
|
11994 | *
|
11995 | * ```ts
|
11996 | * ɵɵattributeInterpolate5(
|
11997 | * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
|
11998 | * ```
|
11999 | *
|
12000 | * @param attrName The name of the attribute to update
|
12001 | * @param prefix Static value used for concatenation only.
|
12002 | * @param v0 Value checked for change.
|
12003 | * @param i0 Static value used for concatenation only.
|
12004 | * @param v1 Value checked for change.
|
12005 | * @param i1 Static value used for concatenation only.
|
12006 | * @param v2 Value checked for change.
|
12007 | * @param i2 Static value used for concatenation only.
|
12008 | * @param v3 Value checked for change.
|
12009 | * @param i3 Static value used for concatenation only.
|
12010 | * @param v4 Value checked for change.
|
12011 | * @param suffix Static value used for concatenation only.
|
12012 | * @param sanitizer An optional sanitizer function
|
12013 | * @returns itself, so that it may be chained.
|
12014 | * @codeGenApi
|
12015 | */
|
12016 | export declare function ɵɵattributeInterpolate5(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate5;
|
12017 |
|
12018 | /**
|
12019 | *
|
12020 | * Update an interpolated attribute on an element with 6 bound values surrounded by text.
|
12021 | *
|
12022 | * Used when the value passed to a property has 6 interpolated values in it:
|
12023 | *
|
12024 | * ```html
|
12025 | * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
|
12026 | * ```
|
12027 | *
|
12028 | * Its compiled representation is::
|
12029 | *
|
12030 | * ```ts
|
12031 | * ɵɵattributeInterpolate6(
|
12032 | * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
|
12033 | * ```
|
12034 | *
|
12035 | * @param attrName The name of the attribute to update
|
12036 | * @param prefix Static value used for concatenation only.
|
12037 | * @param v0 Value checked for change.
|
12038 | * @param i0 Static value used for concatenation only.
|
12039 | * @param v1 Value checked for change.
|
12040 | * @param i1 Static value used for concatenation only.
|
12041 | * @param v2 Value checked for change.
|
12042 | * @param i2 Static value used for concatenation only.
|
12043 | * @param v3 Value checked for change.
|
12044 | * @param i3 Static value used for concatenation only.
|
12045 | * @param v4 Value checked for change.
|
12046 | * @param i4 Static value used for concatenation only.
|
12047 | * @param v5 Value checked for change.
|
12048 | * @param suffix Static value used for concatenation only.
|
12049 | * @param sanitizer An optional sanitizer function
|
12050 | * @returns itself, so that it may be chained.
|
12051 | * @codeGenApi
|
12052 | */
|
12053 | export declare function ɵɵattributeInterpolate6(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate6;
|
12054 |
|
12055 | /**
|
12056 | *
|
12057 | * Update an interpolated attribute on an element with 7 bound values surrounded by text.
|
12058 | *
|
12059 | * Used when the value passed to a property has 7 interpolated values in it:
|
12060 | *
|
12061 | * ```html
|
12062 | * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
|
12063 | * ```
|
12064 | *
|
12065 | * Its compiled representation is::
|
12066 | *
|
12067 | * ```ts
|
12068 | * ɵɵattributeInterpolate7(
|
12069 | * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
|
12070 | * ```
|
12071 | *
|
12072 | * @param attrName The name of the attribute to update
|
12073 | * @param prefix Static value used for concatenation only.
|
12074 | * @param v0 Value checked for change.
|
12075 | * @param i0 Static value used for concatenation only.
|
12076 | * @param v1 Value checked for change.
|
12077 | * @param i1 Static value used for concatenation only.
|
12078 | * @param v2 Value checked for change.
|
12079 | * @param i2 Static value used for concatenation only.
|
12080 | * @param v3 Value checked for change.
|
12081 | * @param i3 Static value used for concatenation only.
|
12082 | * @param v4 Value checked for change.
|
12083 | * @param i4 Static value used for concatenation only.
|
12084 | * @param v5 Value checked for change.
|
12085 | * @param i5 Static value used for concatenation only.
|
12086 | * @param v6 Value checked for change.
|
12087 | * @param suffix Static value used for concatenation only.
|
12088 | * @param sanitizer An optional sanitizer function
|
12089 | * @returns itself, so that it may be chained.
|
12090 | * @codeGenApi
|
12091 | */
|
12092 | export declare function ɵɵattributeInterpolate7(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate7;
|
12093 |
|
12094 | /**
|
12095 | *
|
12096 | * Update an interpolated attribute on an element with 8 bound values surrounded by text.
|
12097 | *
|
12098 | * Used when the value passed to a property has 8 interpolated values in it:
|
12099 | *
|
12100 | * ```html
|
12101 | * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
|
12102 | * ```
|
12103 | *
|
12104 | * Its compiled representation is::
|
12105 | *
|
12106 | * ```ts
|
12107 | * ɵɵattributeInterpolate8(
|
12108 | * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
|
12109 | * ```
|
12110 | *
|
12111 | * @param attrName The name of the attribute to update
|
12112 | * @param prefix Static value used for concatenation only.
|
12113 | * @param v0 Value checked for change.
|
12114 | * @param i0 Static value used for concatenation only.
|
12115 | * @param v1 Value checked for change.
|
12116 | * @param i1 Static value used for concatenation only.
|
12117 | * @param v2 Value checked for change.
|
12118 | * @param i2 Static value used for concatenation only.
|
12119 | * @param v3 Value checked for change.
|
12120 | * @param i3 Static value used for concatenation only.
|
12121 | * @param v4 Value checked for change.
|
12122 | * @param i4 Static value used for concatenation only.
|
12123 | * @param v5 Value checked for change.
|
12124 | * @param i5 Static value used for concatenation only.
|
12125 | * @param v6 Value checked for change.
|
12126 | * @param i6 Static value used for concatenation only.
|
12127 | * @param v7 Value checked for change.
|
12128 | * @param suffix Static value used for concatenation only.
|
12129 | * @param sanitizer An optional sanitizer function
|
12130 | * @returns itself, so that it may be chained.
|
12131 | * @codeGenApi
|
12132 | */
|
12133 | export declare function ɵɵattributeInterpolate8(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate8;
|
12134 |
|
12135 | /**
|
12136 | * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.
|
12137 | *
|
12138 | * Used when the number of interpolated values exceeds 8.
|
12139 | *
|
12140 | * ```html
|
12141 | * <div
|
12142 | * title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
|
12143 | * ```
|
12144 | *
|
12145 | * Its compiled representation is::
|
12146 | *
|
12147 | * ```ts
|
12148 | * ɵɵattributeInterpolateV(
|
12149 | * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
|
12150 | * 'suffix']);
|
12151 | * ```
|
12152 | *
|
12153 | * @param attrName The name of the attribute to update.
|
12154 | * @param values The collection of values and the strings in-between those values, beginning with
|
12155 | * a string prefix and ending with a string suffix.
|
12156 | * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
|
12157 | * @param sanitizer An optional sanitizer function
|
12158 | * @returns itself, so that it may be chained.
|
12159 | * @codeGenApi
|
12160 | */
|
12161 | export declare function ɵɵattributeInterpolateV(attrName: string, values: any[], sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolateV;
|
12162 |
|
12163 | /**
|
12164 | * Update class bindings using an object literal or class-string on an element.
|
12165 | *
|
12166 | * This instruction is meant to apply styling via the `[class]="exp"` template bindings.
|
12167 | * When classes are applied to the element they will then be updated with
|
12168 | * respect to any styles/classes set via `classProp`. If any
|
12169 | * classes are set to falsy then they will be removed from the element.
|
12170 | *
|
12171 | * Note that the styling instruction will not be applied until `stylingApply` is called.
|
12172 | * Note that this will the provided classMap value to the host element if this function is called
|
12173 | * within a host binding.
|
12174 | *
|
12175 | * @param classes A key/value map or string of CSS classes that will be added to the
|
12176 | * given element. Any missing classes (that have already been applied to the element
|
12177 | * beforehand) will be removed (unset) from the element's list of CSS classes.
|
12178 | *
|
12179 | * @codeGenApi
|
12180 | */
|
12181 | export declare function ɵɵclassMap(classes: {
|
12182 | [className: string]: boolean | undefined | null;
|
12183 | } | string | undefined | null): void;
|
12184 |
|
12185 |
|
12186 | /**
|
12187 | *
|
12188 | * Update an interpolated class on an element with single bound value surrounded by text.
|
12189 | *
|
12190 | * Used when the value passed to a property has 1 interpolated value in it:
|
12191 | *
|
12192 | * ```html
|
12193 | * <div class="prefix{{v0}}suffix"></div>
|
12194 | * ```
|
12195 | *
|
12196 | * Its compiled representation is:
|
12197 | *
|
12198 | * ```ts
|
12199 | * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');
|
12200 | * ```
|
12201 | *
|
12202 | * @param prefix Static value used for concatenation only.
|
12203 | * @param v0 Value checked for change.
|
12204 | * @param suffix Static value used for concatenation only.
|
12205 | * @codeGenApi
|
12206 | */
|
12207 | export declare function ɵɵclassMapInterpolate1(prefix: string, v0: any, suffix: string): void;
|
12208 |
|
12209 | /**
|
12210 | *
|
12211 | * Update an interpolated class on an element with 2 bound values surrounded by text.
|
12212 | *
|
12213 | * Used when the value passed to a property has 2 interpolated values in it:
|
12214 | *
|
12215 | * ```html
|
12216 | * <div class="prefix{{v0}}-{{v1}}suffix"></div>
|
12217 | * ```
|
12218 | *
|
12219 | * Its compiled representation is:
|
12220 | *
|
12221 | * ```ts
|
12222 | * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');
|
12223 | * ```
|
12224 | *
|
12225 | * @param prefix Static value used for concatenation only.
|
12226 | * @param v0 Value checked for change.
|
12227 | * @param i0 Static value used for concatenation only.
|
12228 | * @param v1 Value checked for change.
|
12229 | * @param suffix Static value used for concatenation only.
|
12230 | * @codeGenApi
|
12231 | */
|
12232 | export declare function ɵɵclassMapInterpolate2(prefix: string, v0: any, i0: string, v1: any, suffix: string): void;
|
12233 |
|
12234 | /**
|
12235 | *
|
12236 | * Update an interpolated class on an element with 3 bound values surrounded by text.
|
12237 | *
|
12238 | * Used when the value passed to a property has 3 interpolated values in it:
|
12239 | *
|
12240 | * ```html
|
12241 | * <div class="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
|
12242 | * ```
|
12243 | *
|
12244 | * Its compiled representation is:
|
12245 | *
|
12246 | * ```ts
|
12247 | * ɵɵclassMapInterpolate3(
|
12248 | * 'prefix', v0, '-', v1, '-', v2, 'suffix');
|
12249 | * ```
|
12250 | *
|
12251 | * @param prefix Static value used for concatenation only.
|
12252 | * @param v0 Value checked for change.
|
12253 | * @param i0 Static value used for concatenation only.
|
12254 | * @param v1 Value checked for change.
|
12255 | * @param i1 Static value used for concatenation only.
|
12256 | * @param v2 Value checked for change.
|
12257 | * @param suffix Static value used for concatenation only.
|
12258 | * @codeGenApi
|
12259 | */
|
12260 | export declare function ɵɵclassMapInterpolate3(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string): void;
|
12261 |
|
12262 | /**
|
12263 | *
|
12264 | * Update an interpolated class on an element with 4 bound values surrounded by text.
|
12265 | *
|
12266 | * Used when the value passed to a property has 4 interpolated values in it:
|
12267 | *
|
12268 | * ```html
|
12269 | * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
|
12270 | * ```
|
12271 | *
|
12272 | * Its compiled representation is:
|
12273 | *
|
12274 | * ```ts
|
12275 | * ɵɵclassMapInterpolate4(
|
12276 | * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
|
12277 | * ```
|
12278 | *
|
12279 | * @param prefix Static value used for concatenation only.
|
12280 | * @param v0 Value checked for change.
|
12281 | * @param i0 Static value used for concatenation only.
|
12282 | * @param v1 Value checked for change.
|
12283 | * @param i1 Static value used for concatenation only.
|
12284 | * @param v2 Value checked for change.
|
12285 | * @param i2 Static value used for concatenation only.
|
12286 | * @param v3 Value checked for change.
|
12287 | * @param suffix Static value used for concatenation only.
|
12288 | * @codeGenApi
|
12289 | */
|
12290 | export declare function ɵɵclassMapInterpolate4(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string): void;
|
12291 |
|
12292 | /**
|
12293 | *
|
12294 | * Update an interpolated class on an element with 5 bound values surrounded by text.
|
12295 | *
|
12296 | * Used when the value passed to a property has 5 interpolated values in it:
|
12297 | *
|
12298 | * ```html
|
12299 | * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
|
12300 | * ```
|
12301 | *
|
12302 | * Its compiled representation is:
|
12303 | *
|
12304 | * ```ts
|
12305 | * ɵɵclassMapInterpolate5(
|
12306 | * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
|
12307 | * ```
|
12308 | *
|
12309 | * @param prefix Static value used for concatenation only.
|
12310 | * @param v0 Value checked for change.
|
12311 | * @param i0 Static value used for concatenation only.
|
12312 | * @param v1 Value checked for change.
|
12313 | * @param i1 Static value used for concatenation only.
|
12314 | * @param v2 Value checked for change.
|
12315 | * @param i2 Static value used for concatenation only.
|
12316 | * @param v3 Value checked for change.
|
12317 | * @param i3 Static value used for concatenation only.
|
12318 | * @param v4 Value checked for change.
|
12319 | * @param suffix Static value used for concatenation only.
|
12320 | * @codeGenApi
|
12321 | */
|
12322 | export declare function ɵɵclassMapInterpolate5(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string): void;
|
12323 |
|
12324 | /**
|
12325 | *
|
12326 | * Update an interpolated class on an element with 6 bound values surrounded by text.
|
12327 | *
|
12328 | * Used when the value passed to a property has 6 interpolated values in it:
|
12329 | *
|
12330 | * ```html
|
12331 | * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
|
12332 | * ```
|
12333 | *
|
12334 | * Its compiled representation is:
|
12335 | *
|
12336 | * ```ts
|
12337 | * ɵɵclassMapInterpolate6(
|
12338 | * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
|
12339 | * ```
|
12340 | *
|
12341 | * @param prefix Static value used for concatenation only.
|
12342 | * @param v0 Value checked for change.
|
12343 | * @param i0 Static value used for concatenation only.
|
12344 | * @param v1 Value checked for change.
|
12345 | * @param i1 Static value used for concatenation only.
|
12346 | * @param v2 Value checked for change.
|
12347 | * @param i2 Static value used for concatenation only.
|
12348 | * @param v3 Value checked for change.
|
12349 | * @param i3 Static value used for concatenation only.
|
12350 | * @param v4 Value checked for change.
|
12351 | * @param i4 Static value used for concatenation only.
|
12352 | * @param v5 Value checked for change.
|
12353 | * @param suffix Static value used for concatenation only.
|
12354 | * @codeGenApi
|
12355 | */
|
12356 | export declare function ɵɵclassMapInterpolate6(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string): void;
|
12357 |
|
12358 | /**
|
12359 | *
|
12360 | * Update an interpolated class on an element with 7 bound values surrounded by text.
|
12361 | *
|
12362 | * Used when the value passed to a property has 7 interpolated values in it:
|
12363 | *
|
12364 | * ```html
|
12365 | * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
|
12366 | * ```
|
12367 | *
|
12368 | * Its compiled representation is:
|
12369 | *
|
12370 | * ```ts
|
12371 | * ɵɵclassMapInterpolate7(
|
12372 | * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
|
12373 | * ```
|
12374 | *
|
12375 | * @param prefix Static value used for concatenation only.
|
12376 | * @param v0 Value checked for change.
|
12377 | * @param i0 Static value used for concatenation only.
|
12378 | * @param v1 Value checked for change.
|
12379 | * @param i1 Static value used for concatenation only.
|
12380 | * @param v2 Value checked for change.
|
12381 | * @param i2 Static value used for concatenation only.
|
12382 | * @param v3 Value checked for change.
|
12383 | * @param i3 Static value used for concatenation only.
|
12384 | * @param v4 Value checked for change.
|
12385 | * @param i4 Static value used for concatenation only.
|
12386 | * @param v5 Value checked for change.
|
12387 | * @param i5 Static value used for concatenation only.
|
12388 | * @param v6 Value checked for change.
|
12389 | * @param suffix Static value used for concatenation only.
|
12390 | * @codeGenApi
|
12391 | */
|
12392 | export declare function ɵɵclassMapInterpolate7(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string): void;
|
12393 |
|
12394 | /**
|
12395 | *
|
12396 | * Update an interpolated class on an element with 8 bound values surrounded by text.
|
12397 | *
|
12398 | * Used when the value passed to a property has 8 interpolated values in it:
|
12399 | *
|
12400 | * ```html
|
12401 | * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
|
12402 | * ```
|
12403 | *
|
12404 | * Its compiled representation is:
|
12405 | *
|
12406 | * ```ts
|
12407 | * ɵɵclassMapInterpolate8(
|
12408 | * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
|
12409 | * ```
|
12410 | *
|
12411 | * @param prefix Static value used for concatenation only.
|
12412 | * @param v0 Value checked for change.
|
12413 | * @param i0 Static value used for concatenation only.
|
12414 | * @param v1 Value checked for change.
|
12415 | * @param i1 Static value used for concatenation only.
|
12416 | * @param v2 Value checked for change.
|
12417 | * @param i2 Static value used for concatenation only.
|
12418 | * @param v3 Value checked for change.
|
12419 | * @param i3 Static value used for concatenation only.
|
12420 | * @param v4 Value checked for change.
|
12421 | * @param i4 Static value used for concatenation only.
|
12422 | * @param v5 Value checked for change.
|
12423 | * @param i5 Static value used for concatenation only.
|
12424 | * @param v6 Value checked for change.
|
12425 | * @param i6 Static value used for concatenation only.
|
12426 | * @param v7 Value checked for change.
|
12427 | * @param suffix Static value used for concatenation only.
|
12428 | * @codeGenApi
|
12429 | */
|
12430 | export declare function ɵɵclassMapInterpolate8(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string): void;
|
12431 |
|
12432 | /**
|
12433 | * Update an interpolated class on an element with 9 or more bound values surrounded by text.
|
12434 | *
|
12435 | * Used when the number of interpolated values exceeds 8.
|
12436 | *
|
12437 | * ```html
|
12438 | * <div
|
12439 | * class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
|
12440 | * ```
|
12441 | *
|
12442 | * Its compiled representation is:
|
12443 | *
|
12444 | * ```ts
|
12445 | * ɵɵclassMapInterpolateV(
|
12446 | * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
|
12447 | * 'suffix']);
|
12448 | * ```
|
12449 | *.
|
12450 | * @param values The collection of values and the strings in-between those values, beginning with
|
12451 | * a string prefix and ending with a string suffix.
|
12452 | * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
|
12453 | * @codeGenApi
|
12454 | */
|
12455 | export declare function ɵɵclassMapInterpolateV(values: any[]): void;
|
12456 |
|
12457 | /**
|
12458 | * Update a class binding on an element with the provided value.
|
12459 | *
|
12460 | * This instruction is meant to handle the `[class.foo]="exp"` case and,
|
12461 | * therefore, the class binding itself must already be allocated using
|
12462 | * `styling` within the creation block.
|
12463 | *
|
12464 | * @param prop A valid CSS class (only one).
|
12465 | * @param value A true/false value which will turn the class on or off.
|
12466 | *
|
12467 | * Note that this will apply the provided class value to the host element if this function
|
12468 | * is called within a host binding function.
|
12469 | *
|
12470 | * @codeGenApi
|
12471 | */
|
12472 | export declare function ɵɵclassProp(className: string, value: boolean | undefined | null): typeof ɵɵclassProp;
|
12473 |
|
12474 | /**
|
12475 | * @publicApi
|
12476 | */
|
12477 | export declare type ɵɵComponentDeclaration<T, Selector extends String, ExportAs extends string[], InputMap extends {
|
12478 | [key: string]: string | {
|
12479 | alias: string | null;
|
12480 | required: boolean;
|
12481 | };
|
12482 | }, OutputMap extends {
|
12483 | [key: string]: string;
|
12484 | }, QueryFields extends string[], NgContentSelectors extends string[], IsStandalone extends boolean = false, HostDirectives = never> = unknown;
|
12485 |
|
12486 | /**
|
12487 | * Registers a QueryList, associated with a content query, for later refresh (part of a view
|
12488 | * refresh).
|
12489 | *
|
12490 | * @param directiveIndex Current directive index
|
12491 | * @param predicate The type for which the query will search
|
12492 | * @param flags Flags associated with the query
|
12493 | * @param read What to save in the query
|
12494 | * @returns QueryList<T>
|
12495 | *
|
12496 | * @codeGenApi
|
12497 | */
|
12498 | export declare function ɵɵcontentQuery<T>(directiveIndex: number, predicate: ProviderToken<unknown> | string[], flags: QueryFlags, read?: any): void;
|
12499 |
|
12500 | /**
|
12501 | * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a
|
12502 | * definition.
|
12503 | *
|
12504 | * This exists primarily to support ngcc migration of an existing View Engine pattern, where an
|
12505 | * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it
|
12506 | * generates a skeleton definition on the child class, and applies this feature.
|
12507 | *
|
12508 | * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,
|
12509 | * including things like the component template function.
|
12510 | *
|
12511 | * @param definition The definition of a child class which inherits from a parent class with its
|
12512 | * own definition.
|
12513 | *
|
12514 | * @codeGenApi
|
12515 | */
|
12516 | export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any> | ɵComponentDef<any>): void;
|
12517 |
|
12518 | /**
|
12519 | * Create a component definition object.
|
12520 | *
|
12521 | *
|
12522 | * # Example
|
12523 | * ```
|
12524 | * class MyComponent {
|
12525 | *
|
12526 | *
|
12527 | * static ɵcmp = defineComponent({
|
12528 | * ...
|
12529 | * });
|
12530 | * }
|
12531 | * ```
|
12532 | * @codeGenApi
|
12533 | */
|
12534 | export declare function ɵɵdefineComponent<T>(componentDefinition: ComponentDefinition<T>): Mutable<ɵComponentDef<any>, keyof ɵComponentDef<any>>;
|
12535 |
|
12536 | /**
|
12537 | * Create a directive definition object.
|
12538 | *
|
12539 | * # Example
|
12540 | * ```ts
|
12541 | * class MyDirective {
|
12542 | *
|
12543 | *
|
12544 | * static ɵdir = ɵɵdefineDirective({
|
12545 | * ...
|
12546 | * });
|
12547 | * }
|
12548 | * ```
|
12549 | *
|
12550 | * @codeGenApi
|
12551 | */
|
12552 | export declare function ɵɵdefineDirective<T>(directiveDefinition: DirectiveDefinition<T>): Mutable<ɵDirectiveDef<any>, keyof ɵDirectiveDef<any>>;
|
12553 |
|
12554 | /**
|
12555 | * Construct an injectable definition which defines how a token will be constructed by the DI
|
12556 | * system, and in which injectors (if any) it will be available.
|
12557 | *
|
12558 | * This should be assigned to a static `ɵprov` field on a type, which will then be an
|
12559 | * `InjectableType`.
|
12560 | *
|
12561 | * Options:
|
12562 | * * `providedIn` determines which injectors will include the injectable, by either associating it
|
12563 | * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be
|
12564 | * provided in the `'root'` injector, which will be the application-level injector in most apps.
|
12565 | * * `factory` gives the zero argument function which will create an instance of the injectable.
|
12566 | * The factory can call `inject` to access the `Injector` and request injection of dependencies.
|
12567 | *
|
12568 | * @codeGenApi
|
12569 | * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.
|
12570 | */
|
12571 | export declare function ɵɵdefineInjectable<T>(opts: {
|
12572 | token: unknown;
|
12573 | providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;
|
12574 | factory: () => T;
|
12575 | }): unknown;
|
12576 |
|
12577 | /**
|
12578 | * Construct an `InjectorDef` which configures an injector.
|
12579 | *
|
12580 | * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an
|
12581 | * `InjectorType`.
|
12582 | *
|
12583 | * Options:
|
12584 | *
|
12585 | * * `providers`: an optional array of providers to add to the injector. Each provider must
|
12586 | * either have a factory or point to a type which has a `ɵprov` static property (the
|
12587 | * type must be an `InjectableType`).
|
12588 | * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s
|
12589 | * whose providers will also be added to the injector. Locally provided types will override
|
12590 | * providers from imports.
|
12591 | *
|
12592 | * @codeGenApi
|
12593 | */
|
12594 | export declare function ɵɵdefineInjector(options: {
|
12595 | providers?: any[];
|
12596 | imports?: any[];
|
12597 | }): unknown;
|
12598 |
|
12599 | /**
|
12600 | * @codeGenApi
|
12601 | */
|
12602 | export declare function ɵɵdefineNgModule<T>(def: {
|
12603 | /** Token representing the module. Used by DI. */
|
12604 | type: T;
|
12605 | /** List of components to bootstrap. */
|
12606 | bootstrap?: Type<any>[] | (() => Type<any>[]);
|
12607 | /** List of components, directives, and pipes declared by this module. */
|
12608 | declarations?: Type<any>[] | (() => Type<any>[]);
|
12609 | /** List of modules or `ModuleWithProviders` imported by this module. */
|
12610 | imports?: Type<any>[] | (() => Type<any>[]);
|
12611 | /**
|
12612 | * List of modules, `ModuleWithProviders`, components, directives, or pipes exported by this
|
12613 | * module.
|
12614 | */
|
12615 | exports?: Type<any>[] | (() => Type<any>[]);
|
12616 | /** The set of schemas that declare elements to be allowed in the NgModule. */
|
12617 | schemas?: SchemaMetadata[] | null;
|
12618 | /** Unique ID for the module that is used with `getModuleFactory`. */
|
12619 | id?: string | null;
|
12620 | }): unknown;
|
12621 |
|
12622 | /**
|
12623 | * Create a pipe definition object.
|
12624 | *
|
12625 | * # Example
|
12626 | * ```
|
12627 | * class MyPipe implements PipeTransform {
|
12628 | *
|
12629 | * static ɵpipe = definePipe({
|
12630 | * ...
|
12631 | * });
|
12632 | * }
|
12633 | * ```
|
12634 | * @param pipeDef Pipe definition generated by the compiler
|
12635 | *
|
12636 | * @codeGenApi
|
12637 | */
|
12638 | export declare function ɵɵdefinePipe<T>(pipeDef: {
|
12639 | /** Name of the pipe. Used for matching pipes in template to pipe defs. */
|
12640 | name: string;
|
12641 | /** Pipe class reference. Needed to extract pipe lifecycle hooks. */
|
12642 | type: Type<T>;
|
12643 | /** Whether the pipe is pure. */
|
12644 | pure?: boolean;
|
12645 | /**
|
12646 | * Whether the pipe is standalone.
|
12647 | */
|
12648 | standalone?: boolean;
|
12649 | }): unknown;
|
12650 |
|
12651 |
|
12652 | /**
|
12653 | * @publicApi
|
12654 | */
|
12655 | export declare type ɵɵDirectiveDeclaration<T, Selector extends string, ExportAs extends string[], InputMap extends {
|
12656 | [key: string]: string | {
|
12657 | alias: string | null;
|
12658 | required: boolean;
|
12659 | };
|
12660 | }, OutputMap extends {
|
12661 | [key: string]: string;
|
12662 | }, QueryFields extends string[], NgContentSelectors extends never = never, IsStandalone extends boolean = false, HostDirectives = never> = unknown;
|
12663 |
|
12664 | /**
|
12665 | * Returns the value associated to the given token from the injectors.
|
12666 | *
|
12667 | * `directiveInject` is intended to be used for directive, component and pipe factories.
|
12668 | * All other injection use `inject` which does not walk the node injector tree.
|
12669 | *
|
12670 | * Usage example (in factory function):
|
12671 | *
|
12672 | * ```ts
|
12673 | * class SomeDirective {
|
12674 | * constructor(directive: DirectiveA) {}
|
12675 | *
|
12676 | * static ɵdir = ɵɵdefineDirective({
|
12677 | * type: SomeDirective,
|
12678 | * factory: () => new SomeDirective(ɵɵdirectiveInject(DirectiveA))
|
12679 | * });
|
12680 | * }
|
12681 | * ```
|
12682 | * @param token the type or token to inject
|
12683 | * @param flags Injection flags
|
12684 | * @returns the value from the injector or `null` when not found
|
12685 | *
|
12686 | * @codeGenApi
|
12687 | */
|
12688 | export declare function ɵɵdirectiveInject<T>(token: ProviderToken<T>): T;
|
12689 |
|
12690 | export declare function ɵɵdirectiveInject<T>(token: ProviderToken<T>, flags: InjectFlags): T;
|
12691 |
|
12692 | /**
|
12693 | * Disables directive matching on element.
|
12694 | *
|
12695 | * * Example:
|
12696 | * ```
|
12697 | * <my-comp my-directive>
|
12698 | * Should match component / directive.
|
12699 | * </my-comp>
|
12700 | * <div ngNonBindable>
|
12701 | * <!-- ɵɵdisableBindings() -->
|
12702 | * <my-comp my-directive>
|
12703 | * Should not match component / directive because we are in ngNonBindable.
|
12704 | * </my-comp>
|
12705 | * <!-- ɵɵenableBindings() -->
|
12706 | * </div>
|
12707 | * ```
|
12708 | *
|
12709 | * @codeGenApi
|
12710 | */
|
12711 | export declare function ɵɵdisableBindings(): void;
|
12712 |
|
12713 | /**
|
12714 | * Creates an empty element using {@link elementStart} and {@link elementEnd}
|
12715 | *
|
12716 | * @param index Index of the element in the data array
|
12717 | * @param name Name of the DOM Node
|
12718 | * @param attrsIndex Index of the element's attributes in the `consts` array.
|
12719 | * @param localRefsIndex Index of the element's local references in the `consts` array.
|
12720 | * @returns This function returns itself so that it may be chained.
|
12721 | *
|
12722 | * @codeGenApi
|
12723 | */
|
12724 | export declare function ɵɵelement(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelement;
|
12725 |
|
12726 | /**
|
12727 | * Creates an empty logical container using {@link elementContainerStart}
|
12728 | * and {@link elementContainerEnd}
|
12729 | *
|
12730 | * @param index Index of the element in the LView array
|
12731 | * @param attrsIndex Index of the container attributes in the `consts` array.
|
12732 | * @param localRefsIndex Index of the container's local references in the `consts` array.
|
12733 | * @returns This function returns itself so that it may be chained.
|
12734 | *
|
12735 | * @codeGenApi
|
12736 | */
|
12737 | export declare function ɵɵelementContainer(index: number, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementContainer;
|
12738 |
|
12739 | /**
|
12740 | * Mark the end of the <ng-container>.
|
12741 | * @returns This function returns itself so that it may be chained.
|
12742 | *
|
12743 | * @codeGenApi
|
12744 | */
|
12745 | export declare function ɵɵelementContainerEnd(): typeof ɵɵelementContainerEnd;
|
12746 |
|
12747 | /**
|
12748 | * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.
|
12749 | * The instruction must later be followed by `elementContainerEnd()` call.
|
12750 | *
|
12751 | * @param index Index of the element in the LView array
|
12752 | * @param attrsIndex Index of the container attributes in the `consts` array.
|
12753 | * @param localRefsIndex Index of the container's local references in the `consts` array.
|
12754 | * @returns This function returns itself so that it may be chained.
|
12755 | *
|
12756 | * Even if this instruction accepts a set of attributes no actual attribute values are propagated to
|
12757 | * the DOM (as a comment node can't have attributes). Attributes are here only for directive
|
12758 | * matching purposes and setting initial inputs of directives.
|
12759 | *
|
12760 | * @codeGenApi
|
12761 | */
|
12762 | export declare function ɵɵelementContainerStart(index: number, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementContainerStart;
|
12763 |
|
12764 | /**
|
12765 | * Mark the end of the element.
|
12766 | * @returns This function returns itself so that it may be chained.
|
12767 | *
|
12768 | * @codeGenApi
|
12769 | */
|
12770 | export declare function ɵɵelementEnd(): typeof ɵɵelementEnd;
|
12771 |
|
12772 |
|
12773 | /**
|
12774 | * Create DOM element. The instruction must later be followed by `elementEnd()` call.
|
12775 | *
|
12776 | * @param index Index of the element in the LView array
|
12777 | * @param name Name of the DOM Node
|
12778 | * @param attrsIndex Index of the element's attributes in the `consts` array.
|
12779 | * @param localRefsIndex Index of the element's local references in the `consts` array.
|
12780 | * @returns This function returns itself so that it may be chained.
|
12781 | *
|
12782 | * Attributes and localRefs are passed as an array of strings where elements with an even index
|
12783 | * hold an attribute name and elements with an odd index hold an attribute value, ex.:
|
12784 | * ['id', 'warning5', 'class', 'alert']
|
12785 | *
|
12786 | * @codeGenApi
|
12787 | */
|
12788 | export declare function ɵɵelementStart(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementStart;
|
12789 |
|
12790 | /**
|
12791 | * Enables directive matching on elements.
|
12792 | *
|
12793 | * * Example:
|
12794 | * ```
|
12795 | * <my-comp my-directive>
|
12796 | * Should match component / directive.
|
12797 | * </my-comp>
|
12798 | * <div ngNonBindable>
|
12799 | * <!-- ɵɵdisableBindings() -->
|
12800 | * <my-comp my-directive>
|
12801 | * Should not match component / directive because we are in ngNonBindable.
|
12802 | * </my-comp>
|
12803 | * <!-- ɵɵenableBindings() -->
|
12804 | * </div>
|
12805 | * ```
|
12806 | *
|
12807 | * @codeGenApi
|
12808 | */
|
12809 | export declare function ɵɵenableBindings(): void;
|
12810 |
|
12811 | /**
|
12812 | * @publicApi
|
12813 | */
|
12814 | export declare type ɵɵFactoryDeclaration<T, CtorDependencies extends CtorDependency[]> = unknown;
|
12815 |
|
12816 | export declare enum ɵɵFactoryTarget {
|
12817 | Directive = 0,
|
12818 | Component = 1,
|
12819 | Injectable = 2,
|
12820 | Pipe = 3,
|
12821 | NgModule = 4
|
12822 | }
|
12823 |
|
12824 | /**
|
12825 | * Returns the current OpaqueViewState instance.
|
12826 | *
|
12827 | * Used in conjunction with the restoreView() instruction to save a snapshot
|
12828 | * of the current view and restore it when listeners are invoked. This allows
|
12829 | * walking the declaration view tree in listeners to get vars from parent views.
|
12830 | *
|
12831 | * @codeGenApi
|
12832 | */
|
12833 | export declare function ɵɵgetCurrentView(): OpaqueViewState;
|
12834 |
|
12835 | /**
|
12836 | * @codeGenApi
|
12837 | */
|
12838 | export declare function ɵɵgetInheritedFactory<T>(type: Type<any>): (type: Type<T>) => T;
|
12839 |
|
12840 | /**
|
12841 | * This feature adds the host directives behavior to a directive definition by patching a
|
12842 | * function onto it. The expectation is that the runtime will invoke the function during
|
12843 | * directive matching.
|
12844 | *
|
12845 | * For example:
|
12846 | * ```ts
|
12847 | * class ComponentWithHostDirective {
|
12848 | * static ɵcmp = defineComponent({
|
12849 | * type: ComponentWithHostDirective,
|
12850 | * features: [ɵɵHostDirectivesFeature([
|
12851 | * SimpleHostDirective,
|
12852 | * {directive: AdvancedHostDirective, inputs: ['foo: alias'], outputs: ['bar']},
|
12853 | * ])]
|
12854 | * });
|
12855 | * }
|
12856 | * ```
|
12857 | *
|
12858 | * @codeGenApi
|
12859 | */
|
12860 | export declare function ɵɵHostDirectivesFeature(rawHostDirectives: HostDirectiveConfig[] | (() => HostDirectiveConfig[])): (definition: ɵDirectiveDef<unknown>) => void;
|
12861 |
|
12862 | /**
|
12863 | * Update a property on a host element. Only applies to native node properties, not inputs.
|
12864 | *
|
12865 | * Operates on the element selected by index via the {@link select} instruction.
|
12866 | *
|
12867 | * @param propName Name of property. Because it is going to DOM, this is not subject to
|
12868 | * renaming as part of minification.
|
12869 | * @param value New value to write.
|
12870 | * @param sanitizer An optional function used to sanitize the value.
|
12871 | * @returns This function returns itself so that it may be chained
|
12872 | * (e.g. `property('name', ctx.name)('title', ctx.title)`)
|
12873 | *
|
12874 | * @codeGenApi
|
12875 | */
|
12876 | export declare function ɵɵhostProperty<T>(propName: string, value: T, sanitizer?: SanitizerFn | null): typeof ɵɵhostProperty;
|
12877 |
|
12878 | /**
|
12879 | *
|
12880 | * Use this instruction to create a translation block that doesn't contain any placeholder.
|
12881 | * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.
|
12882 | *
|
12883 | * The translation `message` is the value which is locale specific. The translation string may
|
12884 | * contain placeholders which associate inner elements and sub-templates within the translation.
|
12885 | *
|
12886 | * The translation `message` placeholders are:
|
12887 | * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be
|
12888 | * interpolated into. The placeholder `index` points to the expression binding index. An optional
|
12889 | * `block` that matches the sub-template in which it was declared.
|
12890 | * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning
|
12891 | * and end of DOM element that were embedded in the original translation block. The placeholder
|
12892 | * `index` points to the element index in the template instructions set. An optional `block` that
|
12893 | * matches the sub-template in which it was declared.
|
12894 | * - `�*{index}:{block}�`/`� |
12895 |
|
12896 |
|
12897 |
|
12898 |
|
12899 |
|
12900 |
|
12901 |
|
12902 |
|
12903 |
|
12904 | export declare function ɵɵi18n(index: number, messageIndex: number, subTemplateIndex?: number): void;
|
12905 |
|
12906 |
|
12907 |
|
12908 |
|
12909 |
|
12910 |
|
12911 |
|
12912 |
|
12913 |
|
12914 | export declare function ɵɵi18nApply(index: number): void;
|
12915 |
|
12916 |
|
12917 |
|
12918 |
|
12919 |
|
12920 |
|
12921 |
|
12922 |
|
12923 |
|
12924 | export declare function ɵɵi18nAttributes(index: number, attrsIndex: number): void;
|
12925 |
|
12926 |
|
12927 |
|
12928 |
|
12929 |
|
12930 |
|
12931 |
|
12932 | export declare function ɵɵi18nEnd(): void;
|
12933 |
|
12934 |
|
12935 |
|
12936 |
|
12937 |
|
12938 |
|
12939 |
|
12940 |
|
12941 |
|
12942 |
|
12943 |
|
12944 | export declare function ɵɵi18nExp<T>(value: T): typeof ɵɵi18nExp;
|
12945 |
|
12946 |
|
12947 |
|
12948 |
|
12949 |
|
12950 |
|
12951 |
|
12952 |
|
12953 |
|
12954 |
|
12955 |
|
12956 |
|
12957 |
|
12958 |
|
12959 |
|
12960 |
|
12961 |
|
12962 |
|
12963 |
|
12964 |
|
12965 |
|
12966 | export declare function ɵɵi18nPostprocess(message: string, replacements?: {
|
12967 | [key: string]: (string | string[]);
|
12968 | }): string;
|
12969 |
|
12970 |
|
12971 |
|
12972 |
|
12973 |
|
12974 |
|
12975 |
|
12976 |
|
12977 |
|
12978 |
|
12979 |
|
12980 |
|
12981 |
|
12982 |
|
12983 |
|
12984 |
|
12985 |
|
12986 |
|
12987 |
|
12988 |
|
12989 |
|
12990 |
|
12991 |
|
12992 |
|
12993 |
|
12994 |
|
12995 | export declare function ɵɵi18nStart(index: number, messageIndex: number, subTemplateIndex?: number): void;
|
12996 |
|
12997 |
|
12998 |
|
12999 |
|
13000 |
|
13001 |
|
13002 |
|
13003 | export declare function ɵɵInheritDefinitionFeature(definition: ɵDirectiveDef<any> | ɵComponentDef<any>): void;
|
13004 |
|
13005 |
|
13006 |
|
13007 |
|
13008 |
|
13009 |
|
13010 |
|
13011 |
|
13012 |
|
13013 |
|
13014 |
|
13015 | export declare function ɵɵinject<T>(token: ProviderToken<T>): T;
|
13016 |
|
13017 | export declare function ɵɵinject<T>(token: ProviderToken<T>, flags?: InjectFlags): T | null;
|
13018 |
|
13019 |
|
13020 |
|
13021 |
|
13022 |
|
13023 |
|
13024 |
|
13025 |
|
13026 |
|
13027 |
|
13028 |
|
13029 |
|
13030 |
|
13031 |
|
13032 |
|
13033 |
|
13034 | export declare interface ɵɵInjectableDeclaration<T> {
|
13035 | |
13036 |
|
13037 |
|
13038 |
|
13039 |
|
13040 |
|
13041 |
|
13042 |
|
13043 | providedIn: InjectorType<any> | 'root' | 'platform' | 'any' | 'environment' | null;
|
13044 | |
13045 |
|
13046 |
|
13047 |
|
13048 |
|
13049 | token: unknown;
|
13050 | |
13051 |
|
13052 |
|
13053 | factory: (t?: Type<any>) => T;
|
13054 | |
13055 |
|
13056 |
|
13057 | value: T | undefined;
|
13058 | }
|
13059 |
|
13060 |
|
13061 |
|
13062 |
|
13063 |
|
13064 |
|
13065 | export declare function ɵɵinjectAttribute(attrNameToInject: string): string | null;
|
13066 |
|
13067 |
|
13068 |
|
13069 |
|
13070 | export declare type ɵɵInjectorDeclaration<T> = unknown;
|
13071 |
|
13072 |
|
13073 |
|
13074 |
|
13075 |
|
13076 |
|
13077 |
|
13078 |
|
13079 |
|
13080 |
|
13081 |
|
13082 |
|
13083 |
|
13084 | export declare interface ɵɵInjectorDef<T> {
|
13085 | providers: (Type<any> | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | EnvironmentProviders | any[])[];
|
13086 | imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
|
13087 | }
|
13088 |
|
13089 |
|
13090 |
|
13091 |
|
13092 |
|
13093 |
|
13094 |
|
13095 |
|
13096 |
|
13097 |
|
13098 |
|
13099 |
|
13100 |
|
13101 | export declare function ɵɵinvalidFactory(): never;
|
13102 |
|
13103 |
|
13104 |
|
13105 |
|
13106 |
|
13107 |
|
13108 |
|
13109 |
|
13110 |
|
13111 |
|
13112 | export declare function ɵɵinvalidFactoryDep(index: number): never;
|
13113 |
|
13114 |
|
13115 |
|
13116 |
|
13117 |
|
13118 |
|
13119 |
|
13120 |
|
13121 |
|
13122 |
|
13123 |
|
13124 |
|
13125 |
|
13126 |
|
13127 |
|
13128 |
|
13129 | export declare function ɵɵlistener(eventName: string, listenerFn: (e?: any) => any, useCapture?: boolean, eventTargetResolver?: GlobalTargetResolver): typeof ɵɵlistener;
|
13130 |
|
13131 |
|
13132 |
|
13133 |
|
13134 |
|
13135 |
|
13136 | export declare function ɵɵloadQuery<T>(): QueryList<T>;
|
13137 |
|
13138 |
|
13139 |
|
13140 |
|
13141 |
|
13142 |
|
13143 |
|
13144 | export declare function ɵɵnamespaceHTML(): void;
|
13145 |
|
13146 |
|
13147 |
|
13148 |
|
13149 |
|
13150 |
|
13151 | export declare function ɵɵnamespaceMathML(): void;
|
13152 |
|
13153 |
|
13154 |
|
13155 |
|
13156 |
|
13157 |
|
13158 | export declare function ɵɵnamespaceSVG(): void;
|
13159 |
|
13160 |
|
13161 |
|
13162 |
|
13163 |
|
13164 |
|
13165 |
|
13166 |
|
13167 |
|
13168 |
|
13169 |
|
13170 |
|
13171 |
|
13172 | export declare function ɵɵnextContext<T = any>(level?: number): T;
|
13173 |
|
13174 |
|
13175 |
|
13176 |
|
13177 |
|
13178 |
|
13179 | export declare function ɵɵngDeclareClassMetadata(decl: {
|
13180 | type: Type<any>;
|
13181 | decorators: any[];
|
13182 | ctorParameters?: () => any[];
|
13183 | propDecorators?: {
|
13184 | [field: string]: any;
|
13185 | };
|
13186 | }): void;
|
13187 |
|
13188 |
|
13189 |
|
13190 |
|
13191 |
|
13192 |
|
13193 | export declare function ɵɵngDeclareComponent(decl: R3DeclareComponentFacade): unknown;
|
13194 |
|
13195 |
|
13196 |
|
13197 |
|
13198 |
|
13199 |
|
13200 | export declare function ɵɵngDeclareDirective(decl: R3DeclareDirectiveFacade): unknown;
|
13201 |
|
13202 |
|
13203 |
|
13204 |
|
13205 |
|
13206 |
|
13207 | export declare function ɵɵngDeclareFactory(decl: R3DeclareFactoryFacade): unknown;
|
13208 |
|
13209 |
|
13210 |
|
13211 |
|
13212 |
|
13213 |
|
13214 | export declare function ɵɵngDeclareInjectable(decl: R3DeclareInjectableFacade): unknown;
|
13215 |
|
13216 |
|
13217 |
|
13218 |
|
13219 |
|
13220 |
|
13221 | export declare function ɵɵngDeclareInjector(decl: R3DeclareInjectorFacade): unknown;
|
13222 |
|
13223 |
|
13224 |
|
13225 |
|
13226 |
|
13227 |
|
13228 | export declare function ɵɵngDeclareNgModule(decl: R3DeclareNgModuleFacade): unknown;
|
13229 |
|
13230 |
|
13231 |
|
13232 |
|
13233 |
|
13234 |
|
13235 | export declare function ɵɵngDeclarePipe(decl: R3DeclarePipeFacade): unknown;
|
13236 |
|
13237 |
|
13238 |
|
13239 |
|
13240 | export declare type ɵɵNgModuleDeclaration<T, Declarations, Imports, Exports> = unknown;
|
13241 |
|
13242 |
|
13243 |
|
13244 |
|
13245 |
|
13246 |
|
13247 |
|
13248 |
|
13249 |
|
13250 |
|
13251 |
|
13252 |
|
13253 |
|
13254 |
|
13255 |
|
13256 |
|
13257 |
|
13258 |
|
13259 |
|
13260 |
|
13261 |
|
13262 |
|
13263 |
|
13264 | export declare function ɵɵNgOnChangesFeature<T>(): DirectiveDefFeature;
|
13265 |
|
13266 |
|
13267 |
|
13268 |
|
13269 |
|
13270 |
|
13271 |
|
13272 |
|
13273 |
|
13274 |
|
13275 |
|
13276 | export declare function ɵɵpipe(index: number, pipeName: string): any;
|
13277 |
|
13278 |
|
13279 |
|
13280 |
|
13281 |
|
13282 |
|
13283 |
|
13284 |
|
13285 |
|
13286 |
|
13287 |
|
13288 |
|
13289 |
|
13290 | export declare function ɵɵpipeBind1(index: number, slotOffset: number, v1: any): any;
|
13291 |
|
13292 |
|
13293 |
|
13294 |
|
13295 |
|
13296 |
|
13297 |
|
13298 |
|
13299 |
|
13300 |
|
13301 |
|
13302 |
|
13303 |
|
13304 |
|
13305 | export declare function ɵɵpipeBind2(index: number, slotOffset: number, v1: any, v2: any): any;
|
13306 |
|
13307 |
|
13308 |
|
13309 |
|
13310 |
|
13311 |
|
13312 |
|
13313 |
|
13314 |
|
13315 |
|
13316 |
|
13317 |
|
13318 |
|
13319 |
|
13320 |
|
13321 | export declare function ɵɵpipeBind3(index: number, slotOffset: number, v1: any, v2: any, v3: any): any;
|
13322 |
|
13323 |
|
13324 |
|
13325 |
|
13326 |
|
13327 |
|
13328 |
|
13329 |
|
13330 |
|
13331 |
|
13332 |
|
13333 |
|
13334 |
|
13335 |
|
13336 |
|
13337 |
|
13338 | export declare function ɵɵpipeBind4(index: number, slotOffset: number, v1: any, v2: any, v3: any, v4: any): any;
|
13339 |
|
13340 |
|
13341 |
|
13342 |
|
13343 |
|
13344 |
|
13345 |
|
13346 |
|
13347 |
|
13348 |
|
13349 |
|
13350 |
|
13351 |
|
13352 | export declare function ɵɵpipeBindV(index: number, slotOffset: number, values: [any, ...any[]]): any;
|
13353 |
|
13354 |
|
13355 |
|
13356 |
|
13357 | export declare type ɵɵPipeDeclaration<T, Name extends string, IsStandalone extends boolean = false> = unknown;
|
13358 |
|
13359 |
|
13360 |
|
13361 |
|
13362 |
|
13363 |
|
13364 |
|
13365 |
|
13366 |
|
13367 |
|
13368 |
|
13369 |
|
13370 | export declare function ɵɵprojection(nodeIndex: number, selectorIndex?: number, attrs?: TAttributes): void;
|
13371 |
|
13372 |
|
13373 |
|
13374 |
|
13375 |
|
13376 |
|
13377 |
|
13378 |
|
13379 |
|
13380 |
|
13381 |
|
13382 |
|
13383 |
|
13384 |
|
13385 |
|
13386 |
|
13387 |
|
13388 |
|
13389 |
|
13390 |
|
13391 |
|
13392 |
|
13393 |
|
13394 |
|
13395 |
|
13396 |
|
13397 | export declare function ɵɵprojectionDef(projectionSlots?: ProjectionSlots): void;
|
13398 |
|
13399 |
|
13400 |
|
13401 |
|
13402 |
|
13403 |
|
13404 |
|
13405 |
|
13406 |
|
13407 |
|
13408 |
|
13409 |
|
13410 |
|
13411 |
|
13412 |
|
13413 |
|
13414 |
|
13415 |
|
13416 |
|
13417 | export declare function ɵɵproperty<T>(propName: string, value: T, sanitizer?: SanitizerFn | null): typeof ɵɵproperty;
|
13418 |
|
13419 |
|
13420 |
|
13421 |
|
13422 |
|
13423 |
|
13424 |
|
13425 |
|
13426 |
|
13427 |
|
13428 |
|
13429 |
|
13430 |
|
13431 |
|
13432 |
|
13433 |
|
13434 |
|
13435 |
|
13436 |
|
13437 |
|
13438 |
|
13439 |
|
13440 |
|
13441 |
|
13442 |
|
13443 |
|
13444 |
|
13445 |
|
13446 |
|
13447 |
|
13448 | export declare function ɵɵpropertyInterpolate(propName: string, v0: any, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate;
|
13449 |
|
13450 |
|
13451 |
|
13452 |
|
13453 |
|
13454 |
|
13455 |
|
13456 |
|
13457 |
|
13458 |
|
13459 |
|
13460 |
|
13461 |
|
13462 |
|
13463 |
|
13464 |
|
13465 |
|
13466 |
|
13467 |
|
13468 |
|
13469 |
|
13470 |
|
13471 |
|
13472 |
|
13473 |
|
13474 |
|
13475 |
|
13476 |
|
13477 |
|
13478 | export declare function ɵɵpropertyInterpolate1(propName: string, prefix: string, v0: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate1;
|
13479 |
|
13480 |
|
13481 |
|
13482 |
|
13483 |
|
13484 |
|
13485 |
|
13486 |
|
13487 |
|
13488 |
|
13489 |
|
13490 |
|
13491 |
|
13492 |
|
13493 |
|
13494 |
|
13495 |
|
13496 |
|
13497 |
|
13498 |
|
13499 |
|
13500 |
|
13501 |
|
13502 |
|
13503 |
|
13504 |
|
13505 |
|
13506 |
|
13507 |
|
13508 |
|
13509 |
|
13510 | export declare function ɵɵpropertyInterpolate2(propName: string, prefix: string, v0: any, i0: string, v1: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate2;
|
13511 |
|
13512 |
|
13513 |
|
13514 |
|
13515 |
|
13516 |
|
13517 |
|
13518 |
|
13519 |
|
13520 |
|
13521 |
|
13522 |
|
13523 |
|
13524 |
|
13525 |
|
13526 |
|
13527 |
|
13528 |
|
13529 |
|
13530 |
|
13531 |
|
13532 |
|
13533 |
|
13534 |
|
13535 |
|
13536 |
|
13537 |
|
13538 |
|
13539 |
|
13540 |
|
13541 |
|
13542 |
|
13543 |
|
13544 |
|
13545 | export declare function ɵɵpropertyInterpolate3(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate3;
|
13546 |
|
13547 |
|
13548 |
|
13549 |
|
13550 |
|
13551 |
|
13552 |
|
13553 |
|
13554 |
|
13555 |
|
13556 |
|
13557 |
|
13558 |
|
13559 |
|
13560 |
|
13561 |
|
13562 |
|
13563 |
|
13564 |
|
13565 |
|
13566 |
|
13567 |
|
13568 |
|
13569 |
|
13570 |
|
13571 |
|
13572 |
|
13573 |
|
13574 |
|
13575 |
|
13576 |
|
13577 |
|
13578 |
|
13579 |
|
13580 |
|
13581 |
|
13582 | export declare function ɵɵpropertyInterpolate4(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate4;
|
13583 |
|
13584 |
|
13585 |
|
13586 |
|
13587 |
|
13588 |
|
13589 |
|
13590 |
|
13591 |
|
13592 |
|
13593 |
|
13594 |
|
13595 |
|
13596 |
|
13597 |
|
13598 |
|
13599 |
|
13600 |
|
13601 |
|
13602 |
|
13603 |
|
13604 |
|
13605 |
|
13606 |
|
13607 |
|
13608 |
|
13609 |
|
13610 |
|
13611 |
|
13612 |
|
13613 |
|
13614 |
|
13615 |
|
13616 |
|
13617 |
|
13618 |
|
13619 |
|
13620 |
|
13621 | export declare function ɵɵpropertyInterpolate5(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate5;
|
13622 |
|
13623 |
|
13624 |
|
13625 |
|
13626 |
|
13627 |
|
13628 |
|
13629 |
|
13630 |
|
13631 |
|
13632 |
|
13633 |
|
13634 |
|
13635 |
|
13636 |
|
13637 |
|
13638 |
|
13639 |
|
13640 |
|
13641 |
|
13642 |
|
13643 |
|
13644 |
|
13645 |
|
13646 |
|
13647 |
|
13648 |
|
13649 |
|
13650 |
|
13651 |
|
13652 |
|
13653 |
|
13654 |
|
13655 |
|
13656 |
|
13657 |
|
13658 |
|
13659 |
|
13660 |
|
13661 |
|
13662 | export declare function ɵɵpropertyInterpolate6(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate6;
|
13663 |
|
13664 |
|
13665 |
|
13666 |
|
13667 |
|
13668 |
|
13669 |
|
13670 |
|
13671 |
|
13672 |
|
13673 |
|
13674 |
|
13675 |
|
13676 |
|
13677 |
|
13678 |
|
13679 |
|
13680 |
|
13681 |
|
13682 |
|
13683 |
|
13684 |
|
13685 |
|
13686 |
|
13687 |
|
13688 |
|
13689 |
|
13690 |
|
13691 |
|
13692 |
|
13693 |
|
13694 |
|
13695 |
|
13696 |
|
13697 |
|
13698 |
|
13699 |
|
13700 |
|
13701 |
|
13702 |
|
13703 |
|
13704 |
|
13705 | export declare function ɵɵpropertyInterpolate7(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate7;
|
13706 |
|
13707 |
|
13708 |
|
13709 |
|
13710 |
|
13711 |
|
13712 |
|
13713 |
|
13714 |
|
13715 |
|
13716 |
|
13717 |
|
13718 |
|
13719 |
|
13720 |
|
13721 |
|
13722 |
|
13723 |
|
13724 |
|
13725 |
|
13726 |
|
13727 |
|
13728 |
|
13729 |
|
13730 |
|
13731 |
|
13732 |
|
13733 |
|
13734 |
|
13735 |
|
13736 |
|
13737 |
|
13738 |
|
13739 |
|
13740 |
|
13741 |
|
13742 |
|
13743 |
|
13744 |
|
13745 |
|
13746 |
|
13747 |
|
13748 |
|
13749 |
|
13750 | export declare function ɵɵpropertyInterpolate8(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate8;
|
13751 |
|
13752 |
|
13753 |
|
13754 |
|
13755 |
|
13756 |
|
13757 |
|
13758 |
|
13759 |
|
13760 |
|
13761 |
|
13762 |
|
13763 |
|
13764 |
|
13765 |
|
13766 |
|
13767 |
|
13768 |
|
13769 |
|
13770 |
|
13771 |
|
13772 |
|
13773 |
|
13774 |
|
13775 |
|
13776 |
|
13777 |
|
13778 |
|
13779 |
|
13780 |
|
13781 |
|
13782 | export declare function ɵɵpropertyInterpolateV(propName: string, values: any[], sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolateV;
|
13783 |
|
13784 |
|
13785 |
|
13786 |
|
13787 |
|
13788 |
|
13789 |
|
13790 |
|
13791 |
|
13792 |
|
13793 |
|
13794 |
|
13795 |
|
13796 |
|
13797 |
|
13798 |
|
13799 |
|
13800 |
|
13801 |
|
13802 |
|
13803 |
|
13804 |
|
13805 |
|
13806 |
|
13807 |
|
13808 |
|
13809 |
|
13810 |
|
13811 |
|
13812 |
|
13813 |
|
13814 |
|
13815 |
|
13816 | export declare function ɵɵProvidersFeature<T>(providers: Provider[], viewProviders?: Provider[]): (definition: ɵDirectiveDef<T>) => void;
|
13817 |
|
13818 |
|
13819 |
|
13820 |
|
13821 |
|
13822 |
|
13823 |
|
13824 |
|
13825 |
|
13826 |
|
13827 |
|
13828 |
|
13829 |
|
13830 |
|
13831 |
|
13832 |
|
13833 |
|
13834 |
|
13835 |
|
13836 |
|
13837 |
|
13838 |
|
13839 |
|
13840 |
|
13841 |
|
13842 |
|
13843 |
|
13844 |
|
13845 |
|
13846 | export declare function ɵɵpureFunction0<T>(slotOffset: number, pureFn: () => T, thisArg?: any): T;
|
13847 |
|
13848 |
|
13849 |
|
13850 |
|
13851 |
|
13852 |
|
13853 |
|
13854 |
|
13855 |
|
13856 |
|
13857 |
|
13858 |
|
13859 |
|
13860 | export declare function ɵɵpureFunction1(slotOffset: number, pureFn: (v: any) => any, exp: any, thisArg?: any): any;
|
13861 |
|
13862 |
|
13863 |
|
13864 |
|
13865 |
|
13866 |
|
13867 |
|
13868 |
|
13869 |
|
13870 |
|
13871 |
|
13872 |
|
13873 |
|
13874 |
|
13875 | export declare function ɵɵpureFunction2(slotOffset: number, pureFn: (v1: any, v2: any) => any, exp1: any, exp2: any, thisArg?: any): any;
|
13876 |
|
13877 |
|
13878 |
|
13879 |
|
13880 |
|
13881 |
|
13882 |
|
13883 |
|
13884 |
|
13885 |
|
13886 |
|
13887 |
|
13888 |
|
13889 |
|
13890 |
|
13891 | export declare function ɵɵpureFunction3(slotOffset: number, pureFn: (v1: any, v2: any, v3: any) => any, exp1: any, exp2: any, exp3: any, thisArg?: any): any;
|
13892 |
|
13893 |
|
13894 |
|
13895 |
|
13896 |
|
13897 |
|
13898 |
|
13899 |
|
13900 |
|
13901 |
|
13902 |
|
13903 |
|
13904 |
|
13905 |
|
13906 |
|
13907 |
|
13908 | export declare function ɵɵpureFunction4(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, thisArg?: any): any;
|
13909 |
|
13910 |
|
13911 |
|
13912 |
|
13913 |
|
13914 |
|
13915 |
|
13916 |
|
13917 |
|
13918 |
|
13919 |
|
13920 |
|
13921 |
|
13922 |
|
13923 |
|
13924 |
|
13925 |
|
13926 | export declare function ɵɵpureFunction5(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, thisArg?: any): any;
|
13927 |
|
13928 |
|
13929 |
|
13930 |
|
13931 |
|
13932 |
|
13933 |
|
13934 |
|
13935 |
|
13936 |
|
13937 |
|
13938 |
|
13939 |
|
13940 |
|
13941 |
|
13942 |
|
13943 |
|
13944 |
|
13945 | export declare function ɵɵpureFunction6(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any, v6: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, exp6: any, thisArg?: any): any;
|
13946 |
|
13947 |
|
13948 |
|
13949 |
|
13950 |
|
13951 |
|
13952 |
|
13953 |
|
13954 |
|
13955 |
|
13956 |
|
13957 |
|
13958 |
|
13959 |
|
13960 |
|
13961 |
|
13962 |
|
13963 |
|
13964 |
|
13965 | export declare function ɵɵpureFunction7(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any, v6: any, v7: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, exp6: any, exp7: any, thisArg?: any): any;
|
13966 |
|
13967 |
|
13968 |
|
13969 |
|
13970 |
|
13971 |
|
13972 |
|
13973 |
|
13974 |
|
13975 |
|
13976 |
|
13977 |
|
13978 |
|
13979 |
|
13980 |
|
13981 |
|
13982 |
|
13983 |
|
13984 |
|
13985 |
|
13986 | export declare function ɵɵpureFunction8(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any, v6: any, v7: any, v8: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, exp6: any, exp7: any, exp8: any, thisArg?: any): any;
|
13987 |
|
13988 |
|
13989 |
|
13990 |
|
13991 |
|
13992 |
|
13993 |
|
13994 |
|
13995 |
|
13996 |
|
13997 |
|
13998 |
|
13999 |
|
14000 |
|
14001 |
|
14002 |
|
14003 | export declare function ɵɵpureFunctionV(slotOffset: number, pureFn: (...v: any[]) => any, exps: any[], thisArg?: any): any;
|
14004 |
|
14005 |
|
14006 |
|
14007 |
|
14008 |
|
14009 |
|
14010 |
|
14011 |
|
14012 |
|
14013 |
|
14014 | export declare function ɵɵqueryRefresh(queryList: QueryList<any>): boolean;
|
14015 |
|
14016 |
|
14017 |
|
14018 |
|
14019 |
|
14020 |
|
14021 |
|
14022 |
|
14023 |
|
14024 |
|
14025 |
|
14026 | export declare function ɵɵreference<T>(index: number): T;
|
14027 |
|
14028 |
|
14029 |
|
14030 |
|
14031 |
|
14032 |
|
14033 |
|
14034 |
|
14035 |
|
14036 |
|
14037 |
|
14038 | export declare function ɵɵregisterNgModuleType(ngModuleType: ɵNgModuleType, id: string): void;
|
14039 |
|
14040 |
|
14041 |
|
14042 |
|
14043 |
|
14044 |
|
14045 |
|
14046 | export declare function ɵɵresetView<T>(value?: T): T | undefined;
|
14047 |
|
14048 |
|
14049 |
|
14050 |
|
14051 |
|
14052 | export declare function ɵɵresolveBody(element: RElement & {
|
14053 | ownerDocument: Document;
|
14054 | }): HTMLElement;
|
14055 |
|
14056 |
|
14057 |
|
14058 |
|
14059 |
|
14060 | export declare function ɵɵresolveDocument(element: RElement & {
|
14061 | ownerDocument: Document;
|
14062 | }): Document;
|
14063 |
|
14064 |
|
14065 |
|
14066 |
|
14067 |
|
14068 | export declare function ɵɵresolveWindow(element: RElement & {
|
14069 | ownerDocument: Document;
|
14070 | }): (Window & typeof globalThis) | null;
|
14071 |
|
14072 |
|
14073 |
|
14074 |
|
14075 |
|
14076 |
|
14077 |
|
14078 |
|
14079 |
|
14080 |
|
14081 |
|
14082 |
|
14083 |
|
14084 | export declare function ɵɵrestoreView<T = any>(viewToRestore: OpaqueViewState): T;
|
14085 |
|
14086 |
|
14087 |
|
14088 |
|
14089 |
|
14090 |
|
14091 |
|
14092 |
|
14093 |
|
14094 |
|
14095 |
|
14096 |
|
14097 |
|
14098 |
|
14099 |
|
14100 |
|
14101 | export declare function ɵɵsanitizeHtml(unsafeHtml: any): TrustedHTML | string;
|
14102 |
|
14103 |
|
14104 |
|
14105 |
|
14106 |
|
14107 |
|
14108 |
|
14109 |
|
14110 |
|
14111 |
|
14112 |
|
14113 |
|
14114 | export declare function ɵɵsanitizeResourceUrl(unsafeResourceUrl: any): TrustedScriptURL | string;
|
14115 |
|
14116 |
|
14117 |
|
14118 |
|
14119 |
|
14120 |
|
14121 |
|
14122 |
|
14123 |
|
14124 |
|
14125 |
|
14126 |
|
14127 |
|
14128 | export declare function ɵɵsanitizeScript(unsafeScript: any): TrustedScript | string;
|
14129 |
|
14130 |
|
14131 |
|
14132 |
|
14133 |
|
14134 |
|
14135 |
|
14136 |
|
14137 |
|
14138 |
|
14139 |
|
14140 |
|
14141 | export declare function ɵɵsanitizeStyle(unsafeStyle: any): string;
|
14142 |
|
14143 |
|
14144 |
|
14145 |
|
14146 |
|
14147 |
|
14148 |
|
14149 |
|
14150 |
|
14151 |
|
14152 |
|
14153 |
|
14154 |
|
14155 |
|
14156 |
|
14157 |
|
14158 |
|
14159 | export declare function ɵɵsanitizeUrl(unsafeUrl: any): string;
|
14160 |
|
14161 |
|
14162 |
|
14163 |
|
14164 |
|
14165 |
|
14166 |
|
14167 |
|
14168 |
|
14169 |
|
14170 |
|
14171 |
|
14172 |
|
14173 |
|
14174 |
|
14175 |
|
14176 | export declare function ɵɵsanitizeUrlOrResourceUrl(unsafeUrl: any, tag: string, prop: string): any;
|
14177 |
|
14178 |
|
14179 |
|
14180 |
|
14181 |
|
14182 |
|
14183 |
|
14184 |
|
14185 |
|
14186 |
|
14187 | export declare function ɵɵsetComponentScope(type: ɵComponentType<any>, directives: Type<any>[] | (() => Type<any>[]), pipes: Type<any>[] | (() => Type<any>[])): void;
|
14188 |
|
14189 |
|
14190 |
|
14191 |
|
14192 |
|
14193 |
|
14194 |
|
14195 |
|
14196 |
|
14197 |
|
14198 |
|
14199 | export declare function ɵɵsetNgModuleScope(type: any, scope: {
|
14200 |
|
14201 | declarations?: Type<any>[] | (() => Type<any>[]);
|
14202 |
|
14203 | imports?: Type<any>[] | (() => Type<any>[]);
|
14204 | |
14205 |
|
14206 |
|
14207 |
|
14208 | exports?: Type<any>[] | (() => Type<any>[]);
|
14209 | }): unknown;
|
14210 |
|
14211 |
|
14212 |
|
14213 |
|
14214 |
|
14215 |
|
14216 |
|
14217 |
|
14218 |
|
14219 |
|
14220 |
|
14221 | export declare function ɵɵStandaloneFeature(definition: ɵComponentDef<unknown>): void;
|
14222 |
|
14223 |
|
14224 |
|
14225 |
|
14226 |
|
14227 |
|
14228 |
|
14229 |
|
14230 |
|
14231 |
|
14232 |
|
14233 |
|
14234 |
|
14235 |
|
14236 |
|
14237 |
|
14238 |
|
14239 |
|
14240 |
|
14241 |
|
14242 | export declare function ɵɵstyleMap(styles: {
|
14243 | [styleName: string]: any;
|
14244 | } | string | undefined | null): void;
|
14245 |
|
14246 |
|
14247 |
|
14248 |
|
14249 |
|
14250 |
|
14251 |
|
14252 |
|
14253 |
|
14254 |
|
14255 |
|
14256 |
|
14257 |
|
14258 |
|
14259 |
|
14260 |
|
14261 |
|
14262 |
|
14263 |
|
14264 |
|
14265 |
|
14266 |
|
14267 |
|
14268 | export declare function ɵɵstyleMapInterpolate1(prefix: string, v0: any, suffix: string): void;
|
14269 |
|
14270 |
|
14271 |
|
14272 |
|
14273 |
|
14274 |
|
14275 |
|
14276 |
|
14277 |
|
14278 |
|
14279 |
|
14280 |
|
14281 |
|
14282 |
|
14283 |
|
14284 |
|
14285 |
|
14286 |
|
14287 |
|
14288 |
|
14289 |
|
14290 |
|
14291 |
|
14292 |
|
14293 | export declare function ɵɵstyleMapInterpolate2(prefix: string, v0: any, i0: string, v1: any, suffix: string): void;
|
14294 |
|
14295 |
|
14296 |
|
14297 |
|
14298 |
|
14299 |
|
14300 |
|
14301 |
|
14302 |
|
14303 |
|
14304 |
|
14305 |
|
14306 |
|
14307 |
|
14308 |
|
14309 |
|
14310 |
|
14311 |
|
14312 |
|
14313 |
|
14314 |
|
14315 |
|
14316 |
|
14317 |
|
14318 |
|
14319 |
|
14320 |
|
14321 | export declare function ɵɵstyleMapInterpolate3(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string): void;
|
14322 |
|
14323 |
|
14324 |
|
14325 |
|
14326 |
|
14327 |
|
14328 |
|
14329 |
|
14330 |
|
14331 |
|
14332 |
|
14333 |
|
14334 |
|
14335 |
|
14336 |
|
14337 |
|
14338 |
|
14339 |
|
14340 |
|
14341 |
|
14342 |
|
14343 |
|
14344 |
|
14345 |
|
14346 |
|
14347 |
|
14348 |
|
14349 |
|
14350 |
|
14351 | export declare function ɵɵstyleMapInterpolate4(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string): void;
|
14352 |
|
14353 |
|
14354 |
|
14355 |
|
14356 |
|
14357 |
|
14358 |
|
14359 |
|
14360 |
|
14361 |
|
14362 |
|
14363 |
|
14364 |
|
14365 |
|
14366 |
|
14367 |
|
14368 |
|
14369 |
|
14370 |
|
14371 |
|
14372 |
|
14373 |
|
14374 |
|
14375 |
|
14376 |
|
14377 |
|
14378 |
|
14379 |
|
14380 |
|
14381 |
|
14382 |
|
14383 | export declare function ɵɵstyleMapInterpolate5(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string): void;
|
14384 |
|
14385 |
|
14386 |
|
14387 |
|
14388 |
|
14389 |
|
14390 |
|
14391 |
|
14392 |
|
14393 |
|
14394 |
|
14395 |
|
14396 |
|
14397 |
|
14398 |
|
14399 |
|
14400 |
|
14401 |
|
14402 |
|
14403 |
|
14404 |
|
14405 |
|
14406 |
|
14407 |
|
14408 |
|
14409 |
|
14410 |
|
14411 |
|
14412 |
|
14413 |
|
14414 |
|
14415 |
|
14416 |
|
14417 |
|
14418 |
|
14419 | export declare function ɵɵstyleMapInterpolate6(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string): void;
|
14420 |
|
14421 |
|
14422 |
|
14423 |
|
14424 |
|
14425 |
|
14426 |
|
14427 |
|
14428 |
|
14429 |
|
14430 |
|
14431 |
|
14432 |
|
14433 |
|
14434 |
|
14435 |
|
14436 |
|
14437 |
|
14438 |
|
14439 |
|
14440 |
|
14441 |
|
14442 |
|
14443 |
|
14444 |
|
14445 |
|
14446 |
|
14447 |
|
14448 |
|
14449 |
|
14450 |
|
14451 |
|
14452 |
|
14453 |
|
14454 |
|
14455 |
|
14456 |
|
14457 | export declare function ɵɵstyleMapInterpolate7(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string): void;
|
14458 |
|
14459 |
|
14460 |
|
14461 |
|
14462 |
|
14463 |
|
14464 |
|
14465 |
|
14466 |
|
14467 |
|
14468 |
|
14469 |
|
14470 |
|
14471 |
|
14472 |
|
14473 |
|
14474 |
|
14475 |
|
14476 |
|
14477 |
|
14478 |
|
14479 |
|
14480 |
|
14481 |
|
14482 |
|
14483 |
|
14484 |
|
14485 |
|
14486 |
|
14487 |
|
14488 |
|
14489 |
|
14490 |
|
14491 |
|
14492 |
|
14493 |
|
14494 |
|
14495 |
|
14496 |
|
14497 | export declare function ɵɵstyleMapInterpolate8(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string): void;
|
14498 |
|
14499 |
|
14500 |
|
14501 |
|
14502 |
|
14503 |
|
14504 |
|
14505 |
|
14506 |
|
14507 |
|
14508 |
|
14509 |
|
14510 |
|
14511 |
|
14512 |
|
14513 |
|
14514 |
|
14515 |
|
14516 |
|
14517 |
|
14518 |
|
14519 |
|
14520 |
|
14521 |
|
14522 |
|
14523 | export declare function ɵɵstyleMapInterpolateV(values: any[]): void;
|
14524 |
|
14525 |
|
14526 |
|
14527 |
|
14528 |
|
14529 |
|
14530 |
|
14531 |
|
14532 |
|
14533 |
|
14534 |
|
14535 |
|
14536 |
|
14537 |
|
14538 |
|
14539 |
|
14540 |
|
14541 |
|
14542 |
|
14543 |
|
14544 | export declare function ɵɵstyleProp(prop: string, value: string | number | ɵSafeValue | undefined | null, suffix?: string | null): typeof ɵɵstyleProp;
|
14545 |
|
14546 |
|
14547 |
|
14548 |
|
14549 |
|
14550 |
|
14551 |
|
14552 |
|
14553 |
|
14554 |
|
14555 |
|
14556 |
|
14557 |
|
14558 |
|
14559 |
|
14560 |
|
14561 |
|
14562 |
|
14563 |
|
14564 |
|
14565 |
|
14566 |
|
14567 |
|
14568 |
|
14569 |
|
14570 |
|
14571 |
|
14572 |
|
14573 | export declare function ɵɵstylePropInterpolate1(prop: string, prefix: string, v0: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate1;
|
14574 |
|
14575 |
|
14576 |
|
14577 |
|
14578 |
|
14579 |
|
14580 |
|
14581 |
|
14582 |
|
14583 |
|
14584 |
|
14585 |
|
14586 |
|
14587 |
|
14588 |
|
14589 |
|
14590 |
|
14591 |
|
14592 |
|
14593 |
|
14594 |
|
14595 |
|
14596 |
|
14597 |
|
14598 |
|
14599 |
|
14600 |
|
14601 |
|
14602 |
|
14603 | export declare function ɵɵstylePropInterpolate2(prop: string, prefix: string, v0: any, i0: string, v1: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate2;
|
14604 |
|
14605 |
|
14606 |
|
14607 |
|
14608 |
|
14609 |
|
14610 |
|
14611 |
|
14612 |
|
14613 |
|
14614 |
|
14615 |
|
14616 |
|
14617 |
|
14618 |
|
14619 |
|
14620 |
|
14621 |
|
14622 |
|
14623 |
|
14624 |
|
14625 |
|
14626 |
|
14627 |
|
14628 |
|
14629 |
|
14630 |
|
14631 |
|
14632 |
|
14633 |
|
14634 |
|
14635 | export declare function ɵɵstylePropInterpolate3(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate3;
|
14636 |
|
14637 |
|
14638 |
|
14639 |
|
14640 |
|
14641 |
|
14642 |
|
14643 |
|
14644 |
|
14645 |
|
14646 |
|
14647 |
|
14648 |
|
14649 |
|
14650 |
|
14651 |
|
14652 |
|
14653 |
|
14654 |
|
14655 |
|
14656 |
|
14657 |
|
14658 |
|
14659 |
|
14660 |
|
14661 |
|
14662 |
|
14663 |
|
14664 |
|
14665 |
|
14666 |
|
14667 |
|
14668 |
|
14669 | export declare function ɵɵstylePropInterpolate4(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate4;
|
14670 |
|
14671 |
|
14672 |
|
14673 |
|
14674 |
|
14675 |
|
14676 |
|
14677 |
|
14678 |
|
14679 |
|
14680 |
|
14681 |
|
14682 |
|
14683 |
|
14684 |
|
14685 |
|
14686 |
|
14687 |
|
14688 |
|
14689 |
|
14690 |
|
14691 |
|
14692 |
|
14693 |
|
14694 |
|
14695 |
|
14696 |
|
14697 |
|
14698 |
|
14699 |
|
14700 |
|
14701 |
|
14702 |
|
14703 |
|
14704 |
|
14705 | export declare function ɵɵstylePropInterpolate5(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate5;
|
14706 |
|
14707 |
|
14708 |
|
14709 |
|
14710 |
|
14711 |
|
14712 |
|
14713 |
|
14714 |
|
14715 |
|
14716 |
|
14717 |
|
14718 |
|
14719 |
|
14720 |
|
14721 |
|
14722 |
|
14723 |
|
14724 |
|
14725 |
|
14726 |
|
14727 |
|
14728 |
|
14729 |
|
14730 |
|
14731 |
|
14732 |
|
14733 |
|
14734 |
|
14735 |
|
14736 |
|
14737 |
|
14738 |
|
14739 |
|
14740 |
|
14741 |
|
14742 |
|
14743 | export declare function ɵɵstylePropInterpolate6(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate6;
|
14744 |
|
14745 |
|
14746 |
|
14747 |
|
14748 |
|
14749 |
|
14750 |
|
14751 |
|
14752 |
|
14753 |
|
14754 |
|
14755 |
|
14756 |
|
14757 |
|
14758 |
|
14759 |
|
14760 |
|
14761 |
|
14762 |
|
14763 |
|
14764 |
|
14765 |
|
14766 |
|
14767 |
|
14768 |
|
14769 |
|
14770 |
|
14771 |
|
14772 |
|
14773 |
|
14774 |
|
14775 |
|
14776 |
|
14777 |
|
14778 |
|
14779 |
|
14780 |
|
14781 |
|
14782 |
|
14783 |
|
14784 | export declare function ɵɵstylePropInterpolate7(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate7;
|
14785 |
|
14786 |
|
14787 |
|
14788 |
|
14789 |
|
14790 |
|
14791 |
|
14792 |
|
14793 |
|
14794 |
|
14795 |
|
14796 |
|
14797 |
|
14798 |
|
14799 |
|
14800 |
|
14801 |
|
14802 |
|
14803 |
|
14804 |
|
14805 |
|
14806 |
|
14807 |
|
14808 |
|
14809 |
|
14810 |
|
14811 |
|
14812 |
|
14813 |
|
14814 |
|
14815 |
|
14816 |
|
14817 |
|
14818 |
|
14819 |
|
14820 |
|
14821 |
|
14822 |
|
14823 |
|
14824 |
|
14825 |
|
14826 |
|
14827 | export declare function ɵɵstylePropInterpolate8(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate8;
|
14828 |
|
14829 |
|
14830 |
|
14831 |
|
14832 |
|
14833 |
|
14834 |
|
14835 |
|
14836 |
|
14837 |
|
14838 |
|
14839 |
|
14840 |
|
14841 |
|
14842 |
|
14843 |
|
14844 |
|
14845 |
|
14846 |
|
14847 |
|
14848 |
|
14849 |
|
14850 |
|
14851 |
|
14852 |
|
14853 |
|
14854 |
|
14855 |
|
14856 |
|
14857 |
|
14858 |
|
14859 | export declare function ɵɵstylePropInterpolateV(prop: string, values: any[], valueSuffix?: string | null): typeof ɵɵstylePropInterpolateV;
|
14860 |
|
14861 |
|
14862 |
|
14863 |
|
14864 |
|
14865 |
|
14866 |
|
14867 |
|
14868 |
|
14869 |
|
14870 |
|
14871 |
|
14872 |
|
14873 |
|
14874 |
|
14875 |
|
14876 |
|
14877 |
|
14878 |
|
14879 |
|
14880 |
|
14881 |
|
14882 | export declare function ɵɵsyntheticHostListener(eventName: string, listenerFn: (e?: any) => any): typeof ɵɵsyntheticHostListener;
|
14883 |
|
14884 |
|
14885 |
|
14886 |
|
14887 |
|
14888 |
|
14889 |
|
14890 |
|
14891 |
|
14892 |
|
14893 |
|
14894 |
|
14895 |
|
14896 |
|
14897 |
|
14898 |
|
14899 |
|
14900 |
|
14901 |
|
14902 |
|
14903 |
|
14904 |
|
14905 | export declare function ɵɵsyntheticHostProperty<T>(propName: string, value: T | ɵNO_CHANGE, sanitizer?: SanitizerFn | null): typeof ɵɵsyntheticHostProperty;
|
14906 |
|
14907 |
|
14908 |
|
14909 |
|
14910 |
|
14911 |
|
14912 |
|
14913 |
|
14914 |
|
14915 |
|
14916 |
|
14917 |
|
14918 |
|
14919 |
|
14920 |
|
14921 |
|
14922 |
|
14923 |
|
14924 |
|
14925 |
|
14926 | export declare function ɵɵtemplate(index: number, templateFn: ComponentTemplate<any> | null, decls: number, vars: number, tagName?: string | null, attrsIndex?: number | null, localRefsIndex?: number | null, localRefExtractor?: LocalRefExtractor): void;
|
14927 |
|
14928 |
|
14929 |
|
14930 |
|
14931 |
|
14932 |
|
14933 |
|
14934 | export declare function ɵɵtemplateRefExtractor(tNode: TNode, lView: LView): TemplateRef<any> | null;
|
14935 |
|
14936 |
|
14937 |
|
14938 |
|
14939 |
|
14940 |
|
14941 |
|
14942 |
|
14943 |
|
14944 | export declare function ɵɵtext(index: number, value?: string): void;
|
14945 |
|
14946 |
|
14947 |
|
14948 |
|
14949 |
|
14950 |
|
14951 |
|
14952 |
|
14953 |
|
14954 |
|
14955 |
|
14956 |
|
14957 |
|
14958 |
|
14959 |
|
14960 |
|
14961 |
|
14962 |
|
14963 |
|
14964 |
|
14965 |
|
14966 | export declare function ɵɵtextInterpolate(v0: any): typeof ɵɵtextInterpolate;
|
14967 |
|
14968 |
|
14969 |
|
14970 |
|
14971 |
|
14972 |
|
14973 |
|
14974 |
|
14975 |
|
14976 |
|
14977 |
|
14978 |
|
14979 |
|
14980 |
|
14981 |
|
14982 |
|
14983 |
|
14984 |
|
14985 |
|
14986 |
|
14987 | export declare function ɵɵtextInterpolate1(prefix: string, v0: any, suffix: string): typeof ɵɵtextInterpolate1;
|
14988 |
|
14989 |
|
14990 |
|
14991 |
|
14992 |
|
14993 |
|
14994 |
|
14995 |
|
14996 |
|
14997 |
|
14998 |
|
14999 |
|
15000 |
|
15001 |
|
15002 |
|
15003 |
|
15004 |
|
15005 |
|
15006 |
|
15007 |
|
15008 | export declare function ɵɵtextInterpolate2(prefix: string, v0: any, i0: string, v1: any, suffix: string): typeof ɵɵtextInterpolate2;
|
15009 |
|
15010 |
|
15011 |
|
15012 |
|
15013 |
|
15014 |
|
15015 |
|
15016 |
|
15017 |
|
15018 |
|
15019 |
|
15020 |
|
15021 |
|
15022 |
|
15023 |
|
15024 |
|
15025 |
|
15026 |
|
15027 |
|
15028 |
|
15029 |
|
15030 | export declare function ɵɵtextInterpolate3(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string): typeof ɵɵtextInterpolate3;
|
15031 |
|
15032 |
|
15033 |
|
15034 |
|
15035 |
|
15036 |
|
15037 |
|
15038 |
|
15039 |
|
15040 |
|
15041 |
|
15042 |
|
15043 |
|
15044 |
|
15045 |
|
15046 |
|
15047 |
|
15048 |
|
15049 |
|
15050 |
|
15051 |
|
15052 | export declare function ɵɵtextInterpolate4(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string): typeof ɵɵtextInterpolate4;
|
15053 |
|
15054 |
|
15055 |
|
15056 |
|
15057 |
|
15058 |
|
15059 |
|
15060 |
|
15061 |
|
15062 |
|
15063 |
|
15064 |
|
15065 |
|
15066 |
|
15067 |
|
15068 |
|
15069 |
|
15070 |
|
15071 |
|
15072 |
|
15073 |
|
15074 | export declare function ɵɵtextInterpolate5(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string): typeof ɵɵtextInterpolate5;
|
15075 |
|
15076 |
|
15077 |
|
15078 |
|
15079 |
|
15080 |
|
15081 |
|
15082 |
|
15083 |
|
15084 |
|
15085 |
|
15086 |
|
15087 |
|
15088 |
|
15089 |
|
15090 |
|
15091 |
|
15092 |
|
15093 |
|
15094 |
|
15095 |
|
15096 |
|
15097 |
|
15098 | export declare function ɵɵtextInterpolate6(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string): typeof ɵɵtextInterpolate6;
|
15099 |
|
15100 |
|
15101 |
|
15102 |
|
15103 |
|
15104 |
|
15105 |
|
15106 |
|
15107 |
|
15108 |
|
15109 |
|
15110 |
|
15111 |
|
15112 |
|
15113 |
|
15114 |
|
15115 |
|
15116 |
|
15117 |
|
15118 |
|
15119 |
|
15120 | export declare function ɵɵtextInterpolate7(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string): typeof ɵɵtextInterpolate7;
|
15121 |
|
15122 |
|
15123 |
|
15124 |
|
15125 |
|
15126 |
|
15127 |
|
15128 |
|
15129 |
|
15130 |
|
15131 |
|
15132 |
|
15133 |
|
15134 |
|
15135 |
|
15136 |
|
15137 |
|
15138 |
|
15139 |
|
15140 |
|
15141 |
|
15142 | export declare function ɵɵtextInterpolate8(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string): typeof ɵɵtextInterpolate8;
|
15143 |
|
15144 |
|
15145 |
|
15146 |
|
15147 |
|
15148 |
|
15149 |
|
15150 |
|
15151 |
|
15152 |
|
15153 |
|
15154 |
|
15155 |
|
15156 |
|
15157 |
|
15158 |
|
15159 |
|
15160 |
|
15161 |
|
15162 |
|
15163 |
|
15164 |
|
15165 |
|
15166 |
|
15167 |
|
15168 | export declare function ɵɵtextInterpolateV(values: any[]): typeof ɵɵtextInterpolateV;
|
15169 |
|
15170 |
|
15171 |
|
15172 |
|
15173 |
|
15174 |
|
15175 |
|
15176 |
|
15177 |
|
15178 |
|
15179 |
|
15180 |
|
15181 |
|
15182 |
|
15183 | export declare function ɵɵtrustConstantHtml(html: TemplateStringsArray): TrustedHTML | string;
|
15184 |
|
15185 |
|
15186 |
|
15187 |
|
15188 |
|
15189 |
|
15190 |
|
15191 |
|
15192 |
|
15193 |
|
15194 |
|
15195 |
|
15196 |
|
15197 |
|
15198 | export declare function ɵɵtrustConstantResourceUrl(url: TemplateStringsArray): TrustedScriptURL | string;
|
15199 |
|
15200 |
|
15201 |
|
15202 |
|
15203 |
|
15204 |
|
15205 |
|
15206 |
|
15207 |
|
15208 |
|
15209 |
|
15210 | export declare function ɵɵvalidateIframeAttribute(attrValue: any, tagName: string, attrName: string): any;
|
15211 |
|
15212 |
|
15213 |
|
15214 |
|
15215 |
|
15216 |
|
15217 |
|
15218 |
|
15219 |
|
15220 |
|
15221 | export declare function ɵɵviewQuery<T>(predicate: ProviderToken<unknown> | string[], flags: QueryFlags, read?: any): void;
|
15222 |
|
15223 | export { }
|