@openeuropa/bcl-gallery 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.
Files changed (2) hide show
  1. package/gallery.html.twig +15 -14
  2. package/package.json +5 -5
package/gallery.html.twig CHANGED
@@ -2,17 +2,18 @@
2
2
 
3
3
  {#
4
4
  Parameters:
5
- - "id" (string) (default: '')
6
- - "title" (string) (default: '')
7
- - "title_tag" (string) (default: 'h2')
8
- - "title_attributes" (drupal attrs)
9
- - "counter" (string) (default: '')
10
- - "toggle_collapsed" (string) (default: '')
11
- - "toggle_expanded" (string) (default: '')
12
- - "previous_label" (string) (default: '')
13
- - "next_label" (string) (default: '')
14
- - "max_visible_thumbnails" (int) (default: 5)
15
- - "items" (array of objects) format: [
5
+ - id (string) (default: '')
6
+ - title (string) (default: '')
7
+ - title_tag (string) (default: 'h2')
8
+ - title_link: (link object) (default: {})
9
+ - title_attributes (drupal attrs)
10
+ - counter (string) (default: '')
11
+ - toggle_collapsed (string) (default: '')
12
+ - toggle_expanded (string) (default: '')
13
+ - previous_label (string) (default: '')
14
+ - next_label (string) (default: '')
15
+ - max_visible_thumbnails (int) (default: 5)
16
+ - items (array of objects) format: [
16
17
  {
17
18
  thumbnails (string) img path
18
19
  media: (string) <img> tag
@@ -23,14 +24,13 @@ Parameters:
23
24
  }
24
25
  ...
25
26
  ],
26
- - "icon_path" (string) (default: '')
27
+ - icon_path (string) (default: '')
27
28
  #}
28
29
 
29
- {# Internal properties #}
30
-
31
30
  {% set _id = id|default('gallery-' ~ random(1000)) %}
32
31
  {% set _title = title|default('') %}
33
32
  {% set _title_tag = title_tag|default('h2') %}
33
+ {% set _title_link = title_link|default({}) %}
34
34
  {% set _title_attributes = title_attributes ?: create_attribute() %}
35
35
  {% set _counter = counter|default('') %}
36
36
  {% set _toggle_collapsed = toggle_collapsed|default('') %}
@@ -65,6 +65,7 @@ Parameters:
65
65
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
66
66
  title: _title,
67
67
  title_tag: _title_tag,
68
+ title_link: _title_link,
68
69
  attributes: _title_attributes,
69
70
  } only %}
70
71
  {% endif %}
package/package.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@openeuropa/bcl-gallery",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.22.0",
5
+ "version": "0.23.0",
6
6
  "description": "OE - BCL gallery",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-carousel": "^0.22.0",
12
- "@openeuropa/bcl-heading": "^0.22.0",
13
- "@openeuropa/bcl-icon": "^0.22.0"
11
+ "@openeuropa/bcl-carousel": "^0.23.0",
12
+ "@openeuropa/bcl-heading": "^0.23.0",
13
+ "@openeuropa/bcl-icon": "^0.23.0"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -26,5 +26,5 @@
26
26
  "design-system",
27
27
  "twig"
28
28
  ],
29
- "gitHead": "57304ad94ae3c234f2f2b904208ce540a7a53f23"
29
+ "gitHead": "fa2097e14024989cddf6f9cd7a9115bed5886aeb"
30
30
  }