uikit 3.21.13 → 3.21.14-dev.028df7be8

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.
Files changed (47) hide show
  1. package/dist/css/uikit-core-rtl.css +1 -1
  2. package/dist/css/uikit-core-rtl.min.css +1 -1
  3. package/dist/css/uikit-core.css +1 -1
  4. package/dist/css/uikit-core.min.css +1 -1
  5. package/dist/css/uikit-rtl.css +1 -1
  6. package/dist/css/uikit-rtl.min.css +1 -1
  7. package/dist/css/uikit.css +1 -1
  8. package/dist/css/uikit.min.css +1 -1
  9. package/dist/js/components/countdown.js +1 -1
  10. package/dist/js/components/countdown.min.js +1 -1
  11. package/dist/js/components/filter.js +1 -1
  12. package/dist/js/components/filter.min.js +1 -1
  13. package/dist/js/components/lightbox-panel.js +10 -4
  14. package/dist/js/components/lightbox-panel.min.js +1 -1
  15. package/dist/js/components/lightbox.js +10 -4
  16. package/dist/js/components/lightbox.min.js +1 -1
  17. package/dist/js/components/notification.js +1 -1
  18. package/dist/js/components/notification.min.js +1 -1
  19. package/dist/js/components/parallax.js +1 -1
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +1 -1
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +4 -2
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +1 -1
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +4 -2
  28. package/dist/js/components/slideshow.min.js +1 -1
  29. package/dist/js/components/sortable.js +4 -2
  30. package/dist/js/components/sortable.min.js +1 -1
  31. package/dist/js/components/tooltip.js +1 -1
  32. package/dist/js/components/tooltip.min.js +1 -1
  33. package/dist/js/components/upload.js +1 -1
  34. package/dist/js/components/upload.min.js +1 -1
  35. package/dist/js/uikit-core.js +28 -31
  36. package/dist/js/uikit-core.min.js +1 -1
  37. package/dist/js/uikit-icons.js +1 -1
  38. package/dist/js/uikit-icons.min.js +1 -1
  39. package/dist/js/uikit.js +40 -35
  40. package/dist/js/uikit.min.js +1 -1
  41. package/package.json +2 -2
  42. package/src/js/api/boot.js +16 -20
  43. package/src/js/api/events.js +7 -9
  44. package/src/js/components/lightbox-panel.js +6 -2
  45. package/src/js/components/sortable.js +3 -1
  46. package/src/js/core/drop.js +3 -1
  47. package/src/js/mixin/slider-nav.js +3 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.21.13 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.21.14-dev.028df7be8 | 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() :
@@ -1825,18 +1825,16 @@
1825
1825
  }
1826
1826
  function registerEvent(instance, event, key) {
1827
1827
  let { name, el, handler, capture, passive, delegate, filter, self } = isPlainObject(event) ? event : { name: key, handler: event };
1828
- el = isFunction(el) ? el.call(instance, instance) : el || instance.$el;
1828
+ el = el ? el.call(instance, instance) : instance.$el;
1829
1829
  if (!el || isArray(el) && !el.length || filter && !filter.call(instance, instance)) {
1830
1830
  return;
1831
1831
  }
1832
1832
  instance._disconnect.push(
1833
- on(
1834
- el,
1835
- name,
1836
- delegate ? isString(delegate) ? delegate : delegate.call(instance, instance) : null,
1837
- isString(handler) ? instance[handler] : handler.bind(instance),
1838
- { passive, capture, self }
1839
- )
1833
+ on(el, name, delegate == null ? void 0 : delegate.call(instance, instance), handler.bind(instance), {
1834
+ passive,
1835
+ capture,
1836
+ self
1837
+ })
1840
1838
  );
1841
1839
  }
1842
1840
 
@@ -2152,7 +2150,7 @@
2152
2150
  };
2153
2151
  App.util = util;
2154
2152
  App.options = {};
2155
- App.version = "3.21.13";
2153
+ App.version = "3.21.14-dev.028df7be8";
2156
2154
 
2157
2155
  const PREFIX = "uk-";
2158
2156
  const DATA = "__uikit__";
@@ -2231,32 +2229,29 @@
2231
2229
  if (document.body) {
2232
2230
  apply(document.body, connect);
2233
2231
  }
2234
- new MutationObserver((records) => records.forEach(applyChildListMutation)).observe(document, {
2235
- subtree: true,
2236
- childList: true
2237
- });
2238
- new MutationObserver((records) => records.forEach(applyAttributeMutation)).observe(document, {
2232
+ new MutationObserver(handleMutation).observe(document, {
2239
2233
  subtree: true,
2234
+ childList: true,
2240
2235
  attributes: true
2241
2236
  });
2242
2237
  App._initialized = true;
2243
2238
  }
2244
- function applyChildListMutation({ addedNodes, removedNodes }) {
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 }) {
2239
+ function handleMutation(records) {
2253
2240
  var _a;
2254
- const name = getComponentName(attributeName);
2255
- if (name) {
2256
- if (hasAttr(target, attributeName)) {
2257
- createComponent(name, target);
2258
- } else {
2259
- (_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
2241
+ for (const { addedNodes, removedNodes, target, attributeName } of records) {
2242
+ for (const node of addedNodes) {
2243
+ apply(node, connect);
2244
+ }
2245
+ for (const node of removedNodes) {
2246
+ apply(node, disconnect);
2247
+ }
2248
+ const name = attributeName && getComponentName(attributeName);
2249
+ if (name) {
2250
+ if (hasAttr(target, attributeName)) {
2251
+ createComponent(name, target);
2252
+ } else {
2253
+ (_a = getComponent(target, name)) == null ? void 0 : _a.$destroy();
2254
+ }
2260
2255
  }
2261
2256
  }
2262
2257
  }
@@ -3349,7 +3344,9 @@
3349
3344
  {
3350
3345
  name: "beforehide",
3351
3346
  self: true,
3352
- handler: "clearTimers"
3347
+ handler() {
3348
+ this.clearTimers();
3349
+ }
3353
3350
  },
3354
3351
  {
3355
3352
  name: "hide",