@ecl/gallery 5.0.0-alpha.10 → 5.0.0-alpha.12
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/README.md +0 -7
- package/gallery-item.html.twig +10 -15
- package/gallery-overlay.html.twig +0 -1
- package/gallery-print.scss +1 -1
- package/gallery.html.twig +0 -4
- package/gallery.js +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -36,7 +36,6 @@ npm install --save @ecl/gallery
|
|
|
36
36
|
- "share_path" (optional) (string) (default: '')
|
|
37
37
|
- **"visible_items"** (integer) (default: 8) Number of visible items in an expandable gallery
|
|
38
38
|
- **"expandable"** (boolean) (default: true) collapsible/expandable gallery
|
|
39
|
-
- **"icon_path"** (string) (default: '') Path to the icon sprite
|
|
40
39
|
- **"sr_gallery_label"** (string) (default: ''): additional label for the gallery, providing instruction; for screen readers
|
|
41
40
|
- **"sr_video_label"** (string) (default: ''): additional label for the video items; for screen readers
|
|
42
41
|
- **"sr_video_player"** (string) (default: ''): additional label for the video player; for screen readers
|
|
@@ -96,7 +95,6 @@ npm install --save @ecl/gallery
|
|
|
96
95
|
description: 'Living, working, travelling in the EU',
|
|
97
96
|
meta: 'Copyright, Author, Licence for image 2',
|
|
98
97
|
icon: {
|
|
99
|
-
path: 'path/to/icons.svg',
|
|
100
98
|
name: 'audio',
|
|
101
99
|
},
|
|
102
100
|
share_href: '/share#example-image2.jpg',
|
|
@@ -110,7 +108,6 @@ npm install --save @ecl/gallery
|
|
|
110
108
|
aria_label: "View all link aria-label value"
|
|
111
109
|
},
|
|
112
110
|
icon: {
|
|
113
|
-
path: "/icons.svg",
|
|
114
111
|
name: "external",
|
|
115
112
|
size: "s"
|
|
116
113
|
}
|
|
@@ -120,7 +117,6 @@ npm install --save @ecl/gallery
|
|
|
120
117
|
variant: 'ghost',
|
|
121
118
|
label: 'Close',
|
|
122
119
|
icon: {
|
|
123
|
-
path: 'path/to/icons.svg',
|
|
124
120
|
name: 'close',
|
|
125
121
|
size: 's',
|
|
126
122
|
},
|
|
@@ -129,7 +125,6 @@ npm install --save @ecl/gallery
|
|
|
129
125
|
variant: 'ghost',
|
|
130
126
|
label: 'Previous',
|
|
131
127
|
icon: {
|
|
132
|
-
path: 'path/to/icons.svg',
|
|
133
128
|
name: 'corner-arrow',
|
|
134
129
|
transform: 'rotate-270',
|
|
135
130
|
size: 'l',
|
|
@@ -140,7 +135,6 @@ npm install --save @ecl/gallery
|
|
|
140
135
|
variant: 'ghost',
|
|
141
136
|
label: 'Next',
|
|
142
137
|
icon: {
|
|
143
|
-
path: 'path/to/icons.svg',
|
|
144
138
|
name: 'corner-arrow',
|
|
145
139
|
transform: 'rotate-90',
|
|
146
140
|
size: 'l',
|
|
@@ -151,7 +145,6 @@ npm install --save @ecl/gallery
|
|
|
151
145
|
share: {
|
|
152
146
|
label: 'Share',
|
|
153
147
|
icon: {
|
|
154
|
-
path: 'path/to/icons.svg',
|
|
155
148
|
name: 'share',
|
|
156
149
|
size: 'fluid',
|
|
157
150
|
},
|
package/gallery-item.html.twig
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
- "embedded_video" (optional) (object) (default: {})
|
|
15
15
|
- "sr_video_audio" (string) (default: ''): additional text to indicate if there is an audio description; for screen readers
|
|
16
16
|
- "share_path" (optional) (string) (default: '')
|
|
17
|
-
- "icon_path": (string) (default '')
|
|
18
17
|
- "sr_video_label" (string) (default: ''): additional label for the video items; for screen readers
|
|
19
18
|
- "sr_video_player" (string) (default: ''): additional label for the video player; for screen readers
|
|
20
19
|
- "picture_zoom" (bool) (default: false): Should the thumbnail pictures be animated?
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
{% set _item = item|default({}) %}
|
|
37
36
|
{% set _picture = item.picture|default({}) %}
|
|
38
37
|
{% set _thumbnail = item.thumbnail|default({}) %}
|
|
39
|
-
{% set _icon_path = icon_path|default('') %}
|
|
40
38
|
{% set _sr_video_label = sr_video_label|default('') %}
|
|
41
39
|
{% set _sr_video_player = sr_video_player|default('') %}
|
|
42
40
|
{% set _picture_zoom = picture_zoom|default(false) %}
|
|
@@ -118,19 +116,16 @@
|
|
|
118
116
|
{% set _image_alt = _image_alt ~ ' - ' ~ _sr_video_label %}
|
|
119
117
|
{% endif %}
|
|
120
118
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
} only %}
|
|
132
|
-
</div>
|
|
133
|
-
{% endif %}
|
|
119
|
+
<div class="ecl-gallery__item-icon-wrapper">
|
|
120
|
+
{%- include '@ecl/icon/icon.html.twig' with {
|
|
121
|
+
icon: {
|
|
122
|
+
name: 'play-filled',
|
|
123
|
+
size: 'l',
|
|
124
|
+
color: 'inverted',
|
|
125
|
+
},
|
|
126
|
+
extra_classes: 'ecl-gallery__item-icon',
|
|
127
|
+
} only %}
|
|
128
|
+
</div>
|
|
134
129
|
{% endif %}
|
|
135
130
|
|
|
136
131
|
{% set _thumbnail_markup %}
|
package/gallery-print.scss
CHANGED
|
@@ -78,7 +78,7 @@ $gallery-print: null !default;
|
|
|
78
78
|
|
|
79
79
|
.ecl-gallery__description {
|
|
80
80
|
align-items: center;
|
|
81
|
-
background-color:
|
|
81
|
+
background-color: rgb(0, 0, 0, 0.7);
|
|
82
82
|
color: #fff;
|
|
83
83
|
font: map.get($gallery-print, 'description-font');
|
|
84
84
|
padding: map.get($theme, 'spacing-print', '2xs')
|
package/gallery.html.twig
CHANGED
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
- "embedded_video" (optional) (object) (default: {})
|
|
38
38
|
- "sr_video_audio" (string) (default: ''): additional text to indicate if there is an audio description; for screen readers
|
|
39
39
|
- "share_path" (optional) (string) (default: '')
|
|
40
|
-
- "icon_path": (string) (default: '')
|
|
41
40
|
- "sr_gallery_label" (string) (default: ''): additional label for the gallery, providing instruction; for screen readers
|
|
42
41
|
- "sr_video_label" (string) (default: ''): additional label for the video items; for screen readers
|
|
43
42
|
- "sr_video_player" (string) (default: ''): additional label for the video player; for screen readers
|
|
@@ -67,7 +66,6 @@
|
|
|
67
66
|
{% set _visible_items = visible_items|default(8) %}
|
|
68
67
|
{% set _disable_hover = disable_hover|default(false) %}
|
|
69
68
|
{% set _disable_overlay = disable_overlay|default(false) %}
|
|
70
|
-
{% set _icon_path = icon_path|default('') %}
|
|
71
69
|
{% set _sr_gallery_label = sr_gallery_label|default('') %}
|
|
72
70
|
{% set _sr_video_label = sr_video_label|default('') %}
|
|
73
71
|
{% set _expandable = expandable ?? true %}
|
|
@@ -152,7 +150,6 @@
|
|
|
152
150
|
{% include '@ecl/gallery/gallery-item.html.twig' with {
|
|
153
151
|
id: "ecl-gallery-item-" ~ _id ~ '-' ~ _key,
|
|
154
152
|
item: _item,
|
|
155
|
-
icon_path: _icon_path,
|
|
156
153
|
sr_video_label: _sr_video_label,
|
|
157
154
|
sr_video_player: _sr_video_player,
|
|
158
155
|
disable_overlay: _disable_overlay,
|
|
@@ -210,7 +207,6 @@
|
|
|
210
207
|
extra_attributes: _overlay_attrs,
|
|
211
208
|
extra_classes: _overlay_class,
|
|
212
209
|
item: _selected_item,
|
|
213
|
-
icon_path: _icon_path,
|
|
214
210
|
} only %}
|
|
215
211
|
</section>
|
|
216
212
|
|
package/gallery.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ecl/gallery",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "5.0.0-alpha.
|
|
5
|
+
"version": "5.0.0-alpha.12",
|
|
6
6
|
"description": "ECL Gallery",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"module": "gallery.js",
|
|
12
12
|
"style": "gallery.scss",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@ecl/button": "5.0.0-alpha.
|
|
15
|
-
"@ecl/dom-utils": "5.0.0-alpha.
|
|
16
|
-
"@ecl/icon": "5.0.0-alpha.
|
|
17
|
-
"@ecl/link": "5.0.0-alpha.
|
|
18
|
-
"@ecl/picture": "5.0.0-alpha.
|
|
19
|
-
"@ecl/video": "5.0.0-alpha.
|
|
14
|
+
"@ecl/button": "5.0.0-alpha.12",
|
|
15
|
+
"@ecl/dom-utils": "5.0.0-alpha.12",
|
|
16
|
+
"@ecl/icon": "5.0.0-alpha.12",
|
|
17
|
+
"@ecl/link": "5.0.0-alpha.12",
|
|
18
|
+
"@ecl/picture": "5.0.0-alpha.12",
|
|
19
|
+
"@ecl/video": "5.0.0-alpha.12",
|
|
20
20
|
"focus-trap": "7.6.4"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"design-system",
|
|
34
34
|
"twig"
|
|
35
35
|
],
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "a8d78ac3122f61283f822ca27a4a8343a583f65a"
|
|
37
37
|
}
|