@angular/common 20.0.0-next.5 → 20.0.0-next.7

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.
Files changed (27) hide show
  1. package/{common_module.d-BP8xLQft.d.ts → common_module.d-1Ij4nFjY.d.ts} +4 -4
  2. package/fesm2022/common.mjs +30 -30
  3. package/fesm2022/common.mjs.map +1 -1
  4. package/fesm2022/{common_module-DXqIruqL.mjs → common_module-Cz2TsVI9.mjs} +91 -91
  5. package/fesm2022/{common_module-DXqIruqL.mjs.map → common_module-Cz2TsVI9.mjs.map} +1 -1
  6. package/fesm2022/http/testing.mjs +10 -10
  7. package/fesm2022/http.mjs +12 -6
  8. package/fesm2022/http.mjs.map +1 -1
  9. package/fesm2022/{location-DL4aRLmc.mjs → location-BeT0iJq7.mjs} +18 -18
  10. package/fesm2022/{location-DL4aRLmc.mjs.map → location-BeT0iJq7.mjs.map} +1 -1
  11. package/fesm2022/{module-TRKGK7nU.mjs → module-C4LakRc7.mjs} +47 -47
  12. package/fesm2022/{module-TRKGK7nU.mjs.map → module-C4LakRc7.mjs.map} +1 -1
  13. package/fesm2022/{platform_navigation-2iCIwKiv.mjs → platform_navigation-B45Jeakb.mjs} +6 -6
  14. package/fesm2022/{platform_navigation-2iCIwKiv.mjs.map → platform_navigation-B45Jeakb.mjs.map} +1 -1
  15. package/fesm2022/testing.mjs +15 -15
  16. package/fesm2022/upgrade.mjs +7 -7
  17. package/fesm2022/{xhr-BdgfMvBr.mjs → xhr-BfNfxNDv.mjs} +3 -3
  18. package/fesm2022/{xhr-BdgfMvBr.mjs.map → xhr-BfNfxNDv.mjs.map} +1 -1
  19. package/http/index.d.ts +4 -4
  20. package/http/testing/index.d.ts +2 -2
  21. package/index.d.ts +6 -6
  22. package/{module.d-BJA_GXII.d.ts → module.d-CnjH8Dlt.d.ts} +3 -3
  23. package/package.json +2 -2
  24. package/{platform_location.d-BWJDgVlg.d.ts → platform_location.d-Lbv6Ueec.d.ts} +3 -3
  25. package/testing/index.d.ts +2 -2
  26. package/upgrade/index.d.ts +3 -3
  27. package/{xhr.d-Bbgj1reV.d.ts → xhr.d-D_1kTQR5.d.ts} +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.5
2
+ * @license Angular v20.0.0-next.7
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 { L as LocationChangeListener, P as PlatformLocation } from './platform_location.d-BWJDgVlg.js';
10
+ import { LocationChangeListener, PlatformLocation } from './platform_location.d-Lbv6Ueec.js';
11
11
 
12
12
  /**
13
13
  * Enables the `Location` service to read route state from the browser's URL.
@@ -1943,5 +1943,5 @@ declare class CommonModule {
1943
1943
  static ɵinj: i0.ɵɵInjectorDeclaration<CommonModule>;
1944
1944
  }
1945
1945
 
1946
- export { AsyncPipe as A, CommonModule as C, DatePipe as D, I18nPluralPipe as I, JsonPipe as J, KeyValuePipe as K, LocationStrategy as L, NgLocaleLocalization as N, PercentPipe as P, SlicePipe as S, TitleCasePipe as T, UpperCasePipe as U, NgLocalization as a, NgClass as b, NgForOf as c, NgForOfContext as d, NgIf as e, NgIfContext as f, NgPlural as g, NgPluralCase as h, NgStyle as i, NgSwitch as j, NgSwitchCase as k, NgSwitchDefault as l, NgTemplateOutlet as m, NgComponentOutlet as n, DATE_PIPE_DEFAULT_TIMEZONE as p, DATE_PIPE_DEFAULT_OPTIONS as q, I18nSelectPipe as r, LowerCasePipe as s, CurrencyPipe as t, DecimalPipe as u, Location as w, APP_BASE_HREF as y, PathLocationStrategy as z };
1947
- export type { DatePipeConfig as o, KeyValue as v, PopStateEvent as x };
1946
+ export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, SlicePipe, TitleCasePipe, UpperCasePipe };
1947
+ export type { DatePipeConfig, KeyValue, PopStateEvent };
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.5
2
+ * @license Angular v20.0.0-next.7
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- export { V as AsyncPipe, D as CommonModule, a2 as CurrencyPipe, Z as DATE_PIPE_DEFAULT_OPTIONS, Y as DATE_PIPE_DEFAULT_TIMEZONE, X as DatePipe, a3 as DecimalPipe, F as FormStyle, g as FormatWidth, a9 as HashLocationStrategy, _ as I18nPluralPipe, $ as I18nSelectPipe, a0 as JsonPipe, a8 as KeyValuePipe, a1 as LowerCasePipe, E as NgClass, U as NgComponentOutlet, G as NgFor, G as NgForOf, H as NgForOfContext, I as NgIf, J as NgIfContext, N as NgLocaleLocalization, d as NgLocalization, K as NgPlural, L as NgPluralCase, M as NgStyle, O as NgSwitch, Q as NgSwitchCase, R as NgSwitchDefault, S as NgTemplateOutlet, e as NumberFormatStyle, h as NumberSymbol, a4 as PercentPipe, P as Plural, a5 as SlicePipe, a7 as TitleCasePipe, T as TranslationWidth, a6 as UpperCasePipe, W as WeekDay, a as formatCurrency, f as formatDate, b as formatNumber, c as formatPercent, j as getCurrencySymbol, z as getLocaleCurrencyCode, A as getLocaleCurrencyName, B as getLocaleCurrencySymbol, r as getLocaleDateFormat, s as getLocaleDateTimeFormat, l as getLocaleDayNames, k as getLocaleDayPeriods, C as getLocaleDirection, o as getLocaleEraNames, t as getLocaleExtraDayPeriodRules, u as getLocaleExtraDayPeriods, q as getLocaleFirstDayOfWeek, n as getLocaleId, m as getLocaleMonthNames, y as getLocaleNumberFormat, x as getLocaleNumberSymbol, v as getLocalePluralCase, w as getLocaleTimeFormat, p as getLocaleWeekEndRange, i as getNumberOfCurrencyDigits } from './common_module-DXqIruqL.mjs';
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-Cz2TsVI9.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, PLATFORM_ID, 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
- import { i as isPlatformBrowser } from './xhr-BdgfMvBr.mjs';
12
- export { X as XhrFactory, b as isPlatformServer, P as ɵPLATFORM_BROWSER_ID, a as ɵPLATFORM_SERVER_ID, p as ɵparseCookieValue } from './xhr-BdgfMvBr.mjs';
13
- export { A as APP_BASE_HREF, B as BrowserPlatformLocation, b as LOCATION_INITIALIZED, L as Location, a as LocationStrategy, P as PathLocationStrategy, c as PlatformLocation, D as ɵDomAdapter, g as ɵgetDOM, n as ɵnormalizeQueryParams, s as ɵsetRootDomAdapter } from './location-DL4aRLmc.mjs';
14
- export { P as ɵPlatformNavigation } from './platform_navigation-2iCIwKiv.mjs';
11
+ import { isPlatformBrowser } from './xhr-BfNfxNDv.mjs';
12
+ export { XhrFactory, isPlatformServer, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, parseCookieValue as ɵparseCookieValue } from './xhr-BfNfxNDv.mjs';
13
+ 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-BeT0iJq7.mjs';
14
+ export { PlatformNavigation as ɵPlatformNavigation } from './platform_navigation-B45Jeakb.mjs';
15
15
  import 'rxjs';
16
16
 
17
17
  /**
@@ -35,7 +35,7 @@ function registerLocaleData(data, localeId, extraData) {
35
35
  /**
36
36
  * @publicApi
37
37
  */
38
- const VERSION = new Version('20.0.0-next.5');
38
+ const VERSION = new Version('20.0.0-next.7');
39
39
 
40
40
  /**
41
41
  * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
@@ -645,10 +645,10 @@ class LCPImageObserver {
645
645
  this.observer.disconnect();
646
646
  this.images.clear();
647
647
  }
648
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
649
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
648
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
649
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
650
650
  }
651
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: LCPImageObserver, decorators: [{
651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: LCPImageObserver, decorators: [{
652
652
  type: Injectable,
653
653
  args: [{ providedIn: 'root' }]
654
654
  }], ctorParameters: () => [] });
@@ -755,9 +755,8 @@ class PreconnectLinkChecker {
755
755
  }
756
756
  queryPreconnectLinks() {
757
757
  const preconnectUrls = new Set();
758
- const selector = 'link[rel=preconnect]';
759
- const links = Array.from(this.document.querySelectorAll(selector));
760
- for (let link of links) {
758
+ const links = this.document.querySelectorAll('link[rel=preconnect]');
759
+ for (const link of links) {
761
760
  const url = getUrl(link.href, this.window);
762
761
  preconnectUrls.add(url.origin);
763
762
  }
@@ -767,10 +766,10 @@ class PreconnectLinkChecker {
767
766
  this.preconnectLinks?.clear();
768
767
  this.alreadySeen.clear();
769
768
  }
770
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
771
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
769
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
770
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
772
771
  }
773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
772
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
774
773
  type: Injectable,
775
774
  args: [{ providedIn: 'root' }]
776
775
  }], ctorParameters: () => [] });
@@ -814,6 +813,7 @@ const PRELOADED_IMAGES = new InjectionToken(typeof ngDevMode === 'undefined' ||
814
813
  class PreloadLinkCreator {
815
814
  preloadedImages = inject(PRELOADED_IMAGES);
816
815
  document = inject(DOCUMENT);
816
+ errorShown = false;
817
817
  /**
818
818
  * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the
819
819
  * server while using Angular Universal and SSR to kick off image loads for high priority images.
@@ -831,14 +831,14 @@ class PreloadLinkCreator {
831
831
  * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag
832
832
  */
833
833
  createPreloadLinkTag(renderer, src, srcset, sizes) {
834
- if (ngDevMode) {
835
- if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {
836
- throw new _RuntimeError(2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, ngDevMode &&
837
- `The \`NgOptimizedImage\` directive has detected that more than ` +
838
- `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` +
839
- `This might negatively affect an overall performance of the page. ` +
840
- `To fix this, remove the "priority" attribute from images with less priority.`);
841
- }
834
+ if (ngDevMode &&
835
+ !this.errorShown &&
836
+ this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {
837
+ this.errorShown = true;
838
+ console.warn(_formatRuntimeError(2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, `The \`NgOptimizedImage\` directive has detected that more than ` +
839
+ `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` +
840
+ `This might negatively affect an overall performance of the page. ` +
841
+ `To fix this, remove the "priority" attribute from images with less priority.`));
842
842
  }
843
843
  if (this.preloadedImages.has(src)) {
844
844
  return;
@@ -857,10 +857,10 @@ class PreloadLinkCreator {
857
857
  }
858
858
  renderer.appendChild(this.document.head, preload);
859
859
  }
860
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
861
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
860
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
861
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
862
862
  }
863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: PreloadLinkCreator, decorators: [{
863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: PreloadLinkCreator, decorators: [{
864
864
  type: Injectable,
865
865
  args: [{ providedIn: 'root' }]
866
866
  }] });
@@ -1428,10 +1428,10 @@ class NgOptimizedImage {
1428
1428
  setHostAttribute(name, value) {
1429
1429
  this.renderer.setAttribute(this.imgElement, name, value);
1430
1430
  }
1431
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1432
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", 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 });
1431
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1432
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.7", 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 });
1433
1433
  }
1434
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: NgOptimizedImage, decorators: [{
1434
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: NgOptimizedImage, decorators: [{
1435
1435
  type: Directive,
1436
1436
  args: [{
1437
1437
  selector: 'img[ngSrc]',