uikit 3.25.16-dev.b9d03e9 → 3.25.16
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 +3 -1
- package/build/build.js +1 -1
- package/build/less.js +7 -7
- package/build/prefix.js +3 -3
- package/build/release.js +12 -8
- package/build/scss.js +13 -7
- package/build/util.js +17 -19
- package/build/watch.js +21 -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 +7 -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 +15 -3
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +15 -3
- 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 +7 -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 +7 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +7 -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 +23 -11
- 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 +23 -11
- package/dist/js/uikit.min.js +1 -1
- package/package.json +3 -8
- package/src/js/core/drop.js +7 -6
- package/src/js/mixin/class.js +8 -1
- package/src/js/mixin/modal.js +12 -2
- package/src/js/util/viewport.js +1 -1
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.16
|
|
1
|
+
/*! UIkit 3.25.16 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1284,7 +1284,7 @@
|
|
|
1284
1284
|
const scrollEl = scrollingElement(element);
|
|
1285
1285
|
let ancestors = parents(element).reverse();
|
|
1286
1286
|
ancestors = ancestors.slice(ancestors.indexOf(scrollEl) + 1);
|
|
1287
|
-
const fixedIndex = findIndex(ancestors, (el) =>
|
|
1287
|
+
const fixedIndex = findIndex(ancestors, (el) => hasPosition(el, "fixed"));
|
|
1288
1288
|
if (~fixedIndex) {
|
|
1289
1289
|
ancestors = ancestors.slice(fixedIndex);
|
|
1290
1290
|
}
|
|
@@ -1681,7 +1681,7 @@
|
|
|
1681
1681
|
wrapInner: wrapInner
|
|
1682
1682
|
});
|
|
1683
1683
|
|
|
1684
|
-
var VERSION = '3.25.16
|
|
1684
|
+
var VERSION = '3.25.16';
|
|
1685
1685
|
|
|
1686
1686
|
function initUpdates(instance) {
|
|
1687
1687
|
instance._data = {};
|
|
@@ -2480,7 +2480,13 @@
|
|
|
2480
2480
|
|
|
2481
2481
|
var Class = {
|
|
2482
2482
|
connected() {
|
|
2483
|
+
this._cmpCls = hasClass(this.$el, this.$options.id);
|
|
2483
2484
|
addClass(this.$el, this.$options.id);
|
|
2485
|
+
},
|
|
2486
|
+
disconnected() {
|
|
2487
|
+
if (!this._cmpCls) {
|
|
2488
|
+
removeClass(this.$el, this.$options.id);
|
|
2489
|
+
}
|
|
2484
2490
|
}
|
|
2485
2491
|
};
|
|
2486
2492
|
|
|
@@ -3506,12 +3512,12 @@
|
|
|
3506
3512
|
return offsetViewport(overflowParents(target).find((parent2) => parent2.contains(el)));
|
|
3507
3513
|
}
|
|
3508
3514
|
function createToggleComponent(drop) {
|
|
3509
|
-
const
|
|
3510
|
-
|
|
3511
|
-
mode: drop.mode
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
return
|
|
3515
|
+
const el = query(drop.toggle, drop.$el);
|
|
3516
|
+
if (el) {
|
|
3517
|
+
drop.$create("toggle", el, { target: drop.$el, mode: drop.mode });
|
|
3518
|
+
el.ariaHasPopup = true;
|
|
3519
|
+
}
|
|
3520
|
+
return el;
|
|
3515
3521
|
}
|
|
3516
3522
|
function listenForResize(drop) {
|
|
3517
3523
|
const update = () => drop.$emit();
|
|
@@ -5198,9 +5204,15 @@
|
|
|
5198
5204
|
}
|
|
5199
5205
|
function preventBackgroundFocus(modal) {
|
|
5200
5206
|
return on(document, "focusin", (e) => {
|
|
5201
|
-
if (last(active)
|
|
5202
|
-
|
|
5207
|
+
if (last(active) !== modal || modal.$el.contains(e.target)) {
|
|
5208
|
+
return;
|
|
5209
|
+
}
|
|
5210
|
+
const { left, top, width, height } = dimensions(e.target);
|
|
5211
|
+
const topEl = document.elementFromPoint(left + width / 2, top + height / 2);
|
|
5212
|
+
if (topEl && (e.target.contains(topEl) || topEl.contains(e.target))) {
|
|
5213
|
+
return;
|
|
5203
5214
|
}
|
|
5215
|
+
modal.$el.focus();
|
|
5204
5216
|
});
|
|
5205
5217
|
}
|
|
5206
5218
|
function listenForBackgroundClose(modal) {
|