@angular/core 17.0.0-next.7 → 17.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/primitives/signals/index.mjs +15 -0
- package/esm2022/primitives/signals/src/computed.mjs +92 -0
- package/esm2022/primitives/signals/src/equality.mjs +14 -0
- package/esm2022/primitives/signals/src/errors.mjs +18 -0
- package/esm2022/primitives/signals/src/graph.mjs +291 -0
- package/esm2022/primitives/signals/src/signal.mjs +78 -0
- package/esm2022/primitives/signals/src/watch.mjs +82 -0
- package/esm2022/primitives/signals/src/weak_ref.mjs +11 -0
- package/esm2022/rxjs-interop/src/to_signal.mjs +45 -14
- package/esm2022/src/application_init.mjs +50 -2
- package/esm2022/src/application_ref.mjs +8 -2
- package/esm2022/src/application_tokens.mjs +16 -1
- package/esm2022/src/core_private_export.mjs +7 -6
- package/esm2022/src/core_reactivity_export_internal.mjs +6 -2
- package/esm2022/src/core_render3_private_export.mjs +3 -3
- package/esm2022/src/debug/debug_node.mjs +5 -9
- package/esm2022/src/defer/cleanup.mjs +70 -0
- package/esm2022/src/defer/discovery.mjs +47 -0
- package/esm2022/src/defer/dom_triggers.mjs +256 -0
- package/esm2022/src/defer/idle_scheduler.mjs +109 -0
- package/esm2022/src/defer/instructions.mjs +641 -0
- package/esm2022/src/defer/interfaces.mjs +79 -0
- package/esm2022/src/defer/timer_scheduler.mjs +192 -0
- package/esm2022/src/defer/utils.mjs +134 -0
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration/api.mjs +1 -2
- package/esm2022/src/hydration/utils.mjs +2 -2
- package/esm2022/src/image_performance_warning.mjs +154 -0
- package/esm2022/src/linker/compiler.mjs +1 -1
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render/api.mjs +1 -1
- package/esm2022/src/render3/after_render_hooks.mjs +35 -1
- package/esm2022/src/render3/assert.mjs +16 -1
- package/esm2022/src/render3/component_ref.mjs +12 -3
- package/esm2022/src/render3/debug/framework_injector_profiler.mjs +33 -4
- package/esm2022/src/render3/debug/injector_profiler.mjs +1 -1
- package/esm2022/src/render3/debug/set_debug_info.mjs +20 -0
- package/esm2022/src/render3/definition.mjs +2 -1
- package/esm2022/src/render3/deps_tracker/api.mjs +1 -1
- package/esm2022/src/render3/deps_tracker/deps_tracker.mjs +13 -2
- package/esm2022/src/render3/features/host_directives_feature.mjs +3 -8
- package/esm2022/src/render3/hooks.mjs +5 -5
- package/esm2022/src/render3/index.mjs +4 -2
- package/esm2022/src/render3/instructions/all.mjs +2 -2
- package/esm2022/src/render3/instructions/change_detection.mjs +31 -14
- package/esm2022/src/render3/instructions/control_flow.mjs +42 -23
- package/esm2022/src/render3/instructions/shared.mjs +5 -4
- package/esm2022/src/render3/interfaces/container.mjs +5 -7
- package/esm2022/src/render3/interfaces/definition.mjs +2 -4
- package/esm2022/src/render3/interfaces/i18n.mjs +1 -4
- package/esm2022/src/render3/interfaces/injector.mjs +1 -4
- package/esm2022/src/render3/interfaces/node.mjs +1 -4
- package/esm2022/src/render3/interfaces/projection.mjs +2 -4
- package/esm2022/src/render3/interfaces/query.mjs +2 -4
- package/esm2022/src/render3/interfaces/renderer.mjs +2 -4
- package/esm2022/src/render3/interfaces/renderer_dom.mjs +2 -4
- package/esm2022/src/render3/interfaces/view.mjs +5 -7
- package/esm2022/src/render3/jit/environment.mjs +3 -1
- package/esm2022/src/render3/list_reconciliation.mjs +58 -34
- package/esm2022/src/render3/node_manipulation.mjs +4 -6
- package/esm2022/src/render3/reactive_lview_consumer.mjs +3 -8
- package/esm2022/src/render3/reactivity/api.mjs +15 -0
- package/esm2022/src/render3/reactivity/asserts.mjs +26 -0
- package/esm2022/src/render3/reactivity/computed.mjs +19 -0
- package/esm2022/src/render3/reactivity/effect.mjs +7 -6
- package/esm2022/src/render3/reactivity/signal.mjs +32 -0
- package/esm2022/src/render3/reactivity/untracked.mjs +24 -0
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +43 -14
- package/esm2022/src/render3/util/stringify_utils.mjs +28 -1
- package/esm2022/src/render3/util/view_utils.mjs +41 -25
- package/esm2022/src/render3/view_ref.mjs +3 -2
- package/esm2022/src/util/stringify.mjs +16 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +2881 -2270
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +539 -0
- package/fesm2022/primitives/signals.mjs.map +1 -0
- package/fesm2022/rxjs-interop.mjs +45 -14
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +204 -168
- package/package.json +7 -1
- package/primitives/signals/index.d.ts +281 -0
- package/rxjs-interop/index.d.ts +15 -101
- package/schematics/collection.json +12 -2
- package/schematics/migrations/block-template-entities/bundle.js +551 -197
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/migrations/compiler-options/bundle.js +582 -0
- package/schematics/migrations/compiler-options/bundle.js.map +7 -0
- package/schematics/migrations/transfer-state/bundle.js +592 -0
- package/schematics/migrations/transfer-state/bundle.js.map +7 -0
- package/schematics/migrations.json +10 -0
- package/schematics/ng-generate/control-flow-migration/bundle.js +24309 -0
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +7 -0
- package/schematics/ng-generate/control-flow-migration/schema.json +7 -0
- package/schematics/ng-generate/standalone-migration/bundle.js +1496 -924
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2022/src/render3/instructions/defer.mjs +0 -1091
- package/esm2022/src/render3/instructions/defer_events.mjs +0 -164
- package/esm2022/src/render3/interfaces/defer.mjs +0 -72
- package/esm2022/src/signals/index.mjs +0 -16
- package/esm2022/src/signals/src/api.mjs +0 -39
- package/esm2022/src/signals/src/computed.mjs +0 -95
- package/esm2022/src/signals/src/errors.mjs +0 -18
- package/esm2022/src/signals/src/graph.mjs +0 -280
- package/esm2022/src/signals/src/signal.mjs +0 -92
- package/esm2022/src/signals/src/untracked.mjs +0 -26
- package/esm2022/src/signals/src/watch.mjs +0 -81
- package/esm2022/src/signals/src/weak_ref.mjs +0 -11
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-
|
|
2
|
+
* @license Angular v17.0.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { BehaviorSubject } from 'rxjs';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
10
|
+
import { ReactiveNode } from '@angular/core/primitives/signals';
|
|
11
|
+
import { SIGNAL } from '@angular/core/primitives/signals';
|
|
10
12
|
import { Subject } from 'rxjs';
|
|
11
13
|
import { Subscribable } from 'rxjs';
|
|
12
14
|
import { Subscription } from 'rxjs';
|
|
@@ -398,7 +400,7 @@ export declare const APP_ID: InjectionToken<string>;
|
|
|
398
400
|
*
|
|
399
401
|
* The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token
|
|
400
402
|
* and a function returning a promise.
|
|
401
|
-
*
|
|
403
|
+
* ### Example with NgModule-based application
|
|
402
404
|
* ```
|
|
403
405
|
* function initializeApp(): Promise<any> {
|
|
404
406
|
* return new Promise((resolve, reject) => {
|
|
@@ -420,11 +422,38 @@ export declare const APP_ID: InjectionToken<string>;
|
|
|
420
422
|
* export class AppModule {}
|
|
421
423
|
* ```
|
|
422
424
|
*
|
|
425
|
+
* ### Example with standalone application
|
|
426
|
+
* ```
|
|
427
|
+
* export function initializeApp(http: HttpClient) {
|
|
428
|
+
* return (): Promise<any> =>
|
|
429
|
+
* firstValueFrom(
|
|
430
|
+
* http
|
|
431
|
+
* .get("https://someUrl.com/api/user")
|
|
432
|
+
* .pipe(tap(user => { ... }))
|
|
433
|
+
* );
|
|
434
|
+
* }
|
|
435
|
+
*
|
|
436
|
+
* bootstrapApplication(App, {
|
|
437
|
+
* providers: [
|
|
438
|
+
* provideHttpClient(),
|
|
439
|
+
* {
|
|
440
|
+
* provide: APP_INITIALIZER,
|
|
441
|
+
* useFactory: initializeApp,
|
|
442
|
+
* multi: true,
|
|
443
|
+
* deps: [HttpClient],
|
|
444
|
+
* },
|
|
445
|
+
* ],
|
|
446
|
+
* });
|
|
447
|
+
|
|
448
|
+
* ```
|
|
449
|
+
*
|
|
450
|
+
*
|
|
423
451
|
* It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function
|
|
424
452
|
* returning an observable, see an example below. Note: the `HttpClient` in this example is used for
|
|
425
453
|
* demo purposes to illustrate how the factory function can work with other providers available
|
|
426
454
|
* through DI.
|
|
427
455
|
*
|
|
456
|
+
* ### Example with NgModule-based application
|
|
428
457
|
* ```
|
|
429
458
|
* function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
|
|
430
459
|
* return () => httpClient.get("https://someUrl.com/api/user")
|
|
@@ -447,6 +476,27 @@ export declare const APP_ID: InjectionToken<string>;
|
|
|
447
476
|
* export class AppModule {}
|
|
448
477
|
* ```
|
|
449
478
|
*
|
|
479
|
+
* ### Example with standalone application
|
|
480
|
+
*
|
|
481
|
+
* function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
|
|
482
|
+
* return () => httpClient.get("https://someUrl.com/api/user")
|
|
483
|
+
* .pipe(
|
|
484
|
+
* tap(user => { ... })
|
|
485
|
+
* );
|
|
486
|
+
* }
|
|
487
|
+
*
|
|
488
|
+
* bootstrapApplication(App, {
|
|
489
|
+
* providers: [
|
|
490
|
+
* provideHttpClient(),
|
|
491
|
+
* {
|
|
492
|
+
* provide: APP_INITIALIZER,
|
|
493
|
+
* useFactory: initializeApp,
|
|
494
|
+
* multi: true,
|
|
495
|
+
* deps: [HttpClient],
|
|
496
|
+
* },
|
|
497
|
+
* ],
|
|
498
|
+
* });
|
|
499
|
+
*
|
|
450
500
|
* @publicApi
|
|
451
501
|
*/
|
|
452
502
|
export declare const APP_INITIALIZER: InjectionToken<readonly (() => Observable<unknown> | Promise<unknown> | void)[]>;
|
|
@@ -752,6 +802,17 @@ export declare function asNativeElements(debugEls: DebugElement[]): any;
|
|
|
752
802
|
*/
|
|
753
803
|
export declare function assertInInjectionContext(debugFn: Function): void;
|
|
754
804
|
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Asserts that the current stack frame is not within a reactive context. Useful
|
|
808
|
+
* to disallow certain code from running inside a reactive context (see {@link toSignal}).
|
|
809
|
+
*
|
|
810
|
+
* @param debugFn a reference to the function making the assertion (used for the error message).
|
|
811
|
+
*
|
|
812
|
+
* @publicApi
|
|
813
|
+
*/
|
|
814
|
+
export declare function assertNotInReactiveContext(debugFn: Function, extraContext?: string): void;
|
|
815
|
+
|
|
755
816
|
/**
|
|
756
817
|
* Checks that there is currently a platform that contains the given token as a provider.
|
|
757
818
|
*
|
|
@@ -1014,6 +1075,13 @@ declare const CHILD_HEAD = 12;
|
|
|
1014
1075
|
|
|
1015
1076
|
declare const CHILD_TAIL = 13;
|
|
1016
1077
|
|
|
1078
|
+
declare interface ClassDebugInfo {
|
|
1079
|
+
className: string;
|
|
1080
|
+
filePath?: string;
|
|
1081
|
+
lineNumber?: number;
|
|
1082
|
+
forbidOrphanRendering?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1017
1085
|
/**
|
|
1018
1086
|
* Configures the `Injector` to return an instance of `useClass` for a token.
|
|
1019
1087
|
* @see ["Dependency Injection Guide"](guide/dependency-injection).
|
|
@@ -1141,16 +1209,8 @@ export declare abstract class CompilerFactory {
|
|
|
1141
1209
|
* @publicApi
|
|
1142
1210
|
*/
|
|
1143
1211
|
export declare type CompilerOptions = {
|
|
1144
|
-
/**
|
|
1145
|
-
* @deprecated not used at all in Ivy, providing this config option has no effect.
|
|
1146
|
-
*/
|
|
1147
|
-
useJit?: boolean;
|
|
1148
1212
|
defaultEncapsulation?: ViewEncapsulation;
|
|
1149
1213
|
providers?: StaticProvider[];
|
|
1150
|
-
/**
|
|
1151
|
-
* @deprecated not used at all in Ivy, providing this config option has no effect.
|
|
1152
|
-
*/
|
|
1153
|
-
missingTranslation?: MissingTranslationStrategy;
|
|
1154
1214
|
preserveWhitespaces?: boolean;
|
|
1155
1215
|
};
|
|
1156
1216
|
|
|
@@ -1736,8 +1796,6 @@ declare type ComponentTemplate<T> = {
|
|
|
1736
1796
|
|
|
1737
1797
|
/**
|
|
1738
1798
|
* Create a computed `Signal` which derives a reactive value from an expression.
|
|
1739
|
-
*
|
|
1740
|
-
* @developerPreview
|
|
1741
1799
|
*/
|
|
1742
1800
|
export declare function computed<T>(computation: () => T, options?: CreateComputedOptions<T>): Signal<T>;
|
|
1743
1801
|
|
|
@@ -2059,8 +2117,6 @@ export declare function createComponent<C>(component: Type<C>, options: {
|
|
|
2059
2117
|
|
|
2060
2118
|
/**
|
|
2061
2119
|
* Options passed to the `computed` creation function.
|
|
2062
|
-
*
|
|
2063
|
-
* @developerPreview
|
|
2064
2120
|
*/
|
|
2065
2121
|
export declare interface CreateComputedOptions<T> {
|
|
2066
2122
|
/**
|
|
@@ -2071,8 +2127,6 @@ export declare interface CreateComputedOptions<T> {
|
|
|
2071
2127
|
|
|
2072
2128
|
/**
|
|
2073
2129
|
* Options passed to the `effect` function.
|
|
2074
|
-
*
|
|
2075
|
-
* @developerPreview
|
|
2076
2130
|
*/
|
|
2077
2131
|
export declare interface CreateEffectOptions {
|
|
2078
2132
|
/**
|
|
@@ -2156,8 +2210,6 @@ export declare function createPlatformFactory(parentPlatformFactory: ((extraProv
|
|
|
2156
2210
|
|
|
2157
2211
|
/**
|
|
2158
2212
|
* Options passed to the `signal` creation function.
|
|
2159
|
-
*
|
|
2160
|
-
* @developerPreview
|
|
2161
2213
|
*/
|
|
2162
2214
|
export declare interface CreateSignalOptions<T> {
|
|
2163
2215
|
/**
|
|
@@ -2288,10 +2340,6 @@ export declare class DebugElement extends DebugNode {
|
|
|
2288
2340
|
};
|
|
2289
2341
|
/**
|
|
2290
2342
|
* The inline styles of the DOM element.
|
|
2291
|
-
*
|
|
2292
|
-
* Will be `null` if there is no `style` property on the underlying DOM element.
|
|
2293
|
-
*
|
|
2294
|
-
* @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)
|
|
2295
2343
|
*/
|
|
2296
2344
|
get styles(): {
|
|
2297
2345
|
[key: string]: string | null;
|
|
@@ -2504,7 +2552,7 @@ declare enum DeferDependenciesLoadingState {
|
|
|
2504
2552
|
declare type DeferredLoadingBlockConfig = [minimumTime: number | null, afterTime: number | null];
|
|
2505
2553
|
|
|
2506
2554
|
/** Configuration object for a placeholder block as it is stored in the component constants. */
|
|
2507
|
-
declare type DeferredPlaceholderBlockConfig = [
|
|
2555
|
+
declare type DeferredPlaceholderBlockConfig = [minimumTime: number | null];
|
|
2508
2556
|
|
|
2509
2557
|
/**
|
|
2510
2558
|
* @deprecated in v8, delete after v10. This API should be used only by generated code, and that
|
|
@@ -2604,6 +2652,8 @@ declare class DepsTracker implements DepsTrackerApi {
|
|
|
2604
2652
|
/** @override */
|
|
2605
2653
|
getStandaloneComponentScope(type: ɵComponentType<any>, rawImports?: RawScopeInfoFromDecorator[]): StandaloneComponentScope;
|
|
2606
2654
|
private computeStandaloneComponentScope;
|
|
2655
|
+
/** @override */
|
|
2656
|
+
isOrphanComponent(cmp: Type<any>): boolean;
|
|
2607
2657
|
}
|
|
2608
2658
|
|
|
2609
2659
|
/**
|
|
@@ -2659,10 +2709,13 @@ declare interface DepsTrackerApi {
|
|
|
2659
2709
|
* `clearScopeCacheFor` method.
|
|
2660
2710
|
*/
|
|
2661
2711
|
getStandaloneComponentScope(type: ɵComponentType<any>, rawImports: (Type<any> | (() => Type<any>))[]): StandaloneComponentScope;
|
|
2712
|
+
/**
|
|
2713
|
+
* Checks if the NgModule declaring the component is not loaded into the browser yet. Always
|
|
2714
|
+
* returns false for standalone components.
|
|
2715
|
+
*/
|
|
2716
|
+
isOrphanComponent(cmp: ɵComponentType<any>): boolean;
|
|
2662
2717
|
}
|
|
2663
2718
|
|
|
2664
|
-
declare const DESCENDANT_VIEWS_TO_REFRESH = 5;
|
|
2665
|
-
|
|
2666
2719
|
/**
|
|
2667
2720
|
* Array of destroy hooks that should be executed for a view and their directive indices.
|
|
2668
2721
|
*
|
|
@@ -2916,7 +2969,7 @@ export declare interface Directive {
|
|
|
2916
2969
|
* If a binding changes, Angular updates the directive's host element.
|
|
2917
2970
|
*
|
|
2918
2971
|
* When the key is a property of the host element, the property value is
|
|
2919
|
-
*
|
|
2972
|
+
* propagated to the specified DOM property.
|
|
2920
2973
|
*
|
|
2921
2974
|
* When the key is a static attribute in the DOM, the attribute value
|
|
2922
2975
|
* is propagated to the specified property in the host element.
|
|
@@ -3305,8 +3358,6 @@ export declare interface DoCheck {
|
|
|
3305
3358
|
|
|
3306
3359
|
/**
|
|
3307
3360
|
* Create a global `Effect` for the given reactive function.
|
|
3308
|
-
*
|
|
3309
|
-
* @developerPreview
|
|
3310
3361
|
*/
|
|
3311
3362
|
export declare function effect(effectFn: (onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions): EffectRef;
|
|
3312
3363
|
|
|
@@ -3314,8 +3365,6 @@ export declare function effect(effectFn: (onCleanup: EffectCleanupRegisterFn) =>
|
|
|
3314
3365
|
* An effect can, optionally, register a cleanup function. If registered, the cleanup is executed
|
|
3315
3366
|
* before the next effect run. The cleanup function makes it possible to "cancel" any work that the
|
|
3316
3367
|
* previous effect run might have started.
|
|
3317
|
-
*
|
|
3318
|
-
* @developerPreview
|
|
3319
3368
|
*/
|
|
3320
3369
|
export declare type EffectCleanupFn = () => void;
|
|
3321
3370
|
|
|
@@ -3326,8 +3375,6 @@ declare type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void;
|
|
|
3326
3375
|
|
|
3327
3376
|
/**
|
|
3328
3377
|
* A global reactive effect, which can be manually destroyed.
|
|
3329
|
-
*
|
|
3330
|
-
* @developerPreview
|
|
3331
3378
|
*/
|
|
3332
3379
|
export declare interface EffectRef {
|
|
3333
3380
|
/**
|
|
@@ -3884,6 +3931,8 @@ declare type GlobalTargetName = 'document' | 'window' | 'body';
|
|
|
3884
3931
|
|
|
3885
3932
|
declare type GlobalTargetResolver = (element: any) => EventTarget;
|
|
3886
3933
|
|
|
3934
|
+
declare const HAS_CHILD_VIEWS_TO_REFRESH = 6;
|
|
3935
|
+
|
|
3887
3936
|
/**
|
|
3888
3937
|
* Flag to signify that this `LContainer` may have transplanted views which need to be change
|
|
3889
3938
|
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
|
@@ -4234,7 +4283,7 @@ export declare interface HostListenerDecorator {
|
|
|
4234
4283
|
new (eventName: string, args?: string[]): any;
|
|
4235
4284
|
}
|
|
4236
4285
|
|
|
4237
|
-
declare const HYDRATION =
|
|
4286
|
+
declare const HYDRATION = 6;
|
|
4238
4287
|
|
|
4239
4288
|
declare namespace i0 {
|
|
4240
4289
|
export {
|
|
@@ -5086,6 +5135,18 @@ declare type InputTransformFunction_2 = any;
|
|
|
5086
5135
|
*/
|
|
5087
5136
|
declare type InsertBeforeIndex = null | number | number[];
|
|
5088
5137
|
|
|
5138
|
+
/**
|
|
5139
|
+
* Options passed to `internalAfterNextRender`.
|
|
5140
|
+
*/
|
|
5141
|
+
declare interface InternalAfterNextRenderOptions {
|
|
5142
|
+
/**
|
|
5143
|
+
* The `Injector` to use during creation.
|
|
5144
|
+
*
|
|
5145
|
+
* If this is not provided, the current injection context will be used instead (via `inject`).
|
|
5146
|
+
*/
|
|
5147
|
+
injector?: Injector;
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5089
5150
|
declare interface InternalNgModuleRef<T> extends NgModuleRef<T> {
|
|
5090
5151
|
_bootstrapComponents: Type<any>[];
|
|
5091
5152
|
}
|
|
@@ -5109,8 +5170,6 @@ export declare function isDevMode(): boolean;
|
|
|
5109
5170
|
|
|
5110
5171
|
/**
|
|
5111
5172
|
* Checks if the given `value` is a reactive `Signal`.
|
|
5112
|
-
*
|
|
5113
|
-
* @developerPreview
|
|
5114
5173
|
*/
|
|
5115
5174
|
export declare function isSignal(value: unknown): value is Signal<unknown>;
|
|
5116
5175
|
|
|
@@ -5449,12 +5508,10 @@ declare interface LContainer extends Array<any> {
|
|
|
5449
5508
|
*/
|
|
5450
5509
|
[NEXT]: LView | LContainer | null;
|
|
5451
5510
|
/**
|
|
5452
|
-
*
|
|
5453
|
-
*
|
|
5454
|
-
* change detection we should still descend to find those children to refresh, even if the parents
|
|
5455
|
-
* are not `Dirty`/`CheckAlways`.
|
|
5511
|
+
* Indicates that this LContainer has a view underneath it that needs to be refreshed during
|
|
5512
|
+
* change detection.
|
|
5456
5513
|
*/
|
|
5457
|
-
[
|
|
5514
|
+
[HAS_CHILD_VIEWS_TO_REFRESH]: boolean;
|
|
5458
5515
|
/**
|
|
5459
5516
|
* A collection of views created based on the underlying `<ng-template>` element but inserted into
|
|
5460
5517
|
* a different `LContainer`. We need to track views created from a given declaration point since
|
|
@@ -5801,13 +5858,6 @@ declare interface LView<T = unknown> extends Array<any> {
|
|
|
5801
5858
|
* More flags for this view. See PreOrderHookFlags for more info.
|
|
5802
5859
|
*/
|
|
5803
5860
|
[PREORDER_HOOK_FLAGS]: PreOrderHookFlags;
|
|
5804
|
-
/**
|
|
5805
|
-
* The number of direct transplanted views which need a refresh or have descendants themselves
|
|
5806
|
-
* that need a refresh but have not marked their ancestors as Dirty. This tells us that during
|
|
5807
|
-
* change detection we should still descend to find those children to refresh, even if the parents
|
|
5808
|
-
* are not `Dirty`/`CheckAlways`.
|
|
5809
|
-
*/
|
|
5810
|
-
[DESCENDANT_VIEWS_TO_REFRESH]: number;
|
|
5811
5861
|
/** Unique ID of the view. Used for `__ngContext__` lookups in the `LView` registry. */
|
|
5812
5862
|
[ID]: number;
|
|
5813
5863
|
/**
|
|
@@ -5889,23 +5939,29 @@ declare const enum LViewFlags {
|
|
|
5889
5939
|
/**
|
|
5890
5940
|
* Whether this moved LView was needs to be refreshed. Similar to the Dirty flag, but used for
|
|
5891
5941
|
* transplanted and signal views where the parent/ancestor views are not marked dirty as well.
|
|
5892
|
-
* i.e. "Refresh just this view". Used in conjunction with the
|
|
5893
|
-
*
|
|
5942
|
+
* i.e. "Refresh just this view". Used in conjunction with the HAS_CHILD_VIEWS_TO_REFRESH
|
|
5943
|
+
* flag.
|
|
5894
5944
|
*/
|
|
5895
5945
|
RefreshView = 1024,
|
|
5896
5946
|
/** Indicates that the view **or any of its ancestors** have an embedded view injector. */
|
|
5897
5947
|
HasEmbeddedViewInjector = 2048,
|
|
5898
5948
|
/** Indicates that the view was created with `signals: true`. */
|
|
5899
5949
|
SignalView = 4096,
|
|
5950
|
+
/**
|
|
5951
|
+
* Indicates that this LView has a view underneath it that needs to be refreshed during change
|
|
5952
|
+
* detection. This flag indicates that even if this view is not dirty itself, we still need to
|
|
5953
|
+
* traverse its children during change detection.
|
|
5954
|
+
*/
|
|
5955
|
+
HasChildViewsToRefresh = 8192,
|
|
5900
5956
|
/**
|
|
5901
5957
|
* This is the count of the bits the 1 was shifted above (base 10)
|
|
5902
5958
|
*/
|
|
5903
|
-
IndexWithinInitPhaseShift =
|
|
5959
|
+
IndexWithinInitPhaseShift = 14,
|
|
5904
5960
|
/**
|
|
5905
5961
|
* Index of the current init phase on last 21 bits
|
|
5906
5962
|
*/
|
|
5907
|
-
IndexWithinInitPhaseIncrementer =
|
|
5908
|
-
IndexWithinInitPhaseReset =
|
|
5963
|
+
IndexWithinInitPhaseIncrementer = 16384,
|
|
5964
|
+
IndexWithinInitPhaseReset = 16383
|
|
5909
5965
|
}
|
|
5910
5966
|
|
|
5911
5967
|
/**
|
|
@@ -6296,6 +6352,7 @@ declare interface NgModuleScopeInfoFromDecorator {
|
|
|
6296
6352
|
/**
|
|
6297
6353
|
* A token for third-party components that can register themselves with NgProbe.
|
|
6298
6354
|
*
|
|
6355
|
+
* @deprecated
|
|
6299
6356
|
* @publicApi
|
|
6300
6357
|
*/
|
|
6301
6358
|
export declare class NgProbeToken {
|
|
@@ -7452,92 +7509,6 @@ declare interface ReactiveLViewConsumer extends ReactiveNode {
|
|
|
7452
7509
|
lView: LView | null;
|
|
7453
7510
|
}
|
|
7454
7511
|
|
|
7455
|
-
/**
|
|
7456
|
-
* A producer and/or consumer which participates in the reactive graph.
|
|
7457
|
-
*
|
|
7458
|
-
* Producer `ReactiveNode`s which are accessed when a consumer `ReactiveNode` is the
|
|
7459
|
-
* `activeConsumer` are tracked as dependencies of that consumer.
|
|
7460
|
-
*
|
|
7461
|
-
* Certain consumers are also tracked as "live" consumers and create edges in the other direction,
|
|
7462
|
-
* from producer to consumer. These edges are used to propagate change notifications when a
|
|
7463
|
-
* producer's value is updated.
|
|
7464
|
-
*
|
|
7465
|
-
* A `ReactiveNode` may be both a producer and consumer.
|
|
7466
|
-
*/
|
|
7467
|
-
declare interface ReactiveNode {
|
|
7468
|
-
/**
|
|
7469
|
-
* Version of the value that this node produces.
|
|
7470
|
-
*
|
|
7471
|
-
* This is incremented whenever a new value is produced by this node which is not equal to the
|
|
7472
|
-
* previous value (by whatever definition of equality is in use).
|
|
7473
|
-
*/
|
|
7474
|
-
version: Version_2;
|
|
7475
|
-
/**
|
|
7476
|
-
* Whether this node (in its consumer capacity) is dirty.
|
|
7477
|
-
*
|
|
7478
|
-
* Only live consumers become dirty, when receiving a change notification from a dependency
|
|
7479
|
-
* producer.
|
|
7480
|
-
*/
|
|
7481
|
-
dirty: boolean;
|
|
7482
|
-
/**
|
|
7483
|
-
* Producers which are dependencies of this consumer.
|
|
7484
|
-
*
|
|
7485
|
-
* Uses the same indices as the `producerLastReadVersion` and `producerIndexOfThis` arrays.
|
|
7486
|
-
*/
|
|
7487
|
-
producerNode: ReactiveNode[] | undefined;
|
|
7488
|
-
/**
|
|
7489
|
-
* `Version` of the value last read by a given producer.
|
|
7490
|
-
*
|
|
7491
|
-
* Uses the same indices as the `producerNode` and `producerIndexOfThis` arrays.
|
|
7492
|
-
*/
|
|
7493
|
-
producerLastReadVersion: Version_2[] | undefined;
|
|
7494
|
-
/**
|
|
7495
|
-
* Index of `this` (consumer) in each producer's `liveConsumers` array.
|
|
7496
|
-
*
|
|
7497
|
-
* This value is only meaningful if this node is live (`liveConsumers.length > 0`). Otherwise
|
|
7498
|
-
* these indices are stale.
|
|
7499
|
-
*
|
|
7500
|
-
* Uses the same indices as the `producerNode` and `producerLastReadVersion` arrays.
|
|
7501
|
-
*/
|
|
7502
|
-
producerIndexOfThis: number[] | undefined;
|
|
7503
|
-
/**
|
|
7504
|
-
* Index into the producer arrays that the next dependency of this node as a consumer will use.
|
|
7505
|
-
*
|
|
7506
|
-
* This index is zeroed before this node as a consumer begins executing. When a producer is read,
|
|
7507
|
-
* it gets inserted into the producers arrays at this index. There may be an existing dependency
|
|
7508
|
-
* in this location which may or may not match the incoming producer, depending on whether the
|
|
7509
|
-
* same producers were read in the same order as the last computation.
|
|
7510
|
-
*/
|
|
7511
|
-
nextProducerIndex: number;
|
|
7512
|
-
/**
|
|
7513
|
-
* Array of consumers of this producer that are "live" (they require push notifications).
|
|
7514
|
-
*
|
|
7515
|
-
* `liveConsumerNode.length` is effectively our reference count for this node.
|
|
7516
|
-
*/
|
|
7517
|
-
liveConsumerNode: ReactiveNode[] | undefined;
|
|
7518
|
-
/**
|
|
7519
|
-
* Index of `this` (producer) in each consumer's `producerNode` array.
|
|
7520
|
-
*
|
|
7521
|
-
* Uses the same indices as the `liveConsumerNode` array.
|
|
7522
|
-
*/
|
|
7523
|
-
liveConsumerIndexOfThis: number[] | undefined;
|
|
7524
|
-
/**
|
|
7525
|
-
* Whether writes to signals are allowed when this consumer is the `activeConsumer`.
|
|
7526
|
-
*
|
|
7527
|
-
* This is used to enforce guardrails such as preventing writes to writable signals in the
|
|
7528
|
-
* computation function of computed signals, which is supposed to be pure.
|
|
7529
|
-
*/
|
|
7530
|
-
consumerAllowSignalWrites: boolean;
|
|
7531
|
-
readonly consumerIsAlwaysLive: boolean;
|
|
7532
|
-
/**
|
|
7533
|
-
* Tracks whether producers need to recompute their value independently of the reactive graph (for
|
|
7534
|
-
* example, if no initial value has been computed).
|
|
7535
|
-
*/
|
|
7536
|
-
producerMustRecompute(node: unknown): boolean;
|
|
7537
|
-
producerRecomputeValue(node: unknown): void;
|
|
7538
|
-
consumerMarkedDirty(node: unknown): void;
|
|
7539
|
-
}
|
|
7540
|
-
|
|
7541
7512
|
/**
|
|
7542
7513
|
* Creates an object that allows to retrieve component metadata.
|
|
7543
7514
|
*
|
|
@@ -8189,13 +8160,6 @@ declare interface SerializedView {
|
|
|
8189
8160
|
*/
|
|
8190
8161
|
export declare function setTestabilityGetter(getter: GetTestability): void;
|
|
8191
8162
|
|
|
8192
|
-
/**
|
|
8193
|
-
* Symbol used to tell `Signal`s apart from other functions.
|
|
8194
|
-
*
|
|
8195
|
-
* This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.
|
|
8196
|
-
*/
|
|
8197
|
-
declare const SIGNAL: unique symbol;
|
|
8198
|
-
|
|
8199
8163
|
/**
|
|
8200
8164
|
* A reactive value which notifies consumers of any changes.
|
|
8201
8165
|
*
|
|
@@ -8203,8 +8167,6 @@ declare const SIGNAL: unique symbol;
|
|
|
8203
8167
|
* call it.
|
|
8204
8168
|
*
|
|
8205
8169
|
* Ordinary values can be turned into `Signal`s with the `signal` function.
|
|
8206
|
-
*
|
|
8207
|
-
* @developerPreview
|
|
8208
8170
|
*/
|
|
8209
8171
|
export declare type Signal<T> = (() => T) & {
|
|
8210
8172
|
[SIGNAL]: unknown;
|
|
@@ -8212,8 +8174,6 @@ export declare type Signal<T> = (() => T) & {
|
|
|
8212
8174
|
|
|
8213
8175
|
/**
|
|
8214
8176
|
* Create a `Signal` that can be set or updated directly.
|
|
8215
|
-
*
|
|
8216
|
-
* @developerPreview
|
|
8217
8177
|
*/
|
|
8218
8178
|
export declare function signal<T>(initialValue: T, options?: CreateSignalOptions<T>): WritableSignal<T>;
|
|
8219
8179
|
|
|
@@ -8391,7 +8351,7 @@ export declare interface StaticClassSansProvider {
|
|
|
8391
8351
|
*/
|
|
8392
8352
|
export declare type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
|
|
8393
8353
|
|
|
8394
|
-
declare const T_HOST =
|
|
8354
|
+
declare const T_HOST = 5;
|
|
8395
8355
|
|
|
8396
8356
|
/**
|
|
8397
8357
|
* A combination of:
|
|
@@ -10067,15 +10027,11 @@ export declare interface TypeProvider extends Type<any> {
|
|
|
10067
10027
|
/**
|
|
10068
10028
|
* Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function
|
|
10069
10029
|
* can, optionally, return a value.
|
|
10070
|
-
*
|
|
10071
|
-
* @developerPreview
|
|
10072
10030
|
*/
|
|
10073
10031
|
export declare function untracked<T>(nonReactiveReadsFn: () => T): T;
|
|
10074
10032
|
|
|
10075
10033
|
/**
|
|
10076
10034
|
* A comparison function which can determine if two values are equal.
|
|
10077
|
-
*
|
|
10078
|
-
* @developerPreview
|
|
10079
10035
|
*/
|
|
10080
10036
|
export declare type ValueEqualityFn<T> = (a: T, b: T) => boolean;
|
|
10081
10037
|
|
|
@@ -10139,10 +10095,6 @@ export declare class Version {
|
|
|
10139
10095
|
constructor(full: string);
|
|
10140
10096
|
}
|
|
10141
10097
|
|
|
10142
|
-
declare type Version_2 = number & {
|
|
10143
|
-
__brand: 'Version';
|
|
10144
|
-
};
|
|
10145
|
-
|
|
10146
10098
|
declare const VIEW_REFS = 8;
|
|
10147
10099
|
|
|
10148
10100
|
/**
|
|
@@ -10599,8 +10551,6 @@ declare interface ViewRefTracker {
|
|
|
10599
10551
|
|
|
10600
10552
|
/**
|
|
10601
10553
|
* A `Signal` with a value that can be mutated via a setter interface.
|
|
10602
|
-
*
|
|
10603
|
-
* @developerPreview
|
|
10604
10554
|
*/
|
|
10605
10555
|
export declare interface WritableSignal<T> extends Signal<T> {
|
|
10606
10556
|
/**
|
|
@@ -10608,15 +10558,10 @@ export declare interface WritableSignal<T> extends Signal<T> {
|
|
|
10608
10558
|
*/
|
|
10609
10559
|
set(value: T): void;
|
|
10610
10560
|
/**
|
|
10611
|
-
* Update the value of the signal based on
|
|
10561
|
+
* Update the value of the signal based on itfs current value, and
|
|
10612
10562
|
* notify any dependents.
|
|
10613
10563
|
*/
|
|
10614
10564
|
update(updateFn: (value: T) => T): void;
|
|
10615
|
-
/**
|
|
10616
|
-
* Update the current value by mutating it in-place, and
|
|
10617
|
-
* notify any dependents.
|
|
10618
|
-
*/
|
|
10619
|
-
mutate(mutatorFn: (value: T) => void): void;
|
|
10620
10565
|
/**
|
|
10621
10566
|
* Returns a readonly version of this signal. Readonly signals can be accessed to read their value
|
|
10622
10567
|
* but can't be changed using set, update or mutate methods. The readonly signals do _not_ have
|
|
@@ -10673,6 +10618,17 @@ export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBy
|
|
|
10673
10618
|
|
|
10674
10619
|
export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType): boolean;
|
|
10675
10620
|
|
|
10621
|
+
/**
|
|
10622
|
+
* This enum is meant to be used by `ɵtype` properties of the different renderers implemented
|
|
10623
|
+
* by the framework
|
|
10624
|
+
*
|
|
10625
|
+
* We choose to not add `ɵtype` to `Renderer2` to no expose it to the public API.
|
|
10626
|
+
*/
|
|
10627
|
+
export declare const enum ɵAnimationRendererType {
|
|
10628
|
+
Regular = 0,
|
|
10629
|
+
Delegated = 1
|
|
10630
|
+
}
|
|
10631
|
+
|
|
10676
10632
|
/**
|
|
10677
10633
|
* Annotates all components bootstrapped in a given ApplicationRef
|
|
10678
10634
|
* with info needed for hydration.
|
|
@@ -11086,7 +11042,7 @@ export declare const ɵdefaultIterableDiffers: IterableDiffers;
|
|
|
11086
11042
|
export declare const ɵdefaultKeyValueDiffers: KeyValueDiffers;
|
|
11087
11043
|
|
|
11088
11044
|
/**
|
|
11089
|
-
*
|
|
11045
|
+
* **INTERNAL**, token used for configuring defer block behavior.
|
|
11090
11046
|
*/
|
|
11091
11047
|
export declare const ɵDEFER_BLOCK_CONFIG: InjectionToken<ɵDeferBlockConfig>;
|
|
11092
11048
|
|
|
@@ -11315,6 +11271,11 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
11315
11271
|
* The features applied to this directive
|
|
11316
11272
|
*/
|
|
11317
11273
|
readonly features: DirectiveDefFeature[] | null;
|
|
11274
|
+
/**
|
|
11275
|
+
* Info related to debugging/troubleshooting for this component. This info is only available in
|
|
11276
|
+
* dev mode.
|
|
11277
|
+
*/
|
|
11278
|
+
debugInfo: ClassDebugInfo | null;
|
|
11318
11279
|
/**
|
|
11319
11280
|
* Function that will add the host directives to the list of matches during directive matching.
|
|
11320
11281
|
* Patched onto the definition by the `HostDirectivesFeature`.
|
|
@@ -11524,6 +11485,38 @@ export declare function ɵgetUnknownPropertyStrictMode(): boolean;
|
|
|
11524
11485
|
|
|
11525
11486
|
export declare const ɵglobal: any;
|
|
11526
11487
|
|
|
11488
|
+
/**
|
|
11489
|
+
* Injection token that configures the image optimized image functionality.
|
|
11490
|
+
* See {@link ImageConfig} for additional information about parameters that
|
|
11491
|
+
* can be used.
|
|
11492
|
+
*
|
|
11493
|
+
* @see {@link NgOptimizedImage}
|
|
11494
|
+
* @see {@link ImageConfig}
|
|
11495
|
+
* @publicApi
|
|
11496
|
+
*/
|
|
11497
|
+
export declare const ɵIMAGE_CONFIG: InjectionToken<ɵImageConfig>;
|
|
11498
|
+
|
|
11499
|
+
export declare const ɵIMAGE_CONFIG_DEFAULTS: ɵImageConfig;
|
|
11500
|
+
|
|
11501
|
+
/**
|
|
11502
|
+
* A configuration object for the image-related options. Contains:
|
|
11503
|
+
* - breakpoints: An array of integer breakpoints used to generate
|
|
11504
|
+
* srcsets for responsive images.
|
|
11505
|
+
* - disableImageSizeWarning: A boolean value. Setting this to true will
|
|
11506
|
+
* disable console warnings about oversized images.
|
|
11507
|
+
* - disableImageLazyLoadWarning: A boolean value. Setting this to true will
|
|
11508
|
+
* disable console warnings about LCP images configured with `loading="lazy"`.
|
|
11509
|
+
* Learn more about the responsive image configuration in [the NgOptimizedImage
|
|
11510
|
+
* guide](guide/image-directive).
|
|
11511
|
+
* Learn more about image warning options in [the related error page](errors/NG0913).
|
|
11512
|
+
* @publicApi
|
|
11513
|
+
*/
|
|
11514
|
+
export declare type ɵImageConfig = {
|
|
11515
|
+
breakpoints?: number[];
|
|
11516
|
+
disableImageSizeWarning?: boolean;
|
|
11517
|
+
disableImageLazyLoadWarning?: boolean;
|
|
11518
|
+
};
|
|
11519
|
+
|
|
11527
11520
|
/**
|
|
11528
11521
|
* *Internal* service that keeps track of pending tasks happening in the system
|
|
11529
11522
|
* during the initial rendering. No tasks are tracked after an initial
|
|
@@ -11572,6 +11565,23 @@ export declare interface ɵInjectorProfilerContext {
|
|
|
11572
11565
|
token: Type<unknown> | null;
|
|
11573
11566
|
}
|
|
11574
11567
|
|
|
11568
|
+
/**
|
|
11569
|
+
* Register a callback to run once before any userspace `afterRender` or
|
|
11570
|
+
* `afterNextRender` callbacks.
|
|
11571
|
+
*
|
|
11572
|
+
* This function should almost always be used instead of `afterRender` or
|
|
11573
|
+
* `afterNextRender` for implementing framework functionality. Consider:
|
|
11574
|
+
*
|
|
11575
|
+
* 1.) `AfterRenderPhase.EarlyRead` is intended to be used for implementing
|
|
11576
|
+
* custom layout. If the framework itself mutates the DOM after *any*
|
|
11577
|
+
* `AfterRenderPhase.EarlyRead` callbacks are run, the phase can no
|
|
11578
|
+
* longer reliably serve its purpose.
|
|
11579
|
+
*
|
|
11580
|
+
* 2.) Importing `afterRender` in the framework can reduce the ability for it
|
|
11581
|
+
* to be tree-shaken, and the framework shouldn't need much of the behavior.
|
|
11582
|
+
*/
|
|
11583
|
+
export declare function ɵinternalAfterNextRender(callback: VoidFunction, options?: InternalAfterNextRenderOptions): void;
|
|
11584
|
+
|
|
11575
11585
|
/**
|
|
11576
11586
|
* Internal create application API that implements the core application creation logic and optional
|
|
11577
11587
|
* bootstrap logic.
|
|
@@ -12214,6 +12224,7 @@ export declare const enum ɵRuntimeErrorCode {
|
|
|
12214
12224
|
MISSING_SSR_CONTENT_INTEGRITY_MARKER = -507,
|
|
12215
12225
|
SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
|
|
12216
12226
|
REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
|
|
12227
|
+
ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT = -602,
|
|
12217
12228
|
INVALID_I18N_STRUCTURE = 700,
|
|
12218
12229
|
MISSING_LOCALE_DATA = 701,
|
|
12219
12230
|
IMPORT_PROVIDERS_FROM_STANDALONE = 800,
|
|
@@ -12230,6 +12241,7 @@ export declare const enum ɵRuntimeErrorCode {
|
|
|
12230
12241
|
UNSAFE_IFRAME_ATTRS = -910,
|
|
12231
12242
|
VIEW_ALREADY_DESTROYED = 911,
|
|
12232
12243
|
COMPONENT_ID_COLLISION = -912,
|
|
12244
|
+
IMAGE_PERFORMANCE_WARNING = -913,
|
|
12233
12245
|
RUNTIME_DEPS_INVALID_IMPORTED_TYPE = 1000,
|
|
12234
12246
|
RUNTIME_DEPS_ORPHAN_COMPONENT = 1001
|
|
12235
12247
|
}
|
|
@@ -12294,6 +12306,13 @@ export declare function ɵsetAllowDuplicateNgModuleIdsForTest(allowDuplicates: b
|
|
|
12294
12306
|
|
|
12295
12307
|
export declare function ɵsetAlternateWeakRefImpl(impl: unknown): void;
|
|
12296
12308
|
|
|
12309
|
+
/**
|
|
12310
|
+
* Sets the debug info for an Angular class.
|
|
12311
|
+
*
|
|
12312
|
+
* This runtime is guarded by ngDevMode flag.
|
|
12313
|
+
*/
|
|
12314
|
+
export declare function ɵsetClassDebugInfo(type: Type<any>, debugInfo: ClassDebugInfo): void;
|
|
12315
|
+
|
|
12297
12316
|
/**
|
|
12298
12317
|
* Adds decorator, constructor, and property metadata to a given type via static metadata fields
|
|
12299
12318
|
* on the type.
|
|
@@ -12396,6 +12415,15 @@ export declare function ɵtransitiveScopesFor<T>(type: Type<T>): ɵNgModuleTrans
|
|
|
12396
12415
|
*/
|
|
12397
12416
|
export declare function ɵtriggerResourceLoading(tDetails: TDeferBlockDetails, lView: LView): void;
|
|
12398
12417
|
|
|
12418
|
+
/**
|
|
12419
|
+
* Ellipses the string in the middle when longer than the max length
|
|
12420
|
+
*
|
|
12421
|
+
* @param string
|
|
12422
|
+
* @param maxLength of the output string
|
|
12423
|
+
* @returns elispsed string with ... in the middle
|
|
12424
|
+
*/
|
|
12425
|
+
export declare function ɵtruncateMiddle(str: string, maxLength?: number): string;
|
|
12426
|
+
|
|
12399
12427
|
/**
|
|
12400
12428
|
* Helper function to remove all the locale data from `LOCALE_DATA`.
|
|
12401
12429
|
*/
|
|
@@ -13432,10 +13460,18 @@ export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any
|
|
|
13432
13460
|
* block.
|
|
13433
13461
|
* @param placeholderConfigIndex Index in the constants array of the configuration of the
|
|
13434
13462
|
* placeholder block.
|
|
13463
|
+
* @param enableTimerScheduling Function that enables timer-related scheduling if `after`
|
|
13464
|
+
* or `minimum` parameters are setup on the `@loading` or `@placeholder` blocks.
|
|
13435
13465
|
*
|
|
13436
13466
|
* @codeGenApi
|
|
13437
13467
|
*/
|
|
13438
|
-
export declare function ɵɵdefer(index: number, primaryTmplIndex: number, dependencyResolverFn?: DependencyResolverFn | null, loadingTmplIndex?: number | null, placeholderTmplIndex?: number | null, errorTmplIndex?: number | null, loadingConfigIndex?: number | null, placeholderConfigIndex?: number | null): void;
|
|
13468
|
+
export declare function ɵɵdefer(index: number, primaryTmplIndex: number, dependencyResolverFn?: DependencyResolverFn | null, loadingTmplIndex?: number | null, placeholderTmplIndex?: number | null, errorTmplIndex?: number | null, loadingConfigIndex?: number | null, placeholderConfigIndex?: number | null, enableTimerScheduling?: typeof ɵɵdeferEnableTimerScheduling): void;
|
|
13469
|
+
|
|
13470
|
+
/**
|
|
13471
|
+
* Enables timer-related scheduling if `after` or `minimum` parameters are setup
|
|
13472
|
+
* on the `@loading` or `@placeholder` blocks.
|
|
13473
|
+
*/
|
|
13474
|
+
export declare function ɵɵdeferEnableTimerScheduling(tView: TView, tDetails: TDeferBlockDetails, placeholderConfigIndex?: number | null, loadingConfigIndex?: number | null): void;
|
|
13439
13475
|
|
|
13440
13476
|
/**
|
|
13441
13477
|
* Creates runtime data structures for the `on hover` deferred trigger.
|