From 3dcfcec1b49dde58b55df238df5c20a6be0e1001 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Mon, 21 Aug 2017 17:35:45 +0100 Subject: [PATCH] bug fixes (#2233) --- demo-shell-ng2/app/app.module.ts | 1 - .../app/components/activiti/form-node-viewer.component.ts | 2 -- demo-shell-ng2/app/components/activiti/form-viewer.component.ts | 2 -- demo-shell-ng2/app/components/form/form-list-demo.component.ts | 2 -- demo-shell-ng2/app/components/settings/settings.component.ts | 2 -- demo-shell-ng2/app/components/theme-picker/theme-picker.ts | 2 +- .../src/components/tooltip/diagram-tooltip.component.ts | 2 +- 7 files changed, 2 insertions(+), 11 deletions(-) diff --git a/demo-shell-ng2/app/app.module.ts b/demo-shell-ng2/app/app.module.ts index c97b9993e2..fa5c696895 100644 --- a/demo-shell-ng2/app/app.module.ts +++ b/demo-shell-ng2/app/app.module.ts @@ -41,7 +41,6 @@ import { AppComponent } from './app.component'; import { routing } from './app.routes'; import { CustomEditorsModule } from './components/activiti/custom-editor/custom-editor.component'; import { FormListDemoComponent } from './components/form/form-list-demo.component'; -import { StyleManager } from './components/theme-picker/style-manager/style-manager'; import { ThemePickerModule } from './components/theme-picker/theme-picker'; import { MaterialModule } from './material.module'; import { DebugAppConfigService } from './services/debug-app-config.service'; diff --git a/demo-shell-ng2/app/components/activiti/form-node-viewer.component.ts b/demo-shell-ng2/app/components/activiti/form-node-viewer.component.ts index e89d01bd17..c2a1c54471 100644 --- a/demo-shell-ng2/app/components/activiti/form-node-viewer.component.ts +++ b/demo-shell-ng2/app/components/activiti/form-node-viewer.component.ts @@ -19,8 +19,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Subscription } from 'rxjs/Rx'; -declare var componentHandler; - @Component({ selector: 'form-node-viewer', templateUrl: './form-node-viewer.component.html', diff --git a/demo-shell-ng2/app/components/activiti/form-viewer.component.ts b/demo-shell-ng2/app/components/activiti/form-viewer.component.ts index 6c1768129a..3ecdf36d80 100644 --- a/demo-shell-ng2/app/components/activiti/form-viewer.component.ts +++ b/demo-shell-ng2/app/components/activiti/form-viewer.component.ts @@ -19,8 +19,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Subscription } from 'rxjs/Rx'; -declare var componentHandler; - @Component({ selector: 'form-viewer', templateUrl: './form-viewer.component.html', diff --git a/demo-shell-ng2/app/components/form/form-list-demo.component.ts b/demo-shell-ng2/app/components/form/form-list-demo.component.ts index 8a412b04b1..b10644f03d 100644 --- a/demo-shell-ng2/app/components/form/form-list-demo.component.ts +++ b/demo-shell-ng2/app/components/form/form-list-demo.component.ts @@ -19,8 +19,6 @@ import { Component, ViewChild } from '@angular/core'; import { FormModel, FormService } from 'ng2-activiti-form'; import { ActivitiForm } from 'ng2-activiti-form'; -declare var componentHandler; - @Component({ selector: 'form-list-demo', template: ` diff --git a/demo-shell-ng2/app/components/settings/settings.component.ts b/demo-shell-ng2/app/components/settings/settings.component.ts index 17a24a28b3..efef660fdd 100644 --- a/demo-shell-ng2/app/components/settings/settings.component.ts +++ b/demo-shell-ng2/app/components/settings/settings.component.ts @@ -19,8 +19,6 @@ import { Component } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { AlfrescoSettingsService, LogService, StorageService } from 'ng2-alfresco-core'; -declare var componentHandler: any; - @Component({ selector: 'app-settings', templateUrl: 'settings.component.html', diff --git a/demo-shell-ng2/app/components/theme-picker/theme-picker.ts b/demo-shell-ng2/app/components/theme-picker/theme-picker.ts index 519f6c9ef0..97accd99a9 100644 --- a/demo-shell-ng2/app/components/theme-picker/theme-picker.ts +++ b/demo-shell-ng2/app/components/theme-picker/theme-picker.ts @@ -1,5 +1,5 @@ import {CommonModule} from '@angular/common'; -import {ChangeDetectionStrategy, Component, NgModule, ViewEncapsulation} from '@angular/core'; +import {ChangeDetectionStrategy, Component, NgModule} from '@angular/core'; import { MdButtonModule, MdGridListModule, MdIconModule, MdMenuModule, MdTooltipModule diff --git a/ng2-components/ng2-activiti-diagrams/src/components/tooltip/diagram-tooltip.component.ts b/ng2-components/ng2-activiti-diagrams/src/components/tooltip/diagram-tooltip.component.ts index e923c3dbe5..a1721523d7 100644 --- a/ng2-components/ng2-activiti-diagrams/src/components/tooltip/diagram-tooltip.component.ts +++ b/ng2-components/ng2-activiti-diagrams/src/components/tooltip/diagram-tooltip.component.ts @@ -101,7 +101,7 @@ export class DiagramTooltipComponent implements AfterViewInit, OnDestroy { private handleMouseEnter(event): void { let props; - if(this.strategy === STRATEGY.ELEMENT ) { + if (this.strategy === STRATEGY.ELEMENT ) { props = event.target.getBoundingClientRect(); }else { props = {top: (event.pageY - 150), left: event.pageX , width: event.layerX, height: 50};