@angular/core 13.1.0-next.2 → 13.1.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.
Files changed (81) hide show
  1. package/core.d.ts +77 -672
  2. package/esm2020/src/application_module.mjs +2 -4
  3. package/esm2020/src/application_ref.mjs +45 -46
  4. package/esm2020/src/change_detection/change_detector_ref.mjs +9 -6
  5. package/esm2020/src/core.mjs +1 -2
  6. package/esm2020/src/core_private_export.mjs +4 -4
  7. package/esm2020/src/core_render3_private_export.mjs +4 -17
  8. package/esm2020/src/debug/debug_node.mjs +10 -129
  9. package/esm2020/src/di/injectable.mjs +11 -20
  10. package/esm2020/src/di/injector.mjs +6 -268
  11. package/esm2020/src/di/metadata_attr.mjs +2 -9
  12. package/esm2020/src/di/reflective_injector.mjs +3 -1
  13. package/esm2020/src/error_details_base_url.mjs +16 -0
  14. package/esm2020/src/error_handler.mjs +2 -10
  15. package/esm2020/src/errors.mjs +18 -15
  16. package/esm2020/src/linker/compiler.mjs +33 -50
  17. package/esm2020/src/linker/component_factory_resolver.mjs +1 -38
  18. package/esm2020/src/linker/element_ref.mjs +9 -6
  19. package/esm2020/src/linker/ng_module_factory_loader.mjs +20 -24
  20. package/esm2020/src/linker/template_ref.mjs +4 -6
  21. package/esm2020/src/linker/view_container_ref.mjs +11 -6
  22. package/esm2020/src/metadata/directives.mjs +7 -17
  23. package/esm2020/src/metadata/ng_module.mjs +3 -18
  24. package/esm2020/src/metadata/view.mjs +12 -12
  25. package/esm2020/src/render/api.mjs +2 -6
  26. package/esm2020/src/render3/di_setup.mjs +6 -3
  27. package/esm2020/src/render3/errors.mjs +4 -6
  28. package/esm2020/src/render3/errors_di.mjs +11 -4
  29. package/esm2020/src/render3/i18n/i18n_parse.mjs +2 -2
  30. package/esm2020/src/render3/instructions/element.mjs +3 -3
  31. package/esm2020/src/render3/instructions/shared.mjs +4 -4
  32. package/esm2020/src/render3/ng_module_ref.mjs +5 -9
  33. package/esm2020/src/render3/pipe.mjs +12 -4
  34. package/esm2020/src/util/errors.mjs +10 -3
  35. package/esm2020/src/version.mjs +1 -1
  36. package/esm2020/src/view/index.mjs +1 -15
  37. package/esm2020/testing/src/logger.mjs +3 -3
  38. package/esm2020/testing/src/metadata_overrider.mjs +14 -2
  39. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  40. package/esm2020/testing/src/test_bed.mjs +3 -526
  41. package/esm2020/testing/src/test_hooks.mjs +3 -3
  42. package/esm2020/testing/src/testing.mjs +1 -2
  43. package/fesm2015/core.mjs +355 -4848
  44. package/fesm2015/core.mjs.map +1 -1
  45. package/fesm2015/testing.mjs +26 -607
  46. package/fesm2015/testing.mjs.map +1 -1
  47. package/fesm2020/core.mjs +353 -4847
  48. package/fesm2020/core.mjs.map +1 -1
  49. package/fesm2020/testing.mjs +25 -608
  50. package/fesm2020/testing.mjs.map +1 -1
  51. package/package.json +1 -1
  52. package/schematics/migrations/entry-components/index.d.ts +11 -0
  53. package/schematics/migrations/entry-components/index.js +71 -0
  54. package/schematics/migrations/entry-components/util.d.ts +16 -0
  55. package/schematics/migrations/entry-components/util.js +57 -0
  56. package/schematics/migrations.json +10 -0
  57. package/schematics/utils/import_manager.js +14 -3
  58. package/schematics/utils/typescript/imports.js +9 -3
  59. package/testing/testing.d.ts +2 -47
  60. package/esm2020/src/codegen_private_exports.mjs +0 -11
  61. package/esm2020/src/debug/proxy.mjs +0 -23
  62. package/esm2020/src/ivy_switch.mjs +0 -11
  63. package/esm2020/src/render3/error_code.mjs +0 -42
  64. package/esm2020/src/render3/error_details_base_url.mjs +0 -16
  65. package/esm2020/src/view/element.mjs +0 -296
  66. package/esm2020/src/view/entrypoint.mjs +0 -63
  67. package/esm2020/src/view/errors.mjs +0 -43
  68. package/esm2020/src/view/ng_content.mjs +0 -47
  69. package/esm2020/src/view/ng_module.mjs +0 -215
  70. package/esm2020/src/view/provider.mjs +0 -490
  71. package/esm2020/src/view/pure_expression.mjs +0 -220
  72. package/esm2020/src/view/query.mjs +0 -180
  73. package/esm2020/src/view/refs.mjs +0 -369
  74. package/esm2020/src/view/services.mjs +0 -751
  75. package/esm2020/src/view/text.mjs +0 -136
  76. package/esm2020/src/view/types.mjs +0 -108
  77. package/esm2020/src/view/util.mjs +0 -369
  78. package/esm2020/src/view/view.mjs +0 -629
  79. package/esm2020/src/view/view_attach.mjs +0 -114
  80. package/esm2020/testing/src/private_export_testing.mjs +0 -9
  81. package/esm2020/testing/src/test_compiler.mjs +0 -69
package/core.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v13.1.0-next.2
3
- * (c) 2010-2021 Google LLC. https://angular.io/
2
+ * @license Angular v13.1.2
3
+ * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -590,15 +590,6 @@ export declare interface AttributeDecorator {
590
590
  new (name: string): Attribute;
591
591
  }
592
592
 
593
- declare interface BindingDef {
594
- flags: ɵBindingFlags;
595
- ns: string | null;
596
- name: string | null;
597
- nonMinifiedName: string | null;
598
- securityContext: SecurityContext | null;
599
- suffix: string | null;
600
- }
601
-
602
593
  /**
603
594
  * Provides additional options to the bootstraping process.
604
595
  *
@@ -829,12 +820,6 @@ export declare interface ClassSansProvider {
829
820
 
830
821
  declare const CLEANUP = 7;
831
822
 
832
- /**
833
- * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting
834
- * injectable def (`ɵprov`) onto the injectable type.
835
- */
836
- declare function compileInjectable(type: Type<any>, meta?: Injectable): void;
837
-
838
823
  /**
839
824
  * Low-level service for running the angular compiler during runtime
840
825
  * to create {@link ComponentFactory}s, which
@@ -856,19 +841,19 @@ export declare class Compiler {
856
841
  * Compiles the given NgModule and all of its components. All templates of the components listed
857
842
  * in `entryComponents` have to be inlined.
858
843
  */
859
- compileModuleSync: <T>(moduleType: Type<T>) => NgModuleFactory<T>;
844
+ compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T>;
860
845
  /**
861
846
  * Compiles the given NgModule and all of its components
862
847
  */
863
- compileModuleAsync: <T>(moduleType: Type<T>) => Promise<NgModuleFactory<T>>;
848
+ compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>>;
864
849
  /**
865
850
  * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.
866
851
  */
867
- compileModuleAndAllComponentsSync: <T>(moduleType: Type<T>) => ModuleWithComponentFactories<T>;
852
+ compileModuleAndAllComponentsSync<T>(moduleType: Type<T>): ModuleWithComponentFactories<T>;
868
853
  /**
869
854
  * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.
870
855
  */
871
- compileModuleAndAllComponentsAsync: <T>(moduleType: Type<T>) => Promise<ModuleWithComponentFactories<T>>;
856
+ compileModuleAndAllComponentsAsync<T>(moduleType: Type<T>): Promise<ModuleWithComponentFactories<T>>;
872
857
  /**
873
858
  * Clears all caches.
874
859
  */
@@ -973,24 +958,25 @@ export declare interface Component extends Directive {
973
958
  styles?: string[];
974
959
  /**
975
960
  * One or more animation `trigger()` calls, containing
976
- * `state()` and `transition()` definitions.
961
+ * [`state()`](api/animations/state) and `transition()` definitions.
977
962
  * See the [Animations guide](/guide/animations) and animations API documentation.
978
963
  *
979
964
  */
980
965
  animations?: any[];
981
966
  /**
982
- * An encapsulation policy for the template and CSS styles. One of:
983
- * - `ViewEncapsulation.Emulated`: Use shimmed CSS that
984
- * emulates the native behavior.
985
- * - `ViewEncapsulation.None`: Use global CSS without any
986
- * encapsulation.
987
- * - `ViewEncapsulation.ShadowDom`: Use Shadow DOM v1 to encapsulate styles.
967
+ * An encapsulation policy for the component's styling.
968
+ * Possible values:
969
+ * - `ViewEncapsulation.Emulated`: Apply modified component styles in order to emulate
970
+ * a native Shadow DOM CSS encapsulation behavior.
971
+ * - `ViewEncapsulation.None`: Apply component styles globally without any sort of encapsulation.
972
+ * - `ViewEncapsulation.ShadowDom`: Use the browser's native Shadow DOM API to encapsulate styles.
988
973
  *
989
- * If not supplied, the value is taken from `CompilerOptions`. The default compiler option is
990
- * `ViewEncapsulation.Emulated`.
974
+ * If not supplied, the value is taken from the `CompilerOptions`
975
+ * which defaults to `ViewEncapsulation.Emulated`.
991
976
  *
992
- * If the policy is set to `ViewEncapsulation.Emulated` and the component has no `styles`
993
- * or `styleUrls` specified, the policy is automatically switched to `ViewEncapsulation.None`.
977
+ * If the policy is `ViewEncapsulation.Emulated` and the component has no
978
+ * {@link Component#styles styles} nor {@link Component#styleUrls styleUrls},
979
+ * the policy is automatically switched to `ViewEncapsulation.None`.
994
980
  */
995
981
  encapsulation?: ViewEncapsulation;
996
982
  /**
@@ -1598,7 +1584,7 @@ declare interface CreateComponentOptions {
1598
1584
  * not provided, `NullInjector` will be used instead.
1599
1585
  * @publicApi
1600
1586
  */
1601
- export declare const createNgModuleRef: <T>(ngModule: Type<T>, parentInjector?: Injector) => NgModuleRef<T>;
1587
+ export declare function createNgModuleRef<T>(ngModule: Type<T>, parentInjector?: Injector): NgModuleRef<T>;
1602
1588
 
1603
1589
  /**
1604
1590
  * Creates a platform.
@@ -1798,42 +1784,6 @@ export declare const DebugElement: {
1798
1784
  new (...args: any[]): DebugElement;
1799
1785
  };
1800
1786
 
1801
- declare class DebugElement__POST_R3__ extends DebugNode__POST_R3__ implements DebugElement {
1802
- constructor(nativeNode: Element);
1803
- get nativeElement(): Element | null;
1804
- get name(): string;
1805
- /**
1806
- * Gets a map of property names to property values for an element.
1807
- *
1808
- * This map includes:
1809
- * - Regular property bindings (e.g. `[id]="id"`)
1810
- * - Host property bindings (e.g. `host: { '[id]': "id" }`)
1811
- * - Interpolated property bindings (e.g. `id="{{ value }}")
1812
- *
1813
- * It does not include:
1814
- * - input property bindings (e.g. `[myCustomInput]="value"`)
1815
- * - attribute bindings (e.g. `[attr.role]="menu"`)
1816
- */
1817
- get properties(): {
1818
- [key: string]: any;
1819
- };
1820
- get attributes(): {
1821
- [key: string]: string | null;
1822
- };
1823
- get styles(): {
1824
- [key: string]: string | null;
1825
- };
1826
- get classes(): {
1827
- [key: string]: boolean;
1828
- };
1829
- get childNodes(): DebugNode[];
1830
- get children(): DebugElement[];
1831
- query(predicate: Predicate<DebugElement>): DebugElement;
1832
- queryAll(predicate: Predicate<DebugElement>): DebugElement[];
1833
- queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[];
1834
- triggerEventHandler(eventName: string, eventObj: any): void;
1835
- }
1836
-
1837
1787
  /**
1838
1788
  * @publicApi
1839
1789
  */
@@ -1941,20 +1891,6 @@ declare interface DebugNode_2 {
1941
1891
  injectorResolutionPath: any;
1942
1892
  }
1943
1893
 
1944
- declare class DebugNode__POST_R3__ implements DebugNode {
1945
- readonly nativeNode: Node;
1946
- constructor(nativeNode: Node);
1947
- get parent(): DebugElement | null;
1948
- get injector(): Injector;
1949
- get componentInstance(): any;
1950
- get context(): any;
1951
- get listeners(): DebugEventListener[];
1952
- get references(): {
1953
- [key: string]: any;
1954
- };
1955
- get providerTokens(): any[];
1956
- }
1957
-
1958
1894
  declare const DECLARATION_COMPONENT_VIEW = 16;
1959
1895
 
1960
1896
  declare const DECLARATION_LCONTAINER = 17;
@@ -2044,26 +1980,6 @@ export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, Iter
2044
1980
  */
2045
1981
  export declare const defineInjectable: typeof ɵɵdefineInjectable;
2046
1982
 
2047
- declare interface Definition<DF extends DefinitionFactory<any>> {
2048
- factory: DF | null;
2049
- }
2050
-
2051
- /**
2052
- * Factory for ViewDefinitions/NgModuleDefinitions.
2053
- * We use a function so we can reexeute it in case an error happens and use the given logger
2054
- * function to log the error from the definition of the node, which is shown in all browser
2055
- * logs.
2056
- */
2057
- declare interface DefinitionFactory<D extends Definition<any>> {
2058
- (logger: NodeLogger): D;
2059
- }
2060
-
2061
- declare interface DepDef {
2062
- flags: ɵDepFlags;
2063
- token: any;
2064
- tokenKey: string;
2065
- }
2066
-
2067
1983
  /**
2068
1984
  * Array of destroy hooks that should be executed for a view and their directive indices.
2069
1985
  *
@@ -2395,10 +2311,6 @@ declare type DirectiveTypeList = (ɵDirectiveType<any> | ɵComponentType<any> |
2395
2311
 
2396
2312
  declare type DirectiveTypesOrFactory = (() => DirectiveTypeList) | DirectiveTypeList;
2397
2313
 
2398
- declare interface DisposableFn {
2399
- (): void;
2400
- }
2401
-
2402
2314
  /**
2403
2315
  * @description
2404
2316
  * Hook for manual bootstrapping of the application instead of using `bootstrap` array in @NgModule
@@ -2475,36 +2387,6 @@ declare interface ELEMENT_MARKER {
2475
2387
  marker: 'element';
2476
2388
  }
2477
2389
 
2478
- declare interface ElementDef {
2479
- name: string | null;
2480
- ns: string | null;
2481
- /** ns, name, value */
2482
- attrs: [string, string, string][] | null;
2483
- template: ɵViewDefinition | null;
2484
- componentProvider: NodeDef | null;
2485
- componentRendererType: RendererType2 | null;
2486
- componentView: ViewDefinitionFactory | null;
2487
- /**
2488
- * visible public providers for DI in the view,
2489
- * as see from this element. This does not include private providers.
2490
- */
2491
- publicProviders: {
2492
- [tokenKey: string]: NodeDef;
2493
- } | null;
2494
- /**
2495
- * same as visiblePublicProviders, but also includes private providers
2496
- * that are located on this element.
2497
- */
2498
- allProviders: {
2499
- [tokenKey: string]: NodeDef;
2500
- } | null;
2501
- handleEvent: ElementHandleEventFn | null;
2502
- }
2503
-
2504
- declare interface ElementHandleEventFn {
2505
- (view: ViewData, eventName: string, event: any): boolean;
2506
- }
2507
-
2508
2390
  /**
2509
2391
  * A wrapper around a native element inside of a View.
2510
2392
  *
@@ -2882,7 +2764,9 @@ export declare interface ForwardRefFn {
2882
2764
  /**
2883
2765
  * @publicApi
2884
2766
  */
2885
- export declare const getDebugNode: (nativeNode: any) => DebugNode | null;
2767
+ declare const getDebugNode: (nativeNode: any) => DebugNode | null;
2768
+ export { getDebugNode }
2769
+ export { getDebugNode as ɵgetDebugNode }
2886
2770
 
2887
2771
  /**
2888
2772
  * Returns the NgModuleFactory with the given id (specified using [@NgModule.id
@@ -2891,7 +2775,7 @@ export declare const getDebugNode: (nativeNode: any) => DebugNode | null;
2891
2775
  * @publicApi
2892
2776
  * @deprecated Use `getNgModuleById` instead.
2893
2777
  */
2894
- export declare const getModuleFactory: (id: string) => NgModuleFactory<any>;
2778
+ export declare function getModuleFactory(id: string): NgModuleFactory<any>;
2895
2779
 
2896
2780
  /**
2897
2781
  * Returns the NgModule class with the given id (specified using [@NgModule.id
@@ -2899,7 +2783,7 @@ export declare const getModuleFactory: (id: string) => NgModuleFactory<any>;
2899
2783
  * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.
2900
2784
  * @publicApi
2901
2785
  */
2902
- export declare const getNgModuleById: <T>(id: string) => Type<T>;
2786
+ export declare function getNgModuleById<T>(id: string): Type<T>;
2903
2787
 
2904
2788
  /**
2905
2789
  * Returns the current platform.
@@ -3162,7 +3046,7 @@ export declare interface HostListener {
3162
3046
  * @HostListener('click', ['$event.target'])
3163
3047
  * onClick(btn) {
3164
3048
  * console.log('button', btn, 'number of clicks:', this.numberOfClicks++);
3165
- * }
3049
+ * }
3166
3050
  * }
3167
3051
  *
3168
3052
  * @Component({
@@ -3609,9 +3493,6 @@ export declare interface InjectableType<T> extends Type<T> {
3609
3493
  ɵprov: unknown;
3610
3494
  }
3611
3495
 
3612
- /** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
3613
- declare function injectChangeDetectorRef(flags: InjectFlags): ChangeDetectorRef;
3614
-
3615
3496
 
3616
3497
  /**
3617
3498
  * Type of the Inject decorator / constructor function.
@@ -3640,13 +3521,6 @@ export declare interface InjectDecorator {
3640
3521
  new (token: any): Inject;
3641
3522
  }
3642
3523
 
3643
- /**
3644
- * Creates an ElementRef from the most recent node.
3645
- *
3646
- * @returns The ElementRef instance to use
3647
- */
3648
- declare function injectElementRef(): ElementRef;
3649
-
3650
3524
  /**
3651
3525
  * Injection flags for DI.
3652
3526
  *
@@ -3828,24 +3702,6 @@ declare interface InjectorTypeWithProviders<T> {
3828
3702
  providers?: (Type<any> | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | any[])[];
3829
3703
  }
3830
3704
 
3831
- /** Injects a Renderer2 for the current component. */
3832
- declare function injectRenderer2(): Renderer2;
3833
-
3834
- /**
3835
- * Creates a TemplateRef given a node.
3836
- *
3837
- * @returns The TemplateRef instance to use
3838
- */
3839
- declare function injectTemplateRef<T>(): TemplateRef<T> | null;
3840
-
3841
- /**
3842
- * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef
3843
- * already exists, retrieves the existing ViewContainerRef.
3844
- *
3845
- * @returns The ViewContainerRef instance to use
3846
- */
3847
- declare function injectViewContainerRef(): ViewContainerRef;
3848
-
3849
3705
  /**
3850
3706
  * Type of metadata for an `Input` property.
3851
3707
  *
@@ -4900,16 +4756,6 @@ declare const NATIVE = 7;
4900
4756
 
4901
4757
  declare const NEXT = 4;
4902
4758
 
4903
- declare interface NgContentDef {
4904
- /**
4905
- * this index is checked against NodeDef.ngContentIndex to find the nodes
4906
- * that are matched by this ng-content.
4907
- * Note that a NodeDef with an ng-content can be reprojected, i.e.
4908
- * have a ngContentIndex on its own.
4909
- */
4910
- index: number;
4911
- }
4912
-
4913
4759
  /**
4914
4760
  * A type describing supported iterable types.
4915
4761
  *
@@ -5126,18 +4972,6 @@ export declare interface NgModuleDecorator {
5126
4972
  new (obj?: NgModule): NgModule;
5127
4973
  }
5128
4974
 
5129
- declare interface NgModuleDefinition extends Definition<NgModuleDefinitionFactory> {
5130
- providers: NgModuleProviderDef[];
5131
- providersByKey: {
5132
- [tokenKey: string]: NgModuleProviderDef;
5133
- };
5134
- modules: any[];
5135
- scope: 'root' | 'platform' | null;
5136
- }
5137
-
5138
- declare interface NgModuleDefinitionFactory extends DefinitionFactory<NgModuleDefinition> {
5139
- }
5140
-
5141
4975
  /**
5142
4976
  * @publicApi
5143
4977
  *
@@ -5154,14 +4988,6 @@ export declare abstract class NgModuleFactory<T> {
5154
4988
  abstract create(parentInjector: Injector | null): NgModuleRef<T>;
5155
4989
  }
5156
4990
 
5157
- declare interface NgModuleProviderDef {
5158
- flags: ɵNodeFlags;
5159
- index: number;
5160
- token: any;
5161
- value: any;
5162
- deps: DepDef[];
5163
- }
5164
-
5165
4991
  /**
5166
4992
  * Represents an instance of an `NgModule` created by an `NgModuleFactory`.
5167
4993
  * Provides access to the `NgModule` instance and related objects.
@@ -5373,78 +5199,6 @@ export declare class NgZone {
5373
5199
  */
5374
5200
  export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
5375
5201
 
5376
- declare interface NodeCheckFn {
5377
- (view: ViewData, nodeIndex: number, argStyle: ɵArgumentType.Dynamic, values: any[]): any;
5378
- (view: ViewData, nodeIndex: number, argStyle: ɵArgumentType.Inline, v0?: any, v1?: any, v2?: any, v3?: any, v4?: any, v5?: any, v6?: any, v7?: any, v8?: any, v9?: any): any;
5379
- }
5380
-
5381
- /**
5382
- * Node instance data.
5383
- *
5384
- * We have a separate type per NodeType to save memory
5385
- * (TextData | ElementData | ProviderData | PureExpressionData | QueryList<any>)
5386
- *
5387
- * To keep our code monomorphic,
5388
- * we prohibit using `NodeData` directly but enforce the use of accessors (`asElementData`, ...).
5389
- * This way, no usage site can get a `NodeData` from view.nodes and then use it for different
5390
- * purposes.
5391
- */
5392
- declare class NodeData {
5393
- private __brand;
5394
- }
5395
-
5396
- /**
5397
- * A node definition in the view.
5398
- *
5399
- * Note: We use one type for all nodes so that loops that loop over all nodes
5400
- * of a ViewDefinition stay monomorphic!
5401
- */
5402
- declare interface NodeDef {
5403
- flags: ɵNodeFlags;
5404
- nodeIndex: number;
5405
- checkIndex: number;
5406
- parent: NodeDef | null;
5407
- renderParent: NodeDef | null;
5408
- /** this is checked against NgContentDef.index to find matched nodes */
5409
- ngContentIndex: number | null;
5410
- /** number of transitive children */
5411
- childCount: number;
5412
- /** aggregated NodeFlags for all transitive children (does not include self) **/
5413
- childFlags: ɵNodeFlags;
5414
- /** aggregated NodeFlags for all direct children (does not include self) **/
5415
- directChildFlags: ɵNodeFlags;
5416
- bindingIndex: number;
5417
- bindings: BindingDef[];
5418
- bindingFlags: ɵBindingFlags;
5419
- outputIndex: number;
5420
- outputs: OutputDef[];
5421
- /**
5422
- * references that the user placed on the element
5423
- */
5424
- references: {
5425
- [refId: string]: ɵQueryValueType;
5426
- };
5427
- /**
5428
- * ids and value types of all queries that are matched by this node.
5429
- */
5430
- matchedQueries: {
5431
- [queryId: number]: ɵQueryValueType;
5432
- };
5433
- /** Binary or of all matched query ids of this node. */
5434
- matchedQueryIds: number;
5435
- /**
5436
- * Binary or of all query ids that are matched by one of the children.
5437
- * This includes query ids from templates as well.
5438
- * Used as a bloom filter.
5439
- */
5440
- childMatchedQueries: number;
5441
- element: ElementDef | null;
5442
- provider: ProviderDef | null;
5443
- text: TextDef | null;
5444
- query: QueryDef | null;
5445
- ngContent: NgContentDef | null;
5446
- }
5447
-
5448
5202
  declare interface NodeInjectorDebug {
5449
5203
  /**
5450
5204
  * Instance bloom. Does the current injector have a provider with a given bloom mask.
@@ -5468,15 +5222,6 @@ declare interface NodeInjectorDebug {
5468
5222
  parentInjectorIndex: number;
5469
5223
  }
5470
5224
 
5471
- /**
5472
- * Function to call console.error at the right source location. This is an indirection
5473
- * via another function as browser will log the location that actually called
5474
- * `console.error`.
5475
- */
5476
- declare interface NodeLogger {
5477
- (): () => void;
5478
- }
5479
-
5480
5225
  /**
5481
5226
  * Object Oriented style of API needed to create elements and text nodes.
5482
5227
  *
@@ -5663,18 +5408,6 @@ export declare interface OutputDecorator {
5663
5408
  new (bindingPropertyName?: string): any;
5664
5409
  }
5665
5410
 
5666
- declare interface OutputDef {
5667
- type: OutputType;
5668
- target: 'window' | 'document' | 'body' | 'component' | null;
5669
- eventName: string;
5670
- propName: string | null;
5671
- }
5672
-
5673
- declare const enum OutputType {
5674
- ElementOutput = 0,
5675
- DirectiveOutput = 1
5676
- }
5677
-
5678
5411
  /**
5679
5412
  * A [DI token](guide/glossary#di-token "DI token definition") that indicates the root directory of
5680
5413
  * the application
@@ -6036,20 +5769,6 @@ declare type PropertyAliasValue = (number | string)[];
6036
5769
  */
6037
5770
  export declare type Provider = TypeProvider | ValueProvider | ClassProvider | ConstructorProvider | ExistingProvider | FactoryProvider | any[];
6038
5771
 
6039
- declare interface ProviderDef {
6040
- token: any;
6041
- value: any;
6042
- deps: DepDef[];
6043
- }
6044
-
6045
- declare interface ProviderOverride {
6046
- token: any;
6047
- flags: ɵNodeFlags;
6048
- value: any;
6049
- deps: ([ɵDepFlags, any] | any)[];
6050
- deprecatedBehavior: boolean;
6051
- }
6052
-
6053
5772
  /**
6054
5773
  * @description
6055
5774
  *
@@ -6101,17 +5820,6 @@ export declare interface Query {
6101
5820
  export declare abstract class Query {
6102
5821
  }
6103
5822
 
6104
- declare interface QueryBindingDef {
6105
- propName: string;
6106
- bindingType: ɵQueryBindingType;
6107
- }
6108
-
6109
- declare interface QueryDef {
6110
- id: number;
6111
- filterId: number;
6112
- bindings: QueryBindingDef[];
6113
- }
6114
-
6115
5823
  /**
6116
5824
  * A set of flags to be used with Queries.
6117
5825
  *
@@ -6476,6 +6184,8 @@ declare class ReflectiveDependency {
6476
6184
  * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`
6477
6185
  * resolve all of the object's dependencies automatically.
6478
6186
  *
6187
+ * TODO: delete in v14.
6188
+ *
6479
6189
  * @deprecated from v5 - slow and brings in a lot of code, Use `Injector.create` instead.
6480
6190
  * @publicApi
6481
6191
  */
@@ -7152,21 +6862,40 @@ declare const enum RootContextFlags {
7152
6862
  FlushPlayers = 2
7153
6863
  }
7154
6864
 
7155
- declare interface RootData {
7156
- injector: Injector;
7157
- ngModule: NgModuleRef<any>;
7158
- projectableNodes: any[][];
7159
- selectorOrNode: any;
7160
- renderer: Renderer2;
7161
- rendererFactory: RendererFactory2;
7162
- errorHandler: ErrorHandler;
7163
- sanitizer: Sanitizer;
7164
- }
7165
-
7166
6865
  declare interface RText extends RNode {
7167
6866
  textContent: string | null;
7168
6867
  }
7169
6868
 
6869
+
6870
+ /**
6871
+ * The list of error codes used in runtime code of the `core` package.
6872
+ * Reserved error code range: 100-999.
6873
+ *
6874
+ * Note: the minus sign denotes the fact that a particular code has a detailed guide on
6875
+ * angular.io. This extra annotation is needed to avoid introducing a separate set to store
6876
+ * error codes which have guides, which might leak into runtime code.
6877
+ *
6878
+ * Full list of available error guides can be found at https://angular.io/errors.
6879
+ */
6880
+ declare const enum RuntimeErrorCode {
6881
+ EXPRESSION_CHANGED_AFTER_CHECKED = -100,
6882
+ RECURSIVE_APPLICATION_REF_TICK = 101,
6883
+ CYCLIC_DI_DEPENDENCY = -200,
6884
+ PROVIDER_NOT_FOUND = -201,
6885
+ MULTIPLE_COMPONENTS_MATCH = -300,
6886
+ EXPORT_NOT_FOUND = -301,
6887
+ PIPE_NOT_FOUND = -302,
6888
+ UNKNOWN_BINDING = 303,
6889
+ UNKNOWN_ELEMENT = 304,
6890
+ TEMPLATE_STRUCTURE_ERROR = 305,
6891
+ MULTIPLE_PLATFORMS = 400,
6892
+ PLATFORM_NOT_FOUND = 401,
6893
+ ERROR_HANDLER_NOT_FOUND = 402,
6894
+ BOOTSTRAP_COMPONENTS_NOT_FOUND = 403,
6895
+ ALREADY_DESTROYED_PLATFORM = 404,
6896
+ ASYNC_INITIALIZERS_STILL_RUNNING = 405
6897
+ }
6898
+
7170
6899
  declare const SANITIZER = 12;
7171
6900
 
7172
6901
  /**
@@ -7568,7 +7297,7 @@ export declare abstract class TemplateRef<C> {
7568
7297
  * data-binding and injection context from the original location.
7569
7298
  *
7570
7299
  */
7571
- abstract get elementRef(): ElementRef;
7300
+ abstract readonly elementRef: ElementRef;
7572
7301
  /**
7573
7302
  * Instantiates an embedded view based on this template,
7574
7303
  * and attaches it to the view container.
@@ -7684,10 +7413,6 @@ export declare class TestabilityRegistry {
7684
7413
  static ɵprov: i0.ɵɵInjectableDeclaration<TestabilityRegistry>;
7685
7414
  }
7686
7415
 
7687
- declare interface TextDef {
7688
- prefix: string;
7689
- }
7690
-
7691
7416
  /**
7692
7417
  * Store information for the i18n translation block.
7693
7418
  */
@@ -9349,34 +9074,10 @@ export declare abstract class ViewContainerRef {
9349
9074
  abstract detach(index?: number): ViewRef | null;
9350
9075
  }
9351
9076
 
9352
- /**
9353
- * View instance data.
9354
- * Attention: Adding fields to this is performance sensitive!
9355
- */
9356
- declare interface ViewData {
9357
- def: ɵViewDefinition;
9358
- root: RootData;
9359
- renderer: Renderer2;
9360
- parentNodeDef: NodeDef | null;
9361
- parent: ViewData | null;
9362
- viewContainerParent: ViewData | null;
9363
- component: any;
9364
- context: any;
9365
- nodes: {
9366
- [key: number]: NodeData;
9367
- };
9368
- state: ViewState;
9369
- oldValues: any[];
9370
- disposables: DisposableFn[] | null;
9371
- initIndex: number;
9372
- }
9373
-
9374
- declare interface ViewDefinitionFactory extends DefinitionFactory<ɵViewDefinition> {
9375
- }
9376
-
9377
9077
 
9378
9078
  /**
9379
- * Defines template and style encapsulation options available for Component's {@link Component}.
9079
+ * Defines the CSS styles encapsulation policies for the {@link Component} decorator's
9080
+ * `encapsulation` option.
9380
9081
  *
9381
9082
  * See {@link Component#encapsulation encapsulation}.
9382
9083
  *
@@ -9389,24 +9090,23 @@ declare interface ViewDefinitionFactory extends DefinitionFactory<ɵViewDefiniti
9389
9090
  */
9390
9091
  export declare enum ViewEncapsulation {
9391
9092
  /**
9392
- * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host
9393
- * Element and pre-processing the style rules provided via {@link Component#styles styles} or
9394
- * {@link Component#styleUrls styleUrls}, and adding the new Host Element attribute to all
9395
- * selectors.
9093
+ * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the
9094
+ * component's host element and applying the same attribute to all the CSS selectors provided
9095
+ * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.
9396
9096
  *
9397
9097
  * This is the default option.
9398
9098
  */
9399
9099
  Emulated = 0,
9400
9100
  /**
9401
- * Don't provide any template or style encapsulation.
9101
+ * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided
9102
+ * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable
9103
+ * to any HTML element of the application regardless of their host Component.
9402
9104
  */
9403
9105
  None = 2,
9404
9106
  /**
9405
- * Use Shadow DOM to encapsulate styles.
9406
- *
9407
- * For the DOM this means using modern [Shadow
9408
- * DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM) and
9409
- * creating a ShadowRoot for Component's Host Element.
9107
+ * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates
9108
+ * a ShadowRoot for the component's host element which is then used to encapsulate
9109
+ * all the Component's styling.
9410
9110
  */
9411
9111
  ShadowDom = 3
9412
9112
  }
@@ -9420,10 +9120,6 @@ declare enum ViewEncapsulation_2 {
9420
9120
  declare interface viewEngine_ChangeDetectorRef_interface extends ChangeDetectorRef {
9421
9121
  }
9422
9122
 
9423
- declare interface ViewHandleEventFn {
9424
- (view: ViewData, nodeIndex: number, eventName: string, event: any): boolean;
9425
- }
9426
-
9427
9123
  /**
9428
9124
  * Definition of what a view queries function should look like.
9429
9125
  */
@@ -9465,32 +9161,6 @@ declare interface ViewRefTracker {
9465
9161
  detachView(viewRef: ViewRef): void;
9466
9162
  }
9467
9163
 
9468
- /**
9469
- * Bitmask of states
9470
- */
9471
- declare const enum ViewState {
9472
- BeforeFirstCheck = 1,
9473
- FirstCheck = 2,
9474
- Attached = 4,
9475
- ChecksEnabled = 8,
9476
- IsProjectedView = 16,
9477
- CheckProjectedView = 32,
9478
- CheckProjectedViews = 64,
9479
- Destroyed = 128,
9480
- InitState_Mask = 1792,
9481
- InitState_BeforeInit = 0,
9482
- InitState_CallingOnInit = 256,
9483
- InitState_CallingAfterContentInit = 512,
9484
- InitState_CallingAfterViewInit = 768,
9485
- InitState_AfterInit = 1024,
9486
- CatDetectChanges = 12,
9487
- CatInit = 13
9488
- }
9489
-
9490
- declare interface ViewUpdateFn {
9491
- (check: NodeCheckFn, view: ViewData): void;
9492
- }
9493
-
9494
9164
  /**
9495
9165
  * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
9496
9166
  * the DOM in a browser environment.
@@ -9514,8 +9184,6 @@ export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBy
9514
9184
 
9515
9185
  export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType): boolean;
9516
9186
 
9517
- export declare function ɵand(flags: ɵNodeFlags, matchedQueriesDsl: null | [string | number, ɵQueryValueType][], ngContentIndex: null | number, childCount: number, handleEvent?: null | ElementHandleEventFn, templateFactory?: ViewDefinitionFactory): NodeDef;
9518
-
9519
9187
  /**
9520
9188
  * Providers that generate a random `APP_ID_TOKEN`.
9521
9189
  * @publicApi
@@ -9526,11 +9194,6 @@ export declare const ɵAPP_ID_RANDOM_PROVIDER: {
9526
9194
  deps: any[];
9527
9195
  };
9528
9196
 
9529
- export declare const enum ɵArgumentType {
9530
- Inline = 0,
9531
- Dynamic = 1
9532
- }
9533
-
9534
9197
  /**
9535
9198
  * A set of marker values to be used in the attributes arrays. These markers indicate that some
9536
9199
  * items are not regular attributes and the processing should be adapted accordingly.
@@ -9659,17 +9322,6 @@ export declare const enum ɵAttributeMarker {
9659
9322
  I18n = 6
9660
9323
  }
9661
9324
 
9662
- export declare const enum ɵBindingFlags {
9663
- TypeElementAttribute = 1,
9664
- TypeElementClass = 2,
9665
- TypeElementStyle = 4,
9666
- TypeProperty = 8,
9667
- SyntheticProperty = 16,
9668
- SyntheticHostProperty = 32,
9669
- CatSyntheticProperty = 48,
9670
- Types = 15
9671
- }
9672
-
9673
9325
  /**
9674
9326
  * Mark `html` string as trusted.
9675
9327
  *
@@ -9734,12 +9386,6 @@ export declare const enum ɵBypassType {
9734
9386
  Style = "Style"
9735
9387
  }
9736
9388
 
9737
- export declare function ɵccf(selector: string, componentType: Type<any>, viewDefFactory: ViewDefinitionFactory, inputs: {
9738
- [propName: string]: string;
9739
- } | null, outputs: {
9740
- [propName: string]: string;
9741
- }, ngContentSelectors: string[]): ComponentFactory<any>;
9742
-
9743
9389
  /**
9744
9390
  * Defines the possible states of the default change detector.
9745
9391
  * @see `ChangeDetectorRef`
@@ -9777,22 +9423,8 @@ export declare enum ɵChangeDetectorStatus {
9777
9423
  Destroyed = 5
9778
9424
  }
9779
9425
 
9780
- export declare function ɵclearOverrides(): void;
9781
-
9782
9426
  export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
9783
9427
 
9784
- export declare function ɵcmf(ngModuleType: Type<any>, bootstrapComponents: Type<any>[], defFactory: NgModuleDefinitionFactory): NgModuleFactory<any>;
9785
-
9786
- export declare class ɵCodegenComponentFactoryResolver implements ComponentFactoryResolver {
9787
- private _parent;
9788
- private _ngModule;
9789
- private _factories;
9790
- constructor(factories: ComponentFactory<any>[], _parent: ComponentFactoryResolver, _ngModule: NgModuleRef<any>);
9791
- resolveComponentFactory<T>(component: {
9792
- new (...args: any[]): T;
9793
- }): ComponentFactory<T>;
9794
- }
9795
-
9796
9428
  /**
9797
9429
  * Compile an Angular component according to its decorator metadata, and patch the resulting
9798
9430
  * component def (ɵcmp) onto the component type.
@@ -9828,18 +9460,10 @@ export declare function ɵcompileNgModule(moduleType: Type<any>, ngModule?: NgMo
9828
9460
  */
9829
9461
  export declare function ɵcompileNgModuleDefs(moduleType: ɵNgModuleType, ngModule: NgModule, allowDuplicateDeclarationsInRoot?: boolean): void;
9830
9462
 
9831
- export declare function ɵcompileNgModuleFactory__POST_R3__<M>(injector: Injector, options: CompilerOptions, moduleType: Type<M>): Promise<NgModuleFactory<M>>;
9463
+ export declare function ɵcompileNgModuleFactory<M>(injector: Injector, options: CompilerOptions, moduleType: Type<M>): Promise<NgModuleFactory<M>>;
9832
9464
 
9833
9465
  export declare function ɵcompilePipe(type: Type<any>, meta: Pipe): void;
9834
9466
 
9835
- export declare const ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__: <T>(moduleType: Type<T>) => Promise<ModuleWithComponentFactories<T>>;
9836
-
9837
- export declare const ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__: <T>(moduleType: Type<T>) => ModuleWithComponentFactories<T>;
9838
-
9839
- export declare const ɵCompiler_compileModuleAsync__POST_R3__: <T>(moduleType: Type<T>) => Promise<NgModuleFactory<T>>;
9840
-
9841
- export declare const ɵCompiler_compileModuleSync__POST_R3__: <T>(moduleType: Type<T>) => NgModuleFactory<T>;
9842
-
9843
9467
  /**
9844
9468
  * Runtime link information for Components.
9845
9469
  *
@@ -9953,8 +9577,6 @@ export declare class ɵConsole {
9953
9577
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵConsole>;
9954
9578
  }
9955
9579
 
9956
- export declare function ɵCREATE_ATTRIBUTE_DECORATOR__POST_R3__(): AttributeDecorator;
9957
-
9958
9580
  /**
9959
9581
  * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.
9960
9582
  *
@@ -9962,14 +9584,6 @@ export declare function ɵCREATE_ATTRIBUTE_DECORATOR__POST_R3__(): AttributeDeco
9962
9584
  */
9963
9585
  export declare function ɵcreateInjector(defType: any, parent?: Injector | null, additionalProviders?: StaticProvider[] | null, name?: string): Injector;
9964
9586
 
9965
- export declare function ɵcrt(values: {
9966
- styles: (string | any[])[];
9967
- encapsulation: ViewEncapsulation;
9968
- data: {
9969
- [kind: string]: any[];
9970
- };
9971
- }): RendererType2;
9972
-
9973
9587
  /**
9974
9588
  * A list of CssSelectors.
9975
9589
  *
@@ -9999,17 +9613,6 @@ export declare const ɵdefaultIterableDiffers: IterableDiffers;
9999
9613
 
10000
9614
  export declare const ɵdefaultKeyValueDiffers: KeyValueDiffers;
10001
9615
 
10002
- /**
10003
- * Bitmask for DI flags
10004
- */
10005
- export declare const enum ɵDepFlags {
10006
- None = 0,
10007
- SkipSelf = 1,
10008
- Optional = 2,
10009
- Self = 4,
10010
- Value = 8
10011
- }
10012
-
10013
9616
 
10014
9617
  /**
10015
9618
  * Synchronously perform change detection on a component (and possibly its sub-components).
@@ -10023,12 +9626,6 @@ export declare function ɵdetectChanges(component: {}): void;
10023
9626
 
10024
9627
  export declare function ɵdevModeEqual(a: any, b: any): boolean;
10025
9628
 
10026
- export declare function ɵdid(checkIndex: number, flags: ɵNodeFlags, matchedQueries: null | [string | number, ɵQueryValueType][], childCount: number, ctor: any, deps: ([ɵDepFlags, any] | any)[], props?: null | {
10027
- [name: string]: [number, string];
10028
- }, outputs?: null | {
10029
- [name: string]: string;
10030
- }): NodeDef;
10031
-
10032
9629
  /**
10033
9630
  * Runtime link information for Directives.
10034
9631
  *
@@ -10150,14 +9747,6 @@ export declare interface ɵDirectiveType<T> extends Type<T> {
10150
9747
  ɵfac: unknown;
10151
9748
  }
10152
9749
 
10153
- export declare function ɵeld(checkIndex: number, flags: ɵNodeFlags, matchedQueriesDsl: null | [string | number, ɵQueryValueType][], ngContentIndex: null | number, childCount: number, namespaceAndName: string | null, fixedAttrs?: null | [string, string][], bindings?: null | [ɵBindingFlags, string, string | SecurityContext | null][], outputs?: null | ([string, string])[], handleEvent?: null | ElementHandleEventFn, componentView?: null | ViewDefinitionFactory, componentRendererType?: RendererType2 | null): NodeDef;
10154
-
10155
- export declare const ɵEMPTY_ARRAY: any[];
10156
-
10157
- export declare const ɵEMPTY_MAP: {
10158
- [key: string]: any;
10159
- };
10160
-
10161
9750
  /**
10162
9751
  * Index of each type of locale data from the extra locale data array
10163
9752
  */
@@ -10183,14 +9772,6 @@ export declare function ɵfindLocaleData(locale: string): any;
10183
9772
  */
10184
9773
  export declare function ɵflushModuleScopingQueueAsMuchAsPossible(): void;
10185
9774
 
10186
- export declare function ɵgetComponentViewDefinitionFactory(componentFactory: ComponentFactory<any>): ViewDefinitionFactory;
10187
-
10188
- export declare function ɵgetDebugNode__POST_R3__(nativeNode: Element): DebugElement__POST_R3__;
10189
-
10190
- export declare function ɵgetDebugNode__POST_R3__(nativeNode: Node): DebugNode__POST_R3__;
10191
-
10192
- export declare function ɵgetDebugNode__POST_R3__(nativeNode: null): null;
10193
-
10194
9775
  export declare const ɵgetDebugNodeR2: (nativeNode: any) => DebugNode | null;
10195
9776
 
10196
9777
  /**
@@ -10284,10 +9865,6 @@ export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
10284
9865
  */
10285
9866
  export declare function ɵgetLocalePluralCase(locale: string): (value: number) => number;
10286
9867
 
10287
- export declare function ɵgetModuleFactory__POST_R3__(id: string): NgModuleFactory<any>;
10288
-
10289
- export declare function ɵgetNgModuleById__POST_R3__(id: string): ɵNgModuleType;
10290
-
10291
9868
  export declare function ɵgetSanitizationBypassType(value: any): ɵBypassType | null;
10292
9869
 
10293
9870
  export declare type ɵGetterFn = (obj: any) => any;
@@ -10295,9 +9872,8 @@ export declare type ɵGetterFn = (obj: any) => any;
10295
9872
 
10296
9873
  export declare const ɵglobal: any;
10297
9874
 
10298
- export declare function ɵinitServicesIfNeeded(): void;
10299
-
10300
- export declare function ɵINJECTOR_IMPL__POST_R3__(providers: StaticProvider[], parent: Injector | undefined, name: string): Injector;
9875
+ /** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
9876
+ export declare function ɵinjectChangeDetectorRef(flags: InjectFlags): ChangeDetectorRef;
10301
9877
 
10302
9878
  /**
10303
9879
  * An internal token whose presence in an injector indicates that the injector should treat itself
@@ -10306,11 +9882,7 @@ export declare function ɵINJECTOR_IMPL__POST_R3__(providers: StaticProvider[],
10306
9882
  */
10307
9883
  export declare const ɵINJECTOR_SCOPE: InjectionToken<"root" | "platform" | null>;
10308
9884
 
10309
- export declare function ɵinlineInterpolate(valueCount: number, c0: string, a1: any, c1: string, a2?: any, c2?: string, a3?: any, c3?: string, a4?: any, c4?: string, a5?: any, c5?: string, a6?: any, c6?: string, a7?: any, c7?: string, a8?: any, c8?: string, a9?: any, c9?: string): string;
10310
-
10311
- export declare function ɵinterpolate(valueCount: number, constAndInterp: string[]): string;
10312
-
10313
- export declare function ɵisBoundToModule__POST_R3__<C>(cf: ComponentFactory<C>): boolean;
9885
+ export declare function ɵisBoundToModule<C>(cf: ComponentFactory<C>): boolean;
10314
9886
 
10315
9887
  /**
10316
9888
  * Reports whether a given strategy is currently the default for change detection.
@@ -10344,7 +9916,7 @@ export declare function ɵisPromise<T = any>(obj: any): obj is Promise<T>;
10344
9916
  */
10345
9917
  export declare function ɵisSubscribable(obj: any | Subscribable<any>): obj is Subscribable<any>;
10346
9918
 
10347
- export declare const ɵivyEnabled = false;
9919
+ export declare const ɵivyEnabled = true;
10348
9920
 
10349
9921
  /**
10350
9922
  * The internal view context which is specific to a given DOM element, directive or
@@ -10451,12 +10023,6 @@ export declare function ɵmarkDirty(component: {}): void;
10451
10023
 
10452
10024
  export declare type ɵMethodFn = (obj: any, args: any[]) => any;
10453
10025
 
10454
- export declare function ɵmod(providers: NgModuleProviderDef[]): NgModuleDefinition;
10455
-
10456
- export declare function ɵmpd(flags: ɵNodeFlags, token: any, value: any, deps: ([ɵDepFlags, any] | any)[]): NgModuleProviderDef;
10457
-
10458
- export declare function ɵncd(ngContentIndex: null | number, index: number): NodeDef;
10459
-
10460
10026
 
10461
10027
  export declare const ɵNG_COMP_DEF: string;
10462
10028
 
@@ -10552,54 +10118,6 @@ export declare interface ɵNO_CHANGE {
10552
10118
  /** A special value which designates that a value has not changed. */
10553
10119
  export declare const ɵNO_CHANGE: ɵNO_CHANGE;
10554
10120
 
10555
- /**
10556
- * Bitmask for NodeDef.flags.
10557
- * Naming convention:
10558
- * - `Type...`: flags that are mutually exclusive
10559
- * - `Cat...`: union of multiple `Type...` (short for category).
10560
- */
10561
- export declare const enum ɵNodeFlags {
10562
- None = 0,
10563
- TypeElement = 1,
10564
- TypeText = 2,
10565
- ProjectedTemplate = 4,
10566
- CatRenderNode = 3,
10567
- TypeNgContent = 8,
10568
- TypePipe = 16,
10569
- TypePureArray = 32,
10570
- TypePureObject = 64,
10571
- TypePurePipe = 128,
10572
- CatPureExpression = 224,
10573
- TypeValueProvider = 256,
10574
- TypeClassProvider = 512,
10575
- TypeFactoryProvider = 1024,
10576
- TypeUseExistingProvider = 2048,
10577
- LazyProvider = 4096,
10578
- PrivateProvider = 8192,
10579
- TypeDirective = 16384,
10580
- Component = 32768,
10581
- CatProviderNoDirective = 3840,
10582
- CatProvider = 20224,
10583
- OnInit = 65536,
10584
- OnDestroy = 131072,
10585
- DoCheck = 262144,
10586
- OnChanges = 524288,
10587
- AfterContentInit = 1048576,
10588
- AfterContentChecked = 2097152,
10589
- AfterViewInit = 4194304,
10590
- AfterViewChecked = 8388608,
10591
- EmbeddedViews = 16777216,
10592
- ComponentView = 33554432,
10593
- TypeContentQuery = 67108864,
10594
- TypeViewQuery = 134217728,
10595
- StaticQuery = 268435456,
10596
- DynamicQuery = 536870912,
10597
- TypeNgModule = 1073741824,
10598
- EmitDistinctChangesOnly = -2147483648,
10599
- CatQuery = 201326592,
10600
- Types = 201347067
10601
- }
10602
-
10603
10121
  /**
10604
10122
  * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls
10605
10123
  * to framework to perform rendering.
@@ -10633,22 +10151,12 @@ export declare function ɵnoSideEffects<T>(fn: () => T): T;
10633
10151
 
10634
10152
  export declare const ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR: {};
10635
10153
 
10636
- export declare function ɵnov(view: ViewData, index: number): any;
10637
-
10638
- export declare function ɵoverrideComponentView(comp: Type<any>, componentFactory: ComponentFactory<any>): void;
10639
-
10640
- export declare function ɵoverrideProvider(override: ProviderOverride): void;
10641
-
10642
- export declare function ɵpad(checkIndex: number, argCount: number): NodeDef;
10643
-
10644
10154
  /**
10645
10155
  * Patch the definition of a component with directives and pipes from the compilation scope of
10646
10156
  * a given module.
10647
10157
  */
10648
10158
  export declare function ɵpatchComponentDefWithScope<C>(componentDef: ɵComponentDef<C>, transitiveScopes: ɵNgModuleTransitiveScopes): void;
10649
10159
 
10650
- export declare function ɵpid(flags: ɵNodeFlags, ctor: any, deps: ([ɵDepFlags, any] | any)[]): NodeDef;
10651
-
10652
10160
  /**
10653
10161
  * Runtime link information for Pipes.
10654
10162
  *
@@ -10748,14 +10256,6 @@ export declare const enum ɵPlayState {
10748
10256
  Destroyed = 200
10749
10257
  }
10750
10258
 
10751
- export declare function ɵpod(checkIndex: number, propToIndex: {
10752
- [p: string]: number;
10753
- }): NodeDef;
10754
-
10755
- export declare function ɵppd(checkIndex: number, argCount: number): NodeDef;
10756
-
10757
- export declare function ɵprd(flags: ɵNodeFlags, matchedQueries: null | [string | number, ɵQueryValueType][], token: any, value: any, deps: ([ɵDepFlags, any] | any)[]): NodeDef;
10758
-
10759
10259
  /**
10760
10260
  * Profiler function which the runtime will invoke before and after user code.
10761
10261
  */
@@ -10825,23 +10325,6 @@ export declare function ɵpublishDefaultGlobalUtils(): void;
10825
10325
  */
10826
10326
  export declare function ɵpublishGlobalUtil(name: string, fn: Function): void;
10827
10327
 
10828
- export declare function ɵqud(flags: ɵNodeFlags, id: number, bindings: {
10829
- [propName: string]: ɵQueryBindingType;
10830
- }): NodeDef;
10831
-
10832
- export declare const enum ɵQueryBindingType {
10833
- First = 0,
10834
- All = 1
10835
- }
10836
-
10837
- export declare const enum ɵQueryValueType {
10838
- ElementRef = 0,
10839
- RenderElement = 1,
10840
- TemplateRef = 2,
10841
- ViewContainerRef = 3,
10842
- Provider = 4
10843
- }
10844
-
10845
10328
  export declare class ɵReflectionCapabilities implements PlatformReflectionCapabilities {
10846
10329
  private _reflect;
10847
10330
  constructor(reflect?: any);
@@ -10880,12 +10363,6 @@ export declare class ɵReflectionCapabilities implements PlatformReflectionCapab
10880
10363
  */
10881
10364
  export declare function ɵregisterLocaleData(data: any, localeId?: string | any, extraData?: any): void;
10882
10365
 
10883
- /**
10884
- * Registers a loaded module. Should only be called from generated NgModuleFactory code.
10885
- * @publicApi
10886
- */
10887
- export declare function ɵregisterModuleFactory(id: string, factory: NgModuleFactory<any>): void;
10888
-
10889
10366
  export declare function ɵregisterNgModuleType(ngModuleType: ɵNgModuleType): void;
10890
10367
 
10891
10368
  /**
@@ -11018,22 +10495,9 @@ export declare function ɵresolveComponentResources(resourceResolver: (url: stri
11018
10495
  text(): Promise<string>;
11019
10496
  }>)): Promise<void>;
11020
10497
 
11021
- export declare class ɵRuntimeError extends Error {
11022
- code: ɵRuntimeErrorCode;
11023
- constructor(code: ɵRuntimeErrorCode, message: string);
11024
- }
11025
-
11026
-
11027
- export declare const enum ɵRuntimeErrorCode {
11028
- EXPRESSION_CHANGED_AFTER_CHECKED = "100",
11029
- CYCLIC_DI_DEPENDENCY = "200",
11030
- PROVIDER_NOT_FOUND = "201",
11031
- MULTIPLE_COMPONENTS_MATCH = "300",
11032
- EXPORT_NOT_FOUND = "301",
11033
- PIPE_NOT_FOUND = "302",
11034
- UNKNOWN_BINDING = "303",
11035
- UNKNOWN_ELEMENT = "304",
11036
- TEMPLATE_STRUCTURE_ERROR = "305"
10498
+ export declare class ɵRuntimeError<T = RuntimeErrorCode> extends Error {
10499
+ code: T;
10500
+ constructor(code: T, message: string);
11037
10501
  }
11038
10502
 
11039
10503
  /**
@@ -11128,31 +10592,6 @@ export declare function ɵstore<T>(tView: TView, lView: LView, index: number, va
11128
10592
 
11129
10593
  export declare function ɵstringify(token: any): string;
11130
10594
 
11131
- export declare const ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__: typeof injectChangeDetectorRef;
11132
-
11133
- export declare const ɵSWITCH_COMPILE_COMPONENT__POST_R3__: typeof ɵcompileComponent;
11134
-
11135
- export declare const ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__: typeof ɵcompileDirective;
11136
-
11137
- export declare const ɵSWITCH_COMPILE_INJECTABLE__POST_R3__: typeof compileInjectable;
11138
-
11139
- export declare const ɵSWITCH_COMPILE_NGMODULE__POST_R3__: typeof ɵcompileNgModule;
11140
-
11141
- export declare const ɵSWITCH_COMPILE_PIPE__POST_R3__: typeof ɵcompilePipe;
11142
-
11143
- export declare const ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__: typeof injectElementRef;
11144
-
11145
-
11146
- export declare const ɵSWITCH_IVY_ENABLED__POST_R3__ = true;
11147
-
11148
- export declare const ɵSWITCH_RENDERER2_FACTORY__POST_R3__: typeof injectRenderer2;
11149
-
11150
- export declare const ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__: typeof injectTemplateRef;
11151
-
11152
- export declare const ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__: typeof injectViewContainerRef;
11153
-
11154
- export declare function ɵted(checkIndex: number, ngContentIndex: number | null, staticText: string[]): NodeDef;
11155
-
11156
10595
  /**
11157
10596
  * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.
11158
10597
  *
@@ -11173,40 +10612,6 @@ export declare function ɵunwrapSafeValue(value: ɵSafeValue): string;
11173
10612
 
11174
10613
  export declare function ɵunwrapSafeValue<T>(value: T): T;
11175
10614
 
11176
- export declare function ɵvid(flags: ɵViewFlags, nodes: NodeDef[], updateDirectives?: null | ViewUpdateFn, updateRenderer?: null | ViewUpdateFn): ɵViewDefinition;
11177
-
11178
- export declare interface ɵViewDefinition extends Definition<ViewDefinitionFactory> {
11179
- flags: ɵViewFlags;
11180
- updateDirectives: ViewUpdateFn;
11181
- updateRenderer: ViewUpdateFn;
11182
- handleEvent: ViewHandleEventFn;
11183
- /**
11184
- * Order: Depth first.
11185
- * Especially providers are before elements / anchors.
11186
- */
11187
- nodes: NodeDef[];
11188
- /** aggregated NodeFlags for all nodes **/
11189
- nodeFlags: ɵNodeFlags;
11190
- rootNodeFlags: ɵNodeFlags;
11191
- lastRenderRootNode: NodeDef | null;
11192
- bindingCount: number;
11193
- outputCount: number;
11194
- /**
11195
- * Binary or of all query ids that are matched by one of the nodes.
11196
- * This includes query ids from templates as well.
11197
- * Used as a bloom filter.
11198
- */
11199
- nodeMatchedQueries: number;
11200
- }
11201
-
11202
- /**
11203
- * Bitmask for ViewDefinition.flags.
11204
- */
11205
- export declare const enum ɵViewFlags {
11206
- None = 0,
11207
- OnPush = 2
11208
- }
11209
-
11210
10615
  export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef, viewEngine_ChangeDetectorRef_interface {
11211
10616
  /**
11212
10617
  * This represents the `LView` associated with the point where `ChangeDetectorRef` was