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-core.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(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,
|
|
@@ -1689,7 +1689,7 @@
|
|
|
1689
1689
|
wrapInner: wrapInner
|
|
1690
1690
|
});
|
|
1691
1691
|
|
|
1692
|
-
var VERSION = '3.25.27-dev.
|
|
1692
|
+
var VERSION = '3.25.27-dev.eabaa45';
|
|
1693
1693
|
|
|
1694
1694
|
function initUpdates(instance) {
|
|
1695
1695
|
instance._data = {};
|
|
@@ -3855,7 +3855,7 @@
|
|
|
3855
3855
|
},
|
|
3856
3856
|
async transitionTo(newHeight, el) {
|
|
3857
3857
|
const { dropbar } = this;
|
|
3858
|
-
const oldHeight = height(dropbar);
|
|
3858
|
+
const oldHeight = height$1(dropbar);
|
|
3859
3859
|
el = oldHeight < newHeight && el;
|
|
3860
3860
|
await Transition.cancel([el, dropbar]);
|
|
3861
3861
|
if (el) {
|
|
@@ -3865,7 +3865,7 @@
|
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
3867
3867
|
css(el, "clipPath", `polygon(0 0,100% 0,100% ${oldHeight}px,0 ${oldHeight}px)`);
|
|
3868
|
-
height(dropbar, oldHeight);
|
|
3868
|
+
height$1(dropbar, oldHeight);
|
|
3869
3869
|
await Promise.all([
|
|
3870
3870
|
Transition.start(dropbar, { height: newHeight }, this.duration),
|
|
3871
3871
|
Transition.start(
|
|
@@ -5281,7 +5281,7 @@
|
|
|
5281
5281
|
} else {
|
|
5282
5282
|
css(this.$el, "display", "block");
|
|
5283
5283
|
}
|
|
5284
|
-
height(this.$el);
|
|
5284
|
+
height$1(this.$el);
|
|
5285
5285
|
}
|
|
5286
5286
|
},
|
|
5287
5287
|
{
|
|
@@ -5518,7 +5518,7 @@
|
|
|
5518
5518
|
this.clsSidebarAnimation,
|
|
5519
5519
|
this.mode === "reveal" ? "" : this.clsMode
|
|
5520
5520
|
);
|
|
5521
|
-
height(body);
|
|
5521
|
+
height$1(body);
|
|
5522
5522
|
addClass(body, this.clsContainerAnimation);
|
|
5523
5523
|
this.clsContainerAnimation && suppressUserScale();
|
|
5524
5524
|
}
|
|
@@ -5604,6 +5604,9 @@
|
|
|
5604
5604
|
events: ["resize"]
|
|
5605
5605
|
}
|
|
5606
5606
|
};
|
|
5607
|
+
function height(el) {
|
|
5608
|
+
return dimensions(el).height - boxModelAdjust(el, "height", css(el, "boxSizing"));
|
|
5609
|
+
}
|
|
5607
5610
|
|
|
5608
5611
|
var overflowFade = {
|
|
5609
5612
|
data: {
|
|
@@ -6036,12 +6039,12 @@
|
|
|
6036
6039
|
],
|
|
6037
6040
|
update: [
|
|
6038
6041
|
{
|
|
6039
|
-
read({ height
|
|
6042
|
+
read({ height, width, margin, sticky }, types) {
|
|
6040
6043
|
this.inactive = !this.matchMedia || !isVisible(this.$el) || !this.$el.offsetHeight;
|
|
6041
6044
|
if (this.inactive) {
|
|
6042
6045
|
return;
|
|
6043
6046
|
}
|
|
6044
|
-
const dynamicViewport = height(window);
|
|
6047
|
+
const dynamicViewport = height$1(window);
|
|
6045
6048
|
const maxScrollHeight = Math.max(
|
|
6046
6049
|
0,
|
|
6047
6050
|
document.scrollingElement.scrollHeight - dynamicViewport
|
|
@@ -6056,7 +6059,7 @@
|
|
|
6056
6059
|
this.hide();
|
|
6057
6060
|
}
|
|
6058
6061
|
if (!this.active) {
|
|
6059
|
-
({ height
|
|
6062
|
+
({ height, width } = dimensions(this.$el));
|
|
6060
6063
|
margin = css(this.$el, "margin");
|
|
6061
6064
|
}
|
|
6062
6065
|
if (hide) {
|
|
@@ -6064,17 +6067,17 @@
|
|
|
6064
6067
|
}
|
|
6065
6068
|
const viewport2 = toPx("100vh", "height");
|
|
6066
6069
|
let position = this.position;
|
|
6067
|
-
if (this.overflowFlip && height
|
|
6070
|
+
if (this.overflowFlip && height > viewport2) {
|
|
6068
6071
|
position = position === "top" ? "bottom" : "top";
|
|
6069
6072
|
}
|
|
6070
6073
|
const referenceElement = this.isFixed ? this.placeholder : this.$el;
|
|
6071
6074
|
let [offset$1, offsetEnd] = [this.offset, this.offsetEnd].map(
|
|
6072
6075
|
(value) => toPx(value, "height", sticky ? this.$el : referenceElement)
|
|
6073
6076
|
);
|
|
6074
|
-
if (position === "bottom" && (height
|
|
6075
|
-
offset$1 += dynamicViewport - height
|
|
6077
|
+
if (position === "bottom" && (height < dynamicViewport || this.overflowFlip)) {
|
|
6078
|
+
offset$1 += dynamicViewport - height;
|
|
6076
6079
|
}
|
|
6077
|
-
const elementBox = height
|
|
6080
|
+
const elementBox = height + offset$1 + offsetEnd;
|
|
6078
6081
|
const overflow = this.overflowFlip ? 0 : Math.max(0, elementBox - viewport2);
|
|
6079
6082
|
const topOffset = offset(referenceElement).top - // offset possible `transform: translateY` animation 'uk-animation-slide-top' while hiding
|
|
6080
6083
|
new DOMMatrix(css(referenceElement, "transform")).m42;
|
|
@@ -6082,7 +6085,7 @@
|
|
|
6082
6085
|
const start = (this.start === false ? topOffset : parseProp(this.start, this.$el, topOffset)) - offset$1;
|
|
6083
6086
|
const end = this.end === false ? maxScrollHeight : Math.min(
|
|
6084
6087
|
maxScrollHeight,
|
|
6085
|
-
parseProp(this.end, this.$el, topOffset + height
|
|
6088
|
+
parseProp(this.end, this.$el, topOffset + height, true) - elHeight - offset$1 + overflow
|
|
6086
6089
|
);
|
|
6087
6090
|
sticky = !this.showOnUp && start + offset$1 === topOffset && end === Math.min(
|
|
6088
6091
|
maxScrollHeight,
|
|
@@ -6093,7 +6096,7 @@
|
|
|
6093
6096
|
end,
|
|
6094
6097
|
offset: offset$1,
|
|
6095
6098
|
overflow,
|
|
6096
|
-
height
|
|
6099
|
+
height,
|
|
6097
6100
|
elHeight,
|
|
6098
6101
|
width,
|
|
6099
6102
|
margin,
|