[ADF-3676] Task Header - Expose task properties out of the box (#3883)

* #3878 Add support for end date in TaskHeaderComponent

* add duration and parentTaskId
This commit is contained in:
Eugenio Romano
2018-10-13 11:13:29 +01:00
committed by GitHub
parent c8aa627a84
commit 04d42e2535
4 changed files with 1142 additions and 697 deletions

View File

@@ -3,137 +3,311 @@
"id": "https://github.com/Alfresco/alfresco-ng2-components/tree/master/lib/core/app-config/schema.json", "id": "https://github.com/Alfresco/alfresco-ng2-components/tree/master/lib/core/app-config/schema.json",
"title": "ADF Application config", "title": "ADF Application config",
"description": "Configuration object for ADF components used by your application", "description": "Configuration object for ADF components used by your application",
"definitions": { "definitions": {
"language": { "language": {
"description": "Language definition", "description": "Language definition",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "type": "string" }, "key": {
"label": { "type": "string" } "type": "string"
},
"label": {
"type": "string"
}
} }
}, },
"document-list-thumbnail": { "document-list-thumbnail": {
"description": "Document list's thumbnail image column definition", "description": "Document list's thumbnail image column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "srTitle", "sortable" ], "required": [
"key",
"type",
"srTitle",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^\\$thumbnail$" }, "key": {
"type": { "type": "string", "pattern": "^image$" }, "type": "string",
"srTitle": { "type": "string" }, "pattern": "^\\$thumbnail$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^image$"
},
"srTitle": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-name": { "document-list-name": {
"description": "Document list's name column definition", "description": "Document list's name column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^name$" }, "key": {
"type": { "type": "string", "pattern": "^text$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^name$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^text$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-title": { "document-list-title": {
"description": "Document list's title column definition", "description": "Document list's title column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^title$" }, "key": {
"type": { "type": "string", "pattern": "^text$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^title$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^text$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-visibility": { "document-list-visibility": {
"description": "Document list's visibility column definition", "description": "Document list's visibility column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^visibility$" }, "key": {
"type": { "type": "string", "pattern": "^text$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^visibility$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^text$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-path": { "document-list-path": {
"description": "Document list's path column definition", "description": "Document list's path column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "format", "sortable" ], "required": [
"key",
"type",
"title",
"format",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^path$" }, "key": {
"type": { "type": "string", "pattern": "^location$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^path$"
"format": { "type": "string" }, },
"sortable": { "type": "boolean" } "type": {
"type": "string",
"pattern": "^location$"
},
"title": {
"type": "string"
},
"format": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-modifiedAt": { "document-list-modifiedAt": {
"description": "Document list's modifiedAt column definition", "description": "Document list's modifiedAt column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^modifiedAt$" }, "key": {
"type": { "type": "string", "pattern": "^date$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^modifiedAt$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^date$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-modifiedByUser": { "document-list-modifiedByUser": {
"description": "Document list's modifiedByUser column definition", "description": "Document list's modifiedByUser column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^modifiedByUser\\.displayName$" }, "key": {
"type": { "type": "string", "pattern": "^text$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^modifiedByUser\\.displayName$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^text$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-sharedByUser": { "document-list-sharedByUser": {
"description": "Document list's sharedByUser column definition", "description": "Document list's sharedByUser column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^sharedByUser\\.displayName$" }, "key": {
"type": { "type": "string", "pattern": "^text$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^sharedByUser\\.displayName$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^text$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-filesize": { "document-list-filesize": {
"description": "Document list's path column definition", "description": "Document list's path column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^content\\.sizeInBytes$" }, "key": {
"type": { "type": "string", "pattern": "^fileSize$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^content\\.sizeInBytes$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^fileSize$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-archivedAt": { "document-list-archivedAt": {
"description": "Document list's archivedAt column definition", "description": "Document list's archivedAt column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "format", "sortable" ], "required": [
"key",
"type",
"title",
"format",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^archivedAt$" }, "key": {
"type": { "type": "string", "pattern": "^date$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^archivedAt$"
"format": { "type": "string" }, },
"sortable": { "type": "boolean" } "type": {
"type": "string",
"pattern": "^date$"
},
"title": {
"type": "string"
},
"format": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"document-list-archivedBy": { "document-list-archivedBy": {
"description": "Document list's archivedBy column definition", "description": "Document list's archivedBy column definition",
"type": "object", "type": "object",
"required": [ "key", "type", "title", "sortable" ], "required": [
"key",
"type",
"title",
"sortable"
],
"properties": { "properties": {
"key": { "type": "string", "pattern": "^archivedByUser.displayName$" }, "key": {
"type": { "type": "string", "pattern": "^text$" }, "type": "string",
"title": { "type": "string" }, "pattern": "^archivedByUser.displayName$"
"sortable": { "type": "boolean" } },
"type": {
"type": "string",
"pattern": "^text$"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
}, },
"content-metadata-aspect": { "content-metadata-aspect": {
@@ -258,7 +432,6 @@
] ]
} }
}, },
"type": "object", "type": "object",
"properties": { "properties": {
"ecmHost": { "ecmHost": {
@@ -276,7 +449,11 @@
"providers": { "providers": {
"description": "This parameter can accept as value ECM BPM or ALL you can set it accordingly where you want log-in", "description": "This parameter can accept as value ECM BPM or ALL you can set it accordingly where you want log-in",
"type": "string", "type": "string",
"enum": [ "ECM", "BPM", "ALL"] "enum": [
"ECM",
"BPM",
"ALL"
]
}, },
"contextRootBpm": { "contextRootBpm": {
"description": "The context root of the BPM host", "description": "The context root of the BPM host",
@@ -290,23 +467,33 @@
"description": "Application's global configuration", "description": "Application's global configuration",
"type": "object", "type": "object",
"properties": { "properties": {
"name": { "type": "string", "description": "Name of the application" } "name": {
"type": "string",
"description": "Name of the application"
}
} }
}, },
"languages": { "languages": {
"description": "Supported languages", "description": "Supported languages",
"type": "array", "type": "array",
"items": { "$ref": "#/definitions/language" } "items": {
"$ref": "#/definitions/language"
}
}, },
"pagination": { "pagination": {
"description": "Pagination configuration", "description": "Pagination configuration",
"type": "object", "type": "object",
"properties": { "properties": {
"size": { "type": "number", "description": "Pagination's default page size" }, "size": {
"type": "number",
"description": "Pagination's default page size"
},
"supportedPageSizes": { "supportedPageSizes": {
"description": "Pagination's supported page sizes", "description": "Pagination's supported page sizes",
"type": "array", "type": "array",
"items": { "type": "number" } "items": {
"type": "number"
}
} }
} }
}, },
@@ -317,7 +504,9 @@
"excluded": { "excluded": {
"description": "File exclusions", "description": "File exclusions",
"type": "array", "type": "array",
"items": { "type": "string" } "items": {
"type": "string"
}
}, },
"match-options": { "match-options": {
"description": "Minimatch plugin option that will be applied for the check. By default all the options are false", "description": "Minimatch plugin option that will be applied for the check. By default all the options are false",
@@ -325,47 +514,80 @@
"properties": { "properties": {
"debug": { "debug": {
"description": "Dump a ton of stuff to stderr", "description": "Dump a ton of stuff to stderr",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"nobrace": { "nobrace": {
"description": "Do not expand {a,b} and {1..3} brace sets.", "description": "Do not expand {a,b} and {1..3} brace sets.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"noglobstar": { "noglobstar": {
"description": "Disable ** matching against multiple folder names.", "description": "Disable ** matching against multiple folder names.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"dot": { "dot": {
"description": "Allow patterns to match filenames starting with a period, even if the pattern does not explicitly have a period in that spot.", "description": "Allow patterns to match filenames starting with a period, even if the pattern does not explicitly have a period in that spot.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"noext": { "noext": {
"description": "Disable 'extglob' style patterns like +(a|b).", "description": "Disable 'extglob' style patterns like +(a|b).",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"nocase": { "nocase": {
"description": "Perform a case-insensitive match.", "description": "Perform a case-insensitive match.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"nonull": { "nonull": {
"description": "When a match is not found by minimatch.match, return a list containing the pattern itself if this option is set. When not set, an empty list is returned if there are no matches.", "description": "When a match is not found by minimatch.match, return a list containing the pattern itself if this option is set. When not set, an empty list is returned if there are no matches.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"matchBase": { "matchBase": {
"description": "If set, then patterns without slashes will be matched against the basename of the path if it contains slashes.", "description": "If set, then patterns without slashes will be matched against the basename of the path if it contains slashes.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"nocomment": { "nocomment": {
"description": "Suppress the behavior of treating # at the start of a pattern as a comment.", "description": "Suppress the behavior of treating # at the start of a pattern as a comment.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"nonegate": { "nonegate": {
"description": "Suppress the behavior of treating a leading ! character as negation.", "description": "Suppress the behavior of treating a leading ! character as negation.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
}, },
"flipNegate": { "flipNegate": {
"description": "Returns from negate expressions the same as if they were not negated.", "description": "Returns from negate expressions the same as if they were not negated.",
"type": ["boolean", "null"] "type": [
"boolean",
"null"
]
} }
} }
} }
@@ -374,7 +596,14 @@
"logLevel": { "logLevel": {
"description": "Application's logging level", "description": "Application's logging level",
"type": "string", "type": "string",
"enum": [ "trace", "debug", "info", "warn", "error", "silent" ] "enum": [
"trace",
"debug",
"info",
"warn",
"error",
"silent"
]
}, },
"activiti": { "activiti": {
"type": "object" "type": "object"
@@ -387,7 +616,15 @@
"description": "Presets for document list component", "description": "Presets for document list component",
"type": "object", "type": "object",
"propertyNames": { "propertyNames": {
"enum": [ "-trashcan-", "-sites-", "-mysites-", "-favorites-", "-recent-", "-sharedlinks-", "default" ] "enum": [
"-trashcan-",
"-sites-",
"-mysites-",
"-favorites-",
"-recent-",
"-sharedlinks-",
"default"
]
}, },
"patternProperties": { "patternProperties": {
".*": { ".*": {
@@ -395,17 +632,39 @@
"type": "array", "type": "array",
"items": { "items": {
"oneOf": [ "oneOf": [
{ "$ref": "#/definitions/document-list-thumbnail" }, {
{ "$ref": "#/definitions/document-list-name" }, "$ref": "#/definitions/document-list-thumbnail"
{ "$ref": "#/definitions/document-list-title" }, },
{ "$ref": "#/definitions/document-list-visibility" }, {
{ "$ref": "#/definitions/document-list-path" }, "$ref": "#/definitions/document-list-name"
{ "$ref": "#/definitions/document-list-modifiedAt" }, },
{ "$ref": "#/definitions/document-list-modifiedByUser" }, {
{ "$ref": "#/definitions/document-list-sharedByUser" }, "$ref": "#/definitions/document-list-title"
{ "$ref": "#/definitions/document-list-filesize" }, },
{ "$ref": "#/definitions/document-list-archivedAt" }, {
{ "$ref": "#/definitions/document-list-archivedBy" } "$ref": "#/definitions/document-list-visibility"
},
{
"$ref": "#/definitions/document-list-path"
},
{
"$ref": "#/definitions/document-list-modifiedAt"
},
{
"$ref": "#/definitions/document-list-modifiedByUser"
},
{
"$ref": "#/definitions/document-list-sharedByUser"
},
{
"$ref": "#/definitions/document-list-filesize"
},
{
"$ref": "#/definitions/document-list-archivedAt"
},
{
"$ref": "#/definitions/document-list-archivedBy"
}
] ]
} }
} }
@@ -424,7 +683,21 @@
"properties": { "properties": {
"type": "array", "type": "array",
"items": { "items": {
"enum": [ "assignee", "status", "priority", "dueDate", "category", "parentName", "created", "id", "description", "formName" ] "enum": [
"assignee",
"status",
"priority",
"dueDate",
"endDate",
"category",
"parentName",
"duration",
"parentTaskId",
"created",
"id",
"description",
"formName"
]
} }
} }
} }
@@ -444,10 +717,18 @@
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "type": "string" }, "key": {
"type": { "type": "string" }, "type": "string"
"title": { "type": "string" }, },
"sortable": { "type": "boolean" } "type": {
"type": "string"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
} }
} }
@@ -466,7 +747,16 @@
"properties": { "properties": {
"type": "array", "type": "array",
"items": { "items": {
"enum": [ "status", "ended", "category", "businessKey", "assignee", "created", "id", "description" ] "enum": [
"status",
"ended",
"category",
"businessKey",
"assignee",
"created",
"id",
"description"
]
} }
} }
} }
@@ -486,10 +776,18 @@
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "type": "string" }, "key": {
"type": { "type": "string" }, "type": "string"
"title": { "type": "string" }, },
"sortable": { "type": "boolean" } "type": {
"type": "string"
},
"title": {
"type": "string"
},
"sortable": {
"type": "boolean"
}
} }
} }
} }
@@ -500,7 +798,9 @@
"content-metadata": { "content-metadata": {
"description": "Content metadata component's configuration", "description": "Content metadata component's configuration",
"type": "object", "type": "object",
"required": [ "presets" ], "required": [
"presets"
],
"properties": { "properties": {
"presets": { "presets": {
"description": "Presets for content metadata component", "description": "Presets for content metadata component",
@@ -508,9 +808,17 @@
"patternProperties": { "patternProperties": {
".*": { ".*": {
"oneOf": [ "oneOf": [
{ "type": "string", "pattern": "^\\*$", "description": "Wildcard for every aspect"}, {
{ "$ref": "#/definitions/content-metadata-aspect" }, "type": "string",
{ "$ref": "#/definitions/content-metadata-layout-group" } "pattern": "^\\*$",
"description": "Wildcard for every aspect"
},
{
"$ref": "#/definitions/content-metadata-aspect"
},
{
"$ref": "#/definitions/content-metadata-layout-group"
}
] ]
} }
} }
@@ -520,27 +828,53 @@
"authType": { "authType": {
"description": "Kind of authentication BASIC or OAUTH, default value BASIC", "description": "Kind of authentication BASIC or OAUTH, default value BASIC",
"type": "string", "type": "string",
"enum": [ "BASIC", "OAUTH" ] "enum": [
"BASIC",
"OAUTH"
]
}, },
"oauth2": { "oauth2": {
"description": "AUTH configuration parameters", "description": "AUTH configuration parameters",
"type": "object", "type": "object",
"required": [ "host", "clientId", "secret", "scope" ], "required": [
"host",
"clientId",
"secret",
"scope"
],
"properties": { "properties": {
"host": { "type": "string" }, "host": {
"silentLogin": { "type": "boolean" }, "type": "string"
"authPath": { "type": "string" }, },
"clientId": { "type": "string" }, "silentLogin": {
"secret": { "type": "string" }, "type": "boolean"
"redirectUri": { "type": "string" }, },
"redirectUriLogout": { "type": "string" }, "authPath": {
"scope": { "type": "string" } "type": "string"
},
"clientId": {
"type": "string"
},
"secret": {
"type": "string"
},
"redirectUri": {
"type": "string"
},
"redirectUriLogout": {
"type": "string"
},
"scope": {
"type": "string"
}
} }
}, },
"search": { "search": {
"description": "Search configuration parameters", "description": "Search configuration parameters",
"type": "object", "type": "object",
"required": [ "categories" ], "required": [
"categories"
],
"properties": { "properties": {
"include": { "include": {
"type": "array", "type": "array",
@@ -561,15 +895,21 @@
"minItems": 1, "minItems": 1,
"items": { "items": {
"type": "object", "type": "object",
"required": [ "query" ], "required": [
"query"
],
"properties": { "properties": {
"query": { "type": "string" } "query": {
"type": "string"
}
} }
} }
}, },
"facetFields": { "facetFields": {
"type": "object", "type": "object",
"required": ["fields"], "required": [
"fields"
],
"properties": { "properties": {
"expanded": { "expanded": {
"description": "Toggles expanded state of the facet field", "description": "Toggles expanded state of the facet field",
@@ -581,7 +921,11 @@
"minItems": 1, "minItems": 1,
"items": { "items": {
"type": "object", "type": "object",
"required": [ "field", "mincount", "label" ], "required": [
"field",
"mincount",
"label"
],
"properties": { "properties": {
"field": { "field": {
"type": "string", "type": "string",
@@ -607,7 +951,9 @@
"type": "number", "type": "number",
"description": "Display page size" "description": "Display page size"
}, },
"offset": { "type": "integer" } "offset": {
"type": "integer"
}
} }
} }
} }
@@ -615,7 +961,10 @@
}, },
"facetQueries": { "facetQueries": {
"type": "object", "type": "object",
"required": ["label", "queries"], "required": [
"label",
"queries"
],
"properties": { "properties": {
"label": { "label": {
"description": "Category label text", "description": "Category label text",
@@ -634,10 +983,17 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"required": [ "query", "label" ], "required": [
"query",
"label"
],
"properties": { "properties": {
"query": { "type": "string" }, "query": {
"label": { "type": "string" } "type": "string"
},
"label": {
"type": "string"
}
} }
} }
} }
@@ -648,15 +1004,29 @@
"minItems": 1, "minItems": 1,
"items": { "items": {
"type": "object", "type": "object",
"required": [ "id", "name" ], "required": [
"id",
"name"
],
"properties": { "properties": {
"id": { "type": "string" }, "id": {
"name": { "type": "string" }, "type": "string"
"enabled": { "type": "boolean" }, },
"expanded": { "type": "boolean" }, "name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"expanded": {
"type": "boolean"
},
"component": { "component": {
"type": "object", "type": "object",
"required": [ "selector", "settings" ], "required": [
"selector",
"settings"
],
"properties": { "properties": {
"selector": { "selector": {
"description": "Unique component runtime identifier", "description": "Unique component runtime identifier",
@@ -673,7 +1043,9 @@
}, },
"sorting": { "sorting": {
"description": "Sorting options and defaults", "description": "Sorting options and defaults",
"required": ["options"], "required": [
"options"
],
"properties": { "properties": {
"options": { "options": {
"type": "array", "type": "array",
@@ -681,13 +1053,29 @@
"items": { "items": {
"description": "Sorting options available for users to choose from", "description": "Sorting options available for users to choose from",
"type": "object", "type": "object",
"required": ["key", "label", "type", "field", "ascending"], "required": [
"key",
"label",
"type",
"field",
"ascending"
],
"properties": { "properties": {
"key": { "type": "string" }, "key": {
"label": { "type": "string" }, "type": "string"
"type": { "type": "string" }, },
"field": { "type": "string" }, "label": {
"ascending": { "type": "boolean" } "type": "string"
},
"type": {
"type": "string"
},
"field": {
"type": "string"
},
"ascending": {
"type": "boolean"
}
} }
} }
}, },
@@ -698,13 +1086,29 @@
"minItems": 1, "minItems": 1,
"items": { "items": {
"type": "object", "type": "object",
"required": ["key", "label", "type", "field", "ascending"], "required": [
"key",
"label",
"type",
"field",
"ascending"
],
"properties": { "properties": {
"key": { "type": "string" }, "key": {
"label": { "type": "string" }, "type": "string"
"type": { "type": "string" }, },
"field": { "type": "string" }, "label": {
"ascending": { "type": "boolean" } "type": "string"
},
"type": {
"type": "string"
},
"field": {
"type": "string"
},
"ascending": {
"type": "boolean"
}
} }
} }
} }

View File

@@ -27,6 +27,8 @@
"PROPERTIES": { "PROPERTIES": {
"TASK_NAME": "Task", "TASK_NAME": "Task",
"THUMBNAIL": "Thumbnail", "THUMBNAIL": "Thumbnail",
"DURATION": "Duration",
"PARENT_TASK_ID": "Parent task id",
"NAME": "Name", "NAME": "Name",
"ASSIGNEE": "Assignee", "ASSIGNEE": "Assignee",
"ASSIGNEE_DEFAULT": "No assignee", "ASSIGNEE_DEFAULT": "No assignee",
@@ -40,6 +42,7 @@
"PARENT_NAME_DEFAULT": "No parent", "PARENT_NAME_DEFAULT": "No parent",
"CREATED_BY": "Created By", "CREATED_BY": "Created By",
"CREATED": "Created", "CREATED": "Created",
"END_DATE": "End date",
"ID": "ID", "ID": "ID",
"DESCRIPTION": "Description", "DESCRIPTION": "Description",
"DESCRIPTION_DEFAULT": "No description", "DESCRIPTION_DEFAULT": "No description",

View File

@@ -16,7 +16,8 @@
*/ */
import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core'; import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
import { BpmUserService, import {
BpmUserService,
CardViewDateItemModel, CardViewDateItemModel,
CardViewItem, CardViewItem,
CardViewMapItemModel, CardViewMapItemModel,
@@ -24,7 +25,8 @@ import { BpmUserService,
CardViewBaseItemModel, CardViewBaseItemModel,
LogService, LogService,
TranslationService, TranslationService,
AppConfigService } from '@alfresco/adf-core'; AppConfigService
} from '@alfresco/adf-core';
import { TaskDetailsModel } from '../models/task-details.model'; import { TaskDetailsModel } from '../models/task-details.model';
import { TaskListService } from './../services/tasklist.service'; import { TaskListService } from './../services/tasklist.service';
@@ -131,6 +133,41 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
key: 'created' key: 'created'
} }
), ),
new CardViewDateItemModel(
{
label: 'ADF_TASK_LIST.PROPERTIES.END_DATE',
value: this.taskDetails.endDate,
key: 'endDate'
}
),
new CardViewTextItemModel(
{
label: 'ADF_TASK_LIST.PROPERTIES.PARENT_NAME',
value: this.taskDetails.parentName,
key: 'parentName'
}
),
new CardViewTextItemModel(
{
label: 'ADF_TASK_LIST.PROPERTIES.DURATION',
value: `${this.taskDetails.duration} ms`,
key: 'duration'
}
),
new CardViewTextItemModel(
{
label: 'ADF_TASK_LIST.PROPERTIES.PARENT_TASK_ID',
value: this.taskDetails.parentTaskId,
key: 'parentTaskId'
}
),
new CardViewDateItemModel(
{
label: 'ADF_TASK_LIST.PROPERTIES.END_DATE',
value: this.taskDetails.endDate,
key: 'endDate'
}
),
new CardViewTextItemModel( new CardViewTextItemModel(
{ {
label: 'ADF_TASK_LIST.PROPERTIES.ID', label: 'ADF_TASK_LIST.PROPERTIES.ID',

View File

@@ -31,6 +31,7 @@ export class TaskDetailsModel implements TaskRepresentation {
category: string; category: string;
created: Date; created: Date;
description: string; description: string;
parentName: string;
dueDate: Date; dueDate: Date;
duration: number; duration: number;
endDate: Date; endDate: Date;