@angular/common 19.0.5 → 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/LICENSE +1 -1
- package/fesm2022/common.mjs +245 -252
- 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 -17
- package/fesm2022/testing.mjs.map +1 -1
- 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/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