uikit 3.16.24 → 3.16.25-dev.931f07bf4
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/.eslintrc.json +0 -9
- package/.prettierrc.json +3 -4
- package/CHANGELOG.md +6 -0
- package/build/build.js +2 -2
- package/build/less.js +2 -2
- package/build/prefix.js +8 -7
- package/build/release.js +7 -7
- package/build/scope.js +3 -3
- package/build/scss.js +26 -16
- package/build/util.js +11 -11
- package/dist/css/uikit-core-rtl.css +6 -2
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +6 -2
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +6 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +6 -2
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +2 -2
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +18 -18
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +347 -350
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +349 -352
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +6 -6
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +76 -72
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +37 -37
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +218 -224
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +37 -37
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +265 -271
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +2 -2
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +95 -95
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +2 -2
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +459 -452
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +6832 -6831
- package/dist/js/uikit.min.js +1 -1
- package/package.json +8 -7
- package/src/js/api/app.js +1 -1
- package/src/js/api/boot.js +2 -2
- package/src/js/api/component.js +1 -1
- package/src/js/api/computed.js +2 -2
- package/src/js/api/events.js +2 -2
- package/src/js/api/global.js +3 -3
- package/src/js/api/hooks.js +4 -4
- package/src/js/api/instance.js +3 -3
- package/src/js/api/log.js +1 -1
- package/src/js/api/observables.js +12 -6
- package/src/js/api/observer.js +2 -2
- package/src/js/api/options.js +2 -2
- package/src/js/api/props.js +2 -2
- package/src/js/api/state.js +2 -2
- package/src/js/components/countdown.js +1 -1
- package/src/js/components/filter.js +5 -5
- package/src/js/components/internal/lightbox-animations.js +1 -1
- package/src/js/components/internal/slider-transitioner.js +6 -6
- package/src/js/components/internal/slideshow-animations.js +1 -1
- package/src/js/components/lightbox-panel.js +10 -10
- package/src/js/components/lightbox.js +2 -2
- package/src/js/components/notification.js +4 -4
- package/src/js/components/parallax.js +5 -5
- package/src/js/components/slider-parallax.js +1 -1
- package/src/js/components/slider.js +12 -12
- package/src/js/components/slideshow.js +3 -3
- package/src/js/components/sortable.js +4 -4
- package/src/js/components/tooltip.js +6 -6
- package/src/js/components/upload.js +4 -4
- package/src/js/core/accordion.js +8 -8
- package/src/js/core/alert.js +2 -2
- package/src/js/core/cover.js +1 -1
- package/src/js/core/drop.js +12 -12
- package/src/js/core/dropnav.js +7 -7
- package/src/js/core/form-custom.js +1 -1
- package/src/js/core/grid.js +9 -9
- package/src/js/core/height-match.js +2 -2
- package/src/js/core/height-viewport.js +1 -1
- package/src/js/core/icon.js +23 -23
- package/src/js/core/img.js +2 -2
- package/src/js/core/index.js +16 -14
- package/src/js/core/leader.js +2 -2
- package/src/js/core/modal.js +7 -7
- package/src/js/core/navbar.js +4 -4
- package/src/js/core/offcanvas.js +3 -3
- package/src/js/core/overflow-auto.js +3 -3
- package/src/js/core/responsive.js +3 -3
- package/src/js/core/scrollspy-nav.js +1 -1
- package/src/js/core/scrollspy.js +1 -1
- package/src/js/core/sticky.js +13 -13
- package/src/js/core/svg.js +4 -4
- package/src/js/core/switcher.js +7 -7
- package/src/js/core/tab.js +2 -2
- package/src/js/core/toggle.js +5 -5
- package/src/js/core/video.js +1 -1
- package/src/js/mixin/animate.js +1 -1
- package/src/js/mixin/i18n.js +1 -1
- package/src/js/mixin/internal/animate-fade.js +14 -14
- package/src/js/mixin/internal/animate-slide.js +1 -1
- package/src/js/mixin/internal/scroll.js +1 -1
- package/src/js/mixin/modal.js +15 -12
- package/src/js/mixin/parallax.js +2 -2
- package/src/js/mixin/position.js +2 -2
- package/src/js/mixin/slider-drag.js +1 -1
- package/src/js/mixin/slider-nav.js +8 -14
- package/src/js/mixin/slider.js +9 -9
- package/src/js/mixin/slideshow.js +1 -1
- package/src/js/mixin/togglable.js +4 -4
- package/src/js/uikit-core.js +2 -2
- package/src/js/uikit.js +2 -2
- package/src/js/util/animation.js +8 -8
- package/src/js/util/class.js +1 -1
- package/src/js/util/dimensions.js +5 -5
- package/src/js/util/dom.js +3 -3
- package/src/js/util/event.js +3 -3
- package/src/js/util/filter.js +1 -1
- package/src/js/util/lang.js +4 -4
- package/src/js/util/observer.js +2 -2
- package/src/js/util/player.js +1 -1
- package/src/js/util/position.js +5 -5
- package/src/js/util/selector.js +1 -1
- package/src/js/util/style.js +1 -1
- package/src/js/util/svg.js +2 -2
- package/src/js/util/viewport.js +6 -6
- package/src/less/components/slider.less +8 -2
- package/src/scss/components/inverse.scss +0 -1
- package/src/scss/components/slider.scss +8 -2
- package/src/scss/mixins-theme.scss +560 -552
- package/src/scss/mixins.scss +456 -448
- package/src/scss/variables-theme.scss +2 -2
- package/src/scss/variables.scss +2 -2
- package/tests/js/index.js +7 -7
- package/build/scss/inverse.scss +0 -30
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.25-dev.931f07bf4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
return value === other || isObject(value) && isObject(other) && Object.keys(value).length === Object.keys(other).length && each(value, (val, key) => val === other[key]);
|
|
106
106
|
}
|
|
107
107
|
function swap(value, a, b) {
|
|
108
|
-
return value.replace(new RegExp(
|
|
108
|
+
return value.replace(new RegExp("".concat(a, "|").concat(b), "g"), (match) => match === a ? b : a);
|
|
109
109
|
}
|
|
110
110
|
function last(array) {
|
|
111
111
|
return array[array.length - 1];
|
|
@@ -222,13 +222,55 @@
|
|
|
222
222
|
toNodes(element).forEach((element2) => element2.removeAttribute(name));
|
|
223
223
|
}
|
|
224
224
|
function data(element, attribute) {
|
|
225
|
-
for (const name of [attribute,
|
|
225
|
+
for (const name of [attribute, "data-".concat(attribute)]) {
|
|
226
226
|
if (hasAttr(element, name)) {
|
|
227
227
|
return attr(element, name);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
function addClass(element, ...args) {
|
|
233
|
+
apply$1(element, args, "add");
|
|
234
|
+
}
|
|
235
|
+
function removeClass(element, ...args) {
|
|
236
|
+
apply$1(element, args, "remove");
|
|
237
|
+
}
|
|
238
|
+
function removeClasses(element, cls) {
|
|
239
|
+
attr(
|
|
240
|
+
element,
|
|
241
|
+
"class",
|
|
242
|
+
(value) => (value || "").replace(new RegExp("\\b".concat(cls, "\\b\\s?"), "g"), "")
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
function replaceClass(element, ...args) {
|
|
246
|
+
args[0] && removeClass(element, args[0]);
|
|
247
|
+
args[1] && addClass(element, args[1]);
|
|
248
|
+
}
|
|
249
|
+
function hasClass(element, cls) {
|
|
250
|
+
[cls] = getClasses(cls);
|
|
251
|
+
return !!cls && toNodes(element).some((node) => node.classList.contains(cls));
|
|
252
|
+
}
|
|
253
|
+
function toggleClass(element, cls, force) {
|
|
254
|
+
const classes = getClasses(cls);
|
|
255
|
+
if (!isUndefined(force)) {
|
|
256
|
+
force = !!force;
|
|
257
|
+
}
|
|
258
|
+
for (const node of toNodes(element)) {
|
|
259
|
+
for (const cls2 of classes) {
|
|
260
|
+
node.classList.toggle(cls2, force);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function apply$1(element, args, fn) {
|
|
265
|
+
args = args.reduce((args2, arg) => args2.concat(getClasses(arg)), []);
|
|
266
|
+
for (const node of toNodes(element)) {
|
|
267
|
+
node.classList[fn](...args);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
function getClasses(str) {
|
|
271
|
+
return String(str).split(/[ ,]/).filter(Boolean);
|
|
272
|
+
}
|
|
273
|
+
|
|
232
274
|
const voidElements = {
|
|
233
275
|
area: true,
|
|
234
276
|
base: true,
|
|
@@ -258,7 +300,7 @@
|
|
|
258
300
|
function isInput(element) {
|
|
259
301
|
return toNodes(element).some((element2) => matches(element2, selInput));
|
|
260
302
|
}
|
|
261
|
-
const selFocusable =
|
|
303
|
+
const selFocusable = "".concat(selInput, ",a[href],[tabindex]");
|
|
262
304
|
function isFocusable(element) {
|
|
263
305
|
return matches(element, selFocusable);
|
|
264
306
|
}
|
|
@@ -351,7 +393,7 @@
|
|
|
351
393
|
sel = selectors.slice(1).join(" ");
|
|
352
394
|
}
|
|
353
395
|
if (ctx) {
|
|
354
|
-
selector +=
|
|
396
|
+
selector += "".concat(selector ? "," : "").concat(domPath(ctx), " ").concat(sel);
|
|
355
397
|
}
|
|
356
398
|
}
|
|
357
399
|
context = document;
|
|
@@ -371,12 +413,12 @@
|
|
|
371
413
|
while (element.parentNode) {
|
|
372
414
|
const id = attr(element, "id");
|
|
373
415
|
if (id) {
|
|
374
|
-
names.unshift(
|
|
416
|
+
names.unshift("#".concat(escape(id)));
|
|
375
417
|
break;
|
|
376
418
|
} else {
|
|
377
419
|
let { tagName } = element;
|
|
378
420
|
if (tagName !== "HTML") {
|
|
379
|
-
tagName +=
|
|
421
|
+
tagName += ":nth-child(".concat(index(element) + 1, ")");
|
|
380
422
|
}
|
|
381
423
|
names.unshift(tagName);
|
|
382
424
|
element = element.parentNode;
|
|
@@ -517,7 +559,7 @@
|
|
|
517
559
|
} else {
|
|
518
560
|
element2.style.setProperty(
|
|
519
561
|
property,
|
|
520
|
-
isNumeric(value) && !cssNumber[property] ?
|
|
562
|
+
isNumeric(value) && !cssNumber[property] ? "".concat(value, "px") : value || isNumber(value) ? value : "",
|
|
521
563
|
priority
|
|
522
564
|
);
|
|
523
565
|
}
|
|
@@ -545,55 +587,13 @@
|
|
|
545
587
|
return name;
|
|
546
588
|
}
|
|
547
589
|
for (const prefix of ["webkit", "moz"]) {
|
|
548
|
-
const prefixedName =
|
|
590
|
+
const prefixedName = "-".concat(prefix, "-").concat(name);
|
|
549
591
|
if (prefixedName in style) {
|
|
550
592
|
return prefixedName;
|
|
551
593
|
}
|
|
552
594
|
}
|
|
553
595
|
}
|
|
554
596
|
|
|
555
|
-
function addClass(element, ...args) {
|
|
556
|
-
apply$1(element, args, "add");
|
|
557
|
-
}
|
|
558
|
-
function removeClass(element, ...args) {
|
|
559
|
-
apply$1(element, args, "remove");
|
|
560
|
-
}
|
|
561
|
-
function removeClasses(element, cls) {
|
|
562
|
-
attr(
|
|
563
|
-
element,
|
|
564
|
-
"class",
|
|
565
|
-
(value) => (value || "").replace(new RegExp(`\\b${cls}\\b\\s?`, "g"), "")
|
|
566
|
-
);
|
|
567
|
-
}
|
|
568
|
-
function replaceClass(element, ...args) {
|
|
569
|
-
args[0] && removeClass(element, args[0]);
|
|
570
|
-
args[1] && addClass(element, args[1]);
|
|
571
|
-
}
|
|
572
|
-
function hasClass(element, cls) {
|
|
573
|
-
[cls] = getClasses(cls);
|
|
574
|
-
return !!cls && toNodes(element).some((node) => node.classList.contains(cls));
|
|
575
|
-
}
|
|
576
|
-
function toggleClass(element, cls, force) {
|
|
577
|
-
const classes = getClasses(cls);
|
|
578
|
-
if (!isUndefined(force)) {
|
|
579
|
-
force = !!force;
|
|
580
|
-
}
|
|
581
|
-
for (const node of toNodes(element)) {
|
|
582
|
-
for (const cls2 of classes) {
|
|
583
|
-
node.classList.toggle(cls2, force);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
function apply$1(element, args, fn) {
|
|
588
|
-
args = args.reduce((args2, arg) => args2.concat(getClasses(arg)), []);
|
|
589
|
-
for (const node of toNodes(element)) {
|
|
590
|
-
node.classList[fn](...args);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
function getClasses(str) {
|
|
594
|
-
return String(str).split(/[ ,]/).filter(Boolean);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
597
|
function transition$1(element, props, duration = 400, timing = "linear") {
|
|
598
598
|
duration = Math.round(duration);
|
|
599
599
|
return Promise.all(
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
addClass(element2, "uk-transition");
|
|
625
625
|
css(element2, {
|
|
626
626
|
transitionProperty: Object.keys(props).map(propName).join(","),
|
|
627
|
-
transitionDuration:
|
|
627
|
+
transitionDuration: "".concat(duration, "ms"),
|
|
628
628
|
transitionTimingFunction: timing,
|
|
629
629
|
...props
|
|
630
630
|
});
|
|
@@ -660,21 +660,21 @@
|
|
|
660
660
|
clearTimeout(timer);
|
|
661
661
|
type === "animationcanceled" ? reject() : resolve(element2);
|
|
662
662
|
css(element2, "animationDuration", "");
|
|
663
|
-
removeClasses(element2,
|
|
663
|
+
removeClasses(element2, "".concat(animationPrefix, "\\S*"));
|
|
664
664
|
},
|
|
665
665
|
{ self: true }
|
|
666
666
|
);
|
|
667
|
-
css(element2, "animationDuration",
|
|
667
|
+
css(element2, "animationDuration", "".concat(duration, "ms"));
|
|
668
668
|
addClass(element2, animation, animationPrefix + (out ? "leave" : "enter"));
|
|
669
669
|
if (startsWith(animation, animationPrefix)) {
|
|
670
|
-
origin && addClass(element2,
|
|
671
|
-
out && addClass(element2,
|
|
670
|
+
origin && addClass(element2, "uk-transform-origin-".concat(origin));
|
|
671
|
+
out && addClass(element2, "".concat(animationPrefix, "reverse"));
|
|
672
672
|
}
|
|
673
673
|
})
|
|
674
674
|
)
|
|
675
675
|
);
|
|
676
676
|
}
|
|
677
|
-
const inProgressRe = new RegExp(
|
|
677
|
+
const inProgressRe = new RegExp("".concat(animationPrefix, "(enter|leave)"));
|
|
678
678
|
const Animation = {
|
|
679
679
|
in: animate$2,
|
|
680
680
|
out(element, animation, duration, origin) {
|
|
@@ -842,8 +842,8 @@
|
|
|
842
842
|
element = toNode(element);
|
|
843
843
|
const offset2 = [element.offsetTop, element.offsetLeft];
|
|
844
844
|
while (element = element.offsetParent) {
|
|
845
|
-
offset2[0] += element.offsetTop + toFloat(css(element,
|
|
846
|
-
offset2[1] += element.offsetLeft + toFloat(css(element,
|
|
845
|
+
offset2[0] += element.offsetTop + toFloat(css(element, "borderTopWidth"));
|
|
846
|
+
offset2[1] += element.offsetLeft + toFloat(css(element, "borderLeftWidth"));
|
|
847
847
|
if (css(element, "position") === "fixed") {
|
|
848
848
|
const win = toWindow(element);
|
|
849
849
|
offset2[0] += win.scrollY;
|
|
@@ -860,15 +860,15 @@
|
|
|
860
860
|
return (element, value) => {
|
|
861
861
|
if (isUndefined(value)) {
|
|
862
862
|
if (isWindow(element)) {
|
|
863
|
-
return element[
|
|
863
|
+
return element["inner".concat(propName)];
|
|
864
864
|
}
|
|
865
865
|
if (isDocument(element)) {
|
|
866
866
|
const doc = element.documentElement;
|
|
867
|
-
return Math.max(doc[
|
|
867
|
+
return Math.max(doc["offset".concat(propName)], doc["scroll".concat(propName)]);
|
|
868
868
|
}
|
|
869
869
|
element = toNode(element);
|
|
870
870
|
value = css(element, prop);
|
|
871
|
-
value = value === "auto" ? element[
|
|
871
|
+
value = value === "auto" ? element["offset".concat(propName)] : toFloat(value) || 0;
|
|
872
872
|
return value - boxModelAdjust(element, prop);
|
|
873
873
|
} else {
|
|
874
874
|
return css(
|
|
@@ -882,7 +882,7 @@
|
|
|
882
882
|
function boxModelAdjust(element, prop, sizing = "border-box") {
|
|
883
883
|
return css(element, "boxSizing") === sizing ? sumBy(
|
|
884
884
|
dirs$1[prop].map(ucfirst),
|
|
885
|
-
(prop2) => toFloat(css(element,
|
|
885
|
+
(prop2) => toFloat(css(element, "padding".concat(prop2))) + toFloat(css(element, "border".concat(prop2, "Width")))
|
|
886
886
|
) : 0;
|
|
887
887
|
}
|
|
888
888
|
function flipPosition(pos) {
|
|
@@ -902,7 +902,7 @@
|
|
|
902
902
|
return sumBy(parseCalc(value), (value2) => {
|
|
903
903
|
const unit = parseUnit(value2);
|
|
904
904
|
return unit ? percent(
|
|
905
|
-
unit === "vh" ? getViewportHeight() : unit === "vw" ? width(toWindow(element)) : offsetDim ? element[
|
|
905
|
+
unit === "vh" ? getViewportHeight() : unit === "vw" ? width(toWindow(element)) : offsetDim ? element["offset".concat(ucfirst(property))] : dimensions(element)[property],
|
|
906
906
|
value2
|
|
907
907
|
) : value2;
|
|
908
908
|
});
|
|
@@ -1175,7 +1175,7 @@
|
|
|
1175
1175
|
} catch (e) {
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
1178
|
-
el.src =
|
|
1178
|
+
el.src = "".concat(el.src).concat(includes(el.src, "?") ? "&" : "?").concat(youtube ? "enablejsapi=1" : "api=1&player_id=".concat(id));
|
|
1179
1179
|
}).then(() => clearInterval(poller));
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
@@ -1300,10 +1300,10 @@
|
|
|
1300
1300
|
if (isWindow(viewportElement)) {
|
|
1301
1301
|
viewportElement = documentElement;
|
|
1302
1302
|
} else {
|
|
1303
|
-
rect[start] += toFloat(css(viewportElement,
|
|
1303
|
+
rect[start] += toFloat(css(viewportElement, "border-".concat(start, "-width")));
|
|
1304
1304
|
}
|
|
1305
1305
|
const subpixel = rect[prop] % 1;
|
|
1306
|
-
rect[prop] = rect[dir] = viewportElement[
|
|
1306
|
+
rect[prop] = rect[dir] = viewportElement["client".concat(ucfirst(prop))] - (subpixel ? subpixel < 0.5 ? -subpixel : 1 - subpixel : 0);
|
|
1307
1307
|
rect[end] = rect[prop] + rect[start];
|
|
1308
1308
|
}
|
|
1309
1309
|
return rect;
|
|
@@ -1424,9 +1424,9 @@
|
|
|
1424
1424
|
const [prop, axis, start, end] = dirs[i];
|
|
1425
1425
|
const [scrollElement] = commonScrollParents(element, target);
|
|
1426
1426
|
const viewport = offsetViewport(scrollElement);
|
|
1427
|
-
if (["auto", "scroll"].includes(css(scrollElement,
|
|
1428
|
-
viewport[start] -= scrollElement[
|
|
1429
|
-
viewport[end] = viewport[start] + scrollElement[
|
|
1427
|
+
if (["auto", "scroll"].includes(css(scrollElement, "overflow-".concat(axis)))) {
|
|
1428
|
+
viewport[start] -= scrollElement["scroll".concat(ucfirst(start))];
|
|
1429
|
+
viewport[end] = viewport[start] + scrollElement["scroll".concat(ucfirst(prop))];
|
|
1430
1430
|
}
|
|
1431
1431
|
viewport[start] += viewportOffset;
|
|
1432
1432
|
viewport[end] -= viewportOffset;
|
|
@@ -1636,30 +1636,6 @@
|
|
|
1636
1636
|
wrapInner: wrapInner
|
|
1637
1637
|
});
|
|
1638
1638
|
|
|
1639
|
-
function initWatches(instance) {
|
|
1640
|
-
instance._watches = [];
|
|
1641
|
-
for (const watches of instance.$options.watch || []) {
|
|
1642
|
-
for (const [name, watch] of Object.entries(watches)) {
|
|
1643
|
-
registerWatch(instance, watch, name);
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
instance._initial = true;
|
|
1647
|
-
}
|
|
1648
|
-
function registerWatch(instance, watch, name) {
|
|
1649
|
-
instance._watches.push({
|
|
1650
|
-
name,
|
|
1651
|
-
...isPlainObject(watch) ? watch : { handler: watch }
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
function runWatches(instance, values) {
|
|
1655
|
-
for (const { name, handler, immediate = true } of instance._watches) {
|
|
1656
|
-
if (instance._initial && immediate || hasOwn(values, name) && !isEqual(values[name], instance[name])) {
|
|
1657
|
-
handler.call(instance, instance[name], values[name]);
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
instance._initial = false;
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
1639
|
function initUpdates(instance) {
|
|
1664
1640
|
instance._data = {};
|
|
1665
1641
|
instance._updates = [...instance.$options.update || []];
|
|
@@ -1710,6 +1686,30 @@
|
|
|
1710
1686
|
}
|
|
1711
1687
|
}
|
|
1712
1688
|
|
|
1689
|
+
function initWatches(instance) {
|
|
1690
|
+
instance._watches = [];
|
|
1691
|
+
for (const watches of instance.$options.watch || []) {
|
|
1692
|
+
for (const [name, watch] of Object.entries(watches)) {
|
|
1693
|
+
registerWatch(instance, watch, name);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
instance._initial = true;
|
|
1697
|
+
}
|
|
1698
|
+
function registerWatch(instance, watch, name) {
|
|
1699
|
+
instance._watches.push({
|
|
1700
|
+
name,
|
|
1701
|
+
...isPlainObject(watch) ? watch : { handler: watch }
|
|
1702
|
+
});
|
|
1703
|
+
}
|
|
1704
|
+
function runWatches(instance, values) {
|
|
1705
|
+
for (const { name, handler, immediate = true } of instance._watches) {
|
|
1706
|
+
if (instance._initial && immediate || hasOwn(values, name) && !isEqual(values[name], instance[name])) {
|
|
1707
|
+
handler.call(instance, instance[name], values[name]);
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
instance._initial = false;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
1713
|
function initComputed(instance) {
|
|
1714
1714
|
const { computed } = instance.$options;
|
|
1715
1715
|
instance._computed = {};
|
|
@@ -1839,7 +1839,7 @@
|
|
|
1839
1839
|
if (filter && !filter.call(instance, instance)) {
|
|
1840
1840
|
return;
|
|
1841
1841
|
}
|
|
1842
|
-
const key =
|
|
1842
|
+
const key = "_observe".concat(instance._observers.length);
|
|
1843
1843
|
if (isFunction(target) && !hasOwn(instance, key)) {
|
|
1844
1844
|
registerComputed(instance, key, () => target.call(instance, instance));
|
|
1845
1845
|
}
|
|
@@ -2036,7 +2036,7 @@
|
|
|
2036
2036
|
});
|
|
2037
2037
|
observer.observe(el, {
|
|
2038
2038
|
attributes: true,
|
|
2039
|
-
attributeFilter: filter.concat(filter.map((key) =>
|
|
2039
|
+
attributeFilter: filter.concat(filter.map((key) => "data-".concat(key)))
|
|
2040
2040
|
});
|
|
2041
2041
|
registerObserver(instance, observer);
|
|
2042
2042
|
}
|
|
@@ -2128,7 +2128,7 @@
|
|
|
2128
2128
|
};
|
|
2129
2129
|
App.util = util;
|
|
2130
2130
|
App.options = {};
|
|
2131
|
-
App.version = "3.16.
|
|
2131
|
+
App.version = "3.16.25-dev.931f07bf4";
|
|
2132
2132
|
|
|
2133
2133
|
const PREFIX = "uk-";
|
|
2134
2134
|
const DATA = "__uikit__";
|
|
@@ -2149,7 +2149,7 @@
|
|
|
2149
2149
|
opt.name = name;
|
|
2150
2150
|
(_a = opt.install) == null ? void 0 : _a.call(opt, App, opt, name);
|
|
2151
2151
|
if (App._initialized && !opt.functional) {
|
|
2152
|
-
requestAnimationFrame(() => createComponent(name,
|
|
2152
|
+
requestAnimationFrame(() => createComponent(name, "[".concat(id, "],[data-").concat(id, "]")));
|
|
2153
2153
|
}
|
|
2154
2154
|
return components$1[id] = opt;
|
|
2155
2155
|
}
|
|
@@ -2188,6 +2188,78 @@
|
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
|
+
function boot(App) {
|
|
2192
|
+
if (inBrowser && window.MutationObserver) {
|
|
2193
|
+
if (document.body) {
|
|
2194
|
+
requestAnimationFrame(() => init(App));
|
|
2195
|
+
} else {
|
|
2196
|
+
new MutationObserver((records, observer) => {
|
|
2197
|
+
if (document.body) {
|
|
2198
|
+
init(App);
|
|
2199
|
+
observer.disconnect();
|
|
2200
|
+
}
|
|
2201
|
+
}).observe(document.documentElement, { childList: true });
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
function init(App) {
|
|
2206
|
+
trigger(document, "uikit:init", App);
|
|
2207
|
+
if (document.body) {
|
|
2208
|
+
apply(document.body, connect);
|
|
2209
|
+
}
|
|
2210
|
+
new MutationObserver((records) => records.forEach(applyChildListMutation)).observe(document, {
|
|
2211
|
+
childList: true,
|
|
2212
|
+
subtree: true
|
|
2213
|
+
});
|
|
2214
|
+
new MutationObserver((records) => records.forEach(applyAttributeMutation)).observe(document, {
|
|
2215
|
+
attributes: true,
|
|
2216
|
+
subtree: true
|
|
2217
|
+
});
|
|
2218
|
+
App._initialized = true;
|
|
2219
|
+
}
|
|
2220
|
+
function applyChildListMutation({ addedNodes, removedNodes }) {
|
|
2221
|
+
for (const node of addedNodes) {
|
|
2222
|
+
apply(node, connect);
|
|
2223
|
+
}
|
|
2224
|
+
for (const node of removedNodes) {
|
|
2225
|
+
apply(node, disconnect);
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
function applyAttributeMutation({ target, attributeName }) {
|
|
2229
|
+
var _a;
|
|
2230
|
+
const name = getComponentName(attributeName);
|
|
2231
|
+
if (name) {
|
|
2232
|
+
if (hasAttr(target, attributeName)) {
|
|
2233
|
+
createComponent(name, target);
|
|
2234
|
+
return;
|
|
2235
|
+
}
|
|
2236
|
+
(_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
function connect(node) {
|
|
2240
|
+
const components2 = getComponents(node);
|
|
2241
|
+
for (const name in getComponents(node)) {
|
|
2242
|
+
callConnected(components2[name]);
|
|
2243
|
+
}
|
|
2244
|
+
for (const attributeName of node.getAttributeNames()) {
|
|
2245
|
+
const name = getComponentName(attributeName);
|
|
2246
|
+
name && createComponent(name, node);
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
function disconnect(node) {
|
|
2250
|
+
const components2 = getComponents(node);
|
|
2251
|
+
for (const name in getComponents(node)) {
|
|
2252
|
+
callDisconnected(components2[name]);
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
function getComponentName(attribute) {
|
|
2256
|
+
if (startsWith(attribute, "data-")) {
|
|
2257
|
+
attribute = attribute.slice(5);
|
|
2258
|
+
}
|
|
2259
|
+
const cmp = components$1[attribute];
|
|
2260
|
+
return cmp && (isPlainObject(cmp) ? cmp : cmp.options).name;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2191
2263
|
function globalApi(App) {
|
|
2192
2264
|
App.component = component;
|
|
2193
2265
|
App.getComponents = getComponents;
|
|
@@ -2288,9 +2360,9 @@
|
|
|
2288
2360
|
if (el.id) {
|
|
2289
2361
|
return el.id;
|
|
2290
2362
|
}
|
|
2291
|
-
let id =
|
|
2292
|
-
if ($(
|
|
2293
|
-
id = generateId(instance, el,
|
|
2363
|
+
let id = "".concat(instance.$options.id, "-").concat(instance._uid).concat(postfix);
|
|
2364
|
+
if ($("#".concat(id))) {
|
|
2365
|
+
id = generateId(instance, el, "".concat(postfix, "-2"));
|
|
2294
2366
|
}
|
|
2295
2367
|
return id;
|
|
2296
2368
|
}
|
|
@@ -2298,76 +2370,90 @@
|
|
|
2298
2370
|
globalApi(App);
|
|
2299
2371
|
instanceApi(App);
|
|
2300
2372
|
|
|
2301
|
-
function
|
|
2302
|
-
|
|
2303
|
-
if (document.body) {
|
|
2304
|
-
requestAnimationFrame(() => init(App));
|
|
2305
|
-
} else {
|
|
2306
|
-
new MutationObserver((records, observer) => {
|
|
2307
|
-
if (document.body) {
|
|
2308
|
-
init(App);
|
|
2309
|
-
observer.disconnect();
|
|
2310
|
-
}
|
|
2311
|
-
}).observe(document.documentElement, { childList: true });
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2373
|
+
function resize(options) {
|
|
2374
|
+
return observe(observeResize, options, "resize");
|
|
2314
2375
|
}
|
|
2315
|
-
function
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2376
|
+
function intersection(options) {
|
|
2377
|
+
return observe(observeIntersection, options);
|
|
2378
|
+
}
|
|
2379
|
+
function mutation(options) {
|
|
2380
|
+
return observe(observeMutation, options);
|
|
2381
|
+
}
|
|
2382
|
+
function lazyload(options = {}) {
|
|
2383
|
+
return intersection({
|
|
2384
|
+
handler: function(entries, observer) {
|
|
2385
|
+
const { targets = this.$el, preload = 5 } = options;
|
|
2386
|
+
for (const el of toNodes(isFunction(targets) ? targets(this) : targets)) {
|
|
2387
|
+
$$('[loading="lazy"]', el).slice(0, preload - 1).forEach((el2) => removeAttr(el2, "loading"));
|
|
2388
|
+
}
|
|
2389
|
+
for (const el of entries.filter(({ isIntersecting }) => isIntersecting).map(({ target }) => target)) {
|
|
2390
|
+
observer.unobserve(el);
|
|
2391
|
+
}
|
|
2392
|
+
},
|
|
2393
|
+
...options
|
|
2327
2394
|
});
|
|
2328
|
-
App._initialized = true;
|
|
2329
2395
|
}
|
|
2330
|
-
function
|
|
2331
|
-
|
|
2332
|
-
apply(node, connect);
|
|
2333
|
-
}
|
|
2334
|
-
for (const node of removedNodes) {
|
|
2335
|
-
apply(node, disconnect);
|
|
2336
|
-
}
|
|
2396
|
+
function viewport() {
|
|
2397
|
+
return observe((target, handler) => observeViewportResize(handler));
|
|
2337
2398
|
}
|
|
2338
|
-
function
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
|
|
2399
|
+
function scroll$1(options) {
|
|
2400
|
+
return observe(
|
|
2401
|
+
(target, handler) => ({
|
|
2402
|
+
disconnect: on(toScrollTargets(target), "scroll", handler, {
|
|
2403
|
+
passive: true,
|
|
2404
|
+
capture: true
|
|
2405
|
+
})
|
|
2406
|
+
}),
|
|
2407
|
+
options,
|
|
2408
|
+
"scroll"
|
|
2409
|
+
);
|
|
2348
2410
|
}
|
|
2349
|
-
function
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2411
|
+
function swipe(options) {
|
|
2412
|
+
return {
|
|
2413
|
+
observe(target, handler) {
|
|
2414
|
+
return {
|
|
2415
|
+
observe: noop,
|
|
2416
|
+
unobserve: noop,
|
|
2417
|
+
disconnect: on(target, pointerDown, handler, { passive: true })
|
|
2418
|
+
};
|
|
2419
|
+
},
|
|
2420
|
+
handler(e) {
|
|
2421
|
+
if (!isTouch(e)) {
|
|
2422
|
+
return;
|
|
2423
|
+
}
|
|
2424
|
+
const pos = getEventPos(e);
|
|
2425
|
+
const target = "tagName" in e.target ? e.target : parent(e.target);
|
|
2426
|
+
once(document, "".concat(pointerUp, " ").concat(pointerCancel, " scroll"), (e2) => {
|
|
2427
|
+
const { x, y } = getEventPos(e2);
|
|
2428
|
+
if (e2.type !== "scroll" && target && x && Math.abs(pos.x - x) > 100 || y && Math.abs(pos.y - y) > 100) {
|
|
2429
|
+
setTimeout(() => {
|
|
2430
|
+
trigger(target, "swipe");
|
|
2431
|
+
trigger(target, "swipe".concat(swipeDirection(pos.x, pos.y, x, y)));
|
|
2432
|
+
});
|
|
2433
|
+
}
|
|
2434
|
+
});
|
|
2435
|
+
},
|
|
2436
|
+
...options
|
|
2437
|
+
};
|
|
2358
2438
|
}
|
|
2359
|
-
function
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2439
|
+
function observe(observe2, options, emit) {
|
|
2440
|
+
return {
|
|
2441
|
+
observe: observe2,
|
|
2442
|
+
handler() {
|
|
2443
|
+
this.$emit(emit);
|
|
2444
|
+
},
|
|
2445
|
+
...options
|
|
2446
|
+
};
|
|
2364
2447
|
}
|
|
2365
|
-
function
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2448
|
+
function swipeDirection(x1, y1, x2, y2) {
|
|
2449
|
+
return Math.abs(x1 - x2) >= Math.abs(y1 - y2) ? x1 - x2 > 0 ? "Left" : "Right" : y1 - y2 > 0 ? "Up" : "Down";
|
|
2450
|
+
}
|
|
2451
|
+
function toScrollTargets(elements) {
|
|
2452
|
+
return toNodes(elements).map((node) => {
|
|
2453
|
+
const { ownerDocument } = node;
|
|
2454
|
+
const parent2 = scrollParent(node, true);
|
|
2455
|
+
return parent2 === ownerDocument.scrollingElement ? ownerDocument : parent2;
|
|
2456
|
+
});
|
|
2371
2457
|
}
|
|
2372
2458
|
|
|
2373
2459
|
var Class = {
|
|
@@ -2409,7 +2495,7 @@
|
|
|
2409
2495
|
await Promise.all(
|
|
2410
2496
|
toNodes(targets).map((el) => {
|
|
2411
2497
|
const show = isBoolean(toggle) ? toggle : !this.isToggled(el);
|
|
2412
|
-
if (!trigger(el,
|
|
2498
|
+
if (!trigger(el, "before".concat(show ? "show" : "hide"), [this])) {
|
|
2413
2499
|
return Promise.reject();
|
|
2414
2500
|
}
|
|
2415
2501
|
const promise = (isFunction(animate) ? animate : animate === false || !this.hasAnimation ? toggleInstant : this.hasTransition ? toggleTransition : toggleAnimation)(el, show, this);
|
|
@@ -2471,8 +2557,8 @@
|
|
|
2471
2557
|
const end = dir[1] === startProp;
|
|
2472
2558
|
const props = ["width", "height"];
|
|
2473
2559
|
const dimProp = props[dirs.indexOf(dir)];
|
|
2474
|
-
const marginProp =
|
|
2475
|
-
const marginStartProp =
|
|
2560
|
+
const marginProp = "margin-".concat(dir[0]);
|
|
2561
|
+
const marginStartProp = "margin-".concat(startProp);
|
|
2476
2562
|
let currentDim = dimensions(el)[dimProp];
|
|
2477
2563
|
const inProgress = Transition.inProgress(el);
|
|
2478
2564
|
await Transition.cancel(el);
|
|
@@ -2532,128 +2618,46 @@
|
|
|
2532
2618
|
const endProps = { [dimProp]: show ? endDim : 0 };
|
|
2533
2619
|
if (end) {
|
|
2534
2620
|
css(el, marginProp, endDim - currentDim + currentMargin);
|
|
2535
|
-
endProps[marginProp] = show ? currentMargin : endDim + currentMargin;
|
|
2536
|
-
}
|
|
2537
|
-
if (!end ^ mode === "reveal") {
|
|
2538
|
-
css(wrapper, marginProp, -endDim + currentDim);
|
|
2539
|
-
Transition.start(wrapper, { [marginProp]: show ? 0 : -endDim }, duration, transition);
|
|
2540
|
-
}
|
|
2541
|
-
try {
|
|
2542
|
-
await Transition.start(el, endProps, duration, transition);
|
|
2543
|
-
} finally {
|
|
2544
|
-
css(el, prevProps);
|
|
2545
|
-
unwrap(wrapper.firstChild);
|
|
2546
|
-
if (!show) {
|
|
2547
|
-
_toggle(el, false);
|
|
2548
|
-
}
|
|
2549
|
-
}
|
|
2550
|
-
}
|
|
2551
|
-
function toggleAnimation(el, show, cmp) {
|
|
2552
|
-
Animation.cancel(el);
|
|
2553
|
-
const { animation, duration, _toggle } = cmp;
|
|
2554
|
-
if (show) {
|
|
2555
|
-
_toggle(el, true);
|
|
2556
|
-
return Animation.in(el, animation[0], duration, cmp.origin);
|
|
2557
|
-
}
|
|
2558
|
-
return Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(
|
|
2559
|
-
() => _toggle(el, false)
|
|
2560
|
-
);
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
const keyMap = {
|
|
2564
|
-
TAB: 9,
|
|
2565
|
-
ESC: 27,
|
|
2566
|
-
SPACE: 32,
|
|
2567
|
-
END: 35,
|
|
2568
|
-
HOME: 36,
|
|
2569
|
-
LEFT: 37,
|
|
2570
|
-
UP: 38,
|
|
2571
|
-
RIGHT: 39,
|
|
2572
|
-
DOWN: 40
|
|
2573
|
-
};
|
|
2574
|
-
|
|
2575
|
-
function resize(options) {
|
|
2576
|
-
return observe(observeResize, options, "resize");
|
|
2577
|
-
}
|
|
2578
|
-
function intersection(options) {
|
|
2579
|
-
return observe(observeIntersection, options);
|
|
2580
|
-
}
|
|
2581
|
-
function mutation(options) {
|
|
2582
|
-
return observe(observeMutation, options);
|
|
2583
|
-
}
|
|
2584
|
-
function lazyload(options = {}) {
|
|
2585
|
-
return intersection({
|
|
2586
|
-
handler: function(entries, observer) {
|
|
2587
|
-
const { targets = this.$el, preload = 5 } = options;
|
|
2588
|
-
for (const el of toNodes(isFunction(targets) ? targets(this) : targets)) {
|
|
2589
|
-
$$('[loading="lazy"]', el).slice(0, preload - 1).forEach((el2) => removeAttr(el2, "loading"));
|
|
2590
|
-
}
|
|
2591
|
-
for (const el of entries.filter(({ isIntersecting }) => isIntersecting).map(({ target }) => target)) {
|
|
2592
|
-
observer.unobserve(el);
|
|
2593
|
-
}
|
|
2594
|
-
},
|
|
2595
|
-
...options
|
|
2596
|
-
});
|
|
2597
|
-
}
|
|
2598
|
-
function viewport() {
|
|
2599
|
-
return observe((target, handler) => observeViewportResize(handler));
|
|
2600
|
-
}
|
|
2601
|
-
function scroll$1(options) {
|
|
2602
|
-
return observe(
|
|
2603
|
-
(target, handler) => ({
|
|
2604
|
-
disconnect: on(target, "scroll", handler, {
|
|
2605
|
-
passive: true,
|
|
2606
|
-
capture: true
|
|
2607
|
-
})
|
|
2608
|
-
}),
|
|
2609
|
-
{
|
|
2610
|
-
target: () => document,
|
|
2611
|
-
...options
|
|
2612
|
-
},
|
|
2613
|
-
"scroll"
|
|
2614
|
-
);
|
|
2615
|
-
}
|
|
2616
|
-
function swipe(options) {
|
|
2617
|
-
return {
|
|
2618
|
-
observe(target, handler) {
|
|
2619
|
-
return {
|
|
2620
|
-
observe: noop,
|
|
2621
|
-
unobserve: noop,
|
|
2622
|
-
disconnect: on(target, pointerDown, handler, { passive: true })
|
|
2623
|
-
};
|
|
2624
|
-
},
|
|
2625
|
-
handler(e) {
|
|
2626
|
-
if (!isTouch(e)) {
|
|
2627
|
-
return;
|
|
2628
|
-
}
|
|
2629
|
-
const pos = getEventPos(e);
|
|
2630
|
-
const target = "tagName" in e.target ? e.target : parent(e.target);
|
|
2631
|
-
once(document, `${pointerUp} ${pointerCancel} scroll`, (e2) => {
|
|
2632
|
-
const { x, y } = getEventPos(e2);
|
|
2633
|
-
if (e2.type !== "scroll" && target && x && Math.abs(pos.x - x) > 100 || y && Math.abs(pos.y - y) > 100) {
|
|
2634
|
-
setTimeout(() => {
|
|
2635
|
-
trigger(target, "swipe");
|
|
2636
|
-
trigger(target, `swipe${swipeDirection(pos.x, pos.y, x, y)}`);
|
|
2637
|
-
});
|
|
2638
|
-
}
|
|
2639
|
-
});
|
|
2640
|
-
},
|
|
2641
|
-
...options
|
|
2642
|
-
};
|
|
2643
|
-
}
|
|
2644
|
-
function observe(observe2, options, emit) {
|
|
2645
|
-
return {
|
|
2646
|
-
observe: observe2,
|
|
2647
|
-
handler() {
|
|
2648
|
-
this.$emit(emit);
|
|
2649
|
-
},
|
|
2650
|
-
...options
|
|
2651
|
-
};
|
|
2621
|
+
endProps[marginProp] = show ? currentMargin : endDim + currentMargin;
|
|
2622
|
+
}
|
|
2623
|
+
if (!end ^ mode === "reveal") {
|
|
2624
|
+
css(wrapper, marginProp, -endDim + currentDim);
|
|
2625
|
+
Transition.start(wrapper, { [marginProp]: show ? 0 : -endDim }, duration, transition);
|
|
2626
|
+
}
|
|
2627
|
+
try {
|
|
2628
|
+
await Transition.start(el, endProps, duration, transition);
|
|
2629
|
+
} finally {
|
|
2630
|
+
css(el, prevProps);
|
|
2631
|
+
unwrap(wrapper.firstChild);
|
|
2632
|
+
if (!show) {
|
|
2633
|
+
_toggle(el, false);
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2652
2636
|
}
|
|
2653
|
-
function
|
|
2654
|
-
|
|
2637
|
+
function toggleAnimation(el, show, cmp) {
|
|
2638
|
+
Animation.cancel(el);
|
|
2639
|
+
const { animation, duration, _toggle } = cmp;
|
|
2640
|
+
if (show) {
|
|
2641
|
+
_toggle(el, true);
|
|
2642
|
+
return Animation.in(el, animation[0], duration, cmp.origin);
|
|
2643
|
+
}
|
|
2644
|
+
return Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(
|
|
2645
|
+
() => _toggle(el, false)
|
|
2646
|
+
);
|
|
2655
2647
|
}
|
|
2656
2648
|
|
|
2649
|
+
const keyMap = {
|
|
2650
|
+
TAB: 9,
|
|
2651
|
+
ESC: 27,
|
|
2652
|
+
SPACE: 32,
|
|
2653
|
+
END: 35,
|
|
2654
|
+
HOME: 36,
|
|
2655
|
+
LEFT: 37,
|
|
2656
|
+
UP: 38,
|
|
2657
|
+
RIGHT: 39,
|
|
2658
|
+
DOWN: 40
|
|
2659
|
+
};
|
|
2660
|
+
|
|
2657
2661
|
var Accordion = {
|
|
2658
2662
|
mixins: [Class, Togglable],
|
|
2659
2663
|
props: {
|
|
@@ -2720,7 +2724,7 @@
|
|
|
2720
2724
|
{
|
|
2721
2725
|
name: "click keydown",
|
|
2722
2726
|
delegate() {
|
|
2723
|
-
return
|
|
2727
|
+
return "".concat(this.targets, " ").concat(this.$props.toggle);
|
|
2724
2728
|
},
|
|
2725
2729
|
async handler(e) {
|
|
2726
2730
|
var _a;
|
|
@@ -2746,15 +2750,15 @@
|
|
|
2746
2750
|
}
|
|
2747
2751
|
],
|
|
2748
2752
|
update() {
|
|
2749
|
-
const activeItems = filter(this.items,
|
|
2753
|
+
const activeItems = filter(this.items, ".".concat(this.clsOpen));
|
|
2750
2754
|
for (const index2 in this.items) {
|
|
2751
2755
|
const toggle = this.toggles[index2];
|
|
2752
2756
|
const content = this.contents[index2];
|
|
2753
2757
|
if (!toggle || !content) {
|
|
2754
2758
|
continue;
|
|
2755
2759
|
}
|
|
2756
|
-
toggle.id = generateId(this, toggle,
|
|
2757
|
-
content.id = generateId(this, content,
|
|
2760
|
+
toggle.id = generateId(this, toggle, "-title-".concat(index2));
|
|
2761
|
+
content.id = generateId(this, content, "-content-".concat(index2));
|
|
2758
2762
|
const active = includes(activeItems, this.items[index2]);
|
|
2759
2763
|
attr(toggle, {
|
|
2760
2764
|
role: isTag(toggle, "a") ? "button" : null,
|
|
@@ -2772,7 +2776,7 @@
|
|
|
2772
2776
|
toggle(item, animate) {
|
|
2773
2777
|
item = this.items[getIndex(item, this.items)];
|
|
2774
2778
|
let items = [item];
|
|
2775
|
-
const activeItems = filter(this.items,
|
|
2779
|
+
const activeItems = filter(this.items, ".".concat(this.clsOpen));
|
|
2776
2780
|
if (!this.multiple && !includes(activeItems, items[0])) {
|
|
2777
2781
|
items = items.concat(activeItems);
|
|
2778
2782
|
}
|
|
@@ -2987,6 +2991,53 @@
|
|
|
2987
2991
|
}
|
|
2988
2992
|
}
|
|
2989
2993
|
|
|
2994
|
+
var Container = {
|
|
2995
|
+
props: {
|
|
2996
|
+
container: Boolean
|
|
2997
|
+
},
|
|
2998
|
+
data: {
|
|
2999
|
+
container: true
|
|
3000
|
+
},
|
|
3001
|
+
computed: {
|
|
3002
|
+
container({ container }) {
|
|
3003
|
+
return container === true && this.$container || container && $(container);
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
|
|
3008
|
+
let prevented;
|
|
3009
|
+
function preventBackgroundScroll(el) {
|
|
3010
|
+
const off = on(
|
|
3011
|
+
el,
|
|
3012
|
+
"touchmove",
|
|
3013
|
+
(e) => {
|
|
3014
|
+
if (e.targetTouches.length !== 1 || matches(e.target, 'input[type="range"')) {
|
|
3015
|
+
return;
|
|
3016
|
+
}
|
|
3017
|
+
let { scrollHeight, clientHeight } = scrollParent(e.target);
|
|
3018
|
+
if (clientHeight >= scrollHeight && e.cancelable) {
|
|
3019
|
+
e.preventDefault();
|
|
3020
|
+
}
|
|
3021
|
+
},
|
|
3022
|
+
{ passive: false }
|
|
3023
|
+
);
|
|
3024
|
+
if (prevented) {
|
|
3025
|
+
return off;
|
|
3026
|
+
}
|
|
3027
|
+
prevented = true;
|
|
3028
|
+
const { scrollingElement } = document;
|
|
3029
|
+
css(scrollingElement, {
|
|
3030
|
+
overflowY: CSS.supports("overflow", "clip") ? "clip" : "hidden",
|
|
3031
|
+
touchAction: "none",
|
|
3032
|
+
paddingRight: width(window) - scrollingElement.clientWidth || ""
|
|
3033
|
+
});
|
|
3034
|
+
return () => {
|
|
3035
|
+
prevented = false;
|
|
3036
|
+
off();
|
|
3037
|
+
css(scrollingElement, { overflowY: "", touchAction: "", paddingRight: "" });
|
|
3038
|
+
};
|
|
3039
|
+
}
|
|
3040
|
+
|
|
2990
3041
|
var Position = {
|
|
2991
3042
|
props: {
|
|
2992
3043
|
pos: String,
|
|
@@ -2996,7 +3047,7 @@
|
|
|
2996
3047
|
inset: Boolean
|
|
2997
3048
|
},
|
|
2998
3049
|
data: {
|
|
2999
|
-
pos:
|
|
3050
|
+
pos: "bottom-".concat(isRtl ? "right" : "left"),
|
|
3000
3051
|
offset: false,
|
|
3001
3052
|
flip: true,
|
|
3002
3053
|
shift: true,
|
|
@@ -3063,53 +3114,6 @@
|
|
|
3063
3114
|
};
|
|
3064
3115
|
}
|
|
3065
3116
|
|
|
3066
|
-
var Container = {
|
|
3067
|
-
props: {
|
|
3068
|
-
container: Boolean
|
|
3069
|
-
},
|
|
3070
|
-
data: {
|
|
3071
|
-
container: true
|
|
3072
|
-
},
|
|
3073
|
-
computed: {
|
|
3074
|
-
container({ container }) {
|
|
3075
|
-
return container === true && this.$container || container && $(container);
|
|
3076
|
-
}
|
|
3077
|
-
}
|
|
3078
|
-
};
|
|
3079
|
-
|
|
3080
|
-
let prevented;
|
|
3081
|
-
function preventBackgroundScroll(el) {
|
|
3082
|
-
const off = on(
|
|
3083
|
-
el,
|
|
3084
|
-
"touchmove",
|
|
3085
|
-
(e) => {
|
|
3086
|
-
if (e.targetTouches.length !== 1 || matches(e.target, 'input[type="range"')) {
|
|
3087
|
-
return;
|
|
3088
|
-
}
|
|
3089
|
-
let { scrollHeight, clientHeight } = scrollParent(e.target);
|
|
3090
|
-
if (clientHeight >= scrollHeight && e.cancelable) {
|
|
3091
|
-
e.preventDefault();
|
|
3092
|
-
}
|
|
3093
|
-
},
|
|
3094
|
-
{ passive: false }
|
|
3095
|
-
);
|
|
3096
|
-
if (prevented) {
|
|
3097
|
-
return off;
|
|
3098
|
-
}
|
|
3099
|
-
prevented = true;
|
|
3100
|
-
const { scrollingElement } = document;
|
|
3101
|
-
css(scrollingElement, {
|
|
3102
|
-
overflowY: CSS.supports("overflow", "clip") ? "clip" : "hidden",
|
|
3103
|
-
touchAction: "none",
|
|
3104
|
-
paddingRight: width(window) - scrollingElement.clientWidth || ""
|
|
3105
|
-
});
|
|
3106
|
-
return () => {
|
|
3107
|
-
prevented = false;
|
|
3108
|
-
off();
|
|
3109
|
-
css(scrollingElement, { overflowY: "", touchAction: "", paddingRight: "" });
|
|
3110
|
-
};
|
|
3111
|
-
}
|
|
3112
|
-
|
|
3113
3117
|
let active$1;
|
|
3114
3118
|
var drop = {
|
|
3115
3119
|
mixins: [Container, Position, Togglable],
|
|
@@ -3171,7 +3175,7 @@
|
|
|
3171
3175
|
this.tracker = new MouseTracker();
|
|
3172
3176
|
},
|
|
3173
3177
|
beforeConnect() {
|
|
3174
|
-
this.clsDrop = this.$props.clsDrop ||
|
|
3178
|
+
this.clsDrop = this.$props.clsDrop || "uk-".concat(this.$options.name);
|
|
3175
3179
|
},
|
|
3176
3180
|
connected() {
|
|
3177
3181
|
addClass(this.$el, "uk-drop", this.clsDrop);
|
|
@@ -3251,7 +3255,7 @@
|
|
|
3251
3255
|
}
|
|
3252
3256
|
},
|
|
3253
3257
|
{
|
|
3254
|
-
name:
|
|
3258
|
+
name: "".concat(pointerEnter, " focusin"),
|
|
3255
3259
|
filter() {
|
|
3256
3260
|
return includes(this.mode, "hover");
|
|
3257
3261
|
},
|
|
@@ -3262,7 +3266,7 @@
|
|
|
3262
3266
|
}
|
|
3263
3267
|
},
|
|
3264
3268
|
{
|
|
3265
|
-
name:
|
|
3269
|
+
name: "".concat(pointerLeave, " focusout"),
|
|
3266
3270
|
filter() {
|
|
3267
3271
|
return includes(this.mode, "hover");
|
|
3268
3272
|
},
|
|
@@ -3398,7 +3402,7 @@
|
|
|
3398
3402
|
offset(this.boundary[i])[prop],
|
|
3399
3403
|
viewports[i][prop] - 2 * viewportOffset
|
|
3400
3404
|
),
|
|
3401
|
-
[
|
|
3405
|
+
["overflow-".concat(axis)]: "auto"
|
|
3402
3406
|
});
|
|
3403
3407
|
}
|
|
3404
3408
|
}
|
|
@@ -3423,7 +3427,7 @@
|
|
|
3423
3427
|
offset(this.boundary[i])[end],
|
|
3424
3428
|
viewports[i][end] - viewportOffset
|
|
3425
3429
|
) - targetOffset[this.inset ? start : end]) - positionOffset,
|
|
3426
|
-
[
|
|
3430
|
+
["overflow-".concat(axis)]: "auto"
|
|
3427
3431
|
});
|
|
3428
3432
|
this.positionAt(this.$el, this.target, this.boundary);
|
|
3429
3433
|
}
|
|
@@ -3472,7 +3476,7 @@
|
|
|
3472
3476
|
if (!within(target, drop.$el)) {
|
|
3473
3477
|
once(
|
|
3474
3478
|
document,
|
|
3475
|
-
|
|
3479
|
+
"".concat(pointerUp, " ").concat(pointerCancel, " scroll"),
|
|
3476
3480
|
({ defaultPrevented, type, target: newTarget }) => {
|
|
3477
3481
|
if (!defaultPrevented && type === pointerUp && target === newTarget && !(drop.targetEl && within(target, drop.targetEl))) {
|
|
3478
3482
|
drop.hide(false);
|
|
@@ -3523,7 +3527,7 @@
|
|
|
3523
3527
|
if (!dropbar) {
|
|
3524
3528
|
return null;
|
|
3525
3529
|
}
|
|
3526
|
-
dropbar = this._dropbar || query(dropbar, this.$el) || $(
|
|
3530
|
+
dropbar = this._dropbar || query(dropbar, this.$el) || $("+ .".concat(this.clsDropbar), this.$el);
|
|
3527
3531
|
return dropbar ? dropbar : this._dropbar = $("<div></div>");
|
|
3528
3532
|
},
|
|
3529
3533
|
dropContainer(_, $el) {
|
|
@@ -3531,9 +3535,9 @@
|
|
|
3531
3535
|
},
|
|
3532
3536
|
dropdowns({ clsDrop }, $el) {
|
|
3533
3537
|
var _a;
|
|
3534
|
-
const dropdowns = $$(
|
|
3538
|
+
const dropdowns = $$(".".concat(clsDrop), $el);
|
|
3535
3539
|
if (this.dropContainer !== $el) {
|
|
3536
|
-
for (const el of $$(
|
|
3540
|
+
for (const el of $$(".".concat(clsDrop), this.dropContainer)) {
|
|
3537
3541
|
const target = (_a = this.getDropdown(el)) == null ? void 0 : _a.targetEl;
|
|
3538
3542
|
if (!includes(dropdowns, el) && target && within(target, this.$el)) {
|
|
3539
3543
|
dropdowns.push(el);
|
|
@@ -3553,7 +3557,7 @@
|
|
|
3553
3557
|
"uk-dropbar",
|
|
3554
3558
|
"uk-dropbar-top",
|
|
3555
3559
|
this.clsDropbar,
|
|
3556
|
-
|
|
3560
|
+
"uk-".concat(this.$options.name, "-dropbar")
|
|
3557
3561
|
);
|
|
3558
3562
|
},
|
|
3559
3563
|
dropdowns() {
|
|
@@ -3603,7 +3607,7 @@
|
|
|
3603
3607
|
return this.dropContainer;
|
|
3604
3608
|
},
|
|
3605
3609
|
delegate() {
|
|
3606
|
-
return
|
|
3610
|
+
return ".".concat(this.clsDrop);
|
|
3607
3611
|
},
|
|
3608
3612
|
handler(e) {
|
|
3609
3613
|
var _a;
|
|
@@ -3666,7 +3670,7 @@
|
|
|
3666
3670
|
if (this.dropbar.previousElementSibling !== this.dropbarAnchor) {
|
|
3667
3671
|
after(this.dropbarAnchor, this.dropbar);
|
|
3668
3672
|
}
|
|
3669
|
-
addClass(target,
|
|
3673
|
+
addClass(target, "".concat(this.clsDrop, "-dropbar"));
|
|
3670
3674
|
}
|
|
3671
3675
|
},
|
|
3672
3676
|
{
|
|
@@ -3683,7 +3687,7 @@
|
|
|
3683
3687
|
}
|
|
3684
3688
|
const drop = this.getDropdown(target);
|
|
3685
3689
|
const adjustHeight = () => {
|
|
3686
|
-
const targetOffsets = parents(target,
|
|
3690
|
+
const targetOffsets = parents(target, ".".concat(this.clsDrop)).concat(target).map((el) => offset(el));
|
|
3687
3691
|
const minTop = Math.min(...targetOffsets.map(({ top }) => top));
|
|
3688
3692
|
const maxBottom = Math.max(...targetOffsets.map(({ bottom }) => bottom));
|
|
3689
3693
|
const dropbarOffset = offset(this.dropbar);
|
|
@@ -3743,14 +3747,14 @@
|
|
|
3743
3747
|
const oldHeight = height(dropbar);
|
|
3744
3748
|
el = oldHeight < newHeight && el;
|
|
3745
3749
|
await Transition.cancel([el, dropbar]);
|
|
3746
|
-
css(el, "clipPath",
|
|
3750
|
+
css(el, "clipPath", "polygon(0 0,100% 0,100% ".concat(oldHeight, "px,0 ").concat(oldHeight, "px)"));
|
|
3747
3751
|
height(dropbar, oldHeight);
|
|
3748
3752
|
await Promise.all([
|
|
3749
3753
|
Transition.start(dropbar, { height: newHeight }, this.duration),
|
|
3750
3754
|
Transition.start(
|
|
3751
3755
|
el,
|
|
3752
3756
|
{
|
|
3753
|
-
clipPath:
|
|
3757
|
+
clipPath: "polygon(0 0,100% 0,100% ".concat(newHeight, "px,0 ").concat(newHeight, "px)")
|
|
3754
3758
|
},
|
|
3755
3759
|
this.duration
|
|
3756
3760
|
).finally(() => css(el, { clipPath: "" }))
|
|
@@ -3770,7 +3774,7 @@
|
|
|
3770
3774
|
...this.$props,
|
|
3771
3775
|
flip: false,
|
|
3772
3776
|
shift: true,
|
|
3773
|
-
pos:
|
|
3777
|
+
pos: "bottom-".concat(this.align),
|
|
3774
3778
|
boundary: this.boundary === true ? this.$el : this.boundary
|
|
3775
3779
|
}
|
|
3776
3780
|
);
|
|
@@ -4032,7 +4036,7 @@
|
|
|
4032
4036
|
(el, j) => css(
|
|
4033
4037
|
el,
|
|
4034
4038
|
"transform",
|
|
4035
|
-
!scrolled && !translates ? "" :
|
|
4039
|
+
!scrolled && !translates ? "" : "translateY(".concat((translates && -translates[i][j]) + (scrolled ? i % 2 ? scrolled : scrolled / 8 : 0), "px)")
|
|
4036
4040
|
)
|
|
4037
4041
|
)
|
|
4038
4042
|
);
|
|
@@ -4142,38 +4146,97 @@
|
|
|
4142
4146
|
scrollElement === body ? scrollingElement : scrollElement
|
|
4143
4147
|
);
|
|
4144
4148
|
if (this.expand) {
|
|
4145
|
-
minHeight =
|
|
4149
|
+
minHeight = "".concat(viewportHeight - (dimensions(scrollElement).height - dimensions(this.$el).height) - box, "px");
|
|
4146
4150
|
} else {
|
|
4147
4151
|
const isScrollingElement = scrollingElement === scrollElement || body === scrollElement;
|
|
4148
|
-
minHeight =
|
|
4152
|
+
minHeight = "calc(".concat(isScrollingElement ? "100vh" : "".concat(viewportHeight, "px"));
|
|
4149
4153
|
if (this.offsetTop) {
|
|
4150
4154
|
if (isScrollingElement) {
|
|
4151
4155
|
const top = offsetPosition(this.$el)[0] - offsetPosition(scrollElement)[0];
|
|
4152
|
-
minHeight += top > 0 && top < viewportHeight / 2 ?
|
|
4156
|
+
minHeight += top > 0 && top < viewportHeight / 2 ? " - ".concat(top, "px") : "";
|
|
4153
4157
|
} else {
|
|
4154
|
-
minHeight +=
|
|
4158
|
+
minHeight += " - ".concat(css(scrollElement, "paddingTop"));
|
|
4155
4159
|
}
|
|
4156
4160
|
}
|
|
4157
4161
|
if (this.offsetBottom === true) {
|
|
4158
|
-
minHeight +=
|
|
4162
|
+
minHeight += " - ".concat(dimensions(this.$el.nextElementSibling).height, "px");
|
|
4159
4163
|
} else if (isNumeric(this.offsetBottom)) {
|
|
4160
|
-
minHeight +=
|
|
4164
|
+
minHeight += " - ".concat(this.offsetBottom, "vh");
|
|
4161
4165
|
} else if (this.offsetBottom && endsWith(this.offsetBottom, "px")) {
|
|
4162
|
-
minHeight +=
|
|
4166
|
+
minHeight += " - ".concat(toFloat(this.offsetBottom), "px");
|
|
4163
4167
|
} else if (isString(this.offsetBottom)) {
|
|
4164
|
-
minHeight +=
|
|
4168
|
+
minHeight += " - ".concat(dimensions(query(this.offsetBottom, this.$el)).height, "px");
|
|
4165
4169
|
}
|
|
4166
|
-
minHeight +=
|
|
4170
|
+
minHeight += "".concat(box ? " - ".concat(box, "px") : "", ")");
|
|
4167
4171
|
}
|
|
4168
4172
|
return { minHeight };
|
|
4169
4173
|
},
|
|
4170
4174
|
write({ minHeight }) {
|
|
4171
|
-
css(this.$el, "minHeight",
|
|
4175
|
+
css(this.$el, "minHeight", "max(".concat(this.minHeight || 0, "px, ").concat(minHeight, ")"));
|
|
4172
4176
|
},
|
|
4173
4177
|
events: ["resize"]
|
|
4174
4178
|
}
|
|
4175
4179
|
};
|
|
4176
4180
|
|
|
4181
|
+
var closeIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"1\" y1=\"1\" x2=\"13\" y2=\"13\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"13\" y1=\"1\" x2=\"1\" y2=\"13\"/></svg>";
|
|
4182
|
+
|
|
4183
|
+
var closeLarge = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"1\" y1=\"1\" x2=\"19\" y2=\"19\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"19\" y1=\"1\" x2=\"1\" y2=\"19\"/></svg>";
|
|
4184
|
+
|
|
4185
|
+
var dropParentIcon = "<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>";
|
|
4186
|
+
|
|
4187
|
+
var marker = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><rect x=\"9\" y=\"4\" width=\"1\" height=\"11\"/><rect x=\"4\" y=\"9\" width=\"11\" height=\"1\"/></svg>";
|
|
4188
|
+
|
|
4189
|
+
var navParentIconLarge = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 4 7 10 13 4\"/></svg>";
|
|
4190
|
+
|
|
4191
|
+
var navParentIcon = "<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>";
|
|
4192
|
+
|
|
4193
|
+
var navbarParentIcon = "<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>";
|
|
4194
|
+
|
|
4195
|
+
var navbarToggleIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><style>.uk-navbar-toggle-animate svg>[class*="line-"]{transition:0.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>";
|
|
4196
|
+
|
|
4197
|
+
var overlayIcon = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"><rect x=\"19\" y=\"0\" width=\"1\" height=\"40\"/><rect x=\"0\" y=\"19\" width=\"40\" height=\"1\"/></svg>";
|
|
4198
|
+
|
|
4199
|
+
var paginationNext = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"1 1 6 6 1 11\"/></svg>";
|
|
4200
|
+
|
|
4201
|
+
var paginationPrevious = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"6 1 1 6 6 11\"/></svg>";
|
|
4202
|
+
|
|
4203
|
+
var searchIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" cx=\"9\" cy=\"9\" r=\"7\"/><path fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" d=\"M14,14 L18,18 L14,14 Z\"/></svg>";
|
|
4204
|
+
|
|
4205
|
+
var searchLarge = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.8\" cx=\"17.5\" cy=\"17.5\" r=\"16.5\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.8\" x1=\"38\" y1=\"39\" x2=\"29\" y2=\"30\"/></svg>";
|
|
4206
|
+
|
|
4207
|
+
var searchNavbar = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" cx=\"10.5\" cy=\"10.5\" r=\"9.5\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"23\" y1=\"23\" x2=\"17\" y2=\"17\"/></svg>";
|
|
4208
|
+
|
|
4209
|
+
var slidenavNextLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"2\" points=\"4.002,38.547 22.527,20.024 4,1.5\"/></svg>";
|
|
4210
|
+
|
|
4211
|
+
var slidenavNext = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" points=\"1.225,23 12.775,12 1.225,1\"/></svg>";
|
|
4212
|
+
|
|
4213
|
+
var slidenavPreviousLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"2\" points=\"20.527,1.5 2,20.024 20.525,38.547\"/></svg>";
|
|
4214
|
+
|
|
4215
|
+
var slidenavPrevious = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" points=\"12.775,1 1.225,12 12.775,23\"/></svg>";
|
|
4216
|
+
|
|
4217
|
+
var spinner = "<svg width=\"30\" height=\"30\" viewBox=\"0 0 30 30\"><circle fill=\"none\" stroke=\"#000\" cx=\"15\" cy=\"15\" r=\"14\"/></svg>";
|
|
4218
|
+
|
|
4219
|
+
var totop = "<svg width=\"18\" height=\"10\" viewBox=\"0 0 18 10\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"1 9 9 1 17 9\"/></svg>";
|
|
4220
|
+
|
|
4221
|
+
var I18n = {
|
|
4222
|
+
props: {
|
|
4223
|
+
i18n: Object
|
|
4224
|
+
},
|
|
4225
|
+
data: {
|
|
4226
|
+
i18n: null
|
|
4227
|
+
},
|
|
4228
|
+
methods: {
|
|
4229
|
+
t(key, ...params) {
|
|
4230
|
+
var _a, _b, _c;
|
|
4231
|
+
let i = 0;
|
|
4232
|
+
return ((_c = ((_a = this.i18n) == null ? void 0 : _a[key]) || ((_b = this.$options.i18n) == null ? void 0 : _b[key])) == null ? void 0 : _c.replace(
|
|
4233
|
+
/%s/g,
|
|
4234
|
+
() => params[i++] || ""
|
|
4235
|
+
)) || "";
|
|
4236
|
+
}
|
|
4237
|
+
}
|
|
4238
|
+
};
|
|
4239
|
+
|
|
4177
4240
|
var Svg = {
|
|
4178
4241
|
args: "src",
|
|
4179
4242
|
props: {
|
|
@@ -4240,65 +4303,6 @@
|
|
|
4240
4303
|
dimensions.forEach((val, i) => attr(el, props[i], toFloat(val) * this.ratio || null));
|
|
4241
4304
|
}
|
|
4242
4305
|
|
|
4243
|
-
var I18n = {
|
|
4244
|
-
props: {
|
|
4245
|
-
i18n: Object
|
|
4246
|
-
},
|
|
4247
|
-
data: {
|
|
4248
|
-
i18n: null
|
|
4249
|
-
},
|
|
4250
|
-
methods: {
|
|
4251
|
-
t(key, ...params) {
|
|
4252
|
-
var _a, _b, _c;
|
|
4253
|
-
let i = 0;
|
|
4254
|
-
return ((_c = ((_a = this.i18n) == null ? void 0 : _a[key]) || ((_b = this.$options.i18n) == null ? void 0 : _b[key])) == null ? void 0 : _c.replace(
|
|
4255
|
-
/%s/g,
|
|
4256
|
-
() => params[i++] || ""
|
|
4257
|
-
)) || "";
|
|
4258
|
-
}
|
|
4259
|
-
}
|
|
4260
|
-
};
|
|
4261
|
-
|
|
4262
|
-
var closeIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"1\" y1=\"1\" x2=\"13\" y2=\"13\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"13\" y1=\"1\" x2=\"1\" y2=\"13\"/></svg>";
|
|
4263
|
-
|
|
4264
|
-
var closeLarge = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"1\" y1=\"1\" x2=\"19\" y2=\"19\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"19\" y1=\"1\" x2=\"1\" y2=\"19\"/></svg>";
|
|
4265
|
-
|
|
4266
|
-
var dropParentIcon = "<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>";
|
|
4267
|
-
|
|
4268
|
-
var marker = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><rect x=\"9\" y=\"4\" width=\"1\" height=\"11\"/><rect x=\"4\" y=\"9\" width=\"11\" height=\"1\"/></svg>";
|
|
4269
|
-
|
|
4270
|
-
var navParentIcon = "<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>";
|
|
4271
|
-
|
|
4272
|
-
var navParentIconLarge = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 4 7 10 13 4\"/></svg>";
|
|
4273
|
-
|
|
4274
|
-
var navbarParentIcon = "<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>";
|
|
4275
|
-
|
|
4276
|
-
var navbarToggleIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><style>.uk-navbar-toggle-animate svg>[class*="line-"]{transition:0.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>";
|
|
4277
|
-
|
|
4278
|
-
var overlayIcon = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"><rect x=\"19\" y=\"0\" width=\"1\" height=\"40\"/><rect x=\"0\" y=\"19\" width=\"40\" height=\"1\"/></svg>";
|
|
4279
|
-
|
|
4280
|
-
var paginationNext = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"1 1 6 6 1 11\"/></svg>";
|
|
4281
|
-
|
|
4282
|
-
var paginationPrevious = "<svg width=\"7\" height=\"12\" viewBox=\"0 0 7 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"6 1 1 6 6 11\"/></svg>";
|
|
4283
|
-
|
|
4284
|
-
var searchIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" cx=\"9\" cy=\"9\" r=\"7\"/><path fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" d=\"M14,14 L18,18 L14,14 Z\"/></svg>";
|
|
4285
|
-
|
|
4286
|
-
var searchLarge = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.8\" cx=\"17.5\" cy=\"17.5\" r=\"16.5\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.8\" x1=\"38\" y1=\"39\" x2=\"29\" y2=\"30\"/></svg>";
|
|
4287
|
-
|
|
4288
|
-
var searchNavbar = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><circle fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" cx=\"10.5\" cy=\"10.5\" r=\"9.5\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"23\" y1=\"23\" x2=\"17\" y2=\"17\"/></svg>";
|
|
4289
|
-
|
|
4290
|
-
var slidenavNext = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" points=\"1.225,23 12.775,12 1.225,1\"/></svg>";
|
|
4291
|
-
|
|
4292
|
-
var slidenavNextLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"2\" points=\"4.002,38.547 22.527,20.024 4,1.5\"/></svg>";
|
|
4293
|
-
|
|
4294
|
-
var slidenavPrevious = "<svg width=\"14\" height=\"24\" viewBox=\"0 0 14 24\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" points=\"12.775,1 1.225,12 12.775,23\"/></svg>";
|
|
4295
|
-
|
|
4296
|
-
var slidenavPreviousLarge = "<svg width=\"25\" height=\"40\" viewBox=\"0 0 25 40\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"2\" points=\"20.527,1.5 2,20.024 20.525,38.547\"/></svg>";
|
|
4297
|
-
|
|
4298
|
-
var spinner = "<svg width=\"30\" height=\"30\" viewBox=\"0 0 30 30\"><circle fill=\"none\" stroke=\"#000\" cx=\"15\" cy=\"15\" r=\"14\"/></svg>";
|
|
4299
|
-
|
|
4300
|
-
var totop = "<svg width=\"18\" height=\"10\" viewBox=\"0 0 18 10\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.2\" points=\"1 9 9 1 17 9\"/></svg>";
|
|
4301
|
-
|
|
4302
4306
|
const icons = {
|
|
4303
4307
|
spinner,
|
|
4304
4308
|
totop,
|
|
@@ -4354,7 +4358,7 @@
|
|
|
4354
4358
|
extends: IconComponent,
|
|
4355
4359
|
beforeConnect() {
|
|
4356
4360
|
const icon = this.$props.icon;
|
|
4357
|
-
this.icon = closest(this.$el, ".uk-nav-primary") ?
|
|
4361
|
+
this.icon = closest(this.$el, ".uk-nav-primary") ? "".concat(icon, "-large") : icon;
|
|
4358
4362
|
}
|
|
4359
4363
|
};
|
|
4360
4364
|
const Search = {
|
|
@@ -4410,7 +4414,7 @@
|
|
|
4410
4414
|
beforeConnect() {
|
|
4411
4415
|
addClass(this.$el, "uk-slidenav");
|
|
4412
4416
|
const icon = this.$props.icon;
|
|
4413
|
-
this.icon = hasClass(this.$el, "uk-slidenav-large") ?
|
|
4417
|
+
this.icon = hasClass(this.$el, "uk-slidenav-large") ? "".concat(icon, "-large") : icon;
|
|
4414
4418
|
}
|
|
4415
4419
|
};
|
|
4416
4420
|
const NavbarToggleIcon = {
|
|
@@ -4421,7 +4425,7 @@
|
|
|
4421
4425
|
extends: ButtonComponent,
|
|
4422
4426
|
i18n: { label: "Close" },
|
|
4423
4427
|
beforeConnect() {
|
|
4424
|
-
this.icon =
|
|
4428
|
+
this.icon = "close-".concat(hasClass(this.$el, "uk-close-large") ? "large" : "icon");
|
|
4425
4429
|
}
|
|
4426
4430
|
};
|
|
4427
4431
|
const Marker = {
|
|
@@ -4536,7 +4540,7 @@
|
|
|
4536
4540
|
} else if (src) {
|
|
4537
4541
|
const change = !includes(el.style.backgroundImage, src);
|
|
4538
4542
|
if (change) {
|
|
4539
|
-
css(el, "backgroundImage",
|
|
4543
|
+
css(el, "backgroundImage", "url(".concat(escape(src), ")"));
|
|
4540
4544
|
trigger(el, createEvent("load", false));
|
|
4541
4545
|
}
|
|
4542
4546
|
}
|
|
@@ -4630,12 +4634,12 @@
|
|
|
4630
4634
|
function toMedia(value, element) {
|
|
4631
4635
|
if (isString(value)) {
|
|
4632
4636
|
if (startsWith(value, "@")) {
|
|
4633
|
-
value = toFloat(css(element,
|
|
4637
|
+
value = toFloat(css(element, "--uk-breakpoint-".concat(value.substr(1))));
|
|
4634
4638
|
} else if (isNaN(value)) {
|
|
4635
4639
|
return value;
|
|
4636
4640
|
}
|
|
4637
4641
|
}
|
|
4638
|
-
return value && isNumeric(value) ?
|
|
4642
|
+
return value && isNumeric(value) ? "(min-width: ".concat(value, "px)") : "";
|
|
4639
4643
|
}
|
|
4640
4644
|
|
|
4641
4645
|
var leader = {
|
|
@@ -4655,7 +4659,7 @@
|
|
|
4655
4659
|
}
|
|
4656
4660
|
},
|
|
4657
4661
|
connected() {
|
|
4658
|
-
[this.wrapper] = wrapInner(this.$el,
|
|
4662
|
+
[this.wrapper] = wrapInner(this.$el, '<span class="'.concat(this.clsWrapper, '">'));
|
|
4659
4663
|
},
|
|
4660
4664
|
disconnected() {
|
|
4661
4665
|
unwrap(this.wrapper.childNodes);
|
|
@@ -4723,7 +4727,7 @@
|
|
|
4723
4727
|
{
|
|
4724
4728
|
name: "click",
|
|
4725
4729
|
delegate() {
|
|
4726
|
-
return
|
|
4730
|
+
return "".concat(this.selClose, ',a[href*="#"]');
|
|
4727
4731
|
},
|
|
4728
4732
|
handler(e) {
|
|
4729
4733
|
const { current, defaultPrevented } = e;
|
|
@@ -4848,10 +4852,13 @@
|
|
|
4848
4852
|
},
|
|
4849
4853
|
{ self: true }
|
|
4850
4854
|
);
|
|
4851
|
-
const timer = setTimeout(
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
+
const timer = setTimeout(
|
|
4856
|
+
() => {
|
|
4857
|
+
off();
|
|
4858
|
+
resolve();
|
|
4859
|
+
},
|
|
4860
|
+
toMs(css(transitionElement, "transitionDuration"))
|
|
4861
|
+
);
|
|
4855
4862
|
})
|
|
4856
4863
|
).then(() => delete el._reject);
|
|
4857
4864
|
}
|
|
@@ -4872,7 +4879,7 @@
|
|
|
4872
4879
|
}
|
|
4873
4880
|
once(
|
|
4874
4881
|
document,
|
|
4875
|
-
|
|
4882
|
+
"".concat(pointerUp, " ").concat(pointerCancel, " scroll"),
|
|
4876
4883
|
({ defaultPrevented, type, target: newTarget }) => {
|
|
4877
4884
|
if (!defaultPrevented && type === pointerUp && target === newTarget) {
|
|
4878
4885
|
modal.hide();
|
|
@@ -4924,7 +4931,7 @@
|
|
|
4924
4931
|
function install({ modal }) {
|
|
4925
4932
|
modal.dialog = function(content, options) {
|
|
4926
4933
|
const dialog = modal(
|
|
4927
|
-
|
|
4934
|
+
'<div class="uk-modal">\n <div class="uk-modal-dialog">'.concat(content, "</div>\n </div>"),
|
|
4928
4935
|
{ stack: true, role: "alertdialog", ...options }
|
|
4929
4936
|
);
|
|
4930
4937
|
dialog.show();
|
|
@@ -4941,20 +4948,20 @@
|
|
|
4941
4948
|
};
|
|
4942
4949
|
modal.alert = function(message, options) {
|
|
4943
4950
|
return openDialog(
|
|
4944
|
-
({ i18n }) =>
|
|
4951
|
+
({ i18n }) => '<div class="uk-modal-body">'.concat(isString(message) ? message : html(message), '</div>\n <div class="uk-modal-footer uk-text-right">\n <button class="uk-button uk-button-primary uk-modal-close" autofocus>').concat(i18n.ok, "</button>\n </div>"),
|
|
4945
4952
|
options
|
|
4946
4953
|
);
|
|
4947
4954
|
};
|
|
4948
4955
|
modal.confirm = function(message, options) {
|
|
4949
4956
|
return openDialog(
|
|
4950
|
-
({ i18n }) =>
|
|
4957
|
+
({ i18n }) => '<form>\n <div class="uk-modal-body">'.concat(isString(message) ? message : html(message), '</div>\n <div class="uk-modal-footer uk-text-right">\n <button class="uk-button uk-button-default uk-modal-close" type="button">').concat(i18n.cancel, '</button>\n <button class="uk-button uk-button-primary" autofocus>').concat(i18n.ok, "</button>\n </div>\n </form>"),
|
|
4951
4958
|
options,
|
|
4952
4959
|
() => Promise.reject()
|
|
4953
4960
|
);
|
|
4954
4961
|
};
|
|
4955
4962
|
modal.prompt = function(message, value, options) {
|
|
4956
4963
|
const promise = openDialog(
|
|
4957
|
-
({ i18n }) =>
|
|
4964
|
+
({ i18n }) => '<form class="uk-form-stacked">\n <div class="uk-modal-body">\n <label>'.concat(isString(message) ? message : html(message), '</label>\n <input class="uk-input" value="').concat(value || "", '" autofocus>\n </div>\n <div class="uk-modal-footer uk-text-right">\n <button class="uk-button uk-button-default uk-modal-close" type="button">').concat(i18n.cancel, '</button>\n <button class="uk-button uk-button-primary">').concat(i18n.ok, "</button>\n </div>\n </form>"),
|
|
4958
4965
|
options,
|
|
4959
4966
|
() => null,
|
|
4960
4967
|
() => input.value
|
|
@@ -5060,7 +5067,7 @@
|
|
|
5060
5067
|
return overlay ? clsOverlay : "";
|
|
5061
5068
|
},
|
|
5062
5069
|
clsMode({ mode, clsMode }) {
|
|
5063
|
-
return
|
|
5070
|
+
return "".concat(clsMode, "-").concat(mode);
|
|
5064
5071
|
},
|
|
5065
5072
|
clsSidebarAnimation({ mode, clsSidebarAnimation }) {
|
|
5066
5073
|
return mode === "none" || mode === "reveal" ? "" : clsSidebarAnimation;
|
|
@@ -5309,7 +5316,7 @@
|
|
|
5309
5316
|
watch: {
|
|
5310
5317
|
elements(elements) {
|
|
5311
5318
|
if (this.hidden) {
|
|
5312
|
-
css(filter(elements,
|
|
5319
|
+
css(filter(elements, ":not(.".concat(this.inViewClass, ")")), "opacity", 0);
|
|
5313
5320
|
}
|
|
5314
5321
|
}
|
|
5315
5322
|
},
|
|
@@ -5521,9 +5528,9 @@
|
|
|
5521
5528
|
this.placeholder = null;
|
|
5522
5529
|
},
|
|
5523
5530
|
observe: [
|
|
5524
|
-
resize({ target: ({ $el }) => [$el, document.scrollingElement] }),
|
|
5525
5531
|
viewport(),
|
|
5526
|
-
scroll$1()
|
|
5532
|
+
scroll$1({ target: () => document.scrollingElement }),
|
|
5533
|
+
resize({ target: ({ $el }) => [$el, document.scrollingElement] })
|
|
5527
5534
|
],
|
|
5528
5535
|
events: [
|
|
5529
5536
|
{
|
|
@@ -5917,7 +5924,7 @@
|
|
|
5917
5924
|
symbolRe.lastIndex = 0;
|
|
5918
5925
|
let match;
|
|
5919
5926
|
while (match = symbolRe.exec(svg)) {
|
|
5920
|
-
symbols[match[3]] =
|
|
5927
|
+
symbols[match[3]] = "<svg ".concat(match[1], "svg>");
|
|
5921
5928
|
}
|
|
5922
5929
|
return symbols;
|
|
5923
5930
|
});
|
|
@@ -6033,7 +6040,7 @@
|
|
|
6033
6040
|
return this.connects.concat(this.itemNav ? queryAll(this.itemNav, this.$el) : []);
|
|
6034
6041
|
},
|
|
6035
6042
|
delegate() {
|
|
6036
|
-
return
|
|
6043
|
+
return "[".concat(this.attrItem, "],[data-").concat(this.attrItem, "]");
|
|
6037
6044
|
},
|
|
6038
6045
|
handler(e) {
|
|
6039
6046
|
if (closest(e.target, "a,button")) {
|
|
@@ -6066,8 +6073,8 @@
|
|
|
6066
6073
|
if (!item) {
|
|
6067
6074
|
continue;
|
|
6068
6075
|
}
|
|
6069
|
-
toggle.id = generateId(this, toggle,
|
|
6070
|
-
item.id = generateId(this, item,
|
|
6076
|
+
toggle.id = generateId(this, toggle, "-tab-".concat(index));
|
|
6077
|
+
item.id = generateId(this, item, "-tabpanel-".concat(index));
|
|
6071
6078
|
attr(toggle, "aria-controls", item.id);
|
|
6072
6079
|
attr(item, { role: "tabpanel", "aria-labelledby": toggle.id });
|
|
6073
6080
|
}
|
|
@@ -6182,7 +6189,7 @@
|
|
|
6182
6189
|
}
|
|
6183
6190
|
},
|
|
6184
6191
|
{
|
|
6185
|
-
name:
|
|
6192
|
+
name: "".concat(pointerEnter, " ").concat(pointerLeave, " focus blur"),
|
|
6186
6193
|
filter() {
|
|
6187
6194
|
return includes(this.mode, "hover");
|
|
6188
6195
|
},
|
|
@@ -6202,7 +6209,7 @@
|
|
|
6202
6209
|
return;
|
|
6203
6210
|
}
|
|
6204
6211
|
this._showState = show ? expanded : null;
|
|
6205
|
-
this.toggle(
|
|
6212
|
+
this.toggle("toggle".concat(show ? "show" : "hide"));
|
|
6206
6213
|
}
|
|
6207
6214
|
},
|
|
6208
6215
|
{
|