@openeuropa/bcl-base-templates 1.10.6 → 1.10.8

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/data/layout.js CHANGED
@@ -3,11 +3,11 @@ import headerNoForm from "@openeuropa/bcl-data-header/data--no-form";
3
3
  import footerData from "@openeuropa/bcl-data-footer/data";
4
4
  import header_ucpkn from "@openeuropa/bcl-data-header/data--ucpkn";
5
5
  import header_joinup from "@openeuropa/bcl-data-header/data--neutral";
6
- import drupalAttribute from "drupal-attribute";
6
+ import { DrupalAttribute } from "drupal-attribute";
7
7
 
8
8
  const footer = {
9
9
  ...footerData,
10
- attributes: new drupalAttribute().addClass(["mt-md-4-75", "mt-4"]),
10
+ attributes: new DrupalAttribute().addClass(["mt-md-4-75", "mt-4"]),
11
11
  };
12
12
 
13
13
  export default {
@@ -8,20 +8,16 @@
8
8
  - pagination (object) (default: {})
9
9
  - sidebar (object) (default: '')
10
10
  #}
11
+ {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
11
12
 
12
- {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
13
-
14
- {% set _title = title|default('') %}
15
- {% set _title_tag = title_tag|default('h2') %}
16
- {% set _title_link = title_link|default({}) %}
17
- {% set _title_attributes = title_attributes ?: create_attribute() %}
18
13
  {% set _listing = listing|default({}) %}
19
- {% set _pagination = pagination|default({}) %}
20
- {% set _sidebar = sidebar|default({}) %}
21
-
22
- {% set _title_attributes = _title_attributes ?: create_attribute() %}
23
14
 
24
- {% block content_top %}
15
+ {%- block content_top %}
16
+ {% set _title = title|default('') %}
17
+ {% set _title_tag = title_tag|default('h2') %}
18
+ {% set _title_link = title_link|default({}) %}
19
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
20
+ {% set _title_attributes = _title_attributes ?: create_attribute() %}
25
21
  {% if filter_button %}
26
22
  {% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
27
23
  {% endif %}
@@ -29,7 +25,7 @@
29
25
  <div class="col-md-6 col-lg-8 align-self-center">
30
26
  {% if _title is not empty %}
31
27
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
32
- title: _title ~ ' (' ~ listing.items.length ~ ')',
28
+ title: _title ~ ' (' ~ (_listing.items|length) ~ ')',
33
29
  title_tag: _title_tag,
34
30
  title_link: _title_link,
35
31
  attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
@@ -54,21 +50,23 @@
54
50
  </div>
55
51
  </div>
56
52
  <hr class="d-none d-md-block mb-4-75"/>
57
- {% endblock %}
53
+ {%- endblock -%}
58
54
 
59
- {% block content %}
55
+ {%- block content %}
60
56
  {% if _listing is not empty %}
61
57
  {% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
62
58
  {% endif %}
63
- {% endblock %}
59
+ {%- endblock -%}
64
60
 
65
- {% block content_bottom %}
61
+ {%- block content_bottom %}
62
+ {% set _pagination = pagination|default({}) %}
66
63
  {% if _pagination is not empty %}
67
64
  <hr class="d-none d-md-block mt-4-5">
68
65
  {% include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
69
66
  {% endif %}
70
- {% endblock %}
67
+ {%- endblock -%}
71
68
 
72
- {% block sidebar %}
69
+ {%- block sidebar %}
70
+ {% set _sidebar = sidebar|default({}) %}
73
71
  {% include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
74
- {% endblock %}
72
+ {%- endblock -%}
package/package.json CHANGED
@@ -2,21 +2,21 @@
2
2
  "name": "@openeuropa/bcl-base-templates",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "1.10.6",
5
+ "version": "1.10.8",
6
6
  "description": "OE - BCL base templates",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-badge": "^1.10.6",
12
- "@openeuropa/bcl-button": "^1.10.6",
13
- "@openeuropa/bcl-content-banner": "^1.10.6",
14
- "@openeuropa/bcl-footer": "^1.10.6",
15
- "@openeuropa/bcl-header": "^1.10.6",
16
- "@openeuropa/bcl-listing": "^1.10.6",
17
- "@openeuropa/bcl-offcanvas": "^1.10.6",
18
- "@openeuropa/bcl-pagination": "^1.10.6",
19
- "@openeuropa/bcl-select": "^1.10.6"
11
+ "@openeuropa/bcl-badge": "^1.10.8",
12
+ "@openeuropa/bcl-button": "^1.10.8",
13
+ "@openeuropa/bcl-content-banner": "^1.10.8",
14
+ "@openeuropa/bcl-footer": "^1.10.8",
15
+ "@openeuropa/bcl-header": "^1.10.8",
16
+ "@openeuropa/bcl-listing": "^1.10.8",
17
+ "@openeuropa/bcl-offcanvas": "^1.10.8",
18
+ "@openeuropa/bcl-pagination": "^1.10.8",
19
+ "@openeuropa/bcl-select": "^1.10.8"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
@@ -32,5 +32,5 @@
32
32
  "design-system",
33
33
  "twig"
34
34
  ],
35
- "gitHead": "f2c1911b328b12531079c209ecada73a505713c2"
35
+ "gitHead": "9c2e64443ae179948cbf748c41d438af7a0f2421"
36
36
  }