@openeuropa/bcl-twig-templates 0.3728.202505270730 → 0.3732.202601071600

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 (49) hide show
  1. package/package.json +67 -65
  2. package/templates/bcl-accordion/accordion.html.twig +3 -3
  3. package/templates/bcl-base-templates/listing-page.html.twig +17 -19
  4. package/templates/bcl-blockquote/blockquote.html.twig +2 -2
  5. package/templates/bcl-button/button.html.twig +3 -2
  6. package/templates/bcl-card/card.html.twig +8 -8
  7. package/templates/bcl-carousel/carousel.html.twig +1 -1
  8. package/templates/bcl-contact-form/contact-form.html.twig +3 -3
  9. package/templates/bcl-content-banner/content-banner.html.twig +3 -0
  10. package/templates/bcl-date-block/date-block.html.twig +31 -15
  11. package/templates/bcl-description-list/description-list.html.twig +1 -1
  12. package/templates/bcl-dropdown/dropdown.html.twig +12 -7
  13. package/templates/bcl-event/event.html.twig +5 -5
  14. package/templates/bcl-file/file.html.twig +1 -1
  15. package/templates/bcl-footer/footer.html.twig +1 -1
  16. package/templates/bcl-form-input/form-input.html.twig +1 -1
  17. package/templates/bcl-gallery/gallery-item.html.twig +1 -1
  18. package/templates/bcl-glossary/glossary-detail.html.twig +12 -13
  19. package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
  20. package/templates/bcl-group/group-landing.html.twig +7 -7
  21. package/templates/bcl-group/group.html.twig +3 -3
  22. package/templates/bcl-header/header.html.twig +66 -42
  23. package/templates/bcl-heading/heading.html.twig +2 -2
  24. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +1 -1
  25. package/templates/bcl-landing-page/landing-page.html.twig +7 -10
  26. package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
  27. package/templates/bcl-links-block/links-block.html.twig +2 -2
  28. package/templates/bcl-listing/listing.html.twig +3 -3
  29. package/templates/bcl-mega-menu/mega-menu-items.html.twig +35 -0
  30. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +68 -0
  31. package/templates/bcl-mega-menu/mega-menu.html.twig +115 -0
  32. package/templates/bcl-modal/modal.html.twig +20 -7
  33. package/templates/bcl-navbar/navbar.html.twig +2 -2
  34. package/templates/bcl-navigation/navigation.html.twig +12 -2
  35. package/templates/bcl-offcanvas/offcanvas.html.twig +9 -6
  36. package/templates/bcl-page/page.html.twig +5 -5
  37. package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
  38. package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
  39. package/templates/bcl-person/person.html.twig +6 -6
  40. package/templates/bcl-progress/progress.html.twig +1 -1
  41. package/templates/bcl-project/project.html.twig +8 -8
  42. package/templates/bcl-project-status/project-contributions.html.twig +3 -3
  43. package/templates/bcl-recent-activities/recent-activities.html.twig +1 -1
  44. package/templates/bcl-search/search.html.twig +3 -3
  45. package/templates/bcl-subscription/subscription.html.twig +5 -5
  46. package/templates/{bcl-toast → bcl-toasts}/toasts.html.twig +18 -9
  47. package/templates/bcl-user/user-compact.html.twig +1 -1
  48. package/templates/bcl-user/user-terms.html.twig +3 -3
  49. package/templates/bcl-user/user.html.twig +3 -3
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.3728.202505270730",
5
+ "version": "0.3732.202601071600",
6
6
  "description": "OE Bcl Twig Templates",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -11,69 +11,71 @@
11
11
  "hoistingLimits": "workspaces"
12
12
  },
13
13
  "devDependencies": {
14
- "@openeuropa/bcl-accordion": "^0.3728.202505270730",
15
- "@openeuropa/bcl-alert": "^0.3728.202505270730",
16
- "@openeuropa/bcl-badge": "^0.3728.202505270730",
17
- "@openeuropa/bcl-banner": "^0.3728.202505270730",
18
- "@openeuropa/bcl-base-templates": "^0.3728.202505270730",
19
- "@openeuropa/bcl-blockquote": "^0.3728.202505270730",
20
- "@openeuropa/bcl-breadcrumb": "^0.3728.202505270730",
21
- "@openeuropa/bcl-button": "^0.3728.202505270730",
22
- "@openeuropa/bcl-button-group": "^0.3728.202505270730",
23
- "@openeuropa/bcl-card": "^0.3728.202505270730",
24
- "@openeuropa/bcl-card-layout": "^0.3728.202505270730",
25
- "@openeuropa/bcl-carousel": "^0.3728.202505270730",
26
- "@openeuropa/bcl-contact-form": "^0.3728.202505270730",
27
- "@openeuropa/bcl-content-banner": "^0.3728.202505270730",
28
- "@openeuropa/bcl-date-block": "^0.3728.202505270730",
29
- "@openeuropa/bcl-description-list": "^0.3728.202505270730",
30
- "@openeuropa/bcl-dropdown": "^0.3728.202505270730",
31
- "@openeuropa/bcl-event": "^0.3728.202505270730",
32
- "@openeuropa/bcl-fact-figures": "^0.3728.202505270730",
33
- "@openeuropa/bcl-featured-media": "^0.3728.202505270730",
34
- "@openeuropa/bcl-file": "^0.3728.202505270730",
35
- "@openeuropa/bcl-footer": "^0.3728.202505270730",
36
- "@openeuropa/bcl-form": "^0.3728.202505270730",
37
- "@openeuropa/bcl-form-input": "^0.3728.202505270730",
38
- "@openeuropa/bcl-gallery": "^0.3728.202505270730",
39
- "@openeuropa/bcl-glossary": "^0.3728.202505270730",
40
- "@openeuropa/bcl-group": "^0.3728.202505270730",
41
- "@openeuropa/bcl-header": "^0.3728.202505270730",
42
- "@openeuropa/bcl-heading": "^0.3728.202505270730",
43
- "@openeuropa/bcl-icon": "^0.3728.202505270730",
44
- "@openeuropa/bcl-inpage-navigation": "^0.3728.202505270730",
45
- "@openeuropa/bcl-landing-page": "^0.3728.202505270730",
46
- "@openeuropa/bcl-language-list": "^0.3728.202505270730",
47
- "@openeuropa/bcl-language-switcher": "^0.3728.202505270730",
48
- "@openeuropa/bcl-link": "^0.3728.202505270730",
49
- "@openeuropa/bcl-links-block": "^0.3728.202505270730",
50
- "@openeuropa/bcl-list-group": "^0.3728.202505270730",
51
- "@openeuropa/bcl-listing": "^0.3728.202505270730",
52
- "@openeuropa/bcl-modal": "^0.3728.202505270730",
53
- "@openeuropa/bcl-multilingual": "^0.3728.202505270730",
54
- "@openeuropa/bcl-navbar": "^0.3728.202505270730",
55
- "@openeuropa/bcl-navigation": "^0.3728.202505270730",
56
- "@openeuropa/bcl-news": "^0.3728.202505270730",
57
- "@openeuropa/bcl-offcanvas": "^0.3728.202505270730",
58
- "@openeuropa/bcl-page": "^0.3728.202505270730",
59
- "@openeuropa/bcl-pagination": "^0.3728.202505270730",
60
- "@openeuropa/bcl-person": "^0.3728.202505270730",
61
- "@openeuropa/bcl-placeholder": "^0.3728.202505270730",
62
- "@openeuropa/bcl-progress": "^0.3728.202505270730",
63
- "@openeuropa/bcl-project": "^0.3728.202505270730",
64
- "@openeuropa/bcl-project-status": "^0.3728.202505270730",
65
- "@openeuropa/bcl-recent-activities": "^0.3728.202505270730",
66
- "@openeuropa/bcl-search": "^0.3728.202505270730",
67
- "@openeuropa/bcl-search-form": "^0.3728.202505270730",
68
- "@openeuropa/bcl-select": "^0.3728.202505270730",
69
- "@openeuropa/bcl-spinner": "^0.3728.202505270730",
70
- "@openeuropa/bcl-subscription": "^0.3728.202505270730",
71
- "@openeuropa/bcl-subscription-block": "^0.3728.202505270730",
72
- "@openeuropa/bcl-table": "^0.3728.202505270730",
73
- "@openeuropa/bcl-textarea": "^0.3728.202505270730",
74
- "@openeuropa/bcl-timeline": "^0.3728.202505270730",
75
- "@openeuropa/bcl-toast": "^0.3728.202505270730",
76
- "@openeuropa/bcl-user": "^0.3728.202505270730",
14
+ "@openeuropa/bcl-accordion": "^0.3732.202601071600",
15
+ "@openeuropa/bcl-alert": "^0.3732.202601071600",
16
+ "@openeuropa/bcl-badge": "^0.3732.202601071600",
17
+ "@openeuropa/bcl-banner": "^0.3732.202601071600",
18
+ "@openeuropa/bcl-base-templates": "^0.3732.202601071600",
19
+ "@openeuropa/bcl-blockquote": "^0.3732.202601071600",
20
+ "@openeuropa/bcl-breadcrumb": "^0.3732.202601071600",
21
+ "@openeuropa/bcl-button": "^0.3732.202601071600",
22
+ "@openeuropa/bcl-button-group": "^0.3732.202601071600",
23
+ "@openeuropa/bcl-card": "^0.3732.202601071600",
24
+ "@openeuropa/bcl-card-layout": "^0.3732.202601071600",
25
+ "@openeuropa/bcl-carousel": "^0.3732.202601071600",
26
+ "@openeuropa/bcl-contact-form": "^0.3732.202601071600",
27
+ "@openeuropa/bcl-content-banner": "^0.3732.202601071600",
28
+ "@openeuropa/bcl-date-block": "^0.3732.202601071600",
29
+ "@openeuropa/bcl-description-list": "^0.3732.202601071600",
30
+ "@openeuropa/bcl-dropdown": "^0.3732.202601071600",
31
+ "@openeuropa/bcl-event": "^0.3732.202601071600",
32
+ "@openeuropa/bcl-fact-figures": "^0.3732.202601071600",
33
+ "@openeuropa/bcl-featured-media": "^0.3732.202601071600",
34
+ "@openeuropa/bcl-file": "^0.3732.202601071600",
35
+ "@openeuropa/bcl-footer": "^0.3732.202601071600",
36
+ "@openeuropa/bcl-form": "^0.3732.202601071600",
37
+ "@openeuropa/bcl-form-input": "^0.3732.202601071600",
38
+ "@openeuropa/bcl-gallery": "^0.3732.202601071600",
39
+ "@openeuropa/bcl-glossary": "^0.3732.202601071600",
40
+ "@openeuropa/bcl-group": "^0.3732.202601071600",
41
+ "@openeuropa/bcl-header": "^0.3732.202601071600",
42
+ "@openeuropa/bcl-heading": "^0.3732.202601071600",
43
+ "@openeuropa/bcl-icon": "^0.3732.202601071600",
44
+ "@openeuropa/bcl-inpage-navigation": "^0.3732.202601071600",
45
+ "@openeuropa/bcl-landing-page": "^0.3732.202601071600",
46
+ "@openeuropa/bcl-language-list": "^0.3732.202601071600",
47
+ "@openeuropa/bcl-language-switcher": "^0.3732.202601071600",
48
+ "@openeuropa/bcl-link": "^0.3732.202601071600",
49
+ "@openeuropa/bcl-links-block": "^0.3732.202601071600",
50
+ "@openeuropa/bcl-list-group": "^0.3732.202601071600",
51
+ "@openeuropa/bcl-listing": "^0.3732.202601071600",
52
+ "@openeuropa/bcl-mega-menu": "^0.3732.202601071600",
53
+ "@openeuropa/bcl-modal": "^0.3732.202601071600",
54
+ "@openeuropa/bcl-multilingual": "^0.3732.202601071600",
55
+ "@openeuropa/bcl-navbar": "^0.3732.202601071600",
56
+ "@openeuropa/bcl-navigation": "^0.3732.202601071600",
57
+ "@openeuropa/bcl-news": "^0.3732.202601071600",
58
+ "@openeuropa/bcl-offcanvas": "^0.3732.202601071600",
59
+ "@openeuropa/bcl-page": "^0.3732.202601071600",
60
+ "@openeuropa/bcl-pagination": "^0.3732.202601071600",
61
+ "@openeuropa/bcl-pagination-v2": "^0.3732.202601071600",
62
+ "@openeuropa/bcl-person": "^0.3732.202601071600",
63
+ "@openeuropa/bcl-placeholder": "^0.3732.202601071600",
64
+ "@openeuropa/bcl-progress": "^0.3732.202601071600",
65
+ "@openeuropa/bcl-project": "^0.3732.202601071600",
66
+ "@openeuropa/bcl-project-status": "^0.3732.202601071600",
67
+ "@openeuropa/bcl-recent-activities": "^0.3732.202601071600",
68
+ "@openeuropa/bcl-search": "^0.3732.202601071600",
69
+ "@openeuropa/bcl-search-form": "^0.3732.202601071600",
70
+ "@openeuropa/bcl-select": "^0.3732.202601071600",
71
+ "@openeuropa/bcl-spinner": "^0.3732.202601071600",
72
+ "@openeuropa/bcl-subscription": "^0.3732.202601071600",
73
+ "@openeuropa/bcl-subscription-block": "^0.3732.202601071600",
74
+ "@openeuropa/bcl-table": "^0.3732.202601071600",
75
+ "@openeuropa/bcl-textarea": "^0.3732.202601071600",
76
+ "@openeuropa/bcl-timeline": "^0.3732.202601071600",
77
+ "@openeuropa/bcl-toasts": "^0.3732.202601071600",
78
+ "@openeuropa/bcl-user": "^0.3732.202601071600",
77
79
  "copyfiles": "2.4.1",
78
80
  "rimraf": "6.0.1"
79
81
  },
@@ -96,5 +98,5 @@
96
98
  "design-system",
97
99
  "twig"
98
100
  ],
99
- "gitHead": "80b0cb3a93156a654fdfb92b9835d631d30eeb0a"
101
+ "gitHead": "253e588bbc9fd4d20ced38c9384b70636725f2c6"
100
102
  }
@@ -98,8 +98,8 @@
98
98
  {% endif %}
99
99
  <div class="accordion-item">
100
100
  {%- set _item_title_tag = _item.title_tag|default('h2') %}
101
- <{{ _item_title_tag }}
102
- class="accordion-header"
101
+ <{{ _item_title_tag }}
102
+ class="accordion-header"
103
103
  id="heading-{{ _id }}-{{ loop.index }}"
104
104
  >
105
105
  {% set button_attributes = create_attribute()
@@ -126,7 +126,7 @@
126
126
  class="accordion-collapse collapse{{ _open_item ? ' show' }}"
127
127
  aria-labelledby="heading-{{ _id }}-{{ loop.index }}"
128
128
  role="region"
129
- {% if not _item.stay_open and _expand_button is empty %}
129
+ {% if not _item.stay_open and _expand_button is empty %}
130
130
  data-bs-parent="#accordion-{{ _id }}"
131
131
  {% endif %}
132
132
  >
@@ -8,20 +8,16 @@
8
8
  - pagination (object) (default: {})
9
9
  - sidebar (object) (default: '')
10
10
  #}
11
+ {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
11
12
 
12
- {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
13
-
14
- {% set _title = title|default('') %}
15
- {% set _title_tag = title_tag|default('h2') %}
16
- {% set _title_link = title_link|default({}) %}
17
- {% set _title_attributes = title_attributes ?: create_attribute() %}
18
13
  {% set _listing = listing|default({}) %}
19
- {% set _pagination = pagination|default({}) %}
20
- {% set _sidebar = sidebar|default({}) %}
21
-
22
- {% set _title_attributes = _title_attributes ?: create_attribute() %}
23
14
 
24
- {% block content_top %}
15
+ {%- block content_top %}
16
+ {% set _title = title|default('') %}
17
+ {% set _title_tag = title_tag|default('h2') %}
18
+ {% set _title_link = title_link|default({}) %}
19
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
20
+ {% set _title_attributes = _title_attributes ?: create_attribute() %}
25
21
  {% if filter_button %}
26
22
  {% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
27
23
  {% endif %}
@@ -29,7 +25,7 @@
29
25
  <div class="col-md-6 col-lg-8 align-self-center">
30
26
  {% if _title is not empty %}
31
27
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
32
- title: _title ~ ' (' ~ listing.items.length ~ ')',
28
+ title: _title ~ ' (' ~ (_listing.items|length) ~ ')',
33
29
  title_tag: _title_tag,
34
30
  title_link: _title_link,
35
31
  attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
@@ -54,21 +50,23 @@
54
50
  </div>
55
51
  </div>
56
52
  <hr class="d-none d-md-block mb-4-75"/>
57
- {% endblock %}
53
+ {%- endblock -%}
58
54
 
59
- {% block content %}
55
+ {%- block content %}
60
56
  {% if _listing is not empty %}
61
57
  {% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
62
58
  {% endif %}
63
- {% endblock %}
59
+ {%- endblock -%}
64
60
 
65
- {% block content_bottom %}
61
+ {%- block content_bottom %}
62
+ {% set _pagination = pagination|default({}) %}
66
63
  {% if _pagination is not empty %}
67
64
  <hr class="d-none d-md-block mt-4-5">
68
65
  {% include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
69
66
  {% endif %}
70
- {% endblock %}
67
+ {%- endblock -%}
71
68
 
72
- {% block sidebar %}
69
+ {%- block sidebar %}
70
+ {% set _sidebar = sidebar|default({}) %}
73
71
  {% include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
74
- {% endblock %}
72
+ {%- endblock -%}
@@ -63,9 +63,9 @@
63
63
  {% if _attribution is not empty %}
64
64
  <figcaption class="blockquote-footer m-0">
65
65
  {{- _attribution -}}
66
- {% if _cite is not empty %}
66
+ {% if _cite is not empty -%}
67
67
  <cite title="{{ _cite }}">{{- _cite -}}</cite>
68
- {% endif %}
68
+ {%- endif -%}
69
69
  </figcaption>
70
70
  {% endif %}
71
71
  </figure>
@@ -1,6 +1,6 @@
1
1
  {% apply spaceless %}
2
2
 
3
- {#
3
+ {#
4
4
  Parameters:
5
5
  - label (string) (default: '')
6
6
  - variant (string) (default: 'primary')
@@ -38,6 +38,7 @@
38
38
  {% set _spinner = spinner|default({}) %}
39
39
  {% set _show_spinner = show_spinner ?? false %}
40
40
  {% set _clean_class = clean_class ?? false %}
41
+ {% set _remove_icon_spacers = remove_icon_spacers ?? false %}
41
42
 
42
43
  {% set _classes = [] %}
43
44
  {% if _clean_class == false %}
@@ -68,7 +69,7 @@
68
69
  size: "fluid",
69
70
  })
70
71
  %}
71
- {% if _label is not empty %}
72
+ {% if _label is not empty and not _remove_icon_spacers %}
72
73
  {% if _icon.attributes is empty %}
73
74
  {% set _icon = _icon|merge({
74
75
  attributes: create_attribute()
@@ -52,7 +52,7 @@
52
52
  #}
53
53
 
54
54
  {% set _title = title|default('') %}
55
- {% set _title_tag = title_tag|default('h1') %}
55
+ {% set _title_tag = title_tag|default('div') %}
56
56
  {% set _title_link = title_link|default({}) %}
57
57
  {% set _title_attributes = title_attributes ?: create_attribute() %}
58
58
  {% set _subtitle = subtitle|default({}) %}
@@ -145,8 +145,8 @@
145
145
  {% set _img_class = _img_class ~ " " ~ _image.classes %}
146
146
  {% endif %}
147
147
  {% endif %}
148
- {% if _horizontal and (_image is not empty or _date is not empty) %}
149
- <div class='{{ _horizontal_grid.left_col_classes }}'>
148
+ {% if _horizontal and (_image is not empty or _date is not empty) %}
149
+ <div class='{{ _horizontal_grid.left_col_classes }}'>
150
150
  {% endif %}
151
151
  {% if _date is not empty %}
152
152
  {% block card_date %}
@@ -171,7 +171,7 @@
171
171
  <div class='{{ _body_classes }}'>
172
172
  {% if _title is not empty %}
173
173
  {% if _title_attributes.class is empty %}
174
- {% set _title_attributes = _title_attributes.addClass('fs-4') %}
174
+ {% set _title_attributes = _title_attributes.addClass('h4') %}
175
175
  {% endif %}
176
176
  {% set _title_attributes = _title_attributes.addClass('card-title') %}
177
177
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
@@ -180,7 +180,7 @@
180
180
  title_link: _title_link,
181
181
  attributes: _title_attributes,
182
182
  } only %}
183
- {% endif %}
183
+ {%- endif %}
184
184
  {%- if _subtitle is not empty -%}
185
185
  {% set _subtitle_tag = _subtitle.tag ?? 'h6' %}
186
186
  <{{ _subtitle_tag }}
@@ -220,12 +220,12 @@
220
220
  %}
221
221
  {% endif %}
222
222
  {% include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
223
-
223
+
224
224
  {% endfor %}
225
225
  </div>
226
226
  {%- endif -%}
227
227
  {% endblock %}
228
- {% block card_links %}
228
+ {%- block card_links %}
229
229
  {%- if _links is not empty and _links is iterable -%}
230
230
  <div class="mt-2-5 mb-2">
231
231
  {% for _link in _links %}
@@ -235,7 +235,7 @@
235
235
  {% endfor %}
236
236
  </div>
237
237
  {%- endif -%}
238
- {% endblock %}
238
+ {% endblock -%}
239
239
  </div>
240
240
  {% if _horizontal %}
241
241
  </div>
@@ -14,7 +14,7 @@
14
14
  image: (string) <img> tag
15
15
  caption (string)
16
16
  caption_classes (string)
17
- caption_title (string)
17
+ caption_title (string)
18
18
  interval (integer) (default: 0)
19
19
  }
20
20
  ],
@@ -1,5 +1,5 @@
1
- {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' %}
1
+ {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
- {% block content %}
3
+ {%- block content %}
4
4
  {% include '@oe-bcl/bcl-form/form.html.twig' with form only %}
5
- {% endblock %}
5
+ {%- endblock -%}
@@ -92,6 +92,9 @@
92
92
  {% if _date is not empty %}
93
93
  {% set _left_col_classes = 'bcl-card-start-col' %}
94
94
  {% set _right_col_classes = 'col-12 col-md col-xxl-9' %}
95
+ {% if _image is empty %}
96
+ {% set _body_classes = 'pt-4 pt-md-0 px-0 px-md-1-5 pb-0' %}
97
+ {% endif %}
95
98
  {% endif %}
96
99
  {% if _image is empty and _date is empty %}
97
100
  {% set _right_col_classes = 'col-lg-10 col-xl-9 col-xxl-8' %}
@@ -9,6 +9,7 @@
9
9
  - end_day (integer) (default: '')
10
10
  - end_month (string) (default: '')
11
11
  - end_year (integer) (default: '')
12
+ - icon_path (string) (default: '')
12
13
  #}
13
14
 
14
15
  {% set _day = day|default('') %}
@@ -18,6 +19,7 @@
18
19
  {% set _end_day = end_day|default('') %}
19
20
  {% set _end_month = end_month|default('') %}
20
21
  {% set _end_year = end_year|default('') %}
22
+ {% set _icon_path = icon_path|default('') %}
21
23
 
22
24
  {% set _classes = [
23
25
  'bcl-date-block',
@@ -42,23 +44,37 @@
42
44
  {% endif %}
43
45
 
44
46
  <time {{ attributes }}>
45
- <span class="d-flex flex-column pt-2">
46
- <span class="d-flex flex-column align-item-center justify-content-center bg-white border border-bottom-0 w-100 h-100 fs-5 text-uppercase">
47
- <span class="d-block">{{- _day ~ ' ' ~ _month ~ ((_end_day or _end_month) ? ' - ' ) -}}</span>
48
- {%- if _end_day is not empty %}
49
- {{- _end_day -}}
50
- {% endif -%}
51
- {%- if _end_month is not empty %}
52
- {{- ' ' ~ _end_month -}}
53
- {% endif -%}
54
- </span>
55
- <span class="bg-lighter border w-100 rounded-bottom py-1">
56
- {{- _year -}}
47
+ <div class="d-flex flex-column pt-2">
48
+ <div class="d-flex align-item-center bg-white border border-bottom-0 w-100 h-100 text-uppercase justify-content-center gap-2">
49
+ <div class="d-flex flex-column align-item-center justify-content-center">
50
+ <div class="date-month lh-1">{{- _month -}}</div>
51
+ <div class="date-day fw-bold fs-4 lh-1">{{- _day -}}</div>
52
+ </div>
53
+ {% if _end_day or _end_month %}
54
+ <div class="d-flex flex-column align-item-center justify-content-center">
55
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
56
+ name: "chevron-right",
57
+ size: "xs",
58
+ path: _icon_path,
59
+ } only -%}
60
+ </div>
61
+ <div class="d-flex flex-column align-item-center justify-content-center">
62
+ {%- if _end_month is not empty %}
63
+ <div class="date-month lh-1">{{- _end_month -}}</div>
64
+ {% endif -%}
65
+ {%- if _end_day is not empty %}
66
+ <div class="date-day fw-bold fs-4 lh-1">{{- _end_day -}}</div>
67
+ {% endif -%}
68
+ </div>
69
+ {% endif %}
70
+ </div>
71
+ <div class="bg-lighter border w-100 rounded-bottom py-1 d-flex gap-4 justify-content-center">
72
+ <div class="date-year year-start">{{- _year -}}</div>
57
73
  {%- if _end_year is not empty -%}
58
- {{ ' - ' ~ _end_year }}
74
+ <div class="date-year year-end">{{ _end_year }}</div>
59
75
  {%- endif -%}
60
- </span>
61
- </span>
76
+ </div>
77
+ </div>
62
78
  </time>
63
79
 
64
80
  {% endapply %}
@@ -15,7 +15,7 @@
15
15
  },
16
16
  ...
17
17
  ]
18
- - variant (string) (default: '')
18
+ - variant (string) (default: '')
19
19
  - option: ['horizontal']
20
20
  #}
21
21
 
@@ -42,6 +42,7 @@
42
42
  {% set _alignment = alignment|default('') %}
43
43
  {% set _dark = dark ?? false %}
44
44
  {% set _remove_wrapper = remove_wrapper ?? false %}
45
+ {% set _inside_navigation = inside_navigation ?? false %}
45
46
  {% set _items = items|default([]) %}
46
47
 
47
48
  {% set _class = 'dropdown' %}
@@ -75,14 +76,18 @@
75
76
  .setAttribute('id', _id)
76
77
  }) %}
77
78
 
78
- {% if _link %}
79
- {% set _trigger = _trigger|merge({
80
- attributes: _trigger.attributes.setAttribute('role', 'button')
81
- }) %}
79
+ {% if not _inside_navigation %}
80
+ {% if _link %}
81
+ {% set _trigger = _trigger|merge({
82
+ attributes: _trigger.attributes.setAttribute('role', 'button')
83
+ }) %}
84
+ {% else %}
85
+ {% set _trigger = _trigger|merge({
86
+ attributes: _trigger.attributes.setAttribute('autocomplete', 'off')
87
+ }) %}
88
+ {% endif %}
82
89
  {% else %}
83
- {% set _trigger = _trigger|merge({
84
- attributes: _trigger.attributes.setAttribute('autocomplete', 'off')
85
- }) %}
90
+ {% set attributes = attributes.setAttribute('aria-hidden', 'true').setAttribute('role', 'presentation') %}
86
91
  {% endif %}
87
92
 
88
93
  {% if not _remove_wrapper %}
@@ -1,10 +1,10 @@
1
- {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' %}
1
+ {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
- {% block sidebar %}
3
+ {%- block sidebar %}
4
4
  {% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
5
- {% endblock %}
5
+ {%- endblock -%}
6
6
 
7
- {% block content %}
7
+ {%- block content %}
8
8
  {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with details_list only %}
9
9
 
10
10
  <h2 id="item-1" class="my-4">Description</h2>
@@ -21,4 +21,4 @@
21
21
  <h2 id="item-2" class="my-4">Related documents</h2>
22
22
  {% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
23
23
  {% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
24
- {% endblock %}
24
+ {%- endblock -%}
@@ -139,7 +139,7 @@
139
139
  {% endif %}
140
140
  </div>
141
141
  {% set download_attributes = create_attribute()
142
- .setAttribute('download', 'true')
142
+ .setAttribute('download', true)
143
143
  .setAttribute('target', '_blank')
144
144
  .addClass(['standalone', 'align-self-center', 'd-inline-block', 'mt-1', 'mt-md-0', 'flex-shrink-0']) %}
145
145
  {% set _download = _download|merge({
@@ -3,7 +3,7 @@
3
3
  {# Parameters:
4
4
  - variant (string) (default: 'neutral')
5
5
  - options: ['eu', 'ec', 'neutral']
6
- - rows (object[]) (default: []) - format:
6
+ - rows (object[]) (default: []) - format:
7
7
  [
8
8
  {
9
9
  extra_classes: ""
@@ -154,7 +154,7 @@
154
154
  {% if _horizontal and floating == false %}
155
155
  </div>
156
156
  {% endif %}
157
- {% if _label_block and (_floating or _input_type == 'checkbox' or _input_type == 'radio') %}
157
+ {% if _label_block and (_floating or _input_type == 'checkbox' or _input_type == 'radio') %}
158
158
  {{ _label_block|raw }}
159
159
  {% endif %}
160
160
  {% if _invalid_feedback is not empty %}
@@ -33,7 +33,7 @@ Parameters:
33
33
  .setAttribute('tabindex', '0')
34
34
  %}
35
35
 
36
- <a
36
+ <a
37
37
  {{ attributes }}
38
38
  >
39
39
  <div class="bcl-gallery__item-overlay" data-bs-target="#{{ _modal_id }}" data-bs-toggle="modal">
@@ -1,27 +1,27 @@
1
- {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' %}
1
+ {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
- {% block content %}
3
+ {%- block content %}
4
4
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
5
5
  title: 'Description',
6
6
  title_tag: 'h2',
7
7
  } only %}
8
8
 
9
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.
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
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,
17
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse volutpat ultricies massa,
18
18
  a dapibus libero porta nec. Sed facilisis dictum vestibulum. Fusce commodo hendrerit diam, pretium tempus
19
19
  leo varius sit amet. Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero
20
20
  orci semper lacus. Duis tristique fringilla magna, eu egestas dolor molestie non. </p>
21
21
  <p>Lorem ipsum dolor
22
22
  sit amet, consectetur adipiscing elit. Suspendisse volutpat ultricies massa, a dapibus libero porta nec.
23
23
  Sed facilisis dictum vestibulum.
24
- Fusce commodo hendrerit diam, pretium tempus leo varius sit amet. Etiam interdum, orci at sagittis luctus,
24
+ Fusce commodo hendrerit diam, pretium tempus leo varius sit amet. Etiam interdum, orci at sagittis luctus,
25
25
  lorem libero tempus mauris, a fermentum libero orci semper lacus. Duis tristique fringilla magna,
26
26
  eu egestas dolor molestie non. </p>
27
27
 
@@ -38,6 +38,5 @@
38
38
  <div {{ file_classes ? 'class="' ~ file_classes ~ '"' }}>
39
39
  {% include '@oe-bcl/bcl-file/file.html.twig' with file only %}
40
40
  </div>
41
- {% endfor %}
42
-
43
- {% endblock %}
41
+ {% endfor %}
42
+ {%- endblock -%}
@@ -1,6 +1,6 @@
1
- {% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig' %}
1
+ {% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig' -%}
2
2
 
3
- {% block content_row %}
3
+ {%- block content_row %}
4
4
  {% include '@oe-bcl/bcl-pagination/pagination.html.twig' with glossary only %}
5
5
  <div class="col-12">
6
6
  <div class="d-md-flex justify-content-end mb-md-4-75 align-items-center border-bottom-md border-top-md border-gray-300 py-3">
@@ -8,12 +8,12 @@
8
8
  {% include '@oe-bcl/bcl-select/select.html.twig' with itemsPerPage only %}
9
9
  </div>
10
10
  </div>
11
- {% endblock %}
11
+ {%- endblock -%}
12
12
 
13
- {% block content_top %}
13
+ {%- block content_top %}
14
14
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
15
15
  title: 'Starting with "A" (48)',
16
16
  title_tag: 'h2',
17
17
  } only %}
18
18
 
19
- {% endblock %}
19
+ {%- endblock -%}