uikit 3.13.2-dev.f6cd10e37 → 3.13.2
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 +10 -1
- package/dist/css/uikit-core-rtl.css +15 -63
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +15 -63
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +15 -63
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +15 -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 +35 -47
- 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 +39 -52
- 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 +2 -8
- package/src/js/core/navbar.js +10 -5
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/video.js +1 -1
- package/src/js/mixin/media.js +4 -4
- package/src/js/mixin/position.js +4 -9
- package/src/js/util/observer.js +2 -1
- package/src/js/util/style.js +13 -19
- package/src/less/components/drop.less +3 -11
- package/src/less/components/dropdown.less +3 -11
- package/src/less/components/navbar.less +11 -12
- package/src/less/components/tooltip.less +2 -11
- package/src/scss/components/drop.scss +3 -11
- package/src/scss/components/dropdown.scss +3 -11
- package/src/scss/components/navbar.scss +11 -12
- package/src/scss/components/tooltip.scss +2 -11
- package/src/scss/variables-theme.scss +5 -4
- package/src/scss/variables.scss +5 -4
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.13.2
|
|
1
|
+
/*! UIkit 3.13.2 | 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,21 +767,22 @@
|
|
|
767
767
|
property = propName(property);
|
|
768
768
|
|
|
769
769
|
if (isUndefined(value)) {
|
|
770
|
-
return
|
|
771
|
-
} else if (!value && !isNumber(value)) {
|
|
772
|
-
element.style.removeProperty(property);
|
|
770
|
+
return getComputedStyle(element).getPropertyValue(property);
|
|
773
771
|
} else {
|
|
774
772
|
element.style.setProperty(
|
|
775
773
|
property,
|
|
776
|
-
isNumeric(value) && !cssNumber[property] ?
|
|
774
|
+
isNumeric(value) && !cssNumber[property] ?
|
|
775
|
+
value + "px" :
|
|
776
|
+
value || isNumber(value) ?
|
|
777
|
+
value :
|
|
778
|
+
'',
|
|
777
779
|
priority);
|
|
778
780
|
|
|
779
781
|
}
|
|
780
782
|
} else if (isArray(property)) {
|
|
781
|
-
const styles = getStyles(element);
|
|
782
783
|
const props = {};
|
|
783
784
|
for (const prop of property) {
|
|
784
|
-
props[prop] =
|
|
785
|
+
props[prop] = css(element, prop);
|
|
785
786
|
}
|
|
786
787
|
return props;
|
|
787
788
|
} else if (isObject(property)) {
|
|
@@ -792,19 +793,9 @@
|
|
|
792
793
|
return elements[0];
|
|
793
794
|
}
|
|
794
795
|
|
|
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
796
|
const propertyRe = /^\s*(["'])?(.*?)\1\s*$/;
|
|
804
|
-
function getCssVar(name) {
|
|
805
|
-
return
|
|
806
|
-
getPropertyValue("--uk-" + name).
|
|
807
|
-
replace(propertyRe, '$2');
|
|
797
|
+
function getCssVar(name, element) {if (element === void 0) {element = document.documentElement;}
|
|
798
|
+
return css(element, "--uk-" + name).replace(propertyRe, '$2');
|
|
808
799
|
}
|
|
809
800
|
|
|
810
801
|
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty
|
|
@@ -813,6 +804,10 @@
|
|
|
813
804
|
const cssPrefixes = ['webkit', 'moz'];
|
|
814
805
|
|
|
815
806
|
function vendorPropName(name) {
|
|
807
|
+
if (name[0] === '-') {
|
|
808
|
+
return name;
|
|
809
|
+
}
|
|
810
|
+
|
|
816
811
|
name = hyphenate(name);
|
|
817
812
|
|
|
818
813
|
const { style } = document.documentElement;
|
|
@@ -1478,7 +1473,7 @@
|
|
|
1478
1473
|
|
|
1479
1474
|
}
|
|
1480
1475
|
|
|
1481
|
-
const hasResizeObserver = window.ResizeObserver;
|
|
1476
|
+
const hasResizeObserver = inBrowser && window.ResizeObserver;
|
|
1482
1477
|
function observeResize(targets, cb, options) {if (options === void 0) {options = { box: 'border-box' };}
|
|
1483
1478
|
if (hasResizeObserver) {
|
|
1484
1479
|
return observe(ResizeObserver, targets, cb, options);
|
|
@@ -2894,7 +2889,7 @@
|
|
|
2894
2889
|
UIkit.data = '__uikit__';
|
|
2895
2890
|
UIkit.prefix = 'uk-';
|
|
2896
2891
|
UIkit.options = {};
|
|
2897
|
-
UIkit.version = '3.13.2
|
|
2892
|
+
UIkit.version = '3.13.2';
|
|
2898
2893
|
|
|
2899
2894
|
globalAPI(UIkit);
|
|
2900
2895
|
hooksAPI(UIkit);
|
|
@@ -3386,7 +3381,7 @@
|
|
|
3386
3381
|
mute(this.$el);
|
|
3387
3382
|
}
|
|
3388
3383
|
|
|
3389
|
-
this.registerObserver(observeIntersection(this.$el, () => this.$emit(
|
|
3384
|
+
this.registerObserver(observeIntersection(this.$el, () => this.$emit(), {}, false));
|
|
3390
3385
|
},
|
|
3391
3386
|
|
|
3392
3387
|
update: {
|
|
@@ -3497,15 +3492,13 @@
|
|
|
3497
3492
|
props: {
|
|
3498
3493
|
pos: String,
|
|
3499
3494
|
offset: null,
|
|
3500
|
-
flip: Boolean,
|
|
3501
|
-
clsPos: String },
|
|
3495
|
+
flip: Boolean },
|
|
3502
3496
|
|
|
3503
3497
|
|
|
3504
3498
|
data: {
|
|
3505
3499
|
pos: "bottom-" + (isRtl ? 'right' : 'left'),
|
|
3506
3500
|
flip: true,
|
|
3507
|
-
offset: false,
|
|
3508
|
-
clsPos: '' },
|
|
3501
|
+
offset: false },
|
|
3509
3502
|
|
|
3510
3503
|
|
|
3511
3504
|
connected() {
|
|
@@ -3516,13 +3509,11 @@
|
|
|
3516
3509
|
|
|
3517
3510
|
methods: {
|
|
3518
3511
|
positionAt(element, target, boundary) {
|
|
3519
|
-
removeClasses(element, this.clsPos + "-(top|bottom|left|right)(-[a-z]+)?");
|
|
3520
|
-
|
|
3521
|
-
let { offset: offset$1 } = this;
|
|
3522
3512
|
const axis = this.getAxis();
|
|
3523
3513
|
const dir = this.pos[0];
|
|
3524
3514
|
const align = this.pos[1];
|
|
3525
3515
|
|
|
3516
|
+
let { offset: offset$1 } = this;
|
|
3526
3517
|
if (!isNumeric(offset$1)) {
|
|
3527
3518
|
const node = $(offset$1);
|
|
3528
3519
|
offset$1 = node ?
|
|
@@ -3530,6 +3521,7 @@
|
|
|
3530
3521
|
offset(target)[axis === 'x' ? 'right' : 'bottom'] :
|
|
3531
3522
|
0;
|
|
3532
3523
|
}
|
|
3524
|
+
offset$1 += toPx(getCssVar('position-margin-offset', element));
|
|
3533
3525
|
|
|
3534
3526
|
const { x, y } = positionAt(
|
|
3535
3527
|
element,
|
|
@@ -3546,8 +3538,6 @@
|
|
|
3546
3538
|
|
|
3547
3539
|
this.dir = axis === 'x' ? x : y;
|
|
3548
3540
|
this.align = axis === 'x' ? y : x;
|
|
3549
|
-
|
|
3550
|
-
toggleClass(element, this.clsPos + "-" + this.dir + "-" + this.align, this.offset === false);
|
|
3551
3541
|
},
|
|
3552
3542
|
|
|
3553
3543
|
getAxis() {
|
|
@@ -3589,7 +3579,7 @@
|
|
|
3589
3579
|
},
|
|
3590
3580
|
|
|
3591
3581
|
connected() {
|
|
3592
|
-
this.
|
|
3582
|
+
this.clsDrop = this.$props.clsDrop || "uk-" + this.$options.name;
|
|
3593
3583
|
addClass(this.$el, this.clsDrop);
|
|
3594
3584
|
|
|
3595
3585
|
if (this.toggle && !this.target) {
|
|
@@ -3888,13 +3878,7 @@
|
|
|
3888
3878
|
|
|
3889
3879
|
if (this.align === 'justify') {
|
|
3890
3880
|
const prop = this.getAxis() === 'y' ? 'width' : 'height';
|
|
3891
|
-
css(
|
|
3892
|
-
this.$el,
|
|
3893
|
-
prop,
|
|
3894
|
-
(this.boundaryAlign || boundary !== window ? boundaryOffset : targetOffset)[
|
|
3895
|
-
prop]);
|
|
3896
|
-
|
|
3897
|
-
|
|
3881
|
+
css(this.$el, prop, alignTo[prop]);
|
|
3898
3882
|
} else if (
|
|
3899
3883
|
this.$el.offsetWidth >
|
|
3900
3884
|
Math.max(boundaryOffset.right - alignTo.left, alignTo.right - boundaryOffset.left))
|
|
@@ -5791,10 +5775,16 @@
|
|
|
5791
5775
|
return this.dropbar;
|
|
5792
5776
|
},
|
|
5793
5777
|
|
|
5794
|
-
handler() {
|
|
5778
|
+
handler(_, _ref9) {let { $el } = _ref9;
|
|
5779
|
+
if (!hasClass($el, this.clsDrop)) {
|
|
5780
|
+
return;
|
|
5781
|
+
}
|
|
5782
|
+
|
|
5795
5783
|
if (!parent(this.dropbar)) {
|
|
5796
5784
|
after(this.dropbarAnchor || this.$el, this.dropbar);
|
|
5797
5785
|
}
|
|
5786
|
+
|
|
5787
|
+
addClass($el, this.clsDrop + "-dropbar");
|
|
5798
5788
|
} },
|
|
5799
5789
|
|
|
5800
5790
|
|
|
@@ -5809,17 +5799,15 @@
|
|
|
5809
5799
|
return this.dropbar;
|
|
5810
5800
|
},
|
|
5811
5801
|
|
|
5812
|
-
handler(_,
|
|
5802
|
+
handler(_, _ref10) {let { $el, dir } = _ref10;
|
|
5813
5803
|
if (!hasClass($el, this.clsDrop)) {
|
|
5814
5804
|
return;
|
|
5815
5805
|
}
|
|
5816
5806
|
|
|
5817
|
-
this.clsDrop && addClass($el, this.clsDrop + "-dropbar");
|
|
5818
|
-
|
|
5819
5807
|
if (dir === 'bottom') {
|
|
5820
5808
|
this.transitionTo(
|
|
5821
|
-
$el.
|
|
5822
|
-
|
|
5809
|
+
offset($el).bottom -
|
|
5810
|
+
offset(this.dropbar).top +
|
|
5823
5811
|
toFloat(css($el, 'marginBottom')),
|
|
5824
5812
|
$el);
|
|
5825
5813
|
|
|
@@ -5838,7 +5826,7 @@
|
|
|
5838
5826
|
return this.dropbar;
|
|
5839
5827
|
},
|
|
5840
5828
|
|
|
5841
|
-
handler(e,
|
|
5829
|
+
handler(e, _ref11) {let { $el } = _ref11;
|
|
5842
5830
|
const active = this.getActive();
|
|
5843
5831
|
|
|
5844
5832
|
if (
|
|
@@ -5862,7 +5850,7 @@
|
|
|
5862
5850
|
return this.dropbar;
|
|
5863
5851
|
},
|
|
5864
5852
|
|
|
5865
|
-
handler(_,
|
|
5853
|
+
handler(_, _ref12) {let { $el } = _ref12;
|
|
5866
5854
|
if (!hasClass($el, this.clsDrop)) {
|
|
5867
5855
|
return;
|
|
5868
5856
|
}
|
|
@@ -10723,8 +10711,7 @@
|
|
|
10723
10711
|
delay: 0,
|
|
10724
10712
|
animation: ['uk-animation-scale-up'],
|
|
10725
10713
|
duration: 100,
|
|
10726
|
-
cls: 'uk-active',
|
|
10727
|
-
clsPos: 'uk-tooltip' },
|
|
10714
|
+
cls: 'uk-active' },
|
|
10728
10715
|
|
|
10729
10716
|
|
|
10730
10717
|
beforeConnect() {
|
|
@@ -10779,9 +10766,9 @@
|
|
|
10779
10766
|
|
|
10780
10767
|
_show() {
|
|
10781
10768
|
this.tooltip = append(
|
|
10782
|
-
this.container, "<div class=\"" +
|
|
10783
|
-
this.
|
|
10784
|
-
this.
|
|
10769
|
+
this.container, "<div class=\"uk-" +
|
|
10770
|
+
this.$options.name + "\"> <div class=\"uk-" +
|
|
10771
|
+
this.$options.name + "-inner\">" + this.title + "</div> </div>");
|
|
10785
10772
|
|
|
10786
10773
|
|
|
10787
10774
|
|