uikit 3.20.2 → 3.20.3-dev.1cfb4e2ef
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 +4 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +4 -2
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +4 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +4 -2
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +4 -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 +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 +14 -14
- 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 +14 -14
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/util/filter.js +6 -5
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.20.
|
|
5
|
+
"version": "3.20.3-dev.1cfb4e2ef",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/util/filter.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { inBrowser } from './env.js';
|
|
1
2
|
import { toArray, toNode, toNodes } from './lang';
|
|
2
3
|
|
|
3
4
|
const voidElements = {
|
|
@@ -21,11 +22,11 @@ export function isVoidElement(element) {
|
|
|
21
22
|
return toNodes(element).some((element) => voidElements[element.tagName.toLowerCase()]);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
const isVisibleFn =
|
|
25
|
-
Element.prototype.checkVisibility
|
|
26
|
-
function () {
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const isVisibleFn = inBrowser
|
|
26
|
+
? Element.prototype.checkVisibility
|
|
27
|
+
: function () {
|
|
28
|
+
return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
|
|
29
|
+
};
|
|
29
30
|
export function isVisible(element) {
|
|
30
31
|
return toNodes(element).some((element) => isVisibleFn.call(element));
|
|
31
32
|
}
|