-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest18.json
142 lines (142 loc) · 3.34 KB
/
manifest18.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"_version": "1.14.0",
"sap.app": {
"id": "card.explorer.icon.list.card",
"type": "card",
"title": "Sample of a List with Icon",
"subTitle": "Sample of a List with Icon",
"applicationVersion": {
"version": "1.0.0"
},
"shortTitle": "A short title for this Card",
"info": "Additional information about this Card",
"description": "A long description for this Card",
"tags": {
"keywords": [
"List",
"Icon",
"Card",
"Sample"
]
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "sap-icon://lightbulb"
}
},
"sap.card": {
"type": "List",
"header": {
"title": "My Campaigns",
"subTitle": "For Submitters of Ideas",
"status": {
"text": "4 of 5"
},
"dataTimestamp": "2024-03-15T07:54:42Z"
},
"content": {
"data": {
"json": [
{
"CampaignName": "My great Campaign",
"DurationDays": 10,
"RemainingDays": 4,
"DaysTillBegin": 0,
"DaysSinceEnd": 0,
"groupIndex": 10,
"Phase": "Preparing",
"Ideas": "0",
"lifecycleStatus": "Published",
"img": "./images/example3.jpg",
"fit": "Contain"
},
{
"CampaignName": "Extraction of resources",
"DurationDays": 30,
"RemainingDays": 5,
"DaysTillBegin": 0,
"DaysSinceEnd": 0,
"groupIndex": 10,
"Phase": "Idea Selection",
"Ideas": "43",
"lifecycleStatus": "Published",
"img": "./images/example4.jpg"
},
{
"CampaignName": "My fantastic Campaign",
"DurationDays": 24,
"RemainingDays": 24,
"DaysTillBegin": 30,
"DaysSinceEnd": 0,
"groupIndex": 20,
"Phase": "Preparing",
"Ideas": "0",
"lifecycleStatus": "Draft",
"img": "sap-icon://activity-items"
},
{
"CampaignName": "Campaign for more milk with longer name that might break into the next row",
"DurationDays": 100,
"RemainingDays": 70,
"DaysTillBegin": 0,
"DaysSinceEnd": 0,
"groupIndex": 10,
"Phase": "Collecting",
"Ideas": "3",
"lifecycleStatus": "Published",
"img": "./images/example2.jpg"
}
]
},
"maxItems": 5,
"item": {
"title": "{CampaignName}",
"icon": {
"src": "{img}",
"shape": "Square",
"backgroundColor": "Accent6",
"size": "M",
"fitType": "{fit}"
},
"info": {
"value": "{Phase}"
},
"attributesLayoutType": "OneColumn",
"attributes": [
{
"value": "Ideas: {Ideas}",
"showStateIcon": true,
"customStateIcon": "sap-icon://lightbulb"
},
{
"value": "{= ${DaysTillBegin} > 0 ? ${DaysTillBegin} + ' days until start' : ( ${DaysSinceEnd} > 0 ? ${DaysSinceEnd} + ' days since expiry' : ${RemainingDays} + ' days left' ) }",
"state": "{= ${DaysTillBegin} === 0 && ${DaysSinceEnd} === 0 ? ( ${RemainingDays}/${DurationDays} >= 0.5 ? 'Success' : ( ${RemainingDays}/${DurationDays} < 0.25 ? 'Error' : 'Warning' ) ) : 'None'}"
}
],
"actions": [
{
"type": "Navigation",
"enabled": true,
"parameters": {
"url": "sap.com"
}
}
]
},
"group": {
"title": "{= ${DaysTillBegin} > 0 ? 'Not Started' : (${DaysSinceEnd} > 0 ? 'Expired' : 'Ongoing') }",
"order": {
"path": "groupIndex",
"dir": "ASC"
}
}
},
"footer": {
"paginator": {
"pageSize": 4
}
}
}
}