uikit 3.14.0 → 3.14.1-dev.b7e81c46b
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 +15 -0
- 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 +19 -5
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +19 -5
- 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 +60 -60
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +60 -60
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +60 -60
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- 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 +19 -5
- 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 +42 -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 +101 -71
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/accordion.js +21 -5
- package/src/js/mixin/parallax.js +59 -59
- package/src/js/mixin/togglable.js +16 -2
- package/tests/parallax.html +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.14.
|
|
1
|
+
/*! UIkit 3.14.1-dev.b7e81c46b | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(o,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitupload",["uikit-util"],n):(o=typeof globalThis<"u"?globalThis:o||self,o.UIkitUpload=n(o.UIkit.util))})(this,function(o){"use strict";var n={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: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){i(e);const t=e.dataTransfer;!(t!=null&&t.files)||(o.removeClass(this.$el,this.clsDragover),this.upload(t.files))},dragenter(e){i(e)},dragover(e){i(e),o.addClass(this.$el,this.clsDragover)},dragleave(e){i(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.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 t=c(e,this.concurrent),s=async a=>{const l=new FormData;a.forEach(r=>l.append(this.name,r));for(const r in this.params)l.append(r,this.params[r]);try{const r=await o.ajax(this.url,{data:l,method:this.method,responseType:this.type,beforeSend:h=>{const{xhr:p}=h;p.upload&&o.on(p.upload,"progress",this.progress);for(const m of["loadStart","load","loadEnd","abort"])o.on(p,m.toLowerCase(),this[m]);return this.beforeSend(h)}});this.complete(r),t.length?await s(t.shift()):this.completeAll(r)}catch(r){this.error(r)}};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 c(e,t){const s=[];for(let a=0;a<e.length;a+=t)s.push(e.slice(a,a+t));return s}function i(e){e.preventDefault(),e.stopPropagation()}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",n),n});
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.
|
|
1
|
+
/*! UIkit 3.14.1-dev.b7e81c46b | 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() :
|
|
@@ -2954,7 +2954,7 @@
|
|
|
2954
2954
|
UIkit.data = '__uikit__';
|
|
2955
2955
|
UIkit.prefix = 'uk-';
|
|
2956
2956
|
UIkit.options = {};
|
|
2957
|
-
UIkit.version = '3.14.
|
|
2957
|
+
UIkit.version = '3.14.1-dev.b7e81c46b';
|
|
2958
2958
|
|
|
2959
2959
|
globalAPI(UIkit);
|
|
2960
2960
|
hooksAPI(UIkit);
|
|
@@ -3046,6 +3046,7 @@
|
|
|
3046
3046
|
cls: Boolean,
|
|
3047
3047
|
animation: 'list',
|
|
3048
3048
|
duration: Number,
|
|
3049
|
+
velocity: Number,
|
|
3049
3050
|
origin: String,
|
|
3050
3051
|
transition: String },
|
|
3051
3052
|
|
|
@@ -3054,8 +3055,9 @@
|
|
|
3054
3055
|
cls: false,
|
|
3055
3056
|
animation: [false],
|
|
3056
3057
|
duration: 200,
|
|
3058
|
+
velocity: 0.2,
|
|
3057
3059
|
origin: false,
|
|
3058
|
-
transition: '
|
|
3060
|
+
transition: 'ease',
|
|
3059
3061
|
clsEnter: 'uk-togglabe-enter',
|
|
3060
3062
|
clsLeave: 'uk-togglabe-leave',
|
|
3061
3063
|
|
|
@@ -3065,7 +3067,8 @@
|
|
|
3065
3067
|
paddingTop: '',
|
|
3066
3068
|
paddingBottom: '',
|
|
3067
3069
|
marginTop: '',
|
|
3068
|
-
marginBottom: ''
|
|
3070
|
+
marginBottom: '',
|
|
3071
|
+
boxShadow: '' },
|
|
3069
3072
|
|
|
3070
3073
|
|
|
3071
3074
|
hideProps: {
|
|
@@ -3074,7 +3077,8 @@
|
|
|
3074
3077
|
paddingTop: 0,
|
|
3075
3078
|
paddingBottom: 0,
|
|
3076
3079
|
marginTop: 0,
|
|
3077
|
-
marginBottom: 0
|
|
3080
|
+
marginBottom: 0,
|
|
3081
|
+
boxShadow: 'none' } },
|
|
3078
3082
|
|
|
3079
3083
|
|
|
3080
3084
|
|
|
@@ -3169,7 +3173,15 @@
|
|
|
3169
3173
|
|
|
3170
3174
|
|
|
3171
3175
|
|
|
3172
|
-
function toggleHeight(_ref3)
|
|
3176
|
+
function toggleHeight(_ref3)
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
|
|
3183
|
+
|
|
3184
|
+
{let { isToggled, duration, velocity, initProps, hideProps, transition, _toggle } = _ref3;
|
|
3173
3185
|
return (el, show) => {
|
|
3174
3186
|
const inProgress = Transition.inProgress(el);
|
|
3175
3187
|
const inner = el.hasChildNodes() ?
|
|
@@ -3190,6 +3202,8 @@
|
|
|
3190
3202
|
fastdom.flush();
|
|
3191
3203
|
|
|
3192
3204
|
const endHeight = height(el) + (inProgress ? 0 : inner);
|
|
3205
|
+
duration = velocity * el.offsetHeight + duration;
|
|
3206
|
+
|
|
3193
3207
|
height(el, currentHeight);
|
|
3194
3208
|
|
|
3195
3209
|
return (
|
|
@@ -3237,7 +3251,6 @@
|
|
|
3237
3251
|
multiple: Boolean,
|
|
3238
3252
|
toggle: String,
|
|
3239
3253
|
content: String,
|
|
3240
|
-
transition: String,
|
|
3241
3254
|
offset: Number },
|
|
3242
3255
|
|
|
3243
3256
|
|
|
@@ -3250,19 +3263,16 @@
|
|
|
3250
3263
|
clsOpen: 'uk-open',
|
|
3251
3264
|
toggle: '> .uk-accordion-title',
|
|
3252
3265
|
content: '> .uk-accordion-content',
|
|
3253
|
-
transition: 'ease',
|
|
3254
3266
|
offset: 0 },
|
|
3255
3267
|
|
|
3256
3268
|
|
|
3257
3269
|
computed: {
|
|
3258
3270
|
items: {
|
|
3259
3271
|
get(_ref, $el) {let { targets } = _ref;
|
|
3260
|
-
return $$(targets, $el)
|
|
3272
|
+
return $$(targets, $el);
|
|
3261
3273
|
},
|
|
3262
3274
|
|
|
3263
3275
|
watch(items, prev) {
|
|
3264
|
-
items.forEach((el) => hide($(this.content, el), !hasClass(el, this.clsOpen)));
|
|
3265
|
-
|
|
3266
3276
|
if (prev || hasClass(items, this.clsOpen)) {
|
|
3267
3277
|
return;
|
|
3268
3278
|
}
|
|
@@ -3281,7 +3291,27 @@
|
|
|
3281
3291
|
|
|
3282
3292
|
toggles(_ref2) {let { toggle } = _ref2;
|
|
3283
3293
|
return this.items.map((item) => $(toggle, item));
|
|
3284
|
-
}
|
|
3294
|
+
},
|
|
3295
|
+
|
|
3296
|
+
contents: {
|
|
3297
|
+
get(_ref3) {let { content } = _ref3;
|
|
3298
|
+
return this.items.map((item) => $(content, item));
|
|
3299
|
+
},
|
|
3300
|
+
|
|
3301
|
+
watch(items) {
|
|
3302
|
+
for (const el of items) {
|
|
3303
|
+
hide(
|
|
3304
|
+
el,
|
|
3305
|
+
!hasClass(
|
|
3306
|
+
this.items.find((item) => item.contains(el)),
|
|
3307
|
+
this.clsOpen));
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
}
|
|
3311
|
+
},
|
|
3312
|
+
|
|
3313
|
+
immediate: true } },
|
|
3314
|
+
|
|
3285
3315
|
|
|
3286
3316
|
|
|
3287
3317
|
connected() {
|