uikit 3.11.2-dev.2b60845fb → 3.11.2-dev.2f4ac8e16
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 +32 -18
- package/dist/css/uikit-core-rtl.css +80 -186
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +80 -186
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +82 -192
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +82 -192
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +6 -8
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +26 -55
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +27 -57
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +85 -68
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +85 -68
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +60 -12
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +85 -68
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +52 -16
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +5 -7
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +2 -2
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +215 -220
- 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 +397 -355
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +2 -11
- package/src/js/api/hooks.js +1 -1
- package/src/js/api/state.js +1 -1
- package/src/js/components/filter.js +2 -3
- package/src/js/components/internal/lightbox-animations.js +4 -3
- package/src/js/components/internal/slider-preload.js +37 -0
- package/src/js/components/internal/slideshow-animations.js +4 -3
- package/src/js/components/lightbox-panel.js +34 -58
- package/src/js/components/lightbox.js +1 -2
- package/src/js/components/slider.js +21 -1
- package/src/js/components/slideshow.js +8 -1
- package/src/js/components/sortable.js +1 -1
- package/src/js/core/alert.js +1 -2
- package/src/js/core/img.js +129 -114
- package/src/js/core/modal.js +1 -2
- package/src/js/core/navbar.js +3 -3
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/svg.js +10 -6
- package/src/js/core/toggle.js +2 -1
- package/src/js/mixin/internal/animate-slide.js +9 -12
- package/src/js/mixin/parallax.js +85 -68
- package/src/js/mixin/slider.js +8 -16
- package/src/js/mixin/slideshow.js +2 -2
- package/src/js/mixin/togglable.js +1 -2
- package/src/js/util/ajax.js +9 -12
- package/src/js/util/animation.js +7 -12
- package/src/js/util/dom.js +27 -30
- package/src/js/util/lang.js +7 -6
- package/src/js/util/options.js +2 -11
- package/src/js/util/player.js +5 -4
- package/src/js/util/selector.js +12 -18
- package/src/js/util/style.js +4 -4
- package/src/less/components/base.less +10 -33
- package/src/less/components/form-range.less +52 -97
- package/src/less/components/form.less +0 -1
- package/src/less/components/leader.less +0 -1
- package/src/less/components/lightbox.less +0 -1
- package/src/less/components/modal.less +3 -7
- package/src/less/components/progress.less +14 -36
- package/src/less/components/slider.less +0 -3
- package/src/less/components/slideshow.less +0 -3
- package/src/less/components/text.less +16 -32
- package/src/scss/components/base.scss +10 -33
- package/src/scss/components/form-range.scss +52 -97
- package/src/scss/components/form.scss +0 -1
- package/src/scss/components/leader.scss +0 -1
- package/src/scss/components/lightbox.scss +0 -1
- package/src/scss/components/modal.scss +3 -7
- package/src/scss/components/progress.scss +14 -36
- package/src/scss/components/slider.scss +0 -3
- package/src/scss/components/slideshow.scss +0 -3
- package/src/scss/components/text.scss +16 -32
- package/src/scss/mixins-theme.scss +1 -1
- package/src/scss/mixins.scss +1 -1
- package/src/scss/variables-theme.scss +3 -3
- package/src/scss/variables.scss +3 -3
- package/tests/align.html +10 -10
- package/tests/animation.html +2 -2
- package/tests/article.html +2 -2
- package/tests/base.html +3 -3
- package/tests/card.html +10 -10
- package/tests/column.html +3 -3
- package/tests/comment.html +9 -9
- package/tests/dotnav.html +3 -3
- package/tests/image.html +296 -64
- package/tests/images/image-type.avif +0 -0
- package/tests/images/image-type.jpeg +0 -0
- package/tests/images/image-type.webp +0 -0
- package/tests/index.html +8 -8
- package/tests/lightbox.html +10 -10
- package/tests/marker.html +2 -2
- package/tests/modal.html +8 -9
- package/tests/navbar.html +2 -2
- package/tests/overlay.html +7 -7
- package/tests/parallax.html +14 -5
- package/tests/position.html +12 -12
- package/tests/slidenav.html +12 -12
- package/tests/slider.html +20 -20
- package/tests/sortable.html +1 -1
- package/tests/sticky-parallax.html +47 -62
- package/tests/svg.html +6 -6
- package/tests/table.html +11 -11
- package/tests/thumbnav.html +12 -12
- package/tests/transition.html +30 -30
- package/tests/utility.html +33 -33
- package/tests/video.html +1 -1
- package/tests/width.html +1 -1
- package/tests/images/animated.gif +0 -0
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.11.2-dev.
|
|
1
|
+
/*! UIkit 3.11.2-dev.2f4ac8e16 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function startsWith(str, search) {
|
|
32
|
-
return str.startsWith(search);
|
|
32
|
+
return str == null ? void 0 : str.startsWith == null ? void 0 : str.startsWith(search);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function endsWith(str, search) {
|
|
36
|
-
return str.endsWith(search);
|
|
36
|
+
return str == null ? void 0 : str.endsWith == null ? void 0 : str.endsWith(search);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
function includes(obj, search) {
|
|
40
|
-
return obj
|
|
40
|
+
return obj == null ? void 0 : obj.includes == null ? void 0 : obj.includes(search);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function findIndex(array, predicate) {
|
|
44
|
-
return array.findIndex(predicate);
|
|
44
|
+
return array == null ? void 0 : array.findIndex == null ? void 0 : array.findIndex(predicate);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
const { isArray, from: toArray } = Array;
|
|
@@ -130,14 +130,15 @@
|
|
|
130
130
|
return element && (isNode(element) ? [element] : Array.from(element).filter(isNode)) || [];
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
function toWindow(element) {
|
|
133
|
+
function toWindow(element) {var _element;
|
|
134
134
|
if (isWindow(element)) {
|
|
135
135
|
return element;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
element = toNode(element);
|
|
139
|
+
const document = isDocument(element) ? element : (_element = element) == null ? void 0 : _element.ownerDocument;
|
|
139
140
|
|
|
140
|
-
return
|
|
141
|
+
return (document == null ? void 0 : document.defaultView) || window;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
function toMs(time) {
|
|
@@ -224,7 +225,7 @@
|
|
|
224
225
|
},
|
|
225
226
|
|
|
226
227
|
contain(dimensions, maxDimensions) {
|
|
227
|
-
dimensions =
|
|
228
|
+
dimensions = { ...dimensions };
|
|
228
229
|
|
|
229
230
|
each(
|
|
230
231
|
dimensions,
|
|
@@ -339,19 +340,6 @@
|
|
|
339
340
|
}
|
|
340
341
|
}
|
|
341
342
|
|
|
342
|
-
const inBrowser = typeof window !== 'undefined';
|
|
343
|
-
const isRtl = inBrowser && attr(document.documentElement, 'dir') === 'rtl';
|
|
344
|
-
|
|
345
|
-
const hasTouch = inBrowser && 'ontouchstart' in window;
|
|
346
|
-
const hasPointerEvents = inBrowser && window.PointerEvent;
|
|
347
|
-
|
|
348
|
-
const pointerDown = hasPointerEvents ? 'pointerdown' : hasTouch ? 'touchstart' : 'mousedown';
|
|
349
|
-
const pointerMove = hasPointerEvents ? 'pointermove' : hasTouch ? 'touchmove' : 'mousemove';
|
|
350
|
-
const pointerUp = hasPointerEvents ? 'pointerup' : hasTouch ? 'touchend' : 'mouseup';
|
|
351
|
-
const pointerEnter = hasPointerEvents ? 'pointerenter' : hasTouch ? '' : 'mouseenter';
|
|
352
|
-
const pointerLeave = hasPointerEvents ? 'pointerleave' : hasTouch ? '' : 'mouseleave';
|
|
353
|
-
const pointerCancel = hasPointerEvents ? 'pointercancel' : 'touchcancel';
|
|
354
|
-
|
|
355
343
|
const voidElements = {
|
|
356
344
|
area: true,
|
|
357
345
|
base: true,
|
|
@@ -451,12 +439,6 @@
|
|
|
451
439
|
return findAll(selector, getContext(selector, context));
|
|
452
440
|
}
|
|
453
441
|
|
|
454
|
-
function getContext(selector, context) {if (context === void 0) {context = document;}
|
|
455
|
-
return isString(selector) && isContextSelector(selector) || isDocument(context) ?
|
|
456
|
-
context :
|
|
457
|
-
context.ownerDocument;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
442
|
function find(selector, context) {
|
|
461
443
|
return toNode(_query(selector, context, 'querySelector'));
|
|
462
444
|
}
|
|
@@ -465,6 +447,17 @@
|
|
|
465
447
|
return toNodes(_query(selector, context, 'querySelectorAll'));
|
|
466
448
|
}
|
|
467
449
|
|
|
450
|
+
const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
|
|
451
|
+
const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
|
|
452
|
+
|
|
453
|
+
function getContext(selector, context) {if (context === void 0) {context = document;}
|
|
454
|
+
return isString(selector) && isContextSelector(selector) || isDocument(context) ?
|
|
455
|
+
context :
|
|
456
|
+
context.ownerDocument;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
460
|
+
|
|
468
461
|
function _query(selector, context, queryFn) {if (context === void 0) {context = document;}
|
|
469
462
|
if (!selector || !isString(selector)) {
|
|
470
463
|
return selector;
|
|
@@ -509,11 +502,6 @@
|
|
|
509
502
|
}
|
|
510
503
|
}
|
|
511
504
|
|
|
512
|
-
const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
|
|
513
|
-
const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
514
|
-
|
|
515
|
-
const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
|
|
516
|
-
|
|
517
505
|
const selectorRe = /.*?[^\\](?:,|$)/g;
|
|
518
506
|
|
|
519
507
|
const splitSelector = memoize((selector) =>
|
|
@@ -539,13 +527,8 @@
|
|
|
539
527
|
return names.join(' > ');
|
|
540
528
|
}
|
|
541
529
|
|
|
542
|
-
const escapeFn =
|
|
543
|
-
inBrowser && window.CSS && CSS.escape ||
|
|
544
|
-
function (css) {
|
|
545
|
-
return css.replace(/([^\x7f-\uFFFF\w-])/g, (match) => "\\" + match);
|
|
546
|
-
};
|
|
547
530
|
function escape(css) {
|
|
548
|
-
return isString(css) ?
|
|
531
|
+
return isString(css) ? CSS.escape(css) : '';
|
|
549
532
|
}
|
|
550
533
|
|
|
551
534
|
function on() {for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}
|
|
@@ -688,17 +671,14 @@
|
|
|
688
671
|
}
|
|
689
672
|
|
|
690
673
|
function ajax(url, options) {
|
|
691
|
-
const env =
|
|
692
|
-
{
|
|
674
|
+
const env = {
|
|
693
675
|
data: null,
|
|
694
676
|
method: 'GET',
|
|
695
677
|
headers: {},
|
|
696
678
|
xhr: new XMLHttpRequest(),
|
|
697
679
|
beforeSend: noop,
|
|
698
|
-
responseType: ''
|
|
699
|
-
|
|
700
|
-
options);
|
|
701
|
-
|
|
680
|
+
responseType: '',
|
|
681
|
+
...options };
|
|
702
682
|
|
|
703
683
|
return Promise.resolve().
|
|
704
684
|
then(() => env.beforeSend(env)).
|
|
@@ -777,7 +757,8 @@
|
|
|
777
757
|
|
|
778
758
|
|
|
779
759
|
function css(element, property, value, priority) {if (priority === void 0) {priority = '';}
|
|
780
|
-
|
|
760
|
+
const elements = toNodes(element);
|
|
761
|
+
for (const element of elements) {
|
|
781
762
|
if (isString(property)) {
|
|
782
763
|
property = propName(property);
|
|
783
764
|
|
|
@@ -803,9 +784,8 @@
|
|
|
803
784
|
priority = value;
|
|
804
785
|
each(property, (value, property) => css(element, property, value, priority));
|
|
805
786
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
})[0];
|
|
787
|
+
}
|
|
788
|
+
return elements[0];
|
|
809
789
|
}
|
|
810
790
|
|
|
811
791
|
function getStyles(element, pseudoElt) {
|
|
@@ -932,16 +912,11 @@
|
|
|
932
912
|
|
|
933
913
|
|
|
934
914
|
addClass(element, 'uk-transition');
|
|
935
|
-
css(
|
|
936
|
-
element,
|
|
937
|
-
assign(
|
|
938
|
-
{
|
|
915
|
+
css(element, {
|
|
939
916
|
transitionProperty: Object.keys(props).map(propName).join(','),
|
|
940
917
|
transitionDuration: duration + "ms",
|
|
941
|
-
transitionTimingFunction: timing
|
|
942
|
-
|
|
943
|
-
props));
|
|
944
|
-
|
|
918
|
+
transitionTimingFunction: timing,
|
|
919
|
+
...props });
|
|
945
920
|
|
|
946
921
|
})));
|
|
947
922
|
|
|
@@ -1216,6 +1191,10 @@
|
|
|
1216
1191
|
once(document, 'DOMContentLoaded', fn);
|
|
1217
1192
|
}
|
|
1218
1193
|
|
|
1194
|
+
function isTag(element, tagName) {var _element$tagName;
|
|
1195
|
+
return (element == null ? void 0 : (_element$tagName = element.tagName) == null ? void 0 : _element$tagName.toLowerCase()) === tagName.toLowerCase();
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1219
1198
|
function empty(element) {
|
|
1220
1199
|
return replaceChildren(element, '');
|
|
1221
1200
|
}
|
|
@@ -1224,34 +1203,20 @@
|
|
|
1224
1203
|
return isUndefined(html) ? $(parent).innerHTML : replaceChildren(parent, html);
|
|
1225
1204
|
}
|
|
1226
1205
|
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
function prepend(parent, element) {
|
|
1234
|
-
const nodes = $$(element);
|
|
1235
|
-
$(parent).prepend(...nodes);
|
|
1236
|
-
return nodes;
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
function append(parent, element) {
|
|
1240
|
-
const nodes = $$(element);
|
|
1241
|
-
$(parent).append(...nodes);
|
|
1242
|
-
return nodes;
|
|
1243
|
-
}
|
|
1206
|
+
const replaceChildren = applyFn('replaceChildren');
|
|
1207
|
+
const prepend = applyFn('prepend');
|
|
1208
|
+
const append = applyFn('append');
|
|
1209
|
+
const before = applyFn('before');
|
|
1210
|
+
const after = applyFn('after');
|
|
1244
1211
|
|
|
1245
|
-
function
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
$(ref).after(...nodes);
|
|
1254
|
-
return nodes;
|
|
1212
|
+
function applyFn(fn) {
|
|
1213
|
+
return function (ref, element) {
|
|
1214
|
+
const nodes = toNodes(isString(element) ? fragment(element) : element);
|
|
1215
|
+
if (nodes.length) {
|
|
1216
|
+
$(ref)[fn](...nodes);
|
|
1217
|
+
}
|
|
1218
|
+
return unwrapSingle(nodes);
|
|
1219
|
+
};
|
|
1255
1220
|
}
|
|
1256
1221
|
|
|
1257
1222
|
function remove$1(element) {
|
|
@@ -1289,9 +1254,16 @@
|
|
|
1289
1254
|
|
|
1290
1255
|
function fragment(html) {
|
|
1291
1256
|
const template = document.createElement('template');
|
|
1292
|
-
template.innerHTML = html;
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1257
|
+
template.innerHTML = html.trim();
|
|
1258
|
+
const nodes = toNodes(template.content.childNodes);
|
|
1259
|
+
for (const node of nodes) {
|
|
1260
|
+
document.adoptNode(node);
|
|
1261
|
+
}
|
|
1262
|
+
return unwrapSingle(nodes);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
function unwrapSingle(nodes) {
|
|
1266
|
+
return nodes.length > 1 ? nodes : nodes[0];
|
|
1295
1267
|
}
|
|
1296
1268
|
|
|
1297
1269
|
function apply(node, fn) {
|
|
@@ -1320,6 +1292,19 @@
|
|
|
1320
1292
|
return isString(str) && startsWith(str.trim(), '<');
|
|
1321
1293
|
}
|
|
1322
1294
|
|
|
1295
|
+
const inBrowser = typeof window !== 'undefined';
|
|
1296
|
+
const isRtl = inBrowser && attr(document.documentElement, 'dir') === 'rtl';
|
|
1297
|
+
|
|
1298
|
+
const hasTouch = inBrowser && 'ontouchstart' in window;
|
|
1299
|
+
const hasPointerEvents = inBrowser && window.PointerEvent;
|
|
1300
|
+
|
|
1301
|
+
const pointerDown = hasPointerEvents ? 'pointerdown' : hasTouch ? 'touchstart' : 'mousedown';
|
|
1302
|
+
const pointerMove = hasPointerEvents ? 'pointermove' : hasTouch ? 'touchmove' : 'mousemove';
|
|
1303
|
+
const pointerUp = hasPointerEvents ? 'pointerup' : hasTouch ? 'touchend' : 'mouseup';
|
|
1304
|
+
const pointerEnter = hasPointerEvents ? 'pointerenter' : hasTouch ? '' : 'mouseenter';
|
|
1305
|
+
const pointerLeave = hasPointerEvents ? 'pointerleave' : hasTouch ? '' : 'mouseleave';
|
|
1306
|
+
const pointerCancel = hasPointerEvents ? 'pointercancel' : 'touchcancel';
|
|
1307
|
+
|
|
1323
1308
|
/*
|
|
1324
1309
|
Based on:
|
|
1325
1310
|
Copyright (c) 2016 Wilson Page wilsonpage@me.com
|
|
@@ -1511,7 +1496,7 @@
|
|
|
1511
1496
|
|
|
1512
1497
|
// extend strategy
|
|
1513
1498
|
strats.computed = strats.methods = function (parentVal, childVal) {
|
|
1514
|
-
return childVal ? parentVal ?
|
|
1499
|
+
return childVal ? parentVal ? { ...parentVal, ...childVal } : childVal : parentVal;
|
|
1515
1500
|
};
|
|
1516
1501
|
|
|
1517
1502
|
// data strategy
|
|
@@ -1651,11 +1636,11 @@
|
|
|
1651
1636
|
}
|
|
1652
1637
|
|
|
1653
1638
|
function isHTML5(el) {
|
|
1654
|
-
return (el
|
|
1639
|
+
return isTag(el, 'video');
|
|
1655
1640
|
}
|
|
1656
1641
|
|
|
1657
1642
|
function isIFrame(el) {
|
|
1658
|
-
return (el
|
|
1643
|
+
return isTag(el, 'iframe') && (isYoutube(el) || isVimeo(el));
|
|
1659
1644
|
}
|
|
1660
1645
|
|
|
1661
1646
|
function isYoutube(el) {
|
|
@@ -1675,7 +1660,7 @@
|
|
|
1675
1660
|
|
|
1676
1661
|
function post(el, cmd) {
|
|
1677
1662
|
try {
|
|
1678
|
-
el.contentWindow.postMessage(JSON.stringify(
|
|
1663
|
+
el.contentWindow.postMessage(JSON.stringify({ event: 'command', ...cmd }), '*');
|
|
1679
1664
|
} catch (e) {
|
|
1680
1665
|
// noop
|
|
1681
1666
|
}
|
|
@@ -2055,6 +2040,7 @@
|
|
|
2055
2040
|
flipPosition: flipPosition,
|
|
2056
2041
|
toPx: toPx,
|
|
2057
2042
|
ready: ready,
|
|
2043
|
+
isTag: isTag,
|
|
2058
2044
|
empty: empty,
|
|
2059
2045
|
html: html,
|
|
2060
2046
|
replaceChildren: replaceChildren,
|
|
@@ -2349,7 +2335,7 @@
|
|
|
2349
2335
|
const {
|
|
2350
2336
|
$options: { computed } } =
|
|
2351
2337
|
this;
|
|
2352
|
-
const values =
|
|
2338
|
+
const values = { ...this._computeds };
|
|
2353
2339
|
this._computeds = {};
|
|
2354
2340
|
|
|
2355
2341
|
for (const key in computed) {
|
|
@@ -2534,7 +2520,7 @@
|
|
|
2534
2520
|
el = isFunction(el) ? el.call(component) : el || component.$el;
|
|
2535
2521
|
|
|
2536
2522
|
if (isArray(el)) {
|
|
2537
|
-
el.forEach((el) => registerEvent(component,
|
|
2523
|
+
el.forEach((el) => registerEvent(component, { ...event, el }, key));
|
|
2538
2524
|
return;
|
|
2539
2525
|
}
|
|
2540
2526
|
|
|
@@ -2768,7 +2754,7 @@
|
|
|
2768
2754
|
}
|
|
2769
2755
|
};
|
|
2770
2756
|
|
|
2771
|
-
const opt = isPlainObject(options) ?
|
|
2757
|
+
const opt = isPlainObject(options) ? { ...options } : options.options;
|
|
2772
2758
|
|
|
2773
2759
|
opt.name = name;
|
|
2774
2760
|
|
|
@@ -2821,7 +2807,7 @@
|
|
|
2821
2807
|
UIkit.data = '__uikit__';
|
|
2822
2808
|
UIkit.prefix = 'uk-';
|
|
2823
2809
|
UIkit.options = {};
|
|
2824
|
-
UIkit.version = '3.11.2-dev.
|
|
2810
|
+
UIkit.version = '3.11.2-dev.2f4ac8e16';
|
|
2825
2811
|
|
|
2826
2812
|
globalAPI(UIkit);
|
|
2827
2813
|
hooksAPI(UIkit);
|
|
@@ -3144,7 +3130,7 @@
|
|
|
3144
3130
|
show ?
|
|
3145
3131
|
Transition.start(
|
|
3146
3132
|
el,
|
|
3147
|
-
|
|
3133
|
+
{ ...initProps, overflow: 'hidden', height: endHeight },
|
|
3148
3134
|
Math.round(duration * (1 - currentHeight / endHeight)),
|
|
3149
3135
|
transition) :
|
|
3150
3136
|
|
|
@@ -3316,7 +3302,7 @@
|
|
|
3316
3302
|
animation: [true],
|
|
3317
3303
|
selClose: '.uk-alert-close',
|
|
3318
3304
|
duration: 150,
|
|
3319
|
-
hideProps:
|
|
3305
|
+
hideProps: { opacity: 0, ...Togglable.data.hideProps } },
|
|
3320
3306
|
|
|
3321
3307
|
|
|
3322
3308
|
events: [
|
|
@@ -4473,6 +4459,12 @@
|
|
|
4473
4459
|
|
|
4474
4460
|
methods: {
|
|
4475
4461
|
async getSvg() {
|
|
4462
|
+
if (isTag(this.$el, 'img') && !this.$el.complete && this.$el.loading === 'lazy') {
|
|
4463
|
+
return new Promise((resolve) =>
|
|
4464
|
+
once(this.$el, 'load', () => resolve(this.getSvg())));
|
|
4465
|
+
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4476
4468
|
return parseSVG(await loadSVG(this.src), this.icon) || Promise.reject('SVG not found.');
|
|
4477
4469
|
},
|
|
4478
4470
|
|
|
@@ -4572,7 +4564,7 @@
|
|
|
4572
4564
|
}
|
|
4573
4565
|
|
|
4574
4566
|
function insertSVG(el, root) {
|
|
4575
|
-
if (isVoidElement(root) || root
|
|
4567
|
+
if (isVoidElement(root) || isTag(root, 'canvas')) {
|
|
4576
4568
|
root.hidden = true;
|
|
4577
4569
|
|
|
4578
4570
|
const next = root.nextElementSibling;
|
|
@@ -4584,11 +4576,7 @@
|
|
|
4584
4576
|
}
|
|
4585
4577
|
|
|
4586
4578
|
function equals(el, other) {
|
|
4587
|
-
return
|
|
4588
|
-
}
|
|
4589
|
-
|
|
4590
|
-
function isSVG(el) {
|
|
4591
|
-
return (el == null ? void 0 : el.tagName) === 'svg';
|
|
4579
|
+
return isTag(el, 'svg') && isTag(other, 'svg') && innerHTML(el) === innerHTML(other);
|
|
4592
4580
|
}
|
|
4593
4581
|
|
|
4594
4582
|
function innerHTML(el) {
|
|
@@ -4775,120 +4763,95 @@
|
|
|
4775
4763
|
return isRtl ? swap(swap(icon, 'left', 'right'), 'previous', 'next') : icon;
|
|
4776
4764
|
}
|
|
4777
4765
|
|
|
4766
|
+
const nativeLazyLoad = ('loading' in HTMLImageElement.prototype);
|
|
4767
|
+
const nativeIsIntersecting = ('isIntersecting' in IntersectionObserverEntry.prototype); // Old chromium based browsers (UC Browser) did not implement `isIntersecting`
|
|
4768
|
+
|
|
4778
4769
|
var img = {
|
|
4779
4770
|
args: 'dataSrc',
|
|
4780
4771
|
|
|
4781
4772
|
props: {
|
|
4782
4773
|
dataSrc: String,
|
|
4783
|
-
|
|
4784
|
-
sizes: String,
|
|
4785
|
-
width: Number,
|
|
4786
|
-
height: Number,
|
|
4774
|
+
sources: String,
|
|
4787
4775
|
offsetTop: String,
|
|
4788
4776
|
offsetLeft: String,
|
|
4789
|
-
target: String
|
|
4777
|
+
target: String,
|
|
4778
|
+
loading: String },
|
|
4790
4779
|
|
|
4791
4780
|
|
|
4792
4781
|
data: {
|
|
4793
4782
|
dataSrc: '',
|
|
4794
|
-
|
|
4795
|
-
sizes: false,
|
|
4796
|
-
width: false,
|
|
4797
|
-
height: false,
|
|
4783
|
+
sources: false,
|
|
4798
4784
|
offsetTop: '50vh',
|
|
4799
4785
|
offsetLeft: '50vw',
|
|
4800
|
-
target: false
|
|
4786
|
+
target: false,
|
|
4787
|
+
loading: 'lazy' },
|
|
4801
4788
|
|
|
4802
4789
|
|
|
4803
4790
|
computed: {
|
|
4804
|
-
cacheKey(_ref) {let { dataSrc } = _ref;
|
|
4805
|
-
return this.$name + "." + dataSrc;
|
|
4806
|
-
},
|
|
4807
|
-
|
|
4808
|
-
width(_ref2) {let { width, dataWidth } = _ref2;
|
|
4809
|
-
return width || dataWidth;
|
|
4810
|
-
},
|
|
4811
|
-
|
|
4812
|
-
height(_ref3) {let { height, dataHeight } = _ref3;
|
|
4813
|
-
return height || dataHeight;
|
|
4814
|
-
},
|
|
4815
|
-
|
|
4816
|
-
sizes(_ref4) {let { sizes, dataSizes } = _ref4;
|
|
4817
|
-
return sizes || dataSizes;
|
|
4818
|
-
},
|
|
4819
|
-
|
|
4820
|
-
isImg(_, $el) {
|
|
4821
|
-
return isImg($el);
|
|
4822
|
-
},
|
|
4823
|
-
|
|
4824
4791
|
target: {
|
|
4825
|
-
get(
|
|
4792
|
+
get(_ref) {let { target } = _ref;
|
|
4826
4793
|
return [this.$el, ...queryAll(target, this.$el)];
|
|
4827
4794
|
},
|
|
4828
4795
|
|
|
4829
4796
|
watch() {
|
|
4830
4797
|
this.observe();
|
|
4831
|
-
} },
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
offsetTop(_ref6) {let { offsetTop } = _ref6;
|
|
4835
|
-
return toPx(offsetTop, 'height');
|
|
4836
|
-
},
|
|
4798
|
+
} } },
|
|
4837
4799
|
|
|
4838
|
-
offsetLeft(_ref7) {let { offsetLeft } = _ref7;
|
|
4839
|
-
return toPx(offsetLeft, 'width');
|
|
4840
|
-
} },
|
|
4841
4800
|
|
|
4842
4801
|
|
|
4843
4802
|
connected() {
|
|
4844
|
-
if (!window.IntersectionObserver) {
|
|
4845
|
-
|
|
4803
|
+
if (this.loading !== 'lazy' || !window.IntersectionObserver || !nativeIsIntersecting) {
|
|
4804
|
+
this.load();
|
|
4846
4805
|
return;
|
|
4847
4806
|
}
|
|
4848
4807
|
|
|
4849
|
-
if (
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4808
|
+
if (nativeLazyLoad && isImg(this.$el)) {
|
|
4809
|
+
this.$el.loading = 'lazy';
|
|
4810
|
+
setSrcAttrs(this.$el);
|
|
4811
|
+
|
|
4812
|
+
if (this.target.length === 1) {
|
|
4813
|
+
return;
|
|
4814
|
+
}
|
|
4853
4815
|
}
|
|
4854
4816
|
|
|
4855
|
-
|
|
4856
|
-
rootMargin: this.offsetTop + "px " + this.offsetLeft + "px" });
|
|
4817
|
+
ensureSrcAttribute(this.$el);
|
|
4857
4818
|
|
|
4819
|
+
const rootMargin = toPx(this.offsetTop, 'height') + "px " + toPx(
|
|
4820
|
+
this.offsetLeft,
|
|
4821
|
+
'width') + "px";
|
|
4858
4822
|
|
|
4859
|
-
|
|
4860
|
-
|
|
4823
|
+
this.observer = new IntersectionObserver(
|
|
4824
|
+
(entries) => {
|
|
4825
|
+
if (entries.some((entry) => entry.isIntersecting)) {
|
|
4826
|
+
this.load();
|
|
4827
|
+
this.observer.disconnect();
|
|
4828
|
+
}
|
|
4829
|
+
},
|
|
4830
|
+
{ rootMargin });
|
|
4861
4831
|
|
|
4862
|
-
|
|
4863
|
-
this.observer && this.observer.disconnect();
|
|
4832
|
+
this.observe();
|
|
4864
4833
|
},
|
|
4865
4834
|
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
}
|
|
4835
|
+
disconnected() {var _this$observer;
|
|
4836
|
+
if (this._data.image) {
|
|
4837
|
+
this._data.image.onload = '';
|
|
4838
|
+
}
|
|
4871
4839
|
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
}
|
|
4840
|
+
(_this$observer = this.observer) == null ? void 0 : _this$observer.disconnect();
|
|
4841
|
+
},
|
|
4875
4842
|
|
|
4876
|
-
|
|
4843
|
+
update: {
|
|
4844
|
+
write(store) {
|
|
4845
|
+
if (!this.observer || isImg(this.$el)) {
|
|
4877
4846
|
return false;
|
|
4878
4847
|
}
|
|
4879
4848
|
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
(img) => img && img.currentSrc !== '' && setSrcAttrs(this.$el, currentSrc(img)));
|
|
4883
|
-
|
|
4884
|
-
},
|
|
4885
|
-
|
|
4886
|
-
write(data) {
|
|
4887
|
-
if (this.dataSrcset && window.devicePixelRatio !== 1) {
|
|
4849
|
+
const srcset = data(this.$el, 'data-srcset');
|
|
4850
|
+
if (srcset && window.devicePixelRatio !== 1) {
|
|
4888
4851
|
const bgSize = css(this.$el, 'backgroundSize');
|
|
4889
|
-
if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) ===
|
|
4890
|
-
|
|
4891
|
-
css(this.$el, 'backgroundSize',
|
|
4852
|
+
if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) === store.bgSize) {
|
|
4853
|
+
store.bgSize = getSourceSize(srcset, data(this.$el, 'sizes'));
|
|
4854
|
+
css(this.$el, 'backgroundSize', store.bgSize + "px");
|
|
4892
4855
|
}
|
|
4893
4856
|
}
|
|
4894
4857
|
},
|
|
@@ -4897,24 +4860,18 @@
|
|
|
4897
4860
|
|
|
4898
4861
|
|
|
4899
4862
|
methods: {
|
|
4900
|
-
load(
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
!entries.some((entry) => isUndefined(entry.isIntersecting) || entry.isIntersecting))
|
|
4904
|
-
{
|
|
4905
|
-
return;
|
|
4863
|
+
load() {
|
|
4864
|
+
if (this._data.image) {
|
|
4865
|
+
return this._data.image;
|
|
4906
4866
|
}
|
|
4907
4867
|
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
storage[this.cacheKey] = currentSrc(img);
|
|
4912
|
-
return img;
|
|
4913
|
-
},
|
|
4914
|
-
(e) => trigger(this.$el, new e.constructor(e.type, e)));
|
|
4915
|
-
|
|
4868
|
+
const image = isImg(this.$el) ?
|
|
4869
|
+
this.$el :
|
|
4870
|
+
getImageFromElement(this.$el, this.dataSrc, this.sources);
|
|
4916
4871
|
|
|
4917
|
-
|
|
4872
|
+
removeAttr(image, 'loading');
|
|
4873
|
+
setSrcAttrs(this.$el, image.currentSrc);
|
|
4874
|
+
return this._data.image = image;
|
|
4918
4875
|
},
|
|
4919
4876
|
|
|
4920
4877
|
observe() {
|
|
@@ -4927,12 +4884,11 @@
|
|
|
4927
4884
|
|
|
4928
4885
|
|
|
4929
4886
|
|
|
4930
|
-
function setSrcAttrs(el, src
|
|
4887
|
+
function setSrcAttrs(el, src) {
|
|
4931
4888
|
if (isImg(el)) {
|
|
4932
|
-
const
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
set('src', src);
|
|
4889
|
+
const parentNode = parent(el);
|
|
4890
|
+
const elements = isPicture(parentNode) ? children(parentNode) : [el];
|
|
4891
|
+
elements.forEach((el) => setSourceProps(el, el));
|
|
4936
4892
|
} else if (src) {
|
|
4937
4893
|
const change = !includes(el.style.backgroundImage, src);
|
|
4938
4894
|
if (change) {
|
|
@@ -4942,16 +4898,60 @@
|
|
|
4942
4898
|
}
|
|
4943
4899
|
}
|
|
4944
4900
|
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4901
|
+
const srcProps = ['data-src', 'data-srcset', 'sizes'];
|
|
4902
|
+
function setSourceProps(sourceEl, targetEl) {
|
|
4903
|
+
srcProps.forEach((prop) => {
|
|
4904
|
+
const value = data(sourceEl, prop);
|
|
4905
|
+
if (value) {
|
|
4906
|
+
attr(targetEl, prop.replace(/^(data-)+/, ''), value);
|
|
4907
|
+
}
|
|
4908
|
+
});
|
|
4909
|
+
}
|
|
4910
|
+
|
|
4911
|
+
function getImageFromElement(el, src, sources) {
|
|
4912
|
+
const img = new Image();
|
|
4913
|
+
|
|
4914
|
+
wrapInPicture(img, sources);
|
|
4915
|
+
setSourceProps(el, img);
|
|
4916
|
+
img.onload = () => setSrcAttrs(el, img.currentSrc);
|
|
4917
|
+
attr(img, 'src', src);
|
|
4918
|
+
return img;
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4921
|
+
function wrapInPicture(img, sources) {
|
|
4922
|
+
sources = parseSources(sources);
|
|
4923
|
+
|
|
4924
|
+
if (sources.length) {
|
|
4925
|
+
const picture = fragment('<picture>');
|
|
4926
|
+
for (const attrs of sources) {
|
|
4927
|
+
const source = fragment('<source>');
|
|
4928
|
+
attr(source, attrs);
|
|
4929
|
+
append(picture, source);
|
|
4930
|
+
}
|
|
4931
|
+
append(picture, img);
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
function parseSources(sources) {
|
|
4936
|
+
if (!sources) {
|
|
4937
|
+
return [];
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4940
|
+
if (startsWith(sources, '[')) {
|
|
4941
|
+
try {
|
|
4942
|
+
sources = JSON.parse(sources);
|
|
4943
|
+
} catch (e) {
|
|
4944
|
+
sources = [];
|
|
4945
|
+
}
|
|
4946
|
+
} else {
|
|
4947
|
+
sources = parseOptions(sources);
|
|
4948
|
+
}
|
|
4951
4949
|
|
|
4950
|
+
if (!isArray(sources)) {
|
|
4951
|
+
sources = [sources];
|
|
4952
4952
|
}
|
|
4953
4953
|
|
|
4954
|
-
return
|
|
4954
|
+
return sources.filter((source) => !isEmpty(source));
|
|
4955
4955
|
}
|
|
4956
4956
|
|
|
4957
4957
|
const sizesRe = /\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;
|
|
@@ -4991,24 +4991,18 @@
|
|
|
4991
4991
|
return descriptors.filter((size) => size >= srcSize)[0] || descriptors.pop() || '';
|
|
4992
4992
|
}
|
|
4993
4993
|
|
|
4994
|
-
function
|
|
4995
|
-
|
|
4994
|
+
function ensureSrcAttribute(el) {
|
|
4995
|
+
if (isImg(el) && !hasAttr(el, 'src')) {
|
|
4996
|
+
attr(el, 'src', 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>');
|
|
4997
|
+
}
|
|
4996
4998
|
}
|
|
4997
4999
|
|
|
4998
|
-
function
|
|
4999
|
-
return el
|
|
5000
|
+
function isPicture(el) {
|
|
5001
|
+
return isTag(el, 'picture');
|
|
5000
5002
|
}
|
|
5001
5003
|
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
// workaround for Safari's private browsing mode and accessing sessionStorage in Blink
|
|
5006
|
-
try {
|
|
5007
|
-
storage = window.sessionStorage || {};
|
|
5008
|
-
storage[key] = 1;
|
|
5009
|
-
delete storage[key];
|
|
5010
|
-
} catch (e) {
|
|
5011
|
-
storage = {};
|
|
5004
|
+
function isImg(el) {
|
|
5005
|
+
return isTag(el, 'img');
|
|
5012
5006
|
}
|
|
5013
5007
|
|
|
5014
5008
|
var Media = {
|
|
@@ -5464,7 +5458,7 @@
|
|
|
5464
5458
|
|
|
5465
5459
|
|
|
5466
5460
|
function openDialog(tmpl, options, hideFn, submitFn) {
|
|
5467
|
-
options =
|
|
5461
|
+
options = { bgClose: false, escClose: true, labels: modal.labels, ...options };
|
|
5468
5462
|
|
|
5469
5463
|
const dialog = modal.dialog(tmpl(options), options);
|
|
5470
5464
|
const deferred = new Deferred();
|
|
@@ -5593,10 +5587,11 @@
|
|
|
5593
5587
|
this.$create(
|
|
5594
5588
|
'drop',
|
|
5595
5589
|
dropdowns.filter((el) => !this.getDropdown(el)),
|
|
5596
|
-
|
|
5590
|
+
{
|
|
5591
|
+
...this.$props,
|
|
5597
5592
|
boundary: this.boundary,
|
|
5598
5593
|
pos: this.pos,
|
|
5599
|
-
offset: this.dropbar || this.offset })
|
|
5594
|
+
offset: this.dropbar || this.offset });
|
|
5600
5595
|
|
|
5601
5596
|
|
|
5602
5597
|
},
|
|
@@ -6634,7 +6629,7 @@
|
|
|
6634
6629
|
margin,
|
|
6635
6630
|
width: dimensions$1(isVisible(this.widthElement) ? this.widthElement : this.$el).
|
|
6636
6631
|
width,
|
|
6637
|
-
top: offsetPosition(
|
|
6632
|
+
top: offsetPosition(referenceElement)[0] };
|
|
6638
6633
|
|
|
6639
6634
|
},
|
|
6640
6635
|
|
|
@@ -7112,7 +7107,7 @@
|
|
|
7112
7107
|
name: 'keydown',
|
|
7113
7108
|
|
|
7114
7109
|
filter() {
|
|
7115
|
-
return includes(this.mode, 'click') && this.$el
|
|
7110
|
+
return includes(this.mode, 'click') && isTag(this.$el, 'input');
|
|
7116
7111
|
},
|
|
7117
7112
|
|
|
7118
7113
|
handler(e) {
|
|
@@ -7556,7 +7551,7 @@
|
|
|
7556
7551
|
|
|
7557
7552
|
// Reset to previous state
|
|
7558
7553
|
nodes.forEach((el, i) => propsFrom[i] && css(el, propsFrom[i]));
|
|
7559
|
-
css(target,
|
|
7554
|
+
css(target, { display: 'block', ...targetProps });
|
|
7560
7555
|
|
|
7561
7556
|
// Start transitions on next frame
|
|
7562
7557
|
requestAnimationFrame(() => {
|
|
@@ -7588,15 +7583,13 @@
|
|
|
7588
7583
|
const zIndex = css(el, 'zIndex');
|
|
7589
7584
|
|
|
7590
7585
|
return isVisible(el) ?
|
|
7591
|
-
assign(
|
|
7592
7586
|
{
|
|
7593
7587
|
display: '',
|
|
7594
7588
|
opacity: opacity ? css(el, 'opacity') : '0',
|
|
7595
7589
|
pointerEvents: 'none',
|
|
7596
7590
|
position: 'absolute',
|
|
7597
|
-
zIndex: zIndex === 'auto' ? index(el) : zIndex
|
|
7598
|
-
|
|
7599
|
-
getPositionWithMargin(el)) :
|
|
7591
|
+
zIndex: zIndex === 'auto' ? index(el) : zIndex,
|
|
7592
|
+
...getPositionWithMargin(el) } :
|
|
7600
7593
|
|
|
7601
7594
|
false;
|
|
7602
7595
|
}
|
|
@@ -7780,7 +7773,7 @@
|
|
|
7780
7773
|
},
|
|
7781
7774
|
|
|
7782
7775
|
setState(state, animate) {if (animate === void 0) {animate = true;}
|
|
7783
|
-
state =
|
|
7776
|
+
state = { filter: { '': '' }, sort: [], ...state };
|
|
7784
7777
|
|
|
7785
7778
|
trigger(this.$el, 'beforeFilter', [this, state]);
|
|
7786
7779
|
|
|
@@ -7880,7 +7873,7 @@
|
|
|
7880
7873
|
}
|
|
7881
7874
|
|
|
7882
7875
|
function sortItems(nodes, sort, order) {
|
|
7883
|
-
return
|
|
7876
|
+
return [...nodes].sort(
|
|
7884
7877
|
(a, b) =>
|
|
7885
7878
|
data(a, sort).localeCompare(data(b, sort), undefined, { numeric: true }) * (
|
|
7886
7879
|
order === 'asc' || -1));
|
|
@@ -7919,7 +7912,8 @@
|
|
|
7919
7912
|
return "scale3d(" + value + ", " + value + ", 1)";
|
|
7920
7913
|
}
|
|
7921
7914
|
|
|
7922
|
-
var Animations$1 =
|
|
7915
|
+
var Animations$1 = {
|
|
7916
|
+
...Animations$2,
|
|
7923
7917
|
fade: {
|
|
7924
7918
|
show() {
|
|
7925
7919
|
return [{ opacity: 0 }, { opacity: 1 }];
|
|
@@ -7951,7 +7945,7 @@
|
|
|
7951
7945
|
{ opacity: 1 - percent, transform: scale3d(1 - 0.2 * percent) },
|
|
7952
7946
|
{ opacity: percent, transform: scale3d(1 - 0.2 + 0.2 * percent) }];
|
|
7953
7947
|
|
|
7954
|
-
} } }
|
|
7948
|
+
} } };
|
|
7955
7949
|
|
|
7956
7950
|
function Transitioner$1(prev, next, dir, _ref) {let { animation, easing } = _ref;
|
|
7957
7951
|
const { percent, translate, show = noop } = animation;
|
|
@@ -8512,20 +8506,13 @@
|
|
|
8512
8506
|
},
|
|
8513
8507
|
|
|
8514
8508
|
_show(prev, next, force) {
|
|
8515
|
-
this._transitioner = this._getTransitioner(
|
|
8516
|
-
prev,
|
|
8517
|
-
next,
|
|
8518
|
-
this.dir,
|
|
8519
|
-
assign(
|
|
8520
|
-
{
|
|
8509
|
+
this._transitioner = this._getTransitioner(prev, next, this.dir, {
|
|
8521
8510
|
easing: force ?
|
|
8522
8511
|
next.offsetWidth < 600 ?
|
|
8523
8512
|
'cubic-bezier(0.25, 0.46, 0.45, 0.94)' /* easeOutQuad */ :
|
|
8524
8513
|
'cubic-bezier(0.165, 0.84, 0.44, 1)' /* easeOutQuart */ :
|
|
8525
|
-
this.easing
|
|
8526
|
-
|
|
8527
|
-
this.transitionOptions));
|
|
8528
|
-
|
|
8514
|
+
this.easing,
|
|
8515
|
+
...this.transitionOptions });
|
|
8529
8516
|
|
|
8530
8517
|
|
|
8531
8518
|
if (!force && !prev) {
|
|
@@ -8590,7 +8577,7 @@
|
|
|
8590
8577
|
|
|
8591
8578
|
computed: {
|
|
8592
8579
|
animation(_ref) {let { animation, Animations } = _ref;
|
|
8593
|
-
return
|
|
8580
|
+
return { ...(Animations[animation] || Animations.slide), name: animation };
|
|
8594
8581
|
},
|
|
8595
8582
|
|
|
8596
8583
|
transitionOptions() {
|
|
@@ -8813,28 +8800,20 @@
|
|
|
8813
8800
|
if (type === 'image' || src.match(/\.(avif|jpe?g|a?png|gif|svg|webp)($|\?)/i)) {
|
|
8814
8801
|
try {
|
|
8815
8802
|
const { width, height } = await getImage(src, attrs.srcset, attrs.size);
|
|
8816
|
-
this.setItem(
|
|
8817
|
-
item,
|
|
8818
|
-
createEl('img', assign({ src, width, height, alt }, attrs)));
|
|
8819
|
-
|
|
8803
|
+
this.setItem(item, createEl('img', { src, width, height, alt, ...attrs }));
|
|
8820
8804
|
} catch (e) {
|
|
8821
8805
|
this.setError(item);
|
|
8822
8806
|
}
|
|
8823
8807
|
|
|
8824
8808
|
// Video
|
|
8825
8809
|
} else if (type === 'video' || src.match(/\.(mp4|webm|ogv)($|\?)/i)) {
|
|
8826
|
-
const video = createEl(
|
|
8827
|
-
'video',
|
|
8828
|
-
assign(
|
|
8829
|
-
{
|
|
8810
|
+
const video = createEl('video', {
|
|
8830
8811
|
src,
|
|
8831
8812
|
poster,
|
|
8832
8813
|
controls: '',
|
|
8833
8814
|
playsinline: '',
|
|
8834
|
-
'uk-video': "" + this.videoAutoplay
|
|
8835
|
-
|
|
8836
|
-
attrs));
|
|
8837
|
-
|
|
8815
|
+
'uk-video': "" + this.videoAutoplay,
|
|
8816
|
+
...attrs });
|
|
8838
8817
|
|
|
8839
8818
|
|
|
8840
8819
|
on(video, 'loadedmetadata', () => {
|
|
@@ -8847,17 +8826,12 @@
|
|
|
8847
8826
|
} else if (type === 'iframe' || src.match(/\.(html|php)($|\?)/i)) {
|
|
8848
8827
|
this.setItem(
|
|
8849
8828
|
item,
|
|
8850
|
-
createEl(
|
|
8851
|
-
'iframe',
|
|
8852
|
-
assign(
|
|
8853
|
-
{
|
|
8829
|
+
createEl('iframe', {
|
|
8854
8830
|
src,
|
|
8855
8831
|
frameborder: '0',
|
|
8856
8832
|
allowfullscreen: '',
|
|
8857
|
-
class: 'uk-lightbox-iframe'
|
|
8858
|
-
|
|
8859
|
-
attrs)));
|
|
8860
|
-
|
|
8833
|
+
class: 'uk-lightbox-iframe',
|
|
8834
|
+
...attrs }));
|
|
8861
8835
|
|
|
8862
8836
|
|
|
8863
8837
|
|
|
@@ -8869,19 +8843,14 @@
|
|
|
8869
8843
|
{
|
|
8870
8844
|
this.setItem(
|
|
8871
8845
|
item,
|
|
8872
|
-
createEl(
|
|
8873
|
-
|
|
8874
|
-
assign(
|
|
8875
|
-
{
|
|
8876
|
-
src: "https://www.youtube" + (matches[1] || '') + ".com/embed/" +
|
|
8877
|
-
matches[2] + (
|
|
8846
|
+
createEl('iframe', {
|
|
8847
|
+
src: "https://www.youtube" + (matches[1] || '') + ".com/embed/" + matches[2] + (
|
|
8878
8848
|
matches[3] ? "?" + matches[3] : ''),
|
|
8879
|
-
width: 1920,
|
|
8880
|
-
height: 1080 },
|
|
8881
|
-
|
|
8882
|
-
iframeAttrs,
|
|
8883
|
-
attrs)));
|
|
8884
8849
|
|
|
8850
|
+
width: 1920,
|
|
8851
|
+
height: 1080,
|
|
8852
|
+
...iframeAttrs,
|
|
8853
|
+
...attrs }));
|
|
8885
8854
|
|
|
8886
8855
|
|
|
8887
8856
|
|
|
@@ -8901,19 +8870,14 @@
|
|
|
8901
8870
|
|
|
8902
8871
|
this.setItem(
|
|
8903
8872
|
item,
|
|
8904
|
-
createEl(
|
|
8905
|
-
'iframe',
|
|
8906
|
-
assign(
|
|
8907
|
-
{
|
|
8873
|
+
createEl('iframe', {
|
|
8908
8874
|
src: "https://player.vimeo.com/video/" + matches[1] + (
|
|
8909
8875
|
matches[2] ? "?" + matches[2] : ''),
|
|
8910
8876
|
|
|
8911
8877
|
width,
|
|
8912
|
-
height
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
attrs)));
|
|
8916
|
-
|
|
8878
|
+
height,
|
|
8879
|
+
...iframeAttrs,
|
|
8880
|
+
...attrs }));
|
|
8917
8881
|
|
|
8918
8882
|
|
|
8919
8883
|
} catch (e) {
|
|
@@ -9015,8 +8979,7 @@
|
|
|
9015
8979
|
index = findIndex(items, (_ref2) => {let { source: src } = _ref2;return source === src;});
|
|
9016
8980
|
}
|
|
9017
8981
|
|
|
9018
|
-
this.panel =
|
|
9019
|
-
this.panel || this.$create('lightboxPanel', assign({}, this.$props, { items }));
|
|
8982
|
+
this.panel = this.panel || this.$create('lightboxPanel', { ...this.$props, items });
|
|
9020
8983
|
|
|
9021
8984
|
on(this.panel.$el, 'hidden', () => this.panel = false);
|
|
9022
8985
|
|
|
@@ -9232,39 +9195,35 @@
|
|
|
9232
9195
|
|
|
9233
9196
|
|
|
9234
9197
|
|
|
9235
|
-
function transformFn(prop, el,
|
|
9236
|
-
const unit = getUnit(
|
|
9198
|
+
function transformFn(prop, el, stops) {
|
|
9199
|
+
const unit = getUnit(stops) || { x: 'px', y: 'px', rotate: 'deg' }[prop] || '';
|
|
9200
|
+
let transformFn;
|
|
9237
9201
|
|
|
9238
9202
|
if (prop === 'x' || prop === 'y') {
|
|
9239
9203
|
prop = "translate" + ucfirst(prop);
|
|
9204
|
+
transformFn = (stop) => toFloat(toFloat(stop).toFixed(unit === 'px' ? 0 : 6));
|
|
9240
9205
|
}
|
|
9241
9206
|
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
if (steps.length === 1) {
|
|
9245
|
-
steps.unshift(prop === 'scale' ? 1 : 0);
|
|
9207
|
+
if (stops.length === 1) {
|
|
9208
|
+
stops.unshift(prop === 'scale' ? 1 : 0);
|
|
9246
9209
|
}
|
|
9247
9210
|
|
|
9248
|
-
|
|
9249
|
-
let value = getValue(steps, percent);
|
|
9211
|
+
stops = parseStops(stops, transformFn);
|
|
9250
9212
|
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
}
|
|
9254
|
-
|
|
9255
|
-
css.transform += " " + prop + "(" + value + unit + ")";
|
|
9213
|
+
return (css, percent) => {
|
|
9214
|
+
css.transform += " " + prop + "(" + getValue(stops, percent) + unit + ")";
|
|
9256
9215
|
};
|
|
9257
9216
|
}
|
|
9258
9217
|
|
|
9259
|
-
function colorFn(prop, el,
|
|
9260
|
-
if (
|
|
9261
|
-
|
|
9218
|
+
function colorFn(prop, el, stops) {
|
|
9219
|
+
if (stops.length === 1) {
|
|
9220
|
+
stops.unshift(getCssValue(el, prop, ''));
|
|
9262
9221
|
}
|
|
9263
9222
|
|
|
9264
|
-
|
|
9223
|
+
stops = parseStops(stops, (stop) => parseColor(el, stop));
|
|
9265
9224
|
|
|
9266
9225
|
return (css, percent) => {
|
|
9267
|
-
const [start, end, p] =
|
|
9226
|
+
const [start, end, p] = getStop(stops, percent);
|
|
9268
9227
|
const value = start.
|
|
9269
9228
|
map((value, i) => {
|
|
9270
9229
|
value += p * (end[i] - value);
|
|
@@ -9284,85 +9243,83 @@
|
|
|
9284
9243
|
map(toFloat);
|
|
9285
9244
|
}
|
|
9286
9245
|
|
|
9287
|
-
function filterFn(prop, el,
|
|
9288
|
-
if (
|
|
9289
|
-
|
|
9246
|
+
function filterFn(prop, el, stops) {
|
|
9247
|
+
if (stops.length === 1) {
|
|
9248
|
+
stops.unshift(0);
|
|
9290
9249
|
}
|
|
9291
9250
|
|
|
9292
|
-
const unit = getUnit(
|
|
9251
|
+
const unit = getUnit(stops) || { blur: 'px', hue: 'deg' }[prop] || '%';
|
|
9293
9252
|
prop = { fopacity: 'opacity', hue: 'hue-rotate' }[prop] || prop;
|
|
9294
|
-
|
|
9253
|
+
stops = parseStops(stops);
|
|
9295
9254
|
|
|
9296
9255
|
return (css, percent) => {
|
|
9297
|
-
const value = getValue(
|
|
9256
|
+
const value = getValue(stops, percent);
|
|
9298
9257
|
css.filter += " " + prop + "(" + (value + unit) + ")";
|
|
9299
9258
|
};
|
|
9300
9259
|
}
|
|
9301
9260
|
|
|
9302
|
-
function cssPropFn(prop, el,
|
|
9303
|
-
if (
|
|
9304
|
-
|
|
9261
|
+
function cssPropFn(prop, el, stops) {
|
|
9262
|
+
if (stops.length === 1) {
|
|
9263
|
+
stops.unshift(getCssValue(el, prop, ''));
|
|
9305
9264
|
}
|
|
9306
9265
|
|
|
9307
|
-
|
|
9266
|
+
stops = parseStops(stops);
|
|
9308
9267
|
|
|
9309
9268
|
return (css, percent) => {
|
|
9310
|
-
css[prop] = getValue(
|
|
9269
|
+
css[prop] = getValue(stops, percent);
|
|
9311
9270
|
};
|
|
9312
9271
|
}
|
|
9313
9272
|
|
|
9314
|
-
function strokeFn(prop, el,
|
|
9315
|
-
if (
|
|
9316
|
-
|
|
9273
|
+
function strokeFn(prop, el, stops) {
|
|
9274
|
+
if (stops.length === 1) {
|
|
9275
|
+
stops.unshift(0);
|
|
9317
9276
|
}
|
|
9318
9277
|
|
|
9319
|
-
const unit = getUnit(
|
|
9320
|
-
|
|
9278
|
+
const unit = getUnit(stops);
|
|
9279
|
+
const length = getMaxPathLength(el);
|
|
9280
|
+
stops = parseStops(stops.reverse(), (stop) => {
|
|
9281
|
+
stop = toFloat(stop);
|
|
9282
|
+
return unit === '%' ? stop * length / 100 : stop;
|
|
9283
|
+
});
|
|
9321
9284
|
|
|
9322
|
-
if (!
|
|
9285
|
+
if (!stops.some((_ref) => {let [value] = _ref;return value;})) {
|
|
9323
9286
|
return noop;
|
|
9324
9287
|
}
|
|
9325
9288
|
|
|
9326
|
-
const length = getMaxPathLength(el);
|
|
9327
9289
|
css(el, 'strokeDasharray', length);
|
|
9328
9290
|
|
|
9329
|
-
if (unit === '%') {
|
|
9330
|
-
steps = steps.map((step) => step * length / 100);
|
|
9331
|
-
}
|
|
9332
|
-
|
|
9333
|
-
steps = steps.reverse();
|
|
9334
|
-
|
|
9335
9291
|
return (css, percent) => {
|
|
9336
|
-
css.strokeDashoffset = getValue(
|
|
9292
|
+
css.strokeDashoffset = getValue(stops, percent);
|
|
9337
9293
|
};
|
|
9338
9294
|
}
|
|
9339
9295
|
|
|
9340
|
-
function backgroundFn(prop, el,
|
|
9341
|
-
if (
|
|
9342
|
-
|
|
9296
|
+
function backgroundFn(prop, el, stops) {
|
|
9297
|
+
if (stops.length === 1) {
|
|
9298
|
+
stops.unshift(0);
|
|
9343
9299
|
}
|
|
9344
9300
|
|
|
9345
9301
|
prop = prop.substr(-1);
|
|
9346
9302
|
const attr = prop === 'y' ? 'height' : 'width';
|
|
9347
|
-
|
|
9303
|
+
stops = parseStops(stops, (stop) => toPx(stop, attr, el));
|
|
9348
9304
|
|
|
9349
9305
|
const bgPos = getCssValue(el, "background-position-" + prop, '');
|
|
9350
9306
|
|
|
9351
9307
|
return getCssValue(el, 'backgroundSize', '') === 'cover' ?
|
|
9352
|
-
backgroundCoverFn(prop, el,
|
|
9353
|
-
setBackgroundPosFn(prop,
|
|
9308
|
+
backgroundCoverFn(prop, el, stops, bgPos, attr) :
|
|
9309
|
+
setBackgroundPosFn(prop, stops, bgPos);
|
|
9354
9310
|
}
|
|
9355
9311
|
|
|
9356
|
-
function backgroundCoverFn(prop, el,
|
|
9312
|
+
function backgroundCoverFn(prop, el, stops, bgPos, attr) {
|
|
9357
9313
|
const dimImage = getBackgroundImageDimensions(el);
|
|
9358
9314
|
|
|
9359
9315
|
if (!dimImage.width) {
|
|
9360
9316
|
return noop;
|
|
9361
9317
|
}
|
|
9362
9318
|
|
|
9363
|
-
const
|
|
9364
|
-
const
|
|
9365
|
-
const
|
|
9319
|
+
const values = stops.map((_ref2) => {let [value] = _ref2;return value;});
|
|
9320
|
+
const min = Math.min(...values);
|
|
9321
|
+
const max = Math.max(...values);
|
|
9322
|
+
const down = values.indexOf(min) < values.indexOf(max);
|
|
9366
9323
|
|
|
9367
9324
|
const diff = max - min;
|
|
9368
9325
|
let pos = (down ? -diff : 0) - (down ? min : max);
|
|
@@ -9387,7 +9344,7 @@
|
|
|
9387
9344
|
|
|
9388
9345
|
const dim = Dimensions.cover(dimImage, dimEl);
|
|
9389
9346
|
|
|
9390
|
-
const fn = setBackgroundPosFn(prop,
|
|
9347
|
+
const fn = setBackgroundPosFn(prop, stops, pos + "px");
|
|
9391
9348
|
return (css, percent) => {
|
|
9392
9349
|
fn(css, percent);
|
|
9393
9350
|
css.backgroundSize = dim.width + "px " + dim.height + "px";
|
|
@@ -9395,9 +9352,9 @@
|
|
|
9395
9352
|
};
|
|
9396
9353
|
}
|
|
9397
9354
|
|
|
9398
|
-
function setBackgroundPosFn(prop,
|
|
9355
|
+
function setBackgroundPosFn(prop, stops, pos) {
|
|
9399
9356
|
return function (css, percent) {
|
|
9400
|
-
css["background-position-" + prop] = "calc(" + pos + " + " + getValue(
|
|
9357
|
+
css["background-position-" + prop] = "calc(" + pos + " + " + getValue(stops, percent) + "px)";
|
|
9401
9358
|
};
|
|
9402
9359
|
}
|
|
9403
9360
|
|
|
@@ -9431,24 +9388,47 @@
|
|
|
9431
9388
|
|
|
9432
9389
|
}
|
|
9433
9390
|
|
|
9434
|
-
function
|
|
9435
|
-
const
|
|
9436
|
-
const
|
|
9391
|
+
function parseStops(stops, fn) {if (fn === void 0) {fn = toFloat;}
|
|
9392
|
+
const result = [];
|
|
9393
|
+
for (const stop of stops) {
|
|
9394
|
+
const [value, percent] = isString(stop) ? stop.trim().split(' ') : [stop];
|
|
9395
|
+
result.push([fn(value), percent ? toFloat(percent) / 100 : null]);
|
|
9396
|
+
}
|
|
9397
|
+
|
|
9398
|
+
const { length } = result;
|
|
9399
|
+
result[0][1] = 0;
|
|
9400
|
+
result[length - 1][1] = 1;
|
|
9401
|
+
for (let i = 1; i < length - 1; i++) {
|
|
9402
|
+
if (result[i] === null) {
|
|
9403
|
+
const nextIndex = findIndex(result.slice(i + 1), (_ref3) => {let [, percent] = _ref3;return percent !== null;}) + 1;
|
|
9404
|
+
const percent = (result[i + nextIndex] - result[i - 1][1]) / (nextIndex + 1);
|
|
9405
|
+
for (let j = 0; j < nextIndex; j++) {
|
|
9406
|
+
result[i + j][1] = percent * j + 1;
|
|
9407
|
+
}
|
|
9408
|
+
}
|
|
9409
|
+
}
|
|
9410
|
+
|
|
9411
|
+
return result;
|
|
9412
|
+
}
|
|
9413
|
+
|
|
9414
|
+
function getStop(stops, percent) {
|
|
9415
|
+
const index = findIndex(stops.slice(1), (_ref4) => {let [, targetPercent] = _ref4;return percent <= targetPercent;}) + 1;
|
|
9416
|
+
return [
|
|
9417
|
+
stops[index - 1][0],
|
|
9418
|
+
stops[index][0],
|
|
9419
|
+
(percent - stops[index - 1][1]) / (stops[index][1] - stops[index - 1][1])];
|
|
9437
9420
|
|
|
9438
|
-
return steps.
|
|
9439
|
-
slice(index, index + 2).
|
|
9440
|
-
concat(percent === 1 ? 1 : percent % (1 / count) * count);
|
|
9441
9421
|
}
|
|
9442
9422
|
|
|
9443
|
-
function getValue(
|
|
9444
|
-
const [start, end, p] =
|
|
9423
|
+
function getValue(stops, percent) {
|
|
9424
|
+
const [start, end, p] = getStop(stops, percent);
|
|
9445
9425
|
return isNumber(start) ? start + Math.abs(start - end) * p * (start < end ? 1 : -1) : +end;
|
|
9446
9426
|
}
|
|
9447
9427
|
|
|
9448
|
-
function getUnit(
|
|
9428
|
+
function getUnit(stops, defaultUnit) {
|
|
9449
9429
|
return (
|
|
9450
|
-
|
|
9451
|
-
(unit,
|
|
9430
|
+
stops.reduce(
|
|
9431
|
+
(unit, stop) => unit || isString(stop) && stop.replace(/[\d-]/g, '').trim(),
|
|
9452
9432
|
'') ||
|
|
9453
9433
|
defaultUnit);
|
|
9454
9434
|
|
|
@@ -9563,6 +9543,42 @@
|
|
|
9563
9543
|
|
|
9564
9544
|
events: ['resize'] } };
|
|
9565
9545
|
|
|
9546
|
+
var SliderPreload = {
|
|
9547
|
+
connected() {
|
|
9548
|
+
if (window.IntersectionObserver) {
|
|
9549
|
+
this.observer = new IntersectionObserver(
|
|
9550
|
+
(entries) => {
|
|
9551
|
+
if (entries.some((entry) => entry.isIntersecting)) {
|
|
9552
|
+
removeLazyLoad(this.getAdjacentSlides());
|
|
9553
|
+
}
|
|
9554
|
+
},
|
|
9555
|
+
{ rootMargin: '50% 50%' });
|
|
9556
|
+
|
|
9557
|
+
this.observer.observe(this.$el);
|
|
9558
|
+
}
|
|
9559
|
+
},
|
|
9560
|
+
|
|
9561
|
+
disconnected() {
|
|
9562
|
+
this.observer && this.observer.disconnect();
|
|
9563
|
+
},
|
|
9564
|
+
|
|
9565
|
+
update: {
|
|
9566
|
+
read() {
|
|
9567
|
+
if (isVisible(this.$el)) {
|
|
9568
|
+
removeLazyLoad(this.getAdjacentSlides());
|
|
9569
|
+
}
|
|
9570
|
+
},
|
|
9571
|
+
|
|
9572
|
+
events: ['resize'] } };
|
|
9573
|
+
|
|
9574
|
+
|
|
9575
|
+
|
|
9576
|
+
function removeLazyLoad(elements) {if (elements === void 0) {elements = [];}
|
|
9577
|
+
for (const el of elements) {
|
|
9578
|
+
el && $$('img[loading="lazy"]', el).forEach((el) => removeAttr(el, 'loading'));
|
|
9579
|
+
}
|
|
9580
|
+
}
|
|
9581
|
+
|
|
9566
9582
|
function Transitioner (prev, next, dir, _ref) {let { center, easing, list } = _ref;
|
|
9567
9583
|
const deferred = new Deferred();
|
|
9568
9584
|
|
|
@@ -9729,7 +9745,7 @@
|
|
|
9729
9745
|
}
|
|
9730
9746
|
|
|
9731
9747
|
var slider = {
|
|
9732
|
-
mixins: [Class, Slider, SliderReactive],
|
|
9748
|
+
mixins: [Class, Slider, SliderReactive, SliderPreload],
|
|
9733
9749
|
|
|
9734
9750
|
props: {
|
|
9735
9751
|
center: Boolean,
|
|
@@ -9966,6 +9982,25 @@
|
|
|
9966
9982
|
} while (index !== prev);
|
|
9967
9983
|
|
|
9968
9984
|
return index;
|
|
9985
|
+
},
|
|
9986
|
+
|
|
9987
|
+
getAdjacentSlides() {
|
|
9988
|
+
const { width } = dimensions$1(this.list);
|
|
9989
|
+
const left = -width;
|
|
9990
|
+
const right = width * 2;
|
|
9991
|
+
const slideWidth = dimensions$1(this.slides[this.index]).width;
|
|
9992
|
+
const slideLeft = this.center ? width / 2 - slideWidth / 2 : 0;
|
|
9993
|
+
const slides = new Set();
|
|
9994
|
+
for (const i of [-1, 1]) {
|
|
9995
|
+
let currentLeft = slideLeft + (i > 0 ? slideWidth : 0);
|
|
9996
|
+
let j = 0;
|
|
9997
|
+
do {
|
|
9998
|
+
const slide = this.slides[this.getIndex(this.index + i + j++ * i)];
|
|
9999
|
+
currentLeft += dimensions$1(slide).width * i;
|
|
10000
|
+
slides.add(slide);
|
|
10001
|
+
} while (this.slides.length > j && currentLeft > left && currentLeft < right);
|
|
10002
|
+
}
|
|
10003
|
+
return Array.from(slides);
|
|
9969
10004
|
} } };
|
|
9970
10005
|
|
|
9971
10006
|
|
|
@@ -10052,7 +10087,8 @@
|
|
|
10052
10087
|
return isIn(type) ^ dir < 0 ? percent : 1 - percent;
|
|
10053
10088
|
}
|
|
10054
10089
|
|
|
10055
|
-
var Animations =
|
|
10090
|
+
var Animations = {
|
|
10091
|
+
...Animations$2,
|
|
10056
10092
|
fade: {
|
|
10057
10093
|
show() {
|
|
10058
10094
|
return [{ opacity: 0, zIndex: 0 }, { zIndex: -1 }];
|
|
@@ -10141,10 +10177,10 @@
|
|
|
10141
10177
|
{ transform: translate(-30 * percent), zIndex: -1 },
|
|
10142
10178
|
{ transform: translate(100 * (1 - percent)), zIndex: 0 }];
|
|
10143
10179
|
|
|
10144
|
-
} } }
|
|
10180
|
+
} } };
|
|
10145
10181
|
|
|
10146
10182
|
var slideshow = {
|
|
10147
|
-
mixins: [Class, Slideshow, SliderReactive],
|
|
10183
|
+
mixins: [Class, Slideshow, SliderReactive, SliderPreload],
|
|
10148
10184
|
|
|
10149
10185
|
props: {
|
|
10150
10186
|
ratio: String,
|
|
@@ -10187,7 +10223,13 @@
|
|
|
10187
10223
|
height > 0 && css(this.list, 'minHeight', height);
|
|
10188
10224
|
},
|
|
10189
10225
|
|
|
10190
|
-
events: ['resize'] }
|
|
10226
|
+
events: ['resize'] },
|
|
10227
|
+
|
|
10228
|
+
|
|
10229
|
+
methods: {
|
|
10230
|
+
getAdjacentSlides() {
|
|
10231
|
+
return [1, -1].map((i) => this.slides[this.getIndex(this.index + i)]);
|
|
10232
|
+
} } };
|
|
10191
10233
|
|
|
10192
10234
|
var sortable = {
|
|
10193
10235
|
mixins: [Class, Animate],
|
|
@@ -10360,7 +10402,7 @@
|
|
|
10360
10402
|
|
|
10361
10403
|
this.touched = new Set([this]);
|
|
10362
10404
|
this.placeholder = placeholder;
|
|
10363
|
-
this.origin =
|
|
10405
|
+
this.origin = { target, index: index(placeholder), ...this.pos };
|
|
10364
10406
|
|
|
10365
10407
|
on(document, pointerMove, this.move);
|
|
10366
10408
|
on(document, pointerUp, this.end);
|