uikit 3.19.5-dev.df655fa70 → 3.19.5-dev.f269960e9

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 (45) 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 +1 -1
  14. package/dist/js/components/lightbox-panel.min.js +1 -1
  15. package/dist/js/components/lightbox.js +1 -1
  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 +6 -18
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +6 -18
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +6 -18
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +6 -18
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +6 -18
  28. package/dist/js/components/slideshow.min.js +1 -1
  29. package/dist/js/components/sortable.js +1 -1
  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 +26 -26
  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 +26 -26
  40. package/dist/js/uikit.min.js +1 -1
  41. package/package.json +1 -1
  42. package/src/js/api/observer.js +17 -5
  43. package/src/js/core/img.js +1 -1
  44. package/src/js/util/selector.js +1 -5
  45. package/src/js/util/svg.js +1 -12
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.df655fa70 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.f269960e9 | 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() :
@@ -420,11 +420,7 @@
420
420
  return ctx;
421
421
  }
422
422
  } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
423
- return _doQuery(
424
- parent(context),
425
- queryFn,
426
- `:scope :nth-child(${index(context) + 1}) ${sel}`
427
- );
423
+ return _doQuery(parent(ctx), queryFn, `:scope :nth-child(${index(ctx) + 1}) ${sel}`);
428
424
  }
429
425
  if (ctx) {
430
426
  selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
@@ -1901,18 +1897,30 @@
1901
1897
  }
1902
1898
  const targets = hasOwn(instance, key) ? instance[key] : target;
1903
1899
  const observer = observe(targets, handler, options, args);
1904
- if (isFunction(target) && isArray(instance[key]) && observer.unobserve) {
1905
- registerWatch(instance, { handler: updateTargets(observer), immediate: false }, key);
1900
+ if (isFunction(target) && isArray(instance[key])) {
1901
+ registerWatch(
1902
+ instance,
1903
+ { handler: updateTargets(observer, options), immediate: false },
1904
+ key
1905
+ );
1906
1906
  }
1907
1907
  registerObserver(instance, observer);
1908
1908
  }
1909
- function updateTargets(observer) {
1909
+ function updateTargets(observer, options) {
1910
1910
  return (targets, prev) => {
1911
1911
  for (const target of prev) {
1912
- !includes(targets, target) && observer.unobserve(target);
1912
+ if (!includes(targets, target)) {
1913
+ if (observer.unobserve) {
1914
+ observer.unobserve(target);
1915
+ } else {
1916
+ observer.disconnect();
1917
+ }
1918
+ }
1913
1919
  }
1914
1920
  for (const target of targets) {
1915
- !includes(prev, target) && observer.observe(target);
1921
+ if (!includes(prev, target) || !observer.unobserve) {
1922
+ observer.observe(target, options);
1923
+ }
1916
1924
  }
1917
1925
  };
1918
1926
  }
@@ -2179,7 +2187,7 @@
2179
2187
  };
2180
2188
  App.util = util;
2181
2189
  App.options = {};
2182
- App.version = "3.19.5-dev.df655fa70";
2190
+ App.version = "3.19.5-dev.f269960e9";
2183
2191
 
2184
2192
  const PREFIX = "uk-";
2185
2193
  const DATA = "__uikit__";
@@ -4689,13 +4697,13 @@
4689
4697
  delete this.img;
4690
4698
  },
4691
4699
  observe: intersection({
4692
- target: ({ $el, $props }) => [$el, ...queryAll($props.target, $el)],
4693
4700
  handler(entries, observer) {
4694
4701
  this.load();
4695
4702
  observer.disconnect();
4696
4703
  },
4697
4704
  options: ({ margin }) => ({ rootMargin: margin }),
4698
- filter: ({ loading }) => loading === "lazy"
4705
+ filter: ({ loading }) => loading === "lazy",
4706
+ target: ({ $el, $props }) => $props.target ? [$el, ...queryAll($props.target, $el)] : $el
4699
4707
  }),
4700
4708
  methods: {
4701
4709
  load() {
@@ -6115,18 +6123,10 @@
6115
6123
  }
6116
6124
 
6117
6125
  function getMaxPathLength(el) {
6118
- return Math.ceil(
6119
- Math.max(
6120
- 0,
6121
- ...$$("[stroke]", el).map((stroke) => {
6122
- try {
6123
- return stroke.getTotalLength();
6124
- } catch (e) {
6125
- return 0;
6126
- }
6127
- })
6128
- )
6129
- );
6126
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
6127
+ var _a;
6128
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
6129
+ })));
6130
6130
  }
6131
6131
 
6132
6132
  var svg = {