uikit 3.25.28-dev.779d915 → 3.25.28
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.
- package/CHANGELOG.md +5 -0
- package/build/ci-publish-dev.js +19 -0
- package/build/ci-release.js +128 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +3 -3
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +2 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +2 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +41 -49
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +9 -11
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +53 -63
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -2
- package/src/js/components/countdown.js +2 -2
- package/src/js/components/parallax.js +1 -1
- package/src/js/components/slideshow.js +1 -1
- package/src/js/components/upload.js +41 -56
- package/src/js/core/drop.js +5 -7
- package/src/js/core/scrollspy-nav.js +0 -1
- package/src/js/core/svg.js +1 -1
- package/src/js/util/style.js +1 -0
- package/build/publishDev.js +0 -32
- package/build/release.js +0 -132
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.28
|
|
1
|
+
/*! UIkit 3.25.28 | 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,
|
|
@@ -1744,8 +1745,8 @@
|
|
|
1744
1745
|
stop() {
|
|
1745
1746
|
if (this.timer) {
|
|
1746
1747
|
clearInterval(this.timer);
|
|
1747
|
-
trigger(this.$el, "countdownstop");
|
|
1748
1748
|
this.timer = null;
|
|
1749
|
+
trigger(this.$el, "countdownstop");
|
|
1749
1750
|
}
|
|
1750
1751
|
},
|
|
1751
1752
|
update() {
|
|
@@ -1753,8 +1754,8 @@
|
|
|
1753
1754
|
if (!timespan.total) {
|
|
1754
1755
|
this.stop();
|
|
1755
1756
|
if (!this.end) {
|
|
1756
|
-
trigger(this.$el, "countdownend");
|
|
1757
1757
|
this.end = true;
|
|
1758
|
+
trigger(this.$el, "countdownend");
|
|
1758
1759
|
if (this.reload && this.started) {
|
|
1759
1760
|
window.location.reload();
|
|
1760
1761
|
}
|
|
@@ -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
|
|
3422
|
+
var VERSION = '3.25.28';
|
|
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(":", "/") :
|
|
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
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
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 (
|
|
6538
|
-
|
|
6539
|
-
return;
|
|
6526
|
+
if (!this.multiple) {
|
|
6527
|
+
files = files.slice(0, 1);
|
|
6540
6528
|
}
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
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
|
-
|
|
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 (
|
|
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
|
-
|
|
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
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
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();
|
|
@@ -7425,14 +7418,12 @@
|
|
|
7425
7418
|
return offsetViewport(overflowParents(target).find((parent2) => parent2.contains(el)));
|
|
7426
7419
|
}
|
|
7427
7420
|
function createToggleComponent(drop) {
|
|
7428
|
-
const
|
|
7421
|
+
const target = drop.$el;
|
|
7422
|
+
const el = query(drop.toggle, target);
|
|
7429
7423
|
if (el) {
|
|
7430
|
-
drop.$create("toggle", el, { target
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
dropEl.id = generateId(drop, dropEl);
|
|
7434
|
-
}
|
|
7435
|
-
attr(el, "aria-controls", dropEl.id);
|
|
7424
|
+
drop.$create("toggle", el, { target, mode: drop.mode });
|
|
7425
|
+
target.id = generateId(drop, target);
|
|
7426
|
+
attr(el, "aria-controls", target.id);
|
|
7436
7427
|
}
|
|
7437
7428
|
return el;
|
|
7438
7429
|
}
|
|
@@ -9310,7 +9301,6 @@
|
|
|
9310
9301
|
write({ active }) {
|
|
9311
9302
|
const { elements } = this;
|
|
9312
9303
|
const changed = active !== false && !hasClass(elements[active], this.cls);
|
|
9313
|
-
this.links.forEach((el) => el.blur());
|
|
9314
9304
|
for (let i = 0; i < elements.length; i++) {
|
|
9315
9305
|
toggleClass(elements[i], this.cls, +i === active);
|
|
9316
9306
|
}
|
|
@@ -9750,7 +9740,7 @@
|
|
|
9750
9740
|
const loadSVG = memoize(async (src) => {
|
|
9751
9741
|
if (src) {
|
|
9752
9742
|
const response = await fetch(src);
|
|
9753
|
-
if (response.headers.get("Content-Type")
|
|
9743
|
+
if (/^image\/svg\+xml\s*(;|$)/i.test(response.headers.get("Content-Type"))) {
|
|
9754
9744
|
return response.text();
|
|
9755
9745
|
}
|
|
9756
9746
|
}
|