uikit 3.15.9-dev.ffad54c1a → 3.15.10-dev.12413a134
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 +7 -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 +35 -59
- 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 +37 -61
- 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 +6 -6
- 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 +42 -66
- package/dist/js/uikit.min.js +2 -2
- package/package.json +5 -5
- package/src/js/api/component.js +2 -2
- package/src/js/api/state.js +2 -2
- package/src/js/components/sortable.js +2 -2
- package/src/js/mixin/animate.js +1 -4
- package/src/js/mixin/internal/animate-slide.js +34 -57
- package/tests/filter.html +2 -2
- package/tests/lightbox.html +2 -2
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.15.
|
|
1
|
+
/*! UIkit 3.15.10-dev.12413a134 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2578,8 +2578,8 @@
|
|
|
2578
2578
|
}
|
|
2579
2579
|
};
|
|
2580
2580
|
|
|
2581
|
-
UIkit.prototype.registerObserver = function (
|
|
2582
|
-
this._observers.push(
|
|
2581
|
+
UIkit.prototype.registerObserver = function () {
|
|
2582
|
+
this._observers.push(...arguments);
|
|
2583
2583
|
};
|
|
2584
2584
|
|
|
2585
2585
|
UIkit.prototype._disconnectObservers = function () {
|
|
@@ -2911,8 +2911,8 @@
|
|
|
2911
2911
|
}
|
|
2912
2912
|
}
|
|
2913
2913
|
|
|
2914
|
-
for (const attribute of node.
|
|
2915
|
-
const name = getComponentName(attribute
|
|
2914
|
+
for (const attribute of node.getAttributeNames()) {
|
|
2915
|
+
const name = getComponentName(attribute);
|
|
2916
2916
|
name && UIkit[name](node);
|
|
2917
2917
|
}
|
|
2918
2918
|
};
|
|
@@ -2937,7 +2937,7 @@
|
|
|
2937
2937
|
UIkit.data = '__uikit__';
|
|
2938
2938
|
UIkit.prefix = 'uk-';
|
|
2939
2939
|
UIkit.options = {};
|
|
2940
|
-
UIkit.version = '3.15.
|
|
2940
|
+
UIkit.version = '3.15.10-dev.12413a134';
|
|
2941
2941
|
|
|
2942
2942
|
globalAPI(UIkit);
|
|
2943
2943
|
hooksAPI(UIkit);
|
|
@@ -8053,14 +8053,10 @@
|
|
|
8053
8053
|
|
|
8054
8054
|
// Get current state
|
|
8055
8055
|
const currentProps = nodes.map((el) => getProps(el, true));
|
|
8056
|
-
const targetProps = css(target, ['height', 'padding']);
|
|
8056
|
+
const targetProps = { ...css(target, ['height', 'padding']), display: 'block' };
|
|
8057
8057
|
|
|
8058
8058
|
// Cancel previous animations
|
|
8059
|
-
|
|
8060
|
-
nodes.forEach(Transition.cancel);
|
|
8061
|
-
reset(target);
|
|
8062
|
-
|
|
8063
|
-
const { promise, observer } = awaitMutation(target);
|
|
8059
|
+
await Promise.all(nodes.concat(target).map(Transition.cancel));
|
|
8064
8060
|
|
|
8065
8061
|
// Adding, sorting, removing nodes
|
|
8066
8062
|
action();
|
|
@@ -8069,23 +8065,23 @@
|
|
|
8069
8065
|
nodes = nodes.concat(children(target).filter((el) => !includes(nodes, el)));
|
|
8070
8066
|
|
|
8071
8067
|
// Wait for update to propagate
|
|
8072
|
-
|
|
8073
|
-
observer.disconnect();
|
|
8074
|
-
await Promise.resolve();
|
|
8075
|
-
} else {
|
|
8076
|
-
await promise;
|
|
8077
|
-
}
|
|
8068
|
+
await Promise.resolve();
|
|
8078
8069
|
|
|
8079
8070
|
// Force update
|
|
8080
8071
|
fastdom.flush();
|
|
8081
8072
|
|
|
8082
8073
|
// Get new state
|
|
8074
|
+
const targetStyle = attr(target, 'style');
|
|
8083
8075
|
const targetPropsTo = css(target, ['height', 'padding']);
|
|
8084
8076
|
const [propsTo, propsFrom] = getTransitionProps(target, nodes, currentProps);
|
|
8077
|
+
const attrsTo = nodes.map((el) => ({
|
|
8078
|
+
class: attr(el, 'class'),
|
|
8079
|
+
style: attr(el, 'style') }));
|
|
8080
|
+
|
|
8085
8081
|
|
|
8086
8082
|
// Reset to previous state
|
|
8087
8083
|
nodes.forEach((el, i) => propsFrom[i] && css(el, propsFrom[i]));
|
|
8088
|
-
css(target,
|
|
8084
|
+
css(target, targetProps);
|
|
8089
8085
|
|
|
8090
8086
|
// Start transitions on next frame
|
|
8091
8087
|
await awaitFrame();
|
|
@@ -8094,13 +8090,19 @@
|
|
|
8094
8090
|
map((el, i) => parent(el) === target && Transition.start(el, propsTo[i], duration, 'ease')).
|
|
8095
8091
|
concat(Transition.start(target, targetPropsTo, duration, 'ease'));
|
|
8096
8092
|
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
(el, i) =>
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8093
|
+
try {
|
|
8094
|
+
await Promise.all(transitions);
|
|
8095
|
+
nodes.forEach((el, i) => {
|
|
8096
|
+
attr(el, attrsTo[i]);
|
|
8097
|
+
if (parent(el) === target) {
|
|
8098
|
+
css(el, 'display', propsTo[i].opacity === 0 ? 'none' : '');
|
|
8099
|
+
}
|
|
8100
|
+
});
|
|
8101
|
+
attr(target, 'style', targetStyle);
|
|
8102
|
+
} catch (e) {
|
|
8103
|
+
attr(nodes, 'style', '');
|
|
8104
|
+
resetProps(target, targetProps);
|
|
8105
|
+
}
|
|
8104
8106
|
}
|
|
8105
8107
|
|
|
8106
8108
|
function getProps(el, opacity) {
|
|
@@ -8154,51 +8156,28 @@
|
|
|
8154
8156
|
return [propsTo, propsFrom];
|
|
8155
8157
|
}
|
|
8156
8158
|
|
|
8157
|
-
function
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
opacity: '',
|
|
8162
|
-
pointerEvents: '',
|
|
8163
|
-
position: '',
|
|
8164
|
-
top: '',
|
|
8165
|
-
marginTop: '',
|
|
8166
|
-
marginLeft: '',
|
|
8167
|
-
transform: '',
|
|
8168
|
-
width: '',
|
|
8169
|
-
zIndex: '' });
|
|
8170
|
-
|
|
8171
|
-
css(el, { height: '', display: '', padding: '' });
|
|
8159
|
+
function resetProps(el, props) {
|
|
8160
|
+
for (const prop in props) {
|
|
8161
|
+
css(el, prop, '');
|
|
8162
|
+
}
|
|
8172
8163
|
}
|
|
8173
8164
|
|
|
8174
8165
|
function getPositionWithMargin(el) {
|
|
8175
8166
|
const { height, width } = offset(el);
|
|
8176
|
-
const { top, left } = position(el);
|
|
8177
|
-
const { marginLeft, marginTop } = css(el, ['marginTop', 'marginLeft']);
|
|
8178
8167
|
|
|
8179
|
-
return {
|
|
8168
|
+
return {
|
|
8169
|
+
height,
|
|
8170
|
+
width,
|
|
8171
|
+
transform: '',
|
|
8172
|
+
...position(el),
|
|
8173
|
+
...css(el, ['marginTop', 'marginLeft']) };
|
|
8174
|
+
|
|
8180
8175
|
}
|
|
8181
8176
|
|
|
8182
8177
|
function awaitFrame() {
|
|
8183
8178
|
return new Promise((resolve) => requestAnimationFrame(resolve));
|
|
8184
8179
|
}
|
|
8185
8180
|
|
|
8186
|
-
function awaitMutation(target) {
|
|
8187
|
-
let observer;
|
|
8188
|
-
const promise = new Promise(
|
|
8189
|
-
(resolve) =>
|
|
8190
|
-
observer = observeMutation(
|
|
8191
|
-
target,
|
|
8192
|
-
(records, observer) => {
|
|
8193
|
-
resolve();
|
|
8194
|
-
observer.disconnect();
|
|
8195
|
-
},
|
|
8196
|
-
{ childList: true, attributes: true }));
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
return { promise, observer };
|
|
8200
|
-
}
|
|
8201
|
-
|
|
8202
8181
|
var Animate = {
|
|
8203
8182
|
props: {
|
|
8204
8183
|
duration: Number,
|
|
@@ -8225,10 +8204,7 @@
|
|
|
8225
8204
|
return Promise.resolve();
|
|
8226
8205
|
};
|
|
8227
8206
|
|
|
8228
|
-
return animationFn(action, target, this.duration).
|
|
8229
|
-
() => this.$update(target, 'resize'),
|
|
8230
|
-
noop);
|
|
8231
|
-
|
|
8207
|
+
return animationFn(action, target, this.duration).catch(noop);
|
|
8232
8208
|
} } };
|
|
8233
8209
|
|
|
8234
8210
|
var filter = {
|
|
@@ -11141,8 +11117,8 @@
|
|
|
11141
11117
|
if (['li', 'tr'].some((tag) => isTag(element, tag))) {
|
|
11142
11118
|
clone = $('<div>');
|
|
11143
11119
|
append(clone, element.cloneNode(true).children);
|
|
11144
|
-
for (const
|
|
11145
|
-
attr(clone,
|
|
11120
|
+
for (const attribute of element.getAttributeNames()) {
|
|
11121
|
+
attr(clone, attribute, element.getAttribute(attribute));
|
|
11146
11122
|
}
|
|
11147
11123
|
} else {
|
|
11148
11124
|
clone = element.cloneNode(true);
|