uikit 3.23.12 → 3.23.13-dev.da17b7caa

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 +9 -3
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +9 -3
  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 +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +2 -2
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +2 -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 +25 -9
  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 +26 -10
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +2 -2
  43. package/src/js/core/scrollspy-nav.js +18 -8
  44. package/src/js/mixin/modal.js +8 -1
  45. package/src/js/mixin/slider-autoplay.js +2 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.23.12 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 3.23.13-dev.da17b7caa | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -2158,7 +2158,7 @@
2158
2158
  };
2159
2159
  App.util = util;
2160
2160
  App.options = {};
2161
- App.version = "3.23.12";
2161
+ App.version = "3.23.13-dev.da17b7caa";
2162
2162
 
2163
2163
  const PREFIX = "uk-";
2164
2164
  const DATA = "__uikit__";
@@ -5101,7 +5101,13 @@
5101
5101
  const { target } = this;
5102
5102
  if (!active.some((modal) => modal.clsPage === this.clsPage)) {
5103
5103
  removeClass(document.documentElement, this.clsPage);
5104
- queueMicrotask(() => isFocusable(target) && target.focus());
5104
+ queueMicrotask(() => {
5105
+ if (isFocusable(target)) {
5106
+ const restoreScrollPosition = storeScrollPosition(target);
5107
+ target.focus();
5108
+ restoreScrollPosition();
5109
+ }
5110
+ });
5105
5111
  }
5106
5112
  setAriaExpanded(target, false);
5107
5113
  this.target = null;
@@ -5728,7 +5734,18 @@
5728
5734
  offset: 0
5729
5735
  },
5730
5736
  computed: {
5731
- links: ({ target }, $el) => $$(target, $el).filter(isSameSiteAnchor)
5737
+ links: {
5738
+ get({ target }, $el) {
5739
+ return $$(target, $el).filter(getTargetedElement);
5740
+ },
5741
+ observe: () => "*"
5742
+ },
5743
+ targets() {
5744
+ return this.links.map((el) => getTargetedElement(el));
5745
+ },
5746
+ elements({ closest }) {
5747
+ return this.links.map((el) => el.closest(closest || "*"));
5748
+ }
5732
5749
  },
5733
5750
  watch: {
5734
5751
  links(links) {
@@ -5741,8 +5758,7 @@
5741
5758
  update: [
5742
5759
  {
5743
5760
  read() {
5744
- const links = this.links.filter(getTargetedElement);
5745
- const targets = links.map(getTargetedElement);
5761
+ const { targets } = this;
5746
5762
  const { length } = targets;
5747
5763
  if (!length || !isVisible(this.$el)) {
5748
5764
  return false;
@@ -5763,10 +5779,10 @@
5763
5779
  active = +i;
5764
5780
  }
5765
5781
  }
5766
- return { active, links };
5782
+ return { active };
5767
5783
  },
5768
- write({ active, links }) {
5769
- const elements = links.map((el) => el.closest(this.closest || "*"));
5784
+ write({ active }) {
5785
+ const { elements } = this;
5770
5786
  const changed = active !== false && !hasClass(elements[active], this.cls);
5771
5787
  this.links.forEach((el) => el.blur());
5772
5788
  for (let i = 0; i < elements.length; i++) {