diff --git a/demo-shell-ng2/app/app.module.ts b/demo-shell-ng2/app/app.module.ts
index e7d6029f49..adbddcb5b3 100644
--- a/demo-shell-ng2/app/app.module.ts
+++ b/demo-shell-ng2/app/app.module.ts
@@ -17,6 +17,7 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
+import { MdSlideToggleModule, MdInputModule } from '@angular/material';
import { CoreModule } from 'ng2-alfresco-core';
import { SearchModule } from 'ng2-alfresco-search';
@@ -37,7 +38,6 @@ import { AppComponent } from './app.component';
import { routing } from './app.routes';
import { CustomEditorsModule } from './components/activiti/custom-editor/custom-editor.component';
import { Editor3DModule } from 'ng2-3d-editor';
-import { MaterialModule } from '@angular/material';
import { ChartsModule } from 'ng2-charts';
import {
@@ -62,7 +62,8 @@ import {
imports: [
BrowserModule,
routing,
- MaterialModule.forRoot(),
+ MdInputModule,
+ MdSlideToggleModule,
CoreModule.forRoot(),
LoginModule.forRoot(),
SearchModule.forRoot(),
diff --git a/demo-shell-ng2/app/components/files/files.component.html b/demo-shell-ng2/app/components/files/files.component.html
index 7dfc786476..ab82dc8ce5 100644
--- a/demo-shell-ng2/app/components/files/files.component.html
+++ b/demo-shell-ng2/app/components/files/files.component.html
@@ -150,7 +150,7 @@
@@ -193,9 +193,9 @@
[overlayMode]="true">
-
+
-
+
diff --git a/demo-shell-ng2/app/vendor.ts b/demo-shell-ng2/app/vendor.ts
index 9883f4891e..fcca40422e 100644
--- a/demo-shell-ng2/app/vendor.ts
+++ b/demo-shell-ng2/app/vendor.ts
@@ -39,7 +39,7 @@ import 'dialog-polyfill/dialog-polyfill.css';
import 'flag-icon-css/css/flag-icon.min.css';
// Load the Angular Material 2 stylesheet
-import '../public/css/angular-material.css';
+import '@angular/material/prebuilt-themes/indigo-pink.css';
// Google Material Design Lite
import 'material-design-lite/material.js';
diff --git a/demo-shell-ng2/package.json b/demo-shell-ng2/package.json
index 6bb16ed94c..1be23795c0 100644
--- a/demo-shell-ng2/package.json
+++ b/demo-shell-ng2/package.json
@@ -64,7 +64,7 @@
"@angular/platform-browser-dynamic": "~4.0.0",
"@angular/router": "~4.0.0",
"@angular/compiler-cli": "~4.0.0",
- "@angular/material": "2.0.0-beta.1",
+ "@angular/material": "2.0.0-beta.6",
"core-js": "2.4.1",
"reflect-metadata": "0.1.9",
"rxjs": "5.1.0",
diff --git a/ng2-components/config/assets/tslint.json b/ng2-components/config/assets/tslint.json
index 611a015c7e..f5ca6283b5 100644
--- a/ng2-components/config/assets/tslint.json
+++ b/ng2-components/config/assets/tslint.json
@@ -59,7 +59,7 @@
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
- "no-var-requires": true,
+ "no-var-requires": false,
"object-literal-sort-keys": false,
"one-line": [
true,
diff --git a/ng2-components/ng2-activiti-analytics/index.ts b/ng2-components/ng2-activiti-analytics/index.ts
index 8eef12bc86..005386dc72 100644
--- a/ng2-components/ng2-activiti-analytics/index.ts
+++ b/ng2-components/ng2-activiti-analytics/index.ts
@@ -16,6 +16,7 @@
*/
import { NgModule, ModuleWithProviders } from '@angular/core';
+import { MdTooltipModule, MdButtonModule, MdIconModule } from '@angular/material';
import { CoreModule } from 'ng2-alfresco-core';
import { DiagramsModule } from 'ng2-activiti-diagrams';
@@ -53,7 +54,10 @@ export const ANALYTICS_PROVIDERS: any[] = [
imports: [
CoreModule,
ChartsModule,
- DiagramsModule
+ DiagramsModule,
+ MdTooltipModule,
+ MdButtonModule,
+ MdIconModule
],
declarations: [
...ANALYTICS_DIRECTIVES
@@ -62,7 +66,10 @@ export const ANALYTICS_PROVIDERS: any[] = [
...ANALYTICS_PROVIDERS
],
exports: [
- ...ANALYTICS_DIRECTIVES
+ ...ANALYTICS_DIRECTIVES,
+ MdTooltipModule,
+ MdButtonModule,
+ MdIconModule
]
})
export class AnalyticsModule {
diff --git a/ng2-components/ng2-activiti-analytics/package.json b/ng2-components/ng2-activiti-analytics/package.json
index 0260af0553..1cb0cae401 100644
--- a/ng2-components/ng2-activiti-analytics/package.json
+++ b/ng2-components/ng2-activiti-analytics/package.json
@@ -41,7 +41,7 @@
"@angular/platform-browser-dynamic": "~4.0.0",
"@angular/router": "~4.0.0",
- "@angular/material": "2.0.0-beta.1",
+ "@angular/material": "2.0.0-beta.6",
"alfresco-js-api": "~1.5.0",
"chart.js": "2.5.0",
"core-js": "2.4.1",
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.spec.ts b/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.spec.ts
index 1d77731e12..19e5aa6ebc 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.spec.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.spec.ts
@@ -17,6 +17,7 @@
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
+import { MdTooltipModule, MdButtonModule, MdIconModule } from '@angular/material';
import { Observable } from 'rxjs/Rx';
import { ChartsModule } from 'ng2-charts';
import { CoreModule, AlfrescoTranslationService } from 'ng2-alfresco-core';
@@ -59,7 +60,11 @@ describe('AnalyticsGeneratorComponent', () => {
TestBed.configureTestingModule({
imports: [
CoreModule.forRoot(),
+ MdTooltipModule,
+ MdButtonModule,
+ MdIconModule,
ChartsModule,
+
DiagramsModule.forRoot()
],
declarations: [
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.spec.ts b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.spec.ts
index bcc4e270ed..8df752614c 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.spec.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.spec.ts
@@ -17,6 +17,7 @@
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { DebugElement, SimpleChange } from '@angular/core';
+import { MdTooltipModule, MdButtonModule, OVERLAY_PROVIDERS } from '@angular/material';
import { Observable } from 'rxjs/Rx';
import * as moment from 'moment';
import { CoreModule, AlfrescoTranslationService } from 'ng2-alfresco-core';
@@ -42,14 +43,17 @@ describe('AnalyticsReportParametersComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
- CoreModule.forRoot()
+ CoreModule.forRoot(),
+ MdTooltipModule,
+ MdButtonModule
],
declarations: [
AnalyticsReportParametersComponent,
...WIDGET_DIRECTIVES
],
providers: [
- AnalyticsService
+ AnalyticsService,
+ OVERLAY_PROVIDERS
]
}).compileComponents();
diff --git a/ng2-components/ng2-activiti-diagrams/package.json b/ng2-components/ng2-activiti-diagrams/package.json
index 2f7c44fe60..db53407630 100644
--- a/ng2-components/ng2-activiti-diagrams/package.json
+++ b/ng2-components/ng2-activiti-diagrams/package.json
@@ -37,7 +37,7 @@
"@angular/platform-browser-dynamic": "~4.0.0",
"@angular/router": "~4.0.0",
- "@angular/material": "2.0.0-beta.1",
+ "@angular/material": "2.0.0-beta.6",
"alfresco-js-api": "~1.5.0",
"core-js": "2.4.1",
"hammerjs": "2.0.8",
diff --git a/ng2-components/ng2-activiti-form/index.ts b/ng2-components/ng2-activiti-form/index.ts
index 8ee90c9dd8..fb022bbd2c 100644
--- a/ng2-components/ng2-activiti-form/index.ts
+++ b/ng2-components/ng2-activiti-form/index.ts
@@ -16,6 +16,7 @@
*/
import { NgModule, ModuleWithProviders } from '@angular/core';
+import { MdCheckboxModule, MdTabsModule, MdCardModule, MdButtonModule, MdIconModule, MdSlideToggleModule } from '@angular/material';
import { CoreModule } from 'ng2-alfresco-core';
import { ActivitiForm } from './src/components/activiti-form.component';
@@ -64,7 +65,13 @@ export const ACTIVITI_FORM_PROVIDERS: any[] = [
@NgModule({
imports: [
CoreModule,
- HttpModule
+ HttpModule,
+ MdCheckboxModule,
+ MdTabsModule,
+ MdCardModule,
+ MdButtonModule,
+ MdIconModule,
+ MdSlideToggleModule
],
declarations: [
...ACTIVITI_FORM_DIRECTIVES,
@@ -77,7 +84,13 @@ export const ACTIVITI_FORM_PROVIDERS: any[] = [
...ACTIVITI_FORM_PROVIDERS
],
exports: [
- ...ACTIVITI_FORM_DIRECTIVES
+ ...ACTIVITI_FORM_DIRECTIVES,
+ MdCheckboxModule,
+ MdTabsModule,
+ MdCardModule,
+ MdButtonModule,
+ MdIconModule,
+ MdSlideToggleModule
]
})
export class ActivitiFormModule {
diff --git a/ng2-components/ng2-activiti-form/package.json b/ng2-components/ng2-activiti-form/package.json
index a4e03ae0cf..bb6a11f03f 100644
--- a/ng2-components/ng2-activiti-form/package.json
+++ b/ng2-components/ng2-activiti-form/package.json
@@ -43,7 +43,7 @@
"@angular/platform-browser": "~4.0.0",
"@angular/platform-browser-dynamic": "~4.0.0",
"@angular/router": "~4.0.0",
- "@angular/material": "2.0.0-beta.1",
+ "@angular/material": "2.0.0-beta.6",
"alfresco-js-api": "~1.5.0",
"core-js": "2.4.1",
"hammerjs": "2.0.8",
diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.css b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.css
index 03d3d17084..f062d6a71f 100644
--- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.css
+++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.css
@@ -21,12 +21,14 @@
font-weight: bold;
}
-.activiti-form-hide-button {
- display: none;
+.activiti-form-reload-button {
+ position: absolute;
+ right: 0;
+ top: 0;
}
-.activiti-debug-button {
- float: right;
+.activiti-form-hide-button {
+ display: none;
}
.activiti-task-title {
diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html
index b9813ffa68..9f7e59c867 100644
--- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html
+++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html
@@ -2,13 +2,23 @@
Please select a Task
-
-
-
+
+
+
-
-
-
+
+
-