uikit 3.21.6-dev.ae91accad → 3.21.6-dev.de7455236

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/CHANGELOG.md +7 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +5 -2
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +5 -2
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +5 -2
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +5 -2
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +5 -2
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +18 -8
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +18 -8
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/core/scrollspy-nav.js +1 -1
  44. package/src/js/core/sticky.js +13 -4
  45. package/src/js/util/svg.js +1 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.21.6-dev.ae91accad | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.21.6-dev.de7455236 | 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() :
@@ -2169,7 +2169,7 @@
2169
2169
  };
2170
2170
  App.util = util;
2171
2171
  App.options = {};
2172
- App.version = "3.21.6-dev.ae91accad";
2172
+ App.version = "3.21.6-dev.de7455236";
2173
2173
 
2174
2174
  const PREFIX = "uk-";
2175
2175
  const DATA = "__uikit__";
@@ -4419,7 +4419,10 @@
4419
4419
 
4420
4420
  function getMaxPathLength(el) {
4421
4421
  return isVisible(el) ? Math.ceil(
4422
- Math.max(0, ...$$("[stroke]", el).map((stroke) => (stroke == null ? void 0 : stroke.getTotalLength()) || 0))
4422
+ Math.max(0, ...$$("[stroke]", el).map((stroke) => {
4423
+ var _a;
4424
+ return ((_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke)) || 0;
4425
+ }))
4423
4426
  ) : 0;
4424
4427
  }
4425
4428
 
@@ -5753,7 +5756,7 @@
5753
5756
  cls: "uk-active",
5754
5757
  closest: false,
5755
5758
  scroll: false,
5756
- target: "a[href]",
5759
+ target: 'a[href]:not([role="button"])',
5757
5760
  offset: 0
5758
5761
  },
5759
5762
  computed: {
@@ -5870,10 +5873,10 @@
5870
5873
  viewport(),
5871
5874
  scroll$1({ target: () => document.scrollingElement }),
5872
5875
  resize({
5873
- target: ({ $el }) => [$el, parent($el), document.scrollingElement],
5876
+ target: ({ $el }) => [$el, getVisibleParent($el), document.scrollingElement],
5874
5877
  handler(entries) {
5875
5878
  this.$emit(
5876
- this._data.resized && entries.some(({ target }) => target === parent(this.$el)) ? "update" : "resize"
5879
+ this._data.resized && entries.some(({ target }) => target === getVisibleParent(this.$el)) ? "update" : "resize"
5877
5880
  );
5878
5881
  this._data.resized = true;
5879
5882
  }
@@ -5946,7 +5949,7 @@
5946
5949
  sticky = maxScrollHeight && !this.showOnUp && start + offset$1 === topOffset && end === Math.min(
5947
5950
  maxScrollHeight,
5948
5951
  parseProp(true, this.$el, 0, true) - elHeight - offset$1 + overflow
5949
- ) && css(parent(this.$el), "overflowY") === "visible";
5952
+ ) && css(getVisibleParent(this.$el), "overflowY") === "visible";
5950
5953
  return {
5951
5954
  start,
5952
5955
  end,
@@ -6137,7 +6140,7 @@
6137
6140
  if (isNumeric(value) || isString(value) && value.match(/^-?\d/)) {
6138
6141
  return propOffset + toPx(value, "height", el, true);
6139
6142
  } else {
6140
- const refElement = value === true ? parent(el) : query(value, el);
6143
+ const refElement = value === true ? getVisibleParent(el) : query(value, el);
6141
6144
  return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) : 0);
6142
6145
  }
6143
6146
  }
@@ -6159,6 +6162,13 @@
6159
6162
  requestAnimationFrame(() => removeClass(element, clsTransitionDisable));
6160
6163
  }
6161
6164
  }
6165
+ function getVisibleParent(element) {
6166
+ while (element = parent(element)) {
6167
+ if (isVisible(element)) {
6168
+ return element;
6169
+ }
6170
+ }
6171
+ }
6162
6172
 
6163
6173
  const selDisabled = ".uk-disabled *, .uk-disabled, [disabled]";
6164
6174
  var Switcher = {