uikit 3.25.8 → 3.25.10-dev.17473f4
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 +13 -0
- package/build/scss.js +1 -3
- package/dist/css/uikit-core-rtl.css +4 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +4 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +4 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +4 -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 +4 -3
- 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 +2 -2
- 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 +4 -3
- 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 +30 -22
- 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 +31 -23
- package/dist/js/uikit.min.js +1 -1
- package/package.json +4 -4
- package/src/js/components/slider.js +1 -1
- package/src/js/core/height-viewport.js +1 -2
- package/src/js/core/margin.js +4 -2
- package/src/js/core/switcher.js +27 -18
- package/src/less/components/lightbox.less +2 -0
- package/src/scss/components/lightbox.scss +2 -0
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.10-dev.17473f4 | 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() :
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
};
|
|
2164
2164
|
App.util = util;
|
|
2165
2165
|
App.options = {};
|
|
2166
|
-
App.version = "3.25.
|
|
2166
|
+
App.version = "3.25.10-dev.17473f4";
|
|
2167
2167
|
|
|
2168
2168
|
const PREFIX = "uk-";
|
|
2169
2169
|
const DATA = "__uikit__";
|
|
@@ -3964,13 +3964,14 @@
|
|
|
3964
3964
|
resize({
|
|
3965
3965
|
handler(mutations) {
|
|
3966
3966
|
for (const {
|
|
3967
|
+
target,
|
|
3967
3968
|
borderBoxSize: [{ inlineSize, blockSize }]
|
|
3968
3969
|
} of mutations) {
|
|
3969
|
-
if (inlineSize
|
|
3970
|
-
this.$emit("resize");
|
|
3970
|
+
if (target === this.$el && !inlineSize && !blockSize) {
|
|
3971
3971
|
return;
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
3974
|
+
this.$emit("resize");
|
|
3974
3975
|
},
|
|
3975
3976
|
target: ({ $el }) => [$el, ...children($el)]
|
|
3976
3977
|
})
|
|
@@ -4353,7 +4354,6 @@
|
|
|
4353
4354
|
if (!this.matchMedia) {
|
|
4354
4355
|
return { minHeight: false };
|
|
4355
4356
|
}
|
|
4356
|
-
let minHeight = "";
|
|
4357
4357
|
const box = boxModelAdjust(this.$el, "height", "content-box");
|
|
4358
4358
|
const { body, scrollingElement } = document;
|
|
4359
4359
|
const scrollElement = scrollParent(this.$el);
|
|
@@ -4361,7 +4361,7 @@
|
|
|
4361
4361
|
scrollElement === body ? scrollingElement : scrollElement
|
|
4362
4362
|
);
|
|
4363
4363
|
const isScrollingElement = scrollingElement === scrollElement || body === scrollElement;
|
|
4364
|
-
minHeight = `calc(${isScrollingElement ? "100vh" : `${viewportHeight}px`}`;
|
|
4364
|
+
let minHeight = `calc(${isScrollingElement ? "100vh" : `${viewportHeight}px`}`;
|
|
4365
4365
|
if (this.expand) {
|
|
4366
4366
|
const diff = dimensions(scrollElement).height - dimensions(this.$el).height;
|
|
4367
4367
|
minHeight += ` - ${diff}px`;
|
|
@@ -6436,10 +6436,10 @@
|
|
|
6436
6436
|
}
|
|
6437
6437
|
this.$emit();
|
|
6438
6438
|
},
|
|
6439
|
-
toggles(
|
|
6439
|
+
toggles() {
|
|
6440
6440
|
this.$emit();
|
|
6441
6441
|
const active = this.index();
|
|
6442
|
-
this.show(~active ? active :
|
|
6442
|
+
this.show(~active ? active : this.next(this.active));
|
|
6443
6443
|
}
|
|
6444
6444
|
},
|
|
6445
6445
|
connected() {
|
|
@@ -6469,8 +6469,7 @@
|
|
|
6469
6469
|
let i = keyCode === keyMap.HOME ? 0 : keyCode === keyMap.END ? "last" : keyCode === keyMap.LEFT && !isVertical || keyCode === keyMap.UP && isVertical ? "previous" : keyCode === keyMap.RIGHT && !isVertical || keyCode === keyMap.DOWN && isVertical ? "next" : -1;
|
|
6470
6470
|
if (~i) {
|
|
6471
6471
|
e.preventDefault();
|
|
6472
|
-
const
|
|
6473
|
-
const next = toggles[getIndex(i, toggles, toggles.indexOf(current))];
|
|
6472
|
+
const next = this.toggles[this.next(i, this.toggles.indexOf(current))];
|
|
6474
6473
|
next.focus();
|
|
6475
6474
|
if (this.followFocus) {
|
|
6476
6475
|
this.show(next);
|
|
@@ -6524,29 +6523,38 @@
|
|
|
6524
6523
|
index() {
|
|
6525
6524
|
return findIndex(this.children, (el) => hasClass(el, this.cls));
|
|
6526
6525
|
},
|
|
6527
|
-
|
|
6526
|
+
next(item, prev = this.index()) {
|
|
6527
|
+
if (isNumeric(item)) {
|
|
6528
|
+
for (let i = 0; i < this.toggles.length; i++) {
|
|
6529
|
+
let index = getIndex(i + +item, this.toggles);
|
|
6530
|
+
if (!matches(this.toggles[index], selDisabled)) {
|
|
6531
|
+
return index;
|
|
6532
|
+
}
|
|
6533
|
+
}
|
|
6534
|
+
}
|
|
6528
6535
|
const toggles = this.toggles.filter((el) => !matches(el, selDisabled));
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
toggles,
|
|
6533
|
-
getIndex(this.toggles[prev], toggles)
|
|
6536
|
+
return getIndex(
|
|
6537
|
+
toggles[getIndex(item, toggles, toggles.indexOf(this.toggles[prev]))],
|
|
6538
|
+
this.toggles
|
|
6534
6539
|
);
|
|
6535
|
-
|
|
6540
|
+
},
|
|
6541
|
+
show(item) {
|
|
6542
|
+
const prev = this.index();
|
|
6543
|
+
const next = this.next(item);
|
|
6536
6544
|
this.children.forEach((child, i) => {
|
|
6537
|
-
toggleClass(child, this.cls,
|
|
6545
|
+
toggleClass(child, this.cls, next === i);
|
|
6538
6546
|
attr(this.toggles[i], {
|
|
6539
|
-
"aria-selected":
|
|
6540
|
-
tabindex:
|
|
6547
|
+
"aria-selected": next === i,
|
|
6548
|
+
tabindex: next === i ? null : -1
|
|
6541
6549
|
});
|
|
6542
6550
|
});
|
|
6543
6551
|
const animate = prev >= 0 && prev !== next;
|
|
6544
6552
|
this.connects.forEach(async ({ children: children2 }) => {
|
|
6545
6553
|
const actives = toArray(children2).filter(
|
|
6546
|
-
(child, i) => i !==
|
|
6554
|
+
(child, i) => i !== next && hasClass(child, this.cls)
|
|
6547
6555
|
);
|
|
6548
6556
|
if (await this.toggleElement(actives, false, animate)) {
|
|
6549
|
-
await this.toggleElement(children2[
|
|
6557
|
+
await this.toggleElement(children2[next], true, animate);
|
|
6550
6558
|
}
|
|
6551
6559
|
});
|
|
6552
6560
|
}
|