uikit 3.14.4-dev.310965bc8 → 3.14.4-dev.834a27060
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 +13 -0
- package/dist/css/uikit-core-rtl.css +108 -61
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +108 -61
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +108 -62
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +108 -62
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +7 -5
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +6 -14
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +6 -14
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +4 -5
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +4 -5
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +4 -5
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +3 -3
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +19 -19
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +100 -72
- 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 +108 -78
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/images/{backgrounds/nav-parent-open.svg → components/nav-parent-icon-large.svg} +0 -0
- package/src/images/components/nav-parent-icon.svg +3 -0
- package/src/images/components/navbar-parent-icon.svg +3 -0
- package/src/js/components/filter.js +5 -3
- package/src/js/components/sortable.js +2 -3
- package/src/js/core/height-viewport.js +3 -1
- package/src/js/core/icon.js +16 -0
- package/src/js/core/index.js +2 -0
- package/src/js/core/leader.js +2 -2
- package/src/js/core/navbar.js +44 -15
- package/src/js/core/sticky.js +8 -9
- package/src/js/mixin/media.js +4 -5
- package/src/js/mixin/position.js +19 -11
- package/src/js/mixin/togglable.js +8 -17
- package/src/js/util/position.js +1 -2
- package/src/js/util/style.js +0 -5
- package/src/js/util/viewport.js +2 -27
- package/src/less/components/dropdown.less +14 -0
- package/src/less/components/leader.less +1 -1
- package/src/less/components/nav.less +7 -37
- package/src/less/components/navbar.less +101 -13
- package/src/less/components/utility.less +10 -2
- package/src/less/theme/nav.less +0 -8
- package/src/less/theme/navbar.less +4 -6
- package/src/scss/components/dropdown.scss +14 -0
- package/src/scss/components/leader.scss +1 -1
- package/src/scss/components/nav.scss +7 -26
- package/src/scss/components/navbar.scss +89 -13
- package/src/scss/components/utility.scss +8 -1
- package/src/scss/mixins-theme.scss +15 -18
- package/src/scss/mixins.scss +14 -14
- package/src/scss/theme/nav.scss +0 -8
- package/src/scss/theme/navbar.scss +3 -2
- package/src/scss/variables-theme.scss +17 -11
- package/src/scss/variables.scss +17 -10
- package/tests/drop.html +66 -16
- package/tests/dropdown.html +103 -16
- package/tests/index.html +3 -3
- package/tests/nav.html +20 -87
- package/tests/navbar.html +283 -56
- package/tests/offcanvas.html +8 -8
- package/tests/utility.html +19 -0
- package/src/images/backgrounds/nav-parent-close.svg +0 -3
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.4-dev.
|
|
1
|
+
/*! UIkit 3.14.4-dev.834a27060 | 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() :
|
|
@@ -785,11 +785,6 @@
|
|
|
785
785
|
return elements[0];
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
-
const propertyRe = /^\s*(["'])?(.*?)\1\s*$/;
|
|
789
|
-
function getCssVar(name, element) {if (element === void 0) {element = document.documentElement;}
|
|
790
|
-
return css(element, "--uk-" + name).replace(propertyRe, '$2');
|
|
791
|
-
}
|
|
792
|
-
|
|
793
788
|
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty
|
|
794
789
|
const propName = memoize((name) => vendorPropName(name));
|
|
795
790
|
|
|
@@ -1795,20 +1790,6 @@
|
|
|
1795
1790
|
|
|
1796
1791
|
}
|
|
1797
1792
|
|
|
1798
|
-
function scrollTop(element, top) {
|
|
1799
|
-
if (isWindow(element) || isDocument(element)) {
|
|
1800
|
-
element = scrollingElement(element);
|
|
1801
|
-
} else {
|
|
1802
|
-
element = toNode(element);
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
if (isUndefined(top)) {
|
|
1806
|
-
return element.scrollTop;
|
|
1807
|
-
} else {
|
|
1808
|
-
element.scrollTop = top;
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
1793
|
function scrollIntoView(element, _temp) {let { offset: offsetBy = 0 } = _temp === void 0 ? {} : _temp;
|
|
1813
1794
|
const parents = isVisible(element) ? scrollParents(element) : [];
|
|
1814
1795
|
return parents.reduce(
|
|
@@ -1850,7 +1831,7 @@
|
|
|
1850
1831
|
(function step() {
|
|
1851
1832
|
const percent = ease(clamp((Date.now() - start) / duration));
|
|
1852
1833
|
|
|
1853
|
-
scrollTop
|
|
1834
|
+
element.scrollTop = scroll + top * percent;
|
|
1854
1835
|
|
|
1855
1836
|
// scroll more if we have not reached our destination
|
|
1856
1837
|
if (percent === 1) {
|
|
@@ -2105,9 +2086,8 @@
|
|
|
2105
2086
|
if (newPos && isInScrollArea(newPos, scrollElement, 1 - i)) {
|
|
2106
2087
|
return newPos;
|
|
2107
2088
|
}
|
|
2108
|
-
|
|
2109
|
-
continue;
|
|
2110
2089
|
}
|
|
2090
|
+
continue;
|
|
2111
2091
|
}
|
|
2112
2092
|
|
|
2113
2093
|
// Move
|
|
@@ -2297,10 +2277,8 @@
|
|
|
2297
2277
|
findAll: findAll,
|
|
2298
2278
|
escape: escape,
|
|
2299
2279
|
css: css,
|
|
2300
|
-
getCssVar: getCssVar,
|
|
2301
2280
|
propName: propName,
|
|
2302
2281
|
isInView: isInView,
|
|
2303
|
-
scrollTop: scrollTop,
|
|
2304
2282
|
scrollIntoView: scrollIntoView,
|
|
2305
2283
|
scrolledOver: scrolledOver,
|
|
2306
2284
|
scrollParents: scrollParents,
|
|
@@ -2963,7 +2941,7 @@
|
|
|
2963
2941
|
UIkit.data = '__uikit__';
|
|
2964
2942
|
UIkit.prefix = 'uk-';
|
|
2965
2943
|
UIkit.options = {};
|
|
2966
|
-
UIkit.version = '3.14.4-dev.
|
|
2944
|
+
UIkit.version = '3.14.4-dev.834a27060';
|
|
2967
2945
|
|
|
2968
2946
|
globalAPI(UIkit);
|
|
2969
2947
|
hooksAPI(UIkit);
|
|
@@ -3261,7 +3239,7 @@
|
|
|
3261
3239
|
|
|
3262
3240
|
Transition.cancel(el);
|
|
3263
3241
|
|
|
3264
|
-
const [scrollElement] = scrollParents(el);
|
|
3242
|
+
const [scrollElement] = scrollParents(el.offsetParent);
|
|
3265
3243
|
css(scrollElement, 'overflowX', 'hidden');
|
|
3266
3244
|
|
|
3267
3245
|
if (!isToggled(el)) {
|
|
@@ -3272,17 +3250,11 @@
|
|
|
3272
3250
|
duration = velocity * width + duration;
|
|
3273
3251
|
|
|
3274
3252
|
const percent = visible ? (width + marginLeft * (right ? -1 : 1)) / width * 100 : 0;
|
|
3275
|
-
const offsetEl = offset(el);
|
|
3276
|
-
const useClipPath = right ?
|
|
3277
|
-
offsetEl.right < scrollElement.clientWidth :
|
|
3278
|
-
Math.round(offsetEl.left) > 0;
|
|
3279
3253
|
|
|
3280
3254
|
css(el, {
|
|
3281
|
-
clipPath:
|
|
3282
|
-
right ? "polygon(0 0," +
|
|
3255
|
+
clipPath: right ? "polygon(0 0," +
|
|
3283
3256
|
percent + "% 0," + percent + "% 100%,0 100%)" : "polygon(" + (
|
|
3284
|
-
100 - percent) + "% 0,100% 0,100% 100%," + (100 - percent) + "% 100%)"
|
|
3285
|
-
'',
|
|
3257
|
+
100 - percent) + "% 0,100% 0,100% 100%," + (100 - percent) + "% 100%)",
|
|
3286
3258
|
marginLeft: (100 - percent) * (right ? 1 : -1) / 100 * width });
|
|
3287
3259
|
|
|
3288
3260
|
|
|
@@ -3291,7 +3263,7 @@
|
|
|
3291
3263
|
Transition.start(
|
|
3292
3264
|
el,
|
|
3293
3265
|
{
|
|
3294
|
-
clipPath:
|
|
3266
|
+
clipPath: "polygon(0 0,100% 0,100% 100%,0 100%)",
|
|
3295
3267
|
marginLeft: 0 },
|
|
3296
3268
|
|
|
3297
3269
|
duration * (1 - percent / 100),
|
|
@@ -3300,11 +3272,9 @@
|
|
|
3300
3272
|
Transition.start(
|
|
3301
3273
|
el,
|
|
3302
3274
|
{
|
|
3303
|
-
clipPath:
|
|
3304
|
-
right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)" :
|
|
3275
|
+
clipPath: right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)",
|
|
3305
3276
|
|
|
3306
3277
|
|
|
3307
|
-
'',
|
|
3308
3278
|
marginLeft: (right ? 1 : -1) * width },
|
|
3309
3279
|
|
|
3310
3280
|
duration * (percent / 100),
|
|
@@ -3707,13 +3677,21 @@
|
|
|
3707
3677
|
const elDim = dimensions(element);
|
|
3708
3678
|
css(element, { top: -elDim.height, left: -elDim.width });
|
|
3709
3679
|
|
|
3710
|
-
|
|
3680
|
+
const args = [
|
|
3681
|
+
element,
|
|
3682
|
+
target,
|
|
3683
|
+
{
|
|
3711
3684
|
attach,
|
|
3712
3685
|
offset,
|
|
3713
3686
|
boundary,
|
|
3714
3687
|
flip: this.flip,
|
|
3715
|
-
viewportOffset: this.getViewportOffset(element) }
|
|
3688
|
+
viewportOffset: this.getViewportOffset(element) }];
|
|
3689
|
+
|
|
3690
|
+
|
|
3716
3691
|
|
|
3692
|
+
trigger(element, 'beforeposition', args);
|
|
3693
|
+
|
|
3694
|
+
positionAt(...args);
|
|
3717
3695
|
|
|
3718
3696
|
// Restore scroll position
|
|
3719
3697
|
scrollElement.scrollTop = scrollTop;
|
|
@@ -3723,7 +3701,7 @@
|
|
|
3723
3701
|
getPositionOffset(element) {
|
|
3724
3702
|
return (
|
|
3725
3703
|
toPx(
|
|
3726
|
-
this.offset === false ?
|
|
3704
|
+
this.offset === false ? css(element, '--uk-position-offset') : this.offset,
|
|
3727
3705
|
this.axis === 'x' ? 'width' : 'height',
|
|
3728
3706
|
element) * (
|
|
3729
3707
|
includes(['left', 'top'], this.dir) ? -1 : 1));
|
|
@@ -3734,14 +3712,14 @@
|
|
|
3734
3712
|
return includes(['center', 'justify', 'stretch'], this.align) ?
|
|
3735
3713
|
0 :
|
|
3736
3714
|
toPx(
|
|
3737
|
-
|
|
3715
|
+
css(element, '--uk-position-shift-offset'),
|
|
3738
3716
|
this.axis === 'y' ? 'width' : 'height',
|
|
3739
3717
|
element) * (
|
|
3740
3718
|
includes(['left', 'top'], this.align) ? 1 : -1);
|
|
3741
3719
|
},
|
|
3742
3720
|
|
|
3743
3721
|
getViewportOffset(element) {
|
|
3744
|
-
return toPx(
|
|
3722
|
+
return toPx(css(element, '--uk-position-viewport-offset'));
|
|
3745
3723
|
} } };
|
|
3746
3724
|
|
|
3747
3725
|
const active$1 = [];
|
|
@@ -4992,7 +4970,9 @@
|
|
|
4992
4970
|
0);
|
|
4993
4971
|
|
|
4994
4972
|
} else {
|
|
4995
|
-
const
|
|
4973
|
+
const { body, scrollingElement } = document;
|
|
4974
|
+
const isScrollingElement =
|
|
4975
|
+
scrollingElement === scrollElement || body === scrollElement;
|
|
4996
4976
|
|
|
4997
4977
|
// on mobile devices (iOS and Android) window.innerHeight !== 100vh
|
|
4998
4978
|
minHeight = "calc(" + (isScrollingElement ? '100vh' : viewportHeight + "px");
|
|
@@ -5246,6 +5226,12 @@
|
|
|
5246
5226
|
|
|
5247
5227
|
var marker = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"9\" y=\"4\" width=\"1\" height=\"11\"/><rect x=\"4\" y=\"9\" width=\"11\" height=\"1\"/></svg>";
|
|
5248
5228
|
|
|
5229
|
+
var navParentIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 3.5 6 8.5 11 3.5\"/></svg>";
|
|
5230
|
+
|
|
5231
|
+
var navParentIconLarge = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 4 7 10 13 4\"/></svg>";
|
|
5232
|
+
|
|
5233
|
+
var navbarParentIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\"><polyline fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" points=\"1 3.5 6 8.5 11 3.5\"/></svg>";
|
|
5234
|
+
|
|
5249
5235
|
var navbarToggleIcon = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><rect y=\"9\" width=\"20\" height=\"2\"/><rect y=\"3\" width=\"20\" height=\"2\"/><rect y=\"15\" width=\"20\" height=\"2\"/></svg>";
|
|
5250
5236
|
|
|
5251
5237
|
var overlayIcon = "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"19\" y=\"0\" width=\"1\" height=\"40\"/><rect x=\"0\" y=\"19\" width=\"40\" height=\"1\"/></svg>";
|
|
@@ -5278,6 +5264,9 @@
|
|
|
5278
5264
|
marker,
|
|
5279
5265
|
'close-icon': closeIcon,
|
|
5280
5266
|
'close-large': closeLarge,
|
|
5267
|
+
'nav-parent-icon': navParentIcon,
|
|
5268
|
+
'nav-parent-icon-large': navParentIconLarge,
|
|
5269
|
+
'navbar-parent-icon': navbarParentIcon,
|
|
5281
5270
|
'navbar-toggle-icon': navbarToggleIcon,
|
|
5282
5271
|
'overlay-icon': overlayIcon,
|
|
5283
5272
|
'pagination-next': paginationNext,
|
|
@@ -5335,6 +5324,15 @@
|
|
|
5335
5324
|
} };
|
|
5336
5325
|
|
|
5337
5326
|
|
|
5327
|
+
const NavParentIcon = {
|
|
5328
|
+
extends: IconComponent,
|
|
5329
|
+
|
|
5330
|
+
beforeConnect() {
|
|
5331
|
+
const icon = this.$props.icon;
|
|
5332
|
+
this.icon = closest(this.$el, '.uk-nav-primary') ? icon + "-large" : icon;
|
|
5333
|
+
} };
|
|
5334
|
+
|
|
5335
|
+
|
|
5338
5336
|
const Slidenav = {
|
|
5339
5337
|
extends: IconComponent,
|
|
5340
5338
|
|
|
@@ -5595,7 +5593,7 @@
|
|
|
5595
5593
|
|
|
5596
5594
|
|
|
5597
5595
|
connected() {
|
|
5598
|
-
const media = toMedia(this.media);
|
|
5596
|
+
const media = toMedia(this.media, this.$el);
|
|
5599
5597
|
this.matchMedia = true;
|
|
5600
5598
|
if (media) {
|
|
5601
5599
|
this.mediaObj = window.matchMedia(media);
|
|
@@ -5616,11 +5614,10 @@
|
|
|
5616
5614
|
} };
|
|
5617
5615
|
|
|
5618
5616
|
|
|
5619
|
-
function toMedia(value) {
|
|
5617
|
+
function toMedia(value, element) {
|
|
5620
5618
|
if (isString(value)) {
|
|
5621
5619
|
if (startsWith(value, '@')) {
|
|
5622
|
-
|
|
5623
|
-
value = toFloat(getCssVar(name));
|
|
5620
|
+
value = toFloat(css(element, "uk-breakpoint-" + value.substr(1)));
|
|
5624
5621
|
} else if (isNaN(value)) {
|
|
5625
5622
|
return value;
|
|
5626
5623
|
}
|
|
@@ -5645,7 +5642,7 @@
|
|
|
5645
5642
|
|
|
5646
5643
|
computed: {
|
|
5647
5644
|
fill(_ref) {let { fill } = _ref;
|
|
5648
|
-
return fill ||
|
|
5645
|
+
return fill || css(this.$el, '--uk-leader-fill-content');
|
|
5649
5646
|
} },
|
|
5650
5647
|
|
|
5651
5648
|
|
|
@@ -5924,8 +5921,7 @@
|
|
|
5924
5921
|
{
|
|
5925
5922
|
...this.$props,
|
|
5926
5923
|
boundary: this.boundary,
|
|
5927
|
-
pos: this.pos
|
|
5928
|
-
offset: this.dropbar || this.offset });
|
|
5924
|
+
pos: this.pos });
|
|
5929
5925
|
|
|
5930
5926
|
|
|
5931
5927
|
},
|
|
@@ -6086,8 +6082,8 @@
|
|
|
6086
6082
|
return this.dropbar;
|
|
6087
6083
|
},
|
|
6088
6084
|
|
|
6089
|
-
handler(
|
|
6090
|
-
if (!
|
|
6085
|
+
handler(_ref9) {let { target } = _ref9;
|
|
6086
|
+
if (!this.isDropbarDrop(target)) {
|
|
6091
6087
|
return;
|
|
6092
6088
|
}
|
|
6093
6089
|
|
|
@@ -6095,7 +6091,7 @@
|
|
|
6095
6091
|
after(this.dropbarAnchor || this.$el, this.dropbar);
|
|
6096
6092
|
}
|
|
6097
6093
|
|
|
6098
|
-
addClass(
|
|
6094
|
+
addClass(target, this.clsDrop + "-dropbar");
|
|
6099
6095
|
} },
|
|
6100
6096
|
|
|
6101
6097
|
|
|
@@ -6110,22 +6106,47 @@
|
|
|
6110
6106
|
return this.dropbar;
|
|
6111
6107
|
},
|
|
6112
6108
|
|
|
6113
|
-
handler(
|
|
6114
|
-
if (!
|
|
6109
|
+
handler(_ref10) {let { target } = _ref10;
|
|
6110
|
+
if (!this.isDropbarDrop(target)) {
|
|
6115
6111
|
return;
|
|
6116
6112
|
}
|
|
6117
6113
|
|
|
6118
|
-
this._observer = observeResize(
|
|
6114
|
+
this._observer = observeResize(target, () =>
|
|
6119
6115
|
this.transitionTo(
|
|
6120
|
-
offset(
|
|
6116
|
+
offset(target).bottom -
|
|
6121
6117
|
offset(this.dropbar).top +
|
|
6122
|
-
toFloat(css(
|
|
6123
|
-
|
|
6118
|
+
toFloat(css(target, 'marginBottom')),
|
|
6119
|
+
target));
|
|
6124
6120
|
|
|
6125
6121
|
|
|
6126
6122
|
} },
|
|
6127
6123
|
|
|
6128
6124
|
|
|
6125
|
+
{
|
|
6126
|
+
name: 'beforeposition',
|
|
6127
|
+
|
|
6128
|
+
el() {
|
|
6129
|
+
return this.dropContainer;
|
|
6130
|
+
},
|
|
6131
|
+
|
|
6132
|
+
filter() {
|
|
6133
|
+
return this.dropbar;
|
|
6134
|
+
},
|
|
6135
|
+
|
|
6136
|
+
handler(e, element, target, options) {
|
|
6137
|
+
if (!this.isDropbarDrop(element)) {
|
|
6138
|
+
return;
|
|
6139
|
+
}
|
|
6140
|
+
|
|
6141
|
+
const dropbarOffset = offset(this.dropbar);
|
|
6142
|
+
|
|
6143
|
+
css(element, 'maxWidth', dropbarOffset.width - options.viewportOffset * 2);
|
|
6144
|
+
|
|
6145
|
+
options.offset[1] = dropbarOffset.top - offset(target).bottom;
|
|
6146
|
+
options.viewportOffset += dropbarOffset.left;
|
|
6147
|
+
} },
|
|
6148
|
+
|
|
6149
|
+
|
|
6129
6150
|
{
|
|
6130
6151
|
name: 'beforehide',
|
|
6131
6152
|
|
|
@@ -6137,12 +6158,12 @@
|
|
|
6137
6158
|
return this.dropbar;
|
|
6138
6159
|
},
|
|
6139
6160
|
|
|
6140
|
-
handler(e
|
|
6161
|
+
handler(e) {
|
|
6141
6162
|
const active = this.getActive();
|
|
6142
6163
|
|
|
6143
6164
|
if (
|
|
6144
6165
|
matches(this.dropbar, ':hover') &&
|
|
6145
|
-
(active == null ? void 0 : active.$el) ===
|
|
6166
|
+
(active == null ? void 0 : active.$el) === e.target &&
|
|
6146
6167
|
!this.toggles.some((el) => active.target !== el && matches(el, ':focus')))
|
|
6147
6168
|
{
|
|
6148
6169
|
e.preventDefault();
|
|
@@ -6161,8 +6182,8 @@
|
|
|
6161
6182
|
return this.dropbar;
|
|
6162
6183
|
},
|
|
6163
6184
|
|
|
6164
|
-
handler(
|
|
6165
|
-
if (!
|
|
6185
|
+
handler(_ref11) {let { target } = _ref11;
|
|
6186
|
+
if (!this.isDropbarDrop(target)) {
|
|
6166
6187
|
return;
|
|
6167
6188
|
}
|
|
6168
6189
|
|
|
@@ -6170,7 +6191,7 @@
|
|
|
6170
6191
|
|
|
6171
6192
|
const active = this.getActive();
|
|
6172
6193
|
|
|
6173
|
-
if (!active || (active == null ? void 0 : active.$el) ===
|
|
6194
|
+
if (!active || (active == null ? void 0 : active.$el) === target) {
|
|
6174
6195
|
this.transitionTo(0);
|
|
6175
6196
|
}
|
|
6176
6197
|
} }],
|
|
@@ -6209,6 +6230,11 @@
|
|
|
6209
6230
|
|
|
6210
6231
|
getDropdown(el) {
|
|
6211
6232
|
return this.$getComponent(el, 'drop') || this.$getComponent(el, 'dropdown');
|
|
6233
|
+
},
|
|
6234
|
+
|
|
6235
|
+
isDropbarDrop(el) {
|
|
6236
|
+
const drop = this.getDropdown(el);
|
|
6237
|
+
return drop && hasClass(el, this.clsDrop) && drop.align !== 'stretch';
|
|
6212
6238
|
} } };
|
|
6213
6239
|
|
|
6214
6240
|
|
|
@@ -6934,7 +6960,9 @@
|
|
|
6934
6960
|
},
|
|
6935
6961
|
|
|
6936
6962
|
handler() {
|
|
6937
|
-
|
|
6963
|
+
const { scrollingElement } = document;
|
|
6964
|
+
|
|
6965
|
+
if (!location.hash || scrollingElement.scrollTop === 0) {
|
|
6938
6966
|
return;
|
|
6939
6967
|
}
|
|
6940
6968
|
|
|
@@ -6943,13 +6971,11 @@
|
|
|
6943
6971
|
const elOffset = offset(this.$el);
|
|
6944
6972
|
|
|
6945
6973
|
if (this.isFixed && intersectRect(targetOffset, elOffset)) {
|
|
6946
|
-
scrollTop
|
|
6947
|
-
window,
|
|
6974
|
+
scrollingElement.scrollTop =
|
|
6948
6975
|
targetOffset.top -
|
|
6949
6976
|
elOffset.height -
|
|
6950
6977
|
toPx(this.targetOffset, 'height', this.placeholder) -
|
|
6951
|
-
toPx(this.offset, 'height', this.placeholder)
|
|
6952
|
-
|
|
6978
|
+
toPx(this.offset, 'height', this.placeholder);
|
|
6953
6979
|
}
|
|
6954
6980
|
});
|
|
6955
6981
|
} }],
|
|
@@ -7047,7 +7073,7 @@
|
|
|
7047
7073
|
|
|
7048
7074
|
|
|
7049
7075
|
{let { scroll: prevScroll = 0, dir: prevDir = 'down', overflow, overflowScroll = 0, start, end } = _ref4;
|
|
7050
|
-
const scroll = scrollTop
|
|
7076
|
+
const scroll = document.scrollingElement.scrollTop;
|
|
7051
7077
|
const dir = prevScroll <= scroll ? 'down' : 'up';
|
|
7052
7078
|
|
|
7053
7079
|
return {
|
|
@@ -7673,10 +7699,12 @@
|
|
|
7673
7699
|
Video: Video,
|
|
7674
7700
|
Close: Close,
|
|
7675
7701
|
Spinner: Spinner,
|
|
7702
|
+
NavParentIcon: NavParentIcon,
|
|
7676
7703
|
SlidenavNext: Slidenav,
|
|
7677
7704
|
SlidenavPrevious: Slidenav,
|
|
7678
7705
|
SearchIcon: Search,
|
|
7679
7706
|
Marker: IconComponent,
|
|
7707
|
+
NavbarParentIcon: IconComponent,
|
|
7680
7708
|
NavbarToggleIcon: IconComponent,
|
|
7681
7709
|
OverlayIcon: IconComponent,
|
|
7682
7710
|
PaginationNext: IconComponent,
|