uikit 3.19.5-dev.c75dd5d38 → 3.19.5-dev.df655fa70

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 (43) 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 +13 -5
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +13 -5
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +13 -5
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +13 -5
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +13 -5
  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 +19 -23
  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 +19 -23
  40. package/dist/js/uikit.min.js +1 -1
  41. package/package.json +1 -1
  42. package/src/js/api/observer.js +5 -17
  43. package/src/js/util/svg.js +12 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.c75dd5d38 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.df655fa70 | 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() :
@@ -1901,30 +1901,18 @@
1901
1901
  }
1902
1902
  const targets = hasOwn(instance, key) ? instance[key] : target;
1903
1903
  const observer = observe(targets, handler, options, args);
1904
- if (isFunction(target) && isArray(instance[key])) {
1905
- registerWatch(
1906
- instance,
1907
- { handler: updateTargets(observer, options), immediate: false },
1908
- key
1909
- );
1904
+ if (isFunction(target) && isArray(instance[key]) && observer.unobserve) {
1905
+ registerWatch(instance, { handler: updateTargets(observer), immediate: false }, key);
1910
1906
  }
1911
1907
  registerObserver(instance, observer);
1912
1908
  }
1913
- function updateTargets(observer, options) {
1909
+ function updateTargets(observer) {
1914
1910
  return (targets, prev) => {
1915
1911
  for (const target of prev) {
1916
- if (!includes(targets, target)) {
1917
- if (observer.unobserve) {
1918
- observer.unobserve(target);
1919
- } else {
1920
- observer.disconnect();
1921
- }
1922
- }
1912
+ !includes(targets, target) && observer.unobserve(target);
1923
1913
  }
1924
1914
  for (const target of targets) {
1925
- if (!includes(prev, target) || !observer.unobserve) {
1926
- observer.observe(target, options);
1927
- }
1915
+ !includes(prev, target) && observer.observe(target);
1928
1916
  }
1929
1917
  };
1930
1918
  }
@@ -2191,7 +2179,7 @@
2191
2179
  };
2192
2180
  App.util = util;
2193
2181
  App.options = {};
2194
- App.version = "3.19.5-dev.c75dd5d38";
2182
+ App.version = "3.19.5-dev.df655fa70";
2195
2183
 
2196
2184
  const PREFIX = "uk-";
2197
2185
  const DATA = "__uikit__";
@@ -6127,10 +6115,18 @@
6127
6115
  }
6128
6116
 
6129
6117
  function getMaxPathLength(el) {
6130
- return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
6131
- var _a;
6132
- return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
6133
- })));
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
+ );
6134
6130
  }
6135
6131
 
6136
6132
  var svg = {