From 0cc578ba0e9ce7086c38d207d5f71511b7c1f989 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 17 Oct 2017 17:20:06 +0100 Subject: [PATCH] [ADF-1748] remove MDL dependency and fix style issues (#2486) * remove dialogPolyfill references * remove MDL dependencies * style fixes * exclude the test (needs dialog support) --- demo-shell-ng2/app/polyfills.ts | 2 - demo-shell-ng2/app/vendor.ts | 11 ---- demo-shell-ng2/index.html | 5 ++ demo-shell-ng2/package.json | 3 - .../widgets/attach/attach.widget.spec.ts | 23 +------- .../widgets/attach/attach.widget.ts | 8 +-- .../container/container.widget.spec.ts | 8 --- .../src/components/checklist.component.ts | 8 +-- ng2-components/ng2-alfresco-core/package.json | 1 - .../src/components/viewer.component.html | 2 +- .../src/components/viewer.component.scss | 4 ++ ng2-components/package.json | 58 ++++++------------- 12 files changed, 30 insertions(+), 103 deletions(-) diff --git a/demo-shell-ng2/app/polyfills.ts b/demo-shell-ng2/app/polyfills.ts index 836039ee8e..b8cda6c116 100644 --- a/demo-shell-ng2/app/polyfills.ts +++ b/demo-shell-ng2/app/polyfills.ts @@ -22,8 +22,6 @@ import 'core-js/es7/reflect'; import 'zone.js/dist/zone'; import 'intl'; -require('element.scrollintoviewifneeded-polyfill'); // IE/FF - if (process.env.ENV === 'production') { // Production diff --git a/demo-shell-ng2/app/vendor.ts b/demo-shell-ng2/app/vendor.ts index f846cac054..4b2a6e95b9 100644 --- a/demo-shell-ng2/app/vendor.ts +++ b/demo-shell-ng2/app/vendor.ts @@ -50,17 +50,6 @@ import 'ng2-alfresco-userinfo'; import 'ng2-alfresco-viewer'; import 'ng2-alfresco-webscript'; -// Polyfill(s) for dialogs -require('script-loader!dialog-polyfill/dialog-polyfill'); -import 'dialog-polyfill/dialog-polyfill.css'; - -// Google Material Design Lite -import 'material-design-lite/dist/material.orange-blue.min.css'; -import 'material-design-lite/material.js'; - -import 'ng2-activiti-form/stencils/runtime.adf'; -import 'ng2-activiti-form/stencils/runtime.ng1'; - import 'chart.js'; import 'ng2-charts'; require('script-loader!raphael/raphael.min.js'); diff --git a/demo-shell-ng2/index.html b/demo-shell-ng2/index.html index 227644620f..e4cbc491e4 100644 --- a/demo-shell-ng2/index.html +++ b/demo-shell-ng2/index.html @@ -21,6 +21,11 @@