uikit 3.16.16-dev.eede5abfb → 3.16.17-dev.8404b30b4

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 (62) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/build/release.js +1 -1
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +1 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +3 -3
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +34 -30
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +34 -30
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +2 -2
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +2 -2
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +26 -25
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +2 -2
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +26 -25
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +16 -12
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +44 -50
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +93 -95
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +9 -9
  44. package/src/js/api/global.js +1 -1
  45. package/src/js/components/filter.js +2 -2
  46. package/src/js/components/internal/slider-transitioner.js +15 -15
  47. package/src/js/components/slider.js +2 -1
  48. package/src/js/components/tooltip.js +7 -6
  49. package/src/js/core/accordion.js +2 -2
  50. package/src/js/core/drop.js +2 -2
  51. package/src/js/core/modal.js +19 -21
  52. package/src/js/core/switcher.js +5 -5
  53. package/src/js/core/toggle.js +8 -7
  54. package/src/js/core/video.js +1 -1
  55. package/src/js/mixin/internal/slideshow-transitioner.js +16 -14
  56. package/src/js/mixin/parallax.js +2 -1
  57. package/src/js/mixin/slider-drag.js +12 -6
  58. package/src/js/mixin/slider-nav.js +1 -1
  59. package/src/js/mixin/slider.js +3 -17
  60. package/src/js/mixin/togglable.js +8 -6
  61. package/src/js/util/lang.js +0 -9
  62. package/tests/modal.html +16 -15
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -42,7 +42,7 @@
42
42
  function Transitioner(prev, next, dir, { animation, easing }) {
43
43
  const { percent, translate, show = util.noop } = animation;
44
44
  const props = show(dir);
45
- const deferred = new util.Deferred();
45
+ let resolve;
46
46
  return {
47
47
  dir,
48
48
  show(duration, percent2 = 0, linear) {
@@ -51,25 +51,27 @@
51
51
  this.translate(percent2);
52
52
  triggerUpdate(next, "itemin", { percent: percent2, duration, timing, dir });
53
53
  triggerUpdate(prev, "itemout", { percent: 1 - percent2, duration, timing, dir });
54
- Promise.all([
55
- util.Transition.start(next, props[1], duration, timing),
56
- util.Transition.start(prev, props[0], duration, timing)
57
- ]).then(() => {
58
- this.reset();
59
- deferred.resolve();
60
- }, util.noop);
61
- return deferred.promise;
54
+ return new Promise((res) => {
55
+ resolve || (resolve = res);
56
+ Promise.all([
57
+ util.Transition.start(next, props[1], duration, timing),
58
+ util.Transition.start(prev, props[0], duration, timing)
59
+ ]).then(() => {
60
+ this.reset();
61
+ resolve();
62
+ }, util.noop);
63
+ });
62
64
  },
63
65
  cancel() {
64
- util.Transition.cancel([next, prev]);
66
+ return util.Transition.cancel([next, prev]);
65
67
  },
66
68
  reset() {
67
69
  for (const prop in props[0]) {
68
70
  util.css([next, prev], prop, "");
69
71
  }
70
72
  },
71
- forward(duration, percent2 = this.percent()) {
72
- util.Transition.cancel([next, prev]);
73
+ async forward(duration, percent2 = this.percent()) {
74
+ await this.cancel();
73
75
  return this.show(duration, percent2, true);
74
76
  },
75
77
  translate(percent2) {
@@ -294,7 +296,7 @@
294
296
  if (active) {
295
297
  focusEl = button;
296
298
  }
297
- focus = focus || util.matches(button, ":focus");
299
+ focus || (focus = util.matches(button, ":focus"));
298
300
  } else {
299
301
  util.toggleClass(
300
302
  el,
@@ -390,17 +392,16 @@
390
392
  e.cancelable && e.preventDefault();
391
393
  this.dragging = true;
392
394
  this.dir = distance < 0 ? 1 : -1;
393
- const { slides } = this;
394
- let { prevIndex } = this;
395
+ let { slides, prevIndex } = this;
395
396
  let dis = Math.abs(distance);
396
- let nextIndex = this.getIndex(prevIndex + this.dir, prevIndex);
397
- let width = this._getDistance(prevIndex, nextIndex) || slides[prevIndex].offsetWidth;
397
+ let nextIndex = this.getIndex(prevIndex + this.dir);
398
+ let width = this._getDistance(prevIndex, nextIndex);
398
399
  while (nextIndex !== prevIndex && dis > width) {
399
400
  this.drag -= width * this.dir;
400
401
  prevIndex = nextIndex;
401
402
  dis -= width;
402
- nextIndex = this.getIndex(prevIndex + this.dir, prevIndex);
403
- width = this._getDistance(prevIndex, nextIndex) || slides[prevIndex].offsetWidth;
403
+ nextIndex = this.getIndex(prevIndex + this.dir);
404
+ width = this._getDistance(prevIndex, nextIndex);
404
405
  }
405
406
  this.percent = dis / width;
406
407
  const prev = slides[prevIndex];
@@ -456,6 +457,9 @@
456
457
  }
457
458
  util.css(this.list, { userSelect: "", pointerEvents: "" });
458
459
  this.drag = this.percent = null;
460
+ },
461
+ _getDistance(prev, next) {
462
+ return this._getTransitioner(prev, prev !== next && next).getDistance() || this.slides[prev].offsetWidth;
459
463
  }
460
464
  }
461
465
  };
@@ -675,9 +679,6 @@
675
679
  this.percent
676
680
  );
677
681
  },
678
- _getDistance(prev, next) {
679
- return this._getTransitioner(prev, prev !== next && next).getDistance();
680
- },
681
682
  _translate(percent, prev = this.prevIndex, next = this.index) {
682
683
  const transitioner = this._getTransitioner(prev === next ? false : prev, next);
683
684
  transitioner.translate(percent);
@@ -685,8 +686,8 @@
685
686
  },
686
687
  _getTransitioner(prev = this.prevIndex, next = this.index, dir = this.dir || 1, options = this.transitionOptions) {
687
688
  return new this.Transitioner(
688
- util.isNumber(prev) ? this.slides[prev] : prev,
689
- util.isNumber(next) ? this.slides[next] : next,
689
+ this.slides[prev] || prev,
690
+ this.slides[next] || next,
690
691
  dir * (util.isRtl ? -1 : 1),
691
692
  options
692
693
  );
@@ -1 +1 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(e,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],p):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSlideshow=p(e.UIkit.util))})(this,function(e){"use strict";var p={connected(){e.addClass(this.$el,this.$options.id)}},$={slide:{show(t){return[{transform:d(t*-100)},{transform:d()}]},percent(t){return g(t)},translate(t,s){return[{transform:d(s*-100*t)},{transform:d(s*100*(1-t))}]}}};function g(t){return Math.abs(e.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function d(t=0,s="%"){return t+=t?s:"",`translate3d(${t}, 0, 0)`}function z(t){return`scale3d(${t}, ${t}, 1)`}function S(t,s,i,{animation:n,easing:o}){const{percent:r,translate:c,show:a=e.noop}=n,m=a(i),f=new e.Deferred;return{dir:i,show(h,l=0,x){const I=x?"linear":o;return h-=Math.round(h*e.clamp(l,-1,1)),this.translate(l),v(s,"itemin",{percent:l,duration:h,timing:I,dir:i}),v(t,"itemout",{percent:1-l,duration:h,timing:I,dir:i}),Promise.all([e.Transition.start(s,m[1],h,I),e.Transition.start(t,m[0],h,I)]).then(()=>{this.reset(),f.resolve()},e.noop),f.promise},cancel(){e.Transition.cancel([s,t])},reset(){for(const h in m[0])e.css([s,t],h,"")},forward(h,l=this.percent()){return e.Transition.cancel([s,t]),this.show(h,l,!0)},translate(h){this.reset();const l=c(h,i);e.css(s,l[1]),e.css(t,l[0]),v(s,"itemtranslatein",{percent:h,dir:i}),v(t,"itemtranslateout",{percent:1-h,dir:i})},percent(){return r(t||s,s,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function v(t,s,i){e.trigger(t,e.createEvent(s,!1,!1,i))}var C={props:{i18n:Object},data:{i18n:null},methods:{t(t,...s){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>s[r++]||""))||""}}};const u={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function w(t,s=t.$el,i=""){if(s.id)return s.id;let n=`${t.$options.id}-${t._uid}${i}`;return e.$(`#${n}`)&&(n=w(t,s,`${i}-2`)),n}var T={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav({selNav:t},s){return e.$(t,s)},navChildren(){return e.children(this.nav)},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems(t,s){return e.$$(this.selNavItem,s)}},watch:{nav(t,s){e.attr(t,"role","tablist"),s&&this.$emit()},list(t){e.attr(t,"role","presentation")},navChildren(t){e.attr(t,"role","presentation")},navItems(t){for(const s of t){const i=e.data(s,this.attrItem),n=e.$("a,button",s)||s;let o,r=null;if(e.isNumeric(i)){const c=e.toNumber(i),a=this.slides[c];a&&(a.id||(a.id=w(this,a,`-item-${i}`)),r=a.id),o=this.t("slideX",e.toFloat(i)+1),e.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=w(this,this.list,"-items")),r=this.list.id),o=this.t(i);e.attr(n,{"aria-controls":r,"aria-label":e.attr(n,"aria-label")||o})}},slides(t){t.forEach((s,i)=>e.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const s=this.navChildren.length;if(this.nav&&t!==s){e.empty(this.nav);for(let i=0;i<t;i++)e.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){e.attr(this.$el,{role:this.role,ariaRoleDescription:"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){e.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===u.SPACE)&&(t.preventDefault(),this.show(e.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:s,keyCode:i}=t,n=e.data(s,this.attrItem);if(!e.isNumeric(n))return;let o=i===u.HOME?0:i===u.END?"last":i===u.LEFT?"previous":i===u.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();let s,i;for(const n of this.navItems){const o=e.data(n,this.attrItem),r=e.$("a,button",n)||n;if(e.isNumeric(o)){const a=e.toNumber(o)===t;e.toggleClass(n,this.clsActive,a),e.attr(r,{"aria-selected":a,tabindex:a?null:-1}),a&&(i=r),s=s||e.matches(r,":focus")}else e.toggleClass(n,"uk-invisible",this.finite&&(o==="previous"&&t===0||o==="next"&&t>=this.maxIndex));s&&i&&i.focus()}}}};const b={passive:!1,capture:!0},A={passive:!0,capture:!0},D="touchstart mousedown",y="touchmove mousemove",_="touchend touchcancel mouseup click input scroll";var E={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const s=this[t];this[t]=i=>{const n=e.getEventPos(i).x*(e.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:D,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&H(t.target)||e.closest(t.target,e.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:y,el(){return this.list},handler:e.noop,...b}],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,e.on(document,y,this.move,b),e.on(document,_,this.end,A),e.css(this.list,"userSelect","none")},move(t){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;e.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;const{slides:i}=this;let{prevIndex:n}=this,o=Math.abs(s),r=this.getIndex(n+this.dir,n),c=this._getDistance(n,r)||i[n].offsetWidth;for(;r!==n&&o>c;)this.drag-=c*this.dir,n=r,o-=c,r=this.getIndex(n+this.dir,n),c=this._getDistance(n,r)||i[n].offsetWidth;this.percent=o/c;const a=i[n],m=i[r],f=this.index!==r,h=n===r;let l;for(const x of[this.index,this.prevIndex])e.includes([r,n],x)||(e.trigger(i[x],"itemhidden",[this]),h&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&e.trigger(i[this.index],"itemshown",[this]),f&&(this.prevIndex=n,this.index=r,!h&&e.trigger(a,"beforeitemhide",[this]),e.trigger(m,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!h&&m),f&&(!h&&e.trigger(a,"itemhide",[this]),e.trigger(m,"itemshow",[this]))},end(){if(e.off(document,y,this.move,b),e.off(document,_,this.end,A),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=(e.isRtl?this.dir*(e.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)}e.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function H(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var M={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){e.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){e.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.stack.length||this.draggable&&e.matches(this.$el,":focus-within")||this.pauseOnHover&&e.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};function O(t){return N(e.observeResize,t,"resize")}function P(t){return N(e.observeIntersection,t)}function R(t={}){return P({handler:function(s,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of e.toNodes(e.isFunction(n)?n(this):n))e.$$('[loading="lazy"]',r).slice(0,o-1).forEach(c=>e.removeAttr(c,"loading"));for(const r of s.filter(({isIntersecting:c})=>c).map(({target:c})=>c))i.unobserve(r)},...t})}function N(t,s,i){return{observe:t,handler(){this.$emit(i)},...s}}var U={mixins:[M,E,T,C],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(){e.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:t},s){return W(s.offsetWidth/t)},list({selList:t},s){return e.$(t,s)},maxIndex(){return this.length-1},slides(){return e.children(this.list)},length(){return this.slides.length}},watch:{slides(t,s){s&&this.$emit()}},observe:O(),methods:{show(t,s=!1){var i;if(this.dragging||!this.length)return;const{stack:n}=this,o=s?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](t),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const c=this.getIndex(this.index),a=e.hasClass(this.slides,this.clsActive)&&this.slides[c],m=this.getIndex(t,this.index),f=this.slides[m];if(a===f){r();return}if(this.dir=L(t,c),this.prevIndex=c,this.index=m,a&&!e.trigger(a,"beforeitemhide",[this])||!e.trigger(f,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const h=this._show(a,f,s).then(()=>{a&&e.trigger(a,"itemhidden",[this]),e.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&e.trigger(a,"itemhide",[this]),e.trigger(f,"itemshow",[this]),h},getIndex(t=this.index,s=this.index){return e.clamp(e.getIndex(t,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,s=this.prevIndex){return this.getIndex(t,s)},_show(t,s,i){if(this._transitioner=this._getTransitioner(t,s,this.dir,{easing:i?s.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}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_getDistance(t,s){return this._getTransitioner(t,t!==s&&s).getDistance()},_translate(t,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(e.isNumber(t)?this.slides[t]:t,e.isNumber(s)?this.slides[s]:s,i*(e.isRtl?-1:1),n)}}};function L(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function W(t){return .5*t+300}var B={mixins:[U],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:$,Transitioner:S},computed:{animation({animation:t,Animations:s}){return{...s[t]||s.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){e.addClass(t,this.clsActive)},itemshown({target:t}){e.addClass(t,this.clsActivated)},itemhidden({target:t}){e.removeClass(t,this.clsActive,this.clsActivated)}}},j={...$,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-e.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:z(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-e.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:z(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:d(30),zIndex:-1},{transform:d(),zIndex:0}]:[{transform:d(-100),zIndex:0},{transform:d(),zIndex:-1}]},percent(t,s,i){return i<0?1-g(s):g(t)},translate(t,s){return s<0?[{transform:d(30*t),zIndex:-1},{transform:d(-100*(1-t)),zIndex:0}]:[{transform:d(-t*100),zIndex:0},{transform:d(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:d(100),zIndex:0},{transform:d(),zIndex:-1}]:[{transform:d(-30),zIndex:-1},{transform:d(),zIndex:0}]},percent(t,s,i){return i>0?1-g(s):g(t)},translate(t,s){return s<0?[{transform:d(t*100),zIndex:0},{transform:d(-30*(1-t)),zIndex:-1}]:[{transform:d(-30*t),zIndex:-1},{transform:d(100*(1-t)),zIndex:0}]}}},F={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"]}},V={observe:R({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})},k={mixins:[p,B,F,V],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:j},update:{read(){if(!this.list)return!1;let[t,s]=this.ratio.split(":").map(Number);return s=s*this.list.offsetWidth/t||0,this.minHeight&&(s=Math.max(this.minHeight,s)),this.maxHeight&&(s=Math.min(this.maxHeight,s)),{height:s-e.boxModelAdjust(this.list,"height","content-box")}},write({height:t}){t>0&&e.css(this.list,"minHeight",t)},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",k),k});
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(e,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],p):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSlideshow=p(e.UIkit.util))})(this,function(e){"use strict";var p={connected(){e.addClass(this.$el,this.$options.id)}},$={slide:{show(t){return[{transform:d(t*-100)},{transform:d()}]},percent(t){return g(t)},translate(t,s){return[{transform:d(s*-100*t)},{transform:d(s*100*(1-t))}]}}};function g(t){return Math.abs(e.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function d(t=0,s="%"){return t+=t?s:"",`translate3d(${t}, 0, 0)`}function z(t){return`scale3d(${t}, ${t}, 1)`}function S(t,s,i,{animation:n,easing:o}){const{percent:r,translate:l,show:a=e.noop}=n,m=a(i);let c;return{dir:i,show(h,f=0,x){const I=x?"linear":o;return h-=Math.round(h*e.clamp(f,-1,1)),this.translate(f),v(s,"itemin",{percent:f,duration:h,timing:I,dir:i}),v(t,"itemout",{percent:1-f,duration:h,timing:I,dir:i}),new Promise(q=>{c||(c=q),Promise.all([e.Transition.start(s,m[1],h,I),e.Transition.start(t,m[0],h,I)]).then(()=>{this.reset(),c()},e.noop)})},cancel(){return e.Transition.cancel([s,t])},reset(){for(const h in m[0])e.css([s,t],h,"")},async forward(h,f=this.percent()){return await this.cancel(),this.show(h,f,!0)},translate(h){this.reset();const f=l(h,i);e.css(s,f[1]),e.css(t,f[0]),v(s,"itemtranslatein",{percent:h,dir:i}),v(t,"itemtranslateout",{percent:1-h,dir:i})},percent(){return r(t||s,s,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function v(t,s,i){e.trigger(t,e.createEvent(s,!1,!1,i))}var C={props:{i18n:Object},data:{i18n:null},methods:{t(t,...s){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>s[r++]||""))||""}}};const u={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function w(t,s=t.$el,i=""){if(s.id)return s.id;let n=`${t.$options.id}-${t._uid}${i}`;return e.$(`#${n}`)&&(n=w(t,s,`${i}-2`)),n}var T={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav({selNav:t},s){return e.$(t,s)},navChildren(){return e.children(this.nav)},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems(t,s){return e.$$(this.selNavItem,s)}},watch:{nav(t,s){e.attr(t,"role","tablist"),s&&this.$emit()},list(t){e.attr(t,"role","presentation")},navChildren(t){e.attr(t,"role","presentation")},navItems(t){for(const s of t){const i=e.data(s,this.attrItem),n=e.$("a,button",s)||s;let o,r=null;if(e.isNumeric(i)){const l=e.toNumber(i),a=this.slides[l];a&&(a.id||(a.id=w(this,a,`-item-${i}`)),r=a.id),o=this.t("slideX",e.toFloat(i)+1),e.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=w(this,this.list,"-items")),r=this.list.id),o=this.t(i);e.attr(n,{"aria-controls":r,"aria-label":e.attr(n,"aria-label")||o})}},slides(t){t.forEach((s,i)=>e.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const s=this.navChildren.length;if(this.nav&&t!==s){e.empty(this.nav);for(let i=0;i<t;i++)e.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){e.attr(this.$el,{role:this.role,ariaRoleDescription:"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){e.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===u.SPACE)&&(t.preventDefault(),this.show(e.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:s,keyCode:i}=t,n=e.data(s,this.attrItem);if(!e.isNumeric(n))return;let o=i===u.HOME?0:i===u.END?"last":i===u.LEFT?"previous":i===u.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();let s,i;for(const n of this.navItems){const o=e.data(n,this.attrItem),r=e.$("a,button",n)||n;if(e.isNumeric(o)){const a=e.toNumber(o)===t;e.toggleClass(n,this.clsActive,a),e.attr(r,{"aria-selected":a,tabindex:a?null:-1}),a&&(i=r),s||(s=e.matches(r,":focus"))}else e.toggleClass(n,"uk-invisible",this.finite&&(o==="previous"&&t===0||o==="next"&&t>=this.maxIndex));s&&i&&i.focus()}}}};const b={passive:!1,capture:!0},A={passive:!0,capture:!0},D="touchstart mousedown",y="touchmove mousemove",_="touchend touchcancel mouseup click input scroll";var E={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const s=this[t];this[t]=i=>{const n=e.getEventPos(i).x*(e.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:D,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&H(t.target)||e.closest(t.target,e.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:y,el(){return this.list},handler:e.noop,...b}],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,e.on(document,y,this.move,b),e.on(document,_,this.end,A),e.css(this.list,"userSelect","none")},move(t){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;e.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(s),r=this.getIndex(n+this.dir),l=this._getDistance(n,r);for(;r!==n&&o>l;)this.drag-=l*this.dir,n=r,o-=l,r=this.getIndex(n+this.dir),l=this._getDistance(n,r);this.percent=o/l;const a=i[n],m=i[r],c=this.index!==r,h=n===r;let f;for(const x of[this.index,this.prevIndex])e.includes([r,n],x)||(e.trigger(i[x],"itemhidden",[this]),h&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&e.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=r,!h&&e.trigger(a,"beforeitemhide",[this]),e.trigger(m,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!h&&m),c&&(!h&&e.trigger(a,"itemhide",[this]),e.trigger(m,"itemshow",[this]))},end(){if(e.off(document,y,this.move,b),e.off(document,_,this.end,A),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=(e.isRtl?this.dir*(e.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)}e.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null},_getDistance(t,s){return this._getTransitioner(t,t!==s&&s).getDistance()||this.slides[t].offsetWidth}}};function H(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var M={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){e.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){e.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.stack.length||this.draggable&&e.matches(this.$el,":focus-within")||this.pauseOnHover&&e.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};function O(t){return k(e.observeResize,t,"resize")}function P(t){return k(e.observeIntersection,t)}function R(t={}){return P({handler:function(s,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of e.toNodes(e.isFunction(n)?n(this):n))e.$$('[loading="lazy"]',r).slice(0,o-1).forEach(l=>e.removeAttr(l,"loading"));for(const r of s.filter(({isIntersecting:l})=>l).map(({target:l})=>l))i.unobserve(r)},...t})}function k(t,s,i){return{observe:t,handler(){this.$emit(i)},...s}}var U={mixins:[M,E,T,C],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(){e.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:t},s){return W(s.offsetWidth/t)},list({selList:t},s){return e.$(t,s)},maxIndex(){return this.length-1},slides(){return e.children(this.list)},length(){return this.slides.length}},watch:{slides(t,s){s&&this.$emit()}},observe:O(),methods:{show(t,s=!1){var i;if(this.dragging||!this.length)return;const{stack:n}=this,o=s?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](t),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const l=this.getIndex(this.index),a=e.hasClass(this.slides,this.clsActive)&&this.slides[l],m=this.getIndex(t,this.index),c=this.slides[m];if(a===c){r();return}if(this.dir=L(t,l),this.prevIndex=l,this.index=m,a&&!e.trigger(a,"beforeitemhide",[this])||!e.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const h=this._show(a,c,s).then(()=>{a&&e.trigger(a,"itemhidden",[this]),e.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&e.trigger(a,"itemhide",[this]),e.trigger(c,"itemshow",[this]),h},getIndex(t=this.index,s=this.index){return e.clamp(e.getIndex(t,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,s=this.prevIndex){return this.getIndex(t,s)},_show(t,s,i){if(this._transitioner=this._getTransitioner(t,s,this.dir,{easing:i?s.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}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(this.slides[t]||t,this.slides[s]||s,i*(e.isRtl?-1:1),n)}}};function L(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function W(t){return .5*t+300}var B={mixins:[U],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:$,Transitioner:S},computed:{animation({animation:t,Animations:s}){return{...s[t]||s.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){e.addClass(t,this.clsActive)},itemshown({target:t}){e.addClass(t,this.clsActivated)},itemhidden({target:t}){e.removeClass(t,this.clsActive,this.clsActivated)}}},j={...$,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-e.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:z(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-e.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:z(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:d(30),zIndex:-1},{transform:d(),zIndex:0}]:[{transform:d(-100),zIndex:0},{transform:d(),zIndex:-1}]},percent(t,s,i){return i<0?1-g(s):g(t)},translate(t,s){return s<0?[{transform:d(30*t),zIndex:-1},{transform:d(-100*(1-t)),zIndex:0}]:[{transform:d(-t*100),zIndex:0},{transform:d(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:d(100),zIndex:0},{transform:d(),zIndex:-1}]:[{transform:d(-30),zIndex:-1},{transform:d(),zIndex:0}]},percent(t,s,i){return i>0?1-g(s):g(t)},translate(t,s){return s<0?[{transform:d(t*100),zIndex:0},{transform:d(-30*(1-t)),zIndex:-1}]:[{transform:d(-30*t),zIndex:-1},{transform:d(100*(1-t)),zIndex:0}]}}},F={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"]}},V={observe:R({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})},N={mixins:[p,B,F,V],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:j},update:{read(){if(!this.list)return!1;let[t,s]=this.ratio.split(":").map(Number);return s=s*this.list.offsetWidth/t||0,this.minHeight&&(s=Math.max(this.minHeight,s)),this.maxHeight&&(s=Math.min(this.maxHeight,s)),{height:s-e.boxModelAdjust(this.list,"height","content-box")}},write({height:t}){t>0&&e.css(this.list,"minHeight",t)},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",N),N});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -1 +1 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 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 y(e.observeResize,n,"resize")}function N(n){return y(e.observeMutation,n)}function y(n,s,o){return{observe:n,handler(){this.$emit(o)},...s}}N({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),g({target:({$el:n})=>[n,...e.children(n)]});function C(n){return T(n,"top","bottom")}function z(n){const s=[];for(const o of n){const t=T(o,"left","right");for(let a=0;a<t.length;a++)s[a]=s[a]?s[a].concat(t[a]):t[a]}return e.isRtl?s.reverse():s}function T(n,s,o){const t=[[]];for(const a of n){if(!e.isVisible(a))continue;let c=u(a);for(let r=t.length-1;r>=0;r--){const h=t[r];if(!h[0]){h.push(a);break}let d;if(h[0].offsetParent===a.offsetParent?d=u(h[0]):(c=u(a,!0),d=u(h[0],!0)),c[s]>=d[o]-1&&c[s]!==d[s]){t.push([a]);break}if(c[o]-1>d[s]||c[s]===d[s]){h.push(a);break}if(r===0){t.unshift([a]);break}}}return t}function u(n,s=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:c}=n;return s&&([o,t]=e.offsetPosition(n)),{top:o,left:t,bottom:o+a,right:t+c}}const v="uk-transition-leave",w="uk-transition-enter";function P(n,s,o,t=0){const a=b(s,!0),c={opacity:1},r={opacity:0},h=p=>()=>a===b(s)?p():Promise.reject(),d=h(async()=>{e.addClass(s,v),await Promise.all(x(s).map((p,l)=>new Promise(f=>setTimeout(()=>e.Transition.start(p,r,o/2,"ease").then(f),l*t)))),e.removeClass(s,v)}),i=h(async()=>{const p=e.height(s);e.addClass(s,w),n(),e.css(e.children(s),{opacity:0}),await A();const l=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,p);const m=x(s);e.css(l,r);const R=m.map(async(X,Y)=>{await H(Y*t),await e.Transition.start(X,c,o/2,"ease")});p!==f&&R.push(e.Transition.start(s,{height:f},o/2+m.length*t,"ease")),await Promise.all(R).then(()=>{e.removeClass(s,w),a===b(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,v)?S(s).then(i):e.hasClass(s,w)?S(s).then(d).then(i):d().then(i)}function b(n,s){return s&&(n.dataset.transition=1+b(n)),e.toNumber(n.dataset.transition)||0}function S(n){return Promise.all(e.children(n).filter(e.Transition.inProgress).map(s=>new Promise(o=>e.once(s,"transitionend transitioncanceled",o))))}function x(n){return C(e.children(n)).reduce((s,o)=>s.concat(e.sortBy(o.filter(t=>e.isInView(t)),"offsetLeft")),[])}function A(){return new Promise(n=>requestAnimationFrame(n))}function H(n){return new Promise(s=>setTimeout(s,n))}async function L(n,s,o){await D();let t=e.children(s);const a=t.map(f=>I(f,!0)),c={...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]=M(s,t,a),p=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,m)=>i[m]&&e.css(f,i[m])),e.css(s,c),e.trigger(s,"scroll"),e.fastdom.flush(),await D();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",""),V(s,c)}}function I(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,...$(n)}:!1}function M(n,s,o){const t=s.map((c,r)=>e.parent(c)&&r in o?o[r]?e.isVisible(c)?$(c):{opacity:0}:{opacity:e.isVisible(c)?1:0}:!1),a=t.map((c,r)=>{const h=e.parent(s[r])===n&&(o[r]||I(s[r]));if(!h)return!1;if(!c)delete h.opacity;else if(!("opacity"in c)){const{opacity:d}=h;d%1?c.opacity=1:delete h.opacity}return h});return[t,a]}function V(n,s){for(const o in s)e.css(n,o,"")}function $(n){const{height:s,width:o}=e.offset(n);return{height:s,width:o,transform:"",...e.position(n),...e.css(n,["marginTop","marginLeft"])}}function D(){return new Promise(n=>requestAnimationFrame(n))}var j={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(n,s=this.$el){const o=this.animation;return(o==="fade"?P:o==="delayed-fade"?(...a)=>P(...a,40):o?L:()=>(n(),Promise.resolve()))(n,s,this.duration).catch(e.noop)}}},q={connected(){e.addClass(this.$el,this.$options.id)}},E={mixins:[q,j],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(){return e.isEmpty(this.items)},handles({handle:n},s){return n?e.$$(n,s):this.items}},watch:{isEmpty(n){e.toggleClass(this.target,this.clsEmpty,n)},handles(n,s){e.css(s,{touchAction:"",userSelect:""}),e.css(n,{touchAction:e.hasTouch?"none":"",userSelect:"none"})}},update:{write(n){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:o},origin:{offsetTop:t,offsetLeft:a},placeholder:c}=this;e.css(this.drag,{top:o-t,left:s-a});const r=this.getSortable(document.elementFromPoint(s,o));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=J(h,{x:s,y:o});if(h.length&&(!d||d===c))return;const i=this.getSortable(c),p=K(r.target,d,c,s,o,r===i&&n.moved!==d);p!==!1&&(p&&c===p||(r!==i?(i.remove(c),n.moved=d):delete n.moved,r.insert(c,p),this.touched.add(r)))},events:["move"]},methods:{init(n){const{target:s,button:o,defaultPrevented:t}=n,[a]=this.items.filter(c=>e.within(s,c));!a||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=a,this.origin={target:s,index:e.index(a),...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=G(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]),W(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;O();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 F;function W(n){let s=Date.now();F=setInterval(()=>{let{x:o,y:t}=n;t+=document.scrollingElement.scrollTop;const a=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(o,n.y)).reverse().some(c=>{let{scrollTop:r,scrollHeight:h}=c;const{top:d,bottom:i,height:p}=e.offsetViewport(c);if(d<t&&d+35>t)r-=a;else if(i>t&&i-35<t)r+=a;else return;if(r>0&&r<h-p)return c.scrollTop=r,!0})},15)}function O(){clearInterval(F)}function G(n,s){let o;if(e.isTag(s,"li","tr")){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 J(n,s){return n[e.findIndex(n,o=>e.pointInRect(s,o.getBoundingClientRect()))]}function K(n,s,o,t,a,c){if(!e.children(n).length)return;const r=s.getBoundingClientRect();if(!c)return Q(n,o)||a<r.top+r.height/2?s:s.nextElementSibling;const h=o.getBoundingClientRect(),d=B([r.top,r.bottom],[h.top,h.bottom]),[i,p,l,f]=d?[t,"width","left","right"]:[a,"height","top","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 Q(n,s){const o=e.children(n).length===1;o&&e.append(n,s);const t=e.children(n),a=t.some((c,r)=>{const h=c.getBoundingClientRect();return t.slice(r+1).some(d=>{const i=d.getBoundingClientRect();return!B([h.left,h.right],[i.left,i.right])})});return o&&e.remove(s),a}function B(n,s){return n[1]>s[0]&&s[1]>n[0]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",E),E});
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 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 y(e.observeResize,n,"resize")}function N(n){return y(e.observeMutation,n)}function y(n,s,o){return{observe:n,handler(){this.$emit(o)},...s}}N({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),g({target:({$el:n})=>[n,...e.children(n)]});function C(n){return T(n,"top","bottom")}function z(n){const s=[];for(const o of n){const t=T(o,"left","right");for(let a=0;a<t.length;a++)s[a]=s[a]?s[a].concat(t[a]):t[a]}return e.isRtl?s.reverse():s}function T(n,s,o){const t=[[]];for(const a of n){if(!e.isVisible(a))continue;let c=u(a);for(let r=t.length-1;r>=0;r--){const h=t[r];if(!h[0]){h.push(a);break}let d;if(h[0].offsetParent===a.offsetParent?d=u(h[0]):(c=u(a,!0),d=u(h[0],!0)),c[s]>=d[o]-1&&c[s]!==d[s]){t.push([a]);break}if(c[o]-1>d[s]||c[s]===d[s]){h.push(a);break}if(r===0){t.unshift([a]);break}}}return t}function u(n,s=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:c}=n;return s&&([o,t]=e.offsetPosition(n)),{top:o,left:t,bottom:o+a,right:t+c}}const v="uk-transition-leave",w="uk-transition-enter";function P(n,s,o,t=0){const a=b(s,!0),c={opacity:1},r={opacity:0},h=p=>()=>a===b(s)?p():Promise.reject(),d=h(async()=>{e.addClass(s,v),await Promise.all(x(s).map((p,l)=>new Promise(f=>setTimeout(()=>e.Transition.start(p,r,o/2,"ease").then(f),l*t)))),e.removeClass(s,v)}),i=h(async()=>{const p=e.height(s);e.addClass(s,w),n(),e.css(e.children(s),{opacity:0}),await A();const l=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,p);const m=x(s);e.css(l,r);const R=m.map(async(X,Y)=>{await H(Y*t),await e.Transition.start(X,c,o/2,"ease")});p!==f&&R.push(e.Transition.start(s,{height:f},o/2+m.length*t,"ease")),await Promise.all(R).then(()=>{e.removeClass(s,w),a===b(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,v)?S(s).then(i):e.hasClass(s,w)?S(s).then(d).then(i):d().then(i)}function b(n,s){return s&&(n.dataset.transition=1+b(n)),e.toNumber(n.dataset.transition)||0}function S(n){return Promise.all(e.children(n).filter(e.Transition.inProgress).map(s=>new Promise(o=>e.once(s,"transitionend transitioncanceled",o))))}function x(n){return C(e.children(n)).reduce((s,o)=>s.concat(e.sortBy(o.filter(t=>e.isInView(t)),"offsetLeft")),[])}function A(){return new Promise(n=>requestAnimationFrame(n))}function H(n){return new Promise(s=>setTimeout(s,n))}async function L(n,s,o){await D();let t=e.children(s);const a=t.map(f=>I(f,!0)),c={...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]=M(s,t,a),p=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,m)=>i[m]&&e.css(f,i[m])),e.css(s,c),e.trigger(s,"scroll"),e.fastdom.flush(),await D();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",""),V(s,c)}}function I(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,...$(n)}:!1}function M(n,s,o){const t=s.map((c,r)=>e.parent(c)&&r in o?o[r]?e.isVisible(c)?$(c):{opacity:0}:{opacity:e.isVisible(c)?1:0}:!1),a=t.map((c,r)=>{const h=e.parent(s[r])===n&&(o[r]||I(s[r]));if(!h)return!1;if(!c)delete h.opacity;else if(!("opacity"in c)){const{opacity:d}=h;d%1?c.opacity=1:delete h.opacity}return h});return[t,a]}function V(n,s){for(const o in s)e.css(n,o,"")}function $(n){const{height:s,width:o}=e.offset(n);return{height:s,width:o,transform:"",...e.position(n),...e.css(n,["marginTop","marginLeft"])}}function D(){return new Promise(n=>requestAnimationFrame(n))}var j={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(n,s=this.$el){const o=this.animation;return(o==="fade"?P:o==="delayed-fade"?(...a)=>P(...a,40):o?L:()=>(n(),Promise.resolve()))(n,s,this.duration).catch(e.noop)}}},q={connected(){e.addClass(this.$el,this.$options.id)}},E={mixins:[q,j],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(){return e.isEmpty(this.items)},handles({handle:n},s){return n?e.$$(n,s):this.items}},watch:{isEmpty(n){e.toggleClass(this.target,this.clsEmpty,n)},handles(n,s){e.css(s,{touchAction:"",userSelect:""}),e.css(n,{touchAction:e.hasTouch?"none":"",userSelect:"none"})}},update:{write(n){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:o},origin:{offsetTop:t,offsetLeft:a},placeholder:c}=this;e.css(this.drag,{top:o-t,left:s-a});const r=this.getSortable(document.elementFromPoint(s,o));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=J(h,{x:s,y:o});if(h.length&&(!d||d===c))return;const i=this.getSortable(c),p=K(r.target,d,c,s,o,r===i&&n.moved!==d);p!==!1&&(p&&c===p||(r!==i?(i.remove(c),n.moved=d):delete n.moved,r.insert(c,p),this.touched.add(r)))},events:["move"]},methods:{init(n){const{target:s,button:o,defaultPrevented:t}=n,[a]=this.items.filter(c=>e.within(s,c));!a||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=a,this.origin={target:s,index:e.index(a),...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=G(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]),W(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;O();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 F;function W(n){let s=Date.now();F=setInterval(()=>{let{x:o,y:t}=n;t+=document.scrollingElement.scrollTop;const a=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(o,n.y)).reverse().some(c=>{let{scrollTop:r,scrollHeight:h}=c;const{top:d,bottom:i,height:p}=e.offsetViewport(c);if(d<t&&d+35>t)r-=a;else if(i>t&&i-35<t)r+=a;else return;if(r>0&&r<h-p)return c.scrollTop=r,!0})},15)}function O(){clearInterval(F)}function G(n,s){let o;if(e.isTag(s,"li","tr")){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 J(n,s){return n[e.findIndex(n,o=>e.pointInRect(s,o.getBoundingClientRect()))]}function K(n,s,o,t,a,c){if(!e.children(n).length)return;const r=s.getBoundingClientRect();if(!c)return Q(n,o)||a<r.top+r.height/2?s:s.nextElementSibling;const h=o.getBoundingClientRect(),d=B([r.top,r.bottom],[h.top,h.bottom]),[i,p,l,f]=d?[t,"width","left","right"]:[a,"height","top","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 Q(n,s){const o=e.children(n).length===1;o&&e.append(n,s);const t=e.children(n),a=t.some((c,r)=>{const h=c.getBoundingClientRect();return t.slice(r+1).some(d=>{const i=d.getBoundingClientRect();return!B([h.left,h.right],[i.left,i.right])})});return o&&e.remove(s),a}function B(n,s){return n[1]>s[0]&&s[1]>n[0]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",E),E});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -48,9 +48,9 @@
48
48
  }
49
49
  },
50
50
  methods: {
51
- toggleElement(targets, toggle, animate) {
52
- return new Promise(
53
- (resolve) => Promise.all(
51
+ async toggleElement(targets, toggle, animate) {
52
+ try {
53
+ await Promise.all(
54
54
  util.toNodes(targets).map((el) => {
55
55
  const show = util.isBoolean(toggle) ? toggle : !this.isToggled(el);
56
56
  if (!util.trigger(el, `before${show ? "show" : "hide"}`, [this])) {
@@ -69,8 +69,11 @@
69
69
  return Promise.reject();
70
70
  }) : done();
71
71
  })
72
- ).then(resolve, util.noop)
73
- );
72
+ );
73
+ return true;
74
+ } catch (e) {
75
+ return false;
76
+ }
74
77
  },
75
78
  isToggled(el = this.$el) {
76
79
  el = util.toNode(el);
@@ -316,7 +319,7 @@
316
319
  cls: "uk-active"
317
320
  },
318
321
  beforeConnect() {
319
- this.id = generateId(this);
322
+ this.id = generateId(this, {});
320
323
  this._hasTitle = util.hasAttr(this.$el, "title");
321
324
  util.attr(this.$el, {
322
325
  title: "",
@@ -343,14 +346,13 @@
343
346
  return;
344
347
  }
345
348
  clearTimeout(this.showTimer);
346
- if (!this.isToggled(this.tooltip || null)) {
347
- return;
349
+ if (this.isToggled(this.tooltip || null)) {
350
+ await this.toggleElement(this.tooltip, false, false);
348
351
  }
349
- await this.toggleElement(this.tooltip, false, false);
350
352
  util.remove(this.tooltip);
351
353
  this.tooltip = null;
352
354
  },
353
- _show() {
355
+ async _show() {
354
356
  this.tooltip = util.append(
355
357
  this.container,
356
358
  `<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${this.title}</div> </div>`
@@ -379,7 +381,9 @@
379
381
  self: true
380
382
  });
381
383
  });
382
- this.toggleElement(this.tooltip, true);
384
+ if (!await this.toggleElement(this.tooltip, true)) {
385
+ this.hide();
386
+ }
383
387
  }
384
388
  },
385
389
  events: {
@@ -1 +1 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],p):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitTooltip=p(t.UIkit.util))})(this,function(t){"use strict";var p={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},S={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:s}){return!!s[0]},hasTransition({animation:s}){return["slide","reveal"].some(i=>t.startsWith(s[0],i))}},methods:{toggleElement(s,i,o){return new Promise(e=>Promise.all(t.toNodes(s).map(n=>{const r=t.isBoolean(i)?i:!this.isToggled(n);if(!t.trigger(n,`before${r?"show":"hide"}`,[this]))return Promise.reject();const h=(t.isFunction(o)?o:o===!1||!this.hasAnimation?O:this.hasTransition?B:I)(n,r,this),a=r?this.clsEnter:this.clsLeave;t.addClass(n,a),t.trigger(n,r?"show":"hide",[this]);const c=()=>{t.removeClass(n,a),t.trigger(n,r?"shown":"hidden",[this])};return h?h.then(c,()=>(t.removeClass(n,a),Promise.reject())):c()})).then(e,t.noop))},isToggled(s=this.$el){return s=t.toNode(s),t.hasClass(s,this.clsEnter)?!0:t.hasClass(s,this.clsLeave)?!1:this.cls?t.hasClass(s,this.cls.split(" ")[0]):t.isVisible(s)},_toggle(s,i){if(!s)return;i=!!i;let o;this.cls?(o=t.includes(this.cls," ")||i!==t.hasClass(s,this.cls),o&&t.toggleClass(s,this.cls,t.includes(this.cls," ")?void 0:i)):(o=i===s.hidden,o&&(s.hidden=!i)),t.$$("[autofocus]",s).some(e=>t.isVisible(e)?e.focus()||!0:e.blur()),o&&t.trigger(s,"toggled",[i,this])}}};function O(s,i,{_toggle:o}){return t.Animation.cancel(s),t.Transition.cancel(s),o(s,i)}async function B(s,i,{animation:o,duration:e,velocity:n,transition:r,_toggle:h}){var a;const[c="reveal",v="top"]=((a=o[0])==null?void 0:a.split("-"))||[],b=[["left","right"],["top","bottom"]],T=b[t.includes(b[0],v)?0:1],u=T[1]===v,m=["width","height"][b.indexOf(T)],d=`margin-${T[0]}`,w=`margin-${v}`;let g=t.dimensions(s)[m];const U=t.Transition.inProgress(s);await t.Transition.cancel(s),i&&h(s,!0);const j=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",d,w].map(A=>[A,s.style[A]])),l=t.dimensions(s),P=t.toFloat(t.css(s,d)),E=t.toFloat(t.css(s,w)),f=l[m]+E;!U&&!i&&(g+=E);const[$]=t.wrapInner(s,"<div>");t.css($,{boxSizing:"border-box",height:l.height,width:l.width,...t.css(s,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",w])}),t.css(s,{padding:0,border:0,minWidth:0,minHeight:0,[w]:0,width:l.width,height:l.height,overflow:"hidden",[m]:g});const x=g/f;e=(n*f+e)*(i?1-x:x);const C={[m]:i?f:0};u&&(t.css(s,d,f-g+P),C[d]=i?P:f+P),!u^c==="reveal"&&(t.css($,d,-f+g),t.Transition.start($,{[d]:i?0:-f},e,r));try{await t.Transition.start(s,C,e,r)}finally{t.css(s,j),t.unwrap($.firstChild),i||h(s,!1)}}function I(s,i,o){t.Animation.cancel(s);const{animation:e,duration:n,_toggle:r}=o;return i?(r(s,!0),t.Animation.in(s,e[0],n,o.origin)):t.Animation.out(s,e[1]||e[0],n,o.origin).then(()=>r(s,!1))}var D={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${t.isRtl?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=t.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(s,i,o){let e=[this.getPositionOffset(s),this.getShiftOffset(s)];const n=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:t.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const c in r)r[c].reverse();e.reverse(),n.reverse()}const h=N(s),a=t.dimensions(s);t.css(s,{top:-a.height,left:-a.width}),t.positionAt(s,i,{attach:r,offset:e,boundary:o,placement:n,viewportOffset:this.getViewportOffset(s)}),h()},getPositionOffset(s){return t.toPx(this.offset===!1?t.css(s,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",s)*(t.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(s){return this.align==="center"?0:t.toPx(t.css(s,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",s)*(t.includes(["left","top"],this.align)?1:-1)},getViewportOffset(s){return t.toPx(t.css(s,"--uk-position-viewport-offset"))}}};function N(s){const[i]=t.scrollParents(s),{scrollTop:o}=i;return()=>{o!==i.scrollTop&&(i.scrollTop=o)}}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function y(s,i=s.$el,o=""){if(i.id)return i.id;let e=`${s.$options.id}-${s._uid}${o}`;return t.$(`#${e}`)&&(e=y(s,i,`${o}-2`)),e}var k={mixins:[p,S,D],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},beforeConnect(){this.id=y(this),this._hasTitle=t.hasAttr(this.$el,"title"),t.attr(this.$el,{title:"","aria-describedby":this.id}),F(this.$el)},disconnected(){this.hide(),t.attr(this.$el,"title")||t.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&(await this.toggleElement(this.tooltip,!1,!1),t.remove(this.tooltip),this.tooltip=null))},_show(){this.tooltip=t.append(this.container,`<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${this.title}</div> </div>`),t.on(this.tooltip,"toggled",(s,i)=>{if(!i)return;const o=()=>this.positionAt(this.tooltip,this.$el);o();const[e,n]=L(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${t.flipPosition(e)}-${n}`:`${n}-${t.flipPosition(e)}`;const r=[t.once(document,`keydown ${t.pointerDown}`,this.hide,!1,h=>h.type===t.pointerDown&&!t.within(h.target,this.$el)||h.type==="keydown"&&h.keyCode===_.ESC),t.on([document,...t.overflowParents(this.$el)],"scroll",o,{passive:!0})];t.once(this.tooltip,"hide",()=>r.forEach(h=>h()),{self:!0})}),this.toggleElement(this.tooltip,!0)}},events:{focus:"show",blur:"hide",[`${t.pointerEnter} ${t.pointerLeave}`](s){t.isTouch(s)||this[s.type===t.pointerEnter?"show":"hide"]()},[t.pointerDown](s){t.isTouch(s)&&this.show()}}};function F(s){t.isFocusable(s)||t.attr(s,"tabindex","0")}function L(s,i,[o,e]){const n=t.offset(s),r=t.offset(i),h=[["left","right"],["top","bottom"]];for(const c of h){if(n[c[0]]>=r[c[1]]){o=c[1];break}if(n[c[1]]<=r[c[0]]){o=c[0];break}}const a=t.includes(h[0],o)?h[1]:h[0];return n[a[0]]===r[a[0]]?e=a[0]:n[a[1]]===r[a[1]]?e=a[1]:e="center",[o,e]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",k),k});
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],p):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitTooltip=p(t.UIkit.util))})(this,function(t){"use strict";var p={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},S={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:s}){return!!s[0]},hasTransition({animation:s}){return["slide","reveal"].some(i=>t.startsWith(s[0],i))}},methods:{async toggleElement(s,i,e){try{return await Promise.all(t.toNodes(s).map(o=>{const n=t.isBoolean(i)?i:!this.isToggled(o);if(!t.trigger(o,`before${n?"show":"hide"}`,[this]))return Promise.reject();const h=(t.isFunction(e)?e:e===!1||!this.hasAnimation?O:this.hasTransition?B:I)(o,n,this),r=n?this.clsEnter:this.clsLeave;t.addClass(o,r),t.trigger(o,n?"show":"hide",[this]);const a=()=>{t.removeClass(o,r),t.trigger(o,n?"shown":"hidden",[this])};return h?h.then(a,()=>(t.removeClass(o,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(s=this.$el){return s=t.toNode(s),t.hasClass(s,this.clsEnter)?!0:t.hasClass(s,this.clsLeave)?!1:this.cls?t.hasClass(s,this.cls.split(" ")[0]):t.isVisible(s)},_toggle(s,i){if(!s)return;i=!!i;let e;this.cls?(e=t.includes(this.cls," ")||i!==t.hasClass(s,this.cls),e&&t.toggleClass(s,this.cls,t.includes(this.cls," ")?void 0:i)):(e=i===s.hidden,e&&(s.hidden=!i)),t.$$("[autofocus]",s).some(o=>t.isVisible(o)?o.focus()||!0:o.blur()),e&&t.trigger(s,"toggled",[i,this])}}};function O(s,i,{_toggle:e}){return t.Animation.cancel(s),t.Transition.cancel(s),e(s,i)}async function B(s,i,{animation:e,duration:o,velocity:n,transition:h,_toggle:r}){var a;const[c="reveal",v="top"]=((a=e[0])==null?void 0:a.split("-"))||[],b=[["left","right"],["top","bottom"]],T=b[t.includes(b[0],v)?0:1],u=T[1]===v,m=["width","height"][b.indexOf(T)],d=`margin-${T[0]}`,w=`margin-${v}`;let g=t.dimensions(s)[m];const U=t.Transition.inProgress(s);await t.Transition.cancel(s),i&&r(s,!0);const j=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",d,w].map(A=>[A,s.style[A]])),l=t.dimensions(s),y=t.toFloat(t.css(s,d)),E=t.toFloat(t.css(s,w)),f=l[m]+E;!U&&!i&&(g+=E);const[$]=t.wrapInner(s,"<div>");t.css($,{boxSizing:"border-box",height:l.height,width:l.width,...t.css(s,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",w])}),t.css(s,{padding:0,border:0,minWidth:0,minHeight:0,[w]:0,width:l.width,height:l.height,overflow:"hidden",[m]:g});const x=g/f;o=(n*f+o)*(i?1-x:x);const C={[m]:i?f:0};u&&(t.css(s,d,f-g+y),C[d]=i?y:f+y),!u^c==="reveal"&&(t.css($,d,-f+g),t.Transition.start($,{[d]:i?0:-f},o,h));try{await t.Transition.start(s,C,o,h)}finally{t.css(s,j),t.unwrap($.firstChild),i||r(s,!1)}}function I(s,i,e){t.Animation.cancel(s);const{animation:o,duration:n,_toggle:h}=e;return i?(h(s,!0),t.Animation.in(s,o[0],n,e.origin)):t.Animation.out(s,o[1]||o[0],n,e.origin).then(()=>h(s,!1))}var D={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${t.isRtl?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=t.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(s,i,e){let o=[this.getPositionOffset(s),this.getShiftOffset(s)];const n=[this.flip&&"flip",this.shift&&"shift"],h={element:[this.inset?this.dir:t.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const c in h)h[c].reverse();o.reverse(),n.reverse()}const r=N(s),a=t.dimensions(s);t.css(s,{top:-a.height,left:-a.width}),t.positionAt(s,i,{attach:h,offset:o,boundary:e,placement:n,viewportOffset:this.getViewportOffset(s)}),r()},getPositionOffset(s){return t.toPx(this.offset===!1?t.css(s,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",s)*(t.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(s){return this.align==="center"?0:t.toPx(t.css(s,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",s)*(t.includes(["left","top"],this.align)?1:-1)},getViewportOffset(s){return t.toPx(t.css(s,"--uk-position-viewport-offset"))}}};function N(s){const[i]=t.scrollParents(s),{scrollTop:e}=i;return()=>{e!==i.scrollTop&&(i.scrollTop=e)}}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function P(s,i=s.$el,e=""){if(i.id)return i.id;let o=`${s.$options.id}-${s._uid}${e}`;return t.$(`#${o}`)&&(o=P(s,i,`${e}-2`)),o}var k={mixins:[p,S,D],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},beforeConnect(){this.id=P(this,{}),this._hasTitle=t.hasAttr(this.$el,"title"),t.attr(this.$el,{title:"","aria-describedby":this.id}),F(this.$el)},disconnected(){this.hide(),t.attr(this.$el,"title")||t.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),t.remove(this.tooltip),this.tooltip=null)},async _show(){this.tooltip=t.append(this.container,`<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${this.title}</div> </div>`),t.on(this.tooltip,"toggled",(s,i)=>{if(!i)return;const e=()=>this.positionAt(this.tooltip,this.$el);e();const[o,n]=L(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${t.flipPosition(o)}-${n}`:`${n}-${t.flipPosition(o)}`;const h=[t.once(document,`keydown ${t.pointerDown}`,this.hide,!1,r=>r.type===t.pointerDown&&!t.within(r.target,this.$el)||r.type==="keydown"&&r.keyCode===_.ESC),t.on([document,...t.overflowParents(this.$el)],"scroll",e,{passive:!0})];t.once(this.tooltip,"hide",()=>h.forEach(r=>r()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{focus:"show",blur:"hide",[`${t.pointerEnter} ${t.pointerLeave}`](s){t.isTouch(s)||this[s.type===t.pointerEnter?"show":"hide"]()},[t.pointerDown](s){t.isTouch(s)&&this.show()}}};function F(s){t.isFocusable(s)||t.attr(s,"tabindex","0")}function L(s,i,[e,o]){const n=t.offset(s),h=t.offset(i),r=[["left","right"],["top","bottom"]];for(const c of r){if(n[c[0]]>=h[c[1]]){e=c[1];break}if(n[c[1]]<=h[c[0]]){e=c[0];break}}const a=t.includes(r[0],e)?r[1]:r[0];return n[a[0]]===h[a[0]]?o=a[0]:n[a[1]]===h[a[1]]?o=a[1]:o="center",[e,o]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",k),k});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -1 +1 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(o,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],i):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=i(o.UIkit.util))})(this,function(o){"use strict";var i={props:{i18n:Object},data:{i18n:null},methods:{t(e,...r){var a,s,t;let n=0;return((t=((a=this.i18n)==null?void 0:a[e])||((s=this.$options.i18n)==null?void 0:s[e]))==null?void 0:t.replace(/%s/g,()=>r[n++]||""))||""}}},d={mixins:[i],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:o.noop,beforeAll:o.noop,beforeSend:o.noop,complete:o.noop,completeAll:o.noop,error:o.noop,fail:o.noop,load:o.noop,loadEnd:o.noop,loadStart:o.noop,progress:o.noop},events:{change(e){o.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){l(e);const r=e.dataTransfer;r!=null&&r.files&&(o.removeClass(this.$el,this.clsDragover),this.upload(r.files))},dragenter(e){l(e)},dragover(e){l(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){l(e),o.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(e=o.toArray(e),!e.length)return;o.trigger(this.$el,"upload",[e]);for(const s of e){if(this.maxSize&&this.maxSize*1e3<s.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!h(this.allow,s.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!h(this.mime,s.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const r=f(e,this.concurrent),a=async s=>{const t=new FormData;s.forEach(n=>t.append(this.name,n));for(const n in this.params)t.append(n,this.params[n]);try{const n=await u(this.url,{data:t,method:this.method,responseType:this.type,beforeSend:p=>{const{xhr:m}=p;o.on(m.upload,"progress",this.progress);for(const c of["loadStart","load","loadEnd","abort"])o.on(m,c.toLowerCase(),this[c]);return this.beforeSend(p)}});this.complete(n),r.length?await a(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await a(r.shift())}}};function h(e,r){return r.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function f(e,r){const a=[];for(let s=0;s<e.length;s+=r)a.push(e.slice(s,s+r));return a}function l(e){e.preventDefault(),e.stopPropagation()}function u(e,r){const a={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return Promise.resolve().then(()=>a.beforeSend(a)).then(()=>g(e,a))}function g(e,r){return new Promise((a,s)=>{const{xhr:t}=r;for(const n in r)if(n in t)try{t[n]=r[n]}catch{}t.open(r.method.toUpperCase(),e);for(const n in r.headers)t.setRequestHeader(n,r.headers[n]);o.on(t,"load",()=>{t.status===0||t.status>=200&&t.status<300||t.status===304?a(t):s(o.assign(Error(t.statusText),{xhr:t,status:t.status}))}),o.on(t,"error",()=>s(o.assign(Error("Network Error"),{xhr:t}))),o.on(t,"timeout",()=>s(o.assign(Error("Network Timeout"),{xhr:t}))),t.send(r.data)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",d),d});
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(o,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],i):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=i(o.UIkit.util))})(this,function(o){"use strict";var i={props:{i18n:Object},data:{i18n:null},methods:{t(e,...r){var a,s,t;let n=0;return((t=((a=this.i18n)==null?void 0:a[e])||((s=this.$options.i18n)==null?void 0:s[e]))==null?void 0:t.replace(/%s/g,()=>r[n++]||""))||""}}},d={mixins:[i],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:o.noop,beforeAll:o.noop,beforeSend:o.noop,complete:o.noop,completeAll:o.noop,error:o.noop,fail:o.noop,load:o.noop,loadEnd:o.noop,loadStart:o.noop,progress:o.noop},events:{change(e){o.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){l(e);const r=e.dataTransfer;r!=null&&r.files&&(o.removeClass(this.$el,this.clsDragover),this.upload(r.files))},dragenter(e){l(e)},dragover(e){l(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){l(e),o.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(e=o.toArray(e),!e.length)return;o.trigger(this.$el,"upload",[e]);for(const s of e){if(this.maxSize&&this.maxSize*1e3<s.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!h(this.allow,s.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!h(this.mime,s.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const r=f(e,this.concurrent),a=async s=>{const t=new FormData;s.forEach(n=>t.append(this.name,n));for(const n in this.params)t.append(n,this.params[n]);try{const n=await u(this.url,{data:t,method:this.method,responseType:this.type,beforeSend:p=>{const{xhr:m}=p;o.on(m.upload,"progress",this.progress);for(const c of["loadStart","load","loadEnd","abort"])o.on(m,c.toLowerCase(),this[c]);return this.beforeSend(p)}});this.complete(n),r.length?await a(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await a(r.shift())}}};function h(e,r){return r.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function f(e,r){const a=[];for(let s=0;s<e.length;s+=r)a.push(e.slice(s,s+r));return a}function l(e){e.preventDefault(),e.stopPropagation()}function u(e,r){const a={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return Promise.resolve().then(()=>a.beforeSend(a)).then(()=>g(e,a))}function g(e,r){return new Promise((a,s)=>{const{xhr:t}=r;for(const n in r)if(n in t)try{t[n]=r[n]}catch{}t.open(r.method.toUpperCase(),e);for(const n in r.headers)t.setRequestHeader(n,r.headers[n]);o.on(t,"load",()=>{t.status===0||t.status>=200&&t.status<300||t.status===304?a(t):s(o.assign(Error(t.statusText),{xhr:t,status:t.status}))}),o.on(t,"error",()=>s(o.assign(Error("Network Error"),{xhr:t}))),o.on(t,"timeout",()=>s(o.assign(Error("Network Timeout"),{xhr:t}))),t.send(r.data)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",d),d});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.16-dev.eede5abfb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.17-dev.8404b30b4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -191,14 +191,6 @@
191
191
  const cache = /* @__PURE__ */ Object.create(null);
192
192
  return (key) => cache[key] || (cache[key] = fn(key));
193
193
  }
194
- class Deferred {
195
- constructor() {
196
- this.promise = new Promise((resolve, reject) => {
197
- this.reject = reject;
198
- this.resolve = resolve;
199
- });
200
- }
201
- }
202
194
 
203
195
  function attr(element, name, value) {
204
196
  var _a;
@@ -1529,7 +1521,6 @@
1529
1521
  $: $,
1530
1522
  $$: $$,
1531
1523
  Animation: Animation,
1532
- Deferred: Deferred,
1533
1524
  Dimensions: Dimensions,
1534
1525
  MouseTracker: MouseTracker,
1535
1526
  Transition: Transition,
@@ -2159,7 +2150,7 @@
2159
2150
  };
2160
2151
  App.util = util;
2161
2152
  App.options = {};
2162
- App.version = "3.16.16-dev.eede5abfb";
2153
+ App.version = "3.16.17-dev.8404b30b4";
2163
2154
 
2164
2155
  const PREFIX = "uk-";
2165
2156
  const DATA = "__uikit__";
@@ -2237,7 +2228,7 @@
2237
2228
  component2.options = mergeOptions(component2.options, mixin);
2238
2229
  };
2239
2230
  App.extend = function(options) {
2240
- options = options || {};
2231
+ options || (options = {});
2241
2232
  const Super = this;
2242
2233
  const Sub = function UIkitComponent(options2) {
2243
2234
  init$1(this, options2);
@@ -2435,9 +2426,9 @@
2435
2426
  }
2436
2427
  },
2437
2428
  methods: {
2438
- toggleElement(targets, toggle, animate) {
2439
- return new Promise(
2440
- (resolve) => Promise.all(
2429
+ async toggleElement(targets, toggle, animate) {
2430
+ try {
2431
+ await Promise.all(
2441
2432
  toNodes(targets).map((el) => {
2442
2433
  const show = isBoolean(toggle) ? toggle : !this.isToggled(el);
2443
2434
  if (!trigger(el, `before${show ? "show" : "hide"}`, [this])) {
@@ -2456,8 +2447,11 @@
2456
2447
  return Promise.reject();
2457
2448
  }) : done();
2458
2449
  })
2459
- ).then(resolve, noop)
2460
- );
2450
+ );
2451
+ return true;
2452
+ } catch (e) {
2453
+ return false;
2454
+ }
2461
2455
  },
2462
2456
  isToggled(el = this.$el) {
2463
2457
  el = toNode(el);
@@ -2796,7 +2790,7 @@
2796
2790
  }
2797
2791
  },
2798
2792
  methods: {
2799
- async toggle(item, animate) {
2793
+ toggle(item, animate) {
2800
2794
  item = this.items[getIndex(item, this.items)];
2801
2795
  let items = [item];
2802
2796
  const activeItems = filter(this.items, `.${this.clsOpen}`);
@@ -2806,7 +2800,7 @@
2806
2800
  if (!this.collapsible && activeItems.length < 2 && includes(activeItems, item)) {
2807
2801
  return;
2808
2802
  }
2809
- await Promise.all(
2803
+ return Promise.all(
2810
2804
  items.map(
2811
2805
  (el) => this.toggleElement(el, !includes(activeItems, el), (el2, show) => {
2812
2806
  toggleClass(el2, this.clsOpen, show);
@@ -2947,7 +2941,7 @@
2947
2941
  write({ prev, visible, inView }) {
2948
2942
  if (!visible || this.inView && !inView) {
2949
2943
  pause(this.$el);
2950
- } else if (this.autoplay === true && !prev || this.inView && inView) {
2944
+ } else if (this.autoplay === true && !prev || inView) {
2951
2945
  play(this.$el);
2952
2946
  }
2953
2947
  },
@@ -3186,8 +3180,8 @@
3186
3180
  ];
3187
3181
  },
3188
3182
  target({ target, targetX, targetY }, $el) {
3189
- targetX = targetX || target || this.targetEl;
3190
- targetY = targetY || target || this.targetEl;
3183
+ targetX || (targetX = target || this.targetEl);
3184
+ targetY || (targetY = target || this.targetEl);
3191
3185
  return [
3192
3186
  targetX === true ? window : query(targetX, $el),
3193
3187
  targetY === true ? window : query(targetY, $el)
@@ -4968,22 +4962,21 @@
4968
4962
  modal.alert = function(message, options) {
4969
4963
  return openDialog(
4970
4964
  ({ i18n }) => `<div class="uk-modal-body">${isString(message) ? message : html(message)}</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" autofocus>${i18n.ok}</button> </div>`,
4971
- options,
4972
- (deferred) => deferred.resolve()
4965
+ options
4973
4966
  );
4974
4967
  };
4975
4968
  modal.confirm = function(message, options) {
4976
4969
  return openDialog(
4977
4970
  ({ i18n }) => `<form> <div class="uk-modal-body">${isString(message) ? message : html(message)}</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">${i18n.cancel}</button> <button class="uk-button uk-button-primary" autofocus>${i18n.ok}</button> </div> </form>`,
4978
4971
  options,
4979
- (deferred) => deferred.reject()
4972
+ () => Promise.reject()
4980
4973
  );
4981
4974
  };
4982
4975
  modal.prompt = function(message, value, options) {
4983
4976
  return openDialog(
4984
4977
  ({ i18n }) => `<form class="uk-form-stacked"> <div class="uk-modal-body"> <label>${isString(message) ? message : html(message)}</label> <input class="uk-input" value="${value || ""}" autofocus> </div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">${i18n.cancel}</button> <button class="uk-button uk-button-primary">${i18n.ok}</button> </div> </form>`,
4985
4978
  options,
4986
- (deferred) => deferred.resolve(null),
4979
+ () => null,
4987
4980
  (dialog) => $("input", dialog.$el).value
4988
4981
  );
4989
4982
  };
@@ -4991,7 +4984,7 @@
4991
4984
  ok: "Ok",
4992
4985
  cancel: "Cancel"
4993
4986
  };
4994
- function openDialog(tmpl, options, hideFn, submitFn) {
4987
+ function openDialog(tmpl, options, hideFn = noop, submitFn = noop) {
4995
4988
  options = {
4996
4989
  bgClose: false,
4997
4990
  escClose: true,
@@ -5000,17 +4993,18 @@
5000
4993
  i18n: { ...modal.i18n, ...options == null ? void 0 : options.i18n }
5001
4994
  };
5002
4995
  const dialog = modal.dialog(tmpl(options), options);
5003
- const deferred = new Deferred();
5004
- let resolved = false;
5005
- on(dialog.$el, "submit", "form", (e) => {
5006
- e.preventDefault();
5007
- deferred.resolve(submitFn == null ? void 0 : submitFn(dialog));
5008
- resolved = true;
5009
- dialog.hide();
5010
- });
5011
- on(dialog.$el, "hide", () => !resolved && hideFn(deferred));
5012
- deferred.promise.dialog = dialog;
5013
- return deferred.promise;
4996
+ return assign(
4997
+ new Promise((resolve) => {
4998
+ const off = on(dialog.$el, "hide", () => resolve(hideFn()));
4999
+ on(dialog.$el, "submit", "form", (e) => {
5000
+ e.preventDefault();
5001
+ resolve(submitFn(dialog));
5002
+ off();
5003
+ dialog.hide();
5004
+ });
5005
+ }),
5006
+ { dialog }
5007
+ );
5014
5008
  }
5015
5009
  }
5016
5010
 
@@ -6004,7 +5998,7 @@
6004
5998
  this.$emit();
6005
5999
  },
6006
6000
  connectChildren() {
6007
- const index = this.index();
6001
+ let index = Math.max(0, this.index());
6008
6002
  for (const el of this.connects) {
6009
6003
  children(el).forEach((child, i) => toggleClass(child, this.cls, i === index));
6010
6004
  }
@@ -6124,11 +6118,10 @@
6124
6118
  });
6125
6119
  const animate = prev >= 0 && prev !== next;
6126
6120
  this.connects.forEach(async ({ children: children2 }) => {
6127
- await this.toggleElement(
6128
- toArray(children2).filter((child) => hasClass(child, this.cls)),
6129
- false,
6130
- animate
6121
+ const actives = toArray(children2).filter(
6122
+ (child, i) => i !== active && hasClass(child, this.cls)
6131
6123
  );
6124
+ await this.toggleElement(actives, false, animate);
6132
6125
  await this.toggleElement(children2[active], true, animate);
6133
6126
  });
6134
6127
  }
@@ -6171,8 +6164,8 @@
6171
6164
  queued: true
6172
6165
  },
6173
6166
  computed: {
6174
- target({ href, target }, $el) {
6175
- target = queryAll(target || href, $el);
6167
+ target({ target }, $el) {
6168
+ target = queryAll(target || $el.hash, $el);
6176
6169
  return target.length && target || [$el];
6177
6170
  }
6178
6171
  },
@@ -6297,11 +6290,12 @@
6297
6290
  return;
6298
6291
  }
6299
6292
  const toggled = this.target.filter(this.isToggled);
6300
- await this.toggleElement(toggled, false);
6301
- await this.toggleElement(
6302
- this.target.filter((el) => !includes(toggled, el)),
6303
- true
6304
- );
6293
+ if (await this.toggleElement(toggled, false)) {
6294
+ await this.toggleElement(
6295
+ this.target.filter((el) => !includes(toggled, el)),
6296
+ true
6297
+ );
6298
+ }
6305
6299
  }
6306
6300
  }
6307
6301
  };