@openeuropa/bcl-theme-joinup 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/bcl-builder.config.js +6 -2
  2. package/css/oe-bcl-joinup.css +247 -1745
  3. package/css/oe-bcl-joinup.css.map +1 -1
  4. package/css/oe-bcl-joinup.min.css +1 -1
  5. package/css/oe-bcl-joinup.min.css.map +1 -1
  6. package/icons/world-flags/ad.svg +154 -0
  7. package/icons/world-flags/ae.svg +6 -0
  8. package/icons/world-flags/af.svg +1 -0
  9. package/icons/world-flags/ag.svg +1 -0
  10. package/icons/world-flags/ai.svg +1 -0
  11. package/icons/world-flags/al.svg +1 -0
  12. package/icons/world-flags/am.svg +5 -0
  13. package/icons/world-flags/an.svg +24 -0
  14. package/icons/world-flags/ao.svg +1 -0
  15. package/icons/world-flags/aq.svg +1 -0
  16. package/icons/world-flags/ar.svg +33 -0
  17. package/icons/world-flags/as.svg +1 -0
  18. package/icons/world-flags/at.svg +4 -0
  19. package/icons/world-flags/au.svg +1 -0
  20. package/icons/world-flags/aw.svg +1 -0
  21. package/icons/world-flags/ax.svg +11 -0
  22. package/icons/world-flags/az.svg +8 -0
  23. package/icons/world-flags/ba.svg +11 -0
  24. package/icons/world-flags/bb.svg +7 -0
  25. package/icons/world-flags/bd.svg +4 -0
  26. package/icons/world-flags/be.svg +5 -0
  27. package/icons/world-flags/bf.svg +14 -0
  28. package/icons/world-flags/bg.svg +5 -0
  29. package/icons/world-flags/bh.svg +1 -0
  30. package/icons/world-flags/bi.svg +26 -0
  31. package/icons/world-flags/bj.svg +5 -0
  32. package/icons/world-flags/bl.svg +160 -0
  33. package/icons/world-flags/bm.svg +1 -0
  34. package/icons/world-flags/bn.svg +58 -0
  35. package/icons/world-flags/bo.svg +1 -0
  36. package/icons/world-flags/bq.svg +5 -0
  37. package/icons/world-flags/br.svg +89 -0
  38. package/icons/world-flags/bs.svg +5 -0
  39. package/icons/world-flags/bt.svg +466 -0
  40. package/icons/world-flags/bv.svg +7 -0
  41. package/icons/world-flags/bw.svg +5 -0
  42. package/icons/world-flags/by.svg +14 -0
  43. package/icons/world-flags/bz.svg +1 -0
  44. package/icons/world-flags/ca.svg +1 -0
  45. package/icons/world-flags/cc.svg +19 -0
  46. package/icons/world-flags/cd.svg +5 -0
  47. package/icons/world-flags/cf.svg +8 -0
  48. package/icons/world-flags/cg.svg +5 -0
  49. package/icons/world-flags/ch.svg +5 -0
  50. package/icons/world-flags/ci.svg +5 -0
  51. package/icons/world-flags/ck.svg +1 -0
  52. package/icons/world-flags/cl.svg +14 -0
  53. package/icons/world-flags/cm.svg +15 -0
  54. package/icons/world-flags/cn.svg +11 -0
  55. package/icons/world-flags/co.svg +5 -0
  56. package/icons/world-flags/cr.svg +1 -0
  57. package/icons/world-flags/cu.svg +6 -0
  58. package/icons/world-flags/cv.svg +24 -0
  59. package/icons/world-flags/cw.svg +16 -0
  60. package/icons/world-flags/cx.svg +15 -0
  61. package/icons/world-flags/cy.svg +1 -0
  62. package/icons/world-flags/cz.svg +5 -0
  63. package/icons/world-flags/de.svg +6 -0
  64. package/icons/world-flags/dj.svg +6 -0
  65. package/icons/world-flags/dk.svg +5 -0
  66. package/icons/world-flags/dm.svg +1 -0
  67. package/icons/world-flags/do.svg +1 -0
  68. package/icons/world-flags/dz.svg +5 -0
  69. package/icons/world-flags/ec.svg +519 -0
  70. package/icons/world-flags/ee.svg +5 -0
  71. package/icons/world-flags/eg.svg +78 -0
  72. package/icons/world-flags/eh.svg +9 -0
  73. package/icons/world-flags/er.svg +6 -0
  74. package/icons/world-flags/es.svg +1 -0
  75. package/icons/world-flags/et.svg +16 -0
  76. package/icons/world-flags/eu.svg +29 -0
  77. package/icons/world-flags/fi.svg +5 -0
  78. package/icons/world-flags/fj.svg +1 -0
  79. package/icons/world-flags/fk.svg +1 -0
  80. package/icons/world-flags/fm.svg +16 -0
  81. package/icons/world-flags/fo.svg +11 -0
  82. package/icons/world-flags/fr.svg +1 -0
  83. package/icons/world-flags/ga.svg +5 -0
  84. package/icons/world-flags/gb-eng.svg +7 -0
  85. package/icons/world-flags/gb-nir.svg +1 -0
  86. package/icons/world-flags/gb-sct.svg +1 -0
  87. package/icons/world-flags/gb-wls.svg +9 -0
  88. package/icons/world-flags/gb.svg +1 -0
  89. package/icons/world-flags/gd.svg +27 -0
  90. package/icons/world-flags/ge.svg +17 -0
  91. package/icons/world-flags/gf.svg +5 -0
  92. package/icons/world-flags/gg.svg +8 -0
  93. package/icons/world-flags/gh.svg +6 -0
  94. package/icons/world-flags/gi.svg +54 -0
  95. package/icons/world-flags/gl.svg +4 -0
  96. package/icons/world-flags/gm.svg +7 -0
  97. package/icons/world-flags/gn.svg +5 -0
  98. package/icons/world-flags/gp.svg +5 -0
  99. package/icons/world-flags/gq.svg +75 -0
  100. package/icons/world-flags/gr.svg +4 -0
  101. package/icons/world-flags/gs.svg +1 -0
  102. package/icons/world-flags/gt.svg +214 -0
  103. package/icons/world-flags/gu.svg +1 -0
  104. package/icons/world-flags/gw.svg +13 -0
  105. package/icons/world-flags/gy.svg +7 -0
  106. package/icons/world-flags/hk.svg +12 -0
  107. package/icons/world-flags/hm.svg +1 -0
  108. package/icons/world-flags/hn.svg +18 -0
  109. package/icons/world-flags/hr.svg +240 -0
  110. package/icons/world-flags/ht.svg +196 -0
  111. package/icons/world-flags/hu.svg +5 -0
  112. package/icons/world-flags/id.svg +4 -0
  113. package/icons/world-flags/ie.svg +9 -0
  114. package/icons/world-flags/il.svg +1 -0
  115. package/icons/world-flags/im.svg +59 -0
  116. package/icons/world-flags/in.svg +25 -0
  117. package/icons/world-flags/io.svg +178 -0
  118. package/icons/world-flags/iq.svg +1 -0
  119. package/icons/world-flags/ir.svg +31 -0
  120. package/icons/world-flags/is.svg +5 -0
  121. package/icons/world-flags/it.svg +5 -0
  122. package/icons/world-flags/je.svg +49 -0
  123. package/icons/world-flags/jm.svg +4 -0
  124. package/icons/world-flags/jo.svg +7 -0
  125. package/icons/world-flags/jp.svg +4 -0
  126. package/icons/world-flags/ke.svg +23 -0
  127. package/icons/world-flags/kg.svg +1 -0
  128. package/icons/world-flags/kh.svg +116 -0
  129. package/icons/world-flags/ki.svg +1 -0
  130. package/icons/world-flags/km.svg +13 -0
  131. package/icons/world-flags/kn.svg +1 -0
  132. package/icons/world-flags/kp.svg +16 -0
  133. package/icons/world-flags/kr.svg +1 -0
  134. package/icons/world-flags/kw.svg +6 -0
  135. package/icons/world-flags/ky.svg +1 -0
  136. package/icons/world-flags/kz.svg +37 -0
  137. package/icons/world-flags/la.svg +5 -0
  138. package/icons/world-flags/lb.svg +5 -0
  139. package/icons/world-flags/lc.svg +6 -0
  140. package/icons/world-flags/li.svg +56 -0
  141. package/icons/world-flags/lk.svg +31 -0
  142. package/icons/world-flags/lr.svg +15 -0
  143. package/icons/world-flags/ls.svg +23 -0
  144. package/icons/world-flags/lt.svg +5 -0
  145. package/icons/world-flags/lu.svg +5 -0
  146. package/icons/world-flags/lv.svg +4 -0
  147. package/icons/world-flags/ly.svg +8 -0
  148. package/icons/world-flags/ma.svg +6 -0
  149. package/icons/world-flags/mc.svg +4 -0
  150. package/icons/world-flags/md.svg +140 -0
  151. package/icons/world-flags/me.svg +93 -0
  152. package/icons/world-flags/mf.svg +5 -0
  153. package/icons/world-flags/mg.svg +5 -0
  154. package/icons/world-flags/mh.svg +19 -0
  155. package/icons/world-flags/mk.svg +7 -0
  156. package/icons/world-flags/ml.svg +5 -0
  157. package/icons/world-flags/mm.svg +12 -0
  158. package/icons/world-flags/mn.svg +21 -0
  159. package/icons/world-flags/mo.svg +10 -0
  160. package/icons/world-flags/mp.svg +240 -0
  161. package/icons/world-flags/mq.svg +1 -0
  162. package/icons/world-flags/mr.svg +6 -0
  163. package/icons/world-flags/ms.svg +1 -0
  164. package/icons/world-flags/mt.svg +49 -0
  165. package/icons/world-flags/mu.svg +6 -0
  166. package/icons/world-flags/mv.svg +8 -0
  167. package/icons/world-flags/mw.svg +24 -0
  168. package/icons/world-flags/mx.svg +1 -0
  169. package/icons/world-flags/my.svg +13 -0
  170. package/icons/world-flags/mz.svg +13 -0
  171. package/icons/world-flags/na.svg +1 -0
  172. package/icons/world-flags/nc.svg +18 -0
  173. package/icons/world-flags/ne.svg +6 -0
  174. package/icons/world-flags/nf.svg +5 -0
  175. package/icons/world-flags/ng.svg +4 -0
  176. package/icons/world-flags/ni.svg +161 -0
  177. package/icons/world-flags/nl.svg +5 -0
  178. package/icons/world-flags/no.svg +7 -0
  179. package/icons/world-flags/np.svg +33 -0
  180. package/icons/world-flags/nr.svg +5 -0
  181. package/icons/world-flags/nu.svg +1 -0
  182. package/icons/world-flags/nz.svg +1 -0
  183. package/icons/world-flags/om.svg +226 -0
  184. package/icons/world-flags/pa.svg +20 -0
  185. package/icons/world-flags/pe.svg +320 -0
  186. package/icons/world-flags/pf.svg +55 -0
  187. package/icons/world-flags/pg.svg +13 -0
  188. package/icons/world-flags/ph.svg +30 -0
  189. package/icons/world-flags/pk.svg +8 -0
  190. package/icons/world-flags/pl.svg +4 -0
  191. package/icons/world-flags/pm.svg +5 -0
  192. package/icons/world-flags/pn.svg +1 -0
  193. package/icons/world-flags/pr.svg +1 -0
  194. package/icons/world-flags/ps.svg +6 -0
  195. package/icons/world-flags/pt.svg +66 -0
  196. package/icons/world-flags/pw.svg +4 -0
  197. package/icons/world-flags/py.svg +193 -0
  198. package/icons/world-flags/qa.svg +1 -0
  199. package/icons/world-flags/re.svg +5 -0
  200. package/icons/world-flags/ro.svg +5 -0
  201. package/icons/world-flags/rs.svg +294 -0
  202. package/icons/world-flags/ru.svg +5 -0
  203. package/icons/world-flags/rw.svg +13 -0
  204. package/icons/world-flags/sa.svg +4 -0
  205. package/icons/world-flags/sb.svg +23 -0
  206. package/icons/world-flags/sc.svg +7 -0
  207. package/icons/world-flags/sd.svg +6 -0
  208. package/icons/world-flags/se.svg +5 -0
  209. package/icons/world-flags/sg.svg +11 -0
  210. package/icons/world-flags/sh.svg +1 -0
  211. package/icons/world-flags/si.svg +22 -0
  212. package/icons/world-flags/sj.svg +7 -0
  213. package/icons/world-flags/sk.svg +12 -0
  214. package/icons/world-flags/sl.svg +5 -0
  215. package/icons/world-flags/sm.svg +321 -0
  216. package/icons/world-flags/sn.svg +15 -0
  217. package/icons/world-flags/so.svg +13 -0
  218. package/icons/world-flags/sr.svg +6 -0
  219. package/icons/world-flags/ss.svg +8 -0
  220. package/icons/world-flags/st.svg +16 -0
  221. package/icons/world-flags/sv.svg +1 -0
  222. package/icons/world-flags/sx.svg +94 -0
  223. package/icons/world-flags/sy.svg +17 -0
  224. package/icons/world-flags/sz.svg +1 -0
  225. package/icons/world-flags/tc.svg +1 -0
  226. package/icons/world-flags/td.svg +5 -0
  227. package/icons/world-flags/tf.svg +15 -0
  228. package/icons/world-flags/tg.svg +16 -0
  229. package/icons/world-flags/th.svg +5 -0
  230. package/icons/world-flags/tj.svg +26 -0
  231. package/icons/world-flags/tk.svg +25 -0
  232. package/icons/world-flags/tl.svg +1 -0
  233. package/icons/world-flags/tm.svg +179 -0
  234. package/icons/world-flags/tn.svg +9 -0
  235. package/icons/world-flags/to.svg +8 -0
  236. package/icons/world-flags/tr.svg +6 -0
  237. package/icons/world-flags/tt.svg +5 -0
  238. package/icons/world-flags/tv.svg +1 -0
  239. package/icons/world-flags/tw.svg +9 -0
  240. package/icons/world-flags/tz.svg +6 -0
  241. package/icons/world-flags/ua.svg +4 -0
  242. package/icons/world-flags/ug.svg +24 -0
  243. package/icons/world-flags/um.svg +25 -0
  244. package/icons/world-flags/us.svg +25 -0
  245. package/icons/world-flags/uy.svg +36 -0
  246. package/icons/world-flags/uz.svg +30 -0
  247. package/icons/world-flags/va.svg +205 -0
  248. package/icons/world-flags/vc.svg +10 -0
  249. package/icons/world-flags/ve.svg +28 -0
  250. package/icons/world-flags/vg.svg +1 -0
  251. package/icons/world-flags/vi.svg +1 -0
  252. package/icons/world-flags/vn.svg +12 -0
  253. package/icons/world-flags/vu.svg +15 -0
  254. package/icons/world-flags/wf.svg +7 -0
  255. package/icons/world-flags/ws.svg +14 -0
  256. package/icons/world-flags/xk.svg +1 -0
  257. package/icons/world-flags/ye.svg +5 -0
  258. package/icons/world-flags/yt.svg +5 -0
  259. package/icons/world-flags/za.svg +1 -0
  260. package/icons/world-flags/zm.svg +23 -0
  261. package/icons/world-flags/zw.svg +28 -0
  262. package/js/oe-bcl-joinup.bundle.js +26 -26
  263. package/js/oe-bcl-joinup.bundle.js.map +1 -1
  264. package/js/oe-bcl-joinup.bundle.min.js +1 -1
  265. package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
  266. package/js/oe-bcl-joinup.esm.js +26 -27
  267. package/js/oe-bcl-joinup.esm.js.map +1 -1
  268. package/js/oe-bcl-joinup.esm.min.js +1 -1
  269. package/js/oe-bcl-joinup.esm.min.js.map +1 -1
  270. package/js/oe-bcl-joinup.umd.js +26 -26
  271. package/js/oe-bcl-joinup.umd.js.map +1 -1
  272. package/js/oe-bcl-joinup.umd.min.js +1 -1
  273. package/js/oe-bcl-joinup.umd.min.js.map +1 -1
  274. package/package.json +14 -15
  275. package/src/js/index.esm.js +1 -0
  276. package/src/js/index.umd.js +1 -0
  277. package/src/scss/oe-bcl-joinup.scss +6 -0
  278. package/templates/bcl-accordion/accordion.html.twig +4 -5
  279. package/templates/bcl-alert/alert.html.twig +5 -3
  280. package/templates/bcl-badge/badge.html.twig +7 -5
  281. package/templates/bcl-banner/banner.html.twig +5 -5
  282. package/templates/bcl-base-templates/content-type.html.twig +5 -0
  283. package/templates/bcl-base-templates/listing-page.html.twig +2 -0
  284. package/templates/bcl-blockquote/blockquote.html.twig +3 -1
  285. package/templates/bcl-breadcrumb/breadcrumb.html.twig +3 -1
  286. package/templates/bcl-button/button.html.twig +6 -4
  287. package/templates/bcl-button-group/button-group.html.twig +4 -3
  288. package/templates/bcl-card/card.html.twig +5 -9
  289. package/templates/bcl-card-layout/card-layout.html.twig +3 -1
  290. package/templates/bcl-carousel/carousel.html.twig +10 -8
  291. package/templates/bcl-content-banner/content-banner.html.twig +14 -11
  292. package/templates/bcl-dropdown/dropdown.html.twig +3 -1
  293. package/templates/bcl-fact-figures/fact-figures.html.twig +4 -2
  294. package/templates/bcl-file/file.html.twig +43 -39
  295. package/templates/bcl-footer/footer.html.twig +2 -2
  296. package/templates/bcl-form/form.html.twig +2 -4
  297. package/templates/bcl-form-input/form-input.html.twig +25 -21
  298. package/templates/bcl-gallery/gallery.html.twig +5 -5
  299. package/templates/bcl-glossary/glossary-detail.html.twig +43 -0
  300. package/templates/bcl-glossary/glossary-listing.html.twig +22 -0
  301. package/templates/bcl-header/header.html.twig +11 -9
  302. package/templates/bcl-heading/heading.html.twig +1 -1
  303. package/templates/bcl-icon/icon.html.twig +3 -2
  304. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +19 -30
  305. package/templates/bcl-language-list/language-list-grid.html.twig +1 -1
  306. package/templates/bcl-link/link.html.twig +6 -4
  307. package/templates/bcl-links-block/links-block.html.twig +17 -16
  308. package/templates/bcl-list-group/list-group.html.twig +3 -1
  309. package/templates/bcl-listing/listing.html.twig +8 -6
  310. package/templates/bcl-modal/modal.html.twig +12 -3
  311. package/templates/bcl-navbar/navbar.html.twig +4 -1
  312. package/templates/bcl-navigation/navigation.html.twig +3 -1
  313. package/templates/bcl-offcanvas/offcanvas.html.twig +8 -7
  314. package/templates/bcl-pagination/pagination.html.twig +10 -4
  315. package/templates/bcl-person/person.html.twig +0 -13
  316. package/templates/bcl-placeholder/placeholder.html.twig +4 -3
  317. package/templates/bcl-progress/progress.html.twig +2 -0
  318. package/templates/bcl-project-status/project-status.html.twig +2 -0
  319. package/templates/bcl-search-form/search-form.html.twig +5 -4
  320. package/templates/bcl-select/select.html.twig +18 -17
  321. package/templates/bcl-spinner/spinner.html.twig +2 -0
  322. package/templates/bcl-subscription-block/subscription-block.html.twig +1 -1
  323. package/templates/bcl-table/table.html.twig +3 -1
  324. package/templates/bcl-textarea/textarea.html.twig +22 -19
  325. package/templates/bcl-timeline/timeline.html.twig +17 -14
  326. package/templates/bcl-toast/toasts.html.twig +15 -15
  327. package/templates/bcl-user/user.html.twig +10 -2
@@ -8,11 +8,12 @@
8
8
  - title_attributes (drupal attrs)
9
9
  - item_title (string) (default: '')
10
10
  - icon (icon Object) (default: {})
11
+ - icon_inline (boolean) (deafult: true)
11
12
  - text (string) (default: '')
12
13
  - content (string) (default: '')
13
14
  - image (object) (default: {}) - format: {
14
- path:"",
15
- alt: "",
15
+ path: '',
16
+ alt: '',
16
17
  }
17
18
  - badges (array of badges Object) (default: [])
18
19
  - meta (string) (default: '')
@@ -21,22 +22,24 @@
21
22
  - options: ['default', 'card']
22
23
  - download (link Object) (default: {})
23
24
  - translation (object) (default: {}) format: {
24
- id: "",
25
+ id: '',
25
26
  label: {}, - link Object
26
27
  items: [
27
28
  {
28
- extension: "",
29
- language: "",
30
- size: "",
29
+ extension: '',
30
+ language: '',
31
+ size: '',
31
32
  download: {}, - link Object
32
33
  },
33
34
  }
34
35
  - icon_path (string) (default: '')
36
+ - attributes (drupal attrs)
35
37
  #}
36
38
 
37
39
  {# Internal properties #}
38
40
 
39
41
  {% set _icon = icon|default({}) %}
42
+ {% set _icon_inline = icon_inline|default(true) %}
40
43
  {% set _title = title|default('') %}
41
44
  {% set _title_tag = title_tag|default('h2') %}
42
45
  {% set _title_link = title_link|default({}) %}
@@ -59,7 +62,6 @@
59
62
 
60
63
  {% set attributes = attributes.addClass(['bcl-file']) %}
61
64
 
62
- {% set _container_classes = 'w-100 d-md-flex' %}
63
65
  {% if _icon is not empty %}
64
66
  {% set _container_classes = _container_classes ~ ' ms-2-5' %}
65
67
  {% set _icon = _icon|merge({
@@ -76,51 +78,53 @@
76
78
  } only %}
77
79
  {% endif %}
78
80
 
79
- {% if _variant == 'card' %}
80
- {% set attributes = attributes.addClass(['border', 'rounded-bottom']) %}
81
- {% set _image = _image|merge({
82
- position: "top",
83
- classes: "mb-3",
84
- rounded: 0,
85
- }) %}
86
- {% include '@oe-bcl/bcl-card/card.html.twig' with {
87
- horizontal: true,
88
- horizontal_grid: {
89
- left_col_classes: "col-12 col-md-4 order-md-2",
90
- right_col_classes: "col-12 col-md-8",
91
- },
92
- badges: _badges,
93
- title: _item_title,
94
- text: {
95
- content: _text,
96
- classes: "mb-2",
97
- },
98
- content: _content,
99
- image: _image,
100
- extra_classes_body: "p-0",
101
- attributes: create_attribute().addClass(['rounded-0', 'rounded-top', 'p-4', 'border-bottom-0'])
102
- } only %}
103
- {% else %}
104
- {% set attributes = attributes.addClass(['border', 'rounded']) %}
105
- {% endif %}
81
+ {% set attributes = attributes.addClass(['border', 'rounded']) %}
82
+
83
+ {% set _container_classes = 'd-md-flex flex-grow-1' %}
106
84
 
107
85
  <div
108
86
  {{ attributes }}
109
87
  >
110
- <div class="px-3-5 py-3">
111
- <div class="d-flex">
88
+ {% if _variant == 'card' %}
89
+ <div class="border-bottom px-3-5 py-3 d-md-flex">
90
+ <div class="pe-2 pb-2">
112
91
  {% if _icon is not empty %}
113
92
  {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon|merge({
114
93
  path: _icon_path,
115
94
  }) only -%}
116
95
  {% endif %}
96
+ </div>
97
+ <div>
98
+ {% if _item_title is not empty %}
99
+ <p class="fw-medium mb-2 fs-5">{{ _item_title }}</p>
100
+ {% endif %}
101
+ {% if _text is not empty %}
102
+ <p class="mb-3">{{ _text }}</p>
103
+ {% endif %}
104
+ {% if _content is not empty %}
105
+ {{ _content }}
106
+ {% endif %}
107
+ </div>
108
+ </div>
109
+ {% endif %}
110
+ <div class="px-3-5 py-3">
111
+ <div class="d-flex">
112
+ {% if _icon is not empty and _variant == 'default' %}
113
+ <div class="pe-2 pb-2">
114
+ {% if _icon is not empty %}
115
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon|merge({
116
+ path: _icon_path,
117
+ }) only -%}
118
+ {% endif %}
119
+ </div>
120
+ {% endif %}
117
121
  <div class="{{ _container_classes }}">
118
122
  <div class="flex-grow-1">
119
123
  {% if _item_title is not empty and _variant == 'default' %}
120
- <p class="fw-bold m-0">{{ _item_title }}</p>
124
+ <p class="fw-medium m-0 fs-5">{{ _item_title }}</p>
121
125
  {% endif %}
122
126
  {% if _language is not empty or _meta is not empty %}
123
- <small class="fw-bold m-0">
127
+ <small class="fw-medium m-0">
124
128
  {%- if _language is not empty -%}
125
129
  {{- _language -}}
126
130
  {%- endif -%}
@@ -142,7 +146,7 @@
142
146
  attributes: create_attribute()
143
147
  .setAttribute('download', true)
144
148
  .setAttribute('target', '_blank')
145
- .addClass(['standalone', 'align-self-center', 'd-inline-block', 'mt-1', 'mt-md-0'])
149
+ .addClass(['standalone', 'align-self-center', 'd-inline-block', 'mt-1', 'mt-md-0', 'flex-shrink-0'])
146
150
  }) %}
147
151
  {% include '@oe-bcl/bcl-link/link.html.twig' with _download only %}
148
152
  </div>
@@ -26,9 +26,9 @@
26
26
  ]
27
27
  }
28
28
  ]
29
- },
30
- ...
29
+ }
31
30
  ]
31
+ - attributes (drupal attrs)
32
32
  #}
33
33
 
34
34
  {% set _variant = variant|default('neutral') %}
@@ -20,10 +20,8 @@
20
20
  legend_classes: (string) (default: ''),
21
21
  },
22
22
  ],
23
- [
24
- ...
25
- ],
26
- - submit (object) (default: {}) Array of objects or object of type button
23
+ - submit (object) (default: {}) Button or Array of button
24
+ - attributes (drupal attrs)
27
25
  #}
28
26
 
29
27
  {% set _title = title|default('') %}
@@ -2,27 +2,30 @@
2
2
 
3
3
  {#
4
4
  Parameters:
5
- - "id" (string) (default: '')
6
- - "input_type" (string) (default: 'text')
7
- - "label" (string) (default: '')
8
- - "helper_text" (string) (default: '')
9
- - "helper_id" (string) (default: '')
10
- - "checked" (boolean) (default: false)
11
- - "disabled" (boolean) (default: false)
12
- - "invalid" (boolean) (default: false)
13
- - "valid" (boolean) (default: false)
14
- - "invalid_feedback" (string) (default: '')
15
- - "valid_feedback" (string) (default: '')
16
- - "required" (boolean) (default: false)
17
- - "readonly" (boolean) (default: false)
18
- - "floating" (boolean) (default: false)
19
- - "horizontal" (boolean) (default: false)
20
- - "horizontal_class" (string) (default: col-sm-10)
21
- - "hidden_label" (boolean) (default: false)
22
- - "switch" (boolean) (default: false)
23
- - "toggle" (boolean) (default: false)
24
- - "toggle_variant" (string) (default: 'primary')
25
- - "remove_wrapper" (boolean) (default: false)
5
+ - id (string) (default: '')
6
+ - input_type (string) (default: 'text')
7
+ - label (string) (default: '')
8
+ - required (boolean) (default: false)
9
+ - checked (boolean) (default: false)
10
+ - hidden_label (boolean) (default: false)
11
+ - disabled (boolean) (default: false)
12
+ - readonly (boolean) (default: false)
13
+ - invalid (boolean) (default: false)
14
+ - valid (boolean) (default: false)
15
+ - invalid_feedback (string) (default: '')
16
+ - valid_feedback (string) (default: '')
17
+ - floating (boolean) (default: false)
18
+ - helper_text (string) (default: '')
19
+ - helper_text_id (string) (default: '')
20
+ - placeholder (string) (default: '')
21
+ - horizontal (boolean) (default: false)
22
+ - horizontal_class (string) (default: col-sm-10)
23
+ - horizontal_label_class (string) (default: col-sm-2)
24
+ - switch (boolean) (default: false)
25
+ - toggle (boolean) (default: false)
26
+ - toggle_variant (string) (default: 'primary')
27
+ - remove_wrapper (boolean) (default: false)
28
+ - attributes (drupal attrs)
26
29
  #}
27
30
 
28
31
  {% set _id = id|default('') %}
@@ -48,6 +51,7 @@
48
51
  {% set _toggle = toggle|default(false) %}
49
52
  {% set _toggle_variant = toggle_variant|default('primary') %}
50
53
  {% set _remove_wrapper = remove_wrapper|default(false) %}
54
+
51
55
  {% set _label_block = false %}
52
56
  {% set _label_class = 'form-label' %}
53
57
  {% set _classes = ['form-control'] %}
@@ -10,8 +10,8 @@ Parameters:
10
10
  - counter (string) (default: '')
11
11
  - toggle_collapsed (string) (default: '')
12
12
  - toggle_expanded (string) (default: '')
13
- - previous_label (string) (default: '')
14
- - next_label (string) (default: '')
13
+ - next_label (string) (default: 'Next')
14
+ - prev_label (string) (default: 'Previous')
15
15
  - max_visible_thumbnails (int) (default: 5)
16
16
  - items (array of objects) format: [
17
17
  {
@@ -22,9 +22,9 @@ Parameters:
22
22
  caption_classes (string)
23
23
  interval (integer) (default: 0)
24
24
  }
25
- ...
26
- ],
25
+ ]
27
26
  - icon_path (string) (default: '')
27
+ - attributes (drupal attrs)
28
28
  #}
29
29
 
30
30
  {% set _id = id|default('gallery-' ~ random(1000)) %}
@@ -37,8 +37,8 @@ Parameters:
37
37
  {% set _toggle_expanded = toggle_expanded|default('') %}
38
38
  {% set _next_label = next_label|default('Next') %}
39
39
  {% set _prev_label = prev_label|default('Previous') %}
40
- {% set _items = items|default([]) %}
41
40
  {% set _max_visible_thumbnails = max_visible_thumbnails|default(5) %}
41
+ {% set _items = items|default([]) %}
42
42
  {% set _icon_path = icon_path|default('') %}
43
43
 
44
44
  {% set _carousel_items = [] %}
@@ -0,0 +1,43 @@
1
+ {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' %}
2
+
3
+ {% block content %}
4
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
5
+ title: 'Description',
6
+ title_tag: 'h2',
7
+ } only %}
8
+
9
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
10
+ volutpat ultricies massa, a dapibus libero porta nec. Sed facilisis dictum vestibulum.
11
+ Fusce commodo hendrerit diam, pretium tempus leo varius sit amet.
12
+ Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero
13
+ orci semper lacus. Duis tristique fringilla magna, eu egestas dolor molestie non.
14
+ Fusce commodo hendrerit diam, pretium tempus leo varius sit amet.
15
+ Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero orci semper lacus.
16
+ Duis tristique fringilla magna, eu egestas dolor molestie non.</p>
17
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse volutpat ultricies massa,
18
+ a dapibus libero porta nec. Sed facilisis dictum vestibulum. Fusce commodo hendrerit diam, pretium tempus
19
+ leo varius sit amet. Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero
20
+ orci semper lacus. Duis tristique fringilla magna, eu egestas dolor molestie non. </p>
21
+ <p>Lorem ipsum dolor
22
+ sit amet, consectetur adipiscing elit. Suspendisse volutpat ultricies massa, a dapibus libero porta nec.
23
+ Sed facilisis dictum vestibulum.
24
+ Fusce commodo hendrerit diam, pretium tempus leo varius sit amet. Etiam interdum, orci at sagittis luctus,
25
+ lorem libero tempus mauris, a fermentum libero orci semper lacus. Duis tristique fringilla magna,
26
+ eu egestas dolor molestie non. </p>
27
+
28
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
29
+ title: 'File Downloads',
30
+ title_tag: 'h2',
31
+ attributes: create_attribute().addClass('mt-5', 'mb-4'),
32
+ } only %}
33
+
34
+ {% for file in files %}
35
+ {% if loop.last %}
36
+ {% set file_classes = 'mt-4' %}
37
+ {% endif %}
38
+ <div {{ file_classes ? 'class="' ~ file_classes ~ '"' }}>
39
+ {% include '@oe-bcl/bcl-file/file.html.twig' with file only %}
40
+ </div>
41
+ {% endfor %}
42
+
43
+ {% endblock %}
@@ -0,0 +1,22 @@
1
+ {% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig' %}
2
+
3
+ {% block content_row %}
4
+ <div class="col-lg-4 col-md-6 col-12 mb-5">
5
+ {% include '@oe-bcl/bcl-search-form/search-form.html.twig' with search only %}
6
+ </div>
7
+ {% include '@oe-bcl/bcl-pagination/pagination.html.twig' with glossary only %}
8
+ <div class="col-12">
9
+ <div class="d-md-flex justify-content-end mb-md-5 align-items-center border-bottom-md border-top-md border-gray-300 py-5">
10
+ {% include '@oe-bcl/bcl-select/select.html.twig' with sortBy only %}
11
+ {% include '@oe-bcl/bcl-select/select.html.twig' with itemsPerPage only %}
12
+ </div>
13
+ </div>
14
+ {% endblock %}
15
+
16
+ {% block content_top %}
17
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
18
+ title: 'Starting with "A" (48)',
19
+ title_tag: 'h2',
20
+ } only %}
21
+
22
+ {% endblock %}
@@ -5,31 +5,33 @@
5
5
  - navbar (Navbar object) (default: {})
6
6
  - project_logo (object) (default: {})
7
7
  format: {
8
- path: "",
9
- alt: "",
10
- classes: ""
8
+ path: '',
9
+ alt: '',
10
+ classes: ''
11
11
  }
12
- - site_name (string) (default: "")
13
- - project_link (string) (default: "")
12
+ - site_name (string) (default: '')
13
+ - project_link (string) (default: '')
14
14
  - head (Navbar object) (default: {})
15
15
  - breadcrumbs (Breadcrumbs object) (default: {})
16
- - light (boolean) (default: false)
17
- - modals (Array of modal objects) (default: [])
18
16
  - language_modal (object) (default: {})
17
+ - modals (Array of modal objects) (default: [])
18
+ - light (boolean) (default: false)
19
+ - attributes (drupal attrs)
19
20
  #}
20
21
 
21
22
  {% set _variant = variant|default('neutral') %}
22
23
  {% set _navbar = navbar|default({}) %}
23
24
  {% set _project_logo = project_logo|default({}) %}
24
- {% set _project_link = project_link|default('') %}
25
25
  {% set _site_name = site_name|default('') %}
26
- {% set _site_name_classes = 'bcl-header__site-name' %}
26
+ {% set _project_link = project_link|default('') %}
27
27
  {% set _head = head|default({}) %}
28
28
  {% set _breadcrumbs = breadcrumbs|default({}) %}
29
29
  {% set _language_modal = language_modal|default({}) %}
30
30
  {% set _modals = modals|default([]) %}
31
31
  {% set _light = light|default(false) %}
32
32
 
33
+ {% set _site_name_classes = 'bcl-header__site-name' %}
34
+
33
35
  {% if attributes is empty %}
34
36
  {% set attributes = create_attribute() %}
35
37
  {% endif %}
@@ -3,7 +3,7 @@
3
3
  {# Parameters:
4
4
  - title (string) (default: '')
5
5
  - title_tag (string) (default: 'h2')
6
- - title_link: (object) (default: {})
6
+ - title_link: (link object) (default: {})
7
7
  - attributes (drupal attrs)
8
8
  #}
9
9
 
@@ -4,9 +4,10 @@
4
4
  - name (string) (default: '')
5
5
  - path (string) (default: '')
6
6
  - size (string) (default: 's')
7
- - options ["2xs", "xs", "s", "m", "l", "xl", "2xl", "fluid"]
7
+ - options ['2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', 'fluid']
8
8
  - transformation (string) (default: '')
9
- - options ["rotate-90", "rotate-180", "rotate-270", "flip-horizontal", "flip-vertical"]
9
+ - options ['rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical']
10
+ - attributes (drupal attrs)
10
11
  #}
11
12
 
12
13
  {% set _name = name|default('') %}
@@ -3,21 +3,21 @@
3
3
  {#
4
4
  Parameters:
5
5
  - title: (string) (default: '')
6
- - title_tag: (string) (default: 'h5')
6
+ - title_tag: (string) (default: 'h3')
7
7
  - title_link: (link object) (default: {})
8
8
  - title_attributes (drupal attrs)
9
- - full_layout: (boolean) (default: false)
10
9
  - links: (array of link objects) (default: [])
11
- - content: (string) (default: '')
10
+ - id (string) (default: 'bcl-inpage-navigation-' random(10))
11
+ - attributes (drupal attrs)
12
12
  #}
13
13
 
14
14
  {% set _title = title|default('') %}
15
- {% set _title_tag = title_tag|default('h3') %}
15
+ {% set _title_tag = title_tag|default('h2') %}
16
16
  {% set _title_link = title_link|default({}) %}
17
17
  {% set _title_attributes = title_attributes ?: create_attribute() %}
18
18
  {% set _links = links|default([]) %}
19
19
  {% set _content = content|default('') %}
20
- {% set _id = id|default('bcl-inpage-navigation-' ~ random(5)) %}
20
+ {% set _id = id|default('bcl-inpage-navigation-' ~ random(10)) %}
21
21
  {% set _full_layout = full_layout|default(false) %}
22
22
 
23
23
  {% if attributes is empty %}
@@ -25,31 +25,20 @@ Parameters:
25
25
  {% endif %}
26
26
 
27
27
  {% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
28
+ {% set title_attributes = _title_attributes.addClass('mb-0') %}
28
29
 
29
- {# Print the result #}
30
- {% if _full_layout %}
31
- <div class="row">
32
- <div class="col-md-3 d-none d-md-block">
33
- {% endif %}
34
- <nav {{ attributes }}>
35
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
36
- title: _title,
37
- title_tag: _title_tag,
38
- title_link: _title_link,
39
- attributes: _title_attributes,
40
- } only %}
41
- {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
42
- 'pills': true,
43
- 'vertical': true,
44
- 'items': _links,
45
- } only %}
46
- </nav>
47
- {% if _full_layout %}
48
- </div>
49
- <div class="col-md-9">
50
- {{ _content }}
51
- </div>
52
- </div>
53
- {% endif %}
30
+ <nav {{ attributes }}>
31
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
32
+ title: _title,
33
+ title_tag: _title_tag,
34
+ title_link: _title_link,
35
+ attributes: _title_attributes.addClass('mb-0'),
36
+ } only %}
37
+ {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
38
+ 'pills': true,
39
+ 'vertical': true,
40
+ 'items': _links,
41
+ } only %}
42
+ </nav>
54
43
 
55
44
  {% endspaceless %}
@@ -15,8 +15,8 @@
15
15
  #}
16
16
 
17
17
  {% set _items = items|default([]) %}
18
- {% set _icon_path = icon_path|default('') %}
19
18
  {% set _category = category|default('') %}
19
+ {% set _icon_path = icon_path|default('') %}
20
20
 
21
21
  {% set _columns = [] %}
22
22
  {% set _columns = _columns|merge([_items|slice(0, (items|length / 2)|round(0, 'ceil'))]) %}
@@ -4,14 +4,15 @@
4
4
  - label (string) (default: '')
5
5
  - path (string) (default: '#')
6
6
  - variant (string) (default: '')
7
- - options ["primary", "secondary", "success", "danger", "warning", "info", "light", "dark"]
7
+ - options ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark']
8
8
  - id (string) (default: '')
9
9
  - disabled (boolean) (default: false)
10
- - remove_icon_spacers (boolean) (default: false)
11
10
  - standalone (boolean) (default: false)
12
- - icon (icon object) (default: {}): predefined structure for Icon component
11
+ - icon (icon object) (default: {})
13
12
  - icon_position (string) (default: after)
14
- - options ["after", "before"]
13
+ - options ['after', 'before']
14
+ - remove_icon_spacers (boolean) (default: false)
15
+ - attributes (drupal attrs)
15
16
  #}
16
17
 
17
18
  {% set _label = label|default('') %}
@@ -23,6 +24,7 @@
23
24
  {% set _icon = icon|default({}) %}
24
25
  {% set _icon_position = icon_position|default('after') %}
25
26
  {% set _remove_icon_spacers = remove_icon_spacers|default(false) %}
27
+
26
28
  {% set _classes = [] %}
27
29
 
28
30
  {% if _icon is not empty %}
@@ -1,23 +1,24 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - title: (string) (default: "")
5
- - title_tag: (string) (default: "h2")
4
+ - title: (string) (default: '')
5
+ - title_tag: (string) (default: 'h2')
6
6
  - title_link: (link object) (default: {})
7
7
  - title_attributes (drupal attrs)
8
- - background: (string) (default: "gray")
9
- - options ["gray", "transparent"]
10
- - variant: (string) (default: "vertical")
11
- - options ["vertical", "horizontal"]
8
+ - background: (string) (default: 'gray')
9
+ - options ['gray', 'transparent']
10
+ - variant: (string) (default: 'vertical')
11
+ - options ['vertical', 'horizontal']
12
12
  - links (array of link objects) (default: [])
13
+ - attributes (drupal attrs)
13
14
  #}
14
15
 
15
- {% set _title = title|default("") %}
16
- {% set _title_tag = title_tag|default("h2") %}
16
+ {% set _title = title|default('') %}
17
+ {% set _title_tag = title_tag|default('h2') %}
17
18
  {% set _title_link = title_link|default({}) %}
18
19
  {% set _title_attributes = title_attributes ?: create_attribute() %}
19
- {% set _background = background|default("gray") %}
20
- {% set _variant = variant|default("vertical") %}
20
+ {% set _background = background|default('gray') %}
21
+ {% set _variant = variant|default('vertical') %}
21
22
  {% set _links = links|default([])%}
22
23
 
23
24
  {% set _title_classes = ['pb-3', 'mb-3', 'border-bottom'] %}
@@ -26,8 +27,8 @@
26
27
  {% set attributes = create_attribute() %}
27
28
  {% endif %}
28
29
 
29
- {% if _background == "gray" %}
30
- {% set attributes = attributes.addClass(["bg-light", "px-4", "py-3", "rounded-2"]) %}
30
+ {% if _background == 'gray' %}
31
+ {% set attributes = attributes.addClass(['bg-light', 'px-4', 'py-3', 'rounded-2']) %}
31
32
  {% endif %}
32
33
 
33
34
  <div
@@ -51,17 +52,17 @@
51
52
  {% endif %}
52
53
  {% set _link = _link|merge({
53
54
  clean_class: true,
54
- attributes: _link.attributes.addClass(["pb-3", "d-inline-block", "standalone"])
55
+ attributes: _link.attributes.addClass(['pb-3', 'd-inline-block', 'standalone'])
55
56
  }) %}
56
- {% set _list_item_classes = "list-unstyled" %}
57
- {% if _variant == "horizontal" %}
57
+ {% set _list_item_classes = 'list-unstyled' %}
58
+ {% if _variant == 'horizontal' %}
58
59
  {% set _list_item_classes = _list_item_classes ~ ' d-inline' %}
59
60
  {% endif %}
60
61
  {% if loop.last == false %}
61
62
  {% set _list_item_classes = _list_item_classes ~ ' me-4-5' %}
62
63
  {% endif %}
63
64
  <li class="{{ _list_item_classes }}">
64
- {% include "@oe-bcl/bcl-link/link.html.twig" with _link only %}
65
+ {% include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
65
66
  </li>
66
67
  {% endfor %}
67
68
  </ul>
@@ -4,11 +4,11 @@
4
4
  - flush (boolean) (default: false)
5
5
  - horizontal (string) (default: '')
6
6
  - options ['none', 'horizontal', 'horizontal-sm', 'horizontal-md', 'horizontal-lg', 'horizontal-xl', 'horizontal-xxl']
7
+ - id (string) (default: '')
7
8
  - type (string) (default: 'unordered')
8
9
  - options ['unordered', 'ordered', 'actionable']
9
10
  - items (array of objects: list item object or Button and Link component object if type actionable)
10
11
  format: [
11
- ('list item')
12
12
  {
13
13
  - html (string)
14
14
  - variant (string)
@@ -24,6 +24,7 @@
24
24
  },
25
25
  ...
26
26
  ]
27
+ - attributes (drupal attrs)
27
28
  #}
28
29
 
29
30
  {% set _flush = flush|default(false) %}
@@ -31,6 +32,7 @@
31
32
  {% set _id = id|default('') %}
32
33
  {% set _type = type|default('unordered') %}
33
34
  {% set _items = items|default([]) %}
35
+
34
36
  {% set _classes = ['list-group'] %}
35
37
 
36
38
  {% if _flush %}
@@ -1,16 +1,17 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - title: (string) (default: "")
5
- - title_tag: (string) (default: "h2")
4
+ - title: (string) (default: '')
5
+ - title_tag: (string) (default: 'h2')
6
6
  - title_link: (link object) (default: {})
7
7
  - title_attributes (drupal attrs)
8
- - variant: (string) (default: "horizontal") options:
9
- [ default-1-col, highlight-1-col, default-2-col, default-3-col, highlight-2-col, highlight-3-col ]
8
+ - variant: (string) (default: 'horizontal')
9
+ options [ default-1-col, highlight-1-col, default-2-col, default-3-col, highlight-2-col, highlight-3-col ]
10
10
  - items: (array of objects of type card)
11
11
  - link: (object of type link)
12
- - alignment: (string) (default: '') options:
13
- ['start', 'end', 'center', 'baseline', 'stretch']
12
+ - alignment: (string) (default: '')
13
+ options ['start', 'end', 'center', 'baseline', 'stretch']
14
+ - attributes (drupal attrs)
14
15
  #}
15
16
 
16
17
  {% set _title = title|default('') %}
@@ -21,6 +22,7 @@
21
22
  {% set _variant = variant|default('default-1-col') %}
22
23
  {% set _alignment = alignment|default('') %}
23
24
  {% set _link = link|default({}) %}
25
+
24
26
  {% set _classes = ['bcl-listing', 'bcl-listing--' ~ _variant] %}
25
27
  {% set _cards = [] %}
26
28
  {% set _card_layout = {