uikit 3.23.7-dev.1d206253d → 3.23.7-dev.ea33b1a06

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 (54) hide show
  1. package/CHANGELOG.md +1 -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 +2 -2
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +8 -8
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +12 -17
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +13 -18
  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 +11 -17
  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 +8 -14
  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 +2 -2
  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 -19
  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 +38 -45
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/components/countdown.js +2 -2
  44. package/src/js/components/filter.js +1 -2
  45. package/src/js/components/lightbox.js +1 -2
  46. package/src/js/components/slider.js +3 -4
  47. package/src/js/components/tooltip.js +1 -1
  48. package/src/js/core/icon.js +3 -5
  49. package/src/js/core/img.js +1 -1
  50. package/src/js/core/switcher.js +4 -4
  51. package/src/js/core/toggle.js +3 -4
  52. package/src/js/core/video.js +1 -1
  53. package/src/js/mixin/modal.js +4 -4
  54. package/src/js/mixin/slider-nav.js +7 -13
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.23.7-dev.1d206253d | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 3.23.7-dev.ea33b1a06 | 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() :
@@ -1703,7 +1703,7 @@
1703
1703
  reload: false
1704
1704
  },
1705
1705
  connected() {
1706
- attr(this.$el, "role", this.role);
1706
+ this.$el.role = this.role;
1707
1707
  this.date = toFloat(Date.parse(this.$props.date));
1708
1708
  this.started = this.end = false;
1709
1709
  this.start();
@@ -2347,7 +2347,7 @@
2347
2347
  }
2348
2348
  const button = findButton(toggle);
2349
2349
  if (isTag(button, "a")) {
2350
- attr(button, "role", "button");
2350
+ button.role = "button";
2351
2351
  }
2352
2352
  }
2353
2353
  },
@@ -2403,8 +2403,8 @@
2403
2403
  }
2404
2404
  }
2405
2405
  };
2406
- function getFilter(el, attr2) {
2407
- return parseOptions(data(el, attr2), ["filter"]);
2406
+ function getFilter(el, attr) {
2407
+ return parseOptions(data(el, attr), ["filter"]);
2408
2408
  }
2409
2409
  function isEqualState(stateA, stateB) {
2410
2410
  return ["filter", "sort"].every((prop) => isEqual(stateA[prop], stateB[prop]));
@@ -2425,8 +2425,8 @@
2425
2425
  }
2426
2426
  }
2427
2427
  }
2428
- function mergeState(el, attr2, state) {
2429
- const { filter, group, sort, order = "asc" } = getFilter(el, attr2);
2428
+ function mergeState(el, attr, state) {
2429
+ const { filter, group, sort, order = "asc" } = getFilter(el, attr);
2430
2430
  if (filter || isUndefined(sort)) {
2431
2431
  if (group) {
2432
2432
  if (filter) {
@@ -2447,8 +2447,8 @@
2447
2447
  }
2448
2448
  return state;
2449
2449
  }
2450
- function matchFilter(el, attr2, { filter: stateFilter = { "": "" }, sort: [stateSort, stateOrder] }) {
2451
- const { filter = "", group = "", sort, order = "asc" } = getFilter(el, attr2);
2450
+ function matchFilter(el, attr, { filter: stateFilter = { "": "" }, sort: [stateSort, stateOrder] }) {
2451
+ const { filter = "", group = "", sort, order = "asc" } = getFilter(el, attr);
2452
2452
  return isUndefined(sort) ? group in stateFilter && filter === stateFilter[group] || !filter && group && !(group in stateFilter) && !stateFilter[""] : stateSort === sort && stateOrder === order;
2453
2453
  }
2454
2454
  function sortItems(nodes, sort, order) {
@@ -2538,7 +2538,7 @@
2538
2538
  wrapInPicture(img, sources);
2539
2539
  setSourceProps(el, img);
2540
2540
  img.onload = () => setSrcAttrs(el, img.currentSrc);
2541
- attr(img, "src", src);
2541
+ img.src = src;
2542
2542
  return img;
2543
2543
  }
2544
2544
  function wrapInPicture(img, sources) {
@@ -2928,9 +2928,10 @@
2928
2928
  }
2929
2929
  },
2930
2930
  connected() {
2931
- attr(this.panel || this.$el, "role", this.role);
2931
+ const el = this.panel || this.$el;
2932
+ el.role = this.role;
2932
2933
  if (this.overlay) {
2933
- attr(this.panel || this.$el, "aria-modal", true);
2934
+ el.ariaModal = true;
2934
2935
  }
2935
2936
  },
2936
2937
  beforeDisconnect() {
@@ -3008,7 +3009,7 @@
3008
3009
  self: true,
3009
3010
  handler() {
3010
3011
  if (!isFocusable(this.$el)) {
3011
- attr(this.$el, "tabindex", "-1");
3012
+ this.$el.tabIndex = -1;
3012
3013
  }
3013
3014
  if (!matches(this.$el, ":focus-within")) {
3014
3015
  this.$el.focus();
@@ -3731,7 +3732,7 @@
3731
3732
  };
3732
3733
  App.util = util;
3733
3734
  App.options = {};
3734
- App.version = "3.23.7-dev.1d206253d";
3735
+ App.version = "3.23.7-dev.ea33b1a06";
3735
3736
 
3736
3737
  const PREFIX = "uk-";
3737
3738
  const DATA = "__uikit__";
@@ -3948,7 +3949,7 @@
3948
3949
  ariaControls = slide.id;
3949
3950
  }
3950
3951
  ariaLabel = this.t("slideX", toFloat(cmd) + 1);
3951
- attr(button, "role", "tab");
3952
+ button.role = "tab";
3952
3953
  } else {
3953
3954
  if (this.list) {
3954
3955
  if (!this.list.id) {
@@ -3958,10 +3959,8 @@
3958
3959
  }
3959
3960
  ariaLabel = this.t(cmd);
3960
3961
  }
3961
- attr(button, {
3962
- "aria-controls": ariaControls,
3963
- "aria-label": attr(button, "aria-label") || ariaLabel
3964
- });
3962
+ button.ariaControls = ariaControls;
3963
+ button.ariaLabel = button.ariaLabel || ariaLabel;
3965
3964
  }
3966
3965
  },
3967
3966
  slides(slides) {
@@ -3976,10 +3975,8 @@
3976
3975
  }
3977
3976
  },
3978
3977
  connected() {
3979
- attr(this.$el, {
3980
- role: this.role,
3981
- "aria-roledescription": "carousel"
3982
- });
3978
+ this.$el.role = this.role;
3979
+ this.$el.ariaRoleDescription = "carousel";
3983
3980
  },
3984
3981
  update: [
3985
3982
  {
@@ -4037,10 +4034,8 @@
4037
4034
  const active = item === index;
4038
4035
  toggleClass(el, this.clsActive, active);
4039
4036
  toggleClass(button, "uk-disabled", !!this.parallax);
4040
- attr(button, {
4041
- "aria-selected": active,
4042
- tabindex: active && !this.parallax ? null : -1
4043
- });
4037
+ button.ariaSelected = active;
4038
+ button.tabIndex = active && !this.parallax ? null : -1;
4044
4039
  if (active && button && matches(parent(el), ":focus-within")) {
4045
4040
  button.focus();
4046
4041
  }
@@ -4720,7 +4715,7 @@
4720
4715
  this.hide();
4721
4716
  for (const toggle of toggles) {
4722
4717
  if (isTag(toggle, "a")) {
4723
- attr(toggle, "role", "button");
4718
+ toggle.role = "button";
4724
4719
  }
4725
4720
  }
4726
4721
  }
@@ -5732,12 +5727,12 @@
5732
5727
  for (const slide of this.slides) {
5733
5728
  const active = includes(actives, slide);
5734
5729
  toggleClass(slide, activeClasses, active);
5735
- attr(slide, "aria-hidden", !active);
5730
+ slide.ariaHidden = !active;
5736
5731
  for (const focusable of $$(selFocusable, slide)) {
5737
5732
  if (!hasOwn(focusable, "_tabindex")) {
5738
- focusable._tabindex = attr(focusable, "tabindex");
5733
+ focusable._tabindex = focusable.tabIndex;
5739
5734
  }
5740
- attr(focusable, "tabindex", active ? focusable._tabindex : -1);
5735
+ focusable.tabIndex = active ? focusable._tabindex : -1;
5741
5736
  }
5742
5737
  }
5743
5738
  },
@@ -6330,7 +6325,7 @@
6330
6325
  };
6331
6326
  function makeFocusable(el) {
6332
6327
  if (!isFocusable(el)) {
6333
- attr(el, "tabindex", "0");
6328
+ el.tabIndex = 0;
6334
6329
  }
6335
6330
  }
6336
6331
  function getAlignment(el, target, [dir, align]) {
@@ -6892,7 +6887,7 @@
6892
6887
  }
6893
6888
  if (this.autoplay === "hover") {
6894
6889
  if (isTag(this.$el, "video")) {
6895
- this.$el.tabindex = 0;
6890
+ this.$el.tabIndex = 0;
6896
6891
  } else {
6897
6892
  this.autoplay = true;
6898
6893
  }
@@ -8242,13 +8237,11 @@
8242
8237
  return;
8243
8238
  }
8244
8239
  if (isToggle) {
8245
- const label = this.t("toggle");
8246
- attr(this.$el, "aria-label", label);
8240
+ this.$el.ariaLabel = this.t("toggle");
8247
8241
  } else {
8248
8242
  const button = this.$el.closest("a,button");
8249
8243
  if (button) {
8250
- const label = this.t("submit");
8251
- attr(button, "aria-label", label);
8244
+ button.ariaLabel = this.t("submit");
8252
8245
  }
8253
8246
  }
8254
8247
  }
@@ -8256,7 +8249,7 @@
8256
8249
  const Spinner = {
8257
8250
  extends: IconComponent,
8258
8251
  beforeConnect() {
8259
- attr(this.$el, "role", "status");
8252
+ this.$el.role = "status";
8260
8253
  },
8261
8254
  methods: {
8262
8255
  async getSvg() {
@@ -9607,7 +9600,7 @@
9607
9600
  }
9608
9601
  },
9609
9602
  connected() {
9610
- attr(this.$el, "role", "tablist");
9603
+ this.$el.role = "tablist";
9611
9604
  },
9612
9605
  observe: [
9613
9606
  lazyload({ targets: ({ connectChildren }) => connectChildren }),
@@ -9666,20 +9659,20 @@
9666
9659
  var _a;
9667
9660
  for (const el of this.connects) {
9668
9661
  if (isTag(el, "ul")) {
9669
- attr(el, "role", "presentation");
9662
+ el.role = "presentation";
9670
9663
  }
9671
9664
  }
9672
9665
  attr(children(this.$el), "role", "presentation");
9673
9666
  for (const index in this.toggles) {
9674
9667
  const toggle = this.toggles[index];
9675
9668
  const item = (_a = this.connects[0]) == null ? void 0 : _a.children[index];
9676
- attr(toggle, "role", "tab");
9669
+ toggle.role = "tab";
9677
9670
  if (!item) {
9678
9671
  continue;
9679
9672
  }
9680
9673
  toggle.id = generateId(this, toggle);
9681
9674
  item.id = generateId(this, item);
9682
- attr(toggle, "aria-controls", item.id);
9675
+ toggle.ariaControls = item.id;
9683
9676
  attr(item, { role: "tabpanel", "aria-labelledby": toggle.id });
9684
9677
  }
9685
9678
  attr(this.$el, "aria-orientation", matches(this.$el, this.selVertical) ? "vertical" : null);
@@ -9765,10 +9758,10 @@
9765
9758
  connected() {
9766
9759
  if (!includes(this.mode, "media")) {
9767
9760
  if (!isFocusable(this.$el)) {
9768
- attr(this.$el, "tabindex", "0");
9761
+ this.$el.tabIndex = 0;
9769
9762
  }
9770
9763
  if (!this.cls && isTag(this.$el, "a")) {
9771
- attr(this.$el, "role", "button");
9764
+ this.$el.role = "button";
9772
9765
  }
9773
9766
  }
9774
9767
  },
@@ -9859,7 +9852,7 @@
9859
9852
  return;
9860
9853
  }
9861
9854
  if (hasAttr(this.$el, "aria-expanded")) {
9862
- attr(this.$el, "aria-expanded", !this.isToggled(this.target));
9855
+ this.$el.ariaExpanded = !this.isToggled(this.target);
9863
9856
  }
9864
9857
  if (!this.queued) {
9865
9858
  return this.toggleElement(this.target);