uikit 3.25.11-dev.e160bfb → 3.25.12-dev.bb12864
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 +3 -21
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +3 -21
- 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 +1 -1
- 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 +1 -1
- 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 +3 -9
- 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 +80 -88
- 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 +80 -88
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/mixin/modal.js +1 -4
- package/src/js/mixin/position.js +1 -7
- package/src/js/mixin/togglable.js +3 -4
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.12-dev.bb12864 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2675,86 +2675,6 @@
|
|
|
2675
2675
|
}
|
|
2676
2676
|
};
|
|
2677
2677
|
|
|
2678
|
-
var Position = {
|
|
2679
|
-
props: {
|
|
2680
|
-
pos: String,
|
|
2681
|
-
offset: Boolean,
|
|
2682
|
-
flip: Boolean,
|
|
2683
|
-
shift: Boolean,
|
|
2684
|
-
inset: Boolean
|
|
2685
|
-
},
|
|
2686
|
-
data: {
|
|
2687
|
-
pos: `bottom-${isRtl ? "right" : "left"}`,
|
|
2688
|
-
offset: false,
|
|
2689
|
-
flip: true,
|
|
2690
|
-
shift: true,
|
|
2691
|
-
inset: false
|
|
2692
|
-
},
|
|
2693
|
-
connected() {
|
|
2694
|
-
this.pos = this.$props.pos.split("-").concat("center").slice(0, 2);
|
|
2695
|
-
[this.dir, this.align] = this.pos;
|
|
2696
|
-
this.axis = includes(["top", "bottom"], this.dir) ? "y" : "x";
|
|
2697
|
-
},
|
|
2698
|
-
methods: {
|
|
2699
|
-
positionAt(element, target, boundary) {
|
|
2700
|
-
let offset = [this.getPositionOffset(element), this.getShiftOffset(element)];
|
|
2701
|
-
const placement = [this.flip && "flip", this.shift && "shift"];
|
|
2702
|
-
const attach = {
|
|
2703
|
-
element: [this.inset ? this.dir : flipPosition(this.dir), this.align],
|
|
2704
|
-
target: [this.dir, this.align]
|
|
2705
|
-
};
|
|
2706
|
-
if (this.axis === "y") {
|
|
2707
|
-
for (const prop in attach) {
|
|
2708
|
-
attach[prop].reverse();
|
|
2709
|
-
}
|
|
2710
|
-
offset.reverse();
|
|
2711
|
-
placement.reverse();
|
|
2712
|
-
}
|
|
2713
|
-
const restoreScrollPosition = storeScrollPosition(element);
|
|
2714
|
-
const elDim = dimensions$1(element);
|
|
2715
|
-
css(element, { top: -elDim.height, left: -elDim.width });
|
|
2716
|
-
positionAt(element, target, {
|
|
2717
|
-
attach,
|
|
2718
|
-
offset,
|
|
2719
|
-
boundary,
|
|
2720
|
-
placement,
|
|
2721
|
-
viewportOffset: this.getViewportOffset(element)
|
|
2722
|
-
});
|
|
2723
|
-
restoreScrollPosition();
|
|
2724
|
-
},
|
|
2725
|
-
getPositionOffset(element = this.$el) {
|
|
2726
|
-
return toPx(
|
|
2727
|
-
this.offset === false ? css(element, "--uk-position-offset") : this.offset,
|
|
2728
|
-
this.axis === "x" ? "width" : "height",
|
|
2729
|
-
element
|
|
2730
|
-
) * (includes(["left", "top"], this.dir) ? -1 : 1) * (this.inset ? -1 : 1);
|
|
2731
|
-
},
|
|
2732
|
-
getShiftOffset(element = this.$el) {
|
|
2733
|
-
return this.align === "center" ? 0 : toPx(
|
|
2734
|
-
css(element, "--uk-position-shift-offset"),
|
|
2735
|
-
this.axis === "y" ? "width" : "height",
|
|
2736
|
-
element
|
|
2737
|
-
) * (includes(["left", "top"], this.align) ? 1 : -1);
|
|
2738
|
-
},
|
|
2739
|
-
getViewportOffset(element) {
|
|
2740
|
-
return toPx(css(element, "--uk-position-viewport-offset"));
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2743
|
-
};
|
|
2744
|
-
function storeScrollPosition(element) {
|
|
2745
|
-
const scrollElement = scrollParent(element);
|
|
2746
|
-
const { scrollTop } = scrollElement;
|
|
2747
|
-
const restore = () => {
|
|
2748
|
-
if (scrollTop !== scrollElement.scrollTop) {
|
|
2749
|
-
scrollElement.scrollTop = scrollTop;
|
|
2750
|
-
}
|
|
2751
|
-
};
|
|
2752
|
-
return () => {
|
|
2753
|
-
restore();
|
|
2754
|
-
setTimeout(restore);
|
|
2755
|
-
};
|
|
2756
|
-
}
|
|
2757
|
-
|
|
2758
2678
|
var Togglable = {
|
|
2759
2679
|
props: {
|
|
2760
2680
|
cls: Boolean,
|
|
@@ -2796,9 +2716,7 @@
|
|
|
2796
2716
|
removeClass(el, cls);
|
|
2797
2717
|
trigger(el, show ? "shown" : "hidden", [this]);
|
|
2798
2718
|
if (show) {
|
|
2799
|
-
|
|
2800
|
-
(_a = $$("[autofocus]", el).find(isVisible)) == null ? void 0 : _a.focus();
|
|
2801
|
-
restoreScrollPosition();
|
|
2719
|
+
(_a = $$("[autofocus]", el).find(isVisible)) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
2802
2720
|
}
|
|
2803
2721
|
};
|
|
2804
2722
|
return promise ? promise.then(done, () => {
|
|
@@ -3068,9 +2986,7 @@
|
|
|
3068
2986
|
removeClass(document.documentElement, this.clsPage);
|
|
3069
2987
|
queueMicrotask(() => {
|
|
3070
2988
|
if (isFocusable(target)) {
|
|
3071
|
-
|
|
3072
|
-
target.focus();
|
|
3073
|
-
restoreScrollPosition();
|
|
2989
|
+
target.focus({ preventScroll: true });
|
|
3074
2990
|
}
|
|
3075
2991
|
});
|
|
3076
2992
|
}
|
|
@@ -3790,7 +3706,7 @@
|
|
|
3790
3706
|
};
|
|
3791
3707
|
App.util = util;
|
|
3792
3708
|
App.options = {};
|
|
3793
|
-
App.version = "3.25.
|
|
3709
|
+
App.version = "3.25.12-dev.bb12864";
|
|
3794
3710
|
|
|
3795
3711
|
const PREFIX = "uk-";
|
|
3796
3712
|
const DATA = "__uikit__";
|
|
@@ -6286,6 +6202,82 @@
|
|
|
6286
6202
|
};
|
|
6287
6203
|
}
|
|
6288
6204
|
|
|
6205
|
+
var Position = {
|
|
6206
|
+
props: {
|
|
6207
|
+
pos: String,
|
|
6208
|
+
offset: Boolean,
|
|
6209
|
+
flip: Boolean,
|
|
6210
|
+
shift: Boolean,
|
|
6211
|
+
inset: Boolean
|
|
6212
|
+
},
|
|
6213
|
+
data: {
|
|
6214
|
+
pos: `bottom-${isRtl ? "right" : "left"}`,
|
|
6215
|
+
offset: false,
|
|
6216
|
+
flip: true,
|
|
6217
|
+
shift: true,
|
|
6218
|
+
inset: false
|
|
6219
|
+
},
|
|
6220
|
+
connected() {
|
|
6221
|
+
this.pos = this.$props.pos.split("-").concat("center").slice(0, 2);
|
|
6222
|
+
[this.dir, this.align] = this.pos;
|
|
6223
|
+
this.axis = includes(["top", "bottom"], this.dir) ? "y" : "x";
|
|
6224
|
+
},
|
|
6225
|
+
methods: {
|
|
6226
|
+
positionAt(element, target, boundary) {
|
|
6227
|
+
let offset = [this.getPositionOffset(element), this.getShiftOffset(element)];
|
|
6228
|
+
const placement = [this.flip && "flip", this.shift && "shift"];
|
|
6229
|
+
const attach = {
|
|
6230
|
+
element: [this.inset ? this.dir : flipPosition(this.dir), this.align],
|
|
6231
|
+
target: [this.dir, this.align]
|
|
6232
|
+
};
|
|
6233
|
+
if (this.axis === "y") {
|
|
6234
|
+
for (const prop in attach) {
|
|
6235
|
+
attach[prop].reverse();
|
|
6236
|
+
}
|
|
6237
|
+
offset.reverse();
|
|
6238
|
+
placement.reverse();
|
|
6239
|
+
}
|
|
6240
|
+
const restoreScrollPosition = storeScrollPosition(element);
|
|
6241
|
+
const elDim = dimensions$1(element);
|
|
6242
|
+
css(element, { top: -elDim.height, left: -elDim.width });
|
|
6243
|
+
positionAt(element, target, {
|
|
6244
|
+
attach,
|
|
6245
|
+
offset,
|
|
6246
|
+
boundary,
|
|
6247
|
+
placement,
|
|
6248
|
+
viewportOffset: this.getViewportOffset(element)
|
|
6249
|
+
});
|
|
6250
|
+
restoreScrollPosition();
|
|
6251
|
+
},
|
|
6252
|
+
getPositionOffset(element = this.$el) {
|
|
6253
|
+
return toPx(
|
|
6254
|
+
this.offset === false ? css(element, "--uk-position-offset") : this.offset,
|
|
6255
|
+
this.axis === "x" ? "width" : "height",
|
|
6256
|
+
element
|
|
6257
|
+
) * (includes(["left", "top"], this.dir) ? -1 : 1) * (this.inset ? -1 : 1);
|
|
6258
|
+
},
|
|
6259
|
+
getShiftOffset(element = this.$el) {
|
|
6260
|
+
return this.align === "center" ? 0 : toPx(
|
|
6261
|
+
css(element, "--uk-position-shift-offset"),
|
|
6262
|
+
this.axis === "y" ? "width" : "height",
|
|
6263
|
+
element
|
|
6264
|
+
) * (includes(["left", "top"], this.align) ? 1 : -1);
|
|
6265
|
+
},
|
|
6266
|
+
getViewportOffset(element) {
|
|
6267
|
+
return toPx(css(element, "--uk-position-viewport-offset"));
|
|
6268
|
+
}
|
|
6269
|
+
}
|
|
6270
|
+
};
|
|
6271
|
+
function storeScrollPosition(element) {
|
|
6272
|
+
const scrollElement = scrollParent(element);
|
|
6273
|
+
const { scrollTop } = scrollElement;
|
|
6274
|
+
return () => {
|
|
6275
|
+
if (scrollTop !== scrollElement.scrollTop) {
|
|
6276
|
+
scrollElement.scrollTop = scrollTop;
|
|
6277
|
+
}
|
|
6278
|
+
};
|
|
6279
|
+
}
|
|
6280
|
+
|
|
6289
6281
|
var tooltip = {
|
|
6290
6282
|
mixins: [Container, Togglable, Position],
|
|
6291
6283
|
data: {
|