uikit 3.14.4-dev.e3664d0d2 → 3.14.4-dev.fea9fd466
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 +1 -1
- 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 -61
- 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 +106 -65
- 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/core/height-viewport.js +6 -2
- 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/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/style.js +4 -13
- package/src/js/util/viewport.js +2 -4
- 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 -62
- 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.fea9fd466 | 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,18 +785,11 @@
|
|
|
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
|
|
|
796
|
-
const cssPrefixes = ['webkit', 'moz'];
|
|
797
|
-
|
|
798
791
|
function vendorPropName(name) {
|
|
799
|
-
if (name
|
|
792
|
+
if (startsWith(name, '--')) {
|
|
800
793
|
return name;
|
|
801
794
|
}
|
|
802
795
|
|
|
@@ -808,11 +801,8 @@
|
|
|
808
801
|
return name;
|
|
809
802
|
}
|
|
810
803
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
while (i--) {
|
|
815
|
-
prefixedName = "-" + cssPrefixes[i] + "-" + name;
|
|
804
|
+
for (const prefix of ['webkit', 'moz']) {
|
|
805
|
+
const prefixedName = "-" + prefix + "-" + name;
|
|
816
806
|
if (prefixedName in style) {
|
|
817
807
|
return prefixedName;
|
|
818
808
|
}
|
|
@@ -1899,12 +1889,10 @@
|
|
|
1899
1889
|
function offsetViewport(scrollElement) {
|
|
1900
1890
|
const window = toWindow(scrollElement);
|
|
1901
1891
|
const {
|
|
1902
|
-
document: {
|
|
1892
|
+
document: { documentElement } } =
|
|
1903
1893
|
window;
|
|
1904
1894
|
let viewportElement =
|
|
1905
|
-
scrollElement === scrollingElement(scrollElement)
|
|
1906
|
-
window :
|
|
1907
|
-
scrollElement;
|
|
1895
|
+
scrollElement === scrollingElement(scrollElement) ? window : scrollElement;
|
|
1908
1896
|
|
|
1909
1897
|
const { visualViewport } = window;
|
|
1910
1898
|
if (isWindow(viewportElement) && visualViewport) {
|
|
@@ -2282,7 +2270,6 @@
|
|
|
2282
2270
|
findAll: findAll,
|
|
2283
2271
|
escape: escape,
|
|
2284
2272
|
css: css,
|
|
2285
|
-
getCssVar: getCssVar,
|
|
2286
2273
|
propName: propName,
|
|
2287
2274
|
isInView: isInView,
|
|
2288
2275
|
scrollIntoView: scrollIntoView,
|
|
@@ -2947,7 +2934,7 @@
|
|
|
2947
2934
|
UIkit.data = '__uikit__';
|
|
2948
2935
|
UIkit.prefix = 'uk-';
|
|
2949
2936
|
UIkit.options = {};
|
|
2950
|
-
UIkit.version = '3.14.4-dev.
|
|
2937
|
+
UIkit.version = '3.14.4-dev.fea9fd466';
|
|
2951
2938
|
|
|
2952
2939
|
globalAPI(UIkit);
|
|
2953
2940
|
hooksAPI(UIkit);
|
|
@@ -3245,7 +3232,7 @@
|
|
|
3245
3232
|
|
|
3246
3233
|
Transition.cancel(el);
|
|
3247
3234
|
|
|
3248
|
-
const [scrollElement] = scrollParents(el);
|
|
3235
|
+
const [scrollElement] = scrollParents(el.offsetParent);
|
|
3249
3236
|
css(scrollElement, 'overflowX', 'hidden');
|
|
3250
3237
|
|
|
3251
3238
|
if (!isToggled(el)) {
|
|
@@ -3256,17 +3243,11 @@
|
|
|
3256
3243
|
duration = velocity * width + duration;
|
|
3257
3244
|
|
|
3258
3245
|
const percent = visible ? (width + marginLeft * (right ? -1 : 1)) / width * 100 : 0;
|
|
3259
|
-
const offsetEl = offset(el);
|
|
3260
|
-
const useClipPath = right ?
|
|
3261
|
-
offsetEl.right < scrollElement.clientWidth :
|
|
3262
|
-
Math.round(offsetEl.left) > 0;
|
|
3263
3246
|
|
|
3264
3247
|
css(el, {
|
|
3265
|
-
clipPath:
|
|
3266
|
-
right ? "polygon(0 0," +
|
|
3248
|
+
clipPath: right ? "polygon(0 0," +
|
|
3267
3249
|
percent + "% 0," + percent + "% 100%,0 100%)" : "polygon(" + (
|
|
3268
|
-
100 - percent) + "% 0,100% 0,100% 100%," + (100 - percent) + "% 100%)"
|
|
3269
|
-
'',
|
|
3250
|
+
100 - percent) + "% 0,100% 0,100% 100%," + (100 - percent) + "% 100%)",
|
|
3270
3251
|
marginLeft: (100 - percent) * (right ? 1 : -1) / 100 * width });
|
|
3271
3252
|
|
|
3272
3253
|
|
|
@@ -3275,7 +3256,7 @@
|
|
|
3275
3256
|
Transition.start(
|
|
3276
3257
|
el,
|
|
3277
3258
|
{
|
|
3278
|
-
clipPath:
|
|
3259
|
+
clipPath: "polygon(0 0,100% 0,100% 100%,0 100%)",
|
|
3279
3260
|
marginLeft: 0 },
|
|
3280
3261
|
|
|
3281
3262
|
duration * (1 - percent / 100),
|
|
@@ -3284,11 +3265,9 @@
|
|
|
3284
3265
|
Transition.start(
|
|
3285
3266
|
el,
|
|
3286
3267
|
{
|
|
3287
|
-
clipPath:
|
|
3288
|
-
right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)" :
|
|
3268
|
+
clipPath: right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)",
|
|
3289
3269
|
|
|
3290
3270
|
|
|
3291
|
-
'',
|
|
3292
3271
|
marginLeft: (right ? 1 : -1) * width },
|
|
3293
3272
|
|
|
3294
3273
|
duration * (percent / 100),
|
|
@@ -3691,14 +3670,22 @@
|
|
|
3691
3670
|
const elDim = dimensions(element);
|
|
3692
3671
|
css(element, { top: -elDim.height, left: -elDim.width });
|
|
3693
3672
|
|
|
3694
|
-
|
|
3673
|
+
const args = [
|
|
3674
|
+
element,
|
|
3675
|
+
target,
|
|
3676
|
+
{
|
|
3695
3677
|
attach,
|
|
3696
3678
|
offset,
|
|
3697
3679
|
boundary,
|
|
3698
3680
|
flip: this.flip,
|
|
3699
|
-
viewportOffset: this.getViewportOffset(element) }
|
|
3681
|
+
viewportOffset: this.getViewportOffset(element) }];
|
|
3700
3682
|
|
|
3701
3683
|
|
|
3684
|
+
|
|
3685
|
+
trigger(element, 'beforeposition', args);
|
|
3686
|
+
|
|
3687
|
+
positionAt(...args);
|
|
3688
|
+
|
|
3702
3689
|
// Restore scroll position
|
|
3703
3690
|
scrollElement.scrollTop = scrollTop;
|
|
3704
3691
|
scrollElement.scrollLeft = scrollLeft;
|
|
@@ -3707,7 +3694,7 @@
|
|
|
3707
3694
|
getPositionOffset(element) {
|
|
3708
3695
|
return (
|
|
3709
3696
|
toPx(
|
|
3710
|
-
this.offset === false ?
|
|
3697
|
+
this.offset === false ? css(element, '--uk-position-offset') : this.offset,
|
|
3711
3698
|
this.axis === 'x' ? 'width' : 'height',
|
|
3712
3699
|
element) * (
|
|
3713
3700
|
includes(['left', 'top'], this.dir) ? -1 : 1));
|
|
@@ -3718,14 +3705,14 @@
|
|
|
3718
3705
|
return includes(['center', 'justify', 'stretch'], this.align) ?
|
|
3719
3706
|
0 :
|
|
3720
3707
|
toPx(
|
|
3721
|
-
|
|
3708
|
+
css(element, '--uk-position-shift-offset'),
|
|
3722
3709
|
this.axis === 'y' ? 'width' : 'height',
|
|
3723
3710
|
element) * (
|
|
3724
3711
|
includes(['left', 'top'], this.align) ? 1 : -1);
|
|
3725
3712
|
},
|
|
3726
3713
|
|
|
3727
3714
|
getViewportOffset(element) {
|
|
3728
|
-
return toPx(
|
|
3715
|
+
return toPx(css(element, '--uk-position-viewport-offset'));
|
|
3729
3716
|
} } };
|
|
3730
3717
|
|
|
3731
3718
|
const active$1 = [];
|
|
@@ -4965,8 +4952,11 @@
|
|
|
4965
4952
|
let minHeight = '';
|
|
4966
4953
|
const box = boxModelAdjust(this.$el, 'height', 'content-box');
|
|
4967
4954
|
|
|
4955
|
+
const { body, scrollingElement } = document;
|
|
4968
4956
|
const [scrollElement] = scrollParents(this.$el, /auto|scroll/);
|
|
4969
|
-
const { height: viewportHeight } = offsetViewport(
|
|
4957
|
+
const { height: viewportHeight } = offsetViewport(
|
|
4958
|
+
scrollElement === body ? scrollingElement : scrollElement);
|
|
4959
|
+
|
|
4970
4960
|
|
|
4971
4961
|
if (this.expand) {
|
|
4972
4962
|
minHeight = Math.max(
|
|
@@ -4976,7 +4966,8 @@
|
|
|
4976
4966
|
0);
|
|
4977
4967
|
|
|
4978
4968
|
} else {
|
|
4979
|
-
const isScrollingElement =
|
|
4969
|
+
const isScrollingElement =
|
|
4970
|
+
scrollingElement === scrollElement || body === scrollElement;
|
|
4980
4971
|
|
|
4981
4972
|
// on mobile devices (iOS and Android) window.innerHeight !== 100vh
|
|
4982
4973
|
minHeight = "calc(" + (isScrollingElement ? '100vh' : viewportHeight + "px");
|
|
@@ -5230,6 +5221,12 @@
|
|
|
5230
5221
|
|
|
5231
5222
|
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>";
|
|
5232
5223
|
|
|
5224
|
+
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>";
|
|
5225
|
+
|
|
5226
|
+
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>";
|
|
5227
|
+
|
|
5228
|
+
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>";
|
|
5229
|
+
|
|
5233
5230
|
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>";
|
|
5234
5231
|
|
|
5235
5232
|
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>";
|
|
@@ -5262,6 +5259,9 @@
|
|
|
5262
5259
|
marker,
|
|
5263
5260
|
'close-icon': closeIcon,
|
|
5264
5261
|
'close-large': closeLarge,
|
|
5262
|
+
'nav-parent-icon': navParentIcon,
|
|
5263
|
+
'nav-parent-icon-large': navParentIconLarge,
|
|
5264
|
+
'navbar-parent-icon': navbarParentIcon,
|
|
5265
5265
|
'navbar-toggle-icon': navbarToggleIcon,
|
|
5266
5266
|
'overlay-icon': overlayIcon,
|
|
5267
5267
|
'pagination-next': paginationNext,
|
|
@@ -5319,6 +5319,15 @@
|
|
|
5319
5319
|
} };
|
|
5320
5320
|
|
|
5321
5321
|
|
|
5322
|
+
const NavParentIcon = {
|
|
5323
|
+
extends: IconComponent,
|
|
5324
|
+
|
|
5325
|
+
beforeConnect() {
|
|
5326
|
+
const icon = this.$props.icon;
|
|
5327
|
+
this.icon = closest(this.$el, '.uk-nav-primary') ? icon + "-large" : icon;
|
|
5328
|
+
} };
|
|
5329
|
+
|
|
5330
|
+
|
|
5322
5331
|
const Slidenav = {
|
|
5323
5332
|
extends: IconComponent,
|
|
5324
5333
|
|
|
@@ -5579,7 +5588,7 @@
|
|
|
5579
5588
|
|
|
5580
5589
|
|
|
5581
5590
|
connected() {
|
|
5582
|
-
const media = toMedia(this.media);
|
|
5591
|
+
const media = toMedia(this.media, this.$el);
|
|
5583
5592
|
this.matchMedia = true;
|
|
5584
5593
|
if (media) {
|
|
5585
5594
|
this.mediaObj = window.matchMedia(media);
|
|
@@ -5600,11 +5609,10 @@
|
|
|
5600
5609
|
} };
|
|
5601
5610
|
|
|
5602
5611
|
|
|
5603
|
-
function toMedia(value) {
|
|
5612
|
+
function toMedia(value, element) {
|
|
5604
5613
|
if (isString(value)) {
|
|
5605
5614
|
if (startsWith(value, '@')) {
|
|
5606
|
-
|
|
5607
|
-
value = toFloat(getCssVar(name));
|
|
5615
|
+
value = toFloat(css(element, "--uk-breakpoint-" + value.substr(1)));
|
|
5608
5616
|
} else if (isNaN(value)) {
|
|
5609
5617
|
return value;
|
|
5610
5618
|
}
|
|
@@ -5629,7 +5637,7 @@
|
|
|
5629
5637
|
|
|
5630
5638
|
computed: {
|
|
5631
5639
|
fill(_ref) {let { fill } = _ref;
|
|
5632
|
-
return fill ||
|
|
5640
|
+
return fill || css(this.$el, '--uk-leader-fill-content');
|
|
5633
5641
|
} },
|
|
5634
5642
|
|
|
5635
5643
|
|
|
@@ -5908,8 +5916,7 @@
|
|
|
5908
5916
|
{
|
|
5909
5917
|
...this.$props,
|
|
5910
5918
|
boundary: this.boundary,
|
|
5911
|
-
pos: this.pos
|
|
5912
|
-
offset: this.dropbar || this.offset });
|
|
5919
|
+
pos: this.pos });
|
|
5913
5920
|
|
|
5914
5921
|
|
|
5915
5922
|
},
|
|
@@ -6070,8 +6077,8 @@
|
|
|
6070
6077
|
return this.dropbar;
|
|
6071
6078
|
},
|
|
6072
6079
|
|
|
6073
|
-
handler(
|
|
6074
|
-
if (!
|
|
6080
|
+
handler(_ref9) {let { target } = _ref9;
|
|
6081
|
+
if (!this.isDropbarDrop(target)) {
|
|
6075
6082
|
return;
|
|
6076
6083
|
}
|
|
6077
6084
|
|
|
@@ -6079,7 +6086,7 @@
|
|
|
6079
6086
|
after(this.dropbarAnchor || this.$el, this.dropbar);
|
|
6080
6087
|
}
|
|
6081
6088
|
|
|
6082
|
-
addClass(
|
|
6089
|
+
addClass(target, this.clsDrop + "-dropbar");
|
|
6083
6090
|
} },
|
|
6084
6091
|
|
|
6085
6092
|
|
|
@@ -6094,22 +6101,47 @@
|
|
|
6094
6101
|
return this.dropbar;
|
|
6095
6102
|
},
|
|
6096
6103
|
|
|
6097
|
-
handler(
|
|
6098
|
-
if (!
|
|
6104
|
+
handler(_ref10) {let { target } = _ref10;
|
|
6105
|
+
if (!this.isDropbarDrop(target)) {
|
|
6099
6106
|
return;
|
|
6100
6107
|
}
|
|
6101
6108
|
|
|
6102
|
-
this._observer = observeResize(
|
|
6109
|
+
this._observer = observeResize(target, () =>
|
|
6103
6110
|
this.transitionTo(
|
|
6104
|
-
offset(
|
|
6111
|
+
offset(target).bottom -
|
|
6105
6112
|
offset(this.dropbar).top +
|
|
6106
|
-
toFloat(css(
|
|
6107
|
-
|
|
6113
|
+
toFloat(css(target, 'marginBottom')),
|
|
6114
|
+
target));
|
|
6108
6115
|
|
|
6109
6116
|
|
|
6110
6117
|
} },
|
|
6111
6118
|
|
|
6112
6119
|
|
|
6120
|
+
{
|
|
6121
|
+
name: 'beforeposition',
|
|
6122
|
+
|
|
6123
|
+
el() {
|
|
6124
|
+
return this.dropContainer;
|
|
6125
|
+
},
|
|
6126
|
+
|
|
6127
|
+
filter() {
|
|
6128
|
+
return this.dropbar;
|
|
6129
|
+
},
|
|
6130
|
+
|
|
6131
|
+
handler(e, element, target, options) {
|
|
6132
|
+
if (!this.isDropbarDrop(element)) {
|
|
6133
|
+
return;
|
|
6134
|
+
}
|
|
6135
|
+
|
|
6136
|
+
const dropbarOffset = offset(this.dropbar);
|
|
6137
|
+
|
|
6138
|
+
css(element, 'maxWidth', dropbarOffset.width - options.viewportOffset * 2);
|
|
6139
|
+
|
|
6140
|
+
options.offset[1] = dropbarOffset.top - offset(target).bottom;
|
|
6141
|
+
options.viewportOffset += dropbarOffset.left;
|
|
6142
|
+
} },
|
|
6143
|
+
|
|
6144
|
+
|
|
6113
6145
|
{
|
|
6114
6146
|
name: 'beforehide',
|
|
6115
6147
|
|
|
@@ -6121,12 +6153,12 @@
|
|
|
6121
6153
|
return this.dropbar;
|
|
6122
6154
|
},
|
|
6123
6155
|
|
|
6124
|
-
handler(e
|
|
6156
|
+
handler(e) {
|
|
6125
6157
|
const active = this.getActive();
|
|
6126
6158
|
|
|
6127
6159
|
if (
|
|
6128
6160
|
matches(this.dropbar, ':hover') &&
|
|
6129
|
-
(active == null ? void 0 : active.$el) ===
|
|
6161
|
+
(active == null ? void 0 : active.$el) === e.target &&
|
|
6130
6162
|
!this.toggles.some((el) => active.target !== el && matches(el, ':focus')))
|
|
6131
6163
|
{
|
|
6132
6164
|
e.preventDefault();
|
|
@@ -6145,8 +6177,8 @@
|
|
|
6145
6177
|
return this.dropbar;
|
|
6146
6178
|
},
|
|
6147
6179
|
|
|
6148
|
-
handler(
|
|
6149
|
-
if (!
|
|
6180
|
+
handler(_ref11) {let { target } = _ref11;
|
|
6181
|
+
if (!this.isDropbarDrop(target)) {
|
|
6150
6182
|
return;
|
|
6151
6183
|
}
|
|
6152
6184
|
|
|
@@ -6154,7 +6186,7 @@
|
|
|
6154
6186
|
|
|
6155
6187
|
const active = this.getActive();
|
|
6156
6188
|
|
|
6157
|
-
if (!active || (active == null ? void 0 : active.$el) ===
|
|
6189
|
+
if (!active || (active == null ? void 0 : active.$el) === target) {
|
|
6158
6190
|
this.transitionTo(0);
|
|
6159
6191
|
}
|
|
6160
6192
|
} }],
|
|
@@ -6193,6 +6225,11 @@
|
|
|
6193
6225
|
|
|
6194
6226
|
getDropdown(el) {
|
|
6195
6227
|
return this.$getComponent(el, 'drop') || this.$getComponent(el, 'dropdown');
|
|
6228
|
+
},
|
|
6229
|
+
|
|
6230
|
+
isDropbarDrop(el) {
|
|
6231
|
+
const drop = this.getDropdown(el);
|
|
6232
|
+
return drop && hasClass(el, this.clsDrop) && drop.align !== 'stretch';
|
|
6196
6233
|
} } };
|
|
6197
6234
|
|
|
6198
6235
|
|
|
@@ -7657,10 +7694,12 @@
|
|
|
7657
7694
|
Video: Video,
|
|
7658
7695
|
Close: Close,
|
|
7659
7696
|
Spinner: Spinner,
|
|
7697
|
+
NavParentIcon: NavParentIcon,
|
|
7660
7698
|
SlidenavNext: Slidenav,
|
|
7661
7699
|
SlidenavPrevious: Slidenav,
|
|
7662
7700
|
SearchIcon: Search,
|
|
7663
7701
|
Marker: IconComponent,
|
|
7702
|
+
NavbarParentIcon: IconComponent,
|
|
7664
7703
|
NavbarToggleIcon: IconComponent,
|
|
7665
7704
|
OverlayIcon: IconComponent,
|
|
7666
7705
|
PaginationNext: IconComponent,
|