uikit 3.17.9-dev.73842811 → 3.17.9-dev.9f100be74
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 +6 -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 +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +4 -4
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +4 -4
- 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 -4
- 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 -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 +40 -32
- 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 +15 -24
- 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 +37 -52
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/events.js +1 -6
- package/src/js/api/instance.js +4 -4
- package/src/js/api/options.js +2 -1
- package/src/js/api/props.js +13 -15
- package/src/js/components/tooltip.js +29 -33
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.17.9-dev.
|
|
1
|
+
/*! UIkit 3.17.9-dev.9f100be74 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1818,11 +1818,7 @@
|
|
|
1818
1818
|
function registerEvent(instance, event, key) {
|
|
1819
1819
|
let { name, el, handler, capture, passive, delegate, filter, self } = isPlainObject(event) ? event : { name: key, handler: event };
|
|
1820
1820
|
el = isFunction(el) ? el.call(instance, instance) : el || instance.$el;
|
|
1821
|
-
if (isArray(el)) {
|
|
1822
|
-
el.forEach((el2) => registerEvent(instance, { ...event, el: el2 }, key));
|
|
1823
|
-
return;
|
|
1824
|
-
}
|
|
1825
|
-
if (!el || filter && !filter.call(instance)) {
|
|
1821
|
+
if (!el || isArray(el) && !el.length || filter && !filter.call(instance)) {
|
|
1826
1822
|
return;
|
|
1827
1823
|
}
|
|
1828
1824
|
instance._events.push(
|
|
@@ -1989,21 +1985,19 @@
|
|
|
1989
1985
|
}
|
|
1990
1986
|
return type ? type(value) : value;
|
|
1991
1987
|
}
|
|
1988
|
+
const listRe = /,(?![^(]*\))/;
|
|
1992
1989
|
function toList(value) {
|
|
1993
|
-
return isArray(value) ? value : isString(value) ? value.split(
|
|
1990
|
+
return isArray(value) ? value : isString(value) ? value.split(listRe).map((value2) => isNumeric(value2) ? toNumber(value2) : toBoolean(value2.trim())) : [value];
|
|
1994
1991
|
}
|
|
1995
1992
|
|
|
1996
1993
|
function initProps(instance) {
|
|
1997
|
-
const props =
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
for (let key in instance.$props) {
|
|
2005
|
-
if (key in props && notIn(exclude, key)) {
|
|
2006
|
-
instance[key] = instance.$props[key];
|
|
1994
|
+
const { $options, $props } = instance;
|
|
1995
|
+
const props = getProps($options);
|
|
1996
|
+
assign($props, props);
|
|
1997
|
+
const { computed, methods } = $options;
|
|
1998
|
+
for (let key in $props) {
|
|
1999
|
+
if (key in props && (!computed || !hasOwn(computed, key)) && (!methods || !hasOwn(methods, key))) {
|
|
2000
|
+
instance[key] = $props[key];
|
|
2007
2001
|
}
|
|
2008
2002
|
}
|
|
2009
2003
|
}
|
|
@@ -2034,9 +2028,6 @@
|
|
|
2034
2028
|
}
|
|
2035
2029
|
return data$1;
|
|
2036
2030
|
}
|
|
2037
|
-
function notIn(options, key) {
|
|
2038
|
-
return options.every((arr) => !arr || !hasOwn(arr, key));
|
|
2039
|
-
}
|
|
2040
2031
|
const getAttributes = memoize((id, props) => {
|
|
2041
2032
|
const attributes = Object.keys(props);
|
|
2042
2033
|
const filter = attributes.concat(id).map((key) => [hyphenate(key), `data-${hyphenate(key)}`]).flat();
|
|
@@ -2154,7 +2145,7 @@
|
|
|
2154
2145
|
};
|
|
2155
2146
|
App.util = util;
|
|
2156
2147
|
App.options = {};
|
|
2157
|
-
App.version = "3.17.9-dev.
|
|
2148
|
+
App.version = "3.17.9-dev.9f100be74";
|
|
2158
2149
|
|
|
2159
2150
|
const PREFIX = "uk-";
|
|
2160
2151
|
const DATA = "__uikit__";
|
|
@@ -2382,16 +2373,16 @@
|
|
|
2382
2373
|
$container: Object.getOwnPropertyDescriptor(App, "container")
|
|
2383
2374
|
});
|
|
2384
2375
|
}
|
|
2385
|
-
const ids =
|
|
2376
|
+
const ids = /* @__PURE__ */ Object.create(null);
|
|
2386
2377
|
function generateId(instance, el = instance.$el, postfix = "") {
|
|
2387
2378
|
if (el.id) {
|
|
2388
2379
|
return el.id;
|
|
2389
2380
|
}
|
|
2390
2381
|
let id = `${instance.$options.id}-${instance._uid}${postfix}`;
|
|
2391
|
-
if (
|
|
2382
|
+
if (ids[id]) {
|
|
2392
2383
|
id = generateId(instance, el, `${postfix}-2`);
|
|
2393
2384
|
}
|
|
2394
|
-
ids
|
|
2385
|
+
ids[id] = true;
|
|
2395
2386
|
return id;
|
|
2396
2387
|
}
|
|
2397
2388
|
|