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.
- package/CHANGELOG.md +6 -0
- 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 +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +8 -14
- 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 +8 -14
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/drop.js +7 -13
- 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.
|
|
5
|
+
"version": "3.21.4-dev.a85e33edd",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/drop.js
CHANGED
|
@@ -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
|
}
|