uikit 3.25.23-dev.0ea1d51 → 3.25.23-dev.9fe9bc4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/build.js +2 -1
- 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 +6 -3
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +6 -3
- 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 +4 -6
- 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 +3 -5
- 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 +2 -2
- 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 +16 -11
- 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 +17 -12
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/app.js +4 -2
- package/src/js/api/observables.js +3 -3
- package/src/js/api/props.js +2 -1
- package/src/js/components/slider.js +1 -1
- package/src/js/core/img.js +7 -2
- package/src/js/util/event.js +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.25.23-dev.
|
|
1
|
+
/*! UIkit 3.25.23-dev.9fe9bc4 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(r,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],i):(r=typeof globalThis<"u"?globalThis:r||self,r.UIkitUpload=i(r.UIkit.util))})(this,(function(r){"use strict";var i={props:{i18n:Object},data:{i18n:null},methods:{t(e,...t){var s,a,o;let n=0;return((o=((s=this.i18n)==null?void 0:s[e])||((a=this.$options.i18n)==null?void 0:a[e]))==null?void 0:o.replace(/%s/g,()=>t[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:r.noop,beforeAll:r.noop,beforeSend:r.noop,complete:r.noop,completeAll:r.noop,error:r.noop,fail:r.noop,load:r.noop,loadEnd:r.noop,loadStart:r.noop,progress:r.noop},events:{change(e){r.matches(e.target,'input[type="file"]')&&(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){l(e);const t=e.dataTransfer;t!=null&&t.files&&(r.removeClass(this.$el,this.clsDragover),this.upload(t.files))},dragenter(e){l(e)},dragover(e){l(e),r.addClass(this.$el,this.clsDragover)},dragleave(e){l(e),r.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(e=r.toArray(e),!e.length)return;this.multiple||(e=e.slice(0,1)),r.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.beforeAll(this,e);const t=u(e,this.concurrent),s=async a=>{const o=new FormData;a.forEach(n=>o.append(this.name,n));for(const n in this.params)o.append(n,this.params[n]);try{const n=await g(this.url,{data:o,method:this.method,responseType:this.type,beforeSend:m=>{const{xhr:c}=m;r.on(c.upload,"progress",this.progress);for(const f of["loadStart","load","loadEnd","abort"])r.on(c,f.toLowerCase(),this[f]);return this.beforeSend(m)}});this.complete(n),t.length?await s(t.shift()):this.completeAll(n)}catch(n){n.name!=="AbortError"&&this.error(n)}};await s(t.shift())}}};function d(e,t){return t.match(new RegExp(`^${e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function u(e,t){const s=[];for(let a=0;a<e.length;a+=t)s.push(e.slice(a,a+t));return s}function l(e){e.preventDefault(),e.stopPropagation()}async function g(e,t){const s={url:e,data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:r.noop,responseType:"",...t};if(await s.beforeSend(s)===!1)throw h(s.xhr);return v(s.url,s)}function v(e,t){return new Promise((s,a)=>{const{xhr:o}=t;for(const n in t)if(n in o)try{o[n]=t[n]}catch{}o.open(t.method.toUpperCase(),e);for(const n in t.headers)o.setRequestHeader(n,t.headers[n]);r.on(o,"load",()=>{o.status===0||o.status>=200&&o.status<300||o.status===304?s(o):a(r.assign(Error(o.statusText),{xhr:o,status:o.status}))}),r.on(o,"error",()=>a(r.assign(Error("Network Error"),{xhr:o}))),r.on(o,"timeout",()=>a(r.assign(Error("Network Timeout"),{xhr:o}))),r.on(o,"abort",()=>a(h(o))),o.send(t.data)})}function h(e){return r.assign(Error("Network Abort"),{xhr:e,name:"AbortError"})}var w="upload";return typeof window<"u"&&window.UIkit&&window.UIkit.component(w,p),p}));
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.23-dev.
|
|
1
|
+
/*! UIkit 3.25.23-dev.9fe9bc4 | 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() :
|
|
@@ -516,7 +516,10 @@
|
|
|
516
516
|
return toEventTargets(targets).map((target) => target.dispatchEvent(createEvent(event, true, true, detail2))).every((result) => result);
|
|
517
517
|
}
|
|
518
518
|
function createEvent(e, bubbles = true, cancelable = false, detail2) {
|
|
519
|
-
|
|
519
|
+
if (isString(e)) {
|
|
520
|
+
e = new CustomEvent(e, { bubbles, cancelable, detail: detail2 });
|
|
521
|
+
}
|
|
522
|
+
return e;
|
|
520
523
|
}
|
|
521
524
|
function getArgs(args) {
|
|
522
525
|
args[0] = toEventTargets(args[0]);
|
|
@@ -1678,7 +1681,7 @@
|
|
|
1678
1681
|
wrapInner: wrapInner
|
|
1679
1682
|
});
|
|
1680
1683
|
|
|
1681
|
-
var VERSION = '3.25.23-dev.
|
|
1684
|
+
var VERSION = '3.25.23-dev.9fe9bc4';
|
|
1682
1685
|
|
|
1683
1686
|
function initUpdates(instance) {
|
|
1684
1687
|
instance._data = {};
|
|
@@ -2045,7 +2048,7 @@
|
|
|
2045
2048
|
}
|
|
2046
2049
|
const getAttributes = memoize((id, props) => {
|
|
2047
2050
|
const attributes = Object.keys(props);
|
|
2048
|
-
const filter = attributes.concat(id).
|
|
2051
|
+
const filter = attributes.concat(id).map((key) => [hyphenate(key), `data-${hyphenate(key)}`]).flat();
|
|
2049
2052
|
return { attributes, filter };
|
|
2050
2053
|
});
|
|
2051
2054
|
function initPropsObserver(instance) {
|
|
@@ -2154,9 +2157,9 @@
|
|
|
2154
2157
|
return data;
|
|
2155
2158
|
}
|
|
2156
2159
|
|
|
2157
|
-
|
|
2160
|
+
const App = function(options) {
|
|
2158
2161
|
init$1(this, options);
|
|
2159
|
-
}
|
|
2162
|
+
};
|
|
2160
2163
|
App.util = util;
|
|
2161
2164
|
App.options = {};
|
|
2162
2165
|
App.version = VERSION;
|
|
@@ -2410,9 +2413,7 @@
|
|
|
2410
2413
|
for (const el of toNodes(isFunction(targets) ? targets(this) : targets)) {
|
|
2411
2414
|
$$('[loading="lazy"]', el).slice(0, preload - 1).forEach((el2) => removeAttr(el2, "loading"));
|
|
2412
2415
|
}
|
|
2413
|
-
|
|
2414
|
-
isIntersecting && observer.unobserve(target);
|
|
2415
|
-
}
|
|
2416
|
+
entries.filter(({ isIntersecting }) => isIntersecting).forEach(({ target }) => observer.unobserve(target));
|
|
2416
2417
|
},
|
|
2417
2418
|
...options
|
|
2418
2419
|
});
|
|
@@ -4796,7 +4797,8 @@
|
|
|
4796
4797
|
const elements = isTag(parentNode, "picture") ? children(parentNode) : [el];
|
|
4797
4798
|
elements.forEach((el2) => setSourceProps(el2, el2));
|
|
4798
4799
|
} else if (src) {
|
|
4799
|
-
|
|
4800
|
+
const change = !includes(el.style.backgroundImage, src);
|
|
4801
|
+
if (change) {
|
|
4800
4802
|
css(el, "backgroundImage", `url(${escape(src)})`);
|
|
4801
4803
|
trigger(el, createEvent("load", false));
|
|
4802
4804
|
}
|
|
@@ -4844,7 +4846,10 @@
|
|
|
4844
4846
|
} else {
|
|
4845
4847
|
sources = parseOptions(sources);
|
|
4846
4848
|
}
|
|
4847
|
-
|
|
4849
|
+
if (!isArray(sources)) {
|
|
4850
|
+
sources = [sources];
|
|
4851
|
+
}
|
|
4852
|
+
return sources.filter((source) => !isEmpty(source));
|
|
4848
4853
|
}
|
|
4849
4854
|
function isImg(el) {
|
|
4850
4855
|
return isTag(el, "img");
|