uikit 3.10.1 → 3.10.2-dev.3a696ee97
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 +11 -4
- package/build/scss.js +4 -4
- 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 +3 -3
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +3 -3
- 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 +3 -3
- 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 +11 -12
- 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 +13 -14
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/hooks.js +6 -10
- package/src/js/mixin/parallax.js +2 -2
- package/src/js/util/lang.js +4 -0
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.10.
|
|
5
|
+
"version": "3.10.2-dev.3a696ee97",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/api/hooks.js
CHANGED
|
@@ -123,23 +123,19 @@ export default function (UIkit) {
|
|
|
123
123
|
|
|
124
124
|
function runWatches(initial) {
|
|
125
125
|
|
|
126
|
-
const {$options: {computed}
|
|
126
|
+
const {$options: {computed}} = this;
|
|
127
|
+
const values = assign({}, this._computeds);
|
|
128
|
+
this._computeds = {};
|
|
127
129
|
|
|
128
130
|
for (const key in computed) {
|
|
129
|
-
|
|
130
|
-
const hasPrev = hasOwn(_computeds, key);
|
|
131
|
-
const prev = _computeds[key];
|
|
132
|
-
|
|
133
|
-
delete _computeds[key];
|
|
134
|
-
|
|
135
131
|
const {watch, immediate} = computed[key];
|
|
136
132
|
if (watch && (
|
|
137
133
|
initial && immediate
|
|
138
|
-
||
|
|
134
|
+
|| hasOwn(values, key) && !isEqual(values[key], this[key])
|
|
139
135
|
)) {
|
|
140
|
-
watch.call(this, this[key],
|
|
136
|
+
watch.call(this, this[key], values[key]);
|
|
141
137
|
}
|
|
142
|
-
|
|
143
138
|
}
|
|
139
|
+
|
|
144
140
|
}
|
|
145
141
|
}
|
package/src/js/mixin/parallax.js
CHANGED
|
@@ -57,7 +57,7 @@ export default {
|
|
|
57
57
|
} else if (startsWith(prop, 'bg')) {
|
|
58
58
|
|
|
59
59
|
const attr = prop === 'bgy' ? 'height' : 'width';
|
|
60
|
-
steps = steps.map(step => toPx(step, attr,
|
|
60
|
+
steps = steps.map(step => toPx(step, attr, $el));
|
|
61
61
|
|
|
62
62
|
css($el, `background-position-${prop[2]}`, '');
|
|
63
63
|
bgPos = css($el, 'backgroundPosition').split(' ')[prop[2] === 'x' ? 0 : 1]; // IE 11 can't read background-position-[x|y]
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
return props;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const length = getMaxPathLength(
|
|
94
|
+
const length = getMaxPathLength($el);
|
|
95
95
|
css($el, 'strokeDasharray', length);
|
|
96
96
|
|
|
97
97
|
if (unit === '%') {
|