uikit 3.15.9 → 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 +7 -20
- 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 +5 -21
- 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 +5 -10
- 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 +13 -31
- package/dist/js/uikit.min.js +2 -2
- package/package.json +5 -5
- package/src/js/api/component.js +2 -2
- package/src/js/components/filter.js +4 -1
- package/src/js/components/sortable.js +2 -2
- package/src/js/core/margin.js +0 -5
- package/src/js/mixin/internal/animate-slide.js +2 -19
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.10-dev.12413a134",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://getuikit.com",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@babel/core": "^7.19.
|
|
38
|
-
"@babel/preset-env": "^7.19.
|
|
37
|
+
"@babel/core": "^7.19.1",
|
|
38
|
+
"@babel/preset-env": "^7.19.1",
|
|
39
39
|
"@rollup/plugin-alias": "^3.1.9",
|
|
40
40
|
"@rollup/plugin-babel": "^5.3.1",
|
|
41
41
|
"@rollup/plugin-replace": "^4.0.0",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"camelcase": "^7.0.0",
|
|
44
44
|
"clean-css": "^5.3.1",
|
|
45
45
|
"dateformat": "^5.0.3",
|
|
46
|
-
"esbuild": "^0.15.
|
|
46
|
+
"esbuild": "^0.15.8",
|
|
47
47
|
"eslint": "^8.23.1",
|
|
48
48
|
"eslint-config-prettier": "^8.5.0",
|
|
49
49
|
"fs-extra": "^10.1.0",
|
|
50
50
|
"glob": "^8.0.3",
|
|
51
|
-
"inquirer": "^9.1.
|
|
51
|
+
"inquirer": "^9.1.2",
|
|
52
52
|
"less": "^4.1.3",
|
|
53
53
|
"minimist": "^1.2.6",
|
|
54
54
|
"number-precision": "^1.5.2",
|
package/src/js/api/component.js
CHANGED
|
@@ -66,8 +66,8 @@ export default function (UIkit) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
for (const attribute of node.
|
|
70
|
-
const name = getComponentName(attribute
|
|
69
|
+
for (const attribute of node.getAttributeNames()) {
|
|
70
|
+
const name = getComponentName(attribute);
|
|
71
71
|
name && UIkit[name](node);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
@@ -114,7 +114,10 @@ export default {
|
|
|
114
114
|
|
|
115
115
|
await Promise.all(
|
|
116
116
|
$$(this.target, this.$el).map((target) => {
|
|
117
|
-
const filterFn = () =>
|
|
117
|
+
const filterFn = () => {
|
|
118
|
+
applyState(state, target, getChildren(target));
|
|
119
|
+
this.$update(this.$el);
|
|
120
|
+
};
|
|
118
121
|
return animate ? this.animate(filterFn, target) : filterFn();
|
|
119
122
|
})
|
|
120
123
|
);
|
|
@@ -352,8 +352,8 @@ function appendDrag(container, element) {
|
|
|
352
352
|
if (['li', 'tr'].some((tag) => isTag(element, tag))) {
|
|
353
353
|
clone = $('<div>');
|
|
354
354
|
append(clone, element.cloneNode(true).children);
|
|
355
|
-
for (const
|
|
356
|
-
attr(clone,
|
|
355
|
+
for (const attribute of element.getAttributeNames()) {
|
|
356
|
+
attr(clone, attribute, element.getAttribute(attribute));
|
|
357
357
|
}
|
|
358
358
|
} else {
|
|
359
359
|
clone = element.cloneNode(true);
|
package/src/js/core/margin.js
CHANGED
|
@@ -29,11 +29,6 @@ export default {
|
|
|
29
29
|
this.registerObserver(
|
|
30
30
|
observeMutation(this.$el, () => this.$reset(), {
|
|
31
31
|
childList: true,
|
|
32
|
-
}),
|
|
33
|
-
observeMutation(this.$el, () => this.$emit(), {
|
|
34
|
-
childList: true,
|
|
35
|
-
attributes: true,
|
|
36
|
-
attributeFilter: ['style'],
|
|
37
32
|
})
|
|
38
33
|
);
|
|
39
34
|
},
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
includes,
|
|
7
7
|
index,
|
|
8
8
|
isVisible,
|
|
9
|
-
observeMutation,
|
|
10
9
|
offset,
|
|
11
10
|
parent,
|
|
12
11
|
position,
|
|
@@ -32,7 +31,7 @@ export default async function (action, target, duration) {
|
|
|
32
31
|
nodes = nodes.concat(children(target).filter((el) => !includes(nodes, el)));
|
|
33
32
|
|
|
34
33
|
// Wait for update to propagate
|
|
35
|
-
await
|
|
34
|
+
await Promise.resolve();
|
|
36
35
|
|
|
37
36
|
// Force update
|
|
38
37
|
fastdom.flush();
|
|
@@ -67,7 +66,7 @@ export default async function (action, target, duration) {
|
|
|
67
66
|
});
|
|
68
67
|
attr(target, 'style', targetStyle);
|
|
69
68
|
} catch (e) {
|
|
70
|
-
|
|
69
|
+
attr(nodes, 'style', '');
|
|
71
70
|
resetProps(target, targetProps);
|
|
72
71
|
}
|
|
73
72
|
}
|
|
@@ -144,19 +143,3 @@ function getPositionWithMargin(el) {
|
|
|
144
143
|
function awaitFrame() {
|
|
145
144
|
return new Promise((resolve) => requestAnimationFrame(resolve));
|
|
146
145
|
}
|
|
147
|
-
|
|
148
|
-
function awaitMutation() {
|
|
149
|
-
const text = document.createTextNode('');
|
|
150
|
-
const promise = new Promise((resolve) =>
|
|
151
|
-
observeMutation(
|
|
152
|
-
text,
|
|
153
|
-
(_, observer) => {
|
|
154
|
-
resolve();
|
|
155
|
-
observer.disconnect();
|
|
156
|
-
},
|
|
157
|
-
{ characterData: true }
|
|
158
|
-
)
|
|
159
|
-
);
|
|
160
|
-
text.data = 1;
|
|
161
|
-
return promise;
|
|
162
|
-
}
|