uikit 3.15.12-dev.e4023717f → 3.15.12-dev.f3ed37053

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 (46) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +10 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +10 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +8 -5
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +17 -5
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/boot.js +3 -1
  44. package/src/js/components/slider-parallax.js +9 -0
  45. package/src/js/core/video.js +4 -3
  46. package/tests/navbar.html +1 -1
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.e4023717f",
5
+ "version": "3.15.12-dev.f3ed37053",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -1,5 +1,5 @@
1
1
  import { getComponentName } from './component';
2
- import { apply, hasAttr, inBrowser } from 'uikit-util';
2
+ import { apply, hasAttr, inBrowser, trigger } from 'uikit-util';
3
3
 
4
4
  export default function (UIkit) {
5
5
  const { connect, disconnect } = UIkit;
@@ -9,6 +9,8 @@ export default function (UIkit) {
9
9
  }
10
10
 
11
11
  requestAnimationFrame(function () {
12
+ trigger(document, 'uikit:init', UIkit);
13
+
12
14
  if (document.body) {
13
15
  apply(document.body, connect);
14
16
  }
@@ -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
  });
@@ -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
  },
package/tests/navbar.html CHANGED
@@ -3216,7 +3216,7 @@
3216
3216
  <script>
3217
3217
 
3218
3218
  const {$, $$, addClass, on, removeClass, MouseTracker } = UIkit.util;
3219
- const tracker = MouseTracker();
3219
+ const tracker = new MouseTracker();
3220
3220
  const el = $('#js-mousetracker');
3221
3221
  const target = $('#js-mousetarget');
3222
3222
  let interval;