uikit 3.16.15 → 3.16.16-dev.eede5abfb
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 +6 -0
- package/build/release.js +7 -7
- 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 +9 -7
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +9 -7
- 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 +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +9 -7
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +9 -7
- 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 +9 -10
- 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 +17 -16
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/cover.js +1 -1
- package/src/js/core/img.js +2 -2
- package/src/js/core/video.js +6 -6
- package/src/js/mixin/slider-drag.js +4 -4
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.16.
|
|
5
|
+
"version": "3.16.16-dev.eede5abfb",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/cover.js
CHANGED
package/src/js/core/img.js
CHANGED
|
@@ -107,12 +107,12 @@ function setSrcAttrs(el, src) {
|
|
|
107
107
|
|
|
108
108
|
const srcProps = ['data-src', 'data-srcset', 'sizes'];
|
|
109
109
|
function setSourceProps(sourceEl, targetEl) {
|
|
110
|
-
|
|
110
|
+
for (const prop of srcProps) {
|
|
111
111
|
const value = data(sourceEl, prop);
|
|
112
112
|
if (value) {
|
|
113
113
|
attr(targetEl, prop.replace(/^(data-)+/, ''), value);
|
|
114
114
|
}
|
|
115
|
-
}
|
|
115
|
+
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
function getImageFromElement(el, src, sources) {
|
package/src/js/core/video.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { intersection } from '../api/observables';
|
|
2
|
-
import {
|
|
1
|
+
import { intersection, resize } from '../api/observables';
|
|
2
|
+
import { hasAttr, isInView, isTag, isVideo, isVisible, mute, pause, play } from 'uikit-util';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
args: 'autoplay',
|
|
@@ -30,9 +30,7 @@ export default {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
|
|
33
|
-
observe: intersection({
|
|
34
|
-
args: { intersecting: false },
|
|
35
|
-
}),
|
|
33
|
+
observe: [intersection({ args: { intersecting: false } }), resize()],
|
|
36
34
|
|
|
37
35
|
update: {
|
|
38
36
|
read({ visible }) {
|
|
@@ -42,7 +40,7 @@ export default {
|
|
|
42
40
|
|
|
43
41
|
return {
|
|
44
42
|
prev: visible,
|
|
45
|
-
visible: isVisible(this.$el)
|
|
43
|
+
visible: isVisible(this.$el),
|
|
46
44
|
inView: this.inView && isInView(this.$el),
|
|
47
45
|
};
|
|
48
46
|
},
|
|
@@ -54,5 +52,7 @@ export default {
|
|
|
54
52
|
play(this.$el);
|
|
55
53
|
}
|
|
56
54
|
},
|
|
55
|
+
|
|
56
|
+
events: ['resize'],
|
|
57
57
|
},
|
|
58
58
|
};
|
|
@@ -156,16 +156,16 @@ export default {
|
|
|
156
156
|
|
|
157
157
|
let itemShown;
|
|
158
158
|
|
|
159
|
-
[this.index, this.prevIndex]
|
|
160
|
-
|
|
161
|
-
.forEach((i) => {
|
|
159
|
+
for (const i of [this.index, this.prevIndex]) {
|
|
160
|
+
if (!includes([nextIndex, prevIndex], i)) {
|
|
162
161
|
trigger(slides[i], 'itemhidden', [this]);
|
|
163
162
|
|
|
164
163
|
if (edge) {
|
|
165
164
|
itemShown = true;
|
|
166
165
|
this.prevIndex = prevIndex;
|
|
167
166
|
}
|
|
168
|
-
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
169
|
|
|
170
170
|
if ((this.index === prevIndex && this.prevIndex !== prevIndex) || itemShown) {
|
|
171
171
|
trigger(slides[this.index], 'itemshown', [this]);
|