uikit 3.25.23-dev.2ad20f7 → 3.25.23-dev.c3eec68
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 +1 -2
- 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 +2 -2
- 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 +3 -6
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +3 -6
- 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 -10
- 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 +11 -20
- 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 +13 -27
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/app.js +2 -4
- package/src/js/api/observables.js +2 -4
- package/src/js/api/props.js +1 -2
- package/src/js/components/countdown.js +1 -1
- package/src/js/components/slider.js +1 -1
- package/src/js/components/slideshow.js +0 -5
- package/src/js/core/form-custom.js +1 -1
- package/src/js/core/img.js +2 -7
- package/src/js/mixin/svg.js +1 -1
- package/src/js/util/event.js +1 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.23-dev.
|
|
1
|
+
/*! UIkit 3.25.23-dev.c3eec68 | 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(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.25.23-dev.
|
|
1
|
+
/*! UIkit 3.25.23-dev.c3eec68 | 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.c3eec68 | 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,10 +516,7 @@
|
|
|
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
|
-
|
|
520
|
-
e = new CustomEvent(e, { bubbles, cancelable, detail: detail2 });
|
|
521
|
-
}
|
|
522
|
-
return e;
|
|
519
|
+
return isString(e) ? new CustomEvent(e, { bubbles, cancelable, detail: detail2 }) : e;
|
|
523
520
|
}
|
|
524
521
|
function getArgs(args) {
|
|
525
522
|
args[0] = toEventTargets(args[0]);
|
|
@@ -1681,7 +1678,7 @@
|
|
|
1681
1678
|
wrapInner: wrapInner
|
|
1682
1679
|
});
|
|
1683
1680
|
|
|
1684
|
-
var VERSION = '3.25.23-dev.
|
|
1681
|
+
var VERSION = '3.25.23-dev.c3eec68';
|
|
1685
1682
|
|
|
1686
1683
|
function initUpdates(instance) {
|
|
1687
1684
|
instance._data = {};
|
|
@@ -2048,7 +2045,7 @@
|
|
|
2048
2045
|
}
|
|
2049
2046
|
const getAttributes = memoize((id, props) => {
|
|
2050
2047
|
const attributes = Object.keys(props);
|
|
2051
|
-
const filter = attributes.concat(id).
|
|
2048
|
+
const filter = attributes.concat(id).flatMap((key) => [hyphenate(key), `data-${hyphenate(key)}`]);
|
|
2052
2049
|
return { attributes, filter };
|
|
2053
2050
|
});
|
|
2054
2051
|
function initPropsObserver(instance) {
|
|
@@ -2157,9 +2154,9 @@
|
|
|
2157
2154
|
return data;
|
|
2158
2155
|
}
|
|
2159
2156
|
|
|
2160
|
-
|
|
2157
|
+
function App(options) {
|
|
2161
2158
|
init$1(this, options);
|
|
2162
|
-
}
|
|
2159
|
+
}
|
|
2163
2160
|
App.util = util;
|
|
2164
2161
|
App.options = {};
|
|
2165
2162
|
App.version = VERSION;
|
|
@@ -2413,9 +2410,7 @@
|
|
|
2413
2410
|
for (const el of toNodes(isFunction(targets) ? targets(this) : targets)) {
|
|
2414
2411
|
$$('[loading="lazy"]', el).slice(0, preload - 1).forEach((el2) => removeAttr(el2, "loading"));
|
|
2415
2412
|
}
|
|
2416
|
-
|
|
2417
|
-
observer.unobserve(el);
|
|
2418
|
-
}
|
|
2413
|
+
entries.filter(({ isIntersecting }) => isIntersecting).forEach(({ target }) => observer.unobserve(target));
|
|
2419
2414
|
},
|
|
2420
2415
|
...options
|
|
2421
2416
|
});
|
|
@@ -3930,7 +3925,7 @@
|
|
|
3930
3925
|
let option;
|
|
3931
3926
|
const prop = isInput(target) ? "value" : "textContent";
|
|
3932
3927
|
const prev = target[prop];
|
|
3933
|
-
const value = ((_a = input.files) == null ? void 0 : _a[0]) ? input.files[0].name : matches(input, "select") && (option = $$("option", input).
|
|
3928
|
+
const value = ((_a = input.files) == null ? void 0 : _a[0]) ? input.files[0].name : matches(input, "select") && (option = $$("option", input).find((el) => el.selected)) ? option.textContent : input.value;
|
|
3934
3929
|
if (prev !== value) {
|
|
3935
3930
|
target[prop] = value;
|
|
3936
3931
|
}
|
|
@@ -4541,7 +4536,7 @@
|
|
|
4541
4536
|
if (icon && includes(svg, "<symbol")) {
|
|
4542
4537
|
svg = parseSymbols(svg)[icon] || svg;
|
|
4543
4538
|
}
|
|
4544
|
-
return toNodes(fragment(svg)).
|
|
4539
|
+
return toNodes(fragment(svg)).find(isElement);
|
|
4545
4540
|
}
|
|
4546
4541
|
const symbolRe = /<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g;
|
|
4547
4542
|
const parseSymbols = memoize(function(svg) {
|
|
@@ -4799,8 +4794,7 @@
|
|
|
4799
4794
|
const elements = isTag(parentNode, "picture") ? children(parentNode) : [el];
|
|
4800
4795
|
elements.forEach((el2) => setSourceProps(el2, el2));
|
|
4801
4796
|
} else if (src) {
|
|
4802
|
-
|
|
4803
|
-
if (change) {
|
|
4797
|
+
if (!includes(el.style.backgroundImage, src)) {
|
|
4804
4798
|
css(el, "backgroundImage", `url(${escape(src)})`);
|
|
4805
4799
|
trigger(el, createEvent("load", false));
|
|
4806
4800
|
}
|
|
@@ -4848,10 +4842,7 @@
|
|
|
4848
4842
|
} else {
|
|
4849
4843
|
sources = parseOptions(sources);
|
|
4850
4844
|
}
|
|
4851
|
-
|
|
4852
|
-
sources = [sources];
|
|
4853
|
-
}
|
|
4854
|
-
return sources.filter((source) => !isEmpty(source));
|
|
4845
|
+
return (isArray(sources) ? sources : [sources]).filter((source) => !isEmpty(source));
|
|
4855
4846
|
}
|
|
4856
4847
|
function isImg(el) {
|
|
4857
4848
|
return isTag(el, "img");
|