@angular/core 12.2.7 → 12.2.11
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/bundles/core-testing.umd.js +1 -1
- package/bundles/core.umd.js +21 -13
- package/bundles/core.umd.js.map +1 -1
- package/core.d.ts +22 -14
- package/core.metadata.json +1 -1
- package/esm2015/src/compiler/compiler_facade_interface.js +1 -1
- package/esm2015/src/di/injection_token.js +12 -5
- package/esm2015/src/i18n/locale_data_api.js +5 -4
- package/esm2015/src/i18n/tokens.js +6 -6
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +22 -14
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +12 -5
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.11
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1895,7 +1895,7 @@ declare const DECLARATION_VIEW = 15;
|
|
|
1895
1895
|
* CurrencyPipe when there is no currency code passed into it. This is only used by
|
|
1896
1896
|
* CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
|
|
1897
1897
|
*
|
|
1898
|
-
* See the [i18n guide](guide/i18n
|
|
1898
|
+
* See the [i18n guide](guide/i18n-common-locale-id) for more information.
|
|
1899
1899
|
*
|
|
1900
1900
|
* <div class="alert is-helpful">
|
|
1901
1901
|
*
|
|
@@ -3568,11 +3568,11 @@ export declare enum InjectFlags {
|
|
|
3568
3568
|
* parameterized type.
|
|
3569
3569
|
*
|
|
3570
3570
|
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
|
3571
|
-
* the `Injector`. This provides additional level of type safety.
|
|
3571
|
+
* the `Injector`. This provides an additional level of type safety.
|
|
3572
3572
|
*
|
|
3573
3573
|
* ```
|
|
3574
3574
|
* interface MyInterface {...}
|
|
3575
|
-
*
|
|
3575
|
+
* const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
|
|
3576
3576
|
* // myInterface is inferred to be MyInterface.
|
|
3577
3577
|
* ```
|
|
3578
3578
|
*
|
|
@@ -3580,14 +3580,15 @@ export declare enum InjectFlags {
|
|
|
3580
3580
|
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
|
|
3581
3581
|
* `InjectionToken` using this factory as a provider as if it was defined explicitly in the
|
|
3582
3582
|
* application's root injector. If the factory function, which takes zero arguments, needs to inject
|
|
3583
|
-
* dependencies, it can do so using the `inject` function.
|
|
3583
|
+
* dependencies, it can do so using the `inject` function.
|
|
3584
|
+
* As you can see in the Tree-shakable InjectionToken example below.
|
|
3584
3585
|
*
|
|
3585
3586
|
* Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
|
|
3586
3587
|
* overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
|
|
3587
3588
|
* mentioned above, `'root'` is the default value for `providedIn`.
|
|
3588
3589
|
*
|
|
3589
3590
|
* @usageNotes
|
|
3590
|
-
* ### Basic
|
|
3591
|
+
* ### Basic Examples
|
|
3591
3592
|
*
|
|
3592
3593
|
* ### Plain InjectionToken
|
|
3593
3594
|
*
|
|
@@ -3603,6 +3604,12 @@ export declare enum InjectFlags {
|
|
|
3603
3604
|
export declare class InjectionToken<T> {
|
|
3604
3605
|
protected _desc: string;
|
|
3605
3606
|
readonly ɵprov: unknown;
|
|
3607
|
+
/**
|
|
3608
|
+
* @param _desc Description for the token,
|
|
3609
|
+
* used only for debugging purposes,
|
|
3610
|
+
* it should but does not need to be unique
|
|
3611
|
+
* @param options Options for the token's usage, as described above
|
|
3612
|
+
*/
|
|
3606
3613
|
constructor(_desc: string, options?: {
|
|
3607
3614
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
|
3608
3615
|
factory: () => T;
|
|
@@ -4187,7 +4194,7 @@ declare interface LContainerDebug {
|
|
|
4187
4194
|
* It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
|
|
4188
4195
|
* DecimalPipe and PercentPipe) and by ICU expressions.
|
|
4189
4196
|
*
|
|
4190
|
-
* See the [i18n guide](guide/i18n
|
|
4197
|
+
* See the [i18n guide](guide/i18n-common-locale-id) for more information.
|
|
4191
4198
|
*
|
|
4192
4199
|
* @usageNotes
|
|
4193
4200
|
* ### Example
|
|
@@ -4462,7 +4469,7 @@ declare const enum LViewFlags {
|
|
|
4462
4469
|
* - Warning (default): show a warning in the console and/or shell.
|
|
4463
4470
|
* - Ignore: do nothing.
|
|
4464
4471
|
*
|
|
4465
|
-
* See the [i18n guide](guide/i18n#missing-
|
|
4472
|
+
* See the [i18n guide](guide/i18n-common-merge#report-missing-translations) for more information.
|
|
4466
4473
|
*
|
|
4467
4474
|
* @usageNotes
|
|
4468
4475
|
* ### Example
|
|
@@ -5916,7 +5923,7 @@ declare interface R3DeclareDirectiveFacade {
|
|
|
5916
5923
|
|
|
5917
5924
|
declare interface R3DeclareFactoryFacade {
|
|
5918
5925
|
type: Type_2;
|
|
5919
|
-
deps: R3DeclareDependencyMetadataFacade[] | null;
|
|
5926
|
+
deps: R3DeclareDependencyMetadataFacade[] | 'invalid' | null;
|
|
5920
5927
|
target: ɵɵFactoryTarget;
|
|
5921
5928
|
}
|
|
5922
5929
|
|
|
@@ -8076,7 +8083,7 @@ export declare interface TrackByFunction<T> {
|
|
|
8076
8083
|
* Use this token at bootstrap to provide the content of your translation file (`xtb`,
|
|
8077
8084
|
* `xlf` or `xlf2`) when you want to translate your application in another language.
|
|
8078
8085
|
*
|
|
8079
|
-
* See the [i18n guide](guide/i18n
|
|
8086
|
+
* See the [i18n guide](guide/i18n-common-merge) for more information.
|
|
8080
8087
|
*
|
|
8081
8088
|
* @usageNotes
|
|
8082
8089
|
* ### Example
|
|
@@ -8102,7 +8109,7 @@ export declare const TRANSLATIONS: InjectionToken<string>;
|
|
|
8102
8109
|
* Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
|
|
8103
8110
|
* `xlf` or `xlf2`.
|
|
8104
8111
|
*
|
|
8105
|
-
* See the [i18n guide](guide/i18n
|
|
8112
|
+
* See the [i18n guide](guide/i18n-common-merge) for more information.
|
|
8106
8113
|
*
|
|
8107
8114
|
* @usageNotes
|
|
8108
8115
|
* ### Example
|
|
@@ -10748,7 +10755,7 @@ export declare const enum ɵExtraLocaleDataIndex {
|
|
|
10748
10755
|
*
|
|
10749
10756
|
* @param locale The locale code.
|
|
10750
10757
|
* @returns The locale data.
|
|
10751
|
-
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
|
|
10758
|
+
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)
|
|
10752
10759
|
*/
|
|
10753
10760
|
export declare function ɵfindLocaleData(locale: string): any;
|
|
10754
10761
|
|
|
@@ -10856,7 +10863,7 @@ export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
|
|
|
10856
10863
|
* @param locale A locale code for the locale format rules to use.
|
|
10857
10864
|
* @returns The plural function for the locale.
|
|
10858
10865
|
* @see `NgPlural`
|
|
10859
|
-
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
|
|
10866
|
+
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)
|
|
10860
10867
|
*/
|
|
10861
10868
|
export declare function ɵgetLocalePluralCase(locale: string): (value: number) => number;
|
|
10862
10869
|
|
|
@@ -11446,7 +11453,8 @@ export declare class ɵReflectionCapabilities implements PlatformReflectionCapab
|
|
|
11446
11453
|
|
|
11447
11454
|
/**
|
|
11448
11455
|
* Register locale data to be used internally by Angular. See the
|
|
11449
|
-
* ["I18n guide"](guide/i18n
|
|
11456
|
+
* ["I18n guide"](guide/i18n-common-format-data-locale) to know how to import additional locale
|
|
11457
|
+
* data.
|
|
11450
11458
|
*
|
|
11451
11459
|
* The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1
|
|
11452
11460
|
*/
|