diff --git a/ng2-components/ng2-activiti-tasklist/README.md b/ng2-components/ng2-activiti-tasklist/README.md
index 7d2a86c13d..c36398bb05 100644
--- a/ng2-components/ng2-activiti-tasklist/README.md
+++ b/ng2-components/ng2-activiti-tasklist/README.md
@@ -39,6 +39,9 @@
- [Task People Component](#task-people-component)
* [Properties](#properties-8)
+ [Events](#events-7)
+- [ADF Comments Component](#adf-comments-component)
+ * [Properties](#properties-9)
+ + [Events](#events-8)
- [Build from sources](#build-from-sources)
- [NPM scripts](#npm-scripts)
- [Demo](#demo)
@@ -460,6 +463,32 @@ This component displays involved users to a specified task
No Events
+## ADF Comments Component
+
+This component displays comments entered by involved users to a specified task. It also allows an involved user to add his/her comment to the task.
+
+```html
+
+
+```
+
+
+
+### Properties
+
+| Name | Type | Description |
+| --- | --- | --- |
+| taskId | string | The numeric ID of the task |
+| readOnly | boolean | The boolean flag |
+
+#### Events
+
+| Name | Description |
+| --- | --- |
+| error | Raised when an error occurs while displaying/adding a comment |
+
## Build from sources
You can build component from sources with the following commands:
diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-comments.png b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-comments.png
new file mode 100644
index 0000000000..40a31a3c4d
Binary files /dev/null and b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-comments.png differ
diff --git a/ng2-components/ng2-activiti-tasklist/index.ts b/ng2-components/ng2-activiti-tasklist/index.ts
index 70814134a0..92591a486d 100644
--- a/ng2-components/ng2-activiti-tasklist/index.ts
+++ b/ng2-components/ng2-activiti-tasklist/index.ts
@@ -15,8 +15,9 @@
* limitations under the License.
*/
+import { DatePipe } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
-import { MdButtonModule, MdIconModule } from '@angular/material';
+import { MdButtonModule, MdIconModule, MdInputModule } from '@angular/material';
import { ActivitiFormModule } from 'ng2-activiti-form';
import { CoreModule } from 'ng2-alfresco-core';
import { DataTableModule } from 'ng2-alfresco-datatable';
@@ -35,6 +36,7 @@ import {
ActivitiTaskDetails,
ActivitiTaskHeader,
ActivitiTaskList,
+ AdfCommentListComponent,
NoTaskDetailsTemplateComponent,
PeopleList,
TaskAttachmentListComponent
@@ -59,7 +61,8 @@ export const ACTIVITI_TASKLIST_DIRECTIVES: any[] = [
ActivitiPeopleSearch,
TaskAttachmentListComponent,
ActivitiCreateTaskAttachmentComponent,
- PeopleList
+ PeopleList,
+ AdfCommentListComponent
];
export const ACTIVITI_TASKLIST_PROVIDERS: any[] = [
@@ -73,13 +76,15 @@ export const ACTIVITI_TASKLIST_PROVIDERS: any[] = [
DataTableModule,
ActivitiFormModule,
MdIconModule,
- MdButtonModule
+ MdButtonModule,
+ MdInputModule
],
declarations: [
...ACTIVITI_TASKLIST_DIRECTIVES
],
providers: [
- ...ACTIVITI_TASKLIST_PROVIDERS
+ ...ACTIVITI_TASKLIST_PROVIDERS,
+ DatePipe
],
exports: [
...ACTIVITI_TASKLIST_DIRECTIVES,
diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.css b/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.css
index 9ca19c95cd..73006380d2 100644
--- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.css
+++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.css
@@ -1,32 +1,25 @@
-:host {
+.adf-comments-container {
+ height: 100%;
width: 100%;
-}
-
-.activiti-label {
- font-weight: bolder;
-}
-
-.material-icons:hover {
- color: rgb(255, 152, 0);
-}
-
-.mdl-tooltip {
- will-change: unset;
-}
-
-.material-icons {
- cursor: pointer;
-}
-
-.list-wrap {
- word-wrap: break-word;
- word-break: break-all;
- -moz-hyphens:auto;
- -webkit-hyphens:auto;
- -o-hyphens:auto;
- hyphens:auto;
-}
-
-.hide-long-names {
overflow: auto;
}
+
+.adf-comments-header {
+ padding: 10px 20px;
+ font-size: 14px;
+ font-family: Muli;
+ font-weight: 600;
+ border-bottom: 1px solid #e1e1e1;
+ color: #a1a1a1;
+}
+
+.adf-comments-input-container {
+ padding: 0 15px;
+ width: calc(100% - 30px);
+ padding-top: 8px;
+ border-bottom: 1px solid #e1e1e1;
+}
+
+.adf-full-width {
+ width: 100%;
+}
\ No newline at end of file
diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.html b/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.html
index f5670baefb..c17f0c6154 100644
--- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.html
+++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-comments.component.html
@@ -1,32 +1,13 @@
-{{ 'TASK_DETAILS.LABELS.COMMENTS' |translate }}
-
-
- {{ 'TASK_DETAILS.COMMENTS.ADD' | translate }}
-
-
-
-
- {{ 'TASK_DETAILS.COMMENTS.NONE' | translate }}
-
-
-
-