uikit 3.19.5-dev.8210c3e08 → 3.19.5-dev.8317c4705

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 +18 -6
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +18 -6
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +18 -6
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +18 -6
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +18 -6
  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 +24 -33
  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 +24 -33
  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/core/inverse.js +1 -11
  44. package/src/js/util/selector.js +5 -1
  45. package/src/js/util/svg.js +12 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8210c3e08 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.8317c4705 | 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,7 +420,11 @@
420
420
  return ctx;
421
421
  }
422
422
  } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
423
- return _doQuery(parent(ctx), queryFn, `:scope :nth-child(${index(ctx) + 1}) ${sel}`);
423
+ return _doQuery(
424
+ parent(context),
425
+ queryFn,
426
+ `:scope :nth-child(${index(context) + 1}) ${sel}`
427
+ );
424
428
  }
425
429
  if (ctx) {
426
430
  selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
@@ -1897,30 +1901,18 @@
1897
1901
  }
1898
1902
  const targets = hasOwn(instance, key) ? instance[key] : target;
1899
1903
  const observer = observe(targets, handler, options, args);
1900
- if (isFunction(target) && isArray(instance[key])) {
1901
- registerWatch(
1902
- instance,
1903
- { handler: updateTargets(observer, options), immediate: false },
1904
- key
1905
- );
1904
+ if (isFunction(target) && isArray(instance[key]) && observer.unobserve) {
1905
+ registerWatch(instance, { handler: updateTargets(observer), immediate: false }, key);
1906
1906
  }
1907
1907
  registerObserver(instance, observer);
1908
1908
  }
1909
- function updateTargets(observer, options) {
1909
+ function updateTargets(observer) {
1910
1910
  return (targets, prev) => {
1911
1911
  for (const target of prev) {
1912
- if (!includes(targets, target)) {
1913
- if (observer.unobserve) {
1914
- observer.unobserve(target);
1915
- } else {
1916
- observer.disconnect();
1917
- }
1918
- }
1912
+ !includes(targets, target) && observer.unobserve(target);
1919
1913
  }
1920
1914
  for (const target of targets) {
1921
- if (!includes(prev, target) || !observer.unobserve) {
1922
- observer.observe(target, options);
1923
- }
1915
+ !includes(prev, target) && observer.observe(target);
1924
1916
  }
1925
1917
  };
1926
1918
  }
@@ -2187,7 +2179,7 @@
2187
2179
  };
2188
2180
  App.util = util;
2189
2181
  App.options = {};
2190
- App.version = "3.19.5-dev.8210c3e08";
2182
+ App.version = "3.19.5-dev.8317c4705";
2191
2183
 
2192
2184
  const PREFIX = "uk-";
2193
2185
  const DATA = "__uikit__";
@@ -4796,12 +4788,6 @@
4796
4788
  target: ({ target }, $el) => target ? $$(target, $el) : [$el]
4797
4789
  },
4798
4790
  observe: [
4799
- intersection({
4800
- handler([{ isIntersecting }]) {
4801
- this.isIntersecting = isIntersecting;
4802
- },
4803
- args: { intersecting: false }
4804
- }),
4805
4791
  mutation({
4806
4792
  target: ({ target }) => target,
4807
4793
  options: { attributes: true, attributeFilter: ["class"], attributeOldValue: true }
@@ -4838,9 +4824,6 @@
4838
4824
  ],
4839
4825
  update: {
4840
4826
  read() {
4841
- if (!this.isIntersecting) {
4842
- return false;
4843
- }
4844
4827
  for (const target of this.target) {
4845
4828
  replaceClass(
4846
4829
  target,
@@ -6123,10 +6106,18 @@
6123
6106
  }
6124
6107
 
6125
6108
  function getMaxPathLength(el) {
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
- })));
6109
+ return Math.ceil(
6110
+ Math.max(
6111
+ 0,
6112
+ ...$$("[stroke]", el).map((stroke) => {
6113
+ try {
6114
+ return stroke.getTotalLength();
6115
+ } catch (e) {
6116
+ return 0;
6117
+ }
6118
+ })
6119
+ )
6120
+ );
6130
6121
  }
6131
6122
 
6132
6123
  var svg = {