uikit 3.18.2-dev.e1f7d3815 → 3.18.3-dev.003cb6c84
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 +11 -1
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- 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 +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +2 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +2 -2
- 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 +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +2 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +2 -2
- 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 +3 -3
- 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 +20 -22
- 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 +21 -23
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/drop.js +1 -1
- package/src/js/core/dropnav.js +7 -4
- package/src/js/core/height-match.js +3 -7
- package/src/js/core/height-placeholder.js +2 -2
- package/src/js/core/navbar.js +4 -9
- package/src/js/mixin/position.js +2 -2
- package/src/js/mixin/slider-autoplay.js +3 -1
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.18.
|
|
1
|
+
/*! UIkit 3.18.3-dev.003cb6c84 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2149,7 +2149,7 @@
|
|
|
2149
2149
|
};
|
|
2150
2150
|
App.util = util;
|
|
2151
2151
|
App.options = {};
|
|
2152
|
-
App.version = "3.18.
|
|
2152
|
+
App.version = "3.18.3-dev.003cb6c84";
|
|
2153
2153
|
|
|
2154
2154
|
const PREFIX = "uk-";
|
|
2155
2155
|
const DATA = "__uikit__";
|
|
@@ -3056,14 +3056,14 @@
|
|
|
3056
3056
|
});
|
|
3057
3057
|
restoreScrollPosition();
|
|
3058
3058
|
},
|
|
3059
|
-
getPositionOffset(element) {
|
|
3059
|
+
getPositionOffset(element = this.$el) {
|
|
3060
3060
|
return toPx(
|
|
3061
3061
|
this.offset === false ? css(element, "--uk-position-offset") : this.offset,
|
|
3062
3062
|
this.axis === "x" ? "width" : "height",
|
|
3063
3063
|
element
|
|
3064
3064
|
) * (includes(["left", "top"], this.dir) ? -1 : 1) * (this.inset ? -1 : 1);
|
|
3065
3065
|
},
|
|
3066
|
-
getShiftOffset(element) {
|
|
3066
|
+
getShiftOffset(element = this.$el) {
|
|
3067
3067
|
return this.align === "center" ? 0 : toPx(
|
|
3068
3068
|
css(element, "--uk-position-shift-offset"),
|
|
3069
3069
|
this.axis === "y" ? "width" : "height",
|
|
@@ -3438,7 +3438,7 @@
|
|
|
3438
3438
|
this.positionAt(this.$el, this.target, this.boundary);
|
|
3439
3439
|
for (const [i, [axis, prop, start, end]] of dirs) {
|
|
3440
3440
|
if (this.axis === axis && includes([axis, true], this.stretch)) {
|
|
3441
|
-
const positionOffset = Math.abs(this.getPositionOffset(
|
|
3441
|
+
const positionOffset = Math.abs(this.getPositionOffset());
|
|
3442
3442
|
const targetOffset = offset(this.target[i]);
|
|
3443
3443
|
const elOffset = offset(this.$el);
|
|
3444
3444
|
css(this.$el, {
|
|
@@ -3715,7 +3715,10 @@
|
|
|
3715
3715
|
const maxBottom = Math.max(
|
|
3716
3716
|
...parents(target, `.${this.clsDrop}`).concat(target).map((el) => offset(el).bottom)
|
|
3717
3717
|
);
|
|
3718
|
-
|
|
3718
|
+
offset(this.dropbar, {
|
|
3719
|
+
left: offset(this.dropbar).left,
|
|
3720
|
+
top: this.getDropbarOffset(drop.getPositionOffset())
|
|
3721
|
+
});
|
|
3719
3722
|
this.transitionTo(
|
|
3720
3723
|
maxBottom - offset(this.dropbar).top + toFloat(css(target, "marginBottom")),
|
|
3721
3724
|
target
|
|
@@ -3794,11 +3797,10 @@
|
|
|
3794
3797
|
isDropbarDrop(el) {
|
|
3795
3798
|
return includes(this.dropdowns, el) && hasClass(el, this.clsDrop);
|
|
3796
3799
|
},
|
|
3797
|
-
getDropbarOffset(
|
|
3798
|
-
var _a;
|
|
3800
|
+
getDropbarOffset(offsetTop) {
|
|
3799
3801
|
const { $el, target, targetY } = this;
|
|
3800
|
-
const {
|
|
3801
|
-
return
|
|
3802
|
+
const { top, height: height2 } = offset(query(targetY || target || $el, $el));
|
|
3803
|
+
return top + height2 + offsetTop;
|
|
3802
3804
|
},
|
|
3803
3805
|
initializeDropdowns() {
|
|
3804
3806
|
this.$create(
|
|
@@ -4176,20 +4178,17 @@
|
|
|
4176
4178
|
let heights = elements.map(getHeight);
|
|
4177
4179
|
const max = Math.max(...heights);
|
|
4178
4180
|
return {
|
|
4179
|
-
heights: elements.map(
|
|
4180
|
-
(el, i) => heights[i].toFixed(2) === max.toFixed(2) ? "" : max - boxModelAdjust(el, "height", "content-box")
|
|
4181
|
-
),
|
|
4181
|
+
heights: elements.map((el, i) => heights[i].toFixed(2) === max.toFixed(2) ? "" : max),
|
|
4182
4182
|
elements
|
|
4183
4183
|
};
|
|
4184
4184
|
}
|
|
4185
4185
|
function getHeight(element) {
|
|
4186
|
-
var _a;
|
|
4187
4186
|
const style = pick(element.style, ["display", "minHeight"]);
|
|
4188
4187
|
if (!isVisible(element)) {
|
|
4189
4188
|
css(element, "display", "block", "important");
|
|
4190
4189
|
}
|
|
4191
4190
|
css(element, "minHeight", "");
|
|
4192
|
-
const height = (
|
|
4191
|
+
const height = dimensions(element).height - boxModelAdjust(element, "height", "content-box");
|
|
4193
4192
|
css(element, style);
|
|
4194
4193
|
return height;
|
|
4195
4194
|
}
|
|
@@ -4208,10 +4207,10 @@
|
|
|
4208
4207
|
observe: resize({ target: ({ target }) => target }),
|
|
4209
4208
|
update: {
|
|
4210
4209
|
read() {
|
|
4211
|
-
return { height:
|
|
4210
|
+
return { height: this.target.offsetHeight };
|
|
4212
4211
|
},
|
|
4213
|
-
write({ height
|
|
4214
|
-
css(this.$el, { minHeight:
|
|
4212
|
+
write({ height }) {
|
|
4213
|
+
css(this.$el, { minHeight: height });
|
|
4215
4214
|
},
|
|
4216
4215
|
events: ["resize"]
|
|
4217
4216
|
}
|
|
@@ -5269,10 +5268,9 @@
|
|
|
5269
5268
|
return drop.inset ? "behind" : "remove";
|
|
5270
5269
|
}
|
|
5271
5270
|
},
|
|
5272
|
-
getDropbarOffset(
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
return offsetTop + (this.dropbarTransparentMode === "behind" ? 0 : offsetHeight + ((_a = this.getDropdown(el)) == null ? void 0 : _a.getPositionOffset(el)));
|
|
5271
|
+
getDropbarOffset(offsetTop) {
|
|
5272
|
+
const { top, height } = offset(this.navbarContainer);
|
|
5273
|
+
return top + (this.dropbarTransparentMode === "behind" ? 0 : height + offsetTop);
|
|
5276
5274
|
}
|
|
5277
5275
|
}
|
|
5278
5276
|
};
|