@openeuropa/bcl-theme-default 0.16.0 → 0.17.0
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/css/oe-bcl-default.css +77 -0
- 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 -0
- package/package.json +5 -5
- package/src/scss/_header.scss +18 -0
- package/src/scss/oe-bcl-default.scss +1 -0
- package/templates/bcl-accordion/accordion.html.twig +9 -0
- package/templates/bcl-alert/alert.html.twig +4 -0
- package/templates/bcl-banner/banner.html.twig +5 -0
- package/templates/bcl-base-templates/content-type.html.twig +4 -0
- package/templates/bcl-blockquote/blockquote.html.twig +4 -0
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +4 -0
- package/templates/bcl-button/button.html.twig +8 -2
- package/templates/bcl-button-group/button-group.html.twig +4 -0
- package/templates/bcl-card/card.html.twig +4 -0
- package/templates/bcl-card-layout/card-layout.html.twig +4 -0
- package/templates/bcl-carousel/carousel.html.twig +4 -0
- package/templates/bcl-content-banner/content-banner.html.twig +4 -0
- package/templates/bcl-date-block/date-block.html.twig +4 -0
- package/templates/bcl-description-list/description-list.html.twig +6 -2
- package/templates/bcl-fact-figures/fact-figures.html.twig +6 -2
- package/templates/bcl-featured-media/featured-media.html.twig +6 -2
- package/templates/bcl-file/file.html.twig +6 -2
- package/templates/bcl-footer/footer.html.twig +1 -0
- package/templates/bcl-form/form.html.twig +4 -0
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +5 -0
- package/templates/bcl-links-block/links-block.html.twig +2 -2
- package/templates/bcl-list-group/list-group.html.twig +6 -0
- package/templates/bcl-listing/listing.html.twig +7 -2
- package/templates/bcl-offcanvas/offcanvas.html.twig +4 -0
- package/templates/bcl-pagination/pagination.html.twig +5 -1
- package/templates/bcl-placeholder/placeholder.html.twig +43 -0
- package/templates/bcl-progress/progress.html.twig +4 -0
- package/templates/bcl-recent-activities/recent-activities.html.twig +4 -0
- package/templates/bcl-search/search.html.twig +15 -0
- package/templates/bcl-search-form/search-form.html.twig +52 -0
- package/templates/bcl-select/select.html.twig +6 -0
- package/templates/bcl-table/table.html.twig +4 -0
- package/templates/bcl-timeline/timeline.html.twig +6 -2
- package/templates/bcl-toast/toasts.html.twig +4 -0
- package/templates/bcl-user/user-view-compact.html.twig +5 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-theme-default",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.17.0",
|
|
6
6
|
"description": "OE - BCL theme default",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "npm-run-all build:*",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@ecl/resources-flag-icons": "3.1.3",
|
|
17
|
-
"@openeuropa/bcl-bootstrap": "^0.
|
|
18
|
-
"@openeuropa/bcl-builder": "^0.
|
|
19
|
-
"@openeuropa/bcl-twig-templates": "^0.
|
|
17
|
+
"@openeuropa/bcl-bootstrap": "^0.17.0",
|
|
18
|
+
"@openeuropa/bcl-builder": "^0.17.0",
|
|
19
|
+
"@openeuropa/bcl-twig-templates": "^0.17.0",
|
|
20
20
|
"copyfiles": "2.4.1",
|
|
21
21
|
"cross-env": "7.0.3",
|
|
22
22
|
"glob": "7.2.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"design-system",
|
|
41
41
|
"twig"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "07ff24de8a209d80750a32cd52dfe9663fabf8e2"
|
|
44
44
|
}
|
package/src/scss/_header.scss
CHANGED
|
@@ -93,6 +93,7 @@ $header-link-active-background: #003776 !default;
|
|
|
93
93
|
font-weight: 300;
|
|
94
94
|
color: $white;
|
|
95
95
|
vertical-align: middle;
|
|
96
|
+
max-width: 80%;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
.bcl-header .navbar-toggler {
|
|
@@ -144,6 +145,23 @@ $header-link-active-background: #003776 !default;
|
|
|
144
145
|
justify-content: right;
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
|
|
149
|
+
.bcl-header__navbar {
|
|
150
|
+
.navbar-collapse {
|
|
151
|
+
max-width: 100%;
|
|
152
|
+
.nav-item {
|
|
153
|
+
&.dropdown {
|
|
154
|
+
max-width: 100%;
|
|
155
|
+
a {
|
|
156
|
+
white-space: normal;
|
|
157
|
+
}
|
|
158
|
+
.dropdown-menu {
|
|
159
|
+
max-width: 100%;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
147
165
|
}
|
|
148
166
|
|
|
149
167
|
@include media-breakpoint-up(lg) {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
@import "@openeuropa/bcl-bootstrap/scss/accordion";
|
|
28
28
|
@import "@openeuropa/bcl-bootstrap/scss/breadcrumb";
|
|
29
29
|
@import "@openeuropa/bcl-bootstrap/scss/pagination";
|
|
30
|
+
@import "@openeuropa/bcl-bootstrap/scss/placeholders";
|
|
30
31
|
@import "@openeuropa/bcl-bootstrap/scss/badge";
|
|
31
32
|
@import "@openeuropa/bcl-bootstrap/scss/alert";
|
|
32
33
|
@import "@openeuropa/bcl-bootstrap/scss/progress";
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
{
|
|
9
9
|
title: (string),
|
|
10
10
|
content: (block),
|
|
11
|
+
stay_open (boolean) (default: false) stay open after another selected
|
|
11
12
|
},
|
|
12
13
|
...
|
|
13
14
|
]
|
|
@@ -23,6 +24,11 @@
|
|
|
23
24
|
{% if _flush %}
|
|
24
25
|
{% set _classes = _classes|merge(['accordion-flush']) %}
|
|
25
26
|
{% endif %}
|
|
27
|
+
|
|
28
|
+
{% if attributes is empty %}
|
|
29
|
+
{% set attributes = create_attribute() %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
26
32
|
{% set attributes = attributes.addClass(_classes).setAttribute('id', 'accordion-' ~ _id) %}
|
|
27
33
|
|
|
28
34
|
{% if _items is not empty %}
|
|
@@ -55,7 +61,10 @@
|
|
|
55
61
|
id="collapse-{{ _id }}-{{ loop.index }}"
|
|
56
62
|
class="accordion-collapse collapse{{ _open_item ? ' show' }}"
|
|
57
63
|
aria-labelledby="heading-{{ _id }}-{{ loop.index }}"
|
|
64
|
+
role="region"
|
|
65
|
+
{% if not _item.stay_open %}
|
|
58
66
|
data-bs-parent="#accordion-{{ _id }}"
|
|
67
|
+
{% endif %}
|
|
59
68
|
>
|
|
60
69
|
<div class="accordion-body">
|
|
61
70
|
{%- set _content = _item.content|default('') %}
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
{% set _classes = _classes|merge(['fade', 'show']) %}
|
|
38
38
|
{% endif %}
|
|
39
39
|
|
|
40
|
+
{% if attributes is empty %}
|
|
41
|
+
{% set attributes = create_attribute() %}
|
|
42
|
+
{% endif %}
|
|
43
|
+
|
|
40
44
|
{% set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') %}
|
|
41
45
|
|
|
42
46
|
<div {{ attributes }}>
|
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
{% set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
|
|
62
62
|
{% endif %}
|
|
63
63
|
|
|
64
|
+
{% if attributes is empty %}
|
|
65
|
+
{% set attributes = create_attribute() %}
|
|
66
|
+
{% endif %}
|
|
67
|
+
|
|
64
68
|
{% if _with_header %}
|
|
65
69
|
{% include '@oe-bcl/bcl-header/header.html.twig' with header only %}
|
|
66
70
|
{% endif %}
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
{% set _alignment = alignment|default('left') %}
|
|
15
15
|
{% set _classes = ['text-' ~ _alignment] %}
|
|
16
16
|
|
|
17
|
+
{% if attributes is empty %}
|
|
18
|
+
{% set attributes = create_attribute() %}
|
|
19
|
+
{% endif %}
|
|
20
|
+
|
|
17
21
|
{% set attributes = attributes.addClass(_classes) %}
|
|
18
22
|
|
|
19
23
|
<figure
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
{% set _links = links|default([]) %}
|
|
9
9
|
{% set _icons_path = icons_path|default('') %}
|
|
10
10
|
|
|
11
|
+
{% if attributes is empty %}
|
|
12
|
+
{% set attributes = create_attribute() %}
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
11
15
|
{% set attributes = attributes.setAttribute('aria-label', 'breadcrumb') %}
|
|
12
16
|
|
|
13
17
|
{% if _links is not empty %}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
- icon (icon object) (default: {}): predefined structure for Icon component
|
|
16
16
|
- icon_position (string) (default: after)
|
|
17
17
|
- options ["after", "before"]
|
|
18
|
+
- icon_spacing (string) (default: '')
|
|
19
|
+
- options ["sm", "md", "lg"]
|
|
18
20
|
- clean_class (boolean) (default: false)
|
|
19
21
|
- spinner (spinner object) (default: {})
|
|
20
22
|
- show_spinner (boolean) (default: false)
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
{% set _id = id|default('') %}
|
|
32
34
|
{% set _icon = icon|default({}) %}
|
|
33
35
|
{% set _icon_position = icon_position|default('after') %}
|
|
36
|
+
{% set _icon_spacing = icon_spacing|default('') %}
|
|
34
37
|
{% set _show_spinner = show_spinner|default(false) %}
|
|
35
38
|
{% set _spinner = spinner|default({}) %}
|
|
36
39
|
{% set _clean_class = clean_class|default(false) %}
|
|
@@ -54,6 +57,9 @@
|
|
|
54
57
|
{% if _classes is not empty %}
|
|
55
58
|
{% set attributes = attributes.addClass(_classes) %}
|
|
56
59
|
{% endif %}
|
|
60
|
+
{% if _icon_spacing is not empty %}
|
|
61
|
+
{% set _icon_spacing = _icon_spacing ~ '-' %}
|
|
62
|
+
{% endif %}
|
|
57
63
|
{% set attributes = attributes.setAttribute('type', _type) %}
|
|
58
64
|
{% if _icon is not empty %}
|
|
59
65
|
{% set _icon = _icon|merge({
|
|
@@ -69,12 +75,12 @@
|
|
|
69
75
|
{% endif %}
|
|
70
76
|
{% if _icon_position == 'before' %}
|
|
71
77
|
{% set _icon = _icon|merge({
|
|
72
|
-
attributes: _icon.attributes.addClass('me-2-5')
|
|
78
|
+
attributes: _icon.attributes.addClass('me-' ~ _icon_spacing ~ '2-5')
|
|
73
79
|
})
|
|
74
80
|
%}
|
|
75
81
|
{% else %}
|
|
76
82
|
{% set _icon = _icon|merge({
|
|
77
|
-
attributes: _icon.attributes.addClass('ms-2-5')
|
|
83
|
+
attributes: _icon.attributes.addClass('ms-' ~ _icon_spacing ~ '2-5')
|
|
78
84
|
})
|
|
79
85
|
%}
|
|
80
86
|
{% endif %}
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
|
|
25
25
|
{% set _classes = _classes|merge(['btn-group-' ~ _size]) %}
|
|
26
26
|
|
|
27
|
+
{% if attributes is empty %}
|
|
28
|
+
{% set attributes = create_attribute() %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
|
|
27
31
|
{% if _aria_label is not empty %}
|
|
28
32
|
{% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
|
|
29
33
|
{% endif %}
|
|
@@ -192,6 +192,10 @@
|
|
|
192
192
|
attributes: create_attribute()
|
|
193
193
|
}) %}
|
|
194
194
|
{% endif %}
|
|
195
|
+
{% set _badge = _badge|merge({
|
|
196
|
+
attributes: _badge.attributes.addClass('mb-2')
|
|
197
|
+
})
|
|
198
|
+
%}
|
|
195
199
|
{% if not loop.last %}
|
|
196
200
|
{% set _badge = _badge|merge({
|
|
197
201
|
attributes: _badge.attributes.addClass('me-2')
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
{% set _classes = _classes|merge(['carousel-dark']) %}
|
|
44
44
|
{% endif %}
|
|
45
45
|
|
|
46
|
+
{% if attributes is empty %}
|
|
47
|
+
{% set attributes = create_attribute() %}
|
|
48
|
+
{% endif %}
|
|
49
|
+
|
|
46
50
|
{% if _id is not empty %}
|
|
47
51
|
{% set attributes = attributes.setAttribute('id', _id) %}
|
|
48
52
|
{% endif %}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
5
|
- title: (string) (default: "")
|
|
6
|
-
- title_tag: (string) (default: "
|
|
6
|
+
- title_tag: (string) (default: "h2")
|
|
7
7
|
- "items" (array) (default: []): format: [
|
|
8
8
|
{
|
|
9
9
|
"term" (object or array of object) -format: {
|
|
@@ -21,10 +21,14 @@
|
|
|
21
21
|
{# Parameters #}
|
|
22
22
|
|
|
23
23
|
{% set _title = title|default('') %}
|
|
24
|
-
{% set _title_tag = title_tag|default('
|
|
24
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
25
25
|
{% set _items = items|default([]) %}
|
|
26
26
|
{% set _variant = variant|default('') %}
|
|
27
27
|
|
|
28
|
+
{% if attributes is empty %}
|
|
29
|
+
{% set attributes = create_attribute() %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
28
32
|
{% if _variant == 'horizontal' %}
|
|
29
33
|
{% set attributes = attributes.addClass(["d-md-grid", "grid-3-9"]) %}
|
|
30
34
|
{% endif %}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
5
|
- "title" (string) (default: '')
|
|
6
|
-
- "title_tag" (string) (default: '
|
|
6
|
+
- "title_tag" (string) (default: 'h2')
|
|
7
7
|
- "variant" (string) (default: '') options:
|
|
8
8
|
[ default, block ]
|
|
9
9
|
- "display_icons" (boolean) (default: true)
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{# Parameters #}
|
|
26
26
|
|
|
27
27
|
{% set _title = title|default('') %}
|
|
28
|
-
{% set _title_tag = title_tag|default('
|
|
28
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
29
29
|
{% set _variant = variant|default('default') %}
|
|
30
30
|
{% set _css_classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
|
|
31
31
|
{% set _display_icons = display_icons ?? true %}
|
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
{% if _equal_height %}
|
|
61
61
|
{% set _cols_classes = _cols_classes ~ ' h-100' %}
|
|
62
62
|
{% endif %}
|
|
63
|
+
{% if attributes is empty %}
|
|
64
|
+
{% set attributes = create_attribute() %}
|
|
65
|
+
{% endif %}
|
|
66
|
+
|
|
63
67
|
{% set attributes = attributes.addClass(_css_classes) %}
|
|
64
68
|
|
|
65
69
|
<div {{ attributes }}>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- with_text (boolean) (default: false)
|
|
5
5
|
- title: (string) (default: '')
|
|
6
|
-
- title_tag: (string) (default: '
|
|
6
|
+
- title_tag: (string) (default: 'h2')
|
|
7
7
|
- image: (string) (default: "")
|
|
8
8
|
- poster_image: (string) (default: "")
|
|
9
9
|
- content: (string) (default: "")
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
#}
|
|
34
34
|
|
|
35
35
|
{% set _title = title|default('') %}
|
|
36
|
-
{% set _title_tag = title_tag|default('
|
|
36
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
37
37
|
{% set _with_text = with_text|default(false) %}
|
|
38
38
|
{% set _wrapper_classes = 'bcl-featured-item' %}
|
|
39
39
|
{% set _description = description|default('') %}
|
|
@@ -53,6 +53,10 @@
|
|
|
53
53
|
{% set _wrapper_classes = _wrapper_classes ~ ' ' ~ wrapper_classes %}
|
|
54
54
|
{% endif %}
|
|
55
55
|
|
|
56
|
+
{% if attributes is empty %}
|
|
57
|
+
{% set attributes = create_attribute() %}
|
|
58
|
+
{% endif %}
|
|
59
|
+
|
|
56
60
|
{% if _with_text %}
|
|
57
61
|
<div class="{{ _wrapper_classes }}">
|
|
58
62
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
5
|
- title (string) (default: '')
|
|
6
|
-
- title_tag (string) (default: '
|
|
6
|
+
- title_tag (string) (default: 'h2')
|
|
7
7
|
- item_title (string) (default: '')
|
|
8
8
|
- icon (icon Object) (default: {})
|
|
9
9
|
- text (string) (default: '')
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
{% set _icon = icon|default({}) %}
|
|
38
38
|
{% set _title = title|default('') %}
|
|
39
|
-
{% set _title_tag = title_tag|default('
|
|
39
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
40
40
|
{% set _item_title = item_title|default('') %}
|
|
41
41
|
{% set _text = text|default('') %}
|
|
42
42
|
{% set _content = content|default('') %}
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
}) %}
|
|
58
58
|
{% endif %}
|
|
59
59
|
|
|
60
|
+
{% if attributes is empty %}
|
|
61
|
+
{% set attributes = create_attribute() %}
|
|
62
|
+
{% endif %}
|
|
63
|
+
|
|
60
64
|
{% if _title is not empty %}
|
|
61
65
|
{% set _title_classes = 'fw-bold mb-4' %}
|
|
62
66
|
<{{ _title_tag }} class="{{ _title_classes }}">
|
|
@@ -14,6 +14,11 @@ Parameters:
|
|
|
14
14
|
{% set _content = content|default('') %}
|
|
15
15
|
{% set _id = id|default('bcl-inpage-navigation-' ~ random(5)) %}
|
|
16
16
|
{% set _full_layout = full_layout|default(false) %}
|
|
17
|
+
|
|
18
|
+
{% if attributes is empty %}
|
|
19
|
+
{% set attributes = create_attribute() %}
|
|
20
|
+
{% endif %}
|
|
21
|
+
|
|
17
22
|
{% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
|
|
18
23
|
|
|
19
24
|
{# Print the result #}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
- variant: (string) (default: "vertical")
|
|
7
7
|
- options ["vertical", "horizontal"]
|
|
8
8
|
- title: (string) (default: "")
|
|
9
|
-
- title_tag: (string) (default: "
|
|
9
|
+
- title_tag: (string) (default: "h2")
|
|
10
10
|
- links (array of link objects) (default: [])
|
|
11
11
|
#}
|
|
12
12
|
|
|
13
13
|
{% set _background = background|default("gray") %}
|
|
14
14
|
{% set _variant = variant|default("vertical") %}
|
|
15
15
|
{% set _title = title|default("") %}
|
|
16
|
-
{% set _title_tag = title_tag|default("
|
|
16
|
+
{% set _title_tag = title_tag|default("h2") %}
|
|
17
17
|
{% set _links = links|default([])%}
|
|
18
18
|
|
|
19
19
|
{% if attributes is empty %}
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
{% set _type = type|default('unordered') %}
|
|
33
33
|
{% set _items = items|default([]) %}
|
|
34
34
|
{% set _classes = ['list-group'] %}
|
|
35
|
+
|
|
35
36
|
{% if _flush %}
|
|
36
37
|
{% set _classes = _classes|merge(['list-group-flush']) %}
|
|
37
38
|
{% endif %}
|
|
@@ -41,6 +42,11 @@
|
|
|
41
42
|
{% if _horizontal is not empty %}
|
|
42
43
|
{% set _classes = _classes|merge(['list-group-' ~ _horizontal]) %}
|
|
43
44
|
{% endif %}
|
|
45
|
+
|
|
46
|
+
{% if attributes is empty %}
|
|
47
|
+
{% set attributes = create_attribute() %}
|
|
48
|
+
{% endif %}
|
|
49
|
+
|
|
44
50
|
{% if _id is not empty %}
|
|
45
51
|
{% set attributes = attributes.setAttribute('id', _id) %}
|
|
46
52
|
{% endif %}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
- variant: (string) (default: "horizontal") options:
|
|
5
5
|
[ default-1-col, highlight-1-col, default-2-col, default-3-col, highlight-2-col, highlight-3-col ]
|
|
6
6
|
- title: (string) (default: "")
|
|
7
|
-
- title_tag: (string) (default: "
|
|
7
|
+
- title_tag: (string) (default: "h2")
|
|
8
8
|
- items: (array of objects of type card)
|
|
9
9
|
- link: (object of type link)
|
|
10
10
|
- alignment: (string) (default: '') options:
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{% set _items = items|default([]) %}
|
|
15
15
|
{% set _variant = variant|default('default-1-col') %}
|
|
16
16
|
{% set _title = title|default('') %}
|
|
17
|
-
{% set _title_tag = title_tag|default('
|
|
17
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
18
18
|
{% set _alignment = alignment|default('') %}
|
|
19
19
|
{% set _link = link|default({}) %}
|
|
20
20
|
{% set _classes = ['bcl-listing', 'bcl-listing--' ~ _variant] %}
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
gutter: '4',
|
|
26
26
|
attributes: create_attribute(),
|
|
27
27
|
} %}
|
|
28
|
+
|
|
29
|
+
{% if attributes is empty %}
|
|
30
|
+
{% set attributes = create_attribute() %}
|
|
31
|
+
{% endif %}
|
|
32
|
+
|
|
28
33
|
{% set attributes = attributes.addClass(_classes) %}
|
|
29
34
|
|
|
30
35
|
<div {{ attributes }}>
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
{% set _aria_labelled = _title.id|default('') %}
|
|
42
42
|
{% endif %}
|
|
43
43
|
|
|
44
|
+
{% if attributes is empty %}
|
|
45
|
+
{% set attributes = create_attribute() %}
|
|
46
|
+
{% endif %}
|
|
47
|
+
|
|
44
48
|
{% if _aria_labelled is defined and _aria_labelled is not empty %}
|
|
45
49
|
{% set attributes = attributes.setAttribute('aria-labelledby', _aria_labelled) %}
|
|
46
50
|
{% endif %}
|
|
@@ -47,11 +47,15 @@
|
|
|
47
47
|
{% set _classes = _classes ~ ' justify-content-' ~ _alignment %}
|
|
48
48
|
{% endif %}
|
|
49
49
|
|
|
50
|
+
{% if attributes is empty %}
|
|
51
|
+
{% set attributes = create_attribute() %}
|
|
52
|
+
{% endif %}
|
|
53
|
+
|
|
50
54
|
{% if _aria_label is not empty %}
|
|
51
55
|
{% set attributes = attributes.setAttribute('aria-label', aria_label) %}
|
|
52
56
|
{% endif %}
|
|
53
57
|
{% if _extra_classes is not empty %}
|
|
54
|
-
{% set _class = _class ~ ' ' ~ _extra_classes %}
|
|
58
|
+
{% set _class = _class ~ ' ' ~ _extra_classes %}
|
|
55
59
|
{% endif %}
|
|
56
60
|
|
|
57
61
|
<nav
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{% spaceless %}
|
|
2
|
+
|
|
3
|
+
{# Parameters:
|
|
4
|
+
- width (int) (default: 0) - between 0-100
|
|
5
|
+
- variant (string) (default: '')
|
|
6
|
+
- options : ["primary", "secondary", "success", "danger", "warning", "info", "light", "dark"]
|
|
7
|
+
- size (string) (default: '')
|
|
8
|
+
- options : ["xs", "lg"]
|
|
9
|
+
- animation (string) (default: '')
|
|
10
|
+
- options : ["glow", "wave"]
|
|
11
|
+
#}
|
|
12
|
+
|
|
13
|
+
{% set _width = width|default(0) %}
|
|
14
|
+
{% set _variant = variant|default('') %}
|
|
15
|
+
{% set _size = size|default('') %}
|
|
16
|
+
{% set _animation = animation|default('') %}
|
|
17
|
+
{% set _classes = ['placeholder'] %}
|
|
18
|
+
|
|
19
|
+
{% if _size is not empty %}
|
|
20
|
+
{% set _classes = _classes|merge(['placeholder-' ~ _size]) %}
|
|
21
|
+
{% endif %}
|
|
22
|
+
|
|
23
|
+
{% if _variant is not empty %}
|
|
24
|
+
{% set _classes = _classes|merge(['bg-' ~ _variant]) %}
|
|
25
|
+
{% endif %}
|
|
26
|
+
|
|
27
|
+
{% if attributes is empty %}
|
|
28
|
+
{% set attributes = create_attribute() %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
|
|
31
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
32
|
+
{% set attributes = attributes.setAttribute('style', 'width: ' ~ _width ~ '%;') %}
|
|
33
|
+
|
|
34
|
+
{% if _animation is not empty %}
|
|
35
|
+
<p class="placeholder-{{ _animation }}">
|
|
36
|
+
{% endif %}
|
|
37
|
+
<span {{- attributes -}} >
|
|
38
|
+
</span>
|
|
39
|
+
{% if _animation is not empty %}
|
|
40
|
+
</p>
|
|
41
|
+
{% endif %}
|
|
42
|
+
|
|
43
|
+
{% endspaceless %}
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
{% set _classes = _classes ~ ' bg-' ~ _variant %}
|
|
33
33
|
{% endif %}
|
|
34
34
|
|
|
35
|
+
{% if attributes is empty %}
|
|
36
|
+
{% set attributes = create_attribute() %}
|
|
37
|
+
{% endif %}
|
|
38
|
+
|
|
35
39
|
{% set attributes = attributes.addClass(['progress']) %}
|
|
36
40
|
|
|
37
41
|
{% if _bar_label is empty %}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" %}
|
|
2
|
+
|
|
3
|
+
{% block banner %}
|
|
4
|
+
{% if banner.search_bar is defined %}
|
|
5
|
+
<div class="bg-lighter py-4 py-lg-3">
|
|
6
|
+
<div class="container">
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-12 col-lg-6 offset-lg-3">
|
|
9
|
+
{% include '@oe-bcl/bcl-search-form/search-form.html.twig' with banner.search_bar only %}
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% endblock %}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{% spaceless %}
|
|
2
|
+
|
|
3
|
+
{# Parameters:
|
|
4
|
+
- pill: (boolean) (default: false)
|
|
5
|
+
- icon: (icon Object) (default: {})
|
|
6
|
+
- submit: (button Object) (default: {})
|
|
7
|
+
- input: (form input Object) (default: {})
|
|
8
|
+
]
|
|
9
|
+
#}
|
|
10
|
+
|
|
11
|
+
{% set _pill = pill|default(false) %}
|
|
12
|
+
{% set _icon = icon|default({}) %}
|
|
13
|
+
{% set _submit = submit|default({}) %}
|
|
14
|
+
{% set _input = input|default({}) %}
|
|
15
|
+
|
|
16
|
+
{% set _classes = ["bcl-search-form"] %}
|
|
17
|
+
|
|
18
|
+
{% if _pill %}
|
|
19
|
+
{% set _classes = _classes|merge(['rounded']) %}
|
|
20
|
+
{% endif %}
|
|
21
|
+
|
|
22
|
+
{% if _submit is not empty %}
|
|
23
|
+
{% set _classes = _classes|merge(['submittable']) %}
|
|
24
|
+
{% endif %}
|
|
25
|
+
|
|
26
|
+
{% if _icon is not empty %}
|
|
27
|
+
{% set _input = _input|merge({
|
|
28
|
+
attributes: _input.attributes.addClass("ps-5")
|
|
29
|
+
}) %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
32
|
+
{% if attributes is empty %}
|
|
33
|
+
{% set attributes = create_attribute() %}
|
|
34
|
+
{% endif %}
|
|
35
|
+
|
|
36
|
+
{% set attributes = attributes.addClass( _classes ) %}
|
|
37
|
+
|
|
38
|
+
<form
|
|
39
|
+
{{ attributes }}
|
|
40
|
+
>
|
|
41
|
+
<div class="bcl-search-form__group">
|
|
42
|
+
{% if _icon is not empty %}
|
|
43
|
+
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _icon only %}
|
|
44
|
+
{% endif %}
|
|
45
|
+
{% include '@oe-bcl/bcl-form-input/form-input.html.twig' with _input only %}
|
|
46
|
+
{% if _submit is not empty %}
|
|
47
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _submit only %}
|
|
48
|
+
{% endif %}
|
|
49
|
+
</div>
|
|
50
|
+
</form>
|
|
51
|
+
|
|
52
|
+
{% endspaceless %}
|