@openeuropa/bcl-theme-joinup 0.4298.202511051800 → 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.
Files changed (102) hide show
  1. package/css/oe-bcl-joinup.css +167 -85
  2. package/css/oe-bcl-joinup.css.map +1 -1
  3. package/css/oe-bcl-joinup.min.css +1 -1
  4. package/css/oe-bcl-joinup.min.css.map +1 -1
  5. package/js/oe-bcl-joinup.bundle.js +112 -1
  6. package/js/oe-bcl-joinup.bundle.js.map +1 -1
  7. package/js/oe-bcl-joinup.bundle.min.js +1 -1
  8. package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
  9. package/js/oe-bcl-joinup.esm.js +111 -1
  10. package/js/oe-bcl-joinup.esm.js.map +1 -1
  11. package/js/oe-bcl-joinup.esm.min.js +1 -1
  12. package/js/oe-bcl-joinup.esm.min.js.map +1 -1
  13. package/js/oe-bcl-joinup.umd.js +112 -1
  14. package/js/oe-bcl-joinup.umd.js.map +1 -1
  15. package/js/oe-bcl-joinup.umd.min.js +1 -1
  16. package/js/oe-bcl-joinup.umd.min.js.map +1 -1
  17. package/package.json +7 -7
  18. package/src/js/index.esm.js +2 -0
  19. package/src/js/index.umd.js +2 -0
  20. package/templates/bcl-accordion/accordion.html.twig +42 -46
  21. package/templates/bcl-alert/alert.html.twig +18 -21
  22. package/templates/bcl-badge/badge.html.twig +11 -15
  23. package/templates/bcl-banner/banner.html.twig +34 -37
  24. package/templates/bcl-base-templates/content-type.html.twig +63 -67
  25. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  26. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  27. package/templates/bcl-blockquote/blockquote.html.twig +17 -20
  28. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
  29. package/templates/bcl-button/button.html.twig +24 -27
  30. package/templates/bcl-button-group/button-group.html.twig +25 -29
  31. package/templates/bcl-card/card.html.twig +98 -101
  32. package/templates/bcl-card-layout/card-layout.html.twig +34 -37
  33. package/templates/bcl-carousel/carousel.html.twig +64 -67
  34. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  35. package/templates/bcl-content-banner/content-banner.html.twig +37 -40
  36. package/templates/bcl-date-block/date-block.html.twig +26 -29
  37. package/templates/bcl-description-list/description-list-details.html.twig +6 -9
  38. package/templates/bcl-description-list/description-list-title.html.twig +11 -14
  39. package/templates/bcl-description-list/description-list.html.twig +44 -48
  40. package/templates/bcl-dropdown/dropdown.html.twig +48 -52
  41. package/templates/bcl-event/event.html.twig +7 -7
  42. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
  43. package/templates/bcl-featured-media/featured-media.html.twig +42 -46
  44. package/templates/bcl-file/file-translations.html.twig +29 -32
  45. package/templates/bcl-file/file.html.twig +47 -50
  46. package/templates/bcl-footer/footer.html.twig +31 -34
  47. package/templates/bcl-form/form.html.twig +70 -73
  48. package/templates/bcl-form-input/form-input.html.twig +57 -61
  49. package/templates/bcl-gallery/gallery-item.html.twig +20 -23
  50. package/templates/bcl-gallery/gallery.html.twig +62 -66
  51. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  52. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  53. package/templates/bcl-group/group-landing.html.twig +69 -69
  54. package/templates/bcl-group/group.html.twig +19 -19
  55. package/templates/bcl-header/header.html.twig +71 -82
  56. package/templates/bcl-heading/heading.html.twig +13 -17
  57. package/templates/bcl-icon/icon.html.twig +10 -13
  58. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
  59. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  60. package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
  61. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  62. package/templates/bcl-language-list/language-list.html.twig +33 -37
  63. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
  64. package/templates/bcl-link/link.html.twig +24 -27
  65. package/templates/bcl-links-block/links-block.html.twig +30 -34
  66. package/templates/bcl-list-group/list-group.html.twig +43 -47
  67. package/templates/bcl-listing/listing.html.twig +88 -91
  68. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
  69. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
  70. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
  71. package/templates/bcl-modal/modal.html.twig +21 -23
  72. package/templates/bcl-navbar/navbar.html.twig +35 -38
  73. package/templates/bcl-navigation/navigation.html.twig +105 -110
  74. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
  75. package/templates/bcl-page/page.html.twig +27 -27
  76. package/templates/bcl-pagination/pagination-item.html.twig +22 -26
  77. package/templates/bcl-pagination/pagination.html.twig +59 -62
  78. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
  79. package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
  80. package/templates/bcl-person/person.html.twig +12 -12
  81. package/templates/bcl-placeholder/placeholder.html.twig +14 -18
  82. package/templates/bcl-progress/progress.html.twig +16 -20
  83. package/templates/bcl-project/project-lists.html.twig +25 -29
  84. package/templates/bcl-project/project.html.twig +35 -35
  85. package/templates/bcl-project-status/project-contributions.html.twig +25 -28
  86. package/templates/bcl-project-status/project-status.html.twig +32 -37
  87. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
  88. package/templates/bcl-search/search.html.twig +12 -12
  89. package/templates/bcl-search-form/search-form.html.twig +21 -24
  90. package/templates/bcl-select/select.html.twig +52 -56
  91. package/templates/bcl-spinner/spinner.html.twig +10 -13
  92. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  93. package/templates/bcl-subscription/subscription.html.twig +3 -3
  94. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
  95. package/templates/bcl-table/table.html.twig +61 -65
  96. package/templates/bcl-textarea/textarea.html.twig +44 -47
  97. package/templates/bcl-timeline/timeline-item.html.twig +12 -15
  98. package/templates/bcl-timeline/timeline.html.twig +42 -45
  99. package/templates/bcl-toasts/toasts.html.twig +56 -60
  100. package/templates/bcl-user/user-compact.html.twig +24 -27
  101. package/templates/bcl-user/user-terms.html.twig +6 -6
  102. package/templates/bcl-user/user.html.twig +117 -117
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title: (string) (default: '')
5
3
  - title_tag: (string) (default: 'h2')
@@ -20,7 +18,7 @@
20
18
  - attributes (drupal attrs)
21
19
  #}
22
20
 
23
- {% set _title = title|default('') %}
21
+ {%- set _title = title|default('') %}
24
22
  {% set _title_tag = title_tag|default('h2') %}
25
23
  {% set _title_link = title_link|default({}) %}
26
24
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -36,78 +34,78 @@
36
34
  {% set _extra_classes_close = extra_classes_close|default('') %}
37
35
  {% set _responsiveness = responsiveness|default('') %}
38
36
 
39
- {% if _responsiveness is not empty %}
40
- {% set _classes = ['offcanvas-' ~ _responsiveness] %}
37
+ {%- if _responsiveness is not empty %}
38
+ {%- set _classes = ['offcanvas-' ~ _responsiveness] %}
41
39
  {% else %}
42
- {% set _classes = ['offcanvas'] %}
40
+ {%- set _classes = ['offcanvas'] %}
43
41
  {% endif %}
44
42
 
45
- {% set _class_body = 'offcanvas-body' ~ (_extra_classes_body ? ' ' ~ _extra_classes_body : '') %}
43
+ {%- set _class_body = 'offcanvas-body' ~ (_extra_classes_body ? ' ' ~ _extra_classes_body : '') %}
46
44
  {% set _class_header = 'offcanvas-header' ~ (_extra_classes_header ? ' ' ~ _extra_classes_header : '') %}
47
45
 
48
- {% if _placement is not empty %}
49
- {% set _classes = _classes|merge(['offcanvas-' ~ _placement]) %}
46
+ {%- if _placement is not empty %}
47
+ {%- set _classes = _classes|merge(['offcanvas-' ~ _placement]) %}
50
48
  {% endif %}
51
49
 
52
- {% if _title is not empty %}
53
- {% set _aria_labelled = _title.id|default('') %}
50
+ {%- if _title is not empty %}
51
+ {%- set _aria_labelled = _title.id|default('') %}
54
52
  {% endif %}
55
53
 
56
- {% if attributes is empty %}
57
- {% set attributes = create_attribute() %}
54
+ {%- if attributes is empty %}
55
+ {%- set attributes = create_attribute() %}
58
56
  {% endif %}
59
57
 
60
- {% set attributes = attributes.setAttribute('id', _id) %}
58
+ {%- set attributes = attributes.setAttribute('id', _id) %}
61
59
 
62
- {% if _aria_labelled is defined and _aria_labelled is not empty %}
63
- {% set attributes = attributes.setAttribute('aria-labelledby', _aria_labelled) %}
60
+ {%- if _aria_labelled is defined and _aria_labelled is not empty %}
61
+ {%- set attributes = attributes.setAttribute('aria-labelledby', _aria_labelled) %}
64
62
  {% endif %}
65
63
 
66
- {% if _with_body_scroll %}
67
- {% set attributes = attributes.setAttribute('data-bs-scroll', 'true') %}
64
+ {%- if _with_body_scroll %}
65
+ {%- set attributes = attributes.setAttribute('data-bs-scroll', 'true') %}
68
66
  {% endif %}
69
67
 
70
- {% if not _with_backdrop %}
71
- {% set attributes = attributes.setAttribute('data-bs-backdrop', 'false') %}
68
+ {%- if not _with_backdrop %}
69
+ {%- set attributes = attributes.setAttribute('data-bs-backdrop', 'false') %}
72
70
  {% endif %}
73
71
 
74
- {% if _title is not empty %}
75
- {% set attributes = attributes.setAttribute('aria-labelledby', _id ~ '-title') %}
72
+ {%- if _title is not empty %}
73
+ {%- set attributes = attributes.setAttribute('aria-labelledby', _id ~ '-title') %}
76
74
  {% endif %}
77
75
 
78
- {% set attributes = attributes.setAttribute('tabindex', '-1').addClass(_classes) %}
76
+ {%- set attributes = attributes.setAttribute('tabindex', '-1').addClass(_classes) -%}
79
77
 
80
78
  <div
81
79
  {{ attributes }}
82
80
  >
83
- {% if _with_close or _title is not empty %}
81
+ {%- if _with_close or _title is not empty -%}
84
82
  <div class="{{ _class_header }}">
85
- {% if _title is not empty %}
86
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
83
+ {%- if _title is not empty %}
84
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
87
85
  title: _title,
88
86
  title_tag: _title_tag,
89
87
  title_link: _title_link,
90
88
  attributes: _title_attributes.setAttribute('id', _id ~ '-title').addClass(['offcanvas-title']),
91
89
  } only %}
92
- {% endif %}
93
- {% if _with_close %}
94
- {% set button_attributes = create_attribute()
90
+ {%- endif %}
91
+ {%- if _with_close %}
92
+ {%- set button_attributes = create_attribute()
95
93
  .addClass(['btn-close', 'text-reset'])
96
94
  .setAttribute('data-bs-dismiss', 'offcanvas')
97
95
  .setAttribute('data-bs-target', '#' ~ _id)
98
96
  .setAttribute('aria-label', _close_aria_label)
99
97
  .setAttribute('aria-controls', _id)
100
98
  %}
101
- {% if _extra_classes_close is not empty %}
102
- {% set button_attributes = button_attributes.addClass(_extra_classes_close) %}
103
- {% endif %}
99
+ {%- if _extra_classes_close is not empty %}
100
+ {%- set button_attributes = button_attributes.addClass(_extra_classes_close) %}
101
+ {%- endif %}
104
102
  {%- include '@oe-bcl/bcl-button/button.html.twig' with {
105
103
  attributes: button_attributes,
106
104
  clean_class: true
107
105
  } only -%}
108
- {% endif %}
106
+ {% endif -%}
109
107
  </div>
110
- {% endif %}
108
+ {%- endif %}
111
109
  {%- if _body is not empty -%}
112
110
  <div class="{{ _class_body }}">
113
111
  {%- endif -%}
@@ -118,5 +116,4 @@
118
116
  </div>
119
117
  {%- endif -%}
120
118
  </div>
121
-
122
- {% endapply %}
119
+ {#--#}
@@ -1,45 +1,45 @@
1
1
  {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
3
  {%- block sidebar %}
4
- {% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
4
+ {%- include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
5
5
  {%- endblock -%}
6
6
 
7
- {%- block content %}
8
- <p id="content">{{ get_dummy_text(6) }}
9
- </p>
7
+ {%- block content -%}
8
+ <p id="content">{{ get_dummy_text(6) -}}
9
+ </p>{# -#}
10
10
  <h2 id="item-1" class="my-4">Section 1</h2>
11
- {% if featured_item %}
12
- {% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with featured_item only %}
13
- {% endif %}
11
+ {%- if featured_item %}
12
+ {%- include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with featured_item only %}
13
+ {%- endif %}
14
14
 
15
- {% if page_banner %}
16
- {% include '@oe-bcl/bcl-banner/banner.html.twig' with page_banner only %}
17
- {% endif %}
15
+ {%- if page_banner %}
16
+ {%- include '@oe-bcl/bcl-banner/banner.html.twig' with page_banner only %}
17
+ {%- endif %}
18
18
 
19
- {% if listing %}
20
- {% include '@oe-bcl/bcl-listing/listing.html.twig' with listing only %}
21
- {% endif %}
19
+ {%- if listing %}
20
+ {%- include '@oe-bcl/bcl-listing/listing.html.twig' with listing only %}
21
+ {%- endif -%}
22
22
 
23
23
  <h2 id="item-2" class="my-4">Section 2</h2>
24
24
 
25
- {{ get_dummy_text(6, true) }}
25
+ {{- get_dummy_text(6, true) }}
26
26
 
27
- {% if blockquote %}
28
- {% include '@oe-bcl/bcl-blockquote/blockquote.html.twig' with blockquote only %}
29
- {% endif %}
30
- {% if accordion %}
31
- {% include '@oe-bcl/bcl-accordion/accordion.html.twig' with accordion only %}
32
- {% endif %}
33
- {% if timeline %}
34
- {% include '@oe-bcl/bcl-timeline/timeline.html.twig' with timeline only %}
35
- {% endif %}
27
+ {%- if blockquote %}
28
+ {%- include '@oe-bcl/bcl-blockquote/blockquote.html.twig' with blockquote only %}
29
+ {%- endif %}
30
+ {%- if accordion %}
31
+ {%- include '@oe-bcl/bcl-accordion/accordion.html.twig' with accordion only %}
32
+ {%- endif %}
33
+ {%- if timeline %}
34
+ {%- include '@oe-bcl/bcl-timeline/timeline.html.twig' with timeline only %}
35
+ {%- endif %}
36
36
 
37
- {{ get_dummy_text(8, true) }}
37
+ {{- get_dummy_text(8, true) -}}
38
38
 
39
39
  <h2 id="item-3" class="my-4">Section 3</h2>
40
40
 
41
- {{ get_dummy_text(4, true) }}
41
+ {{- get_dummy_text(4, true) }}
42
42
 
43
- {% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
44
- {% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
43
+ {%- include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
44
+ {%- include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
45
45
  {%- endblock -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - path (string) (default: '')
5
3
  - label (string) (default: '')
@@ -10,7 +8,7 @@
10
8
  - attributes (drupal attrs)
11
9
  #}
12
10
 
13
- {% set _path = path|default('') %}
11
+ {%- set _path = path|default('') %}
14
12
  {% set _label = label|default('') %}
15
13
  {% set _disabled = disabled ?? false %}
16
14
  {% set _active = active ?? false %}
@@ -21,44 +19,44 @@
21
19
  {% set _icon_html = icon_html|default('') %}
22
20
  {% set _classes = ['page-link'] %}
23
21
 
24
- {% if _icon_path is not empty and _icon is empty %}
25
- {% if _icon_name is not empty %}
26
- {% set _icon = _icon|merge({
22
+ {%- if _icon_path is not empty and _icon is empty %}
23
+ {%- if _icon_name is not empty %}
24
+ {%- set _icon = _icon|merge({
27
25
  name: _icon_name,
28
26
  path: _icon_path,
29
27
  size: "fluid"
30
28
  }) %}
31
- {% set _label = "" %}
32
- {% endif %}
29
+ {%- set _label = "" %}
30
+ {%- endif %}
33
31
  {% else %}
34
- {% if _icon_html is not empty %}
35
- {% set _label %}
32
+ {%- if _icon_html is not empty %}
33
+ {%- set _label -%}
36
34
  <span aria-hidden="true">{{- _icon_html -}}</span>
37
- {% endset %}
38
- {% endif %}
35
+ {%- endset %}
36
+ {%- endif %}
39
37
  {% endif %}
40
38
 
41
- {% if _icon is not empty %}
42
- {% set _icon = _icon|merge({
39
+ {%- if _icon is not empty %}
40
+ {%- set _icon = _icon|merge({
43
41
  path: _icon_path,
44
42
  }) %}
45
43
  {% endif %}
46
44
 
47
- {% if attributes is empty %}
48
- {% set attributes = create_attribute() %}
45
+ {%- if attributes is empty %}
46
+ {%- set attributes = create_attribute() %}
49
47
  {% endif %}
50
48
 
51
- {% if _aria_label is not empty %}
52
- {% set attributes = attributes.setAttribute('aria-label', _aria_label ) %}
49
+ {%- if _aria_label is not empty %}
50
+ {%- set attributes = attributes.setAttribute('aria-label', _aria_label ) %}
53
51
  {% endif %}
54
52
 
55
- {% if _active %}
56
- {% set attributes = attributes.setAttribute('aria-current', 'page' ) %}
53
+ {%- if _active %}
54
+ {%- set attributes = attributes.setAttribute('aria-current', 'page' ) %}
57
55
  {% endif %}
58
56
 
59
- {% set attributes = attributes.addClass(_classes) %}
57
+ {%- set attributes = attributes.addClass(_classes) %}
60
58
 
61
- {% if _path %}
59
+ {%- if _path %}
62
60
  {%- include '@oe-bcl/bcl-link/link.html.twig' with {
63
61
  label: _label,
64
62
  path: _path,
@@ -66,8 +64,6 @@
66
64
  icon: _icon,
67
65
  attributes: attributes,
68
66
  } only -%}
69
- {% else %}
67
+ {% else -%}
70
68
  <div {{ attributes }}>{{- _label -}}</div>
71
- {% endif %}
72
-
73
- {% endapply %}
69
+ {%- endif -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - size (string) (default: '')
5
3
  - options ['sm', 'lg']
@@ -32,7 +30,7 @@
32
30
  - list_attributes (drupal attrs)
33
31
  #}
34
32
 
35
- {% set _size = size|default('') %}
33
+ {%- set _size = size|default('') %}
36
34
  {% set _alignment = alignment|default('') %}
37
35
  {% set _variant = variant|default('') %}
38
36
  {% set _aria_label = aria_label|default('') %}
@@ -48,114 +46,113 @@
48
46
  {% set _icon_path = icon_path|default('') %}
49
47
  {% set _internal_items = [] %}
50
48
 
51
- {% if _enable_first_last_icon %}
52
- {% if _first is not empty %}
53
- {% set _first = _first|merge({
49
+ {%- if _enable_first_last_icon %}
50
+ {%- if _first is not empty %}
51
+ {%- set _first = _first|merge({
54
52
  icon_html: "&laquo;",
55
53
  icon_name: "chevron-double-left",
56
54
  }) %}
57
- {% endif %}
58
- {% if _last is not empty %}
59
- {% set _last = _last|merge({
55
+ {%- endif %}
56
+ {%- if _last is not empty %}
57
+ {%- set _last = _last|merge({
60
58
  icon_html: '&raquo;',
61
59
  icon_name: "chevron-double-right",
62
60
  }) %}
63
- {% endif %}
61
+ {%- endif %}
64
62
  {% endif %}
65
63
 
66
- {% if _enable_prev_next_icon %}
67
- {% if _prev is not empty %}
68
- {% set _prev = _prev|merge({
64
+ {%- if _enable_prev_next_icon %}
65
+ {%- if _prev is not empty %}
66
+ {%- set _prev = _prev|merge({
69
67
  icon_html: "&lsaquo;",
70
68
  icon_name: "chevron-left",
71
69
  }) %}
72
- {% endif %}
73
- {% if _next is not empty %}
74
- {% set _next = _next|merge({
70
+ {%- endif %}
71
+ {%- if _next is not empty %}
72
+ {%- set _next = _next|merge({
75
73
  icon_html: "&rsaquo;",
76
74
  icon_name: "chevron-right",
77
75
  }) %}
78
- {% endif %}
76
+ {%- endif %}
79
77
  {% endif %}
80
78
 
81
79
 
82
- {% set _internal_items = _internal_items|merge([_first, _prev]) %}
80
+ {%- set _internal_items = _internal_items|merge([_first, _prev]) %}
83
81
 
84
- {% set _ellipsis_markup %} &hellip; {% endset %}
82
+ {%- set _ellipsis_markup %} &hellip; {% endset %}
85
83
 
86
- {% if _ellipsis_before %}
87
- {% set _ellipsis_before_item = {
84
+ {%- if _ellipsis_before %}
85
+ {%- set _ellipsis_before_item = {
88
86
  icon_html: _ellipsis_markup,
89
87
  icon_path: "",
90
88
  } %}
91
- {% set _internal_items = _internal_items|merge([_ellipsis_before_item]) %}
89
+ {%- set _internal_items = _internal_items|merge([_ellipsis_before_item]) %}
92
90
  {% endif %}
93
91
 
94
- {% set _internal_items = _internal_items|merge(_items) %}
92
+ {%- set _internal_items = _internal_items|merge(_items) %}
95
93
 
96
- {% if _ellipsis_after %}
97
- {% set _ellipsis_after_item = {
94
+ {%- if _ellipsis_after %}
95
+ {%- set _ellipsis_after_item = {
98
96
  icon_html: _ellipsis_markup,
99
97
  icon_path: "",
100
98
  } %}
101
- {% set _internal_items = _internal_items|merge([_ellipsis_after_item]) %}
99
+ {%- set _internal_items = _internal_items|merge([_ellipsis_after_item]) %}
102
100
  {% endif %}
103
101
 
104
- {% set _internal_items = _internal_items|merge([_next, _last]) %}
102
+ {%- set _internal_items = _internal_items|merge([_next, _last]) %}
105
103
 
106
- {% if list_attributes is empty %}
107
- {% set list_attributes = create_attribute() %}
104
+ {%- if list_attributes is empty %}
105
+ {%- set list_attributes = create_attribute() %}
108
106
  {% endif %}
109
107
 
110
- {% set list_attributes = list_attributes.addClass('pagination') %}
108
+ {%- set list_attributes = list_attributes.addClass('pagination') %}
111
109
  {% if _size is not empty %}
112
- {% set list_attributes = list_attributes.addClass('pagination-' ~ _size) %}
110
+ {%- set list_attributes = list_attributes.addClass('pagination-' ~ _size) %}
113
111
  {% endif %}
114
112
  {% if _variant is not empty %}
115
- {% set list_attributes = list_attributes.addClass('pagination--' ~ _variant) %}
113
+ {%- set list_attributes = list_attributes.addClass('pagination--' ~ _variant) %}
116
114
  {% endif %}
117
115
  {% if _alignment is not empty %}
118
- {% set list_attributes = list_attributes.addClass('justify-content-' ~ _alignment) %}
116
+ {%- set list_attributes = list_attributes.addClass('justify-content-' ~ _alignment) %}
119
117
  {% endif %}
120
118
 
121
- {% if attributes is empty %}
122
- {% set attributes = create_attribute() %}
119
+ {%- if attributes is empty %}
120
+ {%- set attributes = create_attribute() %}
123
121
  {% endif %}
124
122
 
125
- {% set attributes = attributes.setAttribute('role', 'navigation') %}
123
+ {%- set attributes = attributes.setAttribute('role', 'navigation') %}
126
124
 
127
- {% if _variant == 'glossary' %}
128
- {% set attributes = attributes.addClass(['bcl-glossary']) %}
125
+ {%- if _variant == 'glossary' %}
126
+ {%- set attributes = attributes.addClass(['bcl-glossary']) %}
129
127
  {% endif %}
130
128
 
131
- {% if _aria_label is not empty %}
132
- {% set attributes = attributes.setAttribute('aria-label', aria_label) %}
133
- {% endif %}
129
+ {%- if _aria_label is not empty %}
130
+ {%- set attributes = attributes.setAttribute('aria-label', aria_label) %}
131
+ {% endif -%}
134
132
 
135
- <nav{{ attributes }}>
133
+ <nav{{ attributes }}>{# -#}
136
134
  <ul{{ list_attributes }}>
137
- {% if _internal_items is not empty and _internal_items is iterable %}
138
- {% for _item in _internal_items %}
139
- {% if _item is not empty %}
140
- {% set _item_class = ['page-item'] %}
141
- {% if _item.disabled %}
142
- {% set _item_class = _item_class|merge(['disabled']) %}
143
- {% endif %}
144
- {% if _item.active %}
145
- {% set _item_class = _item_class|merge(['active']) %}
146
- {% endif %}
135
+ {%- if _internal_items is not empty and _internal_items is iterable %}
136
+ {%- for _item in _internal_items %}
137
+ {%- if _item is not empty %}
138
+ {%- set _item_class = ['page-item'] %}
139
+ {%- if _item.disabled %}
140
+ {%- set _item_class = _item_class|merge(['disabled']) %}
141
+ {%- endif %}
142
+ {%- if _item.active %}
143
+ {%- set _item_class = _item_class|merge(['active']) %}
144
+ {%- endif -%}
147
145
  <li class="{{ _item_class|join(' ') }}">
148
- {% if _item.icon_path is not defined %}
149
- {% set _item = _item|merge({
146
+ {%- if _item.icon_path is not defined %}
147
+ {%- set _item = _item|merge({
150
148
  icon_path: _icon_path,
151
149
  }) %}
152
- {% endif %}
153
- {% include '@oe-bcl/bcl-pagination/pagination-item.html.twig' with _item only %}
150
+ {%- endif %}
151
+ {%- include '@oe-bcl/bcl-pagination/pagination-item.html.twig' with _item only -%}
154
152
  </li>
155
- {% endif %}
156
- {% endfor %}
157
- {% endif %}
158
- </ul>
153
+ {%- endif %}
154
+ {%- endfor %}
155
+ {% endif -%}
156
+ </ul>{# -#}
159
157
  </nav>
160
-
161
- {% endapply %}
158
+ {#--#}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - path (string) (default: '')
5
3
  - label (string) (default: '')
@@ -9,7 +7,7 @@
9
7
  - attributes (drupal attrs)
10
8
  #}
11
9
 
12
- {% set _path = path|default('') %}
10
+ {%- set _path = path|default('') %}
13
11
  {% set _label = label|default('') %}
14
12
  {% set _disabled = disabled ?? false %}
15
13
  {% set _active = active ?? false %}
@@ -22,49 +20,49 @@
22
20
  {% set _current_mobile_label = current_mobile_label|default('') %}
23
21
  {% set _classes = ['page-link'] %}
24
22
 
25
- {% if _icon_path is not empty and _icon is empty %}
26
- {% if _icon_name is not empty %}
27
- {% set _icon = _icon|merge({
23
+ {%- if _icon_path is not empty and _icon is empty %}
24
+ {%- if _icon_name is not empty %}
25
+ {%- set _icon = _icon|merge({
28
26
  name: _icon_name,
29
27
  path: _icon_path,
30
28
  size: "fluid"
31
29
  }) %}
32
- {% set _label = "" %}
33
- {% endif %}
30
+ {%- set _label = "" %}
31
+ {%- endif %}
34
32
  {% else %}
35
- {% if _icon_html is not empty %}
36
- {% set _label %}
33
+ {%- if _icon_html is not empty %}
34
+ {%- set _label -%}
37
35
  <span aria-hidden="true">{{- _icon_html -}}</span>
38
- {% endset %}
39
- {% endif %}
36
+ {%- endset %}
37
+ {%- endif %}
40
38
  {% endif %}
41
39
 
42
- {% if _icon is not empty %}
43
- {% set _icon = _icon|merge({
40
+ {%- if _icon is not empty %}
41
+ {%- set _icon = _icon|merge({
44
42
  path: _icon_path,
45
43
  }) %}
46
44
  {% endif %}
47
45
 
48
- {% if attributes is empty %}
49
- {% set attributes = create_attribute() %}
46
+ {%- if attributes is empty %}
47
+ {%- set attributes = create_attribute() %}
50
48
  {% endif %}
51
49
 
52
- {% if _aria_label is not empty %}
53
- {% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
50
+ {%- if _aria_label is not empty %}
51
+ {%- set attributes = attributes.setAttribute('aria-label', _aria_label) %}
54
52
  {% endif %}
55
53
 
56
- {% if _active %}
57
- {% set attributes = attributes.setAttribute('aria-current', 'page') %}
58
- {% set attributes = attributes.setAttribute('tabindex', '0') %}
54
+ {%- if _active %}
55
+ {%- set attributes = attributes.setAttribute('aria-current', 'page') %}
56
+ {%- set attributes = attributes.setAttribute('tabindex', '0') %}
59
57
  {% endif %}
60
58
 
61
- {% set attributes = attributes.addClass(_classes) %}
59
+ {%- set attributes = attributes.addClass(_classes) %}
62
60
 
63
- {% if _path and not _active %}
64
- {% if _disabled %}
65
- {% set attributes = attributes.setAttribute('aria-disabled', 'true') %}
66
- {% endif %}
67
- {% set attributes = attributes.setAttribute('aria-hidden', 'false') %}
61
+ {%- if _path and not _active %}
62
+ {%- if _disabled %}
63
+ {%- set attributes = attributes.setAttribute('aria-disabled', 'true') %}
64
+ {%- endif %}
65
+ {%- set attributes = attributes.setAttribute('aria-hidden', 'false') %}
68
66
 
69
67
  {%- include '@oe-bcl/bcl-link/link.html.twig' with {
70
68
  label: _label,
@@ -74,17 +72,15 @@
74
72
  icon_position: _icon_position,
75
73
  attributes: attributes,
76
74
  } only -%}
77
- {% else %}
75
+ {% else -%}
78
76
  <div{{ attributes }}>
79
- {% if _current_mobile_label %}
80
- <span class="d-none d-md-inline-block">{{- _label -}}</span>
77
+ {%- if _current_mobile_label -%}
78
+ <span class="d-none d-md-inline-block">{{- _label -}}</span>{# -#}
81
79
  <span class="d-inline-block d-md-none">{{- _current_mobile_label -}}</span>
82
- {% else %}
80
+ {%- else -%}
83
81
  <span class="d-inline-block">
84
82
  {{- _label -}}
85
83
  </span>
86
- {% endif %}
84
+ {%- endif -%}
87
85
  </div>
88
- {% endif %}
89
-
90
- {% endapply %}
86
+ {%- endif -%}