@angular/common 18.0.0-next.3 → 18.0.0-next.4
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 +6 -7
- package/esm2022/http/src/fetch.mjs +3 -3
- package/esm2022/http/src/interceptor.mjs +24 -8
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/private_export.mjs +2 -2
- package/esm2022/http/src/transfer_cache.mjs +6 -4
- 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/http/testing/src/provider.mjs +3 -2
- 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 +12 -12
- package/esm2022/src/directives/ng_if.mjs +6 -6
- package/esm2022/src/directives/ng_optimized_image/image_loaders/imagekit_loader.mjs +6 -9
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +5 -5
- 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 +11 -11
- 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 +4 -4
- package/esm2022/src/i18n/locale_data.mjs +2 -2
- package/esm2022/src/i18n/locale_data_api.mjs +29 -29
- 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/navigation/platform_navigation.mjs +3 -3
- package/esm2022/src/pipes/async_pipe.mjs +3 -3
- package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2022/src/pipes/date_pipe.mjs +5 -5
- 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 +13 -13
- 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 +6 -6
- package/esm2022/upgrade/src/location_upgrade_module.mjs +6 -6
- package/fesm2022/common.mjs +172 -175
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +11 -10
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +64 -48
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +17 -17
- package/fesm2022/upgrade.mjs +7 -7
- package/fesm2022/upgrade.mjs.map +1 -1
- package/http/index.d.ts +11 -9
- package/http/testing/index.d.ts +2 -2
- package/index.d.ts +48 -48
- package/package.json +2 -2
- package/testing/index.d.ts +2 -2
- package/upgrade/index.d.ts +3 -3
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.0-next.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v18.0.0-next.4
|
|
3
|
+
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -242,7 +242,7 @@ export declare const DATE_PIPE_DEFAULT_TIMEZONE: InjectionToken<string>;
|
|
|
242
242
|
*
|
|
243
243
|
* Only the `en-US` locale data comes with Angular. To localize dates
|
|
244
244
|
* in another language, you must import the corresponding locale data.
|
|
245
|
-
* See the [I18n guide](guide/i18n
|
|
245
|
+
* See the [I18n guide](guide/i18n/format-data-locale) for more information.
|
|
246
246
|
*
|
|
247
247
|
* The time zone of the formatted value can be specified either by passing it in as the second
|
|
248
248
|
* parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`
|
|
@@ -402,7 +402,7 @@ export declare class DatePipe implements PipeTransform {
|
|
|
402
402
|
* is not configured, the end-user's local system timezone is used as a value.
|
|
403
403
|
* @param locale A locale code for the locale format rules to use.
|
|
404
404
|
* When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
|
|
405
|
-
* See [Setting your app locale](guide/i18n
|
|
405
|
+
* See [Setting your app locale](guide/i18n/locale-id).
|
|
406
406
|
*
|
|
407
407
|
* @see {@link DATE_PIPE_DEFAULT_OPTIONS}
|
|
408
408
|
*
|
|
@@ -480,7 +480,7 @@ export declare interface DatePipeConfig {
|
|
|
480
480
|
*
|
|
481
481
|
* When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
|
|
482
482
|
*
|
|
483
|
-
* See [Setting your app locale](guide/i18n
|
|
483
|
+
* See [Setting your app locale](guide/i18n/locale-id).
|
|
484
484
|
*
|
|
485
485
|
* ### Example
|
|
486
486
|
*
|
|
@@ -534,7 +534,7 @@ export declare const DOCUMENT: InjectionToken<Document>;
|
|
|
534
534
|
*
|
|
535
535
|
* @see {@link formatNumber}
|
|
536
536
|
* @see {@link DecimalPipe}
|
|
537
|
-
* @see [Internationalization (i18n) Guide](
|
|
537
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
538
538
|
*
|
|
539
539
|
* @publicApi
|
|
540
540
|
*/
|
|
@@ -557,7 +557,7 @@ export declare function formatCurrency(value: number, locale: string, currency:
|
|
|
557
557
|
* @returns The formatted date string.
|
|
558
558
|
*
|
|
559
559
|
* @see {@link DatePipe}
|
|
560
|
-
* @see [Internationalization (i18n) Guide](
|
|
560
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
561
561
|
*
|
|
562
562
|
* @publicApi
|
|
563
563
|
*/
|
|
@@ -576,7 +576,7 @@ export declare function formatDate(value: string | number | Date, format: string
|
|
|
576
576
|
* `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
|
|
577
577
|
*
|
|
578
578
|
* @returns The formatted text string.
|
|
579
|
-
* @see [Internationalization (i18n) Guide](
|
|
579
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
580
580
|
*
|
|
581
581
|
* @publicApi
|
|
582
582
|
*/
|
|
@@ -597,7 +597,7 @@ export declare function formatNumber(value: number, locale: string, digitsInfo?:
|
|
|
597
597
|
*
|
|
598
598
|
* @see {@link formatNumber}
|
|
599
599
|
* @see {@link DecimalPipe}
|
|
600
|
-
* @see [Internationalization (i18n) Guide](
|
|
600
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
601
601
|
* @publicApi
|
|
602
602
|
*
|
|
603
603
|
*/
|
|
@@ -611,7 +611,7 @@ export declare function formatPercent(value: number, locale: string, digitsInfo?
|
|
|
611
611
|
* @see {@link getLocaleDateFormat}
|
|
612
612
|
* @see {@link getLocaleTimeFormat}
|
|
613
613
|
* @see {@link getLocaleDateTimeFormat}
|
|
614
|
-
* @see [Internationalization (i18n) Guide](
|
|
614
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
615
615
|
* @publicApi
|
|
616
616
|
*/
|
|
617
617
|
export declare enum FormatWidth {
|
|
@@ -642,7 +642,7 @@ export declare enum FormatWidth {
|
|
|
642
642
|
* Typically the standalone version is for the nominative form of the word,
|
|
643
643
|
* and the format version is used for the genitive case.
|
|
644
644
|
* @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)
|
|
645
|
-
* @see [Internationalization (i18n) Guide](
|
|
645
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
646
646
|
*
|
|
647
647
|
* @publicApi
|
|
648
648
|
*/
|
|
@@ -662,7 +662,7 @@ export declare enum FormStyle {
|
|
|
662
662
|
* @param locale A locale code for the locale format rules to use.
|
|
663
663
|
*
|
|
664
664
|
* @returns The symbol, or the currency code if no symbol is available.
|
|
665
|
-
* @see [Internationalization (i18n) Guide](
|
|
665
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
666
666
|
*
|
|
667
667
|
* @publicApi
|
|
668
668
|
*/
|
|
@@ -686,7 +686,7 @@ export declare function getLocaleCurrencyCode(locale: string): string | null;
|
|
|
686
686
|
* @param locale A locale code for the locale format rules to use.
|
|
687
687
|
* @returns The currency name,
|
|
688
688
|
* or `null` if the main country cannot be determined.
|
|
689
|
-
* @see [Internationalization (i18n) Guide](
|
|
689
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
690
690
|
*
|
|
691
691
|
* @publicApi
|
|
692
692
|
*/
|
|
@@ -699,7 +699,7 @@ export declare function getLocaleCurrencyName(locale: string): string | null;
|
|
|
699
699
|
* @param locale A locale code for the locale format rules to use.
|
|
700
700
|
* @returns The localized symbol character,
|
|
701
701
|
* or `null` if the main country cannot be determined.
|
|
702
|
-
* @see [Internationalization (i18n) Guide](
|
|
702
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
703
703
|
*
|
|
704
704
|
* @publicApi
|
|
705
705
|
*/
|
|
@@ -712,7 +712,7 @@ export declare function getLocaleCurrencySymbol(locale: string): string | null;
|
|
|
712
712
|
* @param width The format type.
|
|
713
713
|
* @returns The localized formatting string.
|
|
714
714
|
* @see {@link FormatWidth}
|
|
715
|
-
* @see [Internationalization (i18n) Guide](
|
|
715
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
716
716
|
*
|
|
717
717
|
* @publicApi
|
|
718
718
|
*/
|
|
@@ -725,7 +725,7 @@ export declare function getLocaleDateFormat(locale: string, width: FormatWidth):
|
|
|
725
725
|
* @param width The format type.
|
|
726
726
|
* @returns The localized formatting string.
|
|
727
727
|
* @see {@link FormatWidth}
|
|
728
|
-
* @see [Internationalization (i18n) Guide](
|
|
728
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
729
729
|
*
|
|
730
730
|
* @publicApi
|
|
731
731
|
*/
|
|
@@ -739,7 +739,7 @@ export declare function getLocaleDateTimeFormat(locale: string, width: FormatWid
|
|
|
739
739
|
* @param width The required character width.
|
|
740
740
|
* @returns An array of localized name strings.
|
|
741
741
|
* For example,`[Sunday, Monday, ... Saturday]` for `en-US`.
|
|
742
|
-
* @see [Internationalization (i18n) Guide](
|
|
742
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
743
743
|
*
|
|
744
744
|
* @publicApi
|
|
745
745
|
*/
|
|
@@ -752,7 +752,7 @@ export declare function getLocaleDayNames(locale: string, formStyle: FormStyle,
|
|
|
752
752
|
* @param formStyle The required grammatical form.
|
|
753
753
|
* @param width The required character width.
|
|
754
754
|
* @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.
|
|
755
|
-
* @see [Internationalization (i18n) Guide](
|
|
755
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
756
756
|
*
|
|
757
757
|
* @publicApi
|
|
758
758
|
*/
|
|
@@ -763,7 +763,7 @@ export declare function getLocaleDayPeriods(locale: string, formStyle: FormStyle
|
|
|
763
763
|
* @param locale A locale code for the locale format rules to use.
|
|
764
764
|
* @publicApi
|
|
765
765
|
* @returns 'rtl' or 'ltr'
|
|
766
|
-
* @see [Internationalization (i18n) Guide](
|
|
766
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
767
767
|
*/
|
|
768
768
|
export declare function getLocaleDirection(locale: string): 'ltr' | 'rtl';
|
|
769
769
|
|
|
@@ -774,7 +774,7 @@ export declare function getLocaleDirection(locale: string): 'ltr' | 'rtl';
|
|
|
774
774
|
|
|
775
775
|
* @returns An array of localized era strings.
|
|
776
776
|
* For example, `[AD, BC]` for `en-US`.
|
|
777
|
-
* @see [Internationalization (i18n) Guide](
|
|
777
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
778
778
|
*
|
|
779
779
|
* @publicApi
|
|
780
780
|
*/
|
|
@@ -791,14 +791,14 @@ export declare function getLocaleEraNames(locale: string, width: TranslationWidt
|
|
|
791
791
|
* A rule can specify a period as time range, or as a single time value.
|
|
792
792
|
*
|
|
793
793
|
* This functionality is only available when you have loaded the full locale data.
|
|
794
|
-
* See the ["I18n guide"](guide/i18n
|
|
794
|
+
* See the ["I18n guide"](guide/i18n/format-data-locale).
|
|
795
795
|
*
|
|
796
796
|
* @param locale A locale code for the locale format rules to use.
|
|
797
797
|
* @returns The rules for the locale, a single time value or array of *from-time, to-time*,
|
|
798
798
|
* or null if no periods are available.
|
|
799
799
|
*
|
|
800
800
|
* @see {@link getLocaleExtraDayPeriods}
|
|
801
|
-
* @see [Internationalization (i18n) Guide](
|
|
801
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
802
802
|
*
|
|
803
803
|
* @publicApi
|
|
804
804
|
*/
|
|
@@ -810,14 +810,14 @@ export declare function getLocaleExtraDayPeriodRules(locale: string): (Time | [T
|
|
|
810
810
|
* For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.
|
|
811
811
|
*
|
|
812
812
|
* This functionality is only available when you have loaded the full locale data.
|
|
813
|
-
* See the ["I18n guide"](guide/i18n
|
|
813
|
+
* See the ["I18n guide"](guide/i18n/format-data-locale).
|
|
814
814
|
*
|
|
815
815
|
* @param locale A locale code for the locale format rules to use.
|
|
816
816
|
* @param formStyle The required grammatical form.
|
|
817
817
|
* @param width The required character width.
|
|
818
818
|
* @returns The translated day-period strings.
|
|
819
819
|
* @see {@link getLocaleExtraDayPeriodRules}
|
|
820
|
-
* @see [Internationalization (i18n) Guide](
|
|
820
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
821
821
|
*
|
|
822
822
|
* @publicApi
|
|
823
823
|
*/
|
|
@@ -830,7 +830,7 @@ export declare function getLocaleExtraDayPeriods(locale: string, formStyle: Form
|
|
|
830
830
|
* @returns A day index number, using the 0-based week-day index for `en-US`
|
|
831
831
|
* (Sunday = 0, Monday = 1, ...).
|
|
832
832
|
* For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.
|
|
833
|
-
* @see [Internationalization (i18n) Guide](
|
|
833
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
834
834
|
*
|
|
835
835
|
* @publicApi
|
|
836
836
|
*/
|
|
@@ -841,7 +841,7 @@ export declare function getLocaleFirstDayOfWeek(locale: string): WeekDay;
|
|
|
841
841
|
* The loaded locale could be, for example, a global one rather than a regional one.
|
|
842
842
|
* @param locale A locale code, such as `fr-FR`.
|
|
843
843
|
* @returns The locale code. For example, `fr`.
|
|
844
|
-
* @see [Internationalization (i18n) Guide](
|
|
844
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
845
845
|
*
|
|
846
846
|
* @publicApi
|
|
847
847
|
*/
|
|
@@ -855,7 +855,7 @@ export declare function getLocaleId(locale: string): string;
|
|
|
855
855
|
* @param width The required character width.
|
|
856
856
|
* @returns An array of localized name strings.
|
|
857
857
|
* For example, `[January, February, ...]` for `en-US`.
|
|
858
|
-
* @see [Internationalization (i18n) Guide](
|
|
858
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
859
859
|
*
|
|
860
860
|
* @publicApi
|
|
861
861
|
*/
|
|
@@ -892,7 +892,7 @@ export declare function getLocaleMonthNames(locale: string, formStyle: FormStyle
|
|
|
892
892
|
* @returns The localized format string.
|
|
893
893
|
* @see {@link NumberFormatStyle}
|
|
894
894
|
* @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
|
|
895
|
-
* @see [Internationalization (i18n) Guide](
|
|
895
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
896
896
|
*
|
|
897
897
|
* @publicApi
|
|
898
898
|
*/
|
|
@@ -904,7 +904,7 @@ export declare function getLocaleNumberFormat(locale: string, type: NumberFormat
|
|
|
904
904
|
* @param symbol The symbol to localize. Must be one of `NumberSymbol`.
|
|
905
905
|
* @returns The character for the localized symbol.
|
|
906
906
|
* @see {@link NumberSymbol}
|
|
907
|
-
* @see [Internationalization (i18n) Guide](
|
|
907
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
908
908
|
*
|
|
909
909
|
* @publicApi
|
|
910
910
|
*/
|
|
@@ -923,7 +923,7 @@ export declare const getLocalePluralCase: (locale: string) => (value: number) =>
|
|
|
923
923
|
* @param width The format type.
|
|
924
924
|
* @returns The localized formatting string.
|
|
925
925
|
* @see {@link FormatWidth}
|
|
926
|
-
* @see [Internationalization (i18n) Guide](
|
|
926
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
927
927
|
|
|
928
928
|
* @publicApi
|
|
929
929
|
*/
|
|
@@ -934,7 +934,7 @@ export declare function getLocaleTimeFormat(locale: string, width: FormatWidth):
|
|
|
934
934
|
*
|
|
935
935
|
* @param locale A locale code for the locale format rules to use.
|
|
936
936
|
* @returns The range of day values, `[startDay, endDay]`.
|
|
937
|
-
* @see [Internationalization (i18n) Guide](
|
|
937
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
938
938
|
*
|
|
939
939
|
* @publicApi
|
|
940
940
|
*/
|
|
@@ -946,7 +946,7 @@ export declare function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay
|
|
|
946
946
|
*
|
|
947
947
|
* @param code The currency code.
|
|
948
948
|
* @returns The number of decimal digits, typically 0 or 2.
|
|
949
|
-
* @see [Internationalization (i18n) Guide](
|
|
949
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
950
950
|
*
|
|
951
951
|
* @publicApi
|
|
952
952
|
*/
|
|
@@ -1863,13 +1863,13 @@ export declare class NgComponentOutlet implements OnChanges, DoCheck, OnDestroy
|
|
|
1863
1863
|
}
|
|
1864
1864
|
|
|
1865
1865
|
/**
|
|
1866
|
-
* A [structural directive](guide/structural-directives) that renders
|
|
1866
|
+
* A [structural directive](guide/directives/structural-directives) that renders
|
|
1867
1867
|
* a template for each item in a collection.
|
|
1868
1868
|
* The directive is placed on an element, which becomes the parent
|
|
1869
1869
|
* of the cloned templates.
|
|
1870
1870
|
*
|
|
1871
1871
|
* The `ngForOf` directive is generally used in the
|
|
1872
|
-
* [shorthand form](guide/structural-directives#asterisk) `*ngFor`.
|
|
1872
|
+
* [shorthand form](guide/directives/structural-directives#asterisk) `*ngFor`.
|
|
1873
1873
|
* In this form, the template to be rendered for each iteration is the content
|
|
1874
1874
|
* of an anchor element containing the directive.
|
|
1875
1875
|
*
|
|
@@ -1898,11 +1898,11 @@ export declare class NgComponentOutlet implements OnChanges, DoCheck, OnDestroy
|
|
|
1898
1898
|
* context according to its lexical position.
|
|
1899
1899
|
*
|
|
1900
1900
|
* When using the shorthand syntax, Angular allows only [one structural directive
|
|
1901
|
-
* on an element](guide/structural-directives#one-per-element).
|
|
1901
|
+
* on an element](guide/directives/structural-directives#one-per-element).
|
|
1902
1902
|
* If you want to iterate conditionally, for example,
|
|
1903
1903
|
* put the `*ngIf` on a container element that wraps the `*ngFor` element.
|
|
1904
1904
|
* For further discussion, see
|
|
1905
|
-
* [Structural Directives](guide/structural-directives#one-per-element).
|
|
1905
|
+
* [Structural Directives](guide/directives/structural-directives#one-per-element).
|
|
1906
1906
|
*
|
|
1907
1907
|
* @usageNotes
|
|
1908
1908
|
*
|
|
@@ -1943,7 +1943,7 @@ export declare class NgComponentOutlet implements OnChanges, DoCheck, OnDestroy
|
|
|
1943
1943
|
* controls that are present, such as `<input>` elements that accept user input. Inserted rows can
|
|
1944
1944
|
* be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state
|
|
1945
1945
|
* such as user input.
|
|
1946
|
-
* For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).
|
|
1946
|
+
* For more on animations, see [Transitions and Triggers](guide/animations/transition-and-triggers).
|
|
1947
1947
|
*
|
|
1948
1948
|
* The identities of elements in the iterator can change while the data does not.
|
|
1949
1949
|
* This can happen, for example, if the iterator is produced from an RPC to the server, and that
|
|
@@ -1956,7 +1956,7 @@ export declare class NgComponentOutlet implements OnChanges, DoCheck, OnDestroy
|
|
|
1956
1956
|
* `trackBy` takes a function that has two arguments: `index` and `item`.
|
|
1957
1957
|
* If `trackBy` is given, Angular tracks changes by the return value of the function.
|
|
1958
1958
|
*
|
|
1959
|
-
* @see [Structural Directives](guide/structural-directives)
|
|
1959
|
+
* @see [Structural Directives](guide/directives/structural-directives)
|
|
1960
1960
|
* @ngModule CommonModule
|
|
1961
1961
|
* @publicApi
|
|
1962
1962
|
*/
|
|
@@ -1966,7 +1966,7 @@ declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoC
|
|
|
1966
1966
|
private _differs;
|
|
1967
1967
|
/**
|
|
1968
1968
|
* The value of the iterable expression, which can be used as a
|
|
1969
|
-
* [template input variable](guide/structural-directives#shorthand).
|
|
1969
|
+
* [template input variable](guide/directives/structural-directives#shorthand).
|
|
1970
1970
|
*/
|
|
1971
1971
|
set ngForOf(ngForOf: (U & NgIterable<T>) | undefined | null);
|
|
1972
1972
|
/**
|
|
@@ -1996,7 +1996,7 @@ declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoC
|
|
|
1996
1996
|
constructor(_viewContainer: ViewContainerRef, _template: TemplateRef<NgForOfContext<T, U>>, _differs: IterableDiffers);
|
|
1997
1997
|
/**
|
|
1998
1998
|
* A reference to the template that is stamped out for each item in the iterable.
|
|
1999
|
-
* @see [template reference variable](guide/
|
|
1999
|
+
* @see [template reference variable](guide/templates/reference-variables)
|
|
2000
2000
|
*/
|
|
2001
2001
|
set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>);
|
|
2002
2002
|
/**
|
|
@@ -2041,7 +2041,7 @@ export declare class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>>
|
|
|
2041
2041
|
* Angular renders the template provided in an optional `else` clause. The default
|
|
2042
2042
|
* template for the `else` clause is blank.
|
|
2043
2043
|
*
|
|
2044
|
-
* A [shorthand form](guide/structural-directives#asterisk) of the directive,
|
|
2044
|
+
* A [shorthand form](guide/directives/structural-directives#asterisk) of the directive,
|
|
2045
2045
|
* `*ngIf="condition"`, is generally used, provided
|
|
2046
2046
|
* as an attribute of the anchor element for the inserted template.
|
|
2047
2047
|
* Angular expands this into a more explicit version, in which the anchor element
|
|
@@ -2167,7 +2167,7 @@ export declare class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>>
|
|
|
2167
2167
|
*
|
|
2168
2168
|
* The presence of the implicit template object has implications for the nesting of
|
|
2169
2169
|
* structural directives. For more on this subject, see
|
|
2170
|
-
* [Structural Directives](guide/structural-directives#one-per-element).
|
|
2170
|
+
* [Structural Directives](guide/directives/structural-directives#one-per-element).
|
|
2171
2171
|
*
|
|
2172
2172
|
* @ngModule CommonModule
|
|
2173
2173
|
* @publicApi
|
|
@@ -2260,7 +2260,7 @@ export declare abstract class NgLocalization {
|
|
|
2260
2260
|
* - Warns if the image will be visually distorted when rendered
|
|
2261
2261
|
*
|
|
2262
2262
|
* @usageNotes
|
|
2263
|
-
* The `NgOptimizedImage` directive is marked as [standalone](guide/
|
|
2263
|
+
* The `NgOptimizedImage` directive is marked as [standalone](guide/components/importing) and can
|
|
2264
2264
|
* be imported directly.
|
|
2265
2265
|
*
|
|
2266
2266
|
* Follow the steps below to enable and use the directive:
|
|
@@ -2656,7 +2656,7 @@ export declare class NgStyle implements DoCheck {
|
|
|
2656
2656
|
* @publicApi
|
|
2657
2657
|
* @see {@link NgSwitchCase}
|
|
2658
2658
|
* @see {@link NgSwitchDefault}
|
|
2659
|
-
* @see [Structural Directives](guide/structural-directives)
|
|
2659
|
+
* @see [Structural Directives](guide/directives/structural-directives)
|
|
2660
2660
|
*
|
|
2661
2661
|
*/
|
|
2662
2662
|
export declare class NgSwitch {
|
|
@@ -2804,7 +2804,7 @@ export declare class NgTemplateOutlet<C = unknown> implements OnChanges {
|
|
|
2804
2804
|
/**
|
|
2805
2805
|
* Format styles that can be used to represent numbers.
|
|
2806
2806
|
* @see {@link getLocaleNumberFormat}
|
|
2807
|
-
* @see [Internationalization (i18n) Guide](
|
|
2807
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
2808
2808
|
*
|
|
2809
2809
|
* @publicApi
|
|
2810
2810
|
*/
|
|
@@ -2820,7 +2820,7 @@ export declare enum NumberFormatStyle {
|
|
|
2820
2820
|
* Examples are based on `en-US` values.
|
|
2821
2821
|
*
|
|
2822
2822
|
* @see {@link getLocaleNumberSymbol}
|
|
2823
|
-
* @see [Internationalization (i18n) Guide](
|
|
2823
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
2824
2824
|
*
|
|
2825
2825
|
* @publicApi
|
|
2826
2826
|
* @object-literal-as-enum
|
|
@@ -3038,7 +3038,7 @@ export declare abstract class PlatformLocation {
|
|
|
3038
3038
|
*
|
|
3039
3039
|
* @see {@link NgPlural}
|
|
3040
3040
|
* @see {@link NgPluralCase}
|
|
3041
|
-
* @see [Internationalization (i18n) Guide](
|
|
3041
|
+
* @see [Internationalization (i18n) Guide](guide/i18n)
|
|
3042
3042
|
*
|
|
3043
3043
|
* @publicApi
|
|
3044
3044
|
*/
|
|
@@ -3144,7 +3144,7 @@ export declare function provideNetlifyLoader(path?: string): Provider[];
|
|
|
3144
3144
|
|
|
3145
3145
|
/**
|
|
3146
3146
|
* Register global data to be used internally by Angular. See the
|
|
3147
|
-
* ["I18n guide"](guide/i18n
|
|
3147
|
+
* ["I18n guide"](guide/i18n/format-data-locale) to know how to import additional locale
|
|
3148
3148
|
* data.
|
|
3149
3149
|
*
|
|
3150
3150
|
* The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "18.0.0-next.
|
|
3
|
+
"version": "18.0.0-next.4",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@angular/core": "18.0.0-next.
|
|
57
|
+
"@angular/core": "18.0.0-next.4",
|
|
58
58
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
59
59
|
},
|
|
60
60
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.0-next.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v18.0.0-next.4
|
|
3
|
+
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -348,7 +348,7 @@ export declare interface LocationUpgradeConfig {
|
|
|
348
348
|
/**
|
|
349
349
|
* `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.
|
|
350
350
|
*
|
|
351
|
-
* @see [Using the Unified Angular Location Service](guide/upgrade#using-the-unified-angular-location-service)
|
|
351
|
+
* @see [Using the Unified Angular Location Service](https://angular.io/guide/upgrade#using-the-unified-angular-location-service)
|
|
352
352
|
*
|
|
353
353
|
* @publicApi
|
|
354
354
|
*/
|