uikit 3.15.5 → 3.15.6-dev.7bb7d9793
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 +12 -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 +30 -8
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +30 -8
- 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 +7 -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 +7 -4
- 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 +42 -26
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +48 -29
- package/dist/js/uikit.min.js +2 -2
- package/package.json +1 -1
- package/src/js/core/offcanvas.js +0 -14
- package/src/js/core/switcher.js +17 -5
- package/src/js/mixin/modal.js +19 -0
- package/src/js/mixin/slider-drag.js +7 -3
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.
|
|
5
|
+
"version": "3.15.6-dev.7bb7d9793",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/offcanvas.js
CHANGED
|
@@ -79,20 +79,6 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
|
|
81
81
|
events: [
|
|
82
|
-
{
|
|
83
|
-
name: 'click',
|
|
84
|
-
|
|
85
|
-
delegate() {
|
|
86
|
-
return 'a[href^="#"]';
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
handler({ current: { hash }, defaultPrevented }) {
|
|
90
|
-
if (!defaultPrevented && hash && $(hash, document.body)) {
|
|
91
|
-
this.hide();
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
|
|
96
82
|
{
|
|
97
83
|
name: 'touchmove',
|
|
98
84
|
|
package/src/js/core/switcher.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
getIndex,
|
|
13
13
|
hasClass,
|
|
14
14
|
matches,
|
|
15
|
+
observeMutation,
|
|
15
16
|
queryAll,
|
|
16
17
|
ready,
|
|
17
18
|
toggleClass,
|
|
@@ -51,11 +52,22 @@ export default {
|
|
|
51
52
|
css(connects, 'touchAction', 'pan-y pinch-zoom');
|
|
52
53
|
}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
this.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
this._observer?.disconnect();
|
|
56
|
+
this.registerObserver(
|
|
57
|
+
(this._observer = observeMutation(
|
|
58
|
+
connects,
|
|
59
|
+
(records) => {
|
|
60
|
+
const index = this.index();
|
|
61
|
+
for (const { target: el } of records) {
|
|
62
|
+
children(el).forEach((child, i) =>
|
|
63
|
+
toggleClass(child, this.cls, i === index)
|
|
64
|
+
);
|
|
65
|
+
this.lazyload(this.$el, children(el));
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{ childList: true }
|
|
69
|
+
))
|
|
70
|
+
);
|
|
59
71
|
},
|
|
60
72
|
|
|
61
73
|
immediate: true,
|
package/src/js/mixin/modal.js
CHANGED
|
@@ -81,6 +81,25 @@ export default {
|
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
|
|
84
|
+
{
|
|
85
|
+
name: 'click',
|
|
86
|
+
|
|
87
|
+
delegate() {
|
|
88
|
+
return 'a[href^="#"]';
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
handler({ current: { hash }, defaultPrevented }) {
|
|
92
|
+
if (
|
|
93
|
+
!defaultPrevented &&
|
|
94
|
+
hash &&
|
|
95
|
+
!within(hash, this.$el) &&
|
|
96
|
+
$(hash, document.body)
|
|
97
|
+
) {
|
|
98
|
+
this.hide();
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
|
|
84
103
|
{
|
|
85
104
|
name: 'toggle',
|
|
86
105
|
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
off,
|
|
10
10
|
on,
|
|
11
11
|
selInput,
|
|
12
|
+
toNodes,
|
|
12
13
|
trigger,
|
|
13
14
|
} from 'uikit-util';
|
|
14
15
|
|
|
@@ -52,7 +53,7 @@ export default {
|
|
|
52
53
|
handler(e) {
|
|
53
54
|
if (
|
|
54
55
|
!this.draggable ||
|
|
55
|
-
(!isTouch(e) &&
|
|
56
|
+
(!isTouch(e) && hasSelectableText(e.target)) ||
|
|
56
57
|
closest(e.target, selInput) ||
|
|
57
58
|
e.button > 0 ||
|
|
58
59
|
this.length < 2
|
|
@@ -221,6 +222,9 @@ export default {
|
|
|
221
222
|
},
|
|
222
223
|
};
|
|
223
224
|
|
|
224
|
-
function
|
|
225
|
-
return
|
|
225
|
+
function hasSelectableText(el) {
|
|
226
|
+
return (
|
|
227
|
+
css(el, 'userSelect') !== 'none' &&
|
|
228
|
+
toNodes(el.childNodes).some((el) => el.nodeType === 3 && el.textContent.trim())
|
|
229
|
+
);
|
|
226
230
|
}
|