@angular/common 19.1.4 → 19.2.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/common.mjs +161 -146
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +46 -51
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +16 -16
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +3 -1
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/common.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.
|
|
2
|
+
* @license Angular v19.2.0-next.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -30,10 +30,10 @@ class DomAdapter {
|
|
|
30
30
|
* implementations.
|
|
31
31
|
*/
|
|
32
32
|
class PlatformNavigation {
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
34
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
34
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation });
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PlatformNavigation, decorators: [{
|
|
37
37
|
type: Injectable,
|
|
38
38
|
args: [{ providedIn: 'platform', useFactory: () => window.navigation }]
|
|
39
39
|
}] });
|
|
@@ -73,10 +73,10 @@ class PlatformLocation {
|
|
|
73
73
|
historyGo(relativePosition) {
|
|
74
74
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
75
75
|
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
77
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) });
|
|
78
78
|
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PlatformLocation, decorators: [{
|
|
80
80
|
type: Injectable,
|
|
81
81
|
args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]
|
|
82
82
|
}] });
|
|
@@ -158,10 +158,10 @@ class BrowserPlatformLocation extends PlatformLocation {
|
|
|
158
158
|
getState() {
|
|
159
159
|
return this._history.state;
|
|
160
160
|
}
|
|
161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
162
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
162
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() });
|
|
163
163
|
}
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
|
|
165
165
|
type: Injectable,
|
|
166
166
|
args: [{
|
|
167
167
|
providedIn: 'platform',
|
|
@@ -179,18 +179,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
179
179
|
* @returns The joined URL string.
|
|
180
180
|
*/
|
|
181
181
|
function joinWithSlash(start, end) {
|
|
182
|
-
|
|
183
|
-
if (!start)
|
|
182
|
+
if (start.length == 0) {
|
|
184
183
|
return end;
|
|
185
|
-
|
|
186
|
-
if (
|
|
184
|
+
}
|
|
185
|
+
if (end.length == 0) {
|
|
187
186
|
return start;
|
|
188
|
-
|
|
187
|
+
}
|
|
188
|
+
let slashes = 0;
|
|
189
189
|
if (start.endsWith('/')) {
|
|
190
|
-
|
|
190
|
+
slashes++;
|
|
191
|
+
}
|
|
192
|
+
if (end.startsWith('/')) {
|
|
193
|
+
slashes++;
|
|
194
|
+
}
|
|
195
|
+
if (slashes == 2) {
|
|
196
|
+
return start + end.substring(1);
|
|
197
|
+
}
|
|
198
|
+
if (slashes == 1) {
|
|
199
|
+
return start + end;
|
|
191
200
|
}
|
|
192
|
-
|
|
193
|
-
return end.startsWith('/') ? start + end : `${start}/${end}`;
|
|
201
|
+
return start + '/' + end;
|
|
194
202
|
}
|
|
195
203
|
/**
|
|
196
204
|
* Removes a trailing slash from a URL string if needed.
|
|
@@ -239,10 +247,10 @@ class LocationStrategy {
|
|
|
239
247
|
historyGo(relativePosition) {
|
|
240
248
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
241
249
|
}
|
|
242
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
243
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
250
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
251
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) });
|
|
244
252
|
}
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
246
254
|
type: Injectable,
|
|
247
255
|
args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]
|
|
248
256
|
}] });
|
|
@@ -354,10 +362,10 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
354
362
|
historyGo(relativePosition = 0) {
|
|
355
363
|
this._platformLocation.historyGo?.(relativePosition);
|
|
356
364
|
}
|
|
357
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
358
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
365
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
366
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' });
|
|
359
367
|
}
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
361
369
|
type: Injectable,
|
|
362
370
|
args: [{ providedIn: 'root' }]
|
|
363
371
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -444,10 +452,10 @@ class HashLocationStrategy extends LocationStrategy {
|
|
|
444
452
|
historyGo(relativePosition = 0) {
|
|
445
453
|
this._platformLocation.historyGo?.(relativePosition);
|
|
446
454
|
}
|
|
447
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
448
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
455
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
456
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: HashLocationStrategy });
|
|
449
457
|
}
|
|
450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: HashLocationStrategy, decorators: [{
|
|
451
459
|
type: Injectable
|
|
452
460
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
453
461
|
type: Optional
|
|
@@ -701,10 +709,10 @@ class Location {
|
|
|
701
709
|
* @returns The URL string, modified if needed.
|
|
702
710
|
*/
|
|
703
711
|
static stripTrailingSlash = stripTrailingSlash;
|
|
704
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
705
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
712
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
713
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });
|
|
706
714
|
}
|
|
707
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: Location, decorators: [{
|
|
708
716
|
type: Injectable,
|
|
709
717
|
args: [{
|
|
710
718
|
providedIn: 'root',
|
|
@@ -2581,10 +2589,10 @@ function parseIntAutoRadix(text) {
|
|
|
2581
2589
|
* @publicApi
|
|
2582
2590
|
*/
|
|
2583
2591
|
class NgLocalization {
|
|
2584
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2585
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
2592
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2593
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] });
|
|
2586
2594
|
}
|
|
2587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgLocalization, decorators: [{
|
|
2588
2596
|
type: Injectable,
|
|
2589
2597
|
args: [{
|
|
2590
2598
|
providedIn: 'root',
|
|
@@ -2639,10 +2647,10 @@ class NgLocaleLocalization extends NgLocalization {
|
|
|
2639
2647
|
return 'other';
|
|
2640
2648
|
}
|
|
2641
2649
|
}
|
|
2642
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2643
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
2650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2651
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgLocaleLocalization });
|
|
2644
2652
|
}
|
|
2645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgLocaleLocalization, decorators: [{
|
|
2646
2654
|
type: Injectable
|
|
2647
2655
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2648
2656
|
type: Inject,
|
|
@@ -2823,10 +2831,10 @@ class NgClass {
|
|
|
2823
2831
|
});
|
|
2824
2832
|
}
|
|
2825
2833
|
}
|
|
2826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2827
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
2834
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgClass, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2835
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgClass, isStandalone: true, selector: "[ngClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass" }, ngImport: i0 });
|
|
2828
2836
|
}
|
|
2829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgClass, decorators: [{
|
|
2830
2838
|
type: Directive,
|
|
2831
2839
|
args: [{
|
|
2832
2840
|
selector: '[ngClass]',
|
|
@@ -3013,10 +3021,10 @@ class NgComponentOutlet {
|
|
|
3013
3021
|
}
|
|
3014
3022
|
}
|
|
3015
3023
|
}
|
|
3016
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3017
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3024
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3025
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgComponentOutlet, isStandalone: true, selector: "[ngComponentOutlet]", inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInputs: "ngComponentOutletInputs", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModule: "ngComponentOutletNgModule", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, exportAs: ["ngComponentOutlet"], usesOnChanges: true, ngImport: i0 });
|
|
3018
3026
|
}
|
|
3019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgComponentOutlet, decorators: [{
|
|
3020
3028
|
type: Directive,
|
|
3021
3029
|
args: [{
|
|
3022
3030
|
selector: '[ngComponentOutlet]',
|
|
@@ -3323,10 +3331,10 @@ class NgForOf {
|
|
|
3323
3331
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3324
3332
|
return true;
|
|
3325
3333
|
}
|
|
3326
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3327
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3335
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgForOf, isStandalone: true, selector: "[ngFor][ngForOf]", inputs: { ngForOf: "ngForOf", ngForTrackBy: "ngForTrackBy", ngForTemplate: "ngForTemplate" }, ngImport: i0 });
|
|
3328
3336
|
}
|
|
3329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgForOf, decorators: [{
|
|
3330
3338
|
type: Directive,
|
|
3331
3339
|
args: [{
|
|
3332
3340
|
selector: '[ngFor][ngForOf]',
|
|
@@ -3560,10 +3568,10 @@ class NgIf {
|
|
|
3560
3568
|
static ngTemplateContextGuard(dir, ctx) {
|
|
3561
3569
|
return true;
|
|
3562
3570
|
}
|
|
3563
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3564
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3571
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3572
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgIf, isStandalone: true, selector: "[ngIf]", inputs: { ngIf: "ngIf", ngIfThen: "ngIfThen", ngIfElse: "ngIfElse" }, ngImport: i0 });
|
|
3565
3573
|
}
|
|
3566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgIf, decorators: [{
|
|
3567
3575
|
type: Directive,
|
|
3568
3576
|
args: [{
|
|
3569
3577
|
selector: '[ngIf]',
|
|
@@ -3721,10 +3729,10 @@ class NgSwitch {
|
|
|
3721
3729
|
}
|
|
3722
3730
|
}
|
|
3723
3731
|
}
|
|
3724
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3725
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3732
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3733
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgSwitch, isStandalone: true, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 });
|
|
3726
3734
|
}
|
|
3727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgSwitch, decorators: [{
|
|
3728
3736
|
type: Directive,
|
|
3729
3737
|
args: [{
|
|
3730
3738
|
selector: '[ngSwitch]',
|
|
@@ -3787,10 +3795,10 @@ class NgSwitchCase {
|
|
|
3787
3795
|
ngDoCheck() {
|
|
3788
3796
|
this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
|
|
3789
3797
|
}
|
|
3790
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3791
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3798
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3799
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgSwitchCase, isStandalone: true, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 });
|
|
3792
3800
|
}
|
|
3793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgSwitchCase, decorators: [{
|
|
3794
3802
|
type: Directive,
|
|
3795
3803
|
args: [{
|
|
3796
3804
|
selector: '[ngSwitchCase]',
|
|
@@ -3823,10 +3831,10 @@ class NgSwitchDefault {
|
|
|
3823
3831
|
}
|
|
3824
3832
|
ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
|
|
3825
3833
|
}
|
|
3826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3827
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3834
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3835
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgSwitchDefault, isStandalone: true, selector: "[ngSwitchDefault]", ngImport: i0 });
|
|
3828
3836
|
}
|
|
3829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgSwitchDefault, decorators: [{
|
|
3830
3838
|
type: Directive,
|
|
3831
3839
|
args: [{
|
|
3832
3840
|
selector: '[ngSwitchDefault]',
|
|
@@ -3841,6 +3849,9 @@ function throwNgSwitchProviderNotFoundError(attrName, directiveName) {
|
|
|
3841
3849
|
`(matching the "${directiveName}" directive) must be located inside an element with the "ngSwitch" attribute ` +
|
|
3842
3850
|
`(matching "NgSwitch" directive)`);
|
|
3843
3851
|
}
|
|
3852
|
+
function stringifyValue(value) {
|
|
3853
|
+
return typeof value === 'string' ? `'${value}'` : String(value);
|
|
3854
|
+
}
|
|
3844
3855
|
|
|
3845
3856
|
/**
|
|
3846
3857
|
* @ngModule CommonModule
|
|
@@ -3902,10 +3913,10 @@ class NgPlural {
|
|
|
3902
3913
|
this._activeView.create();
|
|
3903
3914
|
}
|
|
3904
3915
|
}
|
|
3905
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3906
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3916
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3917
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgPlural, isStandalone: true, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 });
|
|
3907
3918
|
}
|
|
3908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgPlural, decorators: [{
|
|
3909
3920
|
type: Directive,
|
|
3910
3921
|
args: [{
|
|
3911
3922
|
selector: '[ngPlural]',
|
|
@@ -3940,10 +3951,10 @@ class NgPluralCase {
|
|
|
3940
3951
|
const isANumber = !isNaN(Number(value));
|
|
3941
3952
|
ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
|
|
3942
3953
|
}
|
|
3943
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3944
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
3954
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3955
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgPluralCase, isStandalone: true, selector: "[ngPluralCase]", ngImport: i0 });
|
|
3945
3956
|
}
|
|
3946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgPluralCase, decorators: [{
|
|
3947
3958
|
type: Directive,
|
|
3948
3959
|
args: [{
|
|
3949
3960
|
selector: '[ngPluralCase]',
|
|
@@ -4036,10 +4047,10 @@ class NgStyle {
|
|
|
4036
4047
|
changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
4037
4048
|
changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
|
|
4038
4049
|
}
|
|
4039
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4040
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
4050
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4051
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgStyle, isStandalone: true, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 });
|
|
4041
4052
|
}
|
|
4042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgStyle, decorators: [{
|
|
4043
4054
|
type: Directive,
|
|
4044
4055
|
args: [{
|
|
4045
4056
|
selector: '[ngStyle]',
|
|
@@ -4140,10 +4151,10 @@ class NgTemplateOutlet {
|
|
|
4140
4151
|
},
|
|
4141
4152
|
});
|
|
4142
4153
|
}
|
|
4143
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4144
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
4154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4155
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0-next.0", type: NgTemplateOutlet, isStandalone: true, selector: "[ngTemplateOutlet]", inputs: { ngTemplateOutletContext: "ngTemplateOutletContext", ngTemplateOutlet: "ngTemplateOutlet", ngTemplateOutletInjector: "ngTemplateOutletInjector" }, usesOnChanges: true, ngImport: i0 });
|
|
4145
4156
|
}
|
|
4146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgTemplateOutlet, decorators: [{
|
|
4147
4158
|
type: Directive,
|
|
4148
4159
|
args: [{
|
|
4149
4160
|
selector: '[ngTemplateOutlet]',
|
|
@@ -4311,10 +4322,10 @@ class AsyncPipe {
|
|
|
4311
4322
|
}
|
|
4312
4323
|
}
|
|
4313
4324
|
}
|
|
4314
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4315
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4325
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4326
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: AsyncPipe, isStandalone: true, name: "async", pure: false });
|
|
4316
4327
|
}
|
|
4317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: AsyncPipe, decorators: [{
|
|
4318
4329
|
type: Pipe,
|
|
4319
4330
|
args: [{
|
|
4320
4331
|
name: 'async',
|
|
@@ -4346,10 +4357,10 @@ class LowerCasePipe {
|
|
|
4346
4357
|
}
|
|
4347
4358
|
return value.toLowerCase();
|
|
4348
4359
|
}
|
|
4349
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4350
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4360
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4361
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: "lowercase" });
|
|
4351
4362
|
}
|
|
4352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LowerCasePipe, decorators: [{
|
|
4353
4364
|
type: Pipe,
|
|
4354
4365
|
args: [{
|
|
4355
4366
|
name: 'lowercase',
|
|
@@ -4390,10 +4401,10 @@ class TitleCasePipe {
|
|
|
4390
4401
|
}
|
|
4391
4402
|
return value.replace(unicodeWordMatch, (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase());
|
|
4392
4403
|
}
|
|
4393
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4394
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4405
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: "titlecase" });
|
|
4395
4406
|
}
|
|
4396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: TitleCasePipe, decorators: [{
|
|
4397
4408
|
type: Pipe,
|
|
4398
4409
|
args: [{
|
|
4399
4410
|
name: 'titlecase',
|
|
@@ -4416,10 +4427,10 @@ class UpperCasePipe {
|
|
|
4416
4427
|
}
|
|
4417
4428
|
return value.toUpperCase();
|
|
4418
4429
|
}
|
|
4419
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4420
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4430
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4431
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: "uppercase" });
|
|
4421
4432
|
}
|
|
4422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: UpperCasePipe, decorators: [{
|
|
4423
4434
|
type: Pipe,
|
|
4424
4435
|
args: [{
|
|
4425
4436
|
name: 'uppercase',
|
|
@@ -4650,10 +4661,10 @@ class DatePipe {
|
|
|
4650
4661
|
throw invalidPipeArgumentError(DatePipe, error.message);
|
|
4651
4662
|
}
|
|
4652
4663
|
}
|
|
4653
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4654
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4664
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", 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 });
|
|
4665
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: DatePipe, isStandalone: true, name: "date" });
|
|
4655
4666
|
}
|
|
4656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DatePipe, decorators: [{
|
|
4657
4668
|
type: Pipe,
|
|
4658
4669
|
args: [{
|
|
4659
4670
|
name: 'date',
|
|
@@ -4709,10 +4720,10 @@ class I18nPluralPipe {
|
|
|
4709
4720
|
const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
|
|
4710
4721
|
return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
|
|
4711
4722
|
}
|
|
4712
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4713
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4723
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4724
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: "i18nPlural" });
|
|
4714
4725
|
}
|
|
4715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: I18nPluralPipe, decorators: [{
|
|
4716
4727
|
type: Pipe,
|
|
4717
4728
|
args: [{
|
|
4718
4729
|
name: 'i18nPlural',
|
|
@@ -4756,10 +4767,10 @@ class I18nSelectPipe {
|
|
|
4756
4767
|
}
|
|
4757
4768
|
return '';
|
|
4758
4769
|
}
|
|
4759
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4760
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4770
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4771
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: "i18nSelect" });
|
|
4761
4772
|
}
|
|
4762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: I18nSelectPipe, decorators: [{
|
|
4763
4774
|
type: Pipe,
|
|
4764
4775
|
args: [{
|
|
4765
4776
|
name: 'i18nSelect',
|
|
@@ -4788,10 +4799,10 @@ class JsonPipe {
|
|
|
4788
4799
|
transform(value) {
|
|
4789
4800
|
return JSON.stringify(value, null, 2);
|
|
4790
4801
|
}
|
|
4791
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4792
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4803
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: JsonPipe, isStandalone: true, name: "json", pure: false });
|
|
4793
4804
|
}
|
|
4794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: JsonPipe, decorators: [{
|
|
4795
4806
|
type: Pipe,
|
|
4796
4807
|
args: [{
|
|
4797
4808
|
name: 'json',
|
|
@@ -4853,10 +4864,10 @@ class KeyValuePipe {
|
|
|
4853
4864
|
}
|
|
4854
4865
|
return this.keyValues;
|
|
4855
4866
|
}
|
|
4856
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4857
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4867
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4868
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: "keyvalue", pure: false });
|
|
4858
4869
|
}
|
|
4859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: KeyValuePipe, decorators: [{
|
|
4860
4871
|
type: Pipe,
|
|
4861
4872
|
args: [{
|
|
4862
4873
|
name: 'keyvalue',
|
|
@@ -4866,30 +4877,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
4866
4877
|
function defaultComparator(keyValueA, keyValueB) {
|
|
4867
4878
|
const a = keyValueA.key;
|
|
4868
4879
|
const b = keyValueB.key;
|
|
4869
|
-
//
|
|
4880
|
+
// if same exit with 0;
|
|
4870
4881
|
if (a === b)
|
|
4871
4882
|
return 0;
|
|
4872
|
-
//
|
|
4873
|
-
if (a
|
|
4874
|
-
return 1;
|
|
4875
|
-
if (b
|
|
4876
|
-
return -1;
|
|
4877
|
-
//
|
|
4883
|
+
// make sure that undefined are at the end of the sort.
|
|
4884
|
+
if (a === undefined)
|
|
4885
|
+
return 1;
|
|
4886
|
+
if (b === undefined)
|
|
4887
|
+
return -1;
|
|
4888
|
+
// make sure that nulls are at the end of the sort.
|
|
4889
|
+
if (a === null)
|
|
4890
|
+
return 1;
|
|
4891
|
+
if (b === null)
|
|
4892
|
+
return -1;
|
|
4878
4893
|
if (typeof a == 'string' && typeof b == 'string') {
|
|
4879
4894
|
return a < b ? -1 : 1;
|
|
4880
4895
|
}
|
|
4881
|
-
// If both keys are numbers, sort them numerically.
|
|
4882
4896
|
if (typeof a == 'number' && typeof b == 'number') {
|
|
4883
4897
|
return a - b;
|
|
4884
4898
|
}
|
|
4885
|
-
// If both keys are booleans, sort `false` before `true`.
|
|
4886
4899
|
if (typeof a == 'boolean' && typeof b == 'boolean') {
|
|
4887
4900
|
return a < b ? -1 : 1;
|
|
4888
4901
|
}
|
|
4889
|
-
//
|
|
4902
|
+
// `a` and `b` are of different types. Compare their string values.
|
|
4890
4903
|
const aString = String(a);
|
|
4891
4904
|
const bString = String(b);
|
|
4892
|
-
// Compare the string representations lexicographically.
|
|
4893
4905
|
return aString == bString ? 0 : aString < bString ? -1 : 1;
|
|
4894
4906
|
}
|
|
4895
4907
|
|
|
@@ -4973,10 +4985,10 @@ class DecimalPipe {
|
|
|
4973
4985
|
throw invalidPipeArgumentError(DecimalPipe, error.message);
|
|
4974
4986
|
}
|
|
4975
4987
|
}
|
|
4976
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
4977
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
4988
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4989
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: DecimalPipe, isStandalone: true, name: "number" });
|
|
4978
4990
|
}
|
|
4979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DecimalPipe, decorators: [{
|
|
4980
4992
|
type: Pipe,
|
|
4981
4993
|
args: [{
|
|
4982
4994
|
name: 'number',
|
|
@@ -5038,10 +5050,10 @@ class PercentPipe {
|
|
|
5038
5050
|
throw invalidPipeArgumentError(PercentPipe, error.message);
|
|
5039
5051
|
}
|
|
5040
5052
|
}
|
|
5041
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5042
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
5053
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5054
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: PercentPipe, isStandalone: true, name: "percent" });
|
|
5043
5055
|
}
|
|
5044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PercentPipe, decorators: [{
|
|
5045
5057
|
type: Pipe,
|
|
5046
5058
|
args: [{
|
|
5047
5059
|
name: 'percent',
|
|
@@ -5105,10 +5117,10 @@ class CurrencyPipe {
|
|
|
5105
5117
|
throw invalidPipeArgumentError(CurrencyPipe, error.message);
|
|
5106
5118
|
}
|
|
5107
5119
|
}
|
|
5108
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5109
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
5120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5121
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: "currency" });
|
|
5110
5122
|
}
|
|
5111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: CurrencyPipe, decorators: [{
|
|
5112
5124
|
type: Pipe,
|
|
5113
5125
|
args: [{
|
|
5114
5126
|
name: 'currency',
|
|
@@ -5184,10 +5196,10 @@ class SlicePipe {
|
|
|
5184
5196
|
supports(obj) {
|
|
5185
5197
|
return typeof obj === 'string' || Array.isArray(obj);
|
|
5186
5198
|
}
|
|
5187
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5188
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
5199
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5200
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice", pure: false });
|
|
5189
5201
|
}
|
|
5190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: SlicePipe, decorators: [{
|
|
5191
5203
|
type: Pipe,
|
|
5192
5204
|
args: [{
|
|
5193
5205
|
name: 'slice',
|
|
@@ -5230,11 +5242,11 @@ const COMMON_PIPES = [
|
|
|
5230
5242
|
* @publicApi
|
|
5231
5243
|
*/
|
|
5232
5244
|
class CommonModule {
|
|
5233
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5234
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
|
5235
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
|
5245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5246
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.0", 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] });
|
|
5247
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: CommonModule });
|
|
5236
5248
|
}
|
|
5237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: CommonModule, decorators: [{
|
|
5238
5250
|
type: NgModule,
|
|
5239
5251
|
args: [{
|
|
5240
5252
|
imports: [COMMON_DIRECTIVES, COMMON_PIPES],
|
|
@@ -5267,7 +5279,7 @@ function isPlatformServer(platformId) {
|
|
|
5267
5279
|
/**
|
|
5268
5280
|
* @publicApi
|
|
5269
5281
|
*/
|
|
5270
|
-
const VERSION = new Version('19.
|
|
5282
|
+
const VERSION = new Version('19.2.0-next.0');
|
|
5271
5283
|
|
|
5272
5284
|
/**
|
|
5273
5285
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -5885,10 +5897,10 @@ class LCPImageObserver {
|
|
|
5885
5897
|
this.observer.disconnect();
|
|
5886
5898
|
this.images.clear();
|
|
5887
5899
|
}
|
|
5888
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5889
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
5900
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5901
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
|
|
5890
5902
|
}
|
|
5891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
5892
5904
|
type: Injectable,
|
|
5893
5905
|
args: [{ providedIn: 'root' }]
|
|
5894
5906
|
}], ctorParameters: () => [] });
|
|
@@ -5937,6 +5949,7 @@ const PRECONNECT_CHECK_BLOCKLIST = new InjectionToken(ngDevMode ? 'PRECONNECT_CH
|
|
|
5937
5949
|
*/
|
|
5938
5950
|
class PreconnectLinkChecker {
|
|
5939
5951
|
document = inject(DOCUMENT);
|
|
5952
|
+
isServer = isPlatformServer(inject(PLATFORM_ID));
|
|
5940
5953
|
/**
|
|
5941
5954
|
* Set of <link rel="preconnect"> tags found on this page.
|
|
5942
5955
|
* The `null` value indicates that there was no DOM query operation performed.
|
|
@@ -5946,10 +5959,14 @@ class PreconnectLinkChecker {
|
|
|
5946
5959
|
* Keep track of all already seen origin URLs to avoid repeating the same check.
|
|
5947
5960
|
*/
|
|
5948
5961
|
alreadySeen = new Set();
|
|
5949
|
-
window =
|
|
5962
|
+
window = null;
|
|
5950
5963
|
blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);
|
|
5951
5964
|
constructor() {
|
|
5952
5965
|
assertDevMode('preconnect link checker');
|
|
5966
|
+
const win = this.document.defaultView;
|
|
5967
|
+
if (typeof win !== 'undefined') {
|
|
5968
|
+
this.window = win;
|
|
5969
|
+
}
|
|
5953
5970
|
const blocklist = inject(PRECONNECT_CHECK_BLOCKLIST, { optional: true });
|
|
5954
5971
|
if (blocklist) {
|
|
5955
5972
|
this.populateBlocklist(blocklist);
|
|
@@ -5973,7 +5990,7 @@ class PreconnectLinkChecker {
|
|
|
5973
5990
|
* @param originalNgSrc ngSrc value
|
|
5974
5991
|
*/
|
|
5975
5992
|
assertPreconnect(rewrittenSrc, originalNgSrc) {
|
|
5976
|
-
if (
|
|
5993
|
+
if (this.isServer)
|
|
5977
5994
|
return;
|
|
5978
5995
|
const imgUrl = getUrl(rewrittenSrc, this.window);
|
|
5979
5996
|
if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin))
|
|
@@ -6007,10 +6024,10 @@ class PreconnectLinkChecker {
|
|
|
6007
6024
|
this.preconnectLinks?.clear();
|
|
6008
6025
|
this.alreadySeen.clear();
|
|
6009
6026
|
}
|
|
6010
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6011
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
6027
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6028
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
|
|
6012
6029
|
}
|
|
6013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
6014
6031
|
type: Injectable,
|
|
6015
6032
|
args: [{ providedIn: 'root' }]
|
|
6016
6033
|
}], ctorParameters: () => [] });
|
|
@@ -6097,10 +6114,10 @@ class PreloadLinkCreator {
|
|
|
6097
6114
|
}
|
|
6098
6115
|
renderer.appendChild(this.document.head, preload);
|
|
6099
6116
|
}
|
|
6100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6101
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
6117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6118
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
|
|
6102
6119
|
}
|
|
6103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
6104
6121
|
type: Injectable,
|
|
6105
6122
|
args: [{ providedIn: 'root' }]
|
|
6106
6123
|
}] });
|
|
@@ -6304,6 +6321,8 @@ class NgOptimizedImage {
|
|
|
6304
6321
|
renderer = inject(Renderer2);
|
|
6305
6322
|
imgElement = inject(ElementRef).nativeElement;
|
|
6306
6323
|
injector = inject(Injector);
|
|
6324
|
+
isServer = isPlatformServer(inject(PLATFORM_ID));
|
|
6325
|
+
preloadLinkCreator = inject(PreloadLinkCreator);
|
|
6307
6326
|
// An LCP image observer should be injected only in development mode.
|
|
6308
6327
|
// Do not assign it to `null` to avoid having a redundant property in the production bundle.
|
|
6309
6328
|
lcpObserver;
|
|
@@ -6454,7 +6473,7 @@ class NgOptimizedImage {
|
|
|
6454
6473
|
if (this.priority) {
|
|
6455
6474
|
const checker = this.injector.get(PreconnectLinkChecker);
|
|
6456
6475
|
checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);
|
|
6457
|
-
if (
|
|
6476
|
+
if (!this.isServer) {
|
|
6458
6477
|
const applicationRef = this.injector.get(ApplicationRef);
|
|
6459
6478
|
assetPriorityCountBelowThreshold(applicationRef);
|
|
6460
6479
|
}
|
|
@@ -6498,9 +6517,8 @@ class NgOptimizedImage {
|
|
|
6498
6517
|
this.setHostAttribute('sizes', 'auto, 100vw');
|
|
6499
6518
|
}
|
|
6500
6519
|
}
|
|
6501
|
-
if (
|
|
6502
|
-
|
|
6503
|
-
preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);
|
|
6520
|
+
if (this.isServer && this.priority) {
|
|
6521
|
+
this.preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);
|
|
6504
6522
|
}
|
|
6505
6523
|
}
|
|
6506
6524
|
/** @nodoc */
|
|
@@ -6531,10 +6549,7 @@ class NgOptimizedImage {
|
|
|
6531
6549
|
}
|
|
6532
6550
|
}
|
|
6533
6551
|
}
|
|
6534
|
-
if (ngDevMode &&
|
|
6535
|
-
changes['placeholder']?.currentValue &&
|
|
6536
|
-
typeof ngServerMode !== 'undefined' &&
|
|
6537
|
-
!ngServerMode) {
|
|
6552
|
+
if (ngDevMode && changes['placeholder']?.currentValue && !this.isServer) {
|
|
6538
6553
|
assertPlaceholderDimensions(this, this.imgElement);
|
|
6539
6554
|
}
|
|
6540
6555
|
}
|
|
@@ -6678,10 +6693,10 @@ class NgOptimizedImage {
|
|
|
6678
6693
|
setHostAttribute(name, value) {
|
|
6679
6694
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
6680
6695
|
}
|
|
6681
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6682
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.
|
|
6696
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6697
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.0-next.0", type: NgOptimizedImage, isStandalone: true, selector: "img[ngSrc]", inputs: { ngSrc: ["ngSrc", "ngSrc", unwrapSafeUrl], ngSrcset: "ngSrcset", sizes: "sizes", width: ["width", "width", numberAttribute], height: ["height", "height", numberAttribute], loading: "loading", priority: ["priority", "priority", booleanAttribute], loaderParams: "loaderParams", disableOptimizedSrcset: ["disableOptimizedSrcset", "disableOptimizedSrcset", booleanAttribute], fill: ["fill", "fill", booleanAttribute], placeholder: ["placeholder", "placeholder", booleanOrUrlAttribute], placeholderConfig: "placeholderConfig", src: "src", srcset: "srcset" }, host: { properties: { "style.position": "fill ? \"absolute\" : null", "style.width": "fill ? \"100%\" : null", "style.height": "fill ? \"100%\" : null", "style.inset": "fill ? \"0\" : null", "style.background-size": "placeholder ? \"cover\" : null", "style.background-position": "placeholder ? \"50% 50%\" : null", "style.background-repeat": "placeholder ? \"no-repeat\" : null", "style.background-image": "placeholder ? generatePlaceholder(placeholder) : null", "style.filter": "placeholder && shouldBlurPlaceholder(placeholderConfig) ? \"blur(15px)\" : null" } }, usesOnChanges: true, ngImport: i0 });
|
|
6683
6698
|
}
|
|
6684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
6685
6700
|
type: Directive,
|
|
6686
6701
|
args: [{
|
|
6687
6702
|
selector: 'img[ngSrc]',
|