uikit 3.21.3 → 3.21.4-dev.a85e33edd

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 (44) 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 +1 -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 +1 -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 -14
  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 +8 -14
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/core/drop.js +7 -13
  44. package/src/js/core/dropnav.js +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.21.3",
5
+ "version": "3.21.4-dev.a85e33edd",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  $,
3
+ $$,
3
4
  MouseTracker,
4
5
  addClass,
5
6
  append,
6
- apply,
7
7
  attr,
8
8
  css,
9
9
  hasClass,
@@ -321,7 +321,7 @@ export default {
321
321
  }
322
322
 
323
323
  if (active) {
324
- if (delay && active.isDelaying) {
324
+ if (delay && active.isDelaying()) {
325
325
  this.showTimer = setTimeout(() => matches(target, ':hover') && this.show(), 10);
326
326
  return;
327
327
  }
@@ -349,11 +349,8 @@ export default {
349
349
  this.clearTimers();
350
350
 
351
351
  this.isDelayedHide = delay;
352
- this.isDelaying = getPositionedElements(this.$el).some((el) =>
353
- this.tracker.movesTo(el),
354
- );
355
352
 
356
- if (delay && this.isDelaying) {
353
+ if (delay && this.isDelaying()) {
357
354
  this.hideTimer = setTimeout(this.hide, 50);
358
355
  } else if (delay && this.delayHide) {
359
356
  this.hideTimer = setTimeout(hide, this.delayHide);
@@ -367,13 +364,16 @@ export default {
367
364
  clearTimeout(this.hideTimer);
368
365
  this.showTimer = null;
369
366
  this.hideTimer = null;
370
- this.isDelaying = false;
371
367
  },
372
368
 
373
369
  isActive() {
374
370
  return active === this;
375
371
  },
376
372
 
373
+ isDelaying() {
374
+ return [this.$el, ...$$('.uk-drop', this.$el)].some((el) => this.tracker.movesTo(el));
375
+ },
376
+
377
377
  position() {
378
378
  removeClass(this.$el, 'uk-drop-stack');
379
379
  css(this.$el, this._style);
@@ -443,12 +443,6 @@ export default {
443
443
  },
444
444
  };
445
445
 
446
- function getPositionedElements(el) {
447
- const result = [];
448
- apply(el, (el) => css(el, 'position') !== 'static' && result.push(el));
449
- return result;
450
- }
451
-
452
446
  function getViewport(el, target) {
453
447
  return offsetViewport(overflowParents(target).find((parent) => parent.contains(el)));
454
448
  }
@@ -137,7 +137,7 @@ export default {
137
137
  includes(active.mode, 'hover') &&
138
138
  active.targetEl &&
139
139
  !current.contains(active.targetEl) &&
140
- !active.isDelaying
140
+ !active.isDelaying()
141
141
  ) {
142
142
  active.hide(false);
143
143
  }