@angular/common 20.1.0-next.3 → 20.1.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/common_module.d.d.ts +7 -3
- package/fesm2022/common.mjs +14 -14
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/common_module.mjs +94 -86
- package/fesm2022/common_module.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -11
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +7 -1
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/location.mjs +16 -16
- package/fesm2022/module.mjs +190 -57
- package/fesm2022/module.mjs.map +1 -1
- package/fesm2022/platform_navigation.mjs +4 -4
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +5 -5
- package/fesm2022/xhr.mjs +1 -1
- package/http/index.d.ts +392 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/module.d.d.ts +48 -1
- package/package.json +2 -2
- package/platform_location.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/xhr.d.d.ts +1 -1
package/common_module.d.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0
|
|
2
|
+
* @license Angular v20.1.0
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { InjectionToken, OnDestroy, DoCheck, ElementRef, Renderer2, OnChanges, Type, Injector, NgModuleFactory, ViewContainerRef, SimpleChanges, NgIterable, TrackByFunction, TemplateRef, IterableDiffers, KeyValueDiffers, PipeTransform, ChangeDetectorRef } from '@angular/core';
|
|
8
|
+
import { InjectionToken, OnDestroy, DoCheck, ElementRef, Renderer2, OnChanges, Type, Injector, EnvironmentInjector, NgModuleFactory, ViewContainerRef, SimpleChanges, NgIterable, TrackByFunction, TemplateRef, IterableDiffers, KeyValueDiffers, PipeTransform, ChangeDetectorRef } from '@angular/core';
|
|
9
9
|
import { SubscriptionLike, Observable, Subscribable } from 'rxjs';
|
|
10
10
|
import { LocationChangeListener, PlatformLocation } from './platform_location.d.js';
|
|
11
11
|
|
|
@@ -386,6 +386,9 @@ declare class NgClass implements DoCheck {
|
|
|
386
386
|
* * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for
|
|
387
387
|
* the Component. Defaults to the injector of the current view container.
|
|
388
388
|
*
|
|
389
|
+
* * `ngComponentOutletEnvironmentInjector`: Optional custom {@link EnvironmentInjector} which will
|
|
390
|
+
* provide the component's environment.
|
|
391
|
+
*
|
|
389
392
|
* * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
|
|
390
393
|
* section of the component, if it exists.
|
|
391
394
|
*
|
|
@@ -442,6 +445,7 @@ declare class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestro
|
|
|
442
445
|
ngComponentOutlet: Type<any> | null;
|
|
443
446
|
ngComponentOutletInputs?: Record<string, unknown>;
|
|
444
447
|
ngComponentOutletInjector?: Injector;
|
|
448
|
+
ngComponentOutletEnvironmentInjector?: EnvironmentInjector;
|
|
445
449
|
ngComponentOutletContent?: any[][];
|
|
446
450
|
ngComponentOutletNgModule?: Type<any>;
|
|
447
451
|
/**
|
|
@@ -472,7 +476,7 @@ declare class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestro
|
|
|
472
476
|
ngOnDestroy(): void;
|
|
473
477
|
private _applyInputStateDiff;
|
|
474
478
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgComponentOutlet<any>, never>;
|
|
475
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgComponentOutlet<any>, "[ngComponentOutlet]", ["ngComponentOutlet"], { "ngComponentOutlet": { "alias": "ngComponentOutlet"; "required": false; }; "ngComponentOutletInputs": { "alias": "ngComponentOutletInputs"; "required": false; }; "ngComponentOutletInjector": { "alias": "ngComponentOutletInjector"; "required": false; }; "ngComponentOutletContent": { "alias": "ngComponentOutletContent"; "required": false; }; "ngComponentOutletNgModule": { "alias": "ngComponentOutletNgModule"; "required": false; }; "ngComponentOutletNgModuleFactory": { "alias": "ngComponentOutletNgModuleFactory"; "required": false; }; }, {}, never, never, true, never>;
|
|
479
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgComponentOutlet<any>, "[ngComponentOutlet]", ["ngComponentOutlet"], { "ngComponentOutlet": { "alias": "ngComponentOutlet"; "required": false; }; "ngComponentOutletInputs": { "alias": "ngComponentOutletInputs"; "required": false; }; "ngComponentOutletInjector": { "alias": "ngComponentOutletInjector"; "required": false; }; "ngComponentOutletEnvironmentInjector": { "alias": "ngComponentOutletEnvironmentInjector"; "required": false; }; "ngComponentOutletContent": { "alias": "ngComponentOutletContent"; "required": false; }; "ngComponentOutletNgModule": { "alias": "ngComponentOutletNgModule"; "required": false; }; "ngComponentOutletNgModuleFactory": { "alias": "ngComponentOutletNgModuleFactory"; "required": false; }; }, {}, never, never, true, never>;
|
|
476
480
|
}
|
|
477
481
|
|
|
478
482
|
/**
|
package/fesm2022/common.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0
|
|
2
|
+
* @license Angular v20.1.0
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -51,7 +51,7 @@ function isPlatformServer(platformId) {
|
|
|
51
51
|
/**
|
|
52
52
|
* @publicApi
|
|
53
53
|
*/
|
|
54
|
-
const VERSION = new Version('20.1.0
|
|
54
|
+
const VERSION = new Version('20.1.0');
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -674,10 +674,10 @@ class LCPImageObserver {
|
|
|
674
674
|
this.observer.disconnect();
|
|
675
675
|
this.images.clear();
|
|
676
676
|
}
|
|
677
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0
|
|
678
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0
|
|
677
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
678
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
|
|
679
679
|
}
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0
|
|
680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
681
681
|
type: Injectable,
|
|
682
682
|
args: [{ providedIn: 'root' }]
|
|
683
683
|
}], ctorParameters: () => [] });
|
|
@@ -795,10 +795,10 @@ class PreconnectLinkChecker {
|
|
|
795
795
|
this.preconnectLinks?.clear();
|
|
796
796
|
this.alreadySeen.clear();
|
|
797
797
|
}
|
|
798
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0
|
|
799
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0
|
|
798
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
799
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
|
|
800
800
|
}
|
|
801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0
|
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
802
802
|
type: Injectable,
|
|
803
803
|
args: [{ providedIn: 'root' }]
|
|
804
804
|
}], ctorParameters: () => [] });
|
|
@@ -886,10 +886,10 @@ class PreloadLinkCreator {
|
|
|
886
886
|
}
|
|
887
887
|
renderer.appendChild(this.document.head, preload);
|
|
888
888
|
}
|
|
889
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0
|
|
890
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0
|
|
889
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
890
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
|
|
891
891
|
}
|
|
892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0
|
|
892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
893
893
|
type: Injectable,
|
|
894
894
|
args: [{ providedIn: 'root' }]
|
|
895
895
|
}] });
|
|
@@ -1483,10 +1483,10 @@ class NgOptimizedImage {
|
|
|
1483
1483
|
setHostAttribute(name, value) {
|
|
1484
1484
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
1485
1485
|
}
|
|
1486
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0
|
|
1487
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.1.0
|
|
1486
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1487
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.1.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], decoding: "decoding", 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 });
|
|
1488
1488
|
}
|
|
1489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0
|
|
1489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
1490
1490
|
type: Directive,
|
|
1491
1491
|
args: [{
|
|
1492
1492
|
selector: 'img[ngSrc]',
|