uikit 3.16.26 → 3.16.27-dev.6592ba2c5
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 +6 -0
- 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 +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +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 +1 -1
- 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 +13 -11
- 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 +13 -11
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/observables.js +2 -2
- package/src/js/core/height-viewport.js +14 -17
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.16.
|
|
5
|
+
"version": "3.16.27-dev.6592ba2c5",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -52,8 +52,8 @@ export function lazyload(options = {}) {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export function viewport() {
|
|
56
|
-
return observe((target, handler) => observeViewportResize(handler));
|
|
55
|
+
export function viewport(options) {
|
|
56
|
+
return observe((target, handler) => observeViewportResize(handler), options);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export function scroll(options) {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
scrollParents,
|
|
14
14
|
toFloat,
|
|
15
15
|
} from 'uikit-util';
|
|
16
|
-
import { resize } from '../api/observables';
|
|
16
|
+
import { resize, viewport } from '../api/observables';
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
19
|
props: {
|
|
@@ -31,9 +31,10 @@ export default {
|
|
|
31
31
|
},
|
|
32
32
|
|
|
33
33
|
// check for offsetTop change
|
|
34
|
-
observe:
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
observe: [
|
|
35
|
+
viewport({ filter: ({ expand }) => expand }),
|
|
36
|
+
resize({ target: ({ $el }) => scrollParents($el) }),
|
|
37
|
+
],
|
|
37
38
|
|
|
38
39
|
update: {
|
|
39
40
|
read() {
|
|
@@ -50,19 +51,15 @@ export default {
|
|
|
50
51
|
scrollElement === body ? scrollingElement : scrollElement,
|
|
51
52
|
);
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
minHeight = `${
|
|
55
|
-
viewportHeight -
|
|
56
|
-
(dimensions(scrollElement).height - dimensions(this.$el).height) -
|
|
57
|
-
box
|
|
58
|
-
}px`;
|
|
59
|
-
} else {
|
|
60
|
-
const isScrollingElement =
|
|
61
|
-
scrollingElement === scrollElement || body === scrollElement;
|
|
54
|
+
const isScrollingElement = scrollingElement === scrollElement || body === scrollElement;
|
|
62
55
|
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
// on mobile devices (iOS and Android) window.innerHeight !== 100vh
|
|
57
|
+
minHeight = `calc(${isScrollingElement ? '100vh' : `${viewportHeight}px`}`;
|
|
65
58
|
|
|
59
|
+
if (this.expand) {
|
|
60
|
+
const diff = dimensions(scrollElement).height - dimensions(this.$el).height;
|
|
61
|
+
minHeight += ` - ${diff}px`;
|
|
62
|
+
} else {
|
|
66
63
|
if (this.offsetTop) {
|
|
67
64
|
if (isScrollingElement) {
|
|
68
65
|
const top = offsetPosition(this.$el)[0] - offsetPosition(scrollElement)[0];
|
|
@@ -81,10 +78,10 @@ export default {
|
|
|
81
78
|
} else if (isString(this.offsetBottom)) {
|
|
82
79
|
minHeight += ` - ${dimensions(query(this.offsetBottom, this.$el)).height}px`;
|
|
83
80
|
}
|
|
84
|
-
|
|
85
|
-
minHeight += `${box ? ` - ${box}px` : ''})`;
|
|
86
81
|
}
|
|
87
82
|
|
|
83
|
+
minHeight += `${box ? ` - ${box}px` : ''})`;
|
|
84
|
+
|
|
88
85
|
return { minHeight };
|
|
89
86
|
},
|
|
90
87
|
|