uikit 3.23.1 → 3.23.2-dev.facbdc6d9
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 +84 -83
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +84 -83
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- 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 +3 -4
- 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 +85 -84
- package/dist/js/uikit.min.js +1 -1
- package/package.json +2 -2
- package/src/js/core/margin.js +0 -1
- package/src/js/mixin/internal/animate-fade.js +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.2-dev.facbdc6d9 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -73,8 +73,7 @@
|
|
|
73
73
|
options: {
|
|
74
74
|
attributes: true,
|
|
75
75
|
attributeFilter: ["style"]
|
|
76
|
-
}
|
|
77
|
-
target: ({ $el }) => [$el, ...uikitUtil.children($el)]
|
|
76
|
+
}
|
|
78
77
|
}),
|
|
79
78
|
resize({
|
|
80
79
|
target: ({ $el }) => [$el, ...uikitUtil.children($el)]
|
|
@@ -133,6 +132,88 @@
|
|
|
133
132
|
};
|
|
134
133
|
}
|
|
135
134
|
|
|
135
|
+
const clsLeave = "uk-transition-leave";
|
|
136
|
+
const clsEnter = "uk-transition-enter";
|
|
137
|
+
function fade(action, target, duration, stagger = 0) {
|
|
138
|
+
const index = transitionIndex(target, true);
|
|
139
|
+
const propsIn = { opacity: 1 };
|
|
140
|
+
const propsOut = { opacity: 0 };
|
|
141
|
+
const wrapIndexFn = (fn) => () => index === transitionIndex(target) ? fn() : Promise.reject();
|
|
142
|
+
const leaveFn = wrapIndexFn(async () => {
|
|
143
|
+
uikitUtil.addClass(target, clsLeave);
|
|
144
|
+
await Promise.all(
|
|
145
|
+
getTransitionNodes(target).map(
|
|
146
|
+
(child, i) => new Promise(
|
|
147
|
+
(resolve) => setTimeout(
|
|
148
|
+
() => uikitUtil.Transition.start(child, propsOut, duration / 2, "ease").then(
|
|
149
|
+
resolve
|
|
150
|
+
),
|
|
151
|
+
i * stagger
|
|
152
|
+
)
|
|
153
|
+
)
|
|
154
|
+
)
|
|
155
|
+
);
|
|
156
|
+
uikitUtil.removeClass(target, clsLeave);
|
|
157
|
+
});
|
|
158
|
+
const enterFn = wrapIndexFn(async () => {
|
|
159
|
+
const oldHeight = uikitUtil.height(target);
|
|
160
|
+
uikitUtil.addClass(target, clsEnter);
|
|
161
|
+
action();
|
|
162
|
+
uikitUtil.css(uikitUtil.children(target), { opacity: 0 });
|
|
163
|
+
uikitUtil.height(target, oldHeight);
|
|
164
|
+
await awaitTimeout();
|
|
165
|
+
uikitUtil.height(target, "");
|
|
166
|
+
const nodes = uikitUtil.children(target);
|
|
167
|
+
const newHeight = uikitUtil.height(target);
|
|
168
|
+
uikitUtil.css(target, "alignContent", "flex-start");
|
|
169
|
+
uikitUtil.height(target, oldHeight);
|
|
170
|
+
const transitionNodes = getTransitionNodes(target);
|
|
171
|
+
uikitUtil.css(nodes, propsOut);
|
|
172
|
+
const transitions = transitionNodes.map(async (child, i) => {
|
|
173
|
+
await awaitTimeout(i * stagger);
|
|
174
|
+
await uikitUtil.Transition.start(child, propsIn, duration / 2, "ease");
|
|
175
|
+
});
|
|
176
|
+
if (oldHeight !== newHeight) {
|
|
177
|
+
transitions.push(
|
|
178
|
+
uikitUtil.Transition.start(
|
|
179
|
+
target,
|
|
180
|
+
{ height: newHeight },
|
|
181
|
+
duration / 2 + transitionNodes.length * stagger,
|
|
182
|
+
"ease"
|
|
183
|
+
)
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
await Promise.all(transitions).then(() => {
|
|
187
|
+
uikitUtil.removeClass(target, clsEnter);
|
|
188
|
+
if (index === transitionIndex(target)) {
|
|
189
|
+
uikitUtil.css(target, { height: "", alignContent: "" });
|
|
190
|
+
uikitUtil.css(nodes, { opacity: "" });
|
|
191
|
+
delete target.dataset.transition;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
return uikitUtil.hasClass(target, clsLeave) ? waitTransitionend(target).then(enterFn) : uikitUtil.hasClass(target, clsEnter) ? waitTransitionend(target).then(leaveFn).then(enterFn) : leaveFn().then(enterFn);
|
|
196
|
+
}
|
|
197
|
+
function transitionIndex(target, next) {
|
|
198
|
+
if (next) {
|
|
199
|
+
target.dataset.transition = 1 + transitionIndex(target);
|
|
200
|
+
}
|
|
201
|
+
return uikitUtil.toNumber(target.dataset.transition) || 0;
|
|
202
|
+
}
|
|
203
|
+
function waitTransitionend(target) {
|
|
204
|
+
return Promise.all(
|
|
205
|
+
uikitUtil.children(target).filter(uikitUtil.Transition.inProgress).map(
|
|
206
|
+
(el) => new Promise((resolve) => uikitUtil.once(el, "transitionend transitioncanceled", resolve))
|
|
207
|
+
)
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
function getTransitionNodes(target) {
|
|
211
|
+
return getRows(uikitUtil.children(target)).flat().filter(uikitUtil.isVisible);
|
|
212
|
+
}
|
|
213
|
+
function awaitTimeout(timeout) {
|
|
214
|
+
return new Promise((resolve) => setTimeout(resolve, timeout));
|
|
215
|
+
}
|
|
216
|
+
|
|
136
217
|
async function slide(action, target, duration) {
|
|
137
218
|
await awaitFrame();
|
|
138
219
|
let nodes = uikitUtil.children(target);
|
|
@@ -221,86 +302,6 @@
|
|
|
221
302
|
return new Promise((resolve) => requestAnimationFrame(resolve));
|
|
222
303
|
}
|
|
223
304
|
|
|
224
|
-
const clsLeave = "uk-transition-leave";
|
|
225
|
-
const clsEnter = "uk-transition-enter";
|
|
226
|
-
function fade(action, target, duration, stagger = 0) {
|
|
227
|
-
const index = transitionIndex(target, true);
|
|
228
|
-
const propsIn = { opacity: 1 };
|
|
229
|
-
const propsOut = { opacity: 0 };
|
|
230
|
-
const wrapIndexFn = (fn) => () => index === transitionIndex(target) ? fn() : Promise.reject();
|
|
231
|
-
const leaveFn = wrapIndexFn(async () => {
|
|
232
|
-
uikitUtil.addClass(target, clsLeave);
|
|
233
|
-
await Promise.all(
|
|
234
|
-
getTransitionNodes(target).map(
|
|
235
|
-
(child, i) => new Promise(
|
|
236
|
-
(resolve) => setTimeout(
|
|
237
|
-
() => uikitUtil.Transition.start(child, propsOut, duration / 2, "ease").then(
|
|
238
|
-
resolve
|
|
239
|
-
),
|
|
240
|
-
i * stagger
|
|
241
|
-
)
|
|
242
|
-
)
|
|
243
|
-
)
|
|
244
|
-
);
|
|
245
|
-
uikitUtil.removeClass(target, clsLeave);
|
|
246
|
-
});
|
|
247
|
-
const enterFn = wrapIndexFn(async () => {
|
|
248
|
-
const oldHeight = uikitUtil.height(target);
|
|
249
|
-
uikitUtil.addClass(target, clsEnter);
|
|
250
|
-
action();
|
|
251
|
-
uikitUtil.css(uikitUtil.children(target), { opacity: 0 });
|
|
252
|
-
await awaitFrame();
|
|
253
|
-
const nodes = uikitUtil.children(target);
|
|
254
|
-
const newHeight = uikitUtil.height(target);
|
|
255
|
-
uikitUtil.css(target, "alignContent", "flex-start");
|
|
256
|
-
uikitUtil.height(target, oldHeight);
|
|
257
|
-
const transitionNodes = getTransitionNodes(target);
|
|
258
|
-
uikitUtil.css(nodes, propsOut);
|
|
259
|
-
const transitions = transitionNodes.map(async (child, i) => {
|
|
260
|
-
await awaitTimeout(i * stagger);
|
|
261
|
-
await uikitUtil.Transition.start(child, propsIn, duration / 2, "ease");
|
|
262
|
-
});
|
|
263
|
-
if (oldHeight !== newHeight) {
|
|
264
|
-
transitions.push(
|
|
265
|
-
uikitUtil.Transition.start(
|
|
266
|
-
target,
|
|
267
|
-
{ height: newHeight },
|
|
268
|
-
duration / 2 + transitionNodes.length * stagger,
|
|
269
|
-
"ease"
|
|
270
|
-
)
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
await Promise.all(transitions).then(() => {
|
|
274
|
-
uikitUtil.removeClass(target, clsEnter);
|
|
275
|
-
if (index === transitionIndex(target)) {
|
|
276
|
-
uikitUtil.css(target, { height: "", alignContent: "" });
|
|
277
|
-
uikitUtil.css(nodes, { opacity: "" });
|
|
278
|
-
delete target.dataset.transition;
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
|
-
return uikitUtil.hasClass(target, clsLeave) ? waitTransitionend(target).then(enterFn) : uikitUtil.hasClass(target, clsEnter) ? waitTransitionend(target).then(leaveFn).then(enterFn) : leaveFn().then(enterFn);
|
|
283
|
-
}
|
|
284
|
-
function transitionIndex(target, next) {
|
|
285
|
-
if (next) {
|
|
286
|
-
target.dataset.transition = 1 + transitionIndex(target);
|
|
287
|
-
}
|
|
288
|
-
return uikitUtil.toNumber(target.dataset.transition) || 0;
|
|
289
|
-
}
|
|
290
|
-
function waitTransitionend(target) {
|
|
291
|
-
return Promise.all(
|
|
292
|
-
uikitUtil.children(target).filter(uikitUtil.Transition.inProgress).map(
|
|
293
|
-
(el) => new Promise((resolve) => uikitUtil.once(el, "transitionend transitioncanceled", resolve))
|
|
294
|
-
)
|
|
295
|
-
);
|
|
296
|
-
}
|
|
297
|
-
function getTransitionNodes(target) {
|
|
298
|
-
return getRows(uikitUtil.children(target)).flat().filter(uikitUtil.isVisible);
|
|
299
|
-
}
|
|
300
|
-
function awaitTimeout(timeout) {
|
|
301
|
-
return new Promise((resolve) => setTimeout(resolve, timeout));
|
|
302
|
-
}
|
|
303
|
-
|
|
304
305
|
var Animate = {
|
|
305
306
|
props: {
|
|
306
307
|
duration: Number,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.23.1 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=b(e.UIkit.util))})(this,function(e){"use strict";function b(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&N(o,o._queued),o._queued=null})),o._queued.add(s.type||s))}function N(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function z(o){return S(e.observeResize,o,"resize")}function T(o){return S(e.observeMutation,o)}function S(o,s,n){return{observe:o,handler(){b(this,n)},...s}}T({options:{childList:!0}}),T({options:{attributes:!0,attributeFilter:["style"]},target:({$el:o})=>[o,...e.children(o)]}),z({target:({$el:o})=>[o,...e.children(o)]});function q(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=v(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=v(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const p=v(r[d],n);if(c.left>=p.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function v(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}async function A(o,s,n){await w();let t=e.children(s);const c=t.map(f=>C(f,!0)),a={...e.css(s,["height","padding"]),display:"block"},r=t.concat(s);await Promise.all(r.map(e.Transition.cancel)),e.css(r,"transitionProperty","none"),await o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.css(r,"transitionProperty","");const h=e.attr(s,"style"),d=e.css(s,["height","padding"]),[p,m]=H(s,t,c),l=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,i)=>m[i]&&e.css(f,m[i])),e.css(s,a),e.trigger(s,"scroll"),await w();const g=t.map((f,i)=>e.parent(f)===s&&e.Transition.start(f,p[i],n,"ease")).concat(e.Transition.start(s,d,n,"ease"));try{await Promise.all(g),t.forEach((f,i)=>{e.attr(f,l[i]),e.parent(f)===s&&e.css(f,"display",p[i].opacity===0?"none":"")}),e.attr(s,"style",h)}catch{e.attr(t,"style",""),L(s,a)}}function C(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,...x(o)}:!1}function H(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?x(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||C(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function L(o,s){for(const n in s)e.css(o,n,"")}function x(o){const{height:s,width:n}=e.dimensions(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function w(){return new Promise(o=>requestAnimationFrame(o))}const y="uk-transition-leave",P="uk-transition-enter";function I(o,s,n,t=0){const c=u(s,!0),a={opacity:1},r={opacity:0},h=m=>()=>c===u(s)?m():Promise.reject(),d=h(async()=>{e.addClass(s,y),await Promise.all(D(s).map((m,l)=>new Promise(g=>setTimeout(()=>e.Transition.start(m,r,n/2,"ease").then(g),l*t)))),e.removeClass(s,y)}),p=h(async()=>{const m=e.height(s);e.addClass(s,P),o(),e.css(e.children(s),{opacity:0}),await w();const l=e.children(s),g=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,m);const f=D(s);e.css(l,r);const i=f.map(async(Q,X)=>{await M(X*t),await e.Transition.start(Q,a,n/2,"ease")});m!==g&&i.push(e.Transition.start(s,{height:g},n/2+f.length*t,"ease")),await Promise.all(i).then(()=>{e.removeClass(s,P),c===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,y)?E(s).then(p):e.hasClass(s,P)?E(s).then(d).then(p):d().then(p)}function u(o,s){return s&&(o.dataset.transition=1+u(o)),e.toNumber(o.dataset.transition)||0}function E(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function D(o){return q(e.children(o)).flat().filter(e.isVisible)}function M(o){return new Promise(s=>setTimeout(s,o))}var V={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?I:n==="delayed-fade"?(...c)=>I(...c,40):n?A:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},R={connected(){e.addClass(this.$el,this.$options.id)}},_={mixins:[R,V],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:e.pointerDown,passive:!1,handler(o){this.init(o)}},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){e.css(s,{touchAction:"",userSelect:""}),e.css(o,{touchAction:"none",userSelect:"none"})}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=W(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const p=this.getSortable(a),m=G(r.target,d,a,s,n,r===p&&o.moved!==d);m!==!1&&(m&&a===m||(r!==p?(p.remove(a),o.moved=d):delete o.moved,r.insert(a,m),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.pos=e.getEventPos(o),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=O(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),j(this.pos),this.move(o)},move:K(function(o){e.assign(this.pos,e.getEventPos(o)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o),this.$emit("move")}),end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;B();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem),s&&s.previousElementSibling!==o?this.animate(()=>e.before(s,o)):!s&&this.target.lastElementChild!==o&&this.animate(()=>e.append(this.target,o))},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let F;function j(o){let s=Date.now();F=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:p,height:m}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(p>t&&p-35<t)r+=c;else return;if(r>0&&r<h-m)return a.scrollTop=r,!0})},15)}function B(){clearInterval(F)}function O(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function W(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function G(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return J(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=$([r.top,r.bottom],[h.top,h.bottom]),[p,m,l,g]=d?[t,"width","left","right"]:[c,"height","top","bottom"],f=h[m]<r[m]?r[m]-h[m]:0;return h[l]<r[l]?f&&p<r[l]+f?!1:s.nextElementSibling:f&&p>r[g]-f?!1:s}function J(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const p=e.dimensions(d);return!$([h.left,h.right],[p.left,p.right])})});return n&&e.remove(s),c}function $(o,s){return o[1]>s[0]&&s[1]>o[0]}function K(o){let s;return function(...n){s||(s=!0,o.call(this,...n),requestAnimationFrame(()=>s=!1))}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",_),_});
|
|
1
|
+
/*! UIkit 3.23.2-dev.facbdc6d9 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=b(e.UIkit.util))})(this,function(e){"use strict";function b(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&z(o,o._queued),o._queued=null})),o._queued.add(s.type||s))}function z(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function q(o){return T(e.observeResize,o,"resize")}function P(o){return T(e.observeMutation,o)}function T(o,s,n){return{observe:o,handler(){b(this,n)},...s}}P({options:{childList:!0}}),P({options:{attributes:!0,attributeFilter:["style"]}}),q({target:({$el:o})=>[o,...e.children(o)]});function A(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=v(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=v(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const m=v(r[d],n);if(c.left>=m.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function v(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}const w="uk-transition-leave",y="uk-transition-enter";function S(o,s,n,t=0){const c=u(s,!0),a={opacity:1},r={opacity:0},h=p=>()=>c===u(s)?p():Promise.reject(),d=h(async()=>{e.addClass(s,w),await Promise.all(x(s).map((p,l)=>new Promise(g=>setTimeout(()=>e.Transition.start(p,r,n/2,"ease").then(g),l*t)))),e.removeClass(s,w)}),m=h(async()=>{const p=e.height(s);e.addClass(s,y),o(),e.css(e.children(s),{opacity:0}),e.height(s,p),await I(),e.height(s,"");const l=e.children(s),g=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,p);const f=x(s);e.css(l,r);const i=f.map(async(Q,X)=>{await I(X*t),await e.Transition.start(Q,a,n/2,"ease")});p!==g&&i.push(e.Transition.start(s,{height:g},n/2+f.length*t,"ease")),await Promise.all(i).then(()=>{e.removeClass(s,y),c===u(s)&&(e.css(s,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete s.dataset.transition)})});return e.hasClass(s,w)?C(s).then(m):e.hasClass(s,y)?C(s).then(d).then(m):d().then(m)}function u(o,s){return s&&(o.dataset.transition=1+u(o)),e.toNumber(o.dataset.transition)||0}function C(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function x(o){return A(e.children(o)).flat().filter(e.isVisible)}function I(o){return new Promise(s=>setTimeout(s,o))}async function H(o,s,n){await _();let t=e.children(s);const c=t.map(f=>E(f,!0)),a={...e.css(s,["height","padding"]),display:"block"},r=t.concat(s);await Promise.all(r.map(e.Transition.cancel)),e.css(r,"transitionProperty","none"),await o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.css(r,"transitionProperty","");const h=e.attr(s,"style"),d=e.css(s,["height","padding"]),[m,p]=L(s,t,c),l=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,i)=>p[i]&&e.css(f,p[i])),e.css(s,a),e.trigger(s,"scroll"),await _();const g=t.map((f,i)=>e.parent(f)===s&&e.Transition.start(f,m[i],n,"ease")).concat(e.Transition.start(s,d,n,"ease"));try{await Promise.all(g),t.forEach((f,i)=>{e.attr(f,l[i]),e.parent(f)===s&&e.css(f,"display",m[i].opacity===0?"none":"")}),e.attr(s,"style",h)}catch{e.attr(t,"style",""),M(s,a)}}function E(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,...D(o)}:!1}function L(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?D(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||E(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function M(o,s){for(const n in s)e.css(o,n,"")}function D(o){const{height:s,width:n}=e.dimensions(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function _(){return new Promise(o=>requestAnimationFrame(o))}var V={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?S:n==="delayed-fade"?(...c)=>S(...c,40):n?H:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},R={connected(){e.addClass(this.$el,this.$options.id)}},F={mixins:[R,V],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:e.pointerDown,passive:!1,handler(o){this.init(o)}},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){e.css(s,{touchAction:"",userSelect:""}),e.css(o,{touchAction:"none",userSelect:"none"})}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=W(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const m=this.getSortable(a),p=G(r.target,d,a,s,n,r===m&&o.moved!==d);p!==!1&&(p&&a===p||(r!==m?(m.remove(a),o.moved=d):delete o.moved,r.insert(a,p),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.pos=e.getEventPos(o),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=O(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),j(this.pos),this.move(o)},move:K(function(o){e.assign(this.pos,e.getEventPos(o)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o),this.$emit("move")}),end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;B();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem),s&&s.previousElementSibling!==o?this.animate(()=>e.before(s,o)):!s&&this.target.lastElementChild!==o&&this.animate(()=>e.append(this.target,o))},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let $;function j(o){let s=Date.now();$=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:m,height:p}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(m>t&&m-35<t)r+=c;else return;if(r>0&&r<h-p)return a.scrollTop=r,!0})},15)}function B(){clearInterval($)}function O(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function W(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function G(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return J(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=N([r.top,r.bottom],[h.top,h.bottom]),[m,p,l,g]=d?[t,"width","left","right"]:[c,"height","top","bottom"],f=h[p]<r[p]?r[p]-h[p]:0;return h[l]<r[l]?f&&m<r[l]+f?!1:s.nextElementSibling:f&&m>r[g]-f?!1:s}function J(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const m=e.dimensions(d);return!N([h.left,h.right],[m.left,m.right])})});return n&&e.remove(s),c}function N(o,s){return o[1]>s[0]&&s[1]>o[0]}function K(o){let s;return function(...n){s||(s=!0,o.call(this,...n),requestAnimationFrame(()=>s=!1))}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",F),F});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.2-dev.facbdc6d9 | https://www.getuikit.com | (c) 2014 - 2025 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.23.
|
|
1
|
+
/*! UIkit 3.23.2-dev.facbdc6d9 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikittooltip",["uikit-util"],p):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitTooltip=p(t.UIkit.util))})(this,function(t){"use strict";function p(s,i=[]){try{return s?t.startsWith(s,"{")?JSON.parse(s):i.length&&!t.includes(s,":")?{[i[0]]:s}:s.split(";").reduce((o,e)=>{const[n,r]=e.split(/:(.*)/);return n&&!t.isUndefined(r)&&(o[n.trim()]=r.trim()),o},{}):{}}catch{return{}}}t.memoize((s,i)=>{const o=Object.keys(i),e=o.concat(s).map(n=>[t.hyphenate(n),`data-${t.hyphenate(n)}`]).flat();return{attributes:o,filter:e}});let E=1;function A(s,i=null){return(i==null?void 0:i.id)||`${s.$options.id}-${E++}`}var B={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},I={props:{pos:String,offset:Boolean,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${t.isRtl?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=t.includes(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(s,i,o){let e=[this.getPositionOffset(s),this.getShiftOffset(s)];const n=[this.flip&&"flip",this.shift&&"shift"],r={element:[this.inset?this.dir:t.flipPosition(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const a in r)r[a].reverse();e.reverse(),n.reverse()}const h=T(s),c=t.dimensions(s);t.css(s,{top:-c.height,left:-c.width}),t.positionAt(s,i,{attach:r,offset:e,boundary:o,placement:n,viewportOffset:this.getViewportOffset(s)}),h()},getPositionOffset(s=this.$el){return t.toPx(this.offset===!1?t.css(s,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",s)*(t.includes(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(s=this.$el){return this.align==="center"?0:t.toPx(t.css(s,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",s)*(t.includes(["left","top"],this.align)?1:-1)},getViewportOffset(s){return t.toPx(t.css(s,"--uk-position-viewport-offset"))}}};function T(s){const i=t.scrollParent(s),{scrollTop:o}=i;return()=>{o!==i.scrollTop&&(i.scrollTop=o)}}var D={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:s})=>!!s[0],hasTransition:({animation:s})=>["slide","reveal"].some(i=>t.startsWith(s[0],i))},methods:{async toggleElement(s,i,o){try{return await Promise.all(t.toNodes(s).map(e=>{const n=t.isBoolean(i)?i:!this.isToggled(e);if(!t.trigger(e,`before${n?"show":"hide"}`,[this]))return Promise.reject();const r=(t.isFunction(o)?o:o===!1||!this.hasAnimation?_:this.hasTransition?j:F)(e,n,this),h=n?this.clsEnter:this.clsLeave;t.addClass(e,h),t.trigger(e,n?"show":"hide",[this]);const c=()=>{var a;if(t.removeClass(e,h),t.trigger(e,n?"shown":"hidden",[this]),n){const l=T(e);(a=t.$$("[autofocus]",e).find(t.isVisible))==null||a.focus(),l()}};return r?r.then(c,()=>(t.removeClass(e,h),Promise.reject())):c()})),!0}catch{return!1}},isToggled(s=this.$el){return s=t.toNode(s),t.hasClass(s,this.clsEnter)?!0:t.hasClass(s,this.clsLeave)?!1:this.cls?t.hasClass(s,this.cls.split(" ")[0]):t.isVisible(s)},_toggle(s,i){if(!s)return;i=!!i;let o;this.cls?(o=t.includes(this.cls," ")||i!==t.hasClass(s,this.cls),o&&t.toggleClass(s,this.cls,t.includes(this.cls," ")?void 0:i)):(o=i===s.hidden,o&&(s.hidden=!i)),o&&t.trigger(s,"toggled",[i,this])}}};function _(s,i,{_toggle:o}){return t.Animation.cancel(s),t.Transition.cancel(s),o(s,i)}async function j(s,i,{animation:o,duration:e,velocity:n,transition:r,_toggle:h}){var c;const[a="reveal",l="top"]=((c=o[0])==null?void 0:c.split("-"))||[],b=[["left","right"],["top","bottom"]],y=b[t.includes(b[0],l)?0:1],k=y[1]===l,v=["width","height"][b.indexOf(y)],f=`margin-${y[0]}`,w=`margin-${l}`;let g=t.dimensions(s)[v];const W=t.Transition.inProgress(s);await t.Transition.cancel(s),i&&h(s,!0);const z=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",f,w].map(O=>[O,s.style[O]])),m=t.dimensions(s),u=t.toFloat(t.css(s,f)),x=t.toFloat(t.css(s,w)),d=m[v]+x;!W&&!i&&(g+=x);const[$]=t.wrapInner(s,"<div>");t.css($,{boxSizing:"border-box",height:m.height,width:m.width,...t.css(s,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",w])}),t.css(s,{padding:0,border:0,minWidth:0,minHeight:0,[w]:0,width:m.width,height:m.height,overflow:"hidden",[v]:g});const S=g/d;e=(n*d+e)*(i?1-S:S);const C={[v]:i?d:0};k&&(t.css(s,f,d-g+u),C[f]=i?u:d+u),!k^a==="reveal"&&(t.css($,f,-d+g),t.Transition.start($,{[f]:i?0:-d},e,r));try{await t.Transition.start(s,C,e,r)}finally{t.css(s,z),t.unwrap($.firstChild),i||h(s,!1)}}function F(s,i,o){const{animation:e,duration:n,_toggle:r}=o;return i?(r(s,!0),t.Animation.in(s,e[0],n,o.origin)):t.Animation.out(s,e[1]||e[0],n,o.origin).then(()=>r(s,!1))}const L={ESC:27};var P={mixins:[B,D,I],data:{pos:"top",animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},connected(){N(this.$el)},disconnected(){this.hide()},methods:{show(){if(this.isToggled(this.tooltip||null))return;const{delay:s=0,title:i}=V(this.$options);if(!i)return;const o=t.attr(this.$el,"title"),e=t.on(this.$el,["blur",t.pointerLeave],r=>!t.isTouch(r)&&this.hide());this.reset=()=>{t.attr(this.$el,{title:o,"aria-describedby":null}),e()};const n=A(this);t.attr(this.$el,{title:null,"aria-describedby":n}),clearTimeout(this.showTimer),this.showTimer=setTimeout(()=>this._show(i,n),s)},async hide(){var s;t.matches(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),(s=this.reset)==null||s.call(this),t.remove(this.tooltip),this.tooltip=null)},async _show(s,i){this.tooltip=t.append(this.container,`<div id="${i}" class="uk-${this.$options.name}" role="tooltip"> <div class="uk-${this.$options.name}-inner">${s}</div> </div>`),t.on(this.tooltip,"toggled",(o,e)=>{if(!e)return;const n=()=>this.positionAt(this.tooltip,this.$el);n();const[r,h]=U(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${t.flipPosition(r)}-${h}`:`${h}-${t.flipPosition(r)}`;const c=[t.once(document,`keydown ${t.pointerDown}`,this.hide,!1,a=>a.type===t.pointerDown&&!this.$el.contains(a.target)||a.type==="keydown"&&a.keyCode===L.ESC),t.on([document,...t.overflowParents(this.$el)],"scroll",n,{passive:!0})];t.once(this.tooltip,"hide",()=>c.forEach(a=>a()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{[`focus ${t.pointerEnter} ${t.pointerDown}`](s){(!t.isTouch(s)||s.type===t.pointerDown)&&document.readyState!=="loading"&&this.show()}}};function N(s){t.isFocusable(s)||t.attr(s,"tabindex","0")}function U(s,i,[o,e]){const n=t.offset(s),r=t.offset(i),h=[["left","right"],["top","bottom"]];for(const a of h){if(n[a[0]]>=r[a[1]]){o=a[1];break}if(n[a[1]]<=r[a[0]]){o=a[0];break}}return e=(t.includes(h[0],o)?h[1]:h[0]).find(a=>n[a]===r[a])||"center",[o,e]}function V(s){const{el:i,id:o,data:e}=s;return["delay","title"].reduce((n,r)=>({[r]:t.data(i,r),...n}),{...p(t.data(i,o),["title"]),...e})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("tooltip",P),P});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.2-dev.facbdc6d9 | https://www.getuikit.com | (c) 2014 - 2025 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.23.
|
|
1
|
+
/*! UIkit 3.23.2-dev.facbdc6d9 | https://www.getuikit.com | (c) 2014 - 2025 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++]||""))||""}}},d={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&&!h(this.allow,a.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!h(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:p=>{const{xhr:c}=p;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(p)}});this.complete(n),r.length?await s(r.shift()):this.completeAll(n)}catch(n){this.error(n)}};await s(r.shift())}}};function h(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={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:o.noop,responseType:"",...r};return await s.beforeSend(s),g(e,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)})}return typeof window<"u"&&window.UIkit&&window.UIkit.component("upload",d),d});
|
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.2-dev.facbdc6d9 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
};
|
|
2153
2153
|
App.util = util;
|
|
2154
2154
|
App.options = {};
|
|
2155
|
-
App.version = "3.23.
|
|
2155
|
+
App.version = "3.23.2-dev.facbdc6d9";
|
|
2156
2156
|
|
|
2157
2157
|
const PREFIX = "uk-";
|
|
2158
2158
|
const DATA = "__uikit__";
|
|
@@ -3919,8 +3919,7 @@
|
|
|
3919
3919
|
options: {
|
|
3920
3920
|
attributes: true,
|
|
3921
3921
|
attributeFilter: ["style"]
|
|
3922
|
-
}
|
|
3923
|
-
target: ({ $el }) => [$el, ...children($el)]
|
|
3922
|
+
}
|
|
3924
3923
|
}),
|
|
3925
3924
|
resize({
|
|
3926
3925
|
target: ({ $el }) => [$el, ...children($el)]
|