@angular/core 17.0.0-next.5 → 17.0.0-next.6
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/rxjs-interop/src/to_signal.mjs +13 -11
- package/esm2022/src/application_init.mjs +3 -3
- package/esm2022/src/application_module.mjs +3 -3
- package/esm2022/src/application_ref.mjs +23 -6
- package/esm2022/src/change_detection/differs/default_iterable_differ.mjs +1 -2
- package/esm2022/src/console.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/hydration/api.mjs +7 -8
- package/esm2022/src/hydration/views.mjs +3 -3
- package/esm2022/src/initial_render_pending_tasks.mjs +2 -2
- package/esm2022/src/linker/compiler.mjs +2 -2
- package/esm2022/src/linker/query_list.mjs +7 -10
- package/esm2022/src/linker/view_container_ref.mjs +12 -10
- package/esm2022/src/render3/deps_tracker/deps_tracker.mjs +4 -8
- package/esm2022/src/render3/instructions/control_flow.mjs +6 -4
- package/esm2022/src/render3/instructions/defer.mjs +381 -79
- package/esm2022/src/render3/instructions/defer_events.mjs +154 -0
- package/esm2022/src/render3/instructions/shared.mjs +1 -1
- package/esm2022/src/render3/instructions/template.mjs +9 -2
- package/esm2022/src/render3/interfaces/defer.mjs +9 -11
- package/esm2022/src/render3/metadata.mjs +2 -2
- package/esm2022/src/render3/state.mjs +2 -11
- package/esm2022/src/render3/util/view_utils.mjs +17 -3
- package/esm2022/src/testability/testability.mjs +5 -5
- package/esm2022/src/util/assert.mjs +6 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +4 -2
- package/esm2022/testing/src/defer.mjs +3 -3
- package/esm2022/testing/src/logger.mjs +4 -4
- package/fesm2022/core.mjs +1095 -617
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +13 -11
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +6 -4
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +82 -46
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +23249 -0
- package/schematics/migrations/block-template-entities/bundle.js.map +7 -0
- package/schematics/migrations.json +4 -9
- package/schematics/ng-generate/standalone-migration/bundle.js +2147 -2036
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +5 -3
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +0 -694
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js.map +0 -7
- package/schematics/migrations/remove-module-id/bundle.js +0 -368
- package/schematics/migrations/remove-module-id/bundle.js.map +0 -7
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.6
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2492,20 +2492,18 @@ export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, Iter
|
|
|
2492
2492
|
declare enum DeferDependenciesLoadingState {
|
|
2493
2493
|
/** Initial state, dependency loading is not yet triggered */
|
|
2494
2494
|
NOT_STARTED = 0,
|
|
2495
|
-
/** Dependency loading was scheduled (e.g. `on idle`), but has not started yet */
|
|
2496
|
-
SCHEDULED = 1,
|
|
2497
2495
|
/** Dependency loading is in progress */
|
|
2498
|
-
IN_PROGRESS =
|
|
2496
|
+
IN_PROGRESS = 1,
|
|
2499
2497
|
/** Dependency loading has completed successfully */
|
|
2500
|
-
COMPLETE =
|
|
2498
|
+
COMPLETE = 2,
|
|
2501
2499
|
/** Dependency loading has failed */
|
|
2502
|
-
FAILED =
|
|
2500
|
+
FAILED = 3
|
|
2503
2501
|
}
|
|
2504
2502
|
|
|
2505
|
-
/** Configuration object for a
|
|
2503
|
+
/** Configuration object for a loading block as it is stored in the component constants. */
|
|
2506
2504
|
declare type DeferredLoadingBlockConfig = [minimumTime: number | null, afterTime: number | null];
|
|
2507
2505
|
|
|
2508
|
-
/** Configuration object for a
|
|
2506
|
+
/** Configuration object for a placeholder block as it is stored in the component constants. */
|
|
2509
2507
|
declare type DeferredPlaceholderBlockConfig = [afterTime: number | null];
|
|
2510
2508
|
|
|
2511
2509
|
/**
|
|
@@ -8477,7 +8475,7 @@ declare interface TContainerNode extends TNode {
|
|
|
8477
8475
|
declare type TData = (TNode | ɵPipeDef<any> | ɵDirectiveDef<any> | ɵComponentDef<any> | number | TStylingRange | TStylingKey | ProviderToken<any> | TI18n | I18nUpdateOpCodes | TIcu | null | string | TDeferBlockDetails)[];
|
|
8478
8476
|
|
|
8479
8477
|
/**
|
|
8480
|
-
* Describes the data shared across all instances of a
|
|
8478
|
+
* Describes the data shared across all instances of a defer block.
|
|
8481
8479
|
*/
|
|
8482
8480
|
declare interface TDeferBlockDetails {
|
|
8483
8481
|
/**
|
|
@@ -8486,32 +8484,27 @@ declare interface TDeferBlockDetails {
|
|
|
8486
8484
|
*/
|
|
8487
8485
|
primaryTmplIndex: number;
|
|
8488
8486
|
/**
|
|
8489
|
-
* Index in an LView and TData arrays where a template for the
|
|
8490
|
-
* block can be found.
|
|
8487
|
+
* Index in an LView and TData arrays where a template for the loading block can be found.
|
|
8491
8488
|
*/
|
|
8492
8489
|
loadingTmplIndex: number | null;
|
|
8493
8490
|
/**
|
|
8494
|
-
* Extra configuration parameters (such as `after` and `minimum`)
|
|
8495
|
-
* for the `{:loading}` block.
|
|
8491
|
+
* Extra configuration parameters (such as `after` and `minimum`) for the loading block.
|
|
8496
8492
|
*/
|
|
8497
8493
|
loadingBlockConfig: DeferredLoadingBlockConfig | null;
|
|
8498
8494
|
/**
|
|
8499
|
-
* Index in an LView and TData arrays where a template for the
|
|
8500
|
-
* block can be found.
|
|
8495
|
+
* Index in an LView and TData arrays where a template for the placeholder block can be found.
|
|
8501
8496
|
*/
|
|
8502
8497
|
placeholderTmplIndex: number | null;
|
|
8503
8498
|
/**
|
|
8504
|
-
* Extra configuration parameters (such as `after` and `minimum`)
|
|
8505
|
-
* for the `{:placeholder}` block.
|
|
8499
|
+
* Extra configuration parameters (such as `after` and `minimum`) for the placeholder block.
|
|
8506
8500
|
*/
|
|
8507
8501
|
placeholderBlockConfig: DeferredPlaceholderBlockConfig | null;
|
|
8508
8502
|
/**
|
|
8509
|
-
* Index in an LView and TData arrays where a template for the
|
|
8510
|
-
* block can be found.
|
|
8503
|
+
* Index in an LView and TData arrays where a template for the error block can be found.
|
|
8511
8504
|
*/
|
|
8512
8505
|
errorTmplIndex: number | null;
|
|
8513
8506
|
/**
|
|
8514
|
-
* Compiler-generated function that loads all dependencies for a
|
|
8507
|
+
* Compiler-generated function that loads all dependencies for a defer block.
|
|
8515
8508
|
*/
|
|
8516
8509
|
dependencyResolverFn: DependencyResolverFn | null;
|
|
8517
8510
|
/**
|
|
@@ -11159,19 +11152,19 @@ export declare interface ɵDeferBlockDetails {
|
|
|
11159
11152
|
}
|
|
11160
11153
|
|
|
11161
11154
|
/**
|
|
11162
|
-
* Describes the current state of this
|
|
11155
|
+
* Describes the current state of this defer block instance.
|
|
11163
11156
|
*
|
|
11164
11157
|
* @publicApi
|
|
11165
11158
|
* @developerPreview
|
|
11166
11159
|
*/
|
|
11167
11160
|
export declare enum ɵDeferBlockState {
|
|
11168
|
-
/** The
|
|
11161
|
+
/** The placeholder block content is rendered */
|
|
11169
11162
|
Placeholder = 0,
|
|
11170
|
-
/** The
|
|
11163
|
+
/** The loading block content is rendered */
|
|
11171
11164
|
Loading = 1,
|
|
11172
11165
|
/** The main content block content is rendered */
|
|
11173
11166
|
Complete = 2,
|
|
11174
|
-
/** The
|
|
11167
|
+
/** The error block content is rendered */
|
|
11175
11168
|
Error = 3
|
|
11176
11169
|
}
|
|
11177
11170
|
|
|
@@ -12316,7 +12309,7 @@ export declare function ɵsetClassMetadata(type: Type<any>, decorators: any[] |
|
|
|
12316
12309
|
|
|
12317
12310
|
/**
|
|
12318
12311
|
* Handles the process of applying metadata info to a component class in case
|
|
12319
|
-
* component template had
|
|
12312
|
+
* component template had defer blocks (thus some dependencies became deferrable).
|
|
12320
12313
|
*
|
|
12321
12314
|
* @param type Component class where metadata should be added
|
|
12322
12315
|
* @param dependencyLoaderFn Function that loads dependencies
|
|
@@ -12419,7 +12412,7 @@ export declare function ɵunwrapSafeValue<T>(value: T): T;
|
|
|
12419
12412
|
*
|
|
12420
12413
|
* @deprecated For migration purposes only, to be removed soon.
|
|
12421
12414
|
*/
|
|
12422
|
-
export declare const ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT =
|
|
12415
|
+
export declare const ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT = true;
|
|
12423
12416
|
|
|
12424
12417
|
export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef, ChangeDetectorRefInterface {
|
|
12425
12418
|
/**
|
|
@@ -12634,6 +12627,12 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
|
|
|
12634
12627
|
attachToAppRef(appRef: ViewRefTracker): void;
|
|
12635
12628
|
}
|
|
12636
12629
|
|
|
12630
|
+
/**
|
|
12631
|
+
* Returns a Promise that resolves when the application becomes stable after this method is called
|
|
12632
|
+
* the first time.
|
|
12633
|
+
*/
|
|
12634
|
+
export declare function ɵwhenStable(applicationRef: ApplicationRef): Promise<void>;
|
|
12635
|
+
|
|
12637
12636
|
/**
|
|
12638
12637
|
* Returns a set of providers required to setup hydration support
|
|
12639
12638
|
* for an application that is server side rendered. This function is
|
|
@@ -12646,6 +12645,35 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
|
|
|
12646
12645
|
*/
|
|
12647
12646
|
export declare function ɵwithDomHydration(): EnvironmentProviders;
|
|
12648
12647
|
|
|
12648
|
+
/**
|
|
12649
|
+
* Returns a writable type version of type.
|
|
12650
|
+
*
|
|
12651
|
+
* USAGE:
|
|
12652
|
+
* Given:
|
|
12653
|
+
* ```
|
|
12654
|
+
* interface Person {readonly name: string}
|
|
12655
|
+
* ```
|
|
12656
|
+
*
|
|
12657
|
+
* We would like to get a read/write version of `Person`.
|
|
12658
|
+
* ```
|
|
12659
|
+
* const WritablePerson = Writable<Person>;
|
|
12660
|
+
* ```
|
|
12661
|
+
*
|
|
12662
|
+
* The result is that you can do:
|
|
12663
|
+
*
|
|
12664
|
+
* ```
|
|
12665
|
+
* const readonlyPerson: Person = {name: 'Marry'};
|
|
12666
|
+
* readonlyPerson.name = 'John'; // TypeError
|
|
12667
|
+
* (readonlyPerson as WritablePerson).name = 'John'; // OK
|
|
12668
|
+
*
|
|
12669
|
+
* // Error: Correctly detects that `Person` did not have `age` property.
|
|
12670
|
+
* (readonlyPerson as WritablePerson).age = 30;
|
|
12671
|
+
* ```
|
|
12672
|
+
*/
|
|
12673
|
+
export declare type ɵWritable<T> = {
|
|
12674
|
+
-readonly [K in keyof T]: T[K];
|
|
12675
|
+
};
|
|
12676
|
+
|
|
12649
12677
|
/**
|
|
12650
12678
|
* URL for the XSS security documentation.
|
|
12651
12679
|
*/
|
|
@@ -13387,18 +13415,18 @@ export declare function ɵɵcontentQuery<T>(directiveIndex: number, predicate: P
|
|
|
13387
13415
|
export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any> | ɵComponentDef<any>): void;
|
|
13388
13416
|
|
|
13389
13417
|
/**
|
|
13390
|
-
* Creates runtime data structures for
|
|
13418
|
+
* Creates runtime data structures for defer blocks.
|
|
13391
13419
|
*
|
|
13392
13420
|
* @param index Index of the `defer` instruction.
|
|
13393
13421
|
* @param primaryTmplIndex Index of the template with the primary block content.
|
|
13394
13422
|
* @param dependencyResolverFn Function that contains dependencies for this defer block.
|
|
13395
|
-
* @param loadingTmplIndex Index of the template with the
|
|
13396
|
-
* @param placeholderTmplIndex Index of the template with the
|
|
13397
|
-
* @param errorTmplIndex Index of the template with the
|
|
13398
|
-
* @param loadingConfigIndex Index in the constants array of the configuration of the
|
|
13423
|
+
* @param loadingTmplIndex Index of the template with the loading block content.
|
|
13424
|
+
* @param placeholderTmplIndex Index of the template with the placeholder block content.
|
|
13425
|
+
* @param errorTmplIndex Index of the template with the error block content.
|
|
13426
|
+
* @param loadingConfigIndex Index in the constants array of the configuration of the loading.
|
|
13399
13427
|
* block.
|
|
13400
13428
|
* @param placeholderConfigIndexIndex in the constants array of the configuration of the
|
|
13401
|
-
*
|
|
13429
|
+
* placeholder block.
|
|
13402
13430
|
*
|
|
13403
13431
|
* @codeGenApi
|
|
13404
13432
|
*/
|
|
@@ -13406,28 +13434,31 @@ export declare function ɵɵdefer(index: number, primaryTmplIndex: number, depen
|
|
|
13406
13434
|
|
|
13407
13435
|
/**
|
|
13408
13436
|
* Creates runtime data structures for the `on hover` deferred trigger.
|
|
13437
|
+
* @param triggerIndex Index at which to find the trigger element.
|
|
13438
|
+
* @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.
|
|
13409
13439
|
* @codeGenApi
|
|
13410
13440
|
*/
|
|
13411
|
-
export declare function ɵɵdeferOnHover(): void;
|
|
13441
|
+
export declare function ɵɵdeferOnHover(triggerIndex: number, walkUpTimes?: number): void;
|
|
13412
13442
|
|
|
13413
13443
|
/**
|
|
13414
|
-
* Sets up
|
|
13444
|
+
* Sets up logic to handle the `on idle` deferred trigger.
|
|
13415
13445
|
* @codeGenApi
|
|
13416
13446
|
*/
|
|
13417
13447
|
export declare function ɵɵdeferOnIdle(): void;
|
|
13418
13448
|
|
|
13419
13449
|
/**
|
|
13420
|
-
*
|
|
13450
|
+
* Sets up logic to handle the `on immediate` deferred trigger.
|
|
13421
13451
|
* @codeGenApi
|
|
13422
13452
|
*/
|
|
13423
13453
|
export declare function ɵɵdeferOnImmediate(): void;
|
|
13424
13454
|
|
|
13425
13455
|
/**
|
|
13426
13456
|
* Creates runtime data structures for the `on interaction` deferred trigger.
|
|
13427
|
-
* @param
|
|
13457
|
+
* @param triggerIndex Index at which to find the trigger element.
|
|
13458
|
+
* @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.
|
|
13428
13459
|
* @codeGenApi
|
|
13429
13460
|
*/
|
|
13430
|
-
export declare function ɵɵdeferOnInteraction(
|
|
13461
|
+
export declare function ɵɵdeferOnInteraction(triggerIndex: number, walkUpTimes?: number): void;
|
|
13431
13462
|
|
|
13432
13463
|
/**
|
|
13433
13464
|
* Creates runtime data structures for the `on timer` deferred trigger.
|
|
@@ -13438,35 +13469,39 @@ export declare function ɵɵdeferOnTimer(delay: number): void;
|
|
|
13438
13469
|
|
|
13439
13470
|
/**
|
|
13440
13471
|
* Creates runtime data structures for the `on viewport` deferred trigger.
|
|
13441
|
-
* @param
|
|
13472
|
+
* @param triggerIndex Index at which to find the trigger element.
|
|
13473
|
+
* @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.
|
|
13442
13474
|
* @codeGenApi
|
|
13443
13475
|
*/
|
|
13444
|
-
export declare function ɵɵdeferOnViewport(
|
|
13476
|
+
export declare function ɵɵdeferOnViewport(triggerIndex: number, walkUpTimes?: number): void;
|
|
13445
13477
|
|
|
13446
13478
|
/**
|
|
13447
13479
|
* Creates runtime data structures for the `prefetch on hover` deferred trigger.
|
|
13480
|
+
* @param triggerIndex Index at which to find the trigger element.
|
|
13481
|
+
* @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.
|
|
13448
13482
|
* @codeGenApi
|
|
13449
13483
|
*/
|
|
13450
|
-
export declare function ɵɵdeferPrefetchOnHover(): void;
|
|
13484
|
+
export declare function ɵɵdeferPrefetchOnHover(triggerIndex: number, walkUpTimes?: number): void;
|
|
13451
13485
|
|
|
13452
13486
|
/**
|
|
13453
|
-
*
|
|
13487
|
+
* Sets up logic to handle the `prefetch on idle` deferred trigger.
|
|
13454
13488
|
* @codeGenApi
|
|
13455
13489
|
*/
|
|
13456
13490
|
export declare function ɵɵdeferPrefetchOnIdle(): void;
|
|
13457
13491
|
|
|
13458
13492
|
/**
|
|
13459
|
-
*
|
|
13493
|
+
* Sets up logic to handle the `prefetch on immediate` deferred trigger.
|
|
13460
13494
|
* @codeGenApi
|
|
13461
13495
|
*/
|
|
13462
13496
|
export declare function ɵɵdeferPrefetchOnImmediate(): void;
|
|
13463
13497
|
|
|
13464
13498
|
/**
|
|
13465
13499
|
* Creates runtime data structures for the `prefetch on interaction` deferred trigger.
|
|
13466
|
-
* @param
|
|
13500
|
+
* @param triggerIndex Index at which to find the trigger element.
|
|
13501
|
+
* @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.
|
|
13467
13502
|
* @codeGenApi
|
|
13468
13503
|
*/
|
|
13469
|
-
export declare function ɵɵdeferPrefetchOnInteraction(
|
|
13504
|
+
export declare function ɵɵdeferPrefetchOnInteraction(triggerIndex: number, walkUpTimes?: number): void;
|
|
13470
13505
|
|
|
13471
13506
|
/**
|
|
13472
13507
|
* Creates runtime data structures for the `prefetch on timer` deferred trigger.
|
|
@@ -13477,10 +13512,11 @@ export declare function ɵɵdeferPrefetchOnTimer(delay: number): void;
|
|
|
13477
13512
|
|
|
13478
13513
|
/**
|
|
13479
13514
|
* Creates runtime data structures for the `prefetch on viewport` deferred trigger.
|
|
13480
|
-
* @param
|
|
13515
|
+
* @param triggerIndex Index at which to find the trigger element.
|
|
13516
|
+
* @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.
|
|
13481
13517
|
* @codeGenApi
|
|
13482
13518
|
*/
|
|
13483
|
-
export declare function ɵɵdeferPrefetchOnViewport(
|
|
13519
|
+
export declare function ɵɵdeferPrefetchOnViewport(triggerIndex: number, walkUpTimes?: number): void;
|
|
13484
13520
|
|
|
13485
13521
|
/**
|
|
13486
13522
|
* Prefetches the deferred content when a value becomes truthy.
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED