@angular/core 17.0.2 → 17.0.4
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/src/core_render3_private_export.mjs +2 -2
- package/esm2022/src/defer/instructions.mjs +3 -2
- package/esm2022/src/defer/utils.mjs +2 -2
- package/esm2022/src/image_performance_warning.mjs +14 -3
- package/esm2022/src/render3/index.mjs +2 -2
- package/esm2022/src/render3/instructions/change_detection.mjs +10 -20
- package/esm2022/src/render3/instructions/control_flow.mjs +9 -11
- package/esm2022/src/render3/instructions/shared.mjs +4 -5
- package/esm2022/src/render3/interfaces/container.mjs +22 -17
- package/esm2022/src/render3/interfaces/view.mjs +2 -2
- package/esm2022/src/render3/node_manipulation.mjs +3 -3
- package/esm2022/src/render3/util/change_detection_utils.mjs +13 -2
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +10 -13
- package/esm2022/src/render3/util/view_utils.mjs +4 -4
- package/esm2022/src/render3/view_ref.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed_compiler.mjs +4 -1
- package/fesm2022/core.mjs +83 -70
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +4 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +28 -40
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +385 -159
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/ng-generate/control-flow-migration/bundle.js +867 -371
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/control-flow-migration/schema.json +6 -0
- package/schematics/ng-generate/standalone-migration/bundle.js +422 -168
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.
|
|
2
|
+
* @license Angular v17.0.4
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2566,7 +2566,12 @@ declare type DeferredPlaceholderBlockConfig = [minimumTime: number | null];
|
|
|
2566
2566
|
*/
|
|
2567
2567
|
export declare const defineInjectable: typeof ɵɵdefineInjectable;
|
|
2568
2568
|
|
|
2569
|
-
|
|
2569
|
+
/**
|
|
2570
|
+
* Below are constants for LContainer indices to help us look up LContainer members
|
|
2571
|
+
* without having to remember the specific indices.
|
|
2572
|
+
* Uglify will inline these when minifying so there shouldn't be a cost.
|
|
2573
|
+
*/
|
|
2574
|
+
declare const DEHYDRATED_VIEWS = 6;
|
|
2570
2575
|
|
|
2571
2576
|
/**
|
|
2572
2577
|
* An object that contains hydration-related information serialized
|
|
@@ -3946,18 +3951,6 @@ declare type GlobalTargetName = 'document' | 'window' | 'body';
|
|
|
3946
3951
|
|
|
3947
3952
|
declare type GlobalTargetResolver = (element: any) => EventTarget;
|
|
3948
3953
|
|
|
3949
|
-
declare const HAS_CHILD_VIEWS_TO_REFRESH = 6;
|
|
3950
|
-
|
|
3951
|
-
/**
|
|
3952
|
-
* Flag to signify that this `LContainer` may have transplanted views which need to be change
|
|
3953
|
-
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
|
3954
|
-
*
|
|
3955
|
-
* This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip
|
|
3956
|
-
* a lot of work in `refreshEmbeddedViews`. But when set we still need to verify
|
|
3957
|
-
* that the `MOVED_VIEWS` are transplanted and on-push.
|
|
3958
|
-
*/
|
|
3959
|
-
declare const HAS_TRANSPLANTED_VIEWS = 2;
|
|
3960
|
-
|
|
3961
3954
|
/**
|
|
3962
3955
|
* Array of hooks that should be executed for a view and their directive indices.
|
|
3963
3956
|
*
|
|
@@ -5500,13 +5493,8 @@ declare interface LContainer extends Array<any> {
|
|
|
5500
5493
|
* efficient way. The value is always set to `true`
|
|
5501
5494
|
*/
|
|
5502
5495
|
[TYPE]: true;
|
|
5503
|
-
/**
|
|
5504
|
-
|
|
5505
|
-
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
|
5506
|
-
*
|
|
5507
|
-
* This flag, once set, is never unset for the `LContainer`.
|
|
5508
|
-
*/
|
|
5509
|
-
[HAS_TRANSPLANTED_VIEWS]: boolean;
|
|
5496
|
+
/** Flags for this container. See LContainerFlags for more info. */
|
|
5497
|
+
[FLAGS]: LContainerFlags;
|
|
5510
5498
|
/**
|
|
5511
5499
|
* Access to the parent view is necessary so we can propagate back
|
|
5512
5500
|
* up from inside a container to parent[NEXT].
|
|
@@ -5517,11 +5505,6 @@ declare interface LContainer extends Array<any> {
|
|
|
5517
5505
|
* view with the same parent, so we can remove listeners efficiently.
|
|
5518
5506
|
*/
|
|
5519
5507
|
[NEXT]: LView | LContainer | null;
|
|
5520
|
-
/**
|
|
5521
|
-
* Indicates that this LContainer has a view underneath it that needs to be refreshed during
|
|
5522
|
-
* change detection.
|
|
5523
|
-
*/
|
|
5524
|
-
[HAS_CHILD_VIEWS_TO_REFRESH]: boolean;
|
|
5525
5508
|
/**
|
|
5526
5509
|
* A collection of views created based on the underlying `<ng-template>` element but inserted into
|
|
5527
5510
|
* a different `LContainer`. We need to track views created from a given declaration point since
|
|
@@ -5556,6 +5539,23 @@ declare interface LContainer extends Array<any> {
|
|
|
5556
5539
|
[DEHYDRATED_VIEWS]: DehydratedContainerView[] | null;
|
|
5557
5540
|
}
|
|
5558
5541
|
|
|
5542
|
+
/** Flags associated with an LContainer (saved in LContainer[FLAGS]) */
|
|
5543
|
+
declare enum LContainerFlags {
|
|
5544
|
+
None = 0,
|
|
5545
|
+
/**
|
|
5546
|
+
* Flag to signify that this `LContainer` may have transplanted views which need to be change
|
|
5547
|
+
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
|
5548
|
+
*
|
|
5549
|
+
* This flag, once set, is never unset for the `LContainer`.
|
|
5550
|
+
*/
|
|
5551
|
+
HasTransplantedViews = 2,
|
|
5552
|
+
/**
|
|
5553
|
+
* Indicates that this LContainer has a view underneath it that needs to be refreshed during
|
|
5554
|
+
* change detection.
|
|
5555
|
+
*/
|
|
5556
|
+
HasChildViewsToRefresh = 4
|
|
5557
|
+
}
|
|
5558
|
+
|
|
5559
5559
|
/**
|
|
5560
5560
|
* Provide this token to set the locale of your application.
|
|
5561
5561
|
* It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
|
|
@@ -11012,7 +11012,7 @@ export declare class ɵConsole {
|
|
|
11012
11012
|
* which views are already in the DOM (and don't need to be re-added) and so we can
|
|
11013
11013
|
* remove views from the DOM when they are no longer required.
|
|
11014
11014
|
*/
|
|
11015
|
-
export declare const ɵCONTAINER_HEADER_OFFSET =
|
|
11015
|
+
export declare const ɵCONTAINER_HEADER_OFFSET = 10;
|
|
11016
11016
|
|
|
11017
11017
|
export declare function ɵconvertToBitFlags(flags: InjectOptions | InjectFlags | undefined): InjectFlags | undefined;
|
|
11018
11018
|
|
|
@@ -11136,15 +11136,6 @@ export declare enum ɵDeferBlockState {
|
|
|
11136
11136
|
/** The deps tracker to be used in the current Angular app in dev mode. */
|
|
11137
11137
|
export declare const ɵdepsTracker: DepsTracker;
|
|
11138
11138
|
|
|
11139
|
-
/**
|
|
11140
|
-
* Synchronously perform change detection on a component (and possibly its sub-components).
|
|
11141
|
-
*
|
|
11142
|
-
* This function triggers change detection in a synchronous way on a component.
|
|
11143
|
-
*
|
|
11144
|
-
* @param component The component which the change detection should be performed on.
|
|
11145
|
-
*/
|
|
11146
|
-
export declare function ɵdetectChanges(component: {}): void;
|
|
11147
|
-
|
|
11148
11139
|
|
|
11149
11140
|
export declare function ɵdevModeEqual(a: any, b: any): boolean;
|
|
11150
11141
|
|
|
@@ -15129,13 +15120,10 @@ export declare function ɵɵregisterNgModuleType(ngModuleType: ɵNgModuleType, i
|
|
|
15129
15120
|
* The repeater instruction does update-time diffing of a provided collection (against the
|
|
15130
15121
|
* collection seen previously) and maps changes in the collection to views structure (by adding,
|
|
15131
15122
|
* removing or moving views as needed).
|
|
15132
|
-
* @param metadataSlotIdx - index in data where we can find an instance of RepeaterMetadata with
|
|
15133
|
-
* additional information (ex. differ) needed to process collection diffing and view
|
|
15134
|
-
* manipulation
|
|
15135
15123
|
* @param collection - the collection instance to be checked for changes
|
|
15136
15124
|
* @codeGenApi
|
|
15137
15125
|
*/
|
|
15138
|
-
export declare function ɵɵrepeater(
|
|
15126
|
+
export declare function ɵɵrepeater(collection: Iterable<unknown> | undefined | null): void;
|
|
15139
15127
|
|
|
15140
15128
|
/**
|
|
15141
15129
|
* The repeaterCreate instruction runs in the creation part of the template pass and initializes
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED