uikit 3.20.10 → 3.20.11-dev.43d76edf7
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/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 +2 -7
- 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 +4 -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 +4 -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 +109 -105
- 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 +109 -107
- package/dist/js/uikit.min.js +1 -1
- package/package.json +3 -3
- package/src/js/api/observer.js +2 -2
- package/src/js/components/filter.js +1 -8
- package/src/js/core/icon.js +2 -1
- package/src/js/core/svg.js +7 -3
- package/src/js/mixin/slider-parallax.js +5 -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.20.
|
|
5
|
+
"version": "3.20.11-dev.43d76edf7",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"chokidar-cli": "^3.0.0",
|
|
29
29
|
"clean-css": "^5.3.3",
|
|
30
30
|
"dateformat": "^5.0.3",
|
|
31
|
-
"esbuild": "^0.
|
|
31
|
+
"esbuild": "^0.21.2",
|
|
32
32
|
"eslint": "^9.1.1",
|
|
33
33
|
"eslint-config-prettier": "^9.1.0",
|
|
34
|
-
"execa": "^
|
|
34
|
+
"execa": "^9.0.2",
|
|
35
35
|
"fs-extra": "^11.2.0",
|
|
36
36
|
"glob": "^10.3.12",
|
|
37
37
|
"globals": "^15.0.0",
|
package/src/js/api/observer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasOwn, includes, isArray, isFunction, isString } from 'uikit-util';
|
|
1
|
+
import { hasOwn, includes, isArray, isFunction, isString, toNodes } from 'uikit-util';
|
|
2
2
|
import { registerComputed } from './computed';
|
|
3
3
|
import { registerWatch } from './watch';
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ function registerObservable(instance, observable) {
|
|
|
28
28
|
|
|
29
29
|
const key = `_observe${instance._observers.length}`;
|
|
30
30
|
if (isFunction(target) && !hasOwn(instance, key)) {
|
|
31
|
-
registerComputed(instance, key, () => target.call(instance, instance));
|
|
31
|
+
registerComputed(instance, key, () => toNodes(target.call(instance, instance)));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
handler = isString(handler) ? instance[handler] : handler.bind(instance);
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
attr,
|
|
6
6
|
css,
|
|
7
7
|
data,
|
|
8
|
-
each,
|
|
9
8
|
fastdom,
|
|
10
9
|
children as getChildren,
|
|
11
10
|
hasClass,
|
|
@@ -139,7 +138,7 @@ function isEqualState(stateA, stateB) {
|
|
|
139
138
|
}
|
|
140
139
|
|
|
141
140
|
function applyState(state, target, children) {
|
|
142
|
-
const selector =
|
|
141
|
+
const selector = Object.values(state.filter).join('');
|
|
143
142
|
|
|
144
143
|
for (const el of children) {
|
|
145
144
|
css(el, 'display', selector && !matches(el, selector) ? 'none' : '');
|
|
@@ -195,12 +194,6 @@ function matchFilter(
|
|
|
195
194
|
: stateSort === sort && stateOrder === order;
|
|
196
195
|
}
|
|
197
196
|
|
|
198
|
-
function getSelector({ filter }) {
|
|
199
|
-
let selector = '';
|
|
200
|
-
each(filter, (value) => (selector += value || ''));
|
|
201
|
-
return selector;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
197
|
function sortItems(nodes, sort, order) {
|
|
205
198
|
return [...nodes].sort(
|
|
206
199
|
(a, b) =>
|
package/src/js/core/icon.js
CHANGED
|
@@ -35,6 +35,7 @@ import spinner from '../../images/components/spinner.svg';
|
|
|
35
35
|
import totop from '../../images/components/totop.svg';
|
|
36
36
|
import I18n from '../mixin/i18n';
|
|
37
37
|
import Svg from '../mixin/svg';
|
|
38
|
+
import { stringToSvg } from './svg';
|
|
38
39
|
|
|
39
40
|
const icons = {
|
|
40
41
|
spinner,
|
|
@@ -261,7 +262,7 @@ function getIcon(icon) {
|
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
if (!parsed[icon]) {
|
|
264
|
-
parsed[icon] =
|
|
265
|
+
parsed[icon] = stringToSvg(icons[applyRtl(icon)] || icons[icon]);
|
|
265
266
|
}
|
|
266
267
|
|
|
267
268
|
return parsed[icon].cloneNode(true);
|
package/src/js/core/svg.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
$,
|
|
3
2
|
addClass,
|
|
4
3
|
attr,
|
|
5
4
|
css,
|
|
@@ -107,8 +106,7 @@ function parseSVG(svg, icon) {
|
|
|
107
106
|
svg = parseSymbols(svg)[icon] || svg;
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
|
|
111
|
-
return svg?.hasChildNodes() && svg;
|
|
109
|
+
return stringToSvg(svg);
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
const symbolRe = /<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g;
|
|
@@ -133,3 +131,9 @@ function applyAnimation(el) {
|
|
|
133
131
|
css(el, '--uk-animation-stroke', length);
|
|
134
132
|
}
|
|
135
133
|
}
|
|
134
|
+
|
|
135
|
+
export function stringToSvg(string) {
|
|
136
|
+
const container = document.createElement('template');
|
|
137
|
+
container.innerHTML = string;
|
|
138
|
+
return container.content.firstElementChild;
|
|
139
|
+
}
|
|
@@ -40,6 +40,11 @@ export default {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
const target = this.parallaxTarget;
|
|
43
|
+
|
|
44
|
+
if (!target) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
|
|
43
48
|
const start = toPx(this.parallaxStart, 'height', target, true);
|
|
44
49
|
const end = toPx(this.parallaxEnd, 'height', target, true);
|
|
45
50
|
const percent = ease(scrolledOver(target, start, end), this.parallaxEasing);
|