@openeuropa/bcl-inpage-navigation 0.4230.202512021730 → 0.4360.202601141610

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.
@@ -12,7 +12,7 @@ Parameters:
12
12
  - attributes (drupal attrs)
13
13
  #}
14
14
 
15
- {% set _title = title|default('') %}
15
+ {%- set _title = title|default('') %}
16
16
  {% set _title_tag = title_tag|default('h2') %}
17
17
  {% set _title_link = title_link|default({}) %}
18
18
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -22,19 +22,19 @@ Parameters:
22
22
  {% set _dropdown_id = dropdown_id|default('bcl-inpage-navigation-dropdown' ~ random(10000)) %}
23
23
  {% set _dyanmic_active = dynamic_active|default(false) %}
24
24
 
25
- {% if attributes is empty %}
26
- {% set attributes = create_attribute() %}
25
+ {%- if attributes is empty %}
26
+ {%- set attributes = create_attribute() %}
27
27
  {% endif %}
28
28
 
29
- {% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
29
+ {%- set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
30
30
 
31
- {% if not attributes.hasAttribute('aria-label') and not attributes.hasAttribute('aria-labelledby') %}
32
- {% set attributes = attributes.setAttribute('aria-labelledby', _dropdown_id) %}
31
+ {%- if not attributes.hasAttribute('aria-label') and not attributes.hasAttribute('aria-labelledby') %}
32
+ {%- set attributes = attributes.setAttribute('aria-labelledby', _dropdown_id) %}
33
33
  {% endif %}
34
34
 
35
- {% set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
35
+ {%- set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
36
36
  {% set _button_content %}
37
- {{ _title }}
37
+ {{- _title }}
38
38
  {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
39
39
  name: 'chevron-down',
40
40
  size: 's',
@@ -42,36 +42,36 @@ Parameters:
42
42
  } only -%}
43
43
  {% endset %}
44
44
 
45
- {% set _classes = [] %}
45
+ {%- set _classes = [] %}
46
46
 
47
- {% if _dyanmic_active %}
48
- {% set _classes = _classes|merge(['dynamic-active']) %}
49
- {% endif %}
47
+ {%- if _dyanmic_active %}
48
+ {%- set _classes = _classes|merge(['dynamic-active']) %}
49
+ {% endif -%}
50
50
 
51
51
  <nav{{ attributes.addClass(_classes) }}>
52
- {% set trigger_attributes = create_attribute()
52
+ {%- set trigger_attributes = create_attribute()
53
53
  .setAttribute('aria-expanded', 'false')
54
54
  .setAttribute('type', 'button')
55
55
  .setAttribute('id', _dropdown_id)
56
56
  .setAttribute('data-bs-toggle', 'dropdown')
57
57
  .addClass(['dropdown-toggle', 'h2', 'd-md-none']) %}
58
- {% include '@oe-bcl/bcl-button/button.html.twig' with {
58
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with {
59
59
  label: _button_content,
60
60
  clean_class: true,
61
61
  attributes: trigger_attributes,
62
62
  } only %}
63
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
63
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
64
64
  title: _title,
65
65
  title_tag: _title_tag,
66
66
  title_link: _title_link,
67
67
  attributes: _title_attributes,
68
- } only %}
68
+ } only -%}
69
69
  <div class="dropdown-menu">
70
- {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
70
+ {%- include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
71
71
  'pills': true,
72
72
  'vertical': true,
73
73
  'items': _links,
74
- } only %}
75
- </div>
74
+ } only -%}
75
+ </div>{# -#}
76
76
  </nav>
77
-
77
+ {#--#}
package/package.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "name": "@openeuropa/bcl-inpage-navigation",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.4230.202512021730",
5
+ "version": "0.4360.202601141610",
6
6
  "description": "OE - BCL inpage navigation",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-navigation": "^0.4230.202512021730"
11
+ "@openeuropa/bcl-navigation": "^0.4360.202601141610"
12
12
  },
13
13
  "devDependencies": {
14
14
  "lorem-ipsum": "2.0.8"
@@ -27,5 +27,5 @@
27
27
  "design-system",
28
28
  "twig"
29
29
  ],
30
- "gitHead": "19735e328b2b53ccefbcc6829e2aaf149a2c438c"
30
+ "gitHead": "2caf9255f88587416f6e83e572a1f20e4cf206f5"
31
31
  }