@angular/common 20.1.0-next.1 → 20.1.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{common_module.d-Cpp8wYHt.d.ts → common_module.d.d.ts} +11 -11
- package/fesm2022/common.mjs +31 -20
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/{common_module-D4mHDfs1.mjs → common_module.mjs} +97 -97
- package/fesm2022/common_module.mjs.map +1 -0
- package/fesm2022/http/testing.mjs +10 -10
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +23 -17
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/{location-BIEtBxGx.mjs → location.mjs} +17 -17
- package/fesm2022/location.mjs.map +1 -0
- package/fesm2022/{module-CBsxN_3E.mjs → module.mjs} +70 -39
- package/fesm2022/module.mjs.map +1 -0
- package/fesm2022/{platform_navigation-B45Jeakb.mjs → platform_navigation.mjs} +5 -5
- package/fesm2022/platform_navigation.mjs.map +1 -0
- 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-CEmSPUGj.mjs → xhr.mjs} +2 -2
- package/fesm2022/xhr.mjs.map +1 -0
- package/http/index.d.ts +250 -5
- package/http/testing/index.d.ts +2 -2
- package/index.d.ts +6 -6
- package/{module.d-yNBsZ8gb.d.ts → module.d.d.ts} +24 -1
- package/package.json +2 -2
- package/{platform_location.d-Lbv6Ueec.d.ts → platform_location.d.d.ts} +1 -1
- package/testing/index.d.ts +2 -2
- package/upgrade/index.d.ts +3 -3
- package/{xhr.d-D_1kTQR5.d.ts → xhr.d.d.ts} +1 -1
- package/fesm2022/common_module-D4mHDfs1.mjs.map +0 -1
- package/fesm2022/location-BIEtBxGx.mjs.map +0 -1
- package/fesm2022/module-CBsxN_3E.mjs.map +0 -1
- package/fesm2022/platform_navigation-B45Jeakb.mjs.map +0 -1
- package/fesm2022/xhr-CEmSPUGj.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { InjectionToken, OnDestroy, DoCheck, ElementRef, Renderer2, OnChanges, Type, Injector, NgModuleFactory, ViewContainerRef, SimpleChanges, NgIterable, TrackByFunction, TemplateRef, IterableDiffers, KeyValueDiffers, PipeTransform, ChangeDetectorRef } from '@angular/core';
|
|
9
9
|
import { SubscriptionLike, Observable, Subscribable } from 'rxjs';
|
|
10
|
-
import { LocationChangeListener, PlatformLocation } from './platform_location.d
|
|
10
|
+
import { LocationChangeListener, PlatformLocation } from './platform_location.d.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Enables the `Location` service to read route state from the browser's URL.
|
|
@@ -812,7 +812,7 @@ declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoC
|
|
|
812
812
|
* @publicApi
|
|
813
813
|
*
|
|
814
814
|
* @deprecated 20.0
|
|
815
|
-
* Use the
|
|
815
|
+
* Use the `@if` block instead. Intent to remove in v22
|
|
816
816
|
*/
|
|
817
817
|
declare class NgIf<T = unknown> {
|
|
818
818
|
private _viewContainer;
|
|
@@ -824,17 +824,17 @@ declare class NgIf<T = unknown> {
|
|
|
824
824
|
constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<NgIfContext<T>>);
|
|
825
825
|
/**
|
|
826
826
|
* The Boolean expression to evaluate as the condition for showing a template.
|
|
827
|
-
* @deprecated Use the
|
|
827
|
+
* @deprecated Use the `@if` block instead. Intent to remove in v22
|
|
828
828
|
*/
|
|
829
829
|
set ngIf(condition: T);
|
|
830
830
|
/**
|
|
831
831
|
* A template to show if the condition expression evaluates to true.
|
|
832
|
-
* @deprecated Use the
|
|
832
|
+
* @deprecated Use the `@if` block instead. Intent to remove in v22
|
|
833
833
|
*/
|
|
834
834
|
set ngIfThen(templateRef: TemplateRef<NgIfContext<T>> | null);
|
|
835
835
|
/**
|
|
836
836
|
* A template to show if the condition expression evaluates to false.
|
|
837
|
-
* @deprecated Use the
|
|
837
|
+
* @deprecated Use the `@if` block instead. Intent to remove in v22
|
|
838
838
|
*/
|
|
839
839
|
set ngIfElse(templateRef: TemplateRef<NgIfContext<T>> | null);
|
|
840
840
|
private _updateView;
|
|
@@ -1059,7 +1059,7 @@ declare class SwitchView {
|
|
|
1059
1059
|
* @see [Structural Directives](guide/directives/structural-directives)
|
|
1060
1060
|
*
|
|
1061
1061
|
* @deprecated 20.0
|
|
1062
|
-
* Use the
|
|
1062
|
+
* Use the `@switch` block instead. Intent to remove in v22
|
|
1063
1063
|
*/
|
|
1064
1064
|
declare class NgSwitch {
|
|
1065
1065
|
private _defaultViews;
|
|
@@ -1068,7 +1068,7 @@ declare class NgSwitch {
|
|
|
1068
1068
|
private _lastCaseCheckIndex;
|
|
1069
1069
|
private _lastCasesMatched;
|
|
1070
1070
|
private _ngSwitch;
|
|
1071
|
-
/** @deprecated Use the
|
|
1071
|
+
/** @deprecated Use the `@switch` block instead. Intent to remove in v22 */
|
|
1072
1072
|
set ngSwitch(newValue: any);
|
|
1073
1073
|
private _updateDefaultCases;
|
|
1074
1074
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitch, never>;
|
|
@@ -1107,14 +1107,14 @@ declare class NgSwitch {
|
|
|
1107
1107
|
* @see {@link NgSwitchDefault}
|
|
1108
1108
|
*
|
|
1109
1109
|
* @deprecated 20.0
|
|
1110
|
-
* Use the
|
|
1110
|
+
* Use the `@case` block within a `@switch` block instead. Intent to remove in v22
|
|
1111
1111
|
*/
|
|
1112
1112
|
declare class NgSwitchCase implements DoCheck {
|
|
1113
1113
|
private ngSwitch;
|
|
1114
1114
|
private _view;
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Stores the HTML template to be selected on match.
|
|
1117
|
-
* @deprecated Use the
|
|
1117
|
+
* @deprecated Use the `@case` block within a `@switch` block instead. Intent to remove in v22
|
|
1118
1118
|
*/
|
|
1119
1119
|
ngSwitchCase: any;
|
|
1120
1120
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
|
@@ -1140,7 +1140,7 @@ declare class NgSwitchCase implements DoCheck {
|
|
|
1140
1140
|
* @see {@link NgSwitchCase}
|
|
1141
1141
|
*
|
|
1142
1142
|
* @deprecated 20.0
|
|
1143
|
-
* Use the
|
|
1143
|
+
* Use the `@default` block within a `@switch` block instead. Intent to remove in v22
|
|
1144
1144
|
*/
|
|
1145
1145
|
declare class NgSwitchDefault {
|
|
1146
1146
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
package/fesm2022/common.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.3
|
|
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.mjs';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { ɵregisterLocaleData as _registerLocaleData, Version, ɵɵdefineInjectable as __defineInjectable, inject, DOCUMENT, InjectionToken, ɵRuntimeError as _RuntimeError,
|
|
9
|
+
import { ɵregisterLocaleData as _registerLocaleData, Version, ɵɵdefineInjectable as __defineInjectable, inject, DOCUMENT, ɵformatRuntimeError as _formatRuntimeError, InjectionToken, ɵRuntimeError as _RuntimeError, Injectable, ɵIMAGE_CONFIG as _IMAGE_CONFIG, Renderer2, ElementRef, Injector, DestroyRef, ɵperformanceMarkFeature as _performanceMarkFeature, NgZone, ApplicationRef, numberAttribute, booleanAttribute, Directive, Input, ɵIMAGE_CONFIG_DEFAULTS as _IMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue as _unwrapSafeValue, ChangeDetectorRef } from '@angular/core';
|
|
10
10
|
export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';
|
|
11
|
-
export { XhrFactory, parseCookieValue as ɵparseCookieValue } from './xhr
|
|
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
|
|
13
|
-
export { PlatformNavigation as ɵPlatformNavigation } from './platform_navigation
|
|
11
|
+
export { XhrFactory, parseCookieValue as ɵparseCookieValue } from './xhr.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.mjs';
|
|
13
|
+
export { PlatformNavigation as ɵPlatformNavigation } from './platform_navigation.mjs';
|
|
14
14
|
import 'rxjs';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -51,7 +51,7 @@ function isPlatformServer(platformId) {
|
|
|
51
51
|
/**
|
|
52
52
|
* @publicApi
|
|
53
53
|
*/
|
|
54
|
-
const VERSION = new Version('20.1.0-next.
|
|
54
|
+
const VERSION = new Version('20.1.0-next.3');
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
|
|
@@ -137,7 +137,18 @@ class BrowserViewportScroller {
|
|
|
137
137
|
* Disables automatic scroll restoration provided by the browser.
|
|
138
138
|
*/
|
|
139
139
|
setHistoryScrollRestoration(scrollRestoration) {
|
|
140
|
-
|
|
140
|
+
try {
|
|
141
|
+
this.window.history.scrollRestoration = scrollRestoration;
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
console.warn(_formatRuntimeError(2400 /* RuntimeErrorCode.SCROLL_RESTORATION_UNSUPPORTED */, ngDevMode &&
|
|
145
|
+
'Failed to set `window.history.scrollRestoration`. ' +
|
|
146
|
+
'This may occur when:\n' +
|
|
147
|
+
'• The script is running inside a sandboxed iframe\n' +
|
|
148
|
+
'• The window is partially navigated or inactive\n' +
|
|
149
|
+
'• The script is executed in an untrusted or special context (e.g., test runners, browser extensions, or content previews)\n' +
|
|
150
|
+
'Scroll position may not be preserved across navigation.'));
|
|
151
|
+
}
|
|
141
152
|
}
|
|
142
153
|
/**
|
|
143
154
|
* Scrolls to an element using the native offset and the specified offset set on this scroller.
|
|
@@ -663,10 +674,10 @@ class LCPImageObserver {
|
|
|
663
674
|
this.observer.disconnect();
|
|
664
675
|
this.images.clear();
|
|
665
676
|
}
|
|
666
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
667
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
677
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
678
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
|
|
668
679
|
}
|
|
669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: LCPImageObserver, decorators: [{
|
|
670
681
|
type: Injectable,
|
|
671
682
|
args: [{ providedIn: 'root' }]
|
|
672
683
|
}], ctorParameters: () => [] });
|
|
@@ -784,10 +795,10 @@ class PreconnectLinkChecker {
|
|
|
784
795
|
this.preconnectLinks?.clear();
|
|
785
796
|
this.alreadySeen.clear();
|
|
786
797
|
}
|
|
787
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
788
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
798
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
799
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
|
|
789
800
|
}
|
|
790
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
|
|
791
802
|
type: Injectable,
|
|
792
803
|
args: [{ providedIn: 'root' }]
|
|
793
804
|
}], ctorParameters: () => [] });
|
|
@@ -875,10 +886,10 @@ class PreloadLinkCreator {
|
|
|
875
886
|
}
|
|
876
887
|
renderer.appendChild(this.document.head, preload);
|
|
877
888
|
}
|
|
878
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
879
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
889
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
890
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
|
|
880
891
|
}
|
|
881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: PreloadLinkCreator, decorators: [{
|
|
882
893
|
type: Injectable,
|
|
883
894
|
args: [{ providedIn: 'root' }]
|
|
884
895
|
}] });
|
|
@@ -1472,10 +1483,10 @@ class NgOptimizedImage {
|
|
|
1472
1483
|
setHostAttribute(name, value) {
|
|
1473
1484
|
this.renderer.setAttribute(this.imgElement, name, value);
|
|
1474
1485
|
}
|
|
1475
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
1476
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.1.0-next.
|
|
1486
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1487
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.1.0-next.3", 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 });
|
|
1477
1488
|
}
|
|
1478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.
|
|
1489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0-next.3", ngImport: i0, type: NgOptimizedImage, decorators: [{
|
|
1479
1490
|
type: Directive,
|
|
1480
1491
|
args: [{
|
|
1481
1492
|
selector: 'img[ngSrc]',
|