uikit 3.9.5-dev.1c5ab040d → 3.9.5-dev.600ee2ba9
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 +1 -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 +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 +21 -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 -22
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/drop.js +3 -2
- package/src/js/core/img.js +16 -14
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.9.5-dev.
|
|
5
|
+
"version": "3.9.5-dev.600ee2ba9",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/drop.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Container from '../mixin/container';
|
|
2
2
|
import Position from '../mixin/position';
|
|
3
3
|
import Togglable from '../mixin/togglable';
|
|
4
|
-
import {addClass, append, apply, css, hasClass, includes, isTouch, matches, MouseTracker, offset, on, once, parent, pointerCancel, pointerDown, pointerEnter, pointerLeave, pointerUp, query, removeClass, toggleClass, within} from 'uikit-util';
|
|
4
|
+
import {addClass, append, apply, attr, css, hasClass, includes, isTouch, matches, MouseTracker, offset, on, once, parent, pointerCancel, pointerDown, pointerEnter, pointerLeave, pointerUp, query, removeClass, toggleClass, within} from 'uikit-util';
|
|
5
5
|
|
|
6
6
|
export let active;
|
|
7
7
|
|
|
@@ -62,7 +62,8 @@ export default {
|
|
|
62
62
|
this.target = this.$create('toggle', query(this.toggle, this.$el), {
|
|
63
63
|
target: this.$el,
|
|
64
64
|
mode: this.mode
|
|
65
|
-
});
|
|
65
|
+
}).$el;
|
|
66
|
+
attr(this.target, 'aria-haspopup', true);
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
},
|
package/src/js/core/img.js
CHANGED
|
@@ -2,7 +2,10 @@ import {attr, children, createEvent, css, data, Dimensions, escape, getImage, in
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
|
|
5
|
+
args: 'dataSrc',
|
|
6
|
+
|
|
5
7
|
props: {
|
|
8
|
+
dataSrc: String,
|
|
6
9
|
width: Number,
|
|
7
10
|
height: Number,
|
|
8
11
|
offsetTop: String,
|
|
@@ -11,6 +14,7 @@ export default {
|
|
|
11
14
|
},
|
|
12
15
|
|
|
13
16
|
data: {
|
|
17
|
+
dataSrc: '',
|
|
14
18
|
width: false,
|
|
15
19
|
height: false,
|
|
16
20
|
offsetTop: '50vh',
|
|
@@ -20,16 +24,8 @@ export default {
|
|
|
20
24
|
|
|
21
25
|
computed: {
|
|
22
26
|
|
|
23
|
-
cacheKey() {
|
|
24
|
-
return `${this.$name}.${
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
width({width, dataWidth}) {
|
|
28
|
-
return width || dataWidth;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
height({height, dataHeight}) {
|
|
32
|
-
return height || dataHeight;
|
|
27
|
+
cacheKey({dataSrc}) {
|
|
28
|
+
return `${this.$name}.${dataSrc}`;
|
|
33
29
|
},
|
|
34
30
|
|
|
35
31
|
target: {
|
|
@@ -64,7 +60,7 @@ export default {
|
|
|
64
60
|
if (storage[this.cacheKey]) {
|
|
65
61
|
setSrcAttrs(this.$el, storage[this.cacheKey]);
|
|
66
62
|
} else if (isImg(this.$el) && this.width && this.height) {
|
|
67
|
-
attr(this.$el, 'src', getPlaceholderImage(this.$el)
|
|
63
|
+
attr(this.$el, 'src', getPlaceholderImage(this.$el));
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
this.observer = new IntersectionObserver(this.load, {
|
|
@@ -127,7 +123,7 @@ export default {
|
|
|
127
123
|
return;
|
|
128
124
|
}
|
|
129
125
|
|
|
130
|
-
this._data.image = getImageFromElement(this.$el).then(img => {
|
|
126
|
+
this._data.image = getImageFromElement(this.$el, this.dataSrc).then(img => {
|
|
131
127
|
|
|
132
128
|
setSrcAttrs(this.$el, currentSrc(img));
|
|
133
129
|
storage[this.cacheKey] = currentSrc(img);
|
|
@@ -161,6 +157,7 @@ function setSrcAttrs(el, src) {
|
|
|
161
157
|
}
|
|
162
158
|
})
|
|
163
159
|
);
|
|
160
|
+
attr(el, 'src', src);
|
|
164
161
|
} else if (src) {
|
|
165
162
|
|
|
166
163
|
const change = !includes(el.style.backgroundImage, src);
|
|
@@ -201,10 +198,15 @@ function sizesToPixel(sizes) {
|
|
|
201
198
|
return matches || '100vw';
|
|
202
199
|
}
|
|
203
200
|
|
|
204
|
-
function getImageFromElement(el) {
|
|
201
|
+
function getImageFromElement(el, src) {
|
|
205
202
|
const parentNode = parent(el);
|
|
203
|
+
|
|
204
|
+
if (!src) {
|
|
205
|
+
return Promise.reject(createEvent('error', false));
|
|
206
|
+
}
|
|
207
|
+
|
|
206
208
|
if (!isPicture(parentNode)) {
|
|
207
|
-
return getImage(...srcProps.map(prop => data(el, prop)));
|
|
209
|
+
return getImage(src, ...srcProps.slice(1).map(prop => data(el, prop)));
|
|
208
210
|
}
|
|
209
211
|
|
|
210
212
|
return new Promise((resolve, reject) => {
|