uikit 3.10.0 → 3.10.1
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/.eslintrc.json +0 -1
- package/CHANGELOG.md +17 -7
- package/CONTRIBUTING.md +1 -1
- package/README.md +4 -2
- package/build/.eslintrc.json +10 -1
- package/build/build.js +5 -5
- package/build/less.js +1 -2
- package/build/scss.js +1 -1
- package/dist/css/uikit-core-rtl.css +8 -5
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +8 -5
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +8 -5
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +8 -5
- 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 +5 -5
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +2 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +2 -2
- 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 +2 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +3 -9
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +2 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +3 -9
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +6 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +5 -5
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +5 -4
- 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 +23 -22
- 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 +36 -36
- package/dist/js/uikit.min.js +1 -1
- package/package.json +3 -3
- package/src/js/api/component.js +3 -3
- package/src/js/api/state.js +3 -3
- package/src/js/components/slider-parallax.js +1 -7
- package/src/js/components/slideshow.js +4 -0
- package/src/js/components/tooltip.js +2 -1
- package/src/js/core/navbar.js +1 -1
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/toggle.js +4 -3
- package/src/js/mixin/animate.js +4 -4
- package/src/js/mixin/internal/slideshow-animations.js +1 -1
- package/src/js/mixin/parallax.js +1 -1
- package/src/js/mixin/position.js +3 -3
- package/src/js/util/dom.js +3 -3
- package/src/js/util/lang.js +1 -1
- package/src/js/util/viewport.js +3 -3
- package/src/less/components/cover.less +4 -2
- package/src/less/components/divider.less +1 -1
- package/src/less/components/utility.less +2 -1
- package/src/scss/components/cover.scss +4 -2
- package/src/scss/components/divider.scss +1 -1
- package/src/scss/components/utility.scss +2 -1
- package/tests/base.html +12 -12
- package/tests/button.html +1 -1
- package/tests/cover.html +5 -5
- package/tests/drop.html +2 -2
- package/tests/dropdown.html +1 -1
- package/tests/flex.html +1 -1
- package/tests/grid-masonry.html +1 -1
- package/tests/grid-parallax.html +1 -1
- package/tests/grid.html +1 -1
- package/tests/height.html +2 -2
- package/tests/js/index.js +3 -8
- package/tests/margin.html +1 -1
- package/tests/modal.html +2 -2
- package/tests/navbar.html +2 -2
- package/tests/padding.html +1 -1
- package/tests/parallax.html +1 -1
- package/tests/slider.html +1 -1
- package/tests/slideshow.html +2 -2
- package/tests/sticky.html +2 -2
- package/tests/switcher.html +1 -1
- package/tests/tab.html +1 -1
- package/tests/utility.html +1 -1
- package/tests/video.html +3 -3
- package/tests/width.html +1 -1
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.10.
|
|
1
|
+
/*! UIkit 3.10.1 | 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() :
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
|
|
147
147
|
function toNumber(value) {
|
|
148
148
|
var number = Number(value);
|
|
149
|
-
return
|
|
149
|
+
return isNaN(number) ? false : number;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
function toFloat(value) {
|
|
@@ -1125,10 +1125,10 @@
|
|
|
1125
1125
|
|
|
1126
1126
|
parent = $(parent);
|
|
1127
1127
|
|
|
1128
|
-
if (
|
|
1129
|
-
return append(parent, element);
|
|
1130
|
-
} else {
|
|
1128
|
+
if (parent.hasChildNodes()) {
|
|
1131
1129
|
return insertNodes(element, function (element) { return parent.insertBefore(element, parent.firstChild); });
|
|
1130
|
+
} else {
|
|
1131
|
+
return append(parent, element);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
@@ -2292,10 +2292,10 @@
|
|
|
2292
2292
|
scrollTop(element, scroll + top * percent);
|
|
2293
2293
|
|
|
2294
2294
|
// scroll more if we have not reached our destination
|
|
2295
|
-
if (percent
|
|
2296
|
-
requestAnimationFrame(step);
|
|
2297
|
-
} else {
|
|
2295
|
+
if (percent === 1) {
|
|
2298
2296
|
resolve();
|
|
2297
|
+
} else {
|
|
2298
|
+
requestAnimationFrame(step);
|
|
2299
2299
|
}
|
|
2300
2300
|
|
|
2301
2301
|
})();
|
|
@@ -3004,12 +3004,12 @@
|
|
|
3004
3004
|
|
|
3005
3005
|
events.forEach(function (event) {
|
|
3006
3006
|
|
|
3007
|
-
if (
|
|
3007
|
+
if (hasOwn(event, 'handler')) {
|
|
3008
|
+
registerEvent(this$1$1, event);
|
|
3009
|
+
} else {
|
|
3008
3010
|
for (var key in event) {
|
|
3009
3011
|
registerEvent(this$1$1, event[key], key);
|
|
3010
3012
|
}
|
|
3011
|
-
} else {
|
|
3012
|
-
registerEvent(this$1$1, event);
|
|
3013
3013
|
}
|
|
3014
3014
|
|
|
3015
3015
|
});
|
|
@@ -3390,10 +3390,10 @@
|
|
|
3390
3390
|
var instance = UIkit.getComponent(element, name);
|
|
3391
3391
|
|
|
3392
3392
|
if (instance) {
|
|
3393
|
-
if (
|
|
3394
|
-
return instance;
|
|
3395
|
-
} else {
|
|
3393
|
+
if (data) {
|
|
3396
3394
|
instance.$destroy();
|
|
3395
|
+
} else {
|
|
3396
|
+
return instance;
|
|
3397
3397
|
}
|
|
3398
3398
|
}
|
|
3399
3399
|
|
|
@@ -3463,7 +3463,7 @@
|
|
|
3463
3463
|
UIkit.data = '__uikit__';
|
|
3464
3464
|
UIkit.prefix = 'uk-';
|
|
3465
3465
|
UIkit.options = {};
|
|
3466
|
-
UIkit.version = '3.10.
|
|
3466
|
+
UIkit.version = '3.10.1';
|
|
3467
3467
|
|
|
3468
3468
|
globalAPI(UIkit);
|
|
3469
3469
|
hooksAPI(UIkit);
|
|
@@ -4193,7 +4193,7 @@
|
|
|
4193
4193
|
},
|
|
4194
4194
|
|
|
4195
4195
|
data: {
|
|
4196
|
-
pos: ("bottom-" + (
|
|
4196
|
+
pos: ("bottom-" + (isRtl ? 'right' : 'left')),
|
|
4197
4197
|
flip: true,
|
|
4198
4198
|
offset: false,
|
|
4199
4199
|
clsPos: ''
|
|
@@ -4204,7 +4204,7 @@
|
|
|
4204
4204
|
pos: function(ref) {
|
|
4205
4205
|
var pos = ref.pos;
|
|
4206
4206
|
|
|
4207
|
-
return
|
|
4207
|
+
return pos.split('-').concat('center').slice(0, 2);
|
|
4208
4208
|
},
|
|
4209
4209
|
|
|
4210
4210
|
dir: function() {
|
|
@@ -6592,7 +6592,7 @@
|
|
|
6592
6592
|
|
|
6593
6593
|
data: {
|
|
6594
6594
|
dropdown: navItem,
|
|
6595
|
-
align:
|
|
6595
|
+
align: isRtl ? 'right' : 'left',
|
|
6596
6596
|
clsDrop: 'uk-navbar-dropdown',
|
|
6597
6597
|
mode: undefined,
|
|
6598
6598
|
offset: undefined,
|
|
@@ -7834,7 +7834,7 @@
|
|
|
7834
7834
|
this.show();
|
|
7835
7835
|
}
|
|
7836
7836
|
|
|
7837
|
-
height$1 =
|
|
7837
|
+
height$1 = this.isActive ? height$1 : this.$el.offsetHeight;
|
|
7838
7838
|
|
|
7839
7839
|
if (height$1 + this.offset > height(window)) {
|
|
7840
7840
|
this.inactive = true;
|
|
@@ -8244,6 +8244,8 @@
|
|
|
8244
8244
|
|
|
8245
8245
|
};
|
|
8246
8246
|
|
|
8247
|
+
var KEY_SPACE = 32;
|
|
8248
|
+
|
|
8247
8249
|
var toggle = {
|
|
8248
8250
|
|
|
8249
8251
|
mixins: [Media, Togglable],
|
|
@@ -8366,12 +8368,11 @@
|
|
|
8366
8368
|
name: 'keydown',
|
|
8367
8369
|
|
|
8368
8370
|
filter: function() {
|
|
8369
|
-
return includes(this.mode, 'click');
|
|
8371
|
+
return includes(this.mode, 'click') && this.$el.tagName !== 'INPUT';
|
|
8370
8372
|
},
|
|
8371
8373
|
|
|
8372
8374
|
handler: function(e) {
|
|
8373
|
-
|
|
8374
|
-
if (e.keyCode === 32) {
|
|
8375
|
+
if (e.keyCode === KEY_SPACE) {
|
|
8375
8376
|
e.preventDefault();
|
|
8376
8377
|
this.$el.click();
|
|
8377
8378
|
}
|
|
@@ -8970,12 +8971,12 @@
|
|
|
8970
8971
|
|
|
8971
8972
|
return fade.apply(void 0, args.concat( [40] ));
|
|
8972
8973
|
}
|
|
8973
|
-
:
|
|
8974
|
-
?
|
|
8974
|
+
: name
|
|
8975
|
+
? slide
|
|
8976
|
+
: function () {
|
|
8975
8977
|
action();
|
|
8976
8978
|
return Promise$1.resolve();
|
|
8977
|
-
}
|
|
8978
|
-
: slide;
|
|
8979
|
+
};
|
|
8979
8980
|
|
|
8980
8981
|
return animationFn(action, target, this.duration)
|
|
8981
8982
|
.then(function () { return this$1$1.$update(target, 'resize'); }, noop);
|
|
@@ -9254,7 +9255,7 @@
|
|
|
9254
9255
|
if ( unit === void 0 ) unit = '%';
|
|
9255
9256
|
|
|
9256
9257
|
value += value ? unit : '';
|
|
9257
|
-
return isIE ? ("translateX(" + value + ")") : ("translate3d(" + value + ", 0, 0)"); // currently not translate3d in IE, translate3d within translate3d does not work while transitioning
|
|
9258
|
+
return isIE ? ("translateX(" + value + ")") : ("translate3d(" + value + ", 0, 0)"); // currently, not translate3d in IE, translate3d within translate3d does not work while transitioning
|
|
9258
9259
|
}
|
|
9259
9260
|
|
|
9260
9261
|
function scale3d(value) {
|
|
@@ -10968,7 +10969,7 @@
|
|
|
10968
10969
|
var p = ref$1[2];
|
|
10969
10970
|
|
|
10970
10971
|
css[prop] = "rgba(" + (start.map(function (value, i) {
|
|
10971
|
-
value
|
|
10972
|
+
value += p * (end[i] - value);
|
|
10972
10973
|
return i === 3 ? toFloat(value) : parseInt(value, 10);
|
|
10973
10974
|
}).join(',')) + ")";
|
|
10974
10975
|
break;
|
|
@@ -11685,13 +11686,7 @@
|
|
|
11685
11686
|
|
|
11686
11687
|
percent /= 2;
|
|
11687
11688
|
|
|
11688
|
-
return
|
|
11689
|
-
? dir < 0
|
|
11690
|
-
? percent
|
|
11691
|
-
: 1 - percent
|
|
11692
|
-
: dir < 0
|
|
11693
|
-
? 1 - percent
|
|
11694
|
-
: percent;
|
|
11689
|
+
return isIn(type) ^ dir < 0 ? percent : 1 - percent;
|
|
11695
11690
|
}
|
|
11696
11691
|
|
|
11697
11692
|
var Animations = assign({}, Animations$2, {
|
|
@@ -11834,6 +11829,10 @@
|
|
|
11834
11829
|
|
|
11835
11830
|
read: function() {
|
|
11836
11831
|
|
|
11832
|
+
if (!this.list) {
|
|
11833
|
+
return false;
|
|
11834
|
+
}
|
|
11835
|
+
|
|
11837
11836
|
var ref = this.ratio.split(':').map(Number);
|
|
11838
11837
|
var width = ref[0];
|
|
11839
11838
|
var height = ref[1];
|
|
@@ -12381,7 +12380,8 @@
|
|
|
12381
12380
|
}
|
|
12382
12381
|
|
|
12383
12382
|
this.toggleElement(this.tooltip, false, false).then(function () {
|
|
12384
|
-
|
|
12383
|
+
remove$1(this$1$1.tooltip);
|
|
12384
|
+
this$1$1.tooltip = null;
|
|
12385
12385
|
this$1$1._unbind();
|
|
12386
12386
|
});
|
|
12387
12387
|
},
|