@angular/core 16.1.0 → 16.1.1
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 +1 -1
- package/esm2022/src/application_init.mjs +2 -2
- package/esm2022/src/application_tokens.mjs +2 -2
- package/esm2022/src/change_detection/change_detector_ref.mjs +1 -1
- package/esm2022/src/change_detection/differs/default_iterable_differ.mjs +2 -1
- package/esm2022/src/di/forward_ref.mjs +2 -2
- package/esm2022/src/di/injector.mjs +2 -2
- package/esm2022/src/di/interface/provider.mjs +1 -1
- package/esm2022/src/di/metadata.mjs +1 -1
- package/esm2022/src/i18n/locale_data_api.mjs +2 -2
- package/esm2022/src/interface/lifecycle_hooks.mjs +1 -1
- package/esm2022/src/interface/simple_change.mjs +2 -2
- package/esm2022/src/linker/template_ref.mjs +2 -2
- package/esm2022/src/linker/view_container_ref.mjs +3 -3
- package/esm2022/src/linker/view_ref.mjs +2 -2
- package/esm2022/src/metadata/di.mjs +5 -5
- package/esm2022/src/metadata/schema.mjs +1 -1
- package/esm2022/src/render/api.mjs +8 -1
- package/esm2022/src/render3/view_ref.mjs +6 -6
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +29 -21
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +22 -15
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +50 -49
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +6 -5
- package/schematics/ng-generate/standalone-migration/bundle.js +24 -17
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -29,7 +29,7 @@ export declare interface AbstractType<T> extends Function {
|
|
|
29
29
|
* completed checking all content of a directive. It will run after the content
|
|
30
30
|
* has been checked and most of the time it's during a change detection cycle.
|
|
31
31
|
*
|
|
32
|
-
* @see
|
|
32
|
+
* @see {@link AfterViewChecked}
|
|
33
33
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
34
34
|
*
|
|
35
35
|
* @usageNotes
|
|
@@ -55,8 +55,8 @@ export declare interface AfterContentChecked {
|
|
|
55
55
|
* all content of a directive. It will run only once when the projected content is initialized.
|
|
56
56
|
* Define an `ngAfterContentInit()` method to handle any additional initialization tasks.
|
|
57
57
|
*
|
|
58
|
-
* @see
|
|
59
|
-
* @see
|
|
58
|
+
* @see {@link OnInit}
|
|
59
|
+
* @see {@link AfterViewInit}
|
|
60
60
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
61
61
|
*
|
|
62
62
|
* @usageNotes
|
|
@@ -82,7 +82,7 @@ export declare interface AfterContentInit {
|
|
|
82
82
|
* A lifecycle hook that is called after the default change detector has
|
|
83
83
|
* completed checking a component's view for changes.
|
|
84
84
|
*
|
|
85
|
-
* @see
|
|
85
|
+
* @see {@link AfterContentChecked}
|
|
86
86
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
87
87
|
*
|
|
88
88
|
* @usageNotes
|
|
@@ -108,8 +108,8 @@ export declare interface AfterViewChecked {
|
|
|
108
108
|
* a component's view.
|
|
109
109
|
* Define an `ngAfterViewInit()` method to handle any additional initialization tasks.
|
|
110
110
|
*
|
|
111
|
-
* @see
|
|
112
|
-
* @see
|
|
111
|
+
* @see {@link OnInit}
|
|
112
|
+
* @see {@link AfterContentInit}
|
|
113
113
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
114
114
|
*
|
|
115
115
|
* @usageNotes
|
|
@@ -152,7 +152,7 @@ export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: Component
|
|
|
152
152
|
/**
|
|
153
153
|
* A [DI token](guide/glossary#di-token "DI token definition") representing a string ID, used
|
|
154
154
|
* primarily for prefixing application attributes and CSS styles when
|
|
155
|
-
* {@link ViewEncapsulation#Emulated
|
|
155
|
+
* {@link ViewEncapsulation#Emulated} is being used.
|
|
156
156
|
*
|
|
157
157
|
* The token is needed in cases when multiple applications are bootstrapped on a page
|
|
158
158
|
* (for example, using `bootstrapApplication` calls). In this case, ensure that those applications
|
|
@@ -194,7 +194,7 @@ export declare const APP_ID: InjectionToken<string>;
|
|
|
194
194
|
* The function is executed during the application bootstrap process,
|
|
195
195
|
* and the needed data is available on startup.
|
|
196
196
|
*
|
|
197
|
-
* @see
|
|
197
|
+
* @see {@link ApplicationInitStatus}
|
|
198
198
|
*
|
|
199
199
|
* @usageNotes
|
|
200
200
|
*
|
|
@@ -752,7 +752,7 @@ declare type ChangeDetectionStrategy_2 = number;
|
|
|
752
752
|
*/
|
|
753
753
|
export declare abstract class ChangeDetectorRef {
|
|
754
754
|
/**
|
|
755
|
-
* When a view uses the {@link ChangeDetectionStrategy#OnPush
|
|
755
|
+
* When a view uses the {@link ChangeDetectionStrategy#OnPush} (checkOnce)
|
|
756
756
|
* change detection strategy, explicitly marks the view as changed so that
|
|
757
757
|
* it can be checked again.
|
|
758
758
|
*
|
|
@@ -778,8 +778,7 @@ export declare abstract class ChangeDetectorRef {
|
|
|
778
778
|
*/
|
|
779
779
|
abstract detach(): void;
|
|
780
780
|
/**
|
|
781
|
-
* Checks this view and its children. Use in combination with {@link ChangeDetectorRef#detach
|
|
782
|
-
* detach}
|
|
781
|
+
* Checks this view and its children. Use in combination with {@link ChangeDetectorRef#detach}
|
|
783
782
|
* to implement local change detection checks.
|
|
784
783
|
*
|
|
785
784
|
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
@@ -1683,7 +1682,7 @@ export declare const ContentChildren: ContentChildrenDecorator;
|
|
|
1683
1682
|
/**
|
|
1684
1683
|
* Type of the ContentChildren decorator / constructor function.
|
|
1685
1684
|
*
|
|
1686
|
-
* @see
|
|
1685
|
+
* @see {@link ContentChildren}.
|
|
1687
1686
|
* @publicApi
|
|
1688
1687
|
*/
|
|
1689
1688
|
export declare interface ContentChildrenDecorator {
|
|
@@ -2937,7 +2936,7 @@ export declare interface DoBootstrap {
|
|
|
2937
2936
|
* Typically, you should not use both `DoCheck` and `OnChanges` to respond to
|
|
2938
2937
|
* changes on the same input.
|
|
2939
2938
|
*
|
|
2940
|
-
* @see
|
|
2939
|
+
* @see {@link OnChanges}
|
|
2941
2940
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
2942
2941
|
*
|
|
2943
2942
|
* @usageNotes
|
|
@@ -3064,7 +3063,7 @@ declare const EMBEDDED_VIEW_INJECTOR = 20;
|
|
|
3064
3063
|
* a view cannot. Change the structure of elements by inserting, moving, or
|
|
3065
3064
|
* removing nested views in a view container.
|
|
3066
3065
|
*
|
|
3067
|
-
* @see
|
|
3066
|
+
* @see {@link ViewContainerRef}
|
|
3068
3067
|
*
|
|
3069
3068
|
* @usageNotes
|
|
3070
3069
|
*
|
|
@@ -3206,8 +3205,8 @@ export declare abstract class EnvironmentInjector implements Injector {
|
|
|
3206
3205
|
*
|
|
3207
3206
|
* This wrapper type prevents access to the `Provider`s inside.
|
|
3208
3207
|
*
|
|
3209
|
-
* @see
|
|
3210
|
-
* @see
|
|
3208
|
+
* @see {@link makeEnvironmentProviders}
|
|
3209
|
+
* @see {@link importProvidersFrom}
|
|
3211
3210
|
*
|
|
3212
3211
|
* @publicApi
|
|
3213
3212
|
*/
|
|
@@ -3368,7 +3367,7 @@ export declare interface ExistingProvider extends ExistingSansProvider {
|
|
|
3368
3367
|
/**
|
|
3369
3368
|
* Configures the `Injector` to return a value of another `useExisting` token.
|
|
3370
3369
|
*
|
|
3371
|
-
* @see
|
|
3370
|
+
* @see {@link ExistingProvider}
|
|
3372
3371
|
* @see ["Dependency Injection Guide"](guide/dependency-injection).
|
|
3373
3372
|
*
|
|
3374
3373
|
* @publicApi
|
|
@@ -3428,7 +3427,7 @@ export declare interface FactoryProvider extends FactorySansProvider {
|
|
|
3428
3427
|
/**
|
|
3429
3428
|
* Configures the `Injector` to return a value by invoking a `useFactory` function.
|
|
3430
3429
|
*
|
|
3431
|
-
* @see
|
|
3430
|
+
* @see {@link FactoryProvider}
|
|
3432
3431
|
* @see ["Dependency Injection Guide"](guide/dependency-injection).
|
|
3433
3432
|
*
|
|
3434
3433
|
* @publicApi
|
|
@@ -4124,7 +4123,7 @@ declare const ID = 19;
|
|
|
4124
4123
|
* This type cannot be directly implemented. It's returned from the `importProvidersFrom` function
|
|
4125
4124
|
* and serves to prevent the extracted NgModule providers from being used in the wrong contexts.
|
|
4126
4125
|
*
|
|
4127
|
-
* @see
|
|
4126
|
+
* @see {@link importProvidersFrom}
|
|
4128
4127
|
*
|
|
4129
4128
|
* @publicApi
|
|
4130
4129
|
* @deprecated replaced by `EnvironmentProviders`
|
|
@@ -4525,7 +4524,7 @@ export declare const INJECTOR: InjectionToken<Injector>;
|
|
|
4525
4524
|
* dependencies of various types with [injection tokens](guide/glossary#di-token).
|
|
4526
4525
|
*
|
|
4527
4526
|
* @see ["DI Providers"](guide/dependency-injection-providers).
|
|
4528
|
-
* @see
|
|
4527
|
+
* @see {@link StaticProvider}
|
|
4529
4528
|
*
|
|
4530
4529
|
* @usageNotes
|
|
4531
4530
|
*
|
|
@@ -6150,8 +6149,8 @@ declare const ON_DESTROY_HOOKS = 21;
|
|
|
6150
6149
|
* A lifecycle hook that is called when any data-bound property of a directive changes.
|
|
6151
6150
|
* Define an `ngOnChanges()` method to handle the changes.
|
|
6152
6151
|
*
|
|
6153
|
-
* @see
|
|
6154
|
-
* @see
|
|
6152
|
+
* @see {@link DoCheck}
|
|
6153
|
+
* @see {@link OnInit}
|
|
6155
6154
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
6156
6155
|
*
|
|
6157
6156
|
* @usageNotes
|
|
@@ -6201,7 +6200,7 @@ export declare interface OnDestroy {
|
|
|
6201
6200
|
* all data-bound properties of a directive.
|
|
6202
6201
|
* Define an `ngOnInit()` method to handle any additional initialization tasks.
|
|
6203
6202
|
*
|
|
6204
|
-
* @see
|
|
6203
|
+
* @see {@link AfterContentInit}
|
|
6205
6204
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
6206
6205
|
*
|
|
6207
6206
|
* @usageNotes
|
|
@@ -6613,7 +6612,7 @@ declare type PropertyAliasValue = (number | string)[];
|
|
|
6613
6612
|
* Describes how the `Injector` should be configured.
|
|
6614
6613
|
* @see ["Dependency Injection Guide"](guide/dependency-injection).
|
|
6615
6614
|
*
|
|
6616
|
-
* @see
|
|
6615
|
+
* @see {@link StaticProvider}
|
|
6617
6616
|
*
|
|
6618
6617
|
* @publicApi
|
|
6619
6618
|
*/
|
|
@@ -6682,10 +6681,10 @@ export declare interface Query {
|
|
|
6682
6681
|
/**
|
|
6683
6682
|
* Base class for query metadata.
|
|
6684
6683
|
*
|
|
6685
|
-
* @see
|
|
6686
|
-
* @see
|
|
6687
|
-
* @see
|
|
6688
|
-
* @see
|
|
6684
|
+
* @see {@link ContentChildren}.
|
|
6685
|
+
* @see {@link ContentChild}.
|
|
6686
|
+
* @see {@link ViewChildren}.
|
|
6687
|
+
* @see {@link ViewChild}.
|
|
6689
6688
|
*
|
|
6690
6689
|
* @publicApi
|
|
6691
6690
|
*/
|
|
@@ -7511,7 +7510,7 @@ export declare interface RendererType2 {
|
|
|
7511
7510
|
*
|
|
7512
7511
|
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
|
|
7513
7512
|
*
|
|
7514
|
-
* @see
|
|
7513
|
+
* @see {@link forwardRef}
|
|
7515
7514
|
* @publicApi
|
|
7516
7515
|
*/
|
|
7517
7516
|
export declare function resolveForwardRef<T>(type: T): T;
|
|
@@ -7675,7 +7674,9 @@ declare type SanitizerFn = (value: any, tagName?: string, propName?: string) =>
|
|
|
7675
7674
|
/**
|
|
7676
7675
|
* A schema definition associated with an NgModule.
|
|
7677
7676
|
*
|
|
7678
|
-
* @see
|
|
7677
|
+
* @see {@link NgModule}
|
|
7678
|
+
* @see {@link CUSTOM_ELEMENTS_SCHEMA}
|
|
7679
|
+
* @see {@link NO_ERRORS_SCHEMA}
|
|
7679
7680
|
*
|
|
7680
7681
|
* @param name The name of a defined schema.
|
|
7681
7682
|
*
|
|
@@ -7754,8 +7755,8 @@ export declare interface SelfDecorator {
|
|
|
7754
7755
|
* <code-example path="core/di/ts/metadata_spec.ts" region="Self">
|
|
7755
7756
|
* </code-example>
|
|
7756
7757
|
*
|
|
7757
|
-
* @see
|
|
7758
|
-
* @see
|
|
7758
|
+
* @see {@link SkipSelf}
|
|
7759
|
+
* @see {@link Optional}
|
|
7759
7760
|
*
|
|
7760
7761
|
*/
|
|
7761
7762
|
(): any;
|
|
@@ -7883,7 +7884,7 @@ export declare function signal<T>(initialValue: T, options?: CreateSignalOptions
|
|
|
7883
7884
|
* property on a directive instance. Passed as a value in a
|
|
7884
7885
|
* {@link SimpleChanges} object to the `ngOnChanges` hook.
|
|
7885
7886
|
*
|
|
7886
|
-
* @see
|
|
7887
|
+
* @see {@link OnChanges}
|
|
7887
7888
|
*
|
|
7888
7889
|
* @publicApi
|
|
7889
7890
|
*/
|
|
@@ -7903,7 +7904,7 @@ export declare class SimpleChange {
|
|
|
7903
7904
|
* at the declared property name they belong to on a Directive or Component. This is
|
|
7904
7905
|
* the type passed to the `ngOnChanges` hook.
|
|
7905
7906
|
*
|
|
7906
|
-
* @see
|
|
7907
|
+
* @see {@link OnChanges}
|
|
7907
7908
|
*
|
|
7908
7909
|
* @publicApi
|
|
7909
7910
|
*/
|
|
@@ -7948,8 +7949,8 @@ export declare interface SkipSelfDecorator {
|
|
|
7948
7949
|
* </code-example>
|
|
7949
7950
|
*
|
|
7950
7951
|
* @see [Dependency Injection guide](guide/dependency-injection-in-action#skip).
|
|
7951
|
-
* @see
|
|
7952
|
-
* @see
|
|
7952
|
+
* @see {@link Self}
|
|
7953
|
+
* @see {@link Optional}
|
|
7953
7954
|
*
|
|
7954
7955
|
*/
|
|
7955
7956
|
(): any;
|
|
@@ -8029,7 +8030,7 @@ export declare interface StaticClassSansProvider {
|
|
|
8029
8030
|
* Describes how an `Injector` should be configured as static (that is, without reflection).
|
|
8030
8031
|
* A static provider provides tokens to an injector for various types of dependencies.
|
|
8031
8032
|
*
|
|
8032
|
-
* @see
|
|
8033
|
+
* @see {@link Injector.create()}.
|
|
8033
8034
|
* @see ["Dependency Injection Guide"](guide/dependency-injection-providers).
|
|
8034
8035
|
*
|
|
8035
8036
|
* @publicApi
|
|
@@ -8168,7 +8169,7 @@ declare const TEMPLATE_ID = "i";
|
|
|
8168
8169
|
* You can also use a `Query` to find a `TemplateRef` associated with
|
|
8169
8170
|
* a component or a directive.
|
|
8170
8171
|
*
|
|
8171
|
-
* @see
|
|
8172
|
+
* @see {@link ViewContainerRef}
|
|
8172
8173
|
* @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)
|
|
8173
8174
|
*
|
|
8174
8175
|
* @publicApi
|
|
@@ -9759,7 +9760,7 @@ export declare const ViewChild: ViewChildDecorator;
|
|
|
9759
9760
|
/**
|
|
9760
9761
|
* Type of the ViewChild decorator / constructor function.
|
|
9761
9762
|
*
|
|
9762
|
-
* @see
|
|
9763
|
+
* @see {@link ViewChild}.
|
|
9763
9764
|
* @publicApi
|
|
9764
9765
|
*/
|
|
9765
9766
|
export declare interface ViewChildDecorator {
|
|
@@ -9836,7 +9837,7 @@ export declare const ViewChildren: ViewChildrenDecorator;
|
|
|
9836
9837
|
/**
|
|
9837
9838
|
* Type of the ViewChildren decorator / constructor function.
|
|
9838
9839
|
*
|
|
9839
|
-
* @see
|
|
9840
|
+
* @see {@link ViewChildren}.
|
|
9840
9841
|
*
|
|
9841
9842
|
* @publicApi
|
|
9842
9843
|
*/
|
|
@@ -9912,8 +9913,8 @@ export declare interface ViewChildrenDecorator {
|
|
|
9912
9913
|
* A view container instance can contain other view containers,
|
|
9913
9914
|
* creating a [view hierarchy](guide/glossary#view-hierarchy).
|
|
9914
9915
|
*
|
|
9915
|
-
* @see
|
|
9916
|
-
* @see
|
|
9916
|
+
* @see {@link ComponentRef}
|
|
9917
|
+
* @see {@link EmbeddedViewRef}
|
|
9917
9918
|
*
|
|
9918
9919
|
* @publicApi
|
|
9919
9920
|
*/
|
|
@@ -10911,7 +10912,7 @@ export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
|
|
|
10911
10912
|
* for a given locale.
|
|
10912
10913
|
* @param locale A locale code for the locale format rules to use.
|
|
10913
10914
|
* @returns The plural function for the locale.
|
|
10914
|
-
* @see
|
|
10915
|
+
* @see {@link NgPlural}
|
|
10915
10916
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
10916
10917
|
*/
|
|
10917
10918
|
export declare function ɵgetLocalePluralCase(locale: string): (value: number) => number;
|
|
@@ -11703,7 +11704,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
|
|
|
11703
11704
|
/**
|
|
11704
11705
|
* Marks a view and all of its ancestors dirty.
|
|
11705
11706
|
*
|
|
11706
|
-
* This can be used to ensure an {@link ChangeDetectionStrategy#OnPush
|
|
11707
|
+
* This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is
|
|
11707
11708
|
* checked when it needs to be re-rendered but the two normal triggers haven't marked it
|
|
11708
11709
|
* dirty (i.e. inputs haven't changed and events haven't fired in the view).
|
|
11709
11710
|
*
|
|
@@ -11737,7 +11738,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
|
|
|
11737
11738
|
*
|
|
11738
11739
|
* Detached views will not be checked during change detection runs until they are
|
|
11739
11740
|
* re-attached, even if they are dirty. `detach` can be used in combination with
|
|
11740
|
-
* {@link ChangeDetectorRef#detectChanges
|
|
11741
|
+
* {@link ChangeDetectorRef#detectChanges} to implement local change
|
|
11741
11742
|
* detection checks.
|
|
11742
11743
|
*
|
|
11743
11744
|
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
@@ -11790,7 +11791,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
|
|
|
11790
11791
|
* Re-attaches a view to the change detection tree.
|
|
11791
11792
|
*
|
|
11792
11793
|
* This can be used to re-attach views that were previously detached from the tree
|
|
11793
|
-
* using {@link ChangeDetectorRef#detach
|
|
11794
|
+
* using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.
|
|
11794
11795
|
*
|
|
11795
11796
|
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
11796
11797
|
*
|
|
@@ -11846,7 +11847,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
|
|
|
11846
11847
|
/**
|
|
11847
11848
|
* Checks the view and its children.
|
|
11848
11849
|
*
|
|
11849
|
-
* This can also be used in combination with {@link ChangeDetectorRef#detach
|
|
11850
|
+
* This can also be used in combination with {@link ChangeDetectorRef#detach} to implement
|
|
11850
11851
|
* local change detection checks.
|
|
11851
11852
|
*
|
|
11852
11853
|
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
@@ -11862,7 +11863,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
|
|
|
11862
11863
|
* We can do that by detaching the component's change detector and doing a local change detection
|
|
11863
11864
|
* check every five seconds.
|
|
11864
11865
|
*
|
|
11865
|
-
* See {@link ChangeDetectorRef#detach
|
|
11866
|
+
* See {@link ChangeDetectorRef#detach} for more information.
|
|
11866
11867
|
*/
|
|
11867
11868
|
detectChanges(): void;
|
|
11868
11869
|
/**
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,6 +10,7 @@ import { Injector } from '@angular/core';
|
|
|
10
10
|
import { MonoTypeOperatorFunction } from 'rxjs';
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
12
12
|
import { Signal } from '@angular/core';
|
|
13
|
+
import { Subscribable } from 'rxjs';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Operator which completes the Observable when the calling context (component, directive, service,
|
|
@@ -68,7 +69,7 @@ export declare interface ToObservableOptions {
|
|
|
68
69
|
* option can be specified instead, which disables the automatic subscription teardown. No injection
|
|
69
70
|
* context is needed in this configuration as well.
|
|
70
71
|
*/
|
|
71
|
-
export declare function toSignal<T>(source: Observable<T>): Signal<T | undefined>;
|
|
72
|
+
export declare function toSignal<T>(source: Observable<T> | Subscribable<T>): Signal<T | undefined>;
|
|
72
73
|
|
|
73
74
|
/**
|
|
74
75
|
* Get the current value of an `Observable` as a reactive `Signal`.
|
|
@@ -93,7 +94,7 @@ export declare function toSignal<T>(source: Observable<T>): Signal<T | undefined
|
|
|
93
94
|
*
|
|
94
95
|
* @developerPreview
|
|
95
96
|
*/
|
|
96
|
-
export declare function toSignal<T>(source: Observable<T>, options?: ToSignalOptions<undefined> & {
|
|
97
|
+
export declare function toSignal<T>(source: Observable<T> | Subscribable<T>, options?: ToSignalOptions<undefined> & {
|
|
97
98
|
requireSync?: false;
|
|
98
99
|
}): Signal<T | undefined>;
|
|
99
100
|
|
|
@@ -120,7 +121,7 @@ export declare function toSignal<T>(source: Observable<T>, options?: ToSignalOpt
|
|
|
120
121
|
*
|
|
121
122
|
* @developerPreview
|
|
122
123
|
*/
|
|
123
|
-
export declare function toSignal<T, U extends T | null | undefined>(source: Observable<T>, options: ToSignalOptions<U> & {
|
|
124
|
+
export declare function toSignal<T, U extends T | null | undefined>(source: Observable<T> | Subscribable<T>, options: ToSignalOptions<U> & {
|
|
124
125
|
initialValue: U;
|
|
125
126
|
requireSync?: false;
|
|
126
127
|
}): Signal<T | U>;
|
|
@@ -148,7 +149,7 @@ export declare function toSignal<T, U extends T | null | undefined>(source: Obse
|
|
|
148
149
|
*
|
|
149
150
|
* @developerPreview
|
|
150
151
|
*/
|
|
151
|
-
export declare function toSignal<T>(source: Observable<T>, options: ToSignalOptions<undefined> & {
|
|
152
|
+
export declare function toSignal<T>(source: Observable<T> | Subscribable<T>, options: ToSignalOptions<undefined> & {
|
|
152
153
|
requireSync: true;
|
|
153
154
|
}): Signal<T>;
|
|
154
155
|
|
|
@@ -18480,7 +18480,9 @@ function createComponentType(meta) {
|
|
|
18480
18480
|
typeParams.push(stringArrayAsType(meta.template.ngContentSelectors));
|
|
18481
18481
|
typeParams.push(expressionType(literal(meta.isStandalone)));
|
|
18482
18482
|
typeParams.push(createHostDirectivesType(meta));
|
|
18483
|
-
|
|
18483
|
+
if (meta.isSignal) {
|
|
18484
|
+
typeParams.push(expressionType(literal(meta.isSignal)));
|
|
18485
|
+
}
|
|
18484
18486
|
return expressionType(importExpr(Identifiers.ComponentDeclaration, typeParams));
|
|
18485
18487
|
}
|
|
18486
18488
|
function compileDeclarationList(list, mode) {
|
|
@@ -18580,7 +18582,9 @@ function createDirectiveType(meta) {
|
|
|
18580
18582
|
typeParams.push(NONE_TYPE);
|
|
18581
18583
|
typeParams.push(expressionType(literal(meta.isStandalone)));
|
|
18582
18584
|
typeParams.push(createHostDirectivesType(meta));
|
|
18583
|
-
|
|
18585
|
+
if (meta.isSignal) {
|
|
18586
|
+
typeParams.push(expressionType(literal(meta.isSignal)));
|
|
18587
|
+
}
|
|
18584
18588
|
return expressionType(importExpr(Identifiers.DirectiveDeclaration, typeParams));
|
|
18585
18589
|
}
|
|
18586
18590
|
function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
@@ -19402,7 +19406,7 @@ function publishFacade(global2) {
|
|
|
19402
19406
|
}
|
|
19403
19407
|
|
|
19404
19408
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
19405
|
-
var VERSION2 = new Version("16.1.
|
|
19409
|
+
var VERSION2 = new Version("16.1.1");
|
|
19406
19410
|
|
|
19407
19411
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
19408
19412
|
var _I18N_ATTR = "i18n";
|
|
@@ -20721,7 +20725,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
|
20721
20725
|
function compileDeclareClassMetadata(metadata) {
|
|
20722
20726
|
const definitionMap = new DefinitionMap();
|
|
20723
20727
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
20724
|
-
definitionMap.set("version", literal("16.1.
|
|
20728
|
+
definitionMap.set("version", literal("16.1.1"));
|
|
20725
20729
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20726
20730
|
definitionMap.set("type", metadata.type);
|
|
20727
20731
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -20790,7 +20794,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
20790
20794
|
var _a2;
|
|
20791
20795
|
const definitionMap = new DefinitionMap();
|
|
20792
20796
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
20793
|
-
definitionMap.set("version", literal("16.1.
|
|
20797
|
+
definitionMap.set("version", literal("16.1.1"));
|
|
20794
20798
|
definitionMap.set("type", meta.type.value);
|
|
20795
20799
|
if (meta.isStandalone) {
|
|
20796
20800
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -20975,7 +20979,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
|
20975
20979
|
function compileDeclareFactoryFunction(meta) {
|
|
20976
20980
|
const definitionMap = new DefinitionMap();
|
|
20977
20981
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
20978
|
-
definitionMap.set("version", literal("16.1.
|
|
20982
|
+
definitionMap.set("version", literal("16.1.1"));
|
|
20979
20983
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20980
20984
|
definitionMap.set("type", meta.type.value);
|
|
20981
20985
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -20998,7 +21002,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
20998
21002
|
function createInjectableDefinitionMap(meta) {
|
|
20999
21003
|
const definitionMap = new DefinitionMap();
|
|
21000
21004
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
21001
|
-
definitionMap.set("version", literal("16.1.
|
|
21005
|
+
definitionMap.set("version", literal("16.1.1"));
|
|
21002
21006
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21003
21007
|
definitionMap.set("type", meta.type.value);
|
|
21004
21008
|
if (meta.providedIn !== void 0) {
|
|
@@ -21036,7 +21040,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
21036
21040
|
function createInjectorDefinitionMap(meta) {
|
|
21037
21041
|
const definitionMap = new DefinitionMap();
|
|
21038
21042
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
21039
|
-
definitionMap.set("version", literal("16.1.
|
|
21043
|
+
definitionMap.set("version", literal("16.1.1"));
|
|
21040
21044
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21041
21045
|
definitionMap.set("type", meta.type.value);
|
|
21042
21046
|
definitionMap.set("providers", meta.providers);
|
|
@@ -21057,7 +21061,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
21057
21061
|
function createNgModuleDefinitionMap(meta) {
|
|
21058
21062
|
const definitionMap = new DefinitionMap();
|
|
21059
21063
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
21060
|
-
definitionMap.set("version", literal("16.1.
|
|
21064
|
+
definitionMap.set("version", literal("16.1.1"));
|
|
21061
21065
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21062
21066
|
definitionMap.set("type", meta.type.value);
|
|
21063
21067
|
if (meta.bootstrap.length > 0) {
|
|
@@ -21092,7 +21096,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
21092
21096
|
function createPipeDefinitionMap(meta) {
|
|
21093
21097
|
const definitionMap = new DefinitionMap();
|
|
21094
21098
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
21095
|
-
definitionMap.set("version", literal("16.1.
|
|
21099
|
+
definitionMap.set("version", literal("16.1.1"));
|
|
21096
21100
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21097
21101
|
definitionMap.set("type", meta.type.value);
|
|
21098
21102
|
if (meta.isStandalone) {
|
|
@@ -21109,7 +21113,7 @@ function createPipeDefinitionMap(meta) {
|
|
|
21109
21113
|
publishFacade(_global);
|
|
21110
21114
|
|
|
21111
21115
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
21112
|
-
var VERSION3 = new Version("16.1.
|
|
21116
|
+
var VERSION3 = new Version("16.1.1");
|
|
21113
21117
|
|
|
21114
21118
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
21115
21119
|
var EmitFlags;
|
|
@@ -26399,7 +26403,7 @@ var TraitCompiler = class {
|
|
|
26399
26403
|
case TraitState.Skipped:
|
|
26400
26404
|
continue;
|
|
26401
26405
|
case TraitState.Pending:
|
|
26402
|
-
throw new Error(`Resolving a trait that hasn't been analyzed: ${clazz.name.text} / ${
|
|
26406
|
+
throw new Error(`Resolving a trait that hasn't been analyzed: ${clazz.name.text} / ${trait.handler.name}`);
|
|
26403
26407
|
case TraitState.Resolved:
|
|
26404
26408
|
throw new Error(`Resolving an already resolved trait`);
|
|
26405
26409
|
}
|
|
@@ -28418,7 +28422,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
28418
28422
|
this.annotateForClosureCompiler = annotateForClosureCompiler;
|
|
28419
28423
|
this.perf = perf;
|
|
28420
28424
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
28421
|
-
this.name = DirectiveDecoratorHandler
|
|
28425
|
+
this.name = "DirectiveDecoratorHandler";
|
|
28422
28426
|
}
|
|
28423
28427
|
detect(node, decorators) {
|
|
28424
28428
|
if (!decorators) {
|
|
@@ -28697,7 +28701,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
28697
28701
|
this.injectableRegistry = injectableRegistry;
|
|
28698
28702
|
this.perf = perf;
|
|
28699
28703
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
28700
|
-
this.name = NgModuleDecoratorHandler
|
|
28704
|
+
this.name = "NgModuleDecoratorHandler";
|
|
28701
28705
|
}
|
|
28702
28706
|
detect(node, decorators) {
|
|
28703
28707
|
if (!decorators) {
|
|
@@ -29618,7 +29622,7 @@ var ComponentDecoratorHandler = class {
|
|
|
29618
29622
|
this.preanalyzeTemplateCache = /* @__PURE__ */ new Map();
|
|
29619
29623
|
this.preanalyzeStylesCache = /* @__PURE__ */ new Map();
|
|
29620
29624
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
29621
|
-
this.name = ComponentDecoratorHandler
|
|
29625
|
+
this.name = "ComponentDecoratorHandler";
|
|
29622
29626
|
this.extractTemplateOptions = {
|
|
29623
29627
|
enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
|
|
29624
29628
|
i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
|
|
@@ -30243,7 +30247,7 @@ var InjectableDecoratorHandler = class {
|
|
|
30243
30247
|
this.perf = perf;
|
|
30244
30248
|
this.errorOnDuplicateProv = errorOnDuplicateProv;
|
|
30245
30249
|
this.precedence = HandlerPrecedence.SHARED;
|
|
30246
|
-
this.name = InjectableDecoratorHandler
|
|
30250
|
+
this.name = "InjectableDecoratorHandler";
|
|
30247
30251
|
}
|
|
30248
30252
|
detect(node, decorators) {
|
|
30249
30253
|
if (!decorators) {
|
|
@@ -30472,7 +30476,7 @@ var PipeDecoratorHandler = class {
|
|
|
30472
30476
|
this.isCore = isCore;
|
|
30473
30477
|
this.perf = perf;
|
|
30474
30478
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
30475
|
-
this.name = PipeDecoratorHandler
|
|
30479
|
+
this.name = "PipeDecoratorHandler";
|
|
30476
30480
|
}
|
|
30477
30481
|
detect(node, decorators) {
|
|
30478
30482
|
if (!decorators) {
|
|
@@ -36215,6 +36219,9 @@ var TemplateTypeCheckerImpl = class {
|
|
|
36215
36219
|
}
|
|
36216
36220
|
const emitted = emittedRef.expression;
|
|
36217
36221
|
if (emitted instanceof WrappedNodeExpr) {
|
|
36222
|
+
if (refTo.node === inContext) {
|
|
36223
|
+
return null;
|
|
36224
|
+
}
|
|
36218
36225
|
let isForwardReference = false;
|
|
36219
36226
|
if (emitted.node.getStart() > inContext.getStart()) {
|
|
36220
36227
|
const declaration = (_b2 = (_a2 = this.programDriver.getProgram().getTypeChecker().getTypeAtLocation(emitted.node).getSymbol()) == null ? void 0 : _a2.declarations) == null ? void 0 : _b2[0];
|