@openeuropa/bcl-theme-joinup 0.4068.202510062345 → 0.4185.202511191330

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 (97) hide show
  1. package/bcl-builder.config.js +2 -0
  2. package/css/oe-bcl-joinup.css +225 -119
  3. package/css/oe-bcl-joinup.css.map +1 -1
  4. package/css/oe-bcl-joinup.min.css +1 -1
  5. package/css/oe-bcl-joinup.min.css.map +1 -1
  6. package/fonts/files/roboto-cyrillic-400-italic.woff +0 -0
  7. package/fonts/files/roboto-cyrillic-400-italic.woff2 +0 -0
  8. package/fonts/files/roboto-cyrillic-400-normal.woff +0 -0
  9. package/fonts/files/roboto-cyrillic-400-normal.woff2 +0 -0
  10. package/fonts/files/roboto-cyrillic-500-italic.woff +0 -0
  11. package/fonts/files/roboto-cyrillic-500-italic.woff2 +0 -0
  12. package/fonts/files/roboto-cyrillic-500-normal.woff +0 -0
  13. package/fonts/files/roboto-cyrillic-500-normal.woff2 +0 -0
  14. package/fonts/files/roboto-cyrillic-700-italic.woff +0 -0
  15. package/fonts/files/roboto-cyrillic-700-italic.woff2 +0 -0
  16. package/fonts/files/roboto-cyrillic-700-normal.woff +0 -0
  17. package/fonts/files/roboto-cyrillic-700-normal.woff2 +0 -0
  18. package/fonts/files/roboto-greek-400-italic.woff +0 -0
  19. package/fonts/files/roboto-greek-400-italic.woff2 +0 -0
  20. package/fonts/files/roboto-greek-400-normal.woff +0 -0
  21. package/fonts/files/roboto-greek-400-normal.woff2 +0 -0
  22. package/fonts/files/roboto-greek-500-italic.woff +0 -0
  23. package/fonts/files/roboto-greek-500-italic.woff2 +0 -0
  24. package/fonts/files/roboto-greek-500-normal.woff +0 -0
  25. package/fonts/files/roboto-greek-500-normal.woff2 +0 -0
  26. package/fonts/files/roboto-greek-700-italic.woff +0 -0
  27. package/fonts/files/roboto-greek-700-italic.woff2 +0 -0
  28. package/fonts/files/roboto-greek-700-normal.woff +0 -0
  29. package/fonts/files/roboto-greek-700-normal.woff2 +0 -0
  30. package/fonts/files/roboto-latin-400-italic.woff +0 -0
  31. package/fonts/files/roboto-latin-400-italic.woff2 +0 -0
  32. package/fonts/files/roboto-latin-400-normal.woff +0 -0
  33. package/fonts/files/roboto-latin-400-normal.woff2 +0 -0
  34. package/fonts/files/roboto-latin-500-italic.woff +0 -0
  35. package/fonts/files/roboto-latin-500-italic.woff2 +0 -0
  36. package/fonts/files/roboto-latin-500-normal.woff +0 -0
  37. package/fonts/files/roboto-latin-500-normal.woff2 +0 -0
  38. package/fonts/files/roboto-latin-700-italic.woff +0 -0
  39. package/fonts/files/roboto-latin-700-italic.woff2 +0 -0
  40. package/fonts/files/roboto-latin-700-normal.woff +0 -0
  41. package/fonts/files/roboto-latin-700-normal.woff2 +0 -0
  42. package/fonts/files/roboto-latin-ext-400-italic.woff +0 -0
  43. package/fonts/files/roboto-latin-ext-400-italic.woff2 +0 -0
  44. package/fonts/files/roboto-latin-ext-400-normal.woff +0 -0
  45. package/fonts/files/roboto-latin-ext-400-normal.woff2 +0 -0
  46. package/fonts/files/roboto-latin-ext-500-italic.woff +0 -0
  47. package/fonts/files/roboto-latin-ext-500-italic.woff2 +0 -0
  48. package/fonts/files/roboto-latin-ext-500-normal.woff +0 -0
  49. package/fonts/files/roboto-latin-ext-500-normal.woff2 +0 -0
  50. package/fonts/files/roboto-latin-ext-700-italic.woff +0 -0
  51. package/fonts/files/roboto-latin-ext-700-italic.woff2 +0 -0
  52. package/fonts/files/roboto-latin-ext-700-normal.woff +0 -0
  53. package/fonts/files/roboto-latin-ext-700-normal.woff2 +0 -0
  54. package/icons/bcl-default-icons.svg +1 -1
  55. package/icons/bootstrap-icons.svg +1 -1
  56. package/js/oe-bcl-joinup.bundle.js +18 -13
  57. package/js/oe-bcl-joinup.bundle.js.map +1 -1
  58. package/js/oe-bcl-joinup.bundle.min.js +1 -1
  59. package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
  60. package/js/oe-bcl-joinup.esm.js +18 -13
  61. package/js/oe-bcl-joinup.esm.js.map +1 -1
  62. package/js/oe-bcl-joinup.esm.min.js +1 -1
  63. package/js/oe-bcl-joinup.esm.min.js.map +1 -1
  64. package/js/oe-bcl-joinup.umd.js +18 -13
  65. package/js/oe-bcl-joinup.umd.js.map +1 -1
  66. package/js/oe-bcl-joinup.umd.min.js +1 -1
  67. package/js/oe-bcl-joinup.umd.min.js.map +1 -1
  68. package/js/slim-select-2/slimselect.min.js +1 -1
  69. package/package.json +12 -12
  70. package/src/scss/oe-bcl-joinup.scss +3 -2
  71. package/templates/bcl-base-templates/listing-page.html.twig +17 -19
  72. package/templates/bcl-contact-form/contact-form.html.twig +3 -3
  73. package/templates/bcl-content-banner/content-banner.html.twig +3 -0
  74. package/templates/bcl-dropdown/dropdown.html.twig +12 -7
  75. package/templates/bcl-event/event.html.twig +5 -5
  76. package/templates/bcl-file/file.html.twig +1 -1
  77. package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
  78. package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
  79. package/templates/bcl-group/group-landing.html.twig +5 -5
  80. package/templates/bcl-group/group.html.twig +3 -3
  81. package/templates/bcl-header/header.html.twig +7 -42
  82. package/templates/bcl-landing-page/landing-page.html.twig +5 -8
  83. package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
  84. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +10 -7
  85. package/templates/bcl-modal/modal.html.twig +16 -4
  86. package/templates/bcl-navigation/navigation.html.twig +8 -0
  87. package/templates/bcl-page/page.html.twig +5 -5
  88. package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
  89. package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
  90. package/templates/bcl-person/person.html.twig +5 -5
  91. package/templates/bcl-project/project.html.twig +7 -7
  92. package/templates/bcl-project-status/project-contributions.html.twig +1 -1
  93. package/templates/bcl-search/search.html.twig +3 -3
  94. package/templates/bcl-subscription/subscription.html.twig +5 -5
  95. package/templates/{bcl-toast → bcl-toasts}/toasts.html.twig +17 -8
  96. package/templates/bcl-user/user-terms.html.twig +3 -3
  97. package/templates/bcl-user/user.html.twig +3 -3
@@ -10,6 +10,11 @@
10
10
  - toasts (object[]) format: [
11
11
  {
12
12
  - body (string) (default: '')
13
+ - body_attributes (drupal attrs)
14
+ - header (string) (default: '')
15
+ - header_attributes (drupal attrs)
16
+ - button_attributes (drupal attrs)
17
+ - custom_content (string) (default: '')
13
18
  - role (string) (default: 'alert')
14
19
  - with_close (boolean) (default: true)
15
20
  - autohide (boolean) (default: false)
@@ -66,6 +71,9 @@
66
71
  {% set _with_body_wrapper = _toast.with_body_wrapper ?? false %}
67
72
  {% set _body_wrapper_classes = _toast.body_wrapper_classes|default('') %}
68
73
  {% set _toast_attributes = _toast.attributes ?: create_attribute() %}
74
+ {% set _body_attributes = _toast.body_attributes ?: create_attribute() %}
75
+ {% set _header_attributes = _toast.header_attributes ?: create_attribute() %}
76
+ {% set _button_attributes = _toast.button_attributes ?: create_attribute() %}
69
77
  {% set _toast_attributes = _toast_attributes.addClass(_classes).setAttribute('aria-atomic', 'true') %}
70
78
  {% if _aria_live is not empty %}
71
79
  {% set _toast_attributes = _toast_attributes.setAttribute('aria-live', _aria_live) %}
@@ -82,16 +90,16 @@
82
90
  {% if _with_close or
83
91
  (_toast.header is defined and _toast.header is not empty)
84
92
  %}
85
- <div class="toast-header">
93
+ <div{{ _header_attributes.addClass(['toast-header']) }}>
86
94
  {{- _toast.header|default('') -}}
87
95
  {% if _with_close %}
88
- {% set button_attributes = create_attribute()
89
- .addClass(['btn-close'])
90
- .setAttribute('aria-label', 'close')
91
- .setAttribute('data-bs-dismiss', 'toast')
92
- %}
96
+ {% if not _button_attributes.hasAttribute('aria-label') %}
97
+ {% set _button_attributes = _button_attributes.setAttribute('aria-label', 'Close') %}
98
+ {% endif %}
93
99
  {%- include '@oe-bcl/bcl-button/button.html.twig' with {
94
- attributes: button_attributes,
100
+ attributes: _button_attributes
101
+ .addClass(['btn-close'])
102
+ .setAttribute('data-bs-dismiss', 'toast'),
95
103
  clean_class: true
96
104
  } only -%}
97
105
  {% endif %}
@@ -104,12 +112,13 @@
104
112
  {% endif %}
105
113
  >
106
114
  {% endif %}
107
- <div class="toast-body">
115
+ <div{{ _body_attributes.addClass(['toast-body']) }}>
108
116
  {{- _body -}}
109
117
  </div>
110
118
  {% if _with_body_wrapper %}
111
119
  </div>
112
120
  {% endif %}
121
+ {{- _toast.custom_content|default('') -}}
113
122
  </div>
114
123
  {% endfor %}
115
124
  {% endif %}
@@ -1,6 +1,6 @@
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
  {{ get_dummy_text(4, true) }}
5
5
  <ul class="mb-4-5">
6
6
  <li>{{ get_dummy_text() }}</li>
@@ -8,4 +8,4 @@
8
8
  <li>{{ get_dummy_text() }}</li>
9
9
  </ul>
10
10
  {% include '@oe-bcl/bcl-form/form.html.twig' with terms_form only %}
11
- {% endblock %}
11
+ {%- endblock -%}
@@ -1,6 +1,6 @@
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-navigation/navigation.html.twig" with navigation only %}
5
5
  <div class="tab-content">
6
6
  <div class="tab-pane fade show active" id="view" role="tabpanel" aria-labelledby="view-tab">
@@ -134,4 +134,4 @@
134
134
  {% include '@oe-bcl/bcl-form/form.html.twig' with cancel.form only %}
135
135
  </div>
136
136
  </div>
137
- {% endblock %}
137
+ {%- endblock -%}