uikit 3.9.5-dev.e48c5e252 → 3.10.1-dev.6b26facf9

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 (103) hide show
  1. package/CHANGELOG.md +24 -8
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +4 -2
  4. package/build/.eslintrc.json +10 -1
  5. package/build/build.js +5 -5
  6. package/build/less.js +29 -11
  7. package/build/publishDev.js +2 -1
  8. package/build/scss.js +1 -1
  9. package/build/util.js +1 -20
  10. package/dist/css/uikit-core-rtl.css +24 -13
  11. package/dist/css/uikit-core-rtl.min.css +1 -1
  12. package/dist/css/uikit-core.css +21 -10
  13. package/dist/css/uikit-core.min.css +1 -1
  14. package/dist/css/uikit-rtl.css +24 -13
  15. package/dist/css/uikit-rtl.min.css +1 -1
  16. package/dist/css/uikit.css +21 -10
  17. package/dist/css/uikit.min.css +1 -1
  18. package/dist/js/components/countdown.js +1 -1
  19. package/dist/js/components/countdown.min.js +1 -1
  20. package/dist/js/components/filter.js +5 -5
  21. package/dist/js/components/filter.min.js +1 -1
  22. package/dist/js/components/lightbox-panel.js +2 -2
  23. package/dist/js/components/lightbox-panel.min.js +1 -1
  24. package/dist/js/components/lightbox.js +2 -2
  25. package/dist/js/components/lightbox.min.js +1 -1
  26. package/dist/js/components/notification.js +1 -1
  27. package/dist/js/components/notification.min.js +1 -1
  28. package/dist/js/components/parallax.js +2 -2
  29. package/dist/js/components/parallax.min.js +1 -1
  30. package/dist/js/components/slider-parallax.js +2 -2
  31. package/dist/js/components/slider-parallax.min.js +1 -1
  32. package/dist/js/components/slider.js +2 -2
  33. package/dist/js/components/slider.min.js +1 -1
  34. package/dist/js/components/slideshow-parallax.js +2 -2
  35. package/dist/js/components/slideshow-parallax.min.js +1 -1
  36. package/dist/js/components/slideshow.js +6 -2
  37. package/dist/js/components/slideshow.min.js +1 -1
  38. package/dist/js/components/sortable.js +6 -6
  39. package/dist/js/components/sortable.min.js +1 -1
  40. package/dist/js/components/tooltip.js +3 -2
  41. package/dist/js/components/tooltip.min.js +1 -1
  42. package/dist/js/components/upload.js +1 -1
  43. package/dist/js/components/upload.min.js +1 -1
  44. package/dist/js/uikit-core.js +72 -80
  45. package/dist/js/uikit-core.min.js +1 -1
  46. package/dist/js/uikit-icons.js +1 -1
  47. package/dist/js/uikit-icons.min.js +1 -1
  48. package/dist/js/uikit.js +85 -88
  49. package/dist/js/uikit.min.js +1 -1
  50. package/package.json +9 -11
  51. package/src/js/api/component.js +3 -3
  52. package/src/js/api/state.js +3 -3
  53. package/src/js/components/slideshow.js +4 -0
  54. package/src/js/components/sortable.js +1 -1
  55. package/src/js/components/tooltip.js +2 -1
  56. package/src/js/core/cover.js +1 -2
  57. package/src/js/core/img.js +40 -57
  58. package/src/js/core/sticky.js +1 -1
  59. package/src/js/core/toggle.js +4 -3
  60. package/src/js/mixin/animate.js +4 -4
  61. package/src/js/mixin/internal/slideshow-animations.js +1 -1
  62. package/src/js/mixin/parallax.js +1 -1
  63. package/src/js/util/dom.js +5 -8
  64. package/src/js/util/selector.js +4 -2
  65. package/src/js/util/viewport.js +3 -3
  66. package/src/less/components/cover.less +5 -4
  67. package/src/less/components/divider.less +1 -1
  68. package/src/less/components/list.less +1 -1
  69. package/src/less/components/search.less +9 -6
  70. package/src/less/components/utility.less +5 -3
  71. package/src/less/components/width.less +7 -0
  72. package/src/scss/components/cover.scss +5 -4
  73. package/src/scss/components/divider.scss +1 -1
  74. package/src/scss/components/list.scss +1 -1
  75. package/src/scss/components/search.scss +9 -6
  76. package/src/scss/components/utility.scss +5 -3
  77. package/src/scss/components/width.scss +7 -0
  78. package/src/scss/variables-theme.scss +4 -0
  79. package/src/scss/variables.scss +4 -0
  80. package/tests/base.html +12 -12
  81. package/tests/button.html +1 -1
  82. package/tests/cover.html +5 -5
  83. package/tests/drop.html +2 -2
  84. package/tests/dropdown.html +1 -1
  85. package/tests/flex.html +1 -1
  86. package/tests/grid-masonry.html +1 -1
  87. package/tests/grid-parallax.html +1 -1
  88. package/tests/grid.html +1 -1
  89. package/tests/height.html +2 -2
  90. package/tests/margin.html +1 -1
  91. package/tests/modal.html +2 -2
  92. package/tests/navbar.html +2 -2
  93. package/tests/padding.html +1 -1
  94. package/tests/parallax.html +1 -1
  95. package/tests/search.html +1 -1
  96. package/tests/slider.html +1 -1
  97. package/tests/slideshow.html +2 -2
  98. package/tests/sticky.html +2 -2
  99. package/tests/switcher.html +1 -1
  100. package/tests/tab.html +1 -1
  101. package/tests/utility.html +1 -1
  102. package/tests/video.html +3 -3
  103. package/tests/width.html +1 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | 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')) :
@@ -341,7 +341,7 @@
341
341
  var p = ref$1[2];
342
342
 
343
343
  css[prop] = "rgba(" + (start.map(function (value, i) {
344
- value = value + p * (end[i] - value);
344
+ value += p * (end[i] - value);
345
345
  return i === 3 ? uikitUtil.toFloat(value) : parseInt(value, 10);
346
346
  }).join(',')) + ")";
347
347
  break;
@@ -1 +1 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],p):(t=typeof globalThis!="undefined"?globalThis:t||self,t.UIkitSlideshow_parallax=p(t.UIkit.util))})(this,function(t){"use strict";var p={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=S(this.media);return!e||window.matchMedia(e).matches}}};function S(e){if(t.isString(e)){if(e[0]==="@"){var r="breakpoint-"+e.substr(1);e=t.toFloat(t.getCssVar(r))}else if(isNaN(e))return e}return e&&!isNaN(e)?"(min-width: "+e+"px)":!1}t.memoize(function(e){return new t.Promise(function(r,n){if(!e){n();return}t.startsWith(e,"data:")?r(decodeURIComponent(e.split(",")[1])):t.ajax(e).then(function(a){return r(a.response)},function(){return n("SVG not found.")})})});function z(e){return Math.ceil(Math.max.apply(Math,[0].concat(t.$$("[stroke]",e).map(function(r){try{return r.getTotalLength()}catch{return 0}}))))}var x=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"],F={mixins:[p],props:x.reduce(function(e,r){return e[r]="list",e},{}),data:x.reduce(function(e,r){return e[r]=void 0,e},{}),computed:{props:function(e,r){var n=this;return x.reduce(function(a,s){if(t.isUndefined(e[s]))return a;var c=s.match(/color/i),d=c||s==="opacity",o,h,f,i=e[s].slice();d&&t.css(r,s,""),i.length<2&&i.unshift((s==="scale"?1:d?t.css(r,s):0)||0);var l=T(i);if(c){var b=r.style,m=b.color;i=i.map(function(g){return W(r,g)}),r.style.color=m}else if(t.startsWith(s,"bg")){var u=s==="bgy"?"height":"width";if(i=i.map(function(g){return t.toPx(g,u,n.$el)}),t.css(r,"background-position-"+s[2],""),h=t.css(r,"backgroundPosition").split(" ")[s[2]==="x"?0:1],n.covers){var v=Math.min.apply(Math,i),y=Math.max.apply(Math,i),P=i.indexOf(v)<i.indexOf(y);f=y-v,i=i.map(function(g){return g-(P?v:y)}),o=(P?-f:0)+"px"}else o=h}else i=i.map(t.toFloat);if(s==="stroke"){if(!i.some(function(g){return g}))return a;var I=z(n.$el);t.css(r,"strokeDasharray",I),l==="%"&&(i=i.map(function(g){return g*I/100})),i=i.reverse(),s="strokeDashoffset"}return a[s]={steps:i,unit:l,pos:o,bgPos:h,diff:f},a},{})},bgProps:function(){var e=this;return["bgx","bgy"].filter(function(r){return r in e.props})},covers:function(e,r){return N(r)}},disconnected:function(){delete this._image},update:{read:function(e){var r=this;if(!!this.matchMedia){if(!e.image&&this.covers&&this.bgProps.length){var n=t.css(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(n){var a=new Image;a.src=n,e.image=a,a.naturalWidth||(a.onload=function(){return r.$update()})}}var s=e.image;if(!(!s||!s.naturalWidth)){var c={width:this.$el.offsetWidth,height:this.$el.offsetHeight},d={width:s.naturalWidth,height:s.naturalHeight},o=t.Dimensions.cover(d,c);this.bgProps.forEach(function(h){var f=r.props[h],i=f.diff,l=f.bgPos,b=f.steps,m=h==="bgy"?"height":"width",u=o[m]-c[m];if(u<i)c[m]=o[m]+i-u;else if(u>i){var v=c[m]/t.toPx(l,m,r.$el);v&&(r.props[h].steps=b.map(function(y){return y-(u-i)/v}))}o=t.Dimensions.cover(d,c)}),e.dim=o}}},write:function(e){var r=e.dim;if(!this.matchMedia){t.css(this.$el,{backgroundSize:"",backgroundRepeat:""});return}r&&t.css(this.$el,{backgroundSize:r.width+"px "+r.height+"px",backgroundRepeat:"no-repeat"})},events:["resize"]},methods:{reset:function(){var e=this;t.each(this.getCss(0),function(r,n){return t.css(e.$el,n,"")})},getCss:function(e){var r=this,n=r.props;return Object.keys(n).reduce(function(a,s){var c=n[s],d=c.steps,o=c.unit,h=c.pos,f=_(d,e);switch(s){case"x":case"y":{o=o||"px",a.transform+=" translate"+t.ucfirst(s)+"("+t.toFloat(f).toFixed(o==="px"?0:2)+o+")";break}case"rotate":o=o||"deg",a.transform+=" rotate("+(f+o)+")";break;case"scale":a.transform+=" scale("+f+")";break;case"bgy":case"bgx":a["background-position-"+s[2]]="calc("+h+" + "+f+"px)";break;case"color":case"backgroundColor":case"borderColor":{var i=w(d,e),l=i[0],b=i[1],m=i[2];a[s]="rgba("+l.map(function(u,v){return u=u+m*(b[v]-u),v===3?t.toFloat(u):parseInt(u,10)}).join(",")+")";break}case"blur":o=o||"px",a.filter+=" blur("+(f+o)+")";break;case"hue":o=o||"deg",a.filter+=" hue-rotate("+(f+o)+")";break;case"fopacity":o=o||"%",a.filter+=" opacity("+(f+o)+")";break;case"grayscale":case"invert":case"saturate":case"sepia":o=o||"%",a.filter+=" "+s+"("+(f+o)+")";break;default:a[s]=f}return a},{transform:"",filter:""})}}};function W(e,r){return t.css(t.css(e,"color",r),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(t.toFloat)}function w(e,r){var n=e.length-1,a=Math.min(Math.floor(n*r),n-1),s=e.slice(a,a+2);return s.push(r===1?1:r%(1/n)*n),s}function _(e,r,n){n===void 0&&(n=2);var a=w(e,r),s=a[0],c=a[1],d=a[2];return(t.isNumber(s)?s+Math.abs(s-c)*d*(s<c?1:-1):+c).toFixed(n)}function T(e){return e.reduce(function(r,n){return t.isString(n)&&n.replace(/-|\d/g,"").trim()||r},"")}function N(e){var r=e.style,n=r.backgroundSize,a=t.css(t.css(e,"backgroundSize",""),"backgroundSize")==="cover";return e.style.backgroundSize=n,a}var $={mixins:[F],data:{selItem:"!li"},computed:{item:function(e,r){var n=e.selItem;return t.query(n,r)}},events:[{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(e){var r=this,n=e.type,a=e.detail,s=a.percent,c=a.duration,d=a.timing,o=a.dir;t.fastdom.read(function(){var h=r.getCss(C(n,o,s)),f=r.getCss(M(n)?.5:o>0?1:0);t.fastdom.write(function(){t.css(r.$el,h),t.Transition.start(r.$el,f,c,d).catch(t.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:function(){return this.item},handler:function(){t.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:function(){return this.item},handler:function(e){var r=this,n=e.type,a=e.detail,s=a.percent,c=a.dir;t.fastdom.read(function(){var d=r.getCss(C(n,c,s));t.fastdom.write(function(){return t.css(r.$el,d)})})}}]};function M(e){return t.endsWith(e,"in")}function C(e,r,n){return n/=2,M(e)?r<0?1-n:n:r<0?n:1-n}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("slideshowParallax",$),$});
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],p):(t=typeof globalThis!="undefined"?globalThis:t||self,t.UIkitSlideshow_parallax=p(t.UIkit.util))})(this,function(t){"use strict";var p={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=S(this.media);return!e||window.matchMedia(e).matches}}};function S(e){if(t.isString(e)){if(e[0]==="@"){var r="breakpoint-"+e.substr(1);e=t.toFloat(t.getCssVar(r))}else if(isNaN(e))return e}return e&&!isNaN(e)?"(min-width: "+e+"px)":!1}t.memoize(function(e){return new t.Promise(function(r,n){if(!e){n();return}t.startsWith(e,"data:")?r(decodeURIComponent(e.split(",")[1])):t.ajax(e).then(function(a){return r(a.response)},function(){return n("SVG not found.")})})});function z(e){return Math.ceil(Math.max.apply(Math,[0].concat(t.$$("[stroke]",e).map(function(r){try{return r.getTotalLength()}catch{return 0}}))))}var x=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"],F={mixins:[p],props:x.reduce(function(e,r){return e[r]="list",e},{}),data:x.reduce(function(e,r){return e[r]=void 0,e},{}),computed:{props:function(e,r){var n=this;return x.reduce(function(a,s){if(t.isUndefined(e[s]))return a;var c=s.match(/color/i),u=c||s==="opacity",o,d,f,i=e[s].slice();u&&t.css(r,s,""),i.length<2&&i.unshift((s==="scale"?1:u?t.css(r,s):0)||0);var l=T(i);if(c){var b=r.style,m=b.color;i=i.map(function(g){return W(r,g)}),r.style.color=m}else if(t.startsWith(s,"bg")){var h=s==="bgy"?"height":"width";if(i=i.map(function(g){return t.toPx(g,h,n.$el)}),t.css(r,"background-position-"+s[2],""),d=t.css(r,"backgroundPosition").split(" ")[s[2]==="x"?0:1],n.covers){var v=Math.min.apply(Math,i),y=Math.max.apply(Math,i),P=i.indexOf(v)<i.indexOf(y);f=y-v,i=i.map(function(g){return g-(P?v:y)}),o=(P?-f:0)+"px"}else o=d}else i=i.map(t.toFloat);if(s==="stroke"){if(!i.some(function(g){return g}))return a;var I=z(n.$el);t.css(r,"strokeDasharray",I),l==="%"&&(i=i.map(function(g){return g*I/100})),i=i.reverse(),s="strokeDashoffset"}return a[s]={steps:i,unit:l,pos:o,bgPos:d,diff:f},a},{})},bgProps:function(){var e=this;return["bgx","bgy"].filter(function(r){return r in e.props})},covers:function(e,r){return N(r)}},disconnected:function(){delete this._image},update:{read:function(e){var r=this;if(!!this.matchMedia){if(!e.image&&this.covers&&this.bgProps.length){var n=t.css(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(n){var a=new Image;a.src=n,e.image=a,a.naturalWidth||(a.onload=function(){return r.$update()})}}var s=e.image;if(!(!s||!s.naturalWidth)){var c={width:this.$el.offsetWidth,height:this.$el.offsetHeight},u={width:s.naturalWidth,height:s.naturalHeight},o=t.Dimensions.cover(u,c);this.bgProps.forEach(function(d){var f=r.props[d],i=f.diff,l=f.bgPos,b=f.steps,m=d==="bgy"?"height":"width",h=o[m]-c[m];if(h<i)c[m]=o[m]+i-h;else if(h>i){var v=c[m]/t.toPx(l,m,r.$el);v&&(r.props[d].steps=b.map(function(y){return y-(h-i)/v}))}o=t.Dimensions.cover(u,c)}),e.dim=o}}},write:function(e){var r=e.dim;if(!this.matchMedia){t.css(this.$el,{backgroundSize:"",backgroundRepeat:""});return}r&&t.css(this.$el,{backgroundSize:r.width+"px "+r.height+"px",backgroundRepeat:"no-repeat"})},events:["resize"]},methods:{reset:function(){var e=this;t.each(this.getCss(0),function(r,n){return t.css(e.$el,n,"")})},getCss:function(e){var r=this,n=r.props;return Object.keys(n).reduce(function(a,s){var c=n[s],u=c.steps,o=c.unit,d=c.pos,f=_(u,e);switch(s){case"x":case"y":{o=o||"px",a.transform+=" translate"+t.ucfirst(s)+"("+t.toFloat(f).toFixed(o==="px"?0:2)+o+")";break}case"rotate":o=o||"deg",a.transform+=" rotate("+(f+o)+")";break;case"scale":a.transform+=" scale("+f+")";break;case"bgy":case"bgx":a["background-position-"+s[2]]="calc("+d+" + "+f+"px)";break;case"color":case"backgroundColor":case"borderColor":{var i=w(u,e),l=i[0],b=i[1],m=i[2];a[s]="rgba("+l.map(function(h,v){return h+=m*(b[v]-h),v===3?t.toFloat(h):parseInt(h,10)}).join(",")+")";break}case"blur":o=o||"px",a.filter+=" blur("+(f+o)+")";break;case"hue":o=o||"deg",a.filter+=" hue-rotate("+(f+o)+")";break;case"fopacity":o=o||"%",a.filter+=" opacity("+(f+o)+")";break;case"grayscale":case"invert":case"saturate":case"sepia":o=o||"%",a.filter+=" "+s+"("+(f+o)+")";break;default:a[s]=f}return a},{transform:"",filter:""})}}};function W(e,r){return t.css(t.css(e,"color",r),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(t.toFloat)}function w(e,r){var n=e.length-1,a=Math.min(Math.floor(n*r),n-1),s=e.slice(a,a+2);return s.push(r===1?1:r%(1/n)*n),s}function _(e,r,n){n===void 0&&(n=2);var a=w(e,r),s=a[0],c=a[1],u=a[2];return(t.isNumber(s)?s+Math.abs(s-c)*u*(s<c?1:-1):+c).toFixed(n)}function T(e){return e.reduce(function(r,n){return t.isString(n)&&n.replace(/-|\d/g,"").trim()||r},"")}function N(e){var r=e.style,n=r.backgroundSize,a=t.css(t.css(e,"backgroundSize",""),"backgroundSize")==="cover";return e.style.backgroundSize=n,a}var $={mixins:[F],data:{selItem:"!li"},computed:{item:function(e,r){var n=e.selItem;return t.query(n,r)}},events:[{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(e){var r=this,n=e.type,a=e.detail,s=a.percent,c=a.duration,u=a.timing,o=a.dir;t.fastdom.read(function(){var d=r.getCss(C(n,o,s)),f=r.getCss(M(n)?.5:o>0?1:0);t.fastdom.write(function(){t.css(r.$el,d),t.Transition.start(r.$el,f,c,u).catch(t.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:function(){return this.item},handler:function(){t.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:function(){return this.item},handler:function(e){var r=this,n=e.type,a=e.detail,s=a.percent,c=a.dir;t.fastdom.read(function(){var u=r.getCss(C(n,c,s));t.fastdom.write(function(){return t.css(r.$el,u)})})}}]};function M(e){return t.endsWith(e,"in")}function C(e,r,n){return n/=2,M(e)?r<0?1-n:n:r<0?n:1-n}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("slideshowParallax",$),$});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | 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')) :
@@ -49,7 +49,7 @@
49
49
  if ( unit === void 0 ) unit = '%';
50
50
 
51
51
  value += value ? unit : '';
52
- return uikitUtil.isIE ? ("translateX(" + value + ")") : ("translate3d(" + value + ", 0, 0)"); // currently not translate3d in IE, translate3d within translate3d does not work while transitioning
52
+ return uikitUtil.isIE ? ("translateX(" + value + ")") : ("translate3d(" + value + ", 0, 0)"); // currently, not translate3d in IE, translate3d within translate3d does not work while transitioning
53
53
  }
54
54
 
55
55
  function scale3d(value) {
@@ -1009,6 +1009,10 @@
1009
1009
 
1010
1010
  read: function() {
1011
1011
 
1012
+ if (!this.list) {
1013
+ return false;
1014
+ }
1015
+
1012
1016
  var ref = this.ratio.split(':').map(Number);
1013
1017
  var width = ref[0];
1014
1018
  var height = ref[1];
@@ -1 +1 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */(function(n,g){typeof exports=="object"&&typeof module!="undefined"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],g):(n=typeof globalThis!="undefined"?globalThis:n||self,n.UIkitSlideshow=g(n.UIkit.util))})(this,function(n){"use strict";var g={connected:function(){!n.hasClass(this.$el,this.$name)&&n.addClass(this.$el,this.$name)}},$={slide:{show:function(t){return[{transform:h(t*-100)},{transform:h()}]},percent:function(t){return p(t)},translate:function(t,e){return[{transform:h(e*-100*t)},{transform:h(e*100*(1-t))}]}}};function p(t){return Math.abs(n.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function h(t,e){return t===void 0&&(t=0),e===void 0&&(e="%"),t+=t?e:"",n.isIE?"translateX("+t+")":"translate3d("+t+", 0, 0)"}function b(t){return"scale3d("+t+", "+t+", 1)"}function z(t,e,s,a){var i=a.animation,x=a.easing,o=i.percent,v=i.translate,r=i.show;r===void 0&&(r=n.noop);var c=r(s),u=new n.Deferred;return{dir:s,show:function(d,f,m){var w=this;f===void 0&&(f=0);var l=m?"linear":x;return d-=Math.round(d*n.clamp(f,-1,1)),this.translate(f),I(e,"itemin",{percent:f,duration:d,timing:l,dir:s}),I(t,"itemout",{percent:1-f,duration:d,timing:l,dir:s}),n.Promise.all([n.Transition.start(e,c[1],d,l),n.Transition.start(t,c[0],d,l)]).then(function(){w.reset(),u.resolve()},n.noop),u.promise},cancel:function(){n.Transition.cancel([e,t])},reset:function(){for(var d in c[0])n.css([e,t],d,"")},forward:function(d,f){return f===void 0&&(f=this.percent()),n.Transition.cancel([e,t]),this.show(d,f,!0)},translate:function(d){this.reset();var f=v(d,s);n.css(e,f[1]),n.css(t,f[0]),I(e,"itemtranslatein",{percent:d,dir:s}),I(t,"itemtranslateout",{percent:1-d,dir:s})},percent:function(){return o(t||e,e,s)},getDistance:function(){return t&&t.offsetWidth}}}function I(t,e,s){n.trigger(t,n.createEvent(e,!1,!1,s))}var A={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected:function(){this.autoplay&&this.startAutoplay()},disconnected:function(){this.stopAutoplay()},update:function(){n.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:function(){return document},filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay:function(){var t=this;this.stopAutoplay(),this.interval=setInterval(function(){return(!t.draggable||!n.$(":focus",t.$el))&&(!t.pauseOnHover||!n.matches(t.$el,":hover"))&&!t.stack.length&&t.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},_={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var t=this;["start","move","end"].forEach(function(e){var s=t[e];t[e]=function(a){var i=n.getEventPos(a).x*(n.isRtl?-1:1);t.prevPos=i!==t.pos?t.pos:t.prevPos,t.pos=i,s(a)}})},events:[{name:n.pointerDown,delegate:function(){return this.selSlides},handler:function(t){!this.draggable||!n.isTouch(t)&&N(t.target)||n.closest(t.target,n.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler:function(t){t.preventDefault()}}],methods:{start:function(){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,n.on(document,n.pointerMove,this.move,{passive:!1}),n.on(document,n.pointerUp+" "+n.pointerCancel+" input",this.end,!0),n.css(this.list,"userSelect","none")},move:function(t){var e=this,s=this.pos-this.drag;if(!(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)){n.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;for(var a=this,i=a.slides,x=this,o=x.prevIndex,v=Math.abs(s),r=this.getIndex(o+this.dir,o),c=this._getDistance(o,r)||i[o].offsetWidth;r!==o&&v>c;)this.drag-=c*this.dir,o=r,v-=c,r=this.getIndex(o+this.dir,o),c=this._getDistance(o,r)||i[o].offsetWidth;this.percent=v/c;var u=i[o],d=i[r],f=this.index!==r,m=o===r,w;[this.index,this.prevIndex].filter(function(l){return!n.includes([r,o],l)}).forEach(function(l){n.trigger(i[l],"itemhidden",[e]),m&&(w=!0,e.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||w)&&n.trigger(i[this.index],"itemshown",[this]),f&&(this.prevIndex=o,this.index=r,!m&&n.trigger(u,"beforeitemhide",[this]),n.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),u,!m&&d),f&&(!m&&n.trigger(u,"itemhide",[this]),n.trigger(d,"itemshow",[this]))}},end:function(){if(n.off(document,n.pointerMove,this.move,{passive:!1}),n.off(document,n.pointerUp+" "+n.pointerCancel+" input",this.end,!0),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{var t=(n.isRtl?this.dir*(n.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)}n.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function N(t){return!t.children.length&&t.childNodes.length}var S={data:{selNav:!1},computed:{nav:function(t,e){var s=t.selNav;return n.$(s,e)},selNavItem:function(t){var e=t.attrItem;return"["+e+"],[data-"+e+"]"},navItems:function(t,e){return n.$$(this.selNavItem,e)}},update:{write:function(){var t=this;this.nav&&this.length!==this.nav.children.length&&n.html(this.nav,this.slides.map(function(e,s){return"<li "+t.attrItem+'="'+s+'"><a href></a></li>'}).join("")),this.navItems.concat(this.nav).forEach(function(e){return e&&(e.hidden=!t.maxIndex)}),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(t){t.preventDefault(),this.show(n.data(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var t=this,e=this.getValidIndex();this.navItems.forEach(function(s){var a=n.data(s,t.attrItem);n.toggleClass(s,t.clsActive,n.toNumber(a)===e),n.toggleClass(s,"uk-invisible",t.finite&&(a==="previous"&&e===0||a==="next"&&e>=t.maxIndex))})}}},T={mixins:[A,_,S],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:function(){return{easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}},connected:function(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected:function(){n.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,e){var s=t.velocity;return H(e.offsetWidth/s)},list:function(t,e){var s=t.selList;return n.$(s,e)},maxIndex:function(){return this.length-1},selSlides:function(t){var e=t.selList,s=t.selSlides;return e+" "+(s||"> *")},slides:{get:function(){return n.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(t,e){var s=this;if(e===void 0&&(e=!1),!(this.dragging||!this.length)){var a=this,i=a.stack,x=e?0:i.length,o=function(){i.splice(x,1),i.length&&s.show(i.shift(),!0)};if(i[e?"unshift":"push"](t),!e&&i.length>1){i.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}var v=this.getIndex(this.index),r=n.hasClass(this.slides,this.clsActive)&&this.slides[v],c=this.getIndex(t,this.index),u=this.slides[c];if(r===u){o();return}if(this.dir=D(t,v),this.prevIndex=v,this.index=c,r&&!n.trigger(r,"beforeitemhide",[this])||!n.trigger(u,"beforeitemshow",[this,r])){this.index=this.prevIndex,o();return}var d=this._show(r,u,e).then(function(){return r&&n.trigger(r,"itemhidden",[s]),n.trigger(u,"itemshown",[s]),new n.Promise(function(f){n.fastdom.write(function(){i.shift(),i.length?s.show(i.shift(),!0):s._transitioner=null,f()})})});return r&&n.trigger(r,"itemhide",[this]),n.trigger(u,"itemshow",[this]),d}},getIndex:function(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.index),n.clamp(n.getIndex(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex:function(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.prevIndex),this.getIndex(t,e)},_show:function(t,e,s){if(this._transitioner=this._getTransitioner(t,e,this.dir,n.assign({easing:s?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),!s&&!t)return this._translate(1),n.Promise.resolve();var a=this.stack,i=a.length;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_getDistance:function(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate:function(t,e,s){e===void 0&&(e=this.prevIndex),s===void 0&&(s=this.index);var a=this._getTransitioner(e!==s?e:!1,s);return a.translate(t),a},_getTransitioner:function(t,e,s,a){return t===void 0&&(t=this.prevIndex),e===void 0&&(e=this.index),s===void 0&&(s=this.dir||1),a===void 0&&(a=this.transitionOptions),new this.Transitioner(n.isNumber(t)?this.slides[t]:t,n.isNumber(e)?this.slides[e]:e,s*(n.isRtl?-1:1),a)}}};function D(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function H(t){return .5*t+300}var M={mixins:[T],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:$,Transitioner:z},computed:{animation:function(t){var e=t.animation,s=t.Animations;return n.assign(s[e]||s.slide,{name:e})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){var e=t.target;this.$update(e)},beforeitemshow:function(t){var e=t.target;n.addClass(e,this.clsActive)},itemshown:function(t){var e=t.target;n.addClass(e,this.clsActivated)},itemhidden:function(t){var e=t.target;n.removeClass(e,this.clsActive,this.clsActivated)}}},C=n.assign({},$,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(t){return 1-n.css(t,"opacity")},translate:function(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:b(1+.5),zIndex:0},{zIndex:-1}]},percent:function(t){return 1-n.css(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:b(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show:function(t){return t<0?[{transform:h(30),zIndex:-1},{transform:h(),zIndex:0}]:[{transform:h(-100),zIndex:0},{transform:h(),zIndex:-1}]},percent:function(t,e,s){return s<0?1-p(e):p(t)},translate:function(t,e){return e<0?[{transform:h(30*t),zIndex:-1},{transform:h(-100*(1-t)),zIndex:0}]:[{transform:h(-t*100),zIndex:0},{transform:h(30*(1-t)),zIndex:-1}]}},push:{show:function(t){return t<0?[{transform:h(100),zIndex:0},{transform:h(),zIndex:-1}]:[{transform:h(-30),zIndex:-1},{transform:h(),zIndex:0}]},percent:function(t,e,s){return s>0?1-p(e):p(t)},translate:function(t,e){return e<0?[{transform:h(t*100),zIndex:0},{transform:h(-30*(1-t)),zIndex:-1}]:[{transform:h(-30*t),zIndex:-1},{transform:h(100*(1-t)),zIndex:0}]}}}),E={update:{write:function(){if(!(this.stack.length||this.dragging)){var t=this.getValidIndex(this.index);(!~this.prevIndex||this.index!==t)&&this.show(t)}},events:["resize"]}},y={mixins:[g,M,E],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:C},update:{read:function(){var t=this.ratio.split(":").map(Number),e=t[0],s=t[1];return s=s*this.list.offsetWidth/e||0,this.minHeight&&(s=Math.max(this.minHeight,s)),this.maxHeight&&(s=Math.min(this.maxHeight,s)),{height:s-n.boxModelAdjust(this.list,"height","content-box")}},write:function(t){var e=t.height;e>0&&n.css(this.list,"minHeight",e)},events:["resize"]}};return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("slideshow",y),y});
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(n,g){typeof exports=="object"&&typeof module!="undefined"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],g):(n=typeof globalThis!="undefined"?globalThis:n||self,n.UIkitSlideshow=g(n.UIkit.util))})(this,function(n){"use strict";var g={connected:function(){!n.hasClass(this.$el,this.$name)&&n.addClass(this.$el,this.$name)}},$={slide:{show:function(t){return[{transform:h(t*-100)},{transform:h()}]},percent:function(t){return p(t)},translate:function(t,e){return[{transform:h(e*-100*t)},{transform:h(e*100*(1-t))}]}}};function p(t){return Math.abs(n.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function h(t,e){return t===void 0&&(t=0),e===void 0&&(e="%"),t+=t?e:"",n.isIE?"translateX("+t+")":"translate3d("+t+", 0, 0)"}function b(t){return"scale3d("+t+", "+t+", 1)"}function z(t,e,s,a){var i=a.animation,x=a.easing,o=i.percent,v=i.translate,r=i.show;r===void 0&&(r=n.noop);var c=r(s),u=new n.Deferred;return{dir:s,show:function(d,f,m){var w=this;f===void 0&&(f=0);var l=m?"linear":x;return d-=Math.round(d*n.clamp(f,-1,1)),this.translate(f),I(e,"itemin",{percent:f,duration:d,timing:l,dir:s}),I(t,"itemout",{percent:1-f,duration:d,timing:l,dir:s}),n.Promise.all([n.Transition.start(e,c[1],d,l),n.Transition.start(t,c[0],d,l)]).then(function(){w.reset(),u.resolve()},n.noop),u.promise},cancel:function(){n.Transition.cancel([e,t])},reset:function(){for(var d in c[0])n.css([e,t],d,"")},forward:function(d,f){return f===void 0&&(f=this.percent()),n.Transition.cancel([e,t]),this.show(d,f,!0)},translate:function(d){this.reset();var f=v(d,s);n.css(e,f[1]),n.css(t,f[0]),I(e,"itemtranslatein",{percent:d,dir:s}),I(t,"itemtranslateout",{percent:1-d,dir:s})},percent:function(){return o(t||e,e,s)},getDistance:function(){return t&&t.offsetWidth}}}function I(t,e,s){n.trigger(t,n.createEvent(e,!1,!1,s))}var A={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected:function(){this.autoplay&&this.startAutoplay()},disconnected:function(){this.stopAutoplay()},update:function(){n.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:function(){return document},filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay:function(){var t=this;this.stopAutoplay(),this.interval=setInterval(function(){return(!t.draggable||!n.$(":focus",t.$el))&&(!t.pauseOnHover||!n.matches(t.$el,":hover"))&&!t.stack.length&&t.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},_={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var t=this;["start","move","end"].forEach(function(e){var s=t[e];t[e]=function(a){var i=n.getEventPos(a).x*(n.isRtl?-1:1);t.prevPos=i!==t.pos?t.pos:t.prevPos,t.pos=i,s(a)}})},events:[{name:n.pointerDown,delegate:function(){return this.selSlides},handler:function(t){!this.draggable||!n.isTouch(t)&&N(t.target)||n.closest(t.target,n.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler:function(t){t.preventDefault()}}],methods:{start:function(){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,n.on(document,n.pointerMove,this.move,{passive:!1}),n.on(document,n.pointerUp+" "+n.pointerCancel+" input",this.end,!0),n.css(this.list,"userSelect","none")},move:function(t){var e=this,s=this.pos-this.drag;if(!(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)){n.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;for(var a=this,i=a.slides,x=this,o=x.prevIndex,v=Math.abs(s),r=this.getIndex(o+this.dir,o),c=this._getDistance(o,r)||i[o].offsetWidth;r!==o&&v>c;)this.drag-=c*this.dir,o=r,v-=c,r=this.getIndex(o+this.dir,o),c=this._getDistance(o,r)||i[o].offsetWidth;this.percent=v/c;var u=i[o],d=i[r],f=this.index!==r,m=o===r,w;[this.index,this.prevIndex].filter(function(l){return!n.includes([r,o],l)}).forEach(function(l){n.trigger(i[l],"itemhidden",[e]),m&&(w=!0,e.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||w)&&n.trigger(i[this.index],"itemshown",[this]),f&&(this.prevIndex=o,this.index=r,!m&&n.trigger(u,"beforeitemhide",[this]),n.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),u,!m&&d),f&&(!m&&n.trigger(u,"itemhide",[this]),n.trigger(d,"itemshow",[this]))}},end:function(){if(n.off(document,n.pointerMove,this.move,{passive:!1}),n.off(document,n.pointerUp+" "+n.pointerCancel+" input",this.end,!0),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{var t=(n.isRtl?this.dir*(n.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)}n.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function N(t){return!t.children.length&&t.childNodes.length}var S={data:{selNav:!1},computed:{nav:function(t,e){var s=t.selNav;return n.$(s,e)},selNavItem:function(t){var e=t.attrItem;return"["+e+"],[data-"+e+"]"},navItems:function(t,e){return n.$$(this.selNavItem,e)}},update:{write:function(){var t=this;this.nav&&this.length!==this.nav.children.length&&n.html(this.nav,this.slides.map(function(e,s){return"<li "+t.attrItem+'="'+s+'"><a href></a></li>'}).join("")),this.navItems.concat(this.nav).forEach(function(e){return e&&(e.hidden=!t.maxIndex)}),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(t){t.preventDefault(),this.show(n.data(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var t=this,e=this.getValidIndex();this.navItems.forEach(function(s){var a=n.data(s,t.attrItem);n.toggleClass(s,t.clsActive,n.toNumber(a)===e),n.toggleClass(s,"uk-invisible",t.finite&&(a==="previous"&&e===0||a==="next"&&e>=t.maxIndex))})}}},T={mixins:[A,_,S],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:function(){return{easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}},connected:function(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected:function(){n.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,e){var s=t.velocity;return H(e.offsetWidth/s)},list:function(t,e){var s=t.selList;return n.$(s,e)},maxIndex:function(){return this.length-1},selSlides:function(t){var e=t.selList,s=t.selSlides;return e+" "+(s||"> *")},slides:{get:function(){return n.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(t,e){var s=this;if(e===void 0&&(e=!1),!(this.dragging||!this.length)){var a=this,i=a.stack,x=e?0:i.length,o=function(){i.splice(x,1),i.length&&s.show(i.shift(),!0)};if(i[e?"unshift":"push"](t),!e&&i.length>1){i.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}var v=this.getIndex(this.index),r=n.hasClass(this.slides,this.clsActive)&&this.slides[v],c=this.getIndex(t,this.index),u=this.slides[c];if(r===u){o();return}if(this.dir=D(t,v),this.prevIndex=v,this.index=c,r&&!n.trigger(r,"beforeitemhide",[this])||!n.trigger(u,"beforeitemshow",[this,r])){this.index=this.prevIndex,o();return}var d=this._show(r,u,e).then(function(){return r&&n.trigger(r,"itemhidden",[s]),n.trigger(u,"itemshown",[s]),new n.Promise(function(f){n.fastdom.write(function(){i.shift(),i.length?s.show(i.shift(),!0):s._transitioner=null,f()})})});return r&&n.trigger(r,"itemhide",[this]),n.trigger(u,"itemshow",[this]),d}},getIndex:function(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.index),n.clamp(n.getIndex(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex:function(t,e){return t===void 0&&(t=this.index),e===void 0&&(e=this.prevIndex),this.getIndex(t,e)},_show:function(t,e,s){if(this._transitioner=this._getTransitioner(t,e,this.dir,n.assign({easing:s?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),!s&&!t)return this._translate(1),n.Promise.resolve();var a=this.stack,i=a.length;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_getDistance:function(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate:function(t,e,s){e===void 0&&(e=this.prevIndex),s===void 0&&(s=this.index);var a=this._getTransitioner(e!==s?e:!1,s);return a.translate(t),a},_getTransitioner:function(t,e,s,a){return t===void 0&&(t=this.prevIndex),e===void 0&&(e=this.index),s===void 0&&(s=this.dir||1),a===void 0&&(a=this.transitionOptions),new this.Transitioner(n.isNumber(t)?this.slides[t]:t,n.isNumber(e)?this.slides[e]:e,s*(n.isRtl?-1:1),a)}}};function D(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function H(t){return .5*t+300}var M={mixins:[T],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:$,Transitioner:z},computed:{animation:function(t){var e=t.animation,s=t.Animations;return n.assign(s[e]||s.slide,{name:e})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){var e=t.target;this.$update(e)},beforeitemshow:function(t){var e=t.target;n.addClass(e,this.clsActive)},itemshown:function(t){var e=t.target;n.addClass(e,this.clsActivated)},itemhidden:function(t){var e=t.target;n.removeClass(e,this.clsActive,this.clsActivated)}}},C=n.assign({},$,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(t){return 1-n.css(t,"opacity")},translate:function(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:b(1+.5),zIndex:0},{zIndex:-1}]},percent:function(t){return 1-n.css(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:b(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show:function(t){return t<0?[{transform:h(30),zIndex:-1},{transform:h(),zIndex:0}]:[{transform:h(-100),zIndex:0},{transform:h(),zIndex:-1}]},percent:function(t,e,s){return s<0?1-p(e):p(t)},translate:function(t,e){return e<0?[{transform:h(30*t),zIndex:-1},{transform:h(-100*(1-t)),zIndex:0}]:[{transform:h(-t*100),zIndex:0},{transform:h(30*(1-t)),zIndex:-1}]}},push:{show:function(t){return t<0?[{transform:h(100),zIndex:0},{transform:h(),zIndex:-1}]:[{transform:h(-30),zIndex:-1},{transform:h(),zIndex:0}]},percent:function(t,e,s){return s>0?1-p(e):p(t)},translate:function(t,e){return e<0?[{transform:h(t*100),zIndex:0},{transform:h(-30*(1-t)),zIndex:-1}]:[{transform:h(-30*t),zIndex:-1},{transform:h(100*(1-t)),zIndex:0}]}}}),E={update:{write:function(){if(!(this.stack.length||this.dragging)){var t=this.getValidIndex(this.index);(!~this.prevIndex||this.index!==t)&&this.show(t)}},events:["resize"]}},y={mixins:[g,M,E],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:C},update:{read:function(){if(!this.list)return!1;var t=this.ratio.split(":").map(Number),e=t[0],s=t[1];return s=s*this.list.offsetWidth/e||0,this.minHeight&&(s=Math.max(this.minHeight,s)),this.maxHeight&&(s=Math.min(this.maxHeight,s)),{height:s-n.boxModelAdjust(this.list,"height","content-box")}},write:function(t){var e=t.height;e>0&&n.css(this.list,"minHeight",e)},events:["resize"]}};return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("slideshow",y),y});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | 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')) :
@@ -339,12 +339,12 @@
339
339
 
340
340
  return fade.apply(void 0, args.concat( [40] ));
341
341
  }
342
- : !name
343
- ? function () {
342
+ : name
343
+ ? slide
344
+ : function () {
344
345
  action();
345
346
  return uikitUtil.Promise.resolve();
346
- }
347
- : slide;
347
+ };
348
348
 
349
349
  return animationFn(action, target, this.duration)
350
350
  .then(function () { return this$1$1.$update(target, 'resize'); }, uikitUtil.noop);
@@ -683,7 +683,7 @@
683
683
  var dist = (Date.now() - last) * .3;
684
684
  last = Date.now();
685
685
 
686
- uikitUtil.scrollParents(document.elementFromPoint(x, pos.y)).reverse().some(function (scrollEl) {
686
+ uikitUtil.scrollParents(document.elementFromPoint(x, pos.y), /auto|scroll/).reverse().some(function (scrollEl) {
687
687
 
688
688
  var scroll = scrollEl.scrollTop;
689
689
  var scrollHeight = scrollEl.scrollHeight;
@@ -1 +1 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */(function(e,g){typeof exports=="object"&&typeof module!="undefined"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],g):(e=typeof globalThis!="undefined"?globalThis:e||self,e.UIkitSortable=g(e.UIkit.util))})(this,function(e){"use strict";function g(r){return D(r,"top","bottom")}function D(r,n,o){for(var s=[[]],h=0;h<r.length;h++){var a=r[h];if(!!e.isVisible(a))for(var t=u(a),f=s.length-1;f>=0;f--){var c=s[f];if(!c[0]){c.push(a);break}var d=void 0;if(c[0].offsetParent===a.offsetParent?d=u(c[0]):(t=u(a,!0),d=u(c[0],!0)),t[n]>=d[o]-1&&t[n]!==d[n]){s.push([a]);break}if(t[o]-1>d[n]||t[n]===d[n]){c.push(a);break}if(f===0){s.unshift([a]);break}}}return s}function u(r,n){var o;n===void 0&&(n=!1);var s=r.offsetTop,h=r.offsetLeft,a=r.offsetHeight,t=r.offsetWidth;return n&&(o=e.offsetPosition(r),s=o[0],h=o[1]),{top:s,left:h,bottom:s+a,right:h+t}}var b="uk-transition-leave",w="uk-transition-enter";function y(r,n,o,s){s===void 0&&(s=0);var h=l(n,!0),a={opacity:1},t={opacity:0},f=function(i){return function(){return h===l(n)?i():e.Promise.reject()}},c=f(function(){return e.addClass(n,b),e.Promise.all(C(n).map(function(i,p){return new e.Promise(function(v){return setTimeout(function(){return e.Transition.start(i,t,o/2,"ease").then(v)},p*s)})})).then(function(){return e.removeClass(n,b)})}),d=f(function(){var i=e.height(n);return e.addClass(n,w),r(),e.css(e.children(n),{opacity:0}),new e.Promise(function(p){return requestAnimationFrame(function(){var v=e.children(n),m=e.height(n);e.css(n,"alignContent","flex-start"),e.height(n,i);var L=C(n);e.css(v,t);var B=L.map(function(O,_){return new e.Promise(function(Y){return setTimeout(function(){return e.Transition.start(O,a,o/2,"ease").then(Y)},_*s)})});i!==m&&B.push(e.Transition.start(n,{height:m},o/2+L.length*s,"ease")),e.Promise.all(B).then(function(){e.removeClass(n,w),h===l(n)&&(e.css(n,{height:"",alignContent:""}),e.css(v,{opacity:""}),delete n.dataset.transition),p()})})})});return e.hasClass(n,b)?T(n).then(d):e.hasClass(n,w)?T(n).then(c).then(d):c().then(d)}function l(r,n){return n&&(r.dataset.transition=1+l(r)),e.toNumber(r.dataset.transition)||0}function T(r){return e.Promise.all(e.children(r).filter(e.Transition.inProgress).map(function(n){return new e.Promise(function(o){return e.once(n,"transitionend transitioncanceled",o)})}))}function C(r){return g(e.children(r)).reduce(function(n,o){return n.concat(e.sortBy(o.filter(function(s){return e.isInView(s)}),"offsetLeft"))},[])}function F(r,n,o){return new e.Promise(function(s){return requestAnimationFrame(function(){var h=e.children(n),a=h.map(function(f){return $(f,!0)}),t=e.css(n,["height","padding"]);e.Transition.cancel(n),h.forEach(e.Transition.cancel),P(n),r(),h=h.concat(e.children(n).filter(function(f){return!e.includes(h,f)})),e.Promise.resolve().then(function(){e.fastdom.flush();var f=e.css(n,["height","padding"]),c=R(n,h,a),d=c[0],i=c[1];h.forEach(function(p,v){return i[v]&&e.css(p,i[v])}),e.css(n,e.assign({display:"block"},t)),requestAnimationFrame(function(){var p=h.map(function(v,m){return e.parent(v)===n&&e.Transition.start(v,d[m],o,"ease")}).concat(e.Transition.start(n,f,o,"ease"));e.Promise.all(p).then(function(){h.forEach(function(v,m){return e.parent(v)===n&&e.css(v,"display",d[m].opacity===0?"none":"")}),P(n)},e.noop).then(s)})})})})}function $(r,n){var o=e.css(r,"zIndex");return e.isVisible(r)?e.assign({display:"",opacity:n?e.css(r,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?e.index(r):o},x(r)):!1}function R(r,n,o){var s=n.map(function(a,t){return e.parent(a)&&t in o?o[t]?e.isVisible(a)?x(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1}),h=s.map(function(a,t){var f=e.parent(n[t])===r&&(o[t]||$(n[t]));if(!f)return!1;if(!a)delete f.opacity;else if(!("opacity"in a)){var c=f.opacity;c%1?a.opacity=1:delete f.opacity}return f});return[s,h]}function P(r){e.css(r.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),e.css(r,{height:"",display:"",padding:""})}function x(r){var n=e.offset(r),o=n.height,s=n.width,h=e.position(r),a=h.top,t=h.left,f=e.css(r,["marginTop","marginLeft"]),c=f.marginLeft,d=f.marginTop;return{top:a,left:t,height:o,width:s,marginLeft:c,marginTop:d,transform:""}}var H={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate:function(r,n){var o=this;n===void 0&&(n=this.$el);var s=this.animation,h=s==="fade"?y:s==="delayed-fade"?function(){for(var a=[],t=arguments.length;t--;)a[t]=arguments[t];return y.apply(void 0,a.concat([40]))}:s?F:function(){return r(),e.Promise.resolve()};return h(r,n,this.duration).then(function(){return o.$update(n,"resize")},e.noop)}}},z={connected:function(){!e.hasClass(this.$el,this.$name)&&e.addClass(this.$el,this.$name)}},S={mixins:[z,H],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:function(){var r=this;["init","start","move","end"].forEach(function(n){var o=r[n];r[n]=function(s){e.assign(r.pos,e.getEventPos(s)),o(s)}})},events:{name:e.pointerDown,passive:!1,handler:"init"},computed:{target:function(){return(this.$el.tBodies||[this.$el])[0]},items:function(){return e.children(this.target)},isEmpty:{get:function(){return e.isEmpty(this.items)},watch:function(r){e.toggleClass(this.target,this.clsEmpty,r)},immediate:!0},handles:{get:function(r,n){var o=r.handle;return o?e.$$(o,n):this.items},watch:function(r,n){e.css(n,{touchAction:"",userSelect:""}),e.css(r,{touchAction:e.hasTouch?"none":"",userSelect:"none"})},immediate:!0}},update:{write:function(r){if(!(!this.drag||!e.parent(this.placeholder))){var n=this,o=n.pos,s=o.x,h=o.y,a=n.origin,t=a.offsetTop,f=a.offsetLeft,c=n.placeholder;e.css(this.drag,{top:h-t,left:s-f});var d=this.getSortable(document.elementFromPoint(s,h));if(!!d){var i=d.items;if(!i.some(e.Transition.inProgress)){var p=V(i,{x:s,y:h});if(!(i.length&&(!p||p===c))){var v=this.getSortable(c),m=q(d.target,p,c,s,h,d===v&&r.moved!==p);m!==!1&&(m&&c===m||(d!==v?(v.remove(c),r.moved=p):delete r.moved,d.insert(c,m),this.touched.add(d)))}}}}},events:["move"]},methods:{init:function(r){var n=r.target,o=r.button,s=r.defaultPrevented,h=this.items.filter(function(t){return e.within(n,t)}),a=h[0];!a||s||o>0||e.isInput(n)||e.within(n,"."+this.clsNoDrag)||this.handle&&!e.within(n,this.handle)||(r.preventDefault(),this.touched=new Set([this]),this.placeholder=a,this.origin=e.assign({target:n,index:e.index(a)},this.pos),e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(r))},start:function(r){this.drag=M(this.$container,this.placeholder);var n=this.placeholder.getBoundingClientRect(),o=n.left,s=n.top;e.assign(this.origin,{offsetLeft:this.pos.x-o,offsetTop:this.pos.y-s}),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]),N(this.pos),this.move(r)},move:function(r){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(r)},end:function(){var r=this;if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),e.off(window,"scroll",this.scroll),!!this.drag){A();var 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,this.touched.forEach(function(o){var s=o.clsPlaceholder,h=o.clsItem;return r.touched.forEach(function(a){return e.removeClass(a.items,s,h)})}),this.touched=null,e.removeClass(document.documentElement,this.clsDragState)}},insert:function(r,n){var o=this;e.addClass(this.items,this.clsItem);var s=function(){return n?e.before(n,r):e.append(o.target,r)};this.animate(s)},remove:function(r){!e.within(r,this.target)||this.animate(function(){return e.remove(r)})},getSortable:function(r){do{var n=this.$getComponent(r,"sortable");if(n&&(n===this||this.group!==!1&&n.group===this.group))return n}while(r=e.parent(r))}}},I;function N(r){var n=Date.now();I=setInterval(function(){var o=r.x,s=r.y;s+=window.pageYOffset;var h=(Date.now()-n)*.3;n=Date.now(),e.scrollParents(document.elementFromPoint(o,r.y)).reverse().some(function(a){var t=a.scrollTop,f=a.scrollHeight,c=e.offset(e.getViewport(a)),d=c.top,i=c.bottom,p=c.height;if(d<s&&d+35>s)t-=h;else if(i>s&&i-35<s)t+=h;else return;if(t>0&&t<f-p)return e.scrollTop(a,t),!0})},15)}function A(){clearInterval(I)}function M(r,n){var o=e.append(r,n.outerHTML.replace(/(^<)(?:li|tr)|(?:li|tr)(\/>$)/g,"$1div$2"));return e.css(o,"margin","0","important"),e.css(o,e.assign({boxSizing:"border-box",width:n.offsetWidth,height:n.offsetHeight},e.css(n,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),e.height(o.firstElementChild,e.height(n.firstElementChild)),o}function V(r,n){return r[e.findIndex(r,function(o){return e.pointInRect(n,o.getBoundingClientRect())})]}function q(r,n,o,s,h,a){if(!!e.children(r).length){var t=n.getBoundingClientRect();if(!a)return W(r,o)||h<t.top+t.height/2?n:n.nextElementSibling;var f=o.getBoundingClientRect(),c=E([t.top,t.bottom],[f.top,f.bottom]),d=c?s:h,i=c?"width":"height",p=c?"left":"top",v=c?"right":"bottom",m=f[i]<t[i]?t[i]-f[i]:0;return f[p]<t[p]?m&&d<t[p]+m?!1:n.nextElementSibling:m&&d>t[v]-m?!1:n}}function W(r,n){var o=e.children(r).length===1;o&&e.append(r,n);var s=e.children(r),h=s.some(function(a,t){var f=a.getBoundingClientRect();return s.slice(t+1).some(function(c){var d=c.getBoundingClientRect();return!E([f.left,f.right],[d.left,d.right])})});return o&&e.remove(n),h}function E(r,n){return r[1]>n[0]&&n[1]>r[0]}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("sortable",S),S});
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(e,g){typeof exports=="object"&&typeof module!="undefined"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],g):(e=typeof globalThis!="undefined"?globalThis:e||self,e.UIkitSortable=g(e.UIkit.util))})(this,function(e){"use strict";function g(r){return D(r,"top","bottom")}function D(r,n,o){for(var s=[[]],h=0;h<r.length;h++){var a=r[h];if(!!e.isVisible(a))for(var t=u(a),f=s.length-1;f>=0;f--){var c=s[f];if(!c[0]){c.push(a);break}var d=void 0;if(c[0].offsetParent===a.offsetParent?d=u(c[0]):(t=u(a,!0),d=u(c[0],!0)),t[n]>=d[o]-1&&t[n]!==d[n]){s.push([a]);break}if(t[o]-1>d[n]||t[n]===d[n]){c.push(a);break}if(f===0){s.unshift([a]);break}}}return s}function u(r,n){var o;n===void 0&&(n=!1);var s=r.offsetTop,h=r.offsetLeft,a=r.offsetHeight,t=r.offsetWidth;return n&&(o=e.offsetPosition(r),s=o[0],h=o[1]),{top:s,left:h,bottom:s+a,right:h+t}}var b="uk-transition-leave",w="uk-transition-enter";function y(r,n,o,s){s===void 0&&(s=0);var h=l(n,!0),a={opacity:1},t={opacity:0},f=function(i){return function(){return h===l(n)?i():e.Promise.reject()}},c=f(function(){return e.addClass(n,b),e.Promise.all(C(n).map(function(i,p){return new e.Promise(function(v){return setTimeout(function(){return e.Transition.start(i,t,o/2,"ease").then(v)},p*s)})})).then(function(){return e.removeClass(n,b)})}),d=f(function(){var i=e.height(n);return e.addClass(n,w),r(),e.css(e.children(n),{opacity:0}),new e.Promise(function(p){return requestAnimationFrame(function(){var v=e.children(n),m=e.height(n);e.css(n,"alignContent","flex-start"),e.height(n,i);var L=C(n);e.css(v,t);var B=L.map(function(O,_){return new e.Promise(function(Y){return setTimeout(function(){return e.Transition.start(O,a,o/2,"ease").then(Y)},_*s)})});i!==m&&B.push(e.Transition.start(n,{height:m},o/2+L.length*s,"ease")),e.Promise.all(B).then(function(){e.removeClass(n,w),h===l(n)&&(e.css(n,{height:"",alignContent:""}),e.css(v,{opacity:""}),delete n.dataset.transition),p()})})})});return e.hasClass(n,b)?T(n).then(d):e.hasClass(n,w)?T(n).then(c).then(d):c().then(d)}function l(r,n){return n&&(r.dataset.transition=1+l(r)),e.toNumber(r.dataset.transition)||0}function T(r){return e.Promise.all(e.children(r).filter(e.Transition.inProgress).map(function(n){return new e.Promise(function(o){return e.once(n,"transitionend transitioncanceled",o)})}))}function C(r){return g(e.children(r)).reduce(function(n,o){return n.concat(e.sortBy(o.filter(function(s){return e.isInView(s)}),"offsetLeft"))},[])}function F(r,n,o){return new e.Promise(function(s){return requestAnimationFrame(function(){var h=e.children(n),a=h.map(function(f){return $(f,!0)}),t=e.css(n,["height","padding"]);e.Transition.cancel(n),h.forEach(e.Transition.cancel),P(n),r(),h=h.concat(e.children(n).filter(function(f){return!e.includes(h,f)})),e.Promise.resolve().then(function(){e.fastdom.flush();var f=e.css(n,["height","padding"]),c=R(n,h,a),d=c[0],i=c[1];h.forEach(function(p,v){return i[v]&&e.css(p,i[v])}),e.css(n,e.assign({display:"block"},t)),requestAnimationFrame(function(){var p=h.map(function(v,m){return e.parent(v)===n&&e.Transition.start(v,d[m],o,"ease")}).concat(e.Transition.start(n,f,o,"ease"));e.Promise.all(p).then(function(){h.forEach(function(v,m){return e.parent(v)===n&&e.css(v,"display",d[m].opacity===0?"none":"")}),P(n)},e.noop).then(s)})})})})}function $(r,n){var o=e.css(r,"zIndex");return e.isVisible(r)?e.assign({display:"",opacity:n?e.css(r,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?e.index(r):o},x(r)):!1}function R(r,n,o){var s=n.map(function(a,t){return e.parent(a)&&t in o?o[t]?e.isVisible(a)?x(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1}),h=s.map(function(a,t){var f=e.parent(n[t])===r&&(o[t]||$(n[t]));if(!f)return!1;if(!a)delete f.opacity;else if(!("opacity"in a)){var c=f.opacity;c%1?a.opacity=1:delete f.opacity}return f});return[s,h]}function P(r){e.css(r.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),e.css(r,{height:"",display:"",padding:""})}function x(r){var n=e.offset(r),o=n.height,s=n.width,h=e.position(r),a=h.top,t=h.left,f=e.css(r,["marginTop","marginLeft"]),c=f.marginLeft,d=f.marginTop;return{top:a,left:t,height:o,width:s,marginLeft:c,marginTop:d,transform:""}}var H={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate:function(r,n){var o=this;n===void 0&&(n=this.$el);var s=this.animation,h=s==="fade"?y:s==="delayed-fade"?function(){for(var a=[],t=arguments.length;t--;)a[t]=arguments[t];return y.apply(void 0,a.concat([40]))}:s?F:function(){return r(),e.Promise.resolve()};return h(r,n,this.duration).then(function(){return o.$update(n,"resize")},e.noop)}}},z={connected:function(){!e.hasClass(this.$el,this.$name)&&e.addClass(this.$el,this.$name)}},S={mixins:[z,H],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:function(){var r=this;["init","start","move","end"].forEach(function(n){var o=r[n];r[n]=function(s){e.assign(r.pos,e.getEventPos(s)),o(s)}})},events:{name:e.pointerDown,passive:!1,handler:"init"},computed:{target:function(){return(this.$el.tBodies||[this.$el])[0]},items:function(){return e.children(this.target)},isEmpty:{get:function(){return e.isEmpty(this.items)},watch:function(r){e.toggleClass(this.target,this.clsEmpty,r)},immediate:!0},handles:{get:function(r,n){var o=r.handle;return o?e.$$(o,n):this.items},watch:function(r,n){e.css(n,{touchAction:"",userSelect:""}),e.css(r,{touchAction:e.hasTouch?"none":"",userSelect:"none"})},immediate:!0}},update:{write:function(r){if(!(!this.drag||!e.parent(this.placeholder))){var n=this,o=n.pos,s=o.x,h=o.y,a=n.origin,t=a.offsetTop,f=a.offsetLeft,c=n.placeholder;e.css(this.drag,{top:h-t,left:s-f});var d=this.getSortable(document.elementFromPoint(s,h));if(!!d){var i=d.items;if(!i.some(e.Transition.inProgress)){var p=V(i,{x:s,y:h});if(!(i.length&&(!p||p===c))){var v=this.getSortable(c),m=q(d.target,p,c,s,h,d===v&&r.moved!==p);m!==!1&&(m&&c===m||(d!==v?(v.remove(c),r.moved=p):delete r.moved,d.insert(c,m),this.touched.add(d)))}}}}},events:["move"]},methods:{init:function(r){var n=r.target,o=r.button,s=r.defaultPrevented,h=this.items.filter(function(t){return e.within(n,t)}),a=h[0];!a||s||o>0||e.isInput(n)||e.within(n,"."+this.clsNoDrag)||this.handle&&!e.within(n,this.handle)||(r.preventDefault(),this.touched=new Set([this]),this.placeholder=a,this.origin=e.assign({target:n,index:e.index(a)},this.pos),e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(r))},start:function(r){this.drag=M(this.$container,this.placeholder);var n=this.placeholder.getBoundingClientRect(),o=n.left,s=n.top;e.assign(this.origin,{offsetLeft:this.pos.x-o,offsetTop:this.pos.y-s}),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]),N(this.pos),this.move(r)},move:function(r){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(r)},end:function(){var r=this;if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),e.off(window,"scroll",this.scroll),!!this.drag){A();var 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,this.touched.forEach(function(o){var s=o.clsPlaceholder,h=o.clsItem;return r.touched.forEach(function(a){return e.removeClass(a.items,s,h)})}),this.touched=null,e.removeClass(document.documentElement,this.clsDragState)}},insert:function(r,n){var o=this;e.addClass(this.items,this.clsItem);var s=function(){return n?e.before(n,r):e.append(o.target,r)};this.animate(s)},remove:function(r){!e.within(r,this.target)||this.animate(function(){return e.remove(r)})},getSortable:function(r){do{var n=this.$getComponent(r,"sortable");if(n&&(n===this||this.group!==!1&&n.group===this.group))return n}while(r=e.parent(r))}}},I;function N(r){var n=Date.now();I=setInterval(function(){var o=r.x,s=r.y;s+=window.pageYOffset;var h=(Date.now()-n)*.3;n=Date.now(),e.scrollParents(document.elementFromPoint(o,r.y),/auto|scroll/).reverse().some(function(a){var t=a.scrollTop,f=a.scrollHeight,c=e.offset(e.getViewport(a)),d=c.top,i=c.bottom,p=c.height;if(d<s&&d+35>s)t-=h;else if(i>s&&i-35<s)t+=h;else return;if(t>0&&t<f-p)return e.scrollTop(a,t),!0})},15)}function A(){clearInterval(I)}function M(r,n){var o=e.append(r,n.outerHTML.replace(/(^<)(?:li|tr)|(?:li|tr)(\/>$)/g,"$1div$2"));return e.css(o,"margin","0","important"),e.css(o,e.assign({boxSizing:"border-box",width:n.offsetWidth,height:n.offsetHeight},e.css(n,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),e.height(o.firstElementChild,e.height(n.firstElementChild)),o}function V(r,n){return r[e.findIndex(r,function(o){return e.pointInRect(n,o.getBoundingClientRect())})]}function q(r,n,o,s,h,a){if(!!e.children(r).length){var t=n.getBoundingClientRect();if(!a)return W(r,o)||h<t.top+t.height/2?n:n.nextElementSibling;var f=o.getBoundingClientRect(),c=E([t.top,t.bottom],[f.top,f.bottom]),d=c?s:h,i=c?"width":"height",p=c?"left":"top",v=c?"right":"bottom",m=f[i]<t[i]?t[i]-f[i]:0;return f[p]<t[p]?m&&d<t[p]+m?!1:n.nextElementSibling:m&&d>t[v]-m?!1:n}}function W(r,n){var o=e.children(r).length===1;o&&e.append(r,n);var s=e.children(r),h=s.some(function(a,t){var f=a.getBoundingClientRect();return s.slice(t+1).some(function(c){var d=c.getBoundingClientRect();return!E([f.left,f.right],[d.left,d.right])})});return o&&e.remove(n),h}function E(r,n){return r[1]>n[0]&&n[1]>r[0]}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("sortable",S),S});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | 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')) :
@@ -372,7 +372,8 @@
372
372
  }
373
373
 
374
374
  this.toggleElement(this.tooltip, false, false).then(function () {
375
- this$1$1.tooltip = uikitUtil.remove(this$1$1.tooltip);
375
+ uikitUtil.remove(this$1$1.tooltip);
376
+ this$1$1.tooltip = null;
376
377
  this$1$1._unbind();
377
378
  });
378
379
  },
@@ -1 +1 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */(function(n,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],c):(n=typeof globalThis!="undefined"?globalThis:n||self,n.UIkitTooltip=c(n.UIkit.util))})(this,function(n){"use strict";var c={props:{container:Boolean},data:{container:!0},computed:{container:function(o){var s=o.container;return s===!0&&this.$container||s&&n.$(s)}}},v={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave",initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(o){var s=o.animation;return!!s[0]},hasTransition:function(o){var s=o.animation;return this.hasAnimation&&s[0]===!0}},methods:{toggleElement:function(o,s,a){var t=this;return new n.Promise(function(i){return n.Promise.all(n.toNodes(o).map(function(e){var h=n.isBoolean(s)?s:!t.isToggled(e);if(!n.trigger(e,"before"+(h?"show":"hide"),[t]))return n.Promise.reject();var r=(n.isFunction(a)?a:a===!1||!t.hasAnimation?t._toggle:t.hasTransition?w(t):T(t))(e,h),d=h?t.clsEnter:t.clsLeave;n.addClass(e,d),n.trigger(e,h?"show":"hide",[t]);var f=function(){n.removeClass(e,d),n.trigger(e,h?"shown":"hidden",[t]),t.$update(e)};return r?r.then(f,function(){return n.removeClass(e,d),n.Promise.reject()}):f()})).then(i,n.noop)})},isToggled:function(o){var s;return o===void 0&&(o=this.$el),s=n.toNodes(o),o=s[0],n.hasClass(o,this.clsEnter)?!0:n.hasClass(o,this.clsLeave)?!1:this.cls?n.hasClass(o,this.cls.split(" ")[0]):n.isVisible(o)},_toggle:function(o,s){if(!!o){s=Boolean(s);var a;this.cls?(a=n.includes(this.cls," ")||s!==n.hasClass(o,this.cls),a&&n.toggleClass(o,this.cls,n.includes(this.cls," ")?void 0:s)):(a=s===o.hidden,a&&(o.hidden=!s)),n.$$("[autofocus]",o).some(function(t){return n.isVisible(t)?t.focus()||!0:t.blur()}),a&&(n.trigger(o,"toggled",[s,this]),this.$update(o))}}}};function w(o){var s=o.isToggled,a=o.duration,t=o.initProps,i=o.hideProps,e=o.transition,h=o._toggle;return function(r,d){var f=n.Transition.inProgress(r),l=r.hasChildNodes?n.toFloat(n.css(r.firstElementChild,"marginTop"))+n.toFloat(n.css(r.lastElementChild,"marginBottom")):0,g=n.isVisible(r)?n.height(r)+(f?0:l):0;n.Transition.cancel(r),s(r)||h(r,!0),n.height(r,""),n.fastdom.flush();var u=n.height(r)+(f?0:l);return n.height(r,g),(d?n.Transition.start(r,n.assign({},t,{overflow:"hidden",height:u}),Math.round(a*(1-g/u)),e):n.Transition.start(r,i,Math.round(a*(g/u)),e).then(function(){return h(r,!1)})).then(function(){return n.css(r,t)})}}function T(o){return function(s,a){n.Animation.cancel(s);var t=o.animation,i=o.duration,e=o._toggle;return a?(e(s,!0),n.Animation.in(s,t[0],i,o.origin)):n.Animation.out(s,t[1]||t[0],i,o.origin).then(function(){return e(s,!1)})}}var $={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(n.isRtl?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(o){var s=o.pos;return(s+(n.includes(s,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(o,s,a){n.removeClasses(o,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");var t=this,i=t.offset,e=this.getAxis();if(!n.isNumeric(i)){var h=n.$(i);i=h?n.offset(h)[e==="x"?"left":"top"]-n.offset(s)[e==="x"?"right":"bottom"]:0}var r=n.positionAt(o,s,e==="x"?n.flipPosition(this.dir)+" "+this.align:this.align+" "+n.flipPosition(this.dir),e==="x"?this.dir+" "+this.align:this.align+" "+this.dir,e==="x"?""+(this.dir==="left"?-i:i):" "+(this.dir==="top"?-i:i),null,this.flip,a).target,d=r.x,f=r.y;this.dir=e==="x"?d:f,this.align=e==="x"?f:d,n.toggleClass(o,this.clsPos+"-"+this.dir+"-"+this.align,this.offset===!1)},getAxis:function(){return this.dir==="top"||this.dir==="bottom"?"y":"x"}}},p,m={mixins:[c,v,$],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip"},beforeConnect:function(){this._hasTitle=n.hasAttr(this.$el,"title"),n.attr(this.$el,"title",""),this.updateAria(!1),P(this.$el)},disconnected:function(){this.hide(),n.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show:function(){var o=this;this.isToggled(this.tooltip||null)||!this.title||(this._unbind=n.once(document,"show keydown "+n.pointerDown,this.hide,!1,function(s){return s.type===n.pointerDown&&!n.within(s.target,o.$el)||s.type==="keydown"&&s.keyCode===27||s.type==="show"&&s.detail[0]!==o&&s.detail[0].$name===o.$name}),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},hide:function(){var o=this;n.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),!!this.isToggled(this.tooltip||null)&&this.toggleElement(this.tooltip,!1,!1).then(function(){o.tooltip=n.remove(o.tooltip),o._unbind()}))},_show:function(){var o=this;this.tooltip=n.append(this.container,'<div class="'+this.clsPos+'"> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),n.on(this.tooltip,"toggled",function(s,a){o.updateAria(a),!!a&&(o.positionAt(o.tooltip,o.$el),o.origin=o.getAxis()==="y"?n.flipPosition(o.dir)+"-"+o.align:o.align+"-"+n.flipPosition(o.dir))}),this.toggleElement(this.tooltip,!0)},updateAria:function(o){n.attr(this.$el,"aria-expanded",o)}},events:(p={focus:"show",blur:"hide"},p[n.pointerEnter+" "+n.pointerLeave]=function(o){n.isTouch(o)||this[o.type===n.pointerEnter?"show":"hide"]()},p[n.pointerDown]=function(o){n.isTouch(o)&&this.show()},p)};function P(o){n.isFocusable(o)||n.attr(o,"tabindex","0")}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("tooltip",m),m});
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(n,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],c):(n=typeof globalThis!="undefined"?globalThis:n||self,n.UIkitTooltip=c(n.UIkit.util))})(this,function(n){"use strict";var c={props:{container:Boolean},data:{container:!0},computed:{container:function(o){var s=o.container;return s===!0&&this.$container||s&&n.$(s)}}},v={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave",initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(o){var s=o.animation;return!!s[0]},hasTransition:function(o){var s=o.animation;return this.hasAnimation&&s[0]===!0}},methods:{toggleElement:function(o,s,a){var t=this;return new n.Promise(function(i){return n.Promise.all(n.toNodes(o).map(function(e){var h=n.isBoolean(s)?s:!t.isToggled(e);if(!n.trigger(e,"before"+(h?"show":"hide"),[t]))return n.Promise.reject();var r=(n.isFunction(a)?a:a===!1||!t.hasAnimation?t._toggle:t.hasTransition?w(t):T(t))(e,h),d=h?t.clsEnter:t.clsLeave;n.addClass(e,d),n.trigger(e,h?"show":"hide",[t]);var f=function(){n.removeClass(e,d),n.trigger(e,h?"shown":"hidden",[t]),t.$update(e)};return r?r.then(f,function(){return n.removeClass(e,d),n.Promise.reject()}):f()})).then(i,n.noop)})},isToggled:function(o){var s;return o===void 0&&(o=this.$el),s=n.toNodes(o),o=s[0],n.hasClass(o,this.clsEnter)?!0:n.hasClass(o,this.clsLeave)?!1:this.cls?n.hasClass(o,this.cls.split(" ")[0]):n.isVisible(o)},_toggle:function(o,s){if(!!o){s=Boolean(s);var a;this.cls?(a=n.includes(this.cls," ")||s!==n.hasClass(o,this.cls),a&&n.toggleClass(o,this.cls,n.includes(this.cls," ")?void 0:s)):(a=s===o.hidden,a&&(o.hidden=!s)),n.$$("[autofocus]",o).some(function(t){return n.isVisible(t)?t.focus()||!0:t.blur()}),a&&(n.trigger(o,"toggled",[s,this]),this.$update(o))}}}};function w(o){var s=o.isToggled,a=o.duration,t=o.initProps,i=o.hideProps,e=o.transition,h=o._toggle;return function(r,d){var f=n.Transition.inProgress(r),l=r.hasChildNodes?n.toFloat(n.css(r.firstElementChild,"marginTop"))+n.toFloat(n.css(r.lastElementChild,"marginBottom")):0,g=n.isVisible(r)?n.height(r)+(f?0:l):0;n.Transition.cancel(r),s(r)||h(r,!0),n.height(r,""),n.fastdom.flush();var u=n.height(r)+(f?0:l);return n.height(r,g),(d?n.Transition.start(r,n.assign({},t,{overflow:"hidden",height:u}),Math.round(a*(1-g/u)),e):n.Transition.start(r,i,Math.round(a*(g/u)),e).then(function(){return h(r,!1)})).then(function(){return n.css(r,t)})}}function T(o){return function(s,a){n.Animation.cancel(s);var t=o.animation,i=o.duration,e=o._toggle;return a?(e(s,!0),n.Animation.in(s,t[0],i,o.origin)):n.Animation.out(s,t[1]||t[0],i,o.origin).then(function(){return e(s,!1)})}}var $={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(n.isRtl?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(o){var s=o.pos;return(s+(n.includes(s,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(o,s,a){n.removeClasses(o,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");var t=this,i=t.offset,e=this.getAxis();if(!n.isNumeric(i)){var h=n.$(i);i=h?n.offset(h)[e==="x"?"left":"top"]-n.offset(s)[e==="x"?"right":"bottom"]:0}var r=n.positionAt(o,s,e==="x"?n.flipPosition(this.dir)+" "+this.align:this.align+" "+n.flipPosition(this.dir),e==="x"?this.dir+" "+this.align:this.align+" "+this.dir,e==="x"?""+(this.dir==="left"?-i:i):" "+(this.dir==="top"?-i:i),null,this.flip,a).target,d=r.x,f=r.y;this.dir=e==="x"?d:f,this.align=e==="x"?f:d,n.toggleClass(o,this.clsPos+"-"+this.dir+"-"+this.align,this.offset===!1)},getAxis:function(){return this.dir==="top"||this.dir==="bottom"?"y":"x"}}},p,m={mixins:[c,v,$],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip"},beforeConnect:function(){this._hasTitle=n.hasAttr(this.$el,"title"),n.attr(this.$el,"title",""),this.updateAria(!1),P(this.$el)},disconnected:function(){this.hide(),n.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show:function(){var o=this;this.isToggled(this.tooltip||null)||!this.title||(this._unbind=n.once(document,"show keydown "+n.pointerDown,this.hide,!1,function(s){return s.type===n.pointerDown&&!n.within(s.target,o.$el)||s.type==="keydown"&&s.keyCode===27||s.type==="show"&&s.detail[0]!==o&&s.detail[0].$name===o.$name}),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},hide:function(){var o=this;n.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),!!this.isToggled(this.tooltip||null)&&this.toggleElement(this.tooltip,!1,!1).then(function(){n.remove(o.tooltip),o.tooltip=null,o._unbind()}))},_show:function(){var o=this;this.tooltip=n.append(this.container,'<div class="'+this.clsPos+'"> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),n.on(this.tooltip,"toggled",function(s,a){o.updateAria(a),!!a&&(o.positionAt(o.tooltip,o.$el),o.origin=o.getAxis()==="y"?n.flipPosition(o.dir)+"-"+o.align:o.align+"-"+n.flipPosition(o.dir))}),this.toggleElement(this.tooltip,!0)},updateAria:function(o){n.attr(this.$el,"aria-expanded",o)}},events:(p={focus:"show",blur:"hide"},p[n.pointerEnter+" "+n.pointerLeave]=function(o){n.isTouch(o)||this[o.type===n.pointerEnter?"show":"hide"]()},p[n.pointerDown]=function(o){n.isTouch(o)&&this.show()},p)};function P(o){n.isFocusable(o)||n.attr(o,"tabindex","0")}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("tooltip",m),m});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | 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')) :
@@ -1 +1 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */(function(r,s){typeof exports=="object"&&typeof module!="undefined"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],s):(r=typeof globalThis!="undefined"?globalThis:r||self,r.UIkitUpload=s(r.UIkit.util))})(this,function(r){"use strict";var s={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:r.noop,beforeAll:r.noop,beforeSend:r.noop,complete:r.noop,completeAll:r.noop,error:r.noop,fail:r.noop,load:r.noop,loadEnd:r.noop,loadStart:r.noop,progress:r.noop},events:{change:function(e){!r.matches(e.target,'input[type="file"]')||(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop:function(e){p(e);var n=e.dataTransfer;!n||!n.files||(r.removeClass(this.$el,this.clsDragover),this.upload(n.files))},dragenter:function(e){p(e)},dragover:function(e){p(e),r.addClass(this.$el,this.clsDragover)},dragleave:function(e){p(e),r.removeClass(this.$el,this.clsDragover)}},methods:{upload:function(e){var n=this;if(!!e.length){r.trigger(this.$el,"upload",[e]);for(var o=0;o<e.length;o++){if(this.maxSize&&this.maxSize*1e3<e[o].size){this.fail(this.msgInvalidSize.replace("%s",this.maxSize));return}if(this.allow&&!f(this.allow,e[o].name)){this.fail(this.msgInvalidName.replace("%s",this.allow));return}if(this.mime&&!f(this.mime,e[o].type)){this.fail(this.msgInvalidMime.replace("%s",this.mime));return}}this.multiple||(e=[e[0]]),this.beforeAll(this,e);var t=c(e,this.concurrent),l=function(i){var d=new FormData;i.forEach(function(a){return d.append(n.name,a)});for(var h in n.params)d.append(h,n.params[h]);r.ajax(n.url,{data:d,method:n.method,responseType:n.type,beforeSend:function(a){var m=a.xhr;return m.upload&&r.on(m.upload,"progress",n.progress),["loadStart","load","loadEnd","abort"].forEach(function(u){return r.on(m,u.toLowerCase(),n[u])}),n.beforeSend(a)}}).then(function(a){n.complete(a),t.length?l(t.shift()):n.completeAll(a)},function(a){return n.error(a)})};l(t.shift())}}}};function f(e,n){return n.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function c(e,n){for(var o=[],t=0;t<e.length;t+=n){for(var l=[],i=0;i<n;i++)l.push(e[t+i]);o.push(l)}return o}function p(e){e.preventDefault(),e.stopPropagation()}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("upload",s),s});
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(r,s){typeof exports=="object"&&typeof module!="undefined"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],s):(r=typeof globalThis!="undefined"?globalThis:r||self,r.UIkitUpload=s(r.UIkit.util))})(this,function(r){"use strict";var s={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:r.noop,beforeAll:r.noop,beforeSend:r.noop,complete:r.noop,completeAll:r.noop,error:r.noop,fail:r.noop,load:r.noop,loadEnd:r.noop,loadStart:r.noop,progress:r.noop},events:{change:function(e){!r.matches(e.target,'input[type="file"]')||(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop:function(e){p(e);var n=e.dataTransfer;!n||!n.files||(r.removeClass(this.$el,this.clsDragover),this.upload(n.files))},dragenter:function(e){p(e)},dragover:function(e){p(e),r.addClass(this.$el,this.clsDragover)},dragleave:function(e){p(e),r.removeClass(this.$el,this.clsDragover)}},methods:{upload:function(e){var n=this;if(!!e.length){r.trigger(this.$el,"upload",[e]);for(var o=0;o<e.length;o++){if(this.maxSize&&this.maxSize*1e3<e[o].size){this.fail(this.msgInvalidSize.replace("%s",this.maxSize));return}if(this.allow&&!f(this.allow,e[o].name)){this.fail(this.msgInvalidName.replace("%s",this.allow));return}if(this.mime&&!f(this.mime,e[o].type)){this.fail(this.msgInvalidMime.replace("%s",this.mime));return}}this.multiple||(e=[e[0]]),this.beforeAll(this,e);var t=c(e,this.concurrent),l=function(i){var d=new FormData;i.forEach(function(a){return d.append(n.name,a)});for(var h in n.params)d.append(h,n.params[h]);r.ajax(n.url,{data:d,method:n.method,responseType:n.type,beforeSend:function(a){var m=a.xhr;return m.upload&&r.on(m.upload,"progress",n.progress),["loadStart","load","loadEnd","abort"].forEach(function(u){return r.on(m,u.toLowerCase(),n[u])}),n.beforeSend(a)}}).then(function(a){n.complete(a),t.length?l(t.shift()):n.completeAll(a)},function(a){return n.error(a)})};l(t.shift())}}}};function f(e,n){return n.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function c(e,n){for(var o=[],t=0;t<e.length;t+=n){for(var l=[],i=0;i<n;i++)l.push(e[t+i]);o.push(l)}return o}function p(e){e.preventDefault(),e.stopPropagation()}return typeof window!="undefined"&&window.UIkit&&window.UIkit.component("upload",s),s});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.9.5-dev.e48c5e252 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1-dev.6b26facf9 | 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() :
@@ -634,8 +634,9 @@
634
634
  function domPath(element) {
635
635
  var names = [];
636
636
  while (element.parentNode) {
637
- if (element.id) {
638
- names.unshift(("#" + (escape(element.id))));
637
+ var id = attr(element, 'id');
638
+ if (id) {
639
+ names.unshift(("#" + (escape(id))));
639
640
  break;
640
641
  } else {
641
642
  var tagName = element.tagName;
@@ -1104,10 +1105,7 @@
1104
1105
  return;
1105
1106
  }
1106
1107
 
1107
- var unbind = on(document, 'DOMContentLoaded', function () {
1108
- unbind();
1109
- fn();
1110
- });
1108
+ once(document, 'DOMContentLoaded', fn);
1111
1109
  }
1112
1110
 
1113
1111
  function empty(element) {
@@ -1127,10 +1125,10 @@
1127
1125
 
1128
1126
  parent = $(parent);
1129
1127
 
1130
- if (!parent.hasChildNodes()) {
1131
- return append(parent, element);
1132
- } else {
1128
+ if (parent.hasChildNodes()) {
1133
1129
  return insertNodes(element, function (element) { return parent.insertBefore(element, parent.firstChild); });
1130
+ } else {
1131
+ return append(parent, element);
1134
1132
  }
1135
1133
  }
1136
1134
 
@@ -2294,10 +2292,10 @@
2294
2292
  scrollTop(element, scroll + top * percent);
2295
2293
 
2296
2294
  // scroll more if we have not reached our destination
2297
- if (percent !== 1) {
2298
- requestAnimationFrame(step);
2299
- } else {
2295
+ if (percent === 1) {
2300
2296
  resolve();
2297
+ } else {
2298
+ requestAnimationFrame(step);
2301
2299
  }
2302
2300
 
2303
2301
  })();
@@ -3006,12 +3004,12 @@
3006
3004
 
3007
3005
  events.forEach(function (event) {
3008
3006
 
3009
- if (!hasOwn(event, 'handler')) {
3007
+ if (hasOwn(event, 'handler')) {
3008
+ registerEvent(this$1$1, event);
3009
+ } else {
3010
3010
  for (var key in event) {
3011
3011
  registerEvent(this$1$1, event[key], key);
3012
3012
  }
3013
- } else {
3014
- registerEvent(this$1$1, event);
3015
3013
  }
3016
3014
 
3017
3015
  });
@@ -3392,10 +3390,10 @@
3392
3390
  var instance = UIkit.getComponent(element, name);
3393
3391
 
3394
3392
  if (instance) {
3395
- if (!data) {
3396
- return instance;
3397
- } else {
3393
+ if (data) {
3398
3394
  instance.$destroy();
3395
+ } else {
3396
+ return instance;
3399
3397
  }
3400
3398
  }
3401
3399
 
@@ -3465,7 +3463,7 @@
3465
3463
  UIkit.data = '__uikit__';
3466
3464
  UIkit.prefix = 'uk-';
3467
3465
  UIkit.options = {};
3468
- UIkit.version = '3.9.5-dev.e48c5e252';
3466
+ UIkit.version = '3.10.1-dev.6b26facf9';
3469
3467
 
3470
3468
  globalAPI(UIkit);
3471
3469
  hooksAPI(UIkit);
@@ -4105,7 +4103,7 @@
4105
4103
 
4106
4104
  var cover = {
4107
4105
 
4108
- mixins: [Class, Video],
4106
+ mixins: [Video],
4109
4107
 
4110
4108
  props: {
4111
4109
  width: Number,
@@ -5790,6 +5788,8 @@
5790
5788
 
5791
5789
  props: {
5792
5790
  dataSrc: String,
5791
+ dataSrcset: Boolean,
5792
+ sizes: String,
5793
5793
  width: Number,
5794
5794
  height: Number,
5795
5795
  offsetTop: String,
@@ -5799,6 +5799,8 @@
5799
5799
 
5800
5800
  data: {
5801
5801
  dataSrc: '',
5802
+ dataSrcset: false,
5803
+ sizes: false,
5802
5804
  width: false,
5803
5805
  height: false,
5804
5806
  offsetTop: '50vh',
@@ -5814,6 +5816,31 @@
5814
5816
  return ((this.$name) + "." + dataSrc);
5815
5817
  },
5816
5818
 
5819
+ width: function(ref) {
5820
+ var width = ref.width;
5821
+ var dataWidth = ref.dataWidth;
5822
+
5823
+ return width || dataWidth;
5824
+ },
5825
+
5826
+ height: function(ref) {
5827
+ var height = ref.height;
5828
+ var dataHeight = ref.dataHeight;
5829
+
5830
+ return height || dataHeight;
5831
+ },
5832
+
5833
+ sizes: function(ref) {
5834
+ var sizes = ref.sizes;
5835
+ var dataSizes = ref.dataSizes;
5836
+
5837
+ return sizes || dataSizes;
5838
+ },
5839
+
5840
+ isImg: function(_, $el) {
5841
+ return isImg($el);
5842
+ },
5843
+
5817
5844
  target: {
5818
5845
 
5819
5846
  get: function(ref) {
@@ -5845,14 +5872,14 @@
5845
5872
  connected: function() {
5846
5873
 
5847
5874
  if (!window.IntersectionObserver) {
5848
- setSrcAttrs(this.$el);
5875
+ setSrcAttrs(this.$el, this.dataSrc, this.dataSrcset, this.sizes);
5849
5876
  return;
5850
5877
  }
5851
5878
 
5852
5879
  if (storage[this.cacheKey]) {
5853
- setSrcAttrs(this.$el, storage[this.cacheKey]);
5854
- } else if (isImg(this.$el) && this.width && this.height) {
5855
- attr(this.$el, 'src', getPlaceholderImage(this.$el));
5880
+ setSrcAttrs(this.$el, storage[this.cacheKey], this.dataSrcset, this.sizes);
5881
+ } else if (this.isImg && this.width && this.height) {
5882
+ setSrcAttrs(this.$el, getPlaceholderImage(this.width, this.height, this.sizes));
5856
5883
  }
5857
5884
 
5858
5885
  this.observer = new IntersectionObserver(this.load, {
@@ -5882,7 +5909,7 @@
5882
5909
  this.load(this.observer.takeRecords());
5883
5910
  }
5884
5911
 
5885
- if (isImg(this.$el)) {
5912
+ if (this.isImg) {
5886
5913
  return false;
5887
5914
  }
5888
5915
 
@@ -5890,15 +5917,14 @@
5890
5917
 
5891
5918
  },
5892
5919
 
5893
- write: function(store) {
5920
+ write: function(data) {
5894
5921
 
5895
- var srcset = data(this.$el, 'data-srcset');
5896
- if (srcset && window.devicePixelRatio !== 1) {
5922
+ if (this.dataSrcset && window.devicePixelRatio !== 1) {
5897
5923
 
5898
5924
  var bgSize = css(this.$el, 'backgroundSize');
5899
- if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) === store.bgSize) {
5900
- store.bgSize = getSourceSize(srcset, data(this.$el, 'sizes'));
5901
- css(this.$el, 'backgroundSize', ((store.bgSize) + "px"));
5925
+ if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) === data.bgSize) {
5926
+ data.bgSize = getSourceSize(this.dataSrcset, this.sizes);
5927
+ css(this.$el, 'backgroundSize', ((data.bgSize) + "px"));
5902
5928
  }
5903
5929
 
5904
5930
  }
@@ -5920,9 +5946,9 @@
5920
5946
  return;
5921
5947
  }
5922
5948
 
5923
- this._data.image = getImageFromElement(this.$el, this.dataSrc).then(function (img) {
5949
+ this._data.image = getImage(this.dataSrc, this.dataSrcset, this.sizes).then(function (img) {
5924
5950
 
5925
- setSrcAttrs(this$1$1.$el, currentSrc(img));
5951
+ setSrcAttrs(this$1$1.$el, currentSrc(img), img.srcset, img.sizes);
5926
5952
  storage[this$1$1.cacheKey] = currentSrc(img);
5927
5953
  return img;
5928
5954
 
@@ -5943,19 +5969,13 @@
5943
5969
 
5944
5970
  };
5945
5971
 
5946
- var srcProps = ['data-src', 'data-srcset', 'sizes'];
5947
- function setSrcAttrs(el, src) {
5972
+ function setSrcAttrs(el, src, srcset, sizes) {
5948
5973
 
5949
- var parentNode = parent(el);
5950
5974
  if (isImg(el)) {
5951
- (isPicture(parentNode) ? children(parentNode) : [el]).forEach(function (el) { return srcProps.forEach(function (prop) {
5952
- var value = data(el, prop);
5953
- if (value) {
5954
- attr(el, prop.replace(/^(data-)+/, ''), value);
5955
- }
5956
- }); }
5957
- );
5958
- src && attr(el, 'src', src);
5975
+ var set = function (prop, val) { return val && val !== el[prop] && (el[prop] = val); };
5976
+ set('sizes', sizes);
5977
+ set('srcset', srcset);
5978
+ set('src', src);
5959
5979
  } else if (src) {
5960
5980
 
5961
5981
  var change = !includes(el.style.backgroundImage, src);
@@ -5968,12 +5988,9 @@
5968
5988
 
5969
5989
  }
5970
5990
 
5971
- function getPlaceholderImage(el) {
5991
+ function getPlaceholderImage(width, height, sizes) {
5972
5992
  var assign;
5973
5993
 
5974
- var sizes = data(el, 'sizes');
5975
- var width = data(el, 'width');
5976
- var height = data(el, 'height');
5977
5994
 
5978
5995
  if (sizes) {
5979
5996
  ((assign = Dimensions.ratio({width: width, height: height}, 'width', toPx(sizesToPixel(sizes))), width = assign.width, height = assign.height));
@@ -5998,24 +6015,6 @@
5998
6015
  return matches || '100vw';
5999
6016
  }
6000
6017
 
6001
- function getImageFromElement(el, src) {
6002
- var parentNode = parent(el);
6003
-
6004
- if (!src) {
6005
- return Promise.reject(createEvent('error', false));
6006
- }
6007
-
6008
- if (!isPicture(parentNode)) {
6009
- return getImage.apply(void 0, [ src ].concat( srcProps.slice(1).map(function (prop) { return data(el, prop); }) ));
6010
- }
6011
-
6012
- return new Promise(function (resolve, reject) {
6013
- var picture = parentNode.cloneNode(true);
6014
- once(picture, 'load error', function (e) { return e.type === 'error' ? reject(e) : resolve(e.target); }, true);
6015
- setSrcAttrs($('img', picture));
6016
- });
6017
- }
6018
-
6019
6018
  var sizeRe = /\d+(?:\w+|%)/g;
6020
6019
  var additionRe = /[+-]?(\d+)/g;
6021
6020
  function evaluateSize(size) {
@@ -6037,16 +6036,8 @@
6037
6036
  return descriptors.filter(function (size) { return size >= srcSize; })[0] || descriptors.pop() || '';
6038
6037
  }
6039
6038
 
6040
- function isPicture(el) {
6041
- return isA(el, 'PICTURE');
6042
- }
6043
-
6044
6039
  function isImg(el) {
6045
- return isA(el, 'IMG');
6046
- }
6047
-
6048
- function isA(el, tagName) {
6049
- return el && el.tagName === tagName;
6040
+ return el.tagName === 'IMG';
6050
6041
  }
6051
6042
 
6052
6043
  function currentSrc(el) {
@@ -7843,7 +7834,7 @@
7843
7834
  this.show();
7844
7835
  }
7845
7836
 
7846
- height$1 = !this.isActive ? this.$el.offsetHeight : height$1;
7837
+ height$1 = this.isActive ? height$1 : this.$el.offsetHeight;
7847
7838
 
7848
7839
  if (height$1 + this.offset > height(window)) {
7849
7840
  this.inactive = true;
@@ -8253,6 +8244,8 @@
8253
8244
 
8254
8245
  };
8255
8246
 
8247
+ var KEY_SPACE = 32;
8248
+
8256
8249
  var toggle = {
8257
8250
 
8258
8251
  mixins: [Media, Togglable],
@@ -8375,12 +8368,11 @@
8375
8368
  name: 'keydown',
8376
8369
 
8377
8370
  filter: function() {
8378
- return includes(this.mode, 'click');
8371
+ return includes(this.mode, 'click') && this.$el.tagName !== 'INPUT';
8379
8372
  },
8380
8373
 
8381
8374
  handler: function(e) {
8382
- // Space
8383
- if (e.keyCode === 32) {
8375
+ if (e.keyCode === KEY_SPACE) {
8384
8376
  e.preventDefault();
8385
8377
  this.$el.click();
8386
8378
  }