added svcapi ui and camunda code
[it/otf.git] / otf-frontend / client / src / polyfills.ts
diff --git a/otf-frontend/client/src/polyfills.ts b/otf-frontend/client/src/polyfills.ts
new file mode 100644 (file)
index 0000000..404f96f
--- /dev/null
@@ -0,0 +1,85 @@
+/*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
+#                                                                              #\r
+#   Licensed under the Apache License, Version 2.0 (the "License");            #\r
+#   you may not use this file except in compliance with the License.           #\r
+#   You may obtain a copy of the License at                                    #\r
+#                                                                              #\r
+#       http://www.apache.org/licenses/LICENSE-2.0                             #\r
+#                                                                              #\r
+#   Unless required by applicable law or agreed to in writing, software        #\r
+#   distributed under the License is distributed on an "AS IS" BASIS,          #\r
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
+#   See the License for the specific language governing permissions and        #\r
+#   limitations under the License.                                             #\r
+##############################################################################*/\r
+\r
+\r
+/**\r
+ * This file includes polyfills needed by Angular and is loaded before the app.\r
+ * You can add your own extra polyfills to this file.\r
+ *\r
+ * This file is divided into 2 sections:\r
+ *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.\r
+ *   2. Application imports. Files imported after ZoneJS that should be loaded before your main\r
+ *      file.\r
+ *\r
+ * The current setup is for so-called "evergreen" browsers; the last versions of browsers that\r
+ * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),\r
+ * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.\r
+ *\r
+ * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html\r
+ */\r
+\r
+/***************************************************************************************************\r
+ * BROWSER POLYFILLS\r
+ */\r
+\r
+/** IE9, IE10 and IE11 requires all of the following polyfills. **/\r
+import 'core-js/es6/symbol';\r
+import 'core-js/es6/object';\r
+import 'core-js/es6/function';\r
+import 'core-js/es6/parse-int';\r
+import 'core-js/es6/parse-float';\r
+import 'core-js/es6/number';\r
+import 'core-js/es6/math';\r
+import 'core-js/es6/string';\r
+import 'core-js/es6/date';\r
+import 'core-js/es6/array';\r
+import 'core-js/es6/regexp';\r
+import 'core-js/es6/map';\r
+import 'core-js/es6/weak-map';\r
+import 'core-js/es6/set';\r
+\r
+(window as any).global = window;\r
+\r
+/** IE10 and IE11 requires the following for NgClass support on SVG elements */\r
+//import 'classlist.js';  // Run `npm install --save classlist.js`.\r
+\r
+/** Evergreen browsers require these. **/\r
+import 'core-js/es6/reflect';\r
+import 'core-js/es7/reflect';\r
+\r
+/**\r
+ * Required to support Web Animations `@angular/platform-browser/animations`.\r
+ * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation\r
+ **/\r
+//import 'web-animations-js';  // Run `npm install --save web-animations-js`.\r
+\r
+/***************************************************************************************************\r
+ * Zone JS is required by Angular itself.\r
+ */\r
+import 'zone.js/dist/zone'; // Included with Angular CLI.\r
+\r
+/***************************************************************************************************\r
+ * APPLICATION IMPORTS\r
+ */\r
+\r
+/**\r
+ * Date, currency, decimal and percent pipes.\r
+ * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10\r
+ */\r
+// import 'intl';  // Run `npm install --save intl`.\r
+/**\r
+ * Need to import at least one locale-data with intl.\r
+ */\r
+// import 'intl/locale-data/jsonp/en';\r