uikit 3.21.5-dev.ed4adca92 → 3.21.6-dev.6f62fc2a0
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 +3 -1
- 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 +7 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +7 -2
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +7 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +7 -2
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +7 -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 +15 -10
- 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 +15 -10
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/dropnav.js +3 -2
- package/src/js/core/height-viewport.js +2 -3
- package/src/js/core/icon.js +1 -1
- package/src/js/core/sticky.js +1 -1
- package/src/js/util/player.js +2 -2
- package/src/js/util/svg.js +3 -1
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.21.
|
|
1
|
+
/*! UIkit 3.21.6-dev.6f62fc2a0 | 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.
|
|
2172
|
+
App.version = "3.21.6-dev.6f62fc2a0";
|
|
2173
2173
|
|
|
2174
2174
|
const PREFIX = "uk-";
|
|
2175
2175
|
const DATA = "__uikit__";
|
|
@@ -3656,8 +3656,8 @@
|
|
|
3656
3656
|
delegate: ({ clsDrop }) => `.${clsDrop}`,
|
|
3657
3657
|
handler(e) {
|
|
3658
3658
|
var _a;
|
|
3659
|
-
const { current, keyCode } = e;
|
|
3660
|
-
if (!includes(this.dropdowns, current)) {
|
|
3659
|
+
const { current, keyCode, target } = e;
|
|
3660
|
+
if (isInput(target) || !includes(this.dropdowns, current)) {
|
|
3661
3661
|
return;
|
|
3662
3662
|
}
|
|
3663
3663
|
const active2 = this.getActive();
|
|
@@ -4266,7 +4266,7 @@
|
|
|
4266
4266
|
if (this.offsetTop) {
|
|
4267
4267
|
if (isScrollingElement) {
|
|
4268
4268
|
const offsetTopEl = this.offsetTop === true ? this.$el : query(this.offsetTop, this.$el);
|
|
4269
|
-
const top =
|
|
4269
|
+
const { top } = offset(offsetTopEl);
|
|
4270
4270
|
minHeight += top > 0 && top < viewportHeight / 2 ? ` - ${top}px` : "";
|
|
4271
4271
|
} else {
|
|
4272
4272
|
minHeight += ` - ${boxModelAdjust(scrollElement, "height", css(scrollElement, "boxSizing"))}px`;
|
|
@@ -4316,10 +4316,10 @@
|
|
|
4316
4316
|
|
|
4317
4317
|
var searchIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" cx=\"9\" cy=\"9\" r=\"7\"/><path fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" d=\"M14,14 L18,18 L14,14 Z\"/></svg>";
|
|
4318
4318
|
|
|
4319
|
-
var searchMedium = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" cx=\"10.5\" cy=\"10.5\" r=\"9.5\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"23\" y1=\"23\" x2=\"17\" y2=\"17\"/></svg>";
|
|
4320
|
-
|
|
4321
4319
|
var searchLarge = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.8\" cx=\"17.5\" cy=\"17.5\" r=\"16.5\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.8\" x1=\"38\" y1=\"39\" x2=\"29\" y2=\"30\"/></svg>";
|
|
4322
4320
|
|
|
4321
|
+
var searchMedium = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" cx=\"10.5\" cy=\"10.5\" r=\"9.5\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"23\" y1=\"23\" x2=\"17\" y2=\"17\"/></svg>";
|
|
4322
|
+
|
|
4323
4323
|
var slidenavNextLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"2\" points=\"4.002,38.547 22.527,20.024 4,1.5\"/></svg>";
|
|
4324
4324
|
|
|
4325
4325
|
var slidenavNext = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" points=\"1.225,23 12.775,12 1.225,1\"/></svg>";
|
|
@@ -4418,7 +4418,12 @@
|
|
|
4418
4418
|
}
|
|
4419
4419
|
|
|
4420
4420
|
function getMaxPathLength(el) {
|
|
4421
|
-
return isVisible(el) ? Math.ceil(
|
|
4421
|
+
return isVisible(el) ? Math.ceil(
|
|
4422
|
+
Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
4423
|
+
var _a;
|
|
4424
|
+
return ((_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke)) || 0;
|
|
4425
|
+
}))
|
|
4426
|
+
) : 0;
|
|
4422
4427
|
}
|
|
4423
4428
|
|
|
4424
4429
|
var svg = {
|
|
@@ -5902,7 +5907,7 @@
|
|
|
5902
5907
|
update: [
|
|
5903
5908
|
{
|
|
5904
5909
|
read({ height: height$1, width, margin, sticky }, types) {
|
|
5905
|
-
this.inactive = !this.matchMedia || !isVisible(this.$el);
|
|
5910
|
+
this.inactive = !this.matchMedia || !isVisible(this.$el) || !this.$el.offsetHeight;
|
|
5906
5911
|
if (this.inactive) {
|
|
5907
5912
|
return;
|
|
5908
5913
|
}
|