uikit 3.25.27-dev.2d5695a → 3.25.27-dev.eabaa45
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/build/util.js +0 -2
- 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 +21 -18
- 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 +27 -24
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/overflow-auto.js +5 -1
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.27-dev.
|
|
1
|
+
/*! UIkit 3.25.27-dev.eabaa45 | 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() :
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
height: ["top", "bottom"]
|
|
839
839
|
};
|
|
840
840
|
function dimensions$1(element) {
|
|
841
|
-
const rect = isElement(element) ? toNode(element).getBoundingClientRect() : { height: height(element), width: width(element), top: 0, left: 0 };
|
|
841
|
+
const rect = isElement(element) ? toNode(element).getBoundingClientRect() : { height: height$1(element), width: width(element), top: 0, left: 0 };
|
|
842
842
|
return {
|
|
843
843
|
height: rect.height,
|
|
844
844
|
width: rect.width,
|
|
@@ -904,7 +904,7 @@
|
|
|
904
904
|
}
|
|
905
905
|
return offset2;
|
|
906
906
|
}
|
|
907
|
-
const height = dimension("height");
|
|
907
|
+
const height$1 = dimension("height");
|
|
908
908
|
const width = dimension("width");
|
|
909
909
|
function dimension(prop) {
|
|
910
910
|
const propName = ucfirst(prop);
|
|
@@ -1589,7 +1589,7 @@
|
|
|
1589
1589
|
hasClass: hasClass,
|
|
1590
1590
|
hasOwn: hasOwn,
|
|
1591
1591
|
hasTouch: hasTouch,
|
|
1592
|
-
height: height,
|
|
1592
|
+
height: height$1,
|
|
1593
1593
|
html: html,
|
|
1594
1594
|
hyphenate: hyphenate,
|
|
1595
1595
|
inBrowser: inBrowser,
|
|
@@ -2170,16 +2170,16 @@
|
|
|
2170
2170
|
removeClass(target, clsLeave);
|
|
2171
2171
|
});
|
|
2172
2172
|
const enterFn = wrapIndexFn(async () => {
|
|
2173
|
-
const oldHeight = height(target);
|
|
2173
|
+
const oldHeight = height$1(target);
|
|
2174
2174
|
addClass(target, clsEnter);
|
|
2175
2175
|
action();
|
|
2176
2176
|
css(stagger ? children(target) : target, propsOut);
|
|
2177
|
-
height(target, oldHeight);
|
|
2177
|
+
height$1(target, oldHeight);
|
|
2178
2178
|
await awaitTimeout();
|
|
2179
|
-
height(target, "");
|
|
2180
|
-
const newHeight = height(target);
|
|
2179
|
+
height$1(target, "");
|
|
2180
|
+
const newHeight = height$1(target);
|
|
2181
2181
|
css(target, "alignContent", "flex-start");
|
|
2182
|
-
height(target, oldHeight);
|
|
2182
|
+
height$1(target, oldHeight);
|
|
2183
2183
|
const transitions = [];
|
|
2184
2184
|
let targetDuration = duration / 2;
|
|
2185
2185
|
if (stagger) {
|
|
@@ -3418,7 +3418,7 @@
|
|
|
3418
3418
|
return Math.atan2(Math.abs(pos2.y - pos1.y), Math.abs(pos2.x - pos1.x)) * 180 / Math.PI;
|
|
3419
3419
|
}
|
|
3420
3420
|
|
|
3421
|
-
var VERSION = '3.25.27-dev.
|
|
3421
|
+
var VERSION = '3.25.27-dev.eabaa45';
|
|
3422
3422
|
|
|
3423
3423
|
function initWatches(instance) {
|
|
3424
3424
|
instance._watches = [];
|
|
@@ -6169,7 +6169,7 @@
|
|
|
6169
6169
|
height: element.offsetHeight,
|
|
6170
6170
|
padding: css(element, "padding")
|
|
6171
6171
|
});
|
|
6172
|
-
height(clone.firstElementChild, height(element.firstElementChild));
|
|
6172
|
+
height$1(clone.firstElementChild, height$1(element.firstElementChild));
|
|
6173
6173
|
return clone;
|
|
6174
6174
|
}
|
|
6175
6175
|
function findTarget(items, point) {
|
|
@@ -7715,7 +7715,7 @@
|
|
|
7715
7715
|
},
|
|
7716
7716
|
async transitionTo(newHeight, el) {
|
|
7717
7717
|
const { dropbar } = this;
|
|
7718
|
-
const oldHeight = height(dropbar);
|
|
7718
|
+
const oldHeight = height$1(dropbar);
|
|
7719
7719
|
el = oldHeight < newHeight && el;
|
|
7720
7720
|
await Transition.cancel([el, dropbar]);
|
|
7721
7721
|
if (el) {
|
|
@@ -7725,7 +7725,7 @@
|
|
|
7725
7725
|
}
|
|
7726
7726
|
}
|
|
7727
7727
|
css(el, "clipPath", `polygon(0 0,100% 0,100% ${oldHeight}px,0 ${oldHeight}px)`);
|
|
7728
|
-
height(dropbar, oldHeight);
|
|
7728
|
+
height$1(dropbar, oldHeight);
|
|
7729
7729
|
await Promise.all([
|
|
7730
7730
|
Transition.start(dropbar, { height: newHeight }, this.duration),
|
|
7731
7731
|
Transition.start(
|
|
@@ -8654,7 +8654,7 @@
|
|
|
8654
8654
|
} else {
|
|
8655
8655
|
css(this.$el, "display", "block");
|
|
8656
8656
|
}
|
|
8657
|
-
height(this.$el);
|
|
8657
|
+
height$1(this.$el);
|
|
8658
8658
|
}
|
|
8659
8659
|
},
|
|
8660
8660
|
{
|
|
@@ -8891,7 +8891,7 @@
|
|
|
8891
8891
|
this.clsSidebarAnimation,
|
|
8892
8892
|
this.mode === "reveal" ? "" : this.clsMode
|
|
8893
8893
|
);
|
|
8894
|
-
height(body);
|
|
8894
|
+
height$1(body);
|
|
8895
8895
|
addClass(body, this.clsContainerAnimation);
|
|
8896
8896
|
this.clsContainerAnimation && suppressUserScale();
|
|
8897
8897
|
}
|
|
@@ -8977,6 +8977,9 @@
|
|
|
8977
8977
|
events: ["resize"]
|
|
8978
8978
|
}
|
|
8979
8979
|
};
|
|
8980
|
+
function height(el) {
|
|
8981
|
+
return dimensions$1(el).height - boxModelAdjust(el, "height", css(el, "boxSizing"));
|
|
8982
|
+
}
|
|
8980
8983
|
|
|
8981
8984
|
var overflowFade = {
|
|
8982
8985
|
data: {
|
|
@@ -9409,12 +9412,12 @@
|
|
|
9409
9412
|
],
|
|
9410
9413
|
update: [
|
|
9411
9414
|
{
|
|
9412
|
-
read({ height
|
|
9415
|
+
read({ height, width, margin, sticky }, types) {
|
|
9413
9416
|
this.inactive = !this.matchMedia || !isVisible(this.$el) || !this.$el.offsetHeight;
|
|
9414
9417
|
if (this.inactive) {
|
|
9415
9418
|
return;
|
|
9416
9419
|
}
|
|
9417
|
-
const dynamicViewport = height(window);
|
|
9420
|
+
const dynamicViewport = height$1(window);
|
|
9418
9421
|
const maxScrollHeight = Math.max(
|
|
9419
9422
|
0,
|
|
9420
9423
|
document.scrollingElement.scrollHeight - dynamicViewport
|
|
@@ -9429,7 +9432,7 @@
|
|
|
9429
9432
|
this.hide();
|
|
9430
9433
|
}
|
|
9431
9434
|
if (!this.active) {
|
|
9432
|
-
({ height
|
|
9435
|
+
({ height, width } = dimensions$1(this.$el));
|
|
9433
9436
|
margin = css(this.$el, "margin");
|
|
9434
9437
|
}
|
|
9435
9438
|
if (hide) {
|
|
@@ -9437,17 +9440,17 @@
|
|
|
9437
9440
|
}
|
|
9438
9441
|
const viewport2 = toPx("100vh", "height");
|
|
9439
9442
|
let position = this.position;
|
|
9440
|
-
if (this.overflowFlip && height
|
|
9443
|
+
if (this.overflowFlip && height > viewport2) {
|
|
9441
9444
|
position = position === "top" ? "bottom" : "top";
|
|
9442
9445
|
}
|
|
9443
9446
|
const referenceElement = this.isFixed ? this.placeholder : this.$el;
|
|
9444
9447
|
let [offset$1, offsetEnd] = [this.offset, this.offsetEnd].map(
|
|
9445
9448
|
(value) => toPx(value, "height", sticky ? this.$el : referenceElement)
|
|
9446
9449
|
);
|
|
9447
|
-
if (position === "bottom" && (height
|
|
9448
|
-
offset$1 += dynamicViewport - height
|
|
9450
|
+
if (position === "bottom" && (height < dynamicViewport || this.overflowFlip)) {
|
|
9451
|
+
offset$1 += dynamicViewport - height;
|
|
9449
9452
|
}
|
|
9450
|
-
const elementBox = height
|
|
9453
|
+
const elementBox = height + offset$1 + offsetEnd;
|
|
9451
9454
|
const overflow = this.overflowFlip ? 0 : Math.max(0, elementBox - viewport2);
|
|
9452
9455
|
const topOffset = offset(referenceElement).top - // offset possible `transform: translateY` animation 'uk-animation-slide-top' while hiding
|
|
9453
9456
|
new DOMMatrix(css(referenceElement, "transform")).m42;
|
|
@@ -9455,7 +9458,7 @@
|
|
|
9455
9458
|
const start = (this.start === false ? topOffset : parseProp(this.start, this.$el, topOffset)) - offset$1;
|
|
9456
9459
|
const end = this.end === false ? maxScrollHeight : Math.min(
|
|
9457
9460
|
maxScrollHeight,
|
|
9458
|
-
parseProp(this.end, this.$el, topOffset + height
|
|
9461
|
+
parseProp(this.end, this.$el, topOffset + height, true) - elHeight - offset$1 + overflow
|
|
9459
9462
|
);
|
|
9460
9463
|
sticky = !this.showOnUp && start + offset$1 === topOffset && end === Math.min(
|
|
9461
9464
|
maxScrollHeight,
|
|
@@ -9466,7 +9469,7 @@
|
|
|
9466
9469
|
end,
|
|
9467
9470
|
offset: offset$1,
|
|
9468
9471
|
overflow,
|
|
9469
|
-
height
|
|
9472
|
+
height,
|
|
9470
9473
|
elHeight,
|
|
9471
9474
|
width,
|
|
9472
9475
|
margin,
|