uikit 3.15.18-dev.9cbbb510d → 3.15.19-dev.699ab5a7f
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 +12 -0
- package/build/util.js +4 -4
- package/dist/css/uikit-core-rtl.css +5 -2
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +5 -2
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +5 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +5 -2
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +2 -2
- package/dist/js/components/countdown.min.js +2 -1
- package/dist/js/components/filter.js +22 -30
- package/dist/js/components/filter.min.js +2 -1
- package/dist/js/components/lightbox-panel.js +75 -96
- package/dist/js/components/lightbox-panel.min.js +2 -1
- package/dist/js/components/lightbox.js +78 -99
- package/dist/js/components/lightbox.min.js +2 -1
- package/dist/js/components/notification.js +11 -14
- package/dist/js/components/notification.min.js +2 -1
- package/dist/js/components/parallax.js +24 -26
- package/dist/js/components/parallax.min.js +2 -1
- package/dist/js/components/slider-parallax.js +19 -20
- package/dist/js/components/slider-parallax.min.js +2 -1
- package/dist/js/components/slider.js +95 -51
- package/dist/js/components/slider.min.js +2 -1
- package/dist/js/components/slideshow-parallax.js +19 -20
- package/dist/js/components/slideshow-parallax.min.js +2 -1
- package/dist/js/components/slideshow.js +35 -42
- package/dist/js/components/slideshow.min.js +2 -1
- package/dist/js/components/sortable.js +12 -18
- package/dist/js/components/sortable.min.js +2 -1
- package/dist/js/components/tooltip.js +25 -30
- package/dist/js/components/tooltip.min.js +2 -1
- package/dist/js/components/upload.js +7 -7
- package/dist/js/components/upload.min.js +2 -1
- package/dist/js/uikit-core.js +277 -330
- package/dist/js/uikit-core.min.js +2 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +2 -1
- package/dist/js/uikit.js +470 -503
- package/dist/js/uikit.min.js +2 -1
- package/package.json +2 -2
- package/src/js/components/lightbox-panel.js +3 -5
- package/src/js/components/slider.js +62 -7
- package/src/js/core/accordion.js +5 -4
- package/src/js/core/sticky.js +6 -7
- package/src/js/mixin/slider-drag.js +1 -1
- package/src/js/mixin/slider.js +2 -7
- package/src/js/util/attr.js +1 -6
- package/src/less/components/sticky.less +4 -1
- package/src/scss/components/sticky.scss +4 -1
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.15.
|
|
1
|
+
/*! UIkit 3.15.19-dev.699ab5a7f | 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() :
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
function swap(value, a, b) {
|
|
155
|
-
return value.replace(new RegExp(a
|
|
155
|
+
return value.replace(new RegExp(`${a}|${b}`, 'g'), (match) => match === a ? b : a);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
function last(array) {
|
|
@@ -171,8 +171,7 @@
|
|
|
171
171
|
function sortBy$1(array, prop) {
|
|
172
172
|
return array.
|
|
173
173
|
slice().
|
|
174
|
-
sort((
|
|
175
|
-
propA > propB ? 1 : propB > propA ? -1 : 0);});
|
|
174
|
+
sort(({ [prop]: propA = 0 }, { [prop]: propB = 0 }) => propA > propB ? 1 : propB > propA ? -1 : 0);
|
|
176
175
|
|
|
177
176
|
}
|
|
178
177
|
|
|
@@ -185,24 +184,22 @@
|
|
|
185
184
|
|
|
186
185
|
function uniqueBy(array, prop) {
|
|
187
186
|
const seen = new Set();
|
|
188
|
-
return array.filter((
|
|
187
|
+
return array.filter(({ [prop]: check }) => seen.has(check) ? false : seen.add(check));
|
|
189
188
|
}
|
|
190
189
|
|
|
191
|
-
function clamp(number, min
|
|
190
|
+
function clamp(number, min = 0, max = 1) {
|
|
192
191
|
return Math.min(Math.max(toNumber(number) || 0, min), max);
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
function noop() {}
|
|
196
195
|
|
|
197
|
-
function intersectRect(
|
|
196
|
+
function intersectRect(...rects) {
|
|
198
197
|
return [
|
|
199
198
|
['bottom', 'top'],
|
|
200
199
|
['right', 'left']].
|
|
201
200
|
every(
|
|
202
|
-
(
|
|
203
|
-
|
|
204
|
-
Math.max(...rects.map((_ref6) => {let { [maxProp]: max } = _ref6;return max;})) >
|
|
205
|
-
0);});
|
|
201
|
+
([minProp, maxProp]) => Math.min(...rects.map(({ [minProp]: min }) => min)) -
|
|
202
|
+
Math.max(...rects.map(({ [maxProp]: max }) => max)) > 0);
|
|
206
203
|
|
|
207
204
|
}
|
|
208
205
|
|
|
@@ -254,7 +251,7 @@
|
|
|
254
251
|
|
|
255
252
|
const Dimensions = { ratio, contain, cover: cover$1 };
|
|
256
253
|
|
|
257
|
-
function getIndex(i, elements, current
|
|
254
|
+
function getIndex(i, elements, current = 0, finite = false) {
|
|
258
255
|
elements = toNodes(elements);
|
|
259
256
|
|
|
260
257
|
const { length } = elements;
|
|
@@ -324,16 +321,11 @@
|
|
|
324
321
|
}
|
|
325
322
|
|
|
326
323
|
function removeAttr(element, name) {
|
|
327
|
-
|
|
328
|
-
for (const attribute of name.split(' ')) {
|
|
329
|
-
for (const element of elements) {
|
|
330
|
-
element.removeAttribute(attribute);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
324
|
+
toNodes(element).forEach((element) => element.removeAttribute(name));
|
|
333
325
|
}
|
|
334
326
|
|
|
335
327
|
function data(element, attribute) {
|
|
336
|
-
for (const name of [attribute,
|
|
328
|
+
for (const name of [attribute, `data-${attribute}`]) {
|
|
337
329
|
if (hasAttr(element, name)) {
|
|
338
330
|
return attr(element, name);
|
|
339
331
|
}
|
|
@@ -372,7 +364,7 @@
|
|
|
372
364
|
return toNodes(element).some((element) => matches(element, selInput));
|
|
373
365
|
}
|
|
374
366
|
|
|
375
|
-
const selFocusable = selInput
|
|
367
|
+
const selFocusable = `${selInput},a[href],[tabindex]`;
|
|
376
368
|
function isFocusable(element) {
|
|
377
369
|
return matches(element, selFocusable);
|
|
378
370
|
}
|
|
@@ -444,7 +436,7 @@
|
|
|
444
436
|
const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
|
|
445
437
|
const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
|
|
446
438
|
|
|
447
|
-
function getContext(selector, context
|
|
439
|
+
function getContext(selector, context = document) {
|
|
448
440
|
return isString(selector) && isContextSelector(selector) || isDocument(context) ?
|
|
449
441
|
context :
|
|
450
442
|
context.ownerDocument;
|
|
@@ -453,7 +445,7 @@
|
|
|
453
445
|
const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
|
|
454
446
|
const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, '$1 *'));
|
|
455
447
|
|
|
456
|
-
function _query(selector, context, queryFn) {
|
|
448
|
+
function _query(selector, context = document, queryFn) {
|
|
457
449
|
if (!selector || !isString(selector)) {
|
|
458
450
|
return selector;
|
|
459
451
|
}
|
|
@@ -483,7 +475,7 @@
|
|
|
483
475
|
}
|
|
484
476
|
|
|
485
477
|
if (ctx) {
|
|
486
|
-
selector +=
|
|
478
|
+
selector += `${selector ? ',' : ''}${domPath(ctx)} ${sel}`;
|
|
487
479
|
}
|
|
488
480
|
}
|
|
489
481
|
|
|
@@ -508,12 +500,12 @@
|
|
|
508
500
|
while (element.parentNode) {
|
|
509
501
|
const id = attr(element, 'id');
|
|
510
502
|
if (id) {
|
|
511
|
-
names.unshift(
|
|
503
|
+
names.unshift(`#${escape(id)}`);
|
|
512
504
|
break;
|
|
513
505
|
} else {
|
|
514
506
|
let { tagName } = element;
|
|
515
507
|
if (tagName !== 'HTML') {
|
|
516
|
-
tagName +=
|
|
508
|
+
tagName += `:nth-child(${index(element) + 1})`;
|
|
517
509
|
}
|
|
518
510
|
names.unshift(tagName);
|
|
519
511
|
element = element.parentNode;
|
|
@@ -526,7 +518,7 @@
|
|
|
526
518
|
return isString(css) ? CSS.escape(css) : '';
|
|
527
519
|
}
|
|
528
520
|
|
|
529
|
-
function on(
|
|
521
|
+
function on(...args) {
|
|
530
522
|
let [targets, types, selector, listener, useCapture = false] = getArgs(args);
|
|
531
523
|
|
|
532
524
|
if (listener.length > 1) {
|
|
@@ -550,7 +542,7 @@
|
|
|
550
542
|
return () => off(targets, types, listener, useCapture);
|
|
551
543
|
}
|
|
552
544
|
|
|
553
|
-
function off(
|
|
545
|
+
function off(...args) {
|
|
554
546
|
let [targets, types,, listener, useCapture = false] = getArgs(args);
|
|
555
547
|
for (const type of types) {
|
|
556
548
|
for (const target of targets) {
|
|
@@ -559,7 +551,7 @@
|
|
|
559
551
|
}
|
|
560
552
|
}
|
|
561
553
|
|
|
562
|
-
function once(
|
|
554
|
+
function once(...args) {
|
|
563
555
|
const [element, types, selector, listener, useCapture = false, condition] = getArgs(args);
|
|
564
556
|
const off = on(
|
|
565
557
|
element,
|
|
@@ -579,12 +571,11 @@
|
|
|
579
571
|
}
|
|
580
572
|
|
|
581
573
|
function trigger(targets, event, detail) {
|
|
582
|
-
return toEventTargets(targets).every((target) =>
|
|
583
|
-
target.dispatchEvent(createEvent(event, true, true, detail)));
|
|
574
|
+
return toEventTargets(targets).every((target) => target.dispatchEvent(createEvent(event, true, true, detail)));
|
|
584
575
|
|
|
585
576
|
}
|
|
586
577
|
|
|
587
|
-
function createEvent(e, bubbles
|
|
578
|
+
function createEvent(e, bubbles = true, cancelable = false, detail) {
|
|
588
579
|
if (isString(e)) {
|
|
589
580
|
e = new CustomEvent(e, { bubbles, cancelable, detail });
|
|
590
581
|
}
|
|
@@ -755,7 +746,7 @@
|
|
|
755
746
|
zoom: true
|
|
756
747
|
};
|
|
757
748
|
|
|
758
|
-
function css(element, property, value, priority
|
|
749
|
+
function css(element, property, value, priority = '') {
|
|
759
750
|
const elements = toNodes(element);
|
|
760
751
|
for (const element of elements) {
|
|
761
752
|
if (isString(property)) {
|
|
@@ -767,7 +758,7 @@
|
|
|
767
758
|
element.style.setProperty(
|
|
768
759
|
property,
|
|
769
760
|
isNumeric(value) && !cssNumber[property] ?
|
|
770
|
-
value
|
|
761
|
+
`${value}px` :
|
|
771
762
|
value || isNumber(value) ?
|
|
772
763
|
value :
|
|
773
764
|
'',
|
|
@@ -805,30 +796,29 @@
|
|
|
805
796
|
}
|
|
806
797
|
|
|
807
798
|
for (const prefix of ['webkit', 'moz']) {
|
|
808
|
-
const prefixedName =
|
|
799
|
+
const prefixedName = `-${prefix}-${name}`;
|
|
809
800
|
if (prefixedName in style) {
|
|
810
801
|
return prefixedName;
|
|
811
802
|
}
|
|
812
803
|
}
|
|
813
804
|
}
|
|
814
805
|
|
|
815
|
-
function addClass(element
|
|
806
|
+
function addClass(element, ...args) {
|
|
816
807
|
apply$1(element, args, 'add');
|
|
817
808
|
}
|
|
818
809
|
|
|
819
|
-
function removeClass(element
|
|
810
|
+
function removeClass(element, ...args) {
|
|
820
811
|
apply$1(element, args, 'remove');
|
|
821
812
|
}
|
|
822
813
|
|
|
823
814
|
function removeClasses(element, cls) {
|
|
824
|
-
attr(element, 'class', (value) =>
|
|
825
|
-
(value || '').replace(new RegExp("\\b" + cls + "\\b\\s?", 'g'), ''));
|
|
815
|
+
attr(element, 'class', (value) => (value || '').replace(new RegExp(`\\b${cls}\\b\\s?`, 'g'), ''));
|
|
826
816
|
|
|
827
817
|
}
|
|
828
818
|
|
|
829
|
-
function replaceClass(element) {
|
|
830
|
-
|
|
831
|
-
|
|
819
|
+
function replaceClass(element, ...args) {
|
|
820
|
+
args[0] && removeClass(element, args[0]);
|
|
821
|
+
args[1] && addClass(element, args[1]);
|
|
832
822
|
}
|
|
833
823
|
|
|
834
824
|
function hasClass(element, cls) {
|
|
@@ -862,12 +852,11 @@
|
|
|
862
852
|
return String(str).split(/\s|,/).filter(Boolean);
|
|
863
853
|
}
|
|
864
854
|
|
|
865
|
-
function transition$1(element, props, duration
|
|
855
|
+
function transition$1(element, props, duration = 400, timing = 'linear') {
|
|
866
856
|
duration = Math.round(duration);
|
|
867
857
|
return Promise.all(
|
|
868
858
|
toNodes(element).map(
|
|
869
|
-
(element) =>
|
|
870
|
-
new Promise((resolve, reject) => {
|
|
859
|
+
(element) => new Promise((resolve, reject) => {
|
|
871
860
|
for (const name in props) {
|
|
872
861
|
const value = css(element, name);
|
|
873
862
|
if (value === '') {
|
|
@@ -880,7 +869,7 @@
|
|
|
880
869
|
once(
|
|
881
870
|
element,
|
|
882
871
|
'transitionend transitioncanceled',
|
|
883
|
-
(
|
|
872
|
+
({ type }) => {
|
|
884
873
|
clearTimeout(timer);
|
|
885
874
|
removeClass(element, 'uk-transition');
|
|
886
875
|
css(element, {
|
|
@@ -896,7 +885,7 @@
|
|
|
896
885
|
addClass(element, 'uk-transition');
|
|
897
886
|
css(element, {
|
|
898
887
|
transitionProperty: Object.keys(props).map(propName).join(','),
|
|
899
|
-
transitionDuration: duration
|
|
888
|
+
transitionDuration: `${duration}ms`,
|
|
900
889
|
transitionTimingFunction: timing,
|
|
901
890
|
...props
|
|
902
891
|
});
|
|
@@ -925,41 +914,40 @@
|
|
|
925
914
|
|
|
926
915
|
const animationPrefix = 'uk-animation-';
|
|
927
916
|
|
|
928
|
-
function animate$2(element, animation, duration, origin, out) {
|
|
917
|
+
function animate$2(element, animation, duration = 200, origin, out) {
|
|
929
918
|
return Promise.all(
|
|
930
919
|
toNodes(element).map(
|
|
931
|
-
(element) =>
|
|
932
|
-
new Promise((resolve, reject) => {
|
|
920
|
+
(element) => new Promise((resolve, reject) => {
|
|
933
921
|
trigger(element, 'animationcanceled');
|
|
934
922
|
const timer = setTimeout(() => trigger(element, 'animationend'), duration);
|
|
935
923
|
|
|
936
924
|
once(
|
|
937
925
|
element,
|
|
938
926
|
'animationend animationcanceled',
|
|
939
|
-
(
|
|
927
|
+
({ type }) => {
|
|
940
928
|
clearTimeout(timer);
|
|
941
929
|
|
|
942
930
|
type === 'animationcanceled' ? reject() : resolve(element);
|
|
943
931
|
|
|
944
932
|
css(element, 'animationDuration', '');
|
|
945
|
-
removeClasses(element, animationPrefix
|
|
933
|
+
removeClasses(element, `${animationPrefix}\\S*`);
|
|
946
934
|
},
|
|
947
935
|
{ self: true });
|
|
948
936
|
|
|
949
937
|
|
|
950
|
-
css(element, 'animationDuration', duration
|
|
938
|
+
css(element, 'animationDuration', `${duration}ms`);
|
|
951
939
|
addClass(element, animation, animationPrefix + (out ? 'leave' : 'enter'));
|
|
952
940
|
|
|
953
941
|
if (startsWith(animation, animationPrefix)) {
|
|
954
|
-
origin && addClass(element,
|
|
955
|
-
out && addClass(element, animationPrefix
|
|
942
|
+
origin && addClass(element, `uk-transform-origin-${origin}`);
|
|
943
|
+
out && addClass(element, `${animationPrefix}reverse`);
|
|
956
944
|
}
|
|
957
945
|
})));
|
|
958
946
|
|
|
959
947
|
|
|
960
948
|
}
|
|
961
949
|
|
|
962
|
-
const inProgressRe = new RegExp(animationPrefix
|
|
950
|
+
const inProgressRe = new RegExp(`${animationPrefix}(enter|leave)`);
|
|
963
951
|
|
|
964
952
|
const Animation = {
|
|
965
953
|
in: animate$2,
|
|
@@ -1031,8 +1019,7 @@
|
|
|
1031
1019
|
|
|
1032
1020
|
function wrapInner(element, structure) {
|
|
1033
1021
|
return toNodes(
|
|
1034
|
-
toNodes(element).map((element) =>
|
|
1035
|
-
element.hasChildNodes() ?
|
|
1022
|
+
toNodes(element).map((element) => element.hasChildNodes() ?
|
|
1036
1023
|
wrapAll(toNodes(element.childNodes), structure) :
|
|
1037
1024
|
append(element, structure)));
|
|
1038
1025
|
|
|
@@ -1135,8 +1122,7 @@
|
|
|
1135
1122
|
|
|
1136
1123
|
const pos = css(element, 'position');
|
|
1137
1124
|
|
|
1138
|
-
each(css(element, ['left', 'top']), (value, prop) =>
|
|
1139
|
-
css(
|
|
1125
|
+
each(css(element, ['left', 'top']), (value, prop) => css(
|
|
1140
1126
|
element,
|
|
1141
1127
|
prop,
|
|
1142
1128
|
coordinates[prop] -
|
|
@@ -1181,8 +1167,8 @@
|
|
|
1181
1167
|
const offset = [element.offsetTop, element.offsetLeft];
|
|
1182
1168
|
|
|
1183
1169
|
while (element = element.offsetParent) {
|
|
1184
|
-
offset[0] += element.offsetTop + toFloat(css(element,
|
|
1185
|
-
offset[1] += element.offsetLeft + toFloat(css(element,
|
|
1170
|
+
offset[0] += element.offsetTop + toFloat(css(element, `borderTopWidth`));
|
|
1171
|
+
offset[1] += element.offsetLeft + toFloat(css(element, `borderLeftWidth`));
|
|
1186
1172
|
|
|
1187
1173
|
if (css(element, 'position') === 'fixed') {
|
|
1188
1174
|
const win = toWindow(element);
|
|
@@ -1203,18 +1189,18 @@
|
|
|
1203
1189
|
return (element, value) => {
|
|
1204
1190
|
if (isUndefined(value)) {
|
|
1205
1191
|
if (isWindow(element)) {
|
|
1206
|
-
return element[
|
|
1192
|
+
return element[`inner${propName}`];
|
|
1207
1193
|
}
|
|
1208
1194
|
|
|
1209
1195
|
if (isDocument(element)) {
|
|
1210
1196
|
const doc = element.documentElement;
|
|
1211
|
-
return Math.max(doc[
|
|
1197
|
+
return Math.max(doc[`offset${propName}`], doc[`scroll${propName}`]);
|
|
1212
1198
|
}
|
|
1213
1199
|
|
|
1214
1200
|
element = toNode(element);
|
|
1215
1201
|
|
|
1216
1202
|
value = css(element, prop);
|
|
1217
|
-
value = value === 'auto' ? element[
|
|
1203
|
+
value = value === 'auto' ? element[`offset${propName}`] : toFloat(value) || 0;
|
|
1218
1204
|
|
|
1219
1205
|
return value - boxModelAdjust(element, prop);
|
|
1220
1206
|
} else {
|
|
@@ -1227,13 +1213,12 @@
|
|
|
1227
1213
|
};
|
|
1228
1214
|
}
|
|
1229
1215
|
|
|
1230
|
-
function boxModelAdjust(element, prop, sizing
|
|
1216
|
+
function boxModelAdjust(element, prop, sizing = 'border-box') {
|
|
1231
1217
|
return css(element, 'boxSizing') === sizing ?
|
|
1232
1218
|
sumBy(
|
|
1233
1219
|
dirs$1[prop].map(ucfirst),
|
|
1234
|
-
(prop) =>
|
|
1235
|
-
toFloat(css(element,
|
|
1236
|
-
toFloat(css(element, "border" + prop + "Width"))) :
|
|
1220
|
+
(prop) => toFloat(css(element, `padding${prop}`)) +
|
|
1221
|
+
toFloat(css(element, `border${prop}Width`))) :
|
|
1237
1222
|
|
|
1238
1223
|
0;
|
|
1239
1224
|
}
|
|
@@ -1249,7 +1234,7 @@
|
|
|
1249
1234
|
return pos;
|
|
1250
1235
|
}
|
|
1251
1236
|
|
|
1252
|
-
function toPx(value, property
|
|
1237
|
+
function toPx(value, property = 'width', element = window, offsetDim = false) {
|
|
1253
1238
|
if (!isString(value)) {
|
|
1254
1239
|
return toFloat(value);
|
|
1255
1240
|
}
|
|
@@ -1264,7 +1249,7 @@
|
|
|
1264
1249
|
unit === 'vw' ?
|
|
1265
1250
|
width(toWindow(element)) :
|
|
1266
1251
|
offsetDim ?
|
|
1267
|
-
element[
|
|
1252
|
+
element[`offset${ucfirst(property)}`] :
|
|
1268
1253
|
dimensions(element)[property],
|
|
1269
1254
|
value) :
|
|
1270
1255
|
|
|
@@ -1450,7 +1435,7 @@
|
|
|
1450
1435
|
};
|
|
1451
1436
|
|
|
1452
1437
|
// Inspired by http://paulbourke.net/geometry/pointlineplane/
|
|
1453
|
-
function intersect(
|
|
1438
|
+
function intersect([{ x: x1, y: y1 }, { x: x2, y: y2 }], [{ x: x3, y: y3 }, { x: x4, y: y4 }]) {
|
|
1454
1439
|
const denominator = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);
|
|
1455
1440
|
|
|
1456
1441
|
// Lines are parallel
|
|
@@ -1468,7 +1453,7 @@
|
|
|
1468
1453
|
return { x: x1 + ua * (x2 - x1), y: y1 + ua * (y2 - y1) };
|
|
1469
1454
|
}
|
|
1470
1455
|
|
|
1471
|
-
function observeIntersection(targets, cb, options, intersecting
|
|
1456
|
+
function observeIntersection(targets, cb, options, intersecting = true) {
|
|
1472
1457
|
const observer = new IntersectionObserver(
|
|
1473
1458
|
intersecting ?
|
|
1474
1459
|
(entries, observer) => {
|
|
@@ -1487,7 +1472,7 @@
|
|
|
1487
1472
|
}
|
|
1488
1473
|
|
|
1489
1474
|
const hasResizeObserver = inBrowser && window.ResizeObserver;
|
|
1490
|
-
function observeResize(targets, cb, options
|
|
1475
|
+
function observeResize(targets, cb, options = { box: 'border-box' }) {
|
|
1491
1476
|
if (hasResizeObserver) {
|
|
1492
1477
|
return observe(ResizeObserver, targets, cb, options);
|
|
1493
1478
|
}
|
|
@@ -1661,7 +1646,7 @@
|
|
|
1661
1646
|
return options;
|
|
1662
1647
|
}
|
|
1663
1648
|
|
|
1664
|
-
function parseOptions(options, args
|
|
1649
|
+
function parseOptions(options, args = []) {
|
|
1665
1650
|
try {
|
|
1666
1651
|
return options ?
|
|
1667
1652
|
startsWith(options, '{') ?
|
|
@@ -1771,7 +1756,7 @@
|
|
|
1771
1756
|
listener();
|
|
1772
1757
|
});
|
|
1773
1758
|
|
|
1774
|
-
once(window, 'message', resolve, false, (
|
|
1759
|
+
once(window, 'message', resolve, false, ({ data }) => {
|
|
1775
1760
|
try {
|
|
1776
1761
|
data = JSON.parse(data);
|
|
1777
1762
|
return (
|
|
@@ -1784,13 +1769,13 @@
|
|
|
1784
1769
|
// noop
|
|
1785
1770
|
}});
|
|
1786
1771
|
|
|
1787
|
-
el.src =
|
|
1788
|
-
|
|
1789
|
-
|
|
1772
|
+
el.src = `${el.src}${includes(el.src, '?') ? '&' : '?'}${
|
|
1773
|
+
youtube ? 'enablejsapi=1' : `api=1&player_id=${id}`
|
|
1774
|
+
}`;
|
|
1790
1775
|
}).then(() => clearInterval(poller));
|
|
1791
1776
|
}
|
|
1792
1777
|
|
|
1793
|
-
function isInView(element, offsetTop
|
|
1778
|
+
function isInView(element, offsetTop = 0, offsetLeft = 0) {
|
|
1794
1779
|
if (!isVisible(element)) {
|
|
1795
1780
|
return false;
|
|
1796
1781
|
}
|
|
@@ -1811,7 +1796,7 @@
|
|
|
1811
1796
|
|
|
1812
1797
|
}
|
|
1813
1798
|
|
|
1814
|
-
function scrollIntoView(element,
|
|
1799
|
+
function scrollIntoView(element, { offset: offsetBy = 0 } = {}) {
|
|
1815
1800
|
const parents = isVisible(element) ? scrollParents(element) : [];
|
|
1816
1801
|
return parents.reduce(
|
|
1817
1802
|
(fn, scrollElement, i) => {
|
|
@@ -1873,7 +1858,7 @@
|
|
|
1873
1858
|
}
|
|
1874
1859
|
}
|
|
1875
1860
|
|
|
1876
|
-
function scrolledOver(element, startOffset
|
|
1861
|
+
function scrolledOver(element, startOffset = 0, endOffset = 0) {
|
|
1877
1862
|
if (!isVisible(element)) {
|
|
1878
1863
|
return 0;
|
|
1879
1864
|
}
|
|
@@ -1890,7 +1875,7 @@
|
|
|
1890
1875
|
return clamp((scrollTop - start) / (end - start));
|
|
1891
1876
|
}
|
|
1892
1877
|
|
|
1893
|
-
function scrollParents(element, overflowRe
|
|
1878
|
+
function scrollParents(element, overflowRe = /auto|scroll|hidden|clip/, scrollable = false) {
|
|
1894
1879
|
const scrollEl = scrollingElement(element);
|
|
1895
1880
|
|
|
1896
1881
|
let ancestors = parents(element).reverse();
|
|
@@ -1904,8 +1889,7 @@
|
|
|
1904
1889
|
return [scrollEl].
|
|
1905
1890
|
concat(
|
|
1906
1891
|
ancestors.filter(
|
|
1907
|
-
(parent) =>
|
|
1908
|
-
overflowRe.test(css(parent, 'overflow')) && (
|
|
1892
|
+
(parent) => overflowRe.test(css(parent, 'overflow')) && (
|
|
1909
1893
|
!scrollable || parent.scrollHeight > offsetViewport(parent).height))).
|
|
1910
1894
|
|
|
1911
1895
|
|
|
@@ -1941,9 +1925,9 @@
|
|
|
1941
1925
|
// iOS 12 returns <body> as scrollingElement
|
|
1942
1926
|
viewportElement = documentElement;
|
|
1943
1927
|
} else {
|
|
1944
|
-
rect[start] += toFloat(css(viewportElement,
|
|
1928
|
+
rect[start] += toFloat(css(viewportElement, `border-${start}-width`));
|
|
1945
1929
|
}
|
|
1946
|
-
rect[prop] = rect[dir] = viewportElement[
|
|
1930
|
+
rect[prop] = rect[dir] = viewportElement[`client${ucfirst(prop)}`];
|
|
1947
1931
|
rect[end] = rect[prop] + rect[start];
|
|
1948
1932
|
}
|
|
1949
1933
|
return rect;
|
|
@@ -2106,9 +2090,9 @@
|
|
|
2106
2090
|
const [scrollElement] = commonScrollParents(element, target);
|
|
2107
2091
|
const viewport = offsetViewport(scrollElement);
|
|
2108
2092
|
|
|
2109
|
-
if (['auto', 'scroll'].includes(css(scrollElement,
|
|
2110
|
-
viewport[start] -= scrollElement[
|
|
2111
|
-
viewport[end] = scrollElement[
|
|
2093
|
+
if (['auto', 'scroll'].includes(css(scrollElement, `overflow-${axis}`))) {
|
|
2094
|
+
viewport[start] -= scrollElement[`scroll${ucfirst(start)}`];
|
|
2095
|
+
viewport[end] = scrollElement[`scroll${ucfirst(prop)}`];
|
|
2112
2096
|
}
|
|
2113
2097
|
|
|
2114
2098
|
viewport[start] += viewportOffset;
|
|
@@ -2121,8 +2105,8 @@
|
|
|
2121
2105
|
return scrollParents(target).filter((parent) => within(element, parent));
|
|
2122
2106
|
}
|
|
2123
2107
|
|
|
2124
|
-
function getIntersectionArea() {
|
|
2125
|
-
let area = {};
|
|
2108
|
+
function getIntersectionArea(...rects) {
|
|
2109
|
+
let area = {};
|
|
2126
2110
|
for (const rect of rects) {
|
|
2127
2111
|
for (const [,, start, end] of dirs) {
|
|
2128
2112
|
area[start] = Math.max(area[start] || 0, rect[start]);
|
|
@@ -2137,7 +2121,7 @@
|
|
|
2137
2121
|
return positionA[start] >= positionB[start] && positionA[end] <= positionB[end];
|
|
2138
2122
|
}
|
|
2139
2123
|
|
|
2140
|
-
function flip(element, target,
|
|
2124
|
+
function flip(element, target, { offset, attach }, i) {
|
|
2141
2125
|
return attachTo(element, target, {
|
|
2142
2126
|
attach: {
|
|
2143
2127
|
element: flipAttach(attach.element, i),
|
|
@@ -2437,7 +2421,7 @@
|
|
|
2437
2421
|
delete this._watch;
|
|
2438
2422
|
};
|
|
2439
2423
|
|
|
2440
|
-
UIkit.prototype._callUpdate = function (e
|
|
2424
|
+
UIkit.prototype._callUpdate = function (e = 'update') {
|
|
2441
2425
|
if (!this._connected) {
|
|
2442
2426
|
return;
|
|
2443
2427
|
}
|
|
@@ -2616,8 +2600,8 @@
|
|
|
2616
2600
|
this._observers = [initPropsObserver(this), initChildListObserver(this)];
|
|
2617
2601
|
};
|
|
2618
2602
|
|
|
2619
|
-
UIkit.prototype.registerObserver = function () {
|
|
2620
|
-
this._observers.push(...
|
|
2603
|
+
UIkit.prototype.registerObserver = function (...observer) {
|
|
2604
|
+
this._observers.push(...observer);
|
|
2621
2605
|
};
|
|
2622
2606
|
|
|
2623
2607
|
UIkit.prototype._disconnectObservers = function () {
|
|
@@ -2742,7 +2726,7 @@
|
|
|
2742
2726
|
[value];
|
|
2743
2727
|
}
|
|
2744
2728
|
|
|
2745
|
-
function normalizeData(
|
|
2729
|
+
function normalizeData({ data = {} }, { args = [], props = {} }) {
|
|
2746
2730
|
if (isArray(data)) {
|
|
2747
2731
|
data = data.slice(0, args.length).reduce((data, value, index) => {
|
|
2748
2732
|
if (isPlainObject(value)) {
|
|
@@ -2802,7 +2786,7 @@
|
|
|
2802
2786
|
const observer = new MutationObserver((records) => {
|
|
2803
2787
|
const data = getProps($options);
|
|
2804
2788
|
if (
|
|
2805
|
-
records.some((
|
|
2789
|
+
records.some(({ attributeName }) => {
|
|
2806
2790
|
const prop = attributeName.replace('data-', '');
|
|
2807
2791
|
return (prop === id ? attributes : [camelize(prop), camelize(attributeName)]).some(
|
|
2808
2792
|
(prop) => !isUndefined(data[prop]) && data[prop] !== $props[prop]);
|
|
@@ -2815,7 +2799,7 @@
|
|
|
2815
2799
|
|
|
2816
2800
|
observer.observe(el, {
|
|
2817
2801
|
attributes: true,
|
|
2818
|
-
attributeFilter: filter.concat(filter.map((key) =>
|
|
2802
|
+
attributeFilter: filter.concat(filter.map((key) => `data-${key}`))
|
|
2819
2803
|
});
|
|
2820
2804
|
|
|
2821
2805
|
return observer;
|
|
@@ -2853,7 +2837,7 @@
|
|
|
2853
2837
|
this._callConnected();
|
|
2854
2838
|
};
|
|
2855
2839
|
|
|
2856
|
-
UIkit.prototype.$destroy = function (removeEl
|
|
2840
|
+
UIkit.prototype.$destroy = function (removeEl = false) {
|
|
2857
2841
|
const { el, name } = this.$options;
|
|
2858
2842
|
|
|
2859
2843
|
if (el) {
|
|
@@ -2881,7 +2865,7 @@
|
|
|
2881
2865
|
this._callUpdate(e);
|
|
2882
2866
|
};
|
|
2883
2867
|
|
|
2884
|
-
UIkit.prototype.$update = function (element, e) {
|
|
2868
|
+
UIkit.prototype.$update = function (element = this.$el, e) {
|
|
2885
2869
|
UIkit.update(element, e);
|
|
2886
2870
|
};
|
|
2887
2871
|
|
|
@@ -2904,7 +2888,7 @@
|
|
|
2904
2888
|
|
|
2905
2889
|
if (!options) {
|
|
2906
2890
|
if (isPlainObject(components$2[id])) {
|
|
2907
|
-
components$2[id] = components$2[
|
|
2891
|
+
components$2[id] = components$2[`data-${id}`] = UIkit.extend(components$2[id]);
|
|
2908
2892
|
}
|
|
2909
2893
|
|
|
2910
2894
|
return components$2[id];
|
|
@@ -2944,10 +2928,10 @@
|
|
|
2944
2928
|
opt.install == null ? void 0 : opt.install(UIkit, opt, name);
|
|
2945
2929
|
|
|
2946
2930
|
if (UIkit._initialized && !opt.functional) {
|
|
2947
|
-
requestAnimationFrame(() => UIkit[name](
|
|
2931
|
+
requestAnimationFrame(() => UIkit[name](`[${id}],[data-${id}]`));
|
|
2948
2932
|
}
|
|
2949
2933
|
|
|
2950
|
-
return components$2[id] = components$2[
|
|
2934
|
+
return components$2[id] = components$2[`data-${id}`] = isPlainObject(options) ? opt : options;
|
|
2951
2935
|
};
|
|
2952
2936
|
|
|
2953
2937
|
UIkit.getComponents = (element) => (element == null ? void 0 : element[DATA]) || {};
|
|
@@ -2986,7 +2970,7 @@
|
|
|
2986
2970
|
UIkit.data = '__uikit__';
|
|
2987
2971
|
UIkit.prefix = 'uk-';
|
|
2988
2972
|
UIkit.options = {};
|
|
2989
|
-
UIkit.version = '3.15.
|
|
2973
|
+
UIkit.version = '3.15.19-dev.699ab5a7f';
|
|
2990
2974
|
|
|
2991
2975
|
globalAPI(UIkit);
|
|
2992
2976
|
hooksAPI(UIkit);
|
|
@@ -3027,7 +3011,7 @@
|
|
|
3027
3011
|
UIkit._initialized = true;
|
|
3028
3012
|
});
|
|
3029
3013
|
|
|
3030
|
-
function applyChildListMutation(
|
|
3014
|
+
function applyChildListMutation({ addedNodes, removedNodes }) {
|
|
3031
3015
|
for (const node of addedNodes) {
|
|
3032
3016
|
apply(node, connect);
|
|
3033
3017
|
}
|
|
@@ -3037,7 +3021,7 @@
|
|
|
3037
3021
|
}
|
|
3038
3022
|
}
|
|
3039
3023
|
|
|
3040
|
-
function applyAttributeMutation(
|
|
3024
|
+
function applyAttributeMutation({ target, attributeName }) {
|
|
3041
3025
|
const name = getComponentName(attributeName);
|
|
3042
3026
|
|
|
3043
3027
|
if (name) {var _UIkit$getComponent;
|
|
@@ -3063,7 +3047,7 @@
|
|
|
3063
3047
|
},
|
|
3064
3048
|
|
|
3065
3049
|
methods: {
|
|
3066
|
-
lazyload(observeTargets
|
|
3050
|
+
lazyload(observeTargets = this.$el, targets = this.$el) {
|
|
3067
3051
|
this.registerObserver(
|
|
3068
3052
|
observeIntersection(observeTargets, (entries, observer) => {
|
|
3069
3053
|
for (const el of toNodes(isFunction(targets) ? targets() : targets)) {
|
|
@@ -3073,8 +3057,8 @@
|
|
|
3073
3057
|
}
|
|
3074
3058
|
|
|
3075
3059
|
for (const el of entries.
|
|
3076
|
-
filter((
|
|
3077
|
-
map((
|
|
3060
|
+
filter(({ isIntersecting }) => isIntersecting).
|
|
3061
|
+
map(({ target }) => target)) {
|
|
3078
3062
|
observer.unobserve(el);
|
|
3079
3063
|
}
|
|
3080
3064
|
}));
|
|
@@ -3105,23 +3089,22 @@
|
|
|
3105
3089
|
},
|
|
3106
3090
|
|
|
3107
3091
|
computed: {
|
|
3108
|
-
hasAnimation(
|
|
3092
|
+
hasAnimation({ animation }) {
|
|
3109
3093
|
return !!animation[0];
|
|
3110
3094
|
},
|
|
3111
3095
|
|
|
3112
|
-
hasTransition(
|
|
3096
|
+
hasTransition({ animation }) {
|
|
3113
3097
|
return ['slide', 'reveal'].some((transition) => startsWith(animation[0], transition));
|
|
3114
3098
|
}
|
|
3115
3099
|
},
|
|
3116
3100
|
|
|
3117
3101
|
methods: {
|
|
3118
3102
|
toggleElement(targets, toggle, animate) {
|
|
3119
|
-
return new Promise((resolve) =>
|
|
3120
|
-
Promise.all(
|
|
3103
|
+
return new Promise((resolve) => Promise.all(
|
|
3121
3104
|
toNodes(targets).map((el) => {
|
|
3122
3105
|
const show = isBoolean(toggle) ? toggle : !this.isToggled(el);
|
|
3123
3106
|
|
|
3124
|
-
if (!trigger(el,
|
|
3107
|
+
if (!trigger(el, `before${show ? 'show' : 'hide'}`, [this])) {
|
|
3125
3108
|
return Promise.reject();
|
|
3126
3109
|
}
|
|
3127
3110
|
|
|
@@ -3157,7 +3140,7 @@
|
|
|
3157
3140
|
|
|
3158
3141
|
},
|
|
3159
3142
|
|
|
3160
|
-
isToggled(el
|
|
3143
|
+
isToggled(el = this.$el) {
|
|
3161
3144
|
[el] = toNodes(el);
|
|
3162
3145
|
return hasClass(el, this.clsEnter) ?
|
|
3163
3146
|
true :
|
|
@@ -3193,7 +3176,7 @@
|
|
|
3193
3176
|
}
|
|
3194
3177
|
};
|
|
3195
3178
|
|
|
3196
|
-
function toggleInstant(el, show,
|
|
3179
|
+
function toggleInstant(el, show, { _toggle }) {
|
|
3197
3180
|
Animation.cancel(el);
|
|
3198
3181
|
Transition.cancel(el);
|
|
3199
3182
|
return _toggle(el, show);
|
|
@@ -3201,9 +3184,9 @@
|
|
|
3201
3184
|
|
|
3202
3185
|
async function toggleTransition(
|
|
3203
3186
|
el,
|
|
3204
|
-
show,
|
|
3205
|
-
|
|
3206
|
-
{var _animation$;
|
|
3187
|
+
show,
|
|
3188
|
+
{ animation, duration, velocity, transition, _toggle })
|
|
3189
|
+
{var _animation$;
|
|
3207
3190
|
const [mode = 'reveal', startProp = 'top'] = ((_animation$ = animation[0]) == null ? void 0 : _animation$.split('-')) || [];
|
|
3208
3191
|
|
|
3209
3192
|
const dirs = [
|
|
@@ -3214,8 +3197,8 @@
|
|
|
3214
3197
|
const end = dir[1] === startProp;
|
|
3215
3198
|
const props = ['width', 'height'];
|
|
3216
3199
|
const dimProp = props[dirs.indexOf(dir)];
|
|
3217
|
-
const marginProp =
|
|
3218
|
-
const marginStartProp =
|
|
3200
|
+
const marginProp = `margin-${dir[0]}`;
|
|
3201
|
+
const marginStartProp = `margin-${startProp}`;
|
|
3219
3202
|
|
|
3220
3203
|
let currentDim = dimensions(el)[dimProp];
|
|
3221
3204
|
|
|
@@ -3315,8 +3298,7 @@
|
|
|
3315
3298
|
return Animation.in(el, animation[0], duration, cmp.origin);
|
|
3316
3299
|
}
|
|
3317
3300
|
|
|
3318
|
-
return Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() =>
|
|
3319
|
-
_toggle(el, false));
|
|
3301
|
+
return Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() => _toggle(el, false));
|
|
3320
3302
|
|
|
3321
3303
|
}
|
|
3322
3304
|
|
|
@@ -3348,7 +3330,7 @@
|
|
|
3348
3330
|
|
|
3349
3331
|
computed: {
|
|
3350
3332
|
items: {
|
|
3351
|
-
get(
|
|
3333
|
+
get({ targets }, $el) {
|
|
3352
3334
|
return $$(targets, $el);
|
|
3353
3335
|
},
|
|
3354
3336
|
|
|
@@ -3369,12 +3351,12 @@
|
|
|
3369
3351
|
immediate: true
|
|
3370
3352
|
},
|
|
3371
3353
|
|
|
3372
|
-
toggles(
|
|
3354
|
+
toggles({ toggle }) {
|
|
3373
3355
|
return this.items.map((item) => $(toggle, item));
|
|
3374
3356
|
},
|
|
3375
3357
|
|
|
3376
3358
|
contents: {
|
|
3377
|
-
get(
|
|
3359
|
+
get({ content }) {
|
|
3378
3360
|
return this.items.map((item) => $(content, item));
|
|
3379
3361
|
},
|
|
3380
3362
|
|
|
@@ -3403,7 +3385,7 @@
|
|
|
3403
3385
|
name: 'click',
|
|
3404
3386
|
|
|
3405
3387
|
delegate() {
|
|
3406
|
-
return this.targets
|
|
3388
|
+
return `${this.targets} ${this.$props.toggle}`;
|
|
3407
3389
|
},
|
|
3408
3390
|
|
|
3409
3391
|
async handler(e) {var _this$_off;
|
|
@@ -3421,7 +3403,7 @@
|
|
|
3421
3403
|
async toggle(item, animate) {
|
|
3422
3404
|
item = this.items[getIndex(item, this.items)];
|
|
3423
3405
|
let items = [item];
|
|
3424
|
-
const activeItems = filter(this.items,
|
|
3406
|
+
const activeItems = filter(this.items, `.${this.clsOpen}`);
|
|
3425
3407
|
|
|
3426
3408
|
if (!this.multiple && !includes(activeItems, items[0])) {
|
|
3427
3409
|
items = items.concat(activeItems);
|
|
@@ -3432,8 +3414,7 @@
|
|
|
3432
3414
|
}
|
|
3433
3415
|
|
|
3434
3416
|
await Promise.all(
|
|
3435
|
-
items.map((el) =>
|
|
3436
|
-
this.toggleElement(el, !includes(activeItems, el), (el, show) => {
|
|
3417
|
+
items.map((el) => this.toggleElement(el, !includes(activeItems, el), (el, show) => {
|
|
3437
3418
|
toggleClass(el, this.clsOpen, show);
|
|
3438
3419
|
attr($(this.$props.toggle, el), 'aria-expanded', show);
|
|
3439
3420
|
|
|
@@ -3454,7 +3435,7 @@
|
|
|
3454
3435
|
el && (el.hidden = hide);
|
|
3455
3436
|
}
|
|
3456
3437
|
|
|
3457
|
-
async function transition(el, show,
|
|
3438
|
+
async function transition(el, show, { content, duration, velocity, transition }) {var _el$_wrapper;
|
|
3458
3439
|
content = ((_el$_wrapper = el._wrapper) == null ? void 0 : _el$_wrapper.firstElementChild) || $(content, el);
|
|
3459
3440
|
|
|
3460
3441
|
if (!el._wrapper) {
|
|
@@ -3468,9 +3449,9 @@
|
|
|
3468
3449
|
await Transition.cancel(wrapper);
|
|
3469
3450
|
hide(content, false);
|
|
3470
3451
|
|
|
3471
|
-
const endHeight =
|
|
3472
|
-
['
|
|
3473
|
-
(
|
|
3452
|
+
const endHeight =
|
|
3453
|
+
sumBy(['marginTop', 'marginBottom'], (prop) => css(content, prop)) +
|
|
3454
|
+
dimensions(content).height;
|
|
3474
3455
|
|
|
3475
3456
|
const percent = currentHeight / endHeight;
|
|
3476
3457
|
duration = (velocity * endHeight + duration) * (show ? 1 - percent : percent);
|
|
@@ -3539,7 +3520,7 @@
|
|
|
3539
3520
|
}
|
|
3540
3521
|
};
|
|
3541
3522
|
|
|
3542
|
-
function animate$1(el, show,
|
|
3523
|
+
function animate$1(el, show, { duration, transition, velocity }) {
|
|
3543
3524
|
const height = toFloat(css(el, 'height'));
|
|
3544
3525
|
css(el, 'height', height);
|
|
3545
3526
|
return Transition.start(
|
|
@@ -3591,7 +3572,7 @@
|
|
|
3591
3572
|
},
|
|
3592
3573
|
|
|
3593
3574
|
update: {
|
|
3594
|
-
read(
|
|
3575
|
+
read({ visible }) {
|
|
3595
3576
|
if (!isVideo(this.$el)) {
|
|
3596
3577
|
return false;
|
|
3597
3578
|
}
|
|
@@ -3603,7 +3584,7 @@
|
|
|
3603
3584
|
};
|
|
3604
3585
|
},
|
|
3605
3586
|
|
|
3606
|
-
write(
|
|
3587
|
+
write({ prev, visible, inView }) {
|
|
3607
3588
|
if (!visible || this.inView && !inView) {
|
|
3608
3589
|
pause(this.$el);
|
|
3609
3590
|
} else if (this.autoplay === true && !prev || this.inView && inView) {
|
|
@@ -3616,8 +3597,7 @@
|
|
|
3616
3597
|
var Resize = {
|
|
3617
3598
|
connected() {var _this$$options$resize;
|
|
3618
3599
|
this.registerObserver(
|
|
3619
|
-
observeResize(((_this$$options$resize = this.$options.resizeTargets) == null ? void 0 : _this$$options$resize.call(this)) || this.$el, () =>
|
|
3620
|
-
this.$emit('resize')));
|
|
3600
|
+
observeResize(((_this$$options$resize = this.$options.resizeTargets) == null ? void 0 : _this$$options$resize.call(this)) || this.$el, () => this.$emit('resize')));
|
|
3621
3601
|
|
|
3622
3602
|
|
|
3623
3603
|
}
|
|
@@ -3681,7 +3661,7 @@
|
|
|
3681
3661
|
return coverDim;
|
|
3682
3662
|
},
|
|
3683
3663
|
|
|
3684
|
-
write(
|
|
3664
|
+
write({ height, width }) {
|
|
3685
3665
|
css(this.$el, { height, width });
|
|
3686
3666
|
},
|
|
3687
3667
|
|
|
@@ -3707,7 +3687,7 @@
|
|
|
3707
3687
|
},
|
|
3708
3688
|
|
|
3709
3689
|
computed: {
|
|
3710
|
-
container(
|
|
3690
|
+
container({ container }) {
|
|
3711
3691
|
return container === true && this.$container || container && $(container);
|
|
3712
3692
|
}
|
|
3713
3693
|
}
|
|
@@ -3723,7 +3703,7 @@
|
|
|
3723
3703
|
},
|
|
3724
3704
|
|
|
3725
3705
|
data: {
|
|
3726
|
-
pos:
|
|
3706
|
+
pos: `bottom-${isRtl ? 'right' : 'left'}`,
|
|
3727
3707
|
offset: false,
|
|
3728
3708
|
flip: true,
|
|
3729
3709
|
shift: true,
|
|
@@ -3824,7 +3804,7 @@
|
|
|
3824
3804
|
},
|
|
3825
3805
|
|
|
3826
3806
|
computed: {
|
|
3827
|
-
panel(
|
|
3807
|
+
panel({ selPanel }, $el) {
|
|
3828
3808
|
return $(selPanel, $el);
|
|
3829
3809
|
},
|
|
3830
3810
|
|
|
@@ -3832,7 +3812,7 @@
|
|
|
3832
3812
|
return this.panel;
|
|
3833
3813
|
},
|
|
3834
3814
|
|
|
3835
|
-
bgClose(
|
|
3815
|
+
bgClose({ bgClose }) {
|
|
3836
3816
|
return bgClose && this.panel;
|
|
3837
3817
|
}
|
|
3838
3818
|
},
|
|
@@ -3848,7 +3828,7 @@
|
|
|
3848
3828
|
name: 'click',
|
|
3849
3829
|
|
|
3850
3830
|
delegate() {
|
|
3851
|
-
return this.selClose
|
|
3831
|
+
return `${this.selClose},a[href*="#"]`;
|
|
3852
3832
|
},
|
|
3853
3833
|
|
|
3854
3834
|
handler(e) {
|
|
@@ -3937,7 +3917,7 @@
|
|
|
3937
3917
|
once(
|
|
3938
3918
|
this.$el,
|
|
3939
3919
|
'hide',
|
|
3940
|
-
on(document, pointerDown, (
|
|
3920
|
+
on(document, pointerDown, ({ target }) => {
|
|
3941
3921
|
if (
|
|
3942
3922
|
last(active$1) !== this ||
|
|
3943
3923
|
this.overlay && !within(target, this.$el) ||
|
|
@@ -3948,8 +3928,8 @@
|
|
|
3948
3928
|
|
|
3949
3929
|
once(
|
|
3950
3930
|
document,
|
|
3951
|
-
pointerUp
|
|
3952
|
-
(
|
|
3931
|
+
`${pointerUp} ${pointerCancel} scroll`,
|
|
3932
|
+
({ defaultPrevented, type, target: newTarget }) => {
|
|
3953
3933
|
if (
|
|
3954
3934
|
!defaultPrevented &&
|
|
3955
3935
|
type === pointerUp &&
|
|
@@ -4023,8 +4003,7 @@
|
|
|
4023
4003
|
show() {
|
|
4024
4004
|
if (this.container && parent(this.$el) !== this.container) {
|
|
4025
4005
|
append(this.container, this.$el);
|
|
4026
|
-
return new Promise((resolve) =>
|
|
4027
|
-
requestAnimationFrame(() => this.show().then(resolve)));
|
|
4006
|
+
return new Promise((resolve) => requestAnimationFrame(() => this.show().then(resolve)));
|
|
4028
4007
|
|
|
4029
4008
|
}
|
|
4030
4009
|
|
|
@@ -4037,9 +4016,8 @@
|
|
|
4037
4016
|
}
|
|
4038
4017
|
};
|
|
4039
4018
|
|
|
4040
|
-
function animate(el, show,
|
|
4041
|
-
return new Promise((resolve, reject) =>
|
|
4042
|
-
once(el, 'show hide', () => {
|
|
4019
|
+
function animate(el, show, { transitionElement, _toggle }) {
|
|
4020
|
+
return new Promise((resolve, reject) => once(el, 'show hide', () => {
|
|
4043
4021
|
el._reject == null ? void 0 : el._reject();
|
|
4044
4022
|
el._reject = reject;
|
|
4045
4023
|
|
|
@@ -4085,7 +4063,7 @@
|
|
|
4085
4063
|
on(
|
|
4086
4064
|
el,
|
|
4087
4065
|
'touchstart',
|
|
4088
|
-
(
|
|
4066
|
+
({ targetTouches }) => {
|
|
4089
4067
|
if (targetTouches.length === 1) {
|
|
4090
4068
|
startClientY = targetTouches[0].clientY;
|
|
4091
4069
|
}
|
|
@@ -4204,14 +4182,14 @@
|
|
|
4204
4182
|
},
|
|
4205
4183
|
|
|
4206
4184
|
computed: {
|
|
4207
|
-
boundary(
|
|
4185
|
+
boundary({ boundary, boundaryX, boundaryY }, $el) {
|
|
4208
4186
|
return [
|
|
4209
4187
|
query(boundaryX || boundary, $el) || window,
|
|
4210
4188
|
query(boundaryY || boundary, $el) || window];
|
|
4211
4189
|
|
|
4212
4190
|
},
|
|
4213
4191
|
|
|
4214
|
-
target(
|
|
4192
|
+
target({ target, targetX, targetY }, $el) {
|
|
4215
4193
|
targetX = targetX || target || this.targetEl;
|
|
4216
4194
|
targetY = targetY || target || this.targetEl;
|
|
4217
4195
|
|
|
@@ -4227,7 +4205,7 @@
|
|
|
4227
4205
|
},
|
|
4228
4206
|
|
|
4229
4207
|
beforeConnect() {
|
|
4230
|
-
this.clsDrop = this.$props.clsDrop ||
|
|
4208
|
+
this.clsDrop = this.$props.clsDrop || `uk-${this.$options.name}`;
|
|
4231
4209
|
},
|
|
4232
4210
|
|
|
4233
4211
|
connected() {
|
|
@@ -4242,7 +4220,7 @@
|
|
|
4242
4220
|
this.lazyload(this.targetEl);
|
|
4243
4221
|
}
|
|
4244
4222
|
|
|
4245
|
-
this._style = ((
|
|
4223
|
+
this._style = (({ width, height }) => ({ width, height }))(this.$el.style);
|
|
4246
4224
|
},
|
|
4247
4225
|
|
|
4248
4226
|
disconnected() {
|
|
@@ -4258,7 +4236,7 @@
|
|
|
4258
4236
|
name: 'click',
|
|
4259
4237
|
|
|
4260
4238
|
delegate() {
|
|
4261
|
-
return
|
|
4239
|
+
return `.${this.clsDrop}-close`;
|
|
4262
4240
|
},
|
|
4263
4241
|
|
|
4264
4242
|
handler(e) {
|
|
@@ -4274,7 +4252,7 @@
|
|
|
4274
4252
|
return 'a[href*="#"]';
|
|
4275
4253
|
},
|
|
4276
4254
|
|
|
4277
|
-
handler(
|
|
4255
|
+
handler({ defaultPrevented, current }) {
|
|
4278
4256
|
const { hash } = current;
|
|
4279
4257
|
if (
|
|
4280
4258
|
!defaultPrevented &&
|
|
@@ -4336,7 +4314,7 @@
|
|
|
4336
4314
|
},
|
|
4337
4315
|
|
|
4338
4316
|
{
|
|
4339
|
-
name: pointerEnter
|
|
4317
|
+
name: `${pointerEnter} focusin`,
|
|
4340
4318
|
|
|
4341
4319
|
filter() {
|
|
4342
4320
|
return includes(this.mode, 'hover');
|
|
@@ -4350,7 +4328,7 @@
|
|
|
4350
4328
|
},
|
|
4351
4329
|
|
|
4352
4330
|
{
|
|
4353
|
-
name: pointerLeave
|
|
4331
|
+
name: `${pointerLeave} focusout`,
|
|
4354
4332
|
|
|
4355
4333
|
filter() {
|
|
4356
4334
|
return includes(this.mode, 'hover');
|
|
@@ -4393,22 +4371,21 @@
|
|
|
4393
4371
|
on(
|
|
4394
4372
|
document,
|
|
4395
4373
|
pointerDown,
|
|
4396
|
-
(
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
true));}),
|
|
4374
|
+
({ target }) => !within(target, this.$el) &&
|
|
4375
|
+
once(
|
|
4376
|
+
document,
|
|
4377
|
+
`${pointerUp} ${pointerCancel} scroll`,
|
|
4378
|
+
({ defaultPrevented, type, target: newTarget }) => {
|
|
4379
|
+
if (
|
|
4380
|
+
!defaultPrevented &&
|
|
4381
|
+
type === pointerUp &&
|
|
4382
|
+
target === newTarget &&
|
|
4383
|
+
!(this.targetEl && within(target, this.targetEl)))
|
|
4384
|
+
{
|
|
4385
|
+
this.hide(false);
|
|
4386
|
+
}
|
|
4387
|
+
},
|
|
4388
|
+
true)),
|
|
4412
4389
|
|
|
4413
4390
|
|
|
4414
4391
|
|
|
@@ -4460,7 +4437,7 @@
|
|
|
4460
4437
|
{
|
|
4461
4438
|
name: 'hide',
|
|
4462
4439
|
|
|
4463
|
-
handler(
|
|
4440
|
+
handler({ target }) {
|
|
4464
4441
|
if (this.$el !== target) {
|
|
4465
4442
|
active =
|
|
4466
4443
|
active === null && within(target, this.$el) && this.isToggled() ?
|
|
@@ -4484,7 +4461,7 @@
|
|
|
4484
4461
|
},
|
|
4485
4462
|
|
|
4486
4463
|
methods: {
|
|
4487
|
-
show(target
|
|
4464
|
+
show(target = this.targetEl, delay = true) {
|
|
4488
4465
|
if (this.isToggled() && target && this.targetEl && target !== this.targetEl) {
|
|
4489
4466
|
this.hide(false, false);
|
|
4490
4467
|
}
|
|
@@ -4520,13 +4497,12 @@
|
|
|
4520
4497
|
|
|
4521
4498
|
},
|
|
4522
4499
|
|
|
4523
|
-
hide(delay
|
|
4500
|
+
hide(delay = true, animate = true) {
|
|
4524
4501
|
const hide = () => this.toggleElement(this.$el, false, this.animateOut && animate);
|
|
4525
4502
|
|
|
4526
4503
|
this.clearTimers();
|
|
4527
4504
|
|
|
4528
|
-
this.isDelaying = getPositionedElements(this.$el).some((el) =>
|
|
4529
|
-
this.tracker.movesTo(el));
|
|
4505
|
+
this.isDelaying = getPositionedElements(this.$el).some((el) => this.tracker.movesTo(el));
|
|
4530
4506
|
|
|
4531
4507
|
|
|
4532
4508
|
if (delay && this.isDelaying) {
|
|
@@ -4551,7 +4527,7 @@
|
|
|
4551
4527
|
},
|
|
4552
4528
|
|
|
4553
4529
|
position() {
|
|
4554
|
-
removeClass(this.$el, this.clsDrop
|
|
4530
|
+
removeClass(this.$el, `${this.clsDrop}-stack`);
|
|
4555
4531
|
css(this.$el, this._style);
|
|
4556
4532
|
|
|
4557
4533
|
// Ensure none positioned element does not generate scrollbars
|
|
@@ -4572,7 +4548,7 @@
|
|
|
4572
4548
|
offset(this.boundary[i])[prop],
|
|
4573
4549
|
viewports[i][prop] - 2 * viewportOffset),
|
|
4574
4550
|
|
|
4575
|
-
[
|
|
4551
|
+
[`overflow-${axis}`]: 'auto'
|
|
4576
4552
|
});
|
|
4577
4553
|
}
|
|
4578
4554
|
}
|
|
@@ -4580,7 +4556,7 @@
|
|
|
4580
4556
|
const maxWidth = viewports[0].width - 2 * viewportOffset;
|
|
4581
4557
|
|
|
4582
4558
|
if (this.$el.offsetWidth > maxWidth) {
|
|
4583
|
-
addClass(this.$el, this.clsDrop
|
|
4559
|
+
addClass(this.$el, `${this.clsDrop}-stack`);
|
|
4584
4560
|
}
|
|
4585
4561
|
|
|
4586
4562
|
css(this.$el, 'maxWidth', maxWidth);
|
|
@@ -4607,7 +4583,7 @@
|
|
|
4607
4583
|
offset(this.boundary[i])[end],
|
|
4608
4584
|
viewports[i][end] - viewportOffset) -
|
|
4609
4585
|
targetOffset[end]) - positionOffset,
|
|
4610
|
-
[
|
|
4586
|
+
[`overflow-${axis}`]: 'auto'
|
|
4611
4587
|
});
|
|
4612
4588
|
|
|
4613
4589
|
this.positionAt(this.$el, this.target, this.boundary);
|
|
@@ -4649,7 +4625,7 @@
|
|
|
4649
4625
|
return this.input.nextElementSibling;
|
|
4650
4626
|
},
|
|
4651
4627
|
|
|
4652
|
-
target(
|
|
4628
|
+
target({ target }, $el) {
|
|
4653
4629
|
return (
|
|
4654
4630
|
target && (
|
|
4655
4631
|
target === true && parent(this.input) === $el && this.input.nextElementSibling ||
|
|
@@ -4740,7 +4716,7 @@
|
|
|
4740
4716
|
};
|
|
4741
4717
|
},
|
|
4742
4718
|
|
|
4743
|
-
write(
|
|
4719
|
+
write({ columns, rows }) {
|
|
4744
4720
|
for (const row of rows) {
|
|
4745
4721
|
for (const column of row) {
|
|
4746
4722
|
toggleClass(column, this.margin, rows[0] !== row);
|
|
@@ -4816,7 +4792,7 @@
|
|
|
4816
4792
|
return sorted;
|
|
4817
4793
|
}
|
|
4818
4794
|
|
|
4819
|
-
function getOffset(element, offset
|
|
4795
|
+
function getOffset(element, offset = false) {
|
|
4820
4796
|
let { offsetTop, offsetLeft, offsetHeight, offsetWidth } = element;
|
|
4821
4797
|
|
|
4822
4798
|
if (offset) {
|
|
@@ -4892,7 +4868,7 @@
|
|
|
4892
4868
|
|
|
4893
4869
|
update: [
|
|
4894
4870
|
{
|
|
4895
|
-
write(
|
|
4871
|
+
write({ columns }) {
|
|
4896
4872
|
toggleClass(this.$el, this.clsStack, columns.length < 2);
|
|
4897
4873
|
},
|
|
4898
4874
|
|
|
@@ -4928,8 +4904,7 @@
|
|
|
4928
4904
|
let padding = Math.abs(this.parallax);
|
|
4929
4905
|
if (padding) {
|
|
4930
4906
|
padding = columnHeights.reduce(
|
|
4931
|
-
(newPadding, hgt, i) =>
|
|
4932
|
-
Math.max(
|
|
4907
|
+
(newPadding, hgt, i) => Math.max(
|
|
4933
4908
|
newPadding,
|
|
4934
4909
|
hgt + margin + (i % 2 ? padding : padding / 8) - elHeight),
|
|
4935
4910
|
|
|
@@ -4940,7 +4915,7 @@
|
|
|
4940
4915
|
return { padding, columns, translates, height: translates ? elHeight : '' };
|
|
4941
4916
|
},
|
|
4942
4917
|
|
|
4943
|
-
write(
|
|
4918
|
+
write({ height, padding }) {
|
|
4944
4919
|
css(this.$el, 'paddingBottom', padding || '');
|
|
4945
4920
|
height !== false && css(this.$el, 'height', height);
|
|
4946
4921
|
},
|
|
@@ -4961,22 +4936,20 @@
|
|
|
4961
4936
|
};
|
|
4962
4937
|
},
|
|
4963
4938
|
|
|
4964
|
-
write(
|
|
4939
|
+
write({ columns, scrolled, translates }) {
|
|
4965
4940
|
if (scrolled === false && !translates) {
|
|
4966
4941
|
return;
|
|
4967
4942
|
}
|
|
4968
4943
|
|
|
4969
|
-
columns.forEach((column, i) =>
|
|
4970
|
-
column.forEach((el, j) =>
|
|
4971
|
-
css(
|
|
4944
|
+
columns.forEach((column, i) => column.forEach((el, j) => css(
|
|
4972
4945
|
el,
|
|
4973
4946
|
'transform',
|
|
4974
4947
|
!scrolled && !translates ?
|
|
4975
|
-
'' :
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4948
|
+
'' :
|
|
4949
|
+
`translateY(${
|
|
4950
|
+
(translates && -translates[i][j]) + (
|
|
4951
|
+
scrolled ? i % 2 ? scrolled : scrolled / 8 : 0)
|
|
4952
|
+
}px)`)));
|
|
4980
4953
|
|
|
4981
4954
|
|
|
4982
4955
|
|
|
@@ -4997,8 +4970,7 @@
|
|
|
4997
4970
|
return columns.map((elements) => {
|
|
4998
4971
|
let prev = 0;
|
|
4999
4972
|
return elements.map(
|
|
5000
|
-
(element, row) =>
|
|
5001
|
-
prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0);
|
|
4973
|
+
(element, row) => prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0);
|
|
5002
4974
|
|
|
5003
4975
|
});
|
|
5004
4976
|
}
|
|
@@ -5026,7 +4998,7 @@
|
|
|
5026
4998
|
|
|
5027
4999
|
computed: {
|
|
5028
5000
|
elements: {
|
|
5029
|
-
get(
|
|
5001
|
+
get({ target }, $el) {
|
|
5030
5002
|
return $$(target, $el);
|
|
5031
5003
|
},
|
|
5032
5004
|
|
|
@@ -5047,7 +5019,7 @@
|
|
|
5047
5019
|
};
|
|
5048
5020
|
},
|
|
5049
5021
|
|
|
5050
|
-
write(
|
|
5022
|
+
write({ rows }) {
|
|
5051
5023
|
for (const { heights, elements } of rows) {
|
|
5052
5024
|
elements.forEach((el, i) => css(el, 'minHeight', heights[i]));
|
|
5053
5025
|
}
|
|
@@ -5111,7 +5083,7 @@
|
|
|
5111
5083
|
},
|
|
5112
5084
|
|
|
5113
5085
|
update: {
|
|
5114
|
-
read(
|
|
5086
|
+
read({ minHeight: prev }) {
|
|
5115
5087
|
if (!isVisible(this.$el)) {
|
|
5116
5088
|
return false;
|
|
5117
5089
|
}
|
|
@@ -5137,34 +5109,34 @@
|
|
|
5137
5109
|
scrollingElement === scrollElement || body === scrollElement;
|
|
5138
5110
|
|
|
5139
5111
|
// on mobile devices (iOS and Android) window.innerHeight !== 100vh
|
|
5140
|
-
minHeight =
|
|
5112
|
+
minHeight = `calc(${isScrollingElement ? '100vh' : `${viewportHeight}px`}`;
|
|
5141
5113
|
|
|
5142
5114
|
if (this.offsetTop) {
|
|
5143
5115
|
if (isScrollingElement) {
|
|
5144
5116
|
const top = offsetPosition(this.$el)[0] - offsetPosition(scrollElement)[0];
|
|
5145
|
-
minHeight += top > 0 && top < viewportHeight / 2 ?
|
|
5117
|
+
minHeight += top > 0 && top < viewportHeight / 2 ? ` - ${top}px` : '';
|
|
5146
5118
|
} else {
|
|
5147
|
-
minHeight +=
|
|
5119
|
+
minHeight += ` - ${css(scrollElement, 'paddingTop')}`;
|
|
5148
5120
|
}
|
|
5149
5121
|
}
|
|
5150
5122
|
|
|
5151
5123
|
if (this.offsetBottom === true) {
|
|
5152
|
-
minHeight +=
|
|
5124
|
+
minHeight += ` - ${dimensions(this.$el.nextElementSibling).height}px`;
|
|
5153
5125
|
} else if (isNumeric(this.offsetBottom)) {
|
|
5154
|
-
minHeight +=
|
|
5126
|
+
minHeight += ` - ${this.offsetBottom}vh`;
|
|
5155
5127
|
} else if (this.offsetBottom && endsWith(this.offsetBottom, 'px')) {
|
|
5156
|
-
minHeight +=
|
|
5128
|
+
minHeight += ` - ${toFloat(this.offsetBottom)}px`;
|
|
5157
5129
|
} else if (isString(this.offsetBottom)) {
|
|
5158
|
-
minHeight +=
|
|
5130
|
+
minHeight += ` - ${dimensions(query(this.offsetBottom, this.$el)).height}px`;
|
|
5159
5131
|
}
|
|
5160
5132
|
|
|
5161
|
-
minHeight +=
|
|
5133
|
+
minHeight += `${box ? ` - ${box}px` : ''})`;
|
|
5162
5134
|
}
|
|
5163
5135
|
|
|
5164
5136
|
return { minHeight, prev };
|
|
5165
5137
|
},
|
|
5166
5138
|
|
|
5167
|
-
write(
|
|
5139
|
+
write({ minHeight }) {
|
|
5168
5140
|
css(this.$el, { minHeight });
|
|
5169
5141
|
|
|
5170
5142
|
if (this.minHeight && toFloat(css(this.$el, 'minHeight')) < this.minHeight) {
|
|
@@ -5257,8 +5229,7 @@
|
|
|
5257
5229
|
methods: {
|
|
5258
5230
|
async getSvg() {
|
|
5259
5231
|
if (isTag(this.$el, 'img') && !this.$el.complete && this.$el.loading === 'lazy') {
|
|
5260
|
-
return new Promise((resolve) =>
|
|
5261
|
-
once(this.$el, 'load', () => resolve(this.getSvg())));
|
|
5232
|
+
return new Promise((resolve) => once(this.$el, 'load', () => resolve(this.getSvg())));
|
|
5262
5233
|
|
|
5263
5234
|
}
|
|
5264
5235
|
|
|
@@ -5330,7 +5301,7 @@
|
|
|
5330
5301
|
|
|
5331
5302
|
let match;
|
|
5332
5303
|
while (match = symbolRe.exec(svg)) {
|
|
5333
|
-
symbols[svg][match[3]] =
|
|
5304
|
+
symbols[svg][match[3]] = `<svg xmlns="http://www.w3.org/2000/svg"${match[1]}svg>`;
|
|
5334
5305
|
}
|
|
5335
5306
|
}
|
|
5336
5307
|
|
|
@@ -5485,7 +5456,7 @@
|
|
|
5485
5456
|
|
|
5486
5457
|
beforeConnect() {
|
|
5487
5458
|
const icon = this.$props.icon;
|
|
5488
|
-
this.icon = closest(this.$el, '.uk-nav-primary') ? icon
|
|
5459
|
+
this.icon = closest(this.$el, '.uk-nav-primary') ? `${icon}-large` : icon;
|
|
5489
5460
|
}
|
|
5490
5461
|
};
|
|
5491
5462
|
|
|
@@ -5495,7 +5466,7 @@
|
|
|
5495
5466
|
beforeConnect() {
|
|
5496
5467
|
addClass(this.$el, 'uk-slidenav');
|
|
5497
5468
|
const icon = this.$props.icon;
|
|
5498
|
-
this.icon = hasClass(this.$el, 'uk-slidenav-large') ? icon
|
|
5469
|
+
this.icon = hasClass(this.$el, 'uk-slidenav-large') ? `${icon}-large` : icon;
|
|
5499
5470
|
}
|
|
5500
5471
|
};
|
|
5501
5472
|
|
|
@@ -5516,7 +5487,7 @@
|
|
|
5516
5487
|
extends: IconComponent,
|
|
5517
5488
|
|
|
5518
5489
|
beforeConnect() {
|
|
5519
|
-
this.icon =
|
|
5490
|
+
this.icon = `close-${hasClass(this.$el, 'uk-close-large') ? 'large' : 'icon'}`;
|
|
5520
5491
|
}
|
|
5521
5492
|
};
|
|
5522
5493
|
|
|
@@ -5546,8 +5517,7 @@
|
|
|
5546
5517
|
});
|
|
5547
5518
|
|
|
5548
5519
|
if (UIkit._initialized) {
|
|
5549
|
-
apply(document.body, (el) =>
|
|
5550
|
-
each(UIkit.getComponents(el), (cmp) => {
|
|
5520
|
+
apply(document.body, (el) => each(UIkit.getComponents(el), (cmp) => {
|
|
5551
5521
|
cmp.$options.isIcon && cmp.icon in added && cmp.$reset();
|
|
5552
5522
|
}));
|
|
5553
5523
|
|
|
@@ -5654,7 +5624,7 @@
|
|
|
5654
5624
|
} else if (src) {
|
|
5655
5625
|
const change = !includes(el.style.backgroundImage, src);
|
|
5656
5626
|
if (change) {
|
|
5657
|
-
css(el, 'backgroundImage',
|
|
5627
|
+
css(el, 'backgroundImage', `url(${escape(src)})`);
|
|
5658
5628
|
trigger(el, createEvent('load', false));
|
|
5659
5629
|
}
|
|
5660
5630
|
}
|
|
@@ -5766,13 +5736,13 @@
|
|
|
5766
5736
|
function toMedia(value, element) {
|
|
5767
5737
|
if (isString(value)) {
|
|
5768
5738
|
if (startsWith(value, '@')) {
|
|
5769
|
-
value = toFloat(css(element,
|
|
5739
|
+
value = toFloat(css(element, `--uk-breakpoint-${value.substr(1)}`));
|
|
5770
5740
|
} else if (isNaN(value)) {
|
|
5771
5741
|
return value;
|
|
5772
5742
|
}
|
|
5773
5743
|
}
|
|
5774
5744
|
|
|
5775
|
-
return value && isNumeric(value) ?
|
|
5745
|
+
return value && isNumeric(value) ? `(min-width: ${value}px)` : '';
|
|
5776
5746
|
}
|
|
5777
5747
|
|
|
5778
5748
|
var leader = {
|
|
@@ -5790,13 +5760,13 @@
|
|
|
5790
5760
|
},
|
|
5791
5761
|
|
|
5792
5762
|
computed: {
|
|
5793
|
-
fill(
|
|
5763
|
+
fill({ fill }) {
|
|
5794
5764
|
return fill || css(this.$el, '--uk-leader-fill-content');
|
|
5795
5765
|
}
|
|
5796
5766
|
},
|
|
5797
5767
|
|
|
5798
5768
|
connected() {
|
|
5799
|
-
[this.wrapper] = wrapInner(this.$el,
|
|
5769
|
+
[this.wrapper] = wrapInner(this.$el, `<span class="${this.clsWrapper}">`);
|
|
5800
5770
|
},
|
|
5801
5771
|
|
|
5802
5772
|
disconnected() {
|
|
@@ -5814,7 +5784,7 @@
|
|
|
5814
5784
|
};
|
|
5815
5785
|
},
|
|
5816
5786
|
|
|
5817
|
-
write(
|
|
5787
|
+
write({ width, fill, hide }) {
|
|
5818
5788
|
toggleClass(this.wrapper, this.clsHide, hide);
|
|
5819
5789
|
attr(this.wrapper, this.attrFill, new Array(width).join(fill));
|
|
5820
5790
|
},
|
|
@@ -5865,12 +5835,10 @@
|
|
|
5865
5835
|
|
|
5866
5836
|
};
|
|
5867
5837
|
|
|
5868
|
-
function install(
|
|
5838
|
+
function install({ modal }) {
|
|
5869
5839
|
modal.dialog = function (content, options) {
|
|
5870
|
-
const dialog = modal(
|
|
5871
|
-
|
|
5872
|
-
content + "</div> </div>",
|
|
5873
|
-
|
|
5840
|
+
const dialog = modal(
|
|
5841
|
+
`<div class="uk-modal"> <div class="uk-modal-dialog">${content}</div> </div>`,
|
|
5874
5842
|
options);
|
|
5875
5843
|
|
|
5876
5844
|
|
|
@@ -5891,14 +5859,11 @@
|
|
|
5891
5859
|
|
|
5892
5860
|
modal.alert = function (message, options) {
|
|
5893
5861
|
return openDialog(
|
|
5894
|
-
(
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
labels.ok + "</button> </div>";},
|
|
5900
|
-
|
|
5901
|
-
|
|
5862
|
+
({ labels }) => `<div class="uk-modal-body">${
|
|
5863
|
+
isString(message) ? message : html(message)
|
|
5864
|
+
}</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" autofocus>${
|
|
5865
|
+
labels.ok
|
|
5866
|
+
}</button> </div>`,
|
|
5902
5867
|
options,
|
|
5903
5868
|
(deferred) => deferred.resolve());
|
|
5904
5869
|
|
|
@@ -5906,15 +5871,9 @@
|
|
|
5906
5871
|
|
|
5907
5872
|
modal.confirm = function (message, options) {
|
|
5908
5873
|
return openDialog(
|
|
5909
|
-
(
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
labels.cancel + "</button> <button class=\"uk-button uk-button-primary\" autofocus>" +
|
|
5914
|
-
|
|
5915
|
-
labels.ok + "</button> </div> </form>";},
|
|
5916
|
-
|
|
5917
|
-
|
|
5874
|
+
({ labels }) => `<form> <div class="uk-modal-body">${isString(message) ? message : html(message)}</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">${
|
|
5875
|
+
labels.cancel
|
|
5876
|
+
}</button> <button class="uk-button uk-button-primary" autofocus>${labels.ok}</button> </div> </form>`,
|
|
5918
5877
|
options,
|
|
5919
5878
|
(deferred) => deferred.reject());
|
|
5920
5879
|
|
|
@@ -5922,18 +5881,9 @@
|
|
|
5922
5881
|
|
|
5923
5882
|
modal.prompt = function (message, value, options) {
|
|
5924
5883
|
return openDialog(
|
|
5925
|
-
(
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
value || '') + "\" autofocus> </div> <div class=\"uk-modal-footer uk-text-right\"> <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">" +
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
labels.cancel + "</button> <button class=\"uk-button uk-button-primary\">" +
|
|
5933
|
-
|
|
5934
|
-
labels.ok + "</button> </div> </form>";},
|
|
5935
|
-
|
|
5936
|
-
|
|
5884
|
+
({ labels }) => `<form class="uk-form-stacked"> <div class="uk-modal-body"> <label>${isString(message) ? message : html(message)}</label> <input class="uk-input" value="${value || ''}" autofocus> </div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">${
|
|
5885
|
+
labels.cancel
|
|
5886
|
+
}</button> <button class="uk-button uk-button-primary">${labels.ok}</button> </div> </form>`,
|
|
5937
5887
|
options,
|
|
5938
5888
|
(deferred) => deferred.resolve(null),
|
|
5939
5889
|
(dialog) => $('input', dialog.$el).value);
|
|
@@ -6013,12 +5963,12 @@
|
|
|
6013
5963
|
},
|
|
6014
5964
|
|
|
6015
5965
|
computed: {
|
|
6016
|
-
dropbarAnchor(
|
|
5966
|
+
dropbarAnchor({ dropbarAnchor }, $el) {
|
|
6017
5967
|
return query(dropbarAnchor, $el) || $el;
|
|
6018
5968
|
},
|
|
6019
5969
|
|
|
6020
5970
|
dropbar: {
|
|
6021
|
-
get(
|
|
5971
|
+
get({ dropbar }) {
|
|
6022
5972
|
if (!dropbar) {
|
|
6023
5973
|
return null;
|
|
6024
5974
|
}
|
|
@@ -6043,11 +5993,11 @@
|
|
|
6043
5993
|
},
|
|
6044
5994
|
|
|
6045
5995
|
dropdowns: {
|
|
6046
|
-
get(
|
|
6047
|
-
const dropdowns = $$(
|
|
5996
|
+
get({ clsDrop }, $el) {
|
|
5997
|
+
const dropdowns = $$(`.${clsDrop}`, $el);
|
|
6048
5998
|
|
|
6049
5999
|
if (this.dropContainer !== $el) {
|
|
6050
|
-
for (const el of $$(
|
|
6000
|
+
for (const el of $$(`.${clsDrop}`, this.dropContainer)) {var _this$getDropdown;
|
|
6051
6001
|
const target = (_this$getDropdown = this.getDropdown(el)) == null ? void 0 : _this$getDropdown.targetEl;
|
|
6052
6002
|
if (!includes(dropdowns, el) && target && within(target, this.$el)) {
|
|
6053
6003
|
dropdowns.push(el);
|
|
@@ -6066,7 +6016,7 @@
|
|
|
6066
6016
|
...this.$props,
|
|
6067
6017
|
flip: false,
|
|
6068
6018
|
shift: true,
|
|
6069
|
-
pos:
|
|
6019
|
+
pos: `bottom-${this.align}`,
|
|
6070
6020
|
boundary: this.boundary === true ? this.$el : this.boundary
|
|
6071
6021
|
});
|
|
6072
6022
|
|
|
@@ -6076,7 +6026,7 @@
|
|
|
6076
6026
|
},
|
|
6077
6027
|
|
|
6078
6028
|
toggles: {
|
|
6079
|
-
get(
|
|
6029
|
+
get({ dropdown }, $el) {
|
|
6080
6030
|
return $$(dropdown, $el);
|
|
6081
6031
|
},
|
|
6082
6032
|
|
|
@@ -6107,7 +6057,7 @@
|
|
|
6107
6057
|
return this.dropdown;
|
|
6108
6058
|
},
|
|
6109
6059
|
|
|
6110
|
-
handler(
|
|
6060
|
+
handler({ current }) {
|
|
6111
6061
|
const active = this.getActive();
|
|
6112
6062
|
if (
|
|
6113
6063
|
active &&
|
|
@@ -6137,8 +6087,7 @@
|
|
|
6137
6087
|
|
|
6138
6088
|
if (!active || active.targetEl !== current) {
|
|
6139
6089
|
current.click();
|
|
6140
|
-
once(this.dropContainer, 'show', (
|
|
6141
|
-
focusFirstFocusableElement(target));});
|
|
6090
|
+
once(this.dropContainer, 'show', ({ target }) => focusFirstFocusableElement(target));
|
|
6142
6091
|
|
|
6143
6092
|
} else {
|
|
6144
6093
|
focusFirstFocusableElement(active.$el);
|
|
@@ -6157,7 +6106,7 @@
|
|
|
6157
6106
|
},
|
|
6158
6107
|
|
|
6159
6108
|
delegate() {
|
|
6160
|
-
return
|
|
6109
|
+
return `.${this.clsDrop}`;
|
|
6161
6110
|
},
|
|
6162
6111
|
|
|
6163
6112
|
handler(e) {
|
|
@@ -6228,7 +6177,7 @@
|
|
|
6228
6177
|
return this.dropbar;
|
|
6229
6178
|
},
|
|
6230
6179
|
|
|
6231
|
-
handler(
|
|
6180
|
+
handler({ target }) {
|
|
6232
6181
|
if (!this.isDropbarDrop(target)) {
|
|
6233
6182
|
return;
|
|
6234
6183
|
}
|
|
@@ -6237,7 +6186,7 @@
|
|
|
6237
6186
|
after(this.dropbarAnchor, this.dropbar);
|
|
6238
6187
|
}
|
|
6239
6188
|
|
|
6240
|
-
addClass(target, this.clsDrop
|
|
6189
|
+
addClass(target, `${this.clsDrop}-dropbar`);
|
|
6241
6190
|
}
|
|
6242
6191
|
},
|
|
6243
6192
|
|
|
@@ -6252,18 +6201,18 @@
|
|
|
6252
6201
|
return this.dropbar;
|
|
6253
6202
|
},
|
|
6254
6203
|
|
|
6255
|
-
handler(
|
|
6204
|
+
handler({ target }) {
|
|
6256
6205
|
if (!this.isDropbarDrop(target)) {
|
|
6257
6206
|
return;
|
|
6258
6207
|
}
|
|
6259
6208
|
|
|
6260
6209
|
const drop = this.getDropdown(target);
|
|
6261
6210
|
this._observer = observeResize([drop.$el, ...drop.target], () => {
|
|
6262
|
-
const targetOffsets = parents(target,
|
|
6211
|
+
const targetOffsets = parents(target, `.${this.clsDrop}`).
|
|
6263
6212
|
concat(target).
|
|
6264
6213
|
map((el) => offset(el));
|
|
6265
|
-
const minTop = Math.min(...targetOffsets.map((
|
|
6266
|
-
const maxBottom = Math.max(...targetOffsets.map((
|
|
6214
|
+
const minTop = Math.min(...targetOffsets.map(({ top }) => top));
|
|
6215
|
+
const maxBottom = Math.max(...targetOffsets.map(({ bottom }) => bottom));
|
|
6267
6216
|
const dropbarOffset = offset(this.dropbar);
|
|
6268
6217
|
css(this.dropbar, 'top', this.dropbar.offsetTop - (dropbarOffset.top - minTop));
|
|
6269
6218
|
this.transitionTo(
|
|
@@ -6309,7 +6258,7 @@
|
|
|
6309
6258
|
return this.dropbar;
|
|
6310
6259
|
},
|
|
6311
6260
|
|
|
6312
|
-
handler(
|
|
6261
|
+
handler({ target }) {var _this$_observer;
|
|
6313
6262
|
if (!this.isDropbarDrop(target)) {
|
|
6314
6263
|
return;
|
|
6315
6264
|
}
|
|
@@ -6336,7 +6285,7 @@
|
|
|
6336
6285
|
|
|
6337
6286
|
el = oldHeight < newHeight && el;
|
|
6338
6287
|
|
|
6339
|
-
css(el, 'clipPath',
|
|
6288
|
+
css(el, 'clipPath', `polygon(0 0,100% 0,100% ${oldHeight}px,0 ${oldHeight}px)`);
|
|
6340
6289
|
|
|
6341
6290
|
height(dropbar, oldHeight);
|
|
6342
6291
|
|
|
@@ -6346,7 +6295,7 @@
|
|
|
6346
6295
|
Transition.start(
|
|
6347
6296
|
el,
|
|
6348
6297
|
{
|
|
6349
|
-
clipPath:
|
|
6298
|
+
clipPath: `polygon(0 0,100% 0,100% ${newHeight}px,0 ${newHeight}px)`
|
|
6350
6299
|
},
|
|
6351
6300
|
this.duration)]).
|
|
6352
6301
|
|
|
@@ -6435,7 +6384,7 @@
|
|
|
6435
6384
|
// Handle Swipe Gesture
|
|
6436
6385
|
const pos = getEventPos(e);
|
|
6437
6386
|
const target = 'tagName' in e.target ? e.target : parent(e.target);
|
|
6438
|
-
once(document, pointerUp
|
|
6387
|
+
once(document, `${pointerUp} ${pointerCancel} scroll`, (e) => {
|
|
6439
6388
|
const { x, y } = getEventPos(e);
|
|
6440
6389
|
|
|
6441
6390
|
// swipe
|
|
@@ -6445,7 +6394,7 @@
|
|
|
6445
6394
|
{
|
|
6446
6395
|
setTimeout(() => {
|
|
6447
6396
|
trigger(target, 'swipe');
|
|
6448
|
-
trigger(target,
|
|
6397
|
+
trigger(target, `swipe${swipeDirection(pos.x, pos.y, x, y)}`);
|
|
6449
6398
|
});
|
|
6450
6399
|
}
|
|
6451
6400
|
});
|
|
@@ -6492,27 +6441,27 @@
|
|
|
6492
6441
|
},
|
|
6493
6442
|
|
|
6494
6443
|
computed: {
|
|
6495
|
-
clsFlip(
|
|
6444
|
+
clsFlip({ flip, clsFlip }) {
|
|
6496
6445
|
return flip ? clsFlip : '';
|
|
6497
6446
|
},
|
|
6498
6447
|
|
|
6499
|
-
clsOverlay(
|
|
6448
|
+
clsOverlay({ overlay, clsOverlay }) {
|
|
6500
6449
|
return overlay ? clsOverlay : '';
|
|
6501
6450
|
},
|
|
6502
6451
|
|
|
6503
|
-
clsMode(
|
|
6504
|
-
return clsMode
|
|
6452
|
+
clsMode({ mode, clsMode }) {
|
|
6453
|
+
return `${clsMode}-${mode}`;
|
|
6505
6454
|
},
|
|
6506
6455
|
|
|
6507
|
-
clsSidebarAnimation(
|
|
6456
|
+
clsSidebarAnimation({ mode, clsSidebarAnimation }) {
|
|
6508
6457
|
return mode === 'none' || mode === 'reveal' ? '' : clsSidebarAnimation;
|
|
6509
6458
|
},
|
|
6510
6459
|
|
|
6511
|
-
clsContainerAnimation(
|
|
6460
|
+
clsContainerAnimation({ mode, clsContainerAnimation }) {
|
|
6512
6461
|
return mode !== 'push' && mode !== 'reveal' ? '' : clsContainerAnimation;
|
|
6513
6462
|
},
|
|
6514
6463
|
|
|
6515
|
-
transitionElement(
|
|
6464
|
+
transitionElement({ mode }) {
|
|
6516
6465
|
return mode === 'reveal' ? parent(this.panel) : this.panel;
|
|
6517
6466
|
}
|
|
6518
6467
|
},
|
|
@@ -6649,11 +6598,11 @@
|
|
|
6649
6598
|
},
|
|
6650
6599
|
|
|
6651
6600
|
computed: {
|
|
6652
|
-
container(
|
|
6601
|
+
container({ selContainer }, $el) {
|
|
6653
6602
|
return closest($el, selContainer);
|
|
6654
6603
|
},
|
|
6655
6604
|
|
|
6656
|
-
content(
|
|
6605
|
+
content({ selContent }, $el) {
|
|
6657
6606
|
return closest($el, selContent);
|
|
6658
6607
|
}
|
|
6659
6608
|
},
|
|
@@ -6676,7 +6625,7 @@
|
|
|
6676
6625
|
};
|
|
6677
6626
|
},
|
|
6678
6627
|
|
|
6679
|
-
write(
|
|
6628
|
+
write({ max }) {
|
|
6680
6629
|
css(this.$el, { minHeight: this.minHeight, maxHeight: max });
|
|
6681
6630
|
},
|
|
6682
6631
|
|
|
@@ -6816,14 +6765,14 @@
|
|
|
6816
6765
|
|
|
6817
6766
|
computed: {
|
|
6818
6767
|
elements: {
|
|
6819
|
-
get(
|
|
6768
|
+
get({ target }, $el) {
|
|
6820
6769
|
return target ? $$(target, $el) : [$el];
|
|
6821
6770
|
},
|
|
6822
6771
|
|
|
6823
6772
|
watch(elements, prev) {
|
|
6824
6773
|
if (this.hidden) {
|
|
6825
6774
|
// use `opacity:0` instead of `visibility:hidden` to make content focusable with keyboard
|
|
6826
|
-
css(filter(elements,
|
|
6775
|
+
css(filter(elements, `:not(.${this.inViewClass})`), 'opacity', 0);
|
|
6827
6776
|
}
|
|
6828
6777
|
|
|
6829
6778
|
if (!isEqual(elements, prev)) {
|
|
@@ -6963,7 +6912,7 @@
|
|
|
6963
6912
|
immediate: true
|
|
6964
6913
|
},
|
|
6965
6914
|
|
|
6966
|
-
elements(
|
|
6915
|
+
elements({ closest: selector }) {
|
|
6967
6916
|
return closest(this.links, selector || '*');
|
|
6968
6917
|
}
|
|
6969
6918
|
},
|
|
@@ -7003,7 +6952,7 @@
|
|
|
7003
6952
|
return { active };
|
|
7004
6953
|
},
|
|
7005
6954
|
|
|
7006
|
-
write(
|
|
6955
|
+
write({ active }) {
|
|
7007
6956
|
const changed = active !== false && !hasClass(this.elements[active], this.cls);
|
|
7008
6957
|
|
|
7009
6958
|
this.links.forEach((el) => el.blur());
|
|
@@ -7061,7 +7010,7 @@
|
|
|
7061
7010
|
},
|
|
7062
7011
|
|
|
7063
7012
|
computed: {
|
|
7064
|
-
selTarget(
|
|
7013
|
+
selTarget({ selTarget }, $el) {
|
|
7065
7014
|
return selTarget && $(selTarget, $el) || $el;
|
|
7066
7015
|
}
|
|
7067
7016
|
},
|
|
@@ -7142,7 +7091,7 @@
|
|
|
7142
7091
|
|
|
7143
7092
|
update: [
|
|
7144
7093
|
{
|
|
7145
|
-
read(
|
|
7094
|
+
read({ height: height$1, width, margin, sticky }, types) {
|
|
7146
7095
|
this.inactive = !this.matchMedia || !isVisible(this.$el);
|
|
7147
7096
|
|
|
7148
7097
|
if (this.inactive) {
|
|
@@ -7224,18 +7173,20 @@
|
|
|
7224
7173
|
};
|
|
7225
7174
|
},
|
|
7226
7175
|
|
|
7227
|
-
write(
|
|
7228
|
-
if (this.inactive) {
|
|
7176
|
+
write({ height, width, margin, offset, sticky }) {
|
|
7177
|
+
if (this.inactive || sticky || !this.isFixed) {
|
|
7229
7178
|
reset(this.$el);
|
|
7179
|
+
}
|
|
7180
|
+
|
|
7181
|
+
if (this.inactive) {
|
|
7230
7182
|
return;
|
|
7231
7183
|
}
|
|
7232
7184
|
|
|
7233
7185
|
if (sticky) {
|
|
7234
7186
|
height = width = margin = 0;
|
|
7235
7187
|
css(this.$el, { position: 'sticky', top: offset });
|
|
7236
|
-
} else if (!this.isFixed) {
|
|
7237
|
-
reset(this.$el);
|
|
7238
7188
|
}
|
|
7189
|
+
|
|
7239
7190
|
const { placeholder } = this;
|
|
7240
7191
|
|
|
7241
7192
|
css(placeholder, { height, width, margin });
|
|
@@ -7250,14 +7201,14 @@
|
|
|
7250
7201
|
},
|
|
7251
7202
|
|
|
7252
7203
|
{
|
|
7253
|
-
read(
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7204
|
+
read({
|
|
7205
|
+
scroll: prevScroll = 0,
|
|
7206
|
+
dir: prevDir = 'down',
|
|
7207
|
+
overflow,
|
|
7208
|
+
overflowScroll = 0,
|
|
7209
|
+
start,
|
|
7210
|
+
end
|
|
7211
|
+
}) {
|
|
7261
7212
|
const scroll = document.scrollingElement.scrollTop;
|
|
7262
7213
|
const dir = prevScroll <= scroll ? 'down' : 'up';
|
|
7263
7214
|
|
|
@@ -7402,10 +7353,7 @@
|
|
|
7402
7353
|
position = 'absolute';
|
|
7403
7354
|
}
|
|
7404
7355
|
|
|
7405
|
-
css(this.$el, {
|
|
7406
|
-
position,
|
|
7407
|
-
width
|
|
7408
|
-
});
|
|
7356
|
+
css(this.$el, { position, width });
|
|
7409
7357
|
css(this.$el, 'marginTop', 0, 'important');
|
|
7410
7358
|
}
|
|
7411
7359
|
|
|
@@ -7492,7 +7440,7 @@
|
|
|
7492
7440
|
|
|
7493
7441
|
computed: {
|
|
7494
7442
|
connects: {
|
|
7495
|
-
get(
|
|
7443
|
+
get({ connect }, $el) {
|
|
7496
7444
|
return queryAll(connect, $el);
|
|
7497
7445
|
},
|
|
7498
7446
|
|
|
@@ -7523,7 +7471,7 @@
|
|
|
7523
7471
|
},
|
|
7524
7472
|
|
|
7525
7473
|
toggles: {
|
|
7526
|
-
get(
|
|
7474
|
+
get({ toggle }, $el) {
|
|
7527
7475
|
return $$(toggle, $el).filter(
|
|
7528
7476
|
(el) => !matches(el, '.uk-disabled *, .uk-disabled, [disabled]'));
|
|
7529
7477
|
|
|
@@ -7538,8 +7486,7 @@
|
|
|
7538
7486
|
},
|
|
7539
7487
|
|
|
7540
7488
|
children() {
|
|
7541
|
-
return children(this.$el).filter((child) =>
|
|
7542
|
-
this.toggles.some((toggle) => within(toggle, child)));
|
|
7489
|
+
return children(this.$el).filter((child) => this.toggles.some((toggle) => within(toggle, child)));
|
|
7543
7490
|
|
|
7544
7491
|
},
|
|
7545
7492
|
|
|
@@ -7570,7 +7517,7 @@
|
|
|
7570
7517
|
},
|
|
7571
7518
|
|
|
7572
7519
|
delegate() {
|
|
7573
|
-
return
|
|
7520
|
+
return `[${this.attrItem}],[data-${this.attrItem}]`;
|
|
7574
7521
|
},
|
|
7575
7522
|
|
|
7576
7523
|
handler(e) {
|
|
@@ -7590,7 +7537,7 @@
|
|
|
7590
7537
|
return this.connects;
|
|
7591
7538
|
},
|
|
7592
7539
|
|
|
7593
|
-
handler(
|
|
7540
|
+
handler({ type }) {
|
|
7594
7541
|
this.show(endsWith(type, 'Left') ? 'next' : 'previous');
|
|
7595
7542
|
}
|
|
7596
7543
|
}],
|
|
@@ -7611,7 +7558,7 @@
|
|
|
7611
7558
|
});
|
|
7612
7559
|
|
|
7613
7560
|
const animate = prev >= 0 && prev !== next;
|
|
7614
|
-
this.connects.forEach(async (
|
|
7561
|
+
this.connects.forEach(async ({ children }) => {
|
|
7615
7562
|
await this.toggleElement(
|
|
7616
7563
|
toNodes(children).filter((child) => hasClass(child, this.cls)),
|
|
7617
7564
|
false,
|
|
@@ -7673,7 +7620,7 @@
|
|
|
7673
7620
|
|
|
7674
7621
|
computed: {
|
|
7675
7622
|
target: {
|
|
7676
|
-
get(
|
|
7623
|
+
get({ href, target }, $el) {
|
|
7677
7624
|
target = queryAll(target || href, $el);
|
|
7678
7625
|
return target.length && target || [$el];
|
|
7679
7626
|
},
|
|
@@ -7728,7 +7675,7 @@
|
|
|
7728
7675
|
},
|
|
7729
7676
|
|
|
7730
7677
|
{
|
|
7731
|
-
name: pointerEnter
|
|
7678
|
+
name: `${pointerEnter} ${pointerLeave} focus blur`,
|
|
7732
7679
|
|
|
7733
7680
|
filter() {
|
|
7734
7681
|
return includes(this.mode, 'hover');
|
|
@@ -7762,7 +7709,7 @@
|
|
|
7762
7709
|
|
|
7763
7710
|
this._showState = show ? expanded : null;
|
|
7764
7711
|
|
|
7765
|
-
this.toggle(
|
|
7712
|
+
this.toggle(`toggle${show ? 'show' : 'hide'}`);
|
|
7766
7713
|
}
|
|
7767
7714
|
},
|
|
7768
7715
|
|
|
@@ -7815,7 +7762,7 @@
|
|
|
7815
7762
|
return this.target;
|
|
7816
7763
|
},
|
|
7817
7764
|
|
|
7818
|
-
handler(
|
|
7765
|
+
handler({ target, type }) {
|
|
7819
7766
|
this.updateAria(target === this.target[0] && type === 'show');
|
|
7820
7767
|
}
|
|
7821
7768
|
},
|