@openeuropa/bcl-inpage-navigation 0.22.0 → 0.23.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/inpage-navigation.html.twig +16 -8
- package/package.json +3 -3
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
5
|
+
- title: (string) (default: '')
|
|
6
|
+
- title_tag: (string) (default: 'h5')
|
|
7
|
+
- title_link: (link object) (default: {})
|
|
8
|
+
- title_attributes (drupal attrs)
|
|
9
|
+
- full_layout: (boolean) (default: false)
|
|
10
|
+
- links: (array of link objects) (default: [])
|
|
11
|
+
- content: (string) (default: '')
|
|
9
12
|
#}
|
|
10
13
|
|
|
11
|
-
{# Internal properties #}
|
|
12
14
|
{% set _title = title|default('') %}
|
|
15
|
+
{% set _title_tag = title_tag|default('h3') %}
|
|
16
|
+
{% set _title_link = title_link|default({}) %}
|
|
17
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
13
18
|
{% set _links = links|default([]) %}
|
|
14
19
|
{% set _content = content|default('') %}
|
|
15
20
|
{% set _id = id|default('bcl-inpage-navigation-' ~ random(5)) %}
|
|
@@ -27,9 +32,12 @@ Parameters:
|
|
|
27
32
|
<div class="col-md-3 d-none d-md-block">
|
|
28
33
|
{% endif %}
|
|
29
34
|
<nav {{ attributes }}>
|
|
30
|
-
{%
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
36
|
+
title: _title,
|
|
37
|
+
title_tag: _title_tag,
|
|
38
|
+
title_link: _title_link,
|
|
39
|
+
attributes: _title_attributes,
|
|
40
|
+
} only %}
|
|
33
41
|
{% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
|
|
34
42
|
'pills': true,
|
|
35
43
|
'vertical': true,
|
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.
|
|
5
|
+
"version": "0.23.0",
|
|
6
6
|
"description": "OE - BCL inpage navigation",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-navigation": "^0.
|
|
11
|
+
"@openeuropa/bcl-navigation": "^0.23.0"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"design-system",
|
|
25
25
|
"twig"
|
|
26
26
|
],
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "fa2097e14024989cddf6f9cd7a9115bed5886aeb"
|
|
28
28
|
}
|