@angular/core 14.1.0-next.4 → 14.1.0-rc.0
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/esm2020/src/application_ref.mjs +10 -6
- package/esm2020/src/change_detection/change_detector_ref.mjs +1 -1
- package/esm2020/src/core.mjs +2 -2
- package/esm2020/src/debug/debug_node.mjs +2 -2
- package/esm2020/src/di/injector_token.mjs +2 -2
- package/esm2020/src/linker/ng_module_factory.mjs +2 -2
- package/esm2020/src/linker/view_container_ref.mjs +2 -2
- package/esm2020/src/render3/features/standalone_feature.mjs +2 -2
- package/esm2020/src/render3/index.mjs +2 -2
- package/esm2020/src/render3/instructions/change_detection.mjs +2 -20
- package/esm2020/src/render3/instructions/property_interpolation.mjs +2 -2
- package/esm2020/src/render3/interfaces/i18n.mjs +2 -2
- package/esm2020/src/render3/interfaces/styling.mjs +1 -1
- package/esm2020/src/render3/interfaces/view.mjs +1 -1
- package/esm2020/src/render3/ng_module_ref.mjs +12 -2
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/src/zone/ng_zone.mjs +5 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +31 -32
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +21 -28
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +31 -32
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +21 -28
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +27 -12
- package/package.json +1 -1
- package/schematics/migrations/typed-forms/util.js +2 -2
- package/schematics/utils/typescript/symbol.js +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.1.0-
|
|
2
|
+
* @license Angular v14.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -365,7 +365,7 @@ function fakeAsync(fn) {
|
|
|
365
365
|
*
|
|
366
366
|
* @publicApi
|
|
367
367
|
*/
|
|
368
|
-
function tick
|
|
368
|
+
function tick(millis = 0, tickOptions = {
|
|
369
369
|
processNewMacroTasksSynchronously: true
|
|
370
370
|
}) {
|
|
371
371
|
if (fakeAsyncTestModule) {
|
|
@@ -9284,7 +9284,7 @@ function isClassProvider(value) {
|
|
|
9284
9284
|
* @publicApi
|
|
9285
9285
|
*/
|
|
9286
9286
|
const INJECTOR = new InjectionToken('INJECTOR',
|
|
9287
|
-
//
|
|
9287
|
+
// Disable tslint because this is const enum which gets inlined not top level prop access.
|
|
9288
9288
|
// tslint:disable-next-line: no-toplevel-property-access
|
|
9289
9289
|
-1 /* InjectorMarkers.Injector */);
|
|
9290
9290
|
|
|
@@ -14640,23 +14640,6 @@ function markDirty(component) {
|
|
|
14640
14640
|
ngDevMode && assertDefined(rootView[CONTEXT], 'rootContext should be defined');
|
|
14641
14641
|
scheduleTick(rootView[CONTEXT], 1 /* RootContextFlags.DetectChanges */);
|
|
14642
14642
|
}
|
|
14643
|
-
/**
|
|
14644
|
-
* Used to perform change detection on the whole application.
|
|
14645
|
-
*
|
|
14646
|
-
* This is equivalent to `detectChanges`, but invoked on root component. Additionally, `tick`
|
|
14647
|
-
* executes lifecycle hooks and conditionally checks components based on their
|
|
14648
|
-
* `ChangeDetectionStrategy` and dirtiness.
|
|
14649
|
-
*
|
|
14650
|
-
* The preferred way to trigger change detection is to call `markDirty`. `markDirty` internally
|
|
14651
|
-
* schedules `tick` using a scheduler in order to coalesce multiple `markDirty` calls into a
|
|
14652
|
-
* single change detection run. By default, the scheduler is `requestAnimationFrame`, but can
|
|
14653
|
-
* be changed when calling `renderComponent` and providing the `scheduler` option.
|
|
14654
|
-
*/
|
|
14655
|
-
function tick(component) {
|
|
14656
|
-
const rootView = getRootView(component);
|
|
14657
|
-
const rootContext = rootView[CONTEXT];
|
|
14658
|
-
tickRootContext(rootContext);
|
|
14659
|
-
}
|
|
14660
14643
|
|
|
14661
14644
|
/**
|
|
14662
14645
|
* @license
|
|
@@ -15906,7 +15889,7 @@ function ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3,
|
|
|
15906
15889
|
* be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
|
|
15907
15890
|
*
|
|
15908
15891
|
* @param propName The name of the property to update.
|
|
15909
|
-
* @param values The collection of values and the strings
|
|
15892
|
+
* @param values The collection of values and the strings in between those values, beginning with a
|
|
15910
15893
|
* string prefix and ending with a string suffix.
|
|
15911
15894
|
* (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
|
|
15912
15895
|
* @param sanitizer An optional sanitizer function
|
|
@@ -18973,7 +18956,7 @@ var I18nCreateOpCode;
|
|
|
18973
18956
|
*/
|
|
18974
18957
|
I18nCreateOpCode[I18nCreateOpCode["SHIFT"] = 2] = "SHIFT";
|
|
18975
18958
|
/**
|
|
18976
|
-
* Should the node be appended to parent
|
|
18959
|
+
* Should the node be appended to parent immediately after creation.
|
|
18977
18960
|
*/
|
|
18978
18961
|
I18nCreateOpCode[I18nCreateOpCode["APPEND_EAGERLY"] = 1] = "APPEND_EAGERLY";
|
|
18979
18962
|
/**
|
|
@@ -21214,7 +21197,7 @@ class NgModuleRef$1 {
|
|
|
21214
21197
|
* JIT mode. See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes)
|
|
21215
21198
|
* for additional context. Angular provides APIs that accept NgModule classes directly (such as
|
|
21216
21199
|
* [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and
|
|
21217
|
-
* [
|
|
21200
|
+
* [createNgModule](api/core/createNgModule)), consider switching to those APIs instead of
|
|
21218
21201
|
* using factory-based ones.
|
|
21219
21202
|
*/
|
|
21220
21203
|
class NgModuleFactory$1 {
|
|
@@ -21402,7 +21385,7 @@ class Version {
|
|
|
21402
21385
|
/**
|
|
21403
21386
|
* @publicApi
|
|
21404
21387
|
*/
|
|
21405
|
-
const VERSION = new Version('14.1.0-
|
|
21388
|
+
const VERSION = new Version('14.1.0-rc.0');
|
|
21406
21389
|
|
|
21407
21390
|
/**
|
|
21408
21391
|
* @license
|
|
@@ -22005,14 +21988,24 @@ class ComponentRef extends ComponentRef$1 {
|
|
|
22005
21988
|
*/
|
|
22006
21989
|
/**
|
|
22007
21990
|
* Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
|
|
21991
|
+
*
|
|
22008
21992
|
* @param ngModule NgModule class.
|
|
22009
21993
|
* @param parentInjector Optional injector instance to use as a parent for the module injector. If
|
|
22010
21994
|
* not provided, `NullInjector` will be used instead.
|
|
21995
|
+
* @returns NgModuleRef that represents an NgModule instance.
|
|
21996
|
+
*
|
|
22011
21997
|
* @publicApi
|
|
22012
21998
|
*/
|
|
22013
|
-
function
|
|
21999
|
+
function createNgModule(ngModule, parentInjector) {
|
|
22014
22000
|
return new NgModuleRef(ngModule, parentInjector ?? null);
|
|
22015
22001
|
}
|
|
22002
|
+
/**
|
|
22003
|
+
* The `createNgModule` function alias for backwards-compatibility.
|
|
22004
|
+
* Please avoid using it directly and use `createNgModule` instead.
|
|
22005
|
+
*
|
|
22006
|
+
* @deprecated Use `createNgModule` instead.
|
|
22007
|
+
*/
|
|
22008
|
+
const createNgModuleRef = createNgModule;
|
|
22016
22009
|
class NgModuleRef extends NgModuleRef$1 {
|
|
22017
22010
|
constructor(ngModuleType, _parent) {
|
|
22018
22011
|
super();
|
|
@@ -22165,7 +22158,7 @@ StandaloneService.ɵprov = ɵɵdefineInjectable({
|
|
|
22165
22158
|
/**
|
|
22166
22159
|
* A feature that acts as a setup code for the {@link StandaloneService}.
|
|
22167
22160
|
*
|
|
22168
|
-
* The most important
|
|
22161
|
+
* The most important responsibility of this feature is to expose the "getStandaloneInjector"
|
|
22169
22162
|
* function (an entry points to a standalone injector creation) on a component definition object. We
|
|
22170
22163
|
* go through the features infrastructure to make sure that the standalone injector creation logic
|
|
22171
22164
|
* is tree-shakable and not included in applications that don't use standalone components.
|
|
@@ -23626,7 +23619,7 @@ const R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {
|
|
|
23626
23619
|
// so that a component can use DI tokens provided in MgModules. For this reason, we can not
|
|
23627
23620
|
// rely on the provided injector, since it might be detached from the DI tree (for example, if
|
|
23628
23621
|
// it was created via `Injector.create` without specifying a parent injector, or if an
|
|
23629
|
-
// injector is retrieved from an `NgModuleRef` created via `
|
|
23622
|
+
// injector is retrieved from an `NgModuleRef` created via `createNgModule` using an
|
|
23630
23623
|
// NgModule outside of a module tree). Instead, we always use `ViewContainerRef`'s parent
|
|
23631
23624
|
// injector, which is normally connected to the DI tree, which includes module injector
|
|
23632
23625
|
// subtree.
|
|
@@ -26662,5 +26655,5 @@ const __core_private_testing_placeholder__ = '';
|
|
|
26662
26655
|
* Generated bundle index. Do not edit.
|
|
26663
26656
|
*/
|
|
26664
26657
|
|
|
26665
|
-
export { ComponentFixture, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, InjectSetupWrapper, TestBed, TestComponentRenderer, __core_private_testing_placeholder__, async, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, getTestBed, inject, resetFakeAsyncZone, tick
|
|
26658
|
+
export { ComponentFixture, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, InjectSetupWrapper, TestBed, TestComponentRenderer, __core_private_testing_placeholder__, async, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, getTestBed, inject, resetFakeAsyncZone, tick, waitForAsync, withModule, MetadataOverrider as ɵMetadataOverrider };
|
|
26666
26659
|
//# sourceMappingURL=testing.mjs.map
|