@openeuropa/bcl-theme-default 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.
- package/bcl-builder.config.js +6 -2
- package/css/oe-bcl-default.css +239 -1744
- package/css/oe-bcl-default.css.map +1 -1
- package/css/oe-bcl-default.min.css +1 -1
- package/css/oe-bcl-default.min.css.map +1 -1
- package/icons/world-flags/ad.svg +154 -0
- package/icons/world-flags/ae.svg +6 -0
- package/icons/world-flags/af.svg +1 -0
- package/icons/world-flags/ag.svg +1 -0
- package/icons/world-flags/ai.svg +1 -0
- package/icons/world-flags/al.svg +1 -0
- package/icons/world-flags/am.svg +5 -0
- package/icons/world-flags/an.svg +24 -0
- package/icons/world-flags/ao.svg +1 -0
- package/icons/world-flags/aq.svg +1 -0
- package/icons/world-flags/ar.svg +33 -0
- package/icons/world-flags/as.svg +1 -0
- package/icons/world-flags/at.svg +4 -0
- package/icons/world-flags/au.svg +1 -0
- package/icons/world-flags/aw.svg +1 -0
- package/icons/world-flags/ax.svg +11 -0
- package/icons/world-flags/az.svg +8 -0
- package/icons/world-flags/ba.svg +11 -0
- package/icons/world-flags/bb.svg +7 -0
- package/icons/world-flags/bd.svg +4 -0
- package/icons/world-flags/be.svg +5 -0
- package/icons/world-flags/bf.svg +14 -0
- package/icons/world-flags/bg.svg +5 -0
- package/icons/world-flags/bh.svg +1 -0
- package/icons/world-flags/bi.svg +26 -0
- package/icons/world-flags/bj.svg +5 -0
- package/icons/world-flags/bl.svg +160 -0
- package/icons/world-flags/bm.svg +1 -0
- package/icons/world-flags/bn.svg +58 -0
- package/icons/world-flags/bo.svg +1 -0
- package/icons/world-flags/bq.svg +5 -0
- package/icons/world-flags/br.svg +89 -0
- package/icons/world-flags/bs.svg +5 -0
- package/icons/world-flags/bt.svg +466 -0
- package/icons/world-flags/bv.svg +7 -0
- package/icons/world-flags/bw.svg +5 -0
- package/icons/world-flags/by.svg +14 -0
- package/icons/world-flags/bz.svg +1 -0
- package/icons/world-flags/ca.svg +1 -0
- package/icons/world-flags/cc.svg +19 -0
- package/icons/world-flags/cd.svg +5 -0
- package/icons/world-flags/cf.svg +8 -0
- package/icons/world-flags/cg.svg +5 -0
- package/icons/world-flags/ch.svg +5 -0
- package/icons/world-flags/ci.svg +5 -0
- package/icons/world-flags/ck.svg +1 -0
- package/icons/world-flags/cl.svg +14 -0
- package/icons/world-flags/cm.svg +15 -0
- package/icons/world-flags/cn.svg +11 -0
- package/icons/world-flags/co.svg +5 -0
- package/icons/world-flags/cr.svg +1 -0
- package/icons/world-flags/cu.svg +6 -0
- package/icons/world-flags/cv.svg +24 -0
- package/icons/world-flags/cw.svg +16 -0
- package/icons/world-flags/cx.svg +15 -0
- package/icons/world-flags/cy.svg +1 -0
- package/icons/world-flags/cz.svg +5 -0
- package/icons/world-flags/de.svg +6 -0
- package/icons/world-flags/dj.svg +6 -0
- package/icons/world-flags/dk.svg +5 -0
- package/icons/world-flags/dm.svg +1 -0
- package/icons/world-flags/do.svg +1 -0
- package/icons/world-flags/dz.svg +5 -0
- package/icons/world-flags/ec.svg +519 -0
- package/icons/world-flags/ee.svg +5 -0
- package/icons/world-flags/eg.svg +78 -0
- package/icons/world-flags/eh.svg +9 -0
- package/icons/world-flags/er.svg +6 -0
- package/icons/world-flags/es.svg +1 -0
- package/icons/world-flags/et.svg +16 -0
- package/icons/world-flags/eu.svg +29 -0
- package/icons/world-flags/fi.svg +5 -0
- package/icons/world-flags/fj.svg +1 -0
- package/icons/world-flags/fk.svg +1 -0
- package/icons/world-flags/fm.svg +16 -0
- package/icons/world-flags/fo.svg +11 -0
- package/icons/world-flags/fr.svg +1 -0
- package/icons/world-flags/ga.svg +5 -0
- package/icons/world-flags/gb-eng.svg +7 -0
- package/icons/world-flags/gb-nir.svg +1 -0
- package/icons/world-flags/gb-sct.svg +1 -0
- package/icons/world-flags/gb-wls.svg +9 -0
- package/icons/world-flags/gb.svg +1 -0
- package/icons/world-flags/gd.svg +27 -0
- package/icons/world-flags/ge.svg +17 -0
- package/icons/world-flags/gf.svg +5 -0
- package/icons/world-flags/gg.svg +8 -0
- package/icons/world-flags/gh.svg +6 -0
- package/icons/world-flags/gi.svg +54 -0
- package/icons/world-flags/gl.svg +4 -0
- package/icons/world-flags/gm.svg +7 -0
- package/icons/world-flags/gn.svg +5 -0
- package/icons/world-flags/gp.svg +5 -0
- package/icons/world-flags/gq.svg +75 -0
- package/icons/world-flags/gr.svg +4 -0
- package/icons/world-flags/gs.svg +1 -0
- package/icons/world-flags/gt.svg +214 -0
- package/icons/world-flags/gu.svg +1 -0
- package/icons/world-flags/gw.svg +13 -0
- package/icons/world-flags/gy.svg +7 -0
- package/icons/world-flags/hk.svg +12 -0
- package/icons/world-flags/hm.svg +1 -0
- package/icons/world-flags/hn.svg +18 -0
- package/icons/world-flags/hr.svg +240 -0
- package/icons/world-flags/ht.svg +196 -0
- package/icons/world-flags/hu.svg +5 -0
- package/icons/world-flags/id.svg +4 -0
- package/icons/world-flags/ie.svg +9 -0
- package/icons/world-flags/il.svg +1 -0
- package/icons/world-flags/im.svg +59 -0
- package/icons/world-flags/in.svg +25 -0
- package/icons/world-flags/io.svg +178 -0
- package/icons/world-flags/iq.svg +1 -0
- package/icons/world-flags/ir.svg +31 -0
- package/icons/world-flags/is.svg +5 -0
- package/icons/world-flags/it.svg +5 -0
- package/icons/world-flags/je.svg +49 -0
- package/icons/world-flags/jm.svg +4 -0
- package/icons/world-flags/jo.svg +7 -0
- package/icons/world-flags/jp.svg +4 -0
- package/icons/world-flags/ke.svg +23 -0
- package/icons/world-flags/kg.svg +1 -0
- package/icons/world-flags/kh.svg +116 -0
- package/icons/world-flags/ki.svg +1 -0
- package/icons/world-flags/km.svg +13 -0
- package/icons/world-flags/kn.svg +1 -0
- package/icons/world-flags/kp.svg +16 -0
- package/icons/world-flags/kr.svg +1 -0
- package/icons/world-flags/kw.svg +6 -0
- package/icons/world-flags/ky.svg +1 -0
- package/icons/world-flags/kz.svg +37 -0
- package/icons/world-flags/la.svg +5 -0
- package/icons/world-flags/lb.svg +5 -0
- package/icons/world-flags/lc.svg +6 -0
- package/icons/world-flags/li.svg +56 -0
- package/icons/world-flags/lk.svg +31 -0
- package/icons/world-flags/lr.svg +15 -0
- package/icons/world-flags/ls.svg +23 -0
- package/icons/world-flags/lt.svg +5 -0
- package/icons/world-flags/lu.svg +5 -0
- package/icons/world-flags/lv.svg +4 -0
- package/icons/world-flags/ly.svg +8 -0
- package/icons/world-flags/ma.svg +6 -0
- package/icons/world-flags/mc.svg +4 -0
- package/icons/world-flags/md.svg +140 -0
- package/icons/world-flags/me.svg +93 -0
- package/icons/world-flags/mf.svg +5 -0
- package/icons/world-flags/mg.svg +5 -0
- package/icons/world-flags/mh.svg +19 -0
- package/icons/world-flags/mk.svg +7 -0
- package/icons/world-flags/ml.svg +5 -0
- package/icons/world-flags/mm.svg +12 -0
- package/icons/world-flags/mn.svg +21 -0
- package/icons/world-flags/mo.svg +10 -0
- package/icons/world-flags/mp.svg +240 -0
- package/icons/world-flags/mq.svg +1 -0
- package/icons/world-flags/mr.svg +6 -0
- package/icons/world-flags/ms.svg +1 -0
- package/icons/world-flags/mt.svg +49 -0
- package/icons/world-flags/mu.svg +6 -0
- package/icons/world-flags/mv.svg +8 -0
- package/icons/world-flags/mw.svg +24 -0
- package/icons/world-flags/mx.svg +1 -0
- package/icons/world-flags/my.svg +13 -0
- package/icons/world-flags/mz.svg +13 -0
- package/icons/world-flags/na.svg +1 -0
- package/icons/world-flags/nc.svg +18 -0
- package/icons/world-flags/ne.svg +6 -0
- package/icons/world-flags/nf.svg +5 -0
- package/icons/world-flags/ng.svg +4 -0
- package/icons/world-flags/ni.svg +161 -0
- package/icons/world-flags/nl.svg +5 -0
- package/icons/world-flags/no.svg +7 -0
- package/icons/world-flags/np.svg +33 -0
- package/icons/world-flags/nr.svg +5 -0
- package/icons/world-flags/nu.svg +1 -0
- package/icons/world-flags/nz.svg +1 -0
- package/icons/world-flags/om.svg +226 -0
- package/icons/world-flags/pa.svg +20 -0
- package/icons/world-flags/pe.svg +320 -0
- package/icons/world-flags/pf.svg +55 -0
- package/icons/world-flags/pg.svg +13 -0
- package/icons/world-flags/ph.svg +30 -0
- package/icons/world-flags/pk.svg +8 -0
- package/icons/world-flags/pl.svg +4 -0
- package/icons/world-flags/pm.svg +5 -0
- package/icons/world-flags/pn.svg +1 -0
- package/icons/world-flags/pr.svg +1 -0
- package/icons/world-flags/ps.svg +6 -0
- package/icons/world-flags/pt.svg +66 -0
- package/icons/world-flags/pw.svg +4 -0
- package/icons/world-flags/py.svg +193 -0
- package/icons/world-flags/qa.svg +1 -0
- package/icons/world-flags/re.svg +5 -0
- package/icons/world-flags/ro.svg +5 -0
- package/icons/world-flags/rs.svg +294 -0
- package/icons/world-flags/ru.svg +5 -0
- package/icons/world-flags/rw.svg +13 -0
- package/icons/world-flags/sa.svg +4 -0
- package/icons/world-flags/sb.svg +23 -0
- package/icons/world-flags/sc.svg +7 -0
- package/icons/world-flags/sd.svg +6 -0
- package/icons/world-flags/se.svg +5 -0
- package/icons/world-flags/sg.svg +11 -0
- package/icons/world-flags/sh.svg +1 -0
- package/icons/world-flags/si.svg +22 -0
- package/icons/world-flags/sj.svg +7 -0
- package/icons/world-flags/sk.svg +12 -0
- package/icons/world-flags/sl.svg +5 -0
- package/icons/world-flags/sm.svg +321 -0
- package/icons/world-flags/sn.svg +15 -0
- package/icons/world-flags/so.svg +13 -0
- package/icons/world-flags/sr.svg +6 -0
- package/icons/world-flags/ss.svg +8 -0
- package/icons/world-flags/st.svg +16 -0
- package/icons/world-flags/sv.svg +1 -0
- package/icons/world-flags/sx.svg +94 -0
- package/icons/world-flags/sy.svg +17 -0
- package/icons/world-flags/sz.svg +1 -0
- package/icons/world-flags/tc.svg +1 -0
- package/icons/world-flags/td.svg +5 -0
- package/icons/world-flags/tf.svg +15 -0
- package/icons/world-flags/tg.svg +16 -0
- package/icons/world-flags/th.svg +5 -0
- package/icons/world-flags/tj.svg +26 -0
- package/icons/world-flags/tk.svg +25 -0
- package/icons/world-flags/tl.svg +1 -0
- package/icons/world-flags/tm.svg +179 -0
- package/icons/world-flags/tn.svg +9 -0
- package/icons/world-flags/to.svg +8 -0
- package/icons/world-flags/tr.svg +6 -0
- package/icons/world-flags/tt.svg +5 -0
- package/icons/world-flags/tv.svg +1 -0
- package/icons/world-flags/tw.svg +9 -0
- package/icons/world-flags/tz.svg +6 -0
- package/icons/world-flags/ua.svg +4 -0
- package/icons/world-flags/ug.svg +24 -0
- package/icons/world-flags/um.svg +25 -0
- package/icons/world-flags/us.svg +25 -0
- package/icons/world-flags/uy.svg +36 -0
- package/icons/world-flags/uz.svg +30 -0
- package/icons/world-flags/va.svg +205 -0
- package/icons/world-flags/vc.svg +10 -0
- package/icons/world-flags/ve.svg +28 -0
- package/icons/world-flags/vg.svg +1 -0
- package/icons/world-flags/vi.svg +1 -0
- package/icons/world-flags/vn.svg +12 -0
- package/icons/world-flags/vu.svg +15 -0
- package/icons/world-flags/wf.svg +7 -0
- package/icons/world-flags/ws.svg +14 -0
- package/icons/world-flags/xk.svg +1 -0
- package/icons/world-flags/ye.svg +5 -0
- package/icons/world-flags/yt.svg +5 -0
- package/icons/world-flags/za.svg +1 -0
- package/icons/world-flags/zm.svg +23 -0
- package/icons/world-flags/zw.svg +28 -0
- package/js/oe-bcl-default.bundle.js +25 -26
- package/js/oe-bcl-default.bundle.js.map +1 -1
- package/js/oe-bcl-default.bundle.min.js +1 -1
- package/js/oe-bcl-default.bundle.min.js.map +1 -1
- package/js/oe-bcl-default.esm.js +25 -26
- package/js/oe-bcl-default.esm.js.map +1 -1
- package/js/oe-bcl-default.esm.min.js +1 -1
- package/js/oe-bcl-default.esm.min.js.map +1 -1
- package/js/oe-bcl-default.umd.js +25 -26
- package/js/oe-bcl-default.umd.js.map +1 -1
- package/js/oe-bcl-default.umd.min.js +1 -1
- package/js/oe-bcl-default.umd.min.js.map +1 -1
- package/package.json +10 -9
- package/src/icons/icons.js +23 -23
- package/src/js/gallery/gallery.js +24 -21
- package/src/scss/_card.scss +14 -0
- package/src/scss/_description_list.scss +6 -0
- package/src/scss/_inpage-navigation.scss +7 -0
- package/src/scss/_multiselect.scss +23 -2
- package/src/scss/_pagination.scss +33 -0
- package/src/scss/_tabs.scss +3 -12
- package/src/scss/base/_colors.scss +0 -2
- package/src/scss/base/_layout.scss +5 -0
- package/src/scss/base/_mixins.scss +13 -0
- package/src/scss/base/_utilities.scss +36 -12
- package/src/scss/oe-bcl-default.scss +6 -0
- package/templates/bcl-accordion/accordion.html.twig +4 -5
- package/templates/bcl-alert/alert.html.twig +5 -3
- package/templates/bcl-badge/badge.html.twig +7 -5
- package/templates/bcl-banner/banner.html.twig +5 -5
- package/templates/bcl-base-templates/content-type.html.twig +5 -0
- package/templates/bcl-base-templates/listing-page.html.twig +2 -0
- package/templates/bcl-blockquote/blockquote.html.twig +3 -1
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +3 -1
- package/templates/bcl-button/button.html.twig +6 -4
- package/templates/bcl-button-group/button-group.html.twig +4 -3
- package/templates/bcl-card/card.html.twig +5 -9
- package/templates/bcl-card-layout/card-layout.html.twig +3 -1
- package/templates/bcl-carousel/carousel.html.twig +10 -8
- package/templates/bcl-content-banner/content-banner.html.twig +14 -11
- package/templates/bcl-dropdown/dropdown.html.twig +3 -1
- package/templates/bcl-fact-figures/fact-figures.html.twig +4 -2
- package/templates/bcl-file/file.html.twig +43 -39
- package/templates/bcl-footer/footer.html.twig +2 -2
- package/templates/bcl-form/form.html.twig +2 -4
- package/templates/bcl-form-input/form-input.html.twig +25 -21
- package/templates/bcl-gallery/gallery.html.twig +5 -5
- package/templates/bcl-glossary/glossary-detail.html.twig +43 -0
- package/templates/bcl-glossary/glossary-listing.html.twig +22 -0
- package/templates/bcl-header/header.html.twig +11 -9
- package/templates/bcl-heading/heading.html.twig +1 -1
- package/templates/bcl-icon/icon.html.twig +3 -2
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +19 -30
- package/templates/bcl-language-list/language-list-grid.html.twig +1 -1
- package/templates/bcl-link/link.html.twig +6 -4
- package/templates/bcl-links-block/links-block.html.twig +17 -16
- package/templates/bcl-list-group/list-group.html.twig +3 -1
- package/templates/bcl-listing/listing.html.twig +8 -6
- package/templates/bcl-modal/modal.html.twig +12 -3
- package/templates/bcl-navbar/navbar.html.twig +4 -1
- package/templates/bcl-navigation/navigation.html.twig +3 -1
- package/templates/bcl-offcanvas/offcanvas.html.twig +8 -7
- package/templates/bcl-pagination/pagination.html.twig +10 -4
- package/templates/bcl-person/person.html.twig +0 -13
- package/templates/bcl-placeholder/placeholder.html.twig +4 -3
- package/templates/bcl-progress/progress.html.twig +2 -0
- package/templates/bcl-project-status/project-status.html.twig +2 -0
- package/templates/bcl-search-form/search-form.html.twig +5 -4
- package/templates/bcl-select/select.html.twig +18 -17
- package/templates/bcl-spinner/spinner.html.twig +2 -0
- package/templates/bcl-subscription-block/subscription-block.html.twig +1 -1
- package/templates/bcl-table/table.html.twig +3 -1
- package/templates/bcl-textarea/textarea.html.twig +22 -19
- package/templates/bcl-timeline/timeline.html.twig +17 -14
- package/templates/bcl-toast/toasts.html.twig +15 -15
- package/templates/bcl-user/user.html.twig +10 -2
- package/yarn-error.log +17973 -0
|
@@ -10,18 +10,20 @@
|
|
|
10
10
|
- rounded_pill (boolean) (default: false)
|
|
11
11
|
- outline (boolean) (default: false)
|
|
12
12
|
- icon_path (string) (default: '')
|
|
13
|
+
- attributes (drupal attrs)
|
|
13
14
|
#}
|
|
14
15
|
|
|
15
|
-
{% set _rounded_pill = rounded_pill|default(false) %}
|
|
16
|
-
{% set _outline = outline|default(false) %}
|
|
17
|
-
{% set _background = background|default('primary') %}
|
|
18
16
|
{% set _label = label|default('') %}
|
|
19
|
-
{% set
|
|
17
|
+
{% set _background = background|default('primary') %}
|
|
20
18
|
{% set _url = url|default('') %}
|
|
21
|
-
{% set _icon_path = icon_path|default('') %}
|
|
22
19
|
{% set _title = title|default(_label) %}
|
|
23
20
|
{% set _dismissible = dismissible|default(false) %}
|
|
24
21
|
{% set _assistive_text = assistive_text|default('') %}
|
|
22
|
+
{% set _rounded_pill = rounded_pill|default(false) %}
|
|
23
|
+
{% set _outline = outline|default(false) %}
|
|
24
|
+
{% set _icon_path = icon_path|default('') %}
|
|
25
|
+
|
|
26
|
+
{% set _classes = ['badge'] %}
|
|
25
27
|
|
|
26
28
|
{% if _rounded_pill %}
|
|
27
29
|
{% set _classes = _classes|merge(['rounded-pill']) %}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{% spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
-
- title: (string) (default:
|
|
5
|
-
- title_tag: (string) (default:
|
|
4
|
+
- title: (string) (default: '')
|
|
5
|
+
- title_tag: (string) (default: 'div')
|
|
6
6
|
- title_link: (link object) (default: {})
|
|
7
7
|
- title_attributes (drupal attrs)
|
|
8
|
-
- description: (string) (default:
|
|
8
|
+
- description: (string) (default: '')
|
|
9
9
|
- link: (link object) (default: {}): predefined structure for Link component
|
|
10
10
|
- image: (string) <img> tag
|
|
11
11
|
- shade: (boolean) (default: false)
|
|
12
12
|
- hero: (boolean) (default: false)
|
|
13
13
|
- full_width: (boolean) (default: false)
|
|
14
|
-
- content_classes: (string) (default:
|
|
14
|
+
- content_classes: (string) (default: '')
|
|
15
|
+
- attributes (drupal attrs)
|
|
15
16
|
#}
|
|
16
17
|
|
|
17
18
|
{% set _title = title|default('') %}
|
|
@@ -26,7 +27,6 @@
|
|
|
26
27
|
{% set _full_width = full_width|default(false) %}
|
|
27
28
|
{% set _content_classes = content_classes|default('') %}
|
|
28
29
|
|
|
29
|
-
|
|
30
30
|
{% set _content_class = 'bcl-banner__content' %}
|
|
31
31
|
{% if _content_classes is not empty %}
|
|
32
32
|
{% set _content_class = _content_class ~ " " ~ _content_classes %}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
- header
|
|
17
17
|
- footer
|
|
18
18
|
- content
|
|
19
|
+
- content_row
|
|
19
20
|
- sidebar
|
|
20
21
|
- banner
|
|
21
22
|
- feedback
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
{% set _col_classes = {
|
|
38
39
|
left: [
|
|
39
40
|
'col-12',
|
|
41
|
+
'bcl-sidebar',
|
|
40
42
|
],
|
|
41
43
|
right: [
|
|
42
44
|
'col-12',
|
|
@@ -92,6 +94,9 @@
|
|
|
92
94
|
|
|
93
95
|
<div class="container mt-md-4-75 mt-4">
|
|
94
96
|
<div class="row">
|
|
97
|
+
{% block content_row %}
|
|
98
|
+
{{ content_row }}
|
|
99
|
+
{% endblock %}
|
|
95
100
|
{% if _with_sidebar %}
|
|
96
101
|
<div class="{{ _col_classes.left|join(' ') }}">
|
|
97
102
|
{% block sidebar %}{% endblock %}
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
{% set _title_attributes = _title_attributes ?: create_attribute() %}
|
|
24
24
|
|
|
25
25
|
{% block content_top %}
|
|
26
|
+
{% if filter_button %}
|
|
26
27
|
{% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
28
|
+
{% endif %}
|
|
27
29
|
<div class="row">
|
|
28
30
|
<div class="col-md-6 col-lg-8 align-self-center">
|
|
29
31
|
{% if _title is not empty %}
|
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
- attribution (string) (default: '')
|
|
6
6
|
- cite (string) (default: '')
|
|
7
7
|
- alignment (string) (default: 'left')
|
|
8
|
-
- options [
|
|
8
|
+
- options ['left', 'center', 'end']
|
|
9
|
+
- attributes (drupal attrs)
|
|
9
10
|
#}
|
|
10
11
|
|
|
11
12
|
{% set _quote = quote|default('') %}
|
|
12
13
|
{% set _attribution = attribution|default('') %}
|
|
13
14
|
{% set _cite = cite|default('') %}
|
|
14
15
|
{% set _alignment = alignment|default('left') %}
|
|
16
|
+
|
|
15
17
|
{% set _classes = [
|
|
16
18
|
'text-' ~ _alignment,
|
|
17
19
|
"bg-lighter",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- label (string) (default: '')
|
|
6
6
|
- variant (string) (default: 'primary')
|
|
7
7
|
- size (string) (default: 'md')
|
|
8
|
-
- options [
|
|
8
|
+
- options ['sm', 'md', 'lg']
|
|
9
9
|
- type (string) (default: 'button')
|
|
10
10
|
- outline (boolean) (default: false)
|
|
11
11
|
- disabled (boolean) (default: false)
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
- id (string) (default: '')
|
|
15
15
|
- icon (icon object) (default: {}): predefined structure for Icon component
|
|
16
16
|
- icon_position (string) (default: after)
|
|
17
|
-
- options [
|
|
17
|
+
- options ['after', 'before']
|
|
18
18
|
- icon_spacing (string) (default: '')
|
|
19
|
-
- options [
|
|
20
|
-
- clean_class (boolean) (default: false)
|
|
19
|
+
- options ['sm', 'md', 'lg']
|
|
21
20
|
- spinner (spinner object) (default: {})
|
|
22
21
|
- show_spinner (boolean) (default: false)
|
|
22
|
+
- clean_class (boolean) (default: false)
|
|
23
|
+
- attributes (drupal attrs)
|
|
23
24
|
#}
|
|
24
25
|
|
|
25
26
|
{% set _label = label|default('') %}
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
{% set _show_spinner = show_spinner|default(false) %}
|
|
38
39
|
{% set _spinner = spinner|default({}) %}
|
|
39
40
|
{% set _clean_class = clean_class|default(false) %}
|
|
41
|
+
|
|
40
42
|
{% set _classes = [] %}
|
|
41
43
|
{% if _clean_class == false %}
|
|
42
44
|
{% set _classes = _classes|merge(['btn', 'btn-' ~ (_outline ? 'outline-' : '') ~ _variant|e('html_attr')]) %}
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- vertical (boolean) (default: false)
|
|
5
5
|
- size (string) (default: 'md')
|
|
6
|
-
- options [
|
|
7
|
-
- toolbar (boolean) (default: 'false')
|
|
6
|
+
- options ['sm', 'md', 'lg']
|
|
8
7
|
- aria_label (string) (default: '')
|
|
8
|
+
- toolbar (boolean) (default: 'false')
|
|
9
9
|
- toolbar_aria_label (string) (default: '')
|
|
10
|
-
- items (array of arrays with objects of type button or form-input (input key mandatory when the object is a form-input))
|
|
10
|
+
- items (array of arrays with objects of type button or form-input (input key mandatory when the object is a form-input)) (default: [])
|
|
11
|
+
- attributes (drupal attrs)
|
|
11
12
|
#}
|
|
12
13
|
|
|
13
14
|
{% set _vertical = vertical|default(false) %}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- title: (string) (default: '')
|
|
5
|
-
- title_tag: (string) (default: '
|
|
5
|
+
- title_tag: (string) (default: 'h1')
|
|
6
6
|
- title_link: (link object) (default: {})
|
|
7
7
|
- title_attributes (drupal attrs)
|
|
8
8
|
- subtitle (object) (default: {})
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
- extra_classes_header (string) (default: '')
|
|
43
43
|
- extra_classes_footer (string) (default: '')
|
|
44
44
|
- badges (array of badge object) (default: [])
|
|
45
|
+
- links (array of link object) (default: [])
|
|
46
|
+
- attributes (drupal attrs)
|
|
45
47
|
|
|
46
48
|
Blocks
|
|
47
49
|
- card_date
|
|
@@ -73,19 +75,13 @@
|
|
|
73
75
|
{% set _extra_classes_footer = extra_classes_footer|default('') %}
|
|
74
76
|
{% set _badges = badges|default([]) %}
|
|
75
77
|
{% set _links = links|default([]) %}
|
|
78
|
+
|
|
76
79
|
{% set _classes = ['card'] %}
|
|
77
80
|
{% if _text_color is not empty %}
|
|
78
81
|
{% set _classes = _classes|merge(['text-' ~ _text_color]) %}
|
|
79
82
|
{% endif %}
|
|
80
83
|
{% if _variant is not empty %}
|
|
81
84
|
{% set _classes = _classes|merge(['bg-' ~ _variant]) %}
|
|
82
|
-
{% if _text_color is empty %}
|
|
83
|
-
{% if _variant == 'warning' or _variant == 'info' or _variant == 'light' %}
|
|
84
|
-
{% set _classes = _classes|merge(['text-dark']) %}
|
|
85
|
-
{% else %}
|
|
86
|
-
{% set _classes = _classes|merge(['text-white']) %}
|
|
87
|
-
{% endif %}
|
|
88
|
-
{% endif %}
|
|
89
85
|
{% endif %}
|
|
90
86
|
{% if _border_variant is not empty %}
|
|
91
87
|
{% set _classes = _classes|merge(['border-' ~ _border_variant]) %}
|
|
@@ -232,7 +228,7 @@
|
|
|
232
228
|
{%- if _links is not empty and _links is iterable -%}
|
|
233
229
|
<div class="mt-2-5 mb-2">
|
|
234
230
|
{% for _link in _links %}
|
|
235
|
-
<div class="mb-3 mb-md-0 d-block d-md-inline-block me-4-5">
|
|
231
|
+
<div class="mb-3 mb-md-0 d-block d-md-inline-block me-md-4-5">
|
|
236
232
|
{% include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
|
|
237
233
|
</div>
|
|
238
234
|
{% endfor %}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- type (string) (default: 'group')
|
|
5
5
|
options: ['group', 'grid', 'masonry']
|
|
6
|
-
- items (array of
|
|
6
|
+
- items (array of object type card) (default: [])
|
|
7
7
|
- grid_columns (int) (default: 1)
|
|
8
8
|
options: ['1', '2', '3']
|
|
9
9
|
- responsiveness (string) (default: '')
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
options: ['0', '1', '2', '3', '4', '5']
|
|
15
15
|
- equal_height (boolean) (default: false)
|
|
16
16
|
- cols_extra_classes (string) (default: '')
|
|
17
|
+
- attributes (drupal attrs)
|
|
17
18
|
|
|
18
19
|
Blocks
|
|
19
20
|
- card_layout_card
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
{% set _gutter = gutter|default('') %}
|
|
28
29
|
{% set _equal_height = equal_height|default(false) %}
|
|
29
30
|
{% set _cols_extra_classes = cols_extra_classes|default('') %}
|
|
31
|
+
|
|
30
32
|
{% set _cols_classes = 'col' %}
|
|
31
33
|
|
|
32
34
|
{% if _cols_extra_classes is not empty %}
|
|
@@ -14,30 +14,32 @@
|
|
|
14
14
|
caption_title (string)
|
|
15
15
|
interval (integer) (default: 0)
|
|
16
16
|
}
|
|
17
|
-
...
|
|
18
17
|
],
|
|
19
18
|
- fade (boolean) (default: false)
|
|
20
19
|
- with_controls (boolean) (default: true)
|
|
21
|
-
-
|
|
20
|
+
- prev_label (string) (default: '')
|
|
22
21
|
- next_label (string) (default: '')
|
|
23
22
|
- with_indicators (boolean) (default: false)
|
|
24
23
|
- rounded_indicators (boolean) (default: false)
|
|
24
|
+
- disable_touch (boolean) (default: false)
|
|
25
|
+
- attributes (drupal attrs)
|
|
25
26
|
#}
|
|
26
27
|
|
|
27
28
|
{% set _id = id|default('') %}
|
|
29
|
+
{% set _autoinit = autoinit ?? true %}
|
|
30
|
+
{% set _autoplay = autoplay ?? true %}
|
|
31
|
+
{% set _dark = dark|default(false) %}
|
|
32
|
+
{% set _active_item = active_item|default(1) %}
|
|
28
33
|
{% set _items = items|default([]) %}
|
|
34
|
+
{% set _fade = fade|default(false) %}
|
|
29
35
|
{% set _with_controls = with_controls ?? true %}
|
|
30
|
-
{% set _active_item = active_item|default(1) %}
|
|
31
36
|
{% set _prev_label = prev_label|default('') %}
|
|
32
37
|
{% set _next_label = next_label|default('') %}
|
|
33
38
|
{% set _with_indicators = with_indicators|default(false) %}
|
|
34
39
|
{% set _rounded_indicators = rounded_indicators|default(false) %}
|
|
35
|
-
{% set _classes = ['carousel slide'] %}
|
|
36
|
-
{% set _autoinit = autoinit ?? true %}
|
|
37
|
-
{% set _autoplay = autoplay ?? true %}
|
|
38
40
|
{% set _disable_touch = disable_touch|default(false) %}
|
|
39
|
-
|
|
40
|
-
{% set
|
|
41
|
+
|
|
42
|
+
{% set _classes = ['carousel slide'] %}
|
|
41
43
|
|
|
42
44
|
{% if _fade %}
|
|
43
45
|
{% set _classes = _classes|merge(['carousel-fade']) %}
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
{% set _date = date|default({}) %}
|
|
32
32
|
{% set _image_size = image_size|default('md') %}
|
|
33
33
|
|
|
34
|
+
{% if attributes is empty %}
|
|
35
|
+
{% set attributes = create_attribute() %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
|
|
34
38
|
{% set _css_classes = [
|
|
35
39
|
'bcl-content-banner',
|
|
36
40
|
] %}
|
|
@@ -54,10 +58,6 @@
|
|
|
54
58
|
'gray': 'bg-lighter',
|
|
55
59
|
} %}
|
|
56
60
|
|
|
57
|
-
{% if attributes is empty %}
|
|
58
|
-
{% set attributes = create_attribute() %}
|
|
59
|
-
{% endif %}
|
|
60
|
-
|
|
61
61
|
{% set _body_classes = 'pt-0 px-0 pb-0' %}
|
|
62
62
|
{% set _left_col_classes = '' %}
|
|
63
63
|
{% set _right_col_classes = 'col-md-8 col-lg-9 col-xxl-8' %}
|
|
@@ -88,27 +88,30 @@
|
|
|
88
88
|
title: _title,
|
|
89
89
|
title_tag: _title_tag,
|
|
90
90
|
title_link: _title_link,
|
|
91
|
-
title_attributes: _title_attributes.addClass('
|
|
91
|
+
title_attributes: _title_attributes.addClass('fs-1'),
|
|
92
92
|
horizontal: true,
|
|
93
93
|
horizontal_grid: _horizontal_classes,
|
|
94
94
|
extra_classes_header: 'bg-transparent pt-0 pb-0 border-0',
|
|
95
95
|
extra_classes_body: _body_classes,
|
|
96
|
+
attributes: create_attribute().addClass(['bg-transparent', 'border-0']),
|
|
96
97
|
} %}
|
|
97
98
|
|
|
98
99
|
{% set _css_classes = _css_classes|merge([_modifiers[_background]]) %}
|
|
99
|
-
{% set
|
|
100
|
+
{% set attributes = attributes.addClass(_css_classes) %}
|
|
100
101
|
|
|
101
102
|
{% if _button is not empty %}
|
|
102
|
-
{% set
|
|
103
|
+
{% set _card = _card|merge({
|
|
104
|
+
attributes: _card.attributes.addClass(['col-md-10']),
|
|
105
|
+
}) %}
|
|
103
106
|
{% endif %}
|
|
104
107
|
|
|
105
|
-
<div
|
|
108
|
+
<div {{ attributes }}>
|
|
106
109
|
<div class="container">
|
|
107
110
|
{% include '@oe-bcl/bcl-card/card.html.twig' with _card %}
|
|
108
111
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
{%- block action_bar -%}
|
|
113
|
+
{{ _action_bar }}
|
|
114
|
+
{%- endblock -%}
|
|
112
115
|
</div>
|
|
113
116
|
</div>
|
|
114
117
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
-
- id (string) (default: '')
|
|
4
|
+
- id (string) (default: 'dropdown-' random(1000))
|
|
5
5
|
- trigger (object of Button or Link component)
|
|
6
6
|
- link (boolean) (default: false)
|
|
7
7
|
- direction (string) (default: '')
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
- button (boolean) - set to button
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
|
+
- attributes (drupal attrs)
|
|
35
36
|
#}
|
|
36
37
|
|
|
37
38
|
{% set _id = id|default('dropdown-' ~ random(1000)) %}
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
{% set _dark = dark|default(false) %}
|
|
43
44
|
{% set _remove_wrapper = remove_wrapper|default(false) %}
|
|
44
45
|
{% set _items = items|default([]) %}
|
|
46
|
+
|
|
45
47
|
{% set _class = 'dropdown' %}
|
|
46
48
|
{% set _dropdown_classes = ['dropdown-menu'] %}
|
|
47
49
|
|
|
@@ -87,21 +87,23 @@
|
|
|
87
87
|
{% for _item in _items %}
|
|
88
88
|
<div class="{{ _cols_classes }}">
|
|
89
89
|
{% if _item.icon is defined and _item.icon is not empty and _display_icons %}
|
|
90
|
+
{% set _icon_attributes = _item.icon.attributes ?: create_attribute() %}
|
|
90
91
|
{% set _item = _item|merge({
|
|
91
92
|
icon: _item.icon|merge({
|
|
92
93
|
path: _icon_path,
|
|
93
94
|
size: 'l',
|
|
95
|
+
attributes: _icon_attributes.addClass('mb-2'),
|
|
94
96
|
})
|
|
95
97
|
}) %}
|
|
96
98
|
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _item.icon only %}
|
|
97
99
|
{% endif %}
|
|
98
100
|
{% if _item.title is defined and _item.title is not empty %}
|
|
99
|
-
<div class="fs-
|
|
101
|
+
<div class="fs-4 fw-medium">
|
|
100
102
|
{{- _item.title -}}
|
|
101
103
|
</div>
|
|
102
104
|
{% endif %}
|
|
103
105
|
{% if _item.subtitle is defined and _item.subtitle is not empty %}
|
|
104
|
-
<div class="fs-5">
|
|
106
|
+
<div class="fs-5 fw-medium">
|
|
105
107
|
{{- _item.subtitle -}}
|
|
106
108
|
</div>
|
|
107
109
|
{% endif %}
|
|
@@ -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
|
-
{%
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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>
|
|
@@ -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
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
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
|
-
-
|
|
14
|
-
-
|
|
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 = [] %}
|