uikit 3.13.2-dev.d4aecc3e6 → 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 +15 -1
- package/dist/css/uikit-core-rtl.css +31 -71
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +31 -71
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +31 -71
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +31 -71
- 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 +43 -58
- 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 +47 -63
- package/dist/js/uikit.min.js +1 -1
- package/package.json +10 -10
- package/src/js/components/tooltip.js +2 -3
- package/src/js/core/drop.js +7 -10
- package/src/js/core/navbar.js +12 -13
- package/src/js/core/responsive.js +1 -1
- 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 +13 -23
- package/src/less/components/offcanvas.less +19 -1
- package/src/less/components/tooltip.less +2 -11
- package/src/less/theme/navbar.less +1 -3
- package/src/scss/components/drop.scss +3 -11
- package/src/scss/components/dropdown.scss +3 -11
- package/src/scss/components/navbar.scss +13 -23
- package/src/scss/components/offcanvas.scss +19 -1
- package/src/scss/components/tooltip.scss +2 -11
- package/src/scss/mixins-theme.scss +1 -2
- package/src/scss/mixins.scss +0 -1
- package/src/scss/theme/navbar.scss +0 -2
- package/src/scss/variables-theme.scss +7 -5
- package/src/scss/variables.scss +7 -5
- package/tests/navbar.html +2 -8
- package/tests/search.html +1 -1
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) {
|
|
@@ -3655,7 +3645,7 @@
|
|
|
3655
3645
|
if (this.isToggled()) {
|
|
3656
3646
|
this.hide(false);
|
|
3657
3647
|
} else {
|
|
3658
|
-
this.show(toggle.$el, false);
|
|
3648
|
+
this.show(toggle == null ? void 0 : toggle.$el, false);
|
|
3659
3649
|
}
|
|
3660
3650
|
} },
|
|
3661
3651
|
|
|
@@ -3667,7 +3657,7 @@
|
|
|
3667
3657
|
|
|
3668
3658
|
handler(e, toggle) {
|
|
3669
3659
|
e.preventDefault();
|
|
3670
|
-
this.show(toggle.$el);
|
|
3660
|
+
this.show(toggle == null ? void 0 : toggle.$el);
|
|
3671
3661
|
} },
|
|
3672
3662
|
|
|
3673
3663
|
|
|
@@ -3878,23 +3868,20 @@
|
|
|
3878
3868
|
},
|
|
3879
3869
|
|
|
3880
3870
|
position() {
|
|
3881
|
-
const boundary =
|
|
3871
|
+
const boundary = query(this.boundary, this.$el) || window;
|
|
3882
3872
|
removeClass(this.$el, this.clsDrop + "-stack");
|
|
3883
3873
|
toggleClass(this.$el, this.clsDrop + "-boundary", this.boundaryAlign);
|
|
3884
3874
|
|
|
3885
3875
|
const boundaryOffset = offset(boundary);
|
|
3886
|
-
const
|
|
3876
|
+
const targetOffset = offset(this.target);
|
|
3877
|
+
const alignTo = this.boundaryAlign ? boundaryOffset : targetOffset;
|
|
3887
3878
|
|
|
3888
3879
|
if (this.align === 'justify') {
|
|
3889
3880
|
const prop = this.getAxis() === 'y' ? 'width' : 'height';
|
|
3890
3881
|
css(this.$el, prop, alignTo[prop]);
|
|
3891
3882
|
} else if (
|
|
3892
|
-
boundary &&
|
|
3893
3883
|
this.$el.offsetWidth >
|
|
3894
|
-
Math.max(
|
|
3895
|
-
boundaryOffset.right - alignTo.left,
|
|
3896
|
-
alignTo.right - boundaryOffset.left))
|
|
3897
|
-
|
|
3884
|
+
Math.max(boundaryOffset.right - alignTo.left, alignTo.right - boundaryOffset.left))
|
|
3898
3885
|
{
|
|
3899
3886
|
addClass(this.$el, this.clsDrop + "-stack");
|
|
3900
3887
|
}
|
|
@@ -5556,7 +5543,6 @@
|
|
|
5556
5543
|
delayShow: Number,
|
|
5557
5544
|
delayHide: Number,
|
|
5558
5545
|
dropbar: Boolean,
|
|
5559
|
-
dropbarMode: String,
|
|
5560
5546
|
dropbarAnchor: Boolean,
|
|
5561
5547
|
duration: Number },
|
|
5562
5548
|
|
|
@@ -5573,7 +5559,6 @@
|
|
|
5573
5559
|
flip: 'x',
|
|
5574
5560
|
boundary: true,
|
|
5575
5561
|
dropbar: false,
|
|
5576
|
-
dropbarMode: 'slide',
|
|
5577
5562
|
dropbarAnchor: false,
|
|
5578
5563
|
duration: 200,
|
|
5579
5564
|
forceHeight: true,
|
|
@@ -5582,8 +5567,8 @@
|
|
|
5582
5567
|
|
|
5583
5568
|
|
|
5584
5569
|
computed: {
|
|
5585
|
-
boundary(_ref, $el) {let { boundary
|
|
5586
|
-
return boundary === true
|
|
5570
|
+
boundary(_ref, $el) {let { boundary } = _ref;
|
|
5571
|
+
return boundary === true ? $el : boundary;
|
|
5587
5572
|
},
|
|
5588
5573
|
|
|
5589
5574
|
dropbarAnchor(_ref2, $el) {let { dropbarAnchor } = _ref2;
|
|
@@ -5790,10 +5775,16 @@
|
|
|
5790
5775
|
return this.dropbar;
|
|
5791
5776
|
},
|
|
5792
5777
|
|
|
5793
|
-
handler() {
|
|
5778
|
+
handler(_, _ref9) {let { $el } = _ref9;
|
|
5779
|
+
if (!hasClass($el, this.clsDrop)) {
|
|
5780
|
+
return;
|
|
5781
|
+
}
|
|
5782
|
+
|
|
5794
5783
|
if (!parent(this.dropbar)) {
|
|
5795
5784
|
after(this.dropbarAnchor || this.$el, this.dropbar);
|
|
5796
5785
|
}
|
|
5786
|
+
|
|
5787
|
+
addClass($el, this.clsDrop + "-dropbar");
|
|
5797
5788
|
} },
|
|
5798
5789
|
|
|
5799
5790
|
|
|
@@ -5808,21 +5799,15 @@
|
|
|
5808
5799
|
return this.dropbar;
|
|
5809
5800
|
},
|
|
5810
5801
|
|
|
5811
|
-
handler(_,
|
|
5802
|
+
handler(_, _ref10) {let { $el, dir } = _ref10;
|
|
5812
5803
|
if (!hasClass($el, this.clsDrop)) {
|
|
5813
5804
|
return;
|
|
5814
5805
|
}
|
|
5815
5806
|
|
|
5816
|
-
if (this.dropbarMode === 'slide') {
|
|
5817
|
-
addClass(this.dropbar, 'uk-navbar-dropbar-slide');
|
|
5818
|
-
}
|
|
5819
|
-
|
|
5820
|
-
this.clsDrop && addClass($el, this.clsDrop + "-dropbar");
|
|
5821
|
-
|
|
5822
5807
|
if (dir === 'bottom') {
|
|
5823
5808
|
this.transitionTo(
|
|
5824
|
-
$el.
|
|
5825
|
-
|
|
5809
|
+
offset($el).bottom -
|
|
5810
|
+
offset(this.dropbar).top +
|
|
5826
5811
|
toFloat(css($el, 'marginBottom')),
|
|
5827
5812
|
$el);
|
|
5828
5813
|
|
|
@@ -5841,7 +5826,7 @@
|
|
|
5841
5826
|
return this.dropbar;
|
|
5842
5827
|
},
|
|
5843
5828
|
|
|
5844
|
-
handler(e,
|
|
5829
|
+
handler(e, _ref11) {let { $el } = _ref11;
|
|
5845
5830
|
const active = this.getActive();
|
|
5846
5831
|
|
|
5847
5832
|
if (
|
|
@@ -5865,7 +5850,7 @@
|
|
|
5865
5850
|
return this.dropbar;
|
|
5866
5851
|
},
|
|
5867
5852
|
|
|
5868
|
-
handler(_,
|
|
5853
|
+
handler(_, _ref12) {let { $el } = _ref12;
|
|
5869
5854
|
if (!hasClass($el, this.clsDrop)) {
|
|
5870
5855
|
return;
|
|
5871
5856
|
}
|
|
@@ -6289,7 +6274,7 @@
|
|
|
6289
6274
|
events: ['resize'] } };
|
|
6290
6275
|
|
|
6291
6276
|
var responsive = {
|
|
6292
|
-
|
|
6277
|
+
mixins: [Resize],
|
|
6293
6278
|
|
|
6294
6279
|
props: ['width', 'height'],
|
|
6295
6280
|
|
|
@@ -10726,8 +10711,7 @@
|
|
|
10726
10711
|
delay: 0,
|
|
10727
10712
|
animation: ['uk-animation-scale-up'],
|
|
10728
10713
|
duration: 100,
|
|
10729
|
-
cls: 'uk-active',
|
|
10730
|
-
clsPos: 'uk-tooltip' },
|
|
10714
|
+
cls: 'uk-active' },
|
|
10731
10715
|
|
|
10732
10716
|
|
|
10733
10717
|
beforeConnect() {
|
|
@@ -10782,9 +10766,9 @@
|
|
|
10782
10766
|
|
|
10783
10767
|
_show() {
|
|
10784
10768
|
this.tooltip = append(
|
|
10785
|
-
this.container, "<div class=\"" +
|
|
10786
|
-
this.
|
|
10787
|
-
this.
|
|
10769
|
+
this.container, "<div class=\"uk-" +
|
|
10770
|
+
this.$options.name + "\"> <div class=\"uk-" +
|
|
10771
|
+
this.$options.name + "-inner\">" + this.title + "</div> </div>");
|
|
10788
10772
|
|
|
10789
10773
|
|
|
10790
10774
|
|