uikit 3.15.6-dev.ae6593e0f → 3.15.7-dev.05c3b3f6c
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 +10 -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 +35 -9
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +35 -9
- 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 +6 -5
- 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 +6 -5
- 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 +58 -30
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +63 -34
- package/dist/js/uikit.min.js +2 -2
- package/package.json +2 -2
- package/src/js/core/drop.js +10 -4
- package/src/js/core/offcanvas.js +0 -14
- package/src/js/core/scrollspy-nav.js +2 -1
- package/src/js/core/switcher.js +17 -5
- package/src/js/mixin/modal.js +25 -0
- package/src/js/mixin/slider-drag.js +5 -4
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.15.
|
|
1
|
+
/*! UIkit 3.15.7-dev.05c3b3f6c | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2945,7 +2945,7 @@
|
|
|
2945
2945
|
UIkit.data = '__uikit__';
|
|
2946
2946
|
UIkit.prefix = 'uk-';
|
|
2947
2947
|
UIkit.options = {};
|
|
2948
|
-
UIkit.version = '3.15.
|
|
2948
|
+
UIkit.version = '3.15.7-dev.05c3b3f6c';
|
|
2949
2949
|
|
|
2950
2950
|
globalAPI(UIkit);
|
|
2951
2951
|
hooksAPI(UIkit);
|
|
@@ -3804,6 +3804,27 @@
|
|
|
3804
3804
|
} },
|
|
3805
3805
|
|
|
3806
3806
|
|
|
3807
|
+
{
|
|
3808
|
+
name: 'click',
|
|
3809
|
+
|
|
3810
|
+
delegate() {
|
|
3811
|
+
return 'a[href*="#"]';
|
|
3812
|
+
},
|
|
3813
|
+
|
|
3814
|
+
handler(_ref3) {let { current, defaultPrevented } = _ref3;
|
|
3815
|
+
const { hash } = current;
|
|
3816
|
+
if (
|
|
3817
|
+
!defaultPrevented &&
|
|
3818
|
+
hash &&
|
|
3819
|
+
isSameSiteAnchor(current) &&
|
|
3820
|
+
!within(hash, this.$el) &&
|
|
3821
|
+
$(hash, document.body))
|
|
3822
|
+
{
|
|
3823
|
+
this.hide();
|
|
3824
|
+
}
|
|
3825
|
+
} },
|
|
3826
|
+
|
|
3827
|
+
|
|
3807
3828
|
{
|
|
3808
3829
|
name: 'toggle',
|
|
3809
3830
|
|
|
@@ -3872,7 +3893,7 @@
|
|
|
3872
3893
|
once(
|
|
3873
3894
|
this.$el,
|
|
3874
3895
|
'hide',
|
|
3875
|
-
on(document, pointerDown$1, (
|
|
3896
|
+
on(document, pointerDown$1, (_ref4) => {let { target } = _ref4;
|
|
3876
3897
|
if (
|
|
3877
3898
|
last(active$1) !== this ||
|
|
3878
3899
|
this.overlay && !within(target, this.$el) ||
|
|
@@ -3884,7 +3905,7 @@
|
|
|
3884
3905
|
once(
|
|
3885
3906
|
document,
|
|
3886
3907
|
pointerUp$1 + " " + pointerCancel + " scroll",
|
|
3887
|
-
(
|
|
3908
|
+
(_ref5) => {let { defaultPrevented, type, target: newTarget } = _ref5;
|
|
3888
3909
|
if (
|
|
3889
3910
|
!defaultPrevented &&
|
|
3890
3911
|
type === pointerUp$1 &&
|
|
@@ -3972,7 +3993,7 @@
|
|
|
3972
3993
|
|
|
3973
3994
|
|
|
3974
3995
|
|
|
3975
|
-
function animate(el, show,
|
|
3996
|
+
function animate(el, show, _ref6) {let { transitionElement, _toggle } = _ref6;
|
|
3976
3997
|
return new Promise((resolve, reject) =>
|
|
3977
3998
|
once(el, 'show hide', () => {
|
|
3978
3999
|
el._reject == null ? void 0 : el._reject();
|
|
@@ -4017,7 +4038,7 @@
|
|
|
4017
4038
|
on(
|
|
4018
4039
|
el,
|
|
4019
4040
|
'touchstart',
|
|
4020
|
-
(
|
|
4041
|
+
(_ref7) => {let { targetTouches } = _ref7;
|
|
4021
4042
|
if (targetTouches.length === 1) {
|
|
4022
4043
|
startClientY = targetTouches[0].clientY;
|
|
4023
4044
|
}
|
|
@@ -4085,6 +4106,10 @@
|
|
|
4085
4106
|
return children;
|
|
4086
4107
|
}
|
|
4087
4108
|
|
|
4109
|
+
function isSameSiteAnchor(a) {
|
|
4110
|
+
return ['origin', 'pathname', 'search'].every((part) => a[part] === location[part]);
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4088
4113
|
let active;
|
|
4089
4114
|
|
|
4090
4115
|
var drop = {
|
|
@@ -4196,11 +4221,17 @@
|
|
|
4196
4221
|
name: 'click',
|
|
4197
4222
|
|
|
4198
4223
|
delegate() {
|
|
4199
|
-
return 'a[href
|
|
4224
|
+
return 'a[href*="#"]';
|
|
4200
4225
|
},
|
|
4201
4226
|
|
|
4202
|
-
handler(_ref3) {let { defaultPrevented, current
|
|
4203
|
-
|
|
4227
|
+
handler(_ref3) {let { defaultPrevented, current } = _ref3;
|
|
4228
|
+
const { hash } = current;
|
|
4229
|
+
if (
|
|
4230
|
+
!defaultPrevented &&
|
|
4231
|
+
hash &&
|
|
4232
|
+
isSameSiteAnchor(current) &&
|
|
4233
|
+
!within(hash, this.$el))
|
|
4234
|
+
{
|
|
4204
4235
|
this.hide(false);
|
|
4205
4236
|
}
|
|
4206
4237
|
} },
|
|
@@ -6450,20 +6481,6 @@
|
|
|
6450
6481
|
|
|
6451
6482
|
|
|
6452
6483
|
events: [
|
|
6453
|
-
{
|
|
6454
|
-
name: 'click',
|
|
6455
|
-
|
|
6456
|
-
delegate() {
|
|
6457
|
-
return 'a[href^="#"]';
|
|
6458
|
-
},
|
|
6459
|
-
|
|
6460
|
-
handler(_ref7) {let { current: { hash }, defaultPrevented } = _ref7;
|
|
6461
|
-
if (!defaultPrevented && hash && $(hash, document.body)) {
|
|
6462
|
-
this.hide();
|
|
6463
|
-
}
|
|
6464
|
-
} },
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
6484
|
{
|
|
6468
6485
|
name: 'touchmove',
|
|
6469
6486
|
|
|
@@ -6880,7 +6897,7 @@
|
|
|
6880
6897
|
computed: {
|
|
6881
6898
|
links: {
|
|
6882
6899
|
get(_, $el) {
|
|
6883
|
-
return $$('a[href
|
|
6900
|
+
return $$('a[href*="#"]', $el).filter((el) => el.hash && isSameSiteAnchor(el));
|
|
6884
6901
|
},
|
|
6885
6902
|
|
|
6886
6903
|
watch(links) {
|
|
@@ -7368,16 +7385,27 @@
|
|
|
7368
7385
|
return queryAll(connect, $el);
|
|
7369
7386
|
},
|
|
7370
7387
|
|
|
7371
|
-
watch(connects) {
|
|
7388
|
+
watch(connects) {var _this$_observer;
|
|
7372
7389
|
if (this.swiping) {
|
|
7373
7390
|
css(connects, 'touchAction', 'pan-y pinch-zoom');
|
|
7374
7391
|
}
|
|
7375
7392
|
|
|
7376
|
-
|
|
7377
|
-
this.
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7393
|
+
(_this$_observer = this._observer) == null ? void 0 : _this$_observer.disconnect();
|
|
7394
|
+
this.registerObserver(
|
|
7395
|
+
this._observer = observeMutation(
|
|
7396
|
+
connects,
|
|
7397
|
+
(records) => {
|
|
7398
|
+
const index = this.index();
|
|
7399
|
+
for (const { target: el } of records) {
|
|
7400
|
+
children(el).forEach((child, i) =>
|
|
7401
|
+
toggleClass(child, this.cls, i === index));
|
|
7402
|
+
|
|
7403
|
+
this.lazyload(this.$el, children(el));
|
|
7404
|
+
}
|
|
7405
|
+
},
|
|
7406
|
+
{ childList: true }));
|
|
7407
|
+
|
|
7408
|
+
|
|
7381
7409
|
},
|
|
7382
7410
|
|
|
7383
7411
|
immediate: true },
|
|
@@ -8575,9 +8603,10 @@
|
|
|
8575
8603
|
} } };
|
|
8576
8604
|
|
|
8577
8605
|
const pointerOptions = { passive: false, capture: true };
|
|
8606
|
+
const pointerUpOptions = { passive: true, capture: true };
|
|
8578
8607
|
const pointerDown = 'touchstart mousedown';
|
|
8579
8608
|
const pointerMove = 'touchmove mousemove';
|
|
8580
|
-
const pointerUp = 'touchend touchcancel mouseup click input';
|
|
8609
|
+
const pointerUp = 'touchend touchcancel mouseup click input scroll';
|
|
8581
8610
|
|
|
8582
8611
|
var SliderDrag = {
|
|
8583
8612
|
props: {
|
|
@@ -8636,7 +8665,7 @@
|
|
|
8636
8665
|
|
|
8637
8666
|
{
|
|
8638
8667
|
// iOS workaround for slider stopping if swiping fast
|
|
8639
|
-
name: pointerMove
|
|
8668
|
+
name: pointerMove,
|
|
8640
8669
|
el() {
|
|
8641
8670
|
return this.list;
|
|
8642
8671
|
},
|
|
@@ -8666,7 +8695,7 @@
|
|
|
8666
8695
|
on(document, pointerMove, this.move, pointerOptions);
|
|
8667
8696
|
|
|
8668
8697
|
// 'input' event is triggered by video controls
|
|
8669
|
-
on(document, pointerUp, this.end,
|
|
8698
|
+
on(document, pointerUp, this.end, pointerUpOptions);
|
|
8670
8699
|
|
|
8671
8700
|
css(this.list, 'userSelect', 'none');
|
|
8672
8701
|
},
|
|
@@ -8747,7 +8776,7 @@
|
|
|
8747
8776
|
|
|
8748
8777
|
end() {
|
|
8749
8778
|
off(document, pointerMove, this.move, pointerOptions);
|
|
8750
|
-
off(document, pointerUp, this.end,
|
|
8779
|
+
off(document, pointerUp, this.end, pointerUpOptions);
|
|
8751
8780
|
|
|
8752
8781
|
if (this.dragging) {
|
|
8753
8782
|
this.dragging = null;
|