uikit 3.21.6-dev.ae91accad → 3.21.6-dev.de7455236
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 +7 -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 +5 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +5 -2
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +5 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +5 -2
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +5 -2
- 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 +18 -8
- 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 +18 -8
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/scrollspy-nav.js +1 -1
- package/src/js/core/sticky.js +13 -4
- package/src/js/util/svg.js +1 -1
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.21.6-dev.
|
|
1
|
+
/*! UIkit 3.21.6-dev.de7455236 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2169,7 +2169,7 @@
|
|
|
2169
2169
|
};
|
|
2170
2170
|
App.util = util;
|
|
2171
2171
|
App.options = {};
|
|
2172
|
-
App.version = "3.21.6-dev.
|
|
2172
|
+
App.version = "3.21.6-dev.de7455236";
|
|
2173
2173
|
|
|
2174
2174
|
const PREFIX = "uk-";
|
|
2175
2175
|
const DATA = "__uikit__";
|
|
@@ -4419,7 +4419,10 @@
|
|
|
4419
4419
|
|
|
4420
4420
|
function getMaxPathLength(el) {
|
|
4421
4421
|
return isVisible(el) ? Math.ceil(
|
|
4422
|
-
Math.max(0, ...$$("[stroke]", el).map((stroke) =>
|
|
4422
|
+
Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
4423
|
+
var _a;
|
|
4424
|
+
return ((_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke)) || 0;
|
|
4425
|
+
}))
|
|
4423
4426
|
) : 0;
|
|
4424
4427
|
}
|
|
4425
4428
|
|
|
@@ -5753,7 +5756,7 @@
|
|
|
5753
5756
|
cls: "uk-active",
|
|
5754
5757
|
closest: false,
|
|
5755
5758
|
scroll: false,
|
|
5756
|
-
target:
|
|
5759
|
+
target: 'a[href]:not([role="button"])',
|
|
5757
5760
|
offset: 0
|
|
5758
5761
|
},
|
|
5759
5762
|
computed: {
|
|
@@ -5870,10 +5873,10 @@
|
|
|
5870
5873
|
viewport(),
|
|
5871
5874
|
scroll$1({ target: () => document.scrollingElement }),
|
|
5872
5875
|
resize({
|
|
5873
|
-
target: ({ $el }) => [$el,
|
|
5876
|
+
target: ({ $el }) => [$el, getVisibleParent($el), document.scrollingElement],
|
|
5874
5877
|
handler(entries) {
|
|
5875
5878
|
this.$emit(
|
|
5876
|
-
this._data.resized && entries.some(({ target }) => target ===
|
|
5879
|
+
this._data.resized && entries.some(({ target }) => target === getVisibleParent(this.$el)) ? "update" : "resize"
|
|
5877
5880
|
);
|
|
5878
5881
|
this._data.resized = true;
|
|
5879
5882
|
}
|
|
@@ -5946,7 +5949,7 @@
|
|
|
5946
5949
|
sticky = maxScrollHeight && !this.showOnUp && start + offset$1 === topOffset && end === Math.min(
|
|
5947
5950
|
maxScrollHeight,
|
|
5948
5951
|
parseProp(true, this.$el, 0, true) - elHeight - offset$1 + overflow
|
|
5949
|
-
) && css(
|
|
5952
|
+
) && css(getVisibleParent(this.$el), "overflowY") === "visible";
|
|
5950
5953
|
return {
|
|
5951
5954
|
start,
|
|
5952
5955
|
end,
|
|
@@ -6137,7 +6140,7 @@
|
|
|
6137
6140
|
if (isNumeric(value) || isString(value) && value.match(/^-?\d/)) {
|
|
6138
6141
|
return propOffset + toPx(value, "height", el, true);
|
|
6139
6142
|
} else {
|
|
6140
|
-
const refElement = value === true ?
|
|
6143
|
+
const refElement = value === true ? getVisibleParent(el) : query(value, el);
|
|
6141
6144
|
return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) : 0);
|
|
6142
6145
|
}
|
|
6143
6146
|
}
|
|
@@ -6159,6 +6162,13 @@
|
|
|
6159
6162
|
requestAnimationFrame(() => removeClass(element, clsTransitionDisable));
|
|
6160
6163
|
}
|
|
6161
6164
|
}
|
|
6165
|
+
function getVisibleParent(element) {
|
|
6166
|
+
while (element = parent(element)) {
|
|
6167
|
+
if (isVisible(element)) {
|
|
6168
|
+
return element;
|
|
6169
|
+
}
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6162
6172
|
|
|
6163
6173
|
const selDisabled = ".uk-disabled *, .uk-disabled, [disabled]";
|
|
6164
6174
|
var Switcher = {
|