@angular/common 19.1.0-rc.0 → 19.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -14,10 +14,10 @@ import { Subject } from 'rxjs';
14
14
  * implementations.
15
15
  */
16
16
  class PlatformNavigation {
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation });
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation });
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: PlatformNavigation, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: PlatformNavigation, decorators: [{
21
21
  type: Injectable,
22
22
  args: [{ providedIn: 'platform', useFactory: () => window.navigation }]
23
23
  }] });
@@ -909,10 +909,10 @@ class MockPlatformLocation {
909
909
  });
910
910
  }
911
911
  }
912
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
913
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: MockPlatformLocation });
912
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
913
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MockPlatformLocation });
914
914
  }
915
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: MockPlatformLocation, decorators: [{
915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MockPlatformLocation, decorators: [{
916
916
  type: Injectable
917
917
  }], ctorParameters: () => [{ type: undefined, decorators: [{
918
918
  type: Inject,
@@ -983,10 +983,10 @@ class FakeNavigationPlatformLocation {
983
983
  getState() {
984
984
  return this._platformNavigation.currentEntry.getHistoryState();
985
985
  }
986
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: FakeNavigationPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
987
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: FakeNavigationPlatformLocation });
986
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FakeNavigationPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
987
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FakeNavigationPlatformLocation });
988
988
  }
989
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: FakeNavigationPlatformLocation, decorators: [{
989
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FakeNavigationPlatformLocation, decorators: [{
990
990
  type: Injectable
991
991
  }], ctorParameters: () => [] });
992
992
 
@@ -1160,10 +1160,10 @@ class SpyLocation {
1160
1160
  this._history.push(new LocationState(path, query, state));
1161
1161
  this._historyIndex = this._history.length - 1;
1162
1162
  }
1163
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1164
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: SpyLocation });
1163
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1164
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: SpyLocation });
1165
1165
  }
1166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: SpyLocation, decorators: [{
1166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: SpyLocation, decorators: [{
1167
1167
  type: Injectable
1168
1168
  }] });
1169
1169
  class LocationState {
@@ -1245,10 +1245,10 @@ class MockLocationStrategy extends LocationStrategy {
1245
1245
  getState() {
1246
1246
  return this.stateChanges[(this.stateChanges.length || 1) - 1];
1247
1247
  }
1248
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1249
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: MockLocationStrategy });
1248
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1249
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MockLocationStrategy });
1250
1250
  }
1251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: MockLocationStrategy, decorators: [{
1251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MockLocationStrategy, decorators: [{
1252
1252
  type: Injectable
1253
1253
  }], ctorParameters: () => [] });
1254
1254
  class _MockPopStateEvent {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -854,11 +854,11 @@ class LocationUpgradeModule {
854
854
  ],
855
855
  };
856
856
  }
857
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
858
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-rc.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
859
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
857
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
858
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
859
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
860
860
  }
861
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: LocationUpgradeModule, decorators: [{
861
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: LocationUpgradeModule, decorators: [{
862
862
  type: NgModule,
863
863
  args: [{ imports: [CommonModule] }]
864
864
  }] });
package/http/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3906,7 +3906,7 @@ export declare class HttpRequest<T> {
3906
3906
  * To pass a string representation of HTTP parameters in the URL-query-string format,
3907
3907
  * the `HttpParamsOptions`' `fromString` may be used. For example:
3908
3908
  *
3909
- * ```
3909
+ * ```ts
3910
3910
  * new HttpParams({fromString: 'angular=awesome'})
3911
3911
  * ```
3912
3912
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1814,17 +1814,23 @@ declare interface NavigationUpdateCurrentEntryOptions {
1814
1814
  *
1815
1815
  * @usageNotes
1816
1816
  * ```html
1817
- * <some-element [ngClass]="'first second'">...</some-element>
1817
+ * <some-element [ngClass]="stringExp|arrayExp|objExp|Set">...</some-element>
1818
1818
  *
1819
- * <some-element [ngClass]="['first', 'second']">...</some-element>
1819
+ * <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
1820
+ * ```
1820
1821
  *
1821
- * <some-element [ngClass]="{'first': true, 'second': true, 'third': false}">...</some-element>
1822
+ * For more simple use cases you can use the [class bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.
1823
+ * It doesn't require importing a directive.
1822
1824
  *
1823
- * <some-element [ngClass]="stringExp|arrayExp|objExp">...</some-element>
1825
+ * ```html
1826
+ * <some-element [class]="'first second'">...</some-element>
1824
1827
  *
1825
- * <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
1826
- * ```
1828
+ * <some-element [class.expanded]="isExpanded">...</some-element>
1827
1829
  *
1830
+ * <some-element [class]="['first', 'second']">...</some-element>
1831
+ *
1832
+ * <some-element [class]="{'first': true, 'second': true, 'third': false}">...</some-element>
1833
+ * ```
1828
1834
  * @description
1829
1835
  *
1830
1836
  * Adds and removes CSS classes on an HTML element.
@@ -1835,6 +1841,9 @@ declare interface NavigationUpdateCurrentEntryOptions {
1835
1841
  * - `Object` - keys are CSS classes that get added when the expression given in the value
1836
1842
  * evaluates to a truthy value, otherwise they are removed.
1837
1843
  *
1844
+ *
1845
+ * @see [Class bindings](/guide/templates/binding#css-class-and-style-property-bindings)
1846
+ *
1838
1847
  * @publicApi
1839
1848
  */
1840
1849
  export declare class NgClass implements DoCheck {
@@ -2462,7 +2471,7 @@ export declare abstract class NgLocalization {
2462
2471
  *
2463
2472
  * @publicApi
2464
2473
  */
2465
- export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2474
+ export declare class NgOptimizedImage implements OnInit, OnChanges {
2466
2475
  private imageLoader;
2467
2476
  private config;
2468
2477
  private renderer;
@@ -2470,7 +2479,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2470
2479
  private injector;
2471
2480
  private readonly isServer;
2472
2481
  private readonly preloadLinkCreator;
2473
- private lcpObserver;
2482
+ private lcpObserver?;
2474
2483
  /**
2475
2484
  * Calculate the rewritten `src` once and store it.
2476
2485
  * This is needed to avoid repetitive calculations and make sure the directive cleanup in the
@@ -2490,7 +2499,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2490
2499
  * descriptors to generate the final `srcset` property of the image.
2491
2500
  *
2492
2501
  * Example:
2493
- * ```
2502
+ * ```html
2494
2503
  * <img ngSrc="hello.jpg" ngSrcset="100w, 200w" /> =>
2495
2504
  * <img src="path/hello.jpg" srcset="path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w" />
2496
2505
  * ```
@@ -2548,6 +2557,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2548
2557
  * * blur: Setting this to false disables the automatic CSS blur.
2549
2558
  */
2550
2559
  placeholderConfig?: ImagePlaceholderConfig;
2560
+ constructor();
2551
2561
  /** @nodoc */
2552
2562
  ngOnInit(): void;
2553
2563
  private setHostAttributes;
@@ -2575,8 +2585,6 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2575
2585
  */
2576
2586
  private shouldBlurPlaceholder;
2577
2587
  private removePlaceholderOnLoad;
2578
- /** @nodoc */
2579
- ngOnDestroy(): void;
2580
2588
  private setHostAttribute;
2581
2589
  static ɵfac: i0.ɵɵFactoryDeclaration<NgOptimizedImage, never>;
2582
2590
  static ɵdir: i0.ɵɵDirectiveDeclaration<NgOptimizedImage, "img[ngSrc]", never, { "ngSrc": { "alias": "ngSrc"; "required": true; }; "ngSrcset": { "alias": "ngSrcset"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "priority": { "alias": "priority"; "required": false; }; "loaderParams": { "alias": "loaderParams"; "required": false; }; "disableOptimizedSrcset": { "alias": "disableOptimizedSrcset"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "placeholderConfig": { "alias": "placeholderConfig"; "required": false; }; "src": { "alias": "src"; "required": false; }; "srcset": { "alias": "srcset"; "required": false; }; }, {}, never, never, true, never>;
@@ -2666,12 +2674,6 @@ export declare class NgPluralCase {
2666
2674
  *
2667
2675
  * @usageNotes
2668
2676
  *
2669
- * Set the font of the containing element to the result of an expression.
2670
- *
2671
- * ```html
2672
- * <some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
2673
- * ```
2674
- *
2675
2677
  * Set the width of the containing element to a pixel value returned by an expression.
2676
2678
  *
2677
2679
  * ```html
@@ -2684,6 +2686,15 @@ export declare class NgPluralCase {
2684
2686
  * <some-element [ngStyle]="objExp">...</some-element>
2685
2687
  * ```
2686
2688
  *
2689
+ * For more simple use cases you can use the [style bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.
2690
+ * It doesn't require importing a directive.
2691
+ *
2692
+ * Set the font of the containing element to the result of an expression.
2693
+ *
2694
+ * ```html
2695
+ * <some-element [style]="{'font-style': styleExp}">...</some-element>
2696
+ * ```
2697
+ *
2687
2698
  * @description
2688
2699
  *
2689
2700
  * An attribute directive that updates styles for the containing HTML element.
@@ -2695,6 +2706,8 @@ export declare class NgPluralCase {
2695
2706
  * is assigned to the given style property.
2696
2707
  * If the result of evaluation is null, the corresponding style is removed.
2697
2708
  *
2709
+ * @see [Style bindings](/guide/templates/binding#css-class-and-style-property-bindings)
2710
+ *
2698
2711
  * @publicApi
2699
2712
  */
2700
2713
  export declare class NgStyle implements DoCheck {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "19.1.0-rc.0",
3
+ "version": "19.1.0",
4
4
  "description": "Angular - commonly needed directives and services",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  }
45
45
  },
46
46
  "peerDependencies": {
47
- "@angular/core": "19.1.0-rc.0",
47
+ "@angular/core": "19.1.0",
48
48
  "rxjs": "^6.5.3 || ^7.4.0"
49
49
  },
50
50
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */