uikit 3.25.18-dev.4dfe15b → 3.25.18-dev.9fa57fb
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 +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 +4 -4
- 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 +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +4 -4
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +10 -10
- 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 +16 -16
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/instance.js +5 -3
- package/src/js/components/slider.js +2 -2
- package/src/js/components/upload.js +4 -4
- package/src/js/mixin/slider-nav.js +1 -1
- package/src/js/util/event.js +3 -3
- package/src/js/util/position.js +2 -2
- package/tests/sortable.html +4 -4
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.25.18-dev.
|
|
5
|
+
"version": "3.25.18-dev.9fa57fb",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/api/instance.js
CHANGED
|
@@ -26,10 +26,12 @@ export default function (App) {
|
|
|
26
26
|
|
|
27
27
|
callHook(instance, 'destroy');
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
if (el) {
|
|
30
|
+
detachFromElement(el, instance);
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
if (removeEl) {
|
|
33
|
+
remove(el);
|
|
34
|
+
}
|
|
33
35
|
}
|
|
34
36
|
};
|
|
35
37
|
|
|
@@ -127,7 +127,7 @@ export default {
|
|
|
127
127
|
|
|
128
128
|
observe: [
|
|
129
129
|
resize({
|
|
130
|
-
target: ({
|
|
130
|
+
target: ({ list, $el }) => [$el, ...children(list)],
|
|
131
131
|
}),
|
|
132
132
|
intersection({
|
|
133
133
|
handler(entries) {
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
target.ariaHidden = target.inert = !isIntersecting;
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
-
target: ({
|
|
138
|
+
target: ({ list }) => children(list),
|
|
139
139
|
args: { intersecting: false },
|
|
140
140
|
options: ({ $el }) => ({ root: $el, rootMargin: '0px -10px' }),
|
|
141
141
|
}),
|
|
@@ -101,6 +101,10 @@ export default {
|
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
if (!this.multiple) {
|
|
105
|
+
files = files.slice(0, 1);
|
|
106
|
+
}
|
|
107
|
+
|
|
104
108
|
trigger(this.$el, 'upload', [files]);
|
|
105
109
|
|
|
106
110
|
for (const file of files) {
|
|
@@ -120,10 +124,6 @@ export default {
|
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
|
|
123
|
-
if (!this.multiple) {
|
|
124
|
-
files = files.slice(0, 1);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
127
|
this.beforeAll(this, files);
|
|
128
128
|
|
|
129
129
|
const chunks = chunk(files, this.concurrent);
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
126
126
|
update: [
|
|
127
127
|
{
|
|
128
128
|
write() {
|
|
129
|
-
this.navItems.concat(this.nav).forEach((el) => el && (el.hidden =
|
|
129
|
+
this.navItems.concat(this.nav).forEach((el) => el && (el.hidden = this.maxIndex < 1));
|
|
130
130
|
this.updateNav();
|
|
131
131
|
},
|
|
132
132
|
|
package/src/js/util/event.js
CHANGED
|
@@ -54,9 +54,9 @@ export function once(...args) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export function trigger(targets, event, detail) {
|
|
57
|
-
return toEventTargets(targets)
|
|
58
|
-
target.dispatchEvent(createEvent(event, true, true, detail))
|
|
59
|
-
|
|
57
|
+
return toEventTargets(targets)
|
|
58
|
+
.map((target) => target.dispatchEvent(createEvent(event, true, true, detail)))
|
|
59
|
+
.every((result) => result);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export function createEvent(e, bubbles = true, cancelable = false, detail) {
|
package/src/js/util/position.js
CHANGED
|
@@ -204,8 +204,8 @@ function flipAxis(element, target, options) {
|
|
|
204
204
|
element: options.attach.element.map(flipAttachAxis).reverse(),
|
|
205
205
|
target: options.attach.target.map(flipAttachAxis).reverse(),
|
|
206
206
|
},
|
|
207
|
-
offset: options.offset.reverse(),
|
|
208
|
-
placement: options.placement.reverse(),
|
|
207
|
+
offset: [...options.offset].reverse(),
|
|
208
|
+
placement: [...options.placement].reverse(),
|
|
209
209
|
recursion: true,
|
|
210
210
|
});
|
|
211
211
|
}
|
package/tests/sortable.html
CHANGED
|
@@ -227,13 +227,13 @@
|
|
|
227
227
|
<tr>
|
|
228
228
|
<td><code>duration</code></td>
|
|
229
229
|
<td>Number</td>
|
|
230
|
-
<td>
|
|
230
|
+
<td>150</td>
|
|
231
231
|
<td>Animation duration in milliseconds.</td>
|
|
232
232
|
</tr>
|
|
233
233
|
<tr>
|
|
234
234
|
<td><code>threshold</code></td>
|
|
235
235
|
<td>Number</td>
|
|
236
|
-
<td>
|
|
236
|
+
<td>5</td>
|
|
237
237
|
<td>Mouse move threshold before dragging starts.</td>
|
|
238
238
|
</tr>
|
|
239
239
|
<tr>
|
|
@@ -257,8 +257,8 @@
|
|
|
257
257
|
<tr>
|
|
258
258
|
<td><code>cls-drag-state</code></td>
|
|
259
259
|
<td>String</td>
|
|
260
|
-
<td>uk-
|
|
261
|
-
<td>The
|
|
260
|
+
<td>uk-drag</td>
|
|
261
|
+
<td>The dragging class added to the root element.</td>
|
|
262
262
|
</tr>
|
|
263
263
|
<tr>
|
|
264
264
|
<td><code>cls-base</code></td>
|