uikit 3.15.6-dev.fb448ac28 → 3.15.7-dev.a12865820
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 +65 -49
- 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 +70 -53
- package/dist/js/uikit.min.js +2 -2
- package/package.json +2 -2
- package/src/js/core/accordion.js +24 -26
- 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/mixin/modal.js +25 -0
- package/src/js/mixin/slider-drag.js +5 -4
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.15.
|
|
1
|
+
/*! UIkit 3.15.7-dev.a12865820 | 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.a12865820';
|
|
2949
2949
|
|
|
2950
2950
|
globalAPI(UIkit);
|
|
2951
2951
|
hooksAPI(UIkit);
|
|
@@ -3370,42 +3370,41 @@
|
|
|
3370
3370
|
|
|
3371
3371
|
|
|
3372
3372
|
methods: {
|
|
3373
|
-
toggle(item, animate) {
|
|
3374
|
-
|
|
3373
|
+
async toggle(item, animate) {
|
|
3374
|
+
item = this.items[getIndex(item, this.items)];
|
|
3375
|
+
let items = [item];
|
|
3375
3376
|
const activeItems = filter(this.items, "." + this.clsOpen);
|
|
3376
3377
|
|
|
3377
3378
|
if (!this.multiple && !includes(activeItems, items[0])) {
|
|
3378
3379
|
items = items.concat(activeItems);
|
|
3379
3380
|
}
|
|
3380
3381
|
|
|
3381
|
-
if (
|
|
3382
|
-
!this.collapsible &&
|
|
3383
|
-
activeItems.length < 2 &&
|
|
3384
|
-
!filter(items, ":not(." + this.clsOpen + ")").length)
|
|
3385
|
-
{
|
|
3382
|
+
if (!this.collapsible && activeItems.length < 2 && includes(activeItems, item)) {
|
|
3386
3383
|
return;
|
|
3387
3384
|
}
|
|
3388
3385
|
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3386
|
+
await Promise.all(
|
|
3387
|
+
items.map((el) =>
|
|
3388
|
+
this.toggleElement(el, !includes(activeItems, el), (el, show) => {
|
|
3389
|
+
toggleClass(el, this.clsOpen, show);
|
|
3390
|
+
attr($(this.$props.toggle, el), 'aria-expanded', show);
|
|
3393
3391
|
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3392
|
+
if (animate === false || !this.animation) {
|
|
3393
|
+
hide($(this.content, el), !show);
|
|
3394
|
+
return;
|
|
3395
|
+
}
|
|
3398
3396
|
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3397
|
+
return transition(el, show, this);
|
|
3398
|
+
})));
|
|
3399
|
+
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
if (animate !== false && this.animation && !includes(activeItems, item)) {
|
|
3403
|
+
const toggle = $(this.$props.toggle, item);
|
|
3404
|
+
requestAnimationFrame(() => {
|
|
3405
|
+
if (!isInView(toggle)) {
|
|
3406
|
+
scrollIntoView(toggle, { offset: this.offset });
|
|
3407
|
+
}
|
|
3409
3408
|
});
|
|
3410
3409
|
}
|
|
3411
3410
|
} } };
|
|
@@ -3804,6 +3803,27 @@
|
|
|
3804
3803
|
} },
|
|
3805
3804
|
|
|
3806
3805
|
|
|
3806
|
+
{
|
|
3807
|
+
name: 'click',
|
|
3808
|
+
|
|
3809
|
+
delegate() {
|
|
3810
|
+
return 'a[href*="#"]';
|
|
3811
|
+
},
|
|
3812
|
+
|
|
3813
|
+
handler(_ref3) {let { current, defaultPrevented } = _ref3;
|
|
3814
|
+
const { hash } = current;
|
|
3815
|
+
if (
|
|
3816
|
+
!defaultPrevented &&
|
|
3817
|
+
hash &&
|
|
3818
|
+
isSameSiteAnchor(current) &&
|
|
3819
|
+
!within(hash, this.$el) &&
|
|
3820
|
+
$(hash, document.body))
|
|
3821
|
+
{
|
|
3822
|
+
this.hide();
|
|
3823
|
+
}
|
|
3824
|
+
} },
|
|
3825
|
+
|
|
3826
|
+
|
|
3807
3827
|
{
|
|
3808
3828
|
name: 'toggle',
|
|
3809
3829
|
|
|
@@ -3872,7 +3892,7 @@
|
|
|
3872
3892
|
once(
|
|
3873
3893
|
this.$el,
|
|
3874
3894
|
'hide',
|
|
3875
|
-
on(document, pointerDown, (
|
|
3895
|
+
on(document, pointerDown, (_ref4) => {let { target } = _ref4;
|
|
3876
3896
|
if (
|
|
3877
3897
|
last(active$1) !== this ||
|
|
3878
3898
|
this.overlay && !within(target, this.$el) ||
|
|
@@ -3884,7 +3904,7 @@
|
|
|
3884
3904
|
once(
|
|
3885
3905
|
document,
|
|
3886
3906
|
pointerUp + " " + pointerCancel + " scroll",
|
|
3887
|
-
(
|
|
3907
|
+
(_ref5) => {let { defaultPrevented, type, target: newTarget } = _ref5;
|
|
3888
3908
|
if (
|
|
3889
3909
|
!defaultPrevented &&
|
|
3890
3910
|
type === pointerUp &&
|
|
@@ -3972,7 +3992,7 @@
|
|
|
3972
3992
|
|
|
3973
3993
|
|
|
3974
3994
|
|
|
3975
|
-
function animate(el, show,
|
|
3995
|
+
function animate(el, show, _ref6) {let { transitionElement, _toggle } = _ref6;
|
|
3976
3996
|
return new Promise((resolve, reject) =>
|
|
3977
3997
|
once(el, 'show hide', () => {
|
|
3978
3998
|
el._reject == null ? void 0 : el._reject();
|
|
@@ -4017,7 +4037,7 @@
|
|
|
4017
4037
|
on(
|
|
4018
4038
|
el,
|
|
4019
4039
|
'touchstart',
|
|
4020
|
-
(
|
|
4040
|
+
(_ref7) => {let { targetTouches } = _ref7;
|
|
4021
4041
|
if (targetTouches.length === 1) {
|
|
4022
4042
|
startClientY = targetTouches[0].clientY;
|
|
4023
4043
|
}
|
|
@@ -4085,6 +4105,10 @@
|
|
|
4085
4105
|
return children;
|
|
4086
4106
|
}
|
|
4087
4107
|
|
|
4108
|
+
function isSameSiteAnchor(a) {
|
|
4109
|
+
return ['origin', 'pathname', 'search'].every((part) => a[part] === location[part]);
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4088
4112
|
let active;
|
|
4089
4113
|
|
|
4090
4114
|
var drop = {
|
|
@@ -4196,11 +4220,17 @@
|
|
|
4196
4220
|
name: 'click',
|
|
4197
4221
|
|
|
4198
4222
|
delegate() {
|
|
4199
|
-
return 'a[href
|
|
4223
|
+
return 'a[href*="#"]';
|
|
4200
4224
|
},
|
|
4201
4225
|
|
|
4202
|
-
handler(_ref3) {let { defaultPrevented, current
|
|
4203
|
-
|
|
4226
|
+
handler(_ref3) {let { defaultPrevented, current } = _ref3;
|
|
4227
|
+
const { hash } = current;
|
|
4228
|
+
if (
|
|
4229
|
+
!defaultPrevented &&
|
|
4230
|
+
hash &&
|
|
4231
|
+
isSameSiteAnchor(current) &&
|
|
4232
|
+
!within(hash, this.$el))
|
|
4233
|
+
{
|
|
4204
4234
|
this.hide(false);
|
|
4205
4235
|
}
|
|
4206
4236
|
} },
|
|
@@ -6450,20 +6480,6 @@
|
|
|
6450
6480
|
|
|
6451
6481
|
|
|
6452
6482
|
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
6483
|
{
|
|
6468
6484
|
name: 'touchmove',
|
|
6469
6485
|
|
|
@@ -6880,7 +6896,7 @@
|
|
|
6880
6896
|
computed: {
|
|
6881
6897
|
links: {
|
|
6882
6898
|
get(_, $el) {
|
|
6883
|
-
return $$('a[href
|
|
6899
|
+
return $$('a[href*="#"]', $el).filter((el) => el.hash && isSameSiteAnchor(el));
|
|
6884
6900
|
},
|
|
6885
6901
|
|
|
6886
6902
|
watch(links) {
|