uikit 3.21.13 → 3.21.14-dev.60ed95dfb
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 +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +10 -4
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +10 -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 -2
- 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 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +4 -2
- 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 +33 -32
- 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 +45 -36
- package/dist/js/uikit.min.js +1 -1
- package/package.json +2 -2
- package/src/js/api/boot.js +16 -20
- package/src/js/api/events.js +12 -13
- package/src/js/components/lightbox-panel.js +6 -2
- package/src/js/components/sortable.js +3 -1
- package/src/js/core/drop.js +3 -1
- package/src/js/mixin/slider-nav.js +3 -1
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.21.
|
|
1
|
+
/*! UIkit 3.21.14-dev.60ed95dfb | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1818,24 +1818,26 @@
|
|
|
1818
1818
|
registerEvent(instance, event);
|
|
1819
1819
|
} else {
|
|
1820
1820
|
for (const key in event) {
|
|
1821
|
-
registerEvent(instance, event[key]
|
|
1821
|
+
registerEvent(instance, { name: key, handler: event[key] });
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
|
-
function registerEvent(instance,
|
|
1827
|
-
|
|
1828
|
-
el = isFunction(el) ? el.call(instance, instance) : el || instance.$el;
|
|
1829
|
-
if (!el || isArray(el) && !el.length || filter && !filter.call(instance, instance)) {
|
|
1826
|
+
function registerEvent(instance, { name, el, handler, capture, passive, delegate, filter, self }) {
|
|
1827
|
+
if (filter && !filter.call(instance, instance)) {
|
|
1830
1828
|
return;
|
|
1831
1829
|
}
|
|
1832
1830
|
instance._disconnect.push(
|
|
1833
1831
|
on(
|
|
1834
|
-
el,
|
|
1832
|
+
el ? el.call(instance, instance) : instance.$el,
|
|
1835
1833
|
name,
|
|
1836
|
-
delegate
|
|
1837
|
-
|
|
1838
|
-
{
|
|
1834
|
+
delegate == null ? void 0 : delegate.call(instance, instance),
|
|
1835
|
+
handler.bind(instance),
|
|
1836
|
+
{
|
|
1837
|
+
passive,
|
|
1838
|
+
capture,
|
|
1839
|
+
self
|
|
1840
|
+
}
|
|
1839
1841
|
)
|
|
1840
1842
|
);
|
|
1841
1843
|
}
|
|
@@ -2152,7 +2154,7 @@
|
|
|
2152
2154
|
};
|
|
2153
2155
|
App.util = util;
|
|
2154
2156
|
App.options = {};
|
|
2155
|
-
App.version = "3.21.
|
|
2157
|
+
App.version = "3.21.14-dev.60ed95dfb";
|
|
2156
2158
|
|
|
2157
2159
|
const PREFIX = "uk-";
|
|
2158
2160
|
const DATA = "__uikit__";
|
|
@@ -2231,32 +2233,29 @@
|
|
|
2231
2233
|
if (document.body) {
|
|
2232
2234
|
apply(document.body, connect);
|
|
2233
2235
|
}
|
|
2234
|
-
new MutationObserver(
|
|
2235
|
-
subtree: true,
|
|
2236
|
-
childList: true
|
|
2237
|
-
});
|
|
2238
|
-
new MutationObserver((records) => records.forEach(applyAttributeMutation)).observe(document, {
|
|
2236
|
+
new MutationObserver(handleMutation).observe(document, {
|
|
2239
2237
|
subtree: true,
|
|
2238
|
+
childList: true,
|
|
2240
2239
|
attributes: true
|
|
2241
2240
|
});
|
|
2242
2241
|
App._initialized = true;
|
|
2243
2242
|
}
|
|
2244
|
-
function
|
|
2245
|
-
for (const node of addedNodes) {
|
|
2246
|
-
apply(node, connect);
|
|
2247
|
-
}
|
|
2248
|
-
for (const node of removedNodes) {
|
|
2249
|
-
apply(node, disconnect);
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
function applyAttributeMutation({ target, attributeName }) {
|
|
2243
|
+
function handleMutation(records) {
|
|
2253
2244
|
var _a;
|
|
2254
|
-
const
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
(
|
|
2245
|
+
for (const { addedNodes, removedNodes, target, attributeName } of records) {
|
|
2246
|
+
for (const node of addedNodes) {
|
|
2247
|
+
apply(node, connect);
|
|
2248
|
+
}
|
|
2249
|
+
for (const node of removedNodes) {
|
|
2250
|
+
apply(node, disconnect);
|
|
2251
|
+
}
|
|
2252
|
+
const name = attributeName && getComponentName(attributeName);
|
|
2253
|
+
if (name) {
|
|
2254
|
+
if (hasAttr(target, attributeName)) {
|
|
2255
|
+
createComponent(name, target);
|
|
2256
|
+
} else {
|
|
2257
|
+
(_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
|
|
2258
|
+
}
|
|
2260
2259
|
}
|
|
2261
2260
|
}
|
|
2262
2261
|
}
|
|
@@ -3349,7 +3348,9 @@
|
|
|
3349
3348
|
{
|
|
3350
3349
|
name: "beforehide",
|
|
3351
3350
|
self: true,
|
|
3352
|
-
handler
|
|
3351
|
+
handler() {
|
|
3352
|
+
this.clearTimers();
|
|
3353
|
+
}
|
|
3353
3354
|
},
|
|
3354
3355
|
{
|
|
3355
3356
|
name: "hide",
|