uikit 3.19.5-dev.9d6b5103b → 3.19.5-dev.ac3a5fd02
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 +4 -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 +55 -55
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +55 -55
- 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 +64 -45
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +64 -45
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +66 -48
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +64 -45
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +65 -46
- 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 +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 +112 -73
- 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 +114 -75
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/boot.js +6 -7
- package/src/js/api/component.js +4 -4
- package/src/js/api/observer.js +17 -5
- package/src/js/components/slider.js +1 -1
- package/src/js/core/drop.js +0 -6
- package/src/js/core/img.js +1 -1
- package/src/js/core/inverse.js +18 -5
- package/src/js/mixin/slider.js +0 -3
- package/src/js/mixin/slideshow.js +3 -0
- package/src/js/util/lang.js +1 -1
- package/src/js/util/selector.js +66 -38
- package/src/js/util/svg.js +1 -12
- package/tests/modal.html +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.
|
|
1
|
+
/*! UIkit 3.19.5-dev.ac3a5fd02 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.
|
|
1
|
+
/*! UIkit 3.19.5-dev.ac3a5fd02 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
return value === void 0;
|
|
148
148
|
}
|
|
149
149
|
function toNode(element) {
|
|
150
|
-
return toNodes(element)[0];
|
|
150
|
+
return element && toNodes(element)[0];
|
|
151
151
|
}
|
|
152
152
|
function toNodes(element) {
|
|
153
153
|
return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
|
|
@@ -206,52 +206,79 @@
|
|
|
206
206
|
function findAll(selector, context) {
|
|
207
207
|
return toNodes(_query(selector, toNode(context), "querySelectorAll"));
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
const
|
|
211
|
-
const
|
|
212
|
-
const
|
|
209
|
+
const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
210
|
+
const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
211
|
+
const trailingCommaRe = /\s*,$/;
|
|
212
|
+
const parseSelector = memoize((selector) => {
|
|
213
|
+
var _a;
|
|
214
|
+
selector = selector.replace(addStarRe, "$1 *");
|
|
215
|
+
let isContextSelector = false;
|
|
216
|
+
const selectors = [];
|
|
217
|
+
for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
|
|
218
|
+
sel = sel.replace(trailingCommaRe, "").trim();
|
|
219
|
+
if (sel[0] === ">") {
|
|
220
|
+
sel = `:scope ${sel}`;
|
|
221
|
+
}
|
|
222
|
+
isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
|
|
223
|
+
selectors.push(sel);
|
|
224
|
+
}
|
|
225
|
+
return {
|
|
226
|
+
selector: selectors.join(","),
|
|
227
|
+
selectors,
|
|
228
|
+
isContextSelector
|
|
229
|
+
};
|
|
230
|
+
});
|
|
213
231
|
function _query(selector, context = document, queryFn) {
|
|
214
232
|
if (!selector || !isString(selector)) {
|
|
215
233
|
return selector;
|
|
216
234
|
}
|
|
217
|
-
|
|
218
|
-
if (isContextSelector
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
if (sel[0] === "-") {
|
|
232
|
-
const selectors = sel.substr(1).trim().split(" ");
|
|
233
|
-
const prev = (ctx || context).previousElementSibling;
|
|
234
|
-
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
235
|
-
sel = selectors.slice(1).join(" ");
|
|
235
|
+
const parsed = parseSelector(selector);
|
|
236
|
+
if (!parsed.isContextSelector) {
|
|
237
|
+
return _doQuery(context, queryFn, parsed.selector);
|
|
238
|
+
}
|
|
239
|
+
selector = "";
|
|
240
|
+
const isSingle = parsed.selectors.length === 1;
|
|
241
|
+
for (let sel of parsed.selectors) {
|
|
242
|
+
let ctx = context;
|
|
243
|
+
if (sel[0] === "!") {
|
|
244
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
245
|
+
ctx = context.parentElement.closest(selectors[0]);
|
|
246
|
+
sel = selectors.slice(1).join(" ").trim();
|
|
247
|
+
if (!sel.length && isSingle) {
|
|
248
|
+
return ctx;
|
|
236
249
|
}
|
|
237
|
-
|
|
238
|
-
|
|
250
|
+
}
|
|
251
|
+
if (sel[0] === "-") {
|
|
252
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
253
|
+
const prev = (ctx || context).previousElementSibling;
|
|
254
|
+
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
255
|
+
sel = selectors.slice(1).join(" ");
|
|
256
|
+
if (!sel.length && isSingle) {
|
|
257
|
+
return ctx;
|
|
239
258
|
}
|
|
259
|
+
} else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
|
|
260
|
+
return _doQuery(
|
|
261
|
+
ctx.parentElement,
|
|
262
|
+
queryFn,
|
|
263
|
+
`:scope :nth-child(${index(ctx) + 1}) ${sel}`
|
|
264
|
+
);
|
|
240
265
|
}
|
|
241
|
-
if (
|
|
242
|
-
|
|
266
|
+
if (ctx) {
|
|
267
|
+
selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
|
|
243
268
|
}
|
|
244
269
|
}
|
|
270
|
+
if (!isDocument(context)) {
|
|
271
|
+
context = context.ownerDocument;
|
|
272
|
+
}
|
|
273
|
+
return _doQuery(context, queryFn, selector);
|
|
274
|
+
}
|
|
275
|
+
function _doQuery(context, queryFn, selector) {
|
|
245
276
|
try {
|
|
246
277
|
return context[queryFn](selector);
|
|
247
278
|
} catch (e) {
|
|
248
279
|
return null;
|
|
249
280
|
}
|
|
250
281
|
}
|
|
251
|
-
const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
252
|
-
const splitSelector = memoize(
|
|
253
|
-
(selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
|
|
254
|
-
);
|
|
255
282
|
function domPath(element) {
|
|
256
283
|
const names = [];
|
|
257
284
|
while (element.parentNode) {
|
|
@@ -295,18 +322,10 @@
|
|
|
295
322
|
}
|
|
296
323
|
|
|
297
324
|
function getMaxPathLength(el) {
|
|
298
|
-
return Math.ceil(
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
try {
|
|
303
|
-
return stroke.getTotalLength();
|
|
304
|
-
} catch (e) {
|
|
305
|
-
return 0;
|
|
306
|
-
}
|
|
307
|
-
})
|
|
308
|
-
)
|
|
309
|
-
);
|
|
325
|
+
return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
326
|
+
var _a;
|
|
327
|
+
return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
|
|
328
|
+
})));
|
|
310
329
|
}
|
|
311
330
|
|
|
312
331
|
const props = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.9d6b5103b | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&K(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function K(n,t){for(const{read:e,write:o,events:r=[]}of n._updates){if(!t.has("update")&&!r.some(s=>t.has(s)))continue;let c;e&&(c=e.call(n,n._data,t),c&&i.isPlainObject(c)&&i.assign(n._data,c)),o&&c!==!1&&i.fastdom.write(()=>{n._connected&&o.call(n,n._data,t)})}}function Q(n){return _(i.observeResize,n,"resize")}function X(n){return _((t,e)=>i.observeViewportResize(e),n,"resize")}function Y(n){return _((t,e)=>({disconnect:i.on(Z(t),"scroll",e,{passive:!0})}),n,"scroll")}function _(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function Z(n){return i.toNodes(n).map(t=>{const{ownerDocument:e}=t,o=i.scrollParent(t,!0);return o===e.scrollingElement?e:o})}var k={props:{media:Boolean},data:{media:!1},connected(){const n=U(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function U(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function nn(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:Tn,from:tn}=Array;function en(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function rn(n){return M(n)&&n===n.window}function on(n){return I(n)===9}function E(n){return I(n)>=1}function I(n){return!rn(n)&&M(n)&&n.nodeType}function O(n){return typeof n=="string"}function cn(n){return n===void 0}function $(n){return d(n)[0]}function d(n){return E(n)?[n]:Array.from(n||[]).filter(E)}function P(n){const t=Object.create(null);return(e,...o)=>t[e]||(t[e]=n(e,...o))}function j(n,t,e){var o;if(M(t)){for(const r in t)j(n,r,t[r]);return}if(cn(e))return(o=$(n))==null?void 0:o.getAttribute(t);for(const r of d(n))en(e)&&(e=e.call(r,j(r,t))),e===null?sn(r,t):r.setAttribute(t,e)}function sn(n,t){d(n).forEach(e=>e.removeAttribute(t))}function A(n){var t;return(t=$(n))==null?void 0:t.parentElement}function an(n,t){return d(n).filter(e=>T(e,t))}function T(n,t){return d(n).some(e=>e.matches(t))}function fn(n,t){n=$(n);const e=n?tn(n.children):[];return t?an(e,t):e}function un(n,t){return t?d(n).indexOf($(t)):fn(A(n)).indexOf(n)}function dn(n,t){return d(bn(n,$(t),"querySelectorAll"))}const hn=/(^|[^\\],)\s*[!>+~-]/,ln=P(n=>n.match(hn)),gn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,mn=P(n=>n.replace(gn,"$1 *"));function bn(n,t=document,e){if(!n||!O(n))return n;if(n=mn(n),ln(n)){const o=xn(n);n="";for(let r of o){let c=t;if(r[0]==="!"){const s=r.substr(1).trim().split(" ");if(c=A(t).closest(s[0]),r=s.slice(1).join(" ").trim(),!r.length&&o.length===1)return c}if(r[0]==="-"){const s=r.substr(1).trim().split(" "),a=(c||t).previousElementSibling;c=T(a,r.substr(1))?a:null,r=s.slice(1).join(" ")}c&&(n+=`${n?",":""}${pn(c)} ${r}`)}on(t)||(t=t.ownerDocument)}try{return t[e](n)}catch{return null}}const $n=/.*?[^\\](?![^(]*\))(?:,|$)/g,xn=P(n=>n.match($n).map(t=>t.replace(/,$/,"").trim()));function pn(n){const t=[];for(;n.parentNode;){const e=j(n,"id");if(e){t.unshift(`#${wn(e)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${un(n)+1})`),t.unshift(o),n=n.parentNode}}return t.join(" > ")}function wn(n){return O(n)?CSS.escape(n):""}const vn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function yn(n){const t=vn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),Sn(e.content.childNodes)}function Sn(n){return n.length>1?n:n[0]}function Fn(n,t){return _n(n)?d(yn(n)):dn(n,t)}function _n(n){return O(n)&&nn(n.trim(),"<")}function Mn(n){return Math.ceil(Math.max(0,...Fn("[stroke]",n).map(t=>{try{return t.getTotalLength()}catch{return 0}})))}const v={x:y,y,rotate:y,scale:y,color:N,backgroundColor:N,borderColor:N,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:jn,stroke:Nn,bgx:W,bgy:W},{keys:q}=Object;var On={mixins:[k],props:B(q(v),"list"),data:B(q(v),void 0),computed:{props(n,t){const e={};for(const r in n)r in v&&!i.isUndefined(n[r])&&(e[r]=n[r].slice());const o={};for(const r in e)o[r]=v[r](r,t,e[r],e);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))i.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function y(n,t,e){let o=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,r=c=>i.toFloat(i.toFloat(c).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=c=>{var s;return F([c])?i.toPx(c,"width",t,!0)/t[`offset${(s=c.endsWith)!=null&&s.call(c,"vh")?"Height":"Width"}`]:i.toFloat(c)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,r),(c,s)=>{c.transform=`${c.transform||""} ${n}(${x(e,s)}${o})`}}function N(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,o=>Pn(t,o)),(o,r)=>{const[c,s,a]=H(e,r),h=c.map((l,f)=>(l+=a*(s[f]-l),f===3?i.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function Pn(n,t){return p(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const o=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(r,c)=>{const s=x(e,c);r.filter=`${r.filter||""} ${n}(${s+o})`}}function jn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(o,r)=>{o[n]=x(e,r)}}function Nn(n,t,e){e.length===1&&e.unshift(0);const o=F(e),r=Mn(t);return e=m(e.reverse(),c=>(c=i.toFloat(c),o==="%"?c*r/100:c)),e.some(([c])=>c)?(i.css(t,"strokeDasharray",r),(c,s)=>{c.strokeDashoffset=x(e,s)}):i.noop}function W(n,t,e,o){e.length===1&&e.unshift(0);const r=n==="bgy"?"height":"width";o[n]=m(e,a=>i.toPx(a,r,t));const c=["bgx","bgy"].filter(a=>a in o);if(c.length===2&&n==="bgx")return i.noop;if(p(t,"backgroundSize","")==="cover")return zn(n,t,e,o);const s={};for(const a of c)s[a]=D(t,a);return R(c,s,o)}function zn(n,t,e,o){const r=Cn(t);if(!r.width)return i.noop;const c={width:t.offsetWidth,height:t.offsetHeight},s=["bgx","bgy"].filter(f=>f in o),a={};for(const f of s){const u=o[f].map(([An])=>An),w=Math.min(...u),C=Math.max(...u),G=u.indexOf(w)<u.indexOf(C),J=C-w;a[f]=`${(G?-J:0)-(G?w:C)}px`,c[f==="bgy"?"height":"width"]+=J}const h=i.Dimensions.cover(r,c);for(const f of s){const u=f==="bgy"?"height":"width",w=h[u]-c[u];a[f]=`max(${D(t,f)},-${w}px) + ${a[f]}`}const l=R(s,a,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function D(n,t){return p(n,`background-position-${t.substr(-1)}`,"")}function R(n,t,e){return function(o,r){for(const c of n){const s=x(e[c],r);o[`background-position-${c.substr(-1)}`]=`calc(${t[c]} + ${s}px)`}}}const S={};function Cn(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth)?(e.onload=()=>{S[t]=z(e),i.trigger(n,i.createEvent("load",!1))},z(e)):S[t]=z(e)}function z(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:o}=n;let r=0;for(let c=0;c<o;c++){let[s,a]=i.isString(n[c])?n[c].trim().split(/ (?![^(]*\))/):[n[c]];if(s=t(s),a=a?i.toFloat(a)/100:null,c===0?a===null?a=0:a&&e.push([s,0]):c===o-1&&(a===null?a=1:a!==1&&(e.push([s,a]),a=1)),e.push([s,a]),a===null)r++;else if(r){const h=e[c-r-1][1],l=(a-h)/(r+1);for(let f=r;f>0;f--)e[c-f][1]=h+l*(r-f+1);r=0}}return e}function H(n,t){const e=i.findIndex(n.slice(1),([,o])=>t<=o)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function x(n,t){const[e,o,r]=H(n,t);return e+Math.abs(e-o)*r*(e<o?1:-1)}const En=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const o of n){const r=(e=o.match)==null?void 0:e.call(o,En);if(r)return r[1]}return t}function p(n,t,e){const o=n.style[t],r=i.css(i.css(n,t,e),t);return n.style[t]=o,r}function B(n,t){return n.reduce((e,o)=>(e[o]=t,e),{})}function In(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}var L={mixins:[On],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>V(n&&i.query(n,t)||t),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return i.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[X(),Y({target:({target:n})=>n}),Q({target:({$el:n,target:t})=>[n,t,i.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=In(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function V(n){return n?"offsetTop"in n?n:V(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",L),L});
|
|
1
|
+
/*! UIkit 3.19.5-dev.ac3a5fd02 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&J(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function J(n,t){for(const{read:e,write:r,events:o=[]}of n._updates){if(!t.has("update")&&!o.some(c=>t.has(c)))continue;let s;e&&(s=e.call(n,n._data,t),s&&i.isPlainObject(s)&&i.assign(n._data,s)),r&&s!==!1&&i.fastdom.write(()=>{n._connected&&r.call(n,n._data,t)})}}function K(n){return M(i.observeResize,n,"resize")}function X(n){return M((t,e)=>i.observeViewportResize(e),n,"resize")}function Y(n){return M((t,e)=>({disconnect:i.on(Z(t),"scroll",e,{passive:!0})}),n,"scroll")}function M(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function Z(n){return i.toNodes(n).map(t=>{const{ownerDocument:e}=t,r=i.scrollParent(t,!0);return r===e.scrollingElement?e:r})}var k={props:{media:Boolean},data:{media:!1},connected(){const n=U(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function U(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function nn(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:An,from:tn}=Array;function en(n){return typeof n=="function"}function F(n){return n!==null&&typeof n=="object"}function rn(n){return F(n)&&n===n.window}function on(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!rn(n)&&F(n)&&n.nodeType}function O(n){return typeof n=="string"}function sn(n){return n===void 0}function $(n){return n&&l(n)[0]}function l(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function cn(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function P(n,t,e){var r;if(F(t)){for(const o in t)P(n,o,t[o]);return}if(sn(e))return(r=$(n))==null?void 0:r.getAttribute(t);for(const o of l(n))en(e)&&(e=e.call(o,P(o,t))),e===null?an(o,t):o.setAttribute(t,e)}function an(n,t){l(n).forEach(e=>e.removeAttribute(t))}function fn(n){var t;return(t=$(n))==null?void 0:t.parentElement}function un(n,t){return l(n).filter(e=>A(e,t))}function A(n,t){return l(n).some(e=>e.matches(t))}function dn(n,t){n=$(n);const e=n?tn(n.children):[];return t?un(e,t):e}function T(n,t){return t?l(n).indexOf($(t)):dn(fn(n)).indexOf(n)}function ln(n,t){return l($n(n,$(t),"querySelectorAll"))}const hn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,gn=/.*?[^\\](?![^(]*\))(?:,|$)/g,mn=/\s*,$/,bn=cn(n=>{var t;n=n.replace(hn,"$1 *");let e=!1;const r=[];for(let o of(t=n.match(gn))!=null?t:[])o=o.replace(mn,"").trim(),o[0]===">"&&(o=`:scope ${o}`),e||(e=["!","+","~","-"].includes(o[0])),r.push(o);return{selector:r.join(","),selectors:r,isContextSelector:e}});function $n(n,t=document,e){if(!n||!O(n))return n;const r=bn(n);if(!r.isContextSelector)return j(t,e,r.selector);n="";const o=r.selectors.length===1;for(let s of r.selectors){let c=t;if(s[0]==="!"){const a=s.substr(1).trim().split(" ");if(c=t.parentElement.closest(a[0]),s=a.slice(1).join(" ").trim(),!s.length&&o)return c}if(s[0]==="-"){const a=s.substr(1).trim().split(" "),u=(c||t).previousElementSibling;if(c=A(u,s.substr(1))?u:null,s=a.slice(1).join(" "),!s.length&&o)return c}else if(s[0]==="~"||s[0]==="+"&&o)return j(c.parentElement,e,`:scope :nth-child(${T(c)+1}) ${s}`);c&&(n+=`${n?",":""}${pn(c)} ${s}`)}return on(t)||(t=t.ownerDocument),j(t,e,n)}function j(n,t,e){try{return n[t](e)}catch{return null}}function pn(n){const t=[];for(;n.parentNode;){const e=P(n,"id");if(e){t.unshift(`#${xn(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${T(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function xn(n){return O(n)?CSS.escape(n):""}const vn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function wn(n){const t=vn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),yn(e.content.childNodes)}function yn(n){return n.length>1?n:n[0]}function Sn(n,t){return _n(n)?l(wn(n)):ln(n,t)}function _n(n){return O(n)&&nn(n.trim(),"<")}function Mn(n){return Math.ceil(Math.max(0,...Sn("[stroke]",n).map(t=>{var e;return(e=t.getTotalLength)==null?void 0:e.call(t)})))}const w={x:y,y,rotate:y,scale:y,color:C,backgroundColor:C,borderColor:C,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Pn,stroke:jn,bgx:D,bgy:D},{keys:W}=Object;var Fn={mixins:[k],props:B(W(w),"list"),data:B(W(w),void 0),computed:{props(n,t){const e={};for(const o in n)o in w&&!i.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=w[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))i.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function y(n,t,e){let r=_(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,o=s=>i.toFloat(i.toFloat(s).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=s=>{var c;return _([s])?i.toPx(s,"width",t,!0)/t[`offset${(c=s.endsWith)!=null&&c.call(s,"vh")?"Height":"Width"}`]:i.toFloat(s)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,o),(s,c)=>{s.transform=`${s.transform||""} ${n}(${p(e,c)}${r})`}}function C(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e,r=>On(t,r)),(r,o)=>{const[s,c,a]=H(e,o),u=s.map((h,f)=>(h+=a*(c[f]-h),f===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${u})`}}function On(n,t){return x(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=_(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,s)=>{const c=p(e,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function Pn(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e),(r,o)=>{r[n]=p(e,o)}}function jn(n,t,e){e.length===1&&e.unshift(0);const r=_(e),o=Mn(t);return e=m(e.reverse(),s=>(s=i.toFloat(s),r==="%"?s*o/100:s)),e.some(([s])=>s)?(i.css(t,"strokeDasharray",o),(s,c)=>{s.strokeDashoffset=p(e,c)}):i.noop}function D(n,t,e,r){e.length===1&&e.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(e,a=>i.toPx(a,o,t));const s=["bgx","bgy"].filter(a=>a in r);if(s.length===2&&n==="bgx")return i.noop;if(x(t,"backgroundSize","")==="cover")return Cn(n,t,e,r);const c={};for(const a of s)c[a]=R(t,a);return q(s,c,r)}function Cn(n,t,e,r){const o=Nn(t);if(!o.width)return i.noop;const s={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([zn])=>zn),v=Math.min(...d),E=Math.max(...d),Q=d.indexOf(v)<d.indexOf(E),G=E-v;a[f]=`${(Q?-G:0)-(Q?v:E)}px`,s[f==="bgy"?"height":"width"]+=G}const u=i.Dimensions.cover(o,s);for(const f of c){const d=f==="bgy"?"height":"width",v=u[d]-s[d];a[f]=`max(${R(t,f)},-${v}px) + ${a[f]}`}const h=q(c,a,r);return(f,d)=>{h(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,t){return x(n,`background-position-${t.substr(-1)}`,"")}function q(n,t,e){return function(r,o){for(const s of n){const c=p(e[s],o);r[`background-position-${s.substr(-1)}`]=`calc(${t[s]} + ${c}px)`}}}const S={};function Nn(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth)?(e.onload=()=>{S[t]=N(e),i.trigger(n,i.createEvent("load",!1))},N(e)):S[t]=N(e)}function N(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:r}=n;let o=0;for(let s=0;s<r;s++){let[c,a]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(c=t(c),a=a?i.toFloat(a)/100:null,s===0?a===null?a=0:a&&e.push([c,0]):s===r-1&&(a===null?a=1:a!==1&&(e.push([c,a]),a=1)),e.push([c,a]),a===null)o++;else if(o){const u=e[s-o-1][1],h=(a-u)/(o+1);for(let f=o;f>0;f--)e[s-f][1]=u+h*(o-f+1);o=0}}return e}function H(n,t){const e=i.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function p(n,t){const[e,r,o]=H(n,t);return e+Math.abs(e-r)*o*(e<r?1:-1)}const En=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,En);if(o)return o[1]}return t}function x(n,t,e){const r=n.style[t],o=i.css(i.css(n,t,e),t);return n.style[t]=r,o}function B(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}function In(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}var L={mixins:[Fn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>V(n&&i.query(n,t)||t),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return i.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[X(),Y({target:({target:n})=>n}),K({target:({$el:n,target:t})=>[n,t,i.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=In(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function V(n){return n?"offsetTop"in n?n:V(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",L),L});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.
|
|
1
|
+
/*! UIkit 3.19.5-dev.ac3a5fd02 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
return value === void 0;
|
|
76
76
|
}
|
|
77
77
|
function toNode(element) {
|
|
78
|
-
return toNodes(element)[0];
|
|
78
|
+
return element && toNodes(element)[0];
|
|
79
79
|
}
|
|
80
80
|
function toNodes(element) {
|
|
81
81
|
return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
|
|
@@ -134,52 +134,79 @@
|
|
|
134
134
|
function findAll(selector, context) {
|
|
135
135
|
return toNodes(_query(selector, toNode(context), "querySelectorAll"));
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
const
|
|
139
|
-
const
|
|
140
|
-
const
|
|
137
|
+
const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
138
|
+
const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
139
|
+
const trailingCommaRe = /\s*,$/;
|
|
140
|
+
const parseSelector = memoize((selector) => {
|
|
141
|
+
var _a;
|
|
142
|
+
selector = selector.replace(addStarRe, "$1 *");
|
|
143
|
+
let isContextSelector = false;
|
|
144
|
+
const selectors = [];
|
|
145
|
+
for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
|
|
146
|
+
sel = sel.replace(trailingCommaRe, "").trim();
|
|
147
|
+
if (sel[0] === ">") {
|
|
148
|
+
sel = `:scope ${sel}`;
|
|
149
|
+
}
|
|
150
|
+
isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
|
|
151
|
+
selectors.push(sel);
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
selector: selectors.join(","),
|
|
155
|
+
selectors,
|
|
156
|
+
isContextSelector
|
|
157
|
+
};
|
|
158
|
+
});
|
|
141
159
|
function _query(selector, context = document, queryFn) {
|
|
142
160
|
if (!selector || !isString(selector)) {
|
|
143
161
|
return selector;
|
|
144
162
|
}
|
|
145
|
-
|
|
146
|
-
if (isContextSelector
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
if (sel[0] === "-") {
|
|
160
|
-
const selectors = sel.substr(1).trim().split(" ");
|
|
161
|
-
const prev = (ctx || context).previousElementSibling;
|
|
162
|
-
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
163
|
-
sel = selectors.slice(1).join(" ");
|
|
163
|
+
const parsed = parseSelector(selector);
|
|
164
|
+
if (!parsed.isContextSelector) {
|
|
165
|
+
return _doQuery(context, queryFn, parsed.selector);
|
|
166
|
+
}
|
|
167
|
+
selector = "";
|
|
168
|
+
const isSingle = parsed.selectors.length === 1;
|
|
169
|
+
for (let sel of parsed.selectors) {
|
|
170
|
+
let ctx = context;
|
|
171
|
+
if (sel[0] === "!") {
|
|
172
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
173
|
+
ctx = context.parentElement.closest(selectors[0]);
|
|
174
|
+
sel = selectors.slice(1).join(" ").trim();
|
|
175
|
+
if (!sel.length && isSingle) {
|
|
176
|
+
return ctx;
|
|
164
177
|
}
|
|
165
|
-
|
|
166
|
-
|
|
178
|
+
}
|
|
179
|
+
if (sel[0] === "-") {
|
|
180
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
181
|
+
const prev = (ctx || context).previousElementSibling;
|
|
182
|
+
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
183
|
+
sel = selectors.slice(1).join(" ");
|
|
184
|
+
if (!sel.length && isSingle) {
|
|
185
|
+
return ctx;
|
|
167
186
|
}
|
|
187
|
+
} else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
|
|
188
|
+
return _doQuery(
|
|
189
|
+
ctx.parentElement,
|
|
190
|
+
queryFn,
|
|
191
|
+
`:scope :nth-child(${index(ctx) + 1}) ${sel}`
|
|
192
|
+
);
|
|
168
193
|
}
|
|
169
|
-
if (
|
|
170
|
-
|
|
194
|
+
if (ctx) {
|
|
195
|
+
selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
|
|
171
196
|
}
|
|
172
197
|
}
|
|
198
|
+
if (!isDocument(context)) {
|
|
199
|
+
context = context.ownerDocument;
|
|
200
|
+
}
|
|
201
|
+
return _doQuery(context, queryFn, selector);
|
|
202
|
+
}
|
|
203
|
+
function _doQuery(context, queryFn, selector) {
|
|
173
204
|
try {
|
|
174
205
|
return context[queryFn](selector);
|
|
175
206
|
} catch (e) {
|
|
176
207
|
return null;
|
|
177
208
|
}
|
|
178
209
|
}
|
|
179
|
-
const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
180
|
-
const splitSelector = memoize(
|
|
181
|
-
(selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
|
|
182
|
-
);
|
|
183
210
|
function domPath(element) {
|
|
184
211
|
const names = [];
|
|
185
212
|
while (element.parentNode) {
|
|
@@ -223,18 +250,10 @@
|
|
|
223
250
|
}
|
|
224
251
|
|
|
225
252
|
function getMaxPathLength(el) {
|
|
226
|
-
return Math.ceil(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
try {
|
|
231
|
-
return stroke.getTotalLength();
|
|
232
|
-
} catch (e) {
|
|
233
|
-
return 0;
|
|
234
|
-
}
|
|
235
|
-
})
|
|
236
|
-
)
|
|
237
|
-
);
|
|
253
|
+
return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
254
|
+
var _a;
|
|
255
|
+
return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
|
|
256
|
+
})));
|
|
238
257
|
}
|
|
239
258
|
|
|
240
259
|
const props = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.
|
|
1
|
+
/*! UIkit 3.19.5-dev.ac3a5fd02 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=J(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function J(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function K(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:On,from:X}=Array;function Y(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function Z(n){return C(n)&&n===n.window}function k(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!Z(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function U(n){return n===void 0}function b(n){return n&&l(n)[0]}function l(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function nn(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function j(n,e,t){var o;if(C(e)){for(const r in e)j(n,r,e[r]);return}if(U(t))return(o=b(n))==null?void 0:o.getAttribute(e);for(const r of l(n))Y(t)&&(t=t.call(r,j(r,e))),t===null?tn(r,e):r.setAttribute(e,t)}function tn(n,e){l(n).forEach(t=>t.removeAttribute(e))}function en(n){var e;return(e=b(n))==null?void 0:e.parentElement}function rn(n,e){return l(n).filter(t=>A(t,e))}function A(n,e){return l(n).some(t=>t.matches(e))}function on(n,e){n=b(n);const t=n?X(n.children):[];return e?rn(t,e):t}function E(n,e){return e?l(n).indexOf(b(e)):on(en(n)).indexOf(n)}function sn(n,e){return l(dn(n,b(e),"querySelectorAll"))}const cn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,an=/.*?[^\\](?![^(]*\))(?:,|$)/g,fn=/\s*,$/,un=nn(n=>{var e;n=n.replace(cn,"$1 *");let t=!1;const o=[];for(let r of(e=n.match(an))!=null?e:[])r=r.replace(fn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),t||(t=["!","+","~","-"].includes(r[0])),o.push(r);return{selector:o.join(","),selectors:o,isContextSelector:t}});function dn(n,e=document,t){if(!n||!M(n))return n;const o=un(n);if(!o.isContextSelector)return O(e,t,o.selector);n="";const r=o.selectors.length===1;for(let i of o.selectors){let c=e;if(i[0]==="!"){const a=i.substr(1).trim().split(" ");if(c=e.parentElement.closest(a[0]),i=a.slice(1).join(" ").trim(),!i.length&&r)return c}if(i[0]==="-"){const a=i.substr(1).trim().split(" "),u=(c||e).previousElementSibling;if(c=A(u,i.substr(1))?u:null,i=a.slice(1).join(" "),!i.length&&r)return c}else if(i[0]==="~"||i[0]==="+"&&r)return O(c.parentElement,t,`:scope :nth-child(${E(c)+1}) ${i}`);c&&(n+=`${n?",":""}${ln(c)} ${i}`)}return k(e)||(e=e.ownerDocument),O(e,t,n)}function O(n,e,t){try{return n[e](t)}catch{return null}}function ln(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${hn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${E(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function hn(n){return M(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function mn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function bn(n,e){return xn(n)?l(mn(n)):sn(n,e)}function xn(n){return M(n)&&K(n.trim(),"<")}function pn(n){return Math.ceil(Math.max(0,...bn("[stroke]",n).map(e=>{var t;return(t=e.getTotalLength)==null?void 0:t.call(e)})))}const w={x:v,y:v,rotate:v,scale:v,color:P,backgroundColor:P,borderColor:P,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:vn,stroke:Sn,bgx:D,bgy:D},{keys:W}=Object;var yn={mixins:[$],props:B(W(w),"list"),data:B(W(w),void 0),computed:{props(n,e){const t={};for(const r in n)r in w&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=w[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let o=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=i=>s.toFloat(s.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>{var c;return F([i])?s.toPx(i,"width",e,!0)/e[`offset${(c=i.endsWith)!=null&&c.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,r),(i,c)=>{i.transform=`${i.transform||""} ${n}(${x(t,c)}${o})`}}function P(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,o=>wn(e,o)),(o,r)=>{const[i,c,a]=z(t,r),u=i.map((h,f)=>(h+=a*(c[f]-h),f===3?s.toFloat(h):parseInt(h,10))).join(",");o[n]=`rgba(${u})`}}function wn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const o=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(r,i)=>{const c=x(t,i);r.filter=`${r.filter||""} ${n}(${c+o})`}}function vn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(o,r)=>{o[n]=x(t,r)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const o=F(t),r=pn(e);return t=m(t.reverse(),i=>(i=s.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",r),(i,c)=>{i.strokeDashoffset=x(t,c)}):s.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=m(t,a=>s.toPx(a,r,e));const i=["bgx","bgy"].filter(a=>a in o);if(i.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Fn(n,e,t,o);const c={};for(const a of i)c[a]=H(e,a);return R(i,c,o)}function Fn(n,e,t,o){const r=Cn(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),a={};for(const f of c){const d=o[f].map(([jn])=>jn),y=Math.min(...d),_=Math.max(...d),Q=d.indexOf(y)<d.indexOf(_),G=_-y;a[f]=`${(Q?-G:0)-(Q?y:_)}px`,i[f==="bgy"?"height":"width"]+=G}const u=s.Dimensions.cover(r,i);for(const f of c){const d=f==="bgy"?"height":"width",y=u[d]-i[d];a[f]=`max(${H(e,f)},-${y}px) + ${a[f]}`}const h=R(c,a,o);return(f,d)=>{h(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function H(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function R(n,e,t){return function(o,r){for(const i of n){const c=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${c}px)`}}}const S={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{S[e]=I(t),s.trigger(n,s.createEvent("load",!1))},I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[c,a]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(c=e(c),a=a?s.toFloat(a)/100:null,i===0?a===null?a=0:a&&t.push([c,0]):i===o-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)r++;else if(r){const u=t[i-r-1][1],h=(a-u)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=u+h*(r-f+1);r=0}}return t}function z(n,e){const t=s.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,o,r]=z(n,e);return t+Math.abs(t-o)*r*(t<o?1:-1)}const Mn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,Mn);if(r)return r[1]}return e}function p(n,e,t){const o=n.style[e],r=s.css(s.css(n,e,t),e);return n.style[e]=o,r}function B(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var L={mixins:[yn],beforeConnect(){this.item=s.closest(this.$el,`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(q(n,r,e)),c=this.getCss(V(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,c,t,o).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(q(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function V(n){return s.endsWith(n,"in")}function q(n,e,t){return t/=2,V(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",L),L});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.19.5-dev.
|
|
1
|
+
/*! UIkit 3.19.5-dev.ac3a5fd02 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -579,7 +579,6 @@
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
|
-
observe: resize(),
|
|
583
582
|
events: {
|
|
584
583
|
itemshow({ target }) {
|
|
585
584
|
util.addClass(target, this.clsEnter, this.clsSlideActive);
|
|
@@ -758,7 +757,7 @@
|
|
|
758
757
|
return value === void 0;
|
|
759
758
|
}
|
|
760
759
|
function toNode(element) {
|
|
761
|
-
return toNodes(element)[0];
|
|
760
|
+
return element && toNodes(element)[0];
|
|
762
761
|
}
|
|
763
762
|
function toNodes(element) {
|
|
764
763
|
return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
|
|
@@ -817,52 +816,79 @@
|
|
|
817
816
|
function findAll(selector, context) {
|
|
818
817
|
return toNodes(_query(selector, toNode(context), "querySelectorAll"));
|
|
819
818
|
}
|
|
820
|
-
const
|
|
821
|
-
const
|
|
822
|
-
const
|
|
823
|
-
const
|
|
819
|
+
const addStarRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
820
|
+
const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
821
|
+
const trailingCommaRe = /\s*,$/;
|
|
822
|
+
const parseSelector = memoize((selector) => {
|
|
823
|
+
var _a;
|
|
824
|
+
selector = selector.replace(addStarRe, "$1 *");
|
|
825
|
+
let isContextSelector = false;
|
|
826
|
+
const selectors = [];
|
|
827
|
+
for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
|
|
828
|
+
sel = sel.replace(trailingCommaRe, "").trim();
|
|
829
|
+
if (sel[0] === ">") {
|
|
830
|
+
sel = `:scope ${sel}`;
|
|
831
|
+
}
|
|
832
|
+
isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
|
|
833
|
+
selectors.push(sel);
|
|
834
|
+
}
|
|
835
|
+
return {
|
|
836
|
+
selector: selectors.join(","),
|
|
837
|
+
selectors,
|
|
838
|
+
isContextSelector
|
|
839
|
+
};
|
|
840
|
+
});
|
|
824
841
|
function _query(selector, context = document, queryFn) {
|
|
825
842
|
if (!selector || !isString(selector)) {
|
|
826
843
|
return selector;
|
|
827
844
|
}
|
|
828
|
-
|
|
829
|
-
if (isContextSelector
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
if (sel[0] === "-") {
|
|
843
|
-
const selectors = sel.substr(1).trim().split(" ");
|
|
844
|
-
const prev = (ctx || context).previousElementSibling;
|
|
845
|
-
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
846
|
-
sel = selectors.slice(1).join(" ");
|
|
847
|
-
}
|
|
848
|
-
if (ctx) {
|
|
849
|
-
selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
|
|
845
|
+
const parsed = parseSelector(selector);
|
|
846
|
+
if (!parsed.isContextSelector) {
|
|
847
|
+
return _doQuery(context, queryFn, parsed.selector);
|
|
848
|
+
}
|
|
849
|
+
selector = "";
|
|
850
|
+
const isSingle = parsed.selectors.length === 1;
|
|
851
|
+
for (let sel of parsed.selectors) {
|
|
852
|
+
let ctx = context;
|
|
853
|
+
if (sel[0] === "!") {
|
|
854
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
855
|
+
ctx = context.parentElement.closest(selectors[0]);
|
|
856
|
+
sel = selectors.slice(1).join(" ").trim();
|
|
857
|
+
if (!sel.length && isSingle) {
|
|
858
|
+
return ctx;
|
|
850
859
|
}
|
|
851
860
|
}
|
|
852
|
-
if (
|
|
853
|
-
|
|
861
|
+
if (sel[0] === "-") {
|
|
862
|
+
const selectors = sel.substr(1).trim().split(" ");
|
|
863
|
+
const prev = (ctx || context).previousElementSibling;
|
|
864
|
+
ctx = matches(prev, sel.substr(1)) ? prev : null;
|
|
865
|
+
sel = selectors.slice(1).join(" ");
|
|
866
|
+
if (!sel.length && isSingle) {
|
|
867
|
+
return ctx;
|
|
868
|
+
}
|
|
869
|
+
} else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
|
|
870
|
+
return _doQuery(
|
|
871
|
+
ctx.parentElement,
|
|
872
|
+
queryFn,
|
|
873
|
+
`:scope :nth-child(${index(ctx) + 1}) ${sel}`
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
if (ctx) {
|
|
877
|
+
selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
|
|
854
878
|
}
|
|
855
879
|
}
|
|
880
|
+
if (!isDocument(context)) {
|
|
881
|
+
context = context.ownerDocument;
|
|
882
|
+
}
|
|
883
|
+
return _doQuery(context, queryFn, selector);
|
|
884
|
+
}
|
|
885
|
+
function _doQuery(context, queryFn, selector) {
|
|
856
886
|
try {
|
|
857
887
|
return context[queryFn](selector);
|
|
858
888
|
} catch (e) {
|
|
859
889
|
return null;
|
|
860
890
|
}
|
|
861
891
|
}
|
|
862
|
-
const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
|
|
863
|
-
const splitSelector = memoize(
|
|
864
|
-
(selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
|
|
865
|
-
);
|
|
866
892
|
function domPath(element) {
|
|
867
893
|
const names = [];
|
|
868
894
|
while (element.parentNode) {
|
|
@@ -906,18 +932,10 @@
|
|
|
906
932
|
}
|
|
907
933
|
|
|
908
934
|
function getMaxPathLength(el) {
|
|
909
|
-
return Math.ceil(
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
try {
|
|
914
|
-
return stroke.getTotalLength();
|
|
915
|
-
} catch (e) {
|
|
916
|
-
return 0;
|
|
917
|
-
}
|
|
918
|
-
})
|
|
919
|
-
)
|
|
920
|
-
);
|
|
935
|
+
return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
936
|
+
var _a;
|
|
937
|
+
return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
|
|
938
|
+
})));
|
|
921
939
|
}
|
|
922
940
|
|
|
923
941
|
const props = {
|
|
@@ -1561,7 +1579,7 @@
|
|
|
1561
1579
|
util.toggleClass(this.$el, this.clsContainer, !util.$(`.${this.clsContainer}`, this.$el));
|
|
1562
1580
|
},
|
|
1563
1581
|
observe: resize({
|
|
1564
|
-
target: ({ slides }) => slides
|
|
1582
|
+
target: ({ slides, $el }) => [$el, ...slides]
|
|
1565
1583
|
}),
|
|
1566
1584
|
update: {
|
|
1567
1585
|
write() {
|