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.
Files changed (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/release.js +7 -7
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +1 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +1 -1
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +9 -7
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +9 -7
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +1 -1
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +9 -7
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +9 -7
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +1 -1
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +9 -10
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +17 -16
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/core/cover.js +1 -1
  45. package/src/js/core/img.js +2 -2
  46. package/src/js/core/video.js +6 -6
  47. 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.15",
5
+ "version": "3.16.16-dev.eede5abfb",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -21,7 +21,7 @@ export default {
21
21
  },
22
22
 
23
23
  observe: resize({
24
- target: ({ $el }) => [$el, getPositionedParent($el) || parent($el)],
24
+ target: ({ $el }) => [getPositionedParent($el) || parent($el)],
25
25
  }),
26
26
 
27
27
  update: {
@@ -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
- srcProps.forEach((prop) => {
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) {
@@ -1,5 +1,5 @@
1
- import { intersection } from '../api/observables';
2
- import { css, hasAttr, isInView, isTag, isVideo, isVisible, mute, pause, play } from 'uikit-util';
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) && css(this.$el, 'visibility') !== 'hidden',
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
- .filter((i) => !includes([nextIndex, prevIndex], i))
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]);