uikit 3.15.18-dev.9cbbb510d → 3.15.19-dev.699ab5a7f

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/util.js +4 -4
  3. package/dist/css/uikit-core-rtl.css +5 -2
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +5 -2
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +5 -2
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +5 -2
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +2 -2
  12. package/dist/js/components/countdown.min.js +2 -1
  13. package/dist/js/components/filter.js +22 -30
  14. package/dist/js/components/filter.min.js +2 -1
  15. package/dist/js/components/lightbox-panel.js +75 -96
  16. package/dist/js/components/lightbox-panel.min.js +2 -1
  17. package/dist/js/components/lightbox.js +78 -99
  18. package/dist/js/components/lightbox.min.js +2 -1
  19. package/dist/js/components/notification.js +11 -14
  20. package/dist/js/components/notification.min.js +2 -1
  21. package/dist/js/components/parallax.js +24 -26
  22. package/dist/js/components/parallax.min.js +2 -1
  23. package/dist/js/components/slider-parallax.js +19 -20
  24. package/dist/js/components/slider-parallax.min.js +2 -1
  25. package/dist/js/components/slider.js +95 -51
  26. package/dist/js/components/slider.min.js +2 -1
  27. package/dist/js/components/slideshow-parallax.js +19 -20
  28. package/dist/js/components/slideshow-parallax.min.js +2 -1
  29. package/dist/js/components/slideshow.js +35 -42
  30. package/dist/js/components/slideshow.min.js +2 -1
  31. package/dist/js/components/sortable.js +12 -18
  32. package/dist/js/components/sortable.min.js +2 -1
  33. package/dist/js/components/tooltip.js +25 -30
  34. package/dist/js/components/tooltip.min.js +2 -1
  35. package/dist/js/components/upload.js +7 -7
  36. package/dist/js/components/upload.min.js +2 -1
  37. package/dist/js/uikit-core.js +277 -330
  38. package/dist/js/uikit-core.min.js +2 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +2 -1
  41. package/dist/js/uikit.js +470 -503
  42. package/dist/js/uikit.min.js +2 -1
  43. package/package.json +2 -2
  44. package/src/js/components/lightbox-panel.js +3 -5
  45. package/src/js/components/slider.js +62 -7
  46. package/src/js/core/accordion.js +5 -4
  47. package/src/js/core/sticky.js +6 -7
  48. package/src/js/mixin/slider-drag.js +1 -1
  49. package/src/js/mixin/slider.js +2 -7
  50. package/src/js/util/attr.js +1 -6
  51. package/src/less/components/sticky.less +4 -1
  52. package/src/scss/components/sticky.scss +4 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.18-dev.9cbbb510d | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.19-dev.699ab5a7f | 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(require('uikit-util')) :
@@ -35,16 +35,16 @@
35
35
  return Math.abs(uikitUtil.css(el, 'transform').split(',')[4] / el.offsetWidth) || 0;
36
36
  }
37
37
 
38
- function translate(value, unit) {if (value === void 0) {value = 0;}if (unit === void 0) {unit = '%';}
38
+ function translate(value = 0, unit = '%') {
39
39
  value += value ? unit : '';
40
- return "translate3d(" + value + ", 0, 0)";
40
+ return `translate3d(${value}, 0, 0)`;
41
41
  }
42
42
 
43
43
  function scale3d(value) {
44
- return "scale3d(" + value + ", " + value + ", 1)";
44
+ return `scale3d(${value}, ${value}, 1)`;
45
45
  }
46
46
 
47
- function Transitioner(prev, next, dir, _ref) {let { animation, easing } = _ref;
47
+ function Transitioner(prev, next, dir, { animation, easing }) {
48
48
  const { percent, translate, show = uikitUtil.noop } = animation;
49
49
  const props = show(dir);
50
50
  const deferred = new uikitUtil.Deferred();
@@ -52,7 +52,7 @@
52
52
  return {
53
53
  dir,
54
54
 
55
- show(duration, percent, linear) {if (percent === void 0) {percent = 0;}
55
+ show(duration, percent = 0, linear) {
56
56
  const timing = linear ? 'linear' : easing;
57
57
  duration -= Math.round(duration * uikitUtil.clamp(percent, -1, 1));
58
58
 
@@ -82,7 +82,7 @@
82
82
  }
83
83
  },
84
84
 
85
- forward(duration, percent) {if (percent === void 0) {percent = this.percent();}
85
+ forward(duration, percent = this.percent()) {
86
86
  uikitUtil.Transition.cancel([next, prev]);
87
87
  return this.show(duration, percent, true);
88
88
  },
@@ -114,8 +114,7 @@
114
114
  var Resize = {
115
115
  connected() {var _this$$options$resize;
116
116
  this.registerObserver(
117
- uikitUtil.observeResize(((_this$$options$resize = this.$options.resizeTargets) == null ? void 0 : _this$$options$resize.call(this)) || this.$el, () =>
118
- this.$emit('resize')));
117
+ uikitUtil.observeResize(((_this$$options$resize = this.$options.resizeTargets) == null ? void 0 : _this$$options$resize.call(this)) || this.$el, () => this.$emit('resize')));
119
118
 
120
119
 
121
120
  }
@@ -173,8 +172,7 @@
173
172
  this.stopAutoplay();
174
173
 
175
174
  this.interval = setInterval(
176
- () =>
177
- (!this.draggable || !uikitUtil.$(':focus', this.$el)) && (
175
+ () => (!this.draggable || !uikitUtil.$(':focus', this.$el)) && (
178
176
  !this.pauseOnHover || !uikitUtil.matches(this.$el, ':hover')) &&
179
177
  !this.stack.length &&
180
178
  this.show('next'),
@@ -225,7 +223,7 @@
225
223
  passive: true,
226
224
 
227
225
  delegate() {
228
- return this.selSlides;
226
+ return `${this.selList} > *`;
229
227
  },
230
228
 
231
229
  handler(e) {
@@ -413,12 +411,12 @@
413
411
  },
414
412
 
415
413
  computed: {
416
- nav(_ref, $el) {let { selNav } = _ref;
414
+ nav({ selNav }, $el) {
417
415
  return uikitUtil.$(selNav, $el);
418
416
  },
419
417
 
420
- selNavItem(_ref2) {let { attrItem } = _ref2;
421
- return "[" + attrItem + "],[data-" + attrItem + "]";
418
+ selNavItem({ attrItem }) {
419
+ return `[${attrItem}],[data-${attrItem}]`;
422
420
  },
423
421
 
424
422
  navItems(_, $el) {
@@ -432,7 +430,7 @@
432
430
  uikitUtil.html(
433
431
  this.nav,
434
432
  this.slides.
435
- map((_, i) => "<li " + this.attrItem + "=\"" + i + "\"><a href></a></li>").
433
+ map((_, i) => `<li ${this.attrItem}="${i}"><a href></a></li>`).
436
434
  join(''));
437
435
 
438
436
  }
@@ -491,8 +489,7 @@
491
489
  easing: String,
492
490
  index: Number,
493
491
  finite: Boolean,
494
- velocity: Number,
495
- selSlides: String
492
+ velocity: Number
496
493
  },
497
494
 
498
495
  data: () => ({
@@ -520,11 +517,11 @@
520
517
  },
521
518
 
522
519
  computed: {
523
- duration(_ref, $el) {let { velocity } = _ref;
520
+ duration({ velocity }, $el) {
524
521
  return speedUp($el.offsetWidth / velocity);
525
522
  },
526
523
 
527
- list(_ref2, $el) {let { selList } = _ref2;
524
+ list({ selList }, $el) {
528
525
  return uikitUtil.$(selList, $el);
529
526
  },
530
527
 
@@ -532,13 +529,9 @@
532
529
  return this.length - 1;
533
530
  },
534
531
 
535
- selSlides(_ref3) {let { selList, selSlides } = _ref3;
536
- return selList + " " + (selSlides || '> *');
537
- },
538
-
539
532
  slides: {
540
533
  get() {
541
- return uikitUtil.$$(this.selSlides, this.$el);
534
+ return uikitUtil.children(this.list);
542
535
  },
543
536
 
544
537
  watch() {
@@ -552,7 +545,7 @@
552
545
  },
553
546
 
554
547
  methods: {
555
- show(index, force) {if (force === void 0) {force = false;}
548
+ show(index, force = false) {
556
549
  if (this.dragging || !this.length) {
557
550
  return;
558
551
  }
@@ -623,11 +616,11 @@
623
616
  return promise;
624
617
  },
625
618
 
626
- getIndex(index, prev) {if (index === void 0) {index = this.index;}if (prev === void 0) {prev = this.index;}
619
+ getIndex(index = this.index, prev = this.index) {
627
620
  return uikitUtil.clamp(uikitUtil.getIndex(index, this.slides, prev, this.finite), 0, this.maxIndex);
628
621
  },
629
622
 
630
- getValidIndex(index, prevIndex) {if (index === void 0) {index = this.index;}if (prevIndex === void 0) {prevIndex = this.prevIndex;}
623
+ getValidIndex(index = this.index, prevIndex = this.prevIndex) {
631
624
  return this.getIndex(index, prevIndex);
632
625
  },
633
626
 
@@ -657,18 +650,18 @@
657
650
  return this._getTransitioner(prev, prev !== next && next).getDistance();
658
651
  },
659
652
 
660
- _translate(percent, prev, next) {if (prev === void 0) {prev = this.prevIndex;}if (next === void 0) {next = this.index;}
653
+ _translate(percent, prev = this.prevIndex, next = this.index) {
661
654
  const transitioner = this._getTransitioner(prev !== next ? prev : false, next);
662
655
  transitioner.translate(percent);
663
656
  return transitioner;
664
657
  },
665
658
 
666
659
  _getTransitioner(
667
- prev,
668
- next,
669
- dir,
670
- options)
671
- {if (prev === void 0) {prev = this.prevIndex;}if (next === void 0) {next = this.index;}if (dir === void 0) {dir = this.dir || 1;}if (options === void 0) {options = this.transitionOptions;}
660
+ prev = this.prevIndex,
661
+ next = this.index,
662
+ dir = this.dir || 1,
663
+ options = this.transitionOptions)
664
+ {
672
665
  return new this.Transitioner(
673
666
  uikitUtil.isNumber(prev) ? this.slides[prev] : prev,
674
667
  uikitUtil.isNumber(next) ? this.slides[next] : next,
@@ -702,7 +695,7 @@
702
695
  },
703
696
 
704
697
  computed: {
705
- animation(_ref) {let { animation, Animations } = _ref;
698
+ animation({ animation, Animations }) {
706
699
  return { ...(Animations[animation] || Animations.slide), name: animation };
707
700
  },
708
701
 
@@ -712,15 +705,15 @@
712
705
  },
713
706
 
714
707
  events: {
715
- beforeitemshow(_ref2) {let { target } = _ref2;
708
+ beforeitemshow({ target }) {
716
709
  uikitUtil.addClass(target, this.clsActive);
717
710
  },
718
711
 
719
- itemshown(_ref3) {let { target } = _ref3;
712
+ itemshown({ target }) {
720
713
  uikitUtil.addClass(target, this.clsActivated);
721
714
  },
722
715
 
723
- itemhidden(_ref4) {let { target } = _ref4;
716
+ itemhidden({ target }) {
724
717
  uikitUtil.removeClass(target, this.clsActive, this.clsActivated);
725
718
  }
726
719
  }
@@ -846,7 +839,7 @@
846
839
  },
847
840
 
848
841
  methods: {
849
- lazyload(observeTargets, targets) {if (observeTargets === void 0) {observeTargets = this.$el;}if (targets === void 0) {targets = this.$el;}
842
+ lazyload(observeTargets = this.$el, targets = this.$el) {
850
843
  this.registerObserver(
851
844
  uikitUtil.observeIntersection(observeTargets, (entries, observer) => {
852
845
  for (const el of uikitUtil.toNodes(uikitUtil.isFunction(targets) ? targets() : targets)) {
@@ -856,8 +849,8 @@
856
849
  }
857
850
 
858
851
  for (const el of entries.
859
- filter((_ref) => {let { isIntersecting } = _ref;return isIntersecting;}).
860
- map((_ref2) => {let { target } = _ref2;return target;})) {
852
+ filter(({ isIntersecting }) => isIntersecting).
853
+ map(({ target }) => target)) {
861
854
  observer.unobserve(el);
862
855
  }
863
856
  }));
@@ -914,7 +907,7 @@
914
907
  return { height: height - uikitUtil.boxModelAdjust(this.list, 'height', 'content-box') };
915
908
  },
916
909
 
917
- write(_ref) {let { height } = _ref;
910
+ write({ height }) {
918
911
  height > 0 && uikitUtil.css(this.list, 'minHeight', height);
919
912
  },
920
913
 
@@ -1 +1,2 @@
1
- /*! UIkit 3.15.18-dev.9cbbb510d | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],p):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow=p(s.UIkit.util))})(this,function(s){"use strict";var p={connected(){s.addClass(this.$el,this.$options.id)}},z={slide:{show(t){return[{transform:h(t*-100)},{transform:h()}]},percent(t){return v(t)},translate(t,e){return[{transform:h(e*-100*t)},{transform:h(e*100*(1-t))}]}}};function v(t){return Math.abs(s.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function h(t,e){return t===void 0&&(t=0),e===void 0&&(e="%"),t+=t?e:"","translate3d("+t+", 0, 0)"}function b(t){return"scale3d("+t+", "+t+", 1)"}function $(t,e,n,i){let{animation:l,easing:r}=i;const{percent:a,translate:f,show:c=s.noop}=l,g=c(n),m=new s.Deferred;return{dir:n,show(o,d,L){d===void 0&&(d=0);const x=L?"linear":r;return o-=Math.round(o*s.clamp(d,-1,1)),this.translate(d),u(e,"itemin",{percent:d,duration:o,timing:x,dir:n}),u(t,"itemout",{percent:1-d,duration:o,timing:x,dir:n}),Promise.all([s.Transition.start(e,g[1],o,x),s.Transition.start(t,g[0],o,x)]).then(()=>{this.reset(),m.resolve()},s.noop),m.promise},cancel(){s.Transition.cancel([e,t])},reset(){for(const o in g[0])s.css([e,t],o,"")},forward(o,d){return d===void 0&&(d=this.percent()),s.Transition.cancel([e,t]),this.show(o,d,!0)},translate(o){this.reset();const d=f(o,n);s.css(e,d[1]),s.css(t,d[0]),u(e,"itemtranslatein",{percent:o,dir:n}),u(t,"itemtranslateout",{percent:1-o,dir:n})},percent(){return a(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function u(t,e,n){s.trigger(t,s.createEvent(e,!1,!1,n))}var S={connected(){var t;this.registerObserver(s.observeResize(((t=this.$options.resizeTargets)==null?void 0:t.call(this))||this.$el,()=>this.$emit("resize")))}},N={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>(!this.draggable||!s.$(":focus",this.$el))&&(!this.pauseOnHover||!s.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const I={passive:!1,capture:!0},y={passive:!0,capture:!0},T="touchstart mousedown",w="touchmove mousemove",A="touchend touchcancel mouseup click input scroll";var D={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const i=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=i===this.pos?this.prevPos:this.pos,this.pos=i,e(n)}}},events:[{name:T,passive:!0,delegate(){return this.selSlides},handler(t){!this.draggable||!s.isTouch(t)&&C(t.target)||s.closest(t.target,s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:w,el(){return this.list},handler:s.noop,...I}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,w,this.move,I),s.on(document,A,this.end,y),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;s.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;const{slides:n}=this;let{prevIndex:i}=this,l=Math.abs(e),r=this.getIndex(i+this.dir,i),a=this._getDistance(i,r)||n[i].offsetWidth;for(;r!==i&&l>a;)this.drag-=a*this.dir,i=r,l-=a,r=this.getIndex(i+this.dir,i),a=this._getDistance(i,r)||n[i].offsetWidth;this.percent=l/a;const f=n[i],c=n[r],g=this.index!==r,m=i===r;let o;[this.index,this.prevIndex].filter(d=>!s.includes([r,i],d)).forEach(d=>{s.trigger(n[d],"itemhidden",[this]),m&&(o=!0,this.prevIndex=i)}),(this.index===i&&this.prevIndex!==i||o)&&s.trigger(n[this.index],"itemshown",[this]),g&&(this.prevIndex=i,this.index=r,!m&&s.trigger(f,"beforeitemhide",[this]),s.trigger(c,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),f,!m&&c),g&&(!m&&s.trigger(f,"itemhide",[this]),s.trigger(c,"itemshow",[this]))},end(){if(s.off(document,w,this.move,I),s.off(document,A,this.end,y),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function C(t){return s.css(t,"userSelect")!=="none"&&s.toNodes(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var H={data:{selNav:!1},computed:{nav(t,e){let{selNav:n}=t;return s.$(n,e)},selNavItem(t){let{attrItem:e}=t;return"["+e+"],[data-"+e+"]"},navItems(t,e){return s.$$(this.selNavItem,e)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&s.html(this.nav,this.slides.map((t,e)=>"<li "+this.attrItem+'="'+e+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(t){t.preventDefault(),this.show(s.data(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=s.data(e,this.attrItem);s.toggleClass(e,this.clsActive,s.toNumber(n)===t),s.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},M={mixins:[N,D,H,S],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration(t,e){let{velocity:n}=t;return P(e.offsetWidth/n)},list(t,e){let{selList:n}=t;return s.$(n,e)},maxIndex(){return this.length-1},selSlides(t){let{selList:e,selSlides:n}=t;return e+" "+(n||"> *")},slides:{get(){return s.$$(this.selSlides,this.$el)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(t,e){if(e===void 0&&(e=!1),this.dragging||!this.length)return;const{stack:n}=this,i=e?0:n.length,l=()=>{n.splice(i,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const r=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[r],f=this.getIndex(t,this.index),c=this.slides[f];if(a===c){l();return}if(this.dir=O(t,r),this.prevIndex=r,this.index=f,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,l();return}const g=this._show(a,c,e).then(()=>(a&&s.trigger(a,"itemhidden",[this]),s.trigger(c,"itemshown",[this]),new Promise(m=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,m()})})));return a&&s.trigger(a,"itemhide",[this]),s.trigger(c,"itemshow",[this]),g},getIndex(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.index),s.clamp(s.getIndex(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.prevIndex),this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:i}=this.stack;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate(t,e,n){e===void 0&&(e=this.prevIndex),n===void 0&&(n=this.index);const i=this._getTransitioner(e!==n?e:!1,n);return i.translate(t),i},_getTransitioner(t,e,n,i){return t===void 0&&(t=this.prevIndex),e===void 0&&(e=this.index),n===void 0&&(n=this.dir||1),i===void 0&&(i=this.transitionOptions),new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,n*(s.isRtl?-1:1),i)}}};function O(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function P(t){return .5*t+300}var E={mixins:[M],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:z,Transitioner:$},computed:{animation(t){let{animation:e,Animations:n}=t;return{...n[e]||n.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(t){let{target:e}=t;s.addClass(e,this.clsActive)},itemshown(t){let{target:e}=t;s.addClass(e,this.clsActivated)},itemhidden(t){let{target:e}=t;s.removeClass(e,this.clsActive,this.clsActivated)}}},R={...z,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:b(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:b(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:h(30),zIndex:-1},{transform:h(),zIndex:0}]:[{transform:h(-100),zIndex:0},{transform:h(),zIndex:-1}]},percent(t,e,n){return n<0?1-v(e):v(t)},translate(t,e){return e<0?[{transform:h(30*t),zIndex:-1},{transform:h(-100*(1-t)),zIndex:0}]:[{transform:h(-t*100),zIndex:0},{transform:h(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:h(100),zIndex:0},{transform:h(),zIndex:-1}]:[{transform:h(-30),zIndex:-1},{transform:h(),zIndex:0}]},percent(t,e,n){return n>0?1-v(e):v(t)},translate(t,e){return e<0?[{transform:h(t*100),zIndex:0},{transform:h(-30*(1-t)),zIndex:-1}]:[{transform:h(-30*t),zIndex:-1},{transform:h(100*(1-t)),zIndex:0}]}}},W={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},j={data:{preload:5},methods:{lazyload(t,e){t===void 0&&(t=this.$el),e===void 0&&(e=this.$el),this.registerObserver(s.observeIntersection(t,(n,i)=>{for(const l of s.toNodes(s.isFunction(e)?e():e))s.$$('[loading="lazy"]',l).slice(0,this.preload-1).forEach(r=>s.removeAttr(r,"loading"));for(const l of n.filter(r=>{let{isIntersecting:a}=r;return a}).map(r=>{let{target:a}=r;return a}))i.unobserve(l)}))}}},B={mixins:[j],connected(){this.lazyload(this.slides,this.getAdjacentSlides)}},_={mixins:[p,E,W,B],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:R},update:{read(){if(!this.list)return!1;let[t,e]=this.ratio.split(":").map(Number);return e=e*this.list.offsetWidth/t||0,this.minHeight&&(e=Math.max(this.minHeight,e)),this.maxHeight&&(e=Math.min(this.maxHeight,e)),{height:e-s.boxModelAdjust(this.list,"height","content-box")}},write(t){let{height:e}=t;e>0&&s.css(this.list,"minHeight",e)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",_),_});
1
+ /*! UIkit 3.15.19-dev.699ab5a7f | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
+ (function(s,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],g):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow=g(s.UIkit.util))})(this,function(s){"use strict";var g={connected(){s.addClass(this.$el,this.$options.id)}},b={slide:{show(e){return[{transform:h(e*-100)},{transform:h()}]},percent(e){return f(e)},translate(e,t){return[{transform:h(t*-100*e)},{transform:h(t*100*(1-e))}]}}};function f(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function h(e=0,t="%"){return e+=e?t:"",`translate3d(${e}, 0, 0)`}function z(e){return`scale3d(${e}, ${e}, 1)`}function A(e,t,n,{animation:r,easing:c}){const{percent:i,translate:o,show:m=s.noop}=r,d=m(n),p=new s.Deferred;return{dir:n,show(a,l=0,u){const x=u?"linear":c;return a-=Math.round(a*s.clamp(l,-1,1)),this.translate(l),v(t,"itemin",{percent:l,duration:a,timing:x,dir:n}),v(e,"itemout",{percent:1-l,duration:a,timing:x,dir:n}),Promise.all([s.Transition.start(t,d[1],a,x),s.Transition.start(e,d[0],a,x)]).then(()=>{this.reset(),p.resolve()},s.noop),p.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const a in d[0])s.css([t,e],a,"")},forward(a,l=this.percent()){return s.Transition.cancel([t,e]),this.show(a,l,!0)},translate(a){this.reset();const l=o(a,n);s.css(t,l[1]),s.css(e,l[0]),v(t,"itemtranslatein",{percent:a,dir:n}),v(e,"itemtranslateout",{percent:1-a,dir:n})},percent(){return i(e||t,t,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function v(e,t,n){s.trigger(e,s.createEvent(t,!1,!1,n))}var N={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},S={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>(!this.draggable||!s.$(":focus",this.$el))&&(!this.pauseOnHover||!s.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const I={passive:!1,capture:!0},y={passive:!0,capture:!0},T="touchstart mousedown",w="touchmove mousemove",$="touchend touchcancel mouseup click input scroll";var D={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const r=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=r===this.pos?this.prevPos:this.pos,this.pos=r,t(n)}}},events:[{name:T,passive:!0,delegate(){return`${this.selList} > *`},handler(e){!this.draggable||!s.isTouch(e)&&C(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:w,el(){return this.list},handler:s.noop,...I}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,w,this.move,I),s.on(document,$,this.end,y),s.css(this.list,"userSelect","none")},move(e){const t=this.pos-this.drag;if(t===0||this.prevPos===this.pos||!this.dragging&&Math.abs(t)<this.threshold)return;s.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=t<0?1:-1;const{slides:n}=this;let{prevIndex:r}=this,c=Math.abs(t),i=this.getIndex(r+this.dir,r),o=this._getDistance(r,i)||n[r].offsetWidth;for(;i!==r&&c>o;)this.drag-=o*this.dir,r=i,c-=o,i=this.getIndex(r+this.dir,r),o=this._getDistance(r,i)||n[r].offsetWidth;this.percent=c/o;const m=n[r],d=n[i],p=this.index!==i,a=r===i;let l;[this.index,this.prevIndex].filter(u=>!s.includes([i,r],u)).forEach(u=>{s.trigger(n[u],"itemhidden",[this]),a&&(l=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||l)&&s.trigger(n[this.index],"itemshown",[this]),p&&(this.prevIndex=r,this.index=i,!a&&s.trigger(m,"beforeitemhide",[this]),s.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),m,!a&&d),p&&(!a&&s.trigger(m,"itemhide",[this]),s.trigger(d,"itemshow",[this]))},end(){if(s.off(document,w,this.move,I),s.off(document,$,this.end,y),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}s.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function C(e){return s.css(e,"userSelect")!=="none"&&s.toNodes(e.childNodes).some(t=>t.nodeType===3&&t.textContent.trim())}var H={data:{selNav:!1},computed:{nav({selNav:e},t){return s.$(e,t)},selNavItem({attrItem:e}){return`[${e}],[data-${e}]`},navItems(e,t){return s.$$(this.selNavItem,t)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&s.html(this.nav,this.slides.map((e,t)=>`<li ${this.attrItem}="${t}"><a href></a></li>`).join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(s.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const t of this.navItems){const n=s.data(t,this.attrItem);s.toggleClass(t,this.clsActive,s.toNumber(n)===e),s.toggleClass(t,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},M={mixins:[S,D,H,N],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:e},t){return P(t.offsetWidth/e)},list({selList:e},t){return s.$(e,t)},maxIndex(){return this.length-1},slides:{get(){return s.children(this.list)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(e,t=!1){if(this.dragging||!this.length)return;const{stack:n}=this,r=t?0:n.length,c=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[t?"unshift":"push"](e),!t&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const i=this.getIndex(this.index),o=s.hasClass(this.slides,this.clsActive)&&this.slides[i],m=this.getIndex(e,this.index),d=this.slides[m];if(o===d){c();return}if(this.dir=O(e,i),this.prevIndex=i,this.index=m,o&&!s.trigger(o,"beforeitemhide",[this])||!s.trigger(d,"beforeitemshow",[this,o])){this.index=this.prevIndex,c();return}const p=this._show(o,d,t).then(()=>(o&&s.trigger(o,"itemhidden",[this]),s.trigger(d,"itemshown",[this]),new Promise(a=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,a()})})));return o&&s.trigger(o,"itemhide",[this]),s.trigger(d,"itemshow",[this]),p},getIndex(e=this.index,t=this.index){return s.clamp(s.getIndex(e,this.slides,t,this.finite),0,this.maxIndex)},getValidIndex(e=this.index,t=this.prevIndex){return this.getIndex(e,t)},_show(e,t,n){if(this._transitioner=this._getTransitioner(e,t,this.dir,{easing:n?t.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!e)return this._translate(1),Promise.resolve();const{length:r}=this.stack;return this._transitioner[r>1?"forward":"show"](r>1?Math.min(this.duration,75+75/(r-1)):this.duration,this.percent)},_getDistance(e,t){return this._getTransitioner(e,e!==t&&t).getDistance()},_translate(e,t=this.prevIndex,n=this.index){const r=this._getTransitioner(t!==n?t:!1,n);return r.translate(e),r},_getTransitioner(e=this.prevIndex,t=this.index,n=this.dir||1,r=this.transitionOptions){return new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),r)}}};function O(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function P(e){return .5*e+300}var E={mixins:[M],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:b,Transitioner:A},computed:{animation({animation:e,Animations:t}){return{...t[e]||t.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:e}){s.addClass(e,this.clsActive)},itemshown({target:e}){s.addClass(e,this.clsActivated)},itemhidden({target:e}){s.removeClass(e,this.clsActive,this.clsActivated)}}},R={...b,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:z(1+.5),zIndex:0},{zIndex:-1}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:z(1+.5*e),zIndex:0},{zIndex:-1}]}},pull:{show(e){return e<0?[{transform:h(30),zIndex:-1},{transform:h(),zIndex:0}]:[{transform:h(-100),zIndex:0},{transform:h(),zIndex:-1}]},percent(e,t,n){return n<0?1-f(t):f(e)},translate(e,t){return t<0?[{transform:h(30*e),zIndex:-1},{transform:h(-100*(1-e)),zIndex:0}]:[{transform:h(-e*100),zIndex:0},{transform:h(30*(1-e)),zIndex:-1}]}},push:{show(e){return e<0?[{transform:h(100),zIndex:0},{transform:h(),zIndex:-1}]:[{transform:h(-30),zIndex:-1},{transform:h(),zIndex:0}]},percent(e,t,n){return n>0?1-f(t):f(e)},translate(e,t){return t<0?[{transform:h(e*100),zIndex:0},{transform:h(-30*(1-e)),zIndex:-1}]:[{transform:h(-30*e),zIndex:-1},{transform:h(100*(1-e)),zIndex:0}]}}},W={update:{write(){if(this.stack.length||this.dragging)return;const e=this.getValidIndex(this.index);!~this.prevIndex||this.index!==e?this.show(e):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},j={data:{preload:5},methods:{lazyload(e=this.$el,t=this.$el){this.registerObserver(s.observeIntersection(e,(n,r)=>{for(const c of s.toNodes(s.isFunction(t)?t():t))s.$$('[loading="lazy"]',c).slice(0,this.preload-1).forEach(i=>s.removeAttr(i,"loading"));for(const c of n.filter(({isIntersecting:i})=>i).map(({target:i})=>i))r.unobserve(c)}))}}},B={mixins:[j],connected(){this.lazyload(this.slides,this.getAdjacentSlides)}},_={mixins:[g,E,W,B],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:R},update:{read(){if(!this.list)return!1;let[e,t]=this.ratio.split(":").map(Number);return t=t*this.list.offsetWidth/e||0,this.minHeight&&(t=Math.max(this.minHeight,t)),this.maxHeight&&(t=Math.min(this.maxHeight,t)),{height:t-s.boxModelAdjust(this.list,"height","content-box")}},write({height:e}){e>0&&s.css(this.list,"minHeight",e)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(e=>this.slides[this.getIndex(this.index+e)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",_),_});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.18-dev.9cbbb510d | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.19-dev.699ab5a7f | 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(require('uikit-util')) :
@@ -56,7 +56,7 @@
56
56
  return sorted;
57
57
  }
58
58
 
59
- function getOffset(element, offset) {if (offset === void 0) {offset = false;}
59
+ function getOffset(element, offset = false) {
60
60
  let { offsetTop, offsetLeft, offsetHeight, offsetWidth } = element;
61
61
 
62
62
  if (offset) {
@@ -74,7 +74,7 @@
74
74
  const clsLeave = 'uk-transition-leave';
75
75
  const clsEnter = 'uk-transition-enter';
76
76
 
77
- function fade(action, target, duration, stagger) {if (stagger === void 0) {stagger = 0;}
77
+ function fade(action, target, duration, stagger = 0) {
78
78
  const index = transitionIndex(target, true);
79
79
  const propsIn = { opacity: 1 };
80
80
  const propsOut = { opacity: 0 };
@@ -86,11 +86,8 @@
86
86
 
87
87
  await Promise.all(
88
88
  getTransitionNodes(target).map(
89
- (child, i) =>
90
- new Promise((resolve) =>
91
- setTimeout(
92
- () =>
93
- uikitUtil.Transition.start(child, propsOut, duration / 2, 'ease').then(
89
+ (child, i) => new Promise((resolve) => setTimeout(
90
+ () => uikitUtil.Transition.start(child, propsOut, duration / 2, 'ease').then(
94
91
  resolve),
95
92
 
96
93
  i * stagger))));
@@ -169,16 +166,14 @@
169
166
  uikitUtil.children(target).
170
167
  filter(uikitUtil.Transition.inProgress).
171
168
  map(
172
- (el) =>
173
- new Promise((resolve) => uikitUtil.once(el, 'transitionend transitioncanceled', resolve))));
169
+ (el) => new Promise((resolve) => uikitUtil.once(el, 'transitionend transitioncanceled', resolve))));
174
170
 
175
171
 
176
172
  }
177
173
 
178
174
  function getTransitionNodes(target) {
179
175
  return getRows(uikitUtil.children(target)).reduce(
180
- (nodes, row) =>
181
- nodes.concat(
176
+ (nodes, row) => nodes.concat(
182
177
  uikitUtil.sortBy(
183
178
  row.filter((el) => uikitUtil.isInView(el)),
184
179
  'offsetLeft')),
@@ -268,8 +263,7 @@
268
263
  }
269
264
 
270
265
  function getTransitionProps(target, nodes, currentProps) {
271
- const propsTo = nodes.map((el, i) =>
272
- uikitUtil.parent(el) && i in currentProps ?
266
+ const propsTo = nodes.map((el, i) => uikitUtil.parent(el) && i in currentProps ?
273
267
  currentProps[i] ?
274
268
  uikitUtil.isVisible(el) ?
275
269
  getPositionWithMargin(el) :
@@ -337,13 +331,13 @@
337
331
  },
338
332
 
339
333
  methods: {
340
- animate(action, target) {if (target === void 0) {target = this.$el;}
334
+ animate(action, target = this.$el) {
341
335
  const name = this.animation;
342
336
  const animationFn =
343
337
  name === 'fade' ?
344
338
  fade :
345
339
  name === 'delayed-fade' ?
346
- function () {for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}return fade(...args, 40);} :
340
+ (...args) => fade(...args, 40) :
347
341
  name ?
348
342
  slide :
349
343
  () => {
@@ -432,7 +426,7 @@
432
426
  },
433
427
 
434
428
  handles: {
435
- get(_ref, el) {let { handle } = _ref;
429
+ get({ handle }, el) {
436
430
  return handle ? uikitUtil.$$(handle, el) : this.items;
437
431
  },
438
432
 
@@ -523,7 +517,7 @@
523
517
  defaultPrevented ||
524
518
  button > 0 ||
525
519
  uikitUtil.isInput(target) ||
526
- uikitUtil.within(target, "." + this.clsNoDrag) ||
520
+ uikitUtil.within(target, `.${this.clsNoDrag}`) ||
527
521
  this.handle && !uikitUtil.within(target, this.handle))
528
522
  {
529
523
  return;
@@ -1 +1,2 @@
1
- /*! UIkit 3.15.18-dev.9cbbb510d | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=g(e.UIkit.util))})(this,function(e){"use strict";function g(n){return F(n,"top","bottom")}function F(n,s,o){const t=[[]];for(const c of n){if(!e.isVisible(c))continue;let a=u(c);for(let r=t.length-1;r>=0;r--){const h=t[r];if(!h[0]){h.push(c);break}let d;if(h[0].offsetParent===c.offsetParent?d=u(h[0]):(a=u(c,!0),d=u(h[0],!0)),a[s]>=d[o]-1&&a[s]!==d[s]){t.push([c]);break}if(a[o]-1>d[s]||a[s]===d[s]){h.push(c);break}if(r===0){t.unshift([c]);break}}}return t}function u(n,s){s===void 0&&(s=!1);let{offsetTop:o,offsetLeft:t,offsetHeight:c,offsetWidth:a}=n;return s&&([o,t]=e.offsetPosition(n)),{top:o,left:t,bottom:o+c,right:t+a}}const w="uk-transition-leave",v="uk-transition-enter";function y(n,s,o,t){t===void 0&&(t=0);const c=b(s,!0),a={opacity:1},r={opacity:0},h=i=>()=>c===b(s)?i():Promise.reject(),d=h(async()=>{e.addClass(s,w),await Promise.all(C(s).map((i,l)=>new Promise(f=>setTimeout(()=>e.Transition.start(i,r,o/2,"ease").then(f),l*t)))),e.removeClass(s,w)}),p=h(async()=>{const i=e.height(s);e.addClass(s,v),n(),e.css(e.children(s),{opacity:0}),await B();const l=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,i);const m=C(s);e.css(l,r);const E=m.map(async(G,J)=>{await N(J*t),await e.Transition.start(G,a,o/2,"ease")});i!==f&&E.push(e.Transition.start(s,{height:f},o/2+m.length*t,"ease")),await Promise.all(E).then(()=>{e.removeClass(s,v),c===b(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,w)?T(s).then(p):e.hasClass(s,v)?T(s).then(d).then(p):d().then(p)}function b(n,s){return s&&(n.dataset.transition=1+b(n)),e.toNumber(n.dataset.transition)||0}function T(n){return Promise.all(e.children(n).filter(e.Transition.inProgress).map(s=>new Promise(o=>e.once(s,"transitionend transitioncanceled",o))))}function C(n){return g(e.children(n)).reduce((s,o)=>s.concat(e.sortBy(o.filter(t=>e.isInView(t)),"offsetLeft")),[])}function B(){return new Promise(n=>requestAnimationFrame(n))}function N(n){return new Promise(s=>setTimeout(s,n))}async function R(n,s,o){await x();let t=e.children(s);const c=t.map(f=>P(f,!0)),a={...e.css(s,["height","padding"]),display:"block"};await Promise.all(t.concat(s).map(e.Transition.cancel)),n(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.fastdom.flush();const r=e.attr(s,"style"),h=e.css(s,["height","padding"]),[d,p]=A(s,t,c),i=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,m)=>p[m]&&e.css(f,p[m])),e.css(s,a),await x();const l=t.map((f,m)=>e.parent(f)===s&&e.Transition.start(f,d[m],o,"ease")).concat(e.Transition.start(s,h,o,"ease"));try{await Promise.all(l),t.forEach((f,m)=>{e.attr(f,i[m]),e.parent(f)===s&&e.css(f,"display",d[m].opacity===0?"none":"")}),e.attr(s,"style",r)}catch{e.attr(t,"style",""),H(s,a)}}function P(n,s){const o=e.css(n,"zIndex");return e.isVisible(n)?{display:"",opacity:s?e.css(n,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?e.index(n):o,...S(n)}:!1}function A(n,s,o){const t=s.map((a,r)=>e.parent(a)&&r in o?o[r]?e.isVisible(a)?S(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===n&&(o[r]||P(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function H(n,s){for(const o in s)e.css(n,o,"")}function S(n){const{height:s,width:o}=e.offset(n);return{height:s,width:o,transform:"",...e.position(n),...e.css(n,["marginTop","marginLeft"])}}function x(){return new Promise(n=>requestAnimationFrame(n))}var z={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(n,s){s===void 0&&(s=this.$el);const o=this.animation;return(o==="fade"?y:o==="delayed-fade"?function(){for(var c=arguments.length,a=new Array(c),r=0;r<c;r++)a[r]=arguments[r];return y(...a,40)}:o?R:()=>(n(),Promise.resolve()))(n,s,this.duration).catch(e.noop)}}},L={connected(){e.addClass(this.$el,this.$options.id)}},I={mixins:[L,z],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const n of["init","start","move","end"]){const s=this[n];this[n]=o=>{e.assign(this.pos,e.getEventPos(o)),s(o)}}},events:{name:e.pointerDown,passive:!1,handler:"init"},computed:{target(){return(this.$el.tBodies||[this.$el])[0]},items(){return e.children(this.target)},isEmpty:{get(){return e.isEmpty(this.items)},watch(n){e.toggleClass(this.target,this.clsEmpty,n)},immediate:!0},handles:{get(n,s){let{handle:o}=n;return o?e.$$(o,s):this.items},watch(n,s){e.css(s,{touchAction:"",userSelect:""}),e.css(n,{touchAction:e.hasTouch?"none":"",userSelect:"none"})},immediate:!0}},update:{write(n){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:o},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:o-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,o));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=W(h,{x:s,y:o});if(h.length&&(!d||d===a))return;const p=this.getSortable(a),i=j(r.target,d,a,s,o,r===p&&n.moved!==d);i!==!1&&(i&&a===i||(r!==p?(p.remove(a),n.moved=d):delete n.moved,r.insert(a,i),this.touched.add(r)))},events:["move"]},methods:{init(n){const{target:s,button:o,defaultPrevented:t}=n,[c]=this.items.filter(a=>e.within(s,a));!c||t||o>0||e.isInput(s)||e.within(s,"."+this.clsNoDrag)||this.handle&&!e.within(s,this.handle)||(n.preventDefault(),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(n))},start(n){this.drag=q(this.$container,this.placeholder);const{left:s,top:o}=this.placeholder.getBoundingClientRect();e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-o}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),V(this.pos),this.move(n)},move(n){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(n)},end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;M();const n=this.getSortable(this.placeholder);this===n?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(n.$el,"added",[n,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:o}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,o);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(n,s){e.addClass(this.items,this.clsItem);const o=()=>s?e.before(s,n):e.append(this.target,n);this.animate(o)},remove(n){!e.within(n,this.target)||this.animate(()=>e.remove(n))},getSortable(n){do{const s=this.$getComponent(n,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(n=e.parent(n))}}};let D;function V(n){let s=Date.now();D=setInterval(()=>{let{x:o,y:t}=n;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(o,n.y),/auto|scroll/).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:p,height:i}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(p>t&&p-35<t)r+=c;else return;if(r>0&&r<h-i)return a.scrollTop=r,!0})},15)}function M(){clearInterval(D)}function q(n,s){let o;if(["li","tr"].some(t=>e.isTag(s,t))){o=e.$("<div>"),e.append(o,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(o,t,s.getAttribute(t))}else o=s.cloneNode(!0);return e.append(n,o),e.css(o,"margin","0","important"),e.css(o,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(o.firstElementChild,e.height(s.firstElementChild)),o}function W(n,s){return n[e.findIndex(n,o=>e.pointInRect(s,o.getBoundingClientRect()))]}function j(n,s,o,t,c,a){if(!e.children(n).length)return;const r=s.getBoundingClientRect();if(!a)return O(n,o)||c<r.top+r.height/2?s:s.nextElementSibling;const h=o.getBoundingClientRect(),d=$([r.top,r.bottom],[h.top,h.bottom]),p=d?t:c,i=d?"width":"height",l=d?"left":"top",f=d?"right":"bottom",m=h[i]<r[i]?r[i]-h[i]:0;return h[l]<r[l]?m&&p<r[l]+m?!1:s.nextElementSibling:m&&p>r[f]-m?!1:s}function O(n,s){const o=e.children(n).length===1;o&&e.append(n,s);const t=e.children(n),c=t.some((a,r)=>{const h=a.getBoundingClientRect();return t.slice(r+1).some(d=>{const p=d.getBoundingClientRect();return!$([h.left,h.right],[p.left,p.right])})});return o&&e.remove(s),c}function $(n,s){return n[1]>s[0]&&s[1]>n[0]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",I),I});
1
+ /*! UIkit 3.15.19-dev.699ab5a7f | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
+ (function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=g(e.UIkit.util))})(this,function(e){"use strict";function g(n){return F(n,"top","bottom")}function F(n,s,o){const t=[[]];for(const c of n){if(!e.isVisible(c))continue;let a=b(c);for(let r=t.length-1;r>=0;r--){const h=t[r];if(!h[0]){h.push(c);break}let d;if(h[0].offsetParent===c.offsetParent?d=b(h[0]):(a=b(c,!0),d=b(h[0],!0)),a[s]>=d[o]-1&&a[s]!==d[s]){t.push([c]);break}if(a[o]-1>d[s]||a[s]===d[s]){h.push(c);break}if(r===0){t.unshift([c]);break}}}return t}function b(n,s=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:c,offsetWidth:a}=n;return s&&([o,t]=e.offsetPosition(n)),{top:o,left:t,bottom:o+c,right:t+a}}const w="uk-transition-leave",y="uk-transition-enter";function v(n,s,o,t=0){const c=u(s,!0),a={opacity:1},r={opacity:0},h=p=>()=>c===u(s)?p():Promise.reject(),d=h(async()=>{e.addClass(s,w),await Promise.all(C(s).map((p,l)=>new Promise(f=>setTimeout(()=>e.Transition.start(p,r,o/2,"ease").then(f),l*t)))),e.removeClass(s,w)}),i=h(async()=>{const p=e.height(s);e.addClass(s,y),n(),e.css(e.children(s),{opacity:0}),await B();const l=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,p);const m=C(s);e.css(l,r);const E=m.map(async(G,J)=>{await N(J*t),await e.Transition.start(G,a,o/2,"ease")});p!==f&&E.push(e.Transition.start(s,{height:f},o/2+m.length*t,"ease")),await Promise.all(E).then(()=>{e.removeClass(s,y),c===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,w)?T(s).then(i):e.hasClass(s,y)?T(s).then(d).then(i):d().then(i)}function u(n,s){return s&&(n.dataset.transition=1+u(n)),e.toNumber(n.dataset.transition)||0}function T(n){return Promise.all(e.children(n).filter(e.Transition.inProgress).map(s=>new Promise(o=>e.once(s,"transitionend transitioncanceled",o))))}function C(n){return g(e.children(n)).reduce((s,o)=>s.concat(e.sortBy(o.filter(t=>e.isInView(t)),"offsetLeft")),[])}function B(){return new Promise(n=>requestAnimationFrame(n))}function N(n){return new Promise(s=>setTimeout(s,n))}async function R(n,s,o){await x();let t=e.children(s);const c=t.map(f=>P(f,!0)),a={...e.css(s,["height","padding"]),display:"block"};await Promise.all(t.concat(s).map(e.Transition.cancel)),n(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.fastdom.flush();const r=e.attr(s,"style"),h=e.css(s,["height","padding"]),[d,i]=A(s,t,c),p=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,m)=>i[m]&&e.css(f,i[m])),e.css(s,a),await x();const l=t.map((f,m)=>e.parent(f)===s&&e.Transition.start(f,d[m],o,"ease")).concat(e.Transition.start(s,h,o,"ease"));try{await Promise.all(l),t.forEach((f,m)=>{e.attr(f,p[m]),e.parent(f)===s&&e.css(f,"display",d[m].opacity===0?"none":"")}),e.attr(s,"style",r)}catch{e.attr(t,"style",""),H(s,a)}}function P(n,s){const o=e.css(n,"zIndex");return e.isVisible(n)?{display:"",opacity:s?e.css(n,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?e.index(n):o,...S(n)}:!1}function A(n,s,o){const t=s.map((a,r)=>e.parent(a)&&r in o?o[r]?e.isVisible(a)?S(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===n&&(o[r]||P(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function H(n,s){for(const o in s)e.css(n,o,"")}function S(n){const{height:s,width:o}=e.offset(n);return{height:s,width:o,transform:"",...e.position(n),...e.css(n,["marginTop","marginLeft"])}}function x(){return new Promise(n=>requestAnimationFrame(n))}var z={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(n,s=this.$el){const o=this.animation;return(o==="fade"?v:o==="delayed-fade"?(...c)=>v(...c,40):o?R:()=>(n(),Promise.resolve()))(n,s,this.duration).catch(e.noop)}}},L={connected(){e.addClass(this.$el,this.$options.id)}},I={mixins:[L,z],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const n of["init","start","move","end"]){const s=this[n];this[n]=o=>{e.assign(this.pos,e.getEventPos(o)),s(o)}}},events:{name:e.pointerDown,passive:!1,handler:"init"},computed:{target(){return(this.$el.tBodies||[this.$el])[0]},items(){return e.children(this.target)},isEmpty:{get(){return e.isEmpty(this.items)},watch(n){e.toggleClass(this.target,this.clsEmpty,n)},immediate:!0},handles:{get({handle:n},s){return n?e.$$(n,s):this.items},watch(n,s){e.css(s,{touchAction:"",userSelect:""}),e.css(n,{touchAction:e.hasTouch?"none":"",userSelect:"none"})},immediate:!0}},update:{write(n){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:o},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:o-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,o));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=W(h,{x:s,y:o});if(h.length&&(!d||d===a))return;const i=this.getSortable(a),p=j(r.target,d,a,s,o,r===i&&n.moved!==d);p!==!1&&(p&&a===p||(r!==i?(i.remove(a),n.moved=d):delete n.moved,r.insert(a,p),this.touched.add(r)))},events:["move"]},methods:{init(n){const{target:s,button:o,defaultPrevented:t}=n,[c]=this.items.filter(a=>e.within(s,a));!c||t||o>0||e.isInput(s)||e.within(s,`.${this.clsNoDrag}`)||this.handle&&!e.within(s,this.handle)||(n.preventDefault(),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(n))},start(n){this.drag=q(this.$container,this.placeholder);const{left:s,top:o}=this.placeholder.getBoundingClientRect();e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-o}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),V(this.pos),this.move(n)},move(n){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(n)},end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;M();const n=this.getSortable(this.placeholder);this===n?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(n.$el,"added",[n,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:o}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,o);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(n,s){e.addClass(this.items,this.clsItem);const o=()=>s?e.before(s,n):e.append(this.target,n);this.animate(o)},remove(n){!e.within(n,this.target)||this.animate(()=>e.remove(n))},getSortable(n){do{const s=this.$getComponent(n,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(n=e.parent(n))}}};let $;function V(n){let s=Date.now();$=setInterval(()=>{let{x:o,y:t}=n;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(o,n.y),/auto|scroll/).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:i,height:p}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(i>t&&i-35<t)r+=c;else return;if(r>0&&r<h-p)return a.scrollTop=r,!0})},15)}function M(){clearInterval($)}function q(n,s){let o;if(["li","tr"].some(t=>e.isTag(s,t))){o=e.$("<div>"),e.append(o,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(o,t,s.getAttribute(t))}else o=s.cloneNode(!0);return e.append(n,o),e.css(o,"margin","0","important"),e.css(o,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(o.firstElementChild,e.height(s.firstElementChild)),o}function W(n,s){return n[e.findIndex(n,o=>e.pointInRect(s,o.getBoundingClientRect()))]}function j(n,s,o,t,c,a){if(!e.children(n).length)return;const r=s.getBoundingClientRect();if(!a)return O(n,o)||c<r.top+r.height/2?s:s.nextElementSibling;const h=o.getBoundingClientRect(),d=D([r.top,r.bottom],[h.top,h.bottom]),i=d?t:c,p=d?"width":"height",l=d?"left":"top",f=d?"right":"bottom",m=h[p]<r[p]?r[p]-h[p]:0;return h[l]<r[l]?m&&i<r[l]+m?!1:s.nextElementSibling:m&&i>r[f]-m?!1:s}function O(n,s){const o=e.children(n).length===1;o&&e.append(n,s);const t=e.children(n),c=t.some((a,r)=>{const h=a.getBoundingClientRect();return t.slice(r+1).some(d=>{const i=d.getBoundingClientRect();return!D([h.left,h.right],[i.left,i.right])})});return o&&e.remove(s),c}function D(n,s){return n[1]>s[0]&&s[1]>n[0]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",I),I});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.18-dev.9cbbb510d | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.19-dev.699ab5a7f | 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(require('uikit-util')) :
@@ -16,7 +16,7 @@
16
16
  },
17
17
 
18
18
  computed: {
19
- container(_ref) {let { container } = _ref;
19
+ container({ container }) {
20
20
  return container === true && this.$container || container && uikitUtil.$(container);
21
21
  }
22
22
  }
@@ -44,23 +44,22 @@
44
44
  },
45
45
 
46
46
  computed: {
47
- hasAnimation(_ref) {let { animation } = _ref;
47
+ hasAnimation({ animation }) {
48
48
  return !!animation[0];
49
49
  },
50
50
 
51
- hasTransition(_ref2) {let { animation } = _ref2;
51
+ hasTransition({ animation }) {
52
52
  return ['slide', 'reveal'].some((transition) => uikitUtil.startsWith(animation[0], transition));
53
53
  }
54
54
  },
55
55
 
56
56
  methods: {
57
57
  toggleElement(targets, toggle, animate) {
58
- return new Promise((resolve) =>
59
- Promise.all(
58
+ return new Promise((resolve) => Promise.all(
60
59
  uikitUtil.toNodes(targets).map((el) => {
61
60
  const show = uikitUtil.isBoolean(toggle) ? toggle : !this.isToggled(el);
62
61
 
63
- if (!uikitUtil.trigger(el, "before" + (show ? 'show' : 'hide'), [this])) {
62
+ if (!uikitUtil.trigger(el, `before${show ? 'show' : 'hide'}`, [this])) {
64
63
  return Promise.reject();
65
64
  }
66
65
 
@@ -96,7 +95,7 @@
96
95
 
97
96
  },
98
97
 
99
- isToggled(el) {if (el === void 0) {el = this.$el;}
98
+ isToggled(el = this.$el) {
100
99
  [el] = uikitUtil.toNodes(el);
101
100
  return uikitUtil.hasClass(el, this.clsEnter) ?
102
101
  true :
@@ -132,7 +131,7 @@
132
131
  }
133
132
  };
134
133
 
135
- function toggleInstant(el, show, _ref3) {let { _toggle } = _ref3;
134
+ function toggleInstant(el, show, { _toggle }) {
136
135
  uikitUtil.Animation.cancel(el);
137
136
  uikitUtil.Transition.cancel(el);
138
137
  return _toggle(el, show);
@@ -140,9 +139,9 @@
140
139
 
141
140
  async function toggleTransition(
142
141
  el,
143
- show, _ref4)
144
-
145
- {var _animation$;let { animation, duration, velocity, transition, _toggle } = _ref4;
142
+ show,
143
+ { animation, duration, velocity, transition, _toggle })
144
+ {var _animation$;
146
145
  const [mode = 'reveal', startProp = 'top'] = ((_animation$ = animation[0]) == null ? void 0 : _animation$.split('-')) || [];
147
146
 
148
147
  const dirs = [
@@ -153,8 +152,8 @@
153
152
  const end = dir[1] === startProp;
154
153
  const props = ['width', 'height'];
155
154
  const dimProp = props[dirs.indexOf(dir)];
156
- const marginProp = "margin-" + dir[0];
157
- const marginStartProp = "margin-" + startProp;
155
+ const marginProp = `margin-${dir[0]}`;
156
+ const marginStartProp = `margin-${startProp}`;
158
157
 
159
158
  let currentDim = uikitUtil.dimensions(el)[dimProp];
160
159
 
@@ -254,8 +253,7 @@
254
253
  return uikitUtil.Animation.in(el, animation[0], duration, cmp.origin);
255
254
  }
256
255
 
257
- return uikitUtil.Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() =>
258
- _toggle(el, false));
256
+ return uikitUtil.Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() => _toggle(el, false));
259
257
 
260
258
  }
261
259
 
@@ -269,7 +267,7 @@
269
267
  },
270
268
 
271
269
  data: {
272
- pos: "bottom-" + (uikitUtil.isRtl ? 'right' : 'left'),
270
+ pos: `bottom-${uikitUtil.isRtl ? 'right' : 'left'}`,
273
271
  offset: false,
274
272
  flip: true,
275
273
  shift: true,
@@ -368,7 +366,7 @@
368
366
  },
369
367
 
370
368
  beforeConnect() {
371
- this.id = "uk-tooltip-" + this._uid;
369
+ this.id = `uk-tooltip-${this._uid}`;
372
370
  this._hasTitle = uikitUtil.hasAttr(this.$el, 'title');
373
371
  uikitUtil.attr(this.$el, {
374
372
  title: '',
@@ -392,12 +390,11 @@
392
390
  }
393
391
 
394
392
  this._unbind = uikitUtil.once(
395
- document, "keydown " +
396
- uikitUtil.pointerDown,
393
+ document,
394
+ `keydown ${uikitUtil.pointerDown}`,
397
395
  this.hide,
398
396
  false,
399
- (e) =>
400
- e.type === uikitUtil.pointerDown && !uikitUtil.within(e.target, this.$el) ||
397
+ (e) => e.type === uikitUtil.pointerDown && !uikitUtil.within(e.target, this.$el) ||
401
398
  e.type === 'keydown' && e.keyCode === 27);
402
399
 
403
400
 
@@ -424,10 +421,8 @@
424
421
 
425
422
  _show() {
426
423
  this.tooltip = uikitUtil.append(
427
- this.container, "<div id=\"" +
428
- this.id + "\" class=\"uk-" + this.$options.name + "\" role=\"tooltip\"> <div class=\"uk-" +
429
- this.$options.name + "-inner\">" + this.title + "</div> </div>");
430
-
424
+ this.container,
425
+ `<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${this.title}</div> </div>`);
431
426
 
432
427
 
433
428
  uikitUtil.on(this.tooltip, 'toggled', (e, toggled) => {
@@ -441,8 +436,8 @@
441
436
 
442
437
  this.origin =
443
438
  this.axis === 'y' ?
444
- uikitUtil.flipPosition(dir) + "-" + align :
445
- align + "-" + uikitUtil.flipPosition(dir);
439
+ `${uikitUtil.flipPosition(dir)}-${align}` :
440
+ `${align}-${uikitUtil.flipPosition(dir)}`;
446
441
  });
447
442
 
448
443
  this.toggleElement(this.tooltip, true);
@@ -453,7 +448,7 @@
453
448
  focus: 'show',
454
449
  blur: 'hide',
455
450
 
456
- [uikitUtil.pointerEnter + " " + uikitUtil.pointerLeave](e) {
451
+ [`${uikitUtil.pointerEnter} ${uikitUtil.pointerLeave}`](e) {
457
452
  if (!uikitUtil.isTouch(e)) {
458
453
  this[e.type === uikitUtil.pointerEnter ? 'show' : 'hide']();
459
454
  }
@@ -475,7 +470,7 @@
475
470
  }
476
471
  }
477
472
 
478
- function getAlignment(el, target, _ref) {let [dir, align] = _ref;
473
+ function getAlignment(el, target, [dir, align]) {
479
474
  const elOffset = uikitUtil.offset(el);
480
475
  const targetOffset = uikitUtil.offset(target);
481
476
  const properties = [