uikit 3.13.2-dev.13a8eb3ff → 3.13.2-dev.aa6a91433
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 +9 -0
- package/CHANGELOG.md +6 -0
- package/dist/css/uikit-core-rtl.css +12 -63
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +12 -63
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +12 -63
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +12 -63
- 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 +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- 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 +9 -15
- 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 +21 -36
- 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 +25 -41
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/tooltip.js +2 -3
- package/src/js/core/drop.js +7 -10
- package/src/js/core/sticky.js +1 -1
- package/src/js/mixin/media.js +4 -4
- package/src/js/mixin/position.js +4 -9
- package/src/js/util/style.js +8 -15
- package/src/less/components/drop.less +1 -10
- package/src/less/components/dropdown.less +1 -10
- package/src/less/components/navbar.less +9 -11
- package/src/less/components/tooltip.less +1 -10
- package/src/scss/components/drop.scss +1 -10
- package/src/scss/components/dropdown.scss +1 -10
- package/src/scss/components/navbar.scss +9 -11
- package/src/scss/components/tooltip.scss +1 -10
- package/src/scss/variables-theme.scss +1 -0
- package/src/scss/variables.scss +1 -0
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.13.2-dev.
|
|
1
|
+
/*! UIkit 3.13.2-dev.aa6a91433 | 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() :
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
property = propName(property);
|
|
768
768
|
|
|
769
769
|
if (isUndefined(value)) {
|
|
770
|
-
return
|
|
770
|
+
return toWindow(element).getComputedStyle(element).getPropertyValue(property);
|
|
771
771
|
} else if (!value && !isNumber(value)) {
|
|
772
772
|
element.style.removeProperty(property);
|
|
773
773
|
} else {
|
|
@@ -778,10 +778,9 @@
|
|
|
778
778
|
|
|
779
779
|
}
|
|
780
780
|
} else if (isArray(property)) {
|
|
781
|
-
const styles = getStyles(element);
|
|
782
781
|
const props = {};
|
|
783
782
|
for (const prop of property) {
|
|
784
|
-
props[prop] =
|
|
783
|
+
props[prop] = css(element, prop);
|
|
785
784
|
}
|
|
786
785
|
return props;
|
|
787
786
|
} else if (isObject(property)) {
|
|
@@ -792,19 +791,9 @@
|
|
|
792
791
|
return elements[0];
|
|
793
792
|
}
|
|
794
793
|
|
|
795
|
-
function getStyles(element, pseudoElt) {
|
|
796
|
-
return toWindow(element).getComputedStyle(element, pseudoElt);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
function getStyle(element, property, pseudoElt) {
|
|
800
|
-
return getStyles(element, pseudoElt)[property];
|
|
801
|
-
}
|
|
802
|
-
|
|
803
794
|
const propertyRe = /^\s*(["'])?(.*?)\1\s*$/;
|
|
804
|
-
function getCssVar(name) {
|
|
805
|
-
return
|
|
806
|
-
getPropertyValue("--uk-" + name).
|
|
807
|
-
replace(propertyRe, '$2');
|
|
795
|
+
function getCssVar(name, element) {if (element === void 0) {element = document.documentElement;}
|
|
796
|
+
return css(element, "--uk-" + name).replace(propertyRe, '$2');
|
|
808
797
|
}
|
|
809
798
|
|
|
810
799
|
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty
|
|
@@ -813,6 +802,10 @@
|
|
|
813
802
|
const cssPrefixes = ['webkit', 'moz'];
|
|
814
803
|
|
|
815
804
|
function vendorPropName(name) {
|
|
805
|
+
if (name[0] === '-') {
|
|
806
|
+
return name;
|
|
807
|
+
}
|
|
808
|
+
|
|
816
809
|
name = hyphenate(name);
|
|
817
810
|
|
|
818
811
|
const { style } = document.documentElement;
|
|
@@ -2894,7 +2887,7 @@
|
|
|
2894
2887
|
UIkit.data = '__uikit__';
|
|
2895
2888
|
UIkit.prefix = 'uk-';
|
|
2896
2889
|
UIkit.options = {};
|
|
2897
|
-
UIkit.version = '3.13.2-dev.
|
|
2890
|
+
UIkit.version = '3.13.2-dev.aa6a91433';
|
|
2898
2891
|
|
|
2899
2892
|
globalAPI(UIkit);
|
|
2900
2893
|
hooksAPI(UIkit);
|
|
@@ -3497,15 +3490,13 @@
|
|
|
3497
3490
|
props: {
|
|
3498
3491
|
pos: String,
|
|
3499
3492
|
offset: null,
|
|
3500
|
-
flip: Boolean,
|
|
3501
|
-
clsPos: String },
|
|
3493
|
+
flip: Boolean },
|
|
3502
3494
|
|
|
3503
3495
|
|
|
3504
3496
|
data: {
|
|
3505
3497
|
pos: "bottom-" + (isRtl ? 'right' : 'left'),
|
|
3506
3498
|
flip: true,
|
|
3507
|
-
offset: false,
|
|
3508
|
-
clsPos: '' },
|
|
3499
|
+
offset: false },
|
|
3509
3500
|
|
|
3510
3501
|
|
|
3511
3502
|
connected() {
|
|
@@ -3516,13 +3507,11 @@
|
|
|
3516
3507
|
|
|
3517
3508
|
methods: {
|
|
3518
3509
|
positionAt(element, target, boundary) {
|
|
3519
|
-
removeClasses(element, this.clsPos + "-(top|bottom|left|right)(-[a-z]+)?");
|
|
3520
|
-
|
|
3521
|
-
let { offset: offset$1 } = this;
|
|
3522
3510
|
const axis = this.getAxis();
|
|
3523
3511
|
const dir = this.pos[0];
|
|
3524
3512
|
const align = this.pos[1];
|
|
3525
3513
|
|
|
3514
|
+
let { offset: offset$1 } = this;
|
|
3526
3515
|
if (!isNumeric(offset$1)) {
|
|
3527
3516
|
const node = $(offset$1);
|
|
3528
3517
|
offset$1 = node ?
|
|
@@ -3530,6 +3519,7 @@
|
|
|
3530
3519
|
offset(target)[axis === 'x' ? 'right' : 'bottom'] :
|
|
3531
3520
|
0;
|
|
3532
3521
|
}
|
|
3522
|
+
offset$1 += toPx(getCssVar('position-margin-offset', this.$el));
|
|
3533
3523
|
|
|
3534
3524
|
const { x, y } = positionAt(
|
|
3535
3525
|
element,
|
|
@@ -3546,8 +3536,6 @@
|
|
|
3546
3536
|
|
|
3547
3537
|
this.dir = axis === 'x' ? x : y;
|
|
3548
3538
|
this.align = axis === 'x' ? y : x;
|
|
3549
|
-
|
|
3550
|
-
toggleClass(element, this.clsPos + "-" + this.dir + "-" + this.align, this.offset === false);
|
|
3551
3539
|
},
|
|
3552
3540
|
|
|
3553
3541
|
getAxis() {
|
|
@@ -3589,7 +3577,7 @@
|
|
|
3589
3577
|
},
|
|
3590
3578
|
|
|
3591
3579
|
connected() {
|
|
3592
|
-
this.
|
|
3580
|
+
this.clsDrop = this.$props.clsDrop || "uk-" + this.$options.name;
|
|
3593
3581
|
addClass(this.$el, this.clsDrop);
|
|
3594
3582
|
|
|
3595
3583
|
if (this.toggle && !this.target) {
|
|
@@ -3655,7 +3643,7 @@
|
|
|
3655
3643
|
if (this.isToggled()) {
|
|
3656
3644
|
this.hide(false);
|
|
3657
3645
|
} else {
|
|
3658
|
-
this.show(toggle.$el, false);
|
|
3646
|
+
this.show(toggle == null ? void 0 : toggle.$el, false);
|
|
3659
3647
|
}
|
|
3660
3648
|
} },
|
|
3661
3649
|
|
|
@@ -3667,7 +3655,7 @@
|
|
|
3667
3655
|
|
|
3668
3656
|
handler(e, toggle) {
|
|
3669
3657
|
e.preventDefault();
|
|
3670
|
-
this.show(toggle.$el);
|
|
3658
|
+
this.show(toggle == null ? void 0 : toggle.$el);
|
|
3671
3659
|
} },
|
|
3672
3660
|
|
|
3673
3661
|
|
|
@@ -3878,23 +3866,20 @@
|
|
|
3878
3866
|
},
|
|
3879
3867
|
|
|
3880
3868
|
position() {
|
|
3881
|
-
const boundary =
|
|
3869
|
+
const boundary = query(this.boundary, this.$el) || window;
|
|
3882
3870
|
removeClass(this.$el, this.clsDrop + "-stack");
|
|
3883
3871
|
toggleClass(this.$el, this.clsDrop + "-boundary", this.boundaryAlign);
|
|
3884
3872
|
|
|
3885
3873
|
const boundaryOffset = offset(boundary);
|
|
3886
|
-
const
|
|
3874
|
+
const targetOffset = offset(this.target);
|
|
3875
|
+
const alignTo = this.boundaryAlign ? boundaryOffset : targetOffset;
|
|
3887
3876
|
|
|
3888
3877
|
if (this.align === 'justify') {
|
|
3889
3878
|
const prop = this.getAxis() === 'y' ? 'width' : 'height';
|
|
3890
3879
|
css(this.$el, prop, alignTo[prop]);
|
|
3891
3880
|
} else if (
|
|
3892
|
-
boundary &&
|
|
3893
3881
|
this.$el.offsetWidth >
|
|
3894
|
-
Math.max(
|
|
3895
|
-
boundaryOffset.right - alignTo.left,
|
|
3896
|
-
alignTo.right - boundaryOffset.left))
|
|
3897
|
-
|
|
3882
|
+
Math.max(boundaryOffset.right - alignTo.left, alignTo.right - boundaryOffset.left))
|
|
3898
3883
|
{
|
|
3899
3884
|
addClass(this.$el, this.clsDrop + "-stack");
|
|
3900
3885
|
}
|
|
@@ -10720,8 +10705,7 @@
|
|
|
10720
10705
|
delay: 0,
|
|
10721
10706
|
animation: ['uk-animation-scale-up'],
|
|
10722
10707
|
duration: 100,
|
|
10723
|
-
cls: 'uk-active',
|
|
10724
|
-
clsPos: 'uk-tooltip' },
|
|
10708
|
+
cls: 'uk-active' },
|
|
10725
10709
|
|
|
10726
10710
|
|
|
10727
10711
|
beforeConnect() {
|
|
@@ -10776,9 +10760,9 @@
|
|
|
10776
10760
|
|
|
10777
10761
|
_show() {
|
|
10778
10762
|
this.tooltip = append(
|
|
10779
|
-
this.container, "<div class=\"" +
|
|
10780
|
-
this.
|
|
10781
|
-
this.
|
|
10763
|
+
this.container, "<div class=\"uk-" +
|
|
10764
|
+
this.$options.name + "\"> <div class=\"uk-" +
|
|
10765
|
+
this.$options.name + "-inner\">" + this.title + "</div> </div>");
|
|
10782
10766
|
|
|
10783
10767
|
|
|
10784
10768
|
|