uikit 3.9.0 → 3.9.2-dev.de0c5f523
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/CHANGELOG.md +15 -1
- package/build/.eslintrc.json +6 -4
- package/build/build.js +23 -30
- package/build/icons.js +28 -2
- package/build/less.js +3 -3
- package/build/prefix.js +1 -1
- package/build/publishDev.js +4 -3
- package/build/release.js +0 -3
- package/build/scope.js +1 -1
- package/build/scss.js +9 -5
- package/build/util.js +76 -33
- package/dist/css/uikit-core-rtl.css +4 -4
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +4 -4
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +4 -4
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +4 -4
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +2 -2
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +2 -2
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +2 -2
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +2 -2
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +2 -2
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +2 -2
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +2 -2
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +2 -2
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +2 -2
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +2 -2
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +2 -2
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +2 -2
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +2 -2
- package/dist/js/uikit-core.js +10 -8
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +2 -2
- package/dist/js/uikit.js +10 -8
- package/dist/js/uikit.min.js +2 -2
- package/package.json +8 -10
- package/src/js/uikit-core.js +1 -1
- package/src/js/uikit.js +1 -1
- package/src/js/util/style.js +9 -7
- package/src/less/components/accordion.less +10 -10
- package/src/less/components/alert.less +9 -9
- package/src/less/components/align.less +2 -2
- package/src/less/components/animation.less +2 -2
- package/src/less/components/article.less +8 -8
- package/src/less/components/background.less +1 -1
- package/src/less/components/badge.less +6 -6
- package/src/less/components/base.less +30 -30
- package/src/less/components/breadcrumb.less +12 -12
- package/src/less/components/button.less +36 -36
- package/src/less/components/card.less +25 -25
- package/src/less/components/close.less +5 -5
- package/src/less/components/column.less +2 -2
- package/src/less/components/comment.less +12 -12
- package/src/less/components/container.less +2 -2
- package/src/less/components/countdown.less +10 -10
- package/src/less/components/cover.less +2 -2
- package/src/less/components/description-list.less +5 -5
- package/src/less/components/divider.less +11 -11
- package/src/less/components/dotnav.less +11 -11
- package/src/less/components/drop.less +1 -1
- package/src/less/components/dropdown.less +7 -7
- package/src/less/components/flex.less +2 -2
- package/src/less/components/form-range.less +11 -11
- package/src/less/components/form.less +27 -27
- package/src/less/components/grid.less +6 -6
- package/src/less/components/heading.less +21 -21
- package/src/less/components/height.less +1 -1
- package/src/less/components/icon.less +13 -13
- package/src/less/components/iconnav.less +9 -9
- package/src/less/components/inverse.less +3 -3
- package/src/less/components/label.less +7 -7
- package/src/less/components/leader.less +4 -4
- package/src/less/components/lightbox.less +9 -9
- package/src/less/components/link.less +12 -12
- package/src/less/components/list.less +5 -5
- package/src/less/components/margin.less +3 -3
- package/src/less/components/marker.less +5 -5
- package/src/less/components/modal.less +16 -16
- package/src/less/components/nav.less +31 -31
- package/src/less/components/navbar.less +33 -33
- package/src/less/components/notification.less +9 -9
- package/src/less/components/offcanvas.less +4 -4
- package/src/less/components/overlay.less +5 -5
- package/src/less/components/padding.less +1 -1
- package/src/less/components/pagination.less +10 -10
- package/src/less/components/placeholder.less +3 -3
- package/src/less/components/position.less +1 -1
- package/src/less/components/print.less +1 -1
- package/src/less/components/progress.less +6 -6
- package/src/less/components/search.less +15 -15
- package/src/less/components/section.less +8 -8
- package/src/less/components/slidenav.less +11 -11
- package/src/less/components/slider.less +2 -2
- package/src/less/components/slideshow.less +2 -2
- package/src/less/components/sortable.less +5 -5
- package/src/less/components/spinner.less +2 -2
- package/src/less/components/sticky.less +1 -1
- package/src/less/components/subnav.less +21 -21
- package/src/less/components/svg.less +1 -1
- package/src/less/components/switcher.less +2 -2
- package/src/less/components/tab.less +18 -18
- package/src/less/components/table.less +18 -18
- package/src/less/components/text.less +11 -11
- package/src/less/components/thumbnav.less +9 -9
- package/src/less/components/tile.less +10 -10
- package/src/less/components/tooltip.less +2 -2
- package/src/less/components/totop.less +7 -7
- package/src/less/components/transition.less +1 -1
- package/src/less/components/utility.less +10 -10
- package/src/less/components/visibility.less +1 -1
- package/src/less/components/width.less +1 -1
- package/src/scss/components/accordion.scss +1 -1
- package/src/scss/components/alert.scss +1 -1
- package/src/scss/components/align.scss +1 -1
- package/src/scss/components/animation.scss +1 -1
- package/src/scss/components/article.scss +1 -1
- package/src/scss/components/badge.scss +1 -1
- package/src/scss/components/base.scss +1 -1
- package/src/scss/components/card.scss +8 -8
- package/src/scss/components/column.scss +1 -0
- package/src/scss/components/comment.scss +1 -1
- package/src/scss/components/container.scss +1 -1
- package/src/scss/components/cover.scss +1 -1
- package/src/scss/components/description-list.scss +1 -1
- package/src/scss/components/dotnav.scss +1 -1
- package/src/scss/components/flex.scss +1 -1
- package/src/scss/components/form-range.scss +1 -1
- package/src/scss/components/grid.scss +1 -1
- package/src/scss/components/iconnav.scss +1 -1
- package/src/scss/components/inverse.scss +1 -1
- package/src/scss/components/label.scss +1 -1
- package/src/scss/components/leader.scss +1 -1
- package/src/scss/components/margin.scss +2 -2
- package/src/scss/components/modal.scss +2 -2
- package/src/scss/components/nav.scss +1 -1
- package/src/scss/components/notification.scss +1 -1
- package/src/scss/components/placeholder.scss +1 -1
- package/src/scss/components/section.scss +1 -1
- package/src/scss/components/spinner.scss +1 -1
- package/src/scss/components/subnav.scss +1 -1
- package/src/scss/components/switcher.scss +1 -1
- package/src/scss/components/tab.scss +1 -1
- package/src/scss/components/table.scss +2 -2
- package/src/scss/components/text.scss +3 -3
- package/src/scss/components/thumbnav.scss +1 -1
- package/src/scss/components/utility.scss +1 -1
- package/src/scss/mixins-theme.scss +3 -3
- package/src/scss/mixins.scss +1 -1
- package/src/scss/variables-theme.scss +10 -10
- package/src/scss/variables.scss +10 -10
- package/tests/js/index.js +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | 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,3 +1,3 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
|
-
!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(c){"use strict";var t={connected:function(){c.hasClass(this.$el,this.$name)||c.addClass(this.$el,this.$name)}},i={slide:{show:function(t){return[{transform:e(-100*t)},{transform:e()}]},percent:n,translate:function(t,i){return[{transform:e(-100*i*t)},{transform:e(100*i*(1-t))}]}}};function n(t){return Math.abs(c.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function e(t,i){return void 0===t&&(t=0),void 0===i&&(i="%"),t+=t?i:"",c.isIE?"translateX("+t+")":"translate3d("+t+", 0, 0)"}function s(t){return"scale3d("+t+", "+t+", 1)"}function u(t,i,e){c.trigger(t,c.createEvent(i,!1,!1,e))}var r={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(){c.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:function(){return document},filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay:function(){var t=this;this.stopAutoplay(),this.interval=setInterval(function(){return(!t.draggable||!c.$(":focus",t.$el))&&(!t.pauseOnHover||!c.matches(t.$el,":hover"))&&!t.stack.length&&t.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var n=this;["start","move","end"].forEach(function(t){var e=n[t];n[t]=function(t){var i=c.getEventPos(t).x*(c.isRtl?-1:1);n.prevPos=i!==n.pos?n.pos:n.prevPos,n.pos=i,e(t)}})},events:[{name:c.pointerDown,delegate:function(){return this.selSlides},handler:function(t){var i;!this.draggable||!c.isTouch(t)&&(!(i=t.target).children.length&&i.childNodes.length)||c.closest(t.target,c.selInput)||0<t.button||this.length<2||this.start(t)}},{name:"dragstart",handler:function(t){t.preventDefault()}}],methods:{start:function(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,c.on(document,c.pointerMove,this.move,{passive:!1}),c.on(document,c.pointerUp+" "+c.pointerCancel+" input",this.end,!0),c.css(this.list,"userSelect","none")},move:function(t){var i=this,e=this.pos-this.drag;if(!(0==e||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)){c.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;for(var n=this.slides,s=this.prevIndex,r=Math.abs(e),a=this.getIndex(s+this.dir,s),o=this._getDistance(s,a)||n[s].offsetWidth;a!==s&&o<r;)this.drag-=o*this.dir,s=a,r-=o,a=this.getIndex(s+this.dir,s),o=this._getDistance(s,a)||n[s].offsetWidth;this.percent=r/o;var h,d=n[s],t=n[a],e=this.index!==a,u=s===a;[this.index,this.prevIndex].filter(function(t){return!c.includes([a,s],t)}).forEach(function(t){c.trigger(n[t],"itemhidden",[i]),u&&(h=!0,i.prevIndex=s)}),(this.index===s&&this.prevIndex!==s||h)&&c.trigger(n[this.index],"itemshown",[this]),e&&(this.prevIndex=s,this.index=a,u||c.trigger(d,"beforeitemhide",[this]),c.trigger(t,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),d,!u&&t),e&&(u||c.trigger(d,"itemhide",[this]),c.trigger(t,"itemshow",[this]))}},end:function(){var t;c.off(document,c.pointerMove,this.move,{passive:!1}),c.off(document,c.pointerUp+" "+c.pointerCancel+" input",this.end,!0),this.dragging&&(this.dragging=null,this.index===this.prevIndex?(this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null):(t=(c.isRtl?this.dir*(c.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos,this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(0<this.dir&&!t||this.dir<0&&t?"next":"previous",!0))),c.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(t,i){t=t.selNav;return c.$(t,i)},selNavItem:function(t){t=t.attrItem;return"["+t+"],[data-"+t+"]"},navItems:function(t,i){return c.$$(this.selNavItem,i)}},update:{write:function(){var e=this;this.nav&&this.length!==this.nav.children.length&&c.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(t){t.preventDefault(),this.show(c.data(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var e=this,n=this.getValidIndex();this.navItems.forEach(function(t){var i=c.data(t,e.attrItem);c.toggleClass(t,e.clsActive,c.toNumber(i)===n),c.toggleClass(t,"uk-invisible",e.finite&&("previous"===i&&0===n||"next"===i&&n>=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(){c.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,i){t=t.velocity;return i.offsetWidth/t*.5+300},list:function(t,i){t=t.selList;return c.$(t,i)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return c.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(t,i){var e=this;if(void 0===i&&(i=!1),!this.dragging&&this.length){var n=this.stack,s=i?0:n.length,r=function(){n.splice(s,1),n.length&&e.show(n.shift(),!0)};if(n[i?"unshift":"push"](t),!i&&1<n.length)2===n.length&&this._transitioner.forward(Math.min(this.duration,200));else{var a,o=this.getIndex(this.index),h=c.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(t,this.index),u=this.slides[d];if(h!==u){if(this.dir=(a=o,"next"!==(t=t)&&("previous"===t||t<a)?-1:1),this.prevIndex=o,this.index=d,h&&!c.trigger(h,"beforeitemhide",[this])||!c.trigger(u,"beforeitemshow",[this,h]))return this.index=this.prevIndex,void r();i=this._show(h,u,i).then(function(){return h&&c.trigger(h,"itemhidden",[e]),c.trigger(u,"itemshown",[e]),new c.Promise(function(t){c.fastdom.write(function(){n.shift(),n.length?e.show(n.shift(),!0):e._transitioner=null,t()})})});return h&&c.trigger(h,"itemhide",[this]),c.trigger(u,"itemshow",[this]),i}r()}}},getIndex:function(t,i){return void 0===t&&(t=this.index),void 0===i&&(i=this.index),c.clamp(c.getIndex(t,this.slides,i,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(t,i,e){if(this._transitioner=this._getTransitioner(t,i,this.dir,c.assign({easing:e?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)),!e&&!t)return this._translate(1),c.Promise.resolve();t=this.stack.length;return this._transitioner[1<t?"forward":"show"](1<t?Math.min(this.duration,75+75/(t-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);e=this._getTransitioner(i!==e&&i,e);return e.translate(t),e},_getTransitioner:function(t,i,e,n){return void 0===t&&(t=this.prevIndex),void 0===i&&(i=this.index),void 0===e&&(e=this.dir||1),void 0===n&&(n=this.transitionOptions),new this.Transitioner(c.isNumber(t)?this.slides[t]:t,c.isNumber(i)?this.slides[i]:i,e*(c.isRtl?-1:1),n)}}}],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:i,Transitioner:function(s,r,a,t){var i=t.animation,o=t.easing,e=i.percent,n=i.translate,h=(i=void 0===(i=i.show)?c.noop:i)(a),d=new c.Deferred;return{dir:a,show:function(t,i,e){var n=this;void 0===i&&(i=0);e=e?"linear":o;return t-=Math.round(t*c.clamp(i,-1,1)),this.translate(i),u(r,"itemin",{percent:i,duration:t,timing:e,dir:a}),u(s,"itemout",{percent:1-i,duration:t,timing:e,dir:a}),c.Promise.all([c.Transition.start(r,h[1],t,e),c.Transition.start(s,h[0],t,e)]).then(function(){n.reset(),d.resolve()},c.noop),d.promise},cancel:function(){c.Transition.cancel([r,s])},reset:function(){for(var t in h[0])c.css([r,s],t,"")},forward:function(t,i){return void 0===i&&(i=this.percent()),c.Transition.cancel([r,s]),this.show(t,i,!0)},translate:function(t){this.reset();var i=n(t,a);c.css(r,i[1]),c.css(s,i[0]),u(r,"itemtranslatein",{percent:t,dir:a}),u(s,"itemtranslateout",{percent:1-t,dir:a})},percent:function(){return e(s||r,r,a)},getDistance:function(){return s&&s.offsetWidth}}}},computed:{animation:function(t){var i=t.animation,t=t.Animations;return c.assign(t[i]||t.slide,{name:i})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){t=t.target;this.$update(t)},beforeitemshow:function(t){t=t.target;c.addClass(t,this.clsActive)},itemshown:function(t){t=t.target;c.addClass(t,this.clsActivated)},itemhidden:function(t){t=t.target;c.removeClass(t,this.clsActive,this.clsActivated)}}},i=c.assign({},i,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(t){return 1-c.css(t,"opacity")},translate:function(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:s(1.5),zIndex:0},{zIndex:-1}]},percent:function(t){return 1-c.css(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:s(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show:function(t){return t<0?[{transform:e(30),zIndex:-1},{transform:e(),zIndex:0}]:[{transform:e(-100),zIndex:0},{transform:e(),zIndex:-1}]},percent:function(t,i,e){return e<0?1-n(i):n(t)},translate:function(t,i){return i<0?[{transform:e(30*t),zIndex:-1},{transform:e(-100*(1-t)),zIndex:0}]:[{transform:e(100*-t),zIndex:0},{transform:e(30*(1-t)),zIndex:-1}]}},push:{show:function(t){return t<0?[{transform:e(100),zIndex:0},{transform:e(),zIndex:-1}]:[{transform:e(-30),zIndex:-1},{transform:e(),zIndex:0}]},percent:function(t,i,e){return 0<e?1-n(i):n(t)},translate:function(t,i){return i<0?[{transform:e(100*t),zIndex:0},{transform:e(-30*(1-t)),zIndex:-1}]:[{transform:e(-30*t),zIndex:-1},{transform:e(100*(1-t)),zIndex:0}]}}}),i={mixins:[t,r,{update:{write:function(){var t;this.stack.length||this.dragging||(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:i},update:{read:function(){var t=this.ratio.split(":").map(Number),i=t[0],t=(t=t[1])*this.list.offsetWidth/i||0;return this.minHeight&&(t=Math.max(this.minHeight,t)),{height:(t=this.maxHeight?Math.min(this.maxHeight,t):t)-c.boxModelAdjust(this.list,"height","content-box")}},write:function(t){t=t.height;0<t&&c.css(this.list,"minHeight",t)},events:["resize"]}};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("slideshow",i),i});
|
|
3
|
+
!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(c){"use strict";var t={connected:function(){c.hasClass(this.$el,this.$name)||c.addClass(this.$el,this.$name)}},i={slide:{show:function(t){return[{transform:e(-100*t)},{transform:e()}]},percent:n,translate:function(t,i){return[{transform:e(-100*i*t)},{transform:e(100*i*(1-t))}]}}};function n(t){return Math.abs(c.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function e(t,i){return void 0===t&&(t=0),void 0===i&&(i="%"),t+=t?i:"",c.isIE?"translateX("+t+")":"translate3d("+t+", 0, 0)"}function s(t){return"scale3d("+t+", "+t+", 1)"}function u(t,i,e){c.trigger(t,c.createEvent(i,!1,!1,e))}var r={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(){c.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:function(){return document},filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay:function(){var t=this;this.stopAutoplay(),this.interval=setInterval(function(){return(!t.draggable||!c.$(":focus",t.$el))&&(!t.pauseOnHover||!c.matches(t.$el,":hover"))&&!t.stack.length&&t.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var n=this;["start","move","end"].forEach(function(t){var e=n[t];n[t]=function(t){var i=c.getEventPos(t).x*(c.isRtl?-1:1);n.prevPos=i!==n.pos?n.pos:n.prevPos,n.pos=i,e(t)}})},events:[{name:c.pointerDown,delegate:function(){return this.selSlides},handler:function(t){var i;!this.draggable||!c.isTouch(t)&&(!(i=t.target).children.length&&i.childNodes.length)||c.closest(t.target,c.selInput)||0<t.button||this.length<2||this.start(t)}},{name:"dragstart",handler:function(t){t.preventDefault()}}],methods:{start:function(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,c.on(document,c.pointerMove,this.move,{passive:!1}),c.on(document,c.pointerUp+" "+c.pointerCancel+" input",this.end,!0),c.css(this.list,"userSelect","none")},move:function(t){var i=this,e=this.pos-this.drag;if(!(0==e||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)){c.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;for(var n=this.slides,s=this.prevIndex,r=Math.abs(e),a=this.getIndex(s+this.dir,s),o=this._getDistance(s,a)||n[s].offsetWidth;a!==s&&o<r;)this.drag-=o*this.dir,s=a,r-=o,a=this.getIndex(s+this.dir,s),o=this._getDistance(s,a)||n[s].offsetWidth;this.percent=r/o;var h,d=n[s],t=n[a],e=this.index!==a,u=s===a;[this.index,this.prevIndex].filter(function(t){return!c.includes([a,s],t)}).forEach(function(t){c.trigger(n[t],"itemhidden",[i]),u&&(h=!0,i.prevIndex=s)}),(this.index===s&&this.prevIndex!==s||h)&&c.trigger(n[this.index],"itemshown",[this]),e&&(this.prevIndex=s,this.index=a,u||c.trigger(d,"beforeitemhide",[this]),c.trigger(t,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),d,!u&&t),e&&(u||c.trigger(d,"itemhide",[this]),c.trigger(t,"itemshow",[this]))}},end:function(){var t;c.off(document,c.pointerMove,this.move,{passive:!1}),c.off(document,c.pointerUp+" "+c.pointerCancel+" input",this.end,!0),this.dragging&&(this.dragging=null,this.index===this.prevIndex?(this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null):(t=(c.isRtl?this.dir*(c.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos,this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(0<this.dir&&!t||this.dir<0&&t?"next":"previous",!0))),c.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(t,i){t=t.selNav;return c.$(t,i)},selNavItem:function(t){t=t.attrItem;return"["+t+"],[data-"+t+"]"},navItems:function(t,i){return c.$$(this.selNavItem,i)}},update:{write:function(){var e=this;this.nav&&this.length!==this.nav.children.length&&c.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(t){t.preventDefault(),this.show(c.data(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var e=this,n=this.getValidIndex();this.navItems.forEach(function(t){var i=c.data(t,e.attrItem);c.toggleClass(t,e.clsActive,c.toNumber(i)===n),c.toggleClass(t,"uk-invisible",e.finite&&("previous"===i&&0===n||"next"===i&&n>=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(){c.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,i){t=t.velocity;return i.offsetWidth/t*.5+300},list:function(t,i){t=t.selList;return c.$(t,i)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return c.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(t,i){var e=this;if(void 0===i&&(i=!1),!this.dragging&&this.length){var n=this.stack,s=i?0:n.length,r=function(){n.splice(s,1),n.length&&e.show(n.shift(),!0)};if(n[i?"unshift":"push"](t),!i&&1<n.length)2===n.length&&this._transitioner.forward(Math.min(this.duration,200));else{var a,o=this.getIndex(this.index),h=c.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(t,this.index),u=this.slides[d];if(h!==u){if(this.dir=(a=o,"next"!==(t=t)&&("previous"===t||t<a)?-1:1),this.prevIndex=o,this.index=d,h&&!c.trigger(h,"beforeitemhide",[this])||!c.trigger(u,"beforeitemshow",[this,h]))return this.index=this.prevIndex,void r();i=this._show(h,u,i).then(function(){return h&&c.trigger(h,"itemhidden",[e]),c.trigger(u,"itemshown",[e]),new c.Promise(function(t){c.fastdom.write(function(){n.shift(),n.length?e.show(n.shift(),!0):e._transitioner=null,t()})})});return h&&c.trigger(h,"itemhide",[this]),c.trigger(u,"itemshow",[this]),i}r()}}},getIndex:function(t,i){return void 0===t&&(t=this.index),void 0===i&&(i=this.index),c.clamp(c.getIndex(t,this.slides,i,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(t,i,e){if(this._transitioner=this._getTransitioner(t,i,this.dir,c.assign({easing:e?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)),!e&&!t)return this._translate(1),c.Promise.resolve();t=this.stack.length;return this._transitioner[1<t?"forward":"show"](1<t?Math.min(this.duration,75+75/(t-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);e=this._getTransitioner(i!==e&&i,e);return e.translate(t),e},_getTransitioner:function(t,i,e,n){return void 0===t&&(t=this.prevIndex),void 0===i&&(i=this.index),void 0===e&&(e=this.dir||1),void 0===n&&(n=this.transitionOptions),new this.Transitioner(c.isNumber(t)?this.slides[t]:t,c.isNumber(i)?this.slides[i]:i,e*(c.isRtl?-1:1),n)}}}],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:i,Transitioner:function(s,r,a,t){var i=t.animation,o=t.easing,e=i.percent,n=i.translate,h=(i=void 0===(i=i.show)?c.noop:i)(a),d=new c.Deferred;return{dir:a,show:function(t,i,e){var n=this;void 0===i&&(i=0);e=e?"linear":o;return t-=Math.round(t*c.clamp(i,-1,1)),this.translate(i),u(r,"itemin",{percent:i,duration:t,timing:e,dir:a}),u(s,"itemout",{percent:1-i,duration:t,timing:e,dir:a}),c.Promise.all([c.Transition.start(r,h[1],t,e),c.Transition.start(s,h[0],t,e)]).then(function(){n.reset(),d.resolve()},c.noop),d.promise},cancel:function(){c.Transition.cancel([r,s])},reset:function(){for(var t in h[0])c.css([r,s],t,"")},forward:function(t,i){return void 0===i&&(i=this.percent()),c.Transition.cancel([r,s]),this.show(t,i,!0)},translate:function(t){this.reset();var i=n(t,a);c.css(r,i[1]),c.css(s,i[0]),u(r,"itemtranslatein",{percent:t,dir:a}),u(s,"itemtranslateout",{percent:1-t,dir:a})},percent:function(){return e(s||r,r,a)},getDistance:function(){return s&&s.offsetWidth}}}},computed:{animation:function(t){var i=t.animation,t=t.Animations;return c.assign(t[i]||t.slide,{name:i})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){t=t.target;this.$update(t)},beforeitemshow:function(t){t=t.target;c.addClass(t,this.clsActive)},itemshown:function(t){t=t.target;c.addClass(t,this.clsActivated)},itemhidden:function(t){t=t.target;c.removeClass(t,this.clsActive,this.clsActivated)}}},i=c.assign({},i,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(t){return 1-c.css(t,"opacity")},translate:function(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:s(1.5),zIndex:0},{zIndex:-1}]},percent:function(t){return 1-c.css(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:s(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show:function(t){return t<0?[{transform:e(30),zIndex:-1},{transform:e(),zIndex:0}]:[{transform:e(-100),zIndex:0},{transform:e(),zIndex:-1}]},percent:function(t,i,e){return e<0?1-n(i):n(t)},translate:function(t,i){return i<0?[{transform:e(30*t),zIndex:-1},{transform:e(-100*(1-t)),zIndex:0}]:[{transform:e(100*-t),zIndex:0},{transform:e(30*(1-t)),zIndex:-1}]}},push:{show:function(t){return t<0?[{transform:e(100),zIndex:0},{transform:e(),zIndex:-1}]:[{transform:e(-30),zIndex:-1},{transform:e(),zIndex:0}]},percent:function(t,i,e){return 0<e?1-n(i):n(t)},translate:function(t,i){return i<0?[{transform:e(100*t),zIndex:0},{transform:e(-30*(1-t)),zIndex:-1}]:[{transform:e(-30*t),zIndex:-1},{transform:e(100*(1-t)),zIndex:0}]}}}),i={mixins:[t,r,{update:{write:function(){var t;this.stack.length||this.dragging||(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:i},update:{read:function(){var t=this.ratio.split(":").map(Number),i=t[0],t=(t=t[1])*this.list.offsetWidth/i||0;return this.minHeight&&(t=Math.max(this.minHeight,t)),{height:(t=this.maxHeight?Math.min(this.maxHeight,t):t)-c.boxModelAdjust(this.list,"height","content-box")}},write:function(t){t=t.height;0<t&&c.css(this.list,"minHeight",t)},events:["resize"]}};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("slideshow",i),i});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | 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,3 +1,3 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
|
-
!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(g){"use strict";function e(t){return function(t,e,i){for(var n=[[]],r=0;r<t.length;r++){var o=t[r];if(g.isVisible(o))for(var s=l(o),a=n.length-1;0<=a;a--){var h=n[a];if(!h[0]){h.push(o);break}var c=void 0;if(c=h[0].offsetParent===o.offsetParent?l(h[0]):(s=l(o,!0),l(h[0],!0)),s[e]>=c[i]-1&&s[e]!==c[e]){n.push([o]);break}if(s[i]-1>c[e]||s[e]===c[e]){h.push(o);break}if(0===a){n.unshift([o]);break}}}return n}(t,"top","bottom")}function l(t,e){var i=t.offsetTop,n=t.offsetLeft,r=t.offsetHeight,o=t.offsetWidth;return(e=void 0===e?!1:e)&&(i=(t=g.offsetPosition(t))[0],n=t[1]),{top:i,left:n,bottom:i+r,right:n+o}}var n="uk-transition-leave",d="uk-transition-enter";function r(t,s,a,h){void 0===h&&(h=0);var c=f(s,!0),l={opacity:1},u={opacity:0},e=function(t){return function(){return c===f(s)?t():g.Promise.reject()}},i=e(function(){return g.addClass(s,n),g.Promise.all(p(s).map(function(e,i){return new g.Promise(function(t){return setTimeout(function(){return g.Transition.start(e,u,a/2,"ease").then(t)},i*h)})})).then(function(){return g.removeClass(s,n)})}),e=e(function(){var o=g.height(s);return g.addClass(s,d),t(),g.css(g.children(s),{opacity:0}),new g.Promise(function(r){return requestAnimationFrame(function(){var t=g.children(s),e=g.height(s);g.css(s,"alignContent","flex-start"),g.height(s,o);var i=p(s);g.css(t,u);var n=i.map(function(e,i){return new g.Promise(function(t){return setTimeout(function(){return g.Transition.start(e,l,a/2,"ease").then(t)},i*h)})});o!==e&&n.push(g.Transition.start(s,{height:e},a/2+i.length*h,"ease")),g.Promise.all(n).then(function(){g.removeClass(s,d),c===f(s)&&(g.css(s,{height:"",alignContent:""}),g.css(t,{opacity:""}),delete s.dataset.transition),r()})})})});return(g.hasClass(s,n)?o(s):g.hasClass(s,d)?o(s).then(i):i()).then(e)}function f(t,e){return e&&(t.dataset.transition=1+f(t)),g.toNumber(t.dataset.transition)||0}function o(t){return g.Promise.all(g.children(t).filter(g.Transition.inProgress).map(function(e){return new g.Promise(function(t){return g.once(e,"transitionend transitioncanceled",t)})}))}function p(t){return e(g.children(t)).reduce(function(t,e){return t.concat(g.sortBy(e.filter(function(t){return g.isInView(t)}),"offsetLeft"))},[])}function s(t,d,f){return new g.Promise(function(u){return requestAnimationFrame(function(){var h=g.children(d),c=h.map(function(t){return m(t,!0)}),l=g.css(d,["height","padding"]);g.Transition.cancel(d),h.forEach(g.Transition.cancel),v(d),t(),h=h.concat(g.children(d).filter(function(t){return!g.includes(h,t)})),g.Promise.resolve().then(function(){g.fastdom.flush();var i,n,r,t,e,o=g.css(d,["height","padding"]),e=(i=d,r=c,t=(n=h).map(function(t,e){return!!(g.parent(t)&&e in r)&&(r[e]?g.isVisible(t)?b(t):{opacity:0}:{opacity:g.isVisible(t)?1:0})}),e=t.map(function(t,e){e=g.parent(n[e])===i&&(r[e]||m(n[e]));return!!e&&(t?"opacity"in t||(e.opacity%1?t.opacity=1:delete e.opacity):delete e.opacity,e)}),[t,e]),s=e[0],a=e[1];h.forEach(function(t,e){return a[e]&&g.css(t,a[e])}),g.css(d,g.assign({display:"block"},l)),requestAnimationFrame(function(){var t=h.map(function(t,e){return g.parent(t)===d&&g.Transition.start(t,s[e],f,"ease")}).concat(g.Transition.start(d,o,f,"ease"));g.Promise.all(t).then(function(){h.forEach(function(t,e){return g.parent(t)===d&&g.css(t,"display",0===s[e].opacity?"none":"")}),v(d)},g.noop).then(u)})})})})}function m(t,e){var i=g.css(t,"zIndex");return!!g.isVisible(t)&&g.assign({display:"",opacity:e?g.css(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===i?g.index(t):i},b(t))}function v(t){g.css(t.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),g.css(t,{height:"",display:"",padding:""})}function b(t){var e=g.offset(t),i=e.height,n=e.width,r=g.position(t),e=r.top,r=r.left,t=g.css(t,["marginTop","marginLeft"]);return{top:e,left:r,height:i,width:n,marginLeft:t.marginLeft,marginTop:t.marginTop,transform:""}}var a,t={mixins:[{connected:function(){g.hasClass(this.$el,this.$name)||g.addClass(this.$el,this.$name)}},{props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate:function(t,e){var i=this;void 0===e&&(e=this.$el);var n=this.animation;return("fade"===n?r:"delayed-fade"===n?function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return r.apply(void 0,t.concat([40]))}:n?s:function(){return t(),g.Promise.resolve()})(t,e,this.duration).then(function(){return i.$update(e,"resize")},g.noop)}}}],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 i=this;["init","start","move","end"].forEach(function(t){var e=i[t];i[t]=function(t){g.assign(i.pos,g.getEventPos(t)),e(t)}})},events:{name:g.pointerDown,passive:!1,handler:"init"},computed:{target:function(){return(this.$el.tBodies||[this.$el])[0]},items:function(){return g.children(this.target)},isEmpty:{get:function(){return g.isEmpty(this.items)},watch:function(t){g.toggleClass(this.target,this.clsEmpty,t)},immediate:!0},handles:{get:function(t,e){t=t.handle;return t?g.$$(t,e):this.items},watch:function(t,e){g.css(e,{touchAction:"",userSelect:""}),g.css(t,{touchAction:g.hasTouch?"none":"",userSelect:"none"})},immediate:!0}},update:{write:function(t){var e,i,n,r,o,s,a;this.drag&&g.parent(this.placeholder)&&(e=(i=this.pos).x,a=i.y,s=(n=this.origin).offsetTop,r=n.offsetLeft,i=this.placeholder,g.css(this.drag,{top:a-s,left:e-r}),(n=this.getSortable(document.elementFromPoint(e,a)))&&((s=n.items).some(g.Transition.inProgress)||(o={x:e,y:a},r=s[g.findIndex(s,function(t){return g.pointInRect(o,t.getBoundingClientRect())})],(!s.length||r&&r!==i)&&(s=this.getSortable(i),!1!==(a=function(t,e,i,n,r,o){if(g.children(t).length){var s=e.getBoundingClientRect();if(!o)return function(t,e){var i=1===g.children(t).length;i&&g.append(t,e);var n=g.children(t),t=n.some(function(t,e){var i=t.getBoundingClientRect();return n.slice(e+1).some(function(t){t=t.getBoundingClientRect();return!h([i.left,i.right],[t.left,t.right])})});i&&g.remove(e);return t}(t,i)||r<s.top+s.height/2?e:e.nextElementSibling;o=i.getBoundingClientRect(),t=h([s.top,s.bottom],[o.top,o.bottom]),i=t?n:r,n=t?"width":"height",r=t?"left":"top",t=t?"right":"bottom",n=o[n]<s[n]?s[n]-o[n]:0;return o[r]<s[r]?!(n&&i<s[r]+n)&&e.nextElementSibling:!(n&&i>s[t]-n)&&e}}(n.target,r,i,e,a,n===s&&t.moved!==r))&&(a&&i===a||(n!==s?(s.remove(i),t.moved=r):delete t.moved,n.insert(i,a),this.touched.add(n)))))))},events:["move"]},methods:{init:function(t){var e=t.target,i=t.button,n=t.defaultPrevented,r=this.items.filter(function(t){return g.within(e,t)})[0];!r||n||0<i||g.isInput(e)||g.within(e,"."+this.clsNoDrag)||this.handle&&!g.within(e,this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=r,this.origin=g.assign({target:e,index:g.index(r)},this.pos),g.on(document,g.pointerMove,this.move),g.on(document,g.pointerUp,this.end),this.threshold||this.start(t))},start:function(t){this.drag=function(t,e){t=g.append(t,e.outerHTML.replace(/(^<)(?:li|tr)|(?:li|tr)(\/>$)/g,"$1div$2"));return g.css(t,"margin","0","important"),g.css(t,g.assign({boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight},g.css(e,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),g.height(t.firstElementChild,g.height(e.firstElementChild)),t}(this.$container,this.placeholder);var e,i,n=this.placeholder.getBoundingClientRect(),r=n.left,n=n.top;g.assign(this.origin,{offsetLeft:this.pos.x-r,offsetTop:this.pos.y-n}),g.addClass(this.drag,this.clsDrag,this.clsCustom),g.addClass(this.placeholder,this.clsPlaceholder),g.addClass(this.items,this.clsItem),g.addClass(document.documentElement,this.clsDragState),g.trigger(this.$el,"start",[this,this.placeholder]),e=this.pos,i=Date.now(),a=setInterval(function(){var t=e.x,s=e.y;s+=window.pageYOffset;var a=.3*(Date.now()-i);i=Date.now(),g.scrollParents(document.elementFromPoint(t,e.y)).reverse().some(function(t){var e=t.scrollTop,i=t.scrollHeight,n=g.offset(g.getViewport(t)),r=n.top,o=n.bottom,n=n.height;if(r<s&&s<r+35)e-=a;else{if(!(s<o&&o-35<s))return;e+=a}if(0<e&&e<i-n)return g.scrollTop(t,e),!0})},15),this.move(t)},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 t,n=this;g.off(document,g.pointerMove,this.move),g.off(document,g.pointerUp,this.end),g.off(window,"scroll",this.scroll),this.drag&&(clearInterval(a),t=this.getSortable(this.placeholder),this===t?this.origin.index!==g.index(this.placeholder)&&g.trigger(this.$el,"moved",[this,this.placeholder]):(g.trigger(t.$el,"added",[t,this.placeholder]),g.trigger(this.$el,"removed",[this,this.placeholder])),g.trigger(this.$el,"stop",[this,this.placeholder]),g.remove(this.drag),this.drag=null,this.touched.forEach(function(t){var e=t.clsPlaceholder,i=t.clsItem;return n.touched.forEach(function(t){return g.removeClass(t.items,e,i)})}),this.touched=null,g.removeClass(document.documentElement,this.clsDragState))},insert:function(t,e){var i=this;g.addClass(this.items,this.clsItem);this.animate(function(){return e?g.before(e,t):g.append(i.target,t)})},remove:function(t){g.within(t,this.target)&&this.animate(function(){return g.remove(t)})},getSortable:function(t){do{var e=this.$getComponent(t,"sortable");if(e&&(e===this||!1!==this.group&&e.group===this.group))return e}while(t=g.parent(t))}}};function h(t,e){return t[1]>e[0]&&e[1]>t[0]}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("sortable",t),t});
|
|
3
|
+
!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(g){"use strict";function e(t){return function(t,e,i){for(var n=[[]],r=0;r<t.length;r++){var o=t[r];if(g.isVisible(o))for(var s=l(o),a=n.length-1;0<=a;a--){var h=n[a];if(!h[0]){h.push(o);break}var c=void 0;if(c=h[0].offsetParent===o.offsetParent?l(h[0]):(s=l(o,!0),l(h[0],!0)),s[e]>=c[i]-1&&s[e]!==c[e]){n.push([o]);break}if(s[i]-1>c[e]||s[e]===c[e]){h.push(o);break}if(0===a){n.unshift([o]);break}}}return n}(t,"top","bottom")}function l(t,e){var i=t.offsetTop,n=t.offsetLeft,r=t.offsetHeight,o=t.offsetWidth;return(e=void 0===e?!1:e)&&(i=(t=g.offsetPosition(t))[0],n=t[1]),{top:i,left:n,bottom:i+r,right:n+o}}var n="uk-transition-leave",d="uk-transition-enter";function r(t,s,a,h){void 0===h&&(h=0);var c=f(s,!0),l={opacity:1},u={opacity:0},e=function(t){return function(){return c===f(s)?t():g.Promise.reject()}},i=e(function(){return g.addClass(s,n),g.Promise.all(p(s).map(function(e,i){return new g.Promise(function(t){return setTimeout(function(){return g.Transition.start(e,u,a/2,"ease").then(t)},i*h)})})).then(function(){return g.removeClass(s,n)})}),e=e(function(){var o=g.height(s);return g.addClass(s,d),t(),g.css(g.children(s),{opacity:0}),new g.Promise(function(r){return requestAnimationFrame(function(){var t=g.children(s),e=g.height(s);g.css(s,"alignContent","flex-start"),g.height(s,o);var i=p(s);g.css(t,u);var n=i.map(function(e,i){return new g.Promise(function(t){return setTimeout(function(){return g.Transition.start(e,l,a/2,"ease").then(t)},i*h)})});o!==e&&n.push(g.Transition.start(s,{height:e},a/2+i.length*h,"ease")),g.Promise.all(n).then(function(){g.removeClass(s,d),c===f(s)&&(g.css(s,{height:"",alignContent:""}),g.css(t,{opacity:""}),delete s.dataset.transition),r()})})})});return(g.hasClass(s,n)?o(s):g.hasClass(s,d)?o(s).then(i):i()).then(e)}function f(t,e){return e&&(t.dataset.transition=1+f(t)),g.toNumber(t.dataset.transition)||0}function o(t){return g.Promise.all(g.children(t).filter(g.Transition.inProgress).map(function(e){return new g.Promise(function(t){return g.once(e,"transitionend transitioncanceled",t)})}))}function p(t){return e(g.children(t)).reduce(function(t,e){return t.concat(g.sortBy(e.filter(function(t){return g.isInView(t)}),"offsetLeft"))},[])}function s(t,d,f){return new g.Promise(function(u){return requestAnimationFrame(function(){var h=g.children(d),c=h.map(function(t){return m(t,!0)}),l=g.css(d,["height","padding"]);g.Transition.cancel(d),h.forEach(g.Transition.cancel),v(d),t(),h=h.concat(g.children(d).filter(function(t){return!g.includes(h,t)})),g.Promise.resolve().then(function(){g.fastdom.flush();var i,n,r,t,e,o=g.css(d,["height","padding"]),e=(i=d,r=c,t=(n=h).map(function(t,e){return!!(g.parent(t)&&e in r)&&(r[e]?g.isVisible(t)?b(t):{opacity:0}:{opacity:g.isVisible(t)?1:0})}),e=t.map(function(t,e){e=g.parent(n[e])===i&&(r[e]||m(n[e]));return!!e&&(t?"opacity"in t||(e.opacity%1?t.opacity=1:delete e.opacity):delete e.opacity,e)}),[t,e]),s=e[0],a=e[1];h.forEach(function(t,e){return a[e]&&g.css(t,a[e])}),g.css(d,g.assign({display:"block"},l)),requestAnimationFrame(function(){var t=h.map(function(t,e){return g.parent(t)===d&&g.Transition.start(t,s[e],f,"ease")}).concat(g.Transition.start(d,o,f,"ease"));g.Promise.all(t).then(function(){h.forEach(function(t,e){return g.parent(t)===d&&g.css(t,"display",0===s[e].opacity?"none":"")}),v(d)},g.noop).then(u)})})})})}function m(t,e){var i=g.css(t,"zIndex");return!!g.isVisible(t)&&g.assign({display:"",opacity:e?g.css(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===i?g.index(t):i},b(t))}function v(t){g.css(t.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),g.css(t,{height:"",display:"",padding:""})}function b(t){var e=g.offset(t),i=e.height,n=e.width,r=g.position(t),e=r.top,r=r.left,t=g.css(t,["marginTop","marginLeft"]);return{top:e,left:r,height:i,width:n,marginLeft:t.marginLeft,marginTop:t.marginTop,transform:""}}var a,t={mixins:[{connected:function(){g.hasClass(this.$el,this.$name)||g.addClass(this.$el,this.$name)}},{props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate:function(t,e){var i=this;void 0===e&&(e=this.$el);var n=this.animation;return("fade"===n?r:"delayed-fade"===n?function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return r.apply(void 0,t.concat([40]))}:n?s:function(){return t(),g.Promise.resolve()})(t,e,this.duration).then(function(){return i.$update(e,"resize")},g.noop)}}}],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 i=this;["init","start","move","end"].forEach(function(t){var e=i[t];i[t]=function(t){g.assign(i.pos,g.getEventPos(t)),e(t)}})},events:{name:g.pointerDown,passive:!1,handler:"init"},computed:{target:function(){return(this.$el.tBodies||[this.$el])[0]},items:function(){return g.children(this.target)},isEmpty:{get:function(){return g.isEmpty(this.items)},watch:function(t){g.toggleClass(this.target,this.clsEmpty,t)},immediate:!0},handles:{get:function(t,e){t=t.handle;return t?g.$$(t,e):this.items},watch:function(t,e){g.css(e,{touchAction:"",userSelect:""}),g.css(t,{touchAction:g.hasTouch?"none":"",userSelect:"none"})},immediate:!0}},update:{write:function(t){var e,i,n,r,o,s,a;this.drag&&g.parent(this.placeholder)&&(e=(i=this.pos).x,a=i.y,s=(n=this.origin).offsetTop,r=n.offsetLeft,i=this.placeholder,g.css(this.drag,{top:a-s,left:e-r}),(n=this.getSortable(document.elementFromPoint(e,a)))&&((s=n.items).some(g.Transition.inProgress)||(o={x:e,y:a},r=s[g.findIndex(s,function(t){return g.pointInRect(o,t.getBoundingClientRect())})],(!s.length||r&&r!==i)&&(s=this.getSortable(i),!1!==(a=function(t,e,i,n,r,o){if(g.children(t).length){var s=e.getBoundingClientRect();if(!o)return function(t,e){var i=1===g.children(t).length;i&&g.append(t,e);var n=g.children(t),t=n.some(function(t,e){var i=t.getBoundingClientRect();return n.slice(e+1).some(function(t){t=t.getBoundingClientRect();return!h([i.left,i.right],[t.left,t.right])})});i&&g.remove(e);return t}(t,i)||r<s.top+s.height/2?e:e.nextElementSibling;o=i.getBoundingClientRect(),t=h([s.top,s.bottom],[o.top,o.bottom]),i=t?n:r,n=t?"width":"height",r=t?"left":"top",t=t?"right":"bottom",n=o[n]<s[n]?s[n]-o[n]:0;return o[r]<s[r]?!(n&&i<s[r]+n)&&e.nextElementSibling:!(n&&i>s[t]-n)&&e}}(n.target,r,i,e,a,n===s&&t.moved!==r))&&(a&&i===a||(n!==s?(s.remove(i),t.moved=r):delete t.moved,n.insert(i,a),this.touched.add(n)))))))},events:["move"]},methods:{init:function(t){var e=t.target,i=t.button,n=t.defaultPrevented,r=this.items.filter(function(t){return g.within(e,t)})[0];!r||n||0<i||g.isInput(e)||g.within(e,"."+this.clsNoDrag)||this.handle&&!g.within(e,this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=r,this.origin=g.assign({target:e,index:g.index(r)},this.pos),g.on(document,g.pointerMove,this.move),g.on(document,g.pointerUp,this.end),this.threshold||this.start(t))},start:function(t){this.drag=function(t,e){t=g.append(t,e.outerHTML.replace(/(^<)(?:li|tr)|(?:li|tr)(\/>$)/g,"$1div$2"));return g.css(t,"margin","0","important"),g.css(t,g.assign({boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight},g.css(e,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),g.height(t.firstElementChild,g.height(e.firstElementChild)),t}(this.$container,this.placeholder);var e,i,n=this.placeholder.getBoundingClientRect(),r=n.left,n=n.top;g.assign(this.origin,{offsetLeft:this.pos.x-r,offsetTop:this.pos.y-n}),g.addClass(this.drag,this.clsDrag,this.clsCustom),g.addClass(this.placeholder,this.clsPlaceholder),g.addClass(this.items,this.clsItem),g.addClass(document.documentElement,this.clsDragState),g.trigger(this.$el,"start",[this,this.placeholder]),e=this.pos,i=Date.now(),a=setInterval(function(){var t=e.x,s=e.y;s+=window.pageYOffset;var a=.3*(Date.now()-i);i=Date.now(),g.scrollParents(document.elementFromPoint(t,e.y)).reverse().some(function(t){var e=t.scrollTop,i=t.scrollHeight,n=g.offset(g.getViewport(t)),r=n.top,o=n.bottom,n=n.height;if(r<s&&s<r+35)e-=a;else{if(!(s<o&&o-35<s))return;e+=a}if(0<e&&e<i-n)return g.scrollTop(t,e),!0})},15),this.move(t)},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 t,n=this;g.off(document,g.pointerMove,this.move),g.off(document,g.pointerUp,this.end),g.off(window,"scroll",this.scroll),this.drag&&(clearInterval(a),t=this.getSortable(this.placeholder),this===t?this.origin.index!==g.index(this.placeholder)&&g.trigger(this.$el,"moved",[this,this.placeholder]):(g.trigger(t.$el,"added",[t,this.placeholder]),g.trigger(this.$el,"removed",[this,this.placeholder])),g.trigger(this.$el,"stop",[this,this.placeholder]),g.remove(this.drag),this.drag=null,this.touched.forEach(function(t){var e=t.clsPlaceholder,i=t.clsItem;return n.touched.forEach(function(t){return g.removeClass(t.items,e,i)})}),this.touched=null,g.removeClass(document.documentElement,this.clsDragState))},insert:function(t,e){var i=this;g.addClass(this.items,this.clsItem);this.animate(function(){return e?g.before(e,t):g.append(i.target,t)})},remove:function(t){g.within(t,this.target)&&this.animate(function(){return g.remove(t)})},getSortable:function(t){do{var e=this.$getComponent(t,"sortable");if(e&&(e===this||!1!==this.group&&e.group===this.group))return e}while(t=g.parent(t))}}};function h(t,e){return t[1]>e[0]&&e[1]>t[0]}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("sortable",t),t});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | 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,3 +1,3 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
|
-
!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(f){"use strict";var t={mixins:[{props:{container:Boolean},data:{container:!0},computed:{container:function(t){t=t.container;return!0===t&&this.$container||t&&f.$(t)}}},{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){t=t.animation;return this.hasAnimation&&!0===t[0]}},methods:{toggleElement:function(i,c,g){var p=this;return new f.Promise(function(t){return f.Promise.all(f.toNodes(i).map(function(t){var i=f.isBoolean(c)?c:!p.isToggled(t);if(!f.trigger(t,"before"+(i?"show":"hide"),[p]))return f.Promise.reject();var s,r,l,a,h,u,d,o=(f.isFunction(g)?g:!1!==g&&p.hasAnimation?p.hasTransition?(r=p.isToggled,l=p.duration,a=p.initProps,h=p.hideProps,u=p.transition,d=p._toggle,function(t,i){var o=f.Transition.inProgress(t),n=t.hasChildNodes?f.toFloat(f.css(t.firstElementChild,"marginTop"))+f.toFloat(f.css(t.lastElementChild,"marginBottom")):0,e=f.isVisible(t)?f.height(t)+(o?0:n):0;f.Transition.cancel(t),r(t)||d(t,!0),f.height(t,""),f.fastdom.flush();n=f.height(t)+(o?0:n);return f.height(t,e),(i?f.Transition.start(t,f.assign({},a,{overflow:"hidden",height:n}),Math.round(l*(1-e/n)),u):f.Transition.start(t,h,Math.round(l*(e/n)),u).then(function(){return d(t,!1)})).then(function(){return f.css(t,a)})}):(s=p,function(t,i){f.Animation.cancel(t);var o=s.animation,n=s.duration,e=s._toggle;return i?(e(t,!0),f.Animation.in(t,o[0],n,s.origin)):f.Animation.out(t,o[1]||o[0],n,s.origin).then(function(){return e(t,!1)})}):p._toggle)(t,i),n=i?p.clsEnter:p.clsLeave;f.addClass(t,n),f.trigger(t,i?"show":"hide",[p]);function e(){f.removeClass(t,n),f.trigger(t,i?"shown":"hidden",[p]),p.$update(t)}return o?o.then(e,function(){return f.removeClass(t,n),f.Promise.reject()}):e()})).then(t,f.noop)})},isToggled:function(t){return void 0===t&&(t=this.$el),t=f.toNodes(t)[0],!!f.hasClass(t,this.clsEnter)||!f.hasClass(t,this.clsLeave)&&(this.cls?f.hasClass(t,this.cls.split(" ")[0]):f.isVisible(t))},_toggle:function(t,i){var o;t&&(i=Boolean(i),this.cls?(o=f.includes(this.cls," ")||i!==f.hasClass(t,this.cls))&&f.toggleClass(t,this.cls,f.includes(this.cls," ")?void 0:i):(o=i===t.hidden)&&(t.hidden=!i),f.$$("[autofocus]",t).some(function(t){return f.isVisible(t)?t.focus()||!0:t.blur()}),o&&(f.trigger(t,"toggled",[i,this]),this.$update(t)))}}},{props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(f.isRtl?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){t=t.pos;return(t+(f.includes(t,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,i,o){f.removeClasses(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");var n,e=this.offset,s=this.getAxis();f.isNumeric(e)||(e=(n=f.$(e))?f.offset(n)["x"===s?"left":"top"]-f.offset(i)["x"===s?"right":"bottom"]:0);e=f.positionAt(t,i,"x"===s?f.flipPosition(this.dir)+" "+this.align:this.align+" "+f.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,o).target,o=e.x,e=e.y;this.dir="x"===s?o:e,this.align="x"===s?e:o,f.toggleClass(t,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 t;this._hasTitle=f.hasAttr(this.$el,"title"),f.attr(this.$el,"title",""),this.updateAria(!1),t=this.$el,f.isFocusable(t)||f.attr(t,"tabindex","0")},disconnected:function(){this.hide(),f.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show:function(){var i=this;!this.isToggled(this.tooltip||null)&&this.title&&(this._unbind=f.once(document,"show keydown "+f.pointerDown,this.hide,!1,function(t){return t.type===f.pointerDown&&!f.within(t.target,i.$el)||"keydown"===t.type&&27===t.keyCode||"show"===t.type&&t.detail[0]!==i&&t.detail[0].$name===i.$name}),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},hide:function(){var t=this;f.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&this.toggleElement(this.tooltip,!1,!1).then(function(){t.tooltip=f.remove(t.tooltip),t._unbind()}))},_show:function(){var o=this;this.tooltip=f.append(this.container,'<div class="'+this.clsPos+'"> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),f.on(this.tooltip,"toggled",function(t,i){o.updateAria(i),i&&(o.positionAt(o.tooltip,o.$el),o.origin="y"===o.getAxis()?f.flipPosition(o.dir)+"-"+o.align:o.align+"-"+f.flipPosition(o.dir))}),this.toggleElement(this.tooltip,!0)},updateAria:function(t){f.attr(this.$el,"aria-expanded",t)}},events:((t={focus:"show",blur:"hide"})[f.pointerEnter+" "+f.pointerLeave]=function(t){f.isTouch(t)||this[t.type===f.pointerEnter?"show":"hide"]()},t[f.pointerDown]=function(t){f.isTouch(t)&&this.show()},t)};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("tooltip",t),t});
|
|
3
|
+
!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(f){"use strict";var t={mixins:[{props:{container:Boolean},data:{container:!0},computed:{container:function(t){t=t.container;return!0===t&&this.$container||t&&f.$(t)}}},{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){t=t.animation;return this.hasAnimation&&!0===t[0]}},methods:{toggleElement:function(i,c,g){var p=this;return new f.Promise(function(t){return f.Promise.all(f.toNodes(i).map(function(t){var i=f.isBoolean(c)?c:!p.isToggled(t);if(!f.trigger(t,"before"+(i?"show":"hide"),[p]))return f.Promise.reject();var s,r,l,a,h,u,d,o=(f.isFunction(g)?g:!1!==g&&p.hasAnimation?p.hasTransition?(r=p.isToggled,l=p.duration,a=p.initProps,h=p.hideProps,u=p.transition,d=p._toggle,function(t,i){var o=f.Transition.inProgress(t),n=t.hasChildNodes?f.toFloat(f.css(t.firstElementChild,"marginTop"))+f.toFloat(f.css(t.lastElementChild,"marginBottom")):0,e=f.isVisible(t)?f.height(t)+(o?0:n):0;f.Transition.cancel(t),r(t)||d(t,!0),f.height(t,""),f.fastdom.flush();n=f.height(t)+(o?0:n);return f.height(t,e),(i?f.Transition.start(t,f.assign({},a,{overflow:"hidden",height:n}),Math.round(l*(1-e/n)),u):f.Transition.start(t,h,Math.round(l*(e/n)),u).then(function(){return d(t,!1)})).then(function(){return f.css(t,a)})}):(s=p,function(t,i){f.Animation.cancel(t);var o=s.animation,n=s.duration,e=s._toggle;return i?(e(t,!0),f.Animation.in(t,o[0],n,s.origin)):f.Animation.out(t,o[1]||o[0],n,s.origin).then(function(){return e(t,!1)})}):p._toggle)(t,i),n=i?p.clsEnter:p.clsLeave;f.addClass(t,n),f.trigger(t,i?"show":"hide",[p]);function e(){f.removeClass(t,n),f.trigger(t,i?"shown":"hidden",[p]),p.$update(t)}return o?o.then(e,function(){return f.removeClass(t,n),f.Promise.reject()}):e()})).then(t,f.noop)})},isToggled:function(t){return void 0===t&&(t=this.$el),t=f.toNodes(t)[0],!!f.hasClass(t,this.clsEnter)||!f.hasClass(t,this.clsLeave)&&(this.cls?f.hasClass(t,this.cls.split(" ")[0]):f.isVisible(t))},_toggle:function(t,i){var o;t&&(i=Boolean(i),this.cls?(o=f.includes(this.cls," ")||i!==f.hasClass(t,this.cls))&&f.toggleClass(t,this.cls,f.includes(this.cls," ")?void 0:i):(o=i===t.hidden)&&(t.hidden=!i),f.$$("[autofocus]",t).some(function(t){return f.isVisible(t)?t.focus()||!0:t.blur()}),o&&(f.trigger(t,"toggled",[i,this]),this.$update(t)))}}},{props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(f.isRtl?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){t=t.pos;return(t+(f.includes(t,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,i,o){f.removeClasses(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");var n,e=this.offset,s=this.getAxis();f.isNumeric(e)||(e=(n=f.$(e))?f.offset(n)["x"===s?"left":"top"]-f.offset(i)["x"===s?"right":"bottom"]:0);e=f.positionAt(t,i,"x"===s?f.flipPosition(this.dir)+" "+this.align:this.align+" "+f.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,o).target,o=e.x,e=e.y;this.dir="x"===s?o:e,this.align="x"===s?e:o,f.toggleClass(t,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 t;this._hasTitle=f.hasAttr(this.$el,"title"),f.attr(this.$el,"title",""),this.updateAria(!1),t=this.$el,f.isFocusable(t)||f.attr(t,"tabindex","0")},disconnected:function(){this.hide(),f.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show:function(){var i=this;!this.isToggled(this.tooltip||null)&&this.title&&(this._unbind=f.once(document,"show keydown "+f.pointerDown,this.hide,!1,function(t){return t.type===f.pointerDown&&!f.within(t.target,i.$el)||"keydown"===t.type&&27===t.keyCode||"show"===t.type&&t.detail[0]!==i&&t.detail[0].$name===i.$name}),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},hide:function(){var t=this;f.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&this.toggleElement(this.tooltip,!1,!1).then(function(){t.tooltip=f.remove(t.tooltip),t._unbind()}))},_show:function(){var o=this;this.tooltip=f.append(this.container,'<div class="'+this.clsPos+'"> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),f.on(this.tooltip,"toggled",function(t,i){o.updateAria(i),i&&(o.positionAt(o.tooltip,o.$el),o.origin="y"===o.getAxis()?f.flipPosition(o.dir)+"-"+o.align:o.align+"-"+f.flipPosition(o.dir))}),this.toggleElement(this.tooltip,!0)},updateAria:function(t){f.attr(this.$el,"aria-expanded",t)}},events:((t={focus:"show",blur:"hide"})[f.pointerEnter+" "+f.pointerLeave]=function(t){f.isTouch(t)||this[t.type===f.pointerEnter?"show":"hide"]()},t[f.pointerDown]=function(t){f.isTouch(t)&&this.show()},t)};return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("tooltip",t),t});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | 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,3 +1,3 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
|
-
!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(a){"use strict";var e={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:a.noop,beforeAll:a.noop,beforeSend:a.noop,complete:a.noop,completeAll:a.noop,error:a.noop,fail:a.noop,load:a.noop,loadEnd:a.noop,loadStart:a.noop,progress:a.noop},events:{change:function(e){a.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop:function(e){t(e);e=e.dataTransfer;e&&e.files&&(a.removeClass(this.$el,this.clsDragover),this.upload(e.files))},dragenter:function(e){t(e)},dragover:function(e){t(e),a.addClass(this.$el,this.clsDragover)},dragleave:function(e){t(e),a.removeClass(this.$el,this.clsDragover)}},methods:{upload:function(e){var o=this;if(e.length){a.trigger(this.$el,"upload",[e]);for(var t=0;t<e.length;t++){if(this.maxSize&&1e3*this.maxSize<e[t].size)return void this.fail(this.msgInvalidSize.replace("%s",this.maxSize));if(this.allow&&!i(this.allow,e[t].name))return void this.fail(this.msgInvalidName.replace("%s",this.allow));if(this.mime&&!i(this.mime,e[t].type))return void this.fail(this.msgInvalidMime.replace("%s",this.mime))}this.multiple||(e=[e[0]]),this.beforeAll(this,e);var n=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}(e,this.concurrent),r=function(e){var t,i=new FormData;for(t in e.forEach(function(e){return i.append(o.name,e)}),o.params)i.append(t,o.params[t]);a.ajax(o.url,{data:i,method:o.method,responseType:o.type,beforeSend:function(e){var t=e.xhr;return t.upload&&a.on(t.upload,"progress",o.progress),["loadStart","load","loadEnd","abort"].forEach(function(e){return a.on(t,e.toLowerCase(),o[e])}),o.beforeSend(e)}}).then(function(e){o.complete(e),n.length?r(n.shift()):o.completeAll(e)},function(e){return o.error(e)})};r(n.shift())}}}};function i(e,t){return t.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function t(e){e.preventDefault(),e.stopPropagation()}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("upload",e),e});
|
|
3
|
+
!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(a){"use strict";var e={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:a.noop,beforeAll:a.noop,beforeSend:a.noop,complete:a.noop,completeAll:a.noop,error:a.noop,fail:a.noop,load:a.noop,loadEnd:a.noop,loadStart:a.noop,progress:a.noop},events:{change:function(e){a.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop:function(e){t(e);e=e.dataTransfer;e&&e.files&&(a.removeClass(this.$el,this.clsDragover),this.upload(e.files))},dragenter:function(e){t(e)},dragover:function(e){t(e),a.addClass(this.$el,this.clsDragover)},dragleave:function(e){t(e),a.removeClass(this.$el,this.clsDragover)}},methods:{upload:function(e){var o=this;if(e.length){a.trigger(this.$el,"upload",[e]);for(var t=0;t<e.length;t++){if(this.maxSize&&1e3*this.maxSize<e[t].size)return void this.fail(this.msgInvalidSize.replace("%s",this.maxSize));if(this.allow&&!i(this.allow,e[t].name))return void this.fail(this.msgInvalidName.replace("%s",this.allow));if(this.mime&&!i(this.mime,e[t].type))return void this.fail(this.msgInvalidMime.replace("%s",this.mime))}this.multiple||(e=[e[0]]),this.beforeAll(this,e);var n=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}(e,this.concurrent),r=function(e){var t,i=new FormData;for(t in e.forEach(function(e){return i.append(o.name,e)}),o.params)i.append(t,o.params[t]);a.ajax(o.url,{data:i,method:o.method,responseType:o.type,beforeSend:function(e){var t=e.xhr;return t.upload&&a.on(t.upload,"progress",o.progress),["loadStart","load","loadEnd","abort"].forEach(function(e){return a.on(t,e.toLowerCase(),o[e])}),o.beforeSend(e)}}).then(function(e){o.complete(e),n.length?r(n.shift()):o.completeAll(e)},function(e){return o.error(e)})};r(n.shift())}}}};function i(e,t){return t.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function t(e){e.preventDefault(),e.stopPropagation()}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("upload",e),e});
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.2-dev.de0c5f523 | 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() :
|
|
@@ -1419,21 +1419,23 @@
|
|
|
1419
1419
|
var parseCssVar = memoize(function (name) {
|
|
1420
1420
|
/* usage in css: .uk-name:before { content:"xyz" } */
|
|
1421
1421
|
|
|
1422
|
-
var element = append(document.documentElement,
|
|
1422
|
+
var element = append(document.documentElement, fragment('<div>'));
|
|
1423
1423
|
|
|
1424
1424
|
addClass(element, ("uk-" + name));
|
|
1425
1425
|
|
|
1426
|
-
|
|
1426
|
+
var value = getStyle(element, 'content', ':before');
|
|
1427
1427
|
|
|
1428
1428
|
remove$1(element);
|
|
1429
1429
|
|
|
1430
|
-
return
|
|
1430
|
+
return value;
|
|
1431
1431
|
});
|
|
1432
1432
|
|
|
1433
|
+
var propertyRe = /^\s*(["'])?(.*?)\1\s*$/;
|
|
1433
1434
|
function getCssVar(name) {
|
|
1434
|
-
return
|
|
1435
|
-
?
|
|
1436
|
-
:
|
|
1435
|
+
return (isIE
|
|
1436
|
+
? parseCssVar(name)
|
|
1437
|
+
: getStyles(document.documentElement).getPropertyValue(("--uk-" + name))
|
|
1438
|
+
).replace(propertyRe, '$2');
|
|
1437
1439
|
}
|
|
1438
1440
|
|
|
1439
1441
|
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty
|
|
@@ -3460,7 +3462,7 @@
|
|
|
3460
3462
|
UIkit.data = '__uikit__';
|
|
3461
3463
|
UIkit.prefix = 'uk-';
|
|
3462
3464
|
UIkit.options = {};
|
|
3463
|
-
UIkit.version = '3.9.
|
|
3465
|
+
UIkit.version = '3.9.2-dev.de0c5f523';
|
|
3464
3466
|
|
|
3465
3467
|
globalAPI(UIkit);
|
|
3466
3468
|
hooksAPI(UIkit);
|