uikit 3.11.2-dev.c7ed3c19b → 3.11.2-dev.d8c101f07
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/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 +6 -8
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +26 -55
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +27 -57
- 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 -11
- 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 +8 -14
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +5 -7
- 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 +20 -27
- 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 +54 -92
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +2 -11
- package/src/js/api/hooks.js +1 -1
- package/src/js/api/state.js +1 -1
- package/src/js/components/filter.js +2 -3
- package/src/js/components/internal/lightbox-animations.js +4 -3
- package/src/js/components/internal/slideshow-animations.js +4 -3
- package/src/js/components/lightbox-panel.js +34 -58
- package/src/js/components/lightbox.js +1 -2
- package/src/js/components/sortable.js +1 -1
- package/src/js/core/alert.js +1 -2
- package/src/js/core/modal.js +1 -2
- package/src/js/core/navbar.js +3 -3
- package/src/js/mixin/internal/animate-slide.js +9 -12
- package/src/js/mixin/slider.js +8 -16
- package/src/js/mixin/slideshow.js +2 -2
- package/src/js/mixin/togglable.js +1 -2
- package/src/js/util/ajax.js +9 -12
- package/src/js/util/animation.js +7 -12
- package/src/js/util/lang.js +1 -1
- package/src/js/util/options.js +2 -11
- package/src/js/util/player.js +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.11.2-dev.
|
|
1
|
+
/*! UIkit 3.11.2-dev.d8c101f07 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,d){typeof exports=="object"&&typeof module<"u"?module.exports=d(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],d):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitTooltip=d(s.UIkit.util))})(this,function(s){"use strict";var d={props:{container:Boolean},data:{container:!0},computed:{container(t){let{container:o}=t;return o===!0&&this.$container||o&&s.$(o)}}},u={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave",initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation(t){let{animation:o}=t;return!!o[0]},hasTransition(t){let{animation:o}=t;return this.hasAnimation&&o[0]===!0}},methods:{toggleElement(t,o,r){return new Promise(i=>Promise.all(s.toNodes(t).map(n=>{const h=s.isBoolean(o)?o:!this.isToggled(n);if(!s.trigger(n,"before"+(h?"show":"hide"),[this]))return Promise.reject();const a=(s.isFunction(r)?r:r===!1||!this.hasAnimation?this._toggle:this.hasTransition?w(this):T(this))(n,h),e=h?this.clsEnter:this.clsLeave;s.addClass(n,e),s.trigger(n,h?"show":"hide",[this]);const p=()=>{s.removeClass(n,e),s.trigger(n,h?"shown":"hidden",[this]),this.$update(n)};return a?a.then(p,()=>(s.removeClass(n,e),Promise.reject())):p()})).then(i,s.noop))},isToggled(t){return t===void 0&&(t=this.$el),[t]=s.toNodes(t),s.hasClass(t,this.clsEnter)?!0:s.hasClass(t,this.clsLeave)?!1:this.cls?s.hasClass(t,this.cls.split(" ")[0]):s.isVisible(t)},_toggle(t,o){if(!t)return;o=Boolean(o);let r;this.cls?(r=s.includes(this.cls," ")||o!==s.hasClass(t,this.cls),r&&s.toggleClass(t,this.cls,s.includes(this.cls," ")?void 0:o)):(r=o===t.hidden,r&&(t.hidden=!o)),s.$$("[autofocus]",t).some(i=>s.isVisible(i)?i.focus()||!0:i.blur()),r&&(s.trigger(t,"toggled",[o,this]),this.$update(t))}}};function w(t){let{isToggled:o,duration:r,initProps:i,hideProps:n,transition:h,_toggle:a}=t;return(e,p)=>{const l=s.Transition.inProgress(e),m=e.hasChildNodes?s.toFloat(s.css(e.firstElementChild,"marginTop"))+s.toFloat(s.css(e.lastElementChild,"marginBottom")):0,c=s.isVisible(e)?s.height(e)+(l?0:m):0;s.Transition.cancel(e),o(e)||a(e,!0),s.height(e,""),s.fastdom.flush();const g=s.height(e)+(l?0:m);return s.height(e,c),(p?s.Transition.start(e,{...i,overflow:"hidden",height:g},Math.round(r*(1-c/g)),h):s.Transition.start(e,n,Math.round(r*(c/g)),h).then(()=>a(e,!1))).then(()=>s.css(e,i))}}function T(t){return(o,r)=>{s.Animation.cancel(o);const{animation:i,duration:n,_toggle:h}=t;return r?(h(o,!0),s.Animation.in(o,i[0],n,t.origin)):s.Animation.out(o,i[1]||i[0],n,t.origin).then(()=>h(o,!1))}}var v={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(s.isRtl?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos(t){let{pos:o}=t;return o.split("-").concat("center").slice(0,2)},dir(){return this.pos[0]},align(){return this.pos[1]}},methods:{positionAt(t,o,r){s.removeClasses(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");let{offset:i}=this;const n=this.getAxis();if(!s.isNumeric(i)){const e=s.$(i);i=e?s.offset(e)[n==="x"?"left":"top"]-s.offset(o)[n==="x"?"right":"bottom"]:0}const{x:h,y:a}=s.positionAt(t,o,n==="x"?s.flipPosition(this.dir)+" "+this.align:this.align+" "+s.flipPosition(this.dir),n==="x"?this.dir+" "+this.align:this.align+" "+this.dir,n==="x"?""+(this.dir==="left"?-i:i):" "+(this.dir==="top"?-i:i),null,this.flip,r).target;this.dir=n==="x"?h:a,this.align=n==="x"?a:h,s.toggleClass(t,this.clsPos+"-"+this.dir+"-"+this.align,this.offset===!1)},getAxis(){return this.dir==="top"||this.dir==="bottom"?"y":"x"}}},f={mixins:[d,u,v],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip"},beforeConnect(){this._hasTitle=s.hasAttr(this.$el,"title"),s.attr(this.$el,"title",""),this.updateAria(!1),P(this.$el)},disconnected(){this.hide(),s.attr(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(this._unbind=s.once(document,"show keydown "+s.pointerDown,this.hide,!1,t=>t.type===s.pointerDown&&!s.within(t.target,this.$el)||t.type==="keydown"&&t.keyCode===27||t.type==="show"&&t.detail[0]!==this&&t.detail[0].$name===this.$name),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){s.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),!!this.isToggled(this.tooltip||null)&&(await this.toggleElement(this.tooltip,!1,!1),s.remove(this.tooltip),this.tooltip=null,this._unbind()))},_show(){this.tooltip=s.append(this.container,'<div class="'+this.clsPos+'"> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),s.on(this.tooltip,"toggled",(t,o)=>{this.updateAria(o),!!o&&(this.positionAt(this.tooltip,this.$el),this.origin=this.getAxis()==="y"?s.flipPosition(this.dir)+"-"+this.align:this.align+"-"+s.flipPosition(this.dir))}),this.toggleElement(this.tooltip,!0)},updateAria(t){s.attr(this.$el,"aria-expanded",t)}},events:{focus:"show",blur:"hide",[s.pointerEnter+" "+s.pointerLeave](t){s.isTouch(t)||this[t.type===s.pointerEnter?"show":"hide"]()},[s.pointerDown](t){s.isTouch(t)&&this.show()}}};function P(t){s.isFocusable(t)||s.attr(t,"tabindex","0")}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",f),f});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.11.2-dev.
|
|
1
|
+
/*! UIkit 3.11.2-dev.d8c101f07 | https://www.getuikit.com | (c) 2014 - 2022 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.11.2-dev.
|
|
1
|
+
/*! UIkit 3.11.2-dev.d8c101f07 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(t,r){typeof exports=="object"&&typeof module<"u"?module.exports=r(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],r):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitUpload=r(t.UIkit.util))})(this,function(t){"use strict";var r={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize: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,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",multiple:!1,name:"files[]",params:{},type:"",url:"",abort:t.noop,beforeAll:t.noop,beforeSend:t.noop,complete:t.noop,completeAll:t.noop,error:t.noop,fail:t.noop,load:t.noop,loadEnd:t.noop,loadStart:t.noop,progress:t.noop},events:{change(e){!t.matches(e.target,'input[type="file"]')||(e.preventDefault(),e.target.files&&this.upload(e.target.files),e.target.value="")},drop(e){i(e);const o=e.dataTransfer;!(o!=null&&o.files)||(t.removeClass(this.$el,this.clsDragover),this.upload(o.files))},dragenter(e){i(e)},dragover(e){i(e),t.addClass(this.$el,this.clsDragover)},dragleave(e){i(e),t.removeClass(this.$el,this.clsDragover)}},methods:{async upload(e){if(!e.length)return;t.trigger(this.$el,"upload",[e]);for(const a of e){if(this.maxSize&&this.maxSize*1e3<a.size){this.fail(this.msgInvalidSize.replace("%s",this.maxSize));return}if(this.allow&&!d(this.allow,a.name)){this.fail(this.msgInvalidName.replace("%s",this.allow));return}if(this.mime&&!d(this.mime,a.type)){this.fail(this.msgInvalidMime.replace("%s",this.mime));return}}this.multiple||(e=e.slice(0,1)),this.beforeAll(this,e);const o=c(e,this.concurrent),s=async a=>{const l=new FormData;a.forEach(n=>l.append(this.name,n));for(const n in this.params)l.append(n,this.params[n]);try{const n=await t.ajax(this.url,{data:l,method:this.method,responseType:this.type,beforeSend:h=>{const{xhr:p}=h;p.upload&&t.on(p.upload,"progress",this.progress);for(const m of["loadStart","load","loadEnd","abort"])t.on(p,m.toLowerCase(),this[m]);return this.beforeSend(h)}});this.complete(n),o.length?await s(o.shift()):this.completeAll(n)}catch(n){this.error(n)}};await s(o.shift())}}};function d(e,o){return o.match(new RegExp("^"+e.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function c(e,o){const s=[];for(let a=0;a<e.length;a+=o)s.push(e.slice(a,a+o));return s}function i(e){e.preventDefault(),e.stopPropagation()}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",r),r});
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.11.2-dev.
|
|
1
|
+
/*! UIkit 3.11.2-dev.d8c101f07 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
},
|
|
225
225
|
|
|
226
226
|
contain(dimensions, maxDimensions) {
|
|
227
|
-
dimensions =
|
|
227
|
+
dimensions = { ...dimensions };
|
|
228
228
|
|
|
229
229
|
each(
|
|
230
230
|
dimensions,
|
|
@@ -670,17 +670,14 @@
|
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
function ajax(url, options) {
|
|
673
|
-
const env =
|
|
674
|
-
{
|
|
673
|
+
const env = {
|
|
675
674
|
data: null,
|
|
676
675
|
method: 'GET',
|
|
677
676
|
headers: {},
|
|
678
677
|
xhr: new XMLHttpRequest(),
|
|
679
678
|
beforeSend: noop,
|
|
680
|
-
responseType: ''
|
|
681
|
-
|
|
682
|
-
options);
|
|
683
|
-
|
|
679
|
+
responseType: '',
|
|
680
|
+
...options };
|
|
684
681
|
|
|
685
682
|
return Promise.resolve().
|
|
686
683
|
then(() => env.beforeSend(env)).
|
|
@@ -914,16 +911,11 @@
|
|
|
914
911
|
|
|
915
912
|
|
|
916
913
|
addClass(element, 'uk-transition');
|
|
917
|
-
css(
|
|
918
|
-
element,
|
|
919
|
-
assign(
|
|
920
|
-
{
|
|
914
|
+
css(element, {
|
|
921
915
|
transitionProperty: Object.keys(props).map(propName).join(','),
|
|
922
916
|
transitionDuration: duration + "ms",
|
|
923
|
-
transitionTimingFunction: timing
|
|
924
|
-
|
|
925
|
-
props));
|
|
926
|
-
|
|
917
|
+
transitionTimingFunction: timing,
|
|
918
|
+
...props });
|
|
927
919
|
|
|
928
920
|
})));
|
|
929
921
|
|
|
@@ -1506,7 +1498,7 @@
|
|
|
1506
1498
|
|
|
1507
1499
|
// extend strategy
|
|
1508
1500
|
strats.computed = strats.methods = function (parentVal, childVal) {
|
|
1509
|
-
return childVal ? parentVal ?
|
|
1501
|
+
return childVal ? parentVal ? { ...parentVal, ...childVal } : childVal : parentVal;
|
|
1510
1502
|
};
|
|
1511
1503
|
|
|
1512
1504
|
// data strategy
|
|
@@ -1670,7 +1662,7 @@
|
|
|
1670
1662
|
|
|
1671
1663
|
function post(el, cmd) {
|
|
1672
1664
|
try {
|
|
1673
|
-
el.contentWindow.postMessage(JSON.stringify(
|
|
1665
|
+
el.contentWindow.postMessage(JSON.stringify({ event: 'command', ...cmd }), '*');
|
|
1674
1666
|
} catch (e) {
|
|
1675
1667
|
// noop
|
|
1676
1668
|
}
|
|
@@ -2344,7 +2336,7 @@
|
|
|
2344
2336
|
const {
|
|
2345
2337
|
$options: { computed } } =
|
|
2346
2338
|
this;
|
|
2347
|
-
const values =
|
|
2339
|
+
const values = { ...this._computeds };
|
|
2348
2340
|
this._computeds = {};
|
|
2349
2341
|
|
|
2350
2342
|
for (const key in computed) {
|
|
@@ -2529,7 +2521,7 @@
|
|
|
2529
2521
|
el = isFunction(el) ? el.call(component) : el || component.$el;
|
|
2530
2522
|
|
|
2531
2523
|
if (isArray(el)) {
|
|
2532
|
-
el.forEach((el) => registerEvent(component,
|
|
2524
|
+
el.forEach((el) => registerEvent(component, { ...event, el }, key));
|
|
2533
2525
|
return;
|
|
2534
2526
|
}
|
|
2535
2527
|
|
|
@@ -2763,7 +2755,7 @@
|
|
|
2763
2755
|
}
|
|
2764
2756
|
};
|
|
2765
2757
|
|
|
2766
|
-
const opt = isPlainObject(options) ?
|
|
2758
|
+
const opt = isPlainObject(options) ? { ...options } : options.options;
|
|
2767
2759
|
|
|
2768
2760
|
opt.name = name;
|
|
2769
2761
|
|
|
@@ -2816,7 +2808,7 @@
|
|
|
2816
2808
|
UIkit.data = '__uikit__';
|
|
2817
2809
|
UIkit.prefix = 'uk-';
|
|
2818
2810
|
UIkit.options = {};
|
|
2819
|
-
UIkit.version = '3.11.2-dev.
|
|
2811
|
+
UIkit.version = '3.11.2-dev.d8c101f07';
|
|
2820
2812
|
|
|
2821
2813
|
globalAPI(UIkit);
|
|
2822
2814
|
hooksAPI(UIkit);
|
|
@@ -3139,7 +3131,7 @@
|
|
|
3139
3131
|
show ?
|
|
3140
3132
|
Transition.start(
|
|
3141
3133
|
el,
|
|
3142
|
-
|
|
3134
|
+
{ ...initProps, overflow: 'hidden', height: endHeight },
|
|
3143
3135
|
Math.round(duration * (1 - currentHeight / endHeight)),
|
|
3144
3136
|
transition) :
|
|
3145
3137
|
|
|
@@ -3311,7 +3303,7 @@
|
|
|
3311
3303
|
animation: [true],
|
|
3312
3304
|
selClose: '.uk-alert-close',
|
|
3313
3305
|
duration: 150,
|
|
3314
|
-
hideProps:
|
|
3306
|
+
hideProps: { opacity: 0, ...Togglable.data.hideProps } },
|
|
3315
3307
|
|
|
3316
3308
|
|
|
3317
3309
|
events: [
|
|
@@ -5459,7 +5451,7 @@
|
|
|
5459
5451
|
|
|
5460
5452
|
|
|
5461
5453
|
function openDialog(tmpl, options, hideFn, submitFn) {
|
|
5462
|
-
options =
|
|
5454
|
+
options = { bgClose: false, escClose: true, labels: modal.labels, ...options };
|
|
5463
5455
|
|
|
5464
5456
|
const dialog = modal.dialog(tmpl(options), options);
|
|
5465
5457
|
const deferred = new Deferred();
|
|
@@ -5588,10 +5580,11 @@
|
|
|
5588
5580
|
this.$create(
|
|
5589
5581
|
'drop',
|
|
5590
5582
|
dropdowns.filter((el) => !this.getDropdown(el)),
|
|
5591
|
-
|
|
5583
|
+
{
|
|
5584
|
+
...this.$props,
|
|
5592
5585
|
boundary: this.boundary,
|
|
5593
5586
|
pos: this.pos,
|
|
5594
|
-
offset: this.dropbar || this.offset })
|
|
5587
|
+
offset: this.dropbar || this.offset });
|
|
5595
5588
|
|
|
5596
5589
|
|
|
5597
5590
|
},
|