uikit 3.15.11-dev.cafcc5fd6 → 3.15.11-dev.fc8c92ba9
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 +31 -31
- 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 +31 -31
- package/dist/js/uikit.min.js +2 -2
- package/package.json +1 -1
- package/src/js/api/state.js +13 -6
- package/src/js/core/switcher.js +16 -23
- package/src/js/core/toggle.js +1 -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.15.11-dev.
|
|
5
|
+
"version": "3.15.11-dev.fc8c92ba9",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/api/state.js
CHANGED
|
@@ -108,11 +108,7 @@ export default function (UIkit) {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
UIkit.prototype._initObservers = function () {
|
|
111
|
-
this._observers = [initPropsObserver(this)];
|
|
112
|
-
|
|
113
|
-
if (this.$options.computed) {
|
|
114
|
-
this.registerObserver(initChildListObserver(this));
|
|
115
|
-
}
|
|
111
|
+
this._observers = [initPropsObserver(this), initChildListObserver(this)];
|
|
116
112
|
};
|
|
117
113
|
|
|
118
114
|
UIkit.prototype.registerObserver = function (...observer) {
|
|
@@ -265,7 +261,18 @@ function normalizeData({ data = {} }, { args = [], props = {} }) {
|
|
|
265
261
|
}
|
|
266
262
|
|
|
267
263
|
function initChildListObserver(component) {
|
|
268
|
-
|
|
264
|
+
let { el, computed } = component.$options;
|
|
265
|
+
|
|
266
|
+
if (!computed) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
for (const key in computed) {
|
|
271
|
+
if (computed[key].document) {
|
|
272
|
+
el = el.ownerDocument;
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
269
276
|
|
|
270
277
|
const observer = new MutationObserver(() => component._callWatches());
|
|
271
278
|
observer.observe(el, {
|
package/src/js/core/switcher.js
CHANGED
|
@@ -12,9 +12,7 @@ import {
|
|
|
12
12
|
getIndex,
|
|
13
13
|
hasClass,
|
|
14
14
|
matches,
|
|
15
|
-
observeMutation,
|
|
16
15
|
queryAll,
|
|
17
|
-
ready,
|
|
18
16
|
toggleClass,
|
|
19
17
|
toNodes,
|
|
20
18
|
within,
|
|
@@ -51,23 +49,23 @@ export default {
|
|
|
51
49
|
if (this.swiping) {
|
|
52
50
|
css(connects, 'touchAction', 'pan-y pinch-zoom');
|
|
53
51
|
}
|
|
52
|
+
},
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
);
|
|
54
|
+
document: true,
|
|
55
|
+
immediate: true,
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
connectChildren: {
|
|
59
|
+
get() {
|
|
60
|
+
return this.connects.map((el) => children(el)).flat();
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
watch() {
|
|
64
|
+
const index = this.index();
|
|
65
|
+
for (const el of this.connects) {
|
|
66
|
+
children(el).forEach((child, i) => toggleClass(child, this.cls, i === index));
|
|
67
|
+
this.lazyload(this.$el, children(el));
|
|
68
|
+
}
|
|
71
69
|
},
|
|
72
70
|
|
|
73
71
|
immediate: true,
|
|
@@ -99,11 +97,6 @@ export default {
|
|
|
99
97
|
},
|
|
100
98
|
},
|
|
101
99
|
|
|
102
|
-
connected() {
|
|
103
|
-
// check for connects
|
|
104
|
-
ready(() => this.$emit());
|
|
105
|
-
},
|
|
106
|
-
|
|
107
100
|
events: [
|
|
108
101
|
{
|
|
109
102
|
name: 'click',
|
package/src/js/core/toggle.js
CHANGED
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
pointerEnter,
|
|
17
17
|
pointerLeave,
|
|
18
18
|
queryAll,
|
|
19
|
-
ready,
|
|
20
19
|
trigger,
|
|
21
20
|
within,
|
|
22
21
|
} from 'uikit-util';
|
|
@@ -54,6 +53,7 @@ export default {
|
|
|
54
53
|
this.lazyload(this.$el, this.target);
|
|
55
54
|
},
|
|
56
55
|
|
|
56
|
+
document: true,
|
|
57
57
|
immediate: true,
|
|
58
58
|
},
|
|
59
59
|
},
|
|
@@ -62,9 +62,6 @@ export default {
|
|
|
62
62
|
if (!includes(this.mode, 'media') && !isFocusable(this.$el)) {
|
|
63
63
|
attr(this.$el, 'tabindex', '0');
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
// check for target
|
|
67
|
-
ready(() => this.$emit());
|
|
68
65
|
},
|
|
69
66
|
|
|
70
67
|
events: [
|