@openeuropa/bcl-twig-templates 0.4230.202512021730 → 0.4360.202601141610
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/package.json +67 -67
- package/templates/bcl-accordion/accordion.html.twig +42 -43
- package/templates/bcl-alert/alert.html.twig +18 -18
- package/templates/bcl-badge/badge.html.twig +11 -12
- package/templates/bcl-banner/banner.html.twig +34 -34
- package/templates/bcl-base-templates/content-type.html.twig +63 -64
- package/templates/bcl-base-templates/listing-page.html.twig +31 -31
- package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
- package/templates/bcl-blockquote/blockquote.html.twig +17 -17
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
- package/templates/bcl-button/button.html.twig +24 -24
- package/templates/bcl-button-group/button-group.html.twig +25 -26
- package/templates/bcl-card/card.html.twig +98 -98
- package/templates/bcl-card-layout/card-layout.html.twig +34 -34
- package/templates/bcl-carousel/carousel.html.twig +64 -64
- package/templates/bcl-contact-form/contact-form.html.twig +1 -1
- package/templates/bcl-content-banner/content-banner.html.twig +37 -37
- package/templates/bcl-date-block/date-block.html.twig +26 -26
- package/templates/bcl-description-list/description-list-details.html.twig +6 -6
- package/templates/bcl-description-list/description-list-title.html.twig +11 -11
- package/templates/bcl-description-list/description-list.html.twig +44 -45
- package/templates/bcl-dropdown/dropdown.html.twig +48 -49
- package/templates/bcl-event/event.html.twig +7 -7
- package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
- package/templates/bcl-featured-media/featured-media.html.twig +42 -43
- package/templates/bcl-file/file-translations.html.twig +29 -29
- package/templates/bcl-file/file.html.twig +46 -46
- package/templates/bcl-footer/footer.html.twig +31 -31
- package/templates/bcl-form/form.html.twig +70 -70
- package/templates/bcl-form-input/form-input.html.twig +57 -58
- package/templates/bcl-gallery/gallery-item.html.twig +20 -20
- package/templates/bcl-gallery/gallery.html.twig +62 -63
- package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
- package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
- package/templates/bcl-group/group-landing.html.twig +69 -69
- package/templates/bcl-group/group.html.twig +19 -19
- package/templates/bcl-header/header.html.twig +71 -79
- package/templates/bcl-heading/heading.html.twig +13 -14
- package/templates/bcl-icon/icon.html.twig +10 -10
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
- package/templates/bcl-landing-page/landing-page.html.twig +33 -33
- package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
- package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
- package/templates/bcl-language-list/language-list.html.twig +33 -34
- package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
- package/templates/bcl-link/link.html.twig +24 -24
- package/templates/bcl-links-block/links-block.html.twig +29 -30
- package/templates/bcl-list-group/list-group.html.twig +43 -44
- package/templates/bcl-listing/listing.html.twig +88 -88
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
- package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
- package/templates/bcl-modal/modal.html.twig +17 -17
- package/templates/bcl-navbar/navbar.html.twig +35 -35
- package/templates/bcl-navigation/navigation.html.twig +106 -106
- package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
- package/templates/bcl-page/page.html.twig +27 -27
- package/templates/bcl-pagination/pagination-item.html.twig +22 -23
- package/templates/bcl-pagination/pagination.html.twig +59 -59
- package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
- package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
- package/templates/bcl-person/person.html.twig +12 -12
- package/templates/bcl-placeholder/placeholder.html.twig +14 -15
- package/templates/bcl-progress/progress.html.twig +16 -17
- package/templates/bcl-project/project-lists.html.twig +25 -25
- package/templates/bcl-project/project.html.twig +35 -35
- package/templates/bcl-project-status/project-contributions.html.twig +25 -25
- package/templates/bcl-project-status/project-status.html.twig +32 -34
- package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
- package/templates/bcl-search/search.html.twig +12 -12
- package/templates/bcl-search-form/search-form.html.twig +21 -21
- package/templates/bcl-select/select.html.twig +52 -53
- package/templates/bcl-spinner/spinner.html.twig +10 -10
- package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
- package/templates/bcl-subscription/subscription.html.twig +3 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +14 -14
- package/templates/bcl-table/table.html.twig +61 -62
- package/templates/bcl-textarea/textarea.html.twig +44 -44
- package/templates/bcl-timeline/timeline-item.html.twig +12 -12
- package/templates/bcl-timeline/timeline.html.twig +42 -42
- package/templates/bcl-toasts/toasts.html.twig +56 -57
- package/templates/bcl-user/user-compact.html.twig +24 -24
- package/templates/bcl-user/user-terms.html.twig +6 -6
- package/templates/bcl-user/user.html.twig +117 -117
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.4360.202601141610",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -11,71 +11,71 @@
|
|
|
11
11
|
"hoistingLimits": "workspaces"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@openeuropa/bcl-accordion": "^0.
|
|
15
|
-
"@openeuropa/bcl-alert": "^0.
|
|
16
|
-
"@openeuropa/bcl-badge": "^0.
|
|
17
|
-
"@openeuropa/bcl-banner": "^0.
|
|
18
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
19
|
-
"@openeuropa/bcl-blockquote": "^0.
|
|
20
|
-
"@openeuropa/bcl-breadcrumb": "^0.
|
|
21
|
-
"@openeuropa/bcl-button": "^0.
|
|
22
|
-
"@openeuropa/bcl-button-group": "^0.
|
|
23
|
-
"@openeuropa/bcl-card": "^0.
|
|
24
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
25
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
26
|
-
"@openeuropa/bcl-contact-form": "^0.
|
|
27
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
28
|
-
"@openeuropa/bcl-date-block": "^0.
|
|
29
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
30
|
-
"@openeuropa/bcl-dropdown": "^0.
|
|
31
|
-
"@openeuropa/bcl-event": "^0.
|
|
32
|
-
"@openeuropa/bcl-fact-figures": "^0.
|
|
33
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
34
|
-
"@openeuropa/bcl-file": "^0.
|
|
35
|
-
"@openeuropa/bcl-footer": "^0.
|
|
36
|
-
"@openeuropa/bcl-form": "^0.
|
|
37
|
-
"@openeuropa/bcl-form-input": "^0.
|
|
38
|
-
"@openeuropa/bcl-gallery": "^0.
|
|
39
|
-
"@openeuropa/bcl-glossary": "^0.
|
|
40
|
-
"@openeuropa/bcl-group": "^0.
|
|
41
|
-
"@openeuropa/bcl-header": "^0.
|
|
42
|
-
"@openeuropa/bcl-heading": "^0.
|
|
43
|
-
"@openeuropa/bcl-icon": "^0.
|
|
44
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
45
|
-
"@openeuropa/bcl-landing-page": "^0.
|
|
46
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
47
|
-
"@openeuropa/bcl-language-switcher": "^0.
|
|
48
|
-
"@openeuropa/bcl-link": "^0.
|
|
49
|
-
"@openeuropa/bcl-links-block": "^0.
|
|
50
|
-
"@openeuropa/bcl-list-group": "^0.
|
|
51
|
-
"@openeuropa/bcl-listing": "^0.
|
|
52
|
-
"@openeuropa/bcl-mega-menu": "^0.
|
|
53
|
-
"@openeuropa/bcl-modal": "^0.
|
|
54
|
-
"@openeuropa/bcl-multilingual": "^0.
|
|
55
|
-
"@openeuropa/bcl-navbar": "^0.
|
|
56
|
-
"@openeuropa/bcl-navigation": "^0.
|
|
57
|
-
"@openeuropa/bcl-news": "^0.
|
|
58
|
-
"@openeuropa/bcl-offcanvas": "^0.
|
|
59
|
-
"@openeuropa/bcl-page": "^0.
|
|
60
|
-
"@openeuropa/bcl-pagination": "^0.
|
|
61
|
-
"@openeuropa/bcl-pagination-v2": "^0.
|
|
62
|
-
"@openeuropa/bcl-person": "^0.
|
|
63
|
-
"@openeuropa/bcl-placeholder": "^0.
|
|
64
|
-
"@openeuropa/bcl-progress": "^0.
|
|
65
|
-
"@openeuropa/bcl-project": "^0.
|
|
66
|
-
"@openeuropa/bcl-project-status": "^0.
|
|
67
|
-
"@openeuropa/bcl-recent-activities": "^0.
|
|
68
|
-
"@openeuropa/bcl-search": "^0.
|
|
69
|
-
"@openeuropa/bcl-search-form": "^0.
|
|
70
|
-
"@openeuropa/bcl-select": "^0.
|
|
71
|
-
"@openeuropa/bcl-spinner": "^0.
|
|
72
|
-
"@openeuropa/bcl-subscription": "^0.
|
|
73
|
-
"@openeuropa/bcl-subscription-block": "^0.
|
|
74
|
-
"@openeuropa/bcl-table": "^0.
|
|
75
|
-
"@openeuropa/bcl-textarea": "^0.
|
|
76
|
-
"@openeuropa/bcl-timeline": "^0.
|
|
77
|
-
"@openeuropa/bcl-toasts": "^0.
|
|
78
|
-
"@openeuropa/bcl-user": "^0.
|
|
14
|
+
"@openeuropa/bcl-accordion": "^0.4360.202601141610",
|
|
15
|
+
"@openeuropa/bcl-alert": "^0.4360.202601141610",
|
|
16
|
+
"@openeuropa/bcl-badge": "^0.4360.202601141610",
|
|
17
|
+
"@openeuropa/bcl-banner": "^0.4360.202601141610",
|
|
18
|
+
"@openeuropa/bcl-base-templates": "^0.4360.202601141610",
|
|
19
|
+
"@openeuropa/bcl-blockquote": "^0.4360.202601141610",
|
|
20
|
+
"@openeuropa/bcl-breadcrumb": "^0.4360.202601141610",
|
|
21
|
+
"@openeuropa/bcl-button": "^0.4360.202601141610",
|
|
22
|
+
"@openeuropa/bcl-button-group": "^0.4360.202601141610",
|
|
23
|
+
"@openeuropa/bcl-card": "^0.4360.202601141610",
|
|
24
|
+
"@openeuropa/bcl-card-layout": "^0.4360.202601141610",
|
|
25
|
+
"@openeuropa/bcl-carousel": "^0.4360.202601141610",
|
|
26
|
+
"@openeuropa/bcl-contact-form": "^0.4360.202601141610",
|
|
27
|
+
"@openeuropa/bcl-content-banner": "^0.4360.202601141610",
|
|
28
|
+
"@openeuropa/bcl-date-block": "^0.4360.202601141610",
|
|
29
|
+
"@openeuropa/bcl-description-list": "^0.4360.202601141610",
|
|
30
|
+
"@openeuropa/bcl-dropdown": "^0.4360.202601141610",
|
|
31
|
+
"@openeuropa/bcl-event": "^0.4360.202601141610",
|
|
32
|
+
"@openeuropa/bcl-fact-figures": "^0.4360.202601141610",
|
|
33
|
+
"@openeuropa/bcl-featured-media": "^0.4360.202601141610",
|
|
34
|
+
"@openeuropa/bcl-file": "^0.4360.202601141610",
|
|
35
|
+
"@openeuropa/bcl-footer": "^0.4360.202601141610",
|
|
36
|
+
"@openeuropa/bcl-form": "^0.4360.202601141610",
|
|
37
|
+
"@openeuropa/bcl-form-input": "^0.4360.202601141610",
|
|
38
|
+
"@openeuropa/bcl-gallery": "^0.4360.202601141610",
|
|
39
|
+
"@openeuropa/bcl-glossary": "^0.4360.202601141610",
|
|
40
|
+
"@openeuropa/bcl-group": "^0.4360.202601141610",
|
|
41
|
+
"@openeuropa/bcl-header": "^0.4360.202601141610",
|
|
42
|
+
"@openeuropa/bcl-heading": "^0.4360.202601141610",
|
|
43
|
+
"@openeuropa/bcl-icon": "^0.4360.202601141610",
|
|
44
|
+
"@openeuropa/bcl-inpage-navigation": "^0.4360.202601141610",
|
|
45
|
+
"@openeuropa/bcl-landing-page": "^0.4360.202601141610",
|
|
46
|
+
"@openeuropa/bcl-language-list": "^0.4360.202601141610",
|
|
47
|
+
"@openeuropa/bcl-language-switcher": "^0.4360.202601141610",
|
|
48
|
+
"@openeuropa/bcl-link": "^0.4360.202601141610",
|
|
49
|
+
"@openeuropa/bcl-links-block": "^0.4360.202601141610",
|
|
50
|
+
"@openeuropa/bcl-list-group": "^0.4360.202601141610",
|
|
51
|
+
"@openeuropa/bcl-listing": "^0.4360.202601141610",
|
|
52
|
+
"@openeuropa/bcl-mega-menu": "^0.4360.202601141610",
|
|
53
|
+
"@openeuropa/bcl-modal": "^0.4360.202601141610",
|
|
54
|
+
"@openeuropa/bcl-multilingual": "^0.4360.202601141610",
|
|
55
|
+
"@openeuropa/bcl-navbar": "^0.4360.202601141610",
|
|
56
|
+
"@openeuropa/bcl-navigation": "^0.4360.202601141610",
|
|
57
|
+
"@openeuropa/bcl-news": "^0.4360.202601141610",
|
|
58
|
+
"@openeuropa/bcl-offcanvas": "^0.4360.202601141610",
|
|
59
|
+
"@openeuropa/bcl-page": "^0.4360.202601141610",
|
|
60
|
+
"@openeuropa/bcl-pagination": "^0.4360.202601141610",
|
|
61
|
+
"@openeuropa/bcl-pagination-v2": "^0.4360.202601141610",
|
|
62
|
+
"@openeuropa/bcl-person": "^0.4360.202601141610",
|
|
63
|
+
"@openeuropa/bcl-placeholder": "^0.4360.202601141610",
|
|
64
|
+
"@openeuropa/bcl-progress": "^0.4360.202601141610",
|
|
65
|
+
"@openeuropa/bcl-project": "^0.4360.202601141610",
|
|
66
|
+
"@openeuropa/bcl-project-status": "^0.4360.202601141610",
|
|
67
|
+
"@openeuropa/bcl-recent-activities": "^0.4360.202601141610",
|
|
68
|
+
"@openeuropa/bcl-search": "^0.4360.202601141610",
|
|
69
|
+
"@openeuropa/bcl-search-form": "^0.4360.202601141610",
|
|
70
|
+
"@openeuropa/bcl-select": "^0.4360.202601141610",
|
|
71
|
+
"@openeuropa/bcl-spinner": "^0.4360.202601141610",
|
|
72
|
+
"@openeuropa/bcl-subscription": "^0.4360.202601141610",
|
|
73
|
+
"@openeuropa/bcl-subscription-block": "^0.4360.202601141610",
|
|
74
|
+
"@openeuropa/bcl-table": "^0.4360.202601141610",
|
|
75
|
+
"@openeuropa/bcl-textarea": "^0.4360.202601141610",
|
|
76
|
+
"@openeuropa/bcl-timeline": "^0.4360.202601141610",
|
|
77
|
+
"@openeuropa/bcl-toasts": "^0.4360.202601141610",
|
|
78
|
+
"@openeuropa/bcl-user": "^0.4360.202601141610",
|
|
79
79
|
"copyfiles": "2.4.1",
|
|
80
80
|
"rimraf": "6.0.1"
|
|
81
81
|
},
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"design-system",
|
|
99
99
|
"twig"
|
|
100
100
|
],
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "2caf9255f88587416f6e83e572a1f20e4cf206f5"
|
|
102
102
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
- attributes (drupal attrs)
|
|
21
21
|
#}
|
|
22
22
|
|
|
23
|
-
{
|
|
23
|
+
{%- set _title = title|default('') %}
|
|
24
24
|
{% set _title_tag = title_tag|default('h2') %}
|
|
25
25
|
{% set _title_link = title_link|default({}) %}
|
|
26
26
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
{% set _open_item_id = open_item_id|default(0) %}
|
|
33
33
|
{% set _classes = ['accordion'] %}
|
|
34
34
|
{% if _flush %}
|
|
35
|
-
{
|
|
35
|
+
{%- set _classes = _classes|merge(['accordion-flush']) %}
|
|
36
36
|
{% endif %}
|
|
37
37
|
|
|
38
|
-
{
|
|
39
|
-
{
|
|
38
|
+
{%- if attributes is empty %}
|
|
39
|
+
{%- set attributes = create_attribute() %}
|
|
40
40
|
{% endif %}
|
|
41
41
|
|
|
42
|
-
{
|
|
42
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('id', 'accordion-' ~ _id) %}
|
|
43
43
|
|
|
44
|
-
{
|
|
44
|
+
{%- if _items is not empty -%}
|
|
45
45
|
<div
|
|
46
46
|
{{ attributes }}
|
|
47
47
|
>
|
|
@@ -55,52 +55,52 @@
|
|
|
55
55
|
{%- endif -%}
|
|
56
56
|
|
|
57
57
|
{% if _items|length > 1 and (_expand_button is not empty or _collapse_button is not empty) %}
|
|
58
|
-
{
|
|
58
|
+
{%- set wrapper_attributes = create_attribute().addClass(['d-flex', 'justify-content-end', 'gap-3', 'mb-3']) -%}
|
|
59
59
|
<div
|
|
60
60
|
{{ wrapper_attributes }}
|
|
61
61
|
>
|
|
62
|
-
{
|
|
63
|
-
{
|
|
64
|
-
{
|
|
62
|
+
{%- if _expand_button is not empty %}
|
|
63
|
+
{%- if _expand_button.attributes is empty %}
|
|
64
|
+
{%- set _expand_button = _expand_button|merge({
|
|
65
65
|
attributes: create_attribute()
|
|
66
66
|
})
|
|
67
67
|
%}
|
|
68
|
-
{
|
|
69
|
-
{
|
|
68
|
+
{%- endif %}
|
|
69
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _expand_button|merge({
|
|
70
70
|
attributes: _expand_button.attributes
|
|
71
71
|
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
72
72
|
.setAttribute('data-action', 'expand')
|
|
73
73
|
}) only %}
|
|
74
|
-
{
|
|
75
|
-
{
|
|
76
|
-
{
|
|
77
|
-
{
|
|
74
|
+
{%- endif %}
|
|
75
|
+
{%- if _collapse_button is not empty %}
|
|
76
|
+
{%- if _collapse_button.attributes is empty %}
|
|
77
|
+
{%- set _collapse_button = _collapse_button|merge({
|
|
78
78
|
attributes: create_attribute()
|
|
79
79
|
})
|
|
80
80
|
%}
|
|
81
|
-
{
|
|
82
|
-
{
|
|
81
|
+
{%- endif %}
|
|
82
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _collapse_button|merge({
|
|
83
83
|
attributes: _collapse_button.attributes
|
|
84
84
|
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
85
85
|
.setAttribute('data-action', 'collapse')
|
|
86
86
|
}) only %}
|
|
87
|
-
{
|
|
87
|
+
{%- endif -%}
|
|
88
88
|
</div>
|
|
89
|
-
{
|
|
89
|
+
{%- endif -%}
|
|
90
90
|
<div class="accordion-items-wrapper">
|
|
91
|
-
{
|
|
92
|
-
{
|
|
93
|
-
{
|
|
94
|
-
{
|
|
95
|
-
{
|
|
96
|
-
{
|
|
91
|
+
{%- for _item in _items %}
|
|
92
|
+
{%- set _open_item = _open_item_id == loop.index %}
|
|
93
|
+
{%- set _button_classes = ['accordion-button'] %}
|
|
94
|
+
{%- if not _open_item %}
|
|
95
|
+
{%- set _button_classes = _button_classes|merge(['collapsed']) %}
|
|
96
|
+
{%- endif -%}
|
|
97
97
|
<div class="accordion-item">
|
|
98
|
-
{%- set _item_title_tag = _item.title_tag|default('h2')
|
|
99
|
-
<{{ _item_title_tag }}
|
|
100
|
-
class="accordion-header"
|
|
98
|
+
{%- set _item_title_tag = _item.title_tag|default('h2') -%}
|
|
99
|
+
<{{ _item_title_tag }}
|
|
100
|
+
class="accordion-header"
|
|
101
101
|
id="heading-{{ _id }}-{{ loop.index }}"
|
|
102
102
|
>
|
|
103
|
-
{
|
|
103
|
+
{%- set button_attributes = create_attribute()
|
|
104
104
|
.addClass(_button_classes)
|
|
105
105
|
.setAttribute('data-bs-toggle', 'collapse')
|
|
106
106
|
.setAttribute('autocomplete', 'off')
|
|
@@ -108,34 +108,33 @@
|
|
|
108
108
|
.setAttribute('aria-controls', 'collapse-' ~ _id ~ '-' ~ loop.index)
|
|
109
109
|
.setAttribute('aria-expanded', open_item ? 'true' : 'false')
|
|
110
110
|
%}
|
|
111
|
-
{
|
|
111
|
+
{%- set item_title -%}
|
|
112
112
|
<span>
|
|
113
113
|
{{- _item.title -}}
|
|
114
114
|
</span>
|
|
115
|
-
{
|
|
116
|
-
{
|
|
115
|
+
{%- endset %}
|
|
116
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
117
117
|
label: item_title,
|
|
118
118
|
clean_class: true,
|
|
119
119
|
attributes: button_attributes
|
|
120
|
-
} only
|
|
121
|
-
</{{ _item_title_tag }}>
|
|
120
|
+
} only -%}
|
|
121
|
+
</{{ _item_title_tag }}>{# -#}
|
|
122
122
|
<div
|
|
123
123
|
id="collapse-{{ _id }}-{{ loop.index }}"
|
|
124
124
|
class="accordion-collapse collapse{{ _open_item ? ' show' }}"
|
|
125
125
|
aria-labelledby="heading-{{ _id }}-{{ loop.index }}"
|
|
126
126
|
role="region"
|
|
127
|
-
{% if not _item.stay_open and _expand_button is empty
|
|
127
|
+
{% if not _item.stay_open and _expand_button is empty %}
|
|
128
128
|
data-bs-parent="#accordion-{{ _id }}"
|
|
129
129
|
{% endif %}
|
|
130
|
-
>
|
|
130
|
+
>{# -#}
|
|
131
131
|
<div class="accordion-body">
|
|
132
132
|
{%- set _content = _item.content|default('') %}
|
|
133
133
|
{%- block content _content -%}
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
134
|
+
</div>{# -#}
|
|
135
|
+
</div>{# -#}
|
|
136
136
|
</div>
|
|
137
|
-
{
|
|
138
|
-
</div>
|
|
137
|
+
{%- endfor -%}
|
|
138
|
+
</div>{# -#}
|
|
139
139
|
</div>
|
|
140
|
-
{
|
|
141
|
-
|
|
140
|
+
{%- endif -%}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- attributes (drupal attrs)
|
|
10
10
|
#}
|
|
11
11
|
|
|
12
|
-
{
|
|
12
|
+
{%- set _message = message|default('') %}
|
|
13
13
|
{% set _heading = heading|default('') %}
|
|
14
14
|
{% set _variant = variant|default('primary') %}
|
|
15
15
|
{% set _dismissible = dismissible ?? true %}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{% set _icon_path = icon_path|default('') %}
|
|
18
18
|
{% set _icon_name = icon_name|default('') %}
|
|
19
19
|
|
|
20
|
-
{
|
|
20
|
+
{%- set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
|
|
21
21
|
{% set _icon_names = {
|
|
22
22
|
primary: "info-circle-fill",
|
|
23
23
|
secondary: "info-circle-fill",
|
|
@@ -30,36 +30,36 @@
|
|
|
30
30
|
}
|
|
31
31
|
%}
|
|
32
32
|
|
|
33
|
-
{
|
|
34
|
-
{
|
|
33
|
+
{%- if _dismissible %}
|
|
34
|
+
{%- set _classes = _classes|merge(['alert-dismissible']) %}
|
|
35
35
|
{% endif %}
|
|
36
36
|
{% if _animated_dismiss %}
|
|
37
|
-
{
|
|
37
|
+
{%- set _classes = _classes|merge(['fade', 'show']) %}
|
|
38
38
|
{% endif %}
|
|
39
39
|
|
|
40
|
-
{
|
|
40
|
+
{%- set _classes = _classes|merge(['text-dark']) %}
|
|
41
41
|
|
|
42
|
-
{
|
|
42
|
+
{%- set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
|
|
43
43
|
|
|
44
|
-
{
|
|
45
|
-
{
|
|
44
|
+
{%- if _variant != 'light' %}
|
|
45
|
+
{%- set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
|
|
46
46
|
{% endif %}
|
|
47
47
|
|
|
48
|
-
{
|
|
49
|
-
{
|
|
48
|
+
{%- if attributes is empty %}
|
|
49
|
+
{%- set attributes = create_attribute() %}
|
|
50
50
|
{% endif %}
|
|
51
51
|
|
|
52
|
-
{
|
|
52
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') -%}
|
|
53
53
|
|
|
54
54
|
<div {{ attributes }}>
|
|
55
|
-
{
|
|
56
|
-
{
|
|
55
|
+
{%- if _icon_path is not empty %}
|
|
56
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
57
57
|
name: _icon_name ?: _icon_names[_variant],
|
|
58
58
|
size: 's',
|
|
59
59
|
path: _icon_path,
|
|
60
60
|
attributes: create_attribute().addClass(_icon_classes),
|
|
61
61
|
} only %}
|
|
62
|
-
{% endif
|
|
62
|
+
{% endif -%}
|
|
63
63
|
<div class="alert-content flex-grow-1">
|
|
64
64
|
{%- if _heading is not empty -%}
|
|
65
65
|
<div class="alert-heading h4">{{ _heading }}</div>
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
type="button"
|
|
74
74
|
class="btn-close"
|
|
75
75
|
data-bs-dismiss="alert"
|
|
76
|
-
aria-label="Close"
|
|
77
|
-
|
|
76
|
+
aria-label="Close"
|
|
77
|
+
></button>
|
|
78
78
|
{%- endif -%}
|
|
79
79
|
</div>
|
|
80
|
-
|
|
80
|
+
{#--#}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- attributes (drupal attrs)
|
|
12
12
|
#}
|
|
13
13
|
|
|
14
|
-
{
|
|
14
|
+
{%- set _label = label|default('') %}
|
|
15
15
|
{% set _background = background|default('primary') %}
|
|
16
16
|
{% set _url = url|default('') %}
|
|
17
17
|
{% set _title = title|default('') %}
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
{% set _icon_path = icon_path|default('') %}
|
|
23
23
|
{% set _classes = ['badge'] %}
|
|
24
24
|
|
|
25
|
-
{
|
|
26
|
-
{
|
|
25
|
+
{%- if _rounded_pill %}
|
|
26
|
+
{%- set _classes = _classes|merge(['rounded-pill']) %}
|
|
27
27
|
{% endif %}
|
|
28
28
|
|
|
29
|
-
{
|
|
30
|
-
{
|
|
29
|
+
{%- if _outline %}
|
|
30
|
+
{%- set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
|
|
31
31
|
{% else %}
|
|
32
|
-
{
|
|
32
|
+
{%- set _classes = _classes|merge(['text-bg-' ~ _background]) %}
|
|
33
33
|
{% endif %}
|
|
34
34
|
|
|
35
|
-
{
|
|
36
|
-
{
|
|
35
|
+
{%- if attributes is empty %}
|
|
36
|
+
{%- set attributes = create_attribute() %}
|
|
37
37
|
{% endif %}
|
|
38
38
|
|
|
39
39
|
{%- if _title is not empty -%}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
{% set attributes = attributes.addClass(_classes) %}
|
|
44
44
|
|
|
45
|
-
{
|
|
45
|
+
{%- set _label %}
|
|
46
46
|
{%- if _assistive_text is not empty -%}
|
|
47
47
|
<span class="visually-hidden">
|
|
48
48
|
{{- _assistive_text -}}
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
{{- _label -}}
|
|
52
52
|
{%- if _dismissible -%}
|
|
53
53
|
<span class="icon--close" aria-hidden="true">
|
|
54
|
-
{
|
|
54
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
55
55
|
name: "x-circle-fill",
|
|
56
56
|
size: "xs",
|
|
57
57
|
path: _icon_path,
|
|
58
|
-
} only
|
|
58
|
+
} only -%}
|
|
59
59
|
</span>
|
|
60
60
|
{%- endif -%}
|
|
61
61
|
{% endset %}
|
|
@@ -73,4 +73,3 @@
|
|
|
73
73
|
{{- _label -}}
|
|
74
74
|
</span>
|
|
75
75
|
{%- endif -%}
|
|
76
|
-
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
- attributes (drupal attrs)
|
|
15
15
|
#}
|
|
16
16
|
|
|
17
|
-
{
|
|
17
|
+
{%- set _title = title|default('') %}
|
|
18
18
|
{% set _title_tag = title_tag|default('div') %}
|
|
19
19
|
{% set _title_link = title_link|default({}) %}
|
|
20
20
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -27,67 +27,67 @@
|
|
|
27
27
|
{% set _fixed_height = fixed_height ?? false %}
|
|
28
28
|
{% set _content_classes = content_classes|default('') %}
|
|
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 %}
|
|
33
33
|
{% endif %}
|
|
34
34
|
|
|
35
|
-
{
|
|
35
|
+
{%- set _title_classes = ['display-6'] %}
|
|
36
36
|
{% if _description is not empty or _link is not empty %}
|
|
37
|
-
{
|
|
37
|
+
{%- set _title_classes = _title_classes|merge(['mb-3']) %}
|
|
38
38
|
{% endif %}
|
|
39
39
|
|
|
40
|
-
{
|
|
40
|
+
{%- set _title_attributes = _title_attributes.addClass(_title_classes) %}
|
|
41
41
|
|
|
42
|
-
{
|
|
42
|
+
{%- set _classes = ['bcl-banner'] %}
|
|
43
43
|
|
|
44
|
-
{
|
|
45
|
-
{
|
|
44
|
+
{%- if _shade %}
|
|
45
|
+
{%- set _classes = _classes|merge(['shade']) %}
|
|
46
46
|
{% endif %}
|
|
47
47
|
|
|
48
|
-
{
|
|
49
|
-
{
|
|
48
|
+
{%- if _image and not _shade %}
|
|
49
|
+
{%- set _classes = _classes|merge(['overlay']) %}
|
|
50
50
|
{% endif %}
|
|
51
51
|
|
|
52
|
-
{
|
|
53
|
-
{
|
|
52
|
+
{%- if _hero %}
|
|
53
|
+
{%- set _classes = _classes|merge(['hero']) %}
|
|
54
54
|
{% endif %}
|
|
55
55
|
|
|
56
|
-
{
|
|
57
|
-
{
|
|
56
|
+
{%- if _full_width %}
|
|
57
|
+
{%- set _classes = _classes|merge(['full-width']) %}
|
|
58
58
|
{% endif %}
|
|
59
59
|
|
|
60
|
-
{
|
|
61
|
-
{
|
|
60
|
+
{%- if _fixed_height %}
|
|
61
|
+
{%- set _classes = _classes|merge(['fixed-height']) %}
|
|
62
62
|
{% endif %}
|
|
63
63
|
|
|
64
|
-
{
|
|
65
|
-
{
|
|
64
|
+
{%- if attributes is empty %}
|
|
65
|
+
{%- set attributes = create_attribute() %}
|
|
66
66
|
{% endif %}
|
|
67
67
|
|
|
68
|
-
{
|
|
68
|
+
{%- set attributes = attributes.addClass(_classes) -%}
|
|
69
69
|
|
|
70
70
|
<div {{ attributes }}>
|
|
71
|
-
{
|
|
71
|
+
{%- if _image is not empty -%}
|
|
72
72
|
<div class="bcl-banner__image" style="background-image:url({{ _image }})"></div>
|
|
73
|
-
{
|
|
74
|
-
<div class="container">
|
|
73
|
+
{%- endif -%}
|
|
74
|
+
<div class="container">{# -#}
|
|
75
75
|
<div class="{{ _content_class }}">
|
|
76
|
-
{
|
|
77
|
-
{
|
|
76
|
+
{%- if _title is not empty %}
|
|
77
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
78
78
|
title: _title,
|
|
79
79
|
title_tag: _title_tag,
|
|
80
80
|
title_link: _title_link,
|
|
81
81
|
attributes: _title_attributes,
|
|
82
82
|
} only %}
|
|
83
|
-
{
|
|
84
|
-
{
|
|
83
|
+
{%- endif %}
|
|
84
|
+
{%- if _description is not empty -%}
|
|
85
85
|
<p class="mb-4">{{ _description }}</p>
|
|
86
|
-
{
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
{
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
86
|
+
{%- endif %}
|
|
87
|
+
{%- if _link.path %}
|
|
88
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
|
|
89
|
+
{%- endif -%}
|
|
90
|
+
</div>{# -#}
|
|
91
|
+
</div>{# -#}
|
|
92
92
|
</div>
|
|
93
|
-
|
|
93
|
+
{#--#}
|