uikit 3.16.15-dev.b0c8c0a4b → 3.16.16-dev.e14477bcb
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/release.js +7 -7
- package/build/util.js +1 -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 +9 -7
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +9 -7
- 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 +9 -7
- 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 +9 -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 +28 -29
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +154 -154
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +36 -35
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/cover.js +1 -1
- package/src/js/core/img.js +2 -2
- package/src/js/core/video.js +4 -4
- package/src/js/mixin/slider-drag.js +4 -4
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.16-dev.e14477bcb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2159,7 +2159,7 @@
|
|
|
2159
2159
|
};
|
|
2160
2160
|
App.util = util;
|
|
2161
2161
|
App.options = {};
|
|
2162
|
-
App.version = "3.16.
|
|
2162
|
+
App.version = "3.16.16-dev.e14477bcb";
|
|
2163
2163
|
|
|
2164
2164
|
const PREFIX = "uk-";
|
|
2165
2165
|
const DATA = "__uikit__";
|
|
@@ -2932,9 +2932,7 @@
|
|
|
2932
2932
|
mute(this.$el);
|
|
2933
2933
|
}
|
|
2934
2934
|
},
|
|
2935
|
-
observe: intersection({
|
|
2936
|
-
args: { intersecting: false }
|
|
2937
|
-
}),
|
|
2935
|
+
observe: [intersection({ args: { intersecting: false } }), resize()],
|
|
2938
2936
|
update: {
|
|
2939
2937
|
read({ visible }) {
|
|
2940
2938
|
if (!isVideo(this.$el)) {
|
|
@@ -2952,7 +2950,8 @@
|
|
|
2952
2950
|
} else if (this.autoplay === true && !prev || this.inView && inView) {
|
|
2953
2951
|
play(this.$el);
|
|
2954
2952
|
}
|
|
2955
|
-
}
|
|
2953
|
+
},
|
|
2954
|
+
events: ["resize"]
|
|
2956
2955
|
}
|
|
2957
2956
|
};
|
|
2958
2957
|
|
|
@@ -2971,7 +2970,7 @@
|
|
|
2971
2970
|
}
|
|
2972
2971
|
},
|
|
2973
2972
|
observe: resize({
|
|
2974
|
-
target: ({ $el }) => [
|
|
2973
|
+
target: ({ $el }) => [getPositionedParent($el) || parent($el)]
|
|
2975
2974
|
}),
|
|
2976
2975
|
update: {
|
|
2977
2976
|
read() {
|
|
@@ -4301,45 +4300,45 @@
|
|
|
4301
4300
|
}
|
|
4302
4301
|
};
|
|
4303
4302
|
|
|
4304
|
-
var closeIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"
|
|
4303
|
+
var closeIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"1\" y1=\"1\" x2=\"13\" y2=\"13\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"13\" y1=\"1\" x2=\"1\" y2=\"13\"/></svg>";
|
|
4305
4304
|
|
|
4306
|
-
var closeLarge = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"
|
|
4305
|
+
var closeLarge = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"1\" y1=\"1\" x2=\"19\" y2=\"19\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"19\" y1=\"1\" x2=\"1\" y2=\"19\"/></svg>";
|
|
4307
4306
|
|
|
4308
|
-
var dropParentIcon = "<svg
|
|
4307
|
+
var dropParentIcon = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 3.5 6 8.5 11 3.5\"/></svg>";
|
|
4309
4308
|
|
|
4310
|
-
var marker = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"
|
|
4309
|
+
var marker = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><rect x=\"9\" y=\"4\" width=\"1\" height=\"11\"/><rect x=\"4\" y=\"9\" width=\"11\" height=\"1\"/></svg>";
|
|
4311
4310
|
|
|
4312
|
-
var navParentIcon = "<svg
|
|
4311
|
+
var navParentIcon = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 3.5 6 8.5 11 3.5\"/></svg>";
|
|
4313
4312
|
|
|
4314
|
-
var navParentIconLarge = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"
|
|
4313
|
+
var navParentIconLarge = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 4 7 10 13 4\"/></svg>";
|
|
4315
4314
|
|
|
4316
|
-
var navbarParentIcon = "<svg
|
|
4315
|
+
var navbarParentIcon = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 3.5 6 8.5 11 3.5\"/></svg>";
|
|
4317
4316
|
|
|
4318
|
-
var navbarToggleIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"
|
|
4317
|
+
var navbarToggleIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><style>.uk-navbar-toggle-animate svg>[class*="line-"]{transition:0.2s ease-in-out;transition-property:transform, opacity;transform-origin:center;opacity:1}.uk-navbar-toggle svg>.line-3{opacity:0}.uk-navbar-toggle-animate[aria-expanded="true"] svg>.line-3{opacity:1}.uk-navbar-toggle-animate[aria-expanded="true"] svg>.line-2{transform:rotate(45deg)}.uk-navbar-toggle-animate[aria-expanded="true"] svg>.line-3{transform:rotate(-45deg)}.uk-navbar-toggle-animate[aria-expanded="true"] svg>.line-1,.uk-navbar-toggle-animate[aria-expanded="true"] svg>.line-4{opacity:0}.uk-navbar-toggle-animate[aria-expanded="true"] svg>.line-1{transform:translateY(6px) scaleX(0)}.uk-navbar-toggle-animate[aria-expanded="true"] svg>.line-4{transform:translateY(-6px) scaleX(0)}</style><rect class=\"line-1\" y=\"3\" width=\"20\" height=\"2\"/><rect class=\"line-2\" y=\"9\" width=\"20\" height=\"2\"/><rect class=\"line-3\" y=\"9\" width=\"20\" height=\"2\"/><rect class=\"line-4\" y=\"15\" width=\"20\" height=\"2\"/></svg>";
|
|
4319
4318
|
|
|
4320
|
-
var overlayIcon = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"
|
|
4319
|
+
var overlayIcon = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"><rect x=\"19\" y=\"0\" width=\"1\" height=\"40\"/><rect x=\"0\" y=\"19\" width=\"40\" height=\"1\"/></svg>";
|
|
4321
4320
|
|
|
4322
|
-
var paginationNext = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"
|
|
4321
|
+
var paginationNext = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"1 1 6 6 1 11\"/></svg>";
|
|
4323
4322
|
|
|
4324
|
-
var paginationPrevious = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"
|
|
4323
|
+
var paginationPrevious = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"6 1 1 6 6 11\"/></svg>";
|
|
4325
4324
|
|
|
4326
|
-
var searchIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"
|
|
4325
|
+
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>";
|
|
4327
4326
|
|
|
4328
|
-
var searchLarge = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"
|
|
4327
|
+
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>";
|
|
4329
4328
|
|
|
4330
|
-
var searchNavbar = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"
|
|
4329
|
+
var searchNavbar = "<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>";
|
|
4331
4330
|
|
|
4332
|
-
var slidenavNext = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"
|
|
4331
|
+
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>";
|
|
4333
4332
|
|
|
4334
|
-
var slidenavNextLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"
|
|
4333
|
+
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>";
|
|
4335
4334
|
|
|
4336
|
-
var slidenavPrevious = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"
|
|
4335
|
+
var slidenavPrevious = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" points=\"12.775,1 1.225,12 12.775,23\"/></svg>";
|
|
4337
4336
|
|
|
4338
|
-
var slidenavPreviousLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"
|
|
4337
|
+
var slidenavPreviousLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"2\" points=\"20.527,1.5 2,20.024 20.525,38.547\"/></svg>";
|
|
4339
4338
|
|
|
4340
|
-
var spinner = "<svg width=\"30\" height=\"30\" viewBox=\"0 0 30 30\"
|
|
4339
|
+
var spinner = "<svg width=\"30\" height=\"30\" viewBox=\"0 0 30 30\"><circle fill=\"none\" stroke=\"#000\" cx=\"15\" cy=\"15\" r=\"14\"/></svg>";
|
|
4341
4340
|
|
|
4342
|
-
var totop = "<svg width=\"18\" height=\"10\" viewBox=\"0 0 18 10\"
|
|
4341
|
+
var totop = "<svg width=\"18\" height=\"10\" viewBox=\"0 0 18 10\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"1 9 9 1 17 9\"/></svg>";
|
|
4343
4342
|
|
|
4344
4343
|
const icons = {
|
|
4345
4344
|
spinner,
|
|
@@ -4570,12 +4569,12 @@
|
|
|
4570
4569
|
}
|
|
4571
4570
|
const srcProps = ["data-src", "data-srcset", "sizes"];
|
|
4572
4571
|
function setSourceProps(sourceEl, targetEl) {
|
|
4573
|
-
|
|
4572
|
+
for (const prop of srcProps) {
|
|
4574
4573
|
const value = data(sourceEl, prop);
|
|
4575
4574
|
if (value) {
|
|
4576
4575
|
attr(targetEl, prop.replace(/^(data-)+/, ""), value);
|
|
4577
4576
|
}
|
|
4578
|
-
}
|
|
4577
|
+
}
|
|
4579
4578
|
}
|
|
4580
4579
|
function getImageFromElement(el, src, sources) {
|
|
4581
4580
|
const img = new Image();
|
|
@@ -7181,13 +7180,15 @@
|
|
|
7181
7180
|
const changed = this.index !== nextIndex;
|
|
7182
7181
|
const edge = prevIndex === nextIndex;
|
|
7183
7182
|
let itemShown;
|
|
7184
|
-
[this.index, this.prevIndex]
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7183
|
+
for (const i of [this.index, this.prevIndex]) {
|
|
7184
|
+
if (!includes([nextIndex, prevIndex], i)) {
|
|
7185
|
+
trigger(slides[i], "itemhidden", [this]);
|
|
7186
|
+
if (edge) {
|
|
7187
|
+
itemShown = true;
|
|
7188
|
+
this.prevIndex = prevIndex;
|
|
7189
|
+
}
|
|
7189
7190
|
}
|
|
7190
|
-
}
|
|
7191
|
+
}
|
|
7191
7192
|
if (this.index === prevIndex && this.prevIndex !== prevIndex || itemShown) {
|
|
7192
7193
|
trigger(slides[this.index], "itemshown", [this]);
|
|
7193
7194
|
}
|