uikit 3.25.3 → 3.25.5-dev.7295faa9
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 +12 -0
- 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 +2 -4
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +2 -4
- 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 +2 -4
- 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 +2 -4
- 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 +55 -10
- 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 +56 -13
- package/dist/js/uikit.min.js +1 -1
- package/package.json +2 -2
- package/src/js/core/accordion.js +7 -1
- package/src/js/core/overflow-fade.js +83 -8
- package/src/js/mixin/slider-drag.js +1 -3
- package/src/less/components/nav.less +0 -1
- package/src/scss/components/nav.scss +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.5-dev.7295faa9 | https://www.getuikit.com | (c) 2014 - 2026 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 s,a,t;let n=0;return((t=((s=this.i18n)==null?void 0:s[e])||((a=this.$options.i18n)==null?void 0:a[e]))==null?void 0:t.replace(/%s/g,()=>r[n++]||""))||""}}},p={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 a of e){if(this.maxSize&&this.maxSize*1e3<a.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!d(this.allow,a.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!d(this.mime,a.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),s=async a=>{const t=new FormData;a.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:h=>{const{xhr:c}=h;o.on(c.upload,"progress",this.progress);for(const m of["loadStart","load","loadEnd","abort"])o.on(c,m.toLowerCase(),this[m]);return this.beforeSend(h)}});this.complete(n),r.length?await s(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await s(r.shift())}}};function d(e,r){return r.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function f(e,r){const s=[];for(let a=0;a<e.length;a+=r)s.push(e.slice(a,a+r));return s}function l(e){e.preventDefault(),e.stopPropagation()}async function u(e,r){const s={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return await s.beforeSend(s),g(e,s)}function g(e,r){return new Promise((s,a)=>{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?s(t):a(o.assign(Error(t.statusText),{xhr:t,status:t.status}))}),o.on(t,"error",()=>a(o.assign(Error("Network Error"),{xhr:t}))),o.on(t,"timeout",()=>a(o.assign(Error("Network Timeout"),{xhr:t}))),t.send(r.data)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",p),p}));
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.5-dev.7295faa9 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
};
|
|
2167
2167
|
App.util = util;
|
|
2168
2168
|
App.options = {};
|
|
2169
|
-
App.version = "3.25.
|
|
2169
|
+
App.version = "3.25.5-dev.7295faa9";
|
|
2170
2170
|
|
|
2171
2171
|
const PREFIX = "uk-";
|
|
2172
2172
|
const DATA = "__uikit__";
|
|
@@ -2838,9 +2838,13 @@
|
|
|
2838
2838
|
if (e.type === "keydown" && e.keyCode !== keyMap.SPACE) {
|
|
2839
2839
|
return;
|
|
2840
2840
|
}
|
|
2841
|
+
const item = index(this.toggles, e.current);
|
|
2842
|
+
if (item === -1) {
|
|
2843
|
+
return;
|
|
2844
|
+
}
|
|
2841
2845
|
maybeDefaultPreventClick(e);
|
|
2842
2846
|
const off = keepScrollPosition(e.target);
|
|
2843
|
-
this.toggle(
|
|
2847
|
+
this.toggle(item).finally(off);
|
|
2844
2848
|
}
|
|
2845
2849
|
},
|
|
2846
2850
|
{
|
|
@@ -5593,16 +5597,23 @@
|
|
|
5593
5597
|
|
|
5594
5598
|
var overflowFade = {
|
|
5595
5599
|
data: {
|
|
5600
|
+
threshold: 5,
|
|
5596
5601
|
fadeDuration: 0.05
|
|
5597
5602
|
},
|
|
5598
|
-
events:
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5603
|
+
events: [
|
|
5604
|
+
{
|
|
5605
|
+
name: "scroll",
|
|
5606
|
+
self: true,
|
|
5607
|
+
passive: true,
|
|
5608
|
+
handler() {
|
|
5609
|
+
this.$emit();
|
|
5610
|
+
}
|
|
5611
|
+
},
|
|
5612
|
+
{
|
|
5613
|
+
name: pointerDown,
|
|
5614
|
+
handler: handleMouseDrag
|
|
5604
5615
|
}
|
|
5605
|
-
|
|
5616
|
+
],
|
|
5606
5617
|
observe: [
|
|
5607
5618
|
mutation({
|
|
5608
5619
|
options: {
|
|
@@ -5643,6 +5654,40 @@
|
|
|
5643
5654
|
events: ["resize"]
|
|
5644
5655
|
}
|
|
5645
5656
|
};
|
|
5657
|
+
function handleMouseDrag(e) {
|
|
5658
|
+
const { target, button, defaultPrevented } = e;
|
|
5659
|
+
if (defaultPrevented || button > 0 || isTouch(e) || target.closest(selInput) || isInput(target)) {
|
|
5660
|
+
return;
|
|
5661
|
+
}
|
|
5662
|
+
e.preventDefault();
|
|
5663
|
+
const pointerOptions = { passive: false, capture: true };
|
|
5664
|
+
const { $el: el, threshold, $options } = this;
|
|
5665
|
+
let started;
|
|
5666
|
+
const off = on(document, pointerMove, move(e), pointerOptions);
|
|
5667
|
+
on(document, [pointerUp, pointerCancel], end, { capture: true, once: true });
|
|
5668
|
+
function move(e2) {
|
|
5669
|
+
let origin = getEventPos(e2);
|
|
5670
|
+
let pos = origin;
|
|
5671
|
+
let lastPos = pos;
|
|
5672
|
+
return function(e3) {
|
|
5673
|
+
lastPos = pos;
|
|
5674
|
+
pos = getEventPos(e3);
|
|
5675
|
+
const isVertical = hasClass(el, `${$options.id}-vertical`);
|
|
5676
|
+
const prop = isVertical ? "y" : "x";
|
|
5677
|
+
started || (started = Math.abs(pos[prop] - origin[prop]) > threshold);
|
|
5678
|
+
if (started) {
|
|
5679
|
+
const delta = lastPos[prop] - pos[prop];
|
|
5680
|
+
el[isVertical ? "scrollTop" : "scrollLeft"] += delta;
|
|
5681
|
+
}
|
|
5682
|
+
};
|
|
5683
|
+
}
|
|
5684
|
+
function end() {
|
|
5685
|
+
off();
|
|
5686
|
+
if (started) {
|
|
5687
|
+
setTimeout(on(el, "click", (e2) => e2.preventDefault(), pointerOptions));
|
|
5688
|
+
}
|
|
5689
|
+
}
|
|
5690
|
+
}
|
|
5646
5691
|
|
|
5647
5692
|
var responsive = {
|
|
5648
5693
|
props: ["width", "height"],
|