| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | */ |
| 18 | /** |
| 19 | * This file includes polyfills needed by Angular and is loaded before the app. |
| 20 | * You can add your own extra polyfills to this file. |
| 21 | * |
| 22 | * This file is divided into 2 sections: |
| 23 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. |
| 24 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main |
| 25 | * file. |
| 26 | * |
| 27 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that |
| 28 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), |
| 29 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. |
| 30 | * |
| 31 | * Learn more in https://angular.io/guide/browser-support |
| 32 | */ |
| 33 | |
| 34 | /*************************************************************************************************** |
| 35 | * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates. |
| 36 | */ |
| 37 | import '@angular/localize/init'; |
| 38 | |
| 39 | /*************************************************************************************************** |
| 40 | * BROWSER POLYFILLS |
| SANDHYA.JS | 0a34dfa | 2023-04-25 23:59:41 +0530 | [diff] [blame^] | 41 | */ // Run `npm install --save web-animations-js`. |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 42 | |
| 43 | /** |
| 44 | * By default, zone.js will patch all possible macroTask and DomEvents |
| 45 | * user can disable parts of macroTask/DomEvents patch by setting following flags |
| 46 | * because those flags need to be set before `zone.js` being loaded, and webpack |
| 47 | * will put import in the top of bundle, so user need to create a separate file |
| 48 | * in this directory (for example: zone-flags.ts), and put the following flags |
| 49 | * into that file, and then add the following code before importing zone.js. |
| 50 | * import './zone-flags.ts'; |
| 51 | * |
| 52 | * The flags allowed in zone-flags.ts are listed here. |
| 53 | * |
| 54 | * The following flags will work for all browsers. |
| 55 | * |
| 56 | * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame |
| 57 | * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick |
| 58 | * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames |
| 59 | * |
| 60 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js |
| 61 | * with the following flag, it will bypass `zone.js` patch for IE/Edge |
| 62 | * |
| 63 | * (window as any).__Zone_enable_cross_context_check = true; |
| 64 | * |
| 65 | */ |
| 66 | |
| 67 | /*************************************************************************************************** |
| 68 | * Zone JS is required by default for Angular itself. |
| 69 | */ |
| bravof | cedffec | 2021-05-05 16:50:46 -0400 | [diff] [blame] | 70 | import 'zone.js'; // Included with Angular CLI. |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 71 | |
| SANDHYA.JS | 0a34dfa | 2023-04-25 23:59:41 +0530 | [diff] [blame^] | 72 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 73 | (window as any).process = { |
| 74 | env: { DEBUG: undefined } |
| 75 | }; |
| 76 | |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 77 | /*************************************************************************************************** |
| 78 | * APPLICATION IMPORTS |
| 79 | */ |