@angular/common 19.0.6 → 19.0.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.
- package/fesm2022/common.mjs +244 -250
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +86 -55
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +16 -16
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +2 -2
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +31 -18
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.
|
|
2
|
+
* @license Angular v19.0.7
|
|
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.0.
|
|
18
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation });
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", 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.0.
|
|
913
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
|
912
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", 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.0.7", ngImport: i0, type: MockPlatformLocation });
|
|
914
914
|
}
|
|
915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", 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.0.
|
|
987
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
|
986
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: FakeNavigationPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
987
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: FakeNavigationPlatformLocation });
|
|
988
988
|
}
|
|
989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
|
989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", 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.0.
|
|
1164
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
|
1163
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1164
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: SpyLocation });
|
|
1165
1165
|
}
|
|
1166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
|
1166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", 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.0.
|
|
1249
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.
|
|
1248
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1249
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MockLocationStrategy });
|
|
1250
1250
|
}
|
|
1251
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
|
1251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MockLocationStrategy, decorators: [{
|
|
1252
1252
|
type: Injectable
|
|
1253
1253
|
}], ctorParameters: () => [] });
|
|
1254
1254
|
class _MockPopStateEvent {
|
package/fesm2022/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.
|
|
2
|
+
* @license Angular v19.0.7
|
|
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.0.
|
|
858
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.
|
|
859
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.
|
|
857
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
858
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
859
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
860
860
|
}
|
|
861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", 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.0.
|
|
2
|
+
* @license Angular v19.0.7
|
|
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
|
*/
|
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.
|
|
2
|
+
* @license Angular v19.0.7
|
|
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
|
-
*
|
|
1817
|
+
* <some-element [ngClass]="stringExp|arrayExp|objExp|Set">...</some-element>
|
|
1818
1818
|
*
|
|
1819
|
-
*
|
|
1819
|
+
* <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
|
|
1820
|
+
* ```
|
|
1820
1821
|
*
|
|
1821
|
-
*
|
|
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
|
-
*
|
|
1825
|
+
* ```html
|
|
1826
|
+
* <some-element [class]="'first second'">...</some-element>
|
|
1824
1827
|
*
|
|
1825
|
-
*
|
|
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 {
|
|
@@ -2456,7 +2465,7 @@ export declare abstract class NgLocalization {
|
|
|
2456
2465
|
*
|
|
2457
2466
|
* @publicApi
|
|
2458
2467
|
*/
|
|
2459
|
-
export declare class NgOptimizedImage implements OnInit, OnChanges
|
|
2468
|
+
export declare class NgOptimizedImage implements OnInit, OnChanges {
|
|
2460
2469
|
private imageLoader;
|
|
2461
2470
|
private config;
|
|
2462
2471
|
private renderer;
|
|
@@ -2464,7 +2473,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2464
2473
|
private injector;
|
|
2465
2474
|
private readonly isServer;
|
|
2466
2475
|
private readonly preloadLinkCreator;
|
|
2467
|
-
private lcpObserver
|
|
2476
|
+
private lcpObserver?;
|
|
2468
2477
|
/**
|
|
2469
2478
|
* Calculate the rewritten `src` once and store it.
|
|
2470
2479
|
* This is needed to avoid repetitive calculations and make sure the directive cleanup in the
|
|
@@ -2484,7 +2493,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2484
2493
|
* descriptors to generate the final `srcset` property of the image.
|
|
2485
2494
|
*
|
|
2486
2495
|
* Example:
|
|
2487
|
-
* ```
|
|
2496
|
+
* ```html
|
|
2488
2497
|
* <img ngSrc="hello.jpg" ngSrcset="100w, 200w" /> =>
|
|
2489
2498
|
* <img src="path/hello.jpg" srcset="path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w" />
|
|
2490
2499
|
* ```
|
|
@@ -2542,6 +2551,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2542
2551
|
* * blur: Setting this to false disables the automatic CSS blur.
|
|
2543
2552
|
*/
|
|
2544
2553
|
placeholderConfig?: ImagePlaceholderConfig;
|
|
2554
|
+
constructor();
|
|
2545
2555
|
/** @nodoc */
|
|
2546
2556
|
ngOnInit(): void;
|
|
2547
2557
|
private setHostAttributes;
|
|
@@ -2569,8 +2579,6 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2569
2579
|
*/
|
|
2570
2580
|
private shouldBlurPlaceholder;
|
|
2571
2581
|
private removePlaceholderOnLoad;
|
|
2572
|
-
/** @nodoc */
|
|
2573
|
-
ngOnDestroy(): void;
|
|
2574
2582
|
private setHostAttribute;
|
|
2575
2583
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgOptimizedImage, never>;
|
|
2576
2584
|
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>;
|
|
@@ -2660,12 +2668,6 @@ export declare class NgPluralCase {
|
|
|
2660
2668
|
*
|
|
2661
2669
|
* @usageNotes
|
|
2662
2670
|
*
|
|
2663
|
-
* Set the font of the containing element to the result of an expression.
|
|
2664
|
-
*
|
|
2665
|
-
* ```html
|
|
2666
|
-
* <some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
|
|
2667
|
-
* ```
|
|
2668
|
-
*
|
|
2669
2671
|
* Set the width of the containing element to a pixel value returned by an expression.
|
|
2670
2672
|
*
|
|
2671
2673
|
* ```html
|
|
@@ -2678,6 +2680,15 @@ export declare class NgPluralCase {
|
|
|
2678
2680
|
* <some-element [ngStyle]="objExp">...</some-element>
|
|
2679
2681
|
* ```
|
|
2680
2682
|
*
|
|
2683
|
+
* For more simple use cases you can use the [style bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.
|
|
2684
|
+
* It doesn't require importing a directive.
|
|
2685
|
+
*
|
|
2686
|
+
* Set the font of the containing element to the result of an expression.
|
|
2687
|
+
*
|
|
2688
|
+
* ```html
|
|
2689
|
+
* <some-element [style]="{'font-style': styleExp}">...</some-element>
|
|
2690
|
+
* ```
|
|
2691
|
+
*
|
|
2681
2692
|
* @description
|
|
2682
2693
|
*
|
|
2683
2694
|
* An attribute directive that updates styles for the containing HTML element.
|
|
@@ -2689,6 +2700,8 @@ export declare class NgPluralCase {
|
|
|
2689
2700
|
* is assigned to the given style property.
|
|
2690
2701
|
* If the result of evaluation is null, the corresponding style is removed.
|
|
2691
2702
|
*
|
|
2703
|
+
* @see [Style bindings](/guide/templates/binding#css-class-and-style-property-bindings)
|
|
2704
|
+
*
|
|
2692
2705
|
* @publicApi
|
|
2693
2706
|
*/
|
|
2694
2707
|
export declare class NgStyle implements DoCheck {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.7",
|
|
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.0.
|
|
47
|
+
"@angular/core": "19.0.7",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED