@angular/common 16.1.0-rc.0 → 16.1.1
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/esm2022/http/src/client.mjs +3 -3
- package/esm2022/http/src/fetch.mjs +3 -3
- package/esm2022/http/src/interceptor.mjs +3 -3
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/xhr.mjs +3 -3
- package/esm2022/http/src/xsrf.mjs +6 -6
- package/esm2022/http/testing/src/backend.mjs +3 -3
- package/esm2022/http/testing/src/module.mjs +4 -4
- package/esm2022/src/common_module.mjs +4 -4
- package/esm2022/src/directives/ng_class.mjs +3 -3
- package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2022/src/directives/ng_for_of.mjs +5 -5
- package/esm2022/src/directives/ng_if.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/image_loaders/image_loader.mjs +5 -5
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +42 -84
- package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2022/src/directives/ng_plural.mjs +6 -6
- package/esm2022/src/directives/ng_style.mjs +3 -3
- package/esm2022/src/directives/ng_switch.mjs +16 -16
- package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2022/src/i18n/format_date.mjs +2 -2
- package/esm2022/src/i18n/format_number.mjs +5 -5
- package/esm2022/src/i18n/locale_data_api.mjs +15 -15
- package/esm2022/src/i18n/localization.mjs +6 -6
- package/esm2022/src/location/hash_location_strategy.mjs +3 -3
- package/esm2022/src/location/location.mjs +3 -3
- package/esm2022/src/location/location_strategy.mjs +6 -6
- package/esm2022/src/location/platform_location.mjs +6 -6
- package/esm2022/src/pipes/async_pipe.mjs +3 -3
- package/esm2022/src/pipes/case_conversion_pipes.mjs +16 -16
- package/esm2022/src/pipes/date_pipe.mjs +6 -6
- package/esm2022/src/pipes/date_pipe_config.mjs +1 -1
- package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2022/src/pipes/json_pipe.mjs +3 -3
- package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2022/src/pipes/number_pipe.mjs +14 -14
- package/esm2022/src/pipes/slice_pipe.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/location_mock.mjs +3 -3
- package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2022/testing/src/mock_platform_location.mjs +3 -3
- package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2022/common.mjs +194 -236
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +37 -37
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +68 -73
- 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 v16.1.
|
|
2
|
+
* @license Angular v16.1.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -159,8 +159,8 @@ export declare class CommonModule {
|
|
|
159
159
|
* and other locale-specific configurations.
|
|
160
160
|
*
|
|
161
161
|
*
|
|
162
|
-
* @see
|
|
163
|
-
* @see
|
|
162
|
+
* @see {@link getCurrencySymbol}
|
|
163
|
+
* @see {@link formatCurrency}
|
|
164
164
|
*
|
|
165
165
|
* @usageNotes
|
|
166
166
|
* The following code shows how the pipe transforms numbers
|
|
@@ -190,7 +190,7 @@ export declare class CurrencyPipe implements PipeTransform {
|
|
|
190
190
|
* - `timezone`: configures the default timezone. If not provided, the `DatePipe` will
|
|
191
191
|
* use the end-user's local system timezone.
|
|
192
192
|
*
|
|
193
|
-
* @see
|
|
193
|
+
* @see {@link DatePipeConfig}
|
|
194
194
|
*
|
|
195
195
|
* @usageNotes
|
|
196
196
|
*
|
|
@@ -246,7 +246,7 @@ export declare const DATE_PIPE_DEFAULT_TIMEZONE: InjectionToken<string>;
|
|
|
246
246
|
* injection token. The value that is passed in as the second parameter takes precedence over
|
|
247
247
|
* the one defined using the injection token.
|
|
248
248
|
*
|
|
249
|
-
* @see
|
|
249
|
+
* @see {@link formatDate}
|
|
250
250
|
*
|
|
251
251
|
*
|
|
252
252
|
* @usageNotes
|
|
@@ -400,7 +400,7 @@ export declare class DatePipe implements PipeTransform {
|
|
|
400
400
|
* When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
|
|
401
401
|
* See [Setting your app locale](guide/i18n-common-locale-id).
|
|
402
402
|
*
|
|
403
|
-
* @see
|
|
403
|
+
* @see {@link DATE_PIPE_DEFAULT_OPTIONS}
|
|
404
404
|
*
|
|
405
405
|
* @returns A date string in the desired format.
|
|
406
406
|
*/
|
|
@@ -416,7 +416,7 @@ export declare class DatePipe implements PipeTransform {
|
|
|
416
416
|
* An interface that describes the date pipe configuration, which can be provided using the
|
|
417
417
|
* `DATE_PIPE_DEFAULT_OPTIONS` token.
|
|
418
418
|
*
|
|
419
|
-
* @see
|
|
419
|
+
* @see {@link DATE_PIPE_DEFAULT_OPTIONS}
|
|
420
420
|
*
|
|
421
421
|
* @publicApi
|
|
422
422
|
*/
|
|
@@ -433,7 +433,7 @@ export declare interface DatePipeConfig {
|
|
|
433
433
|
* Locale determines group sizing and separator,
|
|
434
434
|
* decimal point character, and other locale-specific configurations.
|
|
435
435
|
*
|
|
436
|
-
* @see
|
|
436
|
+
* @see {@link formatNumber}
|
|
437
437
|
*
|
|
438
438
|
* @usageNotes
|
|
439
439
|
*
|
|
@@ -528,8 +528,8 @@ export declare const DOCUMENT: InjectionToken<Document>;
|
|
|
528
528
|
*
|
|
529
529
|
* @returns The formatted currency value.
|
|
530
530
|
*
|
|
531
|
-
* @see
|
|
532
|
-
* @see
|
|
531
|
+
* @see {@link formatNumber}
|
|
532
|
+
* @see {@link DecimalPipe}
|
|
533
533
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
534
534
|
*
|
|
535
535
|
* @publicApi
|
|
@@ -552,7 +552,7 @@ export declare function formatCurrency(value: number, locale: string, currency:
|
|
|
552
552
|
*
|
|
553
553
|
* @returns The formatted date string.
|
|
554
554
|
*
|
|
555
|
-
* @see
|
|
555
|
+
* @see {@link DatePipe}
|
|
556
556
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
557
557
|
*
|
|
558
558
|
* @publicApi
|
|
@@ -591,8 +591,8 @@ export declare function formatNumber(value: number, locale: string, digitsInfo?:
|
|
|
591
591
|
*
|
|
592
592
|
* @returns The formatted percentage value.
|
|
593
593
|
*
|
|
594
|
-
* @see
|
|
595
|
-
* @see
|
|
594
|
+
* @see {@link formatNumber}
|
|
595
|
+
* @see {@link DecimalPipe}
|
|
596
596
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
597
597
|
* @publicApi
|
|
598
598
|
*
|
|
@@ -604,9 +604,9 @@ export declare function formatPercent(value: number, locale: string, digitsInfo?
|
|
|
604
604
|
* The specific character widths are locale-specific.
|
|
605
605
|
* Examples are given for `en-US`.
|
|
606
606
|
*
|
|
607
|
-
* @see
|
|
608
|
-
* @see
|
|
609
|
-
* @see
|
|
607
|
+
* @see {@link getLocaleDateFormat}
|
|
608
|
+
* @see {@link getLocaleTimeFormat}
|
|
609
|
+
* @see {@link getLocaleDateTimeFormat}
|
|
610
610
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
611
611
|
* @publicApi
|
|
612
612
|
*/
|
|
@@ -707,7 +707,7 @@ export declare function getLocaleCurrencySymbol(locale: string): string | null;
|
|
|
707
707
|
* @param locale A locale code for the locale format rules to use.
|
|
708
708
|
* @param width The format type.
|
|
709
709
|
* @returns The localized formatting string.
|
|
710
|
-
* @see
|
|
710
|
+
* @see {@link FormatWidth}
|
|
711
711
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
712
712
|
*
|
|
713
713
|
* @publicApi
|
|
@@ -720,7 +720,7 @@ export declare function getLocaleDateFormat(locale: string, width: FormatWidth):
|
|
|
720
720
|
* @param locale A locale code for the locale format rules to use.
|
|
721
721
|
* @param width The format type.
|
|
722
722
|
* @returns The localized formatting string.
|
|
723
|
-
* @see
|
|
723
|
+
* @see {@link FormatWidth}
|
|
724
724
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
725
725
|
*
|
|
726
726
|
* @publicApi
|
|
@@ -793,7 +793,7 @@ export declare function getLocaleEraNames(locale: string, width: TranslationWidt
|
|
|
793
793
|
* @returns The rules for the locale, a single time value or array of *from-time, to-time*,
|
|
794
794
|
* or null if no periods are available.
|
|
795
795
|
*
|
|
796
|
-
* @see
|
|
796
|
+
* @see {@link getLocaleExtraDayPeriods}
|
|
797
797
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
798
798
|
*
|
|
799
799
|
* @publicApi
|
|
@@ -812,7 +812,7 @@ export declare function getLocaleExtraDayPeriodRules(locale: string): (Time | [T
|
|
|
812
812
|
* @param formStyle The required grammatical form.
|
|
813
813
|
* @param width The required character width.
|
|
814
814
|
* @returns The translated day-period strings.
|
|
815
|
-
* @see
|
|
815
|
+
* @see {@link getLocaleExtraDayPeriodRules}
|
|
816
816
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
817
817
|
*
|
|
818
818
|
* @publicApi
|
|
@@ -886,7 +886,7 @@ export declare function getLocaleMonthNames(locale: string, formStyle: FormStyle
|
|
|
886
886
|
* @param locale A locale code for the locale format rules to use.
|
|
887
887
|
* @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)
|
|
888
888
|
* @returns The localized format string.
|
|
889
|
-
* @see
|
|
889
|
+
* @see {@link NumberFormatStyle}
|
|
890
890
|
* @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
|
|
891
891
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
892
892
|
*
|
|
@@ -899,7 +899,7 @@ export declare function getLocaleNumberFormat(locale: string, type: NumberFormat
|
|
|
899
899
|
* @param locale The locale code.
|
|
900
900
|
* @param symbol The symbol to localize.
|
|
901
901
|
* @returns The character for the localized symbol.
|
|
902
|
-
* @see
|
|
902
|
+
* @see {@link NumberSymbol}
|
|
903
903
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
904
904
|
*
|
|
905
905
|
* @publicApi
|
|
@@ -918,7 +918,7 @@ export declare const getLocalePluralCase: (locale: string) => ((value: number) =
|
|
|
918
918
|
* @param locale A locale code for the locale format rules to use.
|
|
919
919
|
* @param width The format type.
|
|
920
920
|
* @returns The localized formatting string.
|
|
921
|
-
* @see
|
|
921
|
+
* @see {@link FormatWidth}
|
|
922
922
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
923
923
|
|
|
924
924
|
* @publicApi
|
|
@@ -1168,7 +1168,7 @@ declare namespace i9 {
|
|
|
1168
1168
|
/**
|
|
1169
1169
|
* Injection token that configures the image optimized image functionality.
|
|
1170
1170
|
*
|
|
1171
|
-
* @see
|
|
1171
|
+
* @see {@link NgOptimizedImage}
|
|
1172
1172
|
* @publicApi
|
|
1173
1173
|
* @developerPreview
|
|
1174
1174
|
*/
|
|
@@ -1177,8 +1177,8 @@ export declare const IMAGE_CONFIG: InjectionToken<ImageConfig>;
|
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Injection token that configures the image loader function.
|
|
1179
1179
|
*
|
|
1180
|
-
* @see
|
|
1181
|
-
* @see
|
|
1180
|
+
* @see {@link ImageLoader}
|
|
1181
|
+
* @see {@link NgOptimizedImage}
|
|
1182
1182
|
* @publicApi
|
|
1183
1183
|
*/
|
|
1184
1184
|
export declare const IMAGE_LOADER: InjectionToken<ImageLoader>;
|
|
@@ -1208,8 +1208,8 @@ export declare type ImageLoader = (config: ImageLoaderConfig) => string;
|
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Config options recognized by the image loader function.
|
|
1210
1210
|
*
|
|
1211
|
-
* @see
|
|
1212
|
-
* @see
|
|
1211
|
+
* @see {@link ImageLoader}
|
|
1212
|
+
* @see {@link NgOptimizedImage}
|
|
1213
1213
|
* @publicApi
|
|
1214
1214
|
*/
|
|
1215
1215
|
export declare interface ImageLoaderConfig {
|
|
@@ -1559,8 +1559,8 @@ export declare abstract class LocationStrategy {
|
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Transforms text to all lower case.
|
|
1561
1561
|
*
|
|
1562
|
-
* @see
|
|
1563
|
-
* @see
|
|
1562
|
+
* @see {@link UpperCasePipe}
|
|
1563
|
+
* @see {@link TitleCasePipe}
|
|
1564
1564
|
* @usageNotes
|
|
1565
1565
|
*
|
|
1566
1566
|
* The following example defines a view that allows the user to enter
|
|
@@ -1628,7 +1628,7 @@ export declare class NgClass implements DoCheck {
|
|
|
1628
1628
|
private _applyStateDiff;
|
|
1629
1629
|
private _toggleClass;
|
|
1630
1630
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgClass, never>;
|
|
1631
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgClass, "[ngClass]", never, { "klass": { "alias": "class"; "required": false; }; "ngClass": { "alias": "ngClass"; "required": false; }; }, {}, never, never, true, never
|
|
1631
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgClass, "[ngClass]", never, { "klass": { "alias": "class"; "required": false; }; "ngClass": { "alias": "ngClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
1634
|
/**
|
|
@@ -1708,7 +1708,7 @@ export declare class NgComponentOutlet implements OnChanges, OnDestroy {
|
|
|
1708
1708
|
/** @nodoc */
|
|
1709
1709
|
ngOnDestroy(): void;
|
|
1710
1710
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgComponentOutlet, never>;
|
|
1711
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgComponentOutlet, "[ngComponentOutlet]", never, { "ngComponentOutlet": { "alias": "ngComponentOutlet"; "required": false; }; "ngComponentOutletInjector": { "alias": "ngComponentOutletInjector"; "required": false; }; "ngComponentOutletContent": { "alias": "ngComponentOutletContent"; "required": false; }; "ngComponentOutletNgModule": { "alias": "ngComponentOutletNgModule"; "required": false; }; "ngComponentOutletNgModuleFactory": { "alias": "ngComponentOutletNgModuleFactory"; "required": false; }; }, {}, never, never, true, never
|
|
1711
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgComponentOutlet, "[ngComponentOutlet]", never, { "ngComponentOutlet": { "alias": "ngComponentOutlet"; "required": false; }; "ngComponentOutletInjector": { "alias": "ngComponentOutletInjector"; "required": false; }; "ngComponentOutletContent": { "alias": "ngComponentOutletContent"; "required": false; }; "ngComponentOutletNgModule": { "alias": "ngComponentOutletNgModule"; "required": false; }; "ngComponentOutletNgModuleFactory": { "alias": "ngComponentOutletNgModuleFactory"; "required": false; }; }, {}, never, never, true, never>;
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
/**
|
|
@@ -1834,7 +1834,7 @@ declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoC
|
|
|
1834
1834
|
* represent the same underlying entity (for example, when data is re-fetched from the server,
|
|
1835
1835
|
* and the iterable is recreated and re-rendered, but most of the data is still the same).
|
|
1836
1836
|
*
|
|
1837
|
-
* @see
|
|
1837
|
+
* @see {@link TrackByFunction}
|
|
1838
1838
|
*/
|
|
1839
1839
|
set ngForTrackBy(fn: TrackByFunction<T>);
|
|
1840
1840
|
get ngForTrackBy(): TrackByFunction<T>;
|
|
@@ -1862,7 +1862,7 @@ declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoC
|
|
|
1862
1862
|
*/
|
|
1863
1863
|
static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: NgForOf<T, U>, ctx: any): ctx is NgForOfContext<T, U>;
|
|
1864
1864
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgForOf<any, any>, never>;
|
|
1865
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgForOf<any, any>, "[ngFor][ngForOf]", never, { "ngForOf": { "alias": "ngForOf"; "required": false; }; "ngForTrackBy": { "alias": "ngForTrackBy"; "required": false; }; "ngForTemplate": { "alias": "ngForTemplate"; "required": false; }; }, {}, never, never, true, never
|
|
1865
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgForOf<any, any>, "[ngFor][ngForOf]", never, { "ngForOf": { "alias": "ngForOf"; "required": false; }; "ngForTrackBy": { "alias": "ngForTrackBy"; "required": false; }; "ngForTemplate": { "alias": "ngForTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
1866
1866
|
}
|
|
1867
1867
|
export { NgForOf as NgFor }
|
|
1868
1868
|
export { NgForOf }
|
|
@@ -2059,7 +2059,7 @@ export declare class NgIf<T = unknown> {
|
|
|
2059
2059
|
*/
|
|
2060
2060
|
static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any): ctx is NgIfContext<Exclude<T, false | 0 | '' | null | undefined>>;
|
|
2061
2061
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgIf<any>, never>;
|
|
2062
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgIf<any>, "[ngIf]", never, { "ngIf": { "alias": "ngIf"; "required": false; }; "ngIfThen": { "alias": "ngIfThen"; "required": false; }; "ngIfElse": { "alias": "ngIfElse"; "required": false; }; }, {}, never, never, true, never
|
|
2062
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgIf<any>, "[ngIf]", never, { "ngIf": { "alias": "ngIf"; "required": false; }; "ngIfThen": { "alias": "ngIfThen"; "required": false; }; "ngIfElse": { "alias": "ngIfElse"; "required": false; }; }, {}, never, never, true, never>;
|
|
2063
2063
|
}
|
|
2064
2064
|
|
|
2065
2065
|
/**
|
|
@@ -2233,17 +2233,13 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2233
2233
|
* For responsive images: the intrinsic width of the image in pixels.
|
|
2234
2234
|
* For fixed size images: the desired rendered width of the image in pixels.
|
|
2235
2235
|
*/
|
|
2236
|
-
|
|
2237
|
-
get width(): number | undefined;
|
|
2238
|
-
private _width?;
|
|
2236
|
+
width: number | undefined;
|
|
2239
2237
|
/**
|
|
2240
2238
|
* For responsive images: the intrinsic height of the image in pixels.
|
|
2241
2239
|
* For fixed size images: the desired rendered height of the image in pixels.* The intrinsic
|
|
2242
2240
|
* height of the image in pixels.
|
|
2243
2241
|
*/
|
|
2244
|
-
|
|
2245
|
-
get height(): number | undefined;
|
|
2246
|
-
private _height?;
|
|
2242
|
+
height: number | undefined;
|
|
2247
2243
|
/**
|
|
2248
2244
|
* The desired loading behavior (lazy, eager, or auto).
|
|
2249
2245
|
*
|
|
@@ -2254,9 +2250,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2254
2250
|
/**
|
|
2255
2251
|
* Indicates whether this image should have a high priority.
|
|
2256
2252
|
*/
|
|
2257
|
-
|
|
2258
|
-
get priority(): boolean;
|
|
2259
|
-
private _priority;
|
|
2253
|
+
priority: boolean;
|
|
2260
2254
|
/**
|
|
2261
2255
|
* Data to pass through to custom loaders.
|
|
2262
2256
|
*/
|
|
@@ -2266,18 +2260,14 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2266
2260
|
/**
|
|
2267
2261
|
* Disables automatic srcset generation for this image.
|
|
2268
2262
|
*/
|
|
2269
|
-
|
|
2270
|
-
get disableOptimizedSrcset(): boolean;
|
|
2271
|
-
private _disableOptimizedSrcset;
|
|
2263
|
+
disableOptimizedSrcset: boolean;
|
|
2272
2264
|
/**
|
|
2273
2265
|
* Sets the image to "fill mode", which eliminates the height/width requirement and adds
|
|
2274
2266
|
* styles such that the image fills its containing element.
|
|
2275
2267
|
*
|
|
2276
2268
|
* @developerPreview
|
|
2277
2269
|
*/
|
|
2278
|
-
|
|
2279
|
-
get fill(): boolean;
|
|
2280
|
-
private _fill;
|
|
2270
|
+
fill: boolean;
|
|
2281
2271
|
/** @nodoc */
|
|
2282
2272
|
ngOnInit(): void;
|
|
2283
2273
|
private setHostAttributes;
|
|
@@ -2296,7 +2286,12 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2296
2286
|
ngOnDestroy(): void;
|
|
2297
2287
|
private setHostAttribute;
|
|
2298
2288
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgOptimizedImage, never>;
|
|
2299
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgOptimizedImage, "img[ngSrc]", never, { "ngSrc": { "alias": "ngSrc"; "required":
|
|
2289
|
+
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; }; "src": { "alias": "src"; "required": false; }; "srcset": { "alias": "srcset"; "required": false; }; }, {}, never, never, true, never>;
|
|
2290
|
+
static ngAcceptInputType_width: unknown;
|
|
2291
|
+
static ngAcceptInputType_height: unknown;
|
|
2292
|
+
static ngAcceptInputType_priority: unknown;
|
|
2293
|
+
static ngAcceptInputType_disableOptimizedSrcset: unknown;
|
|
2294
|
+
static ngAcceptInputType_fill: unknown;
|
|
2300
2295
|
}
|
|
2301
2296
|
|
|
2302
2297
|
/**
|
|
@@ -2341,7 +2336,7 @@ export declare class NgPlural {
|
|
|
2341
2336
|
private _clearViews;
|
|
2342
2337
|
private _activateView;
|
|
2343
2338
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgPlural, never>;
|
|
2344
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgPlural, "[ngPlural]", never, { "ngPlural": { "alias": "ngPlural"; "required": false; }; }, {}, never, never, true, never
|
|
2339
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgPlural, "[ngPlural]", never, { "ngPlural": { "alias": "ngPlural"; "required": false; }; }, {}, never, never, true, never>;
|
|
2345
2340
|
}
|
|
2346
2341
|
|
|
2347
2342
|
/**
|
|
@@ -2368,7 +2363,7 @@ export declare class NgPluralCase {
|
|
|
2368
2363
|
value: string;
|
|
2369
2364
|
constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef, ngPlural: NgPlural);
|
|
2370
2365
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgPluralCase, [{ attribute: "ngPluralCase"; }, null, null, { host: true; }]>;
|
|
2371
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgPluralCase, "[ngPluralCase]", never, {}, {}, never, never, true, never
|
|
2366
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgPluralCase, "[ngPluralCase]", never, {}, {}, never, never, true, never>;
|
|
2372
2367
|
}
|
|
2373
2368
|
|
|
2374
2369
|
/**
|
|
@@ -2421,7 +2416,7 @@ export declare class NgStyle implements DoCheck {
|
|
|
2421
2416
|
private _setStyle;
|
|
2422
2417
|
private _applyChanges;
|
|
2423
2418
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgStyle, never>;
|
|
2424
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgStyle, "[ngStyle]", never, { "ngStyle": { "alias": "ngStyle"; "required": false; }; }, {}, never, never, true, never
|
|
2419
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgStyle, "[ngStyle]", never, { "ngStyle": { "alias": "ngStyle"; "required": false; }; }, {}, never, never, true, never>;
|
|
2425
2420
|
}
|
|
2426
2421
|
|
|
2427
2422
|
/**
|
|
@@ -2485,8 +2480,8 @@ export declare class NgStyle implements DoCheck {
|
|
|
2485
2480
|
* ```
|
|
2486
2481
|
*
|
|
2487
2482
|
* @publicApi
|
|
2488
|
-
* @see
|
|
2489
|
-
* @see
|
|
2483
|
+
* @see {@link NgSwitchCase}
|
|
2484
|
+
* @see {@link NgSwitchDefault}
|
|
2490
2485
|
* @see [Structural Directives](guide/structural-directives)
|
|
2491
2486
|
*
|
|
2492
2487
|
*/
|
|
@@ -2500,7 +2495,7 @@ export declare class NgSwitch {
|
|
|
2500
2495
|
set ngSwitch(newValue: any);
|
|
2501
2496
|
private _updateDefaultCases;
|
|
2502
2497
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitch, never>;
|
|
2503
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitch, "[ngSwitch]", never, { "ngSwitch": { "alias": "ngSwitch"; "required": false; }; }, {}, never, never, true, never
|
|
2498
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitch, "[ngSwitch]", never, { "ngSwitch": { "alias": "ngSwitch"; "required": false; }; }, {}, never, never, true, never>;
|
|
2504
2499
|
}
|
|
2505
2500
|
|
|
2506
2501
|
/**
|
|
@@ -2532,8 +2527,8 @@ export declare class NgSwitch {
|
|
|
2532
2527
|
* This means that the empty string, `""` matches 0.
|
|
2533
2528
|
*
|
|
2534
2529
|
* @publicApi
|
|
2535
|
-
* @see
|
|
2536
|
-
* @see
|
|
2530
|
+
* @see {@link NgSwitch}
|
|
2531
|
+
* @see {@link NgSwitchDefault}
|
|
2537
2532
|
*
|
|
2538
2533
|
*/
|
|
2539
2534
|
export declare class NgSwitchCase implements DoCheck {
|
|
@@ -2550,7 +2545,7 @@ export declare class NgSwitchCase implements DoCheck {
|
|
|
2550
2545
|
*/
|
|
2551
2546
|
ngDoCheck(): void;
|
|
2552
2547
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitchCase, [null, null, { optional: true; host: true; }]>;
|
|
2553
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitchCase, "[ngSwitchCase]", never, { "ngSwitchCase": { "alias": "ngSwitchCase"; "required": false; }; }, {}, never, never, true, never
|
|
2548
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitchCase, "[ngSwitchCase]", never, { "ngSwitchCase": { "alias": "ngSwitchCase"; "required": false; }; }, {}, never, never, true, never>;
|
|
2554
2549
|
}
|
|
2555
2550
|
|
|
2556
2551
|
/**
|
|
@@ -2563,14 +2558,14 @@ export declare class NgSwitchCase implements DoCheck {
|
|
|
2563
2558
|
* This statement should be the final case in an `NgSwitch`.
|
|
2564
2559
|
*
|
|
2565
2560
|
* @publicApi
|
|
2566
|
-
* @see
|
|
2567
|
-
* @see
|
|
2561
|
+
* @see {@link NgSwitch}
|
|
2562
|
+
* @see {@link NgSwitchCase}
|
|
2568
2563
|
*
|
|
2569
2564
|
*/
|
|
2570
2565
|
export declare class NgSwitchDefault {
|
|
2571
2566
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
|
2572
2567
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitchDefault, [null, null, { optional: true; host: true; }]>;
|
|
2573
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitchDefault, "[ngSwitchDefault]", never, {}, {}, never, never, true, never
|
|
2568
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitchDefault, "[ngSwitchDefault]", never, {}, {}, never, never, true, never>;
|
|
2574
2569
|
}
|
|
2575
2570
|
|
|
2576
2571
|
/**
|
|
@@ -2617,13 +2612,13 @@ export declare class NgTemplateOutlet<C = unknown> implements OnChanges {
|
|
|
2617
2612
|
/** @nodoc */
|
|
2618
2613
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2619
2614
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgTemplateOutlet<any>, never>;
|
|
2620
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgTemplateOutlet<any>, "[ngTemplateOutlet]", never, { "ngTemplateOutletContext": { "alias": "ngTemplateOutletContext"; "required": false; }; "ngTemplateOutlet": { "alias": "ngTemplateOutlet"; "required": false; }; "ngTemplateOutletInjector": { "alias": "ngTemplateOutletInjector"; "required": false; }; }, {}, never, never, true, never
|
|
2615
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgTemplateOutlet<any>, "[ngTemplateOutlet]", never, { "ngTemplateOutletContext": { "alias": "ngTemplateOutletContext"; "required": false; }; "ngTemplateOutlet": { "alias": "ngTemplateOutlet"; "required": false; }; "ngTemplateOutletInjector": { "alias": "ngTemplateOutletInjector"; "required": false; }; }, {}, never, never, true, never>;
|
|
2621
2616
|
}
|
|
2622
2617
|
|
|
2623
2618
|
|
|
2624
2619
|
/**
|
|
2625
2620
|
* Format styles that can be used to represent numbers.
|
|
2626
|
-
* @see
|
|
2621
|
+
* @see {@link getLocaleNumberFormat}.
|
|
2627
2622
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
2628
2623
|
*
|
|
2629
2624
|
* @publicApi
|
|
@@ -2639,7 +2634,7 @@ export declare enum NumberFormatStyle {
|
|
|
2639
2634
|
* Symbols that can be used to replace placeholders in number patterns.
|
|
2640
2635
|
* Examples are based on `en-US` values.
|
|
2641
2636
|
*
|
|
2642
|
-
* @see
|
|
2637
|
+
* @see {@link getLocaleNumberSymbol}
|
|
2643
2638
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
2644
2639
|
*
|
|
2645
2640
|
* @publicApi
|
|
@@ -2780,7 +2775,7 @@ export declare class PathLocationStrategy extends LocationStrategy implements On
|
|
|
2780
2775
|
* separator, decimal-point character, and other locale-specific
|
|
2781
2776
|
* configurations.
|
|
2782
2777
|
*
|
|
2783
|
-
* @see
|
|
2778
|
+
* @see {@link formatPercent}
|
|
2784
2779
|
*
|
|
2785
2780
|
* @usageNotes
|
|
2786
2781
|
* The following code shows how the pipe transforms numbers
|
|
@@ -2853,8 +2848,8 @@ export declare abstract class PlatformLocation {
|
|
|
2853
2848
|
/**
|
|
2854
2849
|
* Plurality cases used for translating plurals to different languages.
|
|
2855
2850
|
*
|
|
2856
|
-
* @see
|
|
2857
|
-
* @see
|
|
2851
|
+
* @see {@link NgPlural}
|
|
2852
|
+
* @see {@link NgPluralCase}
|
|
2858
2853
|
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
2859
2854
|
*
|
|
2860
2855
|
* @publicApi
|
|
@@ -3047,8 +3042,8 @@ export declare type Time = {
|
|
|
3047
3042
|
* rest of the word to lower case.
|
|
3048
3043
|
* Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
|
|
3049
3044
|
*
|
|
3050
|
-
* @see
|
|
3051
|
-
* @see
|
|
3045
|
+
* @see {@link LowerCasePipe}
|
|
3046
|
+
* @see {@link UpperCasePipe}
|
|
3052
3047
|
*
|
|
3053
3048
|
* @usageNotes
|
|
3054
3049
|
* The following example shows the result of transforming various strings into title case.
|
|
@@ -3089,8 +3084,8 @@ export declare enum TranslationWidth {
|
|
|
3089
3084
|
|
|
3090
3085
|
/**
|
|
3091
3086
|
* Transforms text to all upper case.
|
|
3092
|
-
* @see
|
|
3093
|
-
* @see
|
|
3087
|
+
* @see {@link LowerCasePipe}
|
|
3088
|
+
* @see {@link TitleCasePipe}
|
|
3094
3089
|
*
|
|
3095
3090
|
* @ngModule CommonModule
|
|
3096
3091
|
* @publicApi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.1",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/core": "16.1.
|
|
56
|
+
"@angular/core": "16.1.1",
|
|
57
57
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED