@angular/core 14.1.0-next.2 → 14.1.0-next.3
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 +22 -12
- package/esm2020/src/di/injector_compatibility.mjs +3 -8
- package/esm2020/src/di/jit/util.mjs +3 -2
- package/esm2020/src/di/reflective_key.mjs +3 -2
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/i18n/locale_data_api.mjs +3 -2
- package/esm2020/src/render3/component.mjs +3 -2
- package/esm2020/src/render3/interfaces/renderer.mjs +10 -1
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/src/zone/ng_zone.mjs +5 -4
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +41 -25
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +79 -74
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +41 -25
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +79 -74
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +6 -6
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
- package/schematics/utils/schematics_prompt.d.ts +0 -17
- package/schematics/utils/schematics_prompt.js +0 -45
|
@@ -26,9 +26,9 @@ export class Log {
|
|
|
26
26
|
return this.logItems.join('; ');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
Log.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
30
|
-
Log.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
29
|
+
Log.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.3", ngImport: i0, type: Log, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
+
Log.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.3", ngImport: i0, type: Log });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.3", ngImport: i0, type: Log, decorators: [{
|
|
32
32
|
type: Injectable
|
|
33
33
|
}], ctorParameters: function () { return []; } });
|
|
34
34
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS90ZXN0aW5nL3NyYy9sb2dnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFHekMsTUFBTSxPQUFPLEdBQUc7SUFHZDtRQUNFLElBQUksQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0lBQ3JCLENBQUM7SUFFRCxHQUFHLENBQUMsS0FBVSxDQUFDLGlCQUFpQjtRQUM5QixJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM1QixDQUFDO0lBRUQsRUFBRSxDQUFDLEtBQVUsQ0FBQyxpQkFBaUI7UUFDN0IsT0FBTyxDQUFDLEtBQVUsSUFBSSxFQUFFLEtBQVUsSUFBSSxFQUFFLEtBQVUsSUFBSSxFQUFFLEtBQVUsSUFBSSxFQUFFLEtBQVUsSUFBSSxFQUFFLEVBQUU7WUFDeEYsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDNUIsQ0FBQyxDQUFDO0lBQ0osQ0FBQztJQUVELEtBQUs7UUFDSCxJQUFJLENBQUMsUUFB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yKCk6IHZvaWQge1xuICAgIHRoaXMubG9nSXRlbXMgPSBbXTtcbiAgfVxuXG4gIHJlc3VsdCgpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLmxvZ0l0ZW1zLmpvaW4oJzsgJyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -25,9 +25,9 @@ export class MockNgZone extends NgZone {
|
|
|
25
25
|
this.onStable.emit(null);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
MockNgZone.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
29
|
-
MockNgZone.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
28
|
+
MockNgZone.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.3", ngImport: i0, type: MockNgZone, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
+
MockNgZone.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.3", ngImport: i0, type: MockNgZone });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.3", ngImport: i0, type: MockNgZone, decorators: [{
|
|
31
31
|
type: Injectable
|
|
32
32
|
}], ctorParameters: function () { return []; } });
|
|
33
33
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfem9uZV9tb2NrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS90ZXN0aW5nL3NyYy9uZ196b25lX21vY2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFlBQVksRUFBRSxVQUF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25lfS5cbiAqL1xuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIE1vY2tOZ1pvbmUgZXh0ZW5kcyBOZ1pvbmUge1xuICBvdmVycmlkZSBvblN0YWJsZTogRXZlbnRFbWl0dGVyPGFueT4gPSBuZXcgRXZlbnRFbWl0dGVyKGZhbHNlKTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcih7ZW5hYmxlTG9uZ1N0YWNrVHJhY2U6IGZhbHNlLCBzaG91bGRDb2FsZXNjZUV2ZW50Q2hhbmdlRGV0ZWN0aW9uOiBmYWxzZX0pO1xuICB9XG5cbiAgb3ZlcnJpZGUgcnVuKGZuOiBGdW5jdGlvbik6IGFueSB7XG4gICAgcmV0dXJuIGZuKCk7XG4gIH1cblxuICBvdmVycmlkZSBydW5PdXRzaWRlQW5ndWxhcihmbjogRnVuY3Rpb24pOiBhbnkge1xuICAgIHJldHVybiBmbigpO1xuICB9XG5cbiAgc2ltdWxhdGVab25lRXhpdCgpOiB2b2lkIHtcbiAgICB0aGlzLm9uU3RhYmxlLmVtaXQobnVsbCk7XG4gIH1cbn1cbiJdfQ==
|
package/fesm2015/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.1.0-next.
|
|
2
|
+
* @license Angular v14.1.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1658,8 +1658,17 @@ var RendererStyleFlags3;
|
|
|
1658
1658
|
function isProceduralRenderer(renderer) {
|
|
1659
1659
|
return !!(renderer.listen);
|
|
1660
1660
|
}
|
|
1661
|
+
let renderer3Enabled = false;
|
|
1662
|
+
function enableRenderer3() {
|
|
1663
|
+
renderer3Enabled = true;
|
|
1664
|
+
}
|
|
1661
1665
|
const domRendererFactory3 = {
|
|
1662
1666
|
createRenderer: (hostElement, rendererType) => {
|
|
1667
|
+
if (!renderer3Enabled) {
|
|
1668
|
+
throw new Error(ngDevMode ?
|
|
1669
|
+
`Renderer3 is not supported. This problem is likely caused by some component in the hierarchy was constructed without a correct parent injector.` :
|
|
1670
|
+
'Renderer3 disabled');
|
|
1671
|
+
}
|
|
1663
1672
|
return getDocument();
|
|
1664
1673
|
}
|
|
1665
1674
|
};
|
|
@@ -4854,22 +4863,17 @@ function ɵɵinject(token, flags = InjectFlags.Default) {
|
|
|
4854
4863
|
* Throws an error indicating that a factory function could not be generated by the compiler for a
|
|
4855
4864
|
* particular class.
|
|
4856
4865
|
*
|
|
4857
|
-
* This instruction allows the actual error message to be optimized away when ngDevMode is turned
|
|
4858
|
-
* off, saving bytes of generated code while still providing a good experience in dev mode.
|
|
4859
|
-
*
|
|
4860
4866
|
* The name of the class is not mentioned here, but will be in the generated factory function name
|
|
4861
4867
|
* and thus in the stack trace.
|
|
4862
4868
|
*
|
|
4863
4869
|
* @codeGenApi
|
|
4864
4870
|
*/
|
|
4865
4871
|
function ɵɵinvalidFactoryDep(index) {
|
|
4866
|
-
|
|
4872
|
+
throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode &&
|
|
4867
4873
|
`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.
|
|
4868
4874
|
This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.
|
|
4869
4875
|
|
|
4870
|
-
Please check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`
|
|
4871
|
-
'invalid';
|
|
4872
|
-
throw new Error(msg);
|
|
4876
|
+
Please check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);
|
|
4873
4877
|
}
|
|
4874
4878
|
/**
|
|
4875
4879
|
* Injects a token from the currently active injector.
|
|
@@ -5133,7 +5137,7 @@ function reflectDependency(dep) {
|
|
|
5133
5137
|
}
|
|
5134
5138
|
else if (param instanceof Attribute) {
|
|
5135
5139
|
if (param.attributeName === undefined) {
|
|
5136
|
-
throw new
|
|
5140
|
+
throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Attribute name must be defined.`);
|
|
5137
5141
|
}
|
|
5138
5142
|
meta.attribute = param.attributeName;
|
|
5139
5143
|
}
|
|
@@ -9804,7 +9808,7 @@ class ReflectiveKey {
|
|
|
9804
9808
|
this.token = token;
|
|
9805
9809
|
this.id = id;
|
|
9806
9810
|
if (!token) {
|
|
9807
|
-
throw new
|
|
9811
|
+
throw new RuntimeError(208 /* RuntimeErrorCode.MISSING_INJECTION_TOKEN */, ngDevMode && 'Token must be defined!');
|
|
9808
9812
|
}
|
|
9809
9813
|
this.displayName = stringify(this.token);
|
|
9810
9814
|
}
|
|
@@ -13875,6 +13879,7 @@ const NULL_INJECTOR = {
|
|
|
13875
13879
|
function renderComponent(componentType /* Type as workaround for: Microsoft/TypeScript/issues/4881 */, opts = {}) {
|
|
13876
13880
|
ngDevMode && publishDefaultGlobalUtils$1();
|
|
13877
13881
|
ngDevMode && assertComponentType(componentType);
|
|
13882
|
+
enableRenderer3();
|
|
13878
13883
|
const rendererFactory = opts.rendererFactory || domRendererFactory3;
|
|
13879
13884
|
const sanitizer = opts.sanitizer || null;
|
|
13880
13885
|
const componentDef = getComponentDef(componentType);
|
|
@@ -19184,7 +19189,7 @@ function findLocaleData(locale) {
|
|
|
19184
19189
|
if (parentLocale === 'en') {
|
|
19185
19190
|
return localeEn;
|
|
19186
19191
|
}
|
|
19187
|
-
throw new
|
|
19192
|
+
throw new RuntimeError(701 /* RuntimeErrorCode.MISSING_LOCALE_DATA */, ngDevMode && `Missing locale data for the locale "${locale}".`);
|
|
19188
19193
|
}
|
|
19189
19194
|
/**
|
|
19190
19195
|
* Retrieves the default currency code for the given locale.
|
|
@@ -21760,7 +21765,7 @@ class Version {
|
|
|
21760
21765
|
/**
|
|
21761
21766
|
* @publicApi
|
|
21762
21767
|
*/
|
|
21763
|
-
const VERSION = new Version('14.1.0-next.
|
|
21768
|
+
const VERSION = new Version('14.1.0-next.3');
|
|
21764
21769
|
|
|
21765
21770
|
/**
|
|
21766
21771
|
* @license
|
|
@@ -26305,7 +26310,7 @@ class NgZone {
|
|
|
26305
26310
|
*/
|
|
26306
26311
|
this.onError = new EventEmitter(false);
|
|
26307
26312
|
if (typeof Zone == 'undefined') {
|
|
26308
|
-
throw new
|
|
26313
|
+
throw new RuntimeError(908 /* RuntimeErrorCode.MISSING_ZONEJS */, ngDevMode && `In this configuration Angular requires Zone.js`);
|
|
26309
26314
|
}
|
|
26310
26315
|
Zone.assertZonePatched();
|
|
26311
26316
|
const self = this;
|
|
@@ -26332,12 +26337,12 @@ class NgZone {
|
|
|
26332
26337
|
}
|
|
26333
26338
|
static assertInAngularZone() {
|
|
26334
26339
|
if (!NgZone.isInAngularZone()) {
|
|
26335
|
-
throw new
|
|
26340
|
+
throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to be in Angular Zone, but it is not!');
|
|
26336
26341
|
}
|
|
26337
26342
|
}
|
|
26338
26343
|
static assertNotInAngularZone() {
|
|
26339
26344
|
if (NgZone.isInAngularZone()) {
|
|
26340
|
-
throw new
|
|
26345
|
+
throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to not be in Angular Zone, but it is!');
|
|
26341
26346
|
}
|
|
26342
26347
|
}
|
|
26343
26348
|
/**
|
|
@@ -26908,7 +26913,7 @@ const ALLOW_MULTIPLE_PLATFORMS = new InjectionToken('AllowMultipleToken');
|
|
|
26908
26913
|
* `PlatformRef` class (i.e. register the callback via `PlatformRef.onDestroy`), thus making the
|
|
26909
26914
|
* entire class tree-shakeable.
|
|
26910
26915
|
*/
|
|
26911
|
-
const
|
|
26916
|
+
const PLATFORM_DESTROY_LISTENERS = new InjectionToken('PlatformDestroyListeners');
|
|
26912
26917
|
const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;
|
|
26913
26918
|
function compileNgModuleFactory(injector, options, moduleType) {
|
|
26914
26919
|
ngDevMode && assertNgModuleType(moduleType);
|
|
@@ -27047,7 +27052,15 @@ function internalBootstrapApplication(config) {
|
|
|
27047
27052
|
const localeId = appInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);
|
|
27048
27053
|
setLocaleId(localeId || DEFAULT_LOCALE_ID);
|
|
27049
27054
|
const appRef = appInjector.get(ApplicationRef);
|
|
27050
|
-
|
|
27055
|
+
// If the whole platform is destroyed, invoke the `destroy` method
|
|
27056
|
+
// for all bootstrapped applications as well.
|
|
27057
|
+
const destroyListener = () => appRef.destroy();
|
|
27058
|
+
const onPlatformDestroyListeners = platformInjector.get(PLATFORM_DESTROY_LISTENERS, null);
|
|
27059
|
+
onPlatformDestroyListeners === null || onPlatformDestroyListeners === void 0 ? void 0 : onPlatformDestroyListeners.add(destroyListener);
|
|
27060
|
+
appRef.onDestroy(() => {
|
|
27061
|
+
onPlatformDestroyListeners === null || onPlatformDestroyListeners === void 0 ? void 0 : onPlatformDestroyListeners.delete(destroyListener);
|
|
27062
|
+
onErrorSubscription.unsubscribe();
|
|
27063
|
+
});
|
|
27051
27064
|
appRef.bootstrap(rootComponent);
|
|
27052
27065
|
return appRef;
|
|
27053
27066
|
});
|
|
@@ -27111,7 +27124,7 @@ function createPlatformInjector(providers = [], name) {
|
|
|
27111
27124
|
name,
|
|
27112
27125
|
providers: [
|
|
27113
27126
|
{ provide: INJECTOR_SCOPE, useValue: 'platform' },
|
|
27114
|
-
{ provide:
|
|
27127
|
+
{ provide: PLATFORM_DESTROY_LISTENERS, useValue: new Set([() => _platformInjector = null]) },
|
|
27115
27128
|
...providers
|
|
27116
27129
|
],
|
|
27117
27130
|
});
|
|
@@ -27260,8 +27273,11 @@ class PlatformRef {
|
|
|
27260
27273
|
}
|
|
27261
27274
|
this._modules.slice().forEach(module => module.destroy());
|
|
27262
27275
|
this._destroyListeners.forEach(listener => listener());
|
|
27263
|
-
const
|
|
27264
|
-
|
|
27276
|
+
const destroyListeners = this._injector.get(PLATFORM_DESTROY_LISTENERS, null);
|
|
27277
|
+
if (destroyListeners) {
|
|
27278
|
+
destroyListeners.forEach(listener => listener());
|
|
27279
|
+
destroyListeners.clear();
|
|
27280
|
+
}
|
|
27265
27281
|
this._destroyed = true;
|
|
27266
27282
|
}
|
|
27267
27283
|
/**
|
|
@@ -27421,11 +27437,10 @@ function optionsReducer(dst, objs) {
|
|
|
27421
27437
|
*/
|
|
27422
27438
|
class ApplicationRef {
|
|
27423
27439
|
/** @internal */
|
|
27424
|
-
constructor(_zone, _injector, _exceptionHandler
|
|
27440
|
+
constructor(_zone, _injector, _exceptionHandler) {
|
|
27425
27441
|
this._zone = _zone;
|
|
27426
27442
|
this._injector = _injector;
|
|
27427
27443
|
this._exceptionHandler = _exceptionHandler;
|
|
27428
|
-
this._initStatus = _initStatus;
|
|
27429
27444
|
/** @internal */
|
|
27430
27445
|
this._bootstrapListeners = [];
|
|
27431
27446
|
this._views = [];
|
|
@@ -27542,7 +27557,8 @@ class ApplicationRef {
|
|
|
27542
27557
|
bootstrap(componentOrFactory, rootSelectorOrNode) {
|
|
27543
27558
|
NG_DEV_MODE && this.warnIfDestroyed();
|
|
27544
27559
|
const isComponentFactory = componentOrFactory instanceof ComponentFactory$1;
|
|
27545
|
-
|
|
27560
|
+
const initStatus = this._injector.get(ApplicationInitStatus);
|
|
27561
|
+
if (!initStatus.done) {
|
|
27546
27562
|
const standalone = !isComponentFactory && isStandalone(componentOrFactory);
|
|
27547
27563
|
const errorMessage = 'Cannot bootstrap as there are still asynchronous initializers running.' +
|
|
27548
27564
|
(standalone ? '' :
|
|
@@ -27701,13 +27717,13 @@ class ApplicationRef {
|
|
|
27701
27717
|
}
|
|
27702
27718
|
}
|
|
27703
27719
|
}
|
|
27704
|
-
ApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Injector), ɵɵinject(ErrorHandler)
|
|
27720
|
+
ApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Injector), ɵɵinject(ErrorHandler)); };
|
|
27705
27721
|
ApplicationRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac, providedIn: 'root' });
|
|
27706
27722
|
(function () {
|
|
27707
27723
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ApplicationRef, [{
|
|
27708
27724
|
type: Injectable,
|
|
27709
27725
|
args: [{ providedIn: 'root' }]
|
|
27710
|
-
}], function () { return [{ type: NgZone }, { type: Injector }, { type: ErrorHandler }
|
|
27726
|
+
}], function () { return [{ type: NgZone }, { type: Injector }, { type: ErrorHandler }]; }, null);
|
|
27711
27727
|
})();
|
|
27712
27728
|
function remove(list, el) {
|
|
27713
27729
|
const index = list.indexOf(el);
|