uikit 3.25.23-dev.0ea1d51 → 3.25.23-dev.2ad20f7
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 +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 +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 +5 -5
- 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 +9 -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 +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 +19 -12
- 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 +26 -14
- 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 +4 -2
- package/src/js/api/props.js +2 -1
- package/src/js/components/countdown.js +1 -1
- package/src/js/components/slider.js +1 -1
- package/src/js/components/slideshow.js +5 -0
- package/src/js/core/form-custom.js +1 -1
- package/src/js/core/img.js +7 -2
- package/src/js/mixin/svg.js +1 -1
- package/src/js/util/event.js +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.23-dev.
|
|
1
|
+
/*! UIkit 3.25.23-dev.2ad20f7 | 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.2ad20f7 | 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.2ad20f7 | 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.2ad20f7';
|
|
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,8 +2413,8 @@
|
|
|
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
|
-
for (const { isIntersecting
|
|
2414
|
-
|
|
2416
|
+
for (const el of entries.filter(({ isIntersecting }) => isIntersecting).map(({ target }) => target)) {
|
|
2417
|
+
observer.unobserve(el);
|
|
2415
2418
|
}
|
|
2416
2419
|
},
|
|
2417
2420
|
...options
|
|
@@ -3927,7 +3930,7 @@
|
|
|
3927
3930
|
let option;
|
|
3928
3931
|
const prop = isInput(target) ? "value" : "textContent";
|
|
3929
3932
|
const prev = target[prop];
|
|
3930
|
-
const value = ((_a = input.files) == null ? void 0 : _a[0]) ? input.files[0].name : matches(input, "select") && (option = $$("option", input).
|
|
3933
|
+
const value = ((_a = input.files) == null ? void 0 : _a[0]) ? input.files[0].name : matches(input, "select") && (option = $$("option", input).filter((el) => el.selected)[0]) ? option.textContent : input.value;
|
|
3931
3934
|
if (prev !== value) {
|
|
3932
3935
|
target[prop] = value;
|
|
3933
3936
|
}
|
|
@@ -4538,7 +4541,7 @@
|
|
|
4538
4541
|
if (icon && includes(svg, "<symbol")) {
|
|
4539
4542
|
svg = parseSymbols(svg)[icon] || svg;
|
|
4540
4543
|
}
|
|
4541
|
-
return toNodes(fragment(svg)).
|
|
4544
|
+
return toNodes(fragment(svg)).filter(isElement)[0];
|
|
4542
4545
|
}
|
|
4543
4546
|
const symbolRe = /<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g;
|
|
4544
4547
|
const parseSymbols = memoize(function(svg) {
|
|
@@ -4796,7 +4799,8 @@
|
|
|
4796
4799
|
const elements = isTag(parentNode, "picture") ? children(parentNode) : [el];
|
|
4797
4800
|
elements.forEach((el2) => setSourceProps(el2, el2));
|
|
4798
4801
|
} else if (src) {
|
|
4799
|
-
|
|
4802
|
+
const change = !includes(el.style.backgroundImage, src);
|
|
4803
|
+
if (change) {
|
|
4800
4804
|
css(el, "backgroundImage", `url(${escape(src)})`);
|
|
4801
4805
|
trigger(el, createEvent("load", false));
|
|
4802
4806
|
}
|
|
@@ -4844,7 +4848,10 @@
|
|
|
4844
4848
|
} else {
|
|
4845
4849
|
sources = parseOptions(sources);
|
|
4846
4850
|
}
|
|
4847
|
-
|
|
4851
|
+
if (!isArray(sources)) {
|
|
4852
|
+
sources = [sources];
|
|
4853
|
+
}
|
|
4854
|
+
return sources.filter((source) => !isEmpty(source));
|
|
4848
4855
|
}
|
|
4849
4856
|
function isImg(el) {
|
|
4850
4857
|
return isTag(el, "img");
|