@angular/core 14.0.0-next.1 → 14.0.0-next.12
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/core.d.ts +172 -126
- package/esm2020/src/application_init.mjs +4 -3
- package/esm2020/src/application_module.mjs +5 -104
- package/esm2020/src/application_ref.mjs +6 -24
- package/esm2020/src/application_tokens.mjs +14 -2
- package/esm2020/src/change_detection/change_detection.mjs +2 -3
- package/esm2020/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2020/src/core.mjs +2 -2
- package/esm2020/src/core_private_export.mjs +2 -1
- package/esm2020/src/core_render3_private_export.mjs +4 -3
- package/esm2020/src/debug/debug_node.mjs +137 -53
- package/esm2020/src/di/injector_compatibility.mjs +2 -2
- package/esm2020/src/di/reflective_provider.mjs +4 -4
- package/esm2020/src/i18n/tokens.mjs +39 -3
- package/esm2020/src/linker/compiler.mjs +4 -3
- package/esm2020/src/linker/ng_module_factory_loader.mjs +2 -2
- package/esm2020/src/linker/ng_module_registration.mjs +55 -0
- package/esm2020/src/linker/template_ref.mjs +3 -3
- package/esm2020/src/linker/view_container_ref.mjs +35 -8
- package/esm2020/src/reflection/platform_reflection_capabilities.mjs +1 -1
- package/esm2020/src/reflection/reflection_capabilities.mjs +1 -37
- package/esm2020/src/render3/component.mjs +3 -3
- package/esm2020/src/render3/component_ref.mjs +22 -26
- package/esm2020/src/render3/context_discovery.mjs +34 -30
- package/esm2020/src/render3/definition.mjs +3 -1
- package/esm2020/src/render3/di.mjs +177 -97
- package/esm2020/src/render3/hooks.mjs +3 -3
- package/esm2020/src/render3/i18n/i18n_parse.mjs +3 -3
- package/esm2020/src/render3/index.mjs +2 -2
- package/esm2020/src/render3/instructions/element.mjs +28 -7
- package/esm2020/src/render3/instructions/element_container.mjs +7 -1
- package/esm2020/src/render3/instructions/lview_debug.mjs +7 -4
- package/esm2020/src/render3/instructions/shared.mjs +50 -21
- package/esm2020/src/render3/interfaces/context.mjs +35 -2
- package/esm2020/src/render3/interfaces/definition.mjs +1 -1
- package/esm2020/src/render3/interfaces/injector.mjs +1 -1
- package/esm2020/src/render3/interfaces/lview_tracking.mjs +33 -0
- package/esm2020/src/render3/interfaces/renderer_dom.mjs +1 -1
- package/esm2020/src/render3/interfaces/view.mjs +4 -2
- package/esm2020/src/render3/jit/directive.mjs +5 -2
- package/esm2020/src/render3/jit/environment.mjs +4 -1
- package/esm2020/src/render3/jit/module.mjs +7 -1
- package/esm2020/src/render3/jit/module_patch.mjs +11 -0
- package/esm2020/src/render3/jit/pipe.mjs +5 -2
- package/esm2020/src/render3/ng_module_ref.mjs +1 -29
- package/esm2020/src/render3/node_manipulation.mjs +12 -3
- package/esm2020/src/render3/state.mjs +16 -2
- package/esm2020/src/render3/styling/styling_parser.mjs +2 -2
- package/esm2020/src/render3/util/discovery_utils.mjs +33 -22
- package/esm2020/src/util/coercion.mjs +12 -0
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/fake_async.mjs +3 -2
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/r3_test_bed.mjs +8 -2
- package/fesm2015/core.mjs +784 -591
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +10 -3
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +784 -584
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +10 -3
- package/fesm2020/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/migrations/entry-components/util.js +2 -2
- package/schematics/migrations/path-match-type/index.d.ts +11 -0
- package/schematics/migrations/path-match-type/index.js +95 -0
- package/schematics/migrations/path-match-type/transform.d.ts +19 -0
- package/schematics/migrations/path-match-type/transform.js +48 -0
- package/schematics/migrations/path-match-type/update_recorder.d.ts +18 -0
- package/schematics/migrations/path-match-type/update_recorder.js +20 -0
- package/schematics/migrations/path-match-type/util.d.ts +11 -0
- package/schematics/migrations/path-match-type/util.js +106 -0
- package/schematics/migrations/typed-forms/index.d.ts +1 -5
- package/schematics/migrations/typed-forms/index.js +12 -34
- package/schematics/migrations/typed-forms/util.d.ts +8 -10
- package/schematics/migrations/typed-forms/util.js +99 -47
- package/schematics/migrations.json +8 -3
- package/schematics/utils/import_manager.js +11 -22
- package/schematics/utils/typescript/imports.js +5 -9
- package/schematics/utils/typescript/parse_tsconfig.js +6 -2
- package/schematics/utils/typescript/symbol.js +4 -3
- package/testing/testing.d.ts +3 -2
- package/esm2020/src/di/util.mjs +0 -51
- package/esm2020/src/linker/ng_module_factory_registration.mjs +0 -59
- package/esm2020/src/reflection/reflection.mjs +0 -16
- package/esm2020/src/reflection/reflector.mjs +0 -56
- package/esm2020/src/reflection/types.mjs +0 -9
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.12
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -166,6 +166,13 @@ export declare interface AfterViewInit {
|
|
|
166
166
|
*/
|
|
167
167
|
export declare const ANALYZE_FOR_ENTRY_COMPONENTS: InjectionToken<any>;
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* A [DI token](guide/glossary#di-token "DI token definition") that indicates which animations
|
|
171
|
+
* module has been loaded.
|
|
172
|
+
* @publicApi
|
|
173
|
+
*/
|
|
174
|
+
export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
|
|
175
|
+
|
|
169
176
|
/**
|
|
170
177
|
* A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
|
|
171
178
|
* be called for every component that is bootstrapped.
|
|
@@ -283,12 +290,9 @@ export declare class ApplicationInitStatus {
|
|
|
283
290
|
}
|
|
284
291
|
|
|
285
292
|
/**
|
|
286
|
-
* Configures the root injector for an app with
|
|
287
|
-
* providers of `@angular/core` dependencies that `ApplicationRef` needs
|
|
288
|
-
* to bootstrap components.
|
|
289
|
-
*
|
|
290
293
|
* Re-exported by `BrowserModule`, which is included automatically in the root
|
|
291
|
-
* `AppModule` when you create a new app with the CLI `new` command.
|
|
294
|
+
* `AppModule` when you create a new app with the CLI `new` command. Eagerly injects
|
|
295
|
+
* `ApplicationRef` to instantiate it.
|
|
292
296
|
*
|
|
293
297
|
* @publicApi
|
|
294
298
|
*/
|
|
@@ -1702,13 +1706,18 @@ export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
|
|
|
1702
1706
|
* @see [Basics of testing components](guide/testing-components-basics)
|
|
1703
1707
|
* @see [Testing utility APIs](guide/testing-utility-apis)
|
|
1704
1708
|
*/
|
|
1705
|
-
export declare
|
|
1709
|
+
export declare class DebugElement extends DebugNode {
|
|
1710
|
+
constructor(nativeNode: Element);
|
|
1711
|
+
/**
|
|
1712
|
+
* The underlying DOM element at the root of the component.
|
|
1713
|
+
*/
|
|
1714
|
+
get nativeElement(): any;
|
|
1706
1715
|
/**
|
|
1707
1716
|
* The element tag name, if it is an element.
|
|
1708
1717
|
*/
|
|
1709
|
-
|
|
1718
|
+
get name(): string;
|
|
1710
1719
|
/**
|
|
1711
|
-
*
|
|
1720
|
+
* Gets a map of property names to property values for an element.
|
|
1712
1721
|
*
|
|
1713
1722
|
* This map includes:
|
|
1714
1723
|
* - Regular property bindings (e.g. `[id]="id"`)
|
|
@@ -1719,13 +1728,23 @@ export declare interface DebugElement extends DebugNode {
|
|
|
1719
1728
|
* - input property bindings (e.g. `[myCustomInput]="value"`)
|
|
1720
1729
|
* - attribute bindings (e.g. `[attr.role]="menu"`)
|
|
1721
1730
|
*/
|
|
1722
|
-
|
|
1731
|
+
get properties(): {
|
|
1723
1732
|
[key: string]: any;
|
|
1724
1733
|
};
|
|
1725
1734
|
/**
|
|
1726
1735
|
* A map of attribute names to attribute values for an element.
|
|
1727
1736
|
*/
|
|
1728
|
-
|
|
1737
|
+
get attributes(): {
|
|
1738
|
+
[key: string]: string | null;
|
|
1739
|
+
};
|
|
1740
|
+
/**
|
|
1741
|
+
* The inline styles of the DOM element.
|
|
1742
|
+
*
|
|
1743
|
+
* Will be `null` if there is no `style` property on the underlying DOM element.
|
|
1744
|
+
*
|
|
1745
|
+
* @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)
|
|
1746
|
+
*/
|
|
1747
|
+
get styles(): {
|
|
1729
1748
|
[key: string]: string | null;
|
|
1730
1749
|
};
|
|
1731
1750
|
/**
|
|
@@ -1738,33 +1757,19 @@ export declare interface DebugElement extends DebugNode {
|
|
|
1738
1757
|
*
|
|
1739
1758
|
* @see [Element.className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)
|
|
1740
1759
|
*/
|
|
1741
|
-
|
|
1760
|
+
get classes(): {
|
|
1742
1761
|
[key: string]: boolean;
|
|
1743
1762
|
};
|
|
1744
|
-
/**
|
|
1745
|
-
* The inline styles of the DOM element.
|
|
1746
|
-
*
|
|
1747
|
-
* Will be `null` if there is no `style` property on the underlying DOM element.
|
|
1748
|
-
*
|
|
1749
|
-
* @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)
|
|
1750
|
-
*/
|
|
1751
|
-
readonly styles: {
|
|
1752
|
-
[key: string]: string | null;
|
|
1753
|
-
};
|
|
1754
1763
|
/**
|
|
1755
1764
|
* The `childNodes` of the DOM element as a `DebugNode` array.
|
|
1756
1765
|
*
|
|
1757
1766
|
* @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)
|
|
1758
1767
|
*/
|
|
1759
|
-
|
|
1760
|
-
/**
|
|
1761
|
-
* The underlying DOM element at the root of the component.
|
|
1762
|
-
*/
|
|
1763
|
-
readonly nativeElement: any;
|
|
1768
|
+
get childNodes(): DebugNode[];
|
|
1764
1769
|
/**
|
|
1765
1770
|
* The immediate `DebugElement` children. Walk the tree by descending through `children`.
|
|
1766
1771
|
*/
|
|
1767
|
-
|
|
1772
|
+
get children(): DebugElement[];
|
|
1768
1773
|
/**
|
|
1769
1774
|
* @returns the first `DebugElement` that matches the predicate at any depth in the subtree.
|
|
1770
1775
|
*/
|
|
@@ -1789,16 +1794,9 @@ export declare interface DebugElement extends DebugNode {
|
|
|
1789
1794
|
*
|
|
1790
1795
|
* @see [Testing components scenarios](guide/testing-components-scenarios#trigger-event-handler)
|
|
1791
1796
|
*/
|
|
1792
|
-
triggerEventHandler(eventName: string, eventObj
|
|
1797
|
+
triggerEventHandler(eventName: string, eventObj?: any): void;
|
|
1793
1798
|
}
|
|
1794
1799
|
|
|
1795
|
-
/**
|
|
1796
|
-
* @publicApi
|
|
1797
|
-
*/
|
|
1798
|
-
export declare const DebugElement: {
|
|
1799
|
-
new (...args: any[]): DebugElement;
|
|
1800
|
-
};
|
|
1801
|
-
|
|
1802
1800
|
/**
|
|
1803
1801
|
* @publicApi
|
|
1804
1802
|
*/
|
|
@@ -1811,28 +1809,24 @@ export declare class DebugEventListener {
|
|
|
1811
1809
|
/**
|
|
1812
1810
|
* @publicApi
|
|
1813
1811
|
*/
|
|
1814
|
-
export declare
|
|
1812
|
+
export declare class DebugNode {
|
|
1815
1813
|
/**
|
|
1816
|
-
* The
|
|
1817
|
-
* properties.
|
|
1814
|
+
* The underlying DOM node.
|
|
1818
1815
|
*/
|
|
1819
|
-
readonly
|
|
1816
|
+
readonly nativeNode: any;
|
|
1817
|
+
constructor(nativeNode: Node);
|
|
1820
1818
|
/**
|
|
1821
1819
|
* The `DebugElement` parent. Will be `null` if this is the root element.
|
|
1822
1820
|
*/
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* The underlying DOM node.
|
|
1826
|
-
*/
|
|
1827
|
-
readonly nativeNode: any;
|
|
1821
|
+
get parent(): DebugElement | null;
|
|
1828
1822
|
/**
|
|
1829
1823
|
* The host dependency injector. For example, the root element's component instance injector.
|
|
1830
1824
|
*/
|
|
1831
|
-
|
|
1825
|
+
get injector(): Injector;
|
|
1832
1826
|
/**
|
|
1833
1827
|
* The element's own component instance, if it has one.
|
|
1834
1828
|
*/
|
|
1835
|
-
|
|
1829
|
+
get componentInstance(): any;
|
|
1836
1830
|
/**
|
|
1837
1831
|
* An object that provides parent context for this element. Often an ancestor component instance
|
|
1838
1832
|
* that governs this element.
|
|
@@ -1841,28 +1835,26 @@ export declare interface DebugNode {
|
|
|
1841
1835
|
* property is the value of the row instance value. For example, the `hero` in `*ngFor="let hero
|
|
1842
1836
|
* of heroes"`.
|
|
1843
1837
|
*/
|
|
1844
|
-
|
|
1838
|
+
get context(): any;
|
|
1839
|
+
/**
|
|
1840
|
+
* The callbacks attached to the component's @Output properties and/or the element's event
|
|
1841
|
+
* properties.
|
|
1842
|
+
*/
|
|
1843
|
+
get listeners(): DebugEventListener[];
|
|
1845
1844
|
/**
|
|
1846
1845
|
* Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local
|
|
1847
1846
|
* variable name.
|
|
1848
1847
|
*/
|
|
1849
|
-
|
|
1848
|
+
get references(): {
|
|
1850
1849
|
[key: string]: any;
|
|
1851
1850
|
};
|
|
1852
1851
|
/**
|
|
1853
1852
|
* This component's injector lookup tokens. Includes the component itself plus the tokens that the
|
|
1854
1853
|
* component lists in its providers metadata.
|
|
1855
1854
|
*/
|
|
1856
|
-
|
|
1855
|
+
get providerTokens(): any[];
|
|
1857
1856
|
}
|
|
1858
1857
|
|
|
1859
|
-
/**
|
|
1860
|
-
* @publicApi
|
|
1861
|
-
*/
|
|
1862
|
-
export declare const DebugNode: {
|
|
1863
|
-
new (...args: any[]): DebugNode;
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
1858
|
/**
|
|
1867
1859
|
* A logical node which comprise into `LView`s.
|
|
1868
1860
|
*
|
|
@@ -2440,6 +2432,8 @@ export declare class ElementRef<T = any> {
|
|
|
2440
2432
|
constructor(nativeElement: T);
|
|
2441
2433
|
}
|
|
2442
2434
|
|
|
2435
|
+
declare const EMBEDDED_VIEW_INJECTOR = 21;
|
|
2436
|
+
|
|
2443
2437
|
/**
|
|
2444
2438
|
* Represents an Angular [view](guide/glossary#view) in a view container.
|
|
2445
2439
|
* An [embedded view](guide/glossary#view-tree) can be referenced from a component
|
|
@@ -2779,7 +2773,7 @@ export declare interface ForwardRefFn {
|
|
|
2779
2773
|
/**
|
|
2780
2774
|
* @publicApi
|
|
2781
2775
|
*/
|
|
2782
|
-
declare
|
|
2776
|
+
declare function getDebugNode(nativeNode: any): DebugNode | null;
|
|
2783
2777
|
export { getDebugNode }
|
|
2784
2778
|
export { getDebugNode as ɵgetDebugNode }
|
|
2785
2779
|
|
|
@@ -3348,6 +3342,8 @@ declare const enum IcuType {
|
|
|
3348
3342
|
plural = 1
|
|
3349
3343
|
}
|
|
3350
3344
|
|
|
3345
|
+
declare const ID = 20;
|
|
3346
|
+
|
|
3351
3347
|
/**
|
|
3352
3348
|
* This array contains information about input properties that
|
|
3353
3349
|
* need to be set once from attribute data. It's ordered by
|
|
@@ -4528,6 +4524,13 @@ declare interface LView extends Array<any> {
|
|
|
4528
4524
|
* are not `Dirty`/`CheckAlways`.
|
|
4529
4525
|
*/
|
|
4530
4526
|
[TRANSPLANTED_VIEWS_TO_REFRESH]: number;
|
|
4527
|
+
/** Unique ID of the view. Used for `__ngContext__` lookups in the `LView` registry. */
|
|
4528
|
+
[ID]: number;
|
|
4529
|
+
/**
|
|
4530
|
+
* Optional injector assigned to embedded views that takes
|
|
4531
|
+
* precedence over the element and module injectors.
|
|
4532
|
+
*/
|
|
4533
|
+
readonly [EMBEDDED_VIEW_INJECTOR]: Injector | null;
|
|
4531
4534
|
}
|
|
4532
4535
|
|
|
4533
4536
|
/**
|
|
@@ -4708,12 +4711,14 @@ declare const enum LViewFlags {
|
|
|
4708
4711
|
* declaration was dirty.
|
|
4709
4712
|
*/
|
|
4710
4713
|
RefreshTransplantedView = 1024,
|
|
4714
|
+
/** Indicates that the view **or any of its ancestors** have an embedded view injector. */
|
|
4715
|
+
HasEmbeddedViewInjector = 2048,
|
|
4711
4716
|
/**
|
|
4712
4717
|
* Index of the current init phase on last 21 bits
|
|
4713
4718
|
*/
|
|
4714
|
-
IndexWithinInitPhaseIncrementer =
|
|
4715
|
-
IndexWithinInitPhaseShift =
|
|
4716
|
-
IndexWithinInitPhaseReset =
|
|
4719
|
+
IndexWithinInitPhaseIncrementer = 4096,
|
|
4720
|
+
IndexWithinInitPhaseShift = 12,
|
|
4721
|
+
IndexWithinInitPhaseReset = 4095
|
|
4717
4722
|
}
|
|
4718
4723
|
|
|
4719
4724
|
/**
|
|
@@ -5592,33 +5597,14 @@ export declare class PlatformRef {
|
|
|
5592
5597
|
private _destroyListeners;
|
|
5593
5598
|
private _destroyed;
|
|
5594
5599
|
/**
|
|
5595
|
-
* Creates an instance of an `@NgModule` for the given platform
|
|
5596
|
-
*
|
|
5597
|
-
* @usageNotes
|
|
5598
|
-
*
|
|
5599
|
-
* The following example creates the NgModule for a browser platform.
|
|
5600
|
-
*
|
|
5601
|
-
* ```typescript
|
|
5602
|
-
* my_module.ts:
|
|
5603
|
-
*
|
|
5604
|
-
* @NgModule({
|
|
5605
|
-
* imports: [BrowserModule]
|
|
5606
|
-
* })
|
|
5607
|
-
* class MyModule {}
|
|
5608
|
-
*
|
|
5609
|
-
* main.ts:
|
|
5610
|
-
* import {MyModuleNgFactory} from './my_module.ngfactory';
|
|
5611
|
-
* import {platformBrowser} from '@angular/platform-browser';
|
|
5612
|
-
*
|
|
5613
|
-
* let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);
|
|
5614
|
-
* ```
|
|
5600
|
+
* Creates an instance of an `@NgModule` for the given platform.
|
|
5615
5601
|
*
|
|
5616
5602
|
* @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function
|
|
5617
5603
|
* argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.
|
|
5618
5604
|
*/
|
|
5619
5605
|
bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>, options?: BootstrapOptions): Promise<NgModuleRef<M>>;
|
|
5620
5606
|
/**
|
|
5621
|
-
* Creates an instance of an `@NgModule` for a given platform
|
|
5607
|
+
* Creates an instance of an `@NgModule` for a given platform.
|
|
5622
5608
|
*
|
|
5623
5609
|
* @usageNotes
|
|
5624
5610
|
* ### Simple Example
|
|
@@ -5655,12 +5641,8 @@ export declare class PlatformRef {
|
|
|
5655
5641
|
}
|
|
5656
5642
|
|
|
5657
5643
|
declare interface PlatformReflectionCapabilities {
|
|
5658
|
-
isReflectionEnabled(): boolean;
|
|
5659
5644
|
factory(type: Type<any>): Function;
|
|
5660
5645
|
hasLifecycleHook(type: any, lcProperty: string): boolean;
|
|
5661
|
-
guards(type: any): {
|
|
5662
|
-
[key: string]: any;
|
|
5663
|
-
};
|
|
5664
5646
|
/**
|
|
5665
5647
|
* Return a list of annotations/types for constructor parameters
|
|
5666
5648
|
*/
|
|
@@ -5675,13 +5657,6 @@ declare interface PlatformReflectionCapabilities {
|
|
|
5675
5657
|
propMetadata(typeOrFunc: Type<any>): {
|
|
5676
5658
|
[key: string]: any[];
|
|
5677
5659
|
};
|
|
5678
|
-
getter(name: string): ɵGetterFn;
|
|
5679
|
-
setter(name: string): ɵSetterFn;
|
|
5680
|
-
method(name: string): ɵMethodFn;
|
|
5681
|
-
importUri(type: Type<any>): string;
|
|
5682
|
-
resourceUri(type: Type<any>): string;
|
|
5683
|
-
resolveIdentifier(name: string, moduleUrl: string, members: string[], runtime: any): any;
|
|
5684
|
-
resolveEnum(enumIdentifier: any, name: string): any;
|
|
5685
5660
|
}
|
|
5686
5661
|
|
|
5687
5662
|
/**
|
|
@@ -6037,6 +6012,7 @@ declare interface R3DeclareDirectiveFacade {
|
|
|
6037
6012
|
exportAs?: string[];
|
|
6038
6013
|
usesInheritance?: boolean;
|
|
6039
6014
|
usesOnChanges?: boolean;
|
|
6015
|
+
isStandalone?: boolean;
|
|
6040
6016
|
}
|
|
6041
6017
|
|
|
6042
6018
|
declare interface R3DeclareFactoryFacade {
|
|
@@ -6458,6 +6434,7 @@ declare interface RElement extends RNode {
|
|
|
6458
6434
|
style: RCssStyleDeclaration;
|
|
6459
6435
|
classList: RDomTokenList;
|
|
6460
6436
|
className: string;
|
|
6437
|
+
tagName: string;
|
|
6461
6438
|
textContent: string | null;
|
|
6462
6439
|
setAttribute(name: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL): void;
|
|
6463
6440
|
removeAttribute(name: string): void;
|
|
@@ -7342,9 +7319,10 @@ export declare abstract class TemplateRef<C> {
|
|
|
7342
7319
|
* and attaches it to the view container.
|
|
7343
7320
|
* @param context The data-binding context of the embedded view, as declared
|
|
7344
7321
|
* in the `<ng-template>` usage.
|
|
7322
|
+
* @param injector Injector to be used within the embedded view.
|
|
7345
7323
|
* @returns The new embedded view object.
|
|
7346
7324
|
*/
|
|
7347
|
-
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
|
7325
|
+
abstract createEmbeddedView(context: C, injector?: Injector): EmbeddedViewRef<C>;
|
|
7348
7326
|
}
|
|
7349
7327
|
|
|
7350
7328
|
/**
|
|
@@ -9022,6 +9000,23 @@ export declare abstract class ViewContainerRef {
|
|
|
9022
9000
|
* @returns The number of views.
|
|
9023
9001
|
*/
|
|
9024
9002
|
abstract get length(): number;
|
|
9003
|
+
/**
|
|
9004
|
+
* Instantiates an embedded view and inserts it
|
|
9005
|
+
* into this container.
|
|
9006
|
+
* @param templateRef The HTML template that defines the view.
|
|
9007
|
+
* @param context The data-binding context of the embedded view, as declared
|
|
9008
|
+
* in the `<ng-template>` usage.
|
|
9009
|
+
* @param options Extra configuration for the created view. Includes:
|
|
9010
|
+
* * index: The 0-based index at which to insert the new view into this container.
|
|
9011
|
+
* If not specified, appends the new view as the last entry.
|
|
9012
|
+
* * injector: Injector to be used within the embedded view.
|
|
9013
|
+
*
|
|
9014
|
+
* @returns The `ViewRef` instance for the newly created view.
|
|
9015
|
+
*/
|
|
9016
|
+
abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, options?: {
|
|
9017
|
+
index?: number;
|
|
9018
|
+
injector?: Injector;
|
|
9019
|
+
}): EmbeddedViewRef<C>;
|
|
9025
9020
|
/**
|
|
9026
9021
|
* Instantiates an embedded view and inserts it
|
|
9027
9022
|
* into this container.
|
|
@@ -9464,6 +9459,10 @@ export declare enum ɵChangeDetectorStatus {
|
|
|
9464
9459
|
|
|
9465
9460
|
export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
|
|
9466
9461
|
|
|
9462
|
+
|
|
9463
|
+
/** Coerces a value (typically a string) to a boolean. */
|
|
9464
|
+
export declare function ɵcoerceToBoolean(value: unknown): boolean;
|
|
9465
|
+
|
|
9467
9466
|
/**
|
|
9468
9467
|
* Compile an Angular component according to its decorator metadata, and patch the resulting
|
|
9469
9468
|
* component def (ɵcmp) onto the component type.
|
|
@@ -9765,6 +9764,10 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
9765
9764
|
* Name under which the directive is exported (for use with local references in template)
|
|
9766
9765
|
*/
|
|
9767
9766
|
readonly exportAs: string[] | null;
|
|
9767
|
+
/**
|
|
9768
|
+
* Whether this directive (or component) is standalone.
|
|
9769
|
+
*/
|
|
9770
|
+
readonly standalone: boolean;
|
|
9768
9771
|
/**
|
|
9769
9772
|
* Factory function used to create a new directive instance. Will be null initially.
|
|
9770
9773
|
* Populated when the factory is first requested by directive instantiation logic.
|
|
@@ -9811,7 +9814,7 @@ export declare function ɵfindLocaleData(locale: string): any;
|
|
|
9811
9814
|
*/
|
|
9812
9815
|
export declare function ɵflushModuleScopingQueueAsMuchAsPossible(): void;
|
|
9813
9816
|
|
|
9814
|
-
export declare
|
|
9817
|
+
export declare function ɵgetDebugNodeR2(_nativeNode: any): DebugNode | null;
|
|
9815
9818
|
|
|
9816
9819
|
/**
|
|
9817
9820
|
* Retrieves directive instances associated with a given DOM node. Does not include
|
|
@@ -9906,8 +9909,6 @@ export declare function ɵgetLocalePluralCase(locale: string): (value: number) =
|
|
|
9906
9909
|
|
|
9907
9910
|
export declare function ɵgetSanitizationBypassType(value: any): ɵBypassType | null;
|
|
9908
9911
|
|
|
9909
|
-
export declare type ɵGetterFn = (obj: any) => any;
|
|
9910
|
-
|
|
9911
9912
|
|
|
9912
9913
|
export declare const ɵglobal: any;
|
|
9913
9914
|
|
|
@@ -9967,11 +9968,11 @@ export declare const ɵivyEnabled = true;
|
|
|
9967
9968
|
* function. The component, element and each directive instance will share the same instance
|
|
9968
9969
|
* of the context.
|
|
9969
9970
|
*/
|
|
9970
|
-
export declare
|
|
9971
|
+
export declare class ɵLContext {
|
|
9971
9972
|
/**
|
|
9972
|
-
*
|
|
9973
|
+
* ID of the component's parent view data.
|
|
9973
9974
|
*/
|
|
9974
|
-
|
|
9975
|
+
private lViewId;
|
|
9975
9976
|
/**
|
|
9976
9977
|
* The index instance of the node.
|
|
9977
9978
|
*/
|
|
@@ -9989,12 +9990,27 @@ export declare interface ɵLContext {
|
|
|
9989
9990
|
*/
|
|
9990
9991
|
directives: any[] | null | undefined;
|
|
9991
9992
|
/**
|
|
9992
|
-
* The map of local references (local reference name => element or directive instance) that
|
|
9993
|
-
* on this element.
|
|
9993
|
+
* The map of local references (local reference name => element or directive instance) that
|
|
9994
|
+
* exist on this element.
|
|
9994
9995
|
*/
|
|
9995
9996
|
localRefs: {
|
|
9996
9997
|
[key: string]: any;
|
|
9997
9998
|
} | null | undefined;
|
|
9999
|
+
/** Component's parent view data. */
|
|
10000
|
+
get lView(): LView | null;
|
|
10001
|
+
constructor(
|
|
10002
|
+
/**
|
|
10003
|
+
* ID of the component's parent view data.
|
|
10004
|
+
*/
|
|
10005
|
+
lViewId: number,
|
|
10006
|
+
/**
|
|
10007
|
+
* The index instance of the node.
|
|
10008
|
+
*/
|
|
10009
|
+
nodeIndex: number,
|
|
10010
|
+
/**
|
|
10011
|
+
* The instance of the DOM node that is attached to the lNode.
|
|
10012
|
+
*/
|
|
10013
|
+
native: RNode);
|
|
9998
10014
|
}
|
|
9999
10015
|
|
|
10000
10016
|
/**
|
|
@@ -10060,8 +10076,6 @@ export declare function ɵmakeDecorator<T>(name: string, props?: (...args: any[]
|
|
|
10060
10076
|
*/
|
|
10061
10077
|
export declare function ɵmarkDirty(component: {}): void;
|
|
10062
10078
|
|
|
10063
|
-
export declare type ɵMethodFn = (obj: any, args: any[]) => any;
|
|
10064
|
-
|
|
10065
10079
|
|
|
10066
10080
|
export declare const ɵNG_COMP_DEF: string;
|
|
10067
10081
|
|
|
@@ -10229,6 +10243,10 @@ export declare interface ɵPipeDef<T> {
|
|
|
10229
10243
|
* state of the pipe.
|
|
10230
10244
|
*/
|
|
10231
10245
|
readonly pure: boolean;
|
|
10246
|
+
/**
|
|
10247
|
+
* Whether this pipe is standalone.
|
|
10248
|
+
*/
|
|
10249
|
+
readonly standalone: boolean;
|
|
10232
10250
|
onDestroy: (() => void) | null;
|
|
10233
10251
|
}
|
|
10234
10252
|
|
|
@@ -10367,7 +10385,6 @@ export declare function ɵpublishGlobalUtil(name: string, fn: Function): void;
|
|
|
10367
10385
|
export declare class ɵReflectionCapabilities implements PlatformReflectionCapabilities {
|
|
10368
10386
|
private _reflect;
|
|
10369
10387
|
constructor(reflect?: any);
|
|
10370
|
-
isReflectionEnabled(): boolean;
|
|
10371
10388
|
factory<T>(t: Type<T>): (args: any[]) => T;
|
|
10372
10389
|
private _ownParameters;
|
|
10373
10390
|
parameters(type: Type<any>): any[][];
|
|
@@ -10381,16 +10398,6 @@ export declare class ɵReflectionCapabilities implements PlatformReflectionCapab
|
|
|
10381
10398
|
[key: string]: any[];
|
|
10382
10399
|
};
|
|
10383
10400
|
hasLifecycleHook(type: any, lcProperty: string): boolean;
|
|
10384
|
-
guards(type: any): {
|
|
10385
|
-
[key: string]: any;
|
|
10386
|
-
};
|
|
10387
|
-
getter(name: string): ɵGetterFn;
|
|
10388
|
-
setter(name: string): ɵSetterFn;
|
|
10389
|
-
method(name: string): ɵMethodFn;
|
|
10390
|
-
importUri(type: any): string;
|
|
10391
|
-
resourceUri(type: any): string;
|
|
10392
|
-
resolveIdentifier(name: string, moduleUrl: string, members: string[], runtime: any): any;
|
|
10393
|
-
resolveEnum(enumIdentifier: any, name: string): any;
|
|
10394
10401
|
}
|
|
10395
10402
|
|
|
10396
10403
|
/**
|
|
@@ -10402,8 +10409,6 @@ export declare class ɵReflectionCapabilities implements PlatformReflectionCapab
|
|
|
10402
10409
|
*/
|
|
10403
10410
|
export declare function ɵregisterLocaleData(data: any, localeId?: string | any, extraData?: any): void;
|
|
10404
10411
|
|
|
10405
|
-
export declare function ɵregisterNgModuleType(ngModuleType: ɵNgModuleType): void;
|
|
10406
|
-
|
|
10407
10412
|
/**
|
|
10408
10413
|
* Render3 implementation of {@link viewEngine_ComponentFactory}.
|
|
10409
10414
|
*/
|
|
@@ -10602,6 +10607,15 @@ export declare interface ɵSafeUrl extends ɵSafeValue {
|
|
|
10602
10607
|
export declare interface ɵSafeValue {
|
|
10603
10608
|
}
|
|
10604
10609
|
|
|
10610
|
+
/**
|
|
10611
|
+
* Control whether the NgModule registration system enforces that each NgModule type registered has
|
|
10612
|
+
* a unique id.
|
|
10613
|
+
*
|
|
10614
|
+
* This is useful for testing as the NgModule registry cannot be properly reset between tests with
|
|
10615
|
+
* Angular's current API.
|
|
10616
|
+
*/
|
|
10617
|
+
export declare function ɵsetAllowDuplicateNgModuleIdsForTest(allowDuplicates: boolean): void;
|
|
10618
|
+
|
|
10605
10619
|
/**
|
|
10606
10620
|
* Adds decorator, constructor, and property metadata to a given type via static metadata fields
|
|
10607
10621
|
* on the type.
|
|
@@ -10637,9 +10651,6 @@ export declare function ɵsetDocument(document: Document | undefined): void;
|
|
|
10637
10651
|
*/
|
|
10638
10652
|
export declare function ɵsetLocaleId(localeId: string): void;
|
|
10639
10653
|
|
|
10640
|
-
|
|
10641
|
-
export declare type ɵSetterFn = (obj: any, value: any) => void;
|
|
10642
|
-
|
|
10643
10654
|
/** Store a value in the `data` at a given `index`. */
|
|
10644
10655
|
export declare function ɵstore<T>(tView: TView, lView: LView, index: number, value: T): void;
|
|
10645
10656
|
|
|
@@ -11829,6 +11840,10 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: {
|
|
|
11829
11840
|
* The set of schemas that declare elements to be allowed in the component's template.
|
|
11830
11841
|
*/
|
|
11831
11842
|
schemas?: SchemaMetadata[] | null;
|
|
11843
|
+
/**
|
|
11844
|
+
* Whether this directive/component is standalone.
|
|
11845
|
+
*/
|
|
11846
|
+
standalone?: boolean;
|
|
11832
11847
|
}): unknown;
|
|
11833
11848
|
|
|
11834
11849
|
/**
|
|
@@ -12065,6 +12080,10 @@ export declare function ɵɵdefinePipe<T>(pipeDef: {
|
|
|
12065
12080
|
type: Type<T>;
|
|
12066
12081
|
/** Whether the pipe is pure. */
|
|
12067
12082
|
pure?: boolean;
|
|
12083
|
+
/**
|
|
12084
|
+
* Whether the pipe is standalone.
|
|
12085
|
+
*/
|
|
12086
|
+
standalone?: boolean;
|
|
12068
12087
|
}): unknown;
|
|
12069
12088
|
|
|
12070
12089
|
|
|
@@ -12133,10 +12152,11 @@ export declare function ɵɵdisableBindings(): void;
|
|
|
12133
12152
|
* @param name Name of the DOM Node
|
|
12134
12153
|
* @param attrsIndex Index of the element's attributes in the `consts` array.
|
|
12135
12154
|
* @param localRefsIndex Index of the element's local references in the `consts` array.
|
|
12155
|
+
* @returns This function returns itself so that it may be chained.
|
|
12136
12156
|
*
|
|
12137
12157
|
* @codeGenApi
|
|
12138
12158
|
*/
|
|
12139
|
-
export declare function ɵɵelement(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12159
|
+
export declare function ɵɵelement(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelement;
|
|
12140
12160
|
|
|
12141
12161
|
/**
|
|
12142
12162
|
* Creates an empty logical container using {@link elementContainerStart}
|
|
@@ -12145,17 +12165,19 @@ export declare function ɵɵelement(index: number, name: string, attrsIndex?: nu
|
|
|
12145
12165
|
* @param index Index of the element in the LView array
|
|
12146
12166
|
* @param attrsIndex Index of the container attributes in the `consts` array.
|
|
12147
12167
|
* @param localRefsIndex Index of the container's local references in the `consts` array.
|
|
12168
|
+
* @returns This function returns itself so that it may be chained.
|
|
12148
12169
|
*
|
|
12149
12170
|
* @codeGenApi
|
|
12150
12171
|
*/
|
|
12151
|
-
export declare function ɵɵelementContainer(index: number, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12172
|
+
export declare function ɵɵelementContainer(index: number, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementContainer;
|
|
12152
12173
|
|
|
12153
12174
|
/**
|
|
12154
12175
|
* Mark the end of the <ng-container>.
|
|
12176
|
+
* @returns This function returns itself so that it may be chained.
|
|
12155
12177
|
*
|
|
12156
12178
|
* @codeGenApi
|
|
12157
12179
|
*/
|
|
12158
|
-
export declare function ɵɵelementContainerEnd():
|
|
12180
|
+
export declare function ɵɵelementContainerEnd(): typeof ɵɵelementContainerEnd;
|
|
12159
12181
|
|
|
12160
12182
|
/**
|
|
12161
12183
|
* Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.
|
|
@@ -12164,6 +12186,7 @@ export declare function ɵɵelementContainerEnd(): void;
|
|
|
12164
12186
|
* @param index Index of the element in the LView array
|
|
12165
12187
|
* @param attrsIndex Index of the container attributes in the `consts` array.
|
|
12166
12188
|
* @param localRefsIndex Index of the container's local references in the `consts` array.
|
|
12189
|
+
* @returns This function returns itself so that it may be chained.
|
|
12167
12190
|
*
|
|
12168
12191
|
* Even if this instruction accepts a set of attributes no actual attribute values are propagated to
|
|
12169
12192
|
* the DOM (as a comment node can't have attributes). Attributes are here only for directive
|
|
@@ -12171,14 +12194,15 @@ export declare function ɵɵelementContainerEnd(): void;
|
|
|
12171
12194
|
*
|
|
12172
12195
|
* @codeGenApi
|
|
12173
12196
|
*/
|
|
12174
|
-
export declare function ɵɵelementContainerStart(index: number, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12197
|
+
export declare function ɵɵelementContainerStart(index: number, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementContainerStart;
|
|
12175
12198
|
|
|
12176
12199
|
/**
|
|
12177
12200
|
* Mark the end of the element.
|
|
12201
|
+
* @returns This function returns itself so that it may be chained.
|
|
12178
12202
|
*
|
|
12179
12203
|
* @codeGenApi
|
|
12180
12204
|
*/
|
|
12181
|
-
export declare function ɵɵelementEnd():
|
|
12205
|
+
export declare function ɵɵelementEnd(): typeof ɵɵelementEnd;
|
|
12182
12206
|
|
|
12183
12207
|
|
|
12184
12208
|
/**
|
|
@@ -12188,6 +12212,7 @@ export declare function ɵɵelementEnd(): void;
|
|
|
12188
12212
|
* @param name Name of the DOM Node
|
|
12189
12213
|
* @param attrsIndex Index of the element's attributes in the `consts` array.
|
|
12190
12214
|
* @param localRefsIndex Index of the element's local references in the `consts` array.
|
|
12215
|
+
* @returns This function returns itself so that it may be chained.
|
|
12191
12216
|
*
|
|
12192
12217
|
* Attributes and localRefs are passed as an array of strings where elements with an even index
|
|
12193
12218
|
* hold an attribute name and elements with an odd index hold an attribute value, ex.:
|
|
@@ -12195,7 +12220,7 @@ export declare function ɵɵelementEnd(): void;
|
|
|
12195
12220
|
*
|
|
12196
12221
|
* @codeGenApi
|
|
12197
12222
|
*/
|
|
12198
|
-
export declare function ɵɵelementStart(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12223
|
+
export declare function ɵɵelementStart(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementStart;
|
|
12199
12224
|
|
|
12200
12225
|
/**
|
|
12201
12226
|
* Enables directive matching on elements.
|
|
@@ -13418,6 +13443,26 @@ export declare function ɵɵqueryRefresh(queryList: QueryList<any>): boolean;
|
|
|
13418
13443
|
*/
|
|
13419
13444
|
export declare function ɵɵreference<T>(index: number): T;
|
|
13420
13445
|
|
|
13446
|
+
/**
|
|
13447
|
+
* Adds the given NgModule type to Angular's NgModule registry.
|
|
13448
|
+
*
|
|
13449
|
+
* This is generated as a side-effect of NgModule compilation. Note that the `id` is passed in
|
|
13450
|
+
* explicitly and not read from the NgModule definition. This is for two reasons: it avoids a
|
|
13451
|
+
* megamorphic read, and in JIT there's a chicken-and-egg problem where the NgModule may not be
|
|
13452
|
+
* fully resolved when it's registered.
|
|
13453
|
+
*
|
|
13454
|
+
* @codeGenApi
|
|
13455
|
+
*/
|
|
13456
|
+
export declare function ɵɵregisterNgModuleType(ngModuleType: ɵNgModuleType, id: string): void;
|
|
13457
|
+
|
|
13458
|
+
/**
|
|
13459
|
+
* Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in
|
|
13460
|
+
* value so that it can be used as a return value of an instruction.
|
|
13461
|
+
*
|
|
13462
|
+
* @codeGenApi
|
|
13463
|
+
*/
|
|
13464
|
+
export declare function ɵɵresetView<T>(value?: T): T | undefined;
|
|
13465
|
+
|
|
13421
13466
|
/**
|
|
13422
13467
|
*
|
|
13423
13468
|
* @codeGenApi
|
|
@@ -13453,6 +13498,7 @@ export declare function ɵɵresolveWindow(element: RElement & {
|
|
|
13453
13498
|
* @returns Context of the restored OpaqueViewState instance.
|
|
13454
13499
|
*
|
|
13455
13500
|
* @codeGenApi
|
|
13501
|
+
* @noinline Disable inlining due to issue with Closure in listeners inside embedded views.
|
|
13456
13502
|
*/
|
|
13457
13503
|
export declare function ɵɵrestoreView<T = any>(viewToRestore: OpaqueViewState): T;
|
|
13458
13504
|
|