uikit 3.9.3-dev.770c92c8a → 3.9.3-dev.dc54c8709
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/util.js +18 -10
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +2 -2
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +2 -2
- package/dist/js/uikit.min.js +2 -2
- package/package.json +3 -1
- package/tests/comment.html +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitcountdown",["uikit-util"],n):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitCountdown=n(t.UIkit.util)}(this,(function(t){"use strict";var n={mixins:[{connected:function(){!t.hasClass(this.$el,this.$name)&&t.addClass(this.$el,this.$name)}}],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},computed:{date:function(t){var n=t.date;return Date.parse(n)},days:function(n,e){var i=n.clsWrapper;return t.$(i.replace("%unit%","days"),e)},hours:function(n,e){var i=n.clsWrapper;return t.$(i.replace("%unit%","hours"),e)},minutes:function(n,e){var i=n.clsWrapper;return t.$(i.replace("%unit%","minutes"),e)},seconds:function(n,e){var i=n.clsWrapper;return t.$(i.replace("%unit%","seconds"),e)},units:function(){var t=this;return["days","hours","minutes","seconds"].filter((function(n){return t[n]}))}},connected:function(){this.start()},disconnected:function(){var n=this;this.stop(),this.units.forEach((function(e){return t.empty(n[e])}))},events:[{name:"visibilitychange",el:function(){return document},handler:function(){document.hidden?this.stop():this.start()}}],update:{write:function(){var n,e,i=this,s=(n=this.date,{total:e=n-Date.now(),seconds:e/1e3%60,minutes:e/1e3/60%60,hours:e/1e3/60/60%24,days:e/1e3/60/60/24});s.total<=0&&(this.stop(),s.days=s.hours=s.minutes=s.seconds=0),this.units.forEach((function(n){var e=String(Math.floor(s[n]));e=e.length<2?"0"+e:e;var r=i[n];r.textContent!==e&&((e=e.split("")).length!==r.children.length&&t.html(r,e.map((function(){return"<span></span>"})).join("")),e.forEach((function(t,n){return r.children[n].textContent=t})))}))}},methods:{start:function(){this.stop(),this.date&&this.units.length&&(this.$update(),this.timer=setInterval(this.$update,1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("countdown",n),n}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitfilter",["uikit-util"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitFilter=e(t.UIkit.util)}(this,(function(t){"use strict";function e(e){return function(e,i,r){for(var o=[[]],a=0;a<e.length;a++){var s=e[a];if(t.isVisible(s))for(var u=n(s),f=o.length-1;f>=0;f--){var c=o[f];if(!c[0]){c.push(s);break}var l=void 0;if(c[0].offsetParent===s.offsetParent?l=n(c[0]):(u=n(s,!0),l=n(c[0],!0)),u[i]>=l[r]-1&&u[i]!==l[i]){o.push([s]);break}if(u[r]-1>l[i]||u[i]===l[i]){c.push(s);break}if(0===f){o.unshift([s]);break}}}return o}(e,"top","bottom")}function n(e,n){var i;void 0===n&&(n=!1);var r=e.offsetTop,o=e.offsetLeft,a=e.offsetHeight,s=e.offsetWidth;return n&&(r=(i=t.offsetPosition(e))[0],o=i[1]),{top:r,left:o,bottom:r+a,right:o+s}}var i="uk-transition-leave",r="uk-transition-enter";function o(e,n,o,f){void 0===f&&(f=0);var c=a(n,!0),l={opacity:1},d={opacity:0},h=function(e){return function(){return c===a(n)?e():t.Promise.reject()}},p=h((function(){return t.addClass(n,i),t.Promise.all(u(n).map((function(e,n){return new t.Promise((function(i){return setTimeout((function(){return t.Transition.start(e,d,o/2,"ease").then(i)}),n*f)}))}))).then((function(){return t.removeClass(n,i)}))})),m=h((function(){var i=t.height(n);return t.addClass(n,r),e(),t.css(t.children(n),{opacity:0}),new t.Promise((function(e){return requestAnimationFrame((function(){var s=t.children(n),h=t.height(n);t.css(n,"alignContent","flex-start"),t.height(n,i);var p=u(n);t.css(s,d);var m=p.map((function(e,n){return new t.Promise((function(i){return setTimeout((function(){return t.Transition.start(e,l,o/2,"ease").then(i)}),n*f)}))}));i!==h&&m.push(t.Transition.start(n,{height:h},o/2+p.length*f,"ease")),t.Promise.all(m).then((function(){t.removeClass(n,r),c===a(n)&&(t.css(n,{height:"",alignContent:""}),t.css(s,{opacity:""}),delete n.dataset.transition),e()}))}))}))}));return t.hasClass(n,i)?s(n).then(m):t.hasClass(n,r)?s(n).then(p).then(m):p().then(m)}function a(e,n){return n&&(e.dataset.transition=1+a(e)),t.toNumber(e.dataset.transition)||0}function s(e){return t.Promise.all(t.children(e).filter(t.Transition.inProgress).map((function(e){return new t.Promise((function(n){return t.once(e,"transitionend transitioncanceled",n)}))})))}function u(n){return e(t.children(n)).reduce((function(e,n){return e.concat(t.sortBy(n.filter((function(e){return t.isInView(e)})),"offsetLeft"))}),[])}function f(e,n,i){return new t.Promise((function(r){return requestAnimationFrame((function(){var o=t.children(n),a=o.map((function(t){return c(t,!0)})),s=t.css(n,["height","padding"]);t.Transition.cancel(n),o.forEach(t.Transition.cancel),l(n),e(),o=o.concat(t.children(n).filter((function(e){return!t.includes(o,e)}))),t.Promise.resolve().then((function(){t.fastdom.flush();var e=t.css(n,["height","padding"]),u=function(e,n,i){var r=n.map((function(e,n){return!(!t.parent(e)||!(n in i))&&(i[n]?t.isVisible(e)?d(e):{opacity:0}:{opacity:t.isVisible(e)?1:0})})),o=r.map((function(r,o){var a=t.parent(n[o])===e&&(i[o]||c(n[o]));if(!a)return!1;if(r){if(!("opacity"in r)){a.opacity%1?r.opacity=1:delete a.opacity}}else delete a.opacity;return a}));return[r,o]}(n,o,a),f=u[0],h=u[1];o.forEach((function(e,n){return h[n]&&t.css(e,h[n])})),t.css(n,t.assign({display:"block"},s)),requestAnimationFrame((function(){var a=o.map((function(e,r){return t.parent(e)===n&&t.Transition.start(e,f[r],i,"ease")})).concat(t.Transition.start(n,e,i,"ease"));t.Promise.all(a).then((function(){o.forEach((function(e,i){return t.parent(e)===n&&t.css(e,"display",0===f[i].opacity?"none":"")})),l(n)}),t.noop).then(r)}))}))}))}))}function c(e,n){var i=t.css(e,"zIndex");return!!t.isVisible(e)&&t.assign({display:"",opacity:n?t.css(e,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===i?t.index(e):i},d(e))}function l(e){t.css(e.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),t.css(e,{height:"",display:"",padding:""})}function d(e){var n=t.offset(e),i=n.height,r=n.width,o=t.position(e),a=o.top,s=o.left,u=t.css(e,["marginTop","marginLeft"]);return{top:a,left:s,height:i,width:r,marginLeft:u.marginLeft,marginTop:u.marginTop,transform:""}}var h={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate:function(e,n){var i=this;void 0===n&&(n=this.$el);var r=this.animation,a="fade"===r?o:"delayed-fade"===r?function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.apply(void 0,t.concat([40]))}:r?f:function(){return e(),t.Promise.resolve()};return a(e,n,this.duration).then((function(){return i.$update(n,"resize")}),t.noop)}}},p={mixins:[h],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles:{get:function(e,n){var i=e.attrItem;return t.$$("["+i+"],[data-"+i+"]",n)},watch:function(){var e=this;if(this.updateState(),!1!==this.selActive){var n=t.$$(this.selActive,this.$el);this.toggles.forEach((function(i){return t.toggleClass(i,e.cls,t.includes(n,i))}))}},immediate:!0},children:{get:function(e,n){var i=e.target;return t.$$(i+" > *",n)},watch:function(t,e){var n,i;e&&(i=e,(n=t).length!==i.length||!n.every((function(t){return~i.indexOf(t)})))&&this.updateState()},immediate:!0}},events:[{name:"click",delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.apply(t.current)}}],methods:{apply:function(e){var n,i,r=this.getState(),o=v(e,this.attrItem,this.getState());n=r,i=o,["filter","sort"].every((function(e){return t.isEqual(n[e],i[e])}))||this.setState(o)},getState:function(){var e=this;return this.toggles.filter((function(n){return t.hasClass(n,e.cls)})).reduce((function(t,n){return v(n,e.attrItem,t)}),{filter:{"":""},sort:[]})},setState:function(e,n){var i=this;void 0===n&&(n=!0),e=t.assign({filter:{"":""},sort:[]},e),t.trigger(this.$el,"beforeFilter",[this,e]),this.toggles.forEach((function(n){return t.toggleClass(n,i.cls,!!function(e,n,i){var r=i.filter;void 0===r&&(r={"":""});var o=i.sort,a=o[0],s=o[1],u=m(e,n),f=u.filter;void 0===f&&(f="");var c=u.group;void 0===c&&(c="");var l=u.sort,d=u.order;void 0===d&&(d="asc");return t.isUndefined(l)?c in r&&f===r[c]||!f&&c&&!(c in r)&&!r[""]:a===l&&s===d}(n,i.attrItem,e))})),t.Promise.all(t.$$(this.target,this.$el).map((function(r){var o=function(){!function(e,n,i){var r=function(e){var n=e.filter,i="";return t.each(n,(function(t){return i+=t||""})),i}(e);i.forEach((function(e){return t.css(e,"display",r&&!t.matches(e,r)?"none":"")}));var o=e.sort,a=o[0],s=o[1];if(a){var u=function(e,n,i){return t.assign([],e).sort((function(e,r){return t.data(e,n).localeCompare(t.data(r,n),void 0,{numeric:!0})*("asc"===i||-1)}))}(i,a,s);t.isEqual(u,i)||t.append(n,u)}}(e,r,t.children(r)),i.$update(i.$el)};return n?i.animate(o,r):o()}))).then((function(){return t.trigger(i.$el,"afterFilter",[i])}))},updateState:function(){var e=this;t.fastdom.write((function(){return e.setState(e.getState(),!1)}))}}};function m(e,n){return t.parseOptions(t.data(e,n),["filter"])}function v(e,n,i){var r=m(e,n),o=r.filter,a=r.group,s=r.sort,u=r.order;return void 0===u&&(u="asc"),(o||t.isUndefined(s))&&(a?o?(delete i.filter[""],i.filter[a]=o):(delete i.filter[a],(t.isEmpty(i.filter)||""in i.filter)&&(i.filter={"":o||""})):i.filter={"":o||""}),t.isUndefined(s)||(i.sort=[s,u]),i}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("filter",p),p}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitlightbox_panel",["uikit-util"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitLightbox_panel=e(t.UIkit.util)}(this,(function(t){"use strict";var e={slide:{show:function(t){return[{transform:i(-100*t)},{transform:i()}]},percent:function(e){return i=e,Math.abs(t.css(i,"transform").split(",")[4]/i.offsetWidth)||0;var i},translate:function(t,e){return[{transform:i(-100*e*t)},{transform:i(100*e*(1-t))}]}}};function i(e,i){return void 0===e&&(e=0),void 0===i&&(i="%"),e+=e?i:"",t.isIE?"translateX("+e+")":"translate3d("+e+", 0, 0)"}function n(t){return"scale3d("+t+", "+t+", 1)"}var s=t.assign({},e,{fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(e){return 1-t.css(e,"opacity")},translate:function(t){return[{opacity:1-t},{opacity:t}]}},scale:{show:function(){return[{opacity:0,transform:n(.8)},{opacity:1,transform:n(1)}]},percent:function(e){return 1-t.css(e,"opacity")},translate:function(t){return[{opacity:1-t,transform:n(1-.2*t)},{opacity:t,transform:n(.8+.2*t)}]}}}),o={props:{container:Boolean},data:{container:!0},computed:{container:function(e){var i=e.container;return!0===i&&this.$container||i&&t.$(i)}}},r={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(t){return!!t.animation[0]},hasTransition:function(t){var e=t.animation;return this.hasAnimation&&!0===e[0]}},methods:{toggleElement:function(e,i,n){var s=this;return new t.Promise((function(o){return t.Promise.all(t.toNodes(e).map((function(e){var o=t.isBoolean(i)?i:!s.isToggled(e);if(!t.trigger(e,"before"+(o?"show":"hide"),[s]))return t.Promise.reject();var r,a,h,l,u,c,d,f,g=(t.isFunction(n)?n:!1!==n&&s.hasAnimation?s.hasTransition?(h=(a=s).isToggled,l=a.duration,u=a.initProps,c=a.hideProps,d=a.transition,f=a._toggle,function(e,i){var n=t.Transition.inProgress(e),s=e.hasChildNodes?t.toFloat(t.css(e.firstElementChild,"marginTop"))+t.toFloat(t.css(e.lastElementChild,"marginBottom")):0,o=t.isVisible(e)?t.height(e)+(n?0:s):0;t.Transition.cancel(e),h(e)||f(e,!0),t.height(e,""),t.fastdom.flush();var r=t.height(e)+(n?0:s);return t.height(e,o),(i?t.Transition.start(e,t.assign({},u,{overflow:"hidden",height:r}),Math.round(l*(1-o/r)),d):t.Transition.start(e,c,Math.round(l*(o/r)),d).then((function(){return f(e,!1)}))).then((function(){return t.css(e,u)}))}):(r=s,function(e,i){t.Animation.cancel(e);var n=r.animation,s=r.duration,o=r._toggle;return i?(o(e,!0),t.Animation.in(e,n[0],s,r.origin)):t.Animation.out(e,n[1]||n[0],s,r.origin).then((function(){return o(e,!1)}))}):s._toggle)(e,o),m=o?s.clsEnter:s.clsLeave;t.addClass(e,m),t.trigger(e,o?"show":"hide",[s]);var p=function(){t.removeClass(e,m),t.trigger(e,o?"shown":"hidden",[s]),s.$update(e)};return g?g.then(p,(function(){return t.removeClass(e,m),t.Promise.reject()})):p()}))).then(o,t.noop)}))},isToggled:function(e){return void 0===e&&(e=this.$el),e=t.toNodes(e)[0],!!t.hasClass(e,this.clsEnter)||!t.hasClass(e,this.clsLeave)&&(this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e))},_toggle:function(e,i){var n;e&&(i=Boolean(i),this.cls?(n=t.includes(this.cls," ")||i!==t.hasClass(e,this.cls))&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:i):(n=i===e.hidden)&&(e.hidden=!i),t.$$("[autofocus]",e).some((function(e){return t.isVisible(e)?e.focus()||!0:e.blur()})),n&&(t.trigger(e,"toggled",[i,this]),this.$update(e)))}}};var a=[],h={mixins:[{connected:function(){!t.hasClass(this.$el,this.$name)&&t.addClass(this.$el,this.$name)}},o,r],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(e,i){var n=e.selPanel;return t.$(n,i)},transitionElement:function(){return this.panel},bgClose:function(t){return t.bgClose&&this.panel}},beforeDisconnect:function(){t.includes(a,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(e,i){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(a,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler:function(e){if(t.includes(a,this))return!1;!this.stack&&a.length?(t.Promise.all(a.map((function(t){return t.hide()}))).then(this.show),e.preventDefault()):a.push(this)}},{name:"show",self:!0,handler:function(){var e=this,i=document.documentElement;t.width(window)>i.clientWidth&&this.overlay&&t.css(document.body,"overflowY","scroll"),this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+a.length),t.addClass(i,this.clsPage),this.bgClose&&t.once(this.$el,"hide",t.on(document,t.pointerDown,(function(i){var n=i.target;t.last(a)!==e||e.overlay&&!t.within(n,e.$el)||t.within(n,e.panel)||t.once(document,t.pointerUp+" "+t.pointerCancel+" scroll",(function(i){var s=i.defaultPrevented,o=i.type,r=i.target;s||o!==t.pointerUp||n!==r||e.hide()}),!0)})),{self:!0}),this.escClose&&t.once(this.$el,"hide",t.on(document,"keydown",(function(i){27===i.keyCode&&t.last(a)===e&&e.hide()})),{self:!0})}},{name:"shown",self:!0,handler:function(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler:function(){var e=this;t.includes(a,this)&&a.splice(a.indexOf(this),1),a.length||t.css(document.body,"overflowY",""),t.css(this.$el,"zIndex",""),a.some((function(t){return t.clsPage===e.clsPage}))||t.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var e=this;return this.container&&t.parent(this.$el)!==this.container?(t.append(this.container,this.$el),new t.Promise((function(t){return requestAnimationFrame((function(){return e.show().then(t)}))}))):this.toggleElement(this.$el,!0,l(this))},hide:function(){return this.toggleElement(this.$el,!1,l(this))}}};function l(e){var i=e.transitionElement,n=e._toggle;return function(e,s){return new t.Promise((function(o,r){return t.once(e,"show hide",(function(){e._reject&&e._reject(),e._reject=r,n(e,s);var a=t.once(i,"transitionstart",(function(){t.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(h)}),{self:!0}),h=setTimeout((function(){a(),o()}),t.toMs(t.css(i,"transitionDuration")))}))})).then((function(){return delete e._reject}))}}function u(e,i,n){t.trigger(e,t.createEvent(i,!1,!1,n))}var c={mixins:[{mixins:[{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(){t.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 e=this;this.stopAutoplay(),this.interval=setInterval((function(){return(!e.draggable||!t.$(":focus",e.$el))&&(!e.pauseOnHover||!t.matches(e.$el,":hover"))&&!e.stack.length&&e.show("next")}),this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var e=this;["start","move","end"].forEach((function(i){var n=e[i];e[i]=function(i){var s=t.getEventPos(i).x*(t.isRtl?-1:1);e.prevPos=s!==e.pos?e.pos:e.prevPos,e.pos=s,n(i)}}))},events:[{name:t.pointerDown,delegate:function(){return this.selSlides},handler:function(e){var i;!this.draggable||!t.isTouch(e)&&(i=e.target,!i.children.length&&i.childNodes.length)||t.closest(e.target,t.selInput)||e.button>0||this.length<2||this.start(e)}},{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,t.on(document,t.pointerMove,this.move,{passive:!1}),t.on(document,t.pointerUp+" "+t.pointerCancel+" input",this.end,!0),t.css(this.list,"userSelect","none")},move:function(e){var i=this,n=this.pos-this.drag;if(!(0===n||this.prevPos===this.pos||!this.dragging&&Math.abs(n)<this.threshold)){t.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=n<0?1:-1;for(var s=this.slides,o=this.prevIndex,r=Math.abs(n),a=this.getIndex(o+this.dir,o),h=this._getDistance(o,a)||s[o].offsetWidth;a!==o&&r>h;)this.drag-=h*this.dir,o=a,r-=h,a=this.getIndex(o+this.dir,o),h=this._getDistance(o,a)||s[o].offsetWidth;this.percent=r/h;var l,u=s[o],c=s[a],d=this.index!==a,f=o===a;[this.index,this.prevIndex].filter((function(e){return!t.includes([a,o],e)})).forEach((function(e){t.trigger(s[e],"itemhidden",[i]),f&&(l=!0,i.prevIndex=o)})),(this.index===o&&this.prevIndex!==o||l)&&t.trigger(s[this.index],"itemshown",[this]),d&&(this.prevIndex=o,this.index=a,!f&&t.trigger(u,"beforeitemhide",[this]),t.trigger(c,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),u,!f&&c),d&&(!f&&t.trigger(u,"itemhide",[this]),t.trigger(c,"itemshow",[this]))}},end:function(){if(t.off(document,t.pointerMove,this.move,{passive:!1}),t.off(document,t.pointerUp+" "+t.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 e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(e,i){var n=e.selNav;return t.$(n,i)},selNavItem:function(t){var e=t.attrItem;return"["+e+"],[data-"+e+"]"},navItems:function(e,i){return t.$$(this.selNavItem,i)}},update:{write:function(){var e=this;this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((function(t,i){return"<li "+e.attrItem+'="'+i+'"><a href></a></li>'})).join("")),this.navItems.concat(this.nav).forEach((function(t){return t&&(t.hidden=!e.maxIndex)})),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(e){e.preventDefault(),this.show(t.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var e=this,i=this.getValidIndex();this.navItems.forEach((function(n){var s=t.data(n,e.attrItem);t.toggleClass(n,e.clsActive,t.toNumber(s)===i),t.toggleClass(n,"uk-invisible",e.finite&&("previous"===s&&0===i||"next"===s&&i>=e.maxIndex))}))}}}],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(){t.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,e){var i=t.velocity;return.5*(e.offsetWidth/i)+300},list:function(e,i){var n=e.selList;return t.$(n,i)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return t.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(e,i){var n=this;if(void 0===i&&(i=!1),!this.dragging&&this.length){var s=this.stack,o=i?0:s.length,r=function(){s.splice(o,1),s.length&&n.show(s.shift(),!0)};if(s[i?"unshift":"push"](e),!i&&s.length>1)2===s.length&&this._transitioner.forward(Math.min(this.duration,200));else{var a=this.getIndex(this.index),h=t.hasClass(this.slides,this.clsActive)&&this.slides[a],l=this.getIndex(e,this.index),u=this.slides[l];if(h!==u){if(this.dir=function(t,e){return"next"===t?1:"previous"===t||t<e?-1:1}(e,a),this.prevIndex=a,this.index=l,h&&!t.trigger(h,"beforeitemhide",[this])||!t.trigger(u,"beforeitemshow",[this,h]))return this.index=this.prevIndex,void r();var c=this._show(h,u,i).then((function(){return h&&t.trigger(h,"itemhidden",[n]),t.trigger(u,"itemshown",[n]),new t.Promise((function(e){t.fastdom.write((function(){s.shift(),s.length?n.show(s.shift(),!0):n._transitioner=null,e()}))}))}));return h&&t.trigger(h,"itemhide",[this]),t.trigger(u,"itemshow",[this]),c}r()}}},getIndex:function(e,i){return void 0===e&&(e=this.index),void 0===i&&(i=this.index),t.clamp(t.getIndex(e,this.slides,i,this.finite),0,this.maxIndex)},getValidIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.prevIndex),this.getIndex(t,e)},_show:function(e,i,n){if(this._transitioner=this._getTransitioner(e,i,this.dir,t.assign({easing:n?i.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),!n&&!e)return this._translate(1),t.Promise.resolve();var s=this.stack.length;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_getDistance:function(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate:function(t,e,i){void 0===e&&(e=this.prevIndex),void 0===i&&(i=this.index);var n=this._getTransitioner(e!==i&&e,i);return n.translate(t),n},_getTransitioner:function(e,i,n,s){return void 0===e&&(e=this.prevIndex),void 0===i&&(i=this.index),void 0===n&&(n=this.dir||1),void 0===s&&(s=this.transitionOptions),new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(i)?this.slides[i]:i,n*(t.isRtl?-1:1),s)}}}],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:e,Transitioner:function(e,i,n,s){var o=s.animation,r=s.easing,a=o.percent,h=o.translate,l=o.show;void 0===l&&(l=t.noop);var c=l(n),d=new t.Deferred;return{dir:n,show:function(s,o,a){var h=this;void 0===o&&(o=0);var l=a?"linear":r;return s-=Math.round(s*t.clamp(o,-1,1)),this.translate(o),u(i,"itemin",{percent:o,duration:s,timing:l,dir:n}),u(e,"itemout",{percent:1-o,duration:s,timing:l,dir:n}),t.Promise.all([t.Transition.start(i,c[1],s,l),t.Transition.start(e,c[0],s,l)]).then((function(){h.reset(),d.resolve()}),t.noop),d.promise},cancel:function(){t.Transition.cancel([i,e])},reset:function(){for(var n in c[0])t.css([i,e],n,"")},forward:function(n,s){return void 0===s&&(s=this.percent()),t.Transition.cancel([i,e]),this.show(n,s,!0)},translate:function(s){this.reset();var o=h(s,n);t.css(i,o[1]),t.css(e,o[0]),u(i,"itemtranslatein",{percent:s,dir:n}),u(e,"itemtranslateout",{percent:1-s,dir:n})},percent:function(){return a(e||i,i,n)},getDistance:function(){return e&&e.offsetWidth}}}},computed:{animation:function(e){var i=e.animation,n=e.Animations;return t.assign(n[i]||n.slide,{name:i})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){var e=t.target;this.$update(e)},beforeitemshow:function(e){var i=e.target;t.addClass(i,this.clsActive)},itemshown:function(e){var i=e.target;t.addClass(i,this.clsActivated)},itemhidden:function(e){var i=e.target;t.removeClass(i,this.clsActive,this.clsActivated)}}},d={mixins:[o,h,r,c],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:function(){return{preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:s,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}},created:function(){var e=t.$(this.template),i=t.$(this.selList,e);this.items.forEach((function(){return t.append(i,"<li>")})),this.$mount(t.append(this.container,e))},computed:{caption:function(e,i){var n=e.selCaption;return t.$(n,i)}},events:[{name:t.pointerMove+" "+t.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate:function(){return this.selSlides},handler:function(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:function(){this.showControls()}},{name:"hide",self:!0,handler:function(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler:function(){this.$destroy(!0)}},{name:"keyup",el:function(){return document},handler:function(t){if(this.isToggled(this.$el)&&this.draggable)switch(t.keyCode){case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"beforeitemshow",handler:function(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=s.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler:function(){t.html(this.caption,this.getItem().caption||"");for(var e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler:function(){this.draggable=this.$props.draggable}},{name:"itemload",handler:function(e,i){var n=this,s=i.source,o=i.type,r=i.alt;void 0===r&&(r="");var a=i.poster,h=i.attrs;if(void 0===h&&(h={}),this.setItem(i,"<span uk-spinner></span>"),s){var l,u={frameborder:"0",allow:"autoplay",allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if("image"===o||s.match(/\.(avif|jpe?g|a?png|gif|svg|webp)($|\?)/i))t.getImage(s,h.srcset,h.size).then((function(e){var o=e.width,a=e.height;return n.setItem(i,f("img",t.assign({src:s,width:o,height:a,alt:r},h)))}),(function(){return n.setError(i)}));else if("video"===o||s.match(/\.(mp4|webm|ogv)($|\?)/i)){var c=f("video",t.assign({src:s,poster:a,controls:"",playsinline:"","uk-video":""+this.videoAutoplay},h));t.on(c,"loadedmetadata",(function(){t.attr(c,{width:c.videoWidth,height:c.videoHeight}),n.setItem(i,c)})),t.on(c,"error",(function(){return n.setError(i)}))}else"iframe"===o||s.match(/\.(html|php)($|\?)/i)?this.setItem(i,f("iframe",t.assign({src:s,frameborder:"0",allowfullscreen:"",class:"uk-lightbox-iframe"},h))):(l=s.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))?this.setItem(i,f("iframe",t.assign({src:"https://www.youtube"+(l[1]||"")+".com/embed/"+l[2]+(l[3]?"?"+l[3]:""),width:1920,height:1080},u,h))):(l=s.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))&&t.ajax("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(s),{responseType:"json",withCredentials:!1}).then((function(e){var s=e.response,o=s.height,r=s.width;return n.setItem(i,f("iframe",t.assign({src:"https://player.vimeo.com/video/"+l[1]+(l[2]?"?"+l[2]:""),width:r,height:o},u,h)))}),(function(){return n.setError(i)}))}}}],methods:{loadItem:function(e){void 0===e&&(e=this.index);var i=this.getItem(e);this.getSlide(i).childElementCount||t.trigger(this.$el,"itemload",[i])},getItem:function(e){return void 0===e&&(e=this.index),this.items[t.getIndex(e,this.slides)]},setItem:function(e,i){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),i)])},getSlide:function(t){return this.slides[this.items.indexOf(t)]},setError:function(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls:function(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function f(e,i){var n=t.fragment("<"+e+">");return t.attr(n,i),n}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("lightboxPanel",d),d}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitlightbox",["uikit-util"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitLightbox=e(t.UIkit.util)}(this,(function(t){"use strict";var e={slide:{show:function(t){return[{transform:i(-100*t)},{transform:i()}]},percent:function(e){return i=e,Math.abs(t.css(i,"transform").split(",")[4]/i.offsetWidth)||0;var i},translate:function(t,e){return[{transform:i(-100*e*t)},{transform:i(100*e*(1-t))}]}}};function i(e,i){return void 0===e&&(e=0),void 0===i&&(i="%"),e+=e?i:"",t.isIE?"translateX("+e+")":"translate3d("+e+", 0, 0)"}function n(t){return"scale3d("+t+", "+t+", 1)"}var s=t.assign({},e,{fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(e){return 1-t.css(e,"opacity")},translate:function(t){return[{opacity:1-t},{opacity:t}]}},scale:{show:function(){return[{opacity:0,transform:n(.8)},{opacity:1,transform:n(1)}]},percent:function(e){return 1-t.css(e,"opacity")},translate:function(t){return[{opacity:1-t,transform:n(1-.2*t)},{opacity:t,transform:n(.8+.2*t)}]}}}),o={props:{container:Boolean},data:{container:!0},computed:{container:function(e){var i=e.container;return!0===i&&this.$container||i&&t.$(i)}}},r={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(t){return!!t.animation[0]},hasTransition:function(t){var e=t.animation;return this.hasAnimation&&!0===e[0]}},methods:{toggleElement:function(e,i,n){var s=this;return new t.Promise((function(o){return t.Promise.all(t.toNodes(e).map((function(e){var o=t.isBoolean(i)?i:!s.isToggled(e);if(!t.trigger(e,"before"+(o?"show":"hide"),[s]))return t.Promise.reject();var r,a,h,l,u,c,d,f,g=(t.isFunction(n)?n:!1!==n&&s.hasAnimation?s.hasTransition?(h=(a=s).isToggled,l=a.duration,u=a.initProps,c=a.hideProps,d=a.transition,f=a._toggle,function(e,i){var n=t.Transition.inProgress(e),s=e.hasChildNodes?t.toFloat(t.css(e.firstElementChild,"marginTop"))+t.toFloat(t.css(e.lastElementChild,"marginBottom")):0,o=t.isVisible(e)?t.height(e)+(n?0:s):0;t.Transition.cancel(e),h(e)||f(e,!0),t.height(e,""),t.fastdom.flush();var r=t.height(e)+(n?0:s);return t.height(e,o),(i?t.Transition.start(e,t.assign({},u,{overflow:"hidden",height:r}),Math.round(l*(1-o/r)),d):t.Transition.start(e,c,Math.round(l*(o/r)),d).then((function(){return f(e,!1)}))).then((function(){return t.css(e,u)}))}):(r=s,function(e,i){t.Animation.cancel(e);var n=r.animation,s=r.duration,o=r._toggle;return i?(o(e,!0),t.Animation.in(e,n[0],s,r.origin)):t.Animation.out(e,n[1]||n[0],s,r.origin).then((function(){return o(e,!1)}))}):s._toggle)(e,o),p=o?s.clsEnter:s.clsLeave;t.addClass(e,p),t.trigger(e,o?"show":"hide",[s]);var m=function(){t.removeClass(e,p),t.trigger(e,o?"shown":"hidden",[s]),s.$update(e)};return g?g.then(m,(function(){return t.removeClass(e,p),t.Promise.reject()})):m()}))).then(o,t.noop)}))},isToggled:function(e){return void 0===e&&(e=this.$el),e=t.toNodes(e)[0],!!t.hasClass(e,this.clsEnter)||!t.hasClass(e,this.clsLeave)&&(this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e))},_toggle:function(e,i){var n;e&&(i=Boolean(i),this.cls?(n=t.includes(this.cls," ")||i!==t.hasClass(e,this.cls))&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:i):(n=i===e.hidden)&&(e.hidden=!i),t.$$("[autofocus]",e).some((function(e){return t.isVisible(e)?e.focus()||!0:e.blur()})),n&&(t.trigger(e,"toggled",[i,this]),this.$update(e)))}}};var a=[],h={mixins:[{connected:function(){!t.hasClass(this.$el,this.$name)&&t.addClass(this.$el,this.$name)}},o,r],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(e,i){var n=e.selPanel;return t.$(n,i)},transitionElement:function(){return this.panel},bgClose:function(t){return t.bgClose&&this.panel}},beforeDisconnect:function(){t.includes(a,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(e,i){e.defaultPrevented||(e.preventDefault(),this.isToggled()===t.includes(a,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler:function(e){if(t.includes(a,this))return!1;!this.stack&&a.length?(t.Promise.all(a.map((function(t){return t.hide()}))).then(this.show),e.preventDefault()):a.push(this)}},{name:"show",self:!0,handler:function(){var e=this,i=document.documentElement;t.width(window)>i.clientWidth&&this.overlay&&t.css(document.body,"overflowY","scroll"),this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+a.length),t.addClass(i,this.clsPage),this.bgClose&&t.once(this.$el,"hide",t.on(document,t.pointerDown,(function(i){var n=i.target;t.last(a)!==e||e.overlay&&!t.within(n,e.$el)||t.within(n,e.panel)||t.once(document,t.pointerUp+" "+t.pointerCancel+" scroll",(function(i){var s=i.defaultPrevented,o=i.type,r=i.target;s||o!==t.pointerUp||n!==r||e.hide()}),!0)})),{self:!0}),this.escClose&&t.once(this.$el,"hide",t.on(document,"keydown",(function(i){27===i.keyCode&&t.last(a)===e&&e.hide()})),{self:!0})}},{name:"shown",self:!0,handler:function(){t.isFocusable(this.$el)||t.attr(this.$el,"tabindex","-1"),t.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler:function(){var e=this;t.includes(a,this)&&a.splice(a.indexOf(this),1),a.length||t.css(document.body,"overflowY",""),t.css(this.$el,"zIndex",""),a.some((function(t){return t.clsPage===e.clsPage}))||t.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var e=this;return this.container&&t.parent(this.$el)!==this.container?(t.append(this.container,this.$el),new t.Promise((function(t){return requestAnimationFrame((function(){return e.show().then(t)}))}))):this.toggleElement(this.$el,!0,l(this))},hide:function(){return this.toggleElement(this.$el,!1,l(this))}}};function l(e){var i=e.transitionElement,n=e._toggle;return function(e,s){return new t.Promise((function(o,r){return t.once(e,"show hide",(function(){e._reject&&e._reject(),e._reject=r,n(e,s);var a=t.once(i,"transitionstart",(function(){t.once(i,"transitionend transitioncancel",o,{self:!0}),clearTimeout(h)}),{self:!0}),h=setTimeout((function(){a(),o()}),t.toMs(t.css(i,"transitionDuration")))}))})).then((function(){return delete e._reject}))}}function u(e,i,n){t.trigger(e,t.createEvent(i,!1,!1,n))}var c={mixins:[{mixins:[{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(){t.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 e=this;this.stopAutoplay(),this.interval=setInterval((function(){return(!e.draggable||!t.$(":focus",e.$el))&&(!e.pauseOnHover||!t.matches(e.$el,":hover"))&&!e.stack.length&&e.show("next")}),this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var e=this;["start","move","end"].forEach((function(i){var n=e[i];e[i]=function(i){var s=t.getEventPos(i).x*(t.isRtl?-1:1);e.prevPos=s!==e.pos?e.pos:e.prevPos,e.pos=s,n(i)}}))},events:[{name:t.pointerDown,delegate:function(){return this.selSlides},handler:function(e){var i;!this.draggable||!t.isTouch(e)&&(i=e.target,!i.children.length&&i.childNodes.length)||t.closest(e.target,t.selInput)||e.button>0||this.length<2||this.start(e)}},{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,t.on(document,t.pointerMove,this.move,{passive:!1}),t.on(document,t.pointerUp+" "+t.pointerCancel+" input",this.end,!0),t.css(this.list,"userSelect","none")},move:function(e){var i=this,n=this.pos-this.drag;if(!(0===n||this.prevPos===this.pos||!this.dragging&&Math.abs(n)<this.threshold)){t.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=n<0?1:-1;for(var s=this.slides,o=this.prevIndex,r=Math.abs(n),a=this.getIndex(o+this.dir,o),h=this._getDistance(o,a)||s[o].offsetWidth;a!==o&&r>h;)this.drag-=h*this.dir,o=a,r-=h,a=this.getIndex(o+this.dir,o),h=this._getDistance(o,a)||s[o].offsetWidth;this.percent=r/h;var l,u=s[o],c=s[a],d=this.index!==a,f=o===a;[this.index,this.prevIndex].filter((function(e){return!t.includes([a,o],e)})).forEach((function(e){t.trigger(s[e],"itemhidden",[i]),f&&(l=!0,i.prevIndex=o)})),(this.index===o&&this.prevIndex!==o||l)&&t.trigger(s[this.index],"itemshown",[this]),d&&(this.prevIndex=o,this.index=a,!f&&t.trigger(u,"beforeitemhide",[this]),t.trigger(c,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),u,!f&&c),d&&(!f&&t.trigger(u,"itemhide",[this]),t.trigger(c,"itemshow",[this]))}},end:function(){if(t.off(document,t.pointerMove,this.move,{passive:!1}),t.off(document,t.pointerUp+" "+t.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 e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(e,i){var n=e.selNav;return t.$(n,i)},selNavItem:function(t){var e=t.attrItem;return"["+e+"],[data-"+e+"]"},navItems:function(e,i){return t.$$(this.selNavItem,i)}},update:{write:function(){var e=this;this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((function(t,i){return"<li "+e.attrItem+'="'+i+'"><a href></a></li>'})).join("")),this.navItems.concat(this.nav).forEach((function(t){return t&&(t.hidden=!e.maxIndex)})),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(e){e.preventDefault(),this.show(t.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var e=this,i=this.getValidIndex();this.navItems.forEach((function(n){var s=t.data(n,e.attrItem);t.toggleClass(n,e.clsActive,t.toNumber(s)===i),t.toggleClass(n,"uk-invisible",e.finite&&("previous"===s&&0===i||"next"===s&&i>=e.maxIndex))}))}}}],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(){t.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,e){var i=t.velocity;return.5*(e.offsetWidth/i)+300},list:function(e,i){var n=e.selList;return t.$(n,i)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return t.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(e,i){var n=this;if(void 0===i&&(i=!1),!this.dragging&&this.length){var s=this.stack,o=i?0:s.length,r=function(){s.splice(o,1),s.length&&n.show(s.shift(),!0)};if(s[i?"unshift":"push"](e),!i&&s.length>1)2===s.length&&this._transitioner.forward(Math.min(this.duration,200));else{var a=this.getIndex(this.index),h=t.hasClass(this.slides,this.clsActive)&&this.slides[a],l=this.getIndex(e,this.index),u=this.slides[l];if(h!==u){if(this.dir=function(t,e){return"next"===t?1:"previous"===t||t<e?-1:1}(e,a),this.prevIndex=a,this.index=l,h&&!t.trigger(h,"beforeitemhide",[this])||!t.trigger(u,"beforeitemshow",[this,h]))return this.index=this.prevIndex,void r();var c=this._show(h,u,i).then((function(){return h&&t.trigger(h,"itemhidden",[n]),t.trigger(u,"itemshown",[n]),new t.Promise((function(e){t.fastdom.write((function(){s.shift(),s.length?n.show(s.shift(),!0):n._transitioner=null,e()}))}))}));return h&&t.trigger(h,"itemhide",[this]),t.trigger(u,"itemshow",[this]),c}r()}}},getIndex:function(e,i){return void 0===e&&(e=this.index),void 0===i&&(i=this.index),t.clamp(t.getIndex(e,this.slides,i,this.finite),0,this.maxIndex)},getValidIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.prevIndex),this.getIndex(t,e)},_show:function(e,i,n){if(this._transitioner=this._getTransitioner(e,i,this.dir,t.assign({easing:n?i.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),!n&&!e)return this._translate(1),t.Promise.resolve();var s=this.stack.length;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_getDistance:function(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate:function(t,e,i){void 0===e&&(e=this.prevIndex),void 0===i&&(i=this.index);var n=this._getTransitioner(e!==i&&e,i);return n.translate(t),n},_getTransitioner:function(e,i,n,s){return void 0===e&&(e=this.prevIndex),void 0===i&&(i=this.index),void 0===n&&(n=this.dir||1),void 0===s&&(s=this.transitionOptions),new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(i)?this.slides[i]:i,n*(t.isRtl?-1:1),s)}}}],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:e,Transitioner:function(e,i,n,s){var o=s.animation,r=s.easing,a=o.percent,h=o.translate,l=o.show;void 0===l&&(l=t.noop);var c=l(n),d=new t.Deferred;return{dir:n,show:function(s,o,a){var h=this;void 0===o&&(o=0);var l=a?"linear":r;return s-=Math.round(s*t.clamp(o,-1,1)),this.translate(o),u(i,"itemin",{percent:o,duration:s,timing:l,dir:n}),u(e,"itemout",{percent:1-o,duration:s,timing:l,dir:n}),t.Promise.all([t.Transition.start(i,c[1],s,l),t.Transition.start(e,c[0],s,l)]).then((function(){h.reset(),d.resolve()}),t.noop),d.promise},cancel:function(){t.Transition.cancel([i,e])},reset:function(){for(var n in c[0])t.css([i,e],n,"")},forward:function(n,s){return void 0===s&&(s=this.percent()),t.Transition.cancel([i,e]),this.show(n,s,!0)},translate:function(s){this.reset();var o=h(s,n);t.css(i,o[1]),t.css(e,o[0]),u(i,"itemtranslatein",{percent:s,dir:n}),u(e,"itemtranslateout",{percent:1-s,dir:n})},percent:function(){return a(e||i,i,n)},getDistance:function(){return e&&e.offsetWidth}}}},computed:{animation:function(e){var i=e.animation,n=e.Animations;return t.assign(n[i]||n.slide,{name:i})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){var e=t.target;this.$update(e)},beforeitemshow:function(e){var i=e.target;t.addClass(i,this.clsActive)},itemshown:function(e){var i=e.target;t.addClass(i,this.clsActivated)},itemhidden:function(e){var i=e.target;t.removeClass(i,this.clsActive,this.clsActivated)}}},d={mixins:[o,h,r,c],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:function(){return{preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:s,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}},created:function(){var e=t.$(this.template),i=t.$(this.selList,e);this.items.forEach((function(){return t.append(i,"<li>")})),this.$mount(t.append(this.container,e))},computed:{caption:function(e,i){var n=e.selCaption;return t.$(n,i)}},events:[{name:t.pointerMove+" "+t.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate:function(){return this.selSlides},handler:function(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:function(){this.showControls()}},{name:"hide",self:!0,handler:function(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler:function(){this.$destroy(!0)}},{name:"keyup",el:function(){return document},handler:function(t){if(this.isToggled(this.$el)&&this.draggable)switch(t.keyCode){case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"beforeitemshow",handler:function(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=s.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler:function(){t.html(this.caption,this.getItem().caption||"");for(var e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler:function(){this.draggable=this.$props.draggable}},{name:"itemload",handler:function(e,i){var n=this,s=i.source,o=i.type,r=i.alt;void 0===r&&(r="");var a=i.poster,h=i.attrs;if(void 0===h&&(h={}),this.setItem(i,"<span uk-spinner></span>"),s){var l,u={frameborder:"0",allow:"autoplay",allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if("image"===o||s.match(/\.(avif|jpe?g|a?png|gif|svg|webp)($|\?)/i))t.getImage(s,h.srcset,h.size).then((function(e){var o=e.width,a=e.height;return n.setItem(i,f("img",t.assign({src:s,width:o,height:a,alt:r},h)))}),(function(){return n.setError(i)}));else if("video"===o||s.match(/\.(mp4|webm|ogv)($|\?)/i)){var c=f("video",t.assign({src:s,poster:a,controls:"",playsinline:"","uk-video":""+this.videoAutoplay},h));t.on(c,"loadedmetadata",(function(){t.attr(c,{width:c.videoWidth,height:c.videoHeight}),n.setItem(i,c)})),t.on(c,"error",(function(){return n.setError(i)}))}else"iframe"===o||s.match(/\.(html|php)($|\?)/i)?this.setItem(i,f("iframe",t.assign({src:s,frameborder:"0",allowfullscreen:"",class:"uk-lightbox-iframe"},h))):(l=s.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))?this.setItem(i,f("iframe",t.assign({src:"https://www.youtube"+(l[1]||"")+".com/embed/"+l[2]+(l[3]?"?"+l[3]:""),width:1920,height:1080},u,h))):(l=s.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))&&t.ajax("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(s),{responseType:"json",withCredentials:!1}).then((function(e){var s=e.response,o=s.height,r=s.width;return n.setItem(i,f("iframe",t.assign({src:"https://player.vimeo.com/video/"+l[1]+(l[2]?"?"+l[2]:""),width:r,height:o},u,h)))}),(function(){return n.setError(i)}))}}}],methods:{loadItem:function(e){void 0===e&&(e=this.index);var i=this.getItem(e);this.getSlide(i).childElementCount||t.trigger(this.$el,"itemload",[i])},getItem:function(e){return void 0===e&&(e=this.index),this.items[t.getIndex(e,this.slides)]},setItem:function(e,i){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),i)])},getSlide:function(t){return this.slides[this.items.indexOf(t)]},setError:function(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls:function(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function f(e,i){var n=t.fragment("<"+e+">");return t.attr(n,i),n}var g={install:function(e,i){e.lightboxPanel||e.component("lightboxPanel",d);t.assign(i.props,e.component("lightboxPanel").options.props)},props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get:function(e,i){var n=e.toggle;return t.$$(n,i)},watch:function(){this.hide()}}},disconnected:function(){this.hide()},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(t.current)}}],methods:{show:function(e){var i=this,n=t.uniqueBy(this.toggles.map(p),"source");if(t.isElement(e)){var s=p(e).source;e=t.findIndex(n,(function(t){var e=t.source;return s===e}))}return this.panel=this.panel||this.$create("lightboxPanel",t.assign({},this.$props,{items:n})),t.on(this.panel.$el,"hidden",(function(){return i.panel=!1})),this.panel.show(e)},hide:function(){return this.panel&&this.panel.hide()}}};function p(e){var i={};return["href","caption","type","poster","alt","attrs"].forEach((function(n){i["href"===n?"source":n]=t.data(e,n)})),i.attrs=t.parseOptions(i.attrs),i}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("lightbox",g),g}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitnotification",["uikit-util"],i):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitNotification=i(t.UIkit.util)}(this,(function(t){"use strict";var i,e={mixins:[{props:{container:Boolean},data:{container:!0},computed:{container:function(i){var e=i.container;return!0===e&&this.$container||e&&t.$(e)}}}],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:function(i){i.notification.closeAll=function(e,o){t.apply(document.body,(function(t){var s=i.getComponent(t,"notification");!s||e&&e!==s.group||s.close(o)}))}},computed:{marginProp:function(i){var e=i.pos;return"margin"+(t.startsWith(e,"top")?"Top":"Bottom")},startProps:function(){var t;return(t={opacity:0})[this.marginProp]=-this.$el.offsetHeight,t}},created:function(){var i=t.$("."+this.clsContainer+"-"+this.pos,this.container)||t.append(this.container,'<div class="'+this.clsContainer+" "+this.clsContainer+"-"+this.pos+'" style="display: block"></div>');this.$mount(t.append(i,'<div class="'+this.clsMsg+(this.status?" "+this.clsMsg+"-"+this.status:"")+'"> <a href class="'+this.clsClose+'" data-uk-close></a> <div>'+this.message+"</div> </div>"))},connected:function(){var i,e=this,o=t.toFloat(t.css(this.$el,this.marginProp));t.Transition.start(t.css(this.$el,this.startProps),(i={opacity:1},i[this.marginProp]=o,i)).then((function(){e.timeout&&(e.timer=setTimeout(e.close,e.timeout))}))},events:(i={click:function(i){t.closest(i.target,'a[href="#"],a[href=""]')&&i.preventDefault(),this.close()}},i[t.pointerEnter]=function(){this.timer&&clearTimeout(this.timer)},i[t.pointerLeave]=function(){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},i),methods:{close:function(i){var e=this,o=function(i){var o=t.parent(i);t.trigger(i,"close",[e]),t.remove(i),o&&!o.hasChildNodes()&&t.remove(o)};this.timer&&clearTimeout(this.timer),i?o(this.$el):t.Transition.start(this.$el,this.startProps).then(o)}}};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("notification",e),e}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitparallax",["uikit-util"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitParallax=e(t.UIkit.util)}(this,(function(t){"use strict";var e={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=function(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)"}(this.media);return!e||window.matchMedia(e).matches}}};t.memoize((function(e){return new t.Promise((function(r,i){e?t.startsWith(e,"data:")?r(decodeURIComponent(e.split(",")[1])):t.ajax(e).then((function(t){return r(t.response)}),(function(){return i("SVG not found.")})):i()}))}));var r=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"],i={mixins:[e],props:r.reduce((function(t,e){return t[e]="list",t}),{}),data:r.reduce((function(t,e){return t[e]=void 0,t}),{}),computed:{props:function(e,i){var a=this;return r.reduce((function(r,n){if(t.isUndefined(e[n]))return r;var s,o,c,u=n.match(/color/i),f=u||"opacity"===n,l=e[n].slice();f&&t.css(i,n,""),l.length<2&&l.unshift(("scale"===n?1:f?t.css(i,n):0)||0);var d,p=function(e){return e.reduce((function(e,r){return t.isString(r)&&r.replace(/-|\d/g,"").trim()||e}),"")}(l);if(u){var h=i.style.color;l=l.map((function(e){return function(e,r){return t.css(t.css(e,"color",r),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(t.toFloat)}(i,e)})),i.style.color=h}else if(t.startsWith(n,"bg")){var g="bgy"===n?"height":"width";if(l=l.map((function(e){return t.toPx(e,g,a.$el)})),t.css(i,"background-position-"+n[2],""),o=t.css(i,"backgroundPosition").split(" ")["x"===n[2]?0:1],a.covers){var m=Math.min.apply(Math,l),b=Math.max.apply(Math,l),v=l.indexOf(m)<l.indexOf(b);c=b-m,l=l.map((function(t){return t-(v?m:b)})),s=(v?-c:0)+"px"}else s=o}else l=l.map(t.toFloat);if("stroke"===n){if(!l.some((function(t){return t})))return r;var k=(d=a.$el,Math.ceil(Math.max.apply(Math,[0].concat(t.$$("[stroke]",d).map((function(t){try{return t.getTotalLength()}catch(t){return 0}}))))));t.css(i,"strokeDasharray",k),"%"===p&&(l=l.map((function(t){return t*k/100}))),l=l.reverse(),n="strokeDashoffset"}return r[n]={steps:l,unit:p,pos:s,bgPos:o,diff:c},r}),{})},bgProps:function(){var t=this;return["bgx","bgy"].filter((function(e){return e in t.props}))},covers:function(e,r){return function(e){var r=e.style.backgroundSize,i="cover"===t.css(t.css(e,"backgroundSize",""),"backgroundSize");return e.style.backgroundSize=r,i}(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 i=t.css(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(i){var a=new Image;a.src=i,e.image=a,a.naturalWidth||(a.onload=function(){return r.$update()})}}var n=e.image;if(n&&n.naturalWidth){var s={width:this.$el.offsetWidth,height:this.$el.offsetHeight},o={width:n.naturalWidth,height:n.naturalHeight},c=t.Dimensions.cover(o,s);this.bgProps.forEach((function(e){var i=r.props[e],a=i.diff,n=i.bgPos,u=i.steps,f="bgy"===e?"height":"width",l=c[f]-s[f];if(l<a)s[f]=c[f]+a-l;else if(l>a){var d=s[f]/t.toPx(n,f,r.$el);d&&(r.props[e].steps=u.map((function(t){return t-(l-a)/d})))}c=t.Dimensions.cover(o,s)})),e.dim=c}}},write:function(e){var r=e.dim;this.matchMedia?r&&t.css(this.$el,{backgroundSize:r.width+"px "+r.height+"px",backgroundRepeat:"no-repeat"}):t.css(this.$el,{backgroundSize:"",backgroundRepeat:""})},events:["resize"]},methods:{reset:function(){var e=this;t.each(this.getCss(0),(function(r,i){return t.css(e.$el,i,"")}))},getCss:function(e){var r=this.props;return Object.keys(r).reduce((function(i,n){var s=r[n],o=s.steps,c=s.unit,u=s.pos,f=function(e,r,i){void 0===i&&(i=2);var n=a(e,r),s=n[0],o=n[1],c=n[2];return(t.isNumber(s)?s+Math.abs(s-o)*c*(s<o?1:-1):+o).toFixed(i)}(o,e);switch(n){case"x":case"y":c=c||"px",i.transform+=" translate"+t.ucfirst(n)+"("+t.toFloat(f).toFixed("px"===c?0:2)+c+")";break;case"rotate":c=c||"deg",i.transform+=" rotate("+(f+c)+")";break;case"scale":i.transform+=" scale("+f+")";break;case"bgy":case"bgx":i["background-position-"+n[2]]="calc("+u+" + "+f+"px)";break;case"color":case"backgroundColor":case"borderColor":var l=a(o,e),d=l[0],p=l[1],h=l[2];i[n]="rgba("+d.map((function(e,r){return e+=h*(p[r]-e),3===r?t.toFloat(e):parseInt(e,10)})).join(",")+")";break;case"blur":c=c||"px",i.filter+=" blur("+(f+c)+")";break;case"hue":c=c||"deg",i.filter+=" hue-rotate("+(f+c)+")";break;case"fopacity":c=c||"%",i.filter+=" opacity("+(f+c)+")";break;case"grayscale":case"invert":case"saturate":case"sepia":c=c||"%",i.filter+=" "+n+"("+(f+c)+")";break;default:i[n]=f}return i}),{transform:"",filter:""})}}};function a(t,e){var r=t.length-1,i=Math.min(Math.floor(r*e),r-1),a=t.slice(i,i+2);return a.push(1===e?1:e%(1/r)*r),a}var n={mixins:[i],props:{target:String,viewport:Number,easing:Number},data:{target:!1,viewport:1,easing:1},computed:{target:function(e,r){var i=e.target;return s(i&&t.query(i,r)||r)}},update:{read:function(e,r){var i=e.percent;if(r.has("scroll")||(i=!1),this.matchMedia){var a=i;return{percent:i=function(e,r){return t.clamp(e*(1-(r-r*e)))}(t.scrolledOver(this.target)/(this.viewport||1),this.easing),style:a!==i&&this.getCss(i)}}},write:function(e){var r=e.style;this.matchMedia?r&&t.css(this.$el,r):this.reset()},events:["scroll","resize"]}};function s(e){return e?"offsetTop"in e?e:s(t.parent(e)):document.body}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("parallax",n),n}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitslider_parallax",["uikit-util"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitSlider_parallax=e(t.UIkit.util)}(this,(function(t){"use strict";var e={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=function(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)"}(this.media);return!e||window.matchMedia(e).matches}}};t.memoize((function(e){return new t.Promise((function(r,i){e?t.startsWith(e,"data:")?r(decodeURIComponent(e.split(",")[1])):t.ajax(e).then((function(t){return r(t.response)}),(function(){return i("SVG not found.")})):i()}))}));var r=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"],i={mixins:[e],props:r.reduce((function(t,e){return t[e]="list",t}),{}),data:r.reduce((function(t,e){return t[e]=void 0,t}),{}),computed:{props:function(e,i){var n=this;return r.reduce((function(r,a){if(t.isUndefined(e[a]))return r;var s,o,c,u=a.match(/color/i),l=u||"opacity"===a,f=e[a].slice();l&&t.css(i,a,""),f.length<2&&f.unshift(("scale"===a?1:l?t.css(i,a):0)||0);var d,h=function(e){return e.reduce((function(e,r){return t.isString(r)&&r.replace(/-|\d/g,"").trim()||e}),"")}(f);if(u){var p=i.style.color;f=f.map((function(e){return function(e,r){return t.css(t.css(e,"color",r),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(t.toFloat)}(i,e)})),i.style.color=p}else if(t.startsWith(a,"bg")){var m="bgy"===a?"height":"width";if(f=f.map((function(e){return t.toPx(e,m,n.$el)})),t.css(i,"background-position-"+a[2],""),o=t.css(i,"backgroundPosition").split(" ")["x"===a[2]?0:1],n.covers){var g=Math.min.apply(Math,f),b=Math.max.apply(Math,f),v=f.indexOf(g)<f.indexOf(b);c=b-g,f=f.map((function(t){return t-(v?g:b)})),s=(v?-c:0)+"px"}else s=o}else f=f.map(t.toFloat);if("stroke"===a){if(!f.some((function(t){return t})))return r;var k=(d=n.$el,Math.ceil(Math.max.apply(Math,[0].concat(t.$$("[stroke]",d).map((function(t){try{return t.getTotalLength()}catch(t){return 0}}))))));t.css(i,"strokeDasharray",k),"%"===h&&(f=f.map((function(t){return t*k/100}))),f=f.reverse(),a="strokeDashoffset"}return r[a]={steps:f,unit:h,pos:s,bgPos:o,diff:c},r}),{})},bgProps:function(){var t=this;return["bgx","bgy"].filter((function(e){return e in t.props}))},covers:function(e,r){return function(e){var r=e.style.backgroundSize,i="cover"===t.css(t.css(e,"backgroundSize",""),"backgroundSize");return e.style.backgroundSize=r,i}(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 i=t.css(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(i){var n=new Image;n.src=i,e.image=n,n.naturalWidth||(n.onload=function(){return r.$update()})}}var a=e.image;if(a&&a.naturalWidth){var s={width:this.$el.offsetWidth,height:this.$el.offsetHeight},o={width:a.naturalWidth,height:a.naturalHeight},c=t.Dimensions.cover(o,s);this.bgProps.forEach((function(e){var i=r.props[e],n=i.diff,a=i.bgPos,u=i.steps,l="bgy"===e?"height":"width",f=c[l]-s[l];if(f<n)s[l]=c[l]+n-f;else if(f>n){var d=s[l]/t.toPx(a,l,r.$el);d&&(r.props[e].steps=u.map((function(t){return t-(f-n)/d})))}c=t.Dimensions.cover(o,s)})),e.dim=c}}},write:function(e){var r=e.dim;this.matchMedia?r&&t.css(this.$el,{backgroundSize:r.width+"px "+r.height+"px",backgroundRepeat:"no-repeat"}):t.css(this.$el,{backgroundSize:"",backgroundRepeat:""})},events:["resize"]},methods:{reset:function(){var e=this;t.each(this.getCss(0),(function(r,i){return t.css(e.$el,i,"")}))},getCss:function(e){var r=this.props;return Object.keys(r).reduce((function(i,a){var s=r[a],o=s.steps,c=s.unit,u=s.pos,l=function(e,r,i){void 0===i&&(i=2);var a=n(e,r),s=a[0],o=a[1],c=a[2];return(t.isNumber(s)?s+Math.abs(s-o)*c*(s<o?1:-1):+o).toFixed(i)}(o,e);switch(a){case"x":case"y":c=c||"px",i.transform+=" translate"+t.ucfirst(a)+"("+t.toFloat(l).toFixed("px"===c?0:2)+c+")";break;case"rotate":c=c||"deg",i.transform+=" rotate("+(l+c)+")";break;case"scale":i.transform+=" scale("+l+")";break;case"bgy":case"bgx":i["background-position-"+a[2]]="calc("+u+" + "+l+"px)";break;case"color":case"backgroundColor":case"borderColor":var f=n(o,e),d=f[0],h=f[1],p=f[2];i[a]="rgba("+d.map((function(e,r){return e+=p*(h[r]-e),3===r?t.toFloat(e):parseInt(e,10)})).join(",")+")";break;case"blur":c=c||"px",i.filter+=" blur("+(l+c)+")";break;case"hue":c=c||"deg",i.filter+=" hue-rotate("+(l+c)+")";break;case"fopacity":c=c||"%",i.filter+=" opacity("+(l+c)+")";break;case"grayscale":case"invert":case"saturate":case"sepia":c=c||"%",i.filter+=" "+a+"("+(l+c)+")";break;default:i[a]=l}return i}),{transform:"",filter:""})}}};function n(t,e){var r=t.length-1,i=Math.min(Math.floor(r*e),r-1),n=t.slice(i,i+2);return n.push(1===e?1:e%(1/r)*r),n}var a={mixins:[i],data:{selItem:"!li"},computed:{item:function(e,r){var i=e.selItem;return t.query(i,r)}},events:[{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(e){var r=this,i=e.type,n=e.detail,a=n.percent,c=n.duration,u=n.timing,l=n.dir;t.fastdom.read((function(){var e=r.getCss(o(i,l,a)),n=r.getCss(s(i)?.5:l>0?1:0);t.fastdom.write((function(){t.css(r.$el,e),t.Transition.start(r.$el,n,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,i=e.type,n=e.detail,a=n.percent,s=n.dir;t.fastdom.read((function(){var e=r.getCss(o(i,s,a));t.fastdom.write((function(){return t.css(r.$el,e)}))}))}}]};function s(e){return t.endsWith(e,"in")}function o(t,e,r){return r/=2,s(t)?e<0?1-r:r:e<0?r:1-r}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("sliderParallax",a),a}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitslider",["uikit-util"],i):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitSlider=i(t.UIkit.util)}(this,(function(t){"use strict";function i(t){return.5*t+300}function e(i,e){return void 0===i&&(i=0),void 0===e&&(e="%"),i+=i?e:"",t.isIE?"translateX("+i+")":"translate3d("+i+", 0, 0)"}function s(i,e,s){var r=h(i,e);return s?r-function(i,e){return t.dimensions(e).width/2-t.dimensions(i).width/2}(i,e):Math.min(r,n(e))}function n(i){return Math.max(0,r(i)-t.dimensions(i).width)}function r(i){return t.children(i).reduce((function(i,e){return t.dimensions(e).width+i}),0)}function h(i,e){return i&&(t.position(i).left+(t.isRtl?t.dimensions(i).width-t.dimensions(e).width:0))*(t.isRtl?-1:1)||0}function o(i,e){e-=1;var s=t.dimensions(i).width,n=e+s+2;return t.children(i).filter((function(r){var o=h(r,i),a=o+Math.min(t.dimensions(r).width,s);return o>=e&&a<=n}))}function a(i,e,s){t.trigger(i,t.createEvent(e,!1,!1,s))}var d={mixins:[{connected:function(){!t.hasClass(this.$el,this.$name)&&t.addClass(this.$el,this.$name)}},{mixins:[{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(){t.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 i=this;this.stopAutoplay(),this.interval=setInterval((function(){return(!i.draggable||!t.$(":focus",i.$el))&&(!i.pauseOnHover||!t.matches(i.$el,":hover"))&&!i.stack.length&&i.show("next")}),this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var i=this;["start","move","end"].forEach((function(e){var s=i[e];i[e]=function(e){var n=t.getEventPos(e).x*(t.isRtl?-1:1);i.prevPos=n!==i.pos?i.pos:i.prevPos,i.pos=n,s(e)}}))},events:[{name:t.pointerDown,delegate:function(){return this.selSlides},handler:function(i){var e;!this.draggable||!t.isTouch(i)&&(e=i.target,!e.children.length&&e.childNodes.length)||t.closest(i.target,t.selInput)||i.button>0||this.length<2||this.start(i)}},{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,t.on(document,t.pointerMove,this.move,{passive:!1}),t.on(document,t.pointerUp+" "+t.pointerCancel+" input",this.end,!0),t.css(this.list,"userSelect","none")},move:function(i){var e=this,s=this.pos-this.drag;if(!(0===s||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)){t.css(this.list,"pointerEvents","none"),i.cancelable&&i.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;for(var n=this.slides,r=this.prevIndex,h=Math.abs(s),o=this.getIndex(r+this.dir,r),a=this._getDistance(r,o)||n[r].offsetWidth;o!==r&&h>a;)this.drag-=a*this.dir,r=o,h-=a,o=this.getIndex(r+this.dir,r),a=this._getDistance(r,o)||n[r].offsetWidth;this.percent=h/a;var d,c=n[r],l=n[o],u=this.index!==o,f=r===o;[this.index,this.prevIndex].filter((function(i){return!t.includes([o,r],i)})).forEach((function(i){t.trigger(n[i],"itemhidden",[e]),f&&(d=!0,e.prevIndex=r)})),(this.index===r&&this.prevIndex!==r||d)&&t.trigger(n[this.index],"itemshown",[this]),u&&(this.prevIndex=r,this.index=o,!f&&t.trigger(c,"beforeitemhide",[this]),t.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),c,!f&&l),u&&(!f&&t.trigger(c,"itemhide",[this]),t.trigger(l,"itemshow",[this]))}},end:function(){if(t.off(document,t.pointerMove,this.move,{passive:!1}),t.off(document,t.pointerUp+" "+t.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 i=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=i?this.index:this.prevIndex,i&&(this.percent=1-this.percent),this.show(this.dir>0&&!i||this.dir<0&&i?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(i,e){var s=i.selNav;return t.$(s,e)},selNavItem:function(t){var i=t.attrItem;return"["+i+"],[data-"+i+"]"},navItems:function(i,e){return t.$$(this.selNavItem,e)}},update:{write:function(){var i=this;this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((function(t,e){return"<li "+i.attrItem+'="'+e+'"><a href></a></li>'})).join("")),this.navItems.concat(this.nav).forEach((function(t){return t&&(t.hidden=!i.maxIndex)})),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(i){i.preventDefault(),this.show(t.data(i.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var i=this,e=this.getValidIndex();this.navItems.forEach((function(s){var n=t.data(s,i.attrItem);t.toggleClass(s,i.clsActive,t.toNumber(n)===e),t.toggleClass(s,"uk-invisible",i.finite&&("previous"===n&&0===e||"next"===n&&e>=i.maxIndex))}))}}}],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(){t.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,e){var s=t.velocity;return i(e.offsetWidth/s)},list:function(i,e){var s=i.selList;return t.$(s,e)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return t.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(i,e){var s=this;if(void 0===e&&(e=!1),!this.dragging&&this.length){var n=this.stack,r=e?0:n.length,h=function(){n.splice(r,1),n.length&&s.show(n.shift(),!0)};if(n[e?"unshift":"push"](i),!e&&n.length>1)2===n.length&&this._transitioner.forward(Math.min(this.duration,200));else{var o=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(i,this.index),c=this.slides[d];if(a!==c){if(this.dir=function(t,i){return"next"===t?1:"previous"===t||t<i?-1:1}(i,o),this.prevIndex=o,this.index=d,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(c,"beforeitemshow",[this,a]))return this.index=this.prevIndex,void h();var l=this._show(a,c,e).then((function(){return a&&t.trigger(a,"itemhidden",[s]),t.trigger(c,"itemshown",[s]),new t.Promise((function(i){t.fastdom.write((function(){n.shift(),n.length?s.show(n.shift(),!0):s._transitioner=null,i()}))}))}));return a&&t.trigger(a,"itemhide",[this]),t.trigger(c,"itemshow",[this]),l}h()}}},getIndex:function(i,e){return void 0===i&&(i=this.index),void 0===e&&(e=this.index),t.clamp(t.getIndex(i,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex:function(t,i){return void 0===t&&(t=this.index),void 0===i&&(i=this.prevIndex),this.getIndex(t,i)},_show:function(i,e,s){if(this._transitioner=this._getTransitioner(i,e,this.dir,t.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&&!i)return this._translate(1),t.Promise.resolve();var n=this.stack.length;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_getDistance:function(t,i){return this._getTransitioner(t,t!==i&&i).getDistance()},_translate:function(t,i,e){void 0===i&&(i=this.prevIndex),void 0===e&&(e=this.index);var s=this._getTransitioner(i!==e&&i,e);return s.translate(t),s},_getTransitioner:function(i,e,s,n){return void 0===i&&(i=this.prevIndex),void 0===e&&(e=this.index),void 0===s&&(s=this.dir||1),void 0===n&&(n=this.transitionOptions),new this.Transitioner(t.isNumber(i)?this.slides[i]:i,t.isNumber(e)?this.slides[e]:e,s*(t.isRtl?-1:1),n)}}},{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"]}}],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:function(i,n,d,c){var l=c.center,u=c.easing,f=c.list,v=new t.Deferred,g=i?s(i,f,l):s(n,f,l)+t.dimensions(n).width*d,p=n?s(n,f,l):g+t.dimensions(i).width*d*(t.isRtl?-1:1);return{dir:d,show:function(s,n,r){void 0===n&&(n=0);var h=r?"linear":u;return s-=Math.round(s*t.clamp(n,-1,1)),this.translate(n),n=i?n:t.clamp(n,0,1),a(this.getItemIn(),"itemin",{percent:n,duration:s,timing:h,dir:d}),i&&a(this.getItemIn(!0),"itemout",{percent:1-n,duration:s,timing:h,dir:d}),t.Transition.start(f,{transform:e(-p*(t.isRtl?-1:1),"px")},s,h).then(v.resolve,t.noop),v.promise},cancel:function(){t.Transition.cancel(f)},reset:function(){t.css(f,"transform","")},forward:function(i,e){return void 0===e&&(e=this.percent()),t.Transition.cancel(f),this.show(i,e,!0)},translate:function(s){var o=this.getDistance()*d*(t.isRtl?-1:1);t.css(f,"transform",e(t.clamp(o-o*s-p,-r(f),t.dimensions(f).width)*(t.isRtl?-1:1),"px"));var c=this.getActives(),l=this.getItemIn(),u=this.getItemIn(!0);s=i?t.clamp(s,-1,1):0,t.children(f).forEach((function(e){var r=t.includes(c,e),o=e===l,v=e===u;a(e,"itemtranslate"+(o||!v&&(r||d*(t.isRtl?-1:1)==-1^h(e,f)>h(i||n))?"in":"out"),{dir:d,percent:v?1-s:o?s:r?1:0})}))},percent:function(){return Math.abs((t.css(f,"transform").split(",")[4]*(t.isRtl?-1:1)+g)/(p-g))},getDistance:function(){return Math.abs(p-g)},getItemIn:function(e){void 0===e&&(e=!1);var r=this.getActives(),h=o(f,s(n||i,f,l));if(e){var a=r;r=h,h=a}return h[t.findIndex(h,(function(i){return!t.includes(r,i)}))]},getActives:function(){return o(f,s(i||n,f,l))}}}},computed:{avgWidth:function(){return r(this.list)/this.length},finite:function(i){var e;return i.finite||Math.ceil(r(this.list))<t.dimensions(this.list).width+(e=this.list,Math.max.apply(Math,[0].concat(t.children(e).map((function(i){return t.dimensions(i).width})))))+this.center},maxIndex:function(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return t.last(this.sets);var i=0,e=n(this.list),s=t.findIndex(this.slides,(function(s){if(i>=e)return!0;i+=t.dimensions(s).width}));return~s?s:this.length-1},sets:function(i){var e=this,s=i.sets;if(s){var n=t.dimensions(this.list).width/(this.center?2:1),r=0,h=n,o=0;return s=t.sortBy(this.slides,"offsetLeft").reduce((function(i,s,a){var d=t.dimensions(s).width;if(o+d>r&&(!e.center&&a>e.maxIndex&&(a=e.maxIndex),!t.includes(i,a))){var c=e.slides[a+1];e.center&&c&&d<h-t.dimensions(c).width/2?h-=d:(h=n,i.push(a),r=o+n+(e.center?d/2:0))}return o+=d,i}),[]),!t.isEmpty(s)&&s}},transitionOptions:function(){return{center:this.center,list:this.list}}},connected:function(){t.toggleClass(this.$el,this.clsContainer,!t.$("."+this.clsContainer,this.$el))},update:{write:function(){var i=this;this.navItems.forEach((function(e){var s=t.toNumber(t.data(e,i.attrItem));!1!==s&&(e.hidden=!i.maxIndex||s>i.maxIndex||i.sets&&!t.includes(i.sets,s))})),!this.length||this.dragging||this.stack.length||(this.reorder(),this._translate(1));var e=this._getTransitioner(this.index).getActives();this.slides.forEach((function(s){return t.toggleClass(s,i.clsActive,t.includes(e,s))})),!this.clsActivated||this.sets&&!t.includes(this.sets,t.toFloat(this.index))||this.slides.forEach((function(s){return t.toggleClass(s,i.clsActivated||"",t.includes(e,s))}))},events:["resize"]},events:{beforeitemshow:function(e){!this.dragging&&this.sets&&this.stack.length<2&&!t.includes(this.sets,this.index)&&(this.index=this.getValidIndex());var s=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&s>1){for(var n=0;n<s;n++)this.stack.splice(1,0,this.dir>0?"next":"previous");e.preventDefault()}else{var r=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=i(this.avgWidth/this.velocity)*(t.dimensions(this.slides[r]).width/this.avgWidth),this.reorder()}},itemshow:function(){~this.prevIndex&&t.addClass(this._getTransitioner().getItemIn(),this.clsActive)}},methods:{reorder:function(){var i=this;if(this.finite)t.css(this.slides,"order","");else{var e=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((function(s,n){return t.css(s,"order",i.dir>0&&n<e?1:i.dir<0&&n>=i.index?-1:"")})),this.center)for(var s=this.slides[e],n=t.dimensions(this.list).width/2-t.dimensions(s).width/2,r=0;n>0;){var h=this.getIndex(--r+e,e),o=this.slides[h];t.css(o,"order",h>e?-2:-1),n-=t.dimensions(o).width}}},getValidIndex:function(i,e){if(void 0===i&&(i=this.index),void 0===e&&(e=this.prevIndex),i=this.getIndex(i,e),!this.sets)return i;var s;do{if(t.includes(this.sets,i))return i;s=i,i=this.getIndex(i+this.dir,e)}while(i!==s);return i}}};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("slider",d),d}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitslideshow_parallax",["uikit-util"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitSlideshow_parallax=e(t.UIkit.util)}(this,(function(t){"use strict";var e={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var e=function(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)"}(this.media);return!e||window.matchMedia(e).matches}}};t.memoize((function(e){return new t.Promise((function(r,i){e?t.startsWith(e,"data:")?r(decodeURIComponent(e.split(",")[1])):t.ajax(e).then((function(t){return r(t.response)}),(function(){return i("SVG not found.")})):i()}))}));var r=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"],i={mixins:[e],props:r.reduce((function(t,e){return t[e]="list",t}),{}),data:r.reduce((function(t,e){return t[e]=void 0,t}),{}),computed:{props:function(e,i){var n=this;return r.reduce((function(r,a){if(t.isUndefined(e[a]))return r;var s,o,c,u=a.match(/color/i),l=u||"opacity"===a,f=e[a].slice();l&&t.css(i,a,""),f.length<2&&f.unshift(("scale"===a?1:l?t.css(i,a):0)||0);var d,h=function(e){return e.reduce((function(e,r){return t.isString(r)&&r.replace(/-|\d/g,"").trim()||e}),"")}(f);if(u){var p=i.style.color;f=f.map((function(e){return function(e,r){return t.css(t.css(e,"color",r),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(t.toFloat)}(i,e)})),i.style.color=p}else if(t.startsWith(a,"bg")){var m="bgy"===a?"height":"width";if(f=f.map((function(e){return t.toPx(e,m,n.$el)})),t.css(i,"background-position-"+a[2],""),o=t.css(i,"backgroundPosition").split(" ")["x"===a[2]?0:1],n.covers){var g=Math.min.apply(Math,f),b=Math.max.apply(Math,f),v=f.indexOf(g)<f.indexOf(b);c=b-g,f=f.map((function(t){return t-(v?g:b)})),s=(v?-c:0)+"px"}else s=o}else f=f.map(t.toFloat);if("stroke"===a){if(!f.some((function(t){return t})))return r;var k=(d=n.$el,Math.ceil(Math.max.apply(Math,[0].concat(t.$$("[stroke]",d).map((function(t){try{return t.getTotalLength()}catch(t){return 0}}))))));t.css(i,"strokeDasharray",k),"%"===h&&(f=f.map((function(t){return t*k/100}))),f=f.reverse(),a="strokeDashoffset"}return r[a]={steps:f,unit:h,pos:s,bgPos:o,diff:c},r}),{})},bgProps:function(){var t=this;return["bgx","bgy"].filter((function(e){return e in t.props}))},covers:function(e,r){return function(e){var r=e.style.backgroundSize,i="cover"===t.css(t.css(e,"backgroundSize",""),"backgroundSize");return e.style.backgroundSize=r,i}(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 i=t.css(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(i){var n=new Image;n.src=i,e.image=n,n.naturalWidth||(n.onload=function(){return r.$update()})}}var a=e.image;if(a&&a.naturalWidth){var s={width:this.$el.offsetWidth,height:this.$el.offsetHeight},o={width:a.naturalWidth,height:a.naturalHeight},c=t.Dimensions.cover(o,s);this.bgProps.forEach((function(e){var i=r.props[e],n=i.diff,a=i.bgPos,u=i.steps,l="bgy"===e?"height":"width",f=c[l]-s[l];if(f<n)s[l]=c[l]+n-f;else if(f>n){var d=s[l]/t.toPx(a,l,r.$el);d&&(r.props[e].steps=u.map((function(t){return t-(f-n)/d})))}c=t.Dimensions.cover(o,s)})),e.dim=c}}},write:function(e){var r=e.dim;this.matchMedia?r&&t.css(this.$el,{backgroundSize:r.width+"px "+r.height+"px",backgroundRepeat:"no-repeat"}):t.css(this.$el,{backgroundSize:"",backgroundRepeat:""})},events:["resize"]},methods:{reset:function(){var e=this;t.each(this.getCss(0),(function(r,i){return t.css(e.$el,i,"")}))},getCss:function(e){var r=this.props;return Object.keys(r).reduce((function(i,a){var s=r[a],o=s.steps,c=s.unit,u=s.pos,l=function(e,r,i){void 0===i&&(i=2);var a=n(e,r),s=a[0],o=a[1],c=a[2];return(t.isNumber(s)?s+Math.abs(s-o)*c*(s<o?1:-1):+o).toFixed(i)}(o,e);switch(a){case"x":case"y":c=c||"px",i.transform+=" translate"+t.ucfirst(a)+"("+t.toFloat(l).toFixed("px"===c?0:2)+c+")";break;case"rotate":c=c||"deg",i.transform+=" rotate("+(l+c)+")";break;case"scale":i.transform+=" scale("+l+")";break;case"bgy":case"bgx":i["background-position-"+a[2]]="calc("+u+" + "+l+"px)";break;case"color":case"backgroundColor":case"borderColor":var f=n(o,e),d=f[0],h=f[1],p=f[2];i[a]="rgba("+d.map((function(e,r){return e+=p*(h[r]-e),3===r?t.toFloat(e):parseInt(e,10)})).join(",")+")";break;case"blur":c=c||"px",i.filter+=" blur("+(l+c)+")";break;case"hue":c=c||"deg",i.filter+=" hue-rotate("+(l+c)+")";break;case"fopacity":c=c||"%",i.filter+=" opacity("+(l+c)+")";break;case"grayscale":case"invert":case"saturate":case"sepia":c=c||"%",i.filter+=" "+a+"("+(l+c)+")";break;default:i[a]=l}return i}),{transform:"",filter:""})}}};function n(t,e){var r=t.length-1,i=Math.min(Math.floor(r*e),r-1),n=t.slice(i,i+2);return n.push(1===e?1:e%(1/r)*r),n}var a={mixins:[i],data:{selItem:"!li"},computed:{item:function(e,r){var i=e.selItem;return t.query(i,r)}},events:[{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(e){var r=this,i=e.type,n=e.detail,a=n.percent,c=n.duration,u=n.timing,l=n.dir;t.fastdom.read((function(){var e=r.getCss(o(i,l,a)),n=r.getCss(s(i)?.5:l>0?1:0);t.fastdom.write((function(){t.css(r.$el,e),t.Transition.start(r.$el,n,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,i=e.type,n=e.detail,a=n.percent,s=n.dir;t.fastdom.read((function(){var e=r.getCss(o(i,s,a));t.fastdom.write((function(){return t.css(r.$el,e)}))}))}}]};function s(e){return t.endsWith(e,"in")}function o(t,e,r){return r/=2,s(t)?e<0?1-r:r:e<0?r:1-r}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("slideshowParallax",a),a}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitslideshow",["uikit-util"],i):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitSlideshow=i(t.UIkit.util)}(this,(function(t){"use strict";var i={connected:function(){!t.hasClass(this.$el,this.$name)&&t.addClass(this.$el,this.$name)}},e={slide:{show:function(t){return[{transform:s(-100*t)},{transform:s()}]},percent:function(t){return n(t)},translate:function(t,i){return[{transform:s(-100*i*t)},{transform:s(100*i*(1-t))}]}}};function n(i){return Math.abs(t.css(i,"transform").split(",")[4]/i.offsetWidth)||0}function s(i,e){return void 0===i&&(i=0),void 0===e&&(e="%"),i+=i?e:"",t.isIE?"translateX("+i+")":"translate3d("+i+", 0, 0)"}function r(t){return"scale3d("+t+", "+t+", 1)"}function a(i,e,n){t.trigger(i,t.createEvent(e,!1,!1,n))}var o={mixins:[{mixins:[{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(){t.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 i=this;this.stopAutoplay(),this.interval=setInterval((function(){return(!i.draggable||!t.$(":focus",i.$el))&&(!i.pauseOnHover||!t.matches(i.$el,":hover"))&&!i.stack.length&&i.show("next")}),this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var i=this;["start","move","end"].forEach((function(e){var n=i[e];i[e]=function(e){var s=t.getEventPos(e).x*(t.isRtl?-1:1);i.prevPos=s!==i.pos?i.pos:i.prevPos,i.pos=s,n(e)}}))},events:[{name:t.pointerDown,delegate:function(){return this.selSlides},handler:function(i){var e;!this.draggable||!t.isTouch(i)&&(e=i.target,!e.children.length&&e.childNodes.length)||t.closest(i.target,t.selInput)||i.button>0||this.length<2||this.start(i)}},{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,t.on(document,t.pointerMove,this.move,{passive:!1}),t.on(document,t.pointerUp+" "+t.pointerCancel+" input",this.end,!0),t.css(this.list,"userSelect","none")},move:function(i){var e=this,n=this.pos-this.drag;if(!(0===n||this.prevPos===this.pos||!this.dragging&&Math.abs(n)<this.threshold)){t.css(this.list,"pointerEvents","none"),i.cancelable&&i.preventDefault(),this.dragging=!0,this.dir=n<0?1:-1;for(var s=this.slides,r=this.prevIndex,a=Math.abs(n),o=this.getIndex(r+this.dir,r),h=this._getDistance(r,o)||s[r].offsetWidth;o!==r&&a>h;)this.drag-=h*this.dir,r=o,a-=h,o=this.getIndex(r+this.dir,r),h=this._getDistance(r,o)||s[r].offsetWidth;this.percent=a/h;var d,u=s[r],c=s[o],l=this.index!==o,f=r===o;[this.index,this.prevIndex].filter((function(i){return!t.includes([o,r],i)})).forEach((function(i){t.trigger(s[i],"itemhidden",[e]),f&&(d=!0,e.prevIndex=r)})),(this.index===r&&this.prevIndex!==r||d)&&t.trigger(s[this.index],"itemshown",[this]),l&&(this.prevIndex=r,this.index=o,!f&&t.trigger(u,"beforeitemhide",[this]),t.trigger(c,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),u,!f&&c),l&&(!f&&t.trigger(u,"itemhide",[this]),t.trigger(c,"itemshow",[this]))}},end:function(){if(t.off(document,t.pointerMove,this.move,{passive:!1}),t.off(document,t.pointerUp+" "+t.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 i=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=i?this.index:this.prevIndex,i&&(this.percent=1-this.percent),this.show(this.dir>0&&!i||this.dir<0&&i?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(i,e){var n=i.selNav;return t.$(n,e)},selNavItem:function(t){var i=t.attrItem;return"["+i+"],[data-"+i+"]"},navItems:function(i,e){return t.$$(this.selNavItem,e)}},update:{write:function(){var i=this;this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((function(t,e){return"<li "+i.attrItem+'="'+e+'"><a href></a></li>'})).join("")),this.navItems.concat(this.nav).forEach((function(t){return t&&(t.hidden=!i.maxIndex)})),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(i){i.preventDefault(),this.show(t.data(i.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var i=this,e=this.getValidIndex();this.navItems.forEach((function(n){var s=t.data(n,i.attrItem);t.toggleClass(n,i.clsActive,t.toNumber(s)===e),t.toggleClass(n,"uk-invisible",i.finite&&("previous"===s&&0===e||"next"===s&&e>=i.maxIndex))}))}}}],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(){t.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,i){var e=t.velocity;return.5*(i.offsetWidth/e)+300},list:function(i,e){var n=i.selList;return t.$(n,e)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return t.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(i,e){var n=this;if(void 0===e&&(e=!1),!this.dragging&&this.length){var s=this.stack,r=e?0:s.length,a=function(){s.splice(r,1),s.length&&n.show(s.shift(),!0)};if(s[e?"unshift":"push"](i),!e&&s.length>1)2===s.length&&this._transitioner.forward(Math.min(this.duration,200));else{var o=this.getIndex(this.index),h=t.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(i,this.index),u=this.slides[d];if(h!==u){if(this.dir=function(t,i){return"next"===t?1:"previous"===t||t<i?-1:1}(i,o),this.prevIndex=o,this.index=d,h&&!t.trigger(h,"beforeitemhide",[this])||!t.trigger(u,"beforeitemshow",[this,h]))return this.index=this.prevIndex,void a();var c=this._show(h,u,e).then((function(){return h&&t.trigger(h,"itemhidden",[n]),t.trigger(u,"itemshown",[n]),new t.Promise((function(i){t.fastdom.write((function(){s.shift(),s.length?n.show(s.shift(),!0):n._transitioner=null,i()}))}))}));return h&&t.trigger(h,"itemhide",[this]),t.trigger(u,"itemshow",[this]),c}a()}}},getIndex:function(i,e){return void 0===i&&(i=this.index),void 0===e&&(e=this.index),t.clamp(t.getIndex(i,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex:function(t,i){return void 0===t&&(t=this.index),void 0===i&&(i=this.prevIndex),this.getIndex(t,i)},_show:function(i,e,n){if(this._transitioner=this._getTransitioner(i,e,this.dir,t.assign({easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),!n&&!i)return this._translate(1),t.Promise.resolve();var s=this.stack.length;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_getDistance:function(t,i){return this._getTransitioner(t,t!==i&&i).getDistance()},_translate:function(t,i,e){void 0===i&&(i=this.prevIndex),void 0===e&&(e=this.index);var n=this._getTransitioner(i!==e&&i,e);return n.translate(t),n},_getTransitioner:function(i,e,n,s){return void 0===i&&(i=this.prevIndex),void 0===e&&(e=this.index),void 0===n&&(n=this.dir||1),void 0===s&&(s=this.transitionOptions),new this.Transitioner(t.isNumber(i)?this.slides[i]:i,t.isNumber(e)?this.slides[e]:e,n*(t.isRtl?-1:1),s)}}}],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:e,Transitioner:function(i,e,n,s){var r=s.animation,o=s.easing,h=r.percent,d=r.translate,u=r.show;void 0===u&&(u=t.noop);var c=u(n),l=new t.Deferred;return{dir:n,show:function(s,r,h){var d=this;void 0===r&&(r=0);var u=h?"linear":o;return s-=Math.round(s*t.clamp(r,-1,1)),this.translate(r),a(e,"itemin",{percent:r,duration:s,timing:u,dir:n}),a(i,"itemout",{percent:1-r,duration:s,timing:u,dir:n}),t.Promise.all([t.Transition.start(e,c[1],s,u),t.Transition.start(i,c[0],s,u)]).then((function(){d.reset(),l.resolve()}),t.noop),l.promise},cancel:function(){t.Transition.cancel([e,i])},reset:function(){for(var n in c[0])t.css([e,i],n,"")},forward:function(n,s){return void 0===s&&(s=this.percent()),t.Transition.cancel([e,i]),this.show(n,s,!0)},translate:function(s){this.reset();var r=d(s,n);t.css(e,r[1]),t.css(i,r[0]),a(e,"itemtranslatein",{percent:s,dir:n}),a(i,"itemtranslateout",{percent:1-s,dir:n})},percent:function(){return h(i||e,e,n)},getDistance:function(){return i&&i.offsetWidth}}}},computed:{animation:function(i){var e=i.animation,n=i.Animations;return t.assign(n[e]||n.slide,{name:e})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){var i=t.target;this.$update(i)},beforeitemshow:function(i){var e=i.target;t.addClass(e,this.clsActive)},itemshown:function(i){var e=i.target;t.addClass(e,this.clsActivated)},itemhidden:function(i){var e=i.target;t.removeClass(e,this.clsActive,this.clsActivated)}}},h=t.assign({},e,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(i){return 1-t.css(i,"opacity")},translate:function(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:r(1.5),zIndex:0},{zIndex:-1}]},percent:function(i){return 1-t.css(i,"opacity")},translate:function(t){return[{opacity:1-t,transform:r(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show:function(t){return t<0?[{transform:s(30),zIndex:-1},{transform:s(),zIndex:0}]:[{transform:s(-100),zIndex:0},{transform:s(),zIndex:-1}]},percent:function(t,i,e){return e<0?1-n(i):n(t)},translate:function(t,i){return i<0?[{transform:s(30*t),zIndex:-1},{transform:s(-100*(1-t)),zIndex:0}]:[{transform:s(100*-t),zIndex:0},{transform:s(30*(1-t)),zIndex:-1}]}},push:{show:function(t){return t<0?[{transform:s(100),zIndex:0},{transform:s(),zIndex:-1}]:[{transform:s(-30),zIndex:-1},{transform:s(),zIndex:0}]},percent:function(t,i,e){return e>0?1-n(i):n(t)},translate:function(t,i){return i<0?[{transform:s(100*t),zIndex:0},{transform:s(-30*(1-t)),zIndex:-1}]:[{transform:s(-30*t),zIndex:-1},{transform:s(100*(1-t)),zIndex:0}]}}}),d={mixins:[i,o,{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"]}}],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:h},update:{read:function(){var i=this.ratio.split(":").map(Number),e=i[0],n=i[1];return n=n*this.list.offsetWidth/e||0,this.minHeight&&(n=Math.max(this.minHeight,n)),this.maxHeight&&(n=Math.min(this.maxHeight,n)),{height:n-t.boxModelAdjust(this.list,"height","content-box")}},write:function(i){var e=i.height;e>0&&t.css(this.list,"minHeight",e)},events:["resize"]}};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("slideshow",d),d}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitsortable",["uikit-util"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitSortable=e(t.UIkit.util)}(this,(function(t){"use strict";function e(e){return function(e,n,r){for(var o=[[]],s=0;s<e.length;s++){var a=e[s];if(t.isVisible(a))for(var h=i(a),c=o.length-1;c>=0;c--){var l=o[c];if(!l[0]){l.push(a);break}var u=void 0;if(l[0].offsetParent===a.offsetParent?u=i(l[0]):(h=i(a,!0),u=i(l[0],!0)),h[n]>=u[r]-1&&h[n]!==u[n]){o.push([a]);break}if(h[r]-1>u[n]||h[n]===u[n]){l.push(a);break}if(0===c){o.unshift([a]);break}}}return o}(e,"top","bottom")}function i(e,i){var n;void 0===i&&(i=!1);var r=e.offsetTop,o=e.offsetLeft,s=e.offsetHeight,a=e.offsetWidth;return i&&(r=(n=t.offsetPosition(e))[0],o=n[1]),{top:r,left:o,bottom:r+s,right:o+a}}var n="uk-transition-leave",r="uk-transition-enter";function o(e,i,o,c){void 0===c&&(c=0);var l=s(i,!0),u={opacity:1},d={opacity:0},f=function(e){return function(){return l===s(i)?e():t.Promise.reject()}},g=f((function(){return t.addClass(i,n),t.Promise.all(h(i).map((function(e,i){return new t.Promise((function(n){return setTimeout((function(){return t.Transition.start(e,d,o/2,"ease").then(n)}),i*c)}))}))).then((function(){return t.removeClass(i,n)}))})),p=f((function(){var n=t.height(i);return t.addClass(i,r),e(),t.css(t.children(i),{opacity:0}),new t.Promise((function(e){return requestAnimationFrame((function(){var a=t.children(i),f=t.height(i);t.css(i,"alignContent","flex-start"),t.height(i,n);var g=h(i);t.css(a,d);var p=g.map((function(e,i){return new t.Promise((function(n){return setTimeout((function(){return t.Transition.start(e,u,o/2,"ease").then(n)}),i*c)}))}));n!==f&&p.push(t.Transition.start(i,{height:f},o/2+g.length*c,"ease")),t.Promise.all(p).then((function(){t.removeClass(i,r),l===s(i)&&(t.css(i,{height:"",alignContent:""}),t.css(a,{opacity:""}),delete i.dataset.transition),e()}))}))}))}));return t.hasClass(i,n)?a(i).then(p):t.hasClass(i,r)?a(i).then(g).then(p):g().then(p)}function s(e,i){return i&&(e.dataset.transition=1+s(e)),t.toNumber(e.dataset.transition)||0}function a(e){return t.Promise.all(t.children(e).filter(t.Transition.inProgress).map((function(e){return new t.Promise((function(i){return t.once(e,"transitionend transitioncanceled",i)}))})))}function h(i){return e(t.children(i)).reduce((function(e,i){return e.concat(t.sortBy(i.filter((function(e){return t.isInView(e)})),"offsetLeft"))}),[])}function c(e,i,n){return new t.Promise((function(r){return requestAnimationFrame((function(){var o=t.children(i),s=o.map((function(t){return l(t,!0)})),a=t.css(i,["height","padding"]);t.Transition.cancel(i),o.forEach(t.Transition.cancel),u(i),e(),o=o.concat(t.children(i).filter((function(e){return!t.includes(o,e)}))),t.Promise.resolve().then((function(){t.fastdom.flush();var e=t.css(i,["height","padding"]),h=function(e,i,n){var r=i.map((function(e,i){return!(!t.parent(e)||!(i in n))&&(n[i]?t.isVisible(e)?d(e):{opacity:0}:{opacity:t.isVisible(e)?1:0})})),o=r.map((function(r,o){var s=t.parent(i[o])===e&&(n[o]||l(i[o]));if(!s)return!1;if(r){if(!("opacity"in r)){s.opacity%1?r.opacity=1:delete s.opacity}}else delete s.opacity;return s}));return[r,o]}(i,o,s),c=h[0],f=h[1];o.forEach((function(e,i){return f[i]&&t.css(e,f[i])})),t.css(i,t.assign({display:"block"},a)),requestAnimationFrame((function(){var s=o.map((function(e,r){return t.parent(e)===i&&t.Transition.start(e,c[r],n,"ease")})).concat(t.Transition.start(i,e,n,"ease"));t.Promise.all(s).then((function(){o.forEach((function(e,n){return t.parent(e)===i&&t.css(e,"display",0===c[n].opacity?"none":"")})),u(i)}),t.noop).then(r)}))}))}))}))}function l(e,i){var n=t.css(e,"zIndex");return!!t.isVisible(e)&&t.assign({display:"",opacity:i?t.css(e,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===n?t.index(e):n},d(e))}function u(e){t.css(e.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),t.css(e,{height:"",display:"",padding:""})}function d(e){var i=t.offset(e),n=i.height,r=i.width,o=t.position(e),s=o.top,a=o.left,h=t.css(e,["marginTop","marginLeft"]);return{top:s,left:a,height:n,width:r,marginLeft:h.marginLeft,marginTop:h.marginTop,transform:""}}var f,g={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate:function(e,i){var n=this;void 0===i&&(i=this.$el);var r=this.animation,s="fade"===r?o:"delayed-fade"===r?function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.apply(void 0,t.concat([40]))}:r?c:function(){return e(),t.Promise.resolve()};return s(e,i,this.duration).then((function(){return n.$update(i,"resize")}),t.noop)}}},p={mixins:[{connected:function(){!t.hasClass(this.$el,this.$name)&&t.addClass(this.$el,this.$name)}},g],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 e=this;["init","start","move","end"].forEach((function(i){var n=e[i];e[i]=function(i){t.assign(e.pos,t.getEventPos(i)),n(i)}}))},events:{name:t.pointerDown,passive:!1,handler:"init"},computed:{target:function(){return(this.$el.tBodies||[this.$el])[0]},items:function(){return t.children(this.target)},isEmpty:{get:function(){return t.isEmpty(this.items)},watch:function(e){t.toggleClass(this.target,this.clsEmpty,e)},immediate:!0},handles:{get:function(e,i){var n=e.handle;return n?t.$$(n,i):this.items},watch:function(e,i){t.css(i,{touchAction:"",userSelect:""}),t.css(e,{touchAction:t.hasTouch?"none":"",userSelect:"none"})},immediate:!0}},update:{write:function(e){if(this.drag&&t.parent(this.placeholder)){var i=this,n=i.pos,r=n.x,o=n.y,s=i.origin,a=s.offsetTop,h=s.offsetLeft,c=i.placeholder;t.css(this.drag,{top:o-a,left:r-h});var l=this.getSortable(document.elementFromPoint(r,o));if(l){var u=l.items;if(!u.some(t.Transition.inProgress)){var d=function(e,i){return e[t.findIndex(e,(function(e){return t.pointInRect(i,e.getBoundingClientRect())}))]}(u,{x:r,y:o});if(!u.length||d&&d!==c){var f=this.getSortable(c),g=function(e,i,n,r,o,s){if(!t.children(e).length)return;var a=i.getBoundingClientRect();if(!s)return function(e,i){var n=1===t.children(e).length;n&&t.append(e,i);var r=t.children(e),o=r.some((function(t,e){var i=t.getBoundingClientRect();return r.slice(e+1).some((function(t){var e=t.getBoundingClientRect();return!m([i.left,i.right],[e.left,e.right])}))}));n&&t.remove(i);return o}(e,n)||o<a.top+a.height/2?i:i.nextElementSibling;var h=n.getBoundingClientRect(),c=m([a.top,a.bottom],[h.top,h.bottom]),l=c?r:o,u=c?"width":"height",d=c?"left":"top",f=c?"right":"bottom",g=h[u]<a[u]?a[u]-h[u]:0;if(h[d]<a[d])return!(g&&l<a[d]+g)&&i.nextElementSibling;if(g&&l>a[f]-g)return!1;return i}(l.target,d,c,r,o,l===f&&e.moved!==d);!1!==g&&(g&&c===g||(l!==f?(f.remove(c),e.moved=d):delete e.moved,l.insert(c,g),this.touched.add(l)))}}}}},events:["move"]},methods:{init:function(e){var i=e.target,n=e.button,r=e.defaultPrevented,o=this.items.filter((function(e){return t.within(i,e)}))[0];!o||r||n>0||t.isInput(i)||t.within(i,"."+this.clsNoDrag)||this.handle&&!t.within(i,this.handle)||(e.preventDefault(),this.touched=new Set([this]),this.placeholder=o,this.origin=t.assign({target:i,index:t.index(o)},this.pos),t.on(document,t.pointerMove,this.move),t.on(document,t.pointerUp,this.end),this.threshold||this.start(e))},start:function(e){var i,n,r;this.drag=(i=this.$container,n=this.placeholder,r=t.append(i,n.outerHTML.replace(/(^<)(?:li|tr)|(?:li|tr)(\/>$)/g,"$1div$2")),t.css(r,"margin","0","important"),t.css(r,t.assign({boxSizing:"border-box",width:n.offsetWidth,height:n.offsetHeight},t.css(n,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),t.height(r.firstElementChild,t.height(n.firstElementChild)),r);var o,s,a=this.placeholder.getBoundingClientRect(),h=a.left,c=a.top;t.assign(this.origin,{offsetLeft:this.pos.x-h,offsetTop:this.pos.y-c}),t.addClass(this.drag,this.clsDrag,this.clsCustom),t.addClass(this.placeholder,this.clsPlaceholder),t.addClass(this.items,this.clsItem),t.addClass(document.documentElement,this.clsDragState),t.trigger(this.$el,"start",[this,this.placeholder]),o=this.pos,s=Date.now(),f=setInterval((function(){var e=o.x,i=o.y;i+=window.pageYOffset;var n=.3*(Date.now()-s);s=Date.now(),t.scrollParents(document.elementFromPoint(e,o.y)).reverse().some((function(e){var r=e.scrollTop,o=e.scrollHeight,s=t.offset(t.getViewport(e)),a=s.top,h=s.bottom,c=s.height;if(a<i&&a+35>i)r-=n;else{if(!(h>i&&h-35<i))return;r+=n}if(r>0&&r<o-c)return t.scrollTop(e,r),!0}))}),15),this.move(e)},move:function(t){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(t)},end:function(){var e=this;if(t.off(document,t.pointerMove,this.move),t.off(document,t.pointerUp,this.end),t.off(window,"scroll",this.scroll),this.drag){clearInterval(f);var i=this.getSortable(this.placeholder);this===i?this.origin.index!==t.index(this.placeholder)&&t.trigger(this.$el,"moved",[this,this.placeholder]):(t.trigger(i.$el,"added",[i,this.placeholder]),t.trigger(this.$el,"removed",[this,this.placeholder])),t.trigger(this.$el,"stop",[this,this.placeholder]),t.remove(this.drag),this.drag=null,this.touched.forEach((function(i){var n=i.clsPlaceholder,r=i.clsItem;return e.touched.forEach((function(e){return t.removeClass(e.items,n,r)}))})),this.touched=null,t.removeClass(document.documentElement,this.clsDragState)}},insert:function(e,i){var n=this;t.addClass(this.items,this.clsItem);this.animate((function(){return i?t.before(i,e):t.append(n.target,e)}))},remove:function(e){t.within(e,this.target)&&this.animate((function(){return t.remove(e)}))},getSortable:function(e){do{var i=this.$getComponent(e,"sortable");if(i&&(i===this||!1!==this.group&&i.group===this.group))return i}while(e=t.parent(e))}}};function m(t,e){return t[1]>e[0]&&e[1]>t[0]}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("sortable",p),p}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("uikit-util")):"function"==typeof define&&define.amd?define("uikittooltip",["uikit-util"],i):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkitTooltip=i(t.UIkit.util)}(this,(function(t){"use strict";var i,o={mixins:[{props:{container:Boolean},data:{container:!0},computed:{container:function(i){var o=i.container;return!0===o&&this.$container||o&&t.$(o)}}},{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(t){return!!t.animation[0]},hasTransition:function(t){var i=t.animation;return this.hasAnimation&&!0===i[0]}},methods:{toggleElement:function(i,o,n){var e=this;return new t.Promise((function(s){return t.Promise.all(t.toNodes(i).map((function(i){var s=t.isBoolean(o)?o:!e.isToggled(i);if(!t.trigger(i,"before"+(s?"show":"hide"),[e]))return t.Promise.reject();var r,a,l,h,u,d,c,g,p=(t.isFunction(n)?n:!1!==n&&e.hasAnimation?e.hasTransition?(l=(a=e).isToggled,h=a.duration,u=a.initProps,d=a.hideProps,c=a.transition,g=a._toggle,function(i,o){var n=t.Transition.inProgress(i),e=i.hasChildNodes?t.toFloat(t.css(i.firstElementChild,"marginTop"))+t.toFloat(t.css(i.lastElementChild,"marginBottom")):0,s=t.isVisible(i)?t.height(i)+(n?0:e):0;t.Transition.cancel(i),l(i)||g(i,!0),t.height(i,""),t.fastdom.flush();var r=t.height(i)+(n?0:e);return t.height(i,s),(o?t.Transition.start(i,t.assign({},u,{overflow:"hidden",height:r}),Math.round(h*(1-s/r)),c):t.Transition.start(i,d,Math.round(h*(s/r)),c).then((function(){return g(i,!1)}))).then((function(){return t.css(i,u)}))}):(r=e,function(i,o){t.Animation.cancel(i);var n=r.animation,e=r.duration,s=r._toggle;return o?(s(i,!0),t.Animation.in(i,n[0],e,r.origin)):t.Animation.out(i,n[1]||n[0],e,r.origin).then((function(){return s(i,!1)}))}):e._toggle)(i,s),f=s?e.clsEnter:e.clsLeave;t.addClass(i,f),t.trigger(i,s?"show":"hide",[e]);var m=function(){t.removeClass(i,f),t.trigger(i,s?"shown":"hidden",[e]),e.$update(i)};return p?p.then(m,(function(){return t.removeClass(i,f),t.Promise.reject()})):m()}))).then(s,t.noop)}))},isToggled:function(i){return void 0===i&&(i=this.$el),i=t.toNodes(i)[0],!!t.hasClass(i,this.clsEnter)||!t.hasClass(i,this.clsLeave)&&(this.cls?t.hasClass(i,this.cls.split(" ")[0]):t.isVisible(i))},_toggle:function(i,o){var n;i&&(o=Boolean(o),this.cls?(n=t.includes(this.cls," ")||o!==t.hasClass(i,this.cls))&&t.toggleClass(i,this.cls,t.includes(this.cls," ")?void 0:o):(n=o===i.hidden)&&(i.hidden=!o),t.$$("[autofocus]",i).some((function(i){return t.isVisible(i)?i.focus()||!0:i.blur()})),n&&(t.trigger(i,"toggled",[o,this]),this.$update(i)))}}},{props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(t.isRtl?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(i){var o=i.pos;return(o+(t.includes(o,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(i,o,n){t.removeClasses(i,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");var e=this.offset,s=this.getAxis();if(!t.isNumeric(e)){var r=t.$(e);e=r?t.offset(r)["x"===s?"left":"top"]-t.offset(o)["x"===s?"right":"bottom"]:0}var a=t.positionAt(i,o,"x"===s?t.flipPosition(this.dir)+" "+this.align:this.align+" "+t.flipPosition(this.dir),"x"===s?this.dir+" "+this.align:this.align+" "+this.dir,"x"===s?""+("left"===this.dir?-e:e):" "+("top"===this.dir?-e:e),null,this.flip,n).target,l=a.x,h=a.y;this.dir="x"===s?l:h,this.align="x"===s?h:l,t.toggleClass(i,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}}],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(){var i;this._hasTitle=t.hasAttr(this.$el,"title"),t.attr(this.$el,"title",""),this.updateAria(!1),i=this.$el,t.isFocusable(i)||t.attr(i,"tabindex","0")},disconnected:function(){this.hide(),t.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show:function(){var i=this;!this.isToggled(this.tooltip||null)&&this.title&&(this._unbind=t.once(document,"show keydown "+t.pointerDown,this.hide,!1,(function(o){return o.type===t.pointerDown&&!t.within(o.target,i.$el)||"keydown"===o.type&&27===o.keyCode||"show"===o.type&&o.detail[0]!==i&&o.detail[0].$name===i.$name})),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},hide:function(){var i=this;t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&this.toggleElement(this.tooltip,!1,!1).then((function(){i.tooltip=t.remove(i.tooltip),i._unbind()})))},_show:function(){var i=this;this.tooltip=t.append(this.container,'<div class="'+this.clsPos+'"> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),t.on(this.tooltip,"toggled",(function(o,n){i.updateAria(n),n&&(i.positionAt(i.tooltip,i.$el),i.origin="y"===i.getAxis()?t.flipPosition(i.dir)+"-"+i.align:i.align+"-"+t.flipPosition(i.dir))})),this.toggleElement(this.tooltip,!0)},updateAria:function(i){t.attr(this.$el,"aria-expanded",i)}},events:(i={focus:"show",blur:"hide"},i[t.pointerEnter+" "+t.pointerLeave]=function(i){t.isTouch(i)||this[i.type===t.pointerEnter?"show":"hide"]()},i[t.pointerDown]=function(i){t.isTouch(i)&&this.show()},i)};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("tooltip",o),o}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 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,2 +1,2 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitupload",["uikit-util"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).UIkitUpload=t(e.UIkit.util)}(this,(function(e){"use strict";var t={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:e.noop,beforeAll:e.noop,beforeSend:e.noop,complete:e.noop,completeAll:e.noop,error:e.noop,fail:e.noop,load:e.noop,loadEnd:e.noop,loadStart:e.noop,progress:e.noop},events:{change:function(t){e.matches(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop:function(t){o(t);var i=t.dataTransfer;i&&i.files&&(e.removeClass(this.$el,this.clsDragover),this.upload(i.files))},dragenter:function(e){o(e)},dragover:function(t){o(t),e.addClass(this.$el,this.clsDragover)},dragleave:function(t){o(t),e.removeClass(this.$el,this.clsDragover)}},methods:{upload:function(t){var o=this;if(t.length){e.trigger(this.$el,"upload",[t]);for(var n=0;n<t.length;n++){if(this.maxSize&&1e3*this.maxSize<t[n].size)return void this.fail(this.msgInvalidSize.replace("%s",this.maxSize));if(this.allow&&!i(this.allow,t[n].name))return void this.fail(this.msgInvalidName.replace("%s",this.allow));if(this.mime&&!i(this.mime,t[n].type))return void this.fail(this.msgInvalidMime.replace("%s",this.mime))}this.multiple||(t=[t[0]]),this.beforeAll(this,t);var r=function(e,t){for(var i=[],o=0;o<e.length;o+=t){for(var n=[],r=0;r<t;r++)n.push(e[o+r]);i.push(n)}return i}(t,this.concurrent),a=function(t){var i=new FormData;for(var n in t.forEach((function(e){return i.append(o.name,e)})),o.params)i.append(n,o.params[n]);e.ajax(o.url,{data:i,method:o.method,responseType:o.type,beforeSend:function(t){var i=t.xhr;return i.upload&&e.on(i.upload,"progress",o.progress),["loadStart","load","loadEnd","abort"].forEach((function(t){return e.on(i,t.toLowerCase(),o[t])})),o.beforeSend(t)}}).then((function(e){o.complete(e),r.length?a(r.shift()):o.completeAll(e)}),(function(e){return o.error(e)}))};a(r.shift())}}}};function i(e,t){return t.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function o(e){e.preventDefault(),e.stopPropagation()}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("upload",t),t}));
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.3-dev.
|
|
1
|
+
/*! UIkit 3.9.3-dev.dc54c8709 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -3465,7 +3465,7 @@
|
|
|
3465
3465
|
UIkit.data = '__uikit__';
|
|
3466
3466
|
UIkit.prefix = 'uk-';
|
|
3467
3467
|
UIkit.options = {};
|
|
3468
|
-
UIkit.version = '3.9.3-dev.
|
|
3468
|
+
UIkit.version = '3.9.3-dev.dc54c8709';
|
|
3469
3469
|
|
|
3470
3470
|
globalAPI(UIkit);
|
|
3471
3471
|
hooksAPI(UIkit);
|