From 53471eae84c62f0744f54c5d401da108a9d48f05 Mon Sep 17 00:00:00 2001 From: siva kumar Date: Mon, 16 Sep 2019 16:56:27 +0530 Subject: [PATCH] [ADF-4829] [ADF] [TaskListCloudComponent] Add action and context menu. (#5018) * * Demo on list com * [ADF-4828] [ADF] [ProcessListCloudComponent] Add action and context menu. * Exposed action and context menu. * Provided a way to in the demo shell to test action menu. * Added required transaltion on demo shell. * * Added doc * [ADF-4829] [ADF] [TaskListCloudComponent] Add action and context menu. * Exposed action and contect menu on tasklist page. * * Added documentation. * * Fixed typo * * After rebase * * Fixed failing e2e test on cloud demo tasklist * * Added providedIn in Task/process cloud service. --- demo-shell/resources/i18n/en.json | 1 + .../cloud/services/cloud-layout.service.ts | 2 +- .../shared/cloud-settings.component.html | 2 +- .../cloud/shared/cloud-settings.component.ts | 2 +- .../cloud/tasks-cloud-demo.component.html | 32 ++++- .../cloud/tasks-cloud-demo.component.ts | 49 +++++++- .../images/task-list-cloud-action-menu.png | Bin 0 -> 46491 bytes .../images/task-list-cloud-context-menu.png | Bin 0 -> 47750 bytes .../components/task-list-cloud.component.md | 116 ++++++++++++++++++ .../process-filters-cloud.module.ts | 2 - .../services/process-filter-cloud.service.ts | 4 +- .../services/task-filter-cloud.service.ts | 4 +- .../task-filters/task-filters-cloud.module.ts | 2 - .../components/task-list-cloud.component.html | 6 + .../components/task-list-cloud.component.ts | 38 +++++- 15 files changed, 245 insertions(+), 15 deletions(-) create mode 100644 docs/docassets/images/task-list-cloud-action-menu.png create mode 100644 docs/docassets/images/task-list-cloud-context-menu.png diff --git a/demo-shell/resources/i18n/en.json b/demo-shell/resources/i18n/en.json index f7b32c060c..7037d61719 100644 --- a/demo-shell/resources/i18n/en.json +++ b/demo-shell/resources/i18n/en.json @@ -321,6 +321,7 @@ "KEY": "Key", "TITLE": "Title", "ICON": "Icon", + "TASK_ID": "Task Id", "PROCESS_ID": "ProcessInstanceId", "ACTION_TYPE": "Action Type" } diff --git a/demo-shell/src/app/components/cloud/services/cloud-layout.service.ts b/demo-shell/src/app/components/cloud/services/cloud-layout.service.ts index 4e86e2aa5a..8c5ff0dc60 100644 --- a/demo-shell/src/app/components/cloud/services/cloud-layout.service.ts +++ b/demo-shell/src/app/components/cloud/services/cloud-layout.service.ts @@ -41,7 +41,7 @@ export class ActionMenuModel { public icon: string, public title: string, public visible?: boolean, - public disable?: boolean + public disabled?: boolean ) { } } diff --git a/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html b/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html index 5c385dcbdd..e94b535709 100644 --- a/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html +++ b/demo-shell/src/app/components/cloud/shared/cloud-settings.component.html @@ -47,7 +47,7 @@ {{ 'SETTINGS_CLOUD.ACTION.ACTION_VISIBLE' | translate }} - + {{ 'SETTINGS_CLOUD.ACTION.ACTION_DISABLE' | translate }}