@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/bundles/core.umd.js
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
|
*/
|
|
@@ -4144,11 +4144,11 @@
|
|
|
4144
4144
|
* parameterized type.
|
|
4145
4145
|
*
|
|
4146
4146
|
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
|
4147
|
-
* the `Injector`. This provides additional level of type safety.
|
|
4147
|
+
* the `Injector`. This provides an additional level of type safety.
|
|
4148
4148
|
*
|
|
4149
4149
|
* ```
|
|
4150
4150
|
* interface MyInterface {...}
|
|
4151
|
-
*
|
|
4151
|
+
* const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
|
|
4152
4152
|
* // myInterface is inferred to be MyInterface.
|
|
4153
4153
|
* ```
|
|
4154
4154
|
*
|
|
@@ -4156,14 +4156,15 @@
|
|
|
4156
4156
|
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
|
|
4157
4157
|
* `InjectionToken` using this factory as a provider as if it was defined explicitly in the
|
|
4158
4158
|
* application's root injector. If the factory function, which takes zero arguments, needs to inject
|
|
4159
|
-
* dependencies, it can do so using the `inject` function.
|
|
4159
|
+
* dependencies, it can do so using the `inject` function.
|
|
4160
|
+
* As you can see in the Tree-shakable InjectionToken example below.
|
|
4160
4161
|
*
|
|
4161
4162
|
* Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
|
|
4162
4163
|
* overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
|
|
4163
4164
|
* mentioned above, `'root'` is the default value for `providedIn`.
|
|
4164
4165
|
*
|
|
4165
4166
|
* @usageNotes
|
|
4166
|
-
* ### Basic
|
|
4167
|
+
* ### Basic Examples
|
|
4167
4168
|
*
|
|
4168
4169
|
* ### Plain InjectionToken
|
|
4169
4170
|
*
|
|
@@ -4177,6 +4178,12 @@
|
|
|
4177
4178
|
* @publicApi
|
|
4178
4179
|
*/
|
|
4179
4180
|
var InjectionToken = /** @class */ (function () {
|
|
4181
|
+
/**
|
|
4182
|
+
* @param _desc Description for the token,
|
|
4183
|
+
* used only for debugging purposes,
|
|
4184
|
+
* it should but does not need to be unique
|
|
4185
|
+
* @param options Options for the token's usage, as described above
|
|
4186
|
+
*/
|
|
4180
4187
|
function InjectionToken(_desc, options) {
|
|
4181
4188
|
this._desc = _desc;
|
|
4182
4189
|
/** @internal */
|
|
@@ -19382,7 +19389,8 @@
|
|
|
19382
19389
|
var LOCALE_DATA = {};
|
|
19383
19390
|
/**
|
|
19384
19391
|
* Register locale data to be used internally by Angular. See the
|
|
19385
|
-
* ["I18n guide"](guide/i18n
|
|
19392
|
+
* ["I18n guide"](guide/i18n-common-format-data-locale) to know how to import additional locale
|
|
19393
|
+
* data.
|
|
19386
19394
|
*
|
|
19387
19395
|
* The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1
|
|
19388
19396
|
*/
|
|
@@ -19402,7 +19410,7 @@
|
|
|
19402
19410
|
*
|
|
19403
19411
|
* @param locale The locale code.
|
|
19404
19412
|
* @returns The locale data.
|
|
19405
|
-
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
|
|
19413
|
+
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)
|
|
19406
19414
|
*/
|
|
19407
19415
|
function findLocaleData(locale) {
|
|
19408
19416
|
var normalizedLocale = normalizeLocale(locale);
|
|
@@ -19440,7 +19448,7 @@
|
|
|
19440
19448
|
* @param locale A locale code for the locale format rules to use.
|
|
19441
19449
|
* @returns The plural function for the locale.
|
|
19442
19450
|
* @see `NgPlural`
|
|
19443
|
-
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
|
|
19451
|
+
* @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)
|
|
19444
19452
|
*/
|
|
19445
19453
|
function getLocalePluralCase(locale) {
|
|
19446
19454
|
var data = findLocaleData(locale);
|
|
@@ -22033,7 +22041,7 @@
|
|
|
22033
22041
|
/**
|
|
22034
22042
|
* @publicApi
|
|
22035
22043
|
*/
|
|
22036
|
-
var VERSION = new Version('12.2.
|
|
22044
|
+
var VERSION = new Version('12.2.11');
|
|
22037
22045
|
|
|
22038
22046
|
/**
|
|
22039
22047
|
* @license
|
|
@@ -28769,7 +28777,7 @@
|
|
|
28769
28777
|
* It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
|
|
28770
28778
|
* DecimalPipe and PercentPipe) and by ICU expressions.
|
|
28771
28779
|
*
|
|
28772
|
-
* See the [i18n guide](guide/i18n
|
|
28780
|
+
* See the [i18n guide](guide/i18n-common-locale-id) for more information.
|
|
28773
28781
|
*
|
|
28774
28782
|
* @usageNotes
|
|
28775
28783
|
* ### Example
|
|
@@ -28792,7 +28800,7 @@
|
|
|
28792
28800
|
* CurrencyPipe when there is no currency code passed into it. This is only used by
|
|
28793
28801
|
* CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
|
|
28794
28802
|
*
|
|
28795
|
-
* See the [i18n guide](guide/i18n
|
|
28803
|
+
* See the [i18n guide](guide/i18n-common-locale-id) for more information.
|
|
28796
28804
|
*
|
|
28797
28805
|
* <div class="alert is-helpful">
|
|
28798
28806
|
*
|
|
@@ -28830,7 +28838,7 @@
|
|
|
28830
28838
|
* Use this token at bootstrap to provide the content of your translation file (`xtb`,
|
|
28831
28839
|
* `xlf` or `xlf2`) when you want to translate your application in another language.
|
|
28832
28840
|
*
|
|
28833
|
-
* See the [i18n guide](guide/i18n
|
|
28841
|
+
* See the [i18n guide](guide/i18n-common-merge) for more information.
|
|
28834
28842
|
*
|
|
28835
28843
|
* @usageNotes
|
|
28836
28844
|
* ### Example
|
|
@@ -28855,7 +28863,7 @@
|
|
|
28855
28863
|
* Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
|
|
28856
28864
|
* `xlf` or `xlf2`.
|
|
28857
28865
|
*
|
|
28858
|
-
* See the [i18n guide](guide/i18n
|
|
28866
|
+
* See the [i18n guide](guide/i18n-common-merge) for more information.
|
|
28859
28867
|
*
|
|
28860
28868
|
* @usageNotes
|
|
28861
28869
|
* ### Example
|