uikit 3.15.12-dev.aab45c75d → 3.15.12-dev.e176198c4
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/CHANGELOG.md +9 -6
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +7 -4
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +7 -4
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +10 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +10 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +6 -5
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +21 -8
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/lightbox-panel.js +5 -2
- package/src/js/components/slider-parallax.js +9 -0
- package/src/js/core/video.js +4 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.15.12-dev.
|
|
5
|
+
"version": "3.15.12-dev.e176198c4",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -232,11 +232,14 @@ export default {
|
|
|
232
232
|
controls: '',
|
|
233
233
|
playsinline: '',
|
|
234
234
|
'uk-video': `${this.videoAutoplay}`,
|
|
235
|
-
...attrs,
|
|
236
235
|
});
|
|
237
236
|
|
|
238
237
|
on(video, 'loadedmetadata', () => {
|
|
239
|
-
attr(video, {
|
|
238
|
+
attr(video, {
|
|
239
|
+
width: video.videoWidth,
|
|
240
|
+
height: video.videoHeight,
|
|
241
|
+
...attrs,
|
|
242
|
+
});
|
|
240
243
|
this.setItem(item, video);
|
|
241
244
|
});
|
|
242
245
|
on(video, 'error', () => this.setError(item));
|
|
@@ -28,6 +28,10 @@ export default {
|
|
|
28
28
|
|
|
29
29
|
handler({ type, detail: { percent, duration, timing, dir } }) {
|
|
30
30
|
fastdom.read(() => {
|
|
31
|
+
if (!this.matchMedia) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
const propsFrom = this.getCss(getCurrentPercent(type, dir, percent));
|
|
32
36
|
const propsTo = this.getCss(isIn(type) ? 0.5 : dir > 0 ? 1 : 0);
|
|
33
37
|
fastdom.write(() => {
|
|
@@ -63,6 +67,11 @@ export default {
|
|
|
63
67
|
|
|
64
68
|
handler({ type, detail: { percent, dir } }) {
|
|
65
69
|
fastdom.read(() => {
|
|
70
|
+
if (!this.matchMedia) {
|
|
71
|
+
this.reset();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
|
|
66
75
|
const props = this.getCss(getCurrentPercent(type, dir, percent));
|
|
67
76
|
fastdom.write(() => css(this.$el, props));
|
|
68
77
|
});
|
package/src/js/core/video.js
CHANGED
|
@@ -43,21 +43,22 @@ export default {
|
|
|
43
43
|
},
|
|
44
44
|
|
|
45
45
|
update: {
|
|
46
|
-
read() {
|
|
46
|
+
read({ visible }) {
|
|
47
47
|
if (!isVideo(this.$el)) {
|
|
48
48
|
return false;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return {
|
|
52
|
+
prev: visible,
|
|
52
53
|
visible: isVisible(this.$el) && css(this.$el, 'visibility') !== 'hidden',
|
|
53
54
|
inView: this.inView && isInView(this.$el),
|
|
54
55
|
};
|
|
55
56
|
},
|
|
56
57
|
|
|
57
|
-
write({ visible, inView }) {
|
|
58
|
+
write({ prev, visible, inView }) {
|
|
58
59
|
if (!visible || (this.inView && !inView)) {
|
|
59
60
|
pause(this.$el);
|
|
60
|
-
} else if (this.autoplay === true || (this.inView && inView)) {
|
|
61
|
+
} else if ((this.autoplay === true && !prev) || (this.inView && inView)) {
|
|
61
62
|
play(this.$el);
|
|
62
63
|
}
|
|
63
64
|
},
|