uikit 3.21.6-dev.80912ecf1 → 3.21.6-dev.8cf944953

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 +6 -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 +19 -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 +19 -8
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/core/sticky.js +15 -4
  44. package/src/js/util/player.js +2 -2
  45. package/src/js/util/svg.js +1 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.21.6-dev.80912ecf1 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.21.6-dev.8cf944953 | 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() :
@@ -1122,7 +1122,7 @@
1122
1122
  call(el, { func: "playVideo", method: "play" });
1123
1123
  }
1124
1124
  if (isHTML5(el)) {
1125
- el.play();
1125
+ el.play().catch(noop);
1126
1126
  }
1127
1127
  }
1128
1128
  function pause(el) {
@@ -2169,7 +2169,7 @@
2169
2169
  };
2170
2170
  App.util = util;
2171
2171
  App.options = {};
2172
- App.version = "3.21.6-dev.80912ecf1";
2172
+ App.version = "3.21.6-dev.8cf944953";
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
 
@@ -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
  }
@@ -5908,6 +5911,7 @@
5908
5911
  if (this.inactive) {
5909
5912
  return;
5910
5913
  }
5914
+ console.log(this._uid, types, width);
5911
5915
  const hide = this.isFixed && types.has("update");
5912
5916
  if (hide) {
5913
5917
  preventTransition(this.target);
@@ -5946,7 +5950,7 @@
5946
5950
  sticky = maxScrollHeight && !this.showOnUp && start + offset$1 === topOffset && end === Math.min(
5947
5951
  maxScrollHeight,
5948
5952
  parseProp(true, this.$el, 0, true) - elHeight - offset$1 + overflow
5949
- ) && css(parent(this.$el), "overflowY") === "visible";
5953
+ ) && css(getVisibleParent(this.$el), "overflowY") === "visible";
5950
5954
  return {
5951
5955
  start,
5952
5956
  end,
@@ -6137,7 +6141,7 @@
6137
6141
  if (isNumeric(value) || isString(value) && value.match(/^-?\d/)) {
6138
6142
  return propOffset + toPx(value, "height", el, true);
6139
6143
  } else {
6140
- const refElement = value === true ? parent(el) : query(value, el);
6144
+ const refElement = value === true ? getVisibleParent(el) : query(value, el);
6141
6145
  return offset(refElement).bottom - (padding && (refElement == null ? void 0 : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) : 0);
6142
6146
  }
6143
6147
  }
@@ -6159,6 +6163,13 @@
6159
6163
  requestAnimationFrame(() => removeClass(element, clsTransitionDisable));
6160
6164
  }
6161
6165
  }
6166
+ function getVisibleParent(element) {
6167
+ while (element = parent(element)) {
6168
+ if (isVisible(element)) {
6169
+ return element;
6170
+ }
6171
+ }
6172
+ }
6162
6173
 
6163
6174
  const selDisabled = ".uk-disabled *, .uk-disabled, [disabled]";
6164
6175
  var Switcher = {