uikit 3.20.11-dev.3a41e0fa6 → 3.20.11-dev.43d76edf7

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 (49) hide show
  1. package/CHANGELOG.md +0 -6
  2. package/build/release.js +1 -1
  3. package/build/scope.js +9 -4
  4. package/dist/css/uikit-core-rtl.css +1 -1
  5. package/dist/css/uikit-core-rtl.min.css +1 -1
  6. package/dist/css/uikit-core.css +1 -1
  7. package/dist/css/uikit-core.min.css +1 -1
  8. package/dist/css/uikit-rtl.css +1 -1
  9. package/dist/css/uikit-rtl.min.css +1 -1
  10. package/dist/css/uikit.css +1 -1
  11. package/dist/css/uikit.min.css +1 -1
  12. package/dist/js/components/countdown.js +1 -1
  13. package/dist/js/components/countdown.min.js +1 -1
  14. package/dist/js/components/filter.js +1 -1
  15. package/dist/js/components/filter.min.js +1 -1
  16. package/dist/js/components/lightbox-panel.js +1 -1
  17. package/dist/js/components/lightbox-panel.min.js +1 -1
  18. package/dist/js/components/lightbox.js +1 -1
  19. package/dist/js/components/lightbox.min.js +1 -1
  20. package/dist/js/components/notification.js +1 -1
  21. package/dist/js/components/notification.min.js +1 -1
  22. package/dist/js/components/parallax.js +6 -6
  23. package/dist/js/components/parallax.min.js +1 -1
  24. package/dist/js/components/slider-parallax.js +6 -6
  25. package/dist/js/components/slider-parallax.min.js +1 -1
  26. package/dist/js/components/slider.js +6 -6
  27. package/dist/js/components/slider.min.js +1 -1
  28. package/dist/js/components/slideshow-parallax.js +6 -6
  29. package/dist/js/components/slideshow-parallax.min.js +1 -1
  30. package/dist/js/components/slideshow.js +6 -6
  31. package/dist/js/components/slideshow.min.js +1 -1
  32. package/dist/js/components/sortable.js +8 -5
  33. package/dist/js/components/sortable.min.js +1 -1
  34. package/dist/js/components/tooltip.js +1 -1
  35. package/dist/js/components/tooltip.min.js +1 -1
  36. package/dist/js/components/upload.js +1 -1
  37. package/dist/js/components/upload.min.js +1 -1
  38. package/dist/js/uikit-core.js +8 -8
  39. package/dist/js/uikit-core.min.js +1 -1
  40. package/dist/js/uikit-icons.js +1 -1
  41. package/dist/js/uikit-icons.min.js +1 -1
  42. package/dist/js/uikit.js +17 -14
  43. package/dist/js/uikit.min.js +1 -1
  44. package/package.json +1 -2
  45. package/src/js/components/sortable.js +9 -7
  46. package/src/js/mixin/media.js +1 -1
  47. package/src/js/mixin/parallax.js +2 -2
  48. package/src/js/util/filter.js +3 -3
  49. package/src/js/util/selector.js +2 -2
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.20.11-dev.3a41e0fa6",
5
+ "version": "3.20.11-dev.43d76edf7",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -47,7 +47,6 @@
47
47
  "rollup-plugin-modify": "^3.0.0",
48
48
  "rtlcss": "^4.1.1",
49
49
  "semver": "^7.6.0",
50
- "strip-css-comments": "^5.0.0",
51
50
  "svgo": "^3.2.0"
52
51
  },
53
52
  "scripts": {
@@ -217,14 +217,14 @@ export default {
217
217
  move: throttle(function (e) {
218
218
  assign(this.pos, getEventPos(e));
219
219
 
220
- if (
221
- !this.drag &&
222
- (Math.abs(this.pos.x - this.origin.x) > this.threshold ||
223
- Math.abs(this.pos.y - this.origin.y) > this.threshold)
220
+ if (this.drag) {
221
+ this.$emit('move');
222
+ } else if (
223
+ Math.abs(this.pos.x - this.origin.x) > this.threshold ||
224
+ Math.abs(this.pos.y - this.origin.y) > this.threshold
224
225
  ) {
225
226
  this.start(e);
226
227
  }
227
- this.$emit('move');
228
228
  }),
229
229
 
230
230
  end() {
@@ -437,8 +437,10 @@ function throttle(fn) {
437
437
  return function (...args) {
438
438
  if (!throttled) {
439
439
  throttled = true;
440
- fn.call(this, ...args);
441
- requestAnimationFrame(() => (throttled = false));
440
+ requestAnimationFrame(() => {
441
+ throttled = false;
442
+ fn.call(this, ...args);
443
+ });
442
444
  }
443
445
  };
444
446
  }
@@ -43,7 +43,7 @@ export default {
43
43
  function toMedia(value, element) {
44
44
  if (isString(value)) {
45
45
  if (startsWith(value, '@')) {
46
- value = toFloat(css(element, `--uk-breakpoint-${value.slice(1)}`));
46
+ value = toFloat(css(element, `--uk-breakpoint-${value.substr(1)}`));
47
47
  } else if (isNaN(value)) {
48
48
  return value;
49
49
  }
@@ -260,14 +260,14 @@ function backgroundCoverFn(prop, el, stops, props) {
260
260
  }
261
261
 
262
262
  function getBackgroundPos(el, prop) {
263
- return getCssValue(el, `background-position-${prop.slice(-1)}`, '');
263
+ return getCssValue(el, `background-position-${prop.substr(-1)}`, '');
264
264
  }
265
265
 
266
266
  function setBackgroundPosFn(bgProps, positions, props) {
267
267
  return function (css, percent) {
268
268
  for (const prop of bgProps) {
269
269
  const value = getValue(props[prop], percent);
270
- css[`background-position-${prop.slice(-1)}`] = `calc(${positions[prop]} + ${value}px)`;
270
+ css[`background-position-${prop.substr(-1)}`] = `calc(${positions[prop]} + ${value}px)`;
271
271
  }
272
272
  };
273
273
  }
@@ -82,8 +82,8 @@ export function isSameSiteAnchor(el) {
82
82
 
83
83
  export function getTargetedElement(el) {
84
84
  if (isSameSiteAnchor(el)) {
85
- const { hash, ownerDocument } = toNode(el);
86
- const id = decodeURIComponent(hash).slice(1);
87
- return ownerDocument.getElementById(id) || ownerDocument.getElementsByName(id)[0];
85
+ el = toNode(el);
86
+ const id = decodeURIComponent(el.hash).substring(1);
87
+ return document.getElementById(id) || document.getElementsByName(id)[0];
88
88
  }
89
89
  }
@@ -47,9 +47,9 @@ const parseSelector = memoize((selector) => {
47
47
  });
48
48
 
49
49
  const parsePositionSelector = memoize((selector) => {
50
- selector = selector.slice(1).trim();
50
+ selector = selector.substr(1).trim();
51
51
  const index = selector.indexOf(' ');
52
- return ~index ? [selector.slice(0, index), selector.slice(index + 1)] : [selector, ''];
52
+ return ~index ? [selector.substring(0, index), selector.substring(index + 1)] : [selector, ''];
53
53
  });
54
54
 
55
55
  function _query(selector, context = document, queryFn) {