From cbc8043d02f045ecfd4f2eeea81593482c9f1496 Mon Sep 17 00:00:00 2001 From: davidcanonieto Date: Fri, 1 Feb 2019 13:52:44 +0000 Subject: [PATCH] [ADF-3872] Add live configuration for Process List Cloud on Demo Shell (#4218) * [ADF-3872] Add live configuration for Process List Cloud on Demo Shell * [ADF-3872] Remove whitespace --- demo-shell/src/app.config.json | 43 ++++++++++++++++--- .../cloud/processes-cloud-demo.component.html | 6 --- .../config-editor.component.html | 9 +++- .../config-editor/config-editor.component.ts | 6 +++ .../src/lib/i18n/en.json | 10 ++++- 5 files changed, 60 insertions(+), 14 deletions(-) diff --git a/demo-shell/src/app.config.json b/demo-shell/src/app.config.json index 8bd6fe690b..90b07c8780 100644 --- a/demo-shell/src/app.config.json +++ b/demo-shell/src/app.config.json @@ -566,39 +566,70 @@ { "key": "entry.id", "type": "text", - "title": "Id", + "title": "ADF_CLOUD_TASK_LIST.PROPERTIES.ID", "sortable": true }, { "key": "entry.name", "type": "text", - "title": "Name", + "title": "ADF_CLOUD_TASK_LIST.PROPERTIES.NAME", "sortable": true, "cssClass": "full-width name-column ellipsis-cell" }, { "key": "entry.status", "type": "text", - "title": "Status", + "title": "ADF_CLOUD_TASK_LIST.PROPERTIES.NAME", "sortable": true }, { "key": "entry.priority", "type": "text", - "title": "Priority", + "title": "ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY", "sortable": true }, { "key": "entry.createdDate", "type": "date", - "title": "Created Date", + "title": "ADF_CLOUD_TASK_LIST.PROPERTIES.CREATED_DATE", "sortable": true, "format": "timeAgo" }, { "key": "entry.lastModified", "type": "date", - "title": "Last Modified", + "title": "ADF_CLOUD_TASK_LIST.PROPERTIES.LAST_MODIFIED", + "sortable": true, + "format": "timeAgo" + } + ] + } + }, + "adf-cloud-process-list": { + "presets": { + "default": [ + { + "key": "entry.id", + "type": "text", + "title": "ADF_CLOUD_PROCESS_LIST.PROPERTIES.ID", + "sortable": true + }, + { + "key": "entry.name", + "type": "text", + "title": "ADF_CLOUD_PROCESS_LIST.PROPERTIES.NAME", + "sortable": true + }, + { + "key": "entry.status", + "type": "text", + "title": "ADF_CLOUD_PROCESS_LIST.PROPERTIES.STATUS", + "sortable": true + }, + { + "key": "entry.startDate", + "type": "date", + "title": "ADF_CLOUD_PROCESS_LIST.PROPERTIES.START_DATE", "sortable": true, "format": "timeAgo" } diff --git a/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html b/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html index fda7c88b88..bcec39d4b9 100644 --- a/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html +++ b/demo-shell/src/app/components/app-layout/cloud/processes-cloud-demo.component.html @@ -18,12 +18,6 @@ [sorting]="sortArray" (rowClick)="onRowClick($event)" #processCloud> - - - - - - diff --git a/demo-shell/src/app/components/config-editor/config-editor.component.html b/demo-shell/src/app/components/config-editor/config-editor.component.html index 1db402d80d..031edf0671 100644 --- a/demo-shell/src/app/components/config-editor/config-editor.component.html +++ b/demo-shell/src/app/components/config-editor/config-editor.component.html @@ -56,7 +56,14 @@ - + + Process List Cloud + + + + Edit task filter