@angular/common 19.2.1 → 20.0.0-next.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/fesm2022/common.mjs +148 -127
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +37 -37
- package/fesm2022/testing.mjs +13 -13
- 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 +2 -1
- 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
|
|
2
|
+
* @license Angular v20.0.0-next.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { Injectable, InjectionToken, inject, Optional, Inject, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef,
|
|
8
|
+
import { Injectable, InjectionToken, inject, Optional, Inject, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, ɵformatRuntimeError, ɵRuntimeError, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, Host, Attribute, RendererStyleFlags2, untracked, ɵINTERNAL_APPLICATION_ERROR_HANDLER, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, PLATFORM_ID, ɵIMAGE_CONFIG, Renderer2, ElementRef, Injector, DestroyRef, ɵperformanceMarkFeature, NgZone, ApplicationRef, ChangeDetectorRef, numberAttribute, booleanAttribute, ɵIMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue } from '@angular/core';
|
|
9
9
|
export { ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';
|
|
10
10
|
import { Subject } from 'rxjs';
|
|
11
11
|
|
|
@@ -30,10 +30,10 @@ class DomAdapter {
|
|
|
30
30
|
* implementations.
|
|
31
31
|
*/
|
|
32
32
|
class PlatformNavigation {
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
34
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation });
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PlatformNavigation, decorators: [{
|
|
37
37
|
type: Injectable,
|
|
38
38
|
args: [{ providedIn: 'platform', useFactory: () => window.navigation }]
|
|
39
39
|
}] });
|
|
@@ -73,10 +73,10 @@ class PlatformLocation {
|
|
|
73
73
|
historyGo(relativePosition) {
|
|
74
74
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
75
75
|
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
77
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) });
|
|
78
78
|
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PlatformLocation, decorators: [{
|
|
80
80
|
type: Injectable,
|
|
81
81
|
args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]
|
|
82
82
|
}] });
|
|
@@ -158,10 +158,10 @@ class BrowserPlatformLocation extends PlatformLocation {
|
|
|
158
158
|
getState() {
|
|
159
159
|
return this._history.state;
|
|
160
160
|
}
|
|
161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
162
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
162
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() });
|
|
163
163
|
}
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
|
|
165
165
|
type: Injectable,
|
|
166
166
|
args: [{
|
|
167
167
|
providedIn: 'platform',
|
|
@@ -242,10 +242,10 @@ class LocationStrategy {
|
|
|
242
242
|
historyGo(relativePosition) {
|
|
243
243
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
244
244
|
}
|
|
245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
246
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
246
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) });
|
|
247
247
|
}
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
249
249
|
type: Injectable,
|
|
250
250
|
args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]
|
|
251
251
|
}] });
|
|
@@ -357,10 +357,10 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
357
357
|
historyGo(relativePosition = 0) {
|
|
358
358
|
this._platformLocation.historyGo?.(relativePosition);
|
|
359
359
|
}
|
|
360
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
361
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
360
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
361
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' });
|
|
362
362
|
}
|
|
363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
364
364
|
type: Injectable,
|
|
365
365
|
args: [{ providedIn: 'root' }]
|
|
366
366
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -443,10 +443,10 @@ class HashLocationStrategy extends LocationStrategy {
|
|
|
443
443
|
historyGo(relativePosition = 0) {
|
|
444
444
|
this._platformLocation.historyGo?.(relativePosition);
|
|
445
445
|
}
|
|
446
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
447
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
446
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
447
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HashLocationStrategy });
|
|
448
448
|
}
|
|
449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: HashLocationStrategy, decorators: [{
|
|
450
450
|
type: Injectable
|
|
451
451
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
452
452
|
type: Optional
|
|
@@ -700,10 +700,10 @@ class Location {
|
|
|
700
700
|
* @returns The URL string, modified if needed.
|
|
701
701
|
*/
|
|
702
702
|
static stripTrailingSlash = stripTrailingSlash;
|
|
703
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
704
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
703
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
704
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });
|
|
705
705
|
}
|
|
706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: Location, decorators: [{
|
|
707
707
|
type: Injectable,
|
|
708
708
|
args: [{
|
|
709
709
|
providedIn: 'root',
|
|
@@ -1502,6 +1502,9 @@ function formatDate(value, format, locale, timezone) {
|
|
|
1502
1502
|
break;
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1506
|
+
assertValidDateFormat(parts);
|
|
1507
|
+
}
|
|
1505
1508
|
let dateTimezoneOffset = date.getTimezoneOffset();
|
|
1506
1509
|
if (timezone) {
|
|
1507
1510
|
dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
|
|
@@ -1518,6 +1521,27 @@ function formatDate(value, format, locale, timezone) {
|
|
|
1518
1521
|
});
|
|
1519
1522
|
return text;
|
|
1520
1523
|
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Asserts that the given date format is free from common mistakes. Throws an
|
|
1526
|
+
* error if one is found (except for the case of all "Y", in which case we just
|
|
1527
|
+
* log a warning). This should only be called in development mode.
|
|
1528
|
+
*/
|
|
1529
|
+
function assertValidDateFormat(parts) {
|
|
1530
|
+
if (parts.some((part) => /^Y+$/.test(part)) && !parts.some((part) => /^w+$/.test(part))) {
|
|
1531
|
+
// "Y" indicates "week-based year", which differs from the actual calendar
|
|
1532
|
+
// year for a few days around Jan 1 most years. Unless "w" is also
|
|
1533
|
+
// present (e.g. a date like "2024-W52") this is likely a mistake. Users
|
|
1534
|
+
// probably meant "y" instead.
|
|
1535
|
+
const message = `Suspicious use of week-based year "Y" in date pattern "${parts.join('')}". Did you mean to use calendar year "y" instead?`;
|
|
1536
|
+
if (parts.length === 1) {
|
|
1537
|
+
// NOTE: allow "YYYY" with just a warning, since it's used in tests.
|
|
1538
|
+
console.error(ɵformatRuntimeError(2300 /* RuntimeErrorCode.SUSPICIOUS_DATE_FORMAT */, message));
|
|
1539
|
+
}
|
|
1540
|
+
else {
|
|
1541
|
+
throw new ɵRuntimeError(2300 /* RuntimeErrorCode.SUSPICIOUS_DATE_FORMAT */, message);
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1521
1545
|
/**
|
|
1522
1546
|
* Create a new Date object with the given date value, and the time set to midnight.
|
|
1523
1547
|
*
|
|
@@ -2580,10 +2604,10 @@ function parseIntAutoRadix(text) {
|
|
|
2580
2604
|
* @publicApi
|
|
2581
2605
|
*/
|
|
2582
2606
|
class NgLocalization {
|
|
2583
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2584
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2607
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2608
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] });
|
|
2585
2609
|
}
|
|
2586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgLocalization, decorators: [{
|
|
2587
2611
|
type: Injectable,
|
|
2588
2612
|
args: [{
|
|
2589
2613
|
providedIn: 'root',
|
|
@@ -2638,10 +2662,10 @@ class NgLocaleLocalization extends NgLocalization {
|
|
|
2638
2662
|
return 'other';
|
|
2639
2663
|
}
|
|
2640
2664
|
}
|
|
2641
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2642
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2665
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2666
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgLocaleLocalization });
|
|
2643
2667
|
}
|
|
2644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgLocaleLocalization, decorators: [{
|
|
2645
2669
|
type: Injectable
|
|
2646
2670
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2647
2671
|
type: Inject,
|
|
@@ -2822,10 +2846,10 @@ class NgClass {
|
|
|
2822
2846
|
});
|
|
2823
2847
|
}
|
|
2824
2848
|
}
|
|
2825
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2826
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2849
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgClass, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2850
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgClass, isStandalone: true, selector: "[ngClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass" }, ngImport: i0 });
|
|
2827
2851
|
}
|
|
2828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgClass, decorators: [{
|
|
2829
2853
|
type: Directive,
|
|
2830
2854
|
args: [{
|
|
2831
2855
|
selector: '[ngClass]',
|
|
@@ -3012,10 +3036,10 @@ class NgComponentOutlet {
|
|
|
3012
3036
|
}
|
|
3013
3037
|
}
|
|
3014
3038
|
}
|
|
3015
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3016
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3039
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3040
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgComponentOutlet, isStandalone: true, selector: "[ngComponentOutlet]", inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInputs: "ngComponentOutletInputs", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModule: "ngComponentOutletNgModule", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, exportAs: ["ngComponentOutlet"], usesOnChanges: true, ngImport: i0 });
|
|
3017
3041
|
}
|
|
3018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgComponentOutlet, decorators: [{
|
|
3019
3043
|
type: Directive,
|
|
3020
3044
|
args: [{
|
|
3021
3045
|
selector: '[ngComponentOutlet]',
|
|
@@ -3322,10 +3346,10 @@ class NgForOf {
|
|
|
3322
3346
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3323
3347
|
return true;
|
|
3324
3348
|
}
|
|
3325
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3326
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3350
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgForOf, isStandalone: true, selector: "[ngFor][ngForOf]", inputs: { ngForOf: "ngForOf", ngForTrackBy: "ngForTrackBy", ngForTemplate: "ngForTemplate" }, ngImport: i0 });
|
|
3327
3351
|
}
|
|
3328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgForOf, decorators: [{
|
|
3329
3353
|
type: Directive,
|
|
3330
3354
|
args: [{
|
|
3331
3355
|
selector: '[ngFor][ngForOf]',
|
|
@@ -3559,10 +3583,10 @@ class NgIf {
|
|
|
3559
3583
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3560
3584
|
return true;
|
|
3561
3585
|
}
|
|
3562
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3563
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3586
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3587
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgIf, isStandalone: true, selector: "[ngIf]", inputs: { ngIf: "ngIf", ngIfThen: "ngIfThen", ngIfElse: "ngIfElse" }, ngImport: i0 });
|
|
3564
3588
|
}
|
|
3565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgIf, decorators: [{
|
|
3566
3590
|
type: Directive,
|
|
3567
3591
|
args: [{
|
|
3568
3592
|
selector: '[ngIf]',
|
|
@@ -3720,10 +3744,10 @@ class NgSwitch {
|
|
|
3720
3744
|
}
|
|
3721
3745
|
}
|
|
3722
3746
|
}
|
|
3723
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3724
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3747
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3748
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgSwitch, isStandalone: true, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 });
|
|
3725
3749
|
}
|
|
3726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgSwitch, decorators: [{
|
|
3727
3751
|
type: Directive,
|
|
3728
3752
|
args: [{
|
|
3729
3753
|
selector: '[ngSwitch]',
|
|
@@ -3786,10 +3810,10 @@ class NgSwitchCase {
|
|
|
3786
3810
|
ngDoCheck() {
|
|
3787
3811
|
this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
|
|
3788
3812
|
}
|
|
3789
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3790
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3813
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3814
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgSwitchCase, isStandalone: true, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 });
|
|
3791
3815
|
}
|
|
3792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgSwitchCase, decorators: [{
|
|
3793
3817
|
type: Directive,
|
|
3794
3818
|
args: [{
|
|
3795
3819
|
selector: '[ngSwitchCase]',
|
|
@@ -3822,10 +3846,10 @@ class NgSwitchDefault {
|
|
|
3822
3846
|
}
|
|
3823
3847
|
ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
|
|
3824
3848
|
}
|
|
3825
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3826
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3849
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3850
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgSwitchDefault, isStandalone: true, selector: "[ngSwitchDefault]", ngImport: i0 });
|
|
3827
3851
|
}
|
|
3828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgSwitchDefault, decorators: [{
|
|
3829
3853
|
type: Directive,
|
|
3830
3854
|
args: [{
|
|
3831
3855
|
selector: '[ngSwitchDefault]',
|
|
@@ -3901,10 +3925,10 @@ class NgPlural {
|
|
|
3901
3925
|
this._activeView.create();
|
|
3902
3926
|
}
|
|
3903
3927
|
}
|
|
3904
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3905
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3928
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3929
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgPlural, isStandalone: true, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 });
|
|
3906
3930
|
}
|
|
3907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgPlural, decorators: [{
|
|
3908
3932
|
type: Directive,
|
|
3909
3933
|
args: [{
|
|
3910
3934
|
selector: '[ngPlural]',
|
|
@@ -3939,10 +3963,10 @@ class NgPluralCase {
|
|
|
3939
3963
|
const isANumber = !isNaN(Number(value));
|
|
3940
3964
|
ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
|
|
3941
3965
|
}
|
|
3942
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3943
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3966
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3967
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgPluralCase, isStandalone: true, selector: "[ngPluralCase]", ngImport: i0 });
|
|
3944
3968
|
}
|
|
3945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgPluralCase, decorators: [{
|
|
3946
3970
|
type: Directive,
|
|
3947
3971
|
args: [{
|
|
3948
3972
|
selector: '[ngPluralCase]',
|
|
@@ -4035,10 +4059,10 @@ class NgStyle {
|
|
|
4035
4059
|
changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
4036
4060
|
changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
4037
4061
|
}
|
|
4038
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4039
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4062
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4063
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgStyle, isStandalone: true, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 });
|
|
4040
4064
|
}
|
|
4041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgStyle, decorators: [{
|
|
4042
4066
|
type: Directive,
|
|
4043
4067
|
args: [{
|
|
4044
4068
|
selector: '[ngStyle]',
|
|
@@ -4139,10 +4163,10 @@ class NgTemplateOutlet {
|
|
|
4139
4163
|
},
|
|
4140
4164
|
});
|
|
4141
4165
|
}
|
|
4142
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4143
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4166
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4167
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.1", type: NgTemplateOutlet, isStandalone: true, selector: "[ngTemplateOutlet]", inputs: { ngTemplateOutletContext: "ngTemplateOutletContext", ngTemplateOutlet: "ngTemplateOutlet", ngTemplateOutletInjector: "ngTemplateOutletInjector" }, usesOnChanges: true, ngImport: i0 });
|
|
4144
4168
|
}
|
|
4145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgTemplateOutlet, decorators: [{
|
|
4146
4170
|
type: Directive,
|
|
4147
4171
|
args: [{
|
|
4148
4172
|
selector: '[ngTemplateOutlet]',
|
|
@@ -4178,7 +4202,7 @@ function invalidPipeArgumentError(type, value) {
|
|
|
4178
4202
|
}
|
|
4179
4203
|
|
|
4180
4204
|
class SubscribableStrategy {
|
|
4181
|
-
createSubscription(async, updateLatestValue) {
|
|
4205
|
+
createSubscription(async, updateLatestValue, onError) {
|
|
4182
4206
|
// Subscription can be side-effectful, and we don't want any signal reads which happen in the
|
|
4183
4207
|
// side effect of the subscription to be tracked by a component's template when that
|
|
4184
4208
|
// subscription is triggered via the async pipe. So we wrap the subscription in `untracked` to
|
|
@@ -4188,9 +4212,7 @@ class SubscribableStrategy {
|
|
|
4188
4212
|
// being treated as signal writes during the template evaluation (which throws errors).
|
|
4189
4213
|
return untracked(() => async.subscribe({
|
|
4190
4214
|
next: updateLatestValue,
|
|
4191
|
-
error:
|
|
4192
|
-
throw e;
|
|
4193
|
-
},
|
|
4215
|
+
error: onError,
|
|
4194
4216
|
}));
|
|
4195
4217
|
}
|
|
4196
4218
|
dispose(subscription) {
|
|
@@ -4199,10 +4221,8 @@ class SubscribableStrategy {
|
|
|
4199
4221
|
}
|
|
4200
4222
|
}
|
|
4201
4223
|
class PromiseStrategy {
|
|
4202
|
-
createSubscription(async, updateLatestValue) {
|
|
4203
|
-
return async.then(updateLatestValue,
|
|
4204
|
-
throw e;
|
|
4205
|
-
});
|
|
4224
|
+
createSubscription(async, updateLatestValue, onError) {
|
|
4225
|
+
return async.then(updateLatestValue, onError);
|
|
4206
4226
|
}
|
|
4207
4227
|
dispose(subscription) { }
|
|
4208
4228
|
}
|
|
@@ -4243,6 +4263,7 @@ class AsyncPipe {
|
|
|
4243
4263
|
_subscription = null;
|
|
4244
4264
|
_obj = null;
|
|
4245
4265
|
_strategy = null;
|
|
4266
|
+
applicationErrorHandler = inject(ɵINTERNAL_APPLICATION_ERROR_HANDLER);
|
|
4246
4267
|
constructor(ref) {
|
|
4247
4268
|
// Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor
|
|
4248
4269
|
// parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.
|
|
@@ -4283,7 +4304,7 @@ class AsyncPipe {
|
|
|
4283
4304
|
_subscribe(obj) {
|
|
4284
4305
|
this._obj = obj;
|
|
4285
4306
|
this._strategy = this._selectStrategy(obj);
|
|
4286
|
-
this._subscription = this._strategy.createSubscription(obj, (value) => this._updateLatestValue(obj, value));
|
|
4307
|
+
this._subscription = this._strategy.createSubscription(obj, (value) => this._updateLatestValue(obj, value), (e) => this.applicationErrorHandler(e));
|
|
4287
4308
|
}
|
|
4288
4309
|
_selectStrategy(obj) {
|
|
4289
4310
|
if (ɵisPromise(obj)) {
|
|
@@ -4310,10 +4331,10 @@ class AsyncPipe {
|
|
|
4310
4331
|
}
|
|
4311
4332
|
}
|
|
4312
4333
|
}
|
|
4313
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4314
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4335
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: AsyncPipe, isStandalone: true, name: "async", pure: false });
|
|
4315
4336
|
}
|
|
4316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: AsyncPipe, decorators: [{
|
|
4317
4338
|
type: Pipe,
|
|
4318
4339
|
args: [{
|
|
4319
4340
|
name: 'async',
|
|
@@ -4345,10 +4366,10 @@ class LowerCasePipe {
|
|
|
4345
4366
|
}
|
|
4346
4367
|
return value.toLowerCase();
|
|
4347
4368
|
}
|
|
4348
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4349
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4369
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4370
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: "lowercase" });
|
|
4350
4371
|
}
|
|
4351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LowerCasePipe, decorators: [{
|
|
4352
4373
|
type: Pipe,
|
|
4353
4374
|
args: [{
|
|
4354
4375
|
name: 'lowercase',
|
|
@@ -4389,10 +4410,10 @@ class TitleCasePipe {
|
|
|
4389
4410
|
}
|
|
4390
4411
|
return value.replace(unicodeWordMatch, (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase());
|
|
4391
4412
|
}
|
|
4392
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4393
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4413
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4414
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: "titlecase" });
|
|
4394
4415
|
}
|
|
4395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: TitleCasePipe, decorators: [{
|
|
4396
4417
|
type: Pipe,
|
|
4397
4418
|
args: [{
|
|
4398
4419
|
name: 'titlecase',
|
|
@@ -4415,10 +4436,10 @@ class UpperCasePipe {
|
|
|
4415
4436
|
}
|
|
4416
4437
|
return value.toUpperCase();
|
|
4417
4438
|
}
|
|
4418
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4419
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4439
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4440
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: "uppercase" });
|
|
4420
4441
|
}
|
|
4421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: UpperCasePipe, decorators: [{
|
|
4422
4443
|
type: Pipe,
|
|
4423
4444
|
args: [{
|
|
4424
4445
|
name: 'uppercase',
|
|
@@ -4649,10 +4670,10 @@ class DatePipe {
|
|
|
4649
4670
|
throw invalidPipeArgumentError(DatePipe, error.message);
|
|
4650
4671
|
}
|
|
4651
4672
|
}
|
|
4652
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4653
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4673
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.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 });
|
|
4674
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: DatePipe, isStandalone: true, name: "date" });
|
|
4654
4675
|
}
|
|
4655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DatePipe, decorators: [{
|
|
4656
4677
|
type: Pipe,
|
|
4657
4678
|
args: [{
|
|
4658
4679
|
name: 'date',
|
|
@@ -4708,10 +4729,10 @@ class I18nPluralPipe {
|
|
|
4708
4729
|
const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
|
|
4709
4730
|
return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
|
|
4710
4731
|
}
|
|
4711
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4712
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4732
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4733
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: "i18nPlural" });
|
|
4713
4734
|
}
|
|
4714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: I18nPluralPipe, decorators: [{
|
|
4715
4736
|
type: Pipe,
|
|
4716
4737
|
args: [{
|
|
4717
4738
|
name: 'i18nPlural',
|
|
@@ -4755,10 +4776,10 @@ class I18nSelectPipe {
|
|
|
4755
4776
|
}
|
|
4756
4777
|
return '';
|
|
4757
4778
|
}
|
|
4758
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4759
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4779
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4780
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: "i18nSelect" });
|
|
4760
4781
|
}
|
|
4761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: I18nSelectPipe, decorators: [{
|
|
4762
4783
|
type: Pipe,
|
|
4763
4784
|
args: [{
|
|
4764
4785
|
name: 'i18nSelect',
|
|
@@ -4787,10 +4808,10 @@ class JsonPipe {
|
|
|
4787
4808
|
transform(value) {
|
|
4788
4809
|
return JSON.stringify(value, null, 2);
|
|
4789
4810
|
}
|
|
4790
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4791
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4811
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4812
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: JsonPipe, isStandalone: true, name: "json", pure: false });
|
|
4792
4813
|
}
|
|
4793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: JsonPipe, decorators: [{
|
|
4794
4815
|
type: Pipe,
|
|
4795
4816
|
args: [{
|
|
4796
4817
|
name: 'json',
|
|
@@ -4852,10 +4873,10 @@ class KeyValuePipe {
|
|
|
4852
4873
|
}
|
|
4853
4874
|
return this.keyValues;
|
|
4854
4875
|
}
|
|
4855
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4856
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4876
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4877
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: "keyvalue", pure: false });
|
|
4857
4878
|
}
|
|
4858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: KeyValuePipe, decorators: [{
|
|
4859
4880
|
type: Pipe,
|
|
4860
4881
|
args: [{
|
|
4861
4882
|
name: 'keyvalue',
|
|
@@ -4972,10 +4993,10 @@ class DecimalPipe {
|
|
|
4972
4993
|
throw invalidPipeArgumentError(DecimalPipe, error.message);
|
|
4973
4994
|
}
|
|
4974
4995
|
}
|
|
4975
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4976
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4996
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4997
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: DecimalPipe, isStandalone: true, name: "number" });
|
|
4977
4998
|
}
|
|
4978
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DecimalPipe, decorators: [{
|
|
4979
5000
|
type: Pipe,
|
|
4980
5001
|
args: [{
|
|
4981
5002
|
name: 'number',
|
|
@@ -5037,10 +5058,10 @@ class PercentPipe {
|
|
|
5037
5058
|
throw invalidPipeArgumentError(PercentPipe, error.message);
|
|
5038
5059
|
}
|
|
5039
5060
|
}
|
|
5040
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5041
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5061
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5062
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: PercentPipe, isStandalone: true, name: "percent" });
|
|
5042
5063
|
}
|
|
5043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PercentPipe, decorators: [{
|
|
5044
5065
|
type: Pipe,
|
|
5045
5066
|
args: [{
|
|
5046
5067
|
name: 'percent',
|
|
@@ -5104,10 +5125,10 @@ class CurrencyPipe {
|
|
|
5104
5125
|
throw invalidPipeArgumentError(CurrencyPipe, error.message);
|
|
5105
5126
|
}
|
|
5106
5127
|
}
|
|
5107
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5108
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5128
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5129
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: "currency" });
|
|
5109
5130
|
}
|
|
5110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: CurrencyPipe, decorators: [{
|
|
5111
5132
|
type: Pipe,
|
|
5112
5133
|
args: [{
|
|
5113
5134
|
name: 'currency',
|
|
@@ -5181,10 +5202,10 @@ class SlicePipe {
|
|
|
5181
5202
|
}
|
|
5182
5203
|
return value.slice(start, end);
|
|
5183
5204
|
}
|
|
5184
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5185
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5205
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5206
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice", pure: false });
|
|
5186
5207
|
}
|
|
5187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: SlicePipe, decorators: [{
|
|
5188
5209
|
type: Pipe,
|
|
5189
5210
|
args: [{
|
|
5190
5211
|
name: 'slice',
|
|
@@ -5227,11 +5248,11 @@ const COMMON_PIPES = [
|
|
|
5227
5248
|
* @publicApi
|
|
5228
5249
|
*/
|
|
5229
5250
|
class CommonModule {
|
|
5230
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5231
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5232
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5251
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5252
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.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] });
|
|
5253
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: CommonModule });
|
|
5233
5254
|
}
|
|
5234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: CommonModule, decorators: [{
|
|
5235
5256
|
type: NgModule,
|
|
5236
5257
|
args: [{
|
|
5237
5258
|
imports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
@@ -5264,7 +5285,7 @@ function isPlatformServer(platformId) {
|
|
|
5264
5285
|
/**
|
|
5265
5286
|
* @publicApi
|
|
5266
5287
|
*/
|
|
5267
|
-
const VERSION = new Version('
|
|
5288
|
+
const VERSION = new Version('20.0.0-next.1');
|
|
5268
5289
|
|
|
5269
5290
|
/**
|
|
5270
5291
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -5882,10 +5903,10 @@ class LCPImageObserver {
|
|
|
5882
5903
|
this.observer.disconnect();
|
|
5883
5904
|
this.images.clear();
|
|
5884
5905
|
}
|
|
5885
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5886
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5906
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5907
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
|
|
5887
5908
|
}
|
|
5888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
5889
5910
|
type: Injectable,
|
|
5890
5911
|
args: [{ providedIn: 'root' }]
|
|
5891
5912
|
}], ctorParameters: () => [] });
|
|
@@ -6004,10 +6025,10 @@ class PreconnectLinkChecker {
|
|
|
6004
6025
|
this.preconnectLinks?.clear();
|
|
6005
6026
|
this.alreadySeen.clear();
|
|
6006
6027
|
}
|
|
6007
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6008
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6028
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6029
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
|
|
6009
6030
|
}
|
|
6010
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
6011
6032
|
type: Injectable,
|
|
6012
6033
|
args: [{ providedIn: 'root' }]
|
|
6013
6034
|
}], ctorParameters: () => [] });
|
|
@@ -6094,10 +6115,10 @@ class PreloadLinkCreator {
|
|
|
6094
6115
|
}
|
|
6095
6116
|
renderer.appendChild(this.document.head, preload);
|
|
6096
6117
|
}
|
|
6097
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6098
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6118
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6119
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
|
|
6099
6120
|
}
|
|
6100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
6101
6122
|
type: Injectable,
|
|
6102
6123
|
args: [{ providedIn: 'root' }]
|
|
6103
6124
|
}] });
|
|
@@ -6675,10 +6696,10 @@ class NgOptimizedImage {
|
|
|
6675
6696
|
setHostAttribute(name, value) {
|
|
6676
6697
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
6677
6698
|
}
|
|
6678
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6679
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
6699
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6700
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.1", type: NgOptimizedImage, isStandalone: true, selector: "img[ngSrc]", inputs: { ngSrc: ["ngSrc", "ngSrc", unwrapSafeUrl], 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], placeholder: ["placeholder", "placeholder", booleanOrUrlAttribute], placeholderConfig: "placeholderConfig", src: "src", srcset: "srcset" }, host: { properties: { "style.position": "fill ? \"absolute\" : null", "style.width": "fill ? \"100%\" : null", "style.height": "fill ? \"100%\" : null", "style.inset": "fill ? \"0\" : null", "style.background-size": "placeholder ? \"cover\" : null", "style.background-position": "placeholder ? \"50% 50%\" : null", "style.background-repeat": "placeholder ? \"no-repeat\" : null", "style.background-image": "placeholder ? generatePlaceholder(placeholder) : null", "style.filter": "placeholder && shouldBlurPlaceholder(placeholderConfig) ? \"blur(15px)\" : null" } }, usesOnChanges: true, ngImport: i0 });
|
|
6680
6701
|
}
|
|
6681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
6682
6703
|
type: Directive,
|
|
6683
6704
|
args: [{
|
|
6684
6705
|
selector: 'img[ngSrc]',
|