uikit 3.25.28 → 3.25.29-dev.7b0f736
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 +7 -0
- package/build/ci-release.js +1 -4
- 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 +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +10 -9
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +12 -11
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +12 -11
- 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 +10 -9
- 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 +10 -9
- 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 +10 -9
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +10 -9
- 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 +2 -5
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +29 -29
- 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 +30 -33
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +1 -1
- package/src/js/api/computed.js +1 -1
- package/src/js/api/log.js +1 -1
- package/src/js/api/observables.js +5 -4
- package/src/js/api/observer.js +3 -4
- package/src/js/api/update.js +10 -9
- package/src/js/components/upload.js +1 -1
- package/src/js/core/drop.js +4 -4
- package/src/js/core/form-custom.js +3 -8
- package/src/js/core/toggle.js +0 -2
- package/src/js/mixin/modal.js +1 -1
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.29-dev.7b0f736 | 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() :
|
|
@@ -1912,22 +1912,23 @@
|
|
|
1912
1912
|
if (!instance._updates.length) {
|
|
1913
1913
|
return;
|
|
1914
1914
|
}
|
|
1915
|
-
if (!instance._updateCount) {
|
|
1916
|
-
instance._updateCount = 0;
|
|
1917
|
-
requestAnimationFrame(() => instance._updateCount = 0);
|
|
1918
|
-
}
|
|
1919
1915
|
if (!instance._queued) {
|
|
1920
1916
|
instance._queued = /* @__PURE__ */ new Set();
|
|
1921
1917
|
fastdom.read(() => {
|
|
1922
1918
|
if (instance._connected) {
|
|
1923
|
-
|
|
1919
|
+
if (!instance._updateCount) {
|
|
1920
|
+
instance._updateCount = 0;
|
|
1921
|
+
requestAnimationFrame(() => instance._updateCount = 0);
|
|
1922
|
+
}
|
|
1923
|
+
if (instance._updateCount < 10) {
|
|
1924
|
+
instance._updateCount++;
|
|
1925
|
+
runUpdates(instance, instance._queued);
|
|
1926
|
+
}
|
|
1924
1927
|
}
|
|
1925
1928
|
instance._queued = null;
|
|
1926
1929
|
});
|
|
1927
1930
|
}
|
|
1928
|
-
|
|
1929
|
-
instance._queued.add(e.type || e);
|
|
1930
|
-
}
|
|
1931
|
+
instance._queued.add(e.type || e);
|
|
1931
1932
|
}
|
|
1932
1933
|
function runUpdates(instance, types) {
|
|
1933
1934
|
for (const { read, write, events = [] } of instance._updates) {
|
|
@@ -2002,8 +2003,11 @@
|
|
|
2002
2003
|
const pos = getEventPos(e);
|
|
2003
2004
|
const target = "tagName" in e.target ? e.target : parent(e.target);
|
|
2004
2005
|
once(document, `${pointerUp$1} ${pointerCancel} scroll`, (e2) => {
|
|
2006
|
+
if (e2.type !== pointerUp$1 || !target) {
|
|
2007
|
+
return;
|
|
2008
|
+
}
|
|
2005
2009
|
const { x, y } = getEventPos(e2);
|
|
2006
|
-
if (
|
|
2010
|
+
if (x && Math.abs(pos.x - x) > 100 || y && Math.abs(pos.y - y) > 100) {
|
|
2007
2011
|
setTimeout(() => {
|
|
2008
2012
|
trigger(target, "swipe");
|
|
2009
2013
|
trigger(target, `swipe${swipeDirection(pos.x, pos.y, x, y)}`);
|
|
@@ -3065,13 +3069,13 @@
|
|
|
3065
3069
|
let rejectAnimation;
|
|
3066
3070
|
return new Promise(
|
|
3067
3071
|
(resolve, reject) => once(el, "show hide", () => {
|
|
3068
|
-
var _a, _b
|
|
3072
|
+
var _a, _b;
|
|
3069
3073
|
(_a = pendingReject.get(el)) == null ? void 0 : _a();
|
|
3070
3074
|
rejectAnimation = reject;
|
|
3071
3075
|
pendingReject.set(el, reject);
|
|
3072
3076
|
_toggle(el, show);
|
|
3073
3077
|
Promise.all(
|
|
3074
|
-
((
|
|
3078
|
+
(((_b = transitionElement == null ? void 0 : transitionElement.getAnimations) == null ? void 0 : _b.call(transitionElement)) || []).map(({ finished }) => finished)
|
|
3075
3079
|
).then(resolve, reject);
|
|
3076
3080
|
})
|
|
3077
3081
|
).then(() => {
|
|
@@ -3419,7 +3423,7 @@
|
|
|
3419
3423
|
return Math.atan2(Math.abs(pos2.y - pos1.y), Math.abs(pos2.x - pos1.x)) * 180 / Math.PI;
|
|
3420
3424
|
}
|
|
3421
3425
|
|
|
3422
|
-
var VERSION = '3.25.
|
|
3426
|
+
var VERSION = '3.25.29-dev.7b0f736';
|
|
3423
3427
|
|
|
3424
3428
|
function initWatches(instance) {
|
|
3425
3429
|
instance._watches = [];
|
|
@@ -3502,7 +3506,7 @@
|
|
|
3502
3506
|
});
|
|
3503
3507
|
}
|
|
3504
3508
|
function resetComputed(instance) {
|
|
3505
|
-
const values =
|
|
3509
|
+
const values = instance._computed;
|
|
3506
3510
|
instance._computed = {};
|
|
3507
3511
|
return values;
|
|
3508
3512
|
}
|
|
@@ -3538,16 +3542,15 @@
|
|
|
3538
3542
|
}
|
|
3539
3543
|
|
|
3540
3544
|
function initObservers(instance) {
|
|
3541
|
-
for (const observer of instance.$options.observe || []) {
|
|
3542
|
-
registerObservable(instance, observer);
|
|
3545
|
+
for (const [index, observer] of (instance.$options.observe || []).entries()) {
|
|
3546
|
+
registerObservable(instance, observer, `_observe${index}`);
|
|
3543
3547
|
}
|
|
3544
3548
|
}
|
|
3545
|
-
function registerObservable(instance, observable) {
|
|
3549
|
+
function registerObservable(instance, observable, key) {
|
|
3546
3550
|
let { observe, target = instance.$el, handler, options, filter, args } = observable;
|
|
3547
3551
|
if (filter && !filter.call(instance, instance)) {
|
|
3548
3552
|
return;
|
|
3549
3553
|
}
|
|
3550
|
-
const key = `_observe${instance._disconnect.length}`;
|
|
3551
3554
|
if (isFunction(target) && !hasOwn(instance, key)) {
|
|
3552
3555
|
registerComputed(instance, key, () => {
|
|
3553
3556
|
const targets2 = target.call(instance, instance);
|
|
@@ -3748,7 +3751,7 @@
|
|
|
3748
3751
|
const elementComponents = /* @__PURE__ */ new WeakMap();
|
|
3749
3752
|
const components$2 = {};
|
|
3750
3753
|
function component(name, options) {
|
|
3751
|
-
var _a
|
|
3754
|
+
var _a;
|
|
3752
3755
|
const id = PREFIX + hyphenate(name);
|
|
3753
3756
|
if (!options) {
|
|
3754
3757
|
if (!components$2[id].options) {
|
|
@@ -3758,10 +3761,10 @@
|
|
|
3758
3761
|
}
|
|
3759
3762
|
name = camelize(name);
|
|
3760
3763
|
App[name] = (element, data) => createComponent(name, element, data);
|
|
3761
|
-
const opt =
|
|
3764
|
+
const opt = options.options || { ...options };
|
|
3762
3765
|
opt.id = id;
|
|
3763
3766
|
opt.name = name;
|
|
3764
|
-
(
|
|
3767
|
+
(_a = opt.install) == null ? void 0 : _a.call(opt, App, opt, name);
|
|
3765
3768
|
if (App._initialized && !opt.functional) {
|
|
3766
3769
|
requestAnimationFrame(() => createComponent(name, `[${id}],[data-${id}]`));
|
|
3767
3770
|
}
|
|
@@ -6578,10 +6581,7 @@
|
|
|
6578
6581
|
function match$1(pattern, path) {
|
|
6579
6582
|
const expression = pattern.replace(
|
|
6580
6583
|
/\*\*|[.*+?^${}()|[\]\\]/g,
|
|
6581
|
-
(s) => {
|
|
6582
|
-
var _a;
|
|
6583
|
-
return (_a = { "**": ".*", "*": "[^/]+", "?": "[^/]", "|": "|" }[s]) != null ? _a : `\\${s}`;
|
|
6584
|
-
}
|
|
6584
|
+
(s) => ({ "**": ".*", "*": "[^/]+", "?": "[^/]", "|": "|" })[s] || `\\${s}`
|
|
6585
6585
|
);
|
|
6586
6586
|
return new RegExp(`^(?:${expression})$`, "i").test(path);
|
|
6587
6587
|
}
|
|
@@ -7163,11 +7163,10 @@
|
|
|
7163
7163
|
attr(this.targetEl, "aria-expanded", false);
|
|
7164
7164
|
this._style = pick(this.$el.style, ["width", "height"]);
|
|
7165
7165
|
},
|
|
7166
|
+
beforeDisconnect() {
|
|
7167
|
+
this.hide(false, false);
|
|
7168
|
+
},
|
|
7166
7169
|
disconnected() {
|
|
7167
|
-
if (this.isActive()) {
|
|
7168
|
-
this.hide(false);
|
|
7169
|
-
active = null;
|
|
7170
|
-
}
|
|
7171
7170
|
css(this.$el, this._style);
|
|
7172
7171
|
},
|
|
7173
7172
|
events: [
|
|
@@ -7793,15 +7792,14 @@
|
|
|
7793
7792
|
}
|
|
7794
7793
|
},
|
|
7795
7794
|
update() {
|
|
7796
|
-
var _a;
|
|
7795
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7797
7796
|
const { target, input } = this;
|
|
7798
7797
|
if (!target) {
|
|
7799
7798
|
return;
|
|
7800
7799
|
}
|
|
7801
|
-
let option;
|
|
7802
7800
|
const prop = isInput(target) ? "value" : "textContent";
|
|
7803
7801
|
const prev = target[prop];
|
|
7804
|
-
const value = ((_a = input.files) == null ? void 0 : _a[0]) ?
|
|
7802
|
+
const value = (_f = (_e = (_b = (_a = input.files) == null ? void 0 : _a[0]) == null ? void 0 : _b.name) != null ? _e : (_d = (_c = input.selectedOptions) == null ? void 0 : _c[0]) == null ? void 0 : _d.label) != null ? _f : input.value;
|
|
7805
7803
|
if (prev !== value) {
|
|
7806
7804
|
target[prop] = value;
|
|
7807
7805
|
}
|
|
@@ -10062,7 +10060,6 @@
|
|
|
10062
10060
|
{
|
|
10063
10061
|
name: "mediachange",
|
|
10064
10062
|
filter: ({ mode }) => includes(mode, "media"),
|
|
10065
|
-
el: ({ target }) => target,
|
|
10066
10063
|
handler(e, mediaObj) {
|
|
10067
10064
|
if (mediaObj.matches ^ this.isToggled(this.target)) {
|
|
10068
10065
|
this.toggle();
|