uikit 3.18.2 → 3.18.3-dev.454229dfd
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 +10 -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 +16 -13
- 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 +17 -14
- 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 +3 -3
- package/src/js/core/height-placeholder.js +2 -2
- package/src/js/core/navbar.js +10 -8
- 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.454229dfd",
|
|
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,7 @@ export default {
|
|
|
289
289
|
.map((el) => offset(el).bottom),
|
|
290
290
|
);
|
|
291
291
|
|
|
292
|
-
|
|
292
|
+
offset(this.dropbar, this.getDropbarOffset(drop.$el));
|
|
293
293
|
this.transitionTo(
|
|
294
294
|
maxBottom - offset(this.dropbar).top + toFloat(css(target, 'marginBottom')),
|
|
295
295
|
target,
|
|
@@ -397,8 +397,8 @@ export default {
|
|
|
397
397
|
|
|
398
398
|
getDropbarOffset(el) {
|
|
399
399
|
const { $el, target, targetY } = this;
|
|
400
|
-
const {
|
|
401
|
-
return
|
|
400
|
+
const { top, height } = offset(query(targetY || target || $el, $el));
|
|
401
|
+
return { left: 0, top: top + height + this.getDropdown(el)?.getPositionOffset() };
|
|
402
402
|
},
|
|
403
403
|
|
|
404
404
|
initializeDropdowns() {
|
|
@@ -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';
|
|
@@ -89,13 +89,15 @@ export default {
|
|
|
89
89
|
},
|
|
90
90
|
|
|
91
91
|
getDropbarOffset(el) {
|
|
92
|
-
const {
|
|
93
|
-
return
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
const { top, height } = offset(this.navbarContainer);
|
|
93
|
+
return {
|
|
94
|
+
left: 0,
|
|
95
|
+
top:
|
|
96
|
+
top +
|
|
97
|
+
(this.dropbarTransparentMode === 'behind'
|
|
98
|
+
? 0
|
|
99
|
+
: height + this.getDropdown(el)?.getPositionOffset()),
|
|
100
|
+
};
|
|
99
101
|
},
|
|
100
102
|
},
|
|
101
103
|
};
|
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
|
) {
|