From d7bd9aa50bbc07281fa2032f5dcbd829ae202512 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Tue, 19 Sep 2017 10:03:41 +0100 Subject: [PATCH] [ADF-1568] Clean polyfills (#2347) Use msSaveOrOpenBlob in content service for save fiel in IE --- demo-shell-ng2/app/polyfills.ts | 4 +- demo-shell-ng2/config/webpack.common.js | 16 ++ demo-shell-ng2/index.html | 18 +- demo-shell-ng2/package.json | 2 + demo-shell-ng2/public/js/classList.js | 240 ++++++++++++++++++ demo-shell-ng2/public/js/promisePolyfill.js | 3 - .../src/services/content.service.spec.ts | 54 ++++ .../src/services/content.service.ts | 15 +- 8 files changed, 331 insertions(+), 21 deletions(-) create mode 100644 demo-shell-ng2/public/js/classList.js delete mode 100644 demo-shell-ng2/public/js/promisePolyfill.js create mode 100644 ng2-components/ng2-alfresco-core/src/services/content.service.spec.ts diff --git a/demo-shell-ng2/app/polyfills.ts b/demo-shell-ng2/app/polyfills.ts index 600a34bd90..4a48f9b812 100644 --- a/demo-shell-ng2/app/polyfills.ts +++ b/demo-shell-ng2/app/polyfills.ts @@ -1,10 +1,10 @@ /* tslint:disable */ -import 'core-js/es6'; +import 'core-js/es6/reflect'; import 'core-js/es7/reflect'; +import 'zone.js/dist/zone'; import 'intl'; -require('zone.js/dist/zone'); // IE 8-11 require('element.scrollintoviewifneeded-polyfill'); // IE/FF if (process.env.ENV === 'production') { diff --git a/demo-shell-ng2/config/webpack.common.js b/demo-shell-ng2/config/webpack.common.js index af9c79a902..4fa6eb3dda 100644 --- a/demo-shell-ng2/config/webpack.common.js +++ b/demo-shell-ng2/config/webpack.common.js @@ -105,6 +105,22 @@ module.exports = { from: 'node_modules/pdfjs-dist/build/pdf.worker.js', to: 'pdf.worker.js' }, + { + from: 'node_modules/web-animations-js/web-animations.min.js', + to: 'js/web-animations.min.js' + }, + { + from: 'node_modules/core-js/client/core.min.js', + to: 'js/core.min.js' + }, + { + from: 'node_modules/custom-event-polyfill/custom-event-polyfill.js', + to: 'js/custom-event-polyfill.js' + }, + { + from: 'node_modules/intl/dist/Intl.min.js', + to: 'js/Intl.min.js' + }, { context: 'public', from: '', diff --git a/demo-shell-ng2/index.html b/demo-shell-ng2/index.html index 222f75ec7e..227644620f 100644 --- a/demo-shell-ng2/index.html +++ b/demo-shell-ng2/index.html @@ -8,19 +8,15 @@ - + +