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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.18.
|
|
5
|
+
"version": "3.18.3-dev.003cb6c84",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/drop.js
CHANGED
|
@@ -432,7 +432,7 @@ export default {
|
|
|
432
432
|
|
|
433
433
|
for (const [i, [axis, prop, start, end]] of dirs) {
|
|
434
434
|
if (this.axis === axis && includes([axis, true], this.stretch)) {
|
|
435
|
-
const positionOffset = Math.abs(this.getPositionOffset(
|
|
435
|
+
const positionOffset = Math.abs(this.getPositionOffset());
|
|
436
436
|
const targetOffset = offset(this.target[i]);
|
|
437
437
|
const elOffset = offset(this.$el);
|
|
438
438
|
|
package/src/js/core/dropnav.js
CHANGED
|
@@ -289,7 +289,10 @@ export default {
|
|
|
289
289
|
.map((el) => offset(el).bottom),
|
|
290
290
|
);
|
|
291
291
|
|
|
292
|
-
|
|
292
|
+
offset(this.dropbar, {
|
|
293
|
+
left: offset(this.dropbar).left,
|
|
294
|
+
top: this.getDropbarOffset(drop.getPositionOffset()),
|
|
295
|
+
});
|
|
293
296
|
this.transitionTo(
|
|
294
297
|
maxBottom - offset(this.dropbar).top + toFloat(css(target, 'marginBottom')),
|
|
295
298
|
target,
|
|
@@ -395,10 +398,10 @@ export default {
|
|
|
395
398
|
return includes(this.dropdowns, el) && hasClass(el, this.clsDrop);
|
|
396
399
|
},
|
|
397
400
|
|
|
398
|
-
getDropbarOffset(
|
|
401
|
+
getDropbarOffset(offsetTop) {
|
|
399
402
|
const { $el, target, targetY } = this;
|
|
400
|
-
const {
|
|
401
|
-
return
|
|
403
|
+
const { top, height } = offset(query(targetY || target || $el, $el));
|
|
404
|
+
return top + height + offsetTop;
|
|
402
405
|
},
|
|
403
406
|
|
|
404
407
|
initializeDropdowns() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $$, boxModelAdjust, css, isVisible, pick } from 'uikit-util';
|
|
1
|
+
import { $$, boxModelAdjust, css, dimensions, isVisible, pick } from 'uikit-util';
|
|
2
2
|
import { resize } from '../api/observables';
|
|
3
3
|
import { getRows } from './margin';
|
|
4
4
|
|
|
@@ -50,11 +50,7 @@ function match(elements) {
|
|
|
50
50
|
const max = Math.max(...heights);
|
|
51
51
|
|
|
52
52
|
return {
|
|
53
|
-
heights: elements.map((el, i) =>
|
|
54
|
-
heights[i].toFixed(2) === max.toFixed(2)
|
|
55
|
-
? ''
|
|
56
|
-
: max - boxModelAdjust(el, 'height', 'content-box'),
|
|
57
|
-
),
|
|
53
|
+
heights: elements.map((el, i) => (heights[i].toFixed(2) === max.toFixed(2) ? '' : max)),
|
|
58
54
|
elements,
|
|
59
55
|
};
|
|
60
56
|
}
|
|
@@ -66,7 +62,7 @@ function getHeight(element) {
|
|
|
66
62
|
css(element, 'display', 'block', 'important');
|
|
67
63
|
}
|
|
68
64
|
css(element, 'minHeight', '');
|
|
69
|
-
const height = element.
|
|
65
|
+
const height = dimensions(element).height - boxModelAdjust(element, 'height', 'content-box');
|
|
70
66
|
css(element, style);
|
|
71
67
|
return height;
|
|
72
68
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css,
|
|
1
|
+
import { css, query } from 'uikit-util';
|
|
2
2
|
import { resize } from '../api/observables';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
|
|
21
21
|
update: {
|
|
22
22
|
read() {
|
|
23
|
-
return { height:
|
|
23
|
+
return { height: this.target.offsetHeight };
|
|
24
24
|
},
|
|
25
25
|
|
|
26
26
|
write({ height }) {
|
package/src/js/core/navbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $$, addClass, css, hasClass, removeClass } from 'uikit-util';
|
|
1
|
+
import { $$, addClass, css, hasClass, offset, removeClass } from 'uikit-util';
|
|
2
2
|
import Dropnav from './dropnav';
|
|
3
3
|
|
|
4
4
|
const clsNavbarTransparent = 'uk-navbar-transparent';
|
|
@@ -88,14 +88,9 @@ export default {
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
|
|
91
|
-
getDropbarOffset(
|
|
92
|
-
const {
|
|
93
|
-
return (
|
|
94
|
-
offsetTop +
|
|
95
|
-
(this.dropbarTransparentMode === 'behind'
|
|
96
|
-
? 0
|
|
97
|
-
: offsetHeight + this.getDropdown(el)?.getPositionOffset(el))
|
|
98
|
-
);
|
|
91
|
+
getDropbarOffset(offsetTop) {
|
|
92
|
+
const { top, height } = offset(this.navbarContainer);
|
|
93
|
+
return top + (this.dropbarTransparentMode === 'behind' ? 0 : height + offsetTop);
|
|
99
94
|
},
|
|
100
95
|
},
|
|
101
96
|
};
|
package/src/js/mixin/position.js
CHANGED
|
@@ -67,7 +67,7 @@ export default {
|
|
|
67
67
|
restoreScrollPosition();
|
|
68
68
|
},
|
|
69
69
|
|
|
70
|
-
getPositionOffset(element) {
|
|
70
|
+
getPositionOffset(element = this.$el) {
|
|
71
71
|
return (
|
|
72
72
|
toPx(
|
|
73
73
|
this.offset === false ? css(element, '--uk-position-offset') : this.offset,
|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
79
79
|
);
|
|
80
80
|
},
|
|
81
81
|
|
|
82
|
-
getShiftOffset(element) {
|
|
82
|
+
getShiftOffset(element = this.$el) {
|
|
83
83
|
return this.align === 'center'
|
|
84
84
|
? 0
|
|
85
85
|
: toPx(
|
|
@@ -54,7 +54,9 @@ export default {
|
|
|
54
54
|
if (
|
|
55
55
|
!(
|
|
56
56
|
this.stack.length ||
|
|
57
|
-
(this.draggable &&
|
|
57
|
+
(this.draggable &&
|
|
58
|
+
matches(this.$el, ':focus-within') &&
|
|
59
|
+
!matches(this.$el, ':focus')) ||
|
|
58
60
|
(this.pauseOnHover && matches(this.$el, ':hover'))
|
|
59
61
|
)
|
|
60
62
|
) {
|