uikit 3.25.23-dev.0ea1d51 → 3.25.23-dev.2ad20f7
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/build/build.js +2 -1
- 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 +2 -2
- 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 +6 -3
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +6 -3
- 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 +5 -5
- 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 +9 -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 +2 -2
- 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 +19 -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 +26 -14
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/app.js +4 -2
- package/src/js/api/observables.js +4 -2
- package/src/js/api/props.js +2 -1
- package/src/js/components/countdown.js +1 -1
- package/src/js/components/slider.js +1 -1
- package/src/js/components/slideshow.js +5 -0
- package/src/js/core/form-custom.js +1 -1
- package/src/js/core/img.js +7 -2
- package/src/js/mixin/svg.js +1 -1
- package/src/js/util/event.js +5 -1
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.25.23-dev.
|
|
5
|
+
"version": "3.25.23-dev.2ad20f7",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/api/app.js
CHANGED
|
@@ -2,10 +2,12 @@ import * as util from 'uikit-util';
|
|
|
2
2
|
import VERSION from 'virtual:version';
|
|
3
3
|
import { init } from './state';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const App = function (options) {
|
|
6
6
|
init(this, options);
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
|
|
9
9
|
App.util = util;
|
|
10
10
|
App.options = {};
|
|
11
11
|
App.version = VERSION;
|
|
12
|
+
|
|
13
|
+
export default App;
|
|
@@ -43,8 +43,10 @@ export function lazyload(options = {}) {
|
|
|
43
43
|
.forEach((el) => removeAttr(el, 'loading'));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
for (const
|
|
47
|
-
isIntersecting
|
|
46
|
+
for (const el of entries
|
|
47
|
+
.filter(({ isIntersecting }) => isIntersecting)
|
|
48
|
+
.map(({ target }) => target)) {
|
|
49
|
+
observer.unobserve(el);
|
|
48
50
|
}
|
|
49
51
|
},
|
|
50
52
|
...options,
|
package/src/js/api/props.js
CHANGED
|
@@ -69,7 +69,8 @@ const getAttributes = memoize((id, props) => {
|
|
|
69
69
|
const attributes = Object.keys(props);
|
|
70
70
|
const filter = attributes
|
|
71
71
|
.concat(id)
|
|
72
|
-
.
|
|
72
|
+
.map((key) => [hyphenate(key), `data-${hyphenate(key)}`])
|
|
73
|
+
.flat();
|
|
73
74
|
return { attributes, filter };
|
|
74
75
|
});
|
|
75
76
|
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
digits = digits.split('');
|
|
91
91
|
|
|
92
92
|
if (digits.length !== el.children.length) {
|
|
93
|
-
html(el, '<span></span>'.
|
|
93
|
+
html(el, digits.map(() => '<span></span>').join(''));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
digits.forEach((digit, i) => (el.children[i].textContent = digit));
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
const value = input.files?.[0]
|
|
44
44
|
? input.files[0].name
|
|
45
45
|
: matches(input, 'select') &&
|
|
46
|
-
(option = $$('option', input).
|
|
46
|
+
(option = $$('option', input).filter((el) => el.selected)[0])
|
|
47
47
|
? option.textContent
|
|
48
48
|
: input.value;
|
|
49
49
|
|
package/src/js/core/img.js
CHANGED
|
@@ -88,7 +88,8 @@ function setSrcAttrs(el, src) {
|
|
|
88
88
|
const elements = isTag(parentNode, 'picture') ? children(parentNode) : [el];
|
|
89
89
|
elements.forEach((el) => setSourceProps(el, el));
|
|
90
90
|
} else if (src) {
|
|
91
|
-
|
|
91
|
+
const change = !includes(el.style.backgroundImage, src);
|
|
92
|
+
if (change) {
|
|
92
93
|
css(el, 'backgroundImage', `url(${escape(src)})`);
|
|
93
94
|
trigger(el, createEvent('load', false));
|
|
94
95
|
}
|
|
@@ -144,7 +145,11 @@ function parseSources(sources) {
|
|
|
144
145
|
sources = parseOptions(sources);
|
|
145
146
|
}
|
|
146
147
|
|
|
147
|
-
|
|
148
|
+
if (!isArray(sources)) {
|
|
149
|
+
sources = [sources];
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return sources.filter((source) => !isEmpty(source));
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
function isImg(el) {
|
package/src/js/mixin/svg.js
CHANGED
|
@@ -104,7 +104,7 @@ export function parseSVG(svg, icon) {
|
|
|
104
104
|
svg = parseSymbols(svg)[icon] || svg;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
return toNodes(fragment(svg)).
|
|
107
|
+
return toNodes(fragment(svg)).filter(isElement)[0];
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
const symbolRe = /<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g;
|
package/src/js/util/event.js
CHANGED
|
@@ -60,7 +60,11 @@ export function trigger(targets, event, detail) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export function createEvent(e, bubbles = true, cancelable = false, detail) {
|
|
63
|
-
|
|
63
|
+
if (isString(e)) {
|
|
64
|
+
e = new CustomEvent(e, { bubbles, cancelable, detail });
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return e;
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
function getArgs(args) {
|