uikit 3.15.15-dev.492ccd2ec → 3.15.15-dev.5eb24ed21
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 +4 -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 +5 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +5 -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 +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 +9 -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 +9 -13
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/img.js +3 -11
- package/src/js/mixin/modal.js +4 -1
- package/tests/image.html +6 -6
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.15.15-dev.
|
|
5
|
+
"version": "3.15.15-dev.5eb24ed21",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/img.js
CHANGED
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
queryAll,
|
|
20
20
|
removeAttr,
|
|
21
21
|
startsWith,
|
|
22
|
-
toPx,
|
|
23
22
|
trigger,
|
|
24
23
|
} from 'uikit-util';
|
|
25
24
|
|
|
@@ -31,8 +30,7 @@ export default {
|
|
|
31
30
|
props: {
|
|
32
31
|
dataSrc: String,
|
|
33
32
|
sources: String,
|
|
34
|
-
|
|
35
|
-
offsetLeft: String,
|
|
33
|
+
margin: String,
|
|
36
34
|
target: String,
|
|
37
35
|
loading: String,
|
|
38
36
|
},
|
|
@@ -40,8 +38,7 @@ export default {
|
|
|
40
38
|
data: {
|
|
41
39
|
dataSrc: '',
|
|
42
40
|
sources: false,
|
|
43
|
-
|
|
44
|
-
offsetLeft: '50vw',
|
|
41
|
+
margin: '50% 50%',
|
|
45
42
|
target: false,
|
|
46
43
|
loading: 'lazy',
|
|
47
44
|
},
|
|
@@ -72,12 +69,7 @@ export default {
|
|
|
72
69
|
this.load();
|
|
73
70
|
observer.disconnect();
|
|
74
71
|
},
|
|
75
|
-
{
|
|
76
|
-
rootMargin: `${toPx(this.offsetTop, 'height')}px ${toPx(
|
|
77
|
-
this.offsetLeft,
|
|
78
|
-
'width'
|
|
79
|
-
)}px`,
|
|
80
|
-
}
|
|
72
|
+
{ rootMargin: this.margin }
|
|
81
73
|
)
|
|
82
74
|
);
|
|
83
75
|
},
|
package/src/js/mixin/modal.js
CHANGED
|
@@ -304,7 +304,10 @@ function toMs(time) {
|
|
|
304
304
|
|
|
305
305
|
export function preventOverscroll(el) {
|
|
306
306
|
if (CSS.supports('overscroll-behavior', 'contain')) {
|
|
307
|
-
const elements =
|
|
307
|
+
const elements = [
|
|
308
|
+
el,
|
|
309
|
+
...filterChildren(el, (child) => /auto|scroll/.test(css(child, 'overflow'))),
|
|
310
|
+
];
|
|
308
311
|
css(elements, 'overscrollBehavior', 'contain');
|
|
309
312
|
return () => css(elements, 'overscrollBehavior', '');
|
|
310
313
|
}
|
package/tests/image.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<div class="uk-height-large uk-background-cover uk-margin-medium uk-flex uk-flex-center uk-flex-middle uk-light" data-src="https://images.unsplash.com/photo-1495321308589-43affb814eee?fit=crop&w=1200&h=450&q=80" uk-img="loading: eager">
|
|
18
18
|
<h1>Background Image Loading Eager</h1>
|
|
19
19
|
</div>
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
<h2>Loading Lazy Attribute</h2>
|
|
22
22
|
|
|
23
23
|
<div class="uk-child-width-1-2@m" uk-grid>
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
sizes="(min-width: 1200px) 1200px, 100vw" uk-img>
|
|
266
266
|
<h1>Background Picture with Srcset</h1>
|
|
267
267
|
</div>
|
|
268
|
-
|
|
268
|
+
|
|
269
269
|
<div class="uk-height-large uk-background-cover uk-margin-medium uk-flex uk-flex-center uk-flex-middle"
|
|
270
270
|
sources="[{"srcset": "images/image-type.avif",
|
|
271
271
|
"type": "image\/avif"
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
width="746" height="498" alt="" uk-img>
|
|
492
492
|
</div>
|
|
493
493
|
</div>
|
|
494
|
-
|
|
494
|
+
|
|
495
495
|
<div class="uk-child-width-1-2@m" uk-grid>
|
|
496
496
|
<div>
|
|
497
497
|
|
|
@@ -621,10 +621,10 @@
|
|
|
621
621
|
<td>Enable lazy/eager loading. Set to `eager` for images within the first visible viewport.</td>
|
|
622
622
|
</tr>
|
|
623
623
|
<tr>
|
|
624
|
-
<td><code>
|
|
624
|
+
<td><code>margin</code></td>
|
|
625
625
|
<td>String</td>
|
|
626
|
-
<td>'
|
|
627
|
-
<td>The
|
|
626
|
+
<td>'50% 50%'</td>
|
|
627
|
+
<td>The margin increases the viewport's bounding box, before computing an intersection with the image. (Must be px or % units)</td>
|
|
628
628
|
</tr>
|
|
629
629
|
<tr>
|
|
630
630
|
<td><code>offsetLeft</code></td>
|