@angular/common 20.0.0-rc.0 → 20.0.0-rc.2
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-CFPjq0Cz.d.ts → common_module.d-B42WMLw4.d.ts} +8 -8
- package/fesm2022/common.mjs +18 -18
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/{common_module-CflUMSwD.mjs → common_module-B4apSsk3.mjs} +94 -94
- package/fesm2022/common_module-B4apSsk3.mjs.map +1 -0
- package/fesm2022/http/testing.mjs +9 -9
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +12 -7
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/{location-BeT0iJq7.mjs → location-DTVjZRwU.mjs} +19 -19
- package/fesm2022/location-DTVjZRwU.mjs.map +1 -0
- package/fesm2022/{module-BsrIcwH4.mjs → module-BCyfXG3l.mjs} +62 -39
- package/fesm2022/module-BCyfXG3l.mjs.map +1 -0
- package/fesm2022/platform_navigation-B45Jeakb.mjs +4 -4
- package/fesm2022/platform_navigation-B45Jeakb.mjs.map +1 -1
- package/fesm2022/testing.mjs +15 -15
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +7 -7
- package/fesm2022/upgrade.mjs.map +1 -1
- package/fesm2022/xhr-BfNfxNDv.mjs +1 -1
- package/fesm2022/xhr-BfNfxNDv.mjs.map +1 -1
- package/http/index.d.ts +2 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +11 -11
- package/module.d-yNBsZ8gb.d.ts +1 -1
- package/package.json +3 -3
- package/platform_location.d-Lbv6Ueec.d.ts +1 -1
- package/testing/index.d.ts +2 -2
- package/upgrade/index.d.ts +2 -2
- package/xhr.d-D_1kTQR5.d.ts +1 -1
- package/fesm2022/common_module-CflUMSwD.mjs.map +0 -1
- package/fesm2022/location-BeT0iJq7.mjs.map +0 -1
- package/fesm2022/module-BsrIcwH4.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-rc.
|
|
2
|
+
* @license Angular v20.0.0-rc.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -100,7 +100,7 @@ declare class PathLocationStrategy extends LocationStrategy implements OnDestroy
|
|
|
100
100
|
private _baseHref;
|
|
101
101
|
private _removeListenerFns;
|
|
102
102
|
constructor(_platformLocation: PlatformLocation, href?: string);
|
|
103
|
-
/** @
|
|
103
|
+
/** @docs-private */
|
|
104
104
|
ngOnDestroy(): void;
|
|
105
105
|
onPopState(fn: LocationChangeListener): void;
|
|
106
106
|
getBaseHref(): string;
|
|
@@ -152,7 +152,7 @@ interface PopStateEvent {
|
|
|
152
152
|
*/
|
|
153
153
|
declare class Location implements OnDestroy {
|
|
154
154
|
constructor(locationStrategy: LocationStrategy);
|
|
155
|
-
/** @
|
|
155
|
+
/** @docs-private */
|
|
156
156
|
ngOnDestroy(): void;
|
|
157
157
|
/**
|
|
158
158
|
* Normalizes the URL path for this location.
|
|
@@ -464,11 +464,11 @@ declare class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestro
|
|
|
464
464
|
constructor(_viewContainerRef: ViewContainerRef);
|
|
465
465
|
private _needToReCreateNgModuleInstance;
|
|
466
466
|
private _needToReCreateComponentInstance;
|
|
467
|
-
/** @
|
|
467
|
+
/** @docs-private */
|
|
468
468
|
ngOnChanges(changes: SimpleChanges): void;
|
|
469
|
-
/** @
|
|
469
|
+
/** @docs-private */
|
|
470
470
|
ngDoCheck(): void;
|
|
471
|
-
/** @
|
|
471
|
+
/** @docs-private */
|
|
472
472
|
ngOnDestroy(): void;
|
|
473
473
|
private _applyInputStateDiff;
|
|
474
474
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgComponentOutlet<any>, never>;
|
|
@@ -657,7 +657,7 @@ declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoC
|
|
|
657
657
|
set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>);
|
|
658
658
|
/**
|
|
659
659
|
* Applies the changes when needed.
|
|
660
|
-
* @
|
|
660
|
+
* @docs-private
|
|
661
661
|
*/
|
|
662
662
|
ngDoCheck(): void;
|
|
663
663
|
private _applyChanges;
|
|
@@ -1120,7 +1120,7 @@ declare class NgSwitchCase implements DoCheck {
|
|
|
1120
1120
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Performs case matching. For internal use only.
|
|
1123
|
-
* @
|
|
1123
|
+
* @docs-private
|
|
1124
1124
|
*/
|
|
1125
1125
|
ngDoCheck(): void;
|
|
1126
1126
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitchCase, [null, null, { optional: true; host: true; }]>;
|
package/fesm2022/common.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-rc.
|
|
2
|
+
* @license Angular v20.0.0-rc.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export { AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PercentPipe, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, WeekDay, 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 } from './common_module-
|
|
7
|
+
export { AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PercentPipe, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, WeekDay, 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 } from './common_module-B4apSsk3.mjs';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
9
|
import { ɵregisterLocaleData as _registerLocaleData, Version, ɵɵdefineInjectable as __defineInjectable, inject, DOCUMENT, InjectionToken, ɵRuntimeError as _RuntimeError, ɵformatRuntimeError as _formatRuntimeError, Injectable, ɵIMAGE_CONFIG as _IMAGE_CONFIG, Renderer2, ElementRef, Injector, DestroyRef, ɵperformanceMarkFeature as _performanceMarkFeature, NgZone, ApplicationRef, booleanAttribute, numberAttribute, ChangeDetectorRef, ɵIMAGE_CONFIG_DEFAULTS as _IMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue as _unwrapSafeValue, Input, Directive } from '@angular/core';
|
|
10
10
|
export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';
|
|
11
11
|
export { XhrFactory, isPlatformBrowser, isPlatformServer, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, parseCookieValue as ɵparseCookieValue } from './xhr-BfNfxNDv.mjs';
|
|
12
|
-
export { APP_BASE_HREF, BrowserPlatformLocation, LOCATION_INITIALIZED, Location, LocationStrategy, PathLocationStrategy, PlatformLocation, DomAdapter as ɵDomAdapter, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, setRootDomAdapter as ɵsetRootDomAdapter } from './location-
|
|
12
|
+
export { APP_BASE_HREF, BrowserPlatformLocation, LOCATION_INITIALIZED, Location, LocationStrategy, PathLocationStrategy, PlatformLocation, DomAdapter as ɵDomAdapter, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, setRootDomAdapter as ɵsetRootDomAdapter } from './location-DTVjZRwU.mjs';
|
|
13
13
|
export { PlatformNavigation as ɵPlatformNavigation } from './platform_navigation-B45Jeakb.mjs';
|
|
14
14
|
import 'rxjs';
|
|
15
15
|
|
|
@@ -34,7 +34,7 @@ function registerLocaleData(data, localeId, extraData) {
|
|
|
34
34
|
/**
|
|
35
35
|
* @publicApi
|
|
36
36
|
*/
|
|
37
|
-
const VERSION = new Version('20.0.0-rc.
|
|
37
|
+
const VERSION = new Version('20.0.0-rc.2');
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -646,10 +646,10 @@ class LCPImageObserver {
|
|
|
646
646
|
this.observer.disconnect();
|
|
647
647
|
this.images.clear();
|
|
648
648
|
}
|
|
649
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
650
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
649
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
650
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
|
|
651
651
|
}
|
|
652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
653
653
|
type: Injectable,
|
|
654
654
|
args: [{ providedIn: 'root' }]
|
|
655
655
|
}], ctorParameters: () => [] });
|
|
@@ -767,10 +767,10 @@ class PreconnectLinkChecker {
|
|
|
767
767
|
this.preconnectLinks?.clear();
|
|
768
768
|
this.alreadySeen.clear();
|
|
769
769
|
}
|
|
770
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
771
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
770
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
771
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
|
|
772
772
|
}
|
|
773
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
774
774
|
type: Injectable,
|
|
775
775
|
args: [{ providedIn: 'root' }]
|
|
776
776
|
}], ctorParameters: () => [] });
|
|
@@ -858,10 +858,10 @@ class PreloadLinkCreator {
|
|
|
858
858
|
}
|
|
859
859
|
renderer.appendChild(this.document.head, preload);
|
|
860
860
|
}
|
|
861
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
862
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
861
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
862
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
|
|
863
863
|
}
|
|
864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
865
865
|
type: Injectable,
|
|
866
866
|
args: [{ providedIn: 'root' }]
|
|
867
867
|
}] });
|
|
@@ -1160,7 +1160,7 @@ class NgOptimizedImage {
|
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
/** @
|
|
1163
|
+
/** @docs-private */
|
|
1164
1164
|
ngOnInit() {
|
|
1165
1165
|
_performanceMarkFeature('NgOptimizedImage');
|
|
1166
1166
|
if (ngDevMode) {
|
|
@@ -1254,7 +1254,7 @@ class NgOptimizedImage {
|
|
|
1254
1254
|
preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
/** @
|
|
1257
|
+
/** @docs-private */
|
|
1258
1258
|
ngOnChanges(changes) {
|
|
1259
1259
|
if (ngDevMode) {
|
|
1260
1260
|
assertNoPostInitInputChange(this, changes, [
|
|
@@ -1429,10 +1429,10 @@ class NgOptimizedImage {
|
|
|
1429
1429
|
setHostAttribute(name, value) {
|
|
1430
1430
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
1431
1431
|
}
|
|
1432
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
1433
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-rc.
|
|
1432
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1433
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-rc.2", 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 });
|
|
1434
1434
|
}
|
|
1435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
1436
1436
|
type: Directive,
|
|
1437
1437
|
args: [{
|
|
1438
1438
|
selector: 'img[ngSrc]',
|