diff --git a/demo-shell-ng2/app/components/about/about.component.html b/demo-shell-ng2/app/components/about/about.component.html index ac9815a75f..23b587f28d 100644 --- a/demo-shell-ng2/app/components/about/about.component.html +++ b/demo-shell-ng2/app/components/about/about.component.html @@ -1,15 +1,15 @@

Server settings

- + The values below are taken from the AppConfigService and loaded from the '{{ configFile }}' file. - -

Alfresco Process Services URL: {{ bpmHost }}

-
- - -

Alfresco Content Services URL: {{ ecmHost }}

-
-
+ +

Alfresco Process Services URL: {{ bpmHost }}

+
+ + +

Alfresco Content Services URL: {{ ecmHost }}

+
+

Product Versions

diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html index b91c008e98..4bfee9a360 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html @@ -1,11 +1,11 @@ - - + +
-
@@ -77,18 +77,18 @@ adf-task-audit [task-id]="currentTaskId" [download]="true" - md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)"> - assignment_ind + mat-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)"> + assignment_ind
- - + + - - + +
-
- +
@@ -108,11 +108,11 @@
@@ -161,21 +161,21 @@ {{'PS-TAB.AUDIT-LOG' | translate}}
- - + + - - + +
@@ -187,8 +187,8 @@
- - +
@@ -216,8 +216,8 @@
-
- + +
- +
diff --git a/demo-shell-ng2/app/components/app-layout/app-layout.component.html b/demo-shell-ng2/app/components/app-layout/app-layout.component.html index db06c2839b..ae60b620b6 100644 --- a/demo-shell-ng2/app/components/app-layout/app-layout.component.html +++ b/demo-shell-ng2/app/components/app-layout/app-layout.component.html @@ -1,18 +1,18 @@ - - - - - {{link.icon}} + + + + + {{link.icon}} {{link.title | translate }} - - exit_to_app + + exit_to_app Logout - - + + - + + - + diff --git a/demo-shell-ng2/app/components/app-layout/app-layout.component.scss b/demo-shell-ng2/app/components/app-layout/app-layout.component.scss index f9aebf5138..e001e8586a 100644 --- a/demo-shell-ng2/app/components/app-layout/app-layout.component.scss +++ b/demo-shell-ng2/app/components/app-layout/app-layout.component.scss @@ -33,7 +33,7 @@ line-height: $toolbarHeight; overflow: hidden; - md-toolbar-row { + mat-toolbar-row { height: $toolbarHeight; align-items: stretch; justify-content: space-between; diff --git a/demo-shell-ng2/app/components/datatable/datatable-demo.component.html b/demo-shell-ng2/app/components/datatable/datatable-demo.component.html index 792443cf1f..dcba5a85ce 100644 --- a/demo-shell-ng2/app/components/datatable/datatable-demo.component.html +++ b/demo-shell-ng2/app/components/datatable/datatable-demo.component.html @@ -9,7 +9,7 @@ (executeRowAction)="onExecuteRowAction($event)" (row-click)="onRowClick($event)" (row-dblclick)="onRowDblClick($event)"> - + - - + +

- dvr + dvr DocumentList - Content Services

-
- + + Demonstrates multiple Alfresco Content Services components used together to display the files of your Content Services instance: - -
+ + - - + +

- apps + apps Process Services

-
- + + Demonstrates multiple Alfresco Process Services components used together to show your Process Services process and tasks: - -
+ + - - + +

- view_module + view_module DataTable - Content Services & Process Services

-
- + + Basic table component:
  • - brightness_1 + brightness_1 Communication with the Rest Api and core services ng2-alfresco-core
-
-
+ + - - + +

- file_upload + file_upload Uploader - Content Services

-
- + + Basic table uploader component for the Content Services & Process Services:
  • - brightness_1 + brightness_1 Communication with the Rest Api and core services ng2-alfresco-core
-
-
+ + - - + +

- account_circle + account_circle Login - Content Services & Process Services

-
- + + Login component for the Content Services and Process Services:
  • - brightness_1 + brightness_1 Communication with the Rest Api and core services ng2-alfresco-core
-
-
+ + - - + +

- extension + extension Webscript - Content Services

-
- + + Displays and creates webscripts in your Content Services instance:
  • - brightness_1 + brightness_1 Communication with the Rest Api and core services ng2-alfresco-core
-
-
+ + - - + +

- local_offer + local_offer Tag - Content Services

-
- + + Displays and adds tags to the node of your Content Services instance: - -
+ + diff --git a/demo-shell-ng2/app/components/login/login-demo.component.html b/demo-shell-ng2/app/components/login/login-demo.component.html index f9caff270c..20605e458d 100644 --- a/demo-shell-ng2/app/components/login/login-demo.component.html +++ b/demo-shell-ng2/app/components/login/login-demo.component.html @@ -2,47 +2,47 @@

- {{ 'LOGIN.CONTENT_SERVICES'| translate }} - +

- {{ 'LOGIN.PROCESS_SERVICES'| translate }} - +

- CSRF - +

- {{ 'LOGIN.LOGIN_FOOTER'| translate }} - +

- - settings + + settings

- {{ 'LOGIN.CONTENT_SERVICES'| translate }} - +

- {{ 'LOGIN.PROCESS_SERVICES'| translate }} - +

- CSRF - +

- {{ 'LOGIN.LOGIN_FOOTER'| translate }} - +

diff --git a/demo-shell-ng2/app/components/search/search-bar.component.html b/demo-shell-ng2/app/components/search/search-bar.component.html index 1f3b2a73a8..bbcf6d3ed4 100644 --- a/demo-shell-ng2/app/components/search/search-bar.component.html +++ b/demo-shell-ng2/app/components/search/search-bar.component.html @@ -10,5 +10,5 @@ - + diff --git a/demo-shell-ng2/app/components/search/search.component.html b/demo-shell-ng2/app/components/search/search.component.html index 940f62267e..15f890067a 100644 --- a/demo-shell-ng2/app/components/search/search.component.html +++ b/demo-shell-ng2/app/components/search/search.component.html @@ -9,6 +9,6 @@ - + diff --git a/demo-shell-ng2/app/components/settings/settings.component.html b/demo-shell-ng2/app/components/settings/settings.component.html index 04a65ddf6a..7974799696 100644 --- a/demo-shell-ng2/app/components/settings/settings.component.html +++ b/demo-shell-ng2/app/components/settings/settings.component.html @@ -1,17 +1,17 @@
- +

{{'SETTINGS.TITLE' | translate}}

-
+ - - + + - {{'SETTINGS.CS-HOST' | translate }} + {{'SETTINGS.CS-HOST' | translate }} - - link - + link + - + {{ 'SETTINGS.NOT_VALID'| translate }} - - + +

- {{'SETTINGS.BP-HOST' | translate }} + {{'SETTINGS.BP-HOST' | translate }} - - link - + link + - + {{ 'SETTINGS.NOT_VALID'| translate }} - - + + - - + + - - - - + +

diff --git a/demo-shell-ng2/app/components/social/social.component.html b/demo-shell-ng2/app/components/social/social.component.html index f7f2b5878d..43e7763228 100644 --- a/demo-shell-ng2/app/components/social/social.component.html +++ b/demo-shell-ng2/app/components/social/social.component.html @@ -3,19 +3,19 @@
- +
{{'SOCIAL.LIKE' | translate }}
-
+
- +
{{'SOCIAL.RATING' | translate }}
-
+
diff --git a/demo-shell-ng2/app/components/tag/tag.component.html b/demo-shell-ng2/app/components/tag/tag.component.html index de2e60e9ff..b6c8e1145e 100644 --- a/demo-shell-ng2/app/components/tag/tag.component.html +++ b/demo-shell-ng2/app/components/tag/tag.component.html @@ -2,24 +2,24 @@
- + - +
- +
{{'TAG.LIST' | translate }}
-
+
- +
{{'TAG.NODE_LIST' | translate }}
-
+
diff --git a/demo-shell-ng2/app/components/theme-picker/theme-picker.css b/demo-shell-ng2/app/components/theme-picker/theme-picker.css index 2309306b76..ce59d7181d 100644 --- a/demo-shell-ng2/app/components/theme-picker/theme-picker.css +++ b/demo-shell-ng2/app/components/theme-picker/theme-picker.css @@ -1,8 +1,8 @@ -.docs-theme-picker-menu .md-menu-content { +.docs-theme-picker-menu .mat-menu-content { padding: 8px; } -.docs-theme-picker-menu [md-menu-item] { +.docs-theme-picker-menu [mat-menu-item] { flex: 0 0 auto; padding: 0; overflow: hidden; diff --git a/demo-shell-ng2/app/components/theme-picker/theme-picker.html b/demo-shell-ng2/app/components/theme-picker/theme-picker.html index dbb86fea32..493720040f 100644 --- a/demo-shell-ng2/app/components/theme-picker/theme-picker.html +++ b/demo-shell-ng2/app/components/theme-picker/theme-picker.html @@ -1,17 +1,17 @@ - - - - + + check_circle - - + invert_colors - + {{theme.name}} - - + + 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 ab11546468..19d51367a3 100644 --- a/demo-shell-ng2/app/components/theme-picker/theme-picker.ts +++ b/demo-shell-ng2/app/components/theme-picker/theme-picker.ts @@ -1,8 +1,8 @@ import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core'; import { - MdButtonModule, MdGridListModule, MdIconModule, MdMenuModule, - MdTooltipModule + MatButtonModule, MatGridListModule, MatIconModule, MatMenuModule, + MatTooltipModule } from '@angular/material'; import { StyleManager } from './style-manager/style-manager'; import { DocsSiteTheme, ThemeStorage } from './theme-storage/theme-storage'; @@ -116,11 +116,11 @@ export class ThemePickerComponent { @NgModule({ imports: [ - MdButtonModule, - MdIconModule, - MdMenuModule, - MdGridListModule, - MdTooltipModule, + MatButtonModule, + MatIconModule, + MatMenuModule, + MatGridListModule, + MatTooltipModule, CommonModule ], exports: [ThemePickerComponent], diff --git a/demo-shell-ng2/app/material.module.ts b/demo-shell-ng2/app/material.module.ts index 68d96368d0..7011bbe081 100644 --- a/demo-shell-ng2/app/material.module.ts +++ b/demo-shell-ng2/app/material.module.ts @@ -17,21 +17,21 @@ import { NgModule } from '@angular/core'; import { - MdDialogModule, - MdInputModule, - MdProgressBarModule, - MdSelectModule, - MdSidenavModule, - MdSlideToggleModule + MatDialogModule, + MatInputModule, + MatProgressBarModule, + MatSelectModule, + MatSidenavModule, + MatSlideToggleModule } from '@angular/material'; const MATERIAL_MODULES = [ - MdSlideToggleModule, - MdInputModule, - MdSelectModule, - MdDialogModule, - MdSidenavModule, - MdProgressBarModule + MatSlideToggleModule, + MatInputModule, + MatSelectModule, + MatDialogModule, + MatSidenavModule, + MatProgressBarModule ]; @NgModule({ diff --git a/demo-shell-ng2/package.json b/demo-shell-ng2/package.json index 69eb46529a..b7777a1eb1 100644 --- a/demo-shell-ng2/package.json +++ b/demo-shell-ng2/package.json @@ -56,19 +56,19 @@ "alfresco" ], "dependencies": { - "@angular/animations": "4.3.6", - "@angular/cdk": "2.0.0-beta.10", - "@angular/common": "4.3.6", - "@angular/compiler": "4.3.6", - "@angular/compiler-cli": "4.3.6", - "@angular/core": "4.3.6", + "@angular/animations": "4.4.5", + "@angular/cdk": "2.0.0-beta.12", + "@angular/common": "4.4.5", + "@angular/compiler": "4.4.5", + "@angular/compiler-cli": "4.4.5", + "@angular/core": "4.4.5", "@angular/flex-layout": "2.0.0-beta.9", - "@angular/forms": "4.3.6", - "@angular/http": "4.3.6", - "@angular/material": "2.0.0-beta.10", - "@angular/platform-browser": "4.3.6", - "@angular/platform-browser-dynamic": "4.3.6", - "@angular/router": "4.3.6", + "@angular/forms": "4.4.5", + "@angular/http": "4.4.5", + "@angular/material": "2.0.0-beta.12", + "@angular/platform-browser": "4.4.5", + "@angular/platform-browser-dynamic": "4.4.5", + "@angular/router": "4.4.5", "@ngx-translate/core": "7.0.0", "alfresco-js-api": "1.9.0", "chart.js": "2.5.0", @@ -106,7 +106,7 @@ "zone.js": "0.8.12" }, "devDependencies": { - "@types/hammerjs": "2.0.34", + "@types/hammerjs": "2.0.35", "@types/jasmine": "2.5.35", "@types/node": "6.0.45", "adf-tslint-rules": "0.0.3", diff --git a/ng2-components/ng2-activiti-analytics/docs/assets/analytics-without-parameters.png b/ng2-components/ng2-activiti-analytics/docs/assets/analytics-without-parameters.png deleted file mode 100644 index 06146ecd33..0000000000 Binary files a/ng2-components/ng2-activiti-analytics/docs/assets/analytics-without-parameters.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-analytics/package.json b/ng2-components/ng2-activiti-analytics/package.json index 216f5f47a8..e86a536ba4 100644 --- a/ng2-components/ng2-activiti-analytics/package.json +++ b/ng2-components/ng2-activiti-analytics/package.json @@ -32,17 +32,17 @@ "url": "https://github.com/Alfresco/alfresco-ng2-components/issues" }, "dependencies": { - "@angular/animations": "4.3.6", - "@angular/cdk": "2.0.0-beta.10", - "@angular/common": "4.3.6", - "@angular/compiler": "4.3.6", - "@angular/core": "4.3.6", - "@angular/forms": "4.3.6", - "@angular/http": "4.3.6", - "@angular/material": "2.0.0-beta.10", - "@angular/platform-browser": "4.3.6", - "@angular/platform-browser-dynamic": "4.3.6", - "@angular/router": "4.3.6", + "@angular/animations": "4.4.5", + "@angular/cdk": "2.0.0-beta.12", + "@angular/common": "4.4.5", + "@angular/compiler": "4.4.5", + "@angular/core": "4.4.5", + "@angular/forms": "4.4.5", + "@angular/http": "4.4.5", + "@angular/material": "2.0.0-beta.12", + "@angular/platform-browser": "4.4.5", + "@angular/platform-browser-dynamic": "4.4.5", + "@angular/router": "4.4.5", "@ngx-translate/core": "7.0.0", "alfresco-js-api": "1.9.0", "chart.js": "2.5.0", @@ -59,7 +59,7 @@ "zone.js": "0.8.12" }, "devDependencies": { - "@types/hammerjs": "2.0.34", + "@types/hammerjs": "2.0.35", "@types/jasmine": "2.5.35", "@types/node": "6.0.45", "adf-tslint-rules": "0.0.3", diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.html b/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.html index 2aae8b7c2d..b22ae15a16 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.html +++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.html @@ -1,11 +1,11 @@
-
@@ -84,12 +84,12 @@

{{report.title}}

{{'ANALYTICS.MESSAGES.NO-DATA-FOUND' | translate}}
- Stacked + (change)="refresh(report)">Stacked - - + - assignment + class="activiti-filters__entry-icon">assignment {{report.name}} - - + +
- + -
+

{{report.name}}

-
+

{{report.description}}

-
- done +
+ done
- +
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html index afccf201a0..2dc6e8b689 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html +++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html @@ -5,9 +5,9 @@
- + - +
- mode_edit + mode_edit

{{reportParameters.name}}

- - - -
@@ -102,30 +102,30 @@
-
{{action}} report
-
+
{{action}} report
+
{{'DIALOG.SAVE_MESSAGE' | translate}}
- - + - +
-
- -
\ No newline at end of file diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html index f60ca92e0a..d9d4b5123f 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html @@ -7,48 +7,48 @@ {{'DATE-WIDGET.MESSAGES.START-DATE-REQUIRED' | translate}} - - - + + + - - - + + - - - - + + + + - - - + + - - - + + +
diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts index b7e0ef18d8..c19cb1d587 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts @@ -17,7 +17,7 @@ import { Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation } from '@angular/core'; import { AbstractControl, FormControl, FormGroup, Validators } from '@angular/forms'; -import { DateAdapter, MD_DATE_FORMATS } from '@angular/material'; +import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material'; import * as moment from 'moment'; import { Moment } from 'moment'; import { MOMENT_DATE_FORMATS, MomentDateAdapter } from 'ng2-alfresco-core'; @@ -27,7 +27,7 @@ import { MOMENT_DATE_FORMATS, MomentDateAdapter } from 'ng2-alfresco-core'; templateUrl: './date-range.widget.html', providers: [ {provide: DateAdapter, useClass: MomentDateAdapter}, - {provide: MD_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}], + {provide: MAT_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}], styleUrls: ['./date-range.widget.scss'], encapsulation: ViewEncapsulation.None }) diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.html b/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.html index be22e10e25..488abbadeb 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.html +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.html @@ -1,8 +1,8 @@
- - + - +
diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.scss b/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.scss index 9deb10d249..36a92ef8e3 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.scss +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.scss @@ -10,7 +10,7 @@ .adf-number-widget { width: 100%; - .mat-input-container { + .mat-form-field { width: 100%; } } diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.html b/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.html index dd6afd4a00..45cbc7fafc 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.html +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.html @@ -1,6 +1,6 @@
- - + - +
diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.scss b/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.scss index ccb5a6584a..c4e6d3661a 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.scss +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.scss @@ -1,7 +1,7 @@ .adf-number-widget { width: 100%; - .mat-input-container { + .mat-form-field { width: 100%; } } \ No newline at end of file diff --git a/ng2-components/ng2-activiti-analytics/src/material.module.ts b/ng2-components/ng2-activiti-analytics/src/material.module.ts index 74fdbc1c70..6c4f883040 100644 --- a/ng2-components/ng2-activiti-analytics/src/material.module.ts +++ b/ng2-components/ng2-activiti-analytics/src/material.module.ts @@ -17,28 +17,28 @@ import { NgModule } from '@angular/core'; import { - MdButtonModule, - MdCheckboxModule, - MdDatepickerModule, - MdGridListModule, - MdIconModule, - MdInputModule, - MdListModule, - MdNativeDateModule, - MdTooltipModule + MatButtonModule, + MatCheckboxModule, + MatDatepickerModule, + MatGridListModule, + MatIconModule, + MatInputModule, + MatListModule, + MatNativeDateModule, + MatTooltipModule } from '@angular/material'; export function modules() { return [ - MdButtonModule, - MdInputModule, - MdIconModule, - MdTooltipModule, - MdNativeDateModule, - MdDatepickerModule, - MdCheckboxModule, - MdListModule, - MdGridListModule + MatButtonModule, + MatInputModule, + MatIconModule, + MatTooltipModule, + MatNativeDateModule, + MatDatepickerModule, + MatCheckboxModule, + MatListModule, + MatGridListModule ]; } diff --git a/ng2-components/ng2-activiti-diagrams/package.json b/ng2-components/ng2-activiti-diagrams/package.json index 0da3c6a4df..8aca1b5359 100644 --- a/ng2-components/ng2-activiti-diagrams/package.json +++ b/ng2-components/ng2-activiti-diagrams/package.json @@ -28,17 +28,17 @@ "url": "https://github.com/Alfresco/alfresco-ng2-components/issues" }, "dependencies": { - "@angular/animations": "4.3.6", - "@angular/cdk": "2.0.0-beta.10", - "@angular/common": "4.3.6", - "@angular/compiler": "4.3.6", - "@angular/core": "4.3.6", - "@angular/forms": "4.3.6", - "@angular/http": "4.3.6", - "@angular/material": "2.0.0-beta.10", - "@angular/platform-browser": "4.3.6", - "@angular/platform-browser-dynamic": "4.3.6", - "@angular/router": "4.3.6", + "@angular/animations": "4.4.5", + "@angular/cdk": "2.0.0-beta.12", + "@angular/common": "4.4.5", + "@angular/compiler": "4.4.5", + "@angular/core": "4.4.5", + "@angular/forms": "4.4.5", + "@angular/http": "4.4.5", + "@angular/material": "2.0.0-beta.12", + "@angular/platform-browser": "4.4.5", + "@angular/platform-browser-dynamic": "4.4.5", + "@angular/router": "4.4.5", "@ngx-translate/core": "7.0.0", "alfresco-js-api": "1.9.0", "core-js": "2.4.1", @@ -51,7 +51,7 @@ "zone.js": "0.8.12" }, "devDependencies": { - "@types/hammerjs": "2.0.34", + "@types/hammerjs": "2.0.35", "@types/jasmine": "2.5.35", "@types/node": "6.0.45", "adf-tslint-rules": "0.0.3", diff --git a/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-01.png b/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-01.png deleted file mode 100644 index 6f01cec9d5..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-01.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-02.png b/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-02.png deleted file mode 100644 index 340fb7dece..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-02.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-03.png b/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-03.png deleted file mode 100644 index d2763a2178..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/activiti-stencil-03.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/adf-stencil-01.png b/ng2-components/ng2-activiti-form/docs/assets/adf-stencil-01.png deleted file mode 100644 index 4f3473cc98..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/adf-stencil-01.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/adf-stencil-02.png b/ng2-components/ng2-activiti-form/docs/assets/adf-stencil-02.png deleted file mode 100644 index 334b4ca6c6..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/adf-stencil-02.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/demo-validator.png b/ng2-components/ng2-activiti-form/docs/assets/demo-validator.png deleted file mode 100644 index e06d00b0c6..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/demo-validator.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/form-service-sample-01.png b/ng2-components/ng2-activiti-form/docs/assets/form-service-sample-01.png deleted file mode 100644 index 479144ac25..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/form-service-sample-01.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/text-custom-widget.png b/ng2-components/ng2-activiti-form/docs/assets/text-custom-widget.png deleted file mode 100644 index ebec57f023..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/text-custom-widget.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/assets/text-default-widget.png b/ng2-components/ng2-activiti-form/docs/assets/text-default-widget.png deleted file mode 100644 index e75766e065..0000000000 Binary files a/ng2-components/ng2-activiti-form/docs/assets/text-default-widget.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-form/docs/extensibility.md b/ng2-components/ng2-activiti-form/docs/extensibility.md deleted file mode 100644 index b2b38afb10..0000000000 --- a/ng2-components/ng2-activiti-form/docs/extensibility.md +++ /dev/null @@ -1,261 +0,0 @@ -# Form Extensibility and Customisation - -_Note: it is assumed you are familiar with Alfresco Activiti form definition structure._ - -- How components and widgets are rendered on a Form -- Replacing default form widgets with custom components -- Replacing custom stencils with custom components - - - -## How components and widgets are rendered on a Form - -All form field editors (aka widgets) on a Form are rendered by means of `FormFieldComponent` -that takes an instance of a `FormFieldModel`: - -```html - -``` - -This component depends on `FormRenderingService` service to map `FormFieldModel` to UI component -based on field type or metadata information. - -### Component type resolvers - -`FormRenderingService` maps field types to corresponding instances exposing `ComponentTypeResolver` interface: - -```ts -export interface ComponentTypeResolver { - (field: FormFieldModel): Type<{}>; -} -``` - -Typically a `ComponentTypeResolver` is a function that takes `FormFieldModel` and returns corresponding component type. -It can be either a predefined component type or a dynamically evaluated based on field properties and metadata. - -#### Static component mapping - -You can (re)map fields like in the following: - -```ts -let customResolver: ComponentTypeResolver = () => CustomWidgetComponent; -formRenderingService.setComponentTypeResolver('text', customResolver, true); -``` - -or simply: - -```ts -formRenderingService.setComponentTypeResolver('text', () => CustomWidgetComponent, true); -``` - -#### Dynamic component mapping - -Alternatively your resolver may return different component types based on `FormFieldModel` state and condition: - -```ts -let customResolver: ComponentTypeResolver = (field: FormFieldModel): Type<{}> => { - if (field) { - let params = field.params; - } - return UnknownWidgetComponent; -}; -formRenderingService.setComponentTypeResolver('text', customResolver, true); -``` - -### Default component mappings - -Stencil Name | Field Type | Component Type | -| --- | --- | --- | -| Text | text | TextWidgetComponent | -| Number | integer | NumberWidgetComponent | -| Multi-line text | multi-line-text | MultilineTextWidgetComponentComponent | -| Checkbox | boolean | CheckboxWidgetComponent | -| Dropdown | dropdown | DropdownWidgetComponent | -| Date | date | DateWidgetComponent | -| Amount | amount | AmountWidgetComponent | -| Radio buttons | radio-buttons | RadioButtonsWidgetComponent | -| Hyperlink | hyperlink | HyperlinkWidgetComponent | -| Display value | readonly | DisplayValueWidgetComponent | -| Display text | readonly-text | DisplayTextWidgetComponentComponent | -| Typeahead | typeahead | TypeaheadWidgetComponent | -| People | people | PeopleWidgetComponent | -| Group of people | functional-group | FunctionalGroupWidgetComponent | -| Dynamic table | dynamic-table | DynamicTableWidgetComponent | -| N/A | container | ContainerWidgetComponent (layout component) | -| Header | group | ContainerWidgetComponent | -| Attach | upload | AttachWidgetComponent or UploadWidgetComponent (based on metadata) | -| N/A | N/A | UnknownWidgetComponent | - - - -## Replacing default form widgets with custom components - -This is a short walkthrough on replacing a standard `Text` widget with a custom component for all Alfresco Activiti forms -rendered within `` component. - -First let's create a simple Alfresco Activiti form with `Text` widgets: - -![default text widget](assets/text-default-widget.png) - -Every custom widget must inherit `WidgetComponent` class in order to function properly: - -```ts -import { Component } from '@angular/core'; -import { WidgetComponent } from 'ng2-activiti-form'; - -@Component({ - selector: 'custom-editor', - template: ` -
Look, I'm a custom editor!
- ` -}) -export class CustomEditorComponent extends WidgetComponent {} -``` - -Now you will need to add it to the application module or any custom module that is imported into the application one: - -```ts -import { NgModule } from '@angular/core'; -import { CustomEditorComponent } from './custom-editor.component'; - -@NgModule({ - declarations: [ CustomEditorComponent ], - exports: [ CustomEditorComponent ], - entryComponents: [ CustomEditorComponent ] -}) -export class CustomEditorsModule {} -``` - -Every custom widget should be added into all three module collections: `declarations`, `exports` and `entryComponents`. - -If you decided to store custom widgets in a separate dedicated module (and optionally as separate redistributable library) -don't forget to import it into your main application one: - -```ts -@NgModule({ - imports: [ - // ... - CustomEditorsModule - // ... - ], - providers: [], - bootstrap: [ AppComponent ] -}) -export class AppModule {} -``` - -Now you can import `FormRenderingService` in any of your Views and override default mapping similar to the following: - -```ts -import { Component } from '@angular/core'; -import { CustomEditorComponent } from './custom-editor.component'; - -@Component({...}) -export class MyView { - - constructor(formRenderingService: FormRenderingService) { - formRenderingService.setComponentTypeResolver('text', () => CustomEditorComponent, true); - } - -} -``` - -At runtime it should look similar to the following: - -![custom text widget](assets/text-custom-widget.png) - - - -## Replacing custom stencils with custom components - -This is a short walkthrough on rendering custom Alfresco Activiti stencils by means of custom Angular 2 components. - -### Creating custom stencil - -First let's create a basic stencil and call it `Custom Stencil 01`: - -![custom stencil](assets/activiti-stencil-01.png) - -_Note the `internal identifier` value as it will become a `field type` value when corresponding form is rendered._ - -Next put some simple html layout for `Form runtime template` and `Form editor template` fields: - -```html -
Custom activiti stencil
-``` - -Now you are ready to design a test form based on your custom stencil: - -![custom stencil form](assets/activiti-stencil-02.png) - -Once wired with a new task it should look like the following within Alfresco Activiti web application: - -![custom stencil task](assets/activiti-stencil-03.png) - -### Creating custom widget - -If you load previously created task into ADF `` component you will see something like the following: - -![adf stencil](assets/adf-stencil-01.png) - -Let's create an Angular 2 component to render missing content: - -```ts -import { Component } from '@angular/core'; -import { WidgetComponent } from 'ng2-activiti-form'; - -@Component({ - selector: 'custom-stencil-01', - template: `
ADF version of custom Activiti stencil
` -}) -export class CustomStencil01 extends WidgetComponent {} -``` - -Put it inside custom module: - -```ts -import { NgModule } from '@angular/core'; -import { CustomStencil01 } from './custom-stencil-01.component'; - -@NgModule({ - declarations: [ CustomStencil01 ], - exports: [ CustomStencil01 ], - entryComponents: [ CustomStencil01 ] -}) -export class CustomEditorsModule {} -``` - -And import into your Application Module - -```ts -@NgModule({ - imports: [ - // ... - CustomEditorsModule - // ... - ], - providers: [], - bootstrap: [ AppComponent ] -}) -export class AppModule {} -``` - -Now you can import `FormRenderingService` in any of your Views and provide new mapping: - -```ts -import { Component } from '@angular/core'; -import { CustomStencil01 } from './custom-stencil-01.component'; - -@Component({...}) -export class MyView { - - constructor(formRenderingService: FormRenderingService) { - formRenderingService.setComponentTypeResolver('custom_stencil_01', () => CustomStencil01, true); - } - -} -``` - -At runtime you should now see your custom Angular 2 component rendered in place of the stencils: - -![adf stencil runtime](assets/adf-stencil-02.png) \ No newline at end of file diff --git a/ng2-components/ng2-activiti-form/docs/stencils.md b/ng2-components/ng2-activiti-form/docs/stencils.md deleted file mode 100644 index d11d411404..0000000000 --- a/ng2-components/ng2-activiti-form/docs/stencils.md +++ /dev/null @@ -1,144 +0,0 @@ -# Form Stencils with Angular 2 - -Form component provides basic support for custom stencils created with Activiti stencil editor. - -## Installing - -Configuring support for stencils requires the following configuration for your `index.html` file: - -```html - - - - -``` - -Where `` should be replaced with a valid url pointing to your Activiti installation, for example: - -```html - -``` -- `/app/rest/script-files/controllers` - provides all stencil controllers stored within Activiti - -- `runtime.ng1.js` - provides a compatibility layer for controllers created with Angular 1 - (this is to avoid runtime errors when loading Angular 1 code into `` component) - -- `runtime.adf.js` - provides API for stencil management and registration, - i.e. mapping html templates with corresponding controller classes - -## Creating new stencil - -Create a new stencil and add a new item called `ng2 component 01`. - -The internal identifier in this case should be `ng2_component_01`. -This value will be used as field type when form gets rendered. - -## Form runtime template - -This should be a valid Angular 2 component template that you want to render in `` component: - -```html -
-
Angular2 Component
-
Created by: {{name}}
-
-``` - -## Form editor template - -This can be any html layout to be rendered as a component placeholder in Activiti Form Designer. - -```html -
-
- Angular2 Component 01 -
-
-``` - -## Custom component controller - -This field should contain JavaScript code for Angular 2 component class. - -_Note: If you are using TypeScript then you should be putting transpiled JavaScript code here, -you can try official [TypeScript playground](http://www.typescriptlang.org/play/) -to see how TS code gets transpiled into JS._ - -### JavaScript code - -```js -var SampleClass1 = (function () { - function SampleClass1() { - this.name = 'Denys'; - console.log('ng2_component_01 ctor'); - } - SampleClass1.prototype.ngOnInit = function () { - console.log('OnInit called'); - }; - return SampleClass1; -}()); -``` - -### TypeScript code - -The TypeScript version of the code above is: - -```ts -import { OnInit } from '@angular/core'; - -class SampleClass1 implements OnInit { - - constructor() { - console.log('ctor called'); - } - - ngOnInit() { - console.log('OnInit called'); - } - -} -``` - -### Mapping template with component class - -In order to map **form runtime template** with the corresponding component class -you will need to register both parts with `adf.registerComponent(identifier, class)` api: - -```js -if (adf) { - adf.registerComponent('ng2_component_01', SampleClass1); -} -``` - -### Final result - -```js -var SampleClass1 = (function () { - function SampleClass1() { - this.name = 'Denys'; - console.log('ng2_component_01 ctor'); - } - SampleClass1.prototype.ngOnInit = function () { - console.log('OnInit called'); - }; - return SampleClass1; -}()); - -if (adf) { - adf.registerComponent('ng2_component_01', SampleClass1); -} -``` - -## Runtime result - -When rendered on the form this stencil item should look like the following: - -```html -Angular2 Component -Created by: Denys -``` - -ADF Form component will automatically assemble and compile a valid Angular 2 component on the fly. \ No newline at end of file diff --git a/ng2-components/ng2-activiti-form/package.json b/ng2-components/ng2-activiti-form/package.json index cd2a01560d..9a8adc6347 100644 --- a/ng2-components/ng2-activiti-form/package.json +++ b/ng2-components/ng2-activiti-form/package.json @@ -35,17 +35,17 @@ "activiti" ], "dependencies": { - "@angular/animations": "4.3.6", - "@angular/cdk": "2.0.0-beta.10", - "@angular/common": "4.3.6", - "@angular/compiler": "4.3.6", - "@angular/core": "4.3.6", - "@angular/forms": "4.3.6", - "@angular/http": "4.3.6", - "@angular/material": "2.0.0-beta.10", - "@angular/platform-browser": "4.3.6", - "@angular/platform-browser-dynamic": "4.3.6", - "@angular/router": "4.3.6", + "@angular/animations": "4.4.5", + "@angular/cdk": "2.0.0-beta.12", + "@angular/common": "4.4.5", + "@angular/compiler": "4.4.5", + "@angular/core": "4.4.5", + "@angular/forms": "4.4.5", + "@angular/http": "4.4.5", + "@angular/material": "2.0.0-beta.12", + "@angular/platform-browser": "4.4.5", + "@angular/platform-browser-dynamic": "4.4.5", + "@angular/router": "4.4.5", "@ngx-translate/core": "7.0.0", "alfresco-js-api": "1.9.0", "core-js": "2.4.1", @@ -58,7 +58,7 @@ "zone.js": "0.8.12" }, "devDependencies": { - "@types/hammerjs": "2.0.34", + "@types/hammerjs": "2.0.35", "@types/jasmine": "2.5.35", "@types/node": "6.0.45", "adf-tslint-rules": "0.0.3", diff --git a/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.spec.ts b/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.spec.ts index 246c1d119f..7ebe56a731 100644 --- a/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.spec.ts @@ -16,7 +16,7 @@ */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { MdInputModule } from '@angular/material'; +import { MatInputModule } from '@angular/material'; import { CoreModule } from 'ng2-alfresco-core'; import { ErrorWidgetComponent } from '../widgets/error/error.component'; import { FormRenderingService } from './../../services/form-rendering.service'; @@ -38,7 +38,7 @@ describe('FormFieldComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [CoreModule, - MdInputModule + MatInputModule ], declarations: [ FormFieldComponent, diff --git a/ng2-components/ng2-activiti-form/src/components/form.component.html b/ng2-components/ng2-activiti-form/src/components/form.component.html index 8b42d8d855..7eb25440fe 100644 --- a/ng2-components/ng2-activiti-form/src/components/form.component.html +++ b/ng2-components/ng2-activiti-form/src/components/form.component.html @@ -3,22 +3,22 @@
- - - + + +

-
- {{ form.isValid ? 'event_available' : 'event_busy' }} + {{ form.isValid ? 'event_available' : 'event_busy' }} {{form.taskName}}

-
-
- + + +
@@ -28,25 +28,25 @@
- - + + - - + +
- Debug mode + Debug mode

Values

{{form.values | json}}
diff --git a/ng2-components/ng2-activiti-form/src/components/form.component.visibility.spec.ts b/ng2-components/ng2-activiti-form/src/components/form.component.visibility.spec.ts index e9efb1e8da..4b63cc66fe 100644 --- a/ng2-components/ng2-activiti-form/src/components/form.component.visibility.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/form.component.visibility.spec.ts @@ -106,9 +106,9 @@ describe('FormComponent UI and visibiltiy', () => { expect(dropdown).toBeDefined(); expect(dropdown).not.toBeNull(); - const optOne = fixture.debugElement.queryAll(By.css('[id="md-option-1"]')); - const optTwo = fixture.debugElement.queryAll(By.css('[id="md-option-2"]')); - const optThree = fixture.debugElement.queryAll(By.css('[id="md-option-3"]')); + const optOne = fixture.debugElement.queryAll(By.css('[id="mat-option-1"]')); + const optTwo = fixture.debugElement.queryAll(By.css('[id="mat-option-2"]')); + const optThree = fixture.debugElement.queryAll(By.css('[id="mat-option-3"]')); expect(optOne[0].nativeElement.innerText).toEqual('united kingdom'); expect(optTwo[0].nativeElement.innerText).toEqual('italy'); diff --git a/ng2-components/ng2-activiti-form/src/components/material.module.ts b/ng2-components/ng2-activiti-form/src/components/material.module.ts index a54bd47557..80dc1ca37f 100644 --- a/ng2-components/ng2-activiti-form/src/components/material.module.ts +++ b/ng2-components/ng2-activiti-form/src/components/material.module.ts @@ -17,23 +17,23 @@ import { NgModule } from '@angular/core'; import { - MD_PLACEHOLDER_GLOBAL_OPTIONS, MdAutocompleteModule, MdButtonModule, MdCardModule, - MdCheckboxModule, MdDatepickerModule, MdGridListModule, MdIconModule, MdInputModule, - MdListModule, MdOptionModule, MdRadioModule, MdSelectModule, MdSlideToggleModule, MdTableModule, - MdTabsModule + MAT_PLACEHOLDER_GLOBAL_OPTIONS, MatAutocompleteModule, MatButtonModule, MatCardModule, + MatCheckboxModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, + MatListModule, MatOptionModule, MatRadioModule, MatSelectModule, MatSlideToggleModule, MatTableModule, + MatTabsModule } from '@angular/material'; export function modules() { return [ - MdAutocompleteModule, MdButtonModule, MdCardModule, MdCheckboxModule, - MdDatepickerModule, MdGridListModule, MdIconModule, MdInputModule, MdListModule, - MdOptionModule, MdRadioModule, MdSelectModule, MdSlideToggleModule, MdTableModule, MdTabsModule + MatAutocompleteModule, MatButtonModule, MatCardModule, MatCheckboxModule, + MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, + MatOptionModule, MatRadioModule, MatSelectModule, MatSlideToggleModule, MatTableModule, MatTabsModule ]; } @NgModule({ providers: [ - {provide: MD_PLACEHOLDER_GLOBAL_OPTIONS, useValue: { float: 'never' }} + {provide: MAT_PLACEHOLDER_GLOBAL_OPTIONS, useValue: { float: 'never' }} ], imports: modules(), exports: modules() diff --git a/ng2-components/ng2-activiti-form/src/components/start-form.component.html b/ng2-components/ng2-activiti-form/src/components/start-form.component.html index 8281a9c977..4bc5f210f1 100644 --- a/ng2-components/ng2-activiti-form/src/components/start-form.component.html +++ b/ng2-components/ng2-activiti-form/src/components/start-form.component.html @@ -1,11 +1,11 @@
- - - + + +

{{form.taskName}}

-
-
- + + +
@@ -15,23 +15,23 @@
- - + + - - - - - + +
diff --git a/ng2-components/ng2-activiti-form/src/components/start-form.component.spec.ts b/ng2-components/ng2-activiti-form/src/components/start-form.component.spec.ts index 64543d1254..20fd92be8e 100644 --- a/ng2-components/ng2-activiti-form/src/components/start-form.component.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/start-form.component.spec.ts @@ -235,7 +235,7 @@ describe('ActivitiStartForm', () => { const formFields = component.form.getFormFields(); const labelField = formFields.find(field => field.id === 'mockTypeDropDown'); const dropDownWidget = fixture.debugElement.nativeElement.querySelector('dropdown-widget'); - const selectElement = fixture.debugElement.nativeElement.querySelector('.adf-dropdown-widget>md-select .mat-select-trigger'); + const selectElement = fixture.debugElement.nativeElement.querySelector('.adf-dropdown-widget>mat-select .mat-select-trigger'); selectElement.click(); expect(selectElement).toBeDefined(); expect(dropDownWidget).toBeDefined(); @@ -365,8 +365,8 @@ describe('ActivitiStartForm', () => { component.ngOnChanges({ processDefinitionId: new SimpleChange(exampleId1, exampleId2, true) }); fixture.whenStable().then(() => { fixture.detectChanges(); - const titleIcon = fixture.debugElement.nativeElement.querySelector('md-card-title>md-icon'); - const titleElement = fixture.debugElement.nativeElement.querySelector('md-card-title>h2'); + const titleIcon = fixture.debugElement.nativeElement.querySelector('mat-card-title>mat-icon'); + const titleElement = fixture.debugElement.nativeElement.querySelector('mat-card-title>h2'); const actionButtons = fixture.debugElement.nativeElement.querySelectorAll('.mat-button'); expect(titleIcon).toBeDefined(); expect(titleElement).toBeDefined(); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.html index 031188f3b4..a03c1470a6 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.html @@ -1,8 +1,8 @@
- + - {{currency }} - {{currency }} + - +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.spec.ts index 38f1a7e45b..147fd881b5 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/amount/amount.widget.spec.ts @@ -16,7 +16,7 @@ */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { MdInputModule } from '@angular/material'; +import { MatInputModule } from '@angular/material'; import { CoreModule } from 'ng2-alfresco-core'; import { ActivitiAlfrescoContentService } from '../../../services/activiti-alfresco.service'; import { ErrorWidgetComponent } from '../error/error.component'; @@ -34,7 +34,7 @@ describe('AmountWidgetComponent', () => { TestBed.configureTestingModule({ imports: [ CoreModule, - MdInputModule + MatInputModule ], declarations: [ AmountWidgetComponent, diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/checkbox/checkbox.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/checkbox/checkbox.widget.html index cc9f95ae3b..f0b0293801 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/checkbox/checkbox.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/checkbox/checkbox.widget.html @@ -1,5 +1,5 @@
- {{field.name}} * - +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.html index 9052855031..7b45d2e6ab 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.html @@ -2,10 +2,10 @@

{{content.name}}

diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.scss b/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.scss index ef7e8c832e..59c3fea6d8 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.scss +++ b/ng2-components/ng2-activiti-form/src/components/widgets/container/container.widget.scss @@ -51,7 +51,7 @@ width: 100%; } - md-input-container { + mat-form-field { width: 100%; } diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.html index 991535b82f..94e077e2bd 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.html @@ -1,5 +1,5 @@ - - + +
{{content.name}}
@@ -9,14 +9,14 @@
{{content.name}}
- + - - - - - + + diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.spec.ts index bf9eb9bbae..32d5b59d3f 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/content/content.widget.spec.ts @@ -17,7 +17,7 @@ import { DebugElement, SimpleChange } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { MdTabsModule } from '@angular/material'; +import { MatTabsModule } from '@angular/material'; import { By } from '@angular/platform-browser'; import { AlfrescoTranslationService, ContentService, CoreModule } from 'ng2-alfresco-core'; import { Observable } from 'rxjs/Rx'; @@ -65,7 +65,7 @@ describe('ContentWidgetComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ - MdTabsModule, + MatTabsModule, CoreModule ], declarations: [ diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.html index 275ead0059..3187528a94 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.html @@ -1,9 +1,9 @@
- + - - - + + - +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.ts b/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.ts index f4434775f0..9a11210c6e 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/date/date.widget.ts @@ -18,7 +18,7 @@ /* tslint:disable:component-selector */ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; -import { DateAdapter, MD_DATE_FORMATS } from '@angular/material'; +import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material'; import * as moment from 'moment'; import { Moment } from 'moment'; import { MOMENT_DATE_FORMATS, MomentDateAdapter } from 'ng2-alfresco-core'; @@ -29,7 +29,7 @@ import { baseHost , WidgetComponent } from './../widget.component'; selector: 'date-widget', providers: [ {provide: DateAdapter, useClass: MomentDateAdapter}, - {provide: MD_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}], + {provide: MAT_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}], templateUrl: './date.widget.html', styleUrls: ['./date.widget.scss'], host: baseHost, diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.html index 18ffbea93d..5f676b0620 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.html @@ -1,16 +1,20 @@
- - {{opt.name}} - {{field.value}} - - - + + + {{opt.name}} + + {{field.value}} + + + +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts index 97434b6922..fa0324ef69 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts @@ -153,9 +153,9 @@ describe('DropdownWidgetComponent', () => { openSelect(); - const optOne = fixture.debugElement.queryAll(By.css('[id="md-option-1"]')); - const optTwo = fixture.debugElement.queryAll(By.css('[id="md-option-2"]')); - const optThree = fixture.debugElement.queryAll(By.css('[id="md-option-3"]')); + const optOne = fixture.debugElement.queryAll(By.css('[id="mat-option-1"]')); + const optTwo = fixture.debugElement.queryAll(By.css('[id="mat-option-2"]')); + const optThree = fixture.debugElement.queryAll(By.css('[id="mat-option-3"]')); expect(optOne).not.toBeNull(); expect(optTwo).not.toBeNull(); @@ -236,9 +236,9 @@ describe('DropdownWidgetComponent', () => { openSelect(); - const optOne = fixture.debugElement.queryAll(By.css('[id="md-option-1"]')); - const optTwo = fixture.debugElement.queryAll(By.css('[id="md-option-2"]')); - const optThree = fixture.debugElement.queryAll(By.css('[id="md-option-3"]')); + const optOne = fixture.debugElement.queryAll(By.css('[id="mat-option-1"]')); + const optTwo = fixture.debugElement.queryAll(By.css('[id="mat-option-2"]')); + const optThree = fixture.debugElement.queryAll(By.css('[id="mat-option-3"]')); expect(optOne).not.toBeNull(); expect(optTwo).not.toBeNull(); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.html index 58c4be6330..fb453f5381 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.html @@ -25,31 +25,31 @@
- - - - -
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/boolean/boolean.editor.html b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/boolean/boolean.editor.html index 3820fca3d1..99af70b747 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/boolean/boolean.editor.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/boolean/boolean.editor.html @@ -1,5 +1,5 @@ diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.html b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.html index 254631b6d3..3f3de32799 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.html @@ -1,16 +1,16 @@
- + - - - - + + +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.ts b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.ts index 623c46a5c4..c3c9a64f8a 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/date/date.editor.ts @@ -18,7 +18,7 @@ /* tslint:disable:component-selector */ import { Component, Input, OnInit } from '@angular/core'; -import { DateAdapter, MD_DATE_FORMATS } from '@angular/material'; +import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material'; import * as moment from 'moment'; import { Moment } from 'moment'; import { MOMENT_DATE_FORMATS, MomentDateAdapter } from 'ng2-alfresco-core'; @@ -29,7 +29,7 @@ import { DynamicTableColumn, DynamicTableModel, DynamicTableRow } from './../../ templateUrl: './date.editor.html', providers: [ {provide: DateAdapter, useClass: MomentDateAdapter}, - {provide: MD_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}], + {provide: MAT_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}], styleUrls: ['./date.editor.scss'] }) export class DateEditorComponent implements OnInit { diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.html b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.html index b80a2652ba..f8c2883f30 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.html @@ -1,14 +1,16 @@ diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts index bebe5ee5ba..a2cc72ddcc 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts @@ -246,9 +246,9 @@ describe('DropdownEditorComponent', () => { openSelect(); - const optOne = fixture.debugElement.queryAll(By.css('[id="md-option-1"]')); - const optTwo = fixture.debugElement.queryAll(By.css('[id="md-option-2"]')); - const optThree = fixture.debugElement.queryAll(By.css('[id="md-option-3"]')); + const optOne = fixture.debugElement.queryAll(By.css('[id="mat-option-1"]')); + const optTwo = fixture.debugElement.queryAll(By.css('[id="mat-option-2"]')); + const optThree = fixture.debugElement.queryAll(By.css('[id="mat-option-3"]')); expect(optOne).not.toBeNull(); expect(optTwo).not.toBeNull(); @@ -294,9 +294,9 @@ describe('DropdownEditorComponent', () => { openSelect(); - const optOne = fixture.debugElement.queryAll(By.css('[id="md-option-1"]')); - const optTwo = fixture.debugElement.queryAll(By.css('[id="md-option-2"]')); - const optThree = fixture.debugElement.queryAll(By.css('[id="md-option-3"]')); + const optOne = fixture.debugElement.queryAll(By.css('[id="mat-option-1"]')); + const optTwo = fixture.debugElement.queryAll(By.css('[id="mat-option-2"]')); + const optThree = fixture.debugElement.queryAll(By.css('[id="mat-option-3"]')); expect(optOne).not.toBeNull(); expect(optTwo).not.toBeNull(); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/row.editor.html b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/row.editor.html index fad8233126..d26a343ada 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/row.editor.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/row.editor.html @@ -35,7 +35,7 @@
- - + +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/text/text.editor.html b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/text/text.editor.html index 28d0e6a71b..4071c0bf09 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/text/text.editor.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/editors/text/text.editor.html @@ -1,12 +1,12 @@
- + - - +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/functional-group/functional-group.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/functional-group/functional-group.widget.html index 9351a7aa7e..47688ba7b4 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/functional-group/functional-group.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/functional-group/functional-group.widget.html @@ -1,9 +1,9 @@
- + - - - + + {{item.name}} - - + + - +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/multiline-text/multiline-text.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/multiline-text/multiline-text.widget.html index 4a14b14878..e885aee522 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/multiline-text/multiline-text.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/multiline-text/multiline-text.widget.html @@ -1,9 +1,9 @@
- + - - +
{{field?.value?.length || 0}}/{{field.maxLength}}
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/number/number.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/number/number.widget.html index 1eb4fd0fac..06b3e34598 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/number/number.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/number/number.widget.html @@ -1,8 +1,8 @@
- + - - +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.html index 61ab5d51eb..f9b3859a13 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.html @@ -4,10 +4,10 @@ [class.adf-readonly]="field.readOnly" id="people-widget-content" *ngIf="field.isVisible"> - + - - + [matAutocomplete]="auto"> + +
{{getInitialUserName(user.firstName, user.lastName)}} @@ -28,9 +28,9 @@
{{getDisplayName(user)}}
-
-
-
+ + +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.html index bcb5e912ef..e12420c87e 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.html @@ -2,8 +2,8 @@ [class.adf-invalid]="!field.isValid" [class.adf-readonly]="field.readOnly" [id]="field.id" *ngIf="field?.isVisible">
- - + {{opt.name}} - - + +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/tabs/tabs.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/tabs/tabs.widget.html index 439e9a3d78..e71d0d1baf 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/tabs/tabs.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/tabs/tabs.widget.html @@ -1,9 +1,9 @@
- - + +
-
-
+ +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/text/text.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/text/text.widget.html index 8d26fba026..7088711058 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/text/text.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/text/text.widget.html @@ -1,8 +1,8 @@
- + - - +
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.html index 1289f51401..36bf52103b 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.html @@ -4,9 +4,9 @@ [class.adf-invalid]="!field.isValid" [class.adf-readonly]="field.readOnly" id="typehead-div" *ngIf="field.isVisible"> - + - - - + [matAutocomplete]="auto"> + + {{item.name}} - - - + + + diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts index 63c629189c..5499e5f39c 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts @@ -378,9 +378,9 @@ describe('TypeaheadWidgetComponent', () => { typeaheadWidgetComponent.onKeyUp(keyboardEvent); fixture.detectChanges(); fixture.whenStable().then(() => { - expect(fixture.debugElement.queryAll(By.css('[id="md-option-1"]'))).toBeDefined(); - expect(fixture.debugElement.queryAll(By.css('[id="md-option-2"]'))).toBeDefined(); - expect(fixture.debugElement.queryAll(By.css('[id="md-option-3"]'))).toBeDefined(); + expect(fixture.debugElement.queryAll(By.css('[id="mat-option-1"]'))).toBeDefined(); + expect(fixture.debugElement.queryAll(By.css('[id="mat-option-2"]'))).toBeDefined(); + expect(fixture.debugElement.queryAll(By.css('[id="mat-option-3"]'))).toBeDefined(); }); })); }); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/unknown/unknown.widget.ts b/ng2-components/ng2-activiti-form/src/components/widgets/unknown/unknown.widget.ts index 97a560b9fb..3b2d02d5c5 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/unknown/unknown.widget.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/unknown/unknown.widget.ts @@ -24,12 +24,12 @@ import { baseHost , WidgetComponent } from './../widget.component'; @Component({ selector: 'unknown-widget', template: ` - - - error_outline + + + error_outline Unknown type: {{field.type}} - - + + `, styleUrls: ['./unknown.widget.scss'], diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.html index 92a77d1cc5..8667c343f3 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.html +++ b/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.html @@ -4,9 +4,9 @@
- - - + + - {{decode(file.name)}} - - - + +
- add + add diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html index 588a1998aa..bec05cb242 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html @@ -21,8 +21,8 @@ - - + + diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.spec.ts index f460505527..275b05b10c 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.spec.ts @@ -17,7 +17,7 @@ import { NgZone, SimpleChange } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { MdProgressSpinnerModule } from '@angular/material'; +import { MatProgressSpinnerModule } from '@angular/material'; import { By } from '@angular/platform-browser'; import { TranslateService } from '@ngx-translate/core'; import { ActivitiContentService } from 'ng2-activiti-form'; @@ -45,7 +45,7 @@ describe('ProcessAttachmentListComponent', () => { imports: [ CoreModule, DataTableModule, - MdProgressSpinnerModule + MatProgressSpinnerModule ], declarations: [ ProcessAttachmentListComponent diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-comments.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/process-comments.component.spec.ts index 612636aded..b12747223e 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-comments.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/process-comments.component.spec.ts @@ -17,7 +17,7 @@ import { DatePipe } from '@angular/common'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { MdInputModule } from '@angular/material'; +import { MatInputModule } from '@angular/material'; import { Observable } from 'rxjs/Rx'; import { @@ -45,7 +45,7 @@ describe('ActivitiProcessInstanceComments', () => { imports: [ CoreModule, DataTableModule, - MdInputModule + MatInputModule ], declarations: [ ProcessCommentsComponent, diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-filters.component.html b/ng2-components/ng2-activiti-processlist/src/components/process-filters.component.html index 16e178a467..ffed1cd9bd 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-filters.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/process-filters.component.html @@ -1,9 +1,9 @@ diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html b/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html index 0953e3a363..6611f0b3d5 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html @@ -1,37 +1,37 @@
{{ 'DETAILS.MESSAGES.NONE'|translate }}
- - - {{ getProcessNameOrDescription('medium') }} - - + + + {{ getProcessNameOrDescription('medium') }} + + - + - - + + - - + +
- +
- - + + - - + + -
-
+ + diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-instance-header.component.html b/ng2-components/ng2-activiti-processlist/src/components/process-instance-header.component.html index 1487c6963d..8189048260 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-instance-header.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/process-instance-header.component.html @@ -1,5 +1,5 @@ - - + + - - + + diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.html b/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.html index bf60e9f55e..b7d9c3c7b5 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.html @@ -1,26 +1,26 @@
-
- + {{ 'DETAILS.LABELS.TASKS_ACTIVE'|translate }} - {{activeTasks?.length}} - + {{activeTasks?.length}} + @@ -34,35 +34,35 @@
- + {{ 'DETAILS.LABELS.TASKS_COMPLETED'|translate }} - {{completedTasks?.length}} - + {{completedTasks?.length}} +
@@ -71,15 +71,15 @@
-

{{ 'DETAILS.LABELS.START_FORM'|translate }}

-
+

{{ 'DETAILS.LABELS.START_FORM'|translate }}

+
-
- +
+
diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.spec.ts index fe51194d07..203fcf16ad 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.spec.ts @@ -112,7 +112,7 @@ describe('ProcessInstanceTasksComponent', () => { component.ngOnChanges({ 'processInstanceDetails': change }); let listEl = fixture.debugElement.query(By.css('[data-automation-id="active-tasks"]')); expect(listEl).not.toBeNull(); - expect(listEl.queryAll(By.css('md-list-item')).length).toBe(1); + expect(listEl.queryAll(By.css('mat-list-item')).length).toBe(1); }); }); @@ -124,7 +124,7 @@ describe('ProcessInstanceTasksComponent', () => { fixture.detectChanges(); let listEl = fixture.debugElement.query(By.css('[data-automation-id="completed-tasks"]')); expect(listEl).not.toBeNull(); - expect(listEl.queryAll(By.css('md-list-item')).length).toBe(1); + expect(listEl.queryAll(By.css('mat-list-item')).length).toBe(1); }); }); diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.ts b/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.ts index 79fdf86bfa..1ccbbb2329 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/process-instance-tasks.component.ts @@ -17,7 +17,7 @@ import { DatePipe } from '@angular/common'; import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core'; -import { MdDialog } from '@angular/material'; +import { MatDialog } from '@angular/material'; import { TaskDetailsEvent, TaskDetailsModel } from 'ng2-activiti-tasklist'; import { LogService } from 'ng2-alfresco-core'; import { Observable, Observer } from 'rxjs/Rx'; @@ -66,7 +66,7 @@ export class ProcessInstanceTasksComponent implements OnInit, OnChanges { constructor(private activitiProcess: ProcessService, private logService: LogService, - private dialog: MdDialog) { + private dialog: MatDialog) { this.task$ = new Observable(observer => this.taskObserver = observer).share(); this.completedTask$ = new Observable(observer => this.completedTaskObserver = observer).share(); } diff --git a/ng2-components/ng2-activiti-processlist/src/components/processlist.component.html b/ng2-components/ng2-activiti-processlist/src/components/processlist.component.html index ac62ed5b68..d40a97ad3a 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/processlist.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/processlist.component.html @@ -8,11 +8,11 @@ - - + diff --git a/ng2-components/ng2-activiti-processlist/src/components/processlist.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/processlist.component.spec.ts index 4b705b08e4..9c5c51d582 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/processlist.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/processlist.component.spec.ts @@ -17,7 +17,7 @@ import { SimpleChange } from '@angular/core'; import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; -import { MdProgressSpinnerModule } from '@angular/material'; +import { MatProgressSpinnerModule } from '@angular/material'; import { Observable } from 'rxjs/Rx'; import { ProcessInstanceListComponent } from './processlist.component'; @@ -41,7 +41,7 @@ describe('ProcessInstanceListComponent', () => { imports: [ CoreModule, DataTableModule, - MdProgressSpinnerModule + MatProgressSpinnerModule ], declarations: [ ProcessInstanceListComponent ], providers: [ diff --git a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.html b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.html index 4d8232a9ab..4832f215b7 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.html @@ -1,33 +1,35 @@ - - {{'START_PROCESS.FORM.TITLE' | translate}} - - - + + {{'START_PROCESS.FORM.TITLE' | translate}} + + + {{errorMessageId|translate}} - - - - - - {{'START_PROCESS.FORM.TYPE_PLACEHOLDER' | translate}} - - {{ processDef.name }} - - - + + + + + + {{'START_PROCESS.FORM.TYPE_PLACEHOLDER' | translate}} + + {{ processDef.name }} + + + + - + - - - + + + {{'START_PROCESS.NO_PROCESS_DEFINITIONS' | translate}} - - - - - - - \ No newline at end of file + + + + + + + diff --git a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.scss b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.scss index e92ea9c43c..251dfb070e 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.scss +++ b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.scss @@ -7,19 +7,19 @@ .mat-select-trigger { font-size: 14px !important; } - md-input-container { + mat-form-field { width: 100%; } - md-select { + mat-select { width: 100%; padding: 16px 0px 0px 0px; } - md-card-actions { + mat-card-actions { text-align: right; } } &-process-input-container { - md-input-container { + mat-form-field { width: 100%; } } diff --git a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts index 51b47dc31e..37a045dea4 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts @@ -18,10 +18,10 @@ import { DebugElement, SimpleChange } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { - MdButtonModule, - MdCardModule, - MdInputModule, - MdSelectModule + MatButtonModule, + MatCardModule, + MatInputModule, + MatSelectModule } from '@angular/material'; import { ActivitiFormModule, FormService } from 'ng2-activiti-form'; import { AlfrescoTranslationService, CoreModule } from 'ng2-alfresco-core'; @@ -50,10 +50,10 @@ describe('StartProcessInstanceComponent', () => { imports: [ CoreModule, ActivitiFormModule, - MdButtonModule, - MdCardModule, - MdInputModule, - MdSelectModule + MatButtonModule, + MatCardModule, + MatInputModule, + MatSelectModule ], declarations: [ StartProcessInstanceComponent @@ -120,7 +120,7 @@ describe('StartProcessInstanceComponent', () => { component.ngOnChanges({'appId': change}); fixture.detectChanges(); - let selectElement = fixture.nativeElement.querySelector('md-select'); + let selectElement = fixture.nativeElement.querySelector('mat-select'); expect(selectElement.children.length).toBe(1); }); @@ -130,8 +130,8 @@ describe('StartProcessInstanceComponent', () => { component.processDefinitions = testProcessDefs; fixture.detectChanges(); fixture.whenStable().then(() => { - let selectElement = fixture.nativeElement.querySelector('md-select > .mat-select-trigger'); - let optionElement = fixture.nativeElement.querySelectorAll('md-option'); + let selectElement = fixture.nativeElement.querySelector('mat-select > .mat-select-trigger'); + let optionElement = fixture.nativeElement.querySelectorAll('mat-option'); selectElement.click(); expect(selectElement).not.toBeNull(); expect(selectElement).toBeDefined(); diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/activiti_people.png b/ng2-components/ng2-activiti-tasklist/docs/assets/activiti_people.png deleted file mode 100644 index 42c7c41728..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/activiti_people.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-comments.png b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-comments.png deleted file mode 100644 index 40a31a3c4d..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-comments.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-start-task.png b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-start-task.png deleted file mode 100644 index e9ccecce86..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-start-task.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-task-audit-directive.png b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-task-audit-directive.png deleted file mode 100644 index acf07e2c4a..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-task-audit-directive.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-task-header.png b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-task-header.png deleted file mode 100644 index 41ed32afb9..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-task-header.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/how-filter-apps.png b/ng2-components/ng2-activiti-tasklist/docs/assets/how-filter-apps.png deleted file mode 100644 index e50e4f57e1..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/how-filter-apps.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/how-to-create-accordion-menu.png b/ng2-components/ng2-activiti-tasklist/docs/assets/how-to-create-accordion-menu.png deleted file mode 100644 index ae06d5cd21..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/how-to-create-accordion-menu.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-double-click-and-close-search.gif b/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-double-click-and-close-search.gif deleted file mode 100644 index 310e36ff97..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-double-click-and-close-search.gif and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-double-click-without-close-search.gif b/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-double-click-without-close-search.gif deleted file mode 100644 index 54c03c256c..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-double-click-without-close-search.gif and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-single-click-and-close-search.gif b/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-single-click-and-close-search.gif deleted file mode 100644 index e3300f5c1f..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-single-click-and-close-search.gif and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-single-click-without-close-search.gif b/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-single-click-without-close-search.gif deleted file mode 100644 index 8e40815a01..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/involve-people-single-click-without-close-search.gif and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/task-attachment-list.png b/ng2-components/ng2-activiti-tasklist/docs/assets/task-attachment-list.png deleted file mode 100644 index 23d902bfb4..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/task-attachment-list.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/task-create-attachment.png b/ng2-components/ng2-activiti-tasklist/docs/assets/task-create-attachment.png deleted file mode 100644 index f755633f7c..0000000000 Binary files a/ng2-components/ng2-activiti-tasklist/docs/assets/task-create-attachment.png and /dev/null differ diff --git a/ng2-components/ng2-activiti-tasklist/package.json b/ng2-components/ng2-activiti-tasklist/package.json index 009aae6387..c79866c54b 100644 --- a/ng2-components/ng2-activiti-tasklist/package.json +++ b/ng2-components/ng2-activiti-tasklist/package.json @@ -38,18 +38,18 @@ "alfresco" ], "dependencies": { - "@angular/animations": "4.3.6", - "@angular/cdk": "2.0.0-beta.10", - "@angular/common": "4.3.6", - "@angular/compiler": "4.3.6", - "@angular/core": "4.3.6", + "@angular/animations": "4.4.5", + "@angular/cdk": "2.0.0-beta.12", + "@angular/common": "4.4.5", + "@angular/compiler": "4.4.5", + "@angular/core": "4.4.5", "@angular/flex-layout": "2.0.0-beta.9", - "@angular/forms": "4.3.6", - "@angular/http": "4.3.6", - "@angular/material": "2.0.0-beta.10", - "@angular/platform-browser": "4.3.6", - "@angular/platform-browser-dynamic": "4.3.6", - "@angular/router": "4.3.6", + "@angular/forms": "4.4.5", + "@angular/http": "4.4.5", + "@angular/material": "2.0.0-beta.12", + "@angular/platform-browser": "4.4.5", + "@angular/platform-browser-dynamic": "4.4.5", + "@angular/router": "4.4.5", "@ngx-translate/core": "7.0.0", "alfresco-js-api": "1.9.0", "core-js": "2.4.1", @@ -64,7 +64,7 @@ "zone.js": "0.8.12" }, "devDependencies": { - "@types/hammerjs": "2.0.34", + "@types/hammerjs": "2.0.35", "@types/jasmine": "2.5.35", "@types/node": "6.0.45", "adf-tslint-rules": "0.0.3", diff --git a/ng2-components/ng2-activiti-tasklist/src/components/apps-list.component.html b/ng2-components/ng2-activiti-tasklist/src/components/apps-list.component.html index 99cb47f4e7..ba570ed98f 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/apps-list.component.html +++ b/ng2-components/ng2-activiti-tasklist/src/components/apps-list.component.html @@ -1,15 +1,15 @@