mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[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
This commit is contained in:
parent
d28c8dccc8
commit
cbc8043d02
@ -566,39 +566,70 @@
|
|||||||
{
|
{
|
||||||
"key": "entry.id",
|
"key": "entry.id",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"title": "Id",
|
"title": "ADF_CLOUD_TASK_LIST.PROPERTIES.ID",
|
||||||
"sortable": true
|
"sortable": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "entry.name",
|
"key": "entry.name",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"title": "Name",
|
"title": "ADF_CLOUD_TASK_LIST.PROPERTIES.NAME",
|
||||||
"sortable": true,
|
"sortable": true,
|
||||||
"cssClass": "full-width name-column ellipsis-cell"
|
"cssClass": "full-width name-column ellipsis-cell"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "entry.status",
|
"key": "entry.status",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"title": "Status",
|
"title": "ADF_CLOUD_TASK_LIST.PROPERTIES.NAME",
|
||||||
"sortable": true
|
"sortable": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "entry.priority",
|
"key": "entry.priority",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"title": "Priority",
|
"title": "ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY",
|
||||||
"sortable": true
|
"sortable": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "entry.createdDate",
|
"key": "entry.createdDate",
|
||||||
"type": "date",
|
"type": "date",
|
||||||
"title": "Created Date",
|
"title": "ADF_CLOUD_TASK_LIST.PROPERTIES.CREATED_DATE",
|
||||||
"sortable": true,
|
"sortable": true,
|
||||||
"format": "timeAgo"
|
"format": "timeAgo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "entry.lastModified",
|
"key": "entry.lastModified",
|
||||||
"type": "date",
|
"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,
|
"sortable": true,
|
||||||
"format": "timeAgo"
|
"format": "timeAgo"
|
||||||
}
|
}
|
||||||
|
@ -18,12 +18,6 @@
|
|||||||
[sorting]="sortArray"
|
[sorting]="sortArray"
|
||||||
(rowClick)="onRowClick($event)"
|
(rowClick)="onRowClick($event)"
|
||||||
#processCloud>
|
#processCloud>
|
||||||
<data-columns>
|
|
||||||
<data-column key="entry.id" title="Id"></data-column>
|
|
||||||
<data-column key="entry.name" title="Name"></data-column>
|
|
||||||
<data-column key="entry.status" title="Status"></data-column>
|
|
||||||
<data-column key="entry.startDate" title="Start Date" type="date" format="timeAgo"></data-column>
|
|
||||||
</data-columns>
|
|
||||||
</adf-cloud-process-list>
|
</adf-cloud-process-list>
|
||||||
<adf-pagination [target]="processCloud" (changePageSize)="onChangePageSize($event)">
|
<adf-pagination [target]="processCloud" (changePageSize)="onChangePageSize($event)">
|
||||||
</adf-pagination>
|
</adf-pagination>
|
||||||
|
@ -56,7 +56,14 @@
|
|||||||
</button>
|
</button>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
<mat-list-item (click)="editTaskFilterConfClick()">
|
<mat-list-item (click)="processListCloudConfClick()">
|
||||||
|
<a matLine id="adf-process-list-cloud-conf">Process List Cloud</a>
|
||||||
|
<button mat-icon-button>
|
||||||
|
<mat-icon>info</mat-icon>
|
||||||
|
</button>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item (click)="editTaskFilterConfClick()">
|
||||||
<a matLine id="adf-edit-task-filter-conf">Edit task filter</a>
|
<a matLine id="adf-edit-task-filter-conf">Edit task filter</a>
|
||||||
<button mat-icon-button>
|
<button mat-icon-button>
|
||||||
<mat-icon>info</mat-icon>
|
<mat-icon>info</mat-icon>
|
||||||
|
@ -124,6 +124,12 @@ export class ConfigEditorComponent {
|
|||||||
this.indentCode();
|
this.indentCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processListCloudConfClick() {
|
||||||
|
this.code = JSON.stringify(this.appConfig.config['adf-cloud-process-list']);
|
||||||
|
this.field = 'adf-cloud-process-list';
|
||||||
|
this.indentCode();
|
||||||
|
}
|
||||||
|
|
||||||
indentCode() {
|
indentCode() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.editor.getAction('editor.action.formatDocument').run();
|
this.editor.getAction('editor.action.formatDocument').run();
|
||||||
|
@ -7,7 +7,10 @@
|
|||||||
},
|
},
|
||||||
"PROPERTIES": {
|
"PROPERTIES": {
|
||||||
"NAME": "Name",
|
"NAME": "Name",
|
||||||
"CREATED": "Created"
|
"CREATED": "Created",
|
||||||
|
"STATUS": "Status",
|
||||||
|
"START_DATE": "Start Date",
|
||||||
|
"ID": "Id"
|
||||||
},
|
},
|
||||||
"ADF_CLOUD_START_PROCESS": {
|
"ADF_CLOUD_START_PROCESS": {
|
||||||
"BUTTON": "Start Process",
|
"BUTTON": "Start Process",
|
||||||
@ -58,6 +61,11 @@
|
|||||||
"PROPERTIES": {
|
"PROPERTIES": {
|
||||||
"NAME": "Name",
|
"NAME": "Name",
|
||||||
"ASSIGNEE": "Assignee",
|
"ASSIGNEE": "Assignee",
|
||||||
|
"ID": "Id",
|
||||||
|
"STATUS": "Status",
|
||||||
|
"PRIORITY": "Priority",
|
||||||
|
"CREATED_DATE": "Created Date",
|
||||||
|
"LAST_MODIFIED": "Last Modified",
|
||||||
"CREATED": "Created"
|
"CREATED": "Created"
|
||||||
},
|
},
|
||||||
"LIST": {
|
"LIST": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user