uikit 3.14.4-dev.17d2f2727 → 3.14.4-dev.3a6c538ab
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 +14 -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 +26 -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 +110 -78
- 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 +118 -84
- 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 +27 -11
- package/src/js/mixin/togglable.js +8 -17
- package/src/js/util/position.js +1 -0
- package/src/js/util/style.js +4 -13
- 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 -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.3a6c538ab | 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
|
}
|
|
@@ -1795,20 +1785,6 @@
|
|
|
1795
1785
|
|
|
1796
1786
|
}
|
|
1797
1787
|
|
|
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
1788
|
function scrollIntoView(element, _temp) {let { offset: offsetBy = 0 } = _temp === void 0 ? {} : _temp;
|
|
1813
1789
|
const parents = isVisible(element) ? scrollParents(element) : [];
|
|
1814
1790
|
return parents.reduce(
|
|
@@ -1850,7 +1826,7 @@
|
|
|
1850
1826
|
(function step() {
|
|
1851
1827
|
const percent = ease(clamp((Date.now() - start) / duration));
|
|
1852
1828
|
|
|
1853
|
-
scrollTop
|
|
1829
|
+
element.scrollTop = scroll + top * percent;
|
|
1854
1830
|
|
|
1855
1831
|
// scroll more if we have not reached our destination
|
|
1856
1832
|
if (percent === 1) {
|
|
@@ -2106,6 +2082,7 @@
|
|
|
2106
2082
|
return newPos;
|
|
2107
2083
|
}
|
|
2108
2084
|
}
|
|
2085
|
+
continue;
|
|
2109
2086
|
}
|
|
2110
2087
|
|
|
2111
2088
|
// Move
|
|
@@ -2295,10 +2272,8 @@
|
|
|
2295
2272
|
findAll: findAll,
|
|
2296
2273
|
escape: escape,
|
|
2297
2274
|
css: css,
|
|
2298
|
-
getCssVar: getCssVar,
|
|
2299
2275
|
propName: propName,
|
|
2300
2276
|
isInView: isInView,
|
|
2301
|
-
scrollTop: scrollTop,
|
|
2302
2277
|
scrollIntoView: scrollIntoView,
|
|
2303
2278
|
scrolledOver: scrolledOver,
|
|
2304
2279
|
scrollParents: scrollParents,
|
|
@@ -2961,7 +2936,7 @@
|
|
|
2961
2936
|
UIkit.data = '__uikit__';
|
|
2962
2937
|
UIkit.prefix = 'uk-';
|
|
2963
2938
|
UIkit.options = {};
|
|
2964
|
-
UIkit.version = '3.14.4-dev.
|
|
2939
|
+
UIkit.version = '3.14.4-dev.3a6c538ab';
|
|
2965
2940
|
|
|
2966
2941
|
globalAPI(UIkit);
|
|
2967
2942
|
hooksAPI(UIkit);
|
|
@@ -3259,7 +3234,7 @@
|
|
|
3259
3234
|
|
|
3260
3235
|
Transition.cancel(el);
|
|
3261
3236
|
|
|
3262
|
-
const [scrollElement] = scrollParents(el);
|
|
3237
|
+
const [scrollElement] = scrollParents(el.offsetParent);
|
|
3263
3238
|
css(scrollElement, 'overflowX', 'hidden');
|
|
3264
3239
|
|
|
3265
3240
|
if (!isToggled(el)) {
|
|
@@ -3270,17 +3245,11 @@
|
|
|
3270
3245
|
duration = velocity * width + duration;
|
|
3271
3246
|
|
|
3272
3247
|
const percent = visible ? (width + marginLeft * (right ? -1 : 1)) / width * 100 : 0;
|
|
3273
|
-
const offsetEl = offset(el);
|
|
3274
|
-
const useClipPath = right ?
|
|
3275
|
-
offsetEl.right < scrollElement.clientWidth :
|
|
3276
|
-
Math.round(offsetEl.left) > 0;
|
|
3277
3248
|
|
|
3278
3249
|
css(el, {
|
|
3279
|
-
clipPath:
|
|
3280
|
-
right ? "polygon(0 0," +
|
|
3250
|
+
clipPath: right ? "polygon(0 0," +
|
|
3281
3251
|
percent + "% 0," + percent + "% 100%,0 100%)" : "polygon(" + (
|
|
3282
|
-
100 - percent) + "% 0,100% 0,100% 100%," + (100 - percent) + "% 100%)"
|
|
3283
|
-
'',
|
|
3252
|
+
100 - percent) + "% 0,100% 0,100% 100%," + (100 - percent) + "% 100%)",
|
|
3284
3253
|
marginLeft: (100 - percent) * (right ? 1 : -1) / 100 * width });
|
|
3285
3254
|
|
|
3286
3255
|
|
|
@@ -3289,7 +3258,7 @@
|
|
|
3289
3258
|
Transition.start(
|
|
3290
3259
|
el,
|
|
3291
3260
|
{
|
|
3292
|
-
clipPath:
|
|
3261
|
+
clipPath: "polygon(0 0,100% 0,100% 100%,0 100%)",
|
|
3293
3262
|
marginLeft: 0 },
|
|
3294
3263
|
|
|
3295
3264
|
duration * (1 - percent / 100),
|
|
@@ -3298,11 +3267,9 @@
|
|
|
3298
3267
|
Transition.start(
|
|
3299
3268
|
el,
|
|
3300
3269
|
{
|
|
3301
|
-
clipPath:
|
|
3302
|
-
right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)" :
|
|
3270
|
+
clipPath: right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)",
|
|
3303
3271
|
|
|
3304
3272
|
|
|
3305
|
-
'',
|
|
3306
3273
|
marginLeft: (right ? 1 : -1) * width },
|
|
3307
3274
|
|
|
3308
3275
|
duration * (percent / 100),
|
|
@@ -3698,23 +3665,38 @@
|
|
|
3698
3665
|
offset = offset.reverse();
|
|
3699
3666
|
}
|
|
3700
3667
|
|
|
3668
|
+
const [scrollElement] = scrollParents(element, /auto|scroll/);
|
|
3669
|
+
const { scrollTop, scrollLeft } = scrollElement;
|
|
3670
|
+
|
|
3701
3671
|
// Ensure none positioned element does not generate scrollbars
|
|
3702
3672
|
const elDim = dimensions(element);
|
|
3703
3673
|
css(element, { top: -elDim.height, left: -elDim.width });
|
|
3704
3674
|
|
|
3705
|
-
|
|
3675
|
+
const args = [
|
|
3676
|
+
element,
|
|
3677
|
+
target,
|
|
3678
|
+
{
|
|
3706
3679
|
attach,
|
|
3707
3680
|
offset,
|
|
3708
3681
|
boundary,
|
|
3709
3682
|
flip: this.flip,
|
|
3710
|
-
viewportOffset: this.getViewportOffset(element) }
|
|
3683
|
+
viewportOffset: this.getViewportOffset(element) }];
|
|
3684
|
+
|
|
3685
|
+
|
|
3711
3686
|
|
|
3687
|
+
trigger(element, 'beforeposition', args);
|
|
3688
|
+
|
|
3689
|
+
positionAt(...args);
|
|
3690
|
+
|
|
3691
|
+
// Restore scroll position
|
|
3692
|
+
scrollElement.scrollTop = scrollTop;
|
|
3693
|
+
scrollElement.scrollLeft = scrollLeft;
|
|
3712
3694
|
},
|
|
3713
3695
|
|
|
3714
3696
|
getPositionOffset(element) {
|
|
3715
3697
|
return (
|
|
3716
3698
|
toPx(
|
|
3717
|
-
this.offset === false ?
|
|
3699
|
+
this.offset === false ? css(element, '--uk-position-offset') : this.offset,
|
|
3718
3700
|
this.axis === 'x' ? 'width' : 'height',
|
|
3719
3701
|
element) * (
|
|
3720
3702
|
includes(['left', 'top'], this.dir) ? -1 : 1));
|
|
@@ -3725,14 +3707,14 @@
|
|
|
3725
3707
|
return includes(['center', 'justify', 'stretch'], this.align) ?
|
|
3726
3708
|
0 :
|
|
3727
3709
|
toPx(
|
|
3728
|
-
|
|
3710
|
+
css(element, '--uk-position-shift-offset'),
|
|
3729
3711
|
this.axis === 'y' ? 'width' : 'height',
|
|
3730
3712
|
element) * (
|
|
3731
3713
|
includes(['left', 'top'], this.align) ? 1 : -1);
|
|
3732
3714
|
},
|
|
3733
3715
|
|
|
3734
3716
|
getViewportOffset(element) {
|
|
3735
|
-
return toPx(
|
|
3717
|
+
return toPx(css(element, '--uk-position-viewport-offset'));
|
|
3736
3718
|
} } };
|
|
3737
3719
|
|
|
3738
3720
|
const active$1 = [];
|
|
@@ -4983,7 +4965,9 @@
|
|
|
4983
4965
|
0);
|
|
4984
4966
|
|
|
4985
4967
|
} else {
|
|
4986
|
-
const
|
|
4968
|
+
const { body, scrollingElement } = document;
|
|
4969
|
+
const isScrollingElement =
|
|
4970
|
+
scrollingElement === scrollElement || body === scrollElement;
|
|
4987
4971
|
|
|
4988
4972
|
// on mobile devices (iOS and Android) window.innerHeight !== 100vh
|
|
4989
4973
|
minHeight = "calc(" + (isScrollingElement ? '100vh' : viewportHeight + "px");
|
|
@@ -5237,6 +5221,12 @@
|
|
|
5237
5221
|
|
|
5238
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>";
|
|
5239
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
|
+
|
|
5240
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>";
|
|
5241
5231
|
|
|
5242
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>";
|
|
@@ -5269,6 +5259,9 @@
|
|
|
5269
5259
|
marker,
|
|
5270
5260
|
'close-icon': closeIcon,
|
|
5271
5261
|
'close-large': closeLarge,
|
|
5262
|
+
'nav-parent-icon': navParentIcon,
|
|
5263
|
+
'nav-parent-icon-large': navParentIconLarge,
|
|
5264
|
+
'navbar-parent-icon': navbarParentIcon,
|
|
5272
5265
|
'navbar-toggle-icon': navbarToggleIcon,
|
|
5273
5266
|
'overlay-icon': overlayIcon,
|
|
5274
5267
|
'pagination-next': paginationNext,
|
|
@@ -5326,6 +5319,15 @@
|
|
|
5326
5319
|
} };
|
|
5327
5320
|
|
|
5328
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
|
+
|
|
5329
5331
|
const Slidenav = {
|
|
5330
5332
|
extends: IconComponent,
|
|
5331
5333
|
|
|
@@ -5586,7 +5588,7 @@
|
|
|
5586
5588
|
|
|
5587
5589
|
|
|
5588
5590
|
connected() {
|
|
5589
|
-
const media = toMedia(this.media);
|
|
5591
|
+
const media = toMedia(this.media, this.$el);
|
|
5590
5592
|
this.matchMedia = true;
|
|
5591
5593
|
if (media) {
|
|
5592
5594
|
this.mediaObj = window.matchMedia(media);
|
|
@@ -5607,11 +5609,10 @@
|
|
|
5607
5609
|
} };
|
|
5608
5610
|
|
|
5609
5611
|
|
|
5610
|
-
function toMedia(value) {
|
|
5612
|
+
function toMedia(value, element) {
|
|
5611
5613
|
if (isString(value)) {
|
|
5612
5614
|
if (startsWith(value, '@')) {
|
|
5613
|
-
|
|
5614
|
-
value = toFloat(getCssVar(name));
|
|
5615
|
+
value = toFloat(css(element, "--uk-breakpoint-" + value.substr(1)));
|
|
5615
5616
|
} else if (isNaN(value)) {
|
|
5616
5617
|
return value;
|
|
5617
5618
|
}
|
|
@@ -5636,7 +5637,7 @@
|
|
|
5636
5637
|
|
|
5637
5638
|
computed: {
|
|
5638
5639
|
fill(_ref) {let { fill } = _ref;
|
|
5639
|
-
return fill ||
|
|
5640
|
+
return fill || css(this.$el, '--uk-leader-fill-content');
|
|
5640
5641
|
} },
|
|
5641
5642
|
|
|
5642
5643
|
|
|
@@ -5915,8 +5916,7 @@
|
|
|
5915
5916
|
{
|
|
5916
5917
|
...this.$props,
|
|
5917
5918
|
boundary: this.boundary,
|
|
5918
|
-
pos: this.pos
|
|
5919
|
-
offset: this.dropbar || this.offset });
|
|
5919
|
+
pos: this.pos });
|
|
5920
5920
|
|
|
5921
5921
|
|
|
5922
5922
|
},
|
|
@@ -6077,8 +6077,8 @@
|
|
|
6077
6077
|
return this.dropbar;
|
|
6078
6078
|
},
|
|
6079
6079
|
|
|
6080
|
-
handler(
|
|
6081
|
-
if (!
|
|
6080
|
+
handler(_ref9) {let { target } = _ref9;
|
|
6081
|
+
if (!this.isDropbarDrop(target)) {
|
|
6082
6082
|
return;
|
|
6083
6083
|
}
|
|
6084
6084
|
|
|
@@ -6086,7 +6086,7 @@
|
|
|
6086
6086
|
after(this.dropbarAnchor || this.$el, this.dropbar);
|
|
6087
6087
|
}
|
|
6088
6088
|
|
|
6089
|
-
addClass(
|
|
6089
|
+
addClass(target, this.clsDrop + "-dropbar");
|
|
6090
6090
|
} },
|
|
6091
6091
|
|
|
6092
6092
|
|
|
@@ -6101,19 +6101,44 @@
|
|
|
6101
6101
|
return this.dropbar;
|
|
6102
6102
|
},
|
|
6103
6103
|
|
|
6104
|
-
handler(
|
|
6105
|
-
if (!
|
|
6104
|
+
handler(_ref10) {let { target } = _ref10;
|
|
6105
|
+
if (!this.isDropbarDrop(target)) {
|
|
6106
6106
|
return;
|
|
6107
6107
|
}
|
|
6108
6108
|
|
|
6109
|
-
this._observer = observeResize(
|
|
6109
|
+
this._observer = observeResize(target, () =>
|
|
6110
6110
|
this.transitionTo(
|
|
6111
|
-
offset(
|
|
6111
|
+
offset(target).bottom -
|
|
6112
6112
|
offset(this.dropbar).top +
|
|
6113
|
-
toFloat(css(
|
|
6114
|
-
|
|
6113
|
+
toFloat(css(target, 'marginBottom')),
|
|
6114
|
+
target));
|
|
6115
|
+
|
|
6116
|
+
|
|
6117
|
+
} },
|
|
6118
|
+
|
|
6119
|
+
|
|
6120
|
+
{
|
|
6121
|
+
name: 'beforeposition',
|
|
6122
|
+
|
|
6123
|
+
el() {
|
|
6124
|
+
return this.dropContainer;
|
|
6125
|
+
},
|
|
6115
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);
|
|
6116
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;
|
|
6117
6142
|
} },
|
|
6118
6143
|
|
|
6119
6144
|
|
|
@@ -6128,12 +6153,12 @@
|
|
|
6128
6153
|
return this.dropbar;
|
|
6129
6154
|
},
|
|
6130
6155
|
|
|
6131
|
-
handler(e
|
|
6156
|
+
handler(e) {
|
|
6132
6157
|
const active = this.getActive();
|
|
6133
6158
|
|
|
6134
6159
|
if (
|
|
6135
6160
|
matches(this.dropbar, ':hover') &&
|
|
6136
|
-
(active == null ? void 0 : active.$el) ===
|
|
6161
|
+
(active == null ? void 0 : active.$el) === e.target &&
|
|
6137
6162
|
!this.toggles.some((el) => active.target !== el && matches(el, ':focus')))
|
|
6138
6163
|
{
|
|
6139
6164
|
e.preventDefault();
|
|
@@ -6152,8 +6177,8 @@
|
|
|
6152
6177
|
return this.dropbar;
|
|
6153
6178
|
},
|
|
6154
6179
|
|
|
6155
|
-
handler(
|
|
6156
|
-
if (!
|
|
6180
|
+
handler(_ref11) {let { target } = _ref11;
|
|
6181
|
+
if (!this.isDropbarDrop(target)) {
|
|
6157
6182
|
return;
|
|
6158
6183
|
}
|
|
6159
6184
|
|
|
@@ -6161,7 +6186,7 @@
|
|
|
6161
6186
|
|
|
6162
6187
|
const active = this.getActive();
|
|
6163
6188
|
|
|
6164
|
-
if (!active || (active == null ? void 0 : active.$el) ===
|
|
6189
|
+
if (!active || (active == null ? void 0 : active.$el) === target) {
|
|
6165
6190
|
this.transitionTo(0);
|
|
6166
6191
|
}
|
|
6167
6192
|
} }],
|
|
@@ -6200,6 +6225,11 @@
|
|
|
6200
6225
|
|
|
6201
6226
|
getDropdown(el) {
|
|
6202
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';
|
|
6203
6233
|
} } };
|
|
6204
6234
|
|
|
6205
6235
|
|
|
@@ -6925,7 +6955,9 @@
|
|
|
6925
6955
|
},
|
|
6926
6956
|
|
|
6927
6957
|
handler() {
|
|
6928
|
-
|
|
6958
|
+
const { scrollingElement } = document;
|
|
6959
|
+
|
|
6960
|
+
if (!location.hash || scrollingElement.scrollTop === 0) {
|
|
6929
6961
|
return;
|
|
6930
6962
|
}
|
|
6931
6963
|
|
|
@@ -6934,13 +6966,11 @@
|
|
|
6934
6966
|
const elOffset = offset(this.$el);
|
|
6935
6967
|
|
|
6936
6968
|
if (this.isFixed && intersectRect(targetOffset, elOffset)) {
|
|
6937
|
-
scrollTop
|
|
6938
|
-
window,
|
|
6969
|
+
scrollingElement.scrollTop =
|
|
6939
6970
|
targetOffset.top -
|
|
6940
6971
|
elOffset.height -
|
|
6941
6972
|
toPx(this.targetOffset, 'height', this.placeholder) -
|
|
6942
|
-
toPx(this.offset, 'height', this.placeholder)
|
|
6943
|
-
|
|
6973
|
+
toPx(this.offset, 'height', this.placeholder);
|
|
6944
6974
|
}
|
|
6945
6975
|
});
|
|
6946
6976
|
} }],
|
|
@@ -7038,7 +7068,7 @@
|
|
|
7038
7068
|
|
|
7039
7069
|
|
|
7040
7070
|
{let { scroll: prevScroll = 0, dir: prevDir = 'down', overflow, overflowScroll = 0, start, end } = _ref4;
|
|
7041
|
-
const scroll = scrollTop
|
|
7071
|
+
const scroll = document.scrollingElement.scrollTop;
|
|
7042
7072
|
const dir = prevScroll <= scroll ? 'down' : 'up';
|
|
7043
7073
|
|
|
7044
7074
|
return {
|
|
@@ -7664,10 +7694,12 @@
|
|
|
7664
7694
|
Video: Video,
|
|
7665
7695
|
Close: Close,
|
|
7666
7696
|
Spinner: Spinner,
|
|
7697
|
+
NavParentIcon: NavParentIcon,
|
|
7667
7698
|
SlidenavNext: Slidenav,
|
|
7668
7699
|
SlidenavPrevious: Slidenav,
|
|
7669
7700
|
SearchIcon: Search,
|
|
7670
7701
|
Marker: IconComponent,
|
|
7702
|
+
NavbarParentIcon: IconComponent,
|
|
7671
7703
|
NavbarToggleIcon: IconComponent,
|
|
7672
7704
|
OverlayIcon: IconComponent,
|
|
7673
7705
|
PaginationNext: IconComponent,
|