uikit 3.25.13 → 3.25.14
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 +6 -0
- package/build/build.js +6 -6
- package/build/icons.js +3 -3
- package/build/util.js +32 -9
- package/dist/css/uikit-core-rtl.css +2 -2
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +2 -2
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +2 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +2 -2
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +4 -2
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +4 -2
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +4 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +4 -2
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +4 -2
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +4 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +4 -2
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +4 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +4 -2
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +4 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +4 -2
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +4 -2
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +4 -2
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +9 -7
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +167 -165
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +9 -7
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -2
- package/src/js/api/app.js +1 -0
- package/src/js/api/hooks.js +1 -0
- package/{build/wrapper → src/js}/component.js +2 -1
- package/src/js/core/dropnav.js +1 -0
- package/src/js/core/toggle.js +2 -4
- package/src/js/core/video.js +2 -3
- package/{build/wrapper/icons.js → src/js/uikit-icons.js} +3 -1
- package/src/js/util/keys.js +1 -0
- package/src/less/components/text.less +1 -1
- package/src/less/theme/accordion.less +1 -1
- package/src/scss/variables-theme.scss +1 -1
- package/src/scss/variables.scss +1 -1
- package/tests/js/index.js +1 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.14 | 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')) :
|
|
@@ -227,8 +227,10 @@
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
var name = 'upload';
|
|
231
|
+
|
|
230
232
|
if (typeof window !== "undefined" && window.UIkit) {
|
|
231
|
-
window.UIkit.component(
|
|
233
|
+
window.UIkit.component(name, Component);
|
|
232
234
|
}
|
|
233
235
|
|
|
234
236
|
return Component;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.14 | 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={url:e,data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return await s.beforeSend(s),g(s.url,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)})}var v="upload";return typeof window<"u"&&window.UIkit&&window.UIkit.component(v,p),p}));
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.14 | 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() :
|
|
@@ -1681,6 +1681,8 @@
|
|
|
1681
1681
|
wrapInner: wrapInner
|
|
1682
1682
|
});
|
|
1683
1683
|
|
|
1684
|
+
var VERSION = '3.25.14';
|
|
1685
|
+
|
|
1684
1686
|
function initUpdates(instance) {
|
|
1685
1687
|
instance._data = {};
|
|
1686
1688
|
instance._updates = [...instance.$options.update || []];
|
|
@@ -2163,7 +2165,7 @@
|
|
|
2163
2165
|
};
|
|
2164
2166
|
App.util = util;
|
|
2165
2167
|
App.options = {};
|
|
2166
|
-
App.version =
|
|
2168
|
+
App.version = VERSION;
|
|
2167
2169
|
|
|
2168
2170
|
const PREFIX = "uk-";
|
|
2169
2171
|
const DATA = "__uikit__";
|
|
@@ -2675,6 +2677,7 @@
|
|
|
2675
2677
|
|
|
2676
2678
|
const keyMap = {
|
|
2677
2679
|
TAB: 9,
|
|
2680
|
+
ENTER: 13,
|
|
2678
2681
|
ESC: 27,
|
|
2679
2682
|
SPACE: 32,
|
|
2680
2683
|
END: 35,
|
|
@@ -2944,7 +2947,7 @@
|
|
|
2944
2947
|
{
|
|
2945
2948
|
name: `${pointerEnter} focusin`,
|
|
2946
2949
|
el: ({ hoverTarget, $el }) => query(hoverTarget, $el) || $el,
|
|
2947
|
-
filter: ({ autoplay }) =>
|
|
2950
|
+
filter: ({ autoplay }) => autoplay === "hover",
|
|
2948
2951
|
handler(e) {
|
|
2949
2952
|
if (!isTouch(e) || !isPlaying(this.$el)) {
|
|
2950
2953
|
play(this.$el);
|
|
@@ -2956,7 +2959,7 @@
|
|
|
2956
2959
|
{
|
|
2957
2960
|
name: `${pointerLeave} focusout`,
|
|
2958
2961
|
el: ({ hoverTarget, $el }) => query(hoverTarget, $el) || $el,
|
|
2959
|
-
filter: ({ autoplay }) =>
|
|
2962
|
+
filter: ({ autoplay }) => autoplay === "hover",
|
|
2960
2963
|
handler(e) {
|
|
2961
2964
|
if (!isTouch(e)) {
|
|
2962
2965
|
pauseHover(this.$el, this.restart);
|
|
@@ -3848,6 +3851,7 @@
|
|
|
3848
3851
|
flip: this.flip && !this.$props.dropbar,
|
|
3849
3852
|
shift: true,
|
|
3850
3853
|
pos: `bottom-${this.align}`,
|
|
3854
|
+
boundary: false,
|
|
3851
3855
|
boundaryX: this.boundary === true ? this.$el : this.boundary
|
|
3852
3856
|
}
|
|
3853
3857
|
);
|
|
@@ -6572,8 +6576,6 @@
|
|
|
6572
6576
|
}
|
|
6573
6577
|
};
|
|
6574
6578
|
|
|
6575
|
-
const KEY_ENTER = 13;
|
|
6576
|
-
const KEY_SPACE = 32;
|
|
6577
6579
|
var toggle = {
|
|
6578
6580
|
mixins: [Media, Togglable],
|
|
6579
6581
|
args: "target",
|
|
@@ -6657,7 +6659,7 @@
|
|
|
6657
6659
|
name: "keydown",
|
|
6658
6660
|
filter: ({ $el, mode }) => includes(mode, "click") && !isTag($el, "input"),
|
|
6659
6661
|
handler(e) {
|
|
6660
|
-
if (e.keyCode ===
|
|
6662
|
+
if (e.keyCode === keyMap.SPACE || e.keyCode === keyMap.ENTER) {
|
|
6661
6663
|
e.preventDefault();
|
|
6662
6664
|
this.$el.click();
|
|
6663
6665
|
}
|