@angular/common 19.1.0-next.4 → 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.
- 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.1.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
|
-
*
|
|
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 {
|
|
@@ -2462,7 +2471,7 @@ export declare abstract class NgLocalization {
|
|
|
2462
2471
|
*
|
|
2463
2472
|
* @publicApi
|
|
2464
2473
|
*/
|
|
2465
|
-
export declare class NgOptimizedImage implements OnInit, OnChanges
|
|
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
|
|
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
|
|
47
|
+
"@angular/core": "19.1.0",
|
|
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