@angular/core 14.1.0 → 14.2.0-next.1
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 +26 -21
- package/esm2020/src/core_private_export.mjs +2 -2
- package/esm2020/src/core_render3_private_export.mjs +4 -4
- package/esm2020/src/di/injector_compatibility.mjs +2 -2
- package/esm2020/src/di/interface/defs.mjs +4 -1
- package/esm2020/src/render3/component_ref.mjs +4 -31
- package/esm2020/src/render3/definition.mjs +5 -5
- package/esm2020/src/render3/index.mjs +4 -4
- package/esm2020/src/render3/instructions/change_detection.mjs +3 -19
- package/esm2020/src/render3/instructions/element_validation.mjs +9 -5
- package/esm2020/src/render3/instructions/shared.mjs +10 -50
- package/esm2020/src/render3/interfaces/view.mjs +1 -1
- package/esm2020/src/render3/jit/module.mjs +2 -6
- package/esm2020/src/render3/util/change_detection_utils.mjs +7 -3
- package/esm2020/src/render3/util/misc_utils.mjs +1 -7
- 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/test_bed.mjs +442 -15
- package/esm2020/testing/src/test_bed_common.mjs +1 -1
- package/esm2020/testing/src/test_bed_compiler.mjs +823 -0
- package/esm2020/testing/src/test_hooks.mjs +5 -5
- package/esm2020/testing/src/testing.mjs +1 -1
- package/fesm2015/core.mjs +56 -132
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +132 -218
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +56 -132
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +132 -219
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +7 -100
- package/package.json +1 -1
- package/testing/index.d.ts +18 -94
- package/esm2020/src/render3/interfaces/player.mjs +0 -9
- package/esm2020/testing/src/r3_test_bed.mjs +0 -433
- package/esm2020/testing/src/r3_test_bed_compiler.mjs +0 -823
package/fesm2020/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.
|
|
2
|
+
* @license Angular v14.2.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -429,6 +429,9 @@ function ɵɵdefineInjector(options) {
|
|
|
429
429
|
function getInjectableDef(type) {
|
|
430
430
|
return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);
|
|
431
431
|
}
|
|
432
|
+
function isInjectable(type) {
|
|
433
|
+
return getInjectableDef(type) !== null;
|
|
434
|
+
}
|
|
432
435
|
/**
|
|
433
436
|
* Return definition only if it is defined directly on `type` and is not inherited from a base
|
|
434
437
|
* class of `type`.
|
|
@@ -967,7 +970,6 @@ function extractDirectiveDef(type) {
|
|
|
967
970
|
function nonNull(value) {
|
|
968
971
|
return value !== null;
|
|
969
972
|
}
|
|
970
|
-
const autoRegisterModuleById = {};
|
|
971
973
|
/**
|
|
972
974
|
* @codeGenApi
|
|
973
975
|
*/
|
|
@@ -983,9 +985,6 @@ function ɵɵdefineNgModule(def) {
|
|
|
983
985
|
schemas: def.schemas || null,
|
|
984
986
|
id: def.id || null,
|
|
985
987
|
};
|
|
986
|
-
if (def.id != null) {
|
|
987
|
-
autoRegisterModuleById[def.id] = def.type;
|
|
988
|
-
}
|
|
989
988
|
return res;
|
|
990
989
|
});
|
|
991
990
|
}
|
|
@@ -1139,6 +1138,10 @@ function getDirectiveDef(type) {
|
|
|
1139
1138
|
function getPipeDef$1(type) {
|
|
1140
1139
|
return type[NG_PIPE_DEF] || null;
|
|
1141
1140
|
}
|
|
1141
|
+
function isStandalone(type) {
|
|
1142
|
+
const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);
|
|
1143
|
+
return def !== null ? def.standalone : false;
|
|
1144
|
+
}
|
|
1142
1145
|
function getNgModuleDef(type, throwNotFound) {
|
|
1143
1146
|
const ngModuleDef = type[NG_MOD_DEF] || null;
|
|
1144
1147
|
if (!ngModuleDef && throwNotFound === true) {
|
|
@@ -4770,7 +4773,7 @@ function setCurrentInjector(injector) {
|
|
|
4770
4773
|
function injectInjectorOnly(token, flags = InjectFlags.Default) {
|
|
4771
4774
|
if (_currentInjector === undefined) {
|
|
4772
4775
|
throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&
|
|
4773
|
-
`inject() must be called from an injection context
|
|
4776
|
+
`inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \`EnvironmentInjector#runInContext\`.`);
|
|
4774
4777
|
}
|
|
4775
4778
|
else if (_currentInjector === null) {
|
|
4776
4779
|
return injectRootLimpMode(token, undefined, flags);
|
|
@@ -7258,7 +7261,7 @@ class Version {
|
|
|
7258
7261
|
/**
|
|
7259
7262
|
* @publicApi
|
|
7260
7263
|
*/
|
|
7261
|
-
const VERSION = new Version('14.
|
|
7264
|
+
const VERSION = new Version('14.2.0-next.1');
|
|
7262
7265
|
|
|
7263
7266
|
/**
|
|
7264
7267
|
* @license
|
|
@@ -7474,9 +7477,10 @@ function handleUnknownPropertyError(propName, tagName, nodeType, lView) {
|
|
|
7474
7477
|
'a part of an @NgModule where this component is declared';
|
|
7475
7478
|
if (KNOWN_CONTROL_FLOW_DIRECTIVES.has(propName)) {
|
|
7476
7479
|
// Most likely this is a control flow directive (such as `*ngIf`) used in
|
|
7477
|
-
// a template, but the `CommonModule` is not imported.
|
|
7480
|
+
// a template, but the directive or the `CommonModule` is not imported.
|
|
7481
|
+
const correspondingImport = KNOWN_CONTROL_FLOW_DIRECTIVES.get(propName);
|
|
7478
7482
|
message += `\nIf the '${propName}' is an Angular control flow directive, ` +
|
|
7479
|
-
`please make sure that the 'CommonModule' is ${importLocation}.`;
|
|
7483
|
+
`please make sure that either the '${correspondingImport}' directive or the 'CommonModule' is ${importLocation}.`;
|
|
7480
7484
|
}
|
|
7481
7485
|
else {
|
|
7482
7486
|
// May be an Angular component, which is not imported/declared?
|
|
@@ -7555,11 +7559,14 @@ function getTemplateLocationDetails(lView) {
|
|
|
7555
7559
|
return componentClassName ? ` (used in the '${componentClassName}' component template)` : '';
|
|
7556
7560
|
}
|
|
7557
7561
|
/**
|
|
7558
|
-
* The set of known control flow directives.
|
|
7562
|
+
* The set of known control flow directives and their corresponding imports.
|
|
7559
7563
|
* We use this set to produce a more precises error message with a note
|
|
7560
7564
|
* that the `CommonModule` should also be included.
|
|
7561
7565
|
*/
|
|
7562
|
-
const KNOWN_CONTROL_FLOW_DIRECTIVES = new
|
|
7566
|
+
const KNOWN_CONTROL_FLOW_DIRECTIVES = new Map([
|
|
7567
|
+
['ngIf', 'NgIf'], ['ngFor', 'NgForOf'], ['ngSwitchCase', 'NgSwitchCase'],
|
|
7568
|
+
['ngSwitchDefault', 'NgSwitchDefault']
|
|
7569
|
+
]);
|
|
7563
7570
|
/**
|
|
7564
7571
|
* Returns true if the tag name is allowed by specified schemas.
|
|
7565
7572
|
* @param schemas Array of schemas
|
|
@@ -8111,11 +8118,6 @@ function discoverLocalRefs(lView, nodeIndex) {
|
|
|
8111
8118
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8112
8119
|
* found in the LICENSE file at https://angular.io/license
|
|
8113
8120
|
*/
|
|
8114
|
-
const defaultScheduler = (() => (typeof requestAnimationFrame !== 'undefined' &&
|
|
8115
|
-
requestAnimationFrame || // browser only
|
|
8116
|
-
setTimeout // everything else
|
|
8117
|
-
)
|
|
8118
|
-
.bind(_global))();
|
|
8119
8121
|
/**
|
|
8120
8122
|
*
|
|
8121
8123
|
* @codeGenApi
|
|
@@ -11710,11 +11712,6 @@ class LContainerDebug {
|
|
|
11710
11712
|
* Use of this source code is governed by an MIT-style license that can be
|
|
11711
11713
|
* found in the LICENSE file at https://angular.io/license
|
|
11712
11714
|
*/
|
|
11713
|
-
/**
|
|
11714
|
-
* A permanent marker promise which signifies that the current CD tree is
|
|
11715
|
-
* clean.
|
|
11716
|
-
*/
|
|
11717
|
-
const _CLEAN_PROMISE = (() => Promise.resolve(null))();
|
|
11718
11715
|
/**
|
|
11719
11716
|
* Invoke `HostBindingsFunction`s for view.
|
|
11720
11717
|
*
|
|
@@ -13095,13 +13092,15 @@ function refreshContainsDirtyView(lView) {
|
|
|
13095
13092
|
for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
|
|
13096
13093
|
for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
|
|
13097
13094
|
const embeddedLView = lContainer[i];
|
|
13098
|
-
if (embeddedLView
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
|
|
13103
|
-
|
|
13104
|
-
|
|
13095
|
+
if (viewAttachedToChangeDetector(embeddedLView)) {
|
|
13096
|
+
if (embeddedLView[FLAGS] & 512 /* LViewFlags.RefreshTransplantedView */) {
|
|
13097
|
+
const embeddedTView = embeddedLView[TVIEW];
|
|
13098
|
+
ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');
|
|
13099
|
+
refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);
|
|
13100
|
+
}
|
|
13101
|
+
else if (embeddedLView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {
|
|
13102
|
+
refreshContainsDirtyView(embeddedLView);
|
|
13103
|
+
}
|
|
13105
13104
|
}
|
|
13106
13105
|
}
|
|
13107
13106
|
}
|
|
@@ -13210,42 +13209,6 @@ function markViewDirty(lView) {
|
|
|
13210
13209
|
}
|
|
13211
13210
|
return null;
|
|
13212
13211
|
}
|
|
13213
|
-
/**
|
|
13214
|
-
* Used to schedule change detection on the whole application.
|
|
13215
|
-
*
|
|
13216
|
-
* Unlike `tick`, `scheduleTick` coalesces multiple calls into one change detection run.
|
|
13217
|
-
* It is usually called indirectly by calling `markDirty` when the view needs to be
|
|
13218
|
-
* re-rendered.
|
|
13219
|
-
*
|
|
13220
|
-
* Typically `scheduleTick` uses `requestAnimationFrame` to coalesce multiple
|
|
13221
|
-
* `scheduleTick` requests. The scheduling function can be overridden in
|
|
13222
|
-
* `renderComponent`'s `scheduler` option.
|
|
13223
|
-
*/
|
|
13224
|
-
function scheduleTick(rootContext, flags) {
|
|
13225
|
-
const nothingScheduled = rootContext.flags === 0 /* RootContextFlags.Empty */;
|
|
13226
|
-
if (nothingScheduled && rootContext.clean == _CLEAN_PROMISE) {
|
|
13227
|
-
// https://github.com/angular/angular/issues/39296
|
|
13228
|
-
// should only attach the flags when really scheduling a tick
|
|
13229
|
-
rootContext.flags |= flags;
|
|
13230
|
-
let res;
|
|
13231
|
-
rootContext.clean = new Promise((r) => res = r);
|
|
13232
|
-
rootContext.scheduler(() => {
|
|
13233
|
-
if (rootContext.flags & 1 /* RootContextFlags.DetectChanges */) {
|
|
13234
|
-
rootContext.flags &= ~1 /* RootContextFlags.DetectChanges */;
|
|
13235
|
-
tickRootContext(rootContext);
|
|
13236
|
-
}
|
|
13237
|
-
if (rootContext.flags & 2 /* RootContextFlags.FlushPlayers */) {
|
|
13238
|
-
rootContext.flags &= ~2 /* RootContextFlags.FlushPlayers */;
|
|
13239
|
-
const playerHandler = rootContext.playerHandler;
|
|
13240
|
-
if (playerHandler) {
|
|
13241
|
-
playerHandler.flushPlayers();
|
|
13242
|
-
}
|
|
13243
|
-
}
|
|
13244
|
-
rootContext.clean = _CLEAN_PROMISE;
|
|
13245
|
-
res(null);
|
|
13246
|
-
});
|
|
13247
|
-
}
|
|
13248
|
-
}
|
|
13249
13212
|
function tickRootContext(rootContext) {
|
|
13250
13213
|
for (let i = 0; i < rootContext.components.length; i++) {
|
|
13251
13214
|
const rootComponent = rootContext.components[i];
|
|
@@ -13354,7 +13317,6 @@ function storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex,
|
|
|
13354
13317
|
}
|
|
13355
13318
|
}
|
|
13356
13319
|
}
|
|
13357
|
-
const CLEAN_PROMISE = _CLEAN_PROMISE;
|
|
13358
13320
|
function getOrCreateLViewCleanup(view) {
|
|
13359
13321
|
// top level variables should not be exported for performance reasons (PERF_NOTES.md)
|
|
13360
13322
|
return view[CLEANUP] || (view[CLEANUP] = ngDevMode ? new LCleanup() : []);
|
|
@@ -14113,14 +14075,8 @@ function createRootComponent(componentView, componentDef, rootLView, rootContext
|
|
|
14113
14075
|
}
|
|
14114
14076
|
return component;
|
|
14115
14077
|
}
|
|
14116
|
-
function createRootContext(
|
|
14117
|
-
return {
|
|
14118
|
-
components: [],
|
|
14119
|
-
scheduler: scheduler || defaultScheduler,
|
|
14120
|
-
clean: CLEAN_PROMISE,
|
|
14121
|
-
playerHandler: playerHandler || null,
|
|
14122
|
-
flags: 0 /* RootContextFlags.Empty */
|
|
14123
|
-
};
|
|
14078
|
+
function createRootContext() {
|
|
14079
|
+
return { components: [] };
|
|
14124
14080
|
}
|
|
14125
14081
|
/**
|
|
14126
14082
|
* Used to enable lifecycle hooks on the root component.
|
|
@@ -14140,25 +14096,6 @@ function LifecycleHooksFeature() {
|
|
|
14140
14096
|
ngDevMode && assertDefined(tNode, 'TNode is required');
|
|
14141
14097
|
registerPostOrderHooks(getLView()[TVIEW], tNode);
|
|
14142
14098
|
}
|
|
14143
|
-
/**
|
|
14144
|
-
* Wait on component until it is rendered.
|
|
14145
|
-
*
|
|
14146
|
-
* This function returns a `Promise` which is resolved when the component's
|
|
14147
|
-
* change detection is executed. This is determined by finding the scheduler
|
|
14148
|
-
* associated with the `component`'s render tree and waiting until the scheduler
|
|
14149
|
-
* flushes. If nothing is scheduled, the function returns a resolved promise.
|
|
14150
|
-
*
|
|
14151
|
-
* Example:
|
|
14152
|
-
* ```
|
|
14153
|
-
* await whenRendered(myComponent);
|
|
14154
|
-
* ```
|
|
14155
|
-
*
|
|
14156
|
-
* @param component Component to wait upon
|
|
14157
|
-
* @returns Promise which resolves when the component is rendered.
|
|
14158
|
-
*/
|
|
14159
|
-
function whenRendered(component) {
|
|
14160
|
-
return getRootContext(component).clean;
|
|
14161
|
-
}
|
|
14162
14099
|
|
|
14163
14100
|
/**
|
|
14164
14101
|
* @license
|
|
@@ -15143,21 +15080,6 @@ function detectChanges(component) {
|
|
|
15143
15080
|
const view = getComponentViewByInstance(component);
|
|
15144
15081
|
detectChangesInternal(view[TVIEW], view, component);
|
|
15145
15082
|
}
|
|
15146
|
-
/**
|
|
15147
|
-
* Marks the component as dirty (needing change detection). Marking a component dirty will
|
|
15148
|
-
* schedule a change detection on it at some point in the future.
|
|
15149
|
-
*
|
|
15150
|
-
* Marking an already dirty component as dirty won't do anything. Only one outstanding change
|
|
15151
|
-
* detection can be scheduled per component tree.
|
|
15152
|
-
*
|
|
15153
|
-
* @param component Component to mark as dirty.
|
|
15154
|
-
*/
|
|
15155
|
-
function markDirty(component) {
|
|
15156
|
-
ngDevMode && assertDefined(component, 'component');
|
|
15157
|
-
const rootView = markViewDirty(getComponentViewByInstance(component));
|
|
15158
|
-
ngDevMode && assertDefined(rootView[CONTEXT], 'rootContext should be defined');
|
|
15159
|
-
scheduleTick(rootView[CONTEXT], 1 /* RootContextFlags.DetectChanges */);
|
|
15160
|
-
}
|
|
15161
15083
|
|
|
15162
15084
|
/**
|
|
15163
15085
|
* @license
|
|
@@ -24342,10 +24264,6 @@ function compileNgModuleDefs(moduleType, ngModule, allowDuplicateDeclarationsInR
|
|
|
24342
24264
|
configurable: !!ngDevMode,
|
|
24343
24265
|
});
|
|
24344
24266
|
}
|
|
24345
|
-
function isStandalone(type) {
|
|
24346
|
-
const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);
|
|
24347
|
-
return def !== null ? def.standalone : false;
|
|
24348
|
-
}
|
|
24349
24267
|
function generateStandaloneInDeclarationsError(type, location) {
|
|
24350
24268
|
const prefix = `Unexpected "${stringifyForError(type)}" found in the "declarations" array of the`;
|
|
24351
24269
|
const suffix = `"${stringifyForError(type)}" is marked as standalone and can't be declared ` +
|
|
@@ -25944,7 +25862,8 @@ class CompilerFactory {
|
|
|
25944
25862
|
* @globalApi ng
|
|
25945
25863
|
*/
|
|
25946
25864
|
function applyChanges(component) {
|
|
25947
|
-
|
|
25865
|
+
ngDevMode && assertDefined(component, 'component');
|
|
25866
|
+
markViewDirty(getComponentViewByInstance(component));
|
|
25948
25867
|
getRootComponents(component).forEach(rootComponent => detectChanges(rootComponent));
|
|
25949
25868
|
}
|
|
25950
25869
|
|
|
@@ -26873,7 +26792,8 @@ function runPlatformInitializers(injector) {
|
|
|
26873
26792
|
}
|
|
26874
26793
|
}
|
|
26875
26794
|
/**
|
|
26876
|
-
* Internal
|
|
26795
|
+
* Internal create application API that implements the core application creation logic and optional
|
|
26796
|
+
* bootstrap logic.
|
|
26877
26797
|
*
|
|
26878
26798
|
* Platforms (such as `platform-browser`) may require different set of application and platform
|
|
26879
26799
|
* providers for an application to function correctly. As a result, platforms may use this function
|
|
@@ -26882,11 +26802,13 @@ function runPlatformInitializers(injector) {
|
|
|
26882
26802
|
*
|
|
26883
26803
|
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
|
26884
26804
|
*/
|
|
26885
|
-
function
|
|
26805
|
+
function internalCreateApplication(config) {
|
|
26886
26806
|
const { rootComponent, appProviders, platformProviders } = config;
|
|
26887
|
-
NG_DEV_MODE &&
|
|
26807
|
+
if (NG_DEV_MODE && rootComponent !== undefined) {
|
|
26808
|
+
assertStandaloneComponentType(rootComponent);
|
|
26809
|
+
}
|
|
26888
26810
|
const platformInjector = createOrReusePlatformInjector(platformProviders);
|
|
26889
|
-
const ngZone =
|
|
26811
|
+
const ngZone = getNgZone('zone.js', getNgZoneOptions());
|
|
26890
26812
|
return ngZone.run(() => {
|
|
26891
26813
|
// Create root application injector based on a set of providers configured at the platform
|
|
26892
26814
|
// bootstrap level as well as providers passed to the bootstrap call by a user.
|
|
@@ -26894,8 +26816,8 @@ function internalBootstrapApplication(config) {
|
|
|
26894
26816
|
{ provide: NgZone, useValue: ngZone },
|
|
26895
26817
|
...(appProviders || []), //
|
|
26896
26818
|
];
|
|
26897
|
-
const
|
|
26898
|
-
const exceptionHandler =
|
|
26819
|
+
const envInjector = createEnvironmentInjector(allAppProviders, platformInjector, 'Environment Injector');
|
|
26820
|
+
const exceptionHandler = envInjector.get(ErrorHandler, null);
|
|
26899
26821
|
if (NG_DEV_MODE && !exceptionHandler) {
|
|
26900
26822
|
throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, 'No `ErrorHandler` found in the Dependency Injection tree.');
|
|
26901
26823
|
}
|
|
@@ -26907,23 +26829,25 @@ function internalBootstrapApplication(config) {
|
|
|
26907
26829
|
}
|
|
26908
26830
|
});
|
|
26909
26831
|
});
|
|
26832
|
+
// If the whole platform is destroyed, invoke the `destroy` method
|
|
26833
|
+
// for all bootstrapped applications as well.
|
|
26834
|
+
const destroyListener = () => envInjector.destroy();
|
|
26835
|
+
const onPlatformDestroyListeners = platformInjector.get(PLATFORM_DESTROY_LISTENERS);
|
|
26836
|
+
onPlatformDestroyListeners.add(destroyListener);
|
|
26837
|
+
envInjector.onDestroy(() => {
|
|
26838
|
+
onErrorSubscription.unsubscribe();
|
|
26839
|
+
onPlatformDestroyListeners.delete(destroyListener);
|
|
26840
|
+
});
|
|
26910
26841
|
return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {
|
|
26911
|
-
const initStatus =
|
|
26842
|
+
const initStatus = envInjector.get(ApplicationInitStatus);
|
|
26912
26843
|
initStatus.runInitializers();
|
|
26913
26844
|
return initStatus.donePromise.then(() => {
|
|
26914
|
-
const localeId =
|
|
26845
|
+
const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);
|
|
26915
26846
|
setLocaleId(localeId || DEFAULT_LOCALE_ID);
|
|
26916
|
-
const appRef =
|
|
26917
|
-
|
|
26918
|
-
|
|
26919
|
-
|
|
26920
|
-
const onPlatformDestroyListeners = platformInjector.get(PLATFORM_DESTROY_LISTENERS, null);
|
|
26921
|
-
onPlatformDestroyListeners?.add(destroyListener);
|
|
26922
|
-
appRef.onDestroy(() => {
|
|
26923
|
-
onPlatformDestroyListeners?.delete(destroyListener);
|
|
26924
|
-
onErrorSubscription.unsubscribe();
|
|
26925
|
-
});
|
|
26926
|
-
appRef.bootstrap(rootComponent);
|
|
26847
|
+
const appRef = envInjector.get(ApplicationRef);
|
|
26848
|
+
if (rootComponent !== undefined) {
|
|
26849
|
+
appRef.bootstrap(rootComponent);
|
|
26850
|
+
}
|
|
26927
26851
|
return appRef;
|
|
26928
26852
|
});
|
|
26929
26853
|
});
|
|
@@ -29895,5 +29819,5 @@ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
|
29895
29819
|
* Generated bundle index. Do not edit.
|
|
29896
29820
|
*/
|
|
29897
29821
|
|
|
29898
|
-
export { ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, isDevMode, platformCore, reflectComponentType, resolveForwardRef, setTestabilityGetter, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, ViewRef$1 as ɵViewRef, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, coerceToBoolean as ɵcoerceToBoolean, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef,
|
|
29822
|
+
export { ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, isDevMode, platformCore, reflectComponentType, resolveForwardRef, setTestabilityGetter, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, ViewRef$1 as ɵViewRef, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, coerceToBoolean as ɵcoerceToBoolean, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalCreateApplication as ɵinternalCreateApplication, isBoundToModule as ɵisBoundToModule, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, isInjectable as ɵisInjectable, isListLikeIterable as ɵisListLikeIterable, isObservable as ɵisObservable, isPromise as ɵisPromise, isStandalone as ɵisStandalone, isSubscribable as ɵisSubscribable, ɵivyEnabled, makeDecorator as ɵmakeDecorator, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishDefaultGlobalUtils$1 as ɵpublishDefaultGlobalUtils, publishGlobalUtil as ɵpublishGlobalUtil, registerLocaleData as ɵregisterLocaleData, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setClassMetadata as ɵsetClassMetadata, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵStandaloneFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵviewQuery };
|
|
29899
29823
|
//# sourceMappingURL=core.mjs.map
|