uikit 3.16.11-dev.85cdca725 → 3.16.11-dev.cc1aeb568
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/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 +7 -491
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +7 -491
- 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 +155 -161
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +155 -161
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/computed.js +47 -6
- package/src/js/api/hooks.js +9 -8
- package/src/js/api/observer.js +14 -32
- package/src/js/api/update.js +6 -1
- package/src/js/api/watch.js +6 -22
- package/src/js/core/drop.js +1 -1
- package/src/js/core/dropnav.js +23 -35
- package/src/js/core/img.js +6 -5
- package/src/js/core/navbar.js +17 -21
- package/src/js/core/scrollspy.js +6 -5
- package/src/js/core/switcher.js +5 -9
- package/src/js/core/toggle.js +3 -7
- package/src/js/{util → mixin/internal}/scroll.js +1 -5
- package/src/js/mixin/modal.js +1 -1
- package/tests/drop.html +0 -1
- package/tests/dropnav.html +1 -1
- package/tests/icon.html +0 -2
- package/tests/modal.html +0 -1
- package/tests/nav.html +0 -1
- package/tests/navbar.html +0 -1
- package/tests/progress.html +0 -1
- package/tests/scroll.html +0 -1
- package/tests/sticky-navbar.html +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.11-dev.
|
|
1
|
+
/*! UIkit 3.16.11-dev.cc1aeb568 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=g(e.UIkit.util))})(this,function(e){"use strict";function g(n){return y(e.observeResize,n,"resize")}function N(n){return y(e.observeMutation,n)}function y(n,s,o){return{observe:n,handler(){this.$emit(o)},...s}}N({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),g({target:({$el:n})=>[n,...e.toArray(n.children)]});function C(n){return T(n,"top","bottom")}function z(n){const s=[];for(const o of n){const t=T(o,"left","right");for(let a=0;a<t.length;a++)s[a]=s[a]?s[a].concat(t[a]):t[a]}return e.isRtl?s.reverse():s}function T(n,s,o){const t=[[]];for(const a of n){if(!e.isVisible(a))continue;let c=u(a);for(let r=t.length-1;r>=0;r--){const h=t[r];if(!h[0]){h.push(a);break}let d;if(h[0].offsetParent===a.offsetParent?d=u(h[0]):(c=u(a,!0),d=u(h[0],!0)),c[s]>=d[o]-1&&c[s]!==d[s]){t.push([a]);break}if(c[o]-1>d[s]||c[s]===d[s]){h.push(a);break}if(r===0){t.unshift([a]);break}}}return t}function u(n,s=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:c}=n;return s&&([o,t]=e.offsetPosition(n)),{top:o,left:t,bottom:o+a,right:t+c}}const v="uk-transition-leave",w="uk-transition-enter";function P(n,s,o,t=0){const a=b(s,!0),c={opacity:1},r={opacity:0},h=p=>()=>a===b(s)?p():Promise.reject(),d=h(async()=>{e.addClass(s,v),await Promise.all(x(s).map((p,l)=>new Promise(f=>setTimeout(()=>e.Transition.start(p,r,o/2,"ease").then(f),l*t)))),e.removeClass(s,v)}),i=h(async()=>{const p=e.height(s);e.addClass(s,w),n(),e.css(e.children(s),{opacity:0}),await A();const l=e.children(s),f=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,p);const m=x(s);e.css(l,r);const R=m.map(async(X,Y)=>{await H(Y*t),await e.Transition.start(X,c,o/2,"ease")});p!==f&&R.push(e.Transition.start(s,{height:f},o/2+m.length*t,"ease")),await Promise.all(R).then(()=>{e.removeClass(s,w),a===b(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,v)?S(s).then(i):e.hasClass(s,w)?S(s).then(d).then(i):d().then(i)}function b(n,s){return s&&(n.dataset.transition=1+b(n)),e.toNumber(n.dataset.transition)||0}function S(n){return Promise.all(e.children(n).filter(e.Transition.inProgress).map(s=>new Promise(o=>e.once(s,"transitionend transitioncanceled",o))))}function x(n){return C(e.children(n)).reduce((s,o)=>s.concat(e.sortBy(o.filter(t=>e.isInView(t)),"offsetLeft")),[])}function A(){return new Promise(n=>requestAnimationFrame(n))}function H(n){return new Promise(s=>setTimeout(s,n))}async function L(n,s,o){await D();let t=e.children(s);const a=t.map(f=>I(f,!0)),c={...e.css(s,["height","padding"]),display:"block"};await Promise.all(t.concat(s).map(e.Transition.cancel)),n(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.fastdom.flush();const r=e.attr(s,"style"),h=e.css(s,["height","padding"]),[d,i]=M(s,t,a),p=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,m)=>i[m]&&e.css(f,i[m])),e.css(s,c),e.trigger(s,"scroll"),e.fastdom.flush(),await D();const l=t.map((f,m)=>e.parent(f)===s&&e.Transition.start(f,d[m],o,"ease")).concat(e.Transition.start(s,h,o,"ease"));try{await Promise.all(l),t.forEach((f,m)=>{e.attr(f,p[m]),e.parent(f)===s&&e.css(f,"display",d[m].opacity===0?"none":"")}),e.attr(s,"style",r)}catch{e.attr(t,"style",""),V(s,c)}}function I(n,s){const o=e.css(n,"zIndex");return e.isVisible(n)?{display:"",opacity:s?e.css(n,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?e.index(n):o,...$(n)}:!1}function M(n,s,o){const t=s.map((c,r)=>e.parent(c)&&r in o?o[r]?e.isVisible(c)?$(c):{opacity:0}:{opacity:e.isVisible(c)?1:0}:!1),a=t.map((c,r)=>{const h=e.parent(s[r])===n&&(o[r]||I(s[r]));if(!h)return!1;if(!c)delete h.opacity;else if(!("opacity"in c)){const{opacity:d}=h;d%1?c.opacity=1:delete h.opacity}return h});return[t,a]}function V(n,s){for(const o in s)e.css(n,o,"")}function $(n){const{height:s,width:o}=e.offset(n);return{height:s,width:o,transform:"",...e.position(n),...e.css(n,["marginTop","marginLeft"])}}function D(){return new Promise(n=>requestAnimationFrame(n))}var j={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(n,s=this.$el){const o=this.animation;return(o==="fade"?P:o==="delayed-fade"?(...a)=>P(...a,40):o?L:()=>(n(),Promise.resolve()))(n,s,this.duration).catch(e.noop)}}},q={connected(){e.addClass(this.$el,this.$options.id)}},E={mixins:[q,j],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const n of["init","start","move","end"]){const s=this[n];this[n]=o=>{e.assign(this.pos,e.getEventPos(o)),s(o)}}},events:{name:e.pointerDown,passive:!1,handler:"init"},computed:{target(){return(this.$el.tBodies||[this.$el])[0]},items(){return e.children(this.target)},isEmpty(){return e.isEmpty(this.items)},handles({handle:n},s){return n?e.$$(n,s):this.items}},watch:{isEmpty(n){e.toggleClass(this.target,this.clsEmpty,n)},handles(n,s){e.css(s,{touchAction:"",userSelect:""}),e.css(n,{touchAction:e.hasTouch?"none":"",userSelect:"none"})}},update:{write(n){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:o},origin:{offsetTop:t,offsetLeft:a},placeholder:c}=this;e.css(this.drag,{top:o-t,left:s-a});const r=this.getSortable(document.elementFromPoint(s,o));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=J(h,{x:s,y:o});if(h.length&&(!d||d===c))return;const i=this.getSortable(c),p=K(r.target,d,c,s,o,r===i&&n.moved!==d);p!==!1&&(p&&c===p||(r!==i?(i.remove(c),n.moved=d):delete n.moved,r.insert(c,p),this.touched.add(r)))},events:["move"]},methods:{init(n){const{target:s,button:o,defaultPrevented:t}=n,[a]=this.items.filter(c=>e.within(s,c));!a||t||o>0||e.isInput(s)||e.within(s,`.${this.clsNoDrag}`)||this.handle&&!e.within(s,this.handle)||(n.preventDefault(),this.touched=new Set([this]),this.placeholder=a,this.origin={target:s,index:e.index(a),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(n))},start(n){this.drag=G(this.$container,this.placeholder);const{left:s,top:o}=this.placeholder.getBoundingClientRect();e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-o}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),W(this.pos),this.move(n)},move(n){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(n)},end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;O();const n=this.getSortable(this.placeholder);this===n?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(n.$el,"added",[n,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:o}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,o);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(n,s){e.addClass(this.items,this.clsItem);const o=()=>s?e.before(s,n):e.append(this.target,n);this.animate(o)},remove(n){e.within(n,this.target)&&this.animate(()=>e.remove(n))},getSortable(n){do{const s=this.$getComponent(n,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(n=e.parent(n))}}};let F;function W(n){let s=Date.now();F=setInterval(()=>{let{x:o,y:t}=n;t+=document.scrollingElement.scrollTop;const a=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(o,n.y)).reverse().some(c=>{let{scrollTop:r,scrollHeight:h}=c;const{top:d,bottom:i,height:p}=e.offsetViewport(c);if(d<t&&d+35>t)r-=a;else if(i>t&&i-35<t)r+=a;else return;if(r>0&&r<h-p)return c.scrollTop=r,!0})},15)}function O(){clearInterval(F)}function G(n,s){let o;if(e.isTag(s,"li","tr")){o=e.$("<div>"),e.append(o,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(o,t,s.getAttribute(t))}else o=s.cloneNode(!0);return e.append(n,o),e.css(o,"margin","0","important"),e.css(o,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(o.firstElementChild,e.height(s.firstElementChild)),o}function J(n,s){return n[e.findIndex(n,o=>e.pointInRect(s,o.getBoundingClientRect()))]}function K(n,s,o,t,a,c){if(!e.children(n).length)return;const r=s.getBoundingClientRect();if(!c)return Q(n,o)||a<r.top+r.height/2?s:s.nextElementSibling;const h=o.getBoundingClientRect(),d=B([r.top,r.bottom],[h.top,h.bottom]),[i,p,l,f]=d?[t,"width","left","right"]:[a,"height","top","bottom"],m=h[p]<r[p]?r[p]-h[p]:0;return h[l]<r[l]?m&&i<r[l]+m?!1:s.nextElementSibling:m&&i>r[f]-m?!1:s}function Q(n,s){const o=e.children(n).length===1;o&&e.append(n,s);const t=e.children(n),a=t.some((c,r)=>{const h=c.getBoundingClientRect();return t.slice(r+1).some(d=>{const i=d.getBoundingClientRect();return!B([h.left,h.right],[i.left,i.right])})});return o&&e.remove(s),a}function B(n,s){return n[1]>s[0]&&s[1]>n[0]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",E),E});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.11-dev.
|
|
1
|
+
/*! UIkit 3.16.11-dev.cc1aeb568 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.11-dev.
|
|
1
|
+
/*! UIkit 3.16.11-dev.cc1aeb568 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],p):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitTooltip=p(t.UIkit.util))})(this,function(t){"use strict";var p={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},S={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:s}){return!!s[0]},hasTransition({animation:s}){return["slide","reveal"].some(i=>t.startsWith(s[0],i))}},methods:{toggleElement(s,i,o){return new Promise(e=>Promise.all(t.toNodes(s).map(n=>{const r=t.isBoolean(i)?i:!this.isToggled(n);if(!t.trigger(n,`before${r?"show":"hide"}`,[this]))return Promise.reject();const h=(t.isFunction(o)?o:o===!1||!this.hasAnimation?O:this.hasTransition?B:I)(n,r,this),a=r?this.clsEnter:this.clsLeave;t.addClass(n,a),t.trigger(n,r?"show":"hide",[this]);const c=()=>{t.removeClass(n,a),t.trigger(n,r?"shown":"hidden",[this])};return h?h.then(c,()=>(t.removeClass(n,a),Promise.reject())):c()})).then(e,t.noop))},isToggled(s=this.$el){return[s]=t.toNodes(s),t.hasClass(s,this.clsEnter)?!0:t.hasClass(s,this.clsLeave)?!1:this.cls?t.hasClass(s,this.cls.split(" ")[0]):t.isVisible(s)},_toggle(s,i){if(!s)return;i=!!i;let o;this.cls?(o=t.includes(this.cls," ")||i!==t.hasClass(s,this.cls),o&&t.toggleClass(s,this.cls,t.includes(this.cls," ")?void 0:i)):(o=i===s.hidden,o&&(s.hidden=!i)),t.$$("[autofocus]",s).some(e=>t.isVisible(e)?e.focus()||!0:e.blur()),o&&t.trigger(s,"toggled",[i,this])}}};function O(s,i,{_toggle:o}){return t.Animation.cancel(s),t.Transition.cancel(s),o(s,i)}async function B(s,i,{animation:o,duration:e,velocity:n,transition:r,_toggle:h}){var a;const[c="reveal",v="top"]=((a=o[0])==null?void 0:a.split("-"))||[],b=[["left","right"],["top","bottom"]],T=b[t.includes(b[0],v)?0:1],u=T[1]===v,m=["width","height"][b.indexOf(T)],d=`margin-${T[0]}`,w=`margin-${v}`;let g=t.dimensions(s)[m];const U=t.Transition.inProgress(s);await t.Transition.cancel(s),i&&h(s,!0);const j=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",d,w].map(A=>[A,s.style[A]])),l=t.dimensions(s),P=t.toFloat(t.css(s,d)),E=t.toFloat(t.css(s,w)),f=l[m]+E;!U&&!i&&(g+=E);const[$]=t.wrapInner(s,"<div>");t.css($,{boxSizing:"border-box",height:l.height,width:l.width,...t.css(s,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",w])}),t.css(s,{padding:0,border:0,minWidth:0,minHeight:0,[w]:0,width:l.width,height:l.height,overflow:"hidden",[m]:g});const x=g/f;e=(n*f+e)*(i?1-x:x);const C={[m]:i?f:0};u&&(t.css(s,d,f-g+P),C[d]=i?P:f+P),!u^c==="reveal"&&(t.css($,d,-f+g),t.Transition.start($,{[d]:i?0:-f},e,r));try{await t.Transition.start(s,C,e,r)}finally{t.css(s,j),t.unwrap($.firstChild),i||h(s,!1)}}function I(s,i,o){t.Animation.cancel(s);const{animation:e,duration:n,_toggle:r}=o;return i?(r(s,!0),t.Animation.in(s,e[0],n,o.origin)):t.Animation.out(s,e[1]||e[0],n,o.origin).then(()=>r(s,!1))}var D={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${t.isRtl?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=t.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(s,i,o){let e=[this.getPositionOffset(s),this.getShiftOffset(s)];const n=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:t.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const c in r)r[c].reverse();e.reverse(),n.reverse()}const h=N(s),a=t.dimensions(s);t.css(s,{top:-a.height,left:-a.width}),t.positionAt(s,i,{attach:r,offset:e,boundary:o,placement:n,viewportOffset:this.getViewportOffset(s)}),h()},getPositionOffset(s){return t.toPx(this.offset===!1?t.css(s,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",s)*(t.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(s){return this.align==="center"?0:t.toPx(t.css(s,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",s)*(t.includes(["left","top"],this.align)?1:-1)},getViewportOffset(s){return t.toPx(t.css(s,"--uk-position-viewport-offset"))}}};function N(s){const[i]=t.scrollParents(s),{scrollTop:o}=i;return()=>{o!==i.scrollTop&&(i.scrollTop=o)}}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function y(s,i=s.$el,o=""){if(i.id)return i.id;let e=`${s.$options.id}-${s._uid}${o}`;return t.$(`#${e}`)&&(e=y(s,i,`${o}-2`)),e}var k={mixins:[p,S,D],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},beforeConnect(){this.id=y(this),this._hasTitle=t.hasAttr(this.$el,"title"),t.attr(this.$el,{title:"","aria-describedby":this.id}),F(this.$el)},disconnected(){this.hide(),t.attr(this.$el,"title")||t.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&(await this.toggleElement(this.tooltip,!1,!1),t.remove(this.tooltip),this.tooltip=null))},_show(){this.tooltip=t.append(this.container,`<div id="${this.id}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${this.title}</div> </div>`),t.on(this.tooltip,"toggled",(s,i)=>{if(!i)return;const o=()=>this.positionAt(this.tooltip,this.$el);o();const[e,n]=L(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${t.flipPosition(e)}-${n}`:`${n}-${t.flipPosition(e)}`;const r=[t.once(document,`keydown ${t.pointerDown}`,this.hide,!1,h=>h.type===t.pointerDown&&!t.within(h.target,this.$el)||h.type==="keydown"&&h.keyCode===_.ESC),t.on([document,...t.overflowParents(this.$el)],"scroll",o,{passive:!0})];t.once(this.tooltip,"hide",()=>r.forEach(h=>h()),{self:!0})}),this.toggleElement(this.tooltip,!0)}},events:{focus:"show",blur:"hide",[`${t.pointerEnter} ${t.pointerLeave}`](s){t.isTouch(s)||this[s.type===t.pointerEnter?"show":"hide"]()},[t.pointerDown](s){t.isTouch(s)&&this.show()}}};function F(s){t.isFocusable(s)||t.attr(s,"tabindex","0")}function L(s,i,[o,e]){const n=t.offset(s),r=t.offset(i),h=[["left","right"],["top","bottom"]];for(const c of h){if(n[c[0]]>=r[c[1]]){o=c[1];break}if(n[c[1]]<=r[c[0]]){o=c[0];break}}const a=t.includes(h[0],o)?h[1]:h[0];return n[a[0]]===r[a[0]]?e=a[0]:n[a[1]]===r[a[1]]?e=a[1]:e="center",[o,e]}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",k),k});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.11-dev.
|
|
1
|
+
/*! UIkit 3.16.11-dev.cc1aeb568 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.11-dev.
|
|
1
|
+
/*! UIkit 3.16.11-dev.cc1aeb568 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(o,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],i):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=i(o.UIkit.util))})(this,function(o){"use strict";var i={props:{i18n:Object},data:{i18n:null},methods:{t(e,...r){var a,s,t;let n=0;return((t=((a=this.i18n)==null?void 0:a[e])||((s=this.$options.i18n)==null?void 0:s[e]))==null?void 0:t.replace(/%s/g,()=>r[n++]||""))||""}}},d={mixins:[i],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:o.noop,beforeAll:o.noop,beforeSend:o.noop,complete:o.noop,completeAll:o.noop,error:o.noop,fail:o.noop,load:o.noop,loadEnd:o.noop,loadStart:o.noop,progress:o.noop},events:{change(e){o.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){l(e);const r=e.dataTransfer;r!=null&&r.files&&(o.removeClass(this.$el,this.clsDragover),this.upload(r.files))},dragenter(e){l(e)},dragover(e){l(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){l(e),o.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(e=o.toArray(e),!e.length)return;o.trigger(this.$el,"upload",[e]);for(const s of e){if(this.maxSize&&this.maxSize*1e3<s.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!h(this.allow,s.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!h(this.mime,s.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const r=f(e,this.concurrent),a=async s=>{const t=new FormData;s.forEach(n=>t.append(this.name,n));for(const n in this.params)t.append(n,this.params[n]);try{const n=await u(this.url,{data:t,method:this.method,responseType:this.type,beforeSend:p=>{const{xhr:m}=p;o.on(m.upload,"progress",this.progress);for(const c of["loadStart","load","loadEnd","abort"])o.on(m,c.toLowerCase(),this[c]);return this.beforeSend(p)}});this.complete(n),r.length?await a(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await a(r.shift())}}};function h(e,r){return r.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function f(e,r){const a=[];for(let s=0;s<e.length;s+=r)a.push(e.slice(s,s+r));return a}function l(e){e.preventDefault(),e.stopPropagation()}function u(e,r){const a={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return Promise.resolve().then(()=>a.beforeSend(a)).then(()=>g(e,a))}function g(e,r){return new Promise((a,s)=>{const{xhr:t}=r;for(const n in r)if(n in t)try{t[n]=r[n]}catch{}t.open(r.method.toUpperCase(),e);for(const n in r.headers)t.setRequestHeader(n,r.headers[n]);o.on(t,"load",()=>{t.status===0||t.status>=200&&t.status<300||t.status===304?a(t):s(o.assign(Error(t.statusText),{xhr:t,status:t.status}))}),o.on(t,"error",()=>s(o.assign(Error("Network Error"),{xhr:t}))),o.on(t,"timeout",()=>s(o.assign(Error("Network Timeout"),{xhr:t}))),t.send(r.data)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",d),d});
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.11-dev.
|
|
1
|
+
/*! UIkit 3.16.11-dev.cc1aeb568 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1666,51 +1666,45 @@
|
|
|
1666
1666
|
wrapInner: wrapInner
|
|
1667
1667
|
});
|
|
1668
1668
|
|
|
1669
|
-
function
|
|
1670
|
-
|
|
1671
|
-
instance.
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
registerComputed(instance, key, computed[key]);
|
|
1669
|
+
function initWatches(instance) {
|
|
1670
|
+
instance._watches = [];
|
|
1671
|
+
for (const watches of instance.$options.watch || []) {
|
|
1672
|
+
for (const [name, watch] of Object.entries(watches)) {
|
|
1673
|
+
registerWatch(instance, watch, name);
|
|
1675
1674
|
}
|
|
1676
1675
|
}
|
|
1676
|
+
instance._initial = true;
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1678
|
+
function registerWatch(instance, watch, name) {
|
|
1679
|
+
instance._watches.push({
|
|
1680
|
+
name,
|
|
1681
|
+
...isPlainObject(watch) ? watch : { handler: watch }
|
|
1682
|
+
});
|
|
1682
1683
|
}
|
|
1683
|
-
function
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
const { _computed, $props, $el } = instance;
|
|
1688
|
-
if (!hasOwn(_computed, key)) {
|
|
1689
|
-
_computed[key] = (cb.get || cb).call(instance, $props, $el);
|
|
1690
|
-
}
|
|
1691
|
-
return _computed[key];
|
|
1692
|
-
},
|
|
1693
|
-
set(value) {
|
|
1694
|
-
const { _computed } = instance;
|
|
1695
|
-
_computed[key] = cb.set ? cb.set.call(instance, value) : value;
|
|
1696
|
-
if (isUndefined(_computed[key])) {
|
|
1697
|
-
delete _computed[key];
|
|
1698
|
-
}
|
|
1684
|
+
function runWatches(instance, values) {
|
|
1685
|
+
for (const { name, handler, immediate = true } of instance._watches) {
|
|
1686
|
+
if (instance._initial ? immediate : hasOwn(values, name) && !isEqual(values[name], instance[name])) {
|
|
1687
|
+
handler.call(instance, instance[name], instance._initial ? void 0 : values[name]);
|
|
1699
1688
|
}
|
|
1700
|
-
}
|
|
1689
|
+
}
|
|
1690
|
+
instance._initial = false;
|
|
1701
1691
|
}
|
|
1702
1692
|
|
|
1703
1693
|
function initUpdates(instance) {
|
|
1694
|
+
instance._data = {};
|
|
1704
1695
|
instance._updates = [...instance.$options.update || []];
|
|
1705
1696
|
}
|
|
1706
1697
|
function prependUpdate(instance, update) {
|
|
1707
1698
|
instance._updates.unshift(update);
|
|
1708
1699
|
}
|
|
1700
|
+
function clearUpdateData(instance) {
|
|
1701
|
+
delete instance._data;
|
|
1702
|
+
}
|
|
1709
1703
|
function callUpdate(instance, e = "update") {
|
|
1710
1704
|
if (!instance._connected) {
|
|
1711
1705
|
return;
|
|
1712
1706
|
}
|
|
1713
|
-
if (!instance
|
|
1707
|
+
if (!instance._updates.length) {
|
|
1714
1708
|
return;
|
|
1715
1709
|
}
|
|
1716
1710
|
if (!instance._queued) {
|
|
@@ -1746,39 +1740,71 @@
|
|
|
1746
1740
|
}
|
|
1747
1741
|
}
|
|
1748
1742
|
|
|
1749
|
-
function
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1743
|
+
function initComputed(instance) {
|
|
1744
|
+
const { computed } = instance.$options;
|
|
1745
|
+
instance._computed = {};
|
|
1746
|
+
if (computed) {
|
|
1747
|
+
for (const key in computed) {
|
|
1748
|
+
registerComputed(instance, key, computed[key]);
|
|
1754
1749
|
}
|
|
1755
1750
|
}
|
|
1756
|
-
instance._initial = true;
|
|
1757
|
-
prependUpdate(instance, { read: () => callWatches(instance), events: ["resize"] });
|
|
1758
1751
|
}
|
|
1759
|
-
function
|
|
1760
|
-
instance.
|
|
1761
|
-
|
|
1762
|
-
|
|
1752
|
+
function registerComputed(instance, key, cb) {
|
|
1753
|
+
instance._hasComputed = true;
|
|
1754
|
+
Object.defineProperty(instance, key, {
|
|
1755
|
+
enumerable: true,
|
|
1756
|
+
get() {
|
|
1757
|
+
const { _computed, $props, $el } = instance;
|
|
1758
|
+
if (!hasOwn(_computed, key)) {
|
|
1759
|
+
_computed[key] = (cb.get || cb).call(instance, $props, $el);
|
|
1760
|
+
}
|
|
1761
|
+
return _computed[key];
|
|
1762
|
+
},
|
|
1763
|
+
set(value) {
|
|
1764
|
+
const { _computed } = instance;
|
|
1765
|
+
_computed[key] = cb.set ? cb.set.call(instance, value) : value;
|
|
1766
|
+
if (isUndefined(_computed[key])) {
|
|
1767
|
+
delete _computed[key];
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1763
1770
|
});
|
|
1764
|
-
if (watch.document) {
|
|
1765
|
-
instance._observeTarget = instance.$options.el.ownerDocumentocument;
|
|
1766
|
-
}
|
|
1767
1771
|
}
|
|
1768
|
-
function
|
|
1769
|
-
if (!instance.
|
|
1772
|
+
function initComputedUpdates(instance) {
|
|
1773
|
+
if (!instance._hasComputed) {
|
|
1770
1774
|
return;
|
|
1771
1775
|
}
|
|
1772
|
-
|
|
1773
|
-
|
|
1776
|
+
prependUpdate(instance, {
|
|
1777
|
+
read: () => runWatches(instance, resetComputed(instance)),
|
|
1778
|
+
events: ["resize", "computed"]
|
|
1779
|
+
});
|
|
1780
|
+
registerComputedObserver();
|
|
1781
|
+
instances$1.add(instance);
|
|
1774
1782
|
}
|
|
1775
|
-
function
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1783
|
+
function disconnectComputedUpdates(instance) {
|
|
1784
|
+
instances$1 == null ? void 0 : instances$1.delete(instance);
|
|
1785
|
+
resetComputed(instance);
|
|
1786
|
+
}
|
|
1787
|
+
function resetComputed(instance) {
|
|
1788
|
+
const values = { ...instance._computed };
|
|
1789
|
+
instance._computed = {};
|
|
1790
|
+
return values;
|
|
1791
|
+
}
|
|
1792
|
+
let observer;
|
|
1793
|
+
let instances$1;
|
|
1794
|
+
function registerComputedObserver() {
|
|
1795
|
+
if (observer) {
|
|
1796
|
+
return;
|
|
1781
1797
|
}
|
|
1798
|
+
instances$1 = /* @__PURE__ */ new Set();
|
|
1799
|
+
observer = new MutationObserver(() => {
|
|
1800
|
+
for (const instance of instances$1) {
|
|
1801
|
+
callUpdate(instance, "computed");
|
|
1802
|
+
}
|
|
1803
|
+
});
|
|
1804
|
+
observer.observe(document, {
|
|
1805
|
+
childList: true,
|
|
1806
|
+
subtree: true
|
|
1807
|
+
});
|
|
1782
1808
|
}
|
|
1783
1809
|
|
|
1784
1810
|
function initEvents(instance) {
|
|
@@ -1844,44 +1870,29 @@
|
|
|
1844
1870
|
return;
|
|
1845
1871
|
}
|
|
1846
1872
|
const key = `_observe${instance._observers.length}`;
|
|
1847
|
-
if (isFunction(target) && !(key
|
|
1873
|
+
if (isFunction(target) && !hasOwn(instance, key)) {
|
|
1848
1874
|
registerComputed(instance, key, () => target.call(instance, instance));
|
|
1849
1875
|
}
|
|
1850
1876
|
handler = isString(handler) ? instance[handler] : handler.bind(instance);
|
|
1851
1877
|
if (isFunction(options)) {
|
|
1852
1878
|
options = options.call(instance, instance);
|
|
1853
1879
|
}
|
|
1854
|
-
const
|
|
1880
|
+
const targets = hasOwn(instance, key) ? instance[key] : target;
|
|
1881
|
+
const observer = observe(targets, handler, options, args);
|
|
1855
1882
|
if (isFunction(target) && isArray(instance[key]) && observer.unobserve) {
|
|
1856
|
-
registerWatch(
|
|
1857
|
-
instance,
|
|
1858
|
-
{
|
|
1859
|
-
handler(targets, prev) {
|
|
1860
|
-
for (const target2 of prev) {
|
|
1861
|
-
!includes(targets, target2) && observer.unobserve(target2);
|
|
1862
|
-
}
|
|
1863
|
-
for (const target2 of targets) {
|
|
1864
|
-
!includes(prev, target2) && observer.observe(target2);
|
|
1865
|
-
}
|
|
1866
|
-
},
|
|
1867
|
-
immediate: false
|
|
1868
|
-
},
|
|
1869
|
-
key
|
|
1870
|
-
);
|
|
1883
|
+
registerWatch(instance, { handler: updateTargets(observer), immediate: false }, key);
|
|
1871
1884
|
}
|
|
1872
1885
|
registerObserver(instance, observer);
|
|
1873
1886
|
}
|
|
1874
|
-
function
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
});
|
|
1884
|
-
registerObserver(instance, observer);
|
|
1887
|
+
function updateTargets(observer) {
|
|
1888
|
+
return (targets, prev) => {
|
|
1889
|
+
for (const target of prev) {
|
|
1890
|
+
!includes(targets, target) && observer.unobserve(target);
|
|
1891
|
+
}
|
|
1892
|
+
for (const target of targets) {
|
|
1893
|
+
!includes(prev, target) && observer.observe(target);
|
|
1894
|
+
}
|
|
1895
|
+
};
|
|
1885
1896
|
}
|
|
1886
1897
|
|
|
1887
1898
|
const strats = {};
|
|
@@ -2068,8 +2079,6 @@
|
|
|
2068
2079
|
if (instance._connected) {
|
|
2069
2080
|
return;
|
|
2070
2081
|
}
|
|
2071
|
-
instance._data = {};
|
|
2072
|
-
instance._computed = {};
|
|
2073
2082
|
initProps(instance);
|
|
2074
2083
|
callHook(instance, "beforeConnect");
|
|
2075
2084
|
instance._connected = true;
|
|
@@ -2078,7 +2087,7 @@
|
|
|
2078
2087
|
initWatches(instance);
|
|
2079
2088
|
initObservers(instance);
|
|
2080
2089
|
initPropsObserver(instance);
|
|
2081
|
-
|
|
2090
|
+
initComputedUpdates(instance);
|
|
2082
2091
|
callHook(instance, "connected");
|
|
2083
2092
|
callUpdate(instance);
|
|
2084
2093
|
}
|
|
@@ -2087,11 +2096,12 @@
|
|
|
2087
2096
|
return;
|
|
2088
2097
|
}
|
|
2089
2098
|
callHook(instance, "beforeDisconnect");
|
|
2090
|
-
disconnectObservers(instance);
|
|
2091
2099
|
unbindEvents(instance);
|
|
2100
|
+
clearUpdateData(instance);
|
|
2101
|
+
disconnectObservers(instance);
|
|
2102
|
+
disconnectComputedUpdates(instance);
|
|
2092
2103
|
callHook(instance, "disconnected");
|
|
2093
2104
|
instance._connected = false;
|
|
2094
|
-
delete instance._watch;
|
|
2095
2105
|
}
|
|
2096
2106
|
|
|
2097
2107
|
let uid = 0;
|
|
@@ -2148,7 +2158,7 @@
|
|
|
2148
2158
|
};
|
|
2149
2159
|
App.util = util;
|
|
2150
2160
|
App.options = {};
|
|
2151
|
-
App.version = "3.16.11-dev.
|
|
2161
|
+
App.version = "3.16.11-dev.cc1aeb568";
|
|
2152
2162
|
|
|
2153
2163
|
const PREFIX = "uk-";
|
|
2154
2164
|
const DATA = "__uikit__";
|
|
@@ -3565,40 +3575,31 @@
|
|
|
3565
3575
|
}
|
|
3566
3576
|
},
|
|
3567
3577
|
watch: {
|
|
3568
|
-
dropbar
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
);
|
|
3577
|
-
},
|
|
3578
|
-
immediate: true
|
|
3578
|
+
dropbar(dropbar) {
|
|
3579
|
+
addClass(
|
|
3580
|
+
dropbar,
|
|
3581
|
+
"uk-dropbar",
|
|
3582
|
+
"uk-dropbar-top",
|
|
3583
|
+
this.clsDropbar,
|
|
3584
|
+
`uk-${this.$options.name}-dropbar`
|
|
3585
|
+
);
|
|
3579
3586
|
},
|
|
3580
|
-
dropdowns
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
);
|
|
3593
|
-
},
|
|
3594
|
-
immediate: true
|
|
3587
|
+
dropdowns(dropdowns) {
|
|
3588
|
+
this.$create(
|
|
3589
|
+
"drop",
|
|
3590
|
+
dropdowns.filter((el) => !this.getDropdown(el)),
|
|
3591
|
+
{
|
|
3592
|
+
...this.$props,
|
|
3593
|
+
flip: false,
|
|
3594
|
+
shift: true,
|
|
3595
|
+
pos: `bottom-${this.align}`,
|
|
3596
|
+
boundary: this.boundary === true ? this.$el : this.boundary
|
|
3597
|
+
}
|
|
3598
|
+
);
|
|
3595
3599
|
},
|
|
3596
|
-
items
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
attr(items[0], "tabindex", 0);
|
|
3600
|
-
},
|
|
3601
|
-
immediate: true
|
|
3600
|
+
items(items) {
|
|
3601
|
+
attr(items, "tabindex", -1);
|
|
3602
|
+
attr(items[0], "tabindex", 0);
|
|
3602
3603
|
}
|
|
3603
3604
|
},
|
|
3604
3605
|
disconnected() {
|
|
@@ -4636,9 +4637,10 @@
|
|
|
4636
4637
|
ensureSrcAttribute(this.$el);
|
|
4637
4638
|
},
|
|
4638
4639
|
disconnected() {
|
|
4639
|
-
if (this.
|
|
4640
|
-
this.
|
|
4640
|
+
if (this.img) {
|
|
4641
|
+
this.img.onload = "";
|
|
4641
4642
|
}
|
|
4643
|
+
delete this.img;
|
|
4642
4644
|
},
|
|
4643
4645
|
observe: intersection({
|
|
4644
4646
|
target: ({ $el, $props }) => [$el, ...queryAll($props.target, $el)],
|
|
@@ -4651,13 +4653,13 @@
|
|
|
4651
4653
|
}),
|
|
4652
4654
|
methods: {
|
|
4653
4655
|
load() {
|
|
4654
|
-
if (this.
|
|
4655
|
-
return this.
|
|
4656
|
+
if (this.img) {
|
|
4657
|
+
return this.img;
|
|
4656
4658
|
}
|
|
4657
4659
|
const image = isImg(this.$el) ? this.$el : getImageFromElement(this.$el, this.dataSrc, this.sources);
|
|
4658
4660
|
removeAttr(image, "loading");
|
|
4659
4661
|
setSrcAttrs(this.$el, image.currentSrc);
|
|
4660
|
-
return this.
|
|
4662
|
+
return this.img = image;
|
|
4661
4663
|
}
|
|
4662
4664
|
}
|
|
4663
4665
|
};
|
|
@@ -5138,24 +5140,21 @@
|
|
|
5138
5140
|
// Simplify with :where() selector once browser target is Safari 14+
|
|
5139
5141
|
},
|
|
5140
5142
|
watch: {
|
|
5141
|
-
items
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
}
|
|
5157
|
-
},
|
|
5158
|
-
immediate: true
|
|
5143
|
+
items() {
|
|
5144
|
+
const justify = hasClass(this.$el, "uk-navbar-justify");
|
|
5145
|
+
for (const container of $$(
|
|
5146
|
+
".uk-navbar-nav, .uk-navbar-left, .uk-navbar-right",
|
|
5147
|
+
this.$el
|
|
5148
|
+
)) {
|
|
5149
|
+
css(
|
|
5150
|
+
container,
|
|
5151
|
+
"flexGrow",
|
|
5152
|
+
justify ? $$(
|
|
5153
|
+
".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle",
|
|
5154
|
+
container
|
|
5155
|
+
).length : ""
|
|
5156
|
+
);
|
|
5157
|
+
}
|
|
5159
5158
|
}
|
|
5160
5159
|
}
|
|
5161
5160
|
};
|
|
@@ -5445,17 +5444,18 @@
|
|
|
5445
5444
|
}
|
|
5446
5445
|
},
|
|
5447
5446
|
connected() {
|
|
5448
|
-
this.
|
|
5447
|
+
this.elementData = /* @__PURE__ */ new Map();
|
|
5449
5448
|
},
|
|
5450
5449
|
disconnected() {
|
|
5451
|
-
for (const [el, state] of this.
|
|
5450
|
+
for (const [el, state] of this.elementData.entries()) {
|
|
5452
5451
|
removeClass(el, this.inViewClass, (state == null ? void 0 : state.cls) || "");
|
|
5453
5452
|
}
|
|
5453
|
+
delete this.elementData;
|
|
5454
5454
|
},
|
|
5455
5455
|
observe: intersection({
|
|
5456
5456
|
target: ({ elements }) => elements,
|
|
5457
5457
|
handler(records) {
|
|
5458
|
-
const elements = this.
|
|
5458
|
+
const elements = this.elementData;
|
|
5459
5459
|
for (const { target: el, isIntersecting } of records) {
|
|
5460
5460
|
if (!elements.has(el)) {
|
|
5461
5461
|
elements.set(el, {
|
|
@@ -5476,7 +5476,7 @@
|
|
|
5476
5476
|
update: [
|
|
5477
5477
|
{
|
|
5478
5478
|
write(data) {
|
|
5479
|
-
for (const [el, state] of
|
|
5479
|
+
for (const [el, state] of this.elementData.entries()) {
|
|
5480
5480
|
if (state.show && !state.inview && !state.queued) {
|
|
5481
5481
|
state.queued = true;
|
|
5482
5482
|
data.promise = (data.promise || Promise.resolve()).then(() => new Promise((resolve) => setTimeout(resolve, this.delay))).then(() => {
|
|
@@ -5496,7 +5496,7 @@
|
|
|
5496
5496
|
methods: {
|
|
5497
5497
|
toggle(el, inview) {
|
|
5498
5498
|
var _a;
|
|
5499
|
-
const state = this.
|
|
5499
|
+
const state = this.elementData.get(el);
|
|
5500
5500
|
if (!state) {
|
|
5501
5501
|
return;
|
|
5502
5502
|
}
|
|
@@ -5987,14 +5987,11 @@
|
|
|
5987
5987
|
}
|
|
5988
5988
|
},
|
|
5989
5989
|
watch: {
|
|
5990
|
-
connects
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
this.$emit();
|
|
5996
|
-
},
|
|
5997
|
-
document: true
|
|
5990
|
+
connects(connects) {
|
|
5991
|
+
if (this.swiping) {
|
|
5992
|
+
css(connects, "touchAction", "pan-y pinch-zoom");
|
|
5993
|
+
}
|
|
5994
|
+
this.$emit();
|
|
5998
5995
|
},
|
|
5999
5996
|
connectChildren() {
|
|
6000
5997
|
const index = this.index();
|
|
@@ -6164,12 +6161,9 @@
|
|
|
6164
6161
|
queued: true
|
|
6165
6162
|
},
|
|
6166
6163
|
computed: {
|
|
6167
|
-
target
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
return target.length && target || [$el];
|
|
6171
|
-
},
|
|
6172
|
-
document: true
|
|
6164
|
+
target({ href, target }, $el) {
|
|
6165
|
+
target = queryAll(target || href, $el);
|
|
6166
|
+
return target.length && target || [$el];
|
|
6173
6167
|
}
|
|
6174
6168
|
},
|
|
6175
6169
|
connected() {
|