uikit 3.25.28-dev.25f0658 → 3.25.28-dev.6d5160a

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 (48) hide show
  1. package/CHANGELOG.md +3 -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 +2 -2
  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 +1 -1
  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 +41 -49
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +4 -4
  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 +46 -54
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/components/parallax.js +1 -1
  44. package/src/js/components/slideshow.js +1 -1
  45. package/src/js/components/upload.js +41 -56
  46. package/src/js/core/scrollspy-nav.js +0 -1
  47. package/src/js/core/svg.js +1 -1
  48. package/src/js/util/style.js +1 -0
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.25.28-dev.25f0658 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
1
+ /*! UIkit 3.25.28-dev.6d5160a | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -568,6 +568,7 @@
568
568
 
569
569
  const cssNumber = {
570
570
  "animation-iteration-count": true,
571
+ "aspect-ratio": true,
571
572
  "column-count": true,
572
573
  "fill-opacity": true,
573
574
  "flex-grow": true,
@@ -3418,7 +3419,7 @@
3418
3419
  return Math.atan2(Math.abs(pos2.y - pos1.y), Math.abs(pos2.x - pos1.x)) * 180 / Math.PI;
3419
3420
  }
3420
3421
 
3421
- var VERSION = '3.25.28-dev.25f0658';
3422
+ var VERSION = '3.25.28-dev.6d5160a';
3422
3423
 
3423
3424
  function initWatches(instance) {
3424
3425
  instance._watches = [];
@@ -5275,7 +5276,7 @@
5275
5276
  ],
5276
5277
  update: {
5277
5278
  read({ percent }, types) {
5278
- if (!types.has("scroll")) {
5279
+ if (!types.has("scroll") || types.has("resize")) {
5279
5280
  percent = false;
5280
5281
  }
5281
5282
  if (!isVisible(this.$el)) {
@@ -5916,7 +5917,7 @@
5916
5917
  watch: {
5917
5918
  list(list) {
5918
5919
  css(list, {
5919
- aspectRatio: this.ratio ? this.ratio.replace(":", "/") : void 0,
5920
+ aspectRatio: this.ratio && this.ratio !== "false" ? this.ratio.replace(":", "/") : "",
5920
5921
  minHeight: this.minHeight,
5921
5922
  maxHeight: this.maxHeight,
5922
5923
  width: "100%"
@@ -6517,37 +6518,37 @@
6517
6518
  },
6518
6519
  methods: {
6519
6520
  async upload(files) {
6520
- files = toArray(files);
6521
- if (!files.length) {
6522
- return;
6523
- }
6524
- if (!this.multiple) {
6525
- files = files.slice(0, 1);
6526
- }
6527
- trigger(this.$el, "upload", [files]);
6528
- for (const file of files) {
6529
- if (this.maxSize && this.maxSize * 1e3 < file.size) {
6530
- this.fail(this.t("invalidSize", this.maxSize));
6531
- return;
6532
- }
6533
- if (this.allow && !match$1(this.allow, file.name)) {
6534
- this.fail(this.t("invalidName", this.allow));
6521
+ try {
6522
+ files = toArray(files);
6523
+ if (!files.length) {
6535
6524
  return;
6536
6525
  }
6537
- if (this.mime && !match$1(this.mime, file.type)) {
6538
- this.fail(this.t("invalidMime", this.mime));
6539
- return;
6526
+ if (!this.multiple) {
6527
+ files = files.slice(0, 1);
6540
6528
  }
6541
- }
6542
- this.beforeAll(this, files);
6543
- const chunks = chunk(files, this.concurrent);
6544
- const upload = async (files2) => {
6545
- const data = new FormData();
6546
- files2.forEach((file) => data.append(this.name, file));
6547
- for (const key in this.params) {
6548
- data.append(key, this.params[key]);
6529
+ trigger(this.$el, "upload", [files]);
6530
+ for (const file of files) {
6531
+ if (this.maxSize && this.maxSize * 1e3 < file.size) {
6532
+ this.fail(this.t("invalidSize", this.maxSize));
6533
+ return;
6534
+ }
6535
+ if (this.allow && !match$1(this.allow, file.name)) {
6536
+ this.fail(this.t("invalidName", this.allow));
6537
+ return;
6538
+ }
6539
+ if (this.mime && !match$1(this.mime, file.type)) {
6540
+ this.fail(this.t("invalidMime", this.mime));
6541
+ return;
6542
+ }
6549
6543
  }
6550
- try {
6544
+ await this.beforeAll(this, files);
6545
+ const size = this.concurrent;
6546
+ for (let i = 0; i < files.length; i += size) {
6547
+ const data = new FormData();
6548
+ files.slice(i, i + size).forEach((file) => data.append(this.name, file));
6549
+ for (const key in this.params) {
6550
+ data.append(key, this.params[key]);
6551
+ }
6551
6552
  const xhr = await ajax(this.url, {
6552
6553
  data,
6553
6554
  method: this.method,
@@ -6562,35 +6563,27 @@
6562
6563
  }
6563
6564
  });
6564
6565
  this.complete(xhr);
6565
- if (chunks.length) {
6566
- await upload(chunks.shift());
6567
- } else {
6566
+ if (i + size >= files.length) {
6568
6567
  this.completeAll(xhr);
6569
6568
  }
6570
- } catch (e) {
6571
- if (e.name !== "AbortError") {
6572
- this.error(e);
6573
- }
6574
6569
  }
6575
- };
6576
- await upload(chunks.shift());
6570
+ } catch (e) {
6571
+ if ((e == null ? void 0 : e.name) !== "AbortError") {
6572
+ this.error(e);
6573
+ }
6574
+ }
6577
6575
  }
6578
6576
  }
6579
6577
  };
6580
6578
  function match$1(pattern, path) {
6581
- return path.match(
6582
- new RegExp(
6583
- `^${pattern.replace(/\//g, "\\/").replace(/\*\*/g, "(\\/[^\\/]+)*").replace(/\*/g, "[^\\/]+").replace(/((?!\\))\?/g, "$1.")}$`,
6584
- "i"
6585
- )
6579
+ const expression = pattern.replace(
6580
+ /\*\*|[.*+?^${}()|[\]\\]/g,
6581
+ (s) => {
6582
+ var _a;
6583
+ return (_a = { "**": ".*", "*": "[^/]+", "?": "[^/]", "|": "|" }[s]) != null ? _a : `\\${s}`;
6584
+ }
6586
6585
  );
6587
- }
6588
- function chunk(files, size) {
6589
- const chunks = [];
6590
- for (let i = 0; i < files.length; i += size) {
6591
- chunks.push(files.slice(i, i + size));
6592
- }
6593
- return chunks;
6586
+ return new RegExp(`^(?:${expression})$`, "i").test(path);
6594
6587
  }
6595
6588
  function stop(e) {
6596
6589
  e.preventDefault();
@@ -9308,7 +9301,6 @@
9308
9301
  write({ active }) {
9309
9302
  const { elements } = this;
9310
9303
  const changed = active !== false && !hasClass(elements[active], this.cls);
9311
- this.links.forEach((el) => el.blur());
9312
9304
  for (let i = 0; i < elements.length; i++) {
9313
9305
  toggleClass(elements[i], this.cls, +i === active);
9314
9306
  }
@@ -9748,7 +9740,7 @@
9748
9740
  const loadSVG = memoize(async (src) => {
9749
9741
  if (src) {
9750
9742
  const response = await fetch(src);
9751
- if (response.headers.get("Content-Type") === "image/svg+xml") {
9743
+ if (/^image\/svg\+xml\s*(;|$)/i.test(response.headers.get("Content-Type"))) {
9752
9744
  return response.text();
9753
9745
  }
9754
9746
  }