@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/fesm2015/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.12
2
+ * @license Angular v14.0.0-next.13
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -12843,22 +12843,8 @@ function getSymbolIterator() {
12843
12843
  * Use of this source code is governed by an MIT-style license that can be
12844
12844
  * found in the LICENSE file at https://angular.io/license
12845
12845
  */
12846
- function devModeEqual(a, b) {
12847
- const isListLikeIterableA = isListLikeIterable(a);
12848
- const isListLikeIterableB = isListLikeIterable(b);
12849
- if (isListLikeIterableA && isListLikeIterableB) {
12850
- return areIterablesEqual(a, b, devModeEqual);
12851
- }
12852
- else {
12853
- const isAObject = a && (typeof a === 'object' || typeof a === 'function');
12854
- const isBObject = b && (typeof b === 'object' || typeof b === 'function');
12855
- if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {
12856
- return true;
12857
- }
12858
- else {
12859
- return Object.is(a, b);
12860
- }
12861
- }
12846
+ function isIterable(obj) {
12847
+ return obj !== null && typeof obj === 'object' && obj[getSymbolIterator()] !== undefined;
12862
12848
  }
12863
12849
  function isListLikeIterable(obj) {
12864
12850
  if (!isJsObject(obj))
@@ -12899,6 +12885,31 @@ function isJsObject(o) {
12899
12885
  return o !== null && (typeof o === 'function' || typeof o === 'object');
12900
12886
  }
12901
12887
 
12888
+ /**
12889
+ * @license
12890
+ * Copyright Google LLC All Rights Reserved.
12891
+ *
12892
+ * Use of this source code is governed by an MIT-style license that can be
12893
+ * found in the LICENSE file at https://angular.io/license
12894
+ */
12895
+ function devModeEqual(a, b) {
12896
+ const isListLikeIterableA = isListLikeIterable(a);
12897
+ const isListLikeIterableB = isListLikeIterable(b);
12898
+ if (isListLikeIterableA && isListLikeIterableB) {
12899
+ return areIterablesEqual(a, b, devModeEqual);
12900
+ }
12901
+ else {
12902
+ const isAObject = a && (typeof a === 'object' || typeof a === 'function');
12903
+ const isBObject = b && (typeof b === 'object' || typeof b === 'function');
12904
+ if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {
12905
+ return true;
12906
+ }
12907
+ else {
12908
+ return Object.is(a, b);
12909
+ }
12910
+ }
12911
+ }
12912
+
12902
12913
  /**
12903
12914
  * @license
12904
12915
  * Copyright Google LLC All Rights Reserved.
@@ -21273,7 +21284,7 @@ class Version {
21273
21284
  /**
21274
21285
  * @publicApi
21275
21286
  */
21276
- const VERSION = new Version('14.0.0-next.12');
21287
+ const VERSION = new Version('14.0.0-next.13');
21277
21288
 
21278
21289
  /**
21279
21290
  * @license
@@ -24997,7 +25008,10 @@ const PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');
24997
25008
  * A token that indicates an opaque platform ID.
24998
25009
  * @publicApi
24999
25010
  */
25000
- const PLATFORM_ID = new InjectionToken('Platform ID');
25011
+ const PLATFORM_ID = new InjectionToken('Platform ID', {
25012
+ providedIn: 'platform',
25013
+ factory: () => 'unknown', // set a default platform name, when none set explicitly
25014
+ });
25001
25015
  /**
25002
25016
  * A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
25003
25017
  * be called for every component that is bootstrapped.
@@ -25044,10 +25058,11 @@ class Console {
25044
25058
  }
25045
25059
  }
25046
25060
  Console.ɵfac = function Console_Factory(t) { return new (t || Console)(); };
25047
- Console.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac });
25061
+ Console.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac, providedIn: 'platform' });
25048
25062
  (function () {
25049
25063
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Console, [{
25050
- type: Injectable
25064
+ type: Injectable,
25065
+ args: [{ providedIn: 'platform' }]
25051
25066
  }], null, null);
25052
25067
  })();
25053
25068
 
@@ -26010,10 +26025,11 @@ class TestabilityRegistry {
26010
26025
  }
26011
26026
  }
26012
26027
  TestabilityRegistry.ɵfac = function TestabilityRegistry_Factory(t) { return new (t || TestabilityRegistry)(); };
26013
- TestabilityRegistry.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac });
26028
+ TestabilityRegistry.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac, providedIn: 'platform' });
26014
26029
  (function () {
26015
26030
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(TestabilityRegistry, [{
26016
- type: Injectable
26031
+ type: Injectable,
26032
+ args: [{ providedIn: 'platform' }]
26017
26033
  }], function () { return []; }, null);
26018
26034
  })();
26019
26035
  class _NoopGetTestability {
@@ -26326,10 +26342,11 @@ class PlatformRef {
26326
26342
  }
26327
26343
  }
26328
26344
  PlatformRef.ɵfac = function PlatformRef_Factory(t) { return new (t || PlatformRef)(ɵɵinject(Injector)); };
26329
- PlatformRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac });
26345
+ PlatformRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac, providedIn: 'platform' });
26330
26346
  (function () {
26331
26347
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(PlatformRef, [{
26332
- type: Injectable
26348
+ type: Injectable,
26349
+ args: [{ providedIn: 'platform' }]
26333
26350
  }], function () { return [{ type: Injector }]; }, null);
26334
26351
  })();
26335
26352
  function getNgZone(ngZoneOption, extra) {
@@ -26468,11 +26485,10 @@ function optionsReducer(dst, objs) {
26468
26485
  */
26469
26486
  class ApplicationRef {
26470
26487
  /** @internal */
26471
- constructor(_zone, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus) {
26488
+ constructor(_zone, _injector, _exceptionHandler, _initStatus) {
26472
26489
  this._zone = _zone;
26473
26490
  this._injector = _injector;
26474
26491
  this._exceptionHandler = _exceptionHandler;
26475
- this._componentFactoryResolver = _componentFactoryResolver;
26476
26492
  this._initStatus = _initStatus;
26477
26493
  /** @internal */
26478
26494
  this._bootstrapListeners = [];
@@ -26588,8 +26604,8 @@ class ApplicationRef {
26588
26604
  componentFactory = componentOrFactory;
26589
26605
  }
26590
26606
  else {
26591
- componentFactory =
26592
- this._componentFactoryResolver.resolveComponentFactory(componentOrFactory);
26607
+ const resolver = this._injector.get(ComponentFactoryResolver$1);
26608
+ componentFactory = resolver.resolveComponentFactory(componentOrFactory);
26593
26609
  }
26594
26610
  this.componentTypes.push(componentFactory.componentType);
26595
26611
  // Create a factory associated with the current module if it's not bound to some other
@@ -26690,13 +26706,13 @@ class ApplicationRef {
26690
26706
  return this._views.length;
26691
26707
  }
26692
26708
  }
26693
- ApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Injector), ɵɵinject(ErrorHandler), ɵɵinject(ComponentFactoryResolver$1), ɵɵinject(ApplicationInitStatus)); };
26709
+ ApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Injector), ɵɵinject(ErrorHandler), ɵɵinject(ApplicationInitStatus)); };
26694
26710
  ApplicationRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac, providedIn: 'root' });
26695
26711
  (function () {
26696
26712
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ApplicationRef, [{
26697
26713
  type: Injectable,
26698
26714
  args: [{ providedIn: 'root' }]
26699
- }], function () { return [{ type: NgZone }, { type: Injector }, { type: ErrorHandler }, { type: ComponentFactoryResolver$1 }, { type: ApplicationInitStatus }]; }, null);
26715
+ }], function () { return [{ type: NgZone }, { type: Injector }, { type: ErrorHandler }, { type: ApplicationInitStatus }]; }, null);
26700
26716
  })();
26701
26717
  function remove(list, el) {
26702
26718
  const index = list.indexOf(el);
@@ -28680,19 +28696,12 @@ const defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);
28680
28696
  * Use of this source code is governed by an MIT-style license that can be
28681
28697
  * found in the LICENSE file at https://angular.io/license
28682
28698
  */
28683
- const _CORE_PLATFORM_PROVIDERS = [
28684
- // Set a default platform name for platforms that don't set it explicitly.
28685
- { provide: PLATFORM_ID, useValue: 'unknown' },
28686
- { provide: PlatformRef, deps: [Injector] },
28687
- { provide: TestabilityRegistry, deps: [] },
28688
- { provide: Console, deps: [] },
28689
- ];
28690
28699
  /**
28691
28700
  * This platform has to be included in any other platform
28692
28701
  *
28693
28702
  * @publicApi
28694
28703
  */
28695
- const platformCore = createPlatformFactory(null, 'core', _CORE_PLATFORM_PROVIDERS);
28704
+ const platformCore = createPlatformFactory(null, 'core', []);
28696
28705
 
28697
28706
  /**
28698
28707
  * Re-exported by `BrowserModule`, which is included automatically in the root