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.
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 +33 -32
  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 +45 -36
  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 +12 -13
  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.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], key);
1821
+ registerEvent(instance, { name: key, handler: event[key] });
1822
1822
  }
1823
1823
  }
1824
1824
  }
1825
1825
  }
1826
- function registerEvent(instance, event, key) {
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;
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 ? isString(delegate) ? delegate : delegate.call(instance, instance) : null,
1837
- isString(handler) ? instance[handler] : handler.bind(instance),
1838
- { passive, capture, self }
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.13";
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((records) => records.forEach(applyChildListMutation)).observe(document, {
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 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 }) {
2243
+ function handleMutation(records) {
2253
2244
  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();
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: "clearTimers"
3351
+ handler() {
3352
+ this.clearTimers();
3353
+ }
3353
3354
  },
3354
3355
  {
3355
3356
  name: "hide",