uikit 3.23.6-dev.6b5527a2f → 3.23.6-dev.eb1cbd14e

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 (59) 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 +11 -10
  12. package/dist/js/components/filter.min.js +1 -1
  13. package/dist/js/components/lightbox-panel.js +14 -9
  14. package/dist/js/components/lightbox-panel.min.js +1 -1
  15. package/dist/js/components/lightbox.js +14 -9
  16. package/dist/js/components/lightbox.min.js +1 -1
  17. package/dist/js/components/notification.js +8 -4
  18. package/dist/js/components/notification.min.js +1 -1
  19. package/dist/js/components/parallax.js +2 -4
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +2 -4
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +8 -2
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +2 -4
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +9 -5
  28. package/dist/js/components/slideshow.min.js +1 -1
  29. package/dist/js/components/sortable.js +7 -11
  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 +33 -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 +43 -43
  40. package/dist/js/uikit.min.js +1 -1
  41. package/package.json +1 -1
  42. package/src/js/components/filter.js +2 -1
  43. package/src/js/components/notification.js +2 -3
  44. package/src/js/components/sortable.js +4 -2
  45. package/src/js/core/accordion.js +2 -1
  46. package/src/js/core/alert.js +2 -1
  47. package/src/js/core/drop.js +4 -2
  48. package/src/js/core/modal.js +1 -1
  49. package/src/js/core/switcher.js +3 -2
  50. package/src/js/mixin/event.js +5 -0
  51. package/src/js/mixin/internal/animate-fade.js +3 -2
  52. package/src/js/mixin/internal/animate-slide.js +1 -6
  53. package/src/js/mixin/internal/slideshow-transitioner.js +2 -4
  54. package/src/js/mixin/modal.js +2 -1
  55. package/src/js/mixin/parallax.js +2 -3
  56. package/src/js/mixin/slider-nav.js +2 -1
  57. package/src/js/util/animation.js +5 -9
  58. package/src/js/util/scroll.js +5 -4
  59. package/src/js/util/style.js +6 -0
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.23.6-dev.6b5527a2f | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 3.23.6-dev.eb1cbd14e | 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() :
@@ -614,6 +614,11 @@
614
614
  }
615
615
  return elements[0];
616
616
  }
617
+ function resetProps(element, props) {
618
+ for (const prop in props) {
619
+ css(element, prop, "");
620
+ }
621
+ }
617
622
  const propName = memoize((name) => {
618
623
  if (startsWith(name, "--")) {
619
624
  return name;
@@ -649,22 +654,18 @@
649
654
  ({ type }) => {
650
655
  clearTimeout(timer);
651
656
  removeClass(element2, clsTransition);
652
- css(element2, {
653
- transitionProperty: "",
654
- transitionDuration: "",
655
- transitionTimingFunction: ""
656
- });
657
+ resetProps(element2, transitionProps);
657
658
  type === transitionCanceled ? reject() : resolve(element2);
658
659
  },
659
660
  { self: true }
660
661
  );
661
662
  addClass(element2, clsTransition);
662
- css(element2, {
663
+ const transitionProps = {
663
664
  transitionProperty: Object.keys(props).map(propName).join(","),
664
665
  transitionDuration: `${duration}ms`,
665
- transitionTimingFunction: timing,
666
- ...props
667
- });
666
+ transitionTimingFunction: timing
667
+ };
668
+ css(element2, { ...transitionProps, ...props });
668
669
  })
669
670
  )
670
671
  );
@@ -1647,6 +1648,7 @@
1647
1648
  removeAttr: removeAttr,
1648
1649
  removeClass: removeClass,
1649
1650
  replaceClass: replaceClass,
1651
+ resetProps: resetProps,
1650
1652
  scrollIntoView: scrollIntoView,
1651
1653
  scrollParent: scrollParent,
1652
1654
  scrollParents: scrollParents,
@@ -2154,7 +2156,7 @@
2154
2156
  await awaitTimeout(i * stagger);
2155
2157
  await Transition.start(child, propsIn, duration / 2, "ease");
2156
2158
  if (isCurrentIndex()) {
2157
- css(child, { opacity: "" });
2159
+ resetProps(child, propsIn);
2158
2160
  }
2159
2161
  });
2160
2162
  targetDuration += nodes.length * stagger;
@@ -2166,7 +2168,7 @@
2166
2168
  await Promise.all(transitions);
2167
2169
  removeClass(target, clsEnter);
2168
2170
  if (isCurrentIndex()) {
2169
- css(target, { height: "", alignContent: "", opacity: "" });
2171
+ resetProps(target, { height: "", alignContent: "", ...propsIn });
2170
2172
  delete target.dataset.transition;
2171
2173
  }
2172
2174
  });
@@ -2261,11 +2263,6 @@
2261
2263
  });
2262
2264
  return [propsTo, propsFrom];
2263
2265
  }
2264
- function resetProps(el, props) {
2265
- for (const prop in props) {
2266
- css(el, prop, "");
2267
- }
2268
- }
2269
2266
  function getPositionWithMargin(el) {
2270
2267
  const { height, width } = dimensions$1(el);
2271
2268
  return {
@@ -2301,6 +2298,12 @@
2301
2298
  }
2302
2299
  };
2303
2300
 
2301
+ function maybeDefautPreventClick(e) {
2302
+ if (e.target.closest('a[href="#"],a[href=""]')) {
2303
+ e.preventDefault();
2304
+ }
2305
+ }
2306
+
2304
2307
  const keyMap = {
2305
2308
  TAB: 9,
2306
2309
  ESC: 27,
@@ -2359,7 +2362,7 @@
2359
2362
  return;
2360
2363
  }
2361
2364
  if (e.target.closest("a,button")) {
2362
- e.preventDefault();
2365
+ maybeDefautPreventClick(e);
2363
2366
  this.apply(e.current);
2364
2367
  }
2365
2368
  }
@@ -2609,15 +2612,16 @@
2609
2612
  }
2610
2613
  prevented = true;
2611
2614
  const { scrollingElement } = document;
2612
- css(scrollingElement, {
2615
+ const props = {
2613
2616
  overflowY: CSS.supports("overflow", "clip") ? "clip" : "hidden",
2614
2617
  touchAction: "none",
2615
2618
  paddingRight: width(window) - scrollingElement.clientWidth || ""
2616
- });
2619
+ };
2620
+ css(scrollingElement, props);
2617
2621
  return () => {
2618
2622
  prevented = false;
2619
2623
  off();
2620
- css(scrollingElement, { overflowY: "", touchAction: "", paddingRight: "" });
2624
+ resetProps(scrollingElement, props);
2621
2625
  };
2622
2626
  }
2623
2627
 
@@ -2941,7 +2945,7 @@
2941
2945
  if (!defaultPrevented && hash && isSameSiteAnchor(current) && !this.$el.contains($(hash))) {
2942
2946
  this.hide();
2943
2947
  } else if (matches(current, this.selClose)) {
2944
- e.preventDefault();
2948
+ maybeDefautPreventClick(e);
2945
2949
  this.hide();
2946
2950
  }
2947
2951
  }
@@ -3151,9 +3155,7 @@
3151
3155
  return Transition.cancel([next, prev]);
3152
3156
  },
3153
3157
  reset() {
3154
- for (const prop in props[0]) {
3155
- css([next, prev], prop, "");
3156
- }
3158
+ resetProps([next, prev], props[0]);
3157
3159
  },
3158
3160
  async forward(duration, percent2 = this.percent()) {
3159
3161
  await this.cancel();
@@ -3726,7 +3728,7 @@
3726
3728
  };
3727
3729
  App.util = util;
3728
3730
  App.options = {};
3729
- App.version = "3.23.6-dev.6b5527a2f";
3731
+ App.version = "3.23.6-dev.eb1cbd14e";
3730
3732
 
3731
3733
  const PREFIX = "uk-";
3732
3734
  const DATA = "__uikit__";
@@ -3992,7 +3994,7 @@
3992
3994
  filter: ({ parallax }) => !parallax,
3993
3995
  handler(e) {
3994
3996
  if (e.target.closest("a,button") && (e.type === "click" || e.keyCode === keyMap.SPACE)) {
3995
- e.preventDefault();
3997
+ maybeDefautPreventClick(e);
3996
3998
  this.show(data(e.current, this.attrItem));
3997
3999
  }
3998
4000
  }
@@ -4837,9 +4839,7 @@
4837
4839
  },
4838
4840
  events: {
4839
4841
  click(e) {
4840
- if (e.target.closest('a[href="#"],a[href=""]')) {
4841
- e.preventDefault();
4842
- }
4842
+ maybeDefautPreventClick(e);
4843
4843
  this.close();
4844
4844
  },
4845
4845
  [pointerEnter]() {
@@ -4979,9 +4979,7 @@
4979
4979
  },
4980
4980
  methods: {
4981
4981
  reset() {
4982
- for (const prop in this.getCss(0)) {
4983
- css(this.$el, prop, "");
4984
- }
4982
+ resetProps(this.$el, this.getCss(0));
4985
4983
  },
4986
4984
  getCss(percent) {
4987
4985
  const css2 = {};
@@ -5978,8 +5976,9 @@
5978
5976
  toggleClass(this.target, this.clsEmpty, empty);
5979
5977
  },
5980
5978
  handles(handles, prev) {
5981
- css(prev, { touchAction: "", userSelect: "" });
5982
- css(handles, { touchAction: "none", userSelect: "none" });
5979
+ const props = { touchAction: "none", userSelect: "none" };
5980
+ resetProps(prev, props);
5981
+ css(handles, props);
5983
5982
  }
5984
5983
  },
5985
5984
  update: {
@@ -6719,7 +6718,7 @@
6719
6718
  if (e.type === "keydown" && e.keyCode !== keyMap.SPACE) {
6720
6719
  return;
6721
6720
  }
6722
- e.preventDefault();
6721
+ maybeDefautPreventClick(e);
6723
6722
  (_a = this._off) == null ? void 0 : _a.call(this);
6724
6723
  this._off = keepScrollPosition(e.target);
6725
6724
  await this.toggle(index(this.toggles, e.current));
@@ -6840,7 +6839,7 @@
6840
6839
  name: "click",
6841
6840
  delegate: ({ selClose }) => selClose,
6842
6841
  handler(e) {
6843
- e.preventDefault();
6842
+ maybeDefautPreventClick(e);
6844
6843
  this.close();
6845
6844
  }
6846
6845
  },
@@ -7045,7 +7044,8 @@
7045
7044
  animation: ["uk-animation-fade"],
7046
7045
  cls: "uk-open",
7047
7046
  container: false,
7048
- closeOnScroll: false
7047
+ closeOnScroll: false,
7048
+ selClose: ".uk-drop-close"
7049
7049
  },
7050
7050
  computed: {
7051
7051
  boundary({ boundary, boundaryX, boundaryY }, $el) {
@@ -7086,9 +7086,9 @@
7086
7086
  events: [
7087
7087
  {
7088
7088
  name: "click",
7089
- delegate: () => ".uk-drop-close",
7089
+ delegate: ({ selClose }) => selClose,
7090
7090
  handler(e) {
7091
- e.preventDefault();
7091
+ maybeDefautPreventClick(e);
7092
7092
  this.hide(false);
7093
7093
  }
7094
7094
  },
@@ -8562,7 +8562,7 @@
8562
8562
  };
8563
8563
  modal.alert = function(message, options) {
8564
8564
  return openDialog(
8565
- ({ i18n }) => `<div class="uk-modal-body">${isString(message) ? message : html(message)}</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" autofocus>${i18n.ok}</button> </div>`,
8565
+ ({ i18n }) => `<div class="uk-modal-body">${isString(message) ? message : html(message)}</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" type="button" autofocus>${i18n.ok}</button> </div>`,
8566
8566
  options
8567
8567
  );
8568
8568
  };
@@ -9602,7 +9602,7 @@
9602
9602
  delegate: ({ toggle }) => toggle,
9603
9603
  handler(e) {
9604
9604
  if (!matches(e.current, selDisabled) && (e.type === "click" || e.keyCode === keyMap.SPACE)) {
9605
- e.preventDefault();
9605
+ maybeDefautPreventClick(e);
9606
9606
  this.show(e.current);
9607
9607
  }
9608
9608
  }
@@ -9631,7 +9631,7 @@
9631
9631
  delegate: ({ attrItem }) => `[${attrItem}],[data-${attrItem}]`,
9632
9632
  handler(e) {
9633
9633
  if (e.target.closest("a,button")) {
9634
- e.preventDefault();
9634
+ maybeDefautPreventClick(e);
9635
9635
  this.show(data(e.current, this.attrItem));
9636
9636
  }
9637
9637
  }