@angular/common 17.0.0-next.6 → 17.0.0-next.8
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/public_api.mjs +1 -1
- package/esm2022/http/src/client.mjs +6 -4
- package/esm2022/http/src/errors.mjs +1 -1
- package/esm2022/http/src/fetch.mjs +3 -3
- package/esm2022/http/src/interceptor.mjs +36 -5
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/provider.mjs +16 -2
- package/esm2022/http/src/request.mjs +3 -1
- package/esm2022/http/src/transfer_cache.mjs +73 -18
- 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/index.mjs +3 -2
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +7 -7
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +6 -16
- 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 +21 -12
- package/esm2022/src/directives/ng_switch_equality.mjs +13 -0
- package/esm2022/src/directives/ng_template_outlet.mjs +43 -15
- 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/date_pipe_config.mjs +1 -1
- package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2022/src/pipes/json_pipe.mjs +3 -3
- package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2022/src/pipes/number_pipe.mjs +9 -9
- package/esm2022/src/pipes/slice_pipe.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/location_mock.mjs +3 -3
- package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2022/testing/src/mock_platform_location.mjs +3 -3
- package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2022/common.mjs +176 -145
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +157 -55
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +271 -4
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +19 -23
- package/package.json +3 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/common.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { InjectionToken, inject, Injectable, Optional, Inject, EventEmitter, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, Host, Attribute, RendererStyleFlags2, untracked, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable,
|
|
8
|
+
import { InjectionToken, inject, Injectable, Optional, Inject, EventEmitter, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, ɵformatRuntimeError, Host, Attribute, RendererStyleFlags2, untracked, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, ɵIMAGE_CONFIG, Renderer2, ElementRef, Injector, PLATFORM_ID, NgZone, numberAttribute, booleanAttribute, ɵIMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue } from '@angular/core';
|
|
9
|
+
export { ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';
|
|
9
10
|
|
|
10
11
|
let _DOM = null;
|
|
11
12
|
function getDOM() {
|
|
@@ -61,10 +62,10 @@ class PlatformLocation {
|
|
|
61
62
|
historyGo(relativePosition) {
|
|
62
63
|
throw new Error('Not implemented');
|
|
63
64
|
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
65
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
66
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }); }
|
|
66
67
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PlatformLocation, decorators: [{
|
|
68
69
|
type: Injectable,
|
|
69
70
|
args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]
|
|
70
71
|
}] });
|
|
@@ -144,10 +145,10 @@ class BrowserPlatformLocation extends PlatformLocation {
|
|
|
144
145
|
getState() {
|
|
145
146
|
return this._history.state;
|
|
146
147
|
}
|
|
147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
148
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
149
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() }); }
|
|
149
150
|
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
|
|
151
152
|
type: Injectable,
|
|
152
153
|
args: [{
|
|
153
154
|
providedIn: 'platform',
|
|
@@ -233,10 +234,10 @@ class LocationStrategy {
|
|
|
233
234
|
historyGo(relativePosition) {
|
|
234
235
|
throw new Error('Not implemented');
|
|
235
236
|
}
|
|
236
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
237
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
238
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }); }
|
|
238
239
|
}
|
|
239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
240
241
|
type: Injectable,
|
|
241
242
|
args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]
|
|
242
243
|
}] });
|
|
@@ -343,10 +344,10 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
343
344
|
historyGo(relativePosition = 0) {
|
|
344
345
|
this._platformLocation.historyGo?.(relativePosition);
|
|
345
346
|
}
|
|
346
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
347
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
348
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' }); }
|
|
348
349
|
}
|
|
349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
350
351
|
type: Injectable,
|
|
351
352
|
args: [{ providedIn: 'root' }]
|
|
352
353
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -434,10 +435,10 @@ class HashLocationStrategy extends LocationStrategy {
|
|
|
434
435
|
historyGo(relativePosition = 0) {
|
|
435
436
|
this._platformLocation.historyGo?.(relativePosition);
|
|
436
437
|
}
|
|
437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
438
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
439
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: HashLocationStrategy }); }
|
|
439
440
|
}
|
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: HashLocationStrategy, decorators: [{
|
|
441
442
|
type: Injectable
|
|
442
443
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
443
444
|
type: Optional
|
|
@@ -686,10 +687,10 @@ class Location {
|
|
|
686
687
|
* @returns The URL string, modified if needed.
|
|
687
688
|
*/
|
|
688
689
|
static { this.stripTrailingSlash = stripTrailingSlash; }
|
|
689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
690
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
691
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation }); }
|
|
691
692
|
}
|
|
692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: Location, decorators: [{
|
|
693
694
|
type: Injectable,
|
|
694
695
|
args: [{
|
|
695
696
|
providedIn: 'root',
|
|
@@ -2481,10 +2482,10 @@ function parseIntAutoRadix(text) {
|
|
|
2481
2482
|
* @publicApi
|
|
2482
2483
|
*/
|
|
2483
2484
|
class NgLocalization {
|
|
2484
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2485
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2486
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] }); }
|
|
2486
2487
|
}
|
|
2487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgLocalization, decorators: [{
|
|
2488
2489
|
type: Injectable,
|
|
2489
2490
|
args: [{
|
|
2490
2491
|
providedIn: 'root',
|
|
@@ -2538,10 +2539,10 @@ class NgLocaleLocalization extends NgLocalization {
|
|
|
2538
2539
|
return 'other';
|
|
2539
2540
|
}
|
|
2540
2541
|
}
|
|
2541
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2542
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2543
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgLocaleLocalization }); }
|
|
2543
2544
|
}
|
|
2544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgLocaleLocalization, decorators: [{
|
|
2545
2546
|
type: Injectable
|
|
2546
2547
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2547
2548
|
type: Inject,
|
|
@@ -2714,10 +2715,10 @@ class NgClass {
|
|
|
2714
2715
|
});
|
|
2715
2716
|
}
|
|
2716
2717
|
}
|
|
2717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2718
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
2718
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgClass, deps: [{ token: i0.IterableDiffers }, { token: i0.KeyValueDiffers }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2719
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgClass, isStandalone: true, selector: "[ngClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass" }, ngImport: i0 }); }
|
|
2719
2720
|
}
|
|
2720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgClass, decorators: [{
|
|
2721
2722
|
type: Directive,
|
|
2722
2723
|
args: [{
|
|
2723
2724
|
selector: '[ngClass]',
|
|
@@ -2886,10 +2887,10 @@ class NgComponentOutlet {
|
|
|
2886
2887
|
}
|
|
2887
2888
|
}
|
|
2888
2889
|
}
|
|
2889
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2890
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
2890
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2891
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgComponentOutlet, isStandalone: true, selector: "[ngComponentOutlet]", inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInputs: "ngComponentOutletInputs", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModule: "ngComponentOutletNgModule", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, usesOnChanges: true, ngImport: i0 }); }
|
|
2891
2892
|
}
|
|
2892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgComponentOutlet, decorators: [{
|
|
2893
2894
|
type: Directive,
|
|
2894
2895
|
args: [{
|
|
2895
2896
|
selector: '[ngComponentOutlet]',
|
|
@@ -3169,10 +3170,10 @@ class NgForOf {
|
|
|
3169
3170
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3170
3171
|
return true;
|
|
3171
3172
|
}
|
|
3172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3173
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3174
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgForOf, isStandalone: true, selector: "[ngFor][ngForOf]", inputs: { ngForOf: "ngForOf", ngForTrackBy: "ngForTrackBy", ngForTemplate: "ngForTemplate" }, ngImport: i0 }); }
|
|
3174
3175
|
}
|
|
3175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgForOf, decorators: [{
|
|
3176
3177
|
type: Directive,
|
|
3177
3178
|
args: [{
|
|
3178
3179
|
selector: '[ngFor][ngForOf]',
|
|
@@ -3397,10 +3398,10 @@ class NgIf {
|
|
|
3397
3398
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3398
3399
|
return true;
|
|
3399
3400
|
}
|
|
3400
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3401
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3401
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3402
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgIf, isStandalone: true, selector: "[ngIf]", inputs: { ngIf: "ngIf", ngIfThen: "ngIfThen", ngIfElse: "ngIfElse" }, ngImport: i0 }); }
|
|
3402
3403
|
}
|
|
3403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgIf, decorators: [{
|
|
3404
3405
|
type: Directive,
|
|
3405
3406
|
args: [{
|
|
3406
3407
|
selector: '[ngIf]',
|
|
@@ -3429,6 +3430,12 @@ function assertTemplate(property, templateRef) {
|
|
|
3429
3430
|
}
|
|
3430
3431
|
}
|
|
3431
3432
|
|
|
3433
|
+
/**
|
|
3434
|
+
* A constant indicating a type of comparison that NgSwitch uses to match cases. Extracted to a
|
|
3435
|
+
* separate file to facilitate G3 patches.
|
|
3436
|
+
*/
|
|
3437
|
+
const NG_SWITCH_USE_STRICT_EQUALS = true;
|
|
3438
|
+
|
|
3432
3439
|
class SwitchView {
|
|
3433
3440
|
constructor(_viewContainerRef, _templateRef) {
|
|
3434
3441
|
this._viewContainerRef = _viewContainerRef;
|
|
@@ -3542,7 +3549,12 @@ class NgSwitch {
|
|
|
3542
3549
|
}
|
|
3543
3550
|
/** @internal */
|
|
3544
3551
|
_matchCase(value) {
|
|
3545
|
-
const matched = value == this._ngSwitch;
|
|
3552
|
+
const matched = NG_SWITCH_USE_STRICT_EQUALS ? value === this._ngSwitch : value == this._ngSwitch;
|
|
3553
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) && matched !== (value == this._ngSwitch)) {
|
|
3554
|
+
console.warn(ɵformatRuntimeError(2001 /* RuntimeErrorCode.EQUALITY_NG_SWITCH_DIFFERENCE */, 'As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. ' +
|
|
3555
|
+
`Previously the case value "${stringifyValue(value)}" matched switch expression value "${stringifyValue(this._ngSwitch)}", but this is no longer the case with the stricter equality check.` +
|
|
3556
|
+
'Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.'));
|
|
3557
|
+
}
|
|
3546
3558
|
this._lastCasesMatched = this._lastCasesMatched || matched;
|
|
3547
3559
|
this._lastCaseCheckIndex++;
|
|
3548
3560
|
if (this._lastCaseCheckIndex === this._caseCount) {
|
|
@@ -3560,10 +3572,10 @@ class NgSwitch {
|
|
|
3560
3572
|
}
|
|
3561
3573
|
}
|
|
3562
3574
|
}
|
|
3563
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3564
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3575
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3576
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgSwitch, isStandalone: true, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 }); }
|
|
3565
3577
|
}
|
|
3566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgSwitch, decorators: [{
|
|
3567
3579
|
type: Directive,
|
|
3568
3580
|
args: [{
|
|
3569
3581
|
selector: '[ngSwitch]',
|
|
@@ -3621,10 +3633,10 @@ class NgSwitchCase {
|
|
|
3621
3633
|
ngDoCheck() {
|
|
3622
3634
|
this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
|
|
3623
3635
|
}
|
|
3624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3625
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3636
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3637
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgSwitchCase, isStandalone: true, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 }); }
|
|
3626
3638
|
}
|
|
3627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgSwitchCase, decorators: [{
|
|
3628
3640
|
type: Directive,
|
|
3629
3641
|
args: [{
|
|
3630
3642
|
selector: '[ngSwitchCase]',
|
|
@@ -3658,10 +3670,10 @@ class NgSwitchDefault {
|
|
|
3658
3670
|
}
|
|
3659
3671
|
ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
|
|
3660
3672
|
}
|
|
3661
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3662
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3673
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3674
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgSwitchDefault, isStandalone: true, selector: "[ngSwitchDefault]", ngImport: i0 }); }
|
|
3663
3675
|
}
|
|
3664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgSwitchDefault, decorators: [{
|
|
3665
3677
|
type: Directive,
|
|
3666
3678
|
args: [{
|
|
3667
3679
|
selector: '[ngSwitchDefault]',
|
|
@@ -3677,6 +3689,9 @@ function throwNgSwitchProviderNotFoundError(attrName, directiveName) {
|
|
|
3677
3689
|
`(matching the "${directiveName}" directive) must be located inside an element with the "ngSwitch" attribute ` +
|
|
3678
3690
|
`(matching "NgSwitch" directive)`);
|
|
3679
3691
|
}
|
|
3692
|
+
function stringifyValue(value) {
|
|
3693
|
+
return typeof value === 'string' ? `'${value}'` : String(value);
|
|
3694
|
+
}
|
|
3680
3695
|
|
|
3681
3696
|
/**
|
|
3682
3697
|
* @ngModule CommonModule
|
|
@@ -3736,10 +3751,10 @@ class NgPlural {
|
|
|
3736
3751
|
this._activeView.create();
|
|
3737
3752
|
}
|
|
3738
3753
|
}
|
|
3739
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3740
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3754
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3755
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgPlural, isStandalone: true, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 }); }
|
|
3741
3756
|
}
|
|
3742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgPlural, decorators: [{
|
|
3743
3758
|
type: Directive,
|
|
3744
3759
|
args: [{
|
|
3745
3760
|
selector: '[ngPlural]',
|
|
@@ -3774,10 +3789,10 @@ class NgPluralCase {
|
|
|
3774
3789
|
const isANumber = !isNaN(Number(value));
|
|
3775
3790
|
ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
|
|
3776
3791
|
}
|
|
3777
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3778
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3793
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgPluralCase, isStandalone: true, selector: "[ngPluralCase]", ngImport: i0 }); }
|
|
3779
3794
|
}
|
|
3780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgPluralCase, decorators: [{
|
|
3781
3796
|
type: Directive,
|
|
3782
3797
|
args: [{
|
|
3783
3798
|
selector: '[ngPluralCase]',
|
|
@@ -3863,10 +3878,10 @@ class NgStyle {
|
|
|
3863
3878
|
changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
3864
3879
|
changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
3865
3880
|
}
|
|
3866
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3867
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
3881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3882
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgStyle, isStandalone: true, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 }); }
|
|
3868
3883
|
}
|
|
3869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgStyle, decorators: [{
|
|
3870
3885
|
type: Directive,
|
|
3871
3886
|
args: [{
|
|
3872
3887
|
selector: '[ngStyle]',
|
|
@@ -3919,30 +3934,58 @@ class NgTemplateOutlet {
|
|
|
3919
3934
|
/** Injector to be used within the embedded view. */
|
|
3920
3935
|
this.ngTemplateOutletInjector = null;
|
|
3921
3936
|
}
|
|
3922
|
-
/** @nodoc */
|
|
3923
3937
|
ngOnChanges(changes) {
|
|
3924
|
-
if (changes
|
|
3938
|
+
if (this._shouldRecreateView(changes)) {
|
|
3925
3939
|
const viewContainerRef = this._viewContainerRef;
|
|
3926
3940
|
if (this._viewRef) {
|
|
3927
3941
|
viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));
|
|
3928
3942
|
}
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
this._viewRef =
|
|
3932
|
-
viewContainerRef.createEmbeddedView(template, context, injector ? { injector } : undefined);
|
|
3933
|
-
}
|
|
3934
|
-
else {
|
|
3943
|
+
// If there is no outlet, clear the destroyed view ref.
|
|
3944
|
+
if (!this.ngTemplateOutlet) {
|
|
3935
3945
|
this._viewRef = null;
|
|
3946
|
+
return;
|
|
3936
3947
|
}
|
|
3948
|
+
// Create a context forward `Proxy` that will always bind to the user-specified context,
|
|
3949
|
+
// without having to destroy and re-create views whenever the context changes.
|
|
3950
|
+
const viewContext = this._createContextForwardProxy();
|
|
3951
|
+
this._viewRef = viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, viewContext, {
|
|
3952
|
+
injector: this.ngTemplateOutletInjector ?? undefined,
|
|
3953
|
+
});
|
|
3937
3954
|
}
|
|
3938
|
-
else if (this._viewRef && changes['ngTemplateOutletContext'] && this.ngTemplateOutletContext) {
|
|
3939
|
-
this._viewRef.context = this.ngTemplateOutletContext;
|
|
3940
|
-
}
|
|
3941
3955
|
}
|
|
3942
|
-
|
|
3943
|
-
|
|
3956
|
+
/**
|
|
3957
|
+
* We need to re-create existing embedded view if either is true:
|
|
3958
|
+
* - the outlet changed.
|
|
3959
|
+
* - the injector changed.
|
|
3960
|
+
*/
|
|
3961
|
+
_shouldRecreateView(changes) {
|
|
3962
|
+
return !!changes['ngTemplateOutlet'] || !!changes['ngTemplateOutletInjector'];
|
|
3963
|
+
}
|
|
3964
|
+
/**
|
|
3965
|
+
* For a given outlet instance, we create a proxy object that delegates
|
|
3966
|
+
* to the user-specified context. This allows changing, or swapping out
|
|
3967
|
+
* the context object completely without having to destroy/re-create the view.
|
|
3968
|
+
*/
|
|
3969
|
+
_createContextForwardProxy() {
|
|
3970
|
+
return new Proxy({}, {
|
|
3971
|
+
set: (_target, prop, newValue) => {
|
|
3972
|
+
if (!this.ngTemplateOutletContext) {
|
|
3973
|
+
return false;
|
|
3974
|
+
}
|
|
3975
|
+
return Reflect.set(this.ngTemplateOutletContext, prop, newValue);
|
|
3976
|
+
},
|
|
3977
|
+
get: (_target, prop, receiver) => {
|
|
3978
|
+
if (!this.ngTemplateOutletContext) {
|
|
3979
|
+
return undefined;
|
|
3980
|
+
}
|
|
3981
|
+
return Reflect.get(this.ngTemplateOutletContext, prop, receiver);
|
|
3982
|
+
},
|
|
3983
|
+
});
|
|
3984
|
+
}
|
|
3985
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3986
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.8", type: NgTemplateOutlet, isStandalone: true, selector: "[ngTemplateOutlet]", inputs: { ngTemplateOutletContext: "ngTemplateOutletContext", ngTemplateOutlet: "ngTemplateOutlet", ngTemplateOutletInjector: "ngTemplateOutletInjector" }, usesOnChanges: true, ngImport: i0 }); }
|
|
3944
3987
|
}
|
|
3945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
3988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgTemplateOutlet, decorators: [{
|
|
3946
3989
|
type: Directive,
|
|
3947
3990
|
args: [{
|
|
3948
3991
|
selector: '[ngTemplateOutlet]',
|
|
@@ -4100,10 +4143,10 @@ class AsyncPipe {
|
|
|
4100
4143
|
this._ref.markForCheck();
|
|
4101
4144
|
}
|
|
4102
4145
|
}
|
|
4103
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4104
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4147
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: AsyncPipe, isStandalone: true, name: "async", pure: false }); }
|
|
4105
4148
|
}
|
|
4106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: AsyncPipe, decorators: [{
|
|
4107
4150
|
type: Pipe,
|
|
4108
4151
|
args: [{
|
|
4109
4152
|
name: 'async',
|
|
@@ -4136,10 +4179,10 @@ class LowerCasePipe {
|
|
|
4136
4179
|
}
|
|
4137
4180
|
return value.toLowerCase();
|
|
4138
4181
|
}
|
|
4139
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4140
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4183
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: "lowercase" }); }
|
|
4141
4184
|
}
|
|
4142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LowerCasePipe, decorators: [{
|
|
4143
4186
|
type: Pipe,
|
|
4144
4187
|
args: [{
|
|
4145
4188
|
name: 'lowercase',
|
|
@@ -4181,10 +4224,10 @@ class TitleCasePipe {
|
|
|
4181
4224
|
}
|
|
4182
4225
|
return value.replace(unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.slice(1).toLowerCase()));
|
|
4183
4226
|
}
|
|
4184
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4185
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4228
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: "titlecase" }); }
|
|
4186
4229
|
}
|
|
4187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: TitleCasePipe, decorators: [{
|
|
4188
4231
|
type: Pipe,
|
|
4189
4232
|
args: [{
|
|
4190
4233
|
name: 'titlecase',
|
|
@@ -4208,10 +4251,10 @@ class UpperCasePipe {
|
|
|
4208
4251
|
}
|
|
4209
4252
|
return value.toUpperCase();
|
|
4210
4253
|
}
|
|
4211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4212
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4255
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: "uppercase" }); }
|
|
4213
4256
|
}
|
|
4214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: UpperCasePipe, decorators: [{
|
|
4215
4258
|
type: Pipe,
|
|
4216
4259
|
args: [{
|
|
4217
4260
|
name: 'uppercase',
|
|
@@ -4442,10 +4485,10 @@ class DatePipe {
|
|
|
4442
4485
|
throw invalidPipeArgumentError(DatePipe, error.message);
|
|
4443
4486
|
}
|
|
4444
4487
|
}
|
|
4445
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4446
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4488
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", 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 }); }
|
|
4489
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: DatePipe, isStandalone: true, name: "date" }); }
|
|
4447
4490
|
}
|
|
4448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: DatePipe, decorators: [{
|
|
4449
4492
|
type: Pipe,
|
|
4450
4493
|
args: [{
|
|
4451
4494
|
name: 'date',
|
|
@@ -4502,10 +4545,10 @@ class I18nPluralPipe {
|
|
|
4502
4545
|
const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
|
|
4503
4546
|
return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
|
|
4504
4547
|
}
|
|
4505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4506
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4548
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4549
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: "i18nPlural" }); }
|
|
4507
4550
|
}
|
|
4508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: I18nPluralPipe, decorators: [{
|
|
4509
4552
|
type: Pipe,
|
|
4510
4553
|
args: [{
|
|
4511
4554
|
name: 'i18nPlural',
|
|
@@ -4551,10 +4594,10 @@ class I18nSelectPipe {
|
|
|
4551
4594
|
}
|
|
4552
4595
|
return '';
|
|
4553
4596
|
}
|
|
4554
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4555
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4597
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4598
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: "i18nSelect" }); }
|
|
4556
4599
|
}
|
|
4557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: I18nSelectPipe, decorators: [{
|
|
4558
4601
|
type: Pipe,
|
|
4559
4602
|
args: [{
|
|
4560
4603
|
name: 'i18nSelect',
|
|
@@ -4585,10 +4628,10 @@ class JsonPipe {
|
|
|
4585
4628
|
transform(value) {
|
|
4586
4629
|
return JSON.stringify(value, null, 2);
|
|
4587
4630
|
}
|
|
4588
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4589
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4631
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4632
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: JsonPipe, isStandalone: true, name: "json", pure: false }); }
|
|
4590
4633
|
}
|
|
4591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: JsonPipe, decorators: [{
|
|
4592
4635
|
type: Pipe,
|
|
4593
4636
|
args: [{
|
|
4594
4637
|
name: 'json',
|
|
@@ -4648,10 +4691,10 @@ class KeyValuePipe {
|
|
|
4648
4691
|
}
|
|
4649
4692
|
return this.keyValues;
|
|
4650
4693
|
}
|
|
4651
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4652
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4694
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4695
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: "keyvalue", pure: false }); }
|
|
4653
4696
|
}
|
|
4654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: KeyValuePipe, decorators: [{
|
|
4655
4698
|
type: Pipe,
|
|
4656
4699
|
args: [{
|
|
4657
4700
|
name: 'keyvalue',
|
|
@@ -4776,10 +4819,10 @@ class DecimalPipe {
|
|
|
4776
4819
|
throw invalidPipeArgumentError(DecimalPipe, error.message);
|
|
4777
4820
|
}
|
|
4778
4821
|
}
|
|
4779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4780
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4822
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4823
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: DecimalPipe, isStandalone: true, name: "number" }); }
|
|
4781
4824
|
}
|
|
4782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: DecimalPipe, decorators: [{
|
|
4783
4826
|
type: Pipe,
|
|
4784
4827
|
args: [{
|
|
4785
4828
|
name: 'number',
|
|
@@ -4841,10 +4884,10 @@ class PercentPipe {
|
|
|
4841
4884
|
throw invalidPipeArgumentError(PercentPipe, error.message);
|
|
4842
4885
|
}
|
|
4843
4886
|
}
|
|
4844
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4845
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4887
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4888
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: PercentPipe, isStandalone: true, name: "percent" }); }
|
|
4846
4889
|
}
|
|
4847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PercentPipe, decorators: [{
|
|
4848
4891
|
type: Pipe,
|
|
4849
4892
|
args: [{
|
|
4850
4893
|
name: 'percent',
|
|
@@ -4940,10 +4983,10 @@ class CurrencyPipe {
|
|
|
4940
4983
|
throw invalidPipeArgumentError(CurrencyPipe, error.message);
|
|
4941
4984
|
}
|
|
4942
4985
|
}
|
|
4943
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4944
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
4986
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4987
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: "currency" }); }
|
|
4945
4988
|
}
|
|
4946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: CurrencyPipe, decorators: [{
|
|
4947
4990
|
type: Pipe,
|
|
4948
4991
|
args: [{
|
|
4949
4992
|
name: 'currency',
|
|
@@ -5020,10 +5063,10 @@ class SlicePipe {
|
|
|
5020
5063
|
supports(obj) {
|
|
5021
5064
|
return typeof obj === 'string' || Array.isArray(obj);
|
|
5022
5065
|
}
|
|
5023
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5024
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
5066
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5067
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice", pure: false }); }
|
|
5025
5068
|
}
|
|
5026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: SlicePipe, decorators: [{
|
|
5027
5070
|
type: Pipe,
|
|
5028
5071
|
args: [{
|
|
5029
5072
|
name: 'slice',
|
|
@@ -5067,11 +5110,11 @@ const COMMON_PIPES = [
|
|
|
5067
5110
|
* @publicApi
|
|
5068
5111
|
*/
|
|
5069
5112
|
class CommonModule {
|
|
5070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5071
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
5072
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5114
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.8", 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] }); }
|
|
5115
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: CommonModule }); }
|
|
5073
5116
|
}
|
|
5074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: CommonModule, decorators: [{
|
|
5075
5118
|
type: NgModule,
|
|
5076
5119
|
args: [{
|
|
5077
5120
|
imports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
@@ -5124,7 +5167,7 @@ function isPlatformWorkerUi(platformId) {
|
|
|
5124
5167
|
/**
|
|
5125
5168
|
* @publicApi
|
|
5126
5169
|
*/
|
|
5127
|
-
const VERSION = new Version('17.0.0-next.
|
|
5170
|
+
const VERSION = new Version('17.0.0-next.8');
|
|
5128
5171
|
|
|
5129
5172
|
/**
|
|
5130
5173
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -5611,7 +5654,7 @@ class LCPImageObserver {
|
|
|
5611
5654
|
return;
|
|
5612
5655
|
if (!img.priority && !img.alreadyWarnedPriority) {
|
|
5613
5656
|
img.alreadyWarnedPriority = true;
|
|
5614
|
-
|
|
5657
|
+
logMissingPriorityError(imgSrc);
|
|
5615
5658
|
}
|
|
5616
5659
|
if (img.modified && !img.alreadyWarnedModified) {
|
|
5617
5660
|
img.alreadyWarnedModified = true;
|
|
@@ -5652,16 +5695,16 @@ class LCPImageObserver {
|
|
|
5652
5695
|
this.observer.disconnect();
|
|
5653
5696
|
this.images.clear();
|
|
5654
5697
|
}
|
|
5655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5656
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5699
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LCPImageObserver, providedIn: 'root' }); }
|
|
5657
5700
|
}
|
|
5658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
5659
5702
|
type: Injectable,
|
|
5660
5703
|
args: [{ providedIn: 'root' }]
|
|
5661
5704
|
}], ctorParameters: () => [] });
|
|
5662
|
-
function
|
|
5705
|
+
function logMissingPriorityError(ngSrc) {
|
|
5663
5706
|
const directiveDetails = imgDirectiveDetails(ngSrc);
|
|
5664
|
-
console.
|
|
5707
|
+
console.error(ɵformatRuntimeError(2955 /* RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +
|
|
5665
5708
|
`element but was not marked "priority". This image should be marked ` +
|
|
5666
5709
|
`"priority" in order to prioritize its loading. ` +
|
|
5667
5710
|
`To fix this, add the "priority" attribute.`));
|
|
@@ -5780,10 +5823,10 @@ class PreconnectLinkChecker {
|
|
|
5780
5823
|
this.preconnectLinks?.clear();
|
|
5781
5824
|
this.alreadySeen.clear();
|
|
5782
5825
|
}
|
|
5783
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5784
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5826
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5827
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' }); }
|
|
5785
5828
|
}
|
|
5786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
5787
5830
|
type: Injectable,
|
|
5788
5831
|
args: [{ providedIn: 'root' }]
|
|
5789
5832
|
}], ctorParameters: () => [] });
|
|
@@ -5869,10 +5912,10 @@ class PreloadLinkCreator {
|
|
|
5869
5912
|
}
|
|
5870
5913
|
renderer.appendChild(this.document.head, preload);
|
|
5871
5914
|
}
|
|
5872
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5873
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5915
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5916
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' }); }
|
|
5874
5917
|
}
|
|
5875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
5876
5919
|
type: Injectable,
|
|
5877
5920
|
args: [{ providedIn: 'root' }]
|
|
5878
5921
|
}] });
|
|
@@ -5932,16 +5975,6 @@ const FIXED_SRCSET_WIDTH_LIMIT = 1920;
|
|
|
5932
5975
|
const FIXED_SRCSET_HEIGHT_LIMIT = 1080;
|
|
5933
5976
|
/** Info about built-in loaders we can test for. */
|
|
5934
5977
|
const BUILT_IN_LOADERS = [imgixLoaderInfo, imageKitLoaderInfo, cloudinaryLoaderInfo];
|
|
5935
|
-
const defaultConfig = {
|
|
5936
|
-
breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
|
|
5937
|
-
};
|
|
5938
|
-
/**
|
|
5939
|
-
* Injection token that configures the image optimized image functionality.
|
|
5940
|
-
*
|
|
5941
|
-
* @see {@link NgOptimizedImage}
|
|
5942
|
-
* @publicApi
|
|
5943
|
-
*/
|
|
5944
|
-
const IMAGE_CONFIG = new InjectionToken('ImageConfig', { providedIn: 'root', factory: () => defaultConfig });
|
|
5945
5978
|
/**
|
|
5946
5979
|
* Directive that improves image loading performance by enforcing best practices.
|
|
5947
5980
|
*
|
|
@@ -6043,7 +6076,7 @@ const IMAGE_CONFIG = new InjectionToken('ImageConfig', { providedIn: 'root', fac
|
|
|
6043
6076
|
class NgOptimizedImage {
|
|
6044
6077
|
constructor() {
|
|
6045
6078
|
this.imageLoader = inject(IMAGE_LOADER);
|
|
6046
|
-
this.config = processConfig(inject(IMAGE_CONFIG));
|
|
6079
|
+
this.config = processConfig(inject(ɵIMAGE_CONFIG));
|
|
6047
6080
|
this.renderer = inject(Renderer2);
|
|
6048
6081
|
this.imgElement = inject(ElementRef).nativeElement;
|
|
6049
6082
|
this.injector = inject(Injector);
|
|
@@ -6273,10 +6306,10 @@ class NgOptimizedImage {
|
|
|
6273
6306
|
setHostAttribute(name, value) {
|
|
6274
6307
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
6275
6308
|
}
|
|
6276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6277
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.
|
|
6309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6310
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.8", 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], 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 }); }
|
|
6278
6311
|
}
|
|
6279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
6280
6313
|
type: Directive,
|
|
6281
6314
|
args: [{
|
|
6282
6315
|
standalone: true,
|
|
@@ -6328,7 +6361,7 @@ function processConfig(config) {
|
|
|
6328
6361
|
if (config.breakpoints) {
|
|
6329
6362
|
sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);
|
|
6330
6363
|
}
|
|
6331
|
-
return Object.assign({},
|
|
6364
|
+
return Object.assign({}, ɵIMAGE_CONFIG_DEFAULTS, config, sortedBreakpoints);
|
|
6332
6365
|
}
|
|
6333
6366
|
/***** Assert functions *****/
|
|
6334
6367
|
/**
|
|
@@ -6686,8 +6719,6 @@ function unwrapSafeUrl(value) {
|
|
|
6686
6719
|
return ɵunwrapSafeValue(value);
|
|
6687
6720
|
}
|
|
6688
6721
|
|
|
6689
|
-
// These exports represent the set of symbols exposed as a public API.
|
|
6690
|
-
|
|
6691
6722
|
/**
|
|
6692
6723
|
* @module
|
|
6693
6724
|
* @description
|
|
@@ -6707,5 +6738,5 @@ function unwrapSafeUrl(value) {
|
|
|
6707
6738
|
* Generated bundle index. Do not edit.
|
|
6708
6739
|
*/
|
|
6709
6740
|
|
|
6710
|
-
export { APP_BASE_HREF, AsyncPipe, BrowserPlatformLocation, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe,
|
|
6741
|
+
export { APP_BASE_HREF, AsyncPipe, BrowserPlatformLocation, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, IMAGE_LOADER, JsonPipe, KeyValuePipe, LOCATION_INITIALIZED, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgOptimizedImage, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PRECONNECT_CHECK_BLOCKLIST, PathLocationStrategy, PercentPipe, PlatformLocation, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, VERSION, ViewportScroller, WeekDay, XhrFactory, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, registerLocaleData, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };
|
|
6711
6742
|
//# sourceMappingURL=common.mjs.map
|