uikit 3.15.11-dev.fd61e70ff → 3.15.12-dev.e4023717f

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 (47) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/util.js +26 -20
  3. package/dist/css/uikit-core-rtl.css +3 -3
  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 +3 -3
  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 +14 -13
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +32 -30
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +160 -148
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +168 -156
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +19 -17
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +37 -36
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +29 -29
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +84 -73
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +29 -29
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +95 -78
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +40 -37
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +43 -39
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +12 -12
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +574 -527
  38. package/dist/js/uikit-core.min.js +1 -17
  39. package/dist/js/uikit-icons.js +3 -3
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +862 -798
  42. package/dist/js/uikit.min.js +1 -17
  43. package/package.json +14 -14
  44. package/src/js/core/drop.js +5 -1
  45. package/src/js/core/sticky.js +6 -7
  46. package/src/js/util/env.js +1 -3
  47. package/src/js/util/position.js +11 -6
@@ -1 +1 @@
1
- /*! UIkit 3.15.11-dev.fd61e70ff | 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=p=>()=>c===b(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,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,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,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(i):e.hasClass(s,v)?T(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 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=>({class:e.attr(f,"class"),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){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 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 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: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(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]),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!$([h.left,h.right],[i.left,i.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.12-dev.e4023717f | 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=p=>()=>c===b(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,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,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,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(i):e.hasClass(s,v)?T(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 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=>({class:e.attr(f,"class"),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){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 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 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: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(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]),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!$([h.left,h.right],[i.left,i.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,4 +1,4 @@
1
- /*! UIkit 3.15.11-dev.fd61e70ff | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.12-dev.e4023717f | 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')) :
@@ -8,17 +8,19 @@
8
8
 
9
9
  var Container = {
10
10
  props: {
11
- container: Boolean },
12
-
11
+ container: Boolean
12
+ },
13
13
 
14
14
  data: {
15
- container: true },
16
-
15
+ container: true
16
+ },
17
17
 
18
18
  computed: {
19
19
  container(_ref) {let { container } = _ref;
20
20
  return container === true && this.$container || container && uikitUtil.$(container);
21
- } } };
21
+ }
22
+ }
23
+ };
22
24
 
23
25
  var Togglable = {
24
26
  props: {
@@ -27,8 +29,8 @@
27
29
  duration: Number,
28
30
  velocity: Number,
29
31
  origin: String,
30
- transition: String },
31
-
32
+ transition: String
33
+ },
32
34
 
33
35
  data: {
34
36
  cls: false,
@@ -38,8 +40,8 @@
38
40
  origin: false,
39
41
  transition: 'ease',
40
42
  clsEnter: 'uk-togglabe-enter',
41
- clsLeave: 'uk-togglabe-leave' },
42
-
43
+ clsLeave: 'uk-togglabe-leave'
44
+ },
43
45
 
44
46
  computed: {
45
47
  hasAnimation(_ref) {let { animation } = _ref;
@@ -48,8 +50,8 @@
48
50
 
49
51
  hasTransition(_ref2) {let { animation } = _ref2;
50
52
  return ['slide', 'reveal'].some((transition) => uikitUtil.startsWith(animation[0], transition));
51
- } },
52
-
53
+ }
54
+ },
53
55
 
54
56
  methods: {
55
57
  toggleElement(targets, toggle, animate) {
@@ -126,9 +128,9 @@
126
128
  if (changed) {
127
129
  uikitUtil.trigger(el, 'toggled', [toggled, this]);
128
130
  }
129
- } } };
130
-
131
-
131
+ }
132
+ }
133
+ };
132
134
 
133
135
  function toggleInstant(el, show, _ref3) {let { _toggle } = _ref3;
134
136
  uikitUtil.Animation.cancel(el);
@@ -200,9 +202,9 @@
200
202
  'borderBottom',
201
203
  'borderLeft',
202
204
  'borderImage',
203
- marginStartProp]) });
204
-
205
+ marginStartProp])
205
206
 
207
+ });
206
208
 
207
209
  uikitUtil.css(el, {
208
210
  padding: 0,
@@ -213,8 +215,8 @@
213
215
  width: dim.width,
214
216
  height: dim.height,
215
217
  overflow: 'hidden',
216
- [dimProp]: currentDim });
217
-
218
+ [dimProp]: currentDim
219
+ });
218
220
 
219
221
  const percent = currentDim / endDim;
220
222
  duration = (velocity * endDim + duration) * (show ? 1 - percent : percent);
@@ -263,16 +265,16 @@
263
265
  offset: null,
264
266
  flip: Boolean,
265
267
  shift: Boolean,
266
- inset: Boolean },
267
-
268
+ inset: Boolean
269
+ },
268
270
 
269
271
  data: {
270
272
  pos: "bottom-" + (uikitUtil.isRtl ? 'right' : 'left'),
271
273
  offset: false,
272
274
  flip: true,
273
275
  shift: true,
274
- inset: false },
275
-
276
+ inset: false
277
+ },
276
278
 
277
279
  connected() {
278
280
  this.pos = this.$props.pos.split('-').concat('center').slice(0, 2);
@@ -287,8 +289,8 @@
287
289
 
288
290
  const attach = {
289
291
  element: [this.inset ? this.dir : uikitUtil.flipPosition(this.dir), this.align],
290
- target: [this.dir, this.align] };
291
-
292
+ target: [this.dir, this.align]
293
+ };
292
294
 
293
295
  if (this.axis === 'y') {
294
296
  for (const prop in attach) {
@@ -310,8 +312,8 @@
310
312
  offset,
311
313
  boundary,
312
314
  placement,
313
- viewportOffset: this.getViewportOffset(element) });
314
-
315
+ viewportOffset: this.getViewportOffset(element)
316
+ });
315
317
 
316
318
  // Restore scroll position
317
319
  scrollElement.scrollTop = scrollTop;
@@ -342,7 +344,9 @@
342
344
 
343
345
  getViewportOffset(element) {
344
346
  return uikitUtil.toPx(uikitUtil.css(element, '--uk-position-viewport-offset'));
345
- } } };
347
+ }
348
+ }
349
+ };
346
350
 
347
351
  var Component = {
348
352
  mixins: [Container, Togglable, Position],
@@ -351,8 +355,8 @@
351
355
 
352
356
  props: {
353
357
  delay: Number,
354
- title: String },
355
-
358
+ title: String
359
+ },
356
360
 
357
361
  data: {
358
362
  pos: 'top',
@@ -360,16 +364,16 @@
360
364
  delay: 0,
361
365
  animation: ['uk-animation-scale-up'],
362
366
  duration: 100,
363
- cls: 'uk-active' },
364
-
367
+ cls: 'uk-active'
368
+ },
365
369
 
366
370
  beforeConnect() {
367
371
  this.id = "uk-tooltip-" + this._uid;
368
372
  this._hasTitle = uikitUtil.hasAttr(this.$el, 'title');
369
373
  uikitUtil.attr(this.$el, {
370
374
  title: '',
371
- 'aria-describedby': this.id });
372
-
375
+ 'aria-describedby': this.id
376
+ });
373
377
  makeFocusable(this.$el);
374
378
  },
375
379
 
@@ -442,8 +446,8 @@
442
446
  });
443
447
 
444
448
  this.toggleElement(this.tooltip, true);
445
- } },
446
-
449
+ }
450
+ },
447
451
 
448
452
  events: {
449
453
  focus: 'show',
@@ -461,9 +465,9 @@
461
465
  if (uikitUtil.isTouch(e)) {
462
466
  this.show();
463
467
  }
464
- } } };
465
-
466
-
468
+ }
469
+ }
470
+ };
467
471
 
468
472
  function makeFocusable(el) {
469
473
  if (!uikitUtil.isFocusable(el)) {
@@ -1 +1 @@
1
- /*! UIkit 3.15.11-dev.fd61e70ff | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],g):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitTooltip=g(s.UIkit.util))})(this,function(s){"use strict";var g={props:{container:Boolean},data:{container:!0},computed:{container(o){let{container:t}=o;return t===!0&&this.$container||t&&s.$(t)}}},E={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(o){let{animation:t}=o;return!!t[0]},hasTransition(o){let{animation:t}=o;return["slide","reveal"].some(e=>s.startsWith(t[0],e))}},methods:{toggleElement(o,t,e){return new Promise(n=>Promise.all(s.toNodes(o).map(i=>{const r=s.isBoolean(t)?t:!this.isToggled(i);if(!s.trigger(i,"before"+(r?"show":"hide"),[this]))return Promise.reject();const h=(s.isFunction(e)?e:e===!1||!this.hasAnimation?S:this.hasTransition?B:I)(i,r,this),c=r?this.clsEnter:this.clsLeave;s.addClass(i,c),s.trigger(i,r?"show":"hide",[this]);const a=()=>{s.removeClass(i,c),s.trigger(i,r?"shown":"hidden",[this])};return h?h.then(a,()=>(s.removeClass(i,c),Promise.reject())):a()})).then(n,s.noop))},isToggled(o){return o===void 0&&(o=this.$el),[o]=s.toNodes(o),s.hasClass(o,this.clsEnter)?!0:s.hasClass(o,this.clsLeave)?!1:this.cls?s.hasClass(o,this.cls.split(" ")[0]):s.isVisible(o)},_toggle(o,t){if(!o)return;t=Boolean(t);let e;this.cls?(e=s.includes(this.cls," ")||t!==s.hasClass(o,this.cls),e&&s.toggleClass(o,this.cls,s.includes(this.cls," ")?void 0:t)):(e=t===o.hidden,e&&(o.hidden=!t)),s.$$("[autofocus]",o).some(n=>s.isVisible(n)?n.focus()||!0:n.blur()),e&&s.trigger(o,"toggled",[t,this])}}};function S(o,t,e){let{_toggle:n}=e;return s.Animation.cancel(o),s.Transition.cancel(o),n(o,t)}async function B(o,t,e){var n;let{animation:i,duration:r,velocity:h,transition:c,_toggle:a}=e;const[f="reveal",l="top"]=((n=i[0])==null?void 0:n.split("-"))||[],u=[["left","right"],["top","bottom"]],y=u[s.includes(u[0],l)?0:1],x=y[1]===l,v=["width","height"][u.indexOf(y)],p="margin-"+y[0],b="margin-"+l;let m=s.dimensions(o)[v];const N=s.Transition.inProgress(o);await s.Transition.cancel(o),t&&a(o,!0);const j=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",p,b].map(O=>[O,o.style[O]])),w=s.dimensions(o),P=s.toFloat(s.css(o,p)),C=s.toFloat(s.css(o,b)),d=w[v]+C;!N&&!t&&(m+=C);const[T]=s.wrapInner(o,"<div>");s.css(T,{boxSizing:"border-box",height:w.height,width:w.width,...s.css(o,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",b])}),s.css(o,{padding:0,border:0,minWidth:0,minHeight:0,[b]:0,width:w.width,height:w.height,overflow:"hidden",[v]:m});const A=m/d;r=(h*d+r)*(t?1-A:A);const _={[v]:t?d:0};x&&(s.css(o,p,d-m+P),_[p]=t?P:d+P),!x^f==="reveal"&&(s.css(T,p,-d+m),s.Transition.start(T,{[p]:t?0:-d},r,c));try{await s.Transition.start(o,_,r,c)}finally{s.css(o,j),s.unwrap(T.firstChild),t||a(o,!1)}}function I(o,t,e){s.Animation.cancel(o);const{animation:n,duration:i,_toggle:r}=e;return t?(r(o,!0),s.Animation.in(o,n[0],i,e.origin)):s.Animation.out(o,n[1]||n[0],i,e.origin).then(()=>r(o,!1))}var L={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:"bottom-"+(s.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=s.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(o,t,e){let n=[this.getPositionOffset(o),this.getShiftOffset(o)];const i=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:s.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in r)r[l].reverse();n.reverse(),i.reverse()}const[h]=s.scrollParents(o,/auto|scroll/),{scrollTop:c,scrollLeft:a}=h,f=s.dimensions(o);s.css(o,{top:-f.height,left:-f.width}),s.positionAt(o,t,{attach:r,offset:n,boundary:e,placement:i,viewportOffset:this.getViewportOffset(o)}),h.scrollTop=c,h.scrollLeft=a},getPositionOffset(o){return s.toPx(this.offset===!1?s.css(o,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",o)*(s.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(o){return this.align==="center"?0:s.toPx(s.css(o,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",o)*(s.includes(["left","top"],this.align)?1:-1)},getViewportOffset(o){return s.toPx(s.css(o,"--uk-position-viewport-offset"))}}},$={mixins:[g,E,L],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="uk-tooltip-"+this._uid,this._hasTitle=s.hasAttr(this.$el,"title"),s.attr(this.$el,{title:"","aria-describedby":this.id}),D(this.$el)},disconnected(){this.hide(),s.attr(this.$el,"title")||s.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(this._unbind=s.once(document,"keydown "+s.pointerDown,this.hide,!1,o=>o.type===s.pointerDown&&!s.within(o.target,this.$el)||o.type==="keydown"&&o.keyCode===27),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){s.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&(await this.toggleElement(this.tooltip,!1,!1),s.remove(this.tooltip),this.tooltip=null,this._unbind()))},_show(){this.tooltip=s.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>"),s.on(this.tooltip,"toggled",(o,t)=>{if(!t)return;this.positionAt(this.tooltip,this.$el);const[e,n]=F(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?s.flipPosition(e)+"-"+n:n+"-"+s.flipPosition(e)}),this.toggleElement(this.tooltip,!0)}},events:{focus:"show",blur:"hide",[s.pointerEnter+" "+s.pointerLeave](o){s.isTouch(o)||this[o.type===s.pointerEnter?"show":"hide"]()},[s.pointerDown](o){s.isTouch(o)&&this.show()}}};function D(o){s.isFocusable(o)||s.attr(o,"tabindex","0")}function F(o,t,e){let[n,i]=e;const r=s.offset(o),h=s.offset(t),c=[["left","right"],["top","bottom"]];for(const f of c){if(r[f[0]]>=h[f[1]]){n=f[1];break}if(r[f[1]]<=h[f[0]]){n=f[0];break}}const a=s.includes(c[0],n)?c[1]:c[0];return r[a[0]]===h[a[0]]?i=a[0]:r[a[1]]===h[a[1]]?i=a[1]:i="center",[n,i]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",$),$});
1
+ /*! UIkit 3.15.12-dev.e4023717f | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],g):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitTooltip=g(s.UIkit.util))})(this,function(s){"use strict";var g={props:{container:Boolean},data:{container:!0},computed:{container(o){let{container:t}=o;return t===!0&&this.$container||t&&s.$(t)}}},E={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(o){let{animation:t}=o;return!!t[0]},hasTransition(o){let{animation:t}=o;return["slide","reveal"].some(e=>s.startsWith(t[0],e))}},methods:{toggleElement(o,t,e){return new Promise(n=>Promise.all(s.toNodes(o).map(i=>{const r=s.isBoolean(t)?t:!this.isToggled(i);if(!s.trigger(i,"before"+(r?"show":"hide"),[this]))return Promise.reject();const h=(s.isFunction(e)?e:e===!1||!this.hasAnimation?S:this.hasTransition?B:I)(i,r,this),c=r?this.clsEnter:this.clsLeave;s.addClass(i,c),s.trigger(i,r?"show":"hide",[this]);const a=()=>{s.removeClass(i,c),s.trigger(i,r?"shown":"hidden",[this])};return h?h.then(a,()=>(s.removeClass(i,c),Promise.reject())):a()})).then(n,s.noop))},isToggled(o){return o===void 0&&(o=this.$el),[o]=s.toNodes(o),s.hasClass(o,this.clsEnter)?!0:s.hasClass(o,this.clsLeave)?!1:this.cls?s.hasClass(o,this.cls.split(" ")[0]):s.isVisible(o)},_toggle(o,t){if(!o)return;t=Boolean(t);let e;this.cls?(e=s.includes(this.cls," ")||t!==s.hasClass(o,this.cls),e&&s.toggleClass(o,this.cls,s.includes(this.cls," ")?void 0:t)):(e=t===o.hidden,e&&(o.hidden=!t)),s.$$("[autofocus]",o).some(n=>s.isVisible(n)?n.focus()||!0:n.blur()),e&&s.trigger(o,"toggled",[t,this])}}};function S(o,t,e){let{_toggle:n}=e;return s.Animation.cancel(o),s.Transition.cancel(o),n(o,t)}async function B(o,t,e){var n;let{animation:i,duration:r,velocity:h,transition:c,_toggle:a}=e;const[f="reveal",l="top"]=((n=i[0])==null?void 0:n.split("-"))||[],u=[["left","right"],["top","bottom"]],y=u[s.includes(u[0],l)?0:1],x=y[1]===l,v=["width","height"][u.indexOf(y)],p="margin-"+y[0],b="margin-"+l;let m=s.dimensions(o)[v];const N=s.Transition.inProgress(o);await s.Transition.cancel(o),t&&a(o,!0);const j=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",p,b].map(O=>[O,o.style[O]])),w=s.dimensions(o),P=s.toFloat(s.css(o,p)),C=s.toFloat(s.css(o,b)),d=w[v]+C;!N&&!t&&(m+=C);const[T]=s.wrapInner(o,"<div>");s.css(T,{boxSizing:"border-box",height:w.height,width:w.width,...s.css(o,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",b])}),s.css(o,{padding:0,border:0,minWidth:0,minHeight:0,[b]:0,width:w.width,height:w.height,overflow:"hidden",[v]:m});const A=m/d;r=(h*d+r)*(t?1-A:A);const _={[v]:t?d:0};x&&(s.css(o,p,d-m+P),_[p]=t?P:d+P),!x^f==="reveal"&&(s.css(T,p,-d+m),s.Transition.start(T,{[p]:t?0:-d},r,c));try{await s.Transition.start(o,_,r,c)}finally{s.css(o,j),s.unwrap(T.firstChild),t||a(o,!1)}}function I(o,t,e){s.Animation.cancel(o);const{animation:n,duration:i,_toggle:r}=e;return t?(r(o,!0),s.Animation.in(o,n[0],i,e.origin)):s.Animation.out(o,n[1]||n[0],i,e.origin).then(()=>r(o,!1))}var L={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:"bottom-"+(s.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=s.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(o,t,e){let n=[this.getPositionOffset(o),this.getShiftOffset(o)];const i=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:s.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in r)r[l].reverse();n.reverse(),i.reverse()}const[h]=s.scrollParents(o,/auto|scroll/),{scrollTop:c,scrollLeft:a}=h,f=s.dimensions(o);s.css(o,{top:-f.height,left:-f.width}),s.positionAt(o,t,{attach:r,offset:n,boundary:e,placement:i,viewportOffset:this.getViewportOffset(o)}),h.scrollTop=c,h.scrollLeft=a},getPositionOffset(o){return s.toPx(this.offset===!1?s.css(o,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",o)*(s.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(o){return this.align==="center"?0:s.toPx(s.css(o,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",o)*(s.includes(["left","top"],this.align)?1:-1)},getViewportOffset(o){return s.toPx(s.css(o,"--uk-position-viewport-offset"))}}},$={mixins:[g,E,L],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="uk-tooltip-"+this._uid,this._hasTitle=s.hasAttr(this.$el,"title"),s.attr(this.$el,{title:"","aria-describedby":this.id}),D(this.$el)},disconnected(){this.hide(),s.attr(this.$el,"title")||s.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(this._unbind=s.once(document,"keydown "+s.pointerDown,this.hide,!1,o=>o.type===s.pointerDown&&!s.within(o.target,this.$el)||o.type==="keydown"&&o.keyCode===27),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){s.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&(await this.toggleElement(this.tooltip,!1,!1),s.remove(this.tooltip),this.tooltip=null,this._unbind()))},_show(){this.tooltip=s.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>"),s.on(this.tooltip,"toggled",(o,t)=>{if(!t)return;this.positionAt(this.tooltip,this.$el);const[e,n]=F(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?s.flipPosition(e)+"-"+n:n+"-"+s.flipPosition(e)}),this.toggleElement(this.tooltip,!0)}},events:{focus:"show",blur:"hide",[s.pointerEnter+" "+s.pointerLeave](o){s.isTouch(o)||this[o.type===s.pointerEnter?"show":"hide"]()},[s.pointerDown](o){s.isTouch(o)&&this.show()}}};function D(o){s.isFocusable(o)||s.attr(o,"tabindex","0")}function F(o,t,e){let[n,i]=e;const r=s.offset(o),h=s.offset(t),c=[["left","right"],["top","bottom"]];for(const f of c){if(r[f[0]]>=h[f[1]]){n=f[1];break}if(r[f[1]]<=h[f[0]]){n=f[0];break}}const a=s.includes(c[0],n)?c[1]:c[0];return r[a[0]]===h[a[0]]?i=a[0]:r[a[1]]===h[a[1]]?i=a[1]:i="center",[n,i]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",$),$});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.11-dev.fd61e70ff | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.12-dev.e4023717f | 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')) :
@@ -21,8 +21,8 @@
21
21
  name: String,
22
22
  params: Object,
23
23
  type: String,
24
- url: String },
25
-
24
+ url: String
25
+ },
26
26
 
27
27
  data: {
28
28
  allow: false,
@@ -49,8 +49,8 @@
49
49
  load: uikitUtil.noop,
50
50
  loadEnd: uikitUtil.noop,
51
51
  loadStart: uikitUtil.noop,
52
- progress: uikitUtil.noop },
53
-
52
+ progress: uikitUtil.noop
53
+ },
54
54
 
55
55
  events: {
56
56
  change(e) {
@@ -93,8 +93,8 @@
93
93
  dragleave(e) {
94
94
  stop(e);
95
95
  uikitUtil.removeClass(this.$el, this.clsDragover);
96
- } },
97
-
96
+ }
97
+ },
98
98
 
99
99
  methods: {
100
100
  async upload(files) {
@@ -152,8 +152,8 @@
152
152
  }
153
153
 
154
154
  return this.beforeSend(env);
155
- } });
156
-
155
+ }
156
+ });
157
157
 
158
158
  this.complete(xhr);
159
159
 
@@ -168,9 +168,9 @@
168
168
  };
169
169
 
170
170
  await upload(chunks.shift());
171
- } } };
172
-
173
-
171
+ }
172
+ }
173
+ };
174
174
 
175
175
  function match(pattern, path) {
176
176
  return path.match(
@@ -1 +1 @@
1
- /*! UIkit 3.15.11-dev.fd61e70ff | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(o,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],n):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=n(o.UIkit.util))})(this,function(o){"use strict";var n={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize: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,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",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){i(e);const t=e.dataTransfer;!(t!=null&&t.files)||(o.removeClass(this.$el,this.clsDragover),this.upload(t.files))},dragenter(e){i(e)},dragover(e){i(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){i(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 a of e){if(this.maxSize&&this.maxSize*1e3<a.size){this.fail(this.msgInvalidSize.replace("%s",this.maxSize));return}if(this.allow&&!d(this.allow,a.name)){this.fail(this.msgInvalidName.replace("%s",this.allow));return}if(this.mime&&!d(this.mime,a.type)){this.fail(this.msgInvalidMime.replace("%s",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const t=c(e,this.concurrent),s=async a=>{const l=new FormData;a.forEach(r=>l.append(this.name,r));for(const r in this.params)l.append(r,this.params[r]);try{const r=await o.ajax(this.url,{data:l,method:this.method,responseType:this.type,beforeSend:h=>{const{xhr:p}=h;p.upload&&o.on(p.upload,"progress",this.progress);for(const m of["loadStart","load","loadEnd","abort"])o.on(p,m.toLowerCase(),this[m]);return this.beforeSend(h)}});this.complete(r),t.length?await s(t.shift()):this.completeAll(r)}catch(r){this.error(r)}};await s(t.shift())}}};function d(e,t){return t.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function c(e,t){const s=[];for(let a=0;a<e.length;a+=t)s.push(e.slice(a,a+t));return s}function i(e){e.preventDefault(),e.stopPropagation()}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",n),n});
1
+ /*! UIkit 3.15.12-dev.e4023717f | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(o,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],n):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=n(o.UIkit.util))})(this,function(o){"use strict";var n={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize: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,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",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){i(e);const t=e.dataTransfer;!(t!=null&&t.files)||(o.removeClass(this.$el,this.clsDragover),this.upload(t.files))},dragenter(e){i(e)},dragover(e){i(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){i(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 a of e){if(this.maxSize&&this.maxSize*1e3<a.size){this.fail(this.msgInvalidSize.replace("%s",this.maxSize));return}if(this.allow&&!d(this.allow,a.name)){this.fail(this.msgInvalidName.replace("%s",this.allow));return}if(this.mime&&!d(this.mime,a.type)){this.fail(this.msgInvalidMime.replace("%s",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const t=c(e,this.concurrent),s=async a=>{const l=new FormData;a.forEach(r=>l.append(this.name,r));for(const r in this.params)l.append(r,this.params[r]);try{const r=await o.ajax(this.url,{data:l,method:this.method,responseType:this.type,beforeSend:h=>{const{xhr:p}=h;p.upload&&o.on(p.upload,"progress",this.progress);for(const m of["loadStart","load","loadEnd","abort"])o.on(p,m.toLowerCase(),this[m]);return this.beforeSend(h)}});this.complete(r),t.length?await s(t.shift()):this.completeAll(r)}catch(r){this.error(r)}};await s(t.shift())}}};function d(e,t){return t.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function c(e,t){const s=[];for(let a=0;a<e.length;a+=t)s.push(e.slice(a,a+t));return s}function i(e){e.preventDefault(),e.stopPropagation()}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",n),n});