@angular/platform-browser 14.0.0-rc.3 → 14.0.2
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/animations/index.d.ts +1 -1
- package/esm2020/animations/src/animation_builder.mjs +3 -3
- package/esm2020/animations/src/animation_renderer.mjs +3 -3
- package/esm2020/animations/src/module.mjs +8 -8
- package/esm2020/animations/src/providers.mjs +3 -3
- package/esm2020/src/browser/meta.mjs +3 -3
- package/esm2020/src/browser/title.mjs +3 -3
- package/esm2020/src/browser/transfer_state.mjs +7 -7
- package/esm2020/src/browser/xhr.mjs +3 -3
- package/esm2020/src/browser.mjs +41 -14
- package/esm2020/src/dom/dom_renderer.mjs +3 -3
- package/esm2020/src/dom/events/dom_events.mjs +3 -3
- package/esm2020/src/dom/events/event_manager.mjs +3 -3
- package/esm2020/src/dom/events/hammer_gestures.mjs +10 -10
- package/esm2020/src/dom/events/key_events.mjs +3 -3
- package/esm2020/src/dom/shared_styles_host.mjs +6 -6
- package/esm2020/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/browser.mjs +4 -4
- package/fesm2015/animations.mjs +18 -18
- package/fesm2015/platform-browser.mjs +92 -65
- package/fesm2015/platform-browser.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2020/animations.mjs +18 -18
- package/fesm2020/platform-browser.mjs +92 -65
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/index.d.ts +38 -10
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2015/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v14.0.
|
2
|
+
* @license Angular v14.0.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -235,13 +235,13 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
235
235
|
*/
|
236
236
|
class BrowserTestingModule {
|
237
237
|
}
|
238
|
-
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
239
|
-
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.
|
240
|
-
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.
|
238
|
+
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
239
|
+
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
|
240
|
+
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserTestingModule, providers: [
|
241
241
|
{ provide: APP_ID, useValue: 'a' },
|
242
242
|
{ provide: NgZone, useFactory: createNgZone },
|
243
243
|
], imports: [BrowserModule] });
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
245
245
|
type: NgModule,
|
246
246
|
args: [{
|
247
247
|
exports: [BrowserModule],
|
package/fesm2020/animations.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v14.0.
|
2
|
+
* @license Angular v14.0.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -35,9 +35,9 @@ class BrowserAnimationBuilder extends AnimationBuilder {
|
|
35
35
|
return new BrowserAnimationFactory(id, this._renderer);
|
36
36
|
}
|
37
37
|
}
|
38
|
-
BrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
39
|
-
BrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
38
|
+
BrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
39
|
+
BrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserAnimationBuilder });
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
|
41
41
|
type: Injectable
|
42
42
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: undefined, decorators: [{
|
43
43
|
type: Inject,
|
@@ -218,9 +218,9 @@ class AnimationRendererFactory {
|
|
218
218
|
return this.engine.whenRenderingDone();
|
219
219
|
}
|
220
220
|
}
|
221
|
-
AnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
222
|
-
AnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
221
|
+
AnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AnimationRendererFactory, deps: [{ token: i0.RendererFactory2 }, { token: i1.ɵAnimationEngine }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
222
|
+
AnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AnimationRendererFactory });
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AnimationRendererFactory, decorators: [{
|
224
224
|
type: Injectable
|
225
225
|
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i1.ɵAnimationEngine }, { type: i0.NgZone }]; } });
|
226
226
|
class BaseAnimationRenderer {
|
@@ -375,9 +375,9 @@ class InjectableAnimationEngine extends ɵAnimationEngine {
|
|
375
375
|
this.flush();
|
376
376
|
}
|
377
377
|
}
|
378
|
-
InjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
379
|
-
InjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
378
|
+
InjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
379
|
+
InjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InjectableAnimationEngine });
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: InjectableAnimationEngine, decorators: [{
|
381
381
|
type: Injectable
|
382
382
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
383
383
|
type: Inject,
|
@@ -452,10 +452,10 @@ class BrowserAnimationsModule {
|
|
452
452
|
};
|
453
453
|
}
|
454
454
|
}
|
455
|
-
BrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
456
|
-
BrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.
|
457
|
-
BrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.
|
458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
455
|
+
BrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
456
|
+
BrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] });
|
457
|
+
BrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
|
458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserAnimationsModule, decorators: [{
|
459
459
|
type: NgModule,
|
460
460
|
args: [{
|
461
461
|
exports: [BrowserModule],
|
@@ -468,10 +468,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.3", ng
|
|
468
468
|
*/
|
469
469
|
class NoopAnimationsModule {
|
470
470
|
}
|
471
|
-
NoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
472
|
-
NoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.
|
473
|
-
NoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.
|
474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
471
|
+
NoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
472
|
+
NoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] });
|
473
|
+
NoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: NoopAnimationsModule, decorators: [{
|
475
475
|
type: NgModule,
|
476
476
|
args: [{
|
477
477
|
exports: [BrowserModule],
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v14.0.
|
2
|
+
* @license Angular v14.0.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -218,9 +218,9 @@ class BrowserXhr {
|
|
218
218
|
return new XMLHttpRequest();
|
219
219
|
}
|
220
220
|
}
|
221
|
-
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
222
|
-
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
221
|
+
BrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
222
|
+
BrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserXhr });
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserXhr, decorators: [{
|
224
224
|
type: Injectable
|
225
225
|
}] });
|
226
226
|
|
@@ -303,9 +303,9 @@ class EventManager {
|
|
303
303
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
304
304
|
}
|
305
305
|
}
|
306
|
-
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
307
|
-
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
306
|
+
EventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
307
|
+
EventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: EventManager });
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: EventManager, decorators: [{
|
309
309
|
type: Injectable
|
310
310
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
311
311
|
type: Inject,
|
@@ -351,9 +351,9 @@ class SharedStylesHost {
|
|
351
351
|
return Array.from(this._stylesSet);
|
352
352
|
}
|
353
353
|
}
|
354
|
-
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
355
|
-
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
354
|
+
SharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
355
|
+
SharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SharedStylesHost });
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SharedStylesHost, decorators: [{
|
357
357
|
type: Injectable
|
358
358
|
}] });
|
359
359
|
class DomSharedStylesHost extends SharedStylesHost {
|
@@ -392,9 +392,9 @@ class DomSharedStylesHost extends SharedStylesHost {
|
|
392
392
|
this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));
|
393
393
|
}
|
394
394
|
}
|
395
|
-
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
396
|
-
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
395
|
+
DomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
396
|
+
DomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSharedStylesHost });
|
397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSharedStylesHost, decorators: [{
|
398
398
|
type: Injectable
|
399
399
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
400
400
|
type: Inject,
|
@@ -515,9 +515,9 @@ class DomRendererFactory2 {
|
|
515
515
|
begin() { }
|
516
516
|
end() { }
|
517
517
|
}
|
518
|
-
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
519
|
-
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
518
|
+
DomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
519
|
+
DomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomRendererFactory2 });
|
520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
521
521
|
type: Injectable
|
522
522
|
}], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{
|
523
523
|
type: Inject,
|
@@ -738,9 +738,9 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
738
738
|
return target.removeEventListener(eventName, callback);
|
739
739
|
}
|
740
740
|
}
|
741
|
-
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
742
|
-
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
741
|
+
DomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
742
|
+
DomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomEventsPlugin });
|
743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
744
744
|
type: Injectable
|
745
745
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
746
746
|
type: Inject,
|
@@ -916,9 +916,9 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
916
916
|
}
|
917
917
|
}
|
918
918
|
}
|
919
|
-
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
920
|
-
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
919
|
+
KeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
920
|
+
KeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: KeyEventsPlugin });
|
921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
922
922
|
type: Injectable
|
923
923
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
924
924
|
type: Inject,
|
@@ -956,9 +956,12 @@ function getEventKey(event) {
|
|
956
956
|
*/
|
957
957
|
const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
958
958
|
/**
|
959
|
-
* Bootstraps an instance of an Angular application and renders a
|
959
|
+
* Bootstraps an instance of an Angular application and renders a standalone component as the
|
960
|
+
* application's root component. More information about standalone components can be found in [this
|
961
|
+
* guide](guide/standalone-components).
|
960
962
|
*
|
961
|
-
*
|
963
|
+
* @usageNotes
|
964
|
+
* The root component passed into this function *must* be a standalone one (should have the
|
962
965
|
* `standalone: true` flag in the `@Component` decorator config).
|
963
966
|
*
|
964
967
|
* ```typescript
|
@@ -971,23 +974,46 @@ const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
971
974
|
* const appRef: ApplicationRef = await bootstrapApplication(RootComponent);
|
972
975
|
* ```
|
973
976
|
*
|
974
|
-
*
|
975
|
-
*
|
976
|
-
*
|
977
|
-
*
|
977
|
+
* You can add the list of providers that should be available in the application injector by
|
978
|
+
* specifying the `providers` field in an object passed as the second argument:
|
979
|
+
*
|
980
|
+
* ```typescript
|
981
|
+
* await bootstrapApplication(RootComponent, {
|
982
|
+
* providers: [
|
983
|
+
* {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}
|
984
|
+
* ]
|
985
|
+
* });
|
986
|
+
* ```
|
987
|
+
*
|
988
|
+
* The `importProvidersFrom` helper method can be used to collect all providers from any
|
989
|
+
* existing NgModule (and transitively from all NgModules that it imports):
|
990
|
+
*
|
991
|
+
* ```typescript
|
992
|
+
* await bootstrapApplication(RootComponent, {
|
993
|
+
* providers: [
|
994
|
+
* importProvidersFrom(SomeNgModule)
|
995
|
+
* ]
|
996
|
+
* });
|
997
|
+
* ```
|
998
|
+
*
|
999
|
+
* Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by
|
1000
|
+
* default. You can add [Testability](api/core/Testability) by getting the list of necessary
|
1001
|
+
* providers using `provideProtractorTestingSupport()` function and adding them into the `providers`
|
1002
|
+
* array, for example:
|
978
1003
|
*
|
979
1004
|
* ```typescript
|
980
1005
|
* import {provideProtractorTestingSupport} from '@angular/platform-browser';
|
981
1006
|
*
|
982
|
-
* await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);
|
1007
|
+
* await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});
|
983
1008
|
* ```
|
984
1009
|
*
|
985
|
-
* @param rootComponent A reference to a
|
986
|
-
* @param options
|
1010
|
+
* @param rootComponent A reference to a standalone component that should be rendered.
|
1011
|
+
* @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for
|
987
1012
|
* additional info.
|
988
1013
|
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
989
1014
|
*
|
990
1015
|
* @publicApi
|
1016
|
+
* @developerPreview
|
991
1017
|
*/
|
992
1018
|
function bootstrapApplication(rootComponent, options) {
|
993
1019
|
return ɵinternalBootstrapApplication({
|
@@ -1008,6 +1034,7 @@ function bootstrapApplication(rootComponent, options) {
|
|
1008
1034
|
* @returns An array of providers required to setup Testability for an application and make it
|
1009
1035
|
* available for testing using Protractor.
|
1010
1036
|
*
|
1037
|
+
* @developerPreview
|
1011
1038
|
* @publicApi
|
1012
1039
|
*/
|
1013
1040
|
function provideProtractorTestingSupport() {
|
@@ -1117,13 +1144,13 @@ class BrowserModule {
|
|
1117
1144
|
};
|
1118
1145
|
}
|
1119
1146
|
}
|
1120
|
-
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1121
|
-
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.
|
1122
|
-
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.
|
1147
|
+
BrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
1148
|
+
BrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });
|
1149
|
+
BrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserModule, providers: [
|
1123
1150
|
...BROWSER_MODULE_PROVIDERS,
|
1124
1151
|
...TESTABILITY_PROVIDERS
|
1125
1152
|
], imports: [CommonModule, ApplicationModule] });
|
1126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
1153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserModule, decorators: [{
|
1127
1154
|
type: NgModule,
|
1128
1155
|
args: [{
|
1129
1156
|
providers: [
|
@@ -1304,9 +1331,9 @@ class Meta {
|
|
1304
1331
|
return META_KEYS_MAP[prop] || prop;
|
1305
1332
|
}
|
1306
1333
|
}
|
1307
|
-
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1308
|
-
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
1309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
1334
|
+
Meta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1335
|
+
Meta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });
|
1336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Meta, decorators: [{
|
1310
1337
|
type: Injectable,
|
1311
1338
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1312
1339
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1361,9 +1388,9 @@ class Title {
|
|
1361
1388
|
this._doc.title = newTitle || '';
|
1362
1389
|
}
|
1363
1390
|
}
|
1364
|
-
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1365
|
-
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
1366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
1391
|
+
Title.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
1392
|
+
Title.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });
|
1393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: Title, decorators: [{
|
1367
1394
|
type: Injectable,
|
1368
1395
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1369
1396
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1630,9 +1657,9 @@ class TransferState {
|
|
1630
1657
|
return JSON.stringify(this.store);
|
1631
1658
|
}
|
1632
1659
|
}
|
1633
|
-
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1634
|
-
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
1635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
1660
|
+
TransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1661
|
+
TransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TransferState });
|
1662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: TransferState, decorators: [{
|
1636
1663
|
type: Injectable
|
1637
1664
|
}] });
|
1638
1665
|
function initTransferState(doc, appId) {
|
@@ -1659,10 +1686,10 @@ function initTransferState(doc, appId) {
|
|
1659
1686
|
*/
|
1660
1687
|
class BrowserTransferStateModule {
|
1661
1688
|
}
|
1662
|
-
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1663
|
-
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.
|
1664
|
-
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.
|
1665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
1689
|
+
BrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1690
|
+
BrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: BrowserTransferStateModule });
|
1691
|
+
BrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserTransferStateModule, providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }] });
|
1692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: BrowserTransferStateModule, decorators: [{
|
1666
1693
|
type: NgModule,
|
1667
1694
|
args: [{
|
1668
1695
|
providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],
|
@@ -1838,9 +1865,9 @@ class HammerGestureConfig {
|
|
1838
1865
|
return mc;
|
1839
1866
|
}
|
1840
1867
|
}
|
1841
|
-
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1842
|
-
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
1843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
1868
|
+
HammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1869
|
+
HammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerGestureConfig });
|
1870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1844
1871
|
type: Injectable
|
1845
1872
|
}] });
|
1846
1873
|
/**
|
@@ -1936,9 +1963,9 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1936
1963
|
return this._config.events.indexOf(eventName) > -1;
|
1937
1964
|
}
|
1938
1965
|
}
|
1939
|
-
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1940
|
-
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
1941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
1966
|
+
HammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
1967
|
+
HammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerGesturesPlugin });
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1942
1969
|
type: Injectable
|
1943
1970
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1944
1971
|
type: Inject,
|
@@ -1965,9 +1992,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.3", ng
|
|
1965
1992
|
*/
|
1966
1993
|
class HammerModule {
|
1967
1994
|
}
|
1968
|
-
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
1969
|
-
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.
|
1970
|
-
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.
|
1995
|
+
HammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1996
|
+
HammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: HammerModule });
|
1997
|
+
HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerModule, providers: [
|
1971
1998
|
{
|
1972
1999
|
provide: EVENT_MANAGER_PLUGINS,
|
1973
2000
|
useClass: HammerGesturesPlugin,
|
@@ -1976,7 +2003,7 @@ HammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1976
2003
|
},
|
1977
2004
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1978
2005
|
] });
|
1979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
2006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HammerModule, decorators: [{
|
1980
2007
|
type: NgModule,
|
1981
2008
|
args: [{
|
1982
2009
|
providers: [
|
@@ -2031,9 +2058,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.3", ng
|
|
2031
2058
|
*/
|
2032
2059
|
class DomSanitizer {
|
2033
2060
|
}
|
2034
|
-
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
2035
|
-
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
2036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
2061
|
+
DomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
2062
|
+
DomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });
|
2063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSanitizer, decorators: [{
|
2037
2064
|
type: Injectable,
|
2038
2065
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
2039
2066
|
}] });
|
@@ -2097,9 +2124,9 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
2097
2124
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
2098
2125
|
}
|
2099
2126
|
}
|
2100
|
-
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.
|
2101
|
-
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.
|
2102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
2127
|
+
DomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2128
|
+
DomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });
|
2129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
2103
2130
|
type: Injectable,
|
2104
2131
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
2105
2132
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -2125,7 +2152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.3", ng
|
|
2125
2152
|
/**
|
2126
2153
|
* @publicApi
|
2127
2154
|
*/
|
2128
|
-
const VERSION = new Version('14.0.
|
2155
|
+
const VERSION = new Version('14.0.2');
|
2129
2156
|
|
2130
2157
|
/**
|
2131
2158
|
* @license
|