uikit 3.15.11-dev.fd61e70ff → 3.15.12-dev.0c0d42cdf
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 +21 -6
- package/build/util.js +26 -20
- package/dist/css/uikit-core-rtl.css +3 -3
- 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 +3 -3
- 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 +14 -13
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +31 -32
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +165 -150
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +173 -158
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +19 -17
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +37 -36
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +38 -29
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +84 -73
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +38 -29
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +95 -78
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +39 -39
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +43 -39
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +12 -12
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +582 -530
- package/dist/js/uikit-core.min.js +1 -17
- package/dist/js/uikit-icons.js +3 -3
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +883 -805
- package/dist/js/uikit.min.js +1 -17
- package/package.json +14 -14
- package/src/js/api/boot.js +3 -1
- package/src/js/components/lightbox-panel.js +5 -2
- package/src/js/components/slider-parallax.js +9 -0
- package/src/js/core/drop.js +5 -1
- package/src/js/core/margin.js +2 -0
- package/src/js/core/sticky.js +6 -7
- package/src/js/core/video.js +4 -3
- package/src/js/mixin/internal/animate-slide.js +1 -4
- package/src/js/util/env.js +1 -3
- package/src/js/util/position.js +11 -6
- package/tests/navbar.html +1 -1
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.15.
|
|
1
|
+
/*! UIkit 3.15.12-dev.0c0d42cdf | 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() :
|
|
@@ -215,8 +215,8 @@
|
|
|
215
215
|
[aProp]: dimensions[prop] ?
|
|
216
216
|
Math.round(value * dimensions[aProp] / dimensions[prop]) :
|
|
217
217
|
dimensions[aProp],
|
|
218
|
-
[prop]: value
|
|
219
|
-
|
|
218
|
+
[prop]: value
|
|
219
|
+
};
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
function contain(dimensions, maxDimensions) {
|
|
@@ -284,7 +284,8 @@
|
|
|
284
284
|
this.reject = reject;
|
|
285
285
|
this.resolve = resolve;
|
|
286
286
|
});
|
|
287
|
-
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
288
289
|
|
|
289
290
|
function attr(element, name, value) {
|
|
290
291
|
if (isObject(name)) {
|
|
@@ -348,8 +349,8 @@
|
|
|
348
349
|
param: true,
|
|
349
350
|
source: true,
|
|
350
351
|
track: true,
|
|
351
|
-
wbr: true
|
|
352
|
-
|
|
352
|
+
wbr: true
|
|
353
|
+
};
|
|
353
354
|
function isVoidElement(element) {
|
|
354
355
|
return toNodes(element).some((element) => voidElements[element.tagName.toLowerCase()]);
|
|
355
356
|
}
|
|
@@ -666,8 +667,8 @@
|
|
|
666
667
|
xhr: new XMLHttpRequest(),
|
|
667
668
|
beforeSend: noop,
|
|
668
669
|
responseType: '',
|
|
669
|
-
...options
|
|
670
|
-
|
|
670
|
+
...options
|
|
671
|
+
};
|
|
671
672
|
return Promise.resolve().
|
|
672
673
|
then(() => env.beforeSend(env)).
|
|
673
674
|
then(() => send(url, env));
|
|
@@ -700,8 +701,8 @@
|
|
|
700
701
|
reject(
|
|
701
702
|
assign(Error(xhr.statusText), {
|
|
702
703
|
xhr,
|
|
703
|
-
status: xhr.status
|
|
704
|
-
|
|
704
|
+
status: xhr.status
|
|
705
|
+
}));
|
|
705
706
|
|
|
706
707
|
}
|
|
707
708
|
});
|
|
@@ -745,8 +746,8 @@
|
|
|
745
746
|
'stroke-dashoffset': true,
|
|
746
747
|
widows: true,
|
|
747
748
|
'z-index': true,
|
|
748
|
-
zoom: true
|
|
749
|
-
|
|
749
|
+
zoom: true
|
|
750
|
+
};
|
|
750
751
|
|
|
751
752
|
function css(element, property, value, priority) {if (priority === void 0) {priority = '';}
|
|
752
753
|
const elements = toNodes(element);
|
|
@@ -879,8 +880,8 @@
|
|
|
879
880
|
css(element, {
|
|
880
881
|
transitionProperty: '',
|
|
881
882
|
transitionDuration: '',
|
|
882
|
-
transitionTimingFunction: ''
|
|
883
|
-
|
|
883
|
+
transitionTimingFunction: ''
|
|
884
|
+
});
|
|
884
885
|
type === 'transitioncanceled' ? reject() : resolve(element);
|
|
885
886
|
},
|
|
886
887
|
{ self: true });
|
|
@@ -891,8 +892,8 @@
|
|
|
891
892
|
transitionProperty: Object.keys(props).map(propName).join(','),
|
|
892
893
|
transitionDuration: duration + "ms",
|
|
893
894
|
transitionTimingFunction: timing,
|
|
894
|
-
...props
|
|
895
|
-
|
|
895
|
+
...props
|
|
896
|
+
});
|
|
896
897
|
})));
|
|
897
898
|
|
|
898
899
|
|
|
@@ -913,8 +914,8 @@
|
|
|
913
914
|
|
|
914
915
|
inProgress(element) {
|
|
915
916
|
return hasClass(element, 'uk-transition');
|
|
916
|
-
}
|
|
917
|
-
|
|
917
|
+
}
|
|
918
|
+
};
|
|
918
919
|
|
|
919
920
|
const animationPrefix = 'uk-animation-';
|
|
920
921
|
|
|
@@ -967,12 +968,13 @@
|
|
|
967
968
|
|
|
968
969
|
cancel(element) {
|
|
969
970
|
trigger(element, 'animationcanceled');
|
|
970
|
-
}
|
|
971
|
+
}
|
|
972
|
+
};
|
|
971
973
|
|
|
972
974
|
const dirs$1 = {
|
|
973
975
|
width: ['left', 'right'],
|
|
974
|
-
height: ['top', 'bottom']
|
|
975
|
-
|
|
976
|
+
height: ['top', 'bottom']
|
|
977
|
+
};
|
|
976
978
|
|
|
977
979
|
function dimensions(element) {
|
|
978
980
|
const rect = isElement(element) ?
|
|
@@ -985,8 +987,8 @@
|
|
|
985
987
|
top: rect.top,
|
|
986
988
|
left: rect.left,
|
|
987
989
|
bottom: rect.top + rect.height,
|
|
988
|
-
right: rect.left + rect.width
|
|
989
|
-
|
|
990
|
+
right: rect.left + rect.width
|
|
991
|
+
};
|
|
990
992
|
}
|
|
991
993
|
|
|
992
994
|
function offset(element, coordinates) {
|
|
@@ -1025,8 +1027,8 @@
|
|
|
1025
1027
|
|
|
1026
1028
|
const {
|
|
1027
1029
|
ownerDocument: { body, documentElement },
|
|
1028
|
-
offsetParent
|
|
1029
|
-
toNode(element);
|
|
1030
|
+
offsetParent
|
|
1031
|
+
} = toNode(element);
|
|
1030
1032
|
let parent = offsetParent || documentElement;
|
|
1031
1033
|
|
|
1032
1034
|
while (
|
|
@@ -1045,8 +1047,8 @@
|
|
|
1045
1047
|
|
|
1046
1048
|
return {
|
|
1047
1049
|
top: top - toFloat(css(element, 'marginTop')),
|
|
1048
|
-
left: left - toFloat(css(element, 'marginLeft'))
|
|
1049
|
-
|
|
1050
|
+
left: left - toFloat(css(element, 'marginLeft'))
|
|
1051
|
+
};
|
|
1050
1052
|
}
|
|
1051
1053
|
|
|
1052
1054
|
function offsetPosition(element) {
|
|
@@ -1278,7 +1280,7 @@
|
|
|
1278
1280
|
}
|
|
1279
1281
|
|
|
1280
1282
|
const inBrowser = typeof window !== 'undefined';
|
|
1281
|
-
const isRtl = inBrowser &&
|
|
1283
|
+
const isRtl = inBrowser && document.dir === 'rtl';
|
|
1282
1284
|
|
|
1283
1285
|
const hasTouch = inBrowser && 'ontouchstart' in window;
|
|
1284
1286
|
const hasPointerEvents = inBrowser && window.PointerEvent;
|
|
@@ -1317,8 +1319,8 @@
|
|
|
1317
1319
|
remove(this.writes, task);
|
|
1318
1320
|
},
|
|
1319
1321
|
|
|
1320
|
-
flush
|
|
1321
|
-
|
|
1322
|
+
flush
|
|
1323
|
+
};
|
|
1322
1324
|
|
|
1323
1325
|
function flush(recursion) {
|
|
1324
1326
|
runTasks(fastdom.reads);
|
|
@@ -1420,8 +1422,8 @@
|
|
|
1420
1422
|
const intersection = intersect(path, diagonal);
|
|
1421
1423
|
return intersection && pointInRect(intersection, p);
|
|
1422
1424
|
});
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1425
1427
|
|
|
1426
1428
|
// Inspired by http://paulbourke.net/geometry/pointlineplane/
|
|
1427
1429
|
function intersect(_ref, _ref2) {let [{ x: x1, y: y1 }, { x: x2, y: y2 }] = _ref;let [{ x: x3, y: y3 }, { x: x4, y: y4 }] = _ref2;
|
|
@@ -1473,8 +1475,8 @@
|
|
|
1473
1475
|
return {
|
|
1474
1476
|
disconnect() {
|
|
1475
1477
|
listeners.delete(cb);
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
+
}
|
|
1479
|
+
};
|
|
1478
1480
|
}
|
|
1479
1481
|
|
|
1480
1482
|
let listeners;
|
|
@@ -1778,8 +1780,8 @@
|
|
|
1778
1780
|
top: top - offsetTop,
|
|
1779
1781
|
left: left - offsetLeft,
|
|
1780
1782
|
bottom: bottom + offsetTop,
|
|
1781
|
-
right: right + offsetLeft
|
|
1782
|
-
|
|
1783
|
+
right: right + offsetLeft
|
|
1784
|
+
};
|
|
1783
1785
|
}).
|
|
1784
1786
|
concat(offset(element)));
|
|
1785
1787
|
|
|
@@ -1889,8 +1891,8 @@
|
|
|
1889
1891
|
function offsetViewport(scrollElement) {
|
|
1890
1892
|
const window = toWindow(scrollElement);
|
|
1891
1893
|
const {
|
|
1892
|
-
document: { documentElement }
|
|
1893
|
-
window;
|
|
1894
|
+
document: { documentElement }
|
|
1895
|
+
} = window;
|
|
1894
1896
|
let viewportElement =
|
|
1895
1897
|
scrollElement === scrollingElement(scrollElement) ? window : scrollElement;
|
|
1896
1898
|
|
|
@@ -1933,12 +1935,12 @@
|
|
|
1933
1935
|
attach: {
|
|
1934
1936
|
element: ['left', 'top'],
|
|
1935
1937
|
target: ['left', 'top'],
|
|
1936
|
-
...options.attach
|
|
1937
|
-
|
|
1938
|
+
...options.attach
|
|
1939
|
+
},
|
|
1938
1940
|
offset: [0, 0],
|
|
1939
1941
|
placement: [],
|
|
1940
|
-
...options
|
|
1941
|
-
|
|
1942
|
+
...options
|
|
1943
|
+
};
|
|
1942
1944
|
|
|
1943
1945
|
if (!isArray(target)) {
|
|
1944
1946
|
target = [target, target];
|
|
@@ -1953,7 +1955,7 @@
|
|
|
1953
1955
|
|
|
1954
1956
|
let offsetPosition = position;
|
|
1955
1957
|
for (const [i, [prop,, start, end]] of Object.entries(dirs)) {
|
|
1956
|
-
const viewport = getViewport$
|
|
1958
|
+
const viewport = getViewport$2(element, target[i], viewportOffset, boundary, i);
|
|
1957
1959
|
|
|
1958
1960
|
if (isWithin(position, viewport, i)) {
|
|
1959
1961
|
continue;
|
|
@@ -1973,7 +1975,7 @@
|
|
|
1973
1975
|
|
|
1974
1976
|
offsetBy = flip(element, target, options, i)[start] - position[start];
|
|
1975
1977
|
|
|
1976
|
-
const scrollArea = getScrollArea(target[i], viewportOffset, i);
|
|
1978
|
+
const scrollArea = getScrollArea(element, target[i], viewportOffset, i);
|
|
1977
1979
|
|
|
1978
1980
|
if (!isWithin(applyOffset(position, offsetBy, i), scrollArea, i)) {
|
|
1979
1981
|
if (isWithin(position, scrollArea, i)) {
|
|
@@ -2016,11 +2018,11 @@
|
|
|
2016
2018
|
attach: {
|
|
2017
2019
|
element: ['left', 'top'],
|
|
2018
2020
|
target: ['left', 'top'],
|
|
2019
|
-
...options.attach
|
|
2020
|
-
|
|
2021
|
+
...options.attach
|
|
2022
|
+
},
|
|
2021
2023
|
offset: [0, 0],
|
|
2022
|
-
...options
|
|
2023
|
-
|
|
2024
|
+
...options
|
|
2025
|
+
};
|
|
2024
2026
|
|
|
2025
2027
|
let elOffset = offset(element);
|
|
2026
2028
|
|
|
@@ -2053,8 +2055,8 @@
|
|
|
2053
2055
|
return attach === 'center' ? dim / 2 : attach === end ? dim : 0;
|
|
2054
2056
|
}
|
|
2055
2057
|
|
|
2056
|
-
function getViewport$
|
|
2057
|
-
let viewport = getIntersectionArea(...
|
|
2058
|
+
function getViewport$2(element, target, viewportOffset, boundary, i) {
|
|
2059
|
+
let viewport = getIntersectionArea(...commonScrollParents(element, target).map(offsetViewport));
|
|
2058
2060
|
|
|
2059
2061
|
if (viewportOffset) {
|
|
2060
2062
|
viewport[dirs[i][2]] += viewportOffset;
|
|
@@ -2071,15 +2073,19 @@
|
|
|
2071
2073
|
return viewport;
|
|
2072
2074
|
}
|
|
2073
2075
|
|
|
2074
|
-
function getScrollArea(element, viewportOffset, i) {
|
|
2076
|
+
function getScrollArea(element, target, viewportOffset, i) {
|
|
2075
2077
|
const [prop,, start, end] = dirs[i];
|
|
2076
|
-
const [scrollElement] =
|
|
2078
|
+
const [scrollElement] = commonScrollParents(element, target);
|
|
2077
2079
|
const viewport = offsetViewport(scrollElement);
|
|
2078
2080
|
viewport[start] -= scrollElement["scroll" + ucfirst(start)] - viewportOffset;
|
|
2079
2081
|
viewport[end] = viewport[start] + scrollElement["scroll" + ucfirst(prop)] - viewportOffset;
|
|
2080
2082
|
return viewport;
|
|
2081
2083
|
}
|
|
2082
2084
|
|
|
2085
|
+
function commonScrollParents(element, target) {
|
|
2086
|
+
return scrollParents(target).filter((parent) => within(element, parent));
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2083
2089
|
function getIntersectionArea() {
|
|
2084
2090
|
let area = {};for (var _len = arguments.length, rects = new Array(_len), _key = 0; _key < _len; _key++) {rects[_key] = arguments[_key];}
|
|
2085
2091
|
for (const rect of rects) {
|
|
@@ -2100,10 +2106,10 @@
|
|
|
2100
2106
|
return attachTo(element, target, {
|
|
2101
2107
|
attach: {
|
|
2102
2108
|
element: flipAttach(attach.element, i),
|
|
2103
|
-
target: flipAttach(attach.target, i)
|
|
2104
|
-
|
|
2105
|
-
offset: flipOffset(offset, i)
|
|
2106
|
-
|
|
2109
|
+
target: flipAttach(attach.target, i)
|
|
2110
|
+
},
|
|
2111
|
+
offset: flipOffset(offset, i)
|
|
2112
|
+
});
|
|
2107
2113
|
}
|
|
2108
2114
|
|
|
2109
2115
|
function flipAxis(element, target, options) {
|
|
@@ -2111,12 +2117,12 @@
|
|
|
2111
2117
|
...options,
|
|
2112
2118
|
attach: {
|
|
2113
2119
|
element: options.attach.element.map(flipAttachAxis).reverse(),
|
|
2114
|
-
target: options.attach.target.map(flipAttachAxis).reverse()
|
|
2115
|
-
|
|
2120
|
+
target: options.attach.target.map(flipAttachAxis).reverse()
|
|
2121
|
+
},
|
|
2116
2122
|
offset: options.offset.reverse(),
|
|
2117
2123
|
placement: options.placement.reverse(),
|
|
2118
|
-
recursion: true
|
|
2119
|
-
|
|
2124
|
+
recursion: true
|
|
2125
|
+
});
|
|
2120
2126
|
}
|
|
2121
2127
|
|
|
2122
2128
|
function flipAttach(attach, i) {
|
|
@@ -2340,8 +2346,8 @@
|
|
|
2340
2346
|
|
|
2341
2347
|
set(element) {
|
|
2342
2348
|
container = $(element);
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2349
|
+
}
|
|
2350
|
+
});
|
|
2345
2351
|
|
|
2346
2352
|
function update(data, e) {
|
|
2347
2353
|
if (!data) {
|
|
@@ -2463,8 +2469,8 @@
|
|
|
2463
2469
|
|
|
2464
2470
|
function runWatches(initial) {
|
|
2465
2471
|
const {
|
|
2466
|
-
$options: { computed }
|
|
2467
|
-
this;
|
|
2472
|
+
$options: { computed }
|
|
2473
|
+
} = this;
|
|
2468
2474
|
const values = { ...this._computed };
|
|
2469
2475
|
this._computed = {};
|
|
2470
2476
|
|
|
@@ -2642,8 +2648,8 @@
|
|
|
2642
2648
|
if (isUndefined(_computed[key])) {
|
|
2643
2649
|
delete _computed[key];
|
|
2644
2650
|
}
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2651
|
+
}
|
|
2652
|
+
});
|
|
2647
2653
|
}
|
|
2648
2654
|
|
|
2649
2655
|
function registerEvent(component, event, key) {
|
|
@@ -2740,8 +2746,8 @@
|
|
|
2740
2746
|
const observer = new MutationObserver(() => component._callWatches());
|
|
2741
2747
|
observer.observe(el, {
|
|
2742
2748
|
childList: true,
|
|
2743
|
-
subtree: true
|
|
2744
|
-
|
|
2749
|
+
subtree: true
|
|
2750
|
+
});
|
|
2745
2751
|
|
|
2746
2752
|
return observer;
|
|
2747
2753
|
}
|
|
@@ -2773,8 +2779,8 @@
|
|
|
2773
2779
|
|
|
2774
2780
|
observer.observe(el, {
|
|
2775
2781
|
attributes: true,
|
|
2776
|
-
attributeFilter: filter.concat(filter.map((key) => "data-" + key))
|
|
2777
|
-
|
|
2782
|
+
attributeFilter: filter.concat(filter.map((key) => "data-" + key))
|
|
2783
|
+
});
|
|
2778
2784
|
|
|
2779
2785
|
return observer;
|
|
2780
2786
|
}
|
|
@@ -2944,7 +2950,7 @@
|
|
|
2944
2950
|
UIkit.data = '__uikit__';
|
|
2945
2951
|
UIkit.prefix = 'uk-';
|
|
2946
2952
|
UIkit.options = {};
|
|
2947
|
-
UIkit.version = '3.15.
|
|
2953
|
+
UIkit.version = '3.15.12-dev.0c0d42cdf';
|
|
2948
2954
|
|
|
2949
2955
|
globalAPI(UIkit);
|
|
2950
2956
|
hooksAPI(UIkit);
|
|
@@ -2960,6 +2966,8 @@
|
|
|
2960
2966
|
}
|
|
2961
2967
|
|
|
2962
2968
|
requestAnimationFrame(function () {
|
|
2969
|
+
trigger(document, 'uikit:init', UIkit);
|
|
2970
|
+
|
|
2963
2971
|
if (document.body) {
|
|
2964
2972
|
apply(document.body, connect);
|
|
2965
2973
|
}
|
|
@@ -2968,16 +2976,16 @@
|
|
|
2968
2976
|
document,
|
|
2969
2977
|
{
|
|
2970
2978
|
childList: true,
|
|
2971
|
-
subtree: true
|
|
2972
|
-
|
|
2979
|
+
subtree: true
|
|
2980
|
+
});
|
|
2973
2981
|
|
|
2974
2982
|
|
|
2975
2983
|
new MutationObserver((records) => records.forEach(applyAttributeMutation)).observe(
|
|
2976
2984
|
document,
|
|
2977
2985
|
{
|
|
2978
2986
|
attributes: true,
|
|
2979
|
-
subtree: true
|
|
2980
|
-
|
|
2987
|
+
subtree: true
|
|
2988
|
+
});
|
|
2981
2989
|
|
|
2982
2990
|
|
|
2983
2991
|
UIkit._initialized = true;
|
|
@@ -3010,12 +3018,13 @@
|
|
|
3010
3018
|
var Class = {
|
|
3011
3019
|
connected() {
|
|
3012
3020
|
addClass(this.$el, this.$options.id);
|
|
3013
|
-
}
|
|
3021
|
+
}
|
|
3022
|
+
};
|
|
3014
3023
|
|
|
3015
3024
|
var Lazyload = {
|
|
3016
3025
|
data: {
|
|
3017
|
-
preload: 5
|
|
3018
|
-
|
|
3026
|
+
preload: 5
|
|
3027
|
+
},
|
|
3019
3028
|
|
|
3020
3029
|
methods: {
|
|
3021
3030
|
lazyload(observeTargets, targets) {if (observeTargets === void 0) {observeTargets = this.$el;}if (targets === void 0) {targets = this.$el;}
|
|
@@ -3034,7 +3043,9 @@
|
|
|
3034
3043
|
}
|
|
3035
3044
|
}));
|
|
3036
3045
|
|
|
3037
|
-
}
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
};
|
|
3038
3049
|
|
|
3039
3050
|
var Togglable = {
|
|
3040
3051
|
props: {
|
|
@@ -3043,8 +3054,8 @@
|
|
|
3043
3054
|
duration: Number,
|
|
3044
3055
|
velocity: Number,
|
|
3045
3056
|
origin: String,
|
|
3046
|
-
transition: String
|
|
3047
|
-
|
|
3057
|
+
transition: String
|
|
3058
|
+
},
|
|
3048
3059
|
|
|
3049
3060
|
data: {
|
|
3050
3061
|
cls: false,
|
|
@@ -3054,8 +3065,8 @@
|
|
|
3054
3065
|
origin: false,
|
|
3055
3066
|
transition: 'ease',
|
|
3056
3067
|
clsEnter: 'uk-togglabe-enter',
|
|
3057
|
-
clsLeave: 'uk-togglabe-leave'
|
|
3058
|
-
|
|
3068
|
+
clsLeave: 'uk-togglabe-leave'
|
|
3069
|
+
},
|
|
3059
3070
|
|
|
3060
3071
|
computed: {
|
|
3061
3072
|
hasAnimation(_ref) {let { animation } = _ref;
|
|
@@ -3064,8 +3075,8 @@
|
|
|
3064
3075
|
|
|
3065
3076
|
hasTransition(_ref2) {let { animation } = _ref2;
|
|
3066
3077
|
return ['slide', 'reveal'].some((transition) => startsWith(animation[0], transition));
|
|
3067
|
-
}
|
|
3068
|
-
|
|
3078
|
+
}
|
|
3079
|
+
},
|
|
3069
3080
|
|
|
3070
3081
|
methods: {
|
|
3071
3082
|
toggleElement(targets, toggle, animate) {
|
|
@@ -3142,9 +3153,9 @@
|
|
|
3142
3153
|
if (changed) {
|
|
3143
3154
|
trigger(el, 'toggled', [toggled, this]);
|
|
3144
3155
|
}
|
|
3145
|
-
}
|
|
3146
|
-
|
|
3147
|
-
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
};
|
|
3148
3159
|
|
|
3149
3160
|
function toggleInstant(el, show, _ref3) {let { _toggle } = _ref3;
|
|
3150
3161
|
Animation.cancel(el);
|
|
@@ -3216,9 +3227,9 @@
|
|
|
3216
3227
|
'borderBottom',
|
|
3217
3228
|
'borderLeft',
|
|
3218
3229
|
'borderImage',
|
|
3219
|
-
marginStartProp])
|
|
3220
|
-
|
|
3230
|
+
marginStartProp])
|
|
3221
3231
|
|
|
3232
|
+
});
|
|
3222
3233
|
|
|
3223
3234
|
css(el, {
|
|
3224
3235
|
padding: 0,
|
|
@@ -3229,8 +3240,8 @@
|
|
|
3229
3240
|
width: dim.width,
|
|
3230
3241
|
height: dim.height,
|
|
3231
3242
|
overflow: 'hidden',
|
|
3232
|
-
[dimProp]: currentDim
|
|
3233
|
-
|
|
3243
|
+
[dimProp]: currentDim
|
|
3244
|
+
});
|
|
3234
3245
|
|
|
3235
3246
|
const percent = currentDim / endDim;
|
|
3236
3247
|
duration = (velocity * endDim + duration) * (show ? 1 - percent : percent);
|
|
@@ -3284,8 +3295,8 @@
|
|
|
3284
3295
|
multiple: Boolean,
|
|
3285
3296
|
toggle: String,
|
|
3286
3297
|
content: String,
|
|
3287
|
-
offset: Number
|
|
3288
|
-
|
|
3298
|
+
offset: Number
|
|
3299
|
+
},
|
|
3289
3300
|
|
|
3290
3301
|
data: {
|
|
3291
3302
|
targets: '> *',
|
|
@@ -3296,8 +3307,8 @@
|
|
|
3296
3307
|
clsOpen: 'uk-open',
|
|
3297
3308
|
toggle: '> .uk-accordion-title',
|
|
3298
3309
|
content: '> .uk-accordion-content',
|
|
3299
|
-
offset: 0
|
|
3300
|
-
|
|
3310
|
+
offset: 0
|
|
3311
|
+
},
|
|
3301
3312
|
|
|
3302
3313
|
computed: {
|
|
3303
3314
|
items: {
|
|
@@ -3319,8 +3330,8 @@
|
|
|
3319
3330
|
}
|
|
3320
3331
|
},
|
|
3321
3332
|
|
|
3322
|
-
immediate: true
|
|
3323
|
-
|
|
3333
|
+
immediate: true
|
|
3334
|
+
},
|
|
3324
3335
|
|
|
3325
3336
|
toggles(_ref2) {let { toggle } = _ref2;
|
|
3326
3337
|
return this.items.map((item) => $(toggle, item));
|
|
@@ -3343,9 +3354,9 @@
|
|
|
3343
3354
|
}
|
|
3344
3355
|
},
|
|
3345
3356
|
|
|
3346
|
-
immediate: true
|
|
3347
|
-
|
|
3348
|
-
|
|
3357
|
+
immediate: true
|
|
3358
|
+
}
|
|
3359
|
+
},
|
|
3349
3360
|
|
|
3350
3361
|
connected() {
|
|
3351
3362
|
this.lazyload();
|
|
@@ -3366,8 +3377,8 @@
|
|
|
3366
3377
|
this._off = keepScrollPosition(e.target);
|
|
3367
3378
|
await this.toggle(index(this.toggles, e.current));
|
|
3368
3379
|
this._off();
|
|
3369
|
-
}
|
|
3370
|
-
|
|
3380
|
+
}
|
|
3381
|
+
}],
|
|
3371
3382
|
|
|
3372
3383
|
|
|
3373
3384
|
methods: {
|
|
@@ -3399,9 +3410,9 @@
|
|
|
3399
3410
|
})));
|
|
3400
3411
|
|
|
3401
3412
|
|
|
3402
|
-
}
|
|
3403
|
-
|
|
3404
|
-
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
};
|
|
3405
3416
|
|
|
3406
3417
|
function hide(el, hide) {
|
|
3407
3418
|
el && (el.hidden = hide);
|
|
@@ -3462,14 +3473,14 @@
|
|
|
3462
3473
|
|
|
3463
3474
|
props: {
|
|
3464
3475
|
animation: Boolean,
|
|
3465
|
-
close: String
|
|
3466
|
-
|
|
3476
|
+
close: String
|
|
3477
|
+
},
|
|
3467
3478
|
|
|
3468
3479
|
data: {
|
|
3469
3480
|
animation: true,
|
|
3470
3481
|
selClose: '.uk-alert-close',
|
|
3471
|
-
duration: 150
|
|
3472
|
-
|
|
3482
|
+
duration: 150
|
|
3483
|
+
},
|
|
3473
3484
|
|
|
3474
3485
|
events: {
|
|
3475
3486
|
name: 'click',
|
|
@@ -3481,16 +3492,16 @@
|
|
|
3481
3492
|
handler(e) {
|
|
3482
3493
|
e.preventDefault();
|
|
3483
3494
|
this.close();
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3495
|
+
}
|
|
3496
|
+
},
|
|
3486
3497
|
|
|
3487
3498
|
methods: {
|
|
3488
3499
|
async close() {
|
|
3489
3500
|
await this.toggleElement(this.$el, false, animate$1);
|
|
3490
3501
|
this.$destroy(true);
|
|
3491
|
-
}
|
|
3492
|
-
|
|
3493
|
-
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
};
|
|
3494
3505
|
|
|
3495
3506
|
function animate$1(el, show, _ref) {let { duration, transition, velocity } = _ref;
|
|
3496
3507
|
const height = toFloat(css(el, 'height'));
|
|
@@ -3505,8 +3516,8 @@
|
|
|
3505
3516
|
paddingBottom: 0,
|
|
3506
3517
|
borderTop: 0,
|
|
3507
3518
|
borderBottom: 0,
|
|
3508
|
-
opacity: 0
|
|
3509
|
-
|
|
3519
|
+
opacity: 0
|
|
3520
|
+
},
|
|
3510
3521
|
velocity * height + duration,
|
|
3511
3522
|
transition);
|
|
3512
3523
|
|
|
@@ -3517,13 +3528,13 @@
|
|
|
3517
3528
|
|
|
3518
3529
|
props: {
|
|
3519
3530
|
automute: Boolean,
|
|
3520
|
-
autoplay: Boolean
|
|
3521
|
-
|
|
3531
|
+
autoplay: Boolean
|
|
3532
|
+
},
|
|
3522
3533
|
|
|
3523
3534
|
data: {
|
|
3524
3535
|
automute: false,
|
|
3525
|
-
autoplay: true
|
|
3526
|
-
|
|
3536
|
+
autoplay: true
|
|
3537
|
+
},
|
|
3527
3538
|
|
|
3528
3539
|
connected() {
|
|
3529
3540
|
this.inView = this.autoplay === 'inview';
|
|
@@ -3544,24 +3555,27 @@
|
|
|
3544
3555
|
},
|
|
3545
3556
|
|
|
3546
3557
|
update: {
|
|
3547
|
-
read() {
|
|
3558
|
+
read(_ref) {let { visible } = _ref;
|
|
3548
3559
|
if (!isVideo(this.$el)) {
|
|
3549
3560
|
return false;
|
|
3550
3561
|
}
|
|
3551
3562
|
|
|
3552
3563
|
return {
|
|
3564
|
+
prev: visible,
|
|
3553
3565
|
visible: isVisible(this.$el) && css(this.$el, 'visibility') !== 'hidden',
|
|
3554
|
-
inView: this.inView && isInView(this.$el)
|
|
3555
|
-
|
|
3566
|
+
inView: this.inView && isInView(this.$el)
|
|
3567
|
+
};
|
|
3556
3568
|
},
|
|
3557
3569
|
|
|
3558
|
-
write(
|
|
3570
|
+
write(_ref2) {let { prev, visible, inView } = _ref2;
|
|
3559
3571
|
if (!visible || this.inView && !inView) {
|
|
3560
3572
|
pause(this.$el);
|
|
3561
|
-
} else if (this.autoplay === true || this.inView && inView) {
|
|
3573
|
+
} else if (this.autoplay === true && !prev || this.inView && inView) {
|
|
3562
3574
|
play(this.$el);
|
|
3563
3575
|
}
|
|
3564
|
-
}
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3578
|
+
};
|
|
3565
3579
|
|
|
3566
3580
|
var Resize = {
|
|
3567
3581
|
connected() {var _this$$options$resize;
|
|
@@ -3570,25 +3584,26 @@
|
|
|
3570
3584
|
this.$emit('resize')));
|
|
3571
3585
|
|
|
3572
3586
|
|
|
3573
|
-
}
|
|
3587
|
+
}
|
|
3588
|
+
};
|
|
3574
3589
|
|
|
3575
3590
|
var cover = {
|
|
3576
3591
|
mixins: [Resize, Video],
|
|
3577
3592
|
|
|
3578
3593
|
props: {
|
|
3579
3594
|
width: Number,
|
|
3580
|
-
height: Number
|
|
3581
|
-
|
|
3595
|
+
height: Number
|
|
3596
|
+
},
|
|
3582
3597
|
|
|
3583
3598
|
data: {
|
|
3584
|
-
automute: true
|
|
3585
|
-
|
|
3599
|
+
automute: true
|
|
3600
|
+
},
|
|
3586
3601
|
|
|
3587
3602
|
events: {
|
|
3588
3603
|
'load loadedmetadata'() {
|
|
3589
3604
|
this.$emit('resize');
|
|
3590
|
-
}
|
|
3591
|
-
|
|
3605
|
+
}
|
|
3606
|
+
},
|
|
3592
3607
|
|
|
3593
3608
|
resizeTargets() {
|
|
3594
3609
|
return [this.$el, getPositionedParent(this.$el) || parent(this.$el)];
|
|
@@ -3604,8 +3619,8 @@
|
|
|
3604
3619
|
if (!dim.width || !dim.height) {
|
|
3605
3620
|
const intrinsic = {
|
|
3606
3621
|
width: $el.naturalWidth || $el.videoWidth || $el.clientWidth,
|
|
3607
|
-
height: $el.naturalHeight || $el.videoHeight || $el.clientHeight
|
|
3608
|
-
|
|
3622
|
+
height: $el.naturalHeight || $el.videoHeight || $el.clientHeight
|
|
3623
|
+
};
|
|
3609
3624
|
|
|
3610
3625
|
if (dim.width) {
|
|
3611
3626
|
dim = ratio(intrinsic, 'width', dim.width);
|
|
@@ -3620,8 +3635,8 @@
|
|
|
3620
3635
|
getPositionedParent($el) || parent($el);
|
|
3621
3636
|
const coverDim = cover(dim, {
|
|
3622
3637
|
width: coverWidth + (coverWidth % 2 ? 1 : 0),
|
|
3623
|
-
height: coverHeight + (coverHeight % 2 ? 1 : 0)
|
|
3624
|
-
|
|
3638
|
+
height: coverHeight + (coverHeight % 2 ? 1 : 0)
|
|
3639
|
+
});
|
|
3625
3640
|
|
|
3626
3641
|
if (!coverDim.width || !coverDim.height) {
|
|
3627
3642
|
return false;
|
|
@@ -3634,9 +3649,9 @@
|
|
|
3634
3649
|
css(this.$el, { height, width });
|
|
3635
3650
|
},
|
|
3636
3651
|
|
|
3637
|
-
events: ['resize']
|
|
3638
|
-
|
|
3639
|
-
|
|
3652
|
+
events: ['resize']
|
|
3653
|
+
}
|
|
3654
|
+
};
|
|
3640
3655
|
|
|
3641
3656
|
function getPositionedParent(el) {
|
|
3642
3657
|
while (el = parent(el)) {
|
|
@@ -3648,17 +3663,19 @@
|
|
|
3648
3663
|
|
|
3649
3664
|
var Container = {
|
|
3650
3665
|
props: {
|
|
3651
|
-
container: Boolean
|
|
3652
|
-
|
|
3666
|
+
container: Boolean
|
|
3667
|
+
},
|
|
3653
3668
|
|
|
3654
3669
|
data: {
|
|
3655
|
-
container: true
|
|
3656
|
-
|
|
3670
|
+
container: true
|
|
3671
|
+
},
|
|
3657
3672
|
|
|
3658
3673
|
computed: {
|
|
3659
3674
|
container(_ref) {let { container } = _ref;
|
|
3660
3675
|
return container === true && this.$container || container && $(container);
|
|
3661
|
-
}
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
};
|
|
3662
3679
|
|
|
3663
3680
|
var Position = {
|
|
3664
3681
|
props: {
|
|
@@ -3666,16 +3683,16 @@
|
|
|
3666
3683
|
offset: null,
|
|
3667
3684
|
flip: Boolean,
|
|
3668
3685
|
shift: Boolean,
|
|
3669
|
-
inset: Boolean
|
|
3670
|
-
|
|
3686
|
+
inset: Boolean
|
|
3687
|
+
},
|
|
3671
3688
|
|
|
3672
3689
|
data: {
|
|
3673
3690
|
pos: "bottom-" + (isRtl ? 'right' : 'left'),
|
|
3674
3691
|
offset: false,
|
|
3675
3692
|
flip: true,
|
|
3676
3693
|
shift: true,
|
|
3677
|
-
inset: false
|
|
3678
|
-
|
|
3694
|
+
inset: false
|
|
3695
|
+
},
|
|
3679
3696
|
|
|
3680
3697
|
connected() {
|
|
3681
3698
|
this.pos = this.$props.pos.split('-').concat('center').slice(0, 2);
|
|
@@ -3690,8 +3707,8 @@
|
|
|
3690
3707
|
|
|
3691
3708
|
const attach = {
|
|
3692
3709
|
element: [this.inset ? this.dir : flipPosition(this.dir), this.align],
|
|
3693
|
-
target: [this.dir, this.align]
|
|
3694
|
-
|
|
3710
|
+
target: [this.dir, this.align]
|
|
3711
|
+
};
|
|
3695
3712
|
|
|
3696
3713
|
if (this.axis === 'y') {
|
|
3697
3714
|
for (const prop in attach) {
|
|
@@ -3713,8 +3730,8 @@
|
|
|
3713
3730
|
offset,
|
|
3714
3731
|
boundary,
|
|
3715
3732
|
placement,
|
|
3716
|
-
viewportOffset: this.getViewportOffset(element)
|
|
3717
|
-
|
|
3733
|
+
viewportOffset: this.getViewportOffset(element)
|
|
3734
|
+
});
|
|
3718
3735
|
|
|
3719
3736
|
// Restore scroll position
|
|
3720
3737
|
scrollElement.scrollTop = scrollTop;
|
|
@@ -3745,7 +3762,9 @@
|
|
|
3745
3762
|
|
|
3746
3763
|
getViewportOffset(element) {
|
|
3747
3764
|
return toPx(css(element, '--uk-position-viewport-offset'));
|
|
3748
|
-
}
|
|
3765
|
+
}
|
|
3766
|
+
}
|
|
3767
|
+
};
|
|
3749
3768
|
|
|
3750
3769
|
var Style = {
|
|
3751
3770
|
beforeConnect() {
|
|
@@ -3754,7 +3773,8 @@
|
|
|
3754
3773
|
|
|
3755
3774
|
disconnected() {
|
|
3756
3775
|
attr(this.$el, 'style', this._style);
|
|
3757
|
-
}
|
|
3776
|
+
}
|
|
3777
|
+
};
|
|
3758
3778
|
|
|
3759
3779
|
const active$1 = [];
|
|
3760
3780
|
|
|
@@ -3766,16 +3786,16 @@
|
|
|
3766
3786
|
selClose: String,
|
|
3767
3787
|
escClose: Boolean,
|
|
3768
3788
|
bgClose: Boolean,
|
|
3769
|
-
stack: Boolean
|
|
3770
|
-
|
|
3789
|
+
stack: Boolean
|
|
3790
|
+
},
|
|
3771
3791
|
|
|
3772
3792
|
data: {
|
|
3773
3793
|
cls: 'uk-open',
|
|
3774
3794
|
escClose: true,
|
|
3775
3795
|
bgClose: true,
|
|
3776
3796
|
overlay: true,
|
|
3777
|
-
stack: false
|
|
3778
|
-
|
|
3797
|
+
stack: false
|
|
3798
|
+
},
|
|
3779
3799
|
|
|
3780
3800
|
computed: {
|
|
3781
3801
|
panel(_ref, $el) {let { selPanel } = _ref;
|
|
@@ -3788,8 +3808,8 @@
|
|
|
3788
3808
|
|
|
3789
3809
|
bgClose(_ref2) {let { bgClose } = _ref2;
|
|
3790
3810
|
return bgClose && this.panel;
|
|
3791
|
-
}
|
|
3792
|
-
|
|
3811
|
+
}
|
|
3812
|
+
},
|
|
3793
3813
|
|
|
3794
3814
|
beforeDisconnect() {
|
|
3795
3815
|
if (includes(active$1, this)) {
|
|
@@ -3808,8 +3828,8 @@
|
|
|
3808
3828
|
handler(e) {
|
|
3809
3829
|
e.preventDefault();
|
|
3810
3830
|
this.hide();
|
|
3811
|
-
}
|
|
3812
|
-
|
|
3831
|
+
}
|
|
3832
|
+
},
|
|
3813
3833
|
|
|
3814
3834
|
{
|
|
3815
3835
|
name: 'click',
|
|
@@ -3829,8 +3849,8 @@
|
|
|
3829
3849
|
{
|
|
3830
3850
|
this.hide();
|
|
3831
3851
|
}
|
|
3832
|
-
}
|
|
3833
|
-
|
|
3852
|
+
}
|
|
3853
|
+
},
|
|
3834
3854
|
|
|
3835
3855
|
{
|
|
3836
3856
|
name: 'toggle',
|
|
@@ -3847,8 +3867,8 @@
|
|
|
3847
3867
|
if (this.isToggled() === includes(active$1, this)) {
|
|
3848
3868
|
this.toggle();
|
|
3849
3869
|
}
|
|
3850
|
-
}
|
|
3851
|
-
|
|
3870
|
+
}
|
|
3871
|
+
},
|
|
3852
3872
|
|
|
3853
3873
|
{
|
|
3854
3874
|
name: 'beforeshow',
|
|
@@ -3866,8 +3886,8 @@
|
|
|
3866
3886
|
} else {
|
|
3867
3887
|
active$1.push(this);
|
|
3868
3888
|
}
|
|
3869
|
-
}
|
|
3870
|
-
|
|
3889
|
+
}
|
|
3890
|
+
},
|
|
3871
3891
|
|
|
3872
3892
|
{
|
|
3873
3893
|
name: 'show',
|
|
@@ -3940,8 +3960,8 @@
|
|
|
3940
3960
|
{ self: true });
|
|
3941
3961
|
|
|
3942
3962
|
}
|
|
3943
|
-
}
|
|
3944
|
-
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3945
3965
|
|
|
3946
3966
|
{
|
|
3947
3967
|
name: 'shown',
|
|
@@ -3956,8 +3976,8 @@
|
|
|
3956
3976
|
if (!$(':focus', this.$el)) {
|
|
3957
3977
|
this.$el.focus();
|
|
3958
3978
|
}
|
|
3959
|
-
}
|
|
3960
|
-
|
|
3979
|
+
}
|
|
3980
|
+
},
|
|
3961
3981
|
|
|
3962
3982
|
{
|
|
3963
3983
|
name: 'hidden',
|
|
@@ -3974,8 +3994,8 @@
|
|
|
3974
3994
|
if (!active$1.some((modal) => modal.clsPage === this.clsPage)) {
|
|
3975
3995
|
removeClass(document.documentElement, this.clsPage);
|
|
3976
3996
|
}
|
|
3977
|
-
}
|
|
3978
|
-
|
|
3997
|
+
}
|
|
3998
|
+
}],
|
|
3979
3999
|
|
|
3980
4000
|
|
|
3981
4001
|
methods: {
|
|
@@ -3996,9 +4016,9 @@
|
|
|
3996
4016
|
|
|
3997
4017
|
hide() {
|
|
3998
4018
|
return this.toggleElement(this.$el, false, animate);
|
|
3999
|
-
}
|
|
4000
|
-
|
|
4001
|
-
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
};
|
|
4002
4022
|
|
|
4003
4023
|
function animate(el, show, _ref6) {let { transitionElement, _toggle } = _ref6;
|
|
4004
4024
|
return new Promise((resolve, reject) =>
|
|
@@ -4013,8 +4033,8 @@
|
|
|
4013
4033
|
'transitionstart',
|
|
4014
4034
|
() => {
|
|
4015
4035
|
once(transitionElement, 'transitionend transitioncancel', resolve, {
|
|
4016
|
-
self: true
|
|
4017
|
-
|
|
4036
|
+
self: true
|
|
4037
|
+
});
|
|
4018
4038
|
clearTimeout(timer);
|
|
4019
4039
|
},
|
|
4020
4040
|
{ self: true });
|
|
@@ -4095,8 +4115,8 @@
|
|
|
4095
4115
|
css(scrollingElement, {
|
|
4096
4116
|
overflowY: 'hidden',
|
|
4097
4117
|
touchAction: 'none',
|
|
4098
|
-
paddingRight: width(window) - scrollingElement.clientWidth
|
|
4099
|
-
|
|
4118
|
+
paddingRight: width(window) - scrollingElement.clientWidth
|
|
4119
|
+
});
|
|
4100
4120
|
return () => {
|
|
4101
4121
|
prevented = false;
|
|
4102
4122
|
css(scrollingElement, { overflowY: '', touchAction: '', paddingRight: '' });
|
|
@@ -4139,8 +4159,8 @@
|
|
|
4139
4159
|
autoUpdate: Boolean,
|
|
4140
4160
|
clsDrop: String,
|
|
4141
4161
|
animateOut: Boolean,
|
|
4142
|
-
bgScroll: Boolean
|
|
4143
|
-
|
|
4162
|
+
bgScroll: Boolean
|
|
4163
|
+
},
|
|
4144
4164
|
|
|
4145
4165
|
data: {
|
|
4146
4166
|
mode: ['click', 'hover'],
|
|
@@ -4160,8 +4180,8 @@
|
|
|
4160
4180
|
bgScroll: true,
|
|
4161
4181
|
animation: ['uk-animation-fade'],
|
|
4162
4182
|
cls: 'uk-open',
|
|
4163
|
-
container: false
|
|
4164
|
-
|
|
4183
|
+
container: false
|
|
4184
|
+
},
|
|
4165
4185
|
|
|
4166
4186
|
computed: {
|
|
4167
4187
|
boundary(_ref, $el) {let { boundary, boundaryX, boundaryY } = _ref;
|
|
@@ -4179,8 +4199,8 @@
|
|
|
4179
4199
|
targetX === true ? window : query(targetX, $el),
|
|
4180
4200
|
targetY === true ? window : query(targetY, $el)];
|
|
4181
4201
|
|
|
4182
|
-
}
|
|
4183
|
-
|
|
4202
|
+
}
|
|
4203
|
+
},
|
|
4184
4204
|
|
|
4185
4205
|
created() {
|
|
4186
4206
|
this.tracker = new MouseTracker();
|
|
@@ -4196,8 +4216,8 @@
|
|
|
4196
4216
|
if (this.toggle && !this.targetEl) {
|
|
4197
4217
|
this.targetEl = this.$create('toggle', query(this.toggle, this.$el), {
|
|
4198
4218
|
target: this.$el,
|
|
4199
|
-
mode: this.mode
|
|
4200
|
-
|
|
4219
|
+
mode: this.mode
|
|
4220
|
+
}).$el;
|
|
4201
4221
|
attr(this.targetEl, 'aria-haspopup', true);
|
|
4202
4222
|
this.lazyload(this.targetEl);
|
|
4203
4223
|
}
|
|
@@ -4221,8 +4241,8 @@
|
|
|
4221
4241
|
handler(e) {
|
|
4222
4242
|
e.preventDefault();
|
|
4223
4243
|
this.hide(false);
|
|
4224
|
-
}
|
|
4225
|
-
|
|
4244
|
+
}
|
|
4245
|
+
},
|
|
4226
4246
|
|
|
4227
4247
|
{
|
|
4228
4248
|
name: 'click',
|
|
@@ -4241,16 +4261,16 @@
|
|
|
4241
4261
|
{
|
|
4242
4262
|
this.hide(false);
|
|
4243
4263
|
}
|
|
4244
|
-
}
|
|
4245
|
-
|
|
4264
|
+
}
|
|
4265
|
+
},
|
|
4246
4266
|
|
|
4247
4267
|
{
|
|
4248
4268
|
name: 'beforescroll',
|
|
4249
4269
|
|
|
4250
4270
|
handler() {
|
|
4251
4271
|
this.hide(false);
|
|
4252
|
-
}
|
|
4253
|
-
|
|
4272
|
+
}
|
|
4273
|
+
},
|
|
4254
4274
|
|
|
4255
4275
|
{
|
|
4256
4276
|
name: 'toggle',
|
|
@@ -4265,8 +4285,8 @@
|
|
|
4265
4285
|
} else {
|
|
4266
4286
|
this.show(toggle == null ? void 0 : toggle.$el, false);
|
|
4267
4287
|
}
|
|
4268
|
-
}
|
|
4269
|
-
|
|
4288
|
+
}
|
|
4289
|
+
},
|
|
4270
4290
|
|
|
4271
4291
|
{
|
|
4272
4292
|
name: 'toggleshow',
|
|
@@ -4276,8 +4296,8 @@
|
|
|
4276
4296
|
handler(e, toggle) {
|
|
4277
4297
|
e.preventDefault();
|
|
4278
4298
|
this.show(toggle == null ? void 0 : toggle.$el);
|
|
4279
|
-
}
|
|
4280
|
-
|
|
4299
|
+
}
|
|
4300
|
+
},
|
|
4281
4301
|
|
|
4282
4302
|
{
|
|
4283
4303
|
name: 'togglehide',
|
|
@@ -4289,8 +4309,8 @@
|
|
|
4289
4309
|
if (!matches(this.$el, ':focus,:hover')) {
|
|
4290
4310
|
this.hide();
|
|
4291
4311
|
}
|
|
4292
|
-
}
|
|
4293
|
-
|
|
4312
|
+
}
|
|
4313
|
+
},
|
|
4294
4314
|
|
|
4295
4315
|
{
|
|
4296
4316
|
name: pointerEnter + " focusin",
|
|
@@ -4303,8 +4323,8 @@
|
|
|
4303
4323
|
if (!isTouch(e)) {
|
|
4304
4324
|
this.clearTimers();
|
|
4305
4325
|
}
|
|
4306
|
-
}
|
|
4307
|
-
|
|
4326
|
+
}
|
|
4327
|
+
},
|
|
4308
4328
|
|
|
4309
4329
|
{
|
|
4310
4330
|
name: pointerLeave + " focusout",
|
|
@@ -4317,8 +4337,8 @@
|
|
|
4317
4337
|
if (!isTouch(e) && e.relatedTarget) {
|
|
4318
4338
|
this.hide();
|
|
4319
4339
|
}
|
|
4320
|
-
}
|
|
4321
|
-
|
|
4340
|
+
}
|
|
4341
|
+
},
|
|
4322
4342
|
|
|
4323
4343
|
{
|
|
4324
4344
|
name: 'toggled',
|
|
@@ -4332,8 +4352,8 @@
|
|
|
4332
4352
|
|
|
4333
4353
|
this.clearTimers();
|
|
4334
4354
|
this.position();
|
|
4335
|
-
}
|
|
4336
|
-
|
|
4355
|
+
}
|
|
4356
|
+
},
|
|
4337
4357
|
|
|
4338
4358
|
{
|
|
4339
4359
|
name: 'show',
|
|
@@ -4388,8 +4408,8 @@
|
|
|
4388
4408
|
...(this.autoUpdate ?
|
|
4389
4409
|
[
|
|
4390
4410
|
on([document, scrollParents(this.$el)], 'scroll', update, {
|
|
4391
|
-
passive: true
|
|
4392
|
-
|
|
4411
|
+
passive: true
|
|
4412
|
+
})] :
|
|
4393
4413
|
|
|
4394
4414
|
[]),
|
|
4395
4415
|
|
|
@@ -4399,10 +4419,10 @@
|
|
|
4399
4419
|
|
|
4400
4420
|
|
|
4401
4421
|
once(this.$el, 'hide', () => handlers.forEach((handler) => handler()), {
|
|
4402
|
-
self: true
|
|
4403
|
-
|
|
4404
|
-
}
|
|
4405
|
-
|
|
4422
|
+
self: true
|
|
4423
|
+
});
|
|
4424
|
+
}
|
|
4425
|
+
},
|
|
4406
4426
|
|
|
4407
4427
|
{
|
|
4408
4428
|
name: 'beforehide',
|
|
@@ -4411,8 +4431,8 @@
|
|
|
4411
4431
|
|
|
4412
4432
|
handler() {
|
|
4413
4433
|
this.clearTimers();
|
|
4414
|
-
}
|
|
4415
|
-
|
|
4434
|
+
}
|
|
4435
|
+
},
|
|
4416
4436
|
|
|
4417
4437
|
{
|
|
4418
4438
|
name: 'hide',
|
|
@@ -4428,8 +4448,8 @@
|
|
|
4428
4448
|
|
|
4429
4449
|
active = this.isActive() ? null : active;
|
|
4430
4450
|
this.tracker.cancel();
|
|
4431
|
-
}
|
|
4432
|
-
|
|
4451
|
+
}
|
|
4452
|
+
}],
|
|
4433
4453
|
|
|
4434
4454
|
|
|
4435
4455
|
update: {
|
|
@@ -4437,8 +4457,8 @@
|
|
|
4437
4457
|
if (this.isToggled() && !hasClass(this.$el, this.clsEnter)) {
|
|
4438
4458
|
this.position();
|
|
4439
4459
|
}
|
|
4440
|
-
}
|
|
4441
|
-
|
|
4460
|
+
}
|
|
4461
|
+
},
|
|
4442
4462
|
|
|
4443
4463
|
methods: {
|
|
4444
4464
|
show(target, delay) {if (target === void 0) {target = this.targetEl;}if (delay === void 0) {delay = true;}
|
|
@@ -4514,7 +4534,7 @@
|
|
|
4514
4534
|
// Ensure none positioned element does not generate scrollbars
|
|
4515
4535
|
this.$el.hidden = true;
|
|
4516
4536
|
|
|
4517
|
-
const viewports = this.target.map((target) =>
|
|
4537
|
+
const viewports = this.target.map((target) => getViewport$1(this.$el, target));
|
|
4518
4538
|
const viewportOffset = this.getViewportOffset(this.$el);
|
|
4519
4539
|
|
|
4520
4540
|
const dirs = [
|
|
@@ -4529,8 +4549,8 @@
|
|
|
4529
4549
|
offset(this.boundary[i])[prop],
|
|
4530
4550
|
viewports[i][prop] - 2 * viewportOffset),
|
|
4531
4551
|
|
|
4532
|
-
["overflow-" + axis]: 'auto'
|
|
4533
|
-
|
|
4552
|
+
["overflow-" + axis]: 'auto'
|
|
4553
|
+
});
|
|
4534
4554
|
}
|
|
4535
4555
|
}
|
|
4536
4556
|
|
|
@@ -4564,15 +4584,15 @@
|
|
|
4564
4584
|
offset(this.boundary[i])[end],
|
|
4565
4585
|
viewports[i][end] - viewportOffset) -
|
|
4566
4586
|
targetOffset[end]) - positionOffset,
|
|
4567
|
-
["overflow-" + axis]: 'auto'
|
|
4568
|
-
|
|
4587
|
+
["overflow-" + axis]: 'auto'
|
|
4588
|
+
});
|
|
4569
4589
|
|
|
4570
4590
|
this.positionAt(this.$el, this.target, this.boundary);
|
|
4571
4591
|
}
|
|
4572
4592
|
}
|
|
4573
|
-
}
|
|
4574
|
-
|
|
4575
|
-
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
};
|
|
4576
4596
|
|
|
4577
4597
|
function getPositionedElements(el) {
|
|
4578
4598
|
const result = [];
|
|
@@ -4580,18 +4600,22 @@
|
|
|
4580
4600
|
return result;
|
|
4581
4601
|
}
|
|
4582
4602
|
|
|
4603
|
+
function getViewport$1(el, target) {
|
|
4604
|
+
return offsetViewport(scrollParents(target).find((parent) => within(el, parent)));
|
|
4605
|
+
}
|
|
4606
|
+
|
|
4583
4607
|
var formCustom = {
|
|
4584
4608
|
mixins: [Class],
|
|
4585
4609
|
|
|
4586
4610
|
args: 'target',
|
|
4587
4611
|
|
|
4588
4612
|
props: {
|
|
4589
|
-
target: Boolean
|
|
4590
|
-
|
|
4613
|
+
target: Boolean
|
|
4614
|
+
},
|
|
4591
4615
|
|
|
4592
4616
|
data: {
|
|
4593
|
-
target: false
|
|
4594
|
-
|
|
4617
|
+
target: false
|
|
4618
|
+
},
|
|
4595
4619
|
|
|
4596
4620
|
computed: {
|
|
4597
4621
|
input(_, $el) {
|
|
@@ -4608,8 +4632,8 @@
|
|
|
4608
4632
|
target === true && parent(this.input) === $el && this.input.nextElementSibling ||
|
|
4609
4633
|
$(target, $el)));
|
|
4610
4634
|
|
|
4611
|
-
}
|
|
4612
|
-
|
|
4635
|
+
}
|
|
4636
|
+
},
|
|
4613
4637
|
|
|
4614
4638
|
update() {var _input$files;
|
|
4615
4639
|
const { target, input } = this;
|
|
@@ -4639,8 +4663,8 @@
|
|
|
4639
4663
|
|
|
4640
4664
|
handler() {
|
|
4641
4665
|
this.$emit();
|
|
4642
|
-
}
|
|
4643
|
-
|
|
4666
|
+
}
|
|
4667
|
+
},
|
|
4644
4668
|
|
|
4645
4669
|
{
|
|
4646
4670
|
name: 'reset',
|
|
@@ -4651,20 +4675,23 @@
|
|
|
4651
4675
|
|
|
4652
4676
|
handler() {
|
|
4653
4677
|
this.$emit();
|
|
4654
|
-
}
|
|
4678
|
+
}
|
|
4679
|
+
}]
|
|
4680
|
+
|
|
4681
|
+
};
|
|
4655
4682
|
|
|
4656
4683
|
var Margin = {
|
|
4657
4684
|
mixins: [Resize],
|
|
4658
4685
|
|
|
4659
4686
|
props: {
|
|
4660
4687
|
margin: String,
|
|
4661
|
-
firstColumn: Boolean
|
|
4662
|
-
|
|
4688
|
+
firstColumn: Boolean
|
|
4689
|
+
},
|
|
4663
4690
|
|
|
4664
4691
|
data: {
|
|
4665
4692
|
margin: 'uk-margin-small-top',
|
|
4666
|
-
firstColumn: 'uk-first-column'
|
|
4667
|
-
|
|
4693
|
+
firstColumn: 'uk-first-column'
|
|
4694
|
+
},
|
|
4668
4695
|
|
|
4669
4696
|
resizeTargets() {
|
|
4670
4697
|
return [this.$el, ...toArray(this.$el.children)];
|
|
@@ -4673,8 +4700,10 @@
|
|
|
4673
4700
|
connected() {
|
|
4674
4701
|
this.registerObserver(
|
|
4675
4702
|
observeMutation(this.$el, () => this.$reset(), {
|
|
4676
|
-
childList: true
|
|
4677
|
-
|
|
4703
|
+
childList: true,
|
|
4704
|
+
attributes: true,
|
|
4705
|
+
attributeFilter: ['style']
|
|
4706
|
+
}));
|
|
4678
4707
|
|
|
4679
4708
|
},
|
|
4680
4709
|
|
|
@@ -4684,8 +4713,8 @@
|
|
|
4684
4713
|
|
|
4685
4714
|
return {
|
|
4686
4715
|
rows,
|
|
4687
|
-
columns: getColumns(rows)
|
|
4688
|
-
|
|
4716
|
+
columns: getColumns(rows)
|
|
4717
|
+
};
|
|
4689
4718
|
},
|
|
4690
4719
|
|
|
4691
4720
|
write(_ref) {let { columns, rows } = _ref;
|
|
@@ -4697,9 +4726,9 @@
|
|
|
4697
4726
|
}
|
|
4698
4727
|
},
|
|
4699
4728
|
|
|
4700
|
-
events: ['resize']
|
|
4701
|
-
|
|
4702
|
-
|
|
4729
|
+
events: ['resize']
|
|
4730
|
+
}
|
|
4731
|
+
};
|
|
4703
4732
|
|
|
4704
4733
|
function getRows(items) {
|
|
4705
4734
|
return sortBy(items, 'top', 'bottom');
|
|
@@ -4775,8 +4804,8 @@
|
|
|
4775
4804
|
top: offsetTop,
|
|
4776
4805
|
left: offsetLeft,
|
|
4777
4806
|
bottom: offsetTop + offsetHeight,
|
|
4778
|
-
right: offsetLeft + offsetWidth
|
|
4779
|
-
|
|
4807
|
+
right: offsetLeft + offsetWidth
|
|
4808
|
+
};
|
|
4780
4809
|
}
|
|
4781
4810
|
|
|
4782
4811
|
var Scroll = {
|
|
@@ -4786,8 +4815,8 @@
|
|
|
4786
4815
|
|
|
4787
4816
|
disconnected() {
|
|
4788
4817
|
unregisterScrollListener(this._uid);
|
|
4789
|
-
}
|
|
4790
|
-
|
|
4818
|
+
}
|
|
4819
|
+
};
|
|
4791
4820
|
|
|
4792
4821
|
const scrollListeners = new Map();
|
|
4793
4822
|
let unbindScrollListener;
|
|
@@ -4796,8 +4825,8 @@
|
|
|
4796
4825
|
unbindScrollListener ||
|
|
4797
4826
|
on(window, 'scroll', () => scrollListeners.forEach((listener) => listener()), {
|
|
4798
4827
|
passive: true,
|
|
4799
|
-
capture: true
|
|
4800
|
-
|
|
4828
|
+
capture: true
|
|
4829
|
+
});
|
|
4801
4830
|
|
|
4802
4831
|
scrollListeners.set(id, listener);
|
|
4803
4832
|
}
|
|
@@ -4819,15 +4848,15 @@
|
|
|
4819
4848
|
|
|
4820
4849
|
props: {
|
|
4821
4850
|
masonry: Boolean,
|
|
4822
|
-
parallax: Number
|
|
4823
|
-
|
|
4851
|
+
parallax: Number
|
|
4852
|
+
},
|
|
4824
4853
|
|
|
4825
4854
|
data: {
|
|
4826
4855
|
margin: 'uk-grid-margin',
|
|
4827
4856
|
clsStack: 'uk-grid-stack',
|
|
4828
4857
|
masonry: false,
|
|
4829
|
-
parallax: 0
|
|
4830
|
-
|
|
4858
|
+
parallax: 0
|
|
4859
|
+
},
|
|
4831
4860
|
|
|
4832
4861
|
connected() {
|
|
4833
4862
|
this.masonry && addClass(this.$el, 'uk-flex-top uk-flex-wrap-top');
|
|
@@ -4844,8 +4873,8 @@
|
|
|
4844
4873
|
toggleClass(this.$el, this.clsStack, columns.length < 2);
|
|
4845
4874
|
},
|
|
4846
4875
|
|
|
4847
|
-
events: ['resize']
|
|
4848
|
-
|
|
4876
|
+
events: ['resize']
|
|
4877
|
+
},
|
|
4849
4878
|
|
|
4850
4879
|
{
|
|
4851
4880
|
read(data) {
|
|
@@ -4893,8 +4922,8 @@
|
|
|
4893
4922
|
height !== false && css(this.$el, 'height', height);
|
|
4894
4923
|
},
|
|
4895
4924
|
|
|
4896
|
-
events: ['resize']
|
|
4897
|
-
|
|
4925
|
+
events: ['resize']
|
|
4926
|
+
},
|
|
4898
4927
|
|
|
4899
4928
|
{
|
|
4900
4929
|
read() {
|
|
@@ -4905,8 +4934,8 @@
|
|
|
4905
4934
|
return {
|
|
4906
4935
|
scrolled: this.parallax ?
|
|
4907
4936
|
scrolledOver(this.$el) * Math.abs(this.parallax) :
|
|
4908
|
-
false
|
|
4909
|
-
|
|
4937
|
+
false
|
|
4938
|
+
};
|
|
4910
4939
|
},
|
|
4911
4940
|
|
|
4912
4941
|
write(_ref3) {let { columns, scrolled, translates } = _ref3;
|
|
@@ -4930,10 +4959,10 @@
|
|
|
4930
4959
|
|
|
4931
4960
|
},
|
|
4932
4961
|
|
|
4933
|
-
events: ['scroll', 'resize']
|
|
4934
|
-
|
|
4935
|
-
|
|
4962
|
+
events: ['scroll', 'resize']
|
|
4963
|
+
}]
|
|
4936
4964
|
|
|
4965
|
+
};
|
|
4937
4966
|
|
|
4938
4967
|
function positionedAbsolute(el) {
|
|
4939
4968
|
return children(el).some((el) => css(el, 'position') === 'absolute');
|
|
@@ -4968,13 +4997,13 @@
|
|
|
4968
4997
|
|
|
4969
4998
|
props: {
|
|
4970
4999
|
target: String,
|
|
4971
|
-
row: Boolean
|
|
4972
|
-
|
|
5000
|
+
row: Boolean
|
|
5001
|
+
},
|
|
4973
5002
|
|
|
4974
5003
|
data: {
|
|
4975
5004
|
target: '> *',
|
|
4976
|
-
row: true
|
|
4977
|
-
|
|
5005
|
+
row: true
|
|
5006
|
+
},
|
|
4978
5007
|
|
|
4979
5008
|
computed: {
|
|
4980
5009
|
elements: {
|
|
@@ -4984,9 +5013,9 @@
|
|
|
4984
5013
|
|
|
4985
5014
|
watch() {
|
|
4986
5015
|
this.$reset();
|
|
4987
|
-
}
|
|
4988
|
-
|
|
4989
|
-
|
|
5016
|
+
}
|
|
5017
|
+
}
|
|
5018
|
+
},
|
|
4990
5019
|
|
|
4991
5020
|
resizeTargets() {
|
|
4992
5021
|
return [this.$el, ...this.elements];
|
|
@@ -4995,8 +5024,8 @@
|
|
|
4995
5024
|
update: {
|
|
4996
5025
|
read() {
|
|
4997
5026
|
return {
|
|
4998
|
-
rows: (this.row ? getRows(this.elements) : [this.elements]).map(match)
|
|
4999
|
-
|
|
5027
|
+
rows: (this.row ? getRows(this.elements) : [this.elements]).map(match)
|
|
5028
|
+
};
|
|
5000
5029
|
},
|
|
5001
5030
|
|
|
5002
5031
|
write(_ref2) {let { rows } = _ref2;
|
|
@@ -5005,9 +5034,9 @@
|
|
|
5005
5034
|
}
|
|
5006
5035
|
},
|
|
5007
5036
|
|
|
5008
|
-
events: ['resize']
|
|
5009
|
-
|
|
5010
|
-
|
|
5037
|
+
events: ['resize']
|
|
5038
|
+
}
|
|
5039
|
+
};
|
|
5011
5040
|
|
|
5012
5041
|
function match(elements) {
|
|
5013
5042
|
if (elements.length < 2) {
|
|
@@ -5020,8 +5049,8 @@
|
|
|
5020
5049
|
|
|
5021
5050
|
return {
|
|
5022
5051
|
heights: elements.map((el, i) => heights[i].toFixed(2) === max.toFixed(2) ? '' : max),
|
|
5023
|
-
elements
|
|
5024
|
-
|
|
5052
|
+
elements
|
|
5053
|
+
};
|
|
5025
5054
|
}
|
|
5026
5055
|
|
|
5027
5056
|
function getHeight(element) {
|
|
@@ -5047,15 +5076,15 @@
|
|
|
5047
5076
|
expand: Boolean,
|
|
5048
5077
|
offsetTop: Boolean,
|
|
5049
5078
|
offsetBottom: Boolean,
|
|
5050
|
-
minHeight: Number
|
|
5051
|
-
|
|
5079
|
+
minHeight: Number
|
|
5080
|
+
},
|
|
5052
5081
|
|
|
5053
5082
|
data: {
|
|
5054
5083
|
expand: false,
|
|
5055
5084
|
offsetTop: false,
|
|
5056
5085
|
offsetBottom: false,
|
|
5057
|
-
minHeight: 0
|
|
5058
|
-
|
|
5086
|
+
minHeight: 0
|
|
5087
|
+
},
|
|
5059
5088
|
|
|
5060
5089
|
resizeTargets() {
|
|
5061
5090
|
// check for offsetTop change
|
|
@@ -5124,7 +5153,9 @@
|
|
|
5124
5153
|
}
|
|
5125
5154
|
},
|
|
5126
5155
|
|
|
5127
|
-
events: ['resize']
|
|
5156
|
+
events: ['resize']
|
|
5157
|
+
}
|
|
5158
|
+
};
|
|
5128
5159
|
|
|
5129
5160
|
var SVG = {
|
|
5130
5161
|
args: 'src',
|
|
@@ -5139,15 +5170,15 @@
|
|
|
5139
5170
|
ratio: Number,
|
|
5140
5171
|
class: String,
|
|
5141
5172
|
strokeAnimation: Boolean,
|
|
5142
|
-
attributes: 'list'
|
|
5143
|
-
|
|
5173
|
+
attributes: 'list'
|
|
5174
|
+
},
|
|
5144
5175
|
|
|
5145
5176
|
data: {
|
|
5146
5177
|
ratio: 1,
|
|
5147
5178
|
include: ['style', 'class'],
|
|
5148
5179
|
class: '',
|
|
5149
|
-
strokeAnimation: false
|
|
5150
|
-
|
|
5180
|
+
strokeAnimation: false
|
|
5181
|
+
},
|
|
5151
5182
|
|
|
5152
5183
|
beforeConnect() {
|
|
5153
5184
|
this.class += ' uk-svg';
|
|
@@ -5244,9 +5275,9 @@
|
|
|
5244
5275
|
}
|
|
5245
5276
|
|
|
5246
5277
|
dimensions.forEach((val, i) => attr(el, props[i], toFloat(val) * this.ratio || null));
|
|
5247
|
-
}
|
|
5248
|
-
|
|
5249
|
-
|
|
5278
|
+
}
|
|
5279
|
+
}
|
|
5280
|
+
};
|
|
5250
5281
|
|
|
5251
5282
|
const loadSVG = memoize(async (src) => {
|
|
5252
5283
|
if (src) {
|
|
@@ -5338,7 +5369,7 @@
|
|
|
5338
5369
|
|
|
5339
5370
|
var navbarParentIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 3.5 6 8.5 11 3.5\"/></svg>";
|
|
5340
5371
|
|
|
5341
|
-
var navbarToggleIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><style>.uk-navbar-toggle-animate svg
|
|
5372
|
+
var navbarToggleIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><style>.uk-navbar-toggle-animate svg>[class*=line-]{transition:.2s ease-in-out;transition-property:transform,opacity,;transform-origin:center;opacity:1}.uk-navbar-toggle svg>.line-3{opacity:0}.uk-navbar-toggle-animate[aria-expanded=true] svg>.line-3{opacity:1}.uk-navbar-toggle-animate[aria-expanded=true] svg>.line-2{transform:rotate(45deg)}.uk-navbar-toggle-animate[aria-expanded=true] svg>.line-3{transform:rotate(-45deg)}.uk-navbar-toggle-animate[aria-expanded=true] svg>.line-1,.uk-navbar-toggle-animate[aria-expanded=true] svg>.line-4{opacity:0}.uk-navbar-toggle-animate[aria-expanded=true] svg>.line-1{transform:translateY(6px) scaleX(0)}.uk-navbar-toggle-animate[aria-expanded=true] svg>.line-4{transform:translateY(-6px) scaleX(0)}</style><rect class=\"line-1\" y=\"3\" width=\"20\" height=\"2\"/><rect class=\"line-2\" y=\"9\" width=\"20\" height=\"2\"/><rect class=\"line-3\" y=\"9\" width=\"20\" height=\"2\"/><rect class=\"line-4\" y=\"15\" width=\"20\" height=\"2\"/></svg>";
|
|
5342
5373
|
|
|
5343
5374
|
var overlayIcon = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"19\" y=\"0\" width=\"1\" height=\"40\"/><rect x=\"0\" y=\"19\" width=\"40\" height=\"1\"/></svg>";
|
|
5344
5375
|
|
|
@@ -5383,8 +5414,8 @@
|
|
|
5383
5414
|
'slidenav-next': slidenavNext,
|
|
5384
5415
|
'slidenav-next-large': slidenavNextLarge,
|
|
5385
5416
|
'slidenav-previous': slidenavPrevious,
|
|
5386
|
-
'slidenav-previous-large': slidenavPreviousLarge
|
|
5387
|
-
|
|
5417
|
+
'slidenav-previous-large': slidenavPreviousLarge
|
|
5418
|
+
};
|
|
5388
5419
|
|
|
5389
5420
|
const Icon = {
|
|
5390
5421
|
install: install$1,
|
|
@@ -5412,7 +5443,9 @@
|
|
|
5412
5443
|
}
|
|
5413
5444
|
|
|
5414
5445
|
return icon;
|
|
5415
|
-
}
|
|
5446
|
+
}
|
|
5447
|
+
}
|
|
5448
|
+
};
|
|
5416
5449
|
|
|
5417
5450
|
const IconComponent = {
|
|
5418
5451
|
args: false,
|
|
@@ -5420,13 +5453,13 @@
|
|
|
5420
5453
|
extends: Icon,
|
|
5421
5454
|
|
|
5422
5455
|
data: (vm) => ({
|
|
5423
|
-
icon: hyphenate(vm.constructor.options.name)
|
|
5424
|
-
|
|
5456
|
+
icon: hyphenate(vm.constructor.options.name)
|
|
5457
|
+
}),
|
|
5425
5458
|
|
|
5426
5459
|
beforeConnect() {
|
|
5427
5460
|
addClass(this.$el, this.$options.id);
|
|
5428
|
-
}
|
|
5429
|
-
|
|
5461
|
+
}
|
|
5462
|
+
};
|
|
5430
5463
|
|
|
5431
5464
|
const NavParentIcon = {
|
|
5432
5465
|
extends: IconComponent,
|
|
@@ -5434,8 +5467,8 @@
|
|
|
5434
5467
|
beforeConnect() {
|
|
5435
5468
|
const icon = this.$props.icon;
|
|
5436
5469
|
this.icon = closest(this.$el, '.uk-nav-primary') ? icon + "-large" : icon;
|
|
5437
|
-
}
|
|
5438
|
-
|
|
5470
|
+
}
|
|
5471
|
+
};
|
|
5439
5472
|
|
|
5440
5473
|
const Slidenav = {
|
|
5441
5474
|
extends: IconComponent,
|
|
@@ -5444,8 +5477,8 @@
|
|
|
5444
5477
|
addClass(this.$el, 'uk-slidenav');
|
|
5445
5478
|
const icon = this.$props.icon;
|
|
5446
5479
|
this.icon = hasClass(this.$el, 'uk-slidenav-large') ? icon + "-large" : icon;
|
|
5447
|
-
}
|
|
5448
|
-
|
|
5480
|
+
}
|
|
5481
|
+
};
|
|
5449
5482
|
|
|
5450
5483
|
const Search = {
|
|
5451
5484
|
extends: IconComponent,
|
|
@@ -5457,16 +5490,16 @@
|
|
|
5457
5490
|
parents(this.$el, '.uk-search-navbar').length ?
|
|
5458
5491
|
'search-navbar' :
|
|
5459
5492
|
this.$props.icon;
|
|
5460
|
-
}
|
|
5461
|
-
|
|
5493
|
+
}
|
|
5494
|
+
};
|
|
5462
5495
|
|
|
5463
5496
|
const Close = {
|
|
5464
5497
|
extends: IconComponent,
|
|
5465
5498
|
|
|
5466
5499
|
beforeConnect() {
|
|
5467
5500
|
this.icon = "close-" + (hasClass(this.$el, 'uk-close-large') ? 'large' : 'icon');
|
|
5468
|
-
}
|
|
5469
|
-
|
|
5501
|
+
}
|
|
5502
|
+
};
|
|
5470
5503
|
|
|
5471
5504
|
const Spinner = {
|
|
5472
5505
|
extends: IconComponent,
|
|
@@ -5480,9 +5513,9 @@
|
|
|
5480
5513
|
}
|
|
5481
5514
|
|
|
5482
5515
|
return icon;
|
|
5483
|
-
}
|
|
5484
|
-
|
|
5485
|
-
|
|
5516
|
+
}
|
|
5517
|
+
}
|
|
5518
|
+
};
|
|
5486
5519
|
|
|
5487
5520
|
const parsed = {};
|
|
5488
5521
|
function install$1(UIkit) {
|
|
@@ -5530,8 +5563,8 @@
|
|
|
5530
5563
|
offsetTop: String,
|
|
5531
5564
|
offsetLeft: String,
|
|
5532
5565
|
target: String,
|
|
5533
|
-
loading: String
|
|
5534
|
-
|
|
5566
|
+
loading: String
|
|
5567
|
+
},
|
|
5535
5568
|
|
|
5536
5569
|
data: {
|
|
5537
5570
|
dataSrc: '',
|
|
@@ -5539,8 +5572,8 @@
|
|
|
5539
5572
|
offsetTop: '50vh',
|
|
5540
5573
|
offsetLeft: '50vw',
|
|
5541
5574
|
target: false,
|
|
5542
|
-
loading: 'lazy'
|
|
5543
|
-
|
|
5575
|
+
loading: 'lazy'
|
|
5576
|
+
},
|
|
5544
5577
|
|
|
5545
5578
|
connected() {
|
|
5546
5579
|
if (this.loading !== 'lazy') {
|
|
@@ -5571,9 +5604,9 @@
|
|
|
5571
5604
|
{
|
|
5572
5605
|
rootMargin: toPx(this.offsetTop, 'height') + "px " + toPx(
|
|
5573
5606
|
this.offsetLeft,
|
|
5574
|
-
'width') + "px"
|
|
5575
|
-
|
|
5607
|
+
'width') + "px"
|
|
5576
5608
|
|
|
5609
|
+
}));
|
|
5577
5610
|
|
|
5578
5611
|
|
|
5579
5612
|
},
|
|
@@ -5597,9 +5630,9 @@
|
|
|
5597
5630
|
removeAttr(image, 'loading');
|
|
5598
5631
|
setSrcAttrs(this.$el, image.currentSrc);
|
|
5599
5632
|
return this._data.image = image;
|
|
5600
|
-
}
|
|
5601
|
-
|
|
5602
|
-
|
|
5633
|
+
}
|
|
5634
|
+
}
|
|
5635
|
+
};
|
|
5603
5636
|
|
|
5604
5637
|
function setSrcAttrs(el, src) {
|
|
5605
5638
|
if (isImg(el)) {
|
|
@@ -5689,12 +5722,12 @@
|
|
|
5689
5722
|
|
|
5690
5723
|
var Media = {
|
|
5691
5724
|
props: {
|
|
5692
|
-
media: Boolean
|
|
5693
|
-
|
|
5725
|
+
media: Boolean
|
|
5726
|
+
},
|
|
5694
5727
|
|
|
5695
5728
|
data: {
|
|
5696
|
-
media: false
|
|
5697
|
-
|
|
5729
|
+
media: false
|
|
5730
|
+
},
|
|
5698
5731
|
|
|
5699
5732
|
connected() {
|
|
5700
5733
|
const media = toMedia(this.media, this.$el);
|
|
@@ -5715,8 +5748,8 @@
|
|
|
5715
5748
|
|
|
5716
5749
|
disconnected() {var _this$offMediaObj;
|
|
5717
5750
|
(_this$offMediaObj = this.offMediaObj) == null ? void 0 : _this$offMediaObj.call(this);
|
|
5718
|
-
}
|
|
5719
|
-
|
|
5751
|
+
}
|
|
5752
|
+
};
|
|
5720
5753
|
|
|
5721
5754
|
function toMedia(value, element) {
|
|
5722
5755
|
if (isString(value)) {
|
|
@@ -5734,21 +5767,21 @@
|
|
|
5734
5767
|
mixins: [Class, Media, Resize],
|
|
5735
5768
|
|
|
5736
5769
|
props: {
|
|
5737
|
-
fill: String
|
|
5738
|
-
|
|
5770
|
+
fill: String
|
|
5771
|
+
},
|
|
5739
5772
|
|
|
5740
5773
|
data: {
|
|
5741
5774
|
fill: '',
|
|
5742
5775
|
clsWrapper: 'uk-leader-fill',
|
|
5743
5776
|
clsHide: 'uk-leader-hide',
|
|
5744
|
-
attrFill: 'data-fill'
|
|
5745
|
-
|
|
5777
|
+
attrFill: 'data-fill'
|
|
5778
|
+
},
|
|
5746
5779
|
|
|
5747
5780
|
computed: {
|
|
5748
5781
|
fill(_ref) {let { fill } = _ref;
|
|
5749
5782
|
return fill || css(this.$el, '--uk-leader-fill-content');
|
|
5750
|
-
}
|
|
5751
|
-
|
|
5783
|
+
}
|
|
5784
|
+
},
|
|
5752
5785
|
|
|
5753
5786
|
connected() {
|
|
5754
5787
|
[this.wrapper] = wrapInner(this.$el, "<span class=\"" + this.clsWrapper + "\">");
|
|
@@ -5765,8 +5798,8 @@
|
|
|
5765
5798
|
return {
|
|
5766
5799
|
width,
|
|
5767
5800
|
fill: this.fill,
|
|
5768
|
-
hide: !this.matchMedia
|
|
5769
|
-
|
|
5801
|
+
hide: !this.matchMedia
|
|
5802
|
+
};
|
|
5770
5803
|
},
|
|
5771
5804
|
|
|
5772
5805
|
write(_ref2) {let { width, fill, hide } = _ref2;
|
|
@@ -5774,7 +5807,9 @@
|
|
|
5774
5807
|
attr(this.wrapper, this.attrFill, new Array(width).join(fill));
|
|
5775
5808
|
},
|
|
5776
5809
|
|
|
5777
|
-
events: ['resize']
|
|
5810
|
+
events: ['resize']
|
|
5811
|
+
}
|
|
5812
|
+
};
|
|
5778
5813
|
|
|
5779
5814
|
var modal = {
|
|
5780
5815
|
install,
|
|
@@ -5785,8 +5820,8 @@
|
|
|
5785
5820
|
clsPage: 'uk-modal-page',
|
|
5786
5821
|
selPanel: '.uk-modal-dialog',
|
|
5787
5822
|
selClose:
|
|
5788
|
-
'.uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full'
|
|
5789
|
-
|
|
5823
|
+
'.uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full'
|
|
5824
|
+
},
|
|
5790
5825
|
|
|
5791
5826
|
events: [
|
|
5792
5827
|
{
|
|
@@ -5802,8 +5837,8 @@
|
|
|
5802
5837
|
}
|
|
5803
5838
|
|
|
5804
5839
|
height(this.$el); // force reflow
|
|
5805
|
-
}
|
|
5806
|
-
|
|
5840
|
+
}
|
|
5841
|
+
},
|
|
5807
5842
|
|
|
5808
5843
|
{
|
|
5809
5844
|
name: 'hidden',
|
|
@@ -5813,10 +5848,10 @@
|
|
|
5813
5848
|
handler() {
|
|
5814
5849
|
css(this.$el, 'display', '');
|
|
5815
5850
|
removeClass(this.$el, 'uk-flex');
|
|
5816
|
-
}
|
|
5817
|
-
|
|
5818
|
-
|
|
5851
|
+
}
|
|
5852
|
+
}]
|
|
5819
5853
|
|
|
5854
|
+
};
|
|
5820
5855
|
|
|
5821
5856
|
function install(_ref) {let { modal } = _ref;
|
|
5822
5857
|
modal.dialog = function (content, options) {
|
|
@@ -5895,8 +5930,8 @@
|
|
|
5895
5930
|
|
|
5896
5931
|
modal.labels = {
|
|
5897
5932
|
ok: 'Ok',
|
|
5898
|
-
cancel: 'Cancel'
|
|
5899
|
-
|
|
5933
|
+
cancel: 'Cancel'
|
|
5934
|
+
};
|
|
5900
5935
|
|
|
5901
5936
|
function openDialog(tmpl, options, hideFn, submitFn) {
|
|
5902
5937
|
options = { bgClose: false, escClose: true, labels: modal.labels, ...options };
|
|
@@ -5927,7 +5962,9 @@
|
|
|
5927
5962
|
data: {
|
|
5928
5963
|
targets: '> .uk-parent',
|
|
5929
5964
|
toggle: '> a',
|
|
5930
|
-
content: '> ul'
|
|
5965
|
+
content: '> ul'
|
|
5966
|
+
}
|
|
5967
|
+
};
|
|
5931
5968
|
|
|
5932
5969
|
var navbar = {
|
|
5933
5970
|
mixins: [Class, Container],
|
|
@@ -5949,8 +5986,8 @@
|
|
|
5949
5986
|
targetX: Boolean,
|
|
5950
5987
|
targetY: Boolean,
|
|
5951
5988
|
animation: Boolean,
|
|
5952
|
-
animateOut: Boolean
|
|
5953
|
-
|
|
5989
|
+
animateOut: Boolean
|
|
5990
|
+
},
|
|
5954
5991
|
|
|
5955
5992
|
data: {
|
|
5956
5993
|
dropdown: '.uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle',
|
|
@@ -5960,8 +5997,8 @@
|
|
|
5960
5997
|
dropbar: false,
|
|
5961
5998
|
dropbarAnchor: false,
|
|
5962
5999
|
duration: 200,
|
|
5963
|
-
container: false
|
|
5964
|
-
|
|
6000
|
+
container: false
|
|
6001
|
+
},
|
|
5965
6002
|
|
|
5966
6003
|
computed: {
|
|
5967
6004
|
dropbarAnchor(_ref, $el) {let { dropbarAnchor } = _ref;
|
|
@@ -5986,8 +6023,8 @@
|
|
|
5986
6023
|
addClass(dropbar, 'uk-dropbar', 'uk-dropbar-top', 'uk-navbar-dropbar');
|
|
5987
6024
|
},
|
|
5988
6025
|
|
|
5989
|
-
immediate: true
|
|
5990
|
-
|
|
6026
|
+
immediate: true
|
|
6027
|
+
},
|
|
5991
6028
|
|
|
5992
6029
|
dropContainer(_, $el) {
|
|
5993
6030
|
return this.container || $el;
|
|
@@ -6018,13 +6055,13 @@
|
|
|
6018
6055
|
flip: false,
|
|
6019
6056
|
shift: true,
|
|
6020
6057
|
pos: "bottom-" + this.align,
|
|
6021
|
-
boundary: this.boundary === true ? this.$el : this.boundary
|
|
6022
|
-
|
|
6058
|
+
boundary: this.boundary === true ? this.$el : this.boundary
|
|
6059
|
+
});
|
|
6023
6060
|
|
|
6024
6061
|
},
|
|
6025
6062
|
|
|
6026
|
-
immediate: true
|
|
6027
|
-
|
|
6063
|
+
immediate: true
|
|
6064
|
+
},
|
|
6028
6065
|
|
|
6029
6066
|
toggles: {
|
|
6030
6067
|
get(_ref4, $el) {let { dropdown } = _ref4;
|
|
@@ -6041,9 +6078,9 @@
|
|
|
6041
6078
|
}
|
|
6042
6079
|
},
|
|
6043
6080
|
|
|
6044
|
-
immediate: true
|
|
6045
|
-
|
|
6046
|
-
|
|
6081
|
+
immediate: true
|
|
6082
|
+
}
|
|
6083
|
+
},
|
|
6047
6084
|
|
|
6048
6085
|
disconnected() {
|
|
6049
6086
|
this.dropbar && remove$1(this.dropbar);
|
|
@@ -6069,8 +6106,8 @@
|
|
|
6069
6106
|
{
|
|
6070
6107
|
active.hide(false);
|
|
6071
6108
|
}
|
|
6072
|
-
}
|
|
6073
|
-
|
|
6109
|
+
}
|
|
6110
|
+
},
|
|
6074
6111
|
|
|
6075
6112
|
{
|
|
6076
6113
|
name: 'keydown',
|
|
@@ -6097,8 +6134,8 @@
|
|
|
6097
6134
|
}
|
|
6098
6135
|
|
|
6099
6136
|
handleNavItemNavigation(e, this.toggles, active);
|
|
6100
|
-
}
|
|
6101
|
-
|
|
6137
|
+
}
|
|
6138
|
+
},
|
|
6102
6139
|
|
|
6103
6140
|
{
|
|
6104
6141
|
name: 'keydown',
|
|
@@ -6141,8 +6178,8 @@
|
|
|
6141
6178
|
}
|
|
6142
6179
|
|
|
6143
6180
|
handleNavItemNavigation(e, this.toggles, active);
|
|
6144
|
-
}
|
|
6145
|
-
|
|
6181
|
+
}
|
|
6182
|
+
},
|
|
6146
6183
|
|
|
6147
6184
|
{
|
|
6148
6185
|
name: 'mouseleave',
|
|
@@ -6165,8 +6202,8 @@
|
|
|
6165
6202
|
{
|
|
6166
6203
|
active.hide();
|
|
6167
6204
|
}
|
|
6168
|
-
}
|
|
6169
|
-
|
|
6205
|
+
}
|
|
6206
|
+
},
|
|
6170
6207
|
|
|
6171
6208
|
{
|
|
6172
6209
|
name: 'beforeshow',
|
|
@@ -6189,8 +6226,8 @@
|
|
|
6189
6226
|
}
|
|
6190
6227
|
|
|
6191
6228
|
addClass(target, this.clsDrop + "-dropbar");
|
|
6192
|
-
}
|
|
6193
|
-
|
|
6229
|
+
}
|
|
6230
|
+
},
|
|
6194
6231
|
|
|
6195
6232
|
{
|
|
6196
6233
|
name: 'show',
|
|
@@ -6222,8 +6259,8 @@
|
|
|
6222
6259
|
target);
|
|
6223
6260
|
|
|
6224
6261
|
});
|
|
6225
|
-
}
|
|
6226
|
-
|
|
6262
|
+
}
|
|
6263
|
+
},
|
|
6227
6264
|
|
|
6228
6265
|
{
|
|
6229
6266
|
name: 'beforehide',
|
|
@@ -6246,8 +6283,8 @@
|
|
|
6246
6283
|
{
|
|
6247
6284
|
e.preventDefault();
|
|
6248
6285
|
}
|
|
6249
|
-
}
|
|
6250
|
-
|
|
6286
|
+
}
|
|
6287
|
+
},
|
|
6251
6288
|
|
|
6252
6289
|
{
|
|
6253
6290
|
name: 'hide',
|
|
@@ -6272,8 +6309,8 @@
|
|
|
6272
6309
|
if (!active || (active == null ? void 0 : active.$el) === target) {
|
|
6273
6310
|
this.transitionTo(0);
|
|
6274
6311
|
}
|
|
6275
|
-
}
|
|
6276
|
-
|
|
6312
|
+
}
|
|
6313
|
+
}],
|
|
6277
6314
|
|
|
6278
6315
|
|
|
6279
6316
|
methods: {
|
|
@@ -6297,8 +6334,8 @@
|
|
|
6297
6334
|
Transition.start(
|
|
6298
6335
|
el,
|
|
6299
6336
|
{
|
|
6300
|
-
clipPath: "polygon(0 0,100% 0,100% " + newHeight + "px,0 " + newHeight + "px)"
|
|
6301
|
-
|
|
6337
|
+
clipPath: "polygon(0 0,100% 0,100% " + newHeight + "px,0 " + newHeight + "px)"
|
|
6338
|
+
},
|
|
6302
6339
|
this.duration)]).
|
|
6303
6340
|
|
|
6304
6341
|
|
|
@@ -6312,9 +6349,9 @@
|
|
|
6312
6349
|
|
|
6313
6350
|
isDropbarDrop(el) {
|
|
6314
6351
|
return this.getDropdown(el) && hasClass(el, this.clsDrop);
|
|
6315
|
-
}
|
|
6316
|
-
|
|
6317
|
-
|
|
6352
|
+
}
|
|
6353
|
+
}
|
|
6354
|
+
};
|
|
6318
6355
|
|
|
6319
6356
|
function handleNavItemNavigation(e, toggles, active) {
|
|
6320
6357
|
const { current, keyCode } = e;
|
|
@@ -6351,22 +6388,23 @@
|
|
|
6351
6388
|
LEFT: 37,
|
|
6352
6389
|
UP: 38,
|
|
6353
6390
|
RIGHT: 39,
|
|
6354
|
-
DOWN: 40
|
|
6391
|
+
DOWN: 40
|
|
6392
|
+
};
|
|
6355
6393
|
|
|
6356
6394
|
var Swipe = {
|
|
6357
6395
|
props: {
|
|
6358
|
-
swiping: Boolean
|
|
6359
|
-
|
|
6396
|
+
swiping: Boolean
|
|
6397
|
+
},
|
|
6360
6398
|
|
|
6361
6399
|
data: {
|
|
6362
|
-
swiping: true
|
|
6363
|
-
|
|
6400
|
+
swiping: true
|
|
6401
|
+
},
|
|
6364
6402
|
|
|
6365
6403
|
computed: {
|
|
6366
6404
|
swipeTarget(props, $el) {
|
|
6367
6405
|
return $el;
|
|
6368
|
-
}
|
|
6369
|
-
|
|
6406
|
+
}
|
|
6407
|
+
},
|
|
6370
6408
|
|
|
6371
6409
|
connected() {
|
|
6372
6410
|
if (!this.swiping) {
|
|
@@ -6399,10 +6437,10 @@
|
|
|
6399
6437
|
});
|
|
6400
6438
|
}
|
|
6401
6439
|
});
|
|
6402
|
-
}
|
|
6403
|
-
|
|
6404
|
-
}
|
|
6405
|
-
|
|
6440
|
+
}
|
|
6441
|
+
});
|
|
6442
|
+
}
|
|
6443
|
+
};
|
|
6406
6444
|
|
|
6407
6445
|
function swipeDirection(x1, y1, x2, y2) {
|
|
6408
6446
|
return Math.abs(x1 - x2) >= Math.abs(y1 - y2) ?
|
|
@@ -6422,8 +6460,8 @@
|
|
|
6422
6460
|
props: {
|
|
6423
6461
|
mode: String,
|
|
6424
6462
|
flip: Boolean,
|
|
6425
|
-
overlay: Boolean
|
|
6426
|
-
|
|
6463
|
+
overlay: Boolean
|
|
6464
|
+
},
|
|
6427
6465
|
|
|
6428
6466
|
data: {
|
|
6429
6467
|
mode: 'slide',
|
|
@@ -6438,8 +6476,8 @@
|
|
|
6438
6476
|
clsMode: 'uk-offcanvas',
|
|
6439
6477
|
clsOverlay: 'uk-offcanvas-overlay',
|
|
6440
6478
|
selClose: '.uk-offcanvas-close',
|
|
6441
|
-
container: false
|
|
6442
|
-
|
|
6479
|
+
container: false
|
|
6480
|
+
},
|
|
6443
6481
|
|
|
6444
6482
|
computed: {
|
|
6445
6483
|
clsFlip(_ref) {let { flip, clsFlip } = _ref;
|
|
@@ -6464,8 +6502,8 @@
|
|
|
6464
6502
|
|
|
6465
6503
|
transitionElement(_ref6) {let { mode } = _ref6;
|
|
6466
6504
|
return mode === 'reveal' ? parent(this.panel) : this.panel;
|
|
6467
|
-
}
|
|
6468
|
-
|
|
6505
|
+
}
|
|
6506
|
+
},
|
|
6469
6507
|
|
|
6470
6508
|
update: {
|
|
6471
6509
|
read() {
|
|
@@ -6474,8 +6512,8 @@
|
|
|
6474
6512
|
}
|
|
6475
6513
|
},
|
|
6476
6514
|
|
|
6477
|
-
events: ['resize']
|
|
6478
|
-
|
|
6515
|
+
events: ['resize']
|
|
6516
|
+
},
|
|
6479
6517
|
|
|
6480
6518
|
events: [
|
|
6481
6519
|
{
|
|
@@ -6490,8 +6528,8 @@
|
|
|
6490
6528
|
|
|
6491
6529
|
handler(e) {
|
|
6492
6530
|
e.cancelable && e.preventDefault();
|
|
6493
|
-
}
|
|
6494
|
-
|
|
6531
|
+
}
|
|
6532
|
+
},
|
|
6495
6533
|
|
|
6496
6534
|
{
|
|
6497
6535
|
name: 'show',
|
|
@@ -6521,8 +6559,8 @@
|
|
|
6521
6559
|
addClass(body, this.clsContainerAnimation);
|
|
6522
6560
|
|
|
6523
6561
|
this.clsContainerAnimation && suppressUserScale();
|
|
6524
|
-
}
|
|
6525
|
-
|
|
6562
|
+
}
|
|
6563
|
+
},
|
|
6526
6564
|
|
|
6527
6565
|
{
|
|
6528
6566
|
name: 'hide',
|
|
@@ -6532,8 +6570,8 @@
|
|
|
6532
6570
|
handler() {
|
|
6533
6571
|
removeClass(document.body, this.clsContainerAnimation);
|
|
6534
6572
|
css(document.body, 'touch-action', '');
|
|
6535
|
-
}
|
|
6536
|
-
|
|
6573
|
+
}
|
|
6574
|
+
},
|
|
6537
6575
|
|
|
6538
6576
|
{
|
|
6539
6577
|
name: 'hidden',
|
|
@@ -6552,8 +6590,8 @@
|
|
|
6552
6590
|
css(this.$el, 'display', '');
|
|
6553
6591
|
css(this.panel, 'maxWidth', '');
|
|
6554
6592
|
removeClass(document.body, this.clsContainer, this.clsFlip);
|
|
6555
|
-
}
|
|
6556
|
-
|
|
6593
|
+
}
|
|
6594
|
+
},
|
|
6557
6595
|
|
|
6558
6596
|
{
|
|
6559
6597
|
name: 'swipeLeft swipeRight',
|
|
@@ -6562,10 +6600,10 @@
|
|
|
6562
6600
|
if (this.isToggled() && endsWith(e.type, 'Left') ^ this.flip) {
|
|
6563
6601
|
this.hide();
|
|
6564
6602
|
}
|
|
6565
|
-
}
|
|
6566
|
-
|
|
6567
|
-
|
|
6603
|
+
}
|
|
6604
|
+
}]
|
|
6568
6605
|
|
|
6606
|
+
};
|
|
6569
6607
|
|
|
6570
6608
|
// Chrome in responsive mode zooms page upon opening offcanvas
|
|
6571
6609
|
function suppressUserScale() {
|
|
@@ -6589,14 +6627,14 @@
|
|
|
6589
6627
|
props: {
|
|
6590
6628
|
selContainer: String,
|
|
6591
6629
|
selContent: String,
|
|
6592
|
-
minHeight: Number
|
|
6593
|
-
|
|
6630
|
+
minHeight: Number
|
|
6631
|
+
},
|
|
6594
6632
|
|
|
6595
6633
|
data: {
|
|
6596
6634
|
selContainer: '.uk-modal',
|
|
6597
6635
|
selContent: '.uk-modal-dialog',
|
|
6598
|
-
minHeight: 150
|
|
6599
|
-
|
|
6636
|
+
minHeight: 150
|
|
6637
|
+
},
|
|
6600
6638
|
|
|
6601
6639
|
computed: {
|
|
6602
6640
|
container(_ref, $el) {let { selContainer } = _ref;
|
|
@@ -6605,8 +6643,8 @@
|
|
|
6605
6643
|
|
|
6606
6644
|
content(_ref2, $el) {let { selContent } = _ref2;
|
|
6607
6645
|
return closest($el, selContent);
|
|
6608
|
-
}
|
|
6609
|
-
|
|
6646
|
+
}
|
|
6647
|
+
},
|
|
6610
6648
|
|
|
6611
6649
|
resizeTargets() {
|
|
6612
6650
|
return [this.container, this.content];
|
|
@@ -6621,16 +6659,18 @@
|
|
|
6621
6659
|
return {
|
|
6622
6660
|
max: Math.max(
|
|
6623
6661
|
this.minHeight,
|
|
6624
|
-
height(this.container) - (dimensions(this.content).height - height(this.$el)))
|
|
6625
|
-
|
|
6662
|
+
height(this.container) - (dimensions(this.content).height - height(this.$el)))
|
|
6626
6663
|
|
|
6664
|
+
};
|
|
6627
6665
|
},
|
|
6628
6666
|
|
|
6629
6667
|
write(_ref3) {let { max } = _ref3;
|
|
6630
6668
|
css(this.$el, { minHeight: this.minHeight, maxHeight: max });
|
|
6631
6669
|
},
|
|
6632
6670
|
|
|
6633
|
-
events: ['resize']
|
|
6671
|
+
events: ['resize']
|
|
6672
|
+
}
|
|
6673
|
+
};
|
|
6634
6674
|
|
|
6635
6675
|
var responsive = {
|
|
6636
6676
|
mixins: [Resize],
|
|
@@ -6658,23 +6698,25 @@
|
|
|
6658
6698
|
Dimensions.contain(
|
|
6659
6699
|
{
|
|
6660
6700
|
height: this.height,
|
|
6661
|
-
width: this.width
|
|
6662
|
-
|
|
6701
|
+
width: this.width
|
|
6702
|
+
},
|
|
6663
6703
|
dim).
|
|
6664
6704
|
height);
|
|
6665
6705
|
|
|
6666
6706
|
},
|
|
6667
6707
|
|
|
6668
|
-
events: ['resize']
|
|
6708
|
+
events: ['resize']
|
|
6709
|
+
}
|
|
6710
|
+
};
|
|
6669
6711
|
|
|
6670
6712
|
var scroll = {
|
|
6671
6713
|
props: {
|
|
6672
|
-
offset: Number
|
|
6673
|
-
|
|
6714
|
+
offset: Number
|
|
6715
|
+
},
|
|
6674
6716
|
|
|
6675
6717
|
data: {
|
|
6676
|
-
offset: 0
|
|
6677
|
-
|
|
6718
|
+
offset: 0
|
|
6719
|
+
},
|
|
6678
6720
|
|
|
6679
6721
|
connected() {
|
|
6680
6722
|
registerClick(this);
|
|
@@ -6692,9 +6734,9 @@
|
|
|
6692
6734
|
await scrollIntoView(el, { offset: this.offset });
|
|
6693
6735
|
trigger(this.$el, 'scrolled', [this, el]);
|
|
6694
6736
|
}
|
|
6695
|
-
}
|
|
6696
|
-
|
|
6697
|
-
|
|
6737
|
+
}
|
|
6738
|
+
}
|
|
6739
|
+
};
|
|
6698
6740
|
|
|
6699
6741
|
const components$1 = new Set();
|
|
6700
6742
|
function registerClick(cmp) {
|
|
@@ -6742,8 +6784,8 @@
|
|
|
6742
6784
|
offsetTop: Number,
|
|
6743
6785
|
offsetLeft: Number,
|
|
6744
6786
|
repeat: Boolean,
|
|
6745
|
-
delay: Number
|
|
6746
|
-
|
|
6787
|
+
delay: Number
|
|
6788
|
+
},
|
|
6747
6789
|
|
|
6748
6790
|
data: () => ({
|
|
6749
6791
|
cls: '',
|
|
@@ -6753,8 +6795,8 @@
|
|
|
6753
6795
|
offsetLeft: 0,
|
|
6754
6796
|
repeat: false,
|
|
6755
6797
|
delay: 0,
|
|
6756
|
-
inViewClass: 'uk-scrollspy-inview'
|
|
6757
|
-
|
|
6798
|
+
inViewClass: 'uk-scrollspy-inview'
|
|
6799
|
+
}),
|
|
6758
6800
|
|
|
6759
6801
|
computed: {
|
|
6760
6802
|
elements: {
|
|
@@ -6773,9 +6815,9 @@
|
|
|
6773
6815
|
}
|
|
6774
6816
|
},
|
|
6775
6817
|
|
|
6776
|
-
immediate: true
|
|
6777
|
-
|
|
6778
|
-
|
|
6818
|
+
immediate: true
|
|
6819
|
+
}
|
|
6820
|
+
},
|
|
6779
6821
|
|
|
6780
6822
|
connected() {
|
|
6781
6823
|
this._data.elements = new Map();
|
|
@@ -6787,8 +6829,8 @@
|
|
|
6787
6829
|
for (const { target: el, isIntersecting } of records) {
|
|
6788
6830
|
if (!elements.has(el)) {
|
|
6789
6831
|
elements.set(el, {
|
|
6790
|
-
cls: data(el, 'uk-scrollspy-class') || this.cls
|
|
6791
|
-
|
|
6832
|
+
cls: data(el, 'uk-scrollspy-class') || this.cls
|
|
6833
|
+
});
|
|
6792
6834
|
}
|
|
6793
6835
|
|
|
6794
6836
|
const state = elements.get(el);
|
|
@@ -6803,9 +6845,9 @@
|
|
|
6803
6845
|
},
|
|
6804
6846
|
{
|
|
6805
6847
|
rootMargin: toPx(this.offsetTop, 'height') - 1 + "px " + (
|
|
6806
|
-
toPx(this.offsetLeft, 'width') - 1) + "px"
|
|
6807
|
-
|
|
6848
|
+
toPx(this.offsetLeft, 'width') - 1) + "px"
|
|
6808
6849
|
|
|
6850
|
+
},
|
|
6809
6851
|
false));
|
|
6810
6852
|
|
|
6811
6853
|
|
|
@@ -6837,8 +6879,8 @@
|
|
|
6837
6879
|
this.toggle(el, false);
|
|
6838
6880
|
}
|
|
6839
6881
|
}
|
|
6840
|
-
}
|
|
6841
|
-
|
|
6882
|
+
}
|
|
6883
|
+
}],
|
|
6842
6884
|
|
|
6843
6885
|
|
|
6844
6886
|
methods: {
|
|
@@ -6871,7 +6913,9 @@
|
|
|
6871
6913
|
|
|
6872
6914
|
// change to `visibility: hidden` does not trigger observers
|
|
6873
6915
|
this.$update(el);
|
|
6874
|
-
}
|
|
6916
|
+
}
|
|
6917
|
+
}
|
|
6918
|
+
};
|
|
6875
6919
|
|
|
6876
6920
|
var scrollspyNav = {
|
|
6877
6921
|
mixins: [Scroll],
|
|
@@ -6881,16 +6925,16 @@
|
|
|
6881
6925
|
closest: String,
|
|
6882
6926
|
scroll: Boolean,
|
|
6883
6927
|
overflow: Boolean,
|
|
6884
|
-
offset: Number
|
|
6885
|
-
|
|
6928
|
+
offset: Number
|
|
6929
|
+
},
|
|
6886
6930
|
|
|
6887
6931
|
data: {
|
|
6888
6932
|
cls: 'uk-active',
|
|
6889
6933
|
closest: false,
|
|
6890
6934
|
scroll: false,
|
|
6891
6935
|
overflow: true,
|
|
6892
|
-
offset: 0
|
|
6893
|
-
|
|
6936
|
+
offset: 0
|
|
6937
|
+
},
|
|
6894
6938
|
|
|
6895
6939
|
computed: {
|
|
6896
6940
|
links: {
|
|
@@ -6904,13 +6948,13 @@
|
|
|
6904
6948
|
}
|
|
6905
6949
|
},
|
|
6906
6950
|
|
|
6907
|
-
immediate: true
|
|
6908
|
-
|
|
6951
|
+
immediate: true
|
|
6952
|
+
},
|
|
6909
6953
|
|
|
6910
6954
|
elements(_ref) {let { closest: selector } = _ref;
|
|
6911
6955
|
return closest(this.links, selector || '*');
|
|
6912
|
-
}
|
|
6913
|
-
|
|
6956
|
+
}
|
|
6957
|
+
},
|
|
6914
6958
|
|
|
6915
6959
|
update: [
|
|
6916
6960
|
{
|
|
@@ -6960,7 +7004,10 @@
|
|
|
6960
7004
|
}
|
|
6961
7005
|
},
|
|
6962
7006
|
|
|
6963
|
-
events: ['scroll', 'resize']
|
|
7007
|
+
events: ['scroll', 'resize']
|
|
7008
|
+
}]
|
|
7009
|
+
|
|
7010
|
+
};
|
|
6964
7011
|
|
|
6965
7012
|
var sticky = {
|
|
6966
7013
|
mixins: [Class, Media, Resize, Scroll],
|
|
@@ -6980,8 +7027,8 @@
|
|
|
6980
7027
|
clsBelow: String,
|
|
6981
7028
|
selTarget: String,
|
|
6982
7029
|
showOnUp: Boolean,
|
|
6983
|
-
targetOffset: Number
|
|
6984
|
-
|
|
7030
|
+
targetOffset: Number
|
|
7031
|
+
},
|
|
6985
7032
|
|
|
6986
7033
|
data: {
|
|
6987
7034
|
position: 'top',
|
|
@@ -6998,14 +7045,14 @@
|
|
|
6998
7045
|
clsBelow: 'uk-sticky-below',
|
|
6999
7046
|
selTarget: '',
|
|
7000
7047
|
showOnUp: false,
|
|
7001
|
-
targetOffset: false
|
|
7002
|
-
|
|
7048
|
+
targetOffset: false
|
|
7049
|
+
},
|
|
7003
7050
|
|
|
7004
7051
|
computed: {
|
|
7005
7052
|
selTarget(_ref, $el) {let { selTarget } = _ref;
|
|
7006
7053
|
return selTarget && $(selTarget, $el) || $el;
|
|
7007
|
-
}
|
|
7008
|
-
|
|
7054
|
+
}
|
|
7055
|
+
},
|
|
7009
7056
|
|
|
7010
7057
|
resizeTargets() {
|
|
7011
7058
|
return document.documentElement;
|
|
@@ -7042,8 +7089,8 @@
|
|
|
7042
7089
|
|
|
7043
7090
|
handler() {
|
|
7044
7091
|
this.$emit('resize');
|
|
7045
|
-
}
|
|
7046
|
-
|
|
7092
|
+
}
|
|
7093
|
+
},
|
|
7047
7094
|
{
|
|
7048
7095
|
name: 'load hashchange popstate',
|
|
7049
7096
|
|
|
@@ -7074,13 +7121,13 @@
|
|
|
7074
7121
|
toPx(this.offset, 'height', this.placeholder);
|
|
7075
7122
|
}
|
|
7076
7123
|
});
|
|
7077
|
-
}
|
|
7078
|
-
|
|
7124
|
+
}
|
|
7125
|
+
}],
|
|
7079
7126
|
|
|
7080
7127
|
|
|
7081
7128
|
update: [
|
|
7082
7129
|
{
|
|
7083
|
-
read(_ref2, types) {let { height: height$1, margin } = _ref2;
|
|
7130
|
+
read(_ref2, types) {let { height: height$1, width, margin } = _ref2;
|
|
7084
7131
|
this.inactive = !this.matchMedia || !isVisible(this.$el);
|
|
7085
7132
|
|
|
7086
7133
|
if (this.inactive) {
|
|
@@ -7094,7 +7141,7 @@
|
|
|
7094
7141
|
}
|
|
7095
7142
|
|
|
7096
7143
|
if (!this.active) {
|
|
7097
|
-
height$1 = offset(this.$el)
|
|
7144
|
+
({ height: height$1, width } = offset(this.$el));
|
|
7098
7145
|
margin = css(this.$el, 'margin');
|
|
7099
7146
|
}
|
|
7100
7147
|
|
|
@@ -7103,7 +7150,6 @@
|
|
|
7103
7150
|
requestAnimationFrame(() => css(this.selTarget, 'transition', ''));
|
|
7104
7151
|
}
|
|
7105
7152
|
|
|
7106
|
-
const referenceElement = this.isFixed ? this.placeholder : this.$el;
|
|
7107
7153
|
const windowHeight = height(window);
|
|
7108
7154
|
|
|
7109
7155
|
let position = this.position;
|
|
@@ -7111,6 +7157,7 @@
|
|
|
7111
7157
|
position = position === 'top' ? 'bottom' : 'top';
|
|
7112
7158
|
}
|
|
7113
7159
|
|
|
7160
|
+
const referenceElement = this.isFixed ? this.placeholder : this.$el;
|
|
7114
7161
|
let offset$1 = toPx(this.offset, 'height', referenceElement);
|
|
7115
7162
|
if (position === 'bottom' && (height$1 < windowHeight || this.overflowFlip)) {
|
|
7116
7163
|
offset$1 += windowHeight - height$1;
|
|
@@ -7140,16 +7187,16 @@
|
|
|
7140
7187
|
overflow,
|
|
7141
7188
|
topOffset,
|
|
7142
7189
|
height: height$1,
|
|
7190
|
+
width,
|
|
7143
7191
|
margin,
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7192
|
+
top: offsetPosition(referenceElement)[0]
|
|
7193
|
+
};
|
|
7147
7194
|
},
|
|
7148
7195
|
|
|
7149
|
-
write(_ref3) {let { height, margin } = _ref3;
|
|
7196
|
+
write(_ref3) {let { height, width, margin } = _ref3;
|
|
7150
7197
|
const { placeholder } = this;
|
|
7151
7198
|
|
|
7152
|
-
css(placeholder, { height, margin });
|
|
7199
|
+
css(placeholder, { height, width, margin });
|
|
7153
7200
|
|
|
7154
7201
|
if (!within(placeholder, document)) {
|
|
7155
7202
|
after(this.$el, placeholder);
|
|
@@ -7157,8 +7204,8 @@
|
|
|
7157
7204
|
}
|
|
7158
7205
|
},
|
|
7159
7206
|
|
|
7160
|
-
events: ['resize']
|
|
7161
|
-
|
|
7207
|
+
events: ['resize']
|
|
7208
|
+
},
|
|
7162
7209
|
|
|
7163
7210
|
{
|
|
7164
7211
|
read(_ref4)
|
|
@@ -7183,9 +7230,9 @@
|
|
|
7183
7230
|
overflowScroll: clamp(
|
|
7184
7231
|
overflowScroll + clamp(scroll, start, end) - clamp(prevScroll, start, end),
|
|
7185
7232
|
0,
|
|
7186
|
-
overflow)
|
|
7187
|
-
|
|
7233
|
+
overflow)
|
|
7188
7234
|
|
|
7235
|
+
};
|
|
7189
7236
|
},
|
|
7190
7237
|
|
|
7191
7238
|
write(data, types) {
|
|
@@ -7199,8 +7246,8 @@
|
|
|
7199
7246
|
top,
|
|
7200
7247
|
start,
|
|
7201
7248
|
topOffset,
|
|
7202
|
-
height
|
|
7203
|
-
data;
|
|
7249
|
+
height
|
|
7250
|
+
} = data;
|
|
7204
7251
|
|
|
7205
7252
|
if (
|
|
7206
7253
|
scroll < 0 ||
|
|
@@ -7261,8 +7308,8 @@
|
|
|
7261
7308
|
}
|
|
7262
7309
|
},
|
|
7263
7310
|
|
|
7264
|
-
events: ['resize', 'scroll']
|
|
7265
|
-
|
|
7311
|
+
events: ['resize', 'scroll']
|
|
7312
|
+
}],
|
|
7266
7313
|
|
|
7267
7314
|
|
|
7268
7315
|
methods: {
|
|
@@ -7290,8 +7337,8 @@
|
|
|
7290
7337
|
offset,
|
|
7291
7338
|
topOffset,
|
|
7292
7339
|
height,
|
|
7293
|
-
offsetParentTop
|
|
7294
|
-
this._data;
|
|
7340
|
+
offsetParentTop
|
|
7341
|
+
} = this._data;
|
|
7295
7342
|
const active = start !== 0 || scroll > start;
|
|
7296
7343
|
let position = 'fixed';
|
|
7297
7344
|
|
|
@@ -7307,8 +7354,8 @@
|
|
|
7307
7354
|
css(this.$el, {
|
|
7308
7355
|
position,
|
|
7309
7356
|
top: offset + "px",
|
|
7310
|
-
width
|
|
7311
|
-
|
|
7357
|
+
width
|
|
7358
|
+
});
|
|
7312
7359
|
|
|
7313
7360
|
this.setActive(active);
|
|
7314
7361
|
toggleClass(this.$el, this.clsBelow, scroll > topOffset + height);
|
|
@@ -7325,9 +7372,9 @@
|
|
|
7325
7372
|
replaceClass(this.selTarget, this.clsActive, this.clsInactive);
|
|
7326
7373
|
prev !== active && trigger(this.$el, 'inactive');
|
|
7327
7374
|
}
|
|
7328
|
-
}
|
|
7329
|
-
|
|
7330
|
-
|
|
7375
|
+
}
|
|
7376
|
+
}
|
|
7377
|
+
};
|
|
7331
7378
|
|
|
7332
7379
|
function parseProp(value, el, propOffset, padding) {
|
|
7333
7380
|
if (!value) {
|
|
@@ -7365,8 +7412,8 @@
|
|
|
7365
7412
|
connect: String,
|
|
7366
7413
|
toggle: String,
|
|
7367
7414
|
itemNav: String,
|
|
7368
|
-
active: Number
|
|
7369
|
-
|
|
7415
|
+
active: Number
|
|
7416
|
+
},
|
|
7370
7417
|
|
|
7371
7418
|
data: {
|
|
7372
7419
|
connect: '~.uk-switcher',
|
|
@@ -7374,8 +7421,8 @@
|
|
|
7374
7421
|
itemNav: false,
|
|
7375
7422
|
active: 0,
|
|
7376
7423
|
cls: 'uk-active',
|
|
7377
|
-
attrItem: 'uk-switcher-item'
|
|
7378
|
-
|
|
7424
|
+
attrItem: 'uk-switcher-item'
|
|
7425
|
+
},
|
|
7379
7426
|
|
|
7380
7427
|
computed: {
|
|
7381
7428
|
connects: {
|
|
@@ -7390,8 +7437,8 @@
|
|
|
7390
7437
|
},
|
|
7391
7438
|
|
|
7392
7439
|
document: true,
|
|
7393
|
-
immediate: true
|
|
7394
|
-
|
|
7440
|
+
immediate: true
|
|
7441
|
+
},
|
|
7395
7442
|
|
|
7396
7443
|
connectChildren: {
|
|
7397
7444
|
get() {
|
|
@@ -7406,8 +7453,8 @@
|
|
|
7406
7453
|
}
|
|
7407
7454
|
},
|
|
7408
7455
|
|
|
7409
|
-
immediate: true
|
|
7410
|
-
|
|
7456
|
+
immediate: true
|
|
7457
|
+
},
|
|
7411
7458
|
|
|
7412
7459
|
toggles: {
|
|
7413
7460
|
get(_ref2, $el) {let { toggle } = _ref2;
|
|
@@ -7421,8 +7468,8 @@
|
|
|
7421
7468
|
this.show(~active ? active : toggles[this.active] || toggles[0]);
|
|
7422
7469
|
},
|
|
7423
7470
|
|
|
7424
|
-
immediate: true
|
|
7425
|
-
|
|
7471
|
+
immediate: true
|
|
7472
|
+
},
|
|
7426
7473
|
|
|
7427
7474
|
children() {
|
|
7428
7475
|
return children(this.$el).filter((child) =>
|
|
@@ -7432,8 +7479,8 @@
|
|
|
7432
7479
|
|
|
7433
7480
|
swipeTarget() {
|
|
7434
7481
|
return this.connects;
|
|
7435
|
-
}
|
|
7436
|
-
|
|
7482
|
+
}
|
|
7483
|
+
},
|
|
7437
7484
|
|
|
7438
7485
|
events: [
|
|
7439
7486
|
{
|
|
@@ -7446,8 +7493,8 @@
|
|
|
7446
7493
|
handler(e) {
|
|
7447
7494
|
e.preventDefault();
|
|
7448
7495
|
this.show(e.current);
|
|
7449
|
-
}
|
|
7450
|
-
|
|
7496
|
+
}
|
|
7497
|
+
},
|
|
7451
7498
|
|
|
7452
7499
|
{
|
|
7453
7500
|
name: 'click',
|
|
@@ -7463,8 +7510,8 @@
|
|
|
7463
7510
|
handler(e) {
|
|
7464
7511
|
e.preventDefault();
|
|
7465
7512
|
this.show(data(e.current, this.attrItem));
|
|
7466
|
-
}
|
|
7467
|
-
|
|
7513
|
+
}
|
|
7514
|
+
},
|
|
7468
7515
|
|
|
7469
7516
|
{
|
|
7470
7517
|
name: 'swipeRight swipeLeft',
|
|
@@ -7479,8 +7526,8 @@
|
|
|
7479
7526
|
|
|
7480
7527
|
handler(_ref3) {let { type } = _ref3;
|
|
7481
7528
|
this.show(endsWith(type, 'Left') ? 'next' : 'previous');
|
|
7482
|
-
}
|
|
7483
|
-
|
|
7529
|
+
}
|
|
7530
|
+
}],
|
|
7484
7531
|
|
|
7485
7532
|
|
|
7486
7533
|
methods: {
|
|
@@ -7506,7 +7553,9 @@
|
|
|
7506
7553
|
|
|
7507
7554
|
await this.toggleElement(children[active], true, animate);
|
|
7508
7555
|
});
|
|
7509
|
-
}
|
|
7556
|
+
}
|
|
7557
|
+
}
|
|
7558
|
+
};
|
|
7510
7559
|
|
|
7511
7560
|
var tab = {
|
|
7512
7561
|
mixins: [Class],
|
|
@@ -7514,13 +7563,13 @@
|
|
|
7514
7563
|
extends: Switcher,
|
|
7515
7564
|
|
|
7516
7565
|
props: {
|
|
7517
|
-
media: Boolean
|
|
7518
|
-
|
|
7566
|
+
media: Boolean
|
|
7567
|
+
},
|
|
7519
7568
|
|
|
7520
7569
|
data: {
|
|
7521
7570
|
media: 960,
|
|
7522
|
-
attrItem: 'uk-tab-item'
|
|
7523
|
-
|
|
7571
|
+
attrItem: 'uk-tab-item'
|
|
7572
|
+
},
|
|
7524
7573
|
|
|
7525
7574
|
connected() {
|
|
7526
7575
|
const cls = hasClass(this.$el, 'uk-tab-left') ?
|
|
@@ -7532,7 +7581,8 @@
|
|
|
7532
7581
|
if (cls) {
|
|
7533
7582
|
this.$create('toggle', this.$el, { cls, mode: 'media', media: this.media });
|
|
7534
7583
|
}
|
|
7535
|
-
}
|
|
7584
|
+
}
|
|
7585
|
+
};
|
|
7536
7586
|
|
|
7537
7587
|
const KEY_SPACE = 32;
|
|
7538
7588
|
|
|
@@ -7545,15 +7595,15 @@
|
|
|
7545
7595
|
href: String,
|
|
7546
7596
|
target: null,
|
|
7547
7597
|
mode: 'list',
|
|
7548
|
-
queued: Boolean
|
|
7549
|
-
|
|
7598
|
+
queued: Boolean
|
|
7599
|
+
},
|
|
7550
7600
|
|
|
7551
7601
|
data: {
|
|
7552
7602
|
href: false,
|
|
7553
7603
|
target: false,
|
|
7554
7604
|
mode: 'click',
|
|
7555
|
-
queued: true
|
|
7556
|
-
|
|
7605
|
+
queued: true
|
|
7606
|
+
},
|
|
7557
7607
|
|
|
7558
7608
|
computed: {
|
|
7559
7609
|
target: {
|
|
@@ -7568,9 +7618,9 @@
|
|
|
7568
7618
|
},
|
|
7569
7619
|
|
|
7570
7620
|
document: true,
|
|
7571
|
-
immediate: true
|
|
7572
|
-
|
|
7573
|
-
|
|
7621
|
+
immediate: true
|
|
7622
|
+
}
|
|
7623
|
+
},
|
|
7574
7624
|
|
|
7575
7625
|
connected() {
|
|
7576
7626
|
if (!includes(this.mode, 'media') && !isFocusable(this.$el)) {
|
|
@@ -7608,8 +7658,8 @@
|
|
|
7608
7658
|
if (includes(this.mode, 'click')) {
|
|
7609
7659
|
this._preventClick = true;
|
|
7610
7660
|
}
|
|
7611
|
-
}
|
|
7612
|
-
|
|
7661
|
+
}
|
|
7662
|
+
},
|
|
7613
7663
|
|
|
7614
7664
|
{
|
|
7615
7665
|
name: pointerEnter + " " + pointerLeave + " focus blur",
|
|
@@ -7647,8 +7697,8 @@
|
|
|
7647
7697
|
this._showState = show ? expanded : null;
|
|
7648
7698
|
|
|
7649
7699
|
this.toggle("toggle" + (show ? 'show' : 'hide'));
|
|
7650
|
-
}
|
|
7651
|
-
|
|
7700
|
+
}
|
|
7701
|
+
},
|
|
7652
7702
|
|
|
7653
7703
|
{
|
|
7654
7704
|
name: 'keydown',
|
|
@@ -7662,8 +7712,8 @@
|
|
|
7662
7712
|
e.preventDefault();
|
|
7663
7713
|
this.$el.click();
|
|
7664
7714
|
}
|
|
7665
|
-
}
|
|
7666
|
-
|
|
7715
|
+
}
|
|
7716
|
+
},
|
|
7667
7717
|
|
|
7668
7718
|
{
|
|
7669
7719
|
name: 'click',
|
|
@@ -7687,8 +7737,8 @@
|
|
|
7687
7737
|
if (!this._preventClick && includes(this.mode, 'click')) {
|
|
7688
7738
|
this.toggle();
|
|
7689
7739
|
}
|
|
7690
|
-
}
|
|
7691
|
-
|
|
7740
|
+
}
|
|
7741
|
+
},
|
|
7692
7742
|
|
|
7693
7743
|
{
|
|
7694
7744
|
name: 'hide show',
|
|
@@ -7701,8 +7751,8 @@
|
|
|
7701
7751
|
|
|
7702
7752
|
handler(_ref2) {let { target, type } = _ref2;
|
|
7703
7753
|
this.updateAria(target === this.target[0] && type === 'show');
|
|
7704
|
-
}
|
|
7705
|
-
|
|
7754
|
+
}
|
|
7755
|
+
},
|
|
7706
7756
|
|
|
7707
7757
|
{
|
|
7708
7758
|
name: 'mediachange',
|
|
@@ -7719,8 +7769,8 @@
|
|
|
7719
7769
|
if (mediaObj.matches ^ this.isToggled(this.target)) {
|
|
7720
7770
|
this.toggle();
|
|
7721
7771
|
}
|
|
7722
|
-
}
|
|
7723
|
-
|
|
7772
|
+
}
|
|
7773
|
+
}],
|
|
7724
7774
|
|
|
7725
7775
|
|
|
7726
7776
|
methods: {
|
|
@@ -7761,7 +7811,9 @@
|
|
|
7761
7811
|
'aria-expanded',
|
|
7762
7812
|
isBoolean(toggled) ? toggled : this.isToggled(this.target));
|
|
7763
7813
|
|
|
7764
|
-
}
|
|
7814
|
+
}
|
|
7815
|
+
}
|
|
7816
|
+
};
|
|
7765
7817
|
|
|
7766
7818
|
var components = /*#__PURE__*/Object.freeze({
|
|
7767
7819
|
__proto__: null,
|