@angular/common 16.2.0-next.1 → 16.2.0-next.3
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 +30 -23
- 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 +3 -3
- package/esm2022/src/directives/ng_if.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +37 -12
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +43 -28
- 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 +9 -9
- package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2022/src/errors.mjs +1 -1
- 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 +9 -9
- package/esm2022/src/pipes/date_pipe.mjs +3 -3
- 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 +9 -9
- package/esm2022/src/pipes/slice_pipe.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/src/viewport_scroller.mjs +3 -34
- 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 +188 -179
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +63 -56
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +2 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +7 -4
- 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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.2.0-next.
|
|
2
|
+
* @license Angular v16.2.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -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.2.0-next.
|
|
65
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
65
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }); }
|
|
66
66
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
148
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
148
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() }); }
|
|
149
149
|
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
237
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
237
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }); }
|
|
238
238
|
}
|
|
239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
347
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
346
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' }); }
|
|
348
348
|
}
|
|
349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
438
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", ngImport: i0, type: HashLocationStrategy }); }
|
|
439
439
|
}
|
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
690
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation }); }
|
|
691
691
|
}
|
|
692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: Location, decorators: [{
|
|
693
693
|
type: Injectable,
|
|
694
694
|
args: [{
|
|
695
695
|
providedIn: 'root',
|
|
@@ -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.2.0-next.
|
|
2485
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
2484
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2485
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
2487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
2542
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
2541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2542
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgLocaleLocalization }); }
|
|
2543
2543
|
}
|
|
2544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
2544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
2718
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
2717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", 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.2.0-next.
|
|
2720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
2832
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
2831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2832
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
2834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgComponentOutlet, decorators: [{
|
|
2835
2835
|
type: Directive,
|
|
2836
2836
|
args: [{
|
|
2837
2837
|
selector: '[ngComponentOutlet]',
|
|
@@ -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.2.0-next.
|
|
3113
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", 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.2.0-next.
|
|
3115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
3341
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", 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.2.0-next.
|
|
3343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgIf, decorators: [{
|
|
3344
3344
|
type: Directive,
|
|
3345
3345
|
args: [{
|
|
3346
3346
|
selector: '[ngIf]',
|
|
@@ -3500,10 +3500,10 @@ class NgSwitch {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
3504
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3503
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3504
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.3", type: NgSwitch, isStandalone: true, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 }); }
|
|
3505
3505
|
}
|
|
3506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
3506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgSwitch, decorators: [{
|
|
3507
3507
|
type: Directive,
|
|
3508
3508
|
args: [{
|
|
3509
3509
|
selector: '[ngSwitch]',
|
|
@@ -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.2.0-next.
|
|
3565
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3564
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", type: NgSwitchCase, isStandalone: true, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 }); }
|
|
3566
3566
|
}
|
|
3567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
3567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgSwitchCase, decorators: [{
|
|
3568
3568
|
type: Directive,
|
|
3569
3569
|
args: [{
|
|
3570
3570
|
selector: '[ngSwitchCase]',
|
|
@@ -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.2.0-next.
|
|
3602
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3601
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", type: NgSwitchDefault, isStandalone: true, selector: "[ngSwitchDefault]", ngImport: i0 }); }
|
|
3603
3603
|
}
|
|
3604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
3604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
3680
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3679
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3680
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.3", type: NgPlural, isStandalone: true, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 }); }
|
|
3681
3681
|
}
|
|
3682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
3682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
3718
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", type: NgPluralCase, isStandalone: true, selector: "[ngPluralCase]", ngImport: i0 }); }
|
|
3719
3719
|
}
|
|
3720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
3720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
3807
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3806
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", type: NgStyle, isStandalone: true, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 }); }
|
|
3808
3808
|
}
|
|
3809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
3809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
3883
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
3882
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3883
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
3885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
4044
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4043
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4044
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: AsyncPipe, isStandalone: true, name: "async", pure: false }); }
|
|
4045
4045
|
}
|
|
4046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: AsyncPipe, decorators: [{
|
|
4047
4047
|
type: Pipe,
|
|
4048
4048
|
args: [{
|
|
4049
4049
|
name: 'async',
|
|
@@ -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.2.0-next.
|
|
4080
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4080
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: "lowercase" }); }
|
|
4081
4081
|
}
|
|
4082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: LowerCasePipe, decorators: [{
|
|
4083
4083
|
type: Pipe,
|
|
4084
4084
|
args: [{
|
|
4085
4085
|
name: 'lowercase',
|
|
@@ -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.2.0-next.
|
|
4125
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4125
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: "titlecase" }); }
|
|
4126
4126
|
}
|
|
4127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: TitleCasePipe, decorators: [{
|
|
4128
4128
|
type: Pipe,
|
|
4129
4129
|
args: [{
|
|
4130
4130
|
name: 'titlecase',
|
|
@@ -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.2.0-next.
|
|
4152
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4152
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: "uppercase" }); }
|
|
4153
4153
|
}
|
|
4154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: UpperCasePipe, decorators: [{
|
|
4155
4155
|
type: Pipe,
|
|
4156
4156
|
args: [{
|
|
4157
4157
|
name: 'uppercase',
|
|
@@ -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.2.0-next.
|
|
4385
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4384
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", ngImport: i0, type: DatePipe, isStandalone: true, name: "date" }); }
|
|
4386
4386
|
}
|
|
4387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
4445
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4445
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: "i18nPlural" }); }
|
|
4446
4446
|
}
|
|
4447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
4494
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4493
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4494
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: "i18nSelect" }); }
|
|
4495
4495
|
}
|
|
4496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
4528
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4528
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: JsonPipe, isStandalone: true, name: "json", pure: false }); }
|
|
4529
4529
|
}
|
|
4530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
4591
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4590
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4591
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: "keyvalue", pure: false }); }
|
|
4592
4592
|
}
|
|
4593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: KeyValuePipe, decorators: [{
|
|
4594
4594
|
type: Pipe,
|
|
4595
4595
|
args: [{
|
|
4596
4596
|
name: 'keyvalue',
|
|
@@ -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.2.0-next.
|
|
4719
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4718
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4719
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: DecimalPipe, isStandalone: true, name: "number" }); }
|
|
4720
4720
|
}
|
|
4721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: DecimalPipe, decorators: [{
|
|
4722
4722
|
type: Pipe,
|
|
4723
4723
|
args: [{
|
|
4724
4724
|
name: 'number',
|
|
@@ -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.2.0-next.
|
|
4784
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4783
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4784
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: PercentPipe, isStandalone: true, name: "percent" }); }
|
|
4785
4785
|
}
|
|
4786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PercentPipe, decorators: [{
|
|
4787
4787
|
type: Pipe,
|
|
4788
4788
|
args: [{
|
|
4789
4789
|
name: 'percent',
|
|
@@ -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.2.0-next.
|
|
4883
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4882
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.3", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: "currency" }); }
|
|
4884
4884
|
}
|
|
4885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
4963
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
4962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4963
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.0-next.3", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice", pure: false }); }
|
|
4964
4964
|
}
|
|
4965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
4965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
5010
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
5011
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5010
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0-next.3", 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.2.0-next.3", ngImport: i0, type: CommonModule }); }
|
|
5012
5012
|
}
|
|
5013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", 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.2.0-next.
|
|
5066
|
+
const VERSION = new Version('16.2.0-next.3');
|
|
5067
5067
|
|
|
5068
5068
|
/**
|
|
5069
5069
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -5155,11 +5155,8 @@ class BrowserViewportScroller {
|
|
|
5155
5155
|
* Disables automatic scroll restoration provided by the browser.
|
|
5156
5156
|
*/
|
|
5157
5157
|
setHistoryScrollRestoration(scrollRestoration) {
|
|
5158
|
-
if (this.
|
|
5159
|
-
|
|
5160
|
-
if (history && history.scrollRestoration) {
|
|
5161
|
-
history.scrollRestoration = scrollRestoration;
|
|
5162
|
-
}
|
|
5158
|
+
if (this.supportsScrolling()) {
|
|
5159
|
+
this.window.history.scrollRestoration = scrollRestoration;
|
|
5163
5160
|
}
|
|
5164
5161
|
}
|
|
5165
5162
|
/**
|
|
@@ -5175,31 +5172,6 @@ class BrowserViewportScroller {
|
|
|
5175
5172
|
const offset = this.offset();
|
|
5176
5173
|
this.window.scrollTo(left - offset[0], top - offset[1]);
|
|
5177
5174
|
}
|
|
5178
|
-
/**
|
|
5179
|
-
* We only support scroll restoration when we can get a hold of window.
|
|
5180
|
-
* This means that we do not support this behavior when running in a web worker.
|
|
5181
|
-
*
|
|
5182
|
-
* Lifting this restriction right now would require more changes in the dom adapter.
|
|
5183
|
-
* Since webworkers aren't widely used, we will lift it once RouterScroller is
|
|
5184
|
-
* battle-tested.
|
|
5185
|
-
*/
|
|
5186
|
-
supportScrollRestoration() {
|
|
5187
|
-
try {
|
|
5188
|
-
if (!this.supportsScrolling()) {
|
|
5189
|
-
return false;
|
|
5190
|
-
}
|
|
5191
|
-
// The `scrollRestoration` property could be on the `history` instance or its prototype.
|
|
5192
|
-
const scrollRestorationDescriptor = getScrollRestorationProperty(this.window.history) ||
|
|
5193
|
-
getScrollRestorationProperty(Object.getPrototypeOf(this.window.history));
|
|
5194
|
-
// We can write to the `scrollRestoration` property if it is a writable data field or it has a
|
|
5195
|
-
// setter function.
|
|
5196
|
-
return !!scrollRestorationDescriptor &&
|
|
5197
|
-
!!(scrollRestorationDescriptor.writable || scrollRestorationDescriptor.set);
|
|
5198
|
-
}
|
|
5199
|
-
catch {
|
|
5200
|
-
return false;
|
|
5201
|
-
}
|
|
5202
|
-
}
|
|
5203
5175
|
supportsScrolling() {
|
|
5204
5176
|
try {
|
|
5205
5177
|
return !!this.window && !!this.window.scrollTo && 'pageXOffset' in this.window;
|
|
@@ -5209,9 +5181,6 @@ class BrowserViewportScroller {
|
|
|
5209
5181
|
}
|
|
5210
5182
|
}
|
|
5211
5183
|
}
|
|
5212
|
-
function getScrollRestorationProperty(obj) {
|
|
5213
|
-
return Object.getOwnPropertyDescriptor(obj, 'scrollRestoration');
|
|
5214
|
-
}
|
|
5215
5184
|
function findAnchorFromDocument(document, target) {
|
|
5216
5185
|
const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];
|
|
5217
5186
|
if (documentResult) {
|
|
@@ -5547,8 +5516,6 @@ class LCPImageObserver {
|
|
|
5547
5516
|
constructor() {
|
|
5548
5517
|
// Map of full image URLs -> original `ngSrc` values.
|
|
5549
5518
|
this.images = new Map();
|
|
5550
|
-
// Keep track of images for which `console.warn` was produced.
|
|
5551
|
-
this.alreadyWarned = new Set();
|
|
5552
5519
|
this.window = null;
|
|
5553
5520
|
this.observer = null;
|
|
5554
5521
|
assertDevMode('LCP checker');
|
|
@@ -5578,36 +5545,56 @@ class LCPImageObserver {
|
|
|
5578
5545
|
// Exclude `data:` and `blob:` URLs, since they are not supported by the directive.
|
|
5579
5546
|
if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:'))
|
|
5580
5547
|
return;
|
|
5581
|
-
const
|
|
5582
|
-
if (
|
|
5583
|
-
|
|
5548
|
+
const img = this.images.get(imgSrc);
|
|
5549
|
+
if (!img)
|
|
5550
|
+
return;
|
|
5551
|
+
if (!img.priority && !img.alreadyWarnedPriority) {
|
|
5552
|
+
img.alreadyWarnedPriority = true;
|
|
5584
5553
|
logMissingPriorityWarning(imgSrc);
|
|
5585
5554
|
}
|
|
5555
|
+
if (img.modified && !img.alreadyWarnedModified) {
|
|
5556
|
+
img.alreadyWarnedModified = true;
|
|
5557
|
+
logModifiedWarning(imgSrc);
|
|
5558
|
+
}
|
|
5586
5559
|
});
|
|
5587
5560
|
observer.observe({ type: 'largest-contentful-paint', buffered: true });
|
|
5588
5561
|
return observer;
|
|
5589
5562
|
}
|
|
5590
|
-
registerImage(rewrittenSrc, originalNgSrc) {
|
|
5563
|
+
registerImage(rewrittenSrc, originalNgSrc, isPriority) {
|
|
5591
5564
|
if (!this.observer)
|
|
5592
5565
|
return;
|
|
5593
|
-
|
|
5566
|
+
const newObservedImageState = {
|
|
5567
|
+
priority: isPriority,
|
|
5568
|
+
modified: false,
|
|
5569
|
+
alreadyWarnedModified: false,
|
|
5570
|
+
alreadyWarnedPriority: false
|
|
5571
|
+
};
|
|
5572
|
+
this.images.set(getUrl(rewrittenSrc, this.window).href, newObservedImageState);
|
|
5594
5573
|
}
|
|
5595
5574
|
unregisterImage(rewrittenSrc) {
|
|
5596
5575
|
if (!this.observer)
|
|
5597
5576
|
return;
|
|
5598
5577
|
this.images.delete(getUrl(rewrittenSrc, this.window).href);
|
|
5599
5578
|
}
|
|
5579
|
+
updateImage(originalSrc, newSrc) {
|
|
5580
|
+
const originalUrl = getUrl(originalSrc, this.window).href;
|
|
5581
|
+
const img = this.images.get(originalUrl);
|
|
5582
|
+
if (img) {
|
|
5583
|
+
img.modified = true;
|
|
5584
|
+
this.images.set(getUrl(newSrc, this.window).href, img);
|
|
5585
|
+
this.images.delete(originalUrl);
|
|
5586
|
+
}
|
|
5587
|
+
}
|
|
5600
5588
|
ngOnDestroy() {
|
|
5601
5589
|
if (!this.observer)
|
|
5602
5590
|
return;
|
|
5603
5591
|
this.observer.disconnect();
|
|
5604
5592
|
this.images.clear();
|
|
5605
|
-
this.alreadyWarned.clear();
|
|
5606
5593
|
}
|
|
5607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5608
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5594
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5595
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: LCPImageObserver, providedIn: 'root' }); }
|
|
5609
5596
|
}
|
|
5610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
5611
5598
|
type: Injectable,
|
|
5612
5599
|
args: [{ providedIn: 'root' }]
|
|
5613
5600
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5618,6 +5605,13 @@ function logMissingPriorityWarning(ngSrc) {
|
|
|
5618
5605
|
`"priority" in order to prioritize its loading. ` +
|
|
5619
5606
|
`To fix this, add the "priority" attribute.`));
|
|
5620
5607
|
}
|
|
5608
|
+
function logModifiedWarning(ngSrc) {
|
|
5609
|
+
const directiveDetails = imgDirectiveDetails(ngSrc);
|
|
5610
|
+
console.warn(ɵformatRuntimeError(2964 /* RuntimeErrorCode.LCP_IMG_NGSRC_MODIFIED */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +
|
|
5611
|
+
`element and has had its "ngSrc" attribute modified. This can cause ` +
|
|
5612
|
+
`slower loading performance. It is recommended not to modify the "ngSrc" ` +
|
|
5613
|
+
`property on any image which could be the LCP element.`));
|
|
5614
|
+
}
|
|
5621
5615
|
|
|
5622
5616
|
// Set of origins that are always excluded from the preconnect checks.
|
|
5623
5617
|
const INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set(['localhost', '127.0.0.1', '0.0.0.0']);
|
|
@@ -5725,10 +5719,10 @@ class PreconnectLinkChecker {
|
|
|
5725
5719
|
this.preconnectLinks?.clear();
|
|
5726
5720
|
this.alreadySeen.clear();
|
|
5727
5721
|
}
|
|
5728
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5729
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5722
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5723
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' }); }
|
|
5730
5724
|
}
|
|
5731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
5732
5726
|
type: Injectable,
|
|
5733
5727
|
args: [{ providedIn: 'root' }]
|
|
5734
5728
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5814,10 +5808,10 @@ class PreloadLinkCreator {
|
|
|
5814
5808
|
}
|
|
5815
5809
|
renderer.appendChild(this.document.head, preload);
|
|
5816
5810
|
}
|
|
5817
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5818
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5811
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5812
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' }); }
|
|
5819
5813
|
}
|
|
5820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
5814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
5821
5815
|
type: Injectable,
|
|
5822
5816
|
args: [{ providedIn: 'root' }]
|
|
5823
5817
|
}] });
|
|
@@ -6054,20 +6048,16 @@ class NgOptimizedImage {
|
|
|
6054
6048
|
assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);
|
|
6055
6049
|
assertNoNgSrcsetWithoutLoader(this, this.imageLoader);
|
|
6056
6050
|
assertNoLoaderParamsWithoutLoader(this, this.imageLoader);
|
|
6051
|
+
if (this.lcpObserver !== null) {
|
|
6052
|
+
const ngZone = this.injector.get(NgZone);
|
|
6053
|
+
ngZone.runOutsideAngular(() => {
|
|
6054
|
+
this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc, this.priority);
|
|
6055
|
+
});
|
|
6056
|
+
}
|
|
6057
6057
|
if (this.priority) {
|
|
6058
6058
|
const checker = this.injector.get(PreconnectLinkChecker);
|
|
6059
6059
|
checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);
|
|
6060
6060
|
}
|
|
6061
|
-
else {
|
|
6062
|
-
// Monitor whether an image is an LCP element only in case
|
|
6063
|
-
// the `priority` attribute is missing. Otherwise, an image
|
|
6064
|
-
// has the necessary settings and no extra checks are required.
|
|
6065
|
-
if (this.lcpObserver !== null) {
|
|
6066
|
-
ngZone.runOutsideAngular(() => {
|
|
6067
|
-
this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc);
|
|
6068
|
-
});
|
|
6069
|
-
}
|
|
6070
|
-
}
|
|
6071
6061
|
}
|
|
6072
6062
|
this.setHostAttributes();
|
|
6073
6063
|
}
|
|
@@ -6090,30 +6080,18 @@ class NgOptimizedImage {
|
|
|
6090
6080
|
this.setHostAttribute('ng-img', 'true');
|
|
6091
6081
|
// The `src` and `srcset` attributes should be set last since other attributes
|
|
6092
6082
|
// could affect the image's loading behavior.
|
|
6093
|
-
const
|
|
6094
|
-
this.setHostAttribute('src', rewrittenSrc);
|
|
6095
|
-
let rewrittenSrcset = undefined;
|
|
6083
|
+
const rewrittenSrcset = this.updateSrcAndSrcset();
|
|
6096
6084
|
if (this.sizes) {
|
|
6097
6085
|
this.setHostAttribute('sizes', this.sizes);
|
|
6098
6086
|
}
|
|
6099
|
-
if (this.ngSrcset) {
|
|
6100
|
-
rewrittenSrcset = this.getRewrittenSrcset();
|
|
6101
|
-
}
|
|
6102
|
-
else if (this.shouldGenerateAutomaticSrcset()) {
|
|
6103
|
-
rewrittenSrcset = this.getAutomaticSrcset();
|
|
6104
|
-
}
|
|
6105
|
-
if (rewrittenSrcset) {
|
|
6106
|
-
this.setHostAttribute('srcset', rewrittenSrcset);
|
|
6107
|
-
}
|
|
6108
6087
|
if (this.isServer && this.priority) {
|
|
6109
|
-
this.preloadLinkCreator.createPreloadLinkTag(this.renderer,
|
|
6088
|
+
this.preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);
|
|
6110
6089
|
}
|
|
6111
6090
|
}
|
|
6112
6091
|
/** @nodoc */
|
|
6113
6092
|
ngOnChanges(changes) {
|
|
6114
6093
|
if (ngDevMode) {
|
|
6115
6094
|
assertNoPostInitInputChange(this, changes, [
|
|
6116
|
-
'ngSrc',
|
|
6117
6095
|
'ngSrcset',
|
|
6118
6096
|
'width',
|
|
6119
6097
|
'height',
|
|
@@ -6125,6 +6103,17 @@ class NgOptimizedImage {
|
|
|
6125
6103
|
'disableOptimizedSrcset',
|
|
6126
6104
|
]);
|
|
6127
6105
|
}
|
|
6106
|
+
if (changes['ngSrc'] && !changes['ngSrc'].isFirstChange()) {
|
|
6107
|
+
const oldSrc = this._renderedSrc;
|
|
6108
|
+
this.updateSrcAndSrcset(true);
|
|
6109
|
+
const newSrc = this._renderedSrc;
|
|
6110
|
+
if (this.lcpObserver !== null && oldSrc && newSrc && oldSrc !== newSrc) {
|
|
6111
|
+
const ngZone = this.injector.get(NgZone);
|
|
6112
|
+
ngZone.runOutsideAngular(() => {
|
|
6113
|
+
this.lcpObserver?.updateImage(oldSrc, newSrc);
|
|
6114
|
+
});
|
|
6115
|
+
}
|
|
6116
|
+
}
|
|
6128
6117
|
}
|
|
6129
6118
|
callImageLoader(configWithoutCustomParams) {
|
|
6130
6119
|
let augmentedConfig = configWithoutCustomParams;
|
|
@@ -6181,6 +6170,26 @@ class NgOptimizedImage {
|
|
|
6181
6170
|
const finalSrcs = filteredBreakpoints.map(bp => `${this.callImageLoader({ src: this.ngSrc, width: bp })} ${bp}w`);
|
|
6182
6171
|
return finalSrcs.join(', ');
|
|
6183
6172
|
}
|
|
6173
|
+
updateSrcAndSrcset(forceSrcRecalc = false) {
|
|
6174
|
+
if (forceSrcRecalc) {
|
|
6175
|
+
// Reset cached value, so that the followup `getRewrittenSrc()` call
|
|
6176
|
+
// will recalculate it and update the cache.
|
|
6177
|
+
this._renderedSrc = null;
|
|
6178
|
+
}
|
|
6179
|
+
const rewrittenSrc = this.getRewrittenSrc();
|
|
6180
|
+
this.setHostAttribute('src', rewrittenSrc);
|
|
6181
|
+
let rewrittenSrcset = undefined;
|
|
6182
|
+
if (this.ngSrcset) {
|
|
6183
|
+
rewrittenSrcset = this.getRewrittenSrcset();
|
|
6184
|
+
}
|
|
6185
|
+
else if (this.shouldGenerateAutomaticSrcset()) {
|
|
6186
|
+
rewrittenSrcset = this.getAutomaticSrcset();
|
|
6187
|
+
}
|
|
6188
|
+
if (rewrittenSrcset) {
|
|
6189
|
+
this.setHostAttribute('srcset', rewrittenSrcset);
|
|
6190
|
+
}
|
|
6191
|
+
return rewrittenSrcset;
|
|
6192
|
+
}
|
|
6184
6193
|
getFixedSrcset() {
|
|
6185
6194
|
const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map(multiplier => `${this.callImageLoader({
|
|
6186
6195
|
src: this.ngSrc,
|
|
@@ -6203,10 +6212,10 @@ class NgOptimizedImage {
|
|
|
6203
6212
|
setHostAttribute(name, value) {
|
|
6204
6213
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
6205
6214
|
}
|
|
6206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
6207
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.
|
|
6215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6216
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0-next.3", 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 }); }
|
|
6208
6217
|
}
|
|
6209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.
|
|
6218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.3", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
6210
6219
|
type: Directive,
|
|
6211
6220
|
args: [{
|
|
6212
6221
|
standalone: true,
|