source: trip-planner-front/node_modules/@angular/platform-browser/esm2015/src/browser.js@ 84d0fbb

Last change on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 17.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { CommonModule, DOCUMENT, XhrFactory, ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID } from '@angular/common';
9import { APP_ID, ApplicationModule, createPlatformFactory, ErrorHandler, Inject, NgModule, NgZone, Optional, PLATFORM_ID, PLATFORM_INITIALIZER, platformCore, RendererFactory2, Sanitizer, SkipSelf, Testability, ɵINJECTOR_SCOPE as INJECTOR_SCOPE, ɵsetDocument } from '@angular/core';
10import { BrowserDomAdapter } from './browser/browser_adapter';
11import { SERVER_TRANSITION_PROVIDERS, TRANSITION_ID } from './browser/server-transition';
12import { BrowserGetTestability } from './browser/testability';
13import { BrowserXhr } from './browser/xhr';
14import { ELEMENT_PROBE_PROVIDERS } from './dom/debug/ng_probe';
15import { DomRendererFactory2 } from './dom/dom_renderer';
16import { DomEventsPlugin } from './dom/events/dom_events';
17import { EVENT_MANAGER_PLUGINS, EventManager } from './dom/events/event_manager';
18import { HAMMER_PROVIDERS } from './dom/events/hammer_gestures';
19import { KeyEventsPlugin } from './dom/events/key_events';
20import { DomSharedStylesHost, SharedStylesHost } from './dom/shared_styles_host';
21import { DomSanitizer, DomSanitizerImpl } from './security/dom_sanitization_service';
22export function initDomAdapter() {
23 BrowserDomAdapter.makeCurrent();
24 BrowserGetTestability.init();
25}
26export function errorHandler() {
27 return new ErrorHandler();
28}
29export function _document() {
30 // Tell ivy about the global document
31 ɵsetDocument(document);
32 return document;
33}
34const ɵ0 = PLATFORM_BROWSER_ID;
35export const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [
36 { provide: PLATFORM_ID, useValue: ɵ0 },
37 { provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },
38 { provide: DOCUMENT, useFactory: _document, deps: [] },
39];
40const BROWSER_SANITIZATION_PROVIDERS__PRE_R3__ = [
41 { provide: Sanitizer, useExisting: DomSanitizer },
42 { provide: DomSanitizer, useClass: DomSanitizerImpl, deps: [DOCUMENT] },
43];
44export const BROWSER_SANITIZATION_PROVIDERS__POST_R3__ = [];
45/**
46 * @security Replacing built-in sanitization providers exposes the application to XSS risks.
47 * Attacker-controlled data introduced by an unsanitized provider could expose your
48 * application to XSS risks. For more detail, see the [Security Guide](https://g.co/ng/security).
49 * @publicApi
50 */
51export const BROWSER_SANITIZATION_PROVIDERS = BROWSER_SANITIZATION_PROVIDERS__PRE_R3__;
52/**
53 * A factory function that returns a `PlatformRef` instance associated with browser service
54 * providers.
55 *
56 * @publicApi
57 */
58export const platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);
59export const BROWSER_MODULE_PROVIDERS = [
60 BROWSER_SANITIZATION_PROVIDERS,
61 { provide: INJECTOR_SCOPE, useValue: 'root' },
62 { provide: ErrorHandler, useFactory: errorHandler, deps: [] },
63 {
64 provide: EVENT_MANAGER_PLUGINS,
65 useClass: DomEventsPlugin,
66 multi: true,
67 deps: [DOCUMENT, NgZone, PLATFORM_ID]
68 },
69 { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },
70 HAMMER_PROVIDERS,
71 {
72 provide: DomRendererFactory2,
73 useClass: DomRendererFactory2,
74 deps: [EventManager, DomSharedStylesHost, APP_ID]
75 },
76 { provide: RendererFactory2, useExisting: DomRendererFactory2 },
77 { provide: SharedStylesHost, useExisting: DomSharedStylesHost },
78 { provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },
79 { provide: Testability, useClass: Testability, deps: [NgZone] },
80 { provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },
81 { provide: XhrFactory, useClass: BrowserXhr, deps: [] },
82 ELEMENT_PROBE_PROVIDERS,
83];
84/**
85 * Exports required infrastructure for all Angular apps.
86 * Included by default in all Angular apps created with the CLI
87 * `new` command.
88 * Re-exports `CommonModule` and `ApplicationModule`, making their
89 * exports and providers available to all apps.
90 *
91 * @publicApi
92 */
93export class BrowserModule {
94 constructor(parentModule) {
95 if (parentModule) {
96 throw new Error(`BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.`);
97 }
98 }
99 /**
100 * Configures a browser-based app to transition from a server-rendered app, if
101 * one is present on the page.
102 *
103 * @param params An object containing an identifier for the app to transition.
104 * The ID must match between the client and server versions of the app.
105 * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
106 */
107 static withServerTransition(params) {
108 return {
109 ngModule: BrowserModule,
110 providers: [
111 { provide: APP_ID, useValue: params.appId },
112 { provide: TRANSITION_ID, useExisting: APP_ID },
113 SERVER_TRANSITION_PROVIDERS,
114 ],
115 };
116 }
117}
118BrowserModule.decorators = [
119 { type: NgModule, args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] },] }
120];
121BrowserModule.ctorParameters = () => [
122 { type: BrowserModule, decorators: [{ type: Optional }, { type: SkipSelf }, { type: Inject, args: [BrowserModule,] }] }
123];
124export { ɵ0 };
125//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BsYXRmb3JtLWJyb3dzZXIvc3JjL2Jyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFlBQVksRUFBRSxRQUFRLEVBQUUsVUFBVSxFQUFFLG9CQUFvQixJQUFJLG1CQUFtQixFQ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