@angular/core 14.0.0-next.12 → 14.0.0-next.13
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 +1 -2
- package/esm2020/src/application_ref.mjs +10 -11
- package/esm2020/src/application_tokens.mjs +5 -2
- package/esm2020/src/change_detection/change_detection.mjs +2 -2
- package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +2 -2
- package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs +2 -2
- package/esm2020/src/console.mjs +4 -3
- package/esm2020/src/core_private_export.mjs +3 -2
- package/esm2020/src/platform_core_providers.mjs +3 -14
- package/esm2020/src/render3/bindings.mjs +2 -2
- package/esm2020/src/testability/testability.mjs +4 -3
- package/esm2020/src/version.mjs +1 -1
- 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 +5 -8
- package/esm2020/testing/src/test_bed.mjs +1 -1
- package/esm2020/testing/src/test_bed_common.mjs +1 -1
- package/fesm2015/core.mjs +48 -39
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -8
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +48 -39
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -8
- package/fesm2020/testing.mjs.map +1 -1
- package/package.json +1 -1
- package/testing/testing.d.ts +1 -42
- package/esm2020/src/change_detection/change_detection_util.mjs +0 -64
package/fesm2020/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.13
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -12857,22 +12857,8 @@ function getSymbolIterator() {
|
|
|
12857
12857
|
* Use of this source code is governed by an MIT-style license that can be
|
|
12858
12858
|
* found in the LICENSE file at https://angular.io/license
|
|
12859
12859
|
*/
|
|
12860
|
-
function
|
|
12861
|
-
|
|
12862
|
-
const isListLikeIterableB = isListLikeIterable(b);
|
|
12863
|
-
if (isListLikeIterableA && isListLikeIterableB) {
|
|
12864
|
-
return areIterablesEqual(a, b, devModeEqual);
|
|
12865
|
-
}
|
|
12866
|
-
else {
|
|
12867
|
-
const isAObject = a && (typeof a === 'object' || typeof a === 'function');
|
|
12868
|
-
const isBObject = b && (typeof b === 'object' || typeof b === 'function');
|
|
12869
|
-
if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {
|
|
12870
|
-
return true;
|
|
12871
|
-
}
|
|
12872
|
-
else {
|
|
12873
|
-
return Object.is(a, b);
|
|
12874
|
-
}
|
|
12875
|
-
}
|
|
12860
|
+
function isIterable(obj) {
|
|
12861
|
+
return obj !== null && typeof obj === 'object' && obj[getSymbolIterator()] !== undefined;
|
|
12876
12862
|
}
|
|
12877
12863
|
function isListLikeIterable(obj) {
|
|
12878
12864
|
if (!isJsObject(obj))
|
|
@@ -12913,6 +12899,31 @@ function isJsObject(o) {
|
|
|
12913
12899
|
return o !== null && (typeof o === 'function' || typeof o === 'object');
|
|
12914
12900
|
}
|
|
12915
12901
|
|
|
12902
|
+
/**
|
|
12903
|
+
* @license
|
|
12904
|
+
* Copyright Google LLC All Rights Reserved.
|
|
12905
|
+
*
|
|
12906
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
12907
|
+
* found in the LICENSE file at https://angular.io/license
|
|
12908
|
+
*/
|
|
12909
|
+
function devModeEqual(a, b) {
|
|
12910
|
+
const isListLikeIterableA = isListLikeIterable(a);
|
|
12911
|
+
const isListLikeIterableB = isListLikeIterable(b);
|
|
12912
|
+
if (isListLikeIterableA && isListLikeIterableB) {
|
|
12913
|
+
return areIterablesEqual(a, b, devModeEqual);
|
|
12914
|
+
}
|
|
12915
|
+
else {
|
|
12916
|
+
const isAObject = a && (typeof a === 'object' || typeof a === 'function');
|
|
12917
|
+
const isBObject = b && (typeof b === 'object' || typeof b === 'function');
|
|
12918
|
+
if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {
|
|
12919
|
+
return true;
|
|
12920
|
+
}
|
|
12921
|
+
else {
|
|
12922
|
+
return Object.is(a, b);
|
|
12923
|
+
}
|
|
12924
|
+
}
|
|
12925
|
+
}
|
|
12926
|
+
|
|
12916
12927
|
/**
|
|
12917
12928
|
* @license
|
|
12918
12929
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -21287,7 +21298,7 @@ class Version {
|
|
|
21287
21298
|
/**
|
|
21288
21299
|
* @publicApi
|
|
21289
21300
|
*/
|
|
21290
|
-
const VERSION = new Version('14.0.0-next.
|
|
21301
|
+
const VERSION = new Version('14.0.0-next.13');
|
|
21291
21302
|
|
|
21292
21303
|
/**
|
|
21293
21304
|
* @license
|
|
@@ -25027,7 +25038,10 @@ const PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');
|
|
|
25027
25038
|
* A token that indicates an opaque platform ID.
|
|
25028
25039
|
* @publicApi
|
|
25029
25040
|
*/
|
|
25030
|
-
const PLATFORM_ID = new InjectionToken('Platform ID'
|
|
25041
|
+
const PLATFORM_ID = new InjectionToken('Platform ID', {
|
|
25042
|
+
providedIn: 'platform',
|
|
25043
|
+
factory: () => 'unknown', // set a default platform name, when none set explicitly
|
|
25044
|
+
});
|
|
25031
25045
|
/**
|
|
25032
25046
|
* A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
|
|
25033
25047
|
* be called for every component that is bootstrapped.
|
|
@@ -25074,9 +25088,10 @@ class Console {
|
|
|
25074
25088
|
}
|
|
25075
25089
|
}
|
|
25076
25090
|
Console.ɵfac = function Console_Factory(t) { return new (t || Console)(); };
|
|
25077
|
-
Console.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac });
|
|
25091
|
+
Console.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac, providedIn: 'platform' });
|
|
25078
25092
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Console, [{
|
|
25079
|
-
type: Injectable
|
|
25093
|
+
type: Injectable,
|
|
25094
|
+
args: [{ providedIn: 'platform' }]
|
|
25080
25095
|
}], null, null); })();
|
|
25081
25096
|
|
|
25082
25097
|
/**
|
|
@@ -26034,9 +26049,10 @@ class TestabilityRegistry {
|
|
|
26034
26049
|
}
|
|
26035
26050
|
}
|
|
26036
26051
|
TestabilityRegistry.ɵfac = function TestabilityRegistry_Factory(t) { return new (t || TestabilityRegistry)(); };
|
|
26037
|
-
TestabilityRegistry.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac });
|
|
26052
|
+
TestabilityRegistry.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac, providedIn: 'platform' });
|
|
26038
26053
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(TestabilityRegistry, [{
|
|
26039
|
-
type: Injectable
|
|
26054
|
+
type: Injectable,
|
|
26055
|
+
args: [{ providedIn: 'platform' }]
|
|
26040
26056
|
}], function () { return []; }, null); })();
|
|
26041
26057
|
class _NoopGetTestability {
|
|
26042
26058
|
addToWindow(registry) { }
|
|
@@ -26348,9 +26364,10 @@ class PlatformRef {
|
|
|
26348
26364
|
}
|
|
26349
26365
|
}
|
|
26350
26366
|
PlatformRef.ɵfac = function PlatformRef_Factory(t) { return new (t || PlatformRef)(ɵɵinject(Injector)); };
|
|
26351
|
-
PlatformRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac });
|
|
26367
|
+
PlatformRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac, providedIn: 'platform' });
|
|
26352
26368
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(PlatformRef, [{
|
|
26353
|
-
type: Injectable
|
|
26369
|
+
type: Injectable,
|
|
26370
|
+
args: [{ providedIn: 'platform' }]
|
|
26354
26371
|
}], function () { return [{ type: Injector }]; }, null); })();
|
|
26355
26372
|
function getNgZone(ngZoneOption, extra) {
|
|
26356
26373
|
let ngZone;
|
|
@@ -26488,11 +26505,10 @@ function optionsReducer(dst, objs) {
|
|
|
26488
26505
|
*/
|
|
26489
26506
|
class ApplicationRef {
|
|
26490
26507
|
/** @internal */
|
|
26491
|
-
constructor(_zone, _injector, _exceptionHandler,
|
|
26508
|
+
constructor(_zone, _injector, _exceptionHandler, _initStatus) {
|
|
26492
26509
|
this._zone = _zone;
|
|
26493
26510
|
this._injector = _injector;
|
|
26494
26511
|
this._exceptionHandler = _exceptionHandler;
|
|
26495
|
-
this._componentFactoryResolver = _componentFactoryResolver;
|
|
26496
26512
|
this._initStatus = _initStatus;
|
|
26497
26513
|
/** @internal */
|
|
26498
26514
|
this._bootstrapListeners = [];
|
|
@@ -26608,8 +26624,8 @@ class ApplicationRef {
|
|
|
26608
26624
|
componentFactory = componentOrFactory;
|
|
26609
26625
|
}
|
|
26610
26626
|
else {
|
|
26611
|
-
|
|
26612
|
-
|
|
26627
|
+
const resolver = this._injector.get(ComponentFactoryResolver$1);
|
|
26628
|
+
componentFactory = resolver.resolveComponentFactory(componentOrFactory);
|
|
26613
26629
|
}
|
|
26614
26630
|
this.componentTypes.push(componentFactory.componentType);
|
|
26615
26631
|
// Create a factory associated with the current module if it's not bound to some other
|
|
@@ -26710,12 +26726,12 @@ class ApplicationRef {
|
|
|
26710
26726
|
return this._views.length;
|
|
26711
26727
|
}
|
|
26712
26728
|
}
|
|
26713
|
-
ApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Injector), ɵɵinject(ErrorHandler), ɵɵinject(
|
|
26729
|
+
ApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Injector), ɵɵinject(ErrorHandler), ɵɵinject(ApplicationInitStatus)); };
|
|
26714
26730
|
ApplicationRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac, providedIn: 'root' });
|
|
26715
26731
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ApplicationRef, [{
|
|
26716
26732
|
type: Injectable,
|
|
26717
26733
|
args: [{ providedIn: 'root' }]
|
|
26718
|
-
}], function () { return [{ type: NgZone }, { type: Injector }, { type: ErrorHandler }, { type:
|
|
26734
|
+
}], function () { return [{ type: NgZone }, { type: Injector }, { type: ErrorHandler }, { type: ApplicationInitStatus }]; }, null); })();
|
|
26719
26735
|
function remove(list, el) {
|
|
26720
26736
|
const index = list.indexOf(el);
|
|
26721
26737
|
if (index > -1) {
|
|
@@ -28698,19 +28714,12 @@ const defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);
|
|
|
28698
28714
|
* Use of this source code is governed by an MIT-style license that can be
|
|
28699
28715
|
* found in the LICENSE file at https://angular.io/license
|
|
28700
28716
|
*/
|
|
28701
|
-
const _CORE_PLATFORM_PROVIDERS = [
|
|
28702
|
-
// Set a default platform name for platforms that don't set it explicitly.
|
|
28703
|
-
{ provide: PLATFORM_ID, useValue: 'unknown' },
|
|
28704
|
-
{ provide: PlatformRef, deps: [Injector] },
|
|
28705
|
-
{ provide: TestabilityRegistry, deps: [] },
|
|
28706
|
-
{ provide: Console, deps: [] },
|
|
28707
|
-
];
|
|
28708
28717
|
/**
|
|
28709
28718
|
* This platform has to be included in any other platform
|
|
28710
28719
|
*
|
|
28711
28720
|
* @publicApi
|
|
28712
28721
|
*/
|
|
28713
|
-
const platformCore = createPlatformFactory(null, 'core',
|
|
28722
|
+
const platformCore = createPlatformFactory(null, 'core', []);
|
|
28714
28723
|
|
|
28715
28724
|
/**
|
|
28716
28725
|
* @license
|