@angular/common 16.1.0-rc.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/http/src/client.mjs +3 -3
- package/esm2022/http/src/fetch.mjs +3 -3
- package/esm2022/http/src/interceptor.mjs +3 -3
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/xhr.mjs +3 -3
- package/esm2022/http/src/xsrf.mjs +6 -6
- package/esm2022/http/testing/src/backend.mjs +3 -3
- package/esm2022/http/testing/src/module.mjs +4 -4
- package/esm2022/src/common_module.mjs +4 -4
- package/esm2022/src/directives/ng_class.mjs +3 -3
- package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2022/src/directives/ng_for_of.mjs +5 -5
- package/esm2022/src/directives/ng_if.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/image_loaders/image_loader.mjs +5 -5
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +42 -84
- package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2022/src/directives/ng_plural.mjs +6 -6
- package/esm2022/src/directives/ng_style.mjs +3 -3
- package/esm2022/src/directives/ng_switch.mjs +16 -16
- package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2022/src/i18n/format_date.mjs +2 -2
- package/esm2022/src/i18n/format_number.mjs +5 -5
- package/esm2022/src/i18n/locale_data_api.mjs +15 -15
- package/esm2022/src/i18n/localization.mjs +6 -6
- package/esm2022/src/location/hash_location_strategy.mjs +3 -3
- package/esm2022/src/location/location.mjs +3 -3
- package/esm2022/src/location/location_strategy.mjs +6 -6
- package/esm2022/src/location/platform_location.mjs +6 -6
- package/esm2022/src/pipes/async_pipe.mjs +3 -3
- package/esm2022/src/pipes/case_conversion_pipes.mjs +16 -16
- package/esm2022/src/pipes/date_pipe.mjs +6 -6
- package/esm2022/src/pipes/date_pipe_config.mjs +1 -1
- package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2022/src/pipes/json_pipe.mjs +3 -3
- package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2022/src/pipes/number_pipe.mjs +14 -14
- package/esm2022/src/pipes/slice_pipe.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/location_mock.mjs +3 -3
- package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2022/testing/src/mock_platform_location.mjs +3 -3
- package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2022/common.mjs +194 -236
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +37 -37
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +68 -73
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/common.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { InjectionToken, inject, Injectable, Optional, Inject, EventEmitter, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, Host, Attribute, RendererStyleFlags2, untracked, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, ɵformatRuntimeError, Renderer2, ElementRef, Injector, PLATFORM_ID, NgZone } from '@angular/core';
|
|
8
|
+
import { InjectionToken, inject, Injectable, Optional, Inject, EventEmitter, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, Host, Attribute, RendererStyleFlags2, untracked, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, ɵformatRuntimeError, Renderer2, ElementRef, Injector, PLATFORM_ID, NgZone, numberAttribute, booleanAttribute } from '@angular/core';
|
|
9
9
|
|
|
10
10
|
let _DOM = null;
|
|
11
11
|
function getDOM() {
|
|
@@ -61,10 +61,10 @@ class PlatformLocation {
|
|
|
61
61
|
historyGo(relativePosition) {
|
|
62
62
|
throw new Error('Not implemented');
|
|
63
63
|
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
65
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
65
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }); }
|
|
66
66
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PlatformLocation, decorators: [{
|
|
68
68
|
type: Injectable,
|
|
69
69
|
args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]
|
|
70
70
|
}] });
|
|
@@ -144,10 +144,10 @@ class BrowserPlatformLocation extends PlatformLocation {
|
|
|
144
144
|
getState() {
|
|
145
145
|
return this._history.state;
|
|
146
146
|
}
|
|
147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
148
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
148
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() }); }
|
|
149
149
|
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
|
|
151
151
|
type: Injectable,
|
|
152
152
|
args: [{
|
|
153
153
|
providedIn: 'platform',
|
|
@@ -233,10 +233,10 @@ class LocationStrategy {
|
|
|
233
233
|
historyGo(relativePosition) {
|
|
234
234
|
throw new Error('Not implemented');
|
|
235
235
|
}
|
|
236
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
237
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
237
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }); }
|
|
238
238
|
}
|
|
239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
240
240
|
type: Injectable,
|
|
241
241
|
args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]
|
|
242
242
|
}] });
|
|
@@ -343,10 +343,10 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
343
343
|
historyGo(relativePosition = 0) {
|
|
344
344
|
this._platformLocation.historyGo?.(relativePosition);
|
|
345
345
|
}
|
|
346
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
347
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
346
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
347
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' }); }
|
|
348
348
|
}
|
|
349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
350
350
|
type: Injectable,
|
|
351
351
|
args: [{ providedIn: 'root' }]
|
|
352
352
|
}], ctorParameters: function () { return [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -434,10 +434,10 @@ class HashLocationStrategy extends LocationStrategy {
|
|
|
434
434
|
historyGo(relativePosition = 0) {
|
|
435
435
|
this._platformLocation.historyGo?.(relativePosition);
|
|
436
436
|
}
|
|
437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
438
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
438
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: HashLocationStrategy }); }
|
|
439
439
|
}
|
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: HashLocationStrategy, decorators: [{
|
|
441
441
|
type: Injectable
|
|
442
442
|
}], ctorParameters: function () { return [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
443
443
|
type: Optional
|
|
@@ -686,10 +686,10 @@ class Location {
|
|
|
686
686
|
* @returns The URL string, modified if needed.
|
|
687
687
|
*/
|
|
688
688
|
static { this.stripTrailingSlash = stripTrailingSlash; }
|
|
689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
690
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation }); }
|
|
691
691
|
}
|
|
692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: Location, decorators: [{
|
|
693
693
|
type: Injectable,
|
|
694
694
|
args: [{
|
|
695
695
|
providedIn: 'root',
|
|
@@ -732,7 +732,7 @@ const CURRENCIES_EN = { "ADP": [undefined, undefined, 0], "AFN": [undefined, "؋
|
|
|
732
732
|
|
|
733
733
|
/**
|
|
734
734
|
* Format styles that can be used to represent numbers.
|
|
735
|
-
* @see
|
|
735
|
+
* @see {@link getLocaleNumberFormat}.
|
|
736
736
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
737
737
|
*
|
|
738
738
|
* @publicApi
|
|
@@ -747,8 +747,8 @@ var NumberFormatStyle;
|
|
|
747
747
|
/**
|
|
748
748
|
* Plurality cases used for translating plurals to different languages.
|
|
749
749
|
*
|
|
750
|
-
* @see
|
|
751
|
-
* @see
|
|
750
|
+
* @see {@link NgPlural}
|
|
751
|
+
* @see {@link NgPluralCase}
|
|
752
752
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
753
753
|
*
|
|
754
754
|
* @publicApi
|
|
@@ -799,9 +799,9 @@ var TranslationWidth;
|
|
|
799
799
|
* The specific character widths are locale-specific.
|
|
800
800
|
* Examples are given for `en-US`.
|
|
801
801
|
*
|
|
802
|
-
* @see
|
|
803
|
-
* @see
|
|
804
|
-
* @see
|
|
802
|
+
* @see {@link getLocaleDateFormat}
|
|
803
|
+
* @see {@link getLocaleTimeFormat}
|
|
804
|
+
* @see {@link getLocaleDateTimeFormat}
|
|
805
805
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
806
806
|
* @publicApi
|
|
807
807
|
*/
|
|
@@ -832,7 +832,7 @@ var FormatWidth;
|
|
|
832
832
|
* Symbols that can be used to replace placeholders in number patterns.
|
|
833
833
|
* Examples are based on `en-US` values.
|
|
834
834
|
*
|
|
835
|
-
* @see
|
|
835
|
+
* @see {@link getLocaleNumberSymbol}
|
|
836
836
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
837
837
|
*
|
|
838
838
|
* @publicApi
|
|
@@ -1044,7 +1044,7 @@ function getLocaleWeekEndRange(locale) {
|
|
|
1044
1044
|
* @param locale A locale code for the locale format rules to use.
|
|
1045
1045
|
* @param width The format type.
|
|
1046
1046
|
* @returns The localized formatting string.
|
|
1047
|
-
* @see
|
|
1047
|
+
* @see {@link FormatWidth}
|
|
1048
1048
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1049
1049
|
*
|
|
1050
1050
|
* @publicApi
|
|
@@ -1059,7 +1059,7 @@ function getLocaleDateFormat(locale, width) {
|
|
|
1059
1059
|
* @param locale A locale code for the locale format rules to use.
|
|
1060
1060
|
* @param width The format type.
|
|
1061
1061
|
* @returns The localized formatting string.
|
|
1062
|
-
* @see
|
|
1062
|
+
* @see {@link FormatWidth}
|
|
1063
1063
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1064
1064
|
|
|
1065
1065
|
* @publicApi
|
|
@@ -1074,7 +1074,7 @@ function getLocaleTimeFormat(locale, width) {
|
|
|
1074
1074
|
* @param locale A locale code for the locale format rules to use.
|
|
1075
1075
|
* @param width The format type.
|
|
1076
1076
|
* @returns The localized formatting string.
|
|
1077
|
-
* @see
|
|
1077
|
+
* @see {@link FormatWidth}
|
|
1078
1078
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1079
1079
|
*
|
|
1080
1080
|
* @publicApi
|
|
@@ -1089,7 +1089,7 @@ function getLocaleDateTimeFormat(locale, width) {
|
|
|
1089
1089
|
* @param locale The locale code.
|
|
1090
1090
|
* @param symbol The symbol to localize.
|
|
1091
1091
|
* @returns The character for the localized symbol.
|
|
1092
|
-
* @see
|
|
1092
|
+
* @see {@link NumberSymbol}
|
|
1093
1093
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1094
1094
|
*
|
|
1095
1095
|
* @publicApi
|
|
@@ -1136,7 +1136,7 @@ function getLocaleNumberSymbol(locale, symbol) {
|
|
|
1136
1136
|
* @param locale A locale code for the locale format rules to use.
|
|
1137
1137
|
* @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)
|
|
1138
1138
|
* @returns The localized format string.
|
|
1139
|
-
* @see
|
|
1139
|
+
* @see {@link NumberFormatStyle}
|
|
1140
1140
|
* @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
|
|
1141
1141
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1142
1142
|
*
|
|
@@ -1226,7 +1226,7 @@ function checkFullData(data) {
|
|
|
1226
1226
|
* @returns The rules for the locale, a single time value or array of *from-time, to-time*,
|
|
1227
1227
|
* or null if no periods are available.
|
|
1228
1228
|
*
|
|
1229
|
-
* @see
|
|
1229
|
+
* @see {@link getLocaleExtraDayPeriods}
|
|
1230
1230
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1231
1231
|
*
|
|
1232
1232
|
* @publicApi
|
|
@@ -1254,7 +1254,7 @@ function getLocaleExtraDayPeriodRules(locale) {
|
|
|
1254
1254
|
* @param formStyle The required grammatical form.
|
|
1255
1255
|
* @param width The required character width.
|
|
1256
1256
|
* @returns The translated day-period strings.
|
|
1257
|
-
* @see
|
|
1257
|
+
* @see {@link getLocaleExtraDayPeriodRules}
|
|
1258
1258
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1259
1259
|
*
|
|
1260
1260
|
* @publicApi
|
|
@@ -1397,7 +1397,7 @@ var TranslationType;
|
|
|
1397
1397
|
*
|
|
1398
1398
|
* @returns The formatted date string.
|
|
1399
1399
|
*
|
|
1400
|
-
* @see
|
|
1400
|
+
* @see {@link DatePipe}
|
|
1401
1401
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
1402
1402
|
*
|
|
1403
1403
|
* @publicApi
|
|
@@ -2206,8 +2206,8 @@ function formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimal
|
|
|
2206
2206
|
*
|
|
2207
2207
|
* @returns The formatted currency value.
|
|
2208
2208
|
*
|
|
2209
|
-
* @see
|
|
2210
|
-
* @see
|
|
2209
|
+
* @see {@link formatNumber}
|
|
2210
|
+
* @see {@link DecimalPipe}
|
|
2211
2211
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
2212
2212
|
*
|
|
2213
2213
|
* @publicApi
|
|
@@ -2241,8 +2241,8 @@ function formatCurrency(value, locale, currency, currencyCode, digitsInfo) {
|
|
|
2241
2241
|
*
|
|
2242
2242
|
* @returns The formatted percentage value.
|
|
2243
2243
|
*
|
|
2244
|
-
* @see
|
|
2245
|
-
* @see
|
|
2244
|
+
* @see {@link formatNumber}
|
|
2245
|
+
* @see {@link DecimalPipe}
|
|
2246
2246
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
2247
2247
|
* @publicApi
|
|
2248
2248
|
*
|
|
@@ -2481,10 +2481,10 @@ function parseIntAutoRadix(text) {
|
|
|
2481
2481
|
* @publicApi
|
|
2482
2482
|
*/
|
|
2483
2483
|
class NgLocalization {
|
|
2484
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2485
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2484
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2485
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] }); }
|
|
2486
2486
|
}
|
|
2487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgLocalization, decorators: [{
|
|
2488
2488
|
type: Injectable,
|
|
2489
2489
|
args: [{
|
|
2490
2490
|
providedIn: 'root',
|
|
@@ -2538,10 +2538,10 @@ class NgLocaleLocalization extends NgLocalization {
|
|
|
2538
2538
|
return 'other';
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2542
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2542
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgLocaleLocalization }); }
|
|
2543
2543
|
}
|
|
2544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgLocaleLocalization, decorators: [{
|
|
2545
2545
|
type: Injectable
|
|
2546
2546
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2547
2547
|
type: Inject,
|
|
@@ -2714,10 +2714,10 @@ class NgClass {
|
|
|
2714
2714
|
});
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2718
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
2717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgClass, deps: [{ token: i0.IterableDiffers }, { token: i0.KeyValueDiffers }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2718
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgClass, isStandalone: true, selector: "[ngClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass" }, ngImport: i0 }); }
|
|
2719
2719
|
}
|
|
2720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgClass, decorators: [{
|
|
2721
2721
|
type: Directive,
|
|
2722
2722
|
args: [{
|
|
2723
2723
|
selector: '[ngClass]',
|
|
@@ -2828,10 +2828,10 @@ class NgComponentOutlet {
|
|
|
2828
2828
|
if (this._moduleRef)
|
|
2829
2829
|
this._moduleRef.destroy();
|
|
2830
2830
|
}
|
|
2831
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2832
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
2831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2832
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgComponentOutlet, isStandalone: true, selector: "[ngComponentOutlet]", inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModule: "ngComponentOutletNgModule", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, usesOnChanges: true, ngImport: i0 }); }
|
|
2833
2833
|
}
|
|
2834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgComponentOutlet, decorators: [{
|
|
2835
2835
|
type: Directive,
|
|
2836
2836
|
args: [{
|
|
2837
2837
|
selector: '[ngComponentOutlet]',
|
|
@@ -3000,7 +3000,7 @@ class NgForOf {
|
|
|
3000
3000
|
* represent the same underlying entity (for example, when data is re-fetched from the server,
|
|
3001
3001
|
* and the iterable is recreated and re-rendered, but most of the data is still the same).
|
|
3002
3002
|
*
|
|
3003
|
-
* @see
|
|
3003
|
+
* @see {@link TrackByFunction}
|
|
3004
3004
|
*/
|
|
3005
3005
|
set ngForTrackBy(fn) {
|
|
3006
3006
|
if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
|
|
@@ -3109,10 +3109,10 @@ class NgForOf {
|
|
|
3109
3109
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3110
3110
|
return true;
|
|
3111
3111
|
}
|
|
3112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3113
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3113
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgForOf, isStandalone: true, selector: "[ngFor][ngForOf]", inputs: { ngForOf: "ngForOf", ngForTrackBy: "ngForTrackBy", ngForTemplate: "ngForTemplate" }, ngImport: i0 }); }
|
|
3114
3114
|
}
|
|
3115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgForOf, decorators: [{
|
|
3116
3116
|
type: Directive,
|
|
3117
3117
|
args: [{
|
|
3118
3118
|
selector: '[ngFor][ngForOf]',
|
|
@@ -3337,10 +3337,10 @@ class NgIf {
|
|
|
3337
3337
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3338
3338
|
return true;
|
|
3339
3339
|
}
|
|
3340
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3341
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3341
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgIf, isStandalone: true, selector: "[ngIf]", inputs: { ngIf: "ngIf", ngIfThen: "ngIfThen", ngIfElse: "ngIfElse" }, ngImport: i0 }); }
|
|
3342
3342
|
}
|
|
3343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgIf, decorators: [{
|
|
3344
3344
|
type: Directive,
|
|
3345
3345
|
args: [{
|
|
3346
3346
|
selector: '[ngIf]',
|
|
@@ -3453,8 +3453,8 @@ class SwitchView {
|
|
|
3453
3453
|
* ```
|
|
3454
3454
|
*
|
|
3455
3455
|
* @publicApi
|
|
3456
|
-
* @see
|
|
3457
|
-
* @see
|
|
3456
|
+
* @see {@link NgSwitchCase}
|
|
3457
|
+
* @see {@link NgSwitchDefault}
|
|
3458
3458
|
* @see [Structural Directives](guide/structural-directives)
|
|
3459
3459
|
*
|
|
3460
3460
|
*/
|
|
@@ -3500,10 +3500,10 @@ class NgSwitch {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3504
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3503
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3504
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgSwitch, isStandalone: true, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 }); }
|
|
3505
3505
|
}
|
|
3506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSwitch, decorators: [{
|
|
3507
3507
|
type: Directive,
|
|
3508
3508
|
args: [{
|
|
3509
3509
|
selector: '[ngSwitch]',
|
|
@@ -3541,8 +3541,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
3541
3541
|
* This means that the empty string, `""` matches 0.
|
|
3542
3542
|
*
|
|
3543
3543
|
* @publicApi
|
|
3544
|
-
* @see
|
|
3545
|
-
* @see
|
|
3544
|
+
* @see {@link NgSwitch}
|
|
3545
|
+
* @see {@link NgSwitchDefault}
|
|
3546
3546
|
*
|
|
3547
3547
|
*/
|
|
3548
3548
|
class NgSwitchCase {
|
|
@@ -3561,10 +3561,10 @@ class NgSwitchCase {
|
|
|
3561
3561
|
ngDoCheck() {
|
|
3562
3562
|
this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
|
|
3563
3563
|
}
|
|
3564
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3565
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3564
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3565
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgSwitchCase, isStandalone: true, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 }); }
|
|
3566
3566
|
}
|
|
3567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSwitchCase, decorators: [{
|
|
3568
3568
|
type: Directive,
|
|
3569
3569
|
args: [{
|
|
3570
3570
|
selector: '[ngSwitchCase]',
|
|
@@ -3587,8 +3587,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
3587
3587
|
* This statement should be the final case in an `NgSwitch`.
|
|
3588
3588
|
*
|
|
3589
3589
|
* @publicApi
|
|
3590
|
-
* @see
|
|
3591
|
-
* @see
|
|
3590
|
+
* @see {@link NgSwitch}
|
|
3591
|
+
* @see {@link NgSwitchCase}
|
|
3592
3592
|
*
|
|
3593
3593
|
*/
|
|
3594
3594
|
class NgSwitchDefault {
|
|
@@ -3598,10 +3598,10 @@ class NgSwitchDefault {
|
|
|
3598
3598
|
}
|
|
3599
3599
|
ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
|
|
3600
3600
|
}
|
|
3601
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3602
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3601
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3602
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgSwitchDefault, isStandalone: true, selector: "[ngSwitchDefault]", ngImport: i0 }); }
|
|
3603
3603
|
}
|
|
3604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgSwitchDefault, decorators: [{
|
|
3605
3605
|
type: Directive,
|
|
3606
3606
|
args: [{
|
|
3607
3607
|
selector: '[ngSwitchDefault]',
|
|
@@ -3676,10 +3676,10 @@ class NgPlural {
|
|
|
3676
3676
|
this._activeView.create();
|
|
3677
3677
|
}
|
|
3678
3678
|
}
|
|
3679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3680
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3679
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3680
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgPlural, isStandalone: true, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 }); }
|
|
3681
3681
|
}
|
|
3682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgPlural, decorators: [{
|
|
3683
3683
|
type: Directive,
|
|
3684
3684
|
args: [{
|
|
3685
3685
|
selector: '[ngPlural]',
|
|
@@ -3714,10 +3714,10 @@ class NgPluralCase {
|
|
|
3714
3714
|
const isANumber = !isNaN(Number(value));
|
|
3715
3715
|
ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
|
|
3716
3716
|
}
|
|
3717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3718
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3718
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgPluralCase, isStandalone: true, selector: "[ngPluralCase]", ngImport: i0 }); }
|
|
3719
3719
|
}
|
|
3720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgPluralCase, decorators: [{
|
|
3721
3721
|
type: Directive,
|
|
3722
3722
|
args: [{
|
|
3723
3723
|
selector: '[ngPluralCase]',
|
|
@@ -3803,10 +3803,10 @@ class NgStyle {
|
|
|
3803
3803
|
changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
3804
3804
|
changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
3805
3805
|
}
|
|
3806
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3807
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3806
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3807
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgStyle, isStandalone: true, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 }); }
|
|
3808
3808
|
}
|
|
3809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgStyle, decorators: [{
|
|
3810
3810
|
type: Directive,
|
|
3811
3811
|
args: [{
|
|
3812
3812
|
selector: '[ngStyle]',
|
|
@@ -3879,10 +3879,10 @@ class NgTemplateOutlet {
|
|
|
3879
3879
|
this._viewRef.context = this.ngTemplateOutletContext;
|
|
3880
3880
|
}
|
|
3881
3881
|
}
|
|
3882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
3883
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
3882
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3883
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgTemplateOutlet, isStandalone: true, selector: "[ngTemplateOutlet]", inputs: { ngTemplateOutletContext: "ngTemplateOutletContext", ngTemplateOutlet: "ngTemplateOutlet", ngTemplateOutletInjector: "ngTemplateOutletInjector" }, usesOnChanges: true, ngImport: i0 }); }
|
|
3884
3884
|
}
|
|
3885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
3885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgTemplateOutlet, decorators: [{
|
|
3886
3886
|
type: Directive,
|
|
3887
3887
|
args: [{
|
|
3888
3888
|
selector: '[ngTemplateOutlet]',
|
|
@@ -4040,10 +4040,10 @@ class AsyncPipe {
|
|
|
4040
4040
|
this._ref.markForCheck();
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4044
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4043
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4044
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: AsyncPipe, isStandalone: true, name: "async", pure: false }); }
|
|
4045
4045
|
}
|
|
4046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: AsyncPipe, decorators: [{
|
|
4047
4047
|
type: Pipe,
|
|
4048
4048
|
args: [{
|
|
4049
4049
|
name: 'async',
|
|
@@ -4055,8 +4055,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
4055
4055
|
/**
|
|
4056
4056
|
* Transforms text to all lower case.
|
|
4057
4057
|
*
|
|
4058
|
-
* @see
|
|
4059
|
-
* @see
|
|
4058
|
+
* @see {@link UpperCasePipe}
|
|
4059
|
+
* @see {@link TitleCasePipe}
|
|
4060
4060
|
* @usageNotes
|
|
4061
4061
|
*
|
|
4062
4062
|
* The following example defines a view that allows the user to enter
|
|
@@ -4076,10 +4076,10 @@ class LowerCasePipe {
|
|
|
4076
4076
|
}
|
|
4077
4077
|
return value.toLowerCase();
|
|
4078
4078
|
}
|
|
4079
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4080
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4080
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: "lowercase" }); }
|
|
4081
4081
|
}
|
|
4082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LowerCasePipe, decorators: [{
|
|
4083
4083
|
type: Pipe,
|
|
4084
4084
|
args: [{
|
|
4085
4085
|
name: 'lowercase',
|
|
@@ -4101,8 +4101,8 @@ const unicodeWordMatch = /(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1
|
|
|
4101
4101
|
* rest of the word to lower case.
|
|
4102
4102
|
* Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
|
|
4103
4103
|
*
|
|
4104
|
-
* @see
|
|
4105
|
-
* @see
|
|
4104
|
+
* @see {@link LowerCasePipe}
|
|
4105
|
+
* @see {@link UpperCasePipe}
|
|
4106
4106
|
*
|
|
4107
4107
|
* @usageNotes
|
|
4108
4108
|
* The following example shows the result of transforming various strings into title case.
|
|
@@ -4121,10 +4121,10 @@ class TitleCasePipe {
|
|
|
4121
4121
|
}
|
|
4122
4122
|
return value.replace(unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.slice(1).toLowerCase()));
|
|
4123
4123
|
}
|
|
4124
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4125
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4125
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: "titlecase" }); }
|
|
4126
4126
|
}
|
|
4127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: TitleCasePipe, decorators: [{
|
|
4128
4128
|
type: Pipe,
|
|
4129
4129
|
args: [{
|
|
4130
4130
|
name: 'titlecase',
|
|
@@ -4133,8 +4133,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
4133
4133
|
}] });
|
|
4134
4134
|
/**
|
|
4135
4135
|
* Transforms text to all upper case.
|
|
4136
|
-
* @see
|
|
4137
|
-
* @see
|
|
4136
|
+
* @see {@link LowerCasePipe}
|
|
4137
|
+
* @see {@link TitleCasePipe}
|
|
4138
4138
|
*
|
|
4139
4139
|
* @ngModule CommonModule
|
|
4140
4140
|
* @publicApi
|
|
@@ -4148,10 +4148,10 @@ class UpperCasePipe {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
return value.toUpperCase();
|
|
4150
4150
|
}
|
|
4151
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4152
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4152
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: "uppercase" }); }
|
|
4153
4153
|
}
|
|
4154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: UpperCasePipe, decorators: [{
|
|
4155
4155
|
type: Pipe,
|
|
4156
4156
|
args: [{
|
|
4157
4157
|
name: 'uppercase',
|
|
@@ -4180,7 +4180,7 @@ const DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken('DATE_PIPE_DEFAULT_TIMEZON
|
|
|
4180
4180
|
* - `timezone`: configures the default timezone. If not provided, the `DatePipe` will
|
|
4181
4181
|
* use the end-user's local system timezone.
|
|
4182
4182
|
*
|
|
4183
|
-
* @see
|
|
4183
|
+
* @see {@link DatePipeConfig}
|
|
4184
4184
|
*
|
|
4185
4185
|
* @usageNotes
|
|
4186
4186
|
*
|
|
@@ -4228,7 +4228,7 @@ const DATE_PIPE_DEFAULT_OPTIONS = new InjectionToken('DATE_PIPE_DEFAULT_OPTIONS'
|
|
|
4228
4228
|
* injection token. The value that is passed in as the second parameter takes precedence over
|
|
4229
4229
|
* the one defined using the injection token.
|
|
4230
4230
|
*
|
|
4231
|
-
* @see
|
|
4231
|
+
* @see {@link formatDate}
|
|
4232
4232
|
*
|
|
4233
4233
|
*
|
|
4234
4234
|
* @usageNotes
|
|
@@ -4381,10 +4381,10 @@ class DatePipe {
|
|
|
4381
4381
|
throw invalidPipeArgumentError(DatePipe, error.message);
|
|
4382
4382
|
}
|
|
4383
4383
|
}
|
|
4384
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4385
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4384
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: DatePipe, deps: [{ token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }, { token: DATE_PIPE_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4385
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: DatePipe, isStandalone: true, name: "date" }); }
|
|
4386
4386
|
}
|
|
4387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: DatePipe, decorators: [{
|
|
4388
4388
|
type: Pipe,
|
|
4389
4389
|
args: [{
|
|
4390
4390
|
name: 'date',
|
|
@@ -4441,10 +4441,10 @@ class I18nPluralPipe {
|
|
|
4441
4441
|
const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
|
|
4442
4442
|
return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
|
|
4443
4443
|
}
|
|
4444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4445
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4445
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: "i18nPlural" }); }
|
|
4446
4446
|
}
|
|
4447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: I18nPluralPipe, decorators: [{
|
|
4448
4448
|
type: Pipe,
|
|
4449
4449
|
args: [{
|
|
4450
4450
|
name: 'i18nPlural',
|
|
@@ -4490,10 +4490,10 @@ class I18nSelectPipe {
|
|
|
4490
4490
|
}
|
|
4491
4491
|
return '';
|
|
4492
4492
|
}
|
|
4493
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4494
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4493
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4494
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: "i18nSelect" }); }
|
|
4495
4495
|
}
|
|
4496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: I18nSelectPipe, decorators: [{
|
|
4497
4497
|
type: Pipe,
|
|
4498
4498
|
args: [{
|
|
4499
4499
|
name: 'i18nSelect',
|
|
@@ -4524,10 +4524,10 @@ class JsonPipe {
|
|
|
4524
4524
|
transform(value) {
|
|
4525
4525
|
return JSON.stringify(value, null, 2);
|
|
4526
4526
|
}
|
|
4527
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4528
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4528
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: JsonPipe, isStandalone: true, name: "json", pure: false }); }
|
|
4529
4529
|
}
|
|
4530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: JsonPipe, decorators: [{
|
|
4531
4531
|
type: Pipe,
|
|
4532
4532
|
args: [{
|
|
4533
4533
|
name: 'json',
|
|
@@ -4587,10 +4587,10 @@ class KeyValuePipe {
|
|
|
4587
4587
|
}
|
|
4588
4588
|
return this.keyValues;
|
|
4589
4589
|
}
|
|
4590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4591
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4590
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4591
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: "keyvalue", pure: false }); }
|
|
4592
4592
|
}
|
|
4593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: KeyValuePipe, decorators: [{
|
|
4594
4594
|
type: Pipe,
|
|
4595
4595
|
args: [{
|
|
4596
4596
|
name: 'keyvalue',
|
|
@@ -4637,7 +4637,7 @@ function defaultComparator(keyValueA, keyValueB) {
|
|
|
4637
4637
|
* Locale determines group sizing and separator,
|
|
4638
4638
|
* decimal point character, and other locale-specific configurations.
|
|
4639
4639
|
*
|
|
4640
|
-
* @see
|
|
4640
|
+
* @see {@link formatNumber}
|
|
4641
4641
|
*
|
|
4642
4642
|
* @usageNotes
|
|
4643
4643
|
*
|
|
@@ -4715,10 +4715,10 @@ class DecimalPipe {
|
|
|
4715
4715
|
throw invalidPipeArgumentError(DecimalPipe, error.message);
|
|
4716
4716
|
}
|
|
4717
4717
|
}
|
|
4718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4719
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4718
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4719
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: DecimalPipe, isStandalone: true, name: "number" }); }
|
|
4720
4720
|
}
|
|
4721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: DecimalPipe, decorators: [{
|
|
4722
4722
|
type: Pipe,
|
|
4723
4723
|
args: [{
|
|
4724
4724
|
name: 'number',
|
|
@@ -4737,7 +4737,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
4737
4737
|
* separator, decimal-point character, and other locale-specific
|
|
4738
4738
|
* configurations.
|
|
4739
4739
|
*
|
|
4740
|
-
* @see
|
|
4740
|
+
* @see {@link formatPercent}
|
|
4741
4741
|
*
|
|
4742
4742
|
* @usageNotes
|
|
4743
4743
|
* The following code shows how the pipe transforms numbers
|
|
@@ -4780,10 +4780,10 @@ class PercentPipe {
|
|
|
4780
4780
|
throw invalidPipeArgumentError(PercentPipe, error.message);
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4784
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4783
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4784
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: PercentPipe, isStandalone: true, name: "percent" }); }
|
|
4785
4785
|
}
|
|
4786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PercentPipe, decorators: [{
|
|
4787
4787
|
type: Pipe,
|
|
4788
4788
|
args: [{
|
|
4789
4789
|
name: 'percent',
|
|
@@ -4802,8 +4802,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
4802
4802
|
* and other locale-specific configurations.
|
|
4803
4803
|
*
|
|
4804
4804
|
*
|
|
4805
|
-
* @see
|
|
4806
|
-
* @see
|
|
4805
|
+
* @see {@link getCurrencySymbol}
|
|
4806
|
+
* @see {@link formatCurrency}
|
|
4807
4807
|
*
|
|
4808
4808
|
* @usageNotes
|
|
4809
4809
|
* The following code shows how the pipe transforms numbers
|
|
@@ -4879,10 +4879,10 @@ class CurrencyPipe {
|
|
|
4879
4879
|
throw invalidPipeArgumentError(CurrencyPipe, error.message);
|
|
4880
4880
|
}
|
|
4881
4881
|
}
|
|
4882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4883
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4882
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4883
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: "currency" }); }
|
|
4884
4884
|
}
|
|
4885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CurrencyPipe, decorators: [{
|
|
4886
4886
|
type: Pipe,
|
|
4887
4887
|
args: [{
|
|
4888
4888
|
name: 'currency',
|
|
@@ -4959,10 +4959,10 @@ class SlicePipe {
|
|
|
4959
4959
|
supports(obj) {
|
|
4960
4960
|
return typeof obj === 'string' || Array.isArray(obj);
|
|
4961
4961
|
}
|
|
4962
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4963
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
4962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4963
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice", pure: false }); }
|
|
4964
4964
|
}
|
|
4965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: SlicePipe, decorators: [{
|
|
4966
4966
|
type: Pipe,
|
|
4967
4967
|
args: [{
|
|
4968
4968
|
name: 'slice',
|
|
@@ -5006,11 +5006,11 @@ const COMMON_PIPES = [
|
|
|
5006
5006
|
* @publicApi
|
|
5007
5007
|
*/
|
|
5008
5008
|
class CommonModule {
|
|
5009
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5010
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
5011
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
5009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5010
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: CommonModule, imports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe], exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe] }); }
|
|
5011
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CommonModule }); }
|
|
5012
5012
|
}
|
|
5013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: CommonModule, decorators: [{
|
|
5014
5014
|
type: NgModule,
|
|
5015
5015
|
args: [{
|
|
5016
5016
|
imports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
@@ -5063,7 +5063,7 @@ function isPlatformWorkerUi(platformId) {
|
|
|
5063
5063
|
/**
|
|
5064
5064
|
* @publicApi
|
|
5065
5065
|
*/
|
|
5066
|
-
const VERSION = new Version('16.1.
|
|
5066
|
+
const VERSION = new Version('16.1.1');
|
|
5067
5067
|
|
|
5068
5068
|
/**
|
|
5069
5069
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -5313,15 +5313,15 @@ function normalizeSrc(src) {
|
|
|
5313
5313
|
* Noop image loader that does no transformation to the original src and just returns it as is.
|
|
5314
5314
|
* This loader is used as a default one if more specific logic is not provided in an app config.
|
|
5315
5315
|
*
|
|
5316
|
-
* @see
|
|
5317
|
-
* @see
|
|
5316
|
+
* @see {@link ImageLoader}
|
|
5317
|
+
* @see {@link NgOptimizedImage}
|
|
5318
5318
|
*/
|
|
5319
5319
|
const noopImageLoader = (config) => config.src;
|
|
5320
5320
|
/**
|
|
5321
5321
|
* Injection token that configures the image loader function.
|
|
5322
5322
|
*
|
|
5323
|
-
* @see
|
|
5324
|
-
* @see
|
|
5323
|
+
* @see {@link ImageLoader}
|
|
5324
|
+
* @see {@link NgOptimizedImage}
|
|
5325
5325
|
* @publicApi
|
|
5326
5326
|
*/
|
|
5327
5327
|
const IMAGE_LOADER = new InjectionToken('ImageLoader', {
|
|
@@ -5604,10 +5604,10 @@ class LCPImageObserver {
|
|
|
5604
5604
|
this.images.clear();
|
|
5605
5605
|
this.alreadyWarned.clear();
|
|
5606
5606
|
}
|
|
5607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5608
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5607
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5608
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LCPImageObserver, providedIn: 'root' }); }
|
|
5609
5609
|
}
|
|
5610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
5611
5611
|
type: Injectable,
|
|
5612
5612
|
args: [{ providedIn: 'root' }]
|
|
5613
5613
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5725,10 +5725,10 @@ class PreconnectLinkChecker {
|
|
|
5725
5725
|
this.preconnectLinks?.clear();
|
|
5726
5726
|
this.alreadySeen.clear();
|
|
5727
5727
|
}
|
|
5728
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5729
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5729
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' }); }
|
|
5730
5730
|
}
|
|
5731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
5732
5732
|
type: Injectable,
|
|
5733
5733
|
args: [{ providedIn: 'root' }]
|
|
5734
5734
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5814,10 +5814,10 @@ class PreloadLinkCreator {
|
|
|
5814
5814
|
}
|
|
5815
5815
|
renderer.appendChild(this.document.head, preload);
|
|
5816
5816
|
}
|
|
5817
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5818
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5817
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5818
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' }); }
|
|
5819
5819
|
}
|
|
5820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
5821
5821
|
type: Injectable,
|
|
5822
5822
|
args: [{ providedIn: 'root' }]
|
|
5823
5823
|
}] });
|
|
@@ -5883,7 +5883,7 @@ const defaultConfig = {
|
|
|
5883
5883
|
/**
|
|
5884
5884
|
* Injection token that configures the image optimized image functionality.
|
|
5885
5885
|
*
|
|
5886
|
-
* @see
|
|
5886
|
+
* @see {@link NgOptimizedImage}
|
|
5887
5887
|
* @publicApi
|
|
5888
5888
|
* @developerPreview
|
|
5889
5889
|
*/
|
|
@@ -6004,62 +6004,21 @@ class NgOptimizedImage {
|
|
|
6004
6004
|
* instance that might be already destroyed).
|
|
6005
6005
|
*/
|
|
6006
6006
|
this._renderedSrc = null;
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
/**
|
|
6023
|
-
* For responsive images: the intrinsic height of the image in pixels.
|
|
6024
|
-
* For fixed size images: the desired rendered height of the image in pixels.* The intrinsic
|
|
6025
|
-
* height of the image in pixels.
|
|
6026
|
-
*/
|
|
6027
|
-
set height(value) {
|
|
6028
|
-
ngDevMode && assertGreaterThanZero(this, value, 'height');
|
|
6029
|
-
this._height = inputToInteger(value);
|
|
6030
|
-
}
|
|
6031
|
-
get height() {
|
|
6032
|
-
return this._height;
|
|
6033
|
-
}
|
|
6034
|
-
/**
|
|
6035
|
-
* Indicates whether this image should have a high priority.
|
|
6036
|
-
*/
|
|
6037
|
-
set priority(value) {
|
|
6038
|
-
this._priority = inputToBoolean(value);
|
|
6039
|
-
}
|
|
6040
|
-
get priority() {
|
|
6041
|
-
return this._priority;
|
|
6042
|
-
}
|
|
6043
|
-
/**
|
|
6044
|
-
* Disables automatic srcset generation for this image.
|
|
6045
|
-
*/
|
|
6046
|
-
set disableOptimizedSrcset(value) {
|
|
6047
|
-
this._disableOptimizedSrcset = inputToBoolean(value);
|
|
6048
|
-
}
|
|
6049
|
-
get disableOptimizedSrcset() {
|
|
6050
|
-
return this._disableOptimizedSrcset;
|
|
6051
|
-
}
|
|
6052
|
-
/**
|
|
6053
|
-
* Sets the image to "fill mode", which eliminates the height/width requirement and adds
|
|
6054
|
-
* styles such that the image fills its containing element.
|
|
6055
|
-
*
|
|
6056
|
-
* @developerPreview
|
|
6057
|
-
*/
|
|
6058
|
-
set fill(value) {
|
|
6059
|
-
this._fill = inputToBoolean(value);
|
|
6060
|
-
}
|
|
6061
|
-
get fill() {
|
|
6062
|
-
return this._fill;
|
|
6007
|
+
/**
|
|
6008
|
+
* Indicates whether this image should have a high priority.
|
|
6009
|
+
*/
|
|
6010
|
+
this.priority = false;
|
|
6011
|
+
/**
|
|
6012
|
+
* Disables automatic srcset generation for this image.
|
|
6013
|
+
*/
|
|
6014
|
+
this.disableOptimizedSrcset = false;
|
|
6015
|
+
/**
|
|
6016
|
+
* Sets the image to "fill mode", which eliminates the height/width requirement and adds
|
|
6017
|
+
* styles such that the image fills its containing element.
|
|
6018
|
+
*
|
|
6019
|
+
* @developerPreview
|
|
6020
|
+
*/
|
|
6021
|
+
this.fill = false;
|
|
6063
6022
|
}
|
|
6064
6023
|
/** @nodoc */
|
|
6065
6024
|
ngOnInit() {
|
|
@@ -6078,6 +6037,12 @@ class NgOptimizedImage {
|
|
|
6078
6037
|
}
|
|
6079
6038
|
else {
|
|
6080
6039
|
assertNonEmptyWidthAndHeight(this);
|
|
6040
|
+
if (this.height !== undefined) {
|
|
6041
|
+
assertGreaterThanZero(this, this.height, 'height');
|
|
6042
|
+
}
|
|
6043
|
+
if (this.width !== undefined) {
|
|
6044
|
+
assertGreaterThanZero(this, this.width, 'width');
|
|
6045
|
+
}
|
|
6081
6046
|
// Only check for distorted images when not in fill mode, where
|
|
6082
6047
|
// images may be intentionally stretched, cropped or letterboxed.
|
|
6083
6048
|
assertNoImageDistortion(this, this.imgElement, this.renderer);
|
|
@@ -6225,7 +6190,7 @@ class NgOptimizedImage {
|
|
|
6225
6190
|
return finalSrcs.join(', ');
|
|
6226
6191
|
}
|
|
6227
6192
|
shouldGenerateAutomaticSrcset() {
|
|
6228
|
-
return !this.
|
|
6193
|
+
return !this.disableOptimizedSrcset && !this.srcset && this.imageLoader !== noopImageLoader &&
|
|
6229
6194
|
!(this.width > FIXED_SRCSET_WIDTH_LIMIT || this.height > FIXED_SRCSET_HEIGHT_LIMIT);
|
|
6230
6195
|
}
|
|
6231
6196
|
/** @nodoc */
|
|
@@ -6239,10 +6204,10 @@ class NgOptimizedImage {
|
|
|
6239
6204
|
setHostAttribute(name, value) {
|
|
6240
6205
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
6241
6206
|
}
|
|
6242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6243
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
6207
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6208
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: NgOptimizedImage, isStandalone: true, selector: "img[ngSrc]", inputs: { ngSrc: "ngSrc", ngSrcset: "ngSrcset", sizes: "sizes", width: ["width", "width", numberAttribute], height: ["height", "height", numberAttribute], loading: "loading", priority: ["priority", "priority", booleanAttribute], loaderParams: "loaderParams", disableOptimizedSrcset: ["disableOptimizedSrcset", "disableOptimizedSrcset", booleanAttribute], fill: ["fill", "fill", booleanAttribute], src: "src", srcset: "srcset" }, host: { properties: { "style.position": "fill ? \"absolute\" : null", "style.width": "fill ? \"100%\" : null", "style.height": "fill ? \"100%\" : null", "style.inset": "fill ? \"0px\" : null" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
6244
6209
|
}
|
|
6245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
6246
6211
|
type: Directive,
|
|
6247
6212
|
args: [{
|
|
6248
6213
|
standalone: true,
|
|
@@ -6255,43 +6220,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0-rc.0", ng
|
|
|
6255
6220
|
}
|
|
6256
6221
|
}]
|
|
6257
6222
|
}], propDecorators: { ngSrc: [{
|
|
6258
|
-
type: Input
|
|
6223
|
+
type: Input,
|
|
6224
|
+
args: [{ required: true }]
|
|
6259
6225
|
}], ngSrcset: [{
|
|
6260
6226
|
type: Input
|
|
6261
6227
|
}], sizes: [{
|
|
6262
6228
|
type: Input
|
|
6263
6229
|
}], width: [{
|
|
6264
|
-
type: Input
|
|
6230
|
+
type: Input,
|
|
6231
|
+
args: [{ transform: numberAttribute }]
|
|
6265
6232
|
}], height: [{
|
|
6266
|
-
type: Input
|
|
6233
|
+
type: Input,
|
|
6234
|
+
args: [{ transform: numberAttribute }]
|
|
6267
6235
|
}], loading: [{
|
|
6268
6236
|
type: Input
|
|
6269
6237
|
}], priority: [{
|
|
6270
|
-
type: Input
|
|
6238
|
+
type: Input,
|
|
6239
|
+
args: [{ transform: booleanAttribute }]
|
|
6271
6240
|
}], loaderParams: [{
|
|
6272
6241
|
type: Input
|
|
6273
6242
|
}], disableOptimizedSrcset: [{
|
|
6274
|
-
type: Input
|
|
6243
|
+
type: Input,
|
|
6244
|
+
args: [{ transform: booleanAttribute }]
|
|
6275
6245
|
}], fill: [{
|
|
6276
|
-
type: Input
|
|
6246
|
+
type: Input,
|
|
6247
|
+
args: [{ transform: booleanAttribute }]
|
|
6277
6248
|
}], src: [{
|
|
6278
6249
|
type: Input
|
|
6279
6250
|
}], srcset: [{
|
|
6280
6251
|
type: Input
|
|
6281
6252
|
}] } });
|
|
6282
6253
|
/***** Helpers *****/
|
|
6283
|
-
/**
|
|
6284
|
-
* Convert input value to integer.
|
|
6285
|
-
*/
|
|
6286
|
-
function inputToInteger(value) {
|
|
6287
|
-
return typeof value === 'string' ? parseInt(value, 10) : value;
|
|
6288
|
-
}
|
|
6289
|
-
/**
|
|
6290
|
-
* Convert input value to boolean.
|
|
6291
|
-
*/
|
|
6292
|
-
function inputToBoolean(value) {
|
|
6293
|
-
return value != null && `${value}` !== 'false';
|
|
6294
|
-
}
|
|
6295
6254
|
/**
|
|
6296
6255
|
* Sorts provided config breakpoints and uses defaults.
|
|
6297
6256
|
*/
|
|
@@ -6451,9 +6410,8 @@ function assertGreaterThanZero(dir, inputValue, inputName) {
|
|
|
6451
6410
|
const validNumber = typeof inputValue === 'number' && inputValue > 0;
|
|
6452
6411
|
const validString = typeof inputValue === 'string' && /^\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;
|
|
6453
6412
|
if (!validNumber && !validString) {
|
|
6454
|
-
throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`${inputName}\` has an invalid value ` +
|
|
6455
|
-
`
|
|
6456
|
-
`as a number greater than 0.`);
|
|
6413
|
+
throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`${inputName}\` has an invalid value. ` +
|
|
6414
|
+
`To fix this, provide \`${inputName}\` as a number greater than 0.`);
|
|
6457
6415
|
}
|
|
6458
6416
|
}
|
|
6459
6417
|
/**
|