@openeuropa/bcl-theme-default 0.4068.202509021515 → 0.4298.202511051800

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 (59) hide show
  1. package/bcl-builder.config.js +3 -0
  2. package/css/color-scheme.min.css +1 -1
  3. package/css/color-scheme.min.css.map +1 -1
  4. package/css/oe-bcl-ckeditor5.min.css +1 -1
  5. package/css/oe-bcl-ckeditor5.min.css.map +1 -1
  6. package/css/oe-bcl-default.css +136 -45
  7. package/css/oe-bcl-default.css.map +1 -1
  8. package/css/oe-bcl-default.min.css +1 -1
  9. package/css/oe-bcl-default.min.css.map +1 -1
  10. package/icons/bcl-default-icons.svg +1 -1
  11. package/icons/bootstrap-icons.svg +1 -1
  12. package/js/oe-bcl-default.bundle.js +18 -13
  13. package/js/oe-bcl-default.bundle.js.map +1 -1
  14. package/js/oe-bcl-default.bundle.min.js +1 -1
  15. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  16. package/js/oe-bcl-default.esm.js +18 -13
  17. package/js/oe-bcl-default.esm.js.map +1 -1
  18. package/js/oe-bcl-default.esm.min.js +1 -1
  19. package/js/oe-bcl-default.esm.min.js.map +1 -1
  20. package/js/oe-bcl-default.umd.js +18 -13
  21. package/js/oe-bcl-default.umd.js.map +1 -1
  22. package/js/oe-bcl-default.umd.min.js +1 -1
  23. package/js/oe-bcl-default.umd.min.js.map +1 -1
  24. package/js/slim-select-2/slimselect.min.js +1 -1
  25. package/package.json +8 -8
  26. package/src/js/accordion-toggle/accordion-toggle.js +24 -9
  27. package/src/scss/_header.scss +8 -10
  28. package/src/scss/_icon.scss +0 -10
  29. package/src/scss/_mega-menu.scss +6 -6
  30. package/src/scss/_multiselect-2.scss +12 -0
  31. package/src/scss/_pagination-v2.scss +86 -0
  32. package/src/scss/base/_mixins.scss +9 -0
  33. package/src/scss/base/_variables.scss +3 -0
  34. package/src/scss/oe-bcl-default.scss +1 -0
  35. package/templates/bcl-base-templates/listing-page.html.twig +17 -19
  36. package/templates/bcl-contact-form/contact-form.html.twig +3 -3
  37. package/templates/bcl-content-banner/content-banner.html.twig +3 -0
  38. package/templates/bcl-dropdown/dropdown.html.twig +12 -7
  39. package/templates/bcl-event/event.html.twig +5 -5
  40. package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
  41. package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
  42. package/templates/bcl-group/group-landing.html.twig +5 -5
  43. package/templates/bcl-group/group.html.twig +3 -3
  44. package/templates/bcl-icon/icon.html.twig +1 -1
  45. package/templates/bcl-landing-page/landing-page.html.twig +5 -8
  46. package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
  47. package/templates/bcl-modal/modal.html.twig +16 -4
  48. package/templates/bcl-navigation/navigation.html.twig +8 -0
  49. package/templates/bcl-page/page.html.twig +5 -5
  50. package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
  51. package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
  52. package/templates/bcl-person/person.html.twig +5 -5
  53. package/templates/bcl-project/project.html.twig +7 -7
  54. package/templates/bcl-project-status/project-contributions.html.twig +1 -1
  55. package/templates/bcl-search/search.html.twig +3 -3
  56. package/templates/bcl-subscription/subscription.html.twig +5 -5
  57. package/templates/{bcl-toast → bcl-toasts}/toasts.html.twig +17 -8
  58. package/templates/bcl-user/user-terms.html.twig +3 -3
  59. package/templates/bcl-user/user.html.twig +3 -3
@@ -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
  {% if project_status is not empty %}
9
9
  {% if project_status_title is not empty %}
10
10
  {% set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
@@ -62,11 +62,11 @@
62
62
  {% endif %}
63
63
 
64
64
  {% if social_block is not empty %}
65
- {% block social_block %}
65
+ {%- block social_block %}
66
66
  {{ social_buttons }}
67
67
  {% include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
68
68
  {% include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
69
- {% endblock %}
69
+ {%- endblock -%}
70
70
  {% endif %}
71
71
 
72
- {% endblock %}
72
+ {%- endblock -%}
@@ -28,7 +28,7 @@
28
28
  <div {{ attributes }}>
29
29
  <div class="row">
30
30
 
31
- {% if _chart is not empty %}
31
+ {% if _chart %}
32
32
  <div class="bcl-project-contributions-chart col-5 col-md-3">
33
33
  {% block project_status_contrib_chart %}
34
34
  <div class="circular-progress" data-percentage="{{ _corporate_contributions }}">
@@ -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 banner %}
3
+ {%- block banner %}
4
4
  {% if banner.search_bar is defined %}
5
5
  <div class="bg-lighter pt-3 pb-4 pb-lg-3">
6
6
  <div class="container">
@@ -19,4 +19,4 @@
19
19
  </div>
20
20
  </div>
21
21
  {% endif %}
22
- {% endblock %}
22
+ {%- endblock -%}
@@ -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_bottom %}
7
+ {%- block content_bottom %}
8
8
  {% include '@oe-bcl/bcl-subscription-block/subscription-block.html.twig' with subscription only %}
9
9
  {% include '@oe-bcl/bcl-subscription/subscription-modal.html.twig' with modal only %}
10
- {% endblock %}
10
+ {%- endblock -%}
@@ -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 -%}