uikit 3.21.6-dev.80912ecf1 → 3.21.6-dev.8cf944953
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/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 +19 -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 +19 -8
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/sticky.js +15 -4
- package/src/js/util/player.js +2 -2
- 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.8cf944953 | 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() :
|
|
@@ -1122,7 +1122,7 @@
|
|
|
1122
1122
|
call(el, { func: "playVideo", method: "play" });
|
|
1123
1123
|
}
|
|
1124
1124
|
if (isHTML5(el)) {
|
|
1125
|
-
el.play();
|
|
1125
|
+
el.play().catch(noop);
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
function pause(el) {
|
|
@@ -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.8cf944953";
|
|
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
|
|
|
@@ -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
|
}
|
|
@@ -5908,6 +5911,7 @@
|
|
|
5908
5911
|
if (this.inactive) {
|
|
5909
5912
|
return;
|
|
5910
5913
|
}
|
|
5914
|
+
console.log(this._uid, types, width);
|
|
5911
5915
|
const hide = this.isFixed && types.has("update");
|
|
5912
5916
|
if (hide) {
|
|
5913
5917
|
preventTransition(this.target);
|
|
@@ -5946,7 +5950,7 @@
|
|
|
5946
5950
|
sticky = maxScrollHeight && !this.showOnUp && start + offset$1 === topOffset && end === Math.min(
|
|
5947
5951
|
maxScrollHeight,
|
|
5948
5952
|
parseProp(true, this.$el, 0, true) - elHeight - offset$1 + overflow
|
|
5949
|
-
) && css(
|
|
5953
|
+
) && css(getVisibleParent(this.$el), "overflowY") === "visible";
|
|
5950
5954
|
return {
|
|
5951
5955
|
start,
|
|
5952
5956
|
end,
|
|
@@ -6137,7 +6141,7 @@
|
|
|
6137
6141
|
if (isNumeric(value) || isString(value) && value.match(/^-?\d/)) {
|
|
6138
6142
|
return propOffset + toPx(value, "height", el, true);
|
|
6139
6143
|
} else {
|
|
6140
|
-
const refElement = value === true ?
|
|
6144
|
+
const refElement = value === true ? getVisibleParent(el) : query(value, el);
|
|
6141
6145
|
return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) : 0);
|
|
6142
6146
|
}
|
|
6143
6147
|
}
|
|
@@ -6159,6 +6163,13 @@
|
|
|
6159
6163
|
requestAnimationFrame(() => removeClass(element, clsTransitionDisable));
|
|
6160
6164
|
}
|
|
6161
6165
|
}
|
|
6166
|
+
function getVisibleParent(element) {
|
|
6167
|
+
while (element = parent(element)) {
|
|
6168
|
+
if (isVisible(element)) {
|
|
6169
|
+
return element;
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6172
|
+
}
|
|
6162
6173
|
|
|
6163
6174
|
const selDisabled = ".uk-disabled *, .uk-disabled, [disabled]";
|
|
6164
6175
|
var Switcher = {
|