-
Notifications
You must be signed in to change notification settings - Fork 31
/
list_item.ui_patterns.yml
184 lines (184 loc) · 6.44 KB
/
list_item.ui_patterns.yml
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
list_item:
label: "List item"
description: "List item pattern with variants."
variants:
default:
label: "List item: default"
description: "Default list items, contains metadata information and linked title."
block:
label: "List item: block"
description: "Block list item, contains a linked title and standfirst."
highlight:
label: "List item: highlight"
description: "Highlight list item, contains a primary image and a linked title."
navigation:
label: "List item: navigation"
description: "Navigation list item, contains a linked title and stand first."
thumbnail_primary:
label: "List item: thumbnail "
description: "Thumbnail list item, contains a primary image, metadata information and a linked title."
thumbnail_secondary:
label: "List item: thumbnail with secondary image"
description: "Thumbnail list item, contains a secondary image, metadata information and a linked title."
date:
label: "List item: event"
description: "Default list item elements and date."
date_ongoing:
label: "List item: ongoing event"
description: "Default list item elements and date."
date_past:
label: "List item: past event"
description: "Default list item elements and date."
date_cancelled:
label: "List item: cancelled event"
description: "Default list item elements and date."
fields:
contextual_links:
type: "array"
label: "Contextual links"
description: "Render array of contextual links"
preview: ~
url:
type: "Url"
label: "URL"
description: "List item link URL (A Drupal Url object)"
preview: "#"
title:
type: "text"
label: "Title"
description: "List item title"
preview: "Citizens' Dialogue in Kraków with Commissioner Elżbieta Bieńkowska"
detail:
type: "text"
label: "Detail"
description: "Description text accompanying the link item."
preview: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ratio quidem vestra sic cogit. Respondeat totidem verbis. Praeclarae mortes sunt imperatoriae; Sed erat aequius Triarium aliquid de dissensione nostra iudicare. Quae similitudo in genere etiam humano apparet."
length:
type: numeric
label: "Max length"
description: "Used to trim the length of the 'Detail' field (optional)."
preview: 250
escape: false
meta:
type: "array"
label: "Metadata"
description: "Meta information items list"
preview:
- "Service department"
- "PMO"
secondary_meta:
type: "array"
label: "Secondary metadata"
description: "Secondary metadata items list with optional icon."
preview:
- label: "2018/10/22"
icon: "calendar"
- label: "Luxembourg"
icon: "location"
- "12PM"
date:
type: "DateValueObject"
label: "Date"
description: "A date value object."
preview:
start: 1545732000
end: 1546250400
timezone: "Europe/Brussels"
image:
type: "array"
label: "Primary image"
description: "Attributes of the image to render"
preview:
src: "https://loremflickr.com/1200/900/arch"
alt: "Alternative text for image"
size: "large"
image_position:
type: "text"
label: "Image position"
description: "The image position: left (default), right, top."
preview: "left"
picture_zoom:
type: "boolean"
label: "Picture zoom"
description: "Whether the picture should be animated or not (default: false)."
preview: true
escape: false
icon:
type: "text"
label: "Icon (deprecated - to be removed in 5.x)"
description: "An optional icon to be used with the link."
preview: "list"
badges:
type: array
label: "Badges"
description: "Adds different badges to the item."
preview:
- label: "Highlighted"
variant: "highlight"
- label: "Status: Open"
variant: "high"
external_link:
type: "boolean"
label: "External link"
description: "Whether the URL of the item is external or not."
preview: true
lists:
type: "array"
label: "Additional information"
description: "Array of lists compatible with the ECL Description list component. For 'link', 'link-inline' and 'taxonomy' variants of the list, the list_type is mandatory. If an iterable definition has at least one path provided, all the other items need to provide a path as well."
preview:
-
- term: "When"
definition: "Thursday 15 November, 08:00 AM to Friday 16 November"
- term: "Where"
definition:
- "The EGG, Rue Barra 175, 1070 Brussels, Belgium"
- "Rue Belliard 28, 1000 Brussels, Belgium"
- term: "Standalone links"
list_type: "link"
definition:
- label: "First link"
path: "https://example.com/1"
icon: "copy"
- path: "https://example.com/2"
icon: "download"
- label: "Third link"
path: "https://example.com/3"
external_link: TRUE
- term: "Inline links"
definition:
- label: "First inline-link"
path: "https://example.com/1"
external_link: TRUE
- label: "Second inline-link"
path: "https://example.com/2"
- path: "https://example.com/3"
list_type: "link-inline"
- term: "Taxonomy list"
list_type: "taxonomy"
definition:
- label: "Taxonomy item 1"
- "Taxonomy item 2"
- "Taxonomy item 3"
divider:
type: "boolean"
label: "Divider"
description: "Optional divider below the item."
preview: true
lists_variant:
type: "string"
label: "Lists variant"
description: "An optional parameter for the layout of the lists (vertical or horizontal). It defaults to horizontal."
preview: "vertical"
extra_classes:
type: 'text'
label: 'Extra classes string'
description: 'Extra classes string'
preview: ''
extra_attributes:
type: "array"
label: "Extra attributes"
description: "List of extra attributes"
preview:
- name: "extra-attr"
value: "extra value"