uikit 3.12.3-dev.cbf065cc2 → 3.13.1-dev.4a671f35d
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 +5 -2
- package/dist/css/uikit-core-rtl.css +7 -4
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +7 -4
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +7 -4
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +7 -4
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +2 -2
- 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 +5 -7
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +5 -7
- 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 +10 -16
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +6 -10
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +5 -7
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +6 -10
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +5 -7
- 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 +137 -193
- 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 +139 -195
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/countdown.js +1 -1
- package/src/js/core/accordion.js +6 -3
- package/src/js/core/drop.js +10 -23
- package/src/js/core/form-custom.js +2 -2
- package/src/js/core/grid.js +1 -1
- package/src/js/core/height-match.js +11 -21
- package/src/js/core/height-viewport.js +3 -5
- package/src/js/core/icon.js +9 -16
- package/src/js/core/img.js +4 -14
- package/src/js/core/index.js +0 -1
- package/src/js/core/margin.js +8 -10
- package/src/js/core/overflow-auto.js +3 -7
- package/src/js/core/responsive.js +7 -0
- package/src/js/core/scrollspy.js +4 -0
- package/src/js/core/sticky.js +19 -34
- package/src/js/core/switcher.js +4 -0
- package/src/js/core/toggle.js +12 -7
- package/src/js/mixin/media.js +3 -7
- package/src/js/mixin/parallax.js +2 -1
- package/src/js/mixin/resize.js +5 -7
- package/src/js/util/selector.js +24 -23
- package/src/less/components/modal.less +6 -3
- package/src/scss/components/modal.scss +6 -3
- package/tests/grid.html +9 -9
- package/tests/slider.html +1 -1
- package/tests/slideshow.html +1 -1
- package/tests/sticky.html +0 -6
- package/src/js/core/gif.js +0 -24
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.
|
|
1
|
+
/*! UIkit 3.13.1-dev.4a671f35d | 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() :
|
|
@@ -456,40 +456,41 @@
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
459
|
+
const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, '$1 *'));
|
|
459
460
|
|
|
460
461
|
function _query(selector, context, queryFn) {if (context === void 0) {context = document;}
|
|
461
462
|
if (!selector || !isString(selector)) {
|
|
462
463
|
return selector;
|
|
463
464
|
}
|
|
464
465
|
|
|
465
|
-
selector = selector
|
|
466
|
+
selector = sanatize(selector);
|
|
466
467
|
|
|
467
468
|
if (isContextSelector(selector)) {
|
|
468
|
-
|
|
469
|
-
|
|
469
|
+
const split = splitSelector(selector);
|
|
470
|
+
selector = '';
|
|
471
|
+
for (let sel of split) {
|
|
470
472
|
let ctx = context;
|
|
471
473
|
|
|
472
|
-
if (
|
|
473
|
-
const selectors =
|
|
474
|
+
if (sel[0] === '!') {
|
|
475
|
+
const selectors = sel.substr(1).trim().split(' ');
|
|
474
476
|
ctx = closest(parent(context), selectors[0]);
|
|
475
|
-
|
|
477
|
+
sel = selectors.slice(1).join(' ').trim();
|
|
478
|
+
if (!sel.length && split.length === 1) {
|
|
479
|
+
return ctx;
|
|
480
|
+
}
|
|
476
481
|
}
|
|
477
482
|
|
|
478
|
-
if (
|
|
479
|
-
const selectors =
|
|
483
|
+
if (sel[0] === '-') {
|
|
484
|
+
const selectors = sel.substr(1).trim().split(' ');
|
|
480
485
|
const prev = (ctx || context).previousElementSibling;
|
|
481
|
-
ctx = matches(prev,
|
|
482
|
-
|
|
486
|
+
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
487
|
+
sel = selectors.slice(1).join(' ');
|
|
483
488
|
}
|
|
484
489
|
|
|
485
|
-
if (
|
|
486
|
-
|
|
490
|
+
if (ctx) {
|
|
491
|
+
selector += "" + (selector ? ',' : '') + domPath(ctx) + " " + sel;
|
|
487
492
|
}
|
|
488
|
-
|
|
489
|
-
return domPath(ctx) + " " + selector;
|
|
490
|
-
}).
|
|
491
|
-
filter(Boolean).
|
|
492
|
-
join(',');
|
|
493
|
+
}
|
|
493
494
|
|
|
494
495
|
context = document;
|
|
495
496
|
}
|
|
@@ -2893,7 +2894,7 @@
|
|
|
2893
2894
|
UIkit.data = '__uikit__';
|
|
2894
2895
|
UIkit.prefix = 'uk-';
|
|
2895
2896
|
UIkit.options = {};
|
|
2896
|
-
UIkit.version = '3.
|
|
2897
|
+
UIkit.version = '3.13.1-dev.4a671f35d';
|
|
2897
2898
|
|
|
2898
2899
|
globalAPI(UIkit);
|
|
2899
2900
|
hooksAPI(UIkit);
|
|
@@ -3308,9 +3309,11 @@
|
|
|
3308
3309
|
|
|
3309
3310
|
if (show) {
|
|
3310
3311
|
const toggle = $(this.$props.toggle, el);
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3312
|
+
fastdom.read(() => {
|
|
3313
|
+
if (!isInView(toggle)) {
|
|
3314
|
+
scrollIntoView(toggle, { offset: this.offset });
|
|
3315
|
+
}
|
|
3316
|
+
});
|
|
3314
3317
|
}
|
|
3315
3318
|
});
|
|
3316
3319
|
}
|
|
@@ -3407,14 +3410,12 @@
|
|
|
3407
3410
|
} } };
|
|
3408
3411
|
|
|
3409
3412
|
var Resize = {
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3413
|
+
connected() {var _this$$options$resize;
|
|
3414
|
+
this.registerObserver(
|
|
3415
|
+
observeResize(((_this$$options$resize = this.$options.resizeTargets) == null ? void 0 : _this$$options$resize.call(this)) || this.$el, () =>
|
|
3416
|
+
this.$emit('resize')));
|
|
3414
3417
|
|
|
3415
3418
|
|
|
3416
|
-
connected() {
|
|
3417
|
-
this.registerObserver(observeResize(this.resizeTargets, () => this.$emit('resize')));
|
|
3418
3419
|
} };
|
|
3419
3420
|
|
|
3420
3421
|
var cover = {
|
|
@@ -3573,25 +3574,12 @@
|
|
|
3573
3574
|
container: false },
|
|
3574
3575
|
|
|
3575
3576
|
|
|
3576
|
-
computed: {
|
|
3577
|
-
boundary(_ref, $el) {let { boundary } = _ref;
|
|
3578
|
-
return boundary === true ? window : query(boundary, $el);
|
|
3579
|
-
},
|
|
3580
|
-
|
|
3581
|
-
clsDrop(_ref2) {let { clsDrop } = _ref2;
|
|
3582
|
-
return clsDrop || "uk-" + this.$options.name;
|
|
3583
|
-
},
|
|
3584
|
-
|
|
3585
|
-
clsPos() {
|
|
3586
|
-
return this.clsDrop;
|
|
3587
|
-
} },
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
3577
|
created() {
|
|
3591
3578
|
this.tracker = new MouseTracker();
|
|
3592
3579
|
},
|
|
3593
3580
|
|
|
3594
3581
|
connected() {
|
|
3582
|
+
this.clsPos = this.clsDrop = this.$props.clsDrop || "uk-" + this.$options.name;
|
|
3595
3583
|
addClass(this.$el, this.clsDrop);
|
|
3596
3584
|
|
|
3597
3585
|
if (this.toggle && !this.target) {
|
|
@@ -3631,7 +3619,7 @@
|
|
|
3631
3619
|
return 'a[href^="#"]';
|
|
3632
3620
|
},
|
|
3633
3621
|
|
|
3634
|
-
handler(
|
|
3622
|
+
handler(_ref) {let { defaultPrevented, current: { hash } } = _ref;
|
|
3635
3623
|
if (!defaultPrevented && hash && !within(hash, this.$el)) {
|
|
3636
3624
|
this.hide(false);
|
|
3637
3625
|
}
|
|
@@ -3743,12 +3731,12 @@
|
|
|
3743
3731
|
on(
|
|
3744
3732
|
document,
|
|
3745
3733
|
pointerDown,
|
|
3746
|
-
(
|
|
3734
|
+
(_ref2) => {let { target } = _ref2;return (
|
|
3747
3735
|
!within(target, this.$el) &&
|
|
3748
3736
|
once(
|
|
3749
3737
|
document,
|
|
3750
3738
|
pointerUp + " " + pointerCancel + " scroll",
|
|
3751
|
-
(
|
|
3739
|
+
(_ref3) => {let { defaultPrevented, type, target: newTarget } = _ref3;
|
|
3752
3740
|
if (
|
|
3753
3741
|
!defaultPrevented &&
|
|
3754
3742
|
type === pointerUp &&
|
|
@@ -3787,7 +3775,7 @@
|
|
|
3787
3775
|
{
|
|
3788
3776
|
name: 'hide',
|
|
3789
3777
|
|
|
3790
|
-
handler(
|
|
3778
|
+
handler(_ref4) {let { target } = _ref4;
|
|
3791
3779
|
if (this.$el !== target) {
|
|
3792
3780
|
active$1 =
|
|
3793
3781
|
active$1 === null && within(target, this.$el) && this.isToggled() ?
|
|
@@ -3880,28 +3868,28 @@
|
|
|
3880
3868
|
},
|
|
3881
3869
|
|
|
3882
3870
|
position() {
|
|
3871
|
+
const boundary = this.boundary === true ? window : query(this.boundary, this.$el);
|
|
3883
3872
|
removeClass(this.$el, this.clsDrop + "-stack");
|
|
3884
3873
|
toggleClass(this.$el, this.clsDrop + "-boundary", this.boundaryAlign);
|
|
3885
3874
|
|
|
3886
|
-
const
|
|
3887
|
-
const alignTo = this.boundaryAlign ?
|
|
3875
|
+
const boundaryOffset = offset(boundary);
|
|
3876
|
+
const alignTo = this.boundaryAlign ? boundaryOffset : offset(this.target);
|
|
3888
3877
|
|
|
3889
3878
|
if (this.align === 'justify') {
|
|
3890
3879
|
const prop = this.getAxis() === 'y' ? 'width' : 'height';
|
|
3891
3880
|
css(this.$el, prop, alignTo[prop]);
|
|
3892
3881
|
} else if (
|
|
3893
|
-
|
|
3882
|
+
boundary &&
|
|
3894
3883
|
this.$el.offsetWidth >
|
|
3895
|
-
Math.max(
|
|
3884
|
+
Math.max(
|
|
3885
|
+
boundaryOffset.right - alignTo.left,
|
|
3886
|
+
alignTo.right - boundaryOffset.left))
|
|
3887
|
+
|
|
3896
3888
|
{
|
|
3897
3889
|
addClass(this.$el, this.clsDrop + "-stack");
|
|
3898
3890
|
}
|
|
3899
3891
|
|
|
3900
|
-
this.positionAt(
|
|
3901
|
-
this.$el,
|
|
3902
|
-
this.boundaryAlign ? this.boundary : this.target,
|
|
3903
|
-
this.boundary);
|
|
3904
|
-
|
|
3892
|
+
this.positionAt(this.$el, this.boundaryAlign ? boundary : this.target, boundary);
|
|
3905
3893
|
} } };
|
|
3906
3894
|
|
|
3907
3895
|
|
|
@@ -3938,7 +3926,7 @@
|
|
|
3938
3926
|
return (
|
|
3939
3927
|
target && (
|
|
3940
3928
|
target === true && parent(this.input) === $el && this.input.nextElementSibling ||
|
|
3941
|
-
|
|
3929
|
+
$(target, $el)));
|
|
3942
3930
|
|
|
3943
3931
|
} },
|
|
3944
3932
|
|
|
@@ -3985,28 +3973,9 @@
|
|
|
3985
3973
|
this.$emit();
|
|
3986
3974
|
} }] };
|
|
3987
3975
|
|
|
3988
|
-
// Deprecated
|
|
3989
|
-
var gif = {
|
|
3990
|
-
connected() {
|
|
3991
|
-
this.registerObserver(observeIntersection(this.$el, () => this.$emit()));
|
|
3992
|
-
},
|
|
3993
|
-
|
|
3994
|
-
update: {
|
|
3995
|
-
read(data) {
|
|
3996
|
-
const inview = isInView(this.$el);
|
|
3997
|
-
|
|
3998
|
-
if (!inview || data.isInView === inview) {
|
|
3999
|
-
return false;
|
|
4000
|
-
}
|
|
4001
|
-
|
|
4002
|
-
data.isInView = inview;
|
|
4003
|
-
},
|
|
4004
|
-
|
|
4005
|
-
write() {
|
|
4006
|
-
this.$el.src = '' + this.$el.src; // force self-assign
|
|
4007
|
-
} } };
|
|
4008
|
-
|
|
4009
3976
|
var Margin = {
|
|
3977
|
+
mixins: [Resize],
|
|
3978
|
+
|
|
4010
3979
|
props: {
|
|
4011
3980
|
margin: String,
|
|
4012
3981
|
firstColumn: Boolean },
|
|
@@ -4017,14 +3986,16 @@
|
|
|
4017
3986
|
firstColumn: 'uk-first-column' },
|
|
4018
3987
|
|
|
4019
3988
|
|
|
3989
|
+
resizeTargets() {
|
|
3990
|
+
return this.$el.children;
|
|
3991
|
+
},
|
|
3992
|
+
|
|
4020
3993
|
connected() {
|
|
4021
3994
|
this.registerObserver(
|
|
4022
3995
|
observeMutation(this.$el, () => this.$reset(), {
|
|
4023
3996
|
childList: true }));
|
|
4024
3997
|
|
|
4025
3998
|
|
|
4026
|
-
|
|
4027
|
-
this.registerObserver(observeResize(this.$el.children, () => this.$emit('resize')));
|
|
4028
3999
|
},
|
|
4029
4000
|
|
|
4030
4001
|
update: {
|
|
@@ -4242,7 +4213,7 @@
|
|
|
4242
4213
|
|
|
4243
4214
|
{
|
|
4244
4215
|
read() {
|
|
4245
|
-
if (positionedAbsolute(this.$el)) {
|
|
4216
|
+
if (this.parallax && positionedAbsolute(this.$el)) {
|
|
4246
4217
|
return false;
|
|
4247
4218
|
}
|
|
4248
4219
|
|
|
@@ -4320,21 +4291,19 @@
|
|
|
4320
4291
|
|
|
4321
4292
|
|
|
4322
4293
|
computed: {
|
|
4323
|
-
elements
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
resizeTargets() {
|
|
4328
|
-
this.$el.children;
|
|
4329
|
-
} },
|
|
4294
|
+
elements: {
|
|
4295
|
+
get(_ref, $el) {let { target } = _ref;
|
|
4296
|
+
return $$(target, $el);
|
|
4297
|
+
},
|
|
4330
4298
|
|
|
4299
|
+
watch() {
|
|
4300
|
+
this.$reset();
|
|
4301
|
+
} } },
|
|
4331
4302
|
|
|
4332
|
-
connected() {
|
|
4333
|
-
this.registerObserver(
|
|
4334
|
-
observeMutation(this.$el, () => this.$reset(), {
|
|
4335
|
-
childList: true }));
|
|
4336
4303
|
|
|
4337
4304
|
|
|
4305
|
+
resizeTargets() {
|
|
4306
|
+
return this.elements;
|
|
4338
4307
|
},
|
|
4339
4308
|
|
|
4340
4309
|
update: {
|
|
@@ -4410,12 +4379,10 @@
|
|
|
4410
4379
|
minHeight: 0 },
|
|
4411
4380
|
|
|
4412
4381
|
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
} },
|
|
4418
|
-
|
|
4382
|
+
resizeTargets() {
|
|
4383
|
+
// check for offsetTop change
|
|
4384
|
+
return [this.$el, document.documentElement];
|
|
4385
|
+
},
|
|
4419
4386
|
|
|
4420
4387
|
update: {
|
|
4421
4388
|
read(_ref) {let { minHeight: prev } = _ref;
|
|
@@ -4775,37 +4742,30 @@
|
|
|
4775
4742
|
|
|
4776
4743
|
beforeConnect() {
|
|
4777
4744
|
addClass(this.$el, 'uk-slidenav');
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
icon(_ref, $el) {let { icon } = _ref;
|
|
4782
|
-
return hasClass($el, 'uk-slidenav-large') ? icon + "-large" : icon;
|
|
4783
|
-
} } };
|
|
4784
|
-
|
|
4745
|
+
const icon = this.$props.icon;
|
|
4746
|
+
this.icon = hasClass(this.$el, 'uk-slidenav-large') ? icon + "-large" : icon;
|
|
4747
|
+
} };
|
|
4785
4748
|
|
|
4786
4749
|
|
|
4787
4750
|
const Search = {
|
|
4788
4751
|
extends: IconComponent,
|
|
4789
4752
|
|
|
4790
|
-
|
|
4791
|
-
icon
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4753
|
+
beforeConnect() {
|
|
4754
|
+
this.icon =
|
|
4755
|
+
hasClass(this.$el, 'uk-search-icon') && parents(this.$el, '.uk-search-large').length ?
|
|
4756
|
+
'search-large' :
|
|
4757
|
+
parents(this.$el, '.uk-search-navbar').length ?
|
|
4758
|
+
'search-navbar' :
|
|
4759
|
+
this.$props.icon;
|
|
4760
|
+
} };
|
|
4799
4761
|
|
|
4800
4762
|
|
|
4801
4763
|
const Close = {
|
|
4802
4764
|
extends: IconComponent,
|
|
4803
4765
|
|
|
4804
|
-
|
|
4805
|
-
icon()
|
|
4806
|
-
|
|
4807
|
-
} } };
|
|
4808
|
-
|
|
4766
|
+
beforeConnect() {
|
|
4767
|
+
this.icon = "close-" + (hasClass(this.$el, 'uk-close-large') ? 'large' : 'icon');
|
|
4768
|
+
} };
|
|
4809
4769
|
|
|
4810
4770
|
|
|
4811
4771
|
const Spinner = {
|
|
@@ -4882,29 +4842,19 @@
|
|
|
4882
4842
|
loading: 'lazy' },
|
|
4883
4843
|
|
|
4884
4844
|
|
|
4885
|
-
computed: {
|
|
4886
|
-
target: {
|
|
4887
|
-
get(_ref) {let { target } = _ref;
|
|
4888
|
-
return [this.$el, ...queryAll(target, this.$el)];
|
|
4889
|
-
},
|
|
4890
|
-
|
|
4891
|
-
watch() {
|
|
4892
|
-
this.$reset();
|
|
4893
|
-
} } },
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
4845
|
connected() {
|
|
4898
4846
|
if (this.loading !== 'lazy') {
|
|
4899
4847
|
this.load();
|
|
4900
4848
|
return;
|
|
4901
4849
|
}
|
|
4902
4850
|
|
|
4851
|
+
const target = [this.$el, ...queryAll(this.$props.target, this.$el)];
|
|
4852
|
+
|
|
4903
4853
|
if (nativeLazyLoad && isImg(this.$el)) {
|
|
4904
4854
|
this.$el.loading = 'lazy';
|
|
4905
4855
|
setSrcAttrs(this.$el);
|
|
4906
4856
|
|
|
4907
|
-
if (
|
|
4857
|
+
if (target.length === 1) {
|
|
4908
4858
|
return;
|
|
4909
4859
|
}
|
|
4910
4860
|
}
|
|
@@ -4913,7 +4863,7 @@
|
|
|
4913
4863
|
|
|
4914
4864
|
this.registerObserver(
|
|
4915
4865
|
observeIntersection(
|
|
4916
|
-
|
|
4866
|
+
target,
|
|
4917
4867
|
(entries, observer) => {
|
|
4918
4868
|
this.load();
|
|
4919
4869
|
observer.disconnect();
|
|
@@ -5102,17 +5052,13 @@
|
|
|
5102
5052
|
media: false },
|
|
5103
5053
|
|
|
5104
5054
|
|
|
5105
|
-
computed: {
|
|
5106
|
-
matchMedia() {var _this$mediaObj;
|
|
5107
|
-
return (_this$mediaObj = this.mediaObj) == null ? void 0 : _this$mediaObj.matches;
|
|
5108
|
-
} },
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
5055
|
connected() {
|
|
5112
5056
|
const media = toMedia(this.media);
|
|
5113
5057
|
this.mediaObj = window.matchMedia(media);
|
|
5114
|
-
const handler = () =>
|
|
5115
|
-
|
|
5058
|
+
const handler = () => {
|
|
5059
|
+
this.matchMedia = this.mediaObj.matches;
|
|
5060
|
+
trigger(this.$el, createEvent('mediachange', false, true, [this.mediaObj]));
|
|
5061
|
+
};
|
|
5116
5062
|
this.offMediaObj = on(this.mediaObj, 'change', () => {
|
|
5117
5063
|
handler();
|
|
5118
5064
|
this.$emit('resize');
|
|
@@ -6305,15 +6251,11 @@
|
|
|
6305
6251
|
|
|
6306
6252
|
content(_ref2, $el) {let { selContent } = _ref2;
|
|
6307
6253
|
return closest($el, selContent);
|
|
6308
|
-
},
|
|
6309
|
-
|
|
6310
|
-
resizeTargets() {
|
|
6311
|
-
return [this.container, this.content];
|
|
6312
6254
|
} },
|
|
6313
6255
|
|
|
6314
6256
|
|
|
6315
|
-
|
|
6316
|
-
|
|
6257
|
+
resizeTargets() {
|
|
6258
|
+
return [this.container, this.content];
|
|
6317
6259
|
},
|
|
6318
6260
|
|
|
6319
6261
|
update: {
|
|
@@ -6331,14 +6273,20 @@
|
|
|
6331
6273
|
},
|
|
6332
6274
|
|
|
6333
6275
|
write(_ref3) {let { max } = _ref3;
|
|
6334
|
-
css(this.$el,
|
|
6276
|
+
css(this.$el, { minHeight: this.minHeight, maxHeight: max });
|
|
6335
6277
|
},
|
|
6336
6278
|
|
|
6337
6279
|
events: ['resize'] } };
|
|
6338
6280
|
|
|
6339
6281
|
var responsive = {
|
|
6282
|
+
mixin: [Resize],
|
|
6283
|
+
|
|
6340
6284
|
props: ['width', 'height'],
|
|
6341
6285
|
|
|
6286
|
+
resizeTargets() {
|
|
6287
|
+
return [this.$el, parent(this.$el)];
|
|
6288
|
+
},
|
|
6289
|
+
|
|
6342
6290
|
connected() {
|
|
6343
6291
|
addClass(this.$el, 'uk-responsive-width');
|
|
6344
6292
|
},
|
|
@@ -6459,6 +6407,10 @@
|
|
|
6459
6407
|
el[stateKey] = { cls: data(el, 'uk-scrollspy-class') || this.cls };
|
|
6460
6408
|
}
|
|
6461
6409
|
|
|
6410
|
+
if (!this.repeat && el[stateKey].show) {
|
|
6411
|
+
continue;
|
|
6412
|
+
}
|
|
6413
|
+
|
|
6462
6414
|
el[stateKey].show = isInView(el, this.offsetTop, this.offsetLeft);
|
|
6463
6415
|
}
|
|
6464
6416
|
},
|
|
@@ -6623,7 +6575,6 @@
|
|
|
6623
6575
|
clsFixed: String,
|
|
6624
6576
|
clsBelow: String,
|
|
6625
6577
|
selTarget: String,
|
|
6626
|
-
widthElement: Boolean,
|
|
6627
6578
|
showOnUp: Boolean,
|
|
6628
6579
|
targetOffset: Number },
|
|
6629
6580
|
|
|
@@ -6639,7 +6590,6 @@
|
|
|
6639
6590
|
clsFixed: 'uk-sticky-fixed',
|
|
6640
6591
|
clsBelow: 'uk-sticky-below',
|
|
6641
6592
|
selTarget: '',
|
|
6642
|
-
widthElement: false,
|
|
6643
6593
|
showOnUp: false,
|
|
6644
6594
|
targetOffset: false },
|
|
6645
6595
|
|
|
@@ -6647,39 +6597,19 @@
|
|
|
6647
6597
|
computed: {
|
|
6648
6598
|
selTarget(_ref, $el) {let { selTarget } = _ref;
|
|
6649
6599
|
return selTarget && $(selTarget, $el) || $el;
|
|
6650
|
-
},
|
|
6651
|
-
|
|
6652
|
-
widthElement(_ref2, $el) {let { widthElement } = _ref2;
|
|
6653
|
-
return query(widthElement, $el) || this.placeholder;
|
|
6654
|
-
},
|
|
6655
|
-
|
|
6656
|
-
resizeTargets() {
|
|
6657
|
-
return document.documentElement;
|
|
6658
|
-
},
|
|
6659
|
-
|
|
6660
|
-
isActive: {
|
|
6661
|
-
get() {
|
|
6662
|
-
return hasClass(this.selTarget, this.clsActive);
|
|
6663
|
-
},
|
|
6664
|
-
|
|
6665
|
-
set(value) {
|
|
6666
|
-
if (value && !this.isActive) {
|
|
6667
|
-
replaceClass(this.selTarget, this.clsInactive, this.clsActive);
|
|
6668
|
-
trigger(this.$el, 'active');
|
|
6669
|
-
} else if (!value && !hasClass(this.selTarget, this.clsInactive)) {
|
|
6670
|
-
replaceClass(this.selTarget, this.clsActive, this.clsInactive);
|
|
6671
|
-
trigger(this.$el, 'inactive');
|
|
6672
|
-
}
|
|
6673
|
-
} } },
|
|
6600
|
+
} },
|
|
6674
6601
|
|
|
6675
6602
|
|
|
6603
|
+
resizeTargets() {
|
|
6604
|
+
return document.documentElement;
|
|
6605
|
+
},
|
|
6676
6606
|
|
|
6677
6607
|
connected() {
|
|
6678
6608
|
this.placeholder =
|
|
6679
6609
|
$('+ .uk-sticky-placeholder', this.$el) ||
|
|
6680
6610
|
$('<div class="uk-sticky-placeholder"></div>');
|
|
6681
6611
|
this.isFixed = false;
|
|
6682
|
-
this.
|
|
6612
|
+
this.setActive(false);
|
|
6683
6613
|
},
|
|
6684
6614
|
|
|
6685
6615
|
disconnected() {
|
|
@@ -6690,7 +6620,6 @@
|
|
|
6690
6620
|
|
|
6691
6621
|
remove$1(this.placeholder);
|
|
6692
6622
|
this.placeholder = null;
|
|
6693
|
-
this.widthElement = null;
|
|
6694
6623
|
},
|
|
6695
6624
|
|
|
6696
6625
|
events: [
|
|
@@ -6730,7 +6659,7 @@
|
|
|
6730
6659
|
|
|
6731
6660
|
update: [
|
|
6732
6661
|
{
|
|
6733
|
-
read(
|
|
6662
|
+
read(_ref2, types) {let { height: height$1, margin } = _ref2;
|
|
6734
6663
|
this.inactive = !this.matchMedia || !isVisible(this.$el);
|
|
6735
6664
|
|
|
6736
6665
|
if (this.inactive) {
|
|
@@ -6785,13 +6714,12 @@
|
|
|
6785
6714
|
topOffset,
|
|
6786
6715
|
height: height$1,
|
|
6787
6716
|
margin,
|
|
6788
|
-
width: dimensions$1(
|
|
6789
|
-
width,
|
|
6717
|
+
width: dimensions$1(referenceElement).width,
|
|
6790
6718
|
top: offsetPosition(referenceElement)[0] };
|
|
6791
6719
|
|
|
6792
6720
|
},
|
|
6793
6721
|
|
|
6794
|
-
write(
|
|
6722
|
+
write(_ref3) {let { height, margin } = _ref3;
|
|
6795
6723
|
const { placeholder } = this;
|
|
6796
6724
|
|
|
6797
6725
|
css(placeholder, { height, margin });
|
|
@@ -6800,22 +6728,20 @@
|
|
|
6800
6728
|
after(this.$el, placeholder);
|
|
6801
6729
|
placeholder.hidden = true;
|
|
6802
6730
|
}
|
|
6803
|
-
|
|
6804
|
-
this.isActive = !!this.isActive; // force self-assign
|
|
6805
6731
|
},
|
|
6806
6732
|
|
|
6807
6733
|
events: ['resize'] },
|
|
6808
6734
|
|
|
6809
6735
|
|
|
6810
6736
|
{
|
|
6811
|
-
read(
|
|
6737
|
+
read(_ref4)
|
|
6812
6738
|
|
|
6813
6739
|
|
|
6814
6740
|
|
|
6815
6741
|
|
|
6816
6742
|
|
|
6817
6743
|
|
|
6818
|
-
{let { scroll: prevScroll = 0, dir: prevDir = 'down', overflow, overflowScroll = 0, start, end } =
|
|
6744
|
+
{let { scroll: prevScroll = 0, dir: prevDir = 'down', overflow, overflowScroll = 0, start, end } = _ref4;
|
|
6819
6745
|
const scroll = scrollTop(window);
|
|
6820
6746
|
const dir = prevScroll <= scroll ? 'down' : 'up';
|
|
6821
6747
|
|
|
@@ -6918,7 +6844,7 @@
|
|
|
6918
6844
|
},
|
|
6919
6845
|
|
|
6920
6846
|
hide() {
|
|
6921
|
-
this.
|
|
6847
|
+
this.setActive(false);
|
|
6922
6848
|
removeClass(this.$el, this.clsFixed, this.clsBelow);
|
|
6923
6849
|
css(this.$el, { position: '', top: '', width: '' });
|
|
6924
6850
|
this.placeholder.hidden = true;
|
|
@@ -6955,9 +6881,21 @@
|
|
|
6955
6881
|
width });
|
|
6956
6882
|
|
|
6957
6883
|
|
|
6958
|
-
this.
|
|
6884
|
+
this.setActive(active);
|
|
6959
6885
|
toggleClass(this.$el, this.clsBelow, scroll > topOffset + height);
|
|
6960
6886
|
addClass(this.$el, this.clsFixed);
|
|
6887
|
+
},
|
|
6888
|
+
|
|
6889
|
+
setActive(active) {
|
|
6890
|
+
const prev = this.active;
|
|
6891
|
+
this.active = active;
|
|
6892
|
+
if (active) {
|
|
6893
|
+
replaceClass(this.selTarget, this.clsInactive, this.clsActive);
|
|
6894
|
+
prev !== active && trigger(this.$el, 'active');
|
|
6895
|
+
} else {
|
|
6896
|
+
replaceClass(this.selTarget, this.clsActive, this.clsInactive);
|
|
6897
|
+
prev !== active && trigger(this.$el, 'inactive');
|
|
6898
|
+
}
|
|
6961
6899
|
} } };
|
|
6962
6900
|
|
|
6963
6901
|
|
|
@@ -7049,6 +6987,9 @@
|
|
|
7049
6987
|
|
|
7050
6988
|
connected() {
|
|
7051
6989
|
this.lazyload(this.$el, this.connects);
|
|
6990
|
+
|
|
6991
|
+
// check for connects
|
|
6992
|
+
ready(() => this.$emit());
|
|
7052
6993
|
},
|
|
7053
6994
|
|
|
7054
6995
|
events: [
|
|
@@ -7177,13 +7118,6 @@
|
|
|
7177
7118
|
queued: true },
|
|
7178
7119
|
|
|
7179
7120
|
|
|
7180
|
-
connected() {
|
|
7181
|
-
if (!includes(this.mode, 'media') && !isFocusable(this.$el)) {
|
|
7182
|
-
attr(this.$el, 'tabindex', '0');
|
|
7183
|
-
}
|
|
7184
|
-
this.lazyload(this.$el, this.target);
|
|
7185
|
-
},
|
|
7186
|
-
|
|
7187
7121
|
computed: {
|
|
7188
7122
|
target: {
|
|
7189
7123
|
get(_ref, $el) {let { href, target } = _ref;
|
|
@@ -7199,6 +7133,17 @@
|
|
|
7199
7133
|
|
|
7200
7134
|
|
|
7201
7135
|
|
|
7136
|
+
connected() {
|
|
7137
|
+
if (!includes(this.mode, 'media') && !isFocusable(this.$el)) {
|
|
7138
|
+
attr(this.$el, 'tabindex', '0');
|
|
7139
|
+
}
|
|
7140
|
+
|
|
7141
|
+
this.lazyload(this.$el, this.target);
|
|
7142
|
+
|
|
7143
|
+
// check for target
|
|
7144
|
+
ready(() => this.$emit());
|
|
7145
|
+
},
|
|
7146
|
+
|
|
7202
7147
|
events: [
|
|
7203
7148
|
{
|
|
7204
7149
|
name: pointerDown,
|
|
@@ -7393,7 +7338,6 @@
|
|
|
7393
7338
|
Drop: drop,
|
|
7394
7339
|
Dropdown: drop,
|
|
7395
7340
|
FormCustom: formCustom,
|
|
7396
|
-
Gif: gif,
|
|
7397
7341
|
Grid: grid,
|
|
7398
7342
|
HeightMatch: heightMatch,
|
|
7399
7343
|
HeightViewport: heightViewport,
|
|
@@ -7453,7 +7397,7 @@
|
|
|
7453
7397
|
|
|
7454
7398
|
|
|
7455
7399
|
connected() {
|
|
7456
|
-
this.date = Date.parse(this.date);
|
|
7400
|
+
this.date = Date.parse(this.$props.date);
|
|
7457
7401
|
this.start();
|
|
7458
7402
|
},
|
|
7459
7403
|
|
|
@@ -9503,7 +9447,7 @@
|
|
|
9503
9447
|
if (!image.naturalWidth) {
|
|
9504
9448
|
image.onload = () => {
|
|
9505
9449
|
dimensions[src] = toDimensions(image);
|
|
9506
|
-
trigger(el, 'load');
|
|
9450
|
+
trigger(el, createEvent('load', false));
|
|
9507
9451
|
};
|
|
9508
9452
|
return toDimensions(image);
|
|
9509
9453
|
}
|