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