@openeuropa/bcl-theme-default 0.4068.202510062345 → 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.
- package/bcl-builder.config.js +3 -0
- package/css/color-scheme.min.css +1 -1
- package/css/color-scheme.min.css.map +1 -1
- package/css/oe-bcl-ckeditor5.min.css +1 -1
- package/css/oe-bcl-ckeditor5.min.css.map +1 -1
- package/css/oe-bcl-default.css +128 -26
- package/css/oe-bcl-default.css.map +1 -1
- package/css/oe-bcl-default.min.css +1 -1
- package/css/oe-bcl-default.min.css.map +1 -1
- package/icons/bcl-default-icons.svg +1 -1
- package/icons/bootstrap-icons.svg +1 -1
- package/js/oe-bcl-default.bundle.js +18 -13
- package/js/oe-bcl-default.bundle.js.map +1 -1
- package/js/oe-bcl-default.bundle.min.js +1 -1
- package/js/oe-bcl-default.bundle.min.js.map +1 -1
- package/js/oe-bcl-default.esm.js +18 -13
- package/js/oe-bcl-default.esm.js.map +1 -1
- package/js/oe-bcl-default.esm.min.js +1 -1
- package/js/oe-bcl-default.esm.min.js.map +1 -1
- package/js/oe-bcl-default.umd.js +18 -13
- package/js/oe-bcl-default.umd.js.map +1 -1
- package/js/oe-bcl-default.umd.min.js +1 -1
- package/js/oe-bcl-default.umd.min.js.map +1 -1
- package/js/slim-select-2/slimselect.min.js +1 -1
- package/package.json +8 -8
- package/src/js/accordion-toggle/accordion-toggle.js +24 -9
- package/src/scss/_mega-menu.scss +6 -6
- package/src/scss/_multiselect-2.scss +12 -0
- package/src/scss/_pagination-v2.scss +86 -0
- package/src/scss/base/_mixins.scss +9 -0
- package/src/scss/base/_variables.scss +3 -0
- package/src/scss/oe-bcl-default.scss +1 -0
- package/templates/bcl-base-templates/listing-page.html.twig +17 -19
- package/templates/bcl-contact-form/contact-form.html.twig +3 -3
- package/templates/bcl-content-banner/content-banner.html.twig +3 -0
- package/templates/bcl-dropdown/dropdown.html.twig +12 -7
- package/templates/bcl-event/event.html.twig +5 -5
- package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
- package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
- package/templates/bcl-group/group-landing.html.twig +5 -5
- package/templates/bcl-group/group.html.twig +3 -3
- package/templates/bcl-landing-page/landing-page.html.twig +5 -8
- package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
- package/templates/bcl-modal/modal.html.twig +16 -4
- package/templates/bcl-navigation/navigation.html.twig +8 -0
- package/templates/bcl-page/page.html.twig +5 -5
- package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
- package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
- package/templates/bcl-person/person.html.twig +5 -5
- package/templates/bcl-project/project.html.twig +7 -7
- package/templates/bcl-project-status/project-contributions.html.twig +1 -1
- package/templates/bcl-search/search.html.twig +3 -3
- package/templates/bcl-subscription/subscription.html.twig +5 -5
- package/templates/{bcl-toast → bcl-toasts}/toasts.html.twig +17 -8
- package/templates/bcl-user/user-terms.html.twig +3 -3
- 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
|
-
{
|
|
3
|
+
{%- block sidebar %}
|
|
4
4
|
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
6
6
|
|
|
7
|
-
{
|
|
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
|
-
{
|
|
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
|
|
93
|
+
<div{{ _header_attributes.addClass(['toast-header']) }}>
|
|
86
94
|
{{- _toast.header|default('') -}}
|
|
87
95
|
{% if _with_close %}
|
|
88
|
-
{%
|
|
89
|
-
|
|
90
|
-
|
|
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:
|
|
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
|
|
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
|
-
{
|
|
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
|
-
{
|
|
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
|
-
{
|
|
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
|
-
{
|
|
137
|
+
{%- endblock -%}
|