uikit 3.21.8 → 3.21.9-dev.03f75cd57
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 +8 -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 +6 -7
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +6 -7
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +7 -8
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +6 -7
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +6 -7
- 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 +15 -15
- 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 +16 -16
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/slider.js +2 -1
- package/src/js/core/offcanvas.js +2 -2
- package/src/js/core/sticky.js +8 -2
- package/src/js/util/dimensions.js +3 -3
- package/src/js/util/selector.js +8 -8
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.21.
|
|
1
|
+
/*! UIkit 3.21.9-dev.03f75cd57 | 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() :
|
|
@@ -367,16 +367,18 @@
|
|
|
367
367
|
return toNodes(_query(selector, toNode(context), "querySelectorAll"));
|
|
368
368
|
}
|
|
369
369
|
function getContext(selector, context = document) {
|
|
370
|
-
return
|
|
370
|
+
return isDocument(context) || parseSelector(selector).isContextSelector ? context : context.ownerDocument;
|
|
371
371
|
}
|
|
372
372
|
const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
373
373
|
const splitSelectorRe = /(\([^)]*\)|[^,])+/g;
|
|
374
374
|
const parseSelector = memoize((selector) => {
|
|
375
|
-
selector = selector.replace(addStarRe, "$1 *");
|
|
376
375
|
let isContextSelector = false;
|
|
376
|
+
if (!selector || !isString(selector)) {
|
|
377
|
+
return {};
|
|
378
|
+
}
|
|
377
379
|
const selectors = [];
|
|
378
380
|
for (let sel of selector.match(splitSelectorRe)) {
|
|
379
|
-
sel = sel.trim();
|
|
381
|
+
sel = sel.trim().replace(addStarRe, "$1 *");
|
|
380
382
|
isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
|
|
381
383
|
selectors.push(sel);
|
|
382
384
|
}
|
|
@@ -393,12 +395,9 @@
|
|
|
393
395
|
return [position, selector.slice(position.length + 1)];
|
|
394
396
|
});
|
|
395
397
|
function _query(selector, context = document, queryFn) {
|
|
396
|
-
if (!selector || !isString(selector)) {
|
|
397
|
-
return selector;
|
|
398
|
-
}
|
|
399
398
|
const parsed = parseSelector(selector);
|
|
400
399
|
if (!parsed.isContextSelector) {
|
|
401
|
-
return _doQuery(context, queryFn, parsed.selector);
|
|
400
|
+
return parsed.selector && _doQuery(context, queryFn, parsed.selector);
|
|
402
401
|
}
|
|
403
402
|
selector = "";
|
|
404
403
|
const isSingle = parsed.selectors.length === 1;
|
|
@@ -919,8 +918,8 @@
|
|
|
919
918
|
}
|
|
920
919
|
function boxModelAdjust(element, prop, sizing = "border-box") {
|
|
921
920
|
return css(element, "boxSizing") === sizing ? sumBy(
|
|
922
|
-
dirs$1[prop]
|
|
923
|
-
(prop2) => toFloat(css(element, `padding
|
|
921
|
+
dirs$1[prop],
|
|
922
|
+
(prop2) => toFloat(css(element, `padding-${prop2}`)) + toFloat(css(element, `border-${prop2}-width`))
|
|
924
923
|
) : 0;
|
|
925
924
|
}
|
|
926
925
|
function flipPosition(pos) {
|
|
@@ -2167,7 +2166,7 @@
|
|
|
2167
2166
|
};
|
|
2168
2167
|
App.util = util;
|
|
2169
2168
|
App.options = {};
|
|
2170
|
-
App.version = "3.21.
|
|
2169
|
+
App.version = "3.21.9-dev.03f75cd57";
|
|
2171
2170
|
|
|
2172
2171
|
const PREFIX = "uk-";
|
|
2173
2172
|
const DATA = "__uikit__";
|
|
@@ -5482,7 +5481,7 @@
|
|
|
5482
5481
|
}
|
|
5483
5482
|
const { body, scrollingElement } = document;
|
|
5484
5483
|
addClass(body, this.clsContainer, this.clsFlip);
|
|
5485
|
-
css(body, "
|
|
5484
|
+
css(body, "touchAction", "pan-y pinch-zoom");
|
|
5486
5485
|
css(this.$el, "display", "block");
|
|
5487
5486
|
css(this.panel, "maxWidth", scrollingElement.clientWidth);
|
|
5488
5487
|
addClass(this.$el, this.clsOverlay);
|
|
@@ -5501,7 +5500,7 @@
|
|
|
5501
5500
|
self: true,
|
|
5502
5501
|
handler() {
|
|
5503
5502
|
removeClass(document.body, this.clsContainerAnimation);
|
|
5504
|
-
css(document.body, "
|
|
5503
|
+
css(document.body, "touchAction", "");
|
|
5505
5504
|
}
|
|
5506
5505
|
},
|
|
5507
5506
|
{
|
|
@@ -5939,7 +5938,8 @@
|
|
|
5939
5938
|
offset$1 += dynamicViewport - height$1;
|
|
5940
5939
|
}
|
|
5941
5940
|
const overflow = this.overflowFlip ? 0 : Math.max(0, height$1 + offset$1 - viewport2);
|
|
5942
|
-
const topOffset = offset(referenceElement).top
|
|
5941
|
+
const topOffset = offset(referenceElement).top - // offset possible `transform: translateY` animation 'uk-animation-slide-top' while hiding
|
|
5942
|
+
new DOMMatrix(css(referenceElement, "transform")).m42;
|
|
5943
5943
|
const elHeight = dimensions(this.$el).height;
|
|
5944
5944
|
const start = (this.start === false ? topOffset : parseProp(this.start, this.$el, topOffset)) - offset$1;
|
|
5945
5945
|
const end = this.end === false ? maxScrollHeight : Math.min(
|
|
@@ -6141,7 +6141,7 @@
|
|
|
6141
6141
|
return propOffset + toPx(value, "height", el, true);
|
|
6142
6142
|
} else {
|
|
6143
6143
|
const refElement = value === true ? getVisibleParent(el) : query(value, el);
|
|
6144
|
-
return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) : 0);
|
|
6144
|
+
return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) + toFloat(css(refElement, "borderBottomWidth")) : 0);
|
|
6145
6145
|
}
|
|
6146
6146
|
}
|
|
6147
6147
|
function coerce(value) {
|