uikit 3.16.7-dev.fcb5a4616 → 3.16.8-dev.dc18e16fb
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 +22 -0
- package/dist/css/uikit-core-rtl.css +33 -19
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +33 -19
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +33 -19
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +33 -19
- 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 +16 -37
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +16 -37
- 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 +2 -2
- 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 +15 -36
- 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 +15 -36
- 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 +45 -22
- 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 +59 -57
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/boot.js +10 -1
- package/src/js/api/observables.js +1 -1
- package/src/js/api/watch.js +1 -1
- package/src/js/core/accordion.js +4 -0
- package/src/js/core/dropnav.js +5 -6
- package/src/js/core/navbar.js +14 -4
- package/src/js/core/sticky.js +7 -2
- package/src/js/mixin/slider-autoplay.js +13 -42
- package/src/js/mixin/slider-nav.js +6 -1
- package/src/js/util/fastdom.js +2 -2
- package/src/js/util/scroll.js +2 -1
- package/src/less/components/base.less +0 -1
- package/src/less/components/dropbar.less +6 -0
- package/src/less/components/dropdown.less +5 -0
- package/src/less/components/navbar.less +5 -0
- package/src/less/components/visibility.less +25 -5
- package/src/scss/components/dropbar.scss +6 -0
- package/src/scss/components/dropdown.scss +5 -0
- package/src/scss/components/navbar.scss +5 -0
- package/src/scss/components/visibility.scss +25 -5
- package/src/scss/mixins-theme.scss +0 -1
- package/src/scss/mixins.scss +0 -1
- package/src/scss/variables-theme.scss +3 -0
- package/src/scss/variables.scss +3 -0
- package/tests/js/index.js +4 -3
- package/tests/navbar.html +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.8-dev.dc18e16fb | 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.
|
|
1
|
+
/*! UIkit 3.16.8-dev.dc18e16fb | 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.
|
|
1
|
+
/*! UIkit 3.16.8-dev.dc18e16fb | 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.
|
|
1
|
+
/*! UIkit 3.16.8-dev.dc18e16fb | 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.
|
|
1
|
+
/*! UIkit 3.16.8-dev.dc18e16fb | 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() :
|
|
@@ -959,8 +959,8 @@
|
|
|
959
959
|
const fastdom = {
|
|
960
960
|
reads: [],
|
|
961
961
|
writes: [],
|
|
962
|
-
read(task) {
|
|
963
|
-
this.reads
|
|
962
|
+
read(task, prepend) {
|
|
963
|
+
this.reads[prepend ? "unshift" : "push"](task);
|
|
964
964
|
scheduleFlush();
|
|
965
965
|
return task;
|
|
966
966
|
},
|
|
@@ -1738,7 +1738,7 @@
|
|
|
1738
1738
|
runWatches(instance, initial);
|
|
1739
1739
|
}
|
|
1740
1740
|
instance._watch = null;
|
|
1741
|
-
});
|
|
1741
|
+
}, true);
|
|
1742
1742
|
}
|
|
1743
1743
|
function runWatches(instance, initial) {
|
|
1744
1744
|
const values = { ...instance._computed };
|
|
@@ -2140,7 +2140,7 @@
|
|
|
2140
2140
|
};
|
|
2141
2141
|
App.util = util;
|
|
2142
2142
|
App.options = {};
|
|
2143
|
-
App.version = "3.16.
|
|
2143
|
+
App.version = "3.16.8-dev.dc18e16fb";
|
|
2144
2144
|
|
|
2145
2145
|
const PREFIX = "uk-";
|
|
2146
2146
|
const DATA = "__uikit__";
|
|
@@ -2312,7 +2312,16 @@
|
|
|
2312
2312
|
|
|
2313
2313
|
function boot(App) {
|
|
2314
2314
|
if (inBrowser && window.MutationObserver) {
|
|
2315
|
-
|
|
2315
|
+
if (document.readyState === "interactive") {
|
|
2316
|
+
requestAnimationFrame(() => init(App));
|
|
2317
|
+
} else {
|
|
2318
|
+
new MutationObserver((records, observer) => {
|
|
2319
|
+
if (document.body) {
|
|
2320
|
+
init(App);
|
|
2321
|
+
observer.disconnect();
|
|
2322
|
+
}
|
|
2323
|
+
}).observe(document.documentElement, { childList: true });
|
|
2324
|
+
}
|
|
2316
2325
|
}
|
|
2317
2326
|
}
|
|
2318
2327
|
function init(App) {
|
|
@@ -2606,7 +2615,7 @@
|
|
|
2606
2615
|
};
|
|
2607
2616
|
},
|
|
2608
2617
|
{
|
|
2609
|
-
target: window,
|
|
2618
|
+
target: () => window,
|
|
2610
2619
|
...options
|
|
2611
2620
|
},
|
|
2612
2621
|
"scroll"
|
|
@@ -2773,6 +2782,9 @@
|
|
|
2773
2782
|
"aria-disabled": !this.collapsible && activeItems.length < 2 && active
|
|
2774
2783
|
});
|
|
2775
2784
|
attr(content, { role: "region", "aria-labelledby": toggle.id });
|
|
2785
|
+
if (isTag(content, "ul")) {
|
|
2786
|
+
attr(children(content), "role", "presentation");
|
|
2787
|
+
}
|
|
2776
2788
|
}
|
|
2777
2789
|
},
|
|
2778
2790
|
methods: {
|
|
@@ -3091,7 +3103,7 @@
|
|
|
3091
3103
|
el,
|
|
3092
3104
|
"touchmove",
|
|
3093
3105
|
(e) => {
|
|
3094
|
-
if (e.targetTouches.length !== 1) {
|
|
3106
|
+
if (e.targetTouches.length !== 1 || matches(e.target, 'input[type="range"')) {
|
|
3095
3107
|
return;
|
|
3096
3108
|
}
|
|
3097
3109
|
let [{ scrollHeight, clientHeight }] = scrollParents(e.target);
|
|
@@ -3496,7 +3508,6 @@
|
|
|
3496
3508
|
var Dropnav = {
|
|
3497
3509
|
mixins: [Class, Container],
|
|
3498
3510
|
props: {
|
|
3499
|
-
dropdown: String,
|
|
3500
3511
|
align: String,
|
|
3501
3512
|
clsDrop: String,
|
|
3502
3513
|
boundary: Boolean,
|
|
@@ -3515,7 +3526,6 @@
|
|
|
3515
3526
|
animateOut: Boolean
|
|
3516
3527
|
},
|
|
3517
3528
|
data: {
|
|
3518
|
-
dropdown: "> li > a, > ul > li > a",
|
|
3519
3529
|
align: isRtl ? "right" : "left",
|
|
3520
3530
|
clsDrop: "uk-dropdown",
|
|
3521
3531
|
clsDropbar: "uk-dropnav-dropbar",
|
|
@@ -3523,7 +3533,8 @@
|
|
|
3523
3533
|
dropbar: false,
|
|
3524
3534
|
dropbarAnchor: false,
|
|
3525
3535
|
duration: 200,
|
|
3526
|
-
container: false
|
|
3536
|
+
container: false,
|
|
3537
|
+
selNavItem: "> li > a, > ul > li > a"
|
|
3527
3538
|
},
|
|
3528
3539
|
computed: {
|
|
3529
3540
|
dropbarAnchor({ dropbarAnchor }, $el) {
|
|
@@ -3581,8 +3592,8 @@
|
|
|
3581
3592
|
immediate: true
|
|
3582
3593
|
},
|
|
3583
3594
|
items: {
|
|
3584
|
-
get({
|
|
3585
|
-
return $$(
|
|
3595
|
+
get({ selNavItem }, $el) {
|
|
3596
|
+
return $$(selNavItem, $el);
|
|
3586
3597
|
},
|
|
3587
3598
|
watch(items) {
|
|
3588
3599
|
attr(children(this.$el), "role", "presentation");
|
|
@@ -3603,7 +3614,7 @@
|
|
|
3603
3614
|
{
|
|
3604
3615
|
name: "mouseover focusin",
|
|
3605
3616
|
delegate() {
|
|
3606
|
-
return this.
|
|
3617
|
+
return this.selNavItem;
|
|
3607
3618
|
},
|
|
3608
3619
|
handler({ current, type }) {
|
|
3609
3620
|
const active2 = this.getActive();
|
|
@@ -3620,7 +3631,7 @@
|
|
|
3620
3631
|
{
|
|
3621
3632
|
name: "keydown",
|
|
3622
3633
|
delegate() {
|
|
3623
|
-
return this.
|
|
3634
|
+
return this.selNavItem;
|
|
3624
3635
|
},
|
|
3625
3636
|
handler(e) {
|
|
3626
3637
|
const { current, keyCode } = e;
|
|
@@ -5132,13 +5143,14 @@
|
|
|
5132
5143
|
var navbar = {
|
|
5133
5144
|
extends: Dropnav,
|
|
5134
5145
|
data: {
|
|
5135
|
-
|
|
5136
|
-
|
|
5146
|
+
clsDrop: "uk-navbar-dropdown",
|
|
5147
|
+
selNavItem: ".uk-navbar-nav > li > a,a.uk-navbar-item,button.uk-navbar-item,.uk-navbar-item a,.uk-navbar-item button,.uk-navbar-toggle"
|
|
5148
|
+
// Simplify with :where() selector once browser target is Safari 14+
|
|
5137
5149
|
},
|
|
5138
5150
|
computed: {
|
|
5139
5151
|
items: {
|
|
5140
|
-
get({
|
|
5141
|
-
return $$(
|
|
5152
|
+
get({ selNavItem }, $el) {
|
|
5153
|
+
return $$(selNavItem, $el);
|
|
5142
5154
|
},
|
|
5143
5155
|
watch(items) {
|
|
5144
5156
|
const justify = hasClass(this.$el, "uk-navbar-justify");
|
|
@@ -5146,7 +5158,14 @@
|
|
|
5146
5158
|
".uk-navbar-nav, .uk-navbar-left, .uk-navbar-right",
|
|
5147
5159
|
this.$el
|
|
5148
5160
|
)) {
|
|
5149
|
-
css(
|
|
5161
|
+
css(
|
|
5162
|
+
container,
|
|
5163
|
+
"flexGrow",
|
|
5164
|
+
justify ? $$(
|
|
5165
|
+
".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle",
|
|
5166
|
+
container
|
|
5167
|
+
).length : ""
|
|
5168
|
+
);
|
|
5150
5169
|
}
|
|
5151
5170
|
attr($$(".uk-navbar-nav", this.$el), "role", "group");
|
|
5152
5171
|
attr($$(".uk-navbar-nav > *", this.$el), "role", "presentation");
|
|
@@ -5701,7 +5720,7 @@
|
|
|
5701
5720
|
}
|
|
5702
5721
|
const hide = this.isFixed && types.has("resize") && !sticky;
|
|
5703
5722
|
if (hide) {
|
|
5704
|
-
|
|
5723
|
+
preventTransition(this.selTarget);
|
|
5705
5724
|
this.hide();
|
|
5706
5725
|
}
|
|
5707
5726
|
if (!this.active) {
|
|
@@ -5710,7 +5729,6 @@
|
|
|
5710
5729
|
}
|
|
5711
5730
|
if (hide) {
|
|
5712
5731
|
this.show();
|
|
5713
|
-
requestAnimationFrame(() => css(this.selTarget, "transition", ""));
|
|
5714
5732
|
}
|
|
5715
5733
|
const viewport = toPx("100vh", "height");
|
|
5716
5734
|
const dynamicViewport = height(window);
|
|
@@ -5841,6 +5859,7 @@
|
|
|
5841
5859
|
this.show();
|
|
5842
5860
|
Animation.in(this.$el, this.animation).catch(noop);
|
|
5843
5861
|
} else {
|
|
5862
|
+
preventTransition(this.selTarget);
|
|
5844
5863
|
this.show();
|
|
5845
5864
|
}
|
|
5846
5865
|
},
|
|
@@ -5942,6 +5961,10 @@
|
|
|
5942
5961
|
function reset(el) {
|
|
5943
5962
|
css(el, { position: "", top: "", marginTop: "", width: "" });
|
|
5944
5963
|
}
|
|
5964
|
+
function preventTransition(el) {
|
|
5965
|
+
css(el, "transition", "0s");
|
|
5966
|
+
requestAnimationFrame(() => css(el, "transition", ""));
|
|
5967
|
+
}
|
|
5945
5968
|
|
|
5946
5969
|
const selDisabled = ".uk-disabled *, .uk-disabled, [disabled]";
|
|
5947
5970
|
var Switcher = {
|