@angular/core 16.0.0 → 16.0.2
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/src/application_ref.mjs +60 -55
- package/esm2022/src/change_detection/change_detector_ref.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +1 -2
- package/esm2022/src/di/injectable.mjs +2 -1
- package/esm2022/src/di/metadata.mjs +6 -5
- package/esm2022/src/di/metadata_attr.mjs +2 -1
- package/esm2022/src/di/r3_injector.mjs +6 -3
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration/annotate.mjs +1 -1
- package/esm2022/src/hydration/api.mjs +32 -4
- package/esm2022/src/hydration/skip_hydration.mjs +12 -1
- package/esm2022/src/hydration/utils.mjs +9 -3
- package/esm2022/src/i18n/locale_data_api.mjs +2 -2
- package/esm2022/src/linker/element_ref.mjs +1 -1
- package/esm2022/src/linker/view_container_ref.mjs +16 -6
- package/esm2022/src/metadata/di.mjs +5 -4
- package/esm2022/src/metadata/directives.mjs +7 -7
- package/esm2022/src/metadata/ng_module.mjs +2 -1
- package/esm2022/src/render/api.mjs +1 -1
- package/esm2022/src/render3/bindings.mjs +2 -2
- package/esm2022/src/render3/component.mjs +4 -4
- package/esm2022/src/render3/definition.mjs +5 -2
- package/esm2022/src/render3/errors.mjs +6 -3
- package/esm2022/src/render3/instructions/element_validation.mjs +2 -2
- package/esm2022/src/render3/instructions/listener.mjs +1 -3
- package/esm2022/src/render3/instructions/shared.mjs +7 -3
- package/esm2022/src/render3/interfaces/document.mjs +6 -4
- package/esm2022/src/render3/interfaces/node.mjs +1 -1
- package/esm2022/src/render3/node_manipulation.mjs +10 -2
- package/esm2022/src/signals/src/api.mjs +5 -3
- package/esm2022/src/transfer_state.mjs +13 -28
- package/esm2022/src/util/assert.mjs +2 -5
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +4 -4
- package/esm2022/testing/src/test_bed_common.mjs +1 -1
- package/fesm2022/core.mjs +237 -171
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +5 -3
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +134 -102
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +48 -43
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +415 -361
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +5 -5
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.
|
|
2
|
+
* @license Angular v16.0.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -572,6 +572,7 @@ export declare interface Attribute {
|
|
|
572
572
|
/**
|
|
573
573
|
* Attribute decorator and metadata.
|
|
574
574
|
*
|
|
575
|
+
* @Annotation
|
|
575
576
|
* @publicApi
|
|
576
577
|
*/
|
|
577
578
|
export declare const Attribute: AttributeDecorator;
|
|
@@ -709,7 +710,7 @@ declare type ChangeDetectionStrategy_2 = number;
|
|
|
709
710
|
*
|
|
710
711
|
* The following example sets the `OnPush` change-detection strategy for a component
|
|
711
712
|
* (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check
|
|
712
|
-
* after an interval.
|
|
713
|
+
* after an interval.
|
|
713
714
|
*
|
|
714
715
|
* <code-example path="core/ts/change_detect/change-detection.ts"
|
|
715
716
|
* region="mark-for-check"></code-example>
|
|
@@ -1061,7 +1062,7 @@ export declare interface Component extends Directive {
|
|
|
1061
1062
|
/**
|
|
1062
1063
|
* Component decorator and metadata.
|
|
1063
1064
|
*
|
|
1064
|
-
|
|
1065
|
+
* @Annotation
|
|
1065
1066
|
* @publicApi
|
|
1066
1067
|
*/
|
|
1067
1068
|
export declare const Component: ComponentDecorator;
|
|
@@ -1207,6 +1208,7 @@ export declare interface ComponentDecorator {
|
|
|
1207
1208
|
* To preserve sequences of whitespace characters, use the
|
|
1208
1209
|
* `ngPreserveWhitespaces` attribute.
|
|
1209
1210
|
*
|
|
1211
|
+
* @Annotation
|
|
1210
1212
|
*/
|
|
1211
1213
|
(obj: Component): TypeDecorator;
|
|
1212
1214
|
/**
|
|
@@ -1573,7 +1575,7 @@ export declare type ContentChild = Query;
|
|
|
1573
1575
|
* ContentChild decorator and metadata.
|
|
1574
1576
|
*
|
|
1575
1577
|
*
|
|
1576
|
-
|
|
1578
|
+
* @Annotation
|
|
1577
1579
|
*
|
|
1578
1580
|
* @publicApi
|
|
1579
1581
|
*/
|
|
@@ -1633,6 +1635,7 @@ export declare interface ContentChildDecorator {
|
|
|
1633
1635
|
*
|
|
1634
1636
|
* {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
|
|
1635
1637
|
*
|
|
1638
|
+
* @Annotation
|
|
1636
1639
|
*/
|
|
1637
1640
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
1638
1641
|
descendants?: boolean;
|
|
@@ -1650,6 +1653,7 @@ export declare interface ContentChildDecorator {
|
|
|
1650
1653
|
* Type of the ContentChildren metadata.
|
|
1651
1654
|
*
|
|
1652
1655
|
*
|
|
1656
|
+
* @Annotation
|
|
1653
1657
|
* @publicApi
|
|
1654
1658
|
*/
|
|
1655
1659
|
export declare type ContentChildren = Query;
|
|
@@ -1658,6 +1662,7 @@ export declare type ContentChildren = Query;
|
|
|
1658
1662
|
* ContentChildren decorator and metadata.
|
|
1659
1663
|
*
|
|
1660
1664
|
*
|
|
1665
|
+
* @Annotation
|
|
1661
1666
|
* @publicApi
|
|
1662
1667
|
*/
|
|
1663
1668
|
export declare const ContentChildren: ContentChildrenDecorator;
|
|
@@ -1728,6 +1733,7 @@ export declare interface ContentChildrenDecorator {
|
|
|
1728
1733
|
*
|
|
1729
1734
|
* {@example core/di/ts/contentChildren/content_children_example.ts region='Component'}
|
|
1730
1735
|
*
|
|
1736
|
+
* @Annotation
|
|
1731
1737
|
*/
|
|
1732
1738
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
1733
1739
|
descendants?: boolean;
|
|
@@ -1795,12 +1801,12 @@ declare const CONTEXT = 8;
|
|
|
1795
1801
|
* @param component Component class reference.
|
|
1796
1802
|
* @param options Set of options to use:
|
|
1797
1803
|
* * `environmentInjector`: An `EnvironmentInjector` instance to be used for the component, see
|
|
1798
|
-
* additional info about it
|
|
1804
|
+
* additional info about it [here](/guide/standalone-components#environment-injectors).
|
|
1799
1805
|
* * `hostElement` (optional): A DOM node that should act as a host node for the component. If not
|
|
1800
1806
|
* provided, Angular creates one based on the tag name used in the component selector (and falls
|
|
1801
1807
|
* back to using `div` if selector doesn't have tag name info).
|
|
1802
|
-
* * `elementInjector` (optional): An `ElementInjector` instance, see additional info about it
|
|
1803
|
-
*
|
|
1808
|
+
* * `elementInjector` (optional): An `ElementInjector` instance, see additional info about it
|
|
1809
|
+
* [here](/guide/hierarchical-dependency-injection#elementinjector).
|
|
1804
1810
|
* * `projectableNodes` (optional): A list of DOM nodes that should be projected through
|
|
1805
1811
|
* [`<ng-content>`](api/core/ng-content) of the new component instance.
|
|
1806
1812
|
* @returns ComponentRef instance that represents a given Component.
|
|
@@ -2363,6 +2369,7 @@ export declare abstract class DestroyRef {
|
|
|
2363
2369
|
/**
|
|
2364
2370
|
* Directive decorator and metadata.
|
|
2365
2371
|
*
|
|
2372
|
+
* @Annotation
|
|
2366
2373
|
* @publicApi
|
|
2367
2374
|
*/
|
|
2368
2375
|
export declare interface Directive {
|
|
@@ -2541,6 +2548,7 @@ export declare interface Directive {
|
|
|
2541
2548
|
* }
|
|
2542
2549
|
* ```
|
|
2543
2550
|
*
|
|
2551
|
+
* @Annotation
|
|
2544
2552
|
*/
|
|
2545
2553
|
queries?: {
|
|
2546
2554
|
[key: string]: any;
|
|
@@ -2690,6 +2698,7 @@ export declare interface DirectiveDecorator {
|
|
|
2690
2698
|
* accessible for components outside of the NgModule.
|
|
2691
2699
|
*
|
|
2692
2700
|
*
|
|
2701
|
+
* @Annotation
|
|
2693
2702
|
*/
|
|
2694
2703
|
(obj?: Directive): TypeDecorator;
|
|
2695
2704
|
/**
|
|
@@ -2999,25 +3008,14 @@ declare interface ELEMENT_MARKER {
|
|
|
2999
3008
|
*/
|
|
3000
3009
|
export declare class ElementRef<T = any> {
|
|
3001
3010
|
/**
|
|
3002
|
-
* The underlying native element or `null` if direct access to native elements is not supported
|
|
3003
|
-
* (e.g. when the application runs in a web worker).
|
|
3004
|
-
*
|
|
3005
3011
|
* <div class="callout is-critical">
|
|
3006
3012
|
* <header>Use with caution</header>
|
|
3007
3013
|
* <p>
|
|
3008
3014
|
* Use this API as the last resort when direct access to DOM is needed. Use templating and
|
|
3009
3015
|
* data-binding provided by Angular instead. Alternatively you can take a look at {@link
|
|
3010
|
-
* Renderer2}
|
|
3011
|
-
* which provides API that can safely be used even when direct access to native elements is not
|
|
3012
|
-
* supported.
|
|
3013
|
-
* </p>
|
|
3014
|
-
* <p>
|
|
3015
|
-
* Relying on direct DOM access creates tight coupling between your application and rendering
|
|
3016
|
-
* layers which will make it impossible to separate the two and deploy your application into a
|
|
3017
|
-
* web worker.
|
|
3016
|
+
* Renderer2} which provides an API that can be safely used.
|
|
3018
3017
|
* </p>
|
|
3019
3018
|
* </div>
|
|
3020
|
-
*
|
|
3021
3019
|
*/
|
|
3022
3020
|
nativeElement: T;
|
|
3023
3021
|
constructor(nativeElement: T);
|
|
@@ -3546,7 +3544,7 @@ export declare interface Host {
|
|
|
3546
3544
|
/**
|
|
3547
3545
|
* Host decorator and metadata.
|
|
3548
3546
|
*
|
|
3549
|
-
|
|
3547
|
+
* @Annotation
|
|
3550
3548
|
* @publicApi
|
|
3551
3549
|
*/
|
|
3552
3550
|
export declare const Host: HostDecorator;
|
|
@@ -3564,7 +3562,7 @@ export declare interface HostBinding {
|
|
|
3564
3562
|
}
|
|
3565
3563
|
|
|
3566
3564
|
/**
|
|
3567
|
-
|
|
3565
|
+
* @Annotation
|
|
3568
3566
|
* @publicApi
|
|
3569
3567
|
*/
|
|
3570
3568
|
export declare const HostBinding: HostBindingDecorator;
|
|
@@ -3810,7 +3808,7 @@ export declare interface HostListener {
|
|
|
3810
3808
|
* The global target names that can be used to prefix an event name are
|
|
3811
3809
|
* `document:`, `window:` and `body:`.
|
|
3812
3810
|
*
|
|
3813
|
-
|
|
3811
|
+
* @Annotation
|
|
3814
3812
|
* @publicApi
|
|
3815
3813
|
*/
|
|
3816
3814
|
export declare const HostListener: HostListenerDecorator;
|
|
@@ -4171,6 +4169,7 @@ export declare interface Inject {
|
|
|
4171
4169
|
/**
|
|
4172
4170
|
* Inject decorator and metadata.
|
|
4173
4171
|
*
|
|
4172
|
+
* @Annotation
|
|
4174
4173
|
* @publicApi
|
|
4175
4174
|
*/
|
|
4176
4175
|
export declare const Inject: InjectDecorator;
|
|
@@ -4254,6 +4253,7 @@ export declare interface Injectable {
|
|
|
4254
4253
|
/**
|
|
4255
4254
|
* Injectable decorator and metadata.
|
|
4256
4255
|
*
|
|
4256
|
+
* @Annotation
|
|
4257
4257
|
* @publicApi
|
|
4258
4258
|
*/
|
|
4259
4259
|
export declare const Injectable: InjectableDecorator;
|
|
@@ -4600,7 +4600,7 @@ export declare interface Input {
|
|
|
4600
4600
|
}
|
|
4601
4601
|
|
|
4602
4602
|
/**
|
|
4603
|
-
|
|
4603
|
+
* @Annotation
|
|
4604
4604
|
* @publicApi
|
|
4605
4605
|
*/
|
|
4606
4606
|
export declare const Input: InputDecorator;
|
|
@@ -4685,14 +4685,16 @@ declare interface InternalViewRef extends ViewRef {
|
|
|
4685
4685
|
export declare function isDevMode(): boolean;
|
|
4686
4686
|
|
|
4687
4687
|
/**
|
|
4688
|
-
* Checks if the given `value`
|
|
4688
|
+
* Checks if the given `value` is a reactive `Signal`.
|
|
4689
|
+
*
|
|
4690
|
+
* @developerPreview
|
|
4689
4691
|
*/
|
|
4690
|
-
export declare function isSignal(value:
|
|
4692
|
+
export declare function isSignal(value: unknown): value is Signal<unknown>;
|
|
4691
4693
|
|
|
4692
4694
|
/**
|
|
4693
4695
|
* Checks whether a given Component, Directive or Pipe is marked as standalone.
|
|
4694
4696
|
* This will return false if passed anything other than a Component, Directive, or Pipe class
|
|
4695
|
-
* See this guide for additional information:
|
|
4697
|
+
* See [this guide](/guide/standalone-components) for additional information:
|
|
4696
4698
|
*
|
|
4697
4699
|
* @param type A reference to a Component, Directive or Pipe.
|
|
4698
4700
|
* @publicApi
|
|
@@ -5760,6 +5762,7 @@ export declare interface NgModule {
|
|
|
5760
5762
|
}
|
|
5761
5763
|
|
|
5762
5764
|
/**
|
|
5765
|
+
* @Annotation
|
|
5763
5766
|
*/
|
|
5764
5767
|
export declare const NgModule: NgModuleDecorator;
|
|
5765
5768
|
|
|
@@ -6158,7 +6161,7 @@ export declare interface Optional {
|
|
|
6158
6161
|
/**
|
|
6159
6162
|
* Optional decorator and metadata.
|
|
6160
6163
|
*
|
|
6161
|
-
|
|
6164
|
+
* @Annotation
|
|
6162
6165
|
* @publicApi
|
|
6163
6166
|
*/
|
|
6164
6167
|
export declare const Optional: OptionalDecorator;
|
|
@@ -6203,7 +6206,7 @@ export declare interface Output {
|
|
|
6203
6206
|
}
|
|
6204
6207
|
|
|
6205
6208
|
/**
|
|
6206
|
-
|
|
6209
|
+
* @Annotation
|
|
6207
6210
|
* @publicApi
|
|
6208
6211
|
*/
|
|
6209
6212
|
export declare const Output: OutputDecorator;
|
|
@@ -6277,7 +6280,7 @@ export declare interface Pipe {
|
|
|
6277
6280
|
}
|
|
6278
6281
|
|
|
6279
6282
|
/**
|
|
6280
|
-
|
|
6283
|
+
* @Annotation
|
|
6281
6284
|
* @publicApi
|
|
6282
6285
|
*/
|
|
6283
6286
|
export declare const Pipe: PipeDecorator;
|
|
@@ -7250,7 +7253,6 @@ export declare abstract class Renderer2 {
|
|
|
7250
7253
|
* in the host element's DOM.
|
|
7251
7254
|
* @param node The child node to query.
|
|
7252
7255
|
* @returns The parent node, or null if there is no parent.
|
|
7253
|
-
* For WebWorkers, always returns true.
|
|
7254
7256
|
* This is because the check is synchronous,
|
|
7255
7257
|
* and the caller can't rely on checking for null.
|
|
7256
7258
|
*/
|
|
@@ -7259,7 +7261,6 @@ export declare abstract class Renderer2 {
|
|
|
7259
7261
|
* Implement this callback to get the next sibling node of a given node
|
|
7260
7262
|
* in the host element's DOM.
|
|
7261
7263
|
* @returns The sibling node, or null if there is no sibling.
|
|
7262
|
-
* For WebWorkers, always returns a value.
|
|
7263
7264
|
* This is because the check is synchronous,
|
|
7264
7265
|
* and the caller can't rely on checking for null.
|
|
7265
7266
|
*/
|
|
@@ -7520,6 +7521,7 @@ declare const enum RuntimeErrorCode {
|
|
|
7520
7521
|
PROVIDER_IN_WRONG_CONTEXT = 207,
|
|
7521
7522
|
MISSING_INJECTION_TOKEN = 208,
|
|
7522
7523
|
INVALID_MULTI_PROVIDER = -209,
|
|
7524
|
+
MISSING_DOCUMENT = 210,
|
|
7523
7525
|
MULTIPLE_COMPONENTS_MATCH = -300,
|
|
7524
7526
|
EXPORT_NOT_FOUND = -301,
|
|
7525
7527
|
PIPE_NOT_FOUND = -302,
|
|
@@ -7547,6 +7549,7 @@ declare const enum RuntimeErrorCode {
|
|
|
7547
7549
|
UNSUPPORTED_PROJECTION_DOM_NODES = -503,
|
|
7548
7550
|
INVALID_SKIP_HYDRATION_HOST = -504,
|
|
7549
7551
|
MISSING_HYDRATION_ANNOTATIONS = -505,
|
|
7552
|
+
HYDRATION_STABLE_TIMEDOUT = -506,
|
|
7550
7553
|
SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
|
|
7551
7554
|
REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
|
|
7552
7555
|
INVALID_I18N_STRUCTURE = 700,
|
|
@@ -7639,7 +7642,7 @@ export declare interface Self {
|
|
|
7639
7642
|
/**
|
|
7640
7643
|
* Self decorator and metadata.
|
|
7641
7644
|
*
|
|
7642
|
-
|
|
7645
|
+
* @Annotation
|
|
7643
7646
|
* @publicApi
|
|
7644
7647
|
*/
|
|
7645
7648
|
export declare const Self: SelfDecorator;
|
|
@@ -7834,7 +7837,7 @@ export declare interface SkipSelf {
|
|
|
7834
7837
|
/**
|
|
7835
7838
|
* `SkipSelf` decorator and metadata.
|
|
7836
7839
|
*
|
|
7837
|
-
|
|
7840
|
+
* @Annotation
|
|
7838
7841
|
* @publicApi
|
|
7839
7842
|
*/
|
|
7840
7843
|
export declare const SkipSelf: SkipSelfDecorator;
|
|
@@ -7868,6 +7871,7 @@ export declare interface SkipSelfDecorator {
|
|
|
7868
7871
|
new (): SkipSelf;
|
|
7869
7872
|
}
|
|
7870
7873
|
|
|
7874
|
+
|
|
7871
7875
|
/**
|
|
7872
7876
|
* A type-safe key to use with `TransferState`.
|
|
7873
7877
|
*
|
|
@@ -8706,7 +8710,7 @@ declare const enum TNodeFlags {
|
|
|
8706
8710
|
hasClassInput = 8,
|
|
8707
8711
|
/** Bit #5 - This bit is set if the node has any "style" inputs */
|
|
8708
8712
|
hasStyleInput = 16,
|
|
8709
|
-
/** Bit #6 This bit is set if the node has been detached by i18n */
|
|
8713
|
+
/** Bit #6 - This bit is set if the node has been detached by i18n */
|
|
8710
8714
|
isDetached = 32,
|
|
8711
8715
|
/**
|
|
8712
8716
|
* Bit #7 - This bit is set if the node has directives with host bindings.
|
|
@@ -8714,7 +8718,11 @@ declare const enum TNodeFlags {
|
|
|
8714
8718
|
* This flags allows us to guard host-binding logic and invoke it only on nodes
|
|
8715
8719
|
* that actually have directives with host bindings.
|
|
8716
8720
|
*/
|
|
8717
|
-
hasHostBindings = 64
|
|
8721
|
+
hasHostBindings = 64,
|
|
8722
|
+
/**
|
|
8723
|
+
* Bit #8 - This bit is set if the node is a located inside skip hydration block.
|
|
8724
|
+
*/
|
|
8725
|
+
inSkipHydrationBlock = 128
|
|
8718
8726
|
}
|
|
8719
8727
|
|
|
8720
8728
|
/**
|
|
@@ -9658,7 +9666,7 @@ export declare type ViewChild = Query;
|
|
|
9658
9666
|
/**
|
|
9659
9667
|
* ViewChild decorator and metadata.
|
|
9660
9668
|
*
|
|
9661
|
-
|
|
9669
|
+
* @Annotation
|
|
9662
9670
|
* @publicApi
|
|
9663
9671
|
*/
|
|
9664
9672
|
export declare const ViewChild: ViewChildDecorator;
|
|
@@ -9713,6 +9721,7 @@ export declare interface ViewChildDecorator {
|
|
|
9713
9721
|
*
|
|
9714
9722
|
* {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
|
|
9715
9723
|
*
|
|
9724
|
+
* @Annotation
|
|
9716
9725
|
*/
|
|
9717
9726
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
9718
9727
|
read?: any;
|
|
@@ -9734,7 +9743,7 @@ export declare type ViewChildren = Query;
|
|
|
9734
9743
|
/**
|
|
9735
9744
|
* ViewChildren decorator and metadata.
|
|
9736
9745
|
*
|
|
9737
|
-
|
|
9746
|
+
* @Annotation
|
|
9738
9747
|
* @publicApi
|
|
9739
9748
|
*/
|
|
9740
9749
|
export declare const ViewChildren: ViewChildrenDecorator;
|
|
@@ -9796,6 +9805,7 @@ export declare interface ViewChildrenDecorator {
|
|
|
9796
9805
|
*
|
|
9797
9806
|
* {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
|
|
9798
9807
|
*
|
|
9808
|
+
* @Annotation
|
|
9799
9809
|
*/
|
|
9800
9810
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
9801
9811
|
read?: any;
|
|
@@ -10682,9 +10692,6 @@ export declare interface ɵDirectiveType<T> extends Type<T> {
|
|
|
10682
10692
|
*/
|
|
10683
10693
|
export declare const ɵENABLED_SSR_FEATURES: InjectionToken<Set<string>>;
|
|
10684
10694
|
|
|
10685
|
-
|
|
10686
|
-
export declare function ɵescapeTransferStateContent(text: string): string;
|
|
10687
|
-
|
|
10688
10695
|
/**
|
|
10689
10696
|
* Index of each type of locale data from the extra locale data array
|
|
10690
10697
|
*/
|
|
@@ -10803,7 +10810,7 @@ export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
|
|
|
10803
10810
|
* @param locale A locale code for the locale format rules to use.
|
|
10804
10811
|
* @returns The plural function for the locale.
|
|
10805
10812
|
* @see `NgPlural`
|
|
10806
|
-
* @see [Internationalization (i18n) Guide](
|
|
10813
|
+
* @see [Internationalization (i18n) Guide](/guide/i18n-overview)
|
|
10807
10814
|
*/
|
|
10808
10815
|
export declare function ɵgetLocalePluralCase(locale: string): (value: number) => number;
|
|
10809
10816
|
|
|
@@ -11552,8 +11559,6 @@ export declare const ɵTESTABILITY_GETTER: InjectionToken<GetTestability>;
|
|
|
11552
11559
|
*/
|
|
11553
11560
|
export declare function ɵtransitiveScopesFor<T>(type: Type<T>): ɵNgModuleTransitiveScopes;
|
|
11554
11561
|
|
|
11555
|
-
export declare function ɵunescapeTransferStateContent(text: string): string;
|
|
11556
|
-
|
|
11557
11562
|
/**
|
|
11558
11563
|
* Helper function to remove all the locale data from `LOCALE_DATA`.
|
|
11559
11564
|
*/
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// bazel-out/
|
|
63
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
|
|
64
64
|
var guard_and_resolve_interfaces_exports = {};
|
|
65
65
|
__export(guard_and_resolve_interfaces_exports, {
|
|
66
66
|
default: () => guard_and_resolve_interfaces_default
|
|
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(guard_and_resolve_interfaces_exports);
|
|
|
69
69
|
var import_schematics = require("@angular-devkit/schematics");
|
|
70
70
|
var import_path3 = require("path");
|
|
71
71
|
|
|
72
|
-
// bazel-out/
|
|
72
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
73
73
|
var import_core = require("@angular-devkit/core");
|
|
74
74
|
function getProjectTsConfigPaths(tree) {
|
|
75
75
|
return __async(this, null, function* () {
|
|
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
// bazel-out/
|
|
152
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
153
153
|
var import_path = require("path");
|
|
154
154
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
155
155
|
|
|
156
|
-
// bazel-out/
|
|
156
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
157
157
|
var path = __toESM(require("path"), 1);
|
|
158
158
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
159
159
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
170
170
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
// bazel-out/
|
|
173
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
174
174
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
175
175
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
176
176
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
203
203
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
// bazel-out/
|
|
206
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
|
|
207
207
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
210
210
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
211
211
|
|
|
212
|
-
// bazel-out/
|
|
212
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
213
213
|
var import_path2 = require("path");
|
|
214
214
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
215
215
|
var ImportManager = class {
|
|
@@ -393,7 +393,7 @@ ${text}`;
|
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
// bazel-out/
|
|
396
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
397
397
|
var ChangeTracker = class {
|
|
398
398
|
constructor(_printer, _importRemapper) {
|
|
399
399
|
__publicField(this, "_printer");
|
|
@@ -449,7 +449,7 @@ function normalizePath(path2) {
|
|
|
449
449
|
return path2.replace(/\\/g, "/");
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
// bazel-out/
|
|
452
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
453
453
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
454
454
|
function getImportOfIdentifier(typeChecker, node) {
|
|
455
455
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -521,7 +521,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
// bazel-out/
|
|
524
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
525
525
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
526
526
|
function closestNode(node, predicate) {
|
|
527
527
|
let current = node.parent;
|
|
@@ -534,7 +534,7 @@ function closestNode(node, predicate) {
|
|
|
534
534
|
return null;
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
// bazel-out/
|
|
537
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
|
|
538
538
|
var deprecatedInterfaces = /* @__PURE__ */ new Set(["CanLoad", "CanMatch", "CanActivate", "CanDeactivate", "CanActivateChild", "Resolve"]);
|
|
539
539
|
var routerModule = "@angular/router";
|
|
540
540
|
function migrateFile(sourceFile, typeChecker, rewriteFn) {
|
|
@@ -647,7 +647,7 @@ function visitTypeReference(typeReference, typeChecker, changeTracker, sourceFil
|
|
|
647
647
|
import_typescript7.default.forEachChild(typeReference, visitTypeReferenceChildren);
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
// bazel-out/
|
|
650
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
|
|
651
651
|
function guard_and_resolve_interfaces_default() {
|
|
652
652
|
return (tree) => __async(this, null, function* () {
|
|
653
653
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// bazel-out/
|
|
59
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
|
|
60
60
|
var remove_module_id_exports = {};
|
|
61
61
|
__export(remove_module_id_exports, {
|
|
62
62
|
default: () => remove_module_id_default
|
|
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
|
|
|
66
66
|
var import_path2 = require("path");
|
|
67
67
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
68
68
|
|
|
69
|
-
// bazel-out/
|
|
69
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
|
|
70
70
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
71
71
|
|
|
72
|
-
// bazel-out/
|
|
72
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
73
73
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
74
74
|
|
|
75
|
-
// bazel-out/
|
|
75
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
76
76
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
77
77
|
function getImportOfIdentifier(typeChecker, node) {
|
|
78
78
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// bazel-out/
|
|
97
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
98
98
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
99
99
|
if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
|
|
100
100
|
return null;
|
|
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
103
103
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// bazel-out/
|
|
106
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
107
107
|
function getAngularDecorators(typeChecker, decorators) {
|
|
108
108
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
109
109
|
node,
|
|
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
// bazel-out/
|
|
116
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
|
|
117
117
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
118
118
|
function unwrapExpression(node) {
|
|
119
119
|
if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
|
|
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
|
|
127
127
|
function extractAngularClassMetadata(typeChecker, node) {
|
|
128
128
|
const decorators = import_typescript4.default.getDecorators(node);
|
|
129
129
|
if (!decorators || !decorators.length) {
|
|
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// bazel-out/
|
|
153
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
154
154
|
var import_core = require("@angular-devkit/core");
|
|
155
155
|
function getProjectTsConfigPaths(tree) {
|
|
156
156
|
return __async(this, null, function* () {
|
|
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
// bazel-out/
|
|
233
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
234
234
|
var import_path = require("path");
|
|
235
235
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
236
236
|
|
|
237
|
-
// bazel-out/
|
|
237
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
238
238
|
var path = __toESM(require("path"), 1);
|
|
239
239
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
240
240
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
251
251
|
return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
// bazel-out/
|
|
254
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
255
255
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
256
256
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
257
257
|
return import_typescript6.default.createProgram(rootNames, options, host);
|
|
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
284
284
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
// bazel-out/
|
|
287
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
|
|
288
288
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
289
289
|
function getPropertyNameText(node) {
|
|
290
290
|
if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
|
|
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
|
|
|
293
293
|
return null;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
// bazel-out/
|
|
296
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
|
|
297
297
|
function remove_module_id_default() {
|
|
298
298
|
return (tree) => __async(this, null, function* () {
|
|
299
299
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|