Add code for data format webtool
[dcaegen2/platform/cli.git] / dcaedftool / src / polyfills.ts
1 // org.onap.dcae
2 // ============LICENSE_START====================================================
3 // Copyright (c) 2018 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 // ECOMP is a trademark and service mark of AT&T Intellectual Property.
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/docs/ts/latest/guide/browser-support.html
33  */
34
35 /***************************************************************************************************
36  * BROWSER POLYFILLS
37  */
38
39 /** IE9, IE10 and IE11 requires all of the following polyfills. **/
40  import 'core-js/es6/symbol';
41  import 'core-js/es6/object';
42  import 'core-js/es6/function';
43  import 'core-js/es6/parse-int';
44  import 'core-js/es6/parse-float';
45  import 'core-js/es6/number';
46  import 'core-js/es6/math';
47  import 'core-js/es6/string';
48  import 'core-js/es6/date';
49  import 'core-js/es6/array';
50  import 'core-js/es6/regexp';
51  import 'core-js/es6/map';
52  import 'core-js/es6/weak-map';
53  import 'core-js/es6/set';
54
55 /** IE10 and IE11 requires the following for NgClass support on SVG elements */
56  import 'classlist.js';  // Run `npm install --save classlist.js`.
57
58 /** IE10 and IE11 requires the following to support `@angular/animation`. */
59  import 'web-animations-js';  // Run `npm install --save web-animations-js`.
60
61
62 /** Evergreen browsers require these. **/
63 import 'core-js/es6/reflect';
64 import 'core-js/es7/reflect';
65
66
67 /** ALL Firefox browsers require the following to support `@angular/animation`. **/
68   import 'web-animations-js';  // Run `npm install --save web-animations-js`.
69
70
71
72 /***************************************************************************************************
73  * Zone JS is required by Angular itself.
74  */
75 import 'zone.js/dist/zone';  // Included with Angular CLI.
76
77
78
79 /***************************************************************************************************
80  * APPLICATION IMPORTS
81  */
82
83 /**
84  * Date, currency, decimal and percent pipes.
85  * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
86  */
87  import 'intl';  // Run `npm install --save intl`.
88 /**
89  * Need to import at least one locale-data with intl.
90  */
91  import 'intl/locale-data/jsonp/en';