Fix mod ui build issues
[dcaegen2/platform.git] / mod2 / ui / src / polyfills.ts
1 /* 
2  *  # ============LICENSE_START=======================================================
3  *  # Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
4  *  # ================================================================================
5  *  # Licensed under the Apache License, Version 2.0 (the "License");
6  *  # you may not use this file except in compliance with the License.
7  *  # You may obtain a copy of the License at
8  *  #
9  *  #      http://www.apache.org/licenses/LICENSE-2.0
10  *  #
11  *  # Unless required by applicable law or agreed to in writing, software
12  *  # distributed under the License is distributed on an "AS IS" BASIS,
13  *  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  # See the License for the specific language governing permissions and
15  *  # limitations under the License.
16  *  # ============LICENSE_END=========================================================
17  */
18
19 /**
20  * This file includes polyfills needed by Angular and is loaded before the app.
21  * You can add your own extra polyfills to this file.
22  *
23  * This file is divided into 2 sections:
24  *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
25  *   2. Application imports. Files imported after ZoneJS that should be loaded before your main
26  *      file.
27  *
28  * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
29  * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
30  * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
31  *
32  * Learn more in https://angular.io/guide/browser-support
33  */
34
35 /***************************************************************************************************
36  * BROWSER POLYFILLS
37  */
38
39 /** IE10 and IE11 requires the following for NgClass support on SVG elements */
40 // import 'classlist.js';  // Run `npm install --save classlist.js`.
41
42 /**
43  * Web Animations `@angular/platform-browser/animations`
44  * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
45  * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
46  */
47 // import 'web-animations-js';  // Run `npm install --save web-animations-js`.
48
49 /**
50  * By default, zone.js will patch all possible macroTask and DomEvents
51  * user can disable parts of macroTask/DomEvents patch by setting following flags
52  * because those flags need to be set before `zone.js` being loaded, and webpack
53  * will put import in the top of bundle, so user need to create a separate file
54  * in this directory (for example: zone-flags.ts), and put the following flags
55  * into that file, and then add the following code before importing zone.js.
56  * import './zone-flags.ts';
57  *
58  * The flags allowed in zone-flags.ts are listed here.
59  *
60  * The following flags will work for all browsers.
61  *
62  * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
63  * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
64  * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
65  *
66  *  in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
67  *  with the following flag, it will bypass `zone.js` patch for IE/Edge
68  *
69  *  (window as any).__Zone_enable_cross_context_check = true;
70  *
71  */
72
73 /***************************************************************************************************
74  * Zone JS is required by default for Angular itself.
75  */
76 import 'zone.js/dist/zone';  // Included with Angular CLI.
77
78
79 /***************************************************************************************************
80  * APPLICATION IMPORTS
81  */