uikit 3.16.9 → 3.16.11-dev.23226dadb
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 +13 -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 +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +24 -28
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +85 -562
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +96 -574
- 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 +1 -1
- 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 +79 -72
- 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 +79 -72
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +14 -18
- 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 +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +256 -280
- 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 +381 -407
- package/dist/js/uikit.min.js +1 -1
- package/package.json +4 -4
- package/src/js/api/boot.js +1 -1
- package/src/js/api/computed.js +7 -1
- package/src/js/api/hooks.js +7 -4
- package/src/js/api/observer.js +43 -43
- package/src/js/api/options.js +1 -0
- package/src/js/api/update.js +15 -36
- package/src/js/api/watch.js +33 -20
- package/src/js/components/filter.js +23 -29
- package/src/js/components/lightbox.js +12 -14
- package/src/js/components/sortable.js +13 -19
- package/src/js/core/accordion.js +32 -45
- package/src/js/core/drop.js +1 -1
- package/src/js/core/dropnav.js +37 -43
- package/src/js/core/height-match.js +2 -8
- package/src/js/core/navbar.js +3 -12
- package/src/js/core/scrollspy-nav.js +10 -12
- package/src/js/core/scrollspy.js +10 -12
- package/src/js/core/switcher.js +30 -37
- package/src/js/{util → mixin/internal}/scroll.js +1 -5
- package/src/js/mixin/modal.js +1 -1
- package/src/js/mixin/slider-nav.js +80 -76
- package/src/js/mixin/slider.js +10 -8
- package/src/js/util/fastdom.js +2 -2
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.11-dev.23226dadb | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -959,8 +959,8 @@
|
|
|
959
959
|
const fastdom = {
|
|
960
960
|
reads: [],
|
|
961
961
|
writes: [],
|
|
962
|
-
read(task
|
|
963
|
-
this.reads
|
|
962
|
+
read(task) {
|
|
963
|
+
this.reads.push(task);
|
|
964
964
|
scheduleFlush();
|
|
965
965
|
return task;
|
|
966
966
|
},
|
|
@@ -1666,114 +1666,66 @@
|
|
|
1666
1666
|
wrapInner: wrapInner
|
|
1667
1667
|
});
|
|
1668
1668
|
|
|
1669
|
-
function
|
|
1670
|
-
|
|
1671
|
-
instance.
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
} else {
|
|
1676
|
-
for (const key in observer) {
|
|
1677
|
-
registerObservable(instance, observer[key], key);
|
|
1678
|
-
}
|
|
1669
|
+
function initComputed(instance) {
|
|
1670
|
+
const { computed } = instance.$options;
|
|
1671
|
+
instance._computed = {};
|
|
1672
|
+
if (computed) {
|
|
1673
|
+
for (const key in computed) {
|
|
1674
|
+
registerComputed(instance, key, computed[key]);
|
|
1679
1675
|
}
|
|
1680
1676
|
}
|
|
1681
1677
|
}
|
|
1682
|
-
function
|
|
1683
|
-
instance.
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
for (const observer of instance._observers) {
|
|
1687
|
-
observer == null ? void 0 : observer.disconnect();
|
|
1688
|
-
instance._observerUpdates.delete(observer);
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
function callObserverUpdates(instance) {
|
|
1692
|
-
for (const [observer, update] of instance._observerUpdates) {
|
|
1693
|
-
update(observer);
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
function registerObservable(instance, observable, key) {
|
|
1697
|
-
let {
|
|
1698
|
-
observe,
|
|
1699
|
-
target = instance.$el,
|
|
1700
|
-
handler,
|
|
1701
|
-
options,
|
|
1702
|
-
filter,
|
|
1703
|
-
args
|
|
1704
|
-
} = isPlainObject(observable) ? observable : { type: key, handler: observable };
|
|
1705
|
-
if (filter && !filter.call(instance, instance)) {
|
|
1706
|
-
return;
|
|
1707
|
-
}
|
|
1708
|
-
const targets = isFunction(target) ? target.call(instance, instance) : target;
|
|
1709
|
-
handler = isString(handler) ? instance[handler] : handler.bind(instance);
|
|
1710
|
-
if (isFunction(options)) {
|
|
1711
|
-
options = options.call(instance, instance);
|
|
1712
|
-
}
|
|
1713
|
-
const observer = observe(targets, handler, options, args);
|
|
1714
|
-
if (isFunction(target) && isArray(targets) && observer.unobserve) {
|
|
1715
|
-
instance._observerUpdates.set(observer, watchChange(instance, target, targets));
|
|
1716
|
-
}
|
|
1717
|
-
registerObserver(instance, observer);
|
|
1678
|
+
function resetComputed(instance) {
|
|
1679
|
+
const values = { ...instance._computed };
|
|
1680
|
+
instance._computed = {};
|
|
1681
|
+
return values;
|
|
1718
1682
|
}
|
|
1719
|
-
function
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1683
|
+
function registerComputed(instance, key, cb) {
|
|
1684
|
+
Object.defineProperty(instance, key, {
|
|
1685
|
+
enumerable: true,
|
|
1686
|
+
get() {
|
|
1687
|
+
const { _computed, $props, $el } = instance;
|
|
1688
|
+
if (!hasOwn(_computed, key)) {
|
|
1689
|
+
_computed[key] = (cb.get || cb).call(instance, $props, $el);
|
|
1690
|
+
}
|
|
1691
|
+
return _computed[key];
|
|
1692
|
+
},
|
|
1693
|
+
set(value) {
|
|
1694
|
+
const { _computed } = instance;
|
|
1695
|
+
_computed[key] = cb.set ? cb.set.call(instance, value) : value;
|
|
1696
|
+
if (isUndefined(_computed[key])) {
|
|
1697
|
+
delete _computed[key];
|
|
1698
|
+
}
|
|
1724
1699
|
}
|
|
1725
|
-
|
|
1726
|
-
newTargets.forEach((target) => !includes(targets, target) && observer.observe(target));
|
|
1727
|
-
targets.splice(0, targets.length, ...newTargets);
|
|
1728
|
-
};
|
|
1700
|
+
});
|
|
1729
1701
|
}
|
|
1730
1702
|
|
|
1731
|
-
function
|
|
1732
|
-
|
|
1733
|
-
return;
|
|
1734
|
-
}
|
|
1735
|
-
const initial = !hasOwn(instance, "_watch");
|
|
1736
|
-
instance._watch = fastdom.read(() => {
|
|
1737
|
-
if (instance._connected) {
|
|
1738
|
-
runWatches(instance, initial);
|
|
1739
|
-
}
|
|
1740
|
-
instance._watch = null;
|
|
1741
|
-
}, true);
|
|
1703
|
+
function initUpdates(instance) {
|
|
1704
|
+
instance._updates = [...instance.$options.update || []];
|
|
1742
1705
|
}
|
|
1743
|
-
function
|
|
1744
|
-
|
|
1745
|
-
instance._computed = {};
|
|
1746
|
-
for (const [key, { watch, immediate }] of Object.entries(instance.$options.computed || {})) {
|
|
1747
|
-
if (watch && (initial && immediate || hasOwn(values, key) && !isEqual(values[key], instance[key]))) {
|
|
1748
|
-
watch.call(instance, instance[key], initial ? void 0 : values[key]);
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
callObserverUpdates(instance);
|
|
1706
|
+
function prependUpdate(instance, update) {
|
|
1707
|
+
instance._updates.unshift(update);
|
|
1752
1708
|
}
|
|
1753
|
-
|
|
1754
1709
|
function callUpdate(instance, e = "update") {
|
|
1755
1710
|
if (!instance._connected) {
|
|
1756
1711
|
return;
|
|
1757
1712
|
}
|
|
1758
|
-
if (e === "update" || e === "resize") {
|
|
1759
|
-
callWatches(instance);
|
|
1760
|
-
}
|
|
1761
1713
|
if (!instance.$options.update) {
|
|
1762
1714
|
return;
|
|
1763
1715
|
}
|
|
1764
|
-
if (!instance.
|
|
1765
|
-
instance.
|
|
1716
|
+
if (!instance._queued) {
|
|
1717
|
+
instance._queued = /* @__PURE__ */ new Set();
|
|
1766
1718
|
fastdom.read(() => {
|
|
1767
1719
|
if (instance._connected) {
|
|
1768
|
-
runUpdates(instance, instance.
|
|
1720
|
+
runUpdates(instance, instance._queued);
|
|
1769
1721
|
}
|
|
1770
|
-
delete instance.
|
|
1722
|
+
delete instance._queued;
|
|
1771
1723
|
});
|
|
1772
1724
|
}
|
|
1773
|
-
instance.
|
|
1725
|
+
instance._queued.add(e.type || e);
|
|
1774
1726
|
}
|
|
1775
1727
|
function runUpdates(instance, types) {
|
|
1776
|
-
for (const { read, write, events = [] } of instance
|
|
1728
|
+
for (const { read, write, events = [] } of instance._updates) {
|
|
1777
1729
|
if (!types.has("update") && !events.some((type) => types.has(type))) {
|
|
1778
1730
|
continue;
|
|
1779
1731
|
}
|
|
@@ -1793,23 +1745,40 @@
|
|
|
1793
1745
|
}
|
|
1794
1746
|
}
|
|
1795
1747
|
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1748
|
+
|
|
1749
|
+
function initWatches(instance) {
|
|
1750
|
+
instance._watches = [];
|
|
1751
|
+
for (const watches of instance.$options.watch || []) {
|
|
1752
|
+
for (const [name, watch] of Object.entries(watches)) {
|
|
1753
|
+
registerWatch(instance, watch, name);
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
instance._initial = true;
|
|
1757
|
+
prependUpdate(instance, { read: () => callWatches(instance), events: ["resize"] });
|
|
1758
|
+
}
|
|
1759
|
+
function registerWatch(instance, watch, name) {
|
|
1760
|
+
instance._watches.push({
|
|
1761
|
+
name,
|
|
1762
|
+
...isPlainObject(watch) ? watch : { handler: watch }
|
|
1763
|
+
});
|
|
1764
|
+
if (watch.document) {
|
|
1765
|
+
instance._observeTarget = instance.$options.el.ownerDocumentocument;
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
function callWatches(instance) {
|
|
1769
|
+
if (!instance._connected) {
|
|
1799
1770
|
return;
|
|
1800
1771
|
}
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1772
|
+
runWatches(instance, instance._initial);
|
|
1773
|
+
instance._initial = false;
|
|
1774
|
+
}
|
|
1775
|
+
function runWatches(instance, initial) {
|
|
1776
|
+
const values = resetComputed(instance);
|
|
1777
|
+
for (const { name, handler, immediate = true } of instance._watches) {
|
|
1778
|
+
if (initial && immediate || hasOwn(values, name) && !isEqual(values[name], instance[name])) {
|
|
1779
|
+
handler.call(instance, instance[name], initial ? void 0 : values[name]);
|
|
1805
1780
|
}
|
|
1806
1781
|
}
|
|
1807
|
-
const observer = new MutationObserver(() => callWatches(instance));
|
|
1808
|
-
observer.observe(el, {
|
|
1809
|
-
childList: true,
|
|
1810
|
-
subtree: true
|
|
1811
|
-
});
|
|
1812
|
-
registerObserver(instance, observer);
|
|
1813
1782
|
}
|
|
1814
1783
|
|
|
1815
1784
|
function initEvents(instance) {
|
|
@@ -1849,8 +1818,74 @@
|
|
|
1849
1818
|
);
|
|
1850
1819
|
}
|
|
1851
1820
|
|
|
1821
|
+
function initObservers(instance) {
|
|
1822
|
+
instance._observers = [];
|
|
1823
|
+
for (const observer of instance.$options.observe || []) {
|
|
1824
|
+
if (hasOwn(observer, "handler")) {
|
|
1825
|
+
registerObservable(instance, observer);
|
|
1826
|
+
} else {
|
|
1827
|
+
for (const observable of observer) {
|
|
1828
|
+
registerObservable(instance, observable);
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
function registerObserver(instance, ...observer) {
|
|
1834
|
+
instance._observers.push(...observer);
|
|
1835
|
+
}
|
|
1836
|
+
function disconnectObservers(instance) {
|
|
1837
|
+
for (const observer of instance._observers) {
|
|
1838
|
+
observer.disconnect();
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
function registerObservable(instance, observable) {
|
|
1842
|
+
let { observe, target = instance.$el, handler, options, filter, args } = observable;
|
|
1843
|
+
if (filter && !filter.call(instance, instance)) {
|
|
1844
|
+
return;
|
|
1845
|
+
}
|
|
1846
|
+
const key = `_observe${instance._observers.length}`;
|
|
1847
|
+
if (isFunction(target) && !(key in instance)) {
|
|
1848
|
+
registerComputed(instance, key, () => target.call(instance, instance));
|
|
1849
|
+
}
|
|
1850
|
+
handler = isString(handler) ? instance[handler] : handler.bind(instance);
|
|
1851
|
+
if (isFunction(options)) {
|
|
1852
|
+
options = options.call(instance, instance);
|
|
1853
|
+
}
|
|
1854
|
+
const observer = observe(key in instance ? instance[key] : target, handler, options, args);
|
|
1855
|
+
if (isFunction(target) && isArray(instance[key]) && observer.unobserve) {
|
|
1856
|
+
registerWatch(
|
|
1857
|
+
instance,
|
|
1858
|
+
{
|
|
1859
|
+
handler(targets, prev) {
|
|
1860
|
+
for (const target2 of prev) {
|
|
1861
|
+
!includes(targets, target2) && observer.unobserve(target2);
|
|
1862
|
+
}
|
|
1863
|
+
for (const target2 of targets) {
|
|
1864
|
+
!includes(prev, target2) && observer.observe(target2);
|
|
1865
|
+
}
|
|
1866
|
+
},
|
|
1867
|
+
immediate: false
|
|
1868
|
+
},
|
|
1869
|
+
key
|
|
1870
|
+
);
|
|
1871
|
+
}
|
|
1872
|
+
registerObserver(instance, observer);
|
|
1873
|
+
}
|
|
1874
|
+
function initWatchObserver(instance) {
|
|
1875
|
+
let { el, computed } = instance.$options;
|
|
1876
|
+
if (!computed && !instance._watches) {
|
|
1877
|
+
return;
|
|
1878
|
+
}
|
|
1879
|
+
const observer = new MutationObserver(() => callWatches(instance));
|
|
1880
|
+
observer.observe(instance._observeTarget || el, {
|
|
1881
|
+
childList: true,
|
|
1882
|
+
subtree: true
|
|
1883
|
+
});
|
|
1884
|
+
registerObserver(instance, observer);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1852
1887
|
const strats = {};
|
|
1853
|
-
strats.events = strats.observe = strats.created = strats.beforeConnect = strats.connected = strats.beforeDisconnect = strats.disconnected = strats.destroy = concatStrat;
|
|
1888
|
+
strats.events = strats.watch = strats.observe = strats.created = strats.beforeConnect = strats.connected = strats.beforeDisconnect = strats.disconnected = strats.destroy = concatStrat;
|
|
1854
1889
|
strats.args = function(parentVal, childVal) {
|
|
1855
1890
|
return childVal !== false && concatStrat(childVal || parentVal);
|
|
1856
1891
|
};
|
|
@@ -2039,9 +2074,11 @@
|
|
|
2039
2074
|
callHook(instance, "beforeConnect");
|
|
2040
2075
|
instance._connected = true;
|
|
2041
2076
|
initEvents(instance);
|
|
2077
|
+
initUpdates(instance);
|
|
2078
|
+
initWatches(instance);
|
|
2042
2079
|
initObservers(instance);
|
|
2043
2080
|
initPropsObserver(instance);
|
|
2044
|
-
|
|
2081
|
+
initWatchObserver(instance);
|
|
2045
2082
|
callHook(instance, "connected");
|
|
2046
2083
|
callUpdate(instance);
|
|
2047
2084
|
}
|
|
@@ -2057,35 +2094,6 @@
|
|
|
2057
2094
|
delete instance._watch;
|
|
2058
2095
|
}
|
|
2059
2096
|
|
|
2060
|
-
function initComputed(instance) {
|
|
2061
|
-
const { computed } = instance.$options;
|
|
2062
|
-
instance._computed = {};
|
|
2063
|
-
if (computed) {
|
|
2064
|
-
for (const key in computed) {
|
|
2065
|
-
registerComputed(instance, key, computed[key]);
|
|
2066
|
-
}
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
function registerComputed(instance, key, cb) {
|
|
2070
|
-
Object.defineProperty(instance, key, {
|
|
2071
|
-
enumerable: true,
|
|
2072
|
-
get() {
|
|
2073
|
-
const { _computed, $props, $el } = instance;
|
|
2074
|
-
if (!hasOwn(_computed, key)) {
|
|
2075
|
-
_computed[key] = (cb.get || cb).call(instance, $props, $el);
|
|
2076
|
-
}
|
|
2077
|
-
return _computed[key];
|
|
2078
|
-
},
|
|
2079
|
-
set(value) {
|
|
2080
|
-
const { _computed } = instance;
|
|
2081
|
-
_computed[key] = cb.set ? cb.set.call(instance, value) : value;
|
|
2082
|
-
if (isUndefined(_computed[key])) {
|
|
2083
|
-
delete _computed[key];
|
|
2084
|
-
}
|
|
2085
|
-
}
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
2097
|
let uid = 0;
|
|
2090
2098
|
function init$1(instance, options = {}) {
|
|
2091
2099
|
options.data = normalizeData(options, instance.constructor.options);
|
|
@@ -2140,7 +2148,7 @@
|
|
|
2140
2148
|
};
|
|
2141
2149
|
App.util = util;
|
|
2142
2150
|
App.options = {};
|
|
2143
|
-
App.version = "3.16.
|
|
2151
|
+
App.version = "3.16.11-dev.23226dadb";
|
|
2144
2152
|
|
|
2145
2153
|
const PREFIX = "uk-";
|
|
2146
2154
|
const DATA = "__uikit__";
|
|
@@ -2312,7 +2320,7 @@
|
|
|
2312
2320
|
|
|
2313
2321
|
function boot(App) {
|
|
2314
2322
|
if (inBrowser && window.MutationObserver) {
|
|
2315
|
-
if (document.
|
|
2323
|
+
if (document.body) {
|
|
2316
2324
|
requestAnimationFrame(() => init(App));
|
|
2317
2325
|
} else {
|
|
2318
2326
|
new MutationObserver((records, observer) => {
|
|
@@ -2686,52 +2694,41 @@
|
|
|
2686
2694
|
offset: 0
|
|
2687
2695
|
},
|
|
2688
2696
|
computed: {
|
|
2689
|
-
items
|
|
2690
|
-
|
|
2691
|
-
return $$(targets, $el);
|
|
2692
|
-
},
|
|
2693
|
-
watch(items, prev) {
|
|
2694
|
-
if (prev || hasClass(items, this.clsOpen)) {
|
|
2695
|
-
return;
|
|
2696
|
-
}
|
|
2697
|
-
const active = this.active !== false && items[Number(this.active)] || !this.collapsible && items[0];
|
|
2698
|
-
if (active) {
|
|
2699
|
-
this.toggle(active, false);
|
|
2700
|
-
}
|
|
2701
|
-
},
|
|
2702
|
-
immediate: true
|
|
2697
|
+
items({ targets }, $el) {
|
|
2698
|
+
return $$(targets, $el);
|
|
2703
2699
|
},
|
|
2704
|
-
toggles
|
|
2705
|
-
|
|
2706
|
-
return this.items.map((item) => $(toggle, item));
|
|
2707
|
-
},
|
|
2708
|
-
watch() {
|
|
2709
|
-
this.$emit();
|
|
2710
|
-
},
|
|
2711
|
-
immediate: true
|
|
2700
|
+
toggles({ toggle }) {
|
|
2701
|
+
return this.items.map((item) => $(toggle, item));
|
|
2712
2702
|
},
|
|
2713
|
-
contents
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2703
|
+
contents({ content }) {
|
|
2704
|
+
return this.items.map((item) => {
|
|
2705
|
+
var _a;
|
|
2706
|
+
return ((_a = item._wrapper) == null ? void 0 : _a.firstElementChild) || $(content, item);
|
|
2707
|
+
});
|
|
2708
|
+
}
|
|
2709
|
+
},
|
|
2710
|
+
watch: {
|
|
2711
|
+
items(items, prev) {
|
|
2712
|
+
if (prev || hasClass(items, this.clsOpen)) {
|
|
2713
|
+
return;
|
|
2714
|
+
}
|
|
2715
|
+
const active = this.active !== false && items[Number(this.active)] || !this.collapsible && items[0];
|
|
2716
|
+
if (active) {
|
|
2717
|
+
this.toggle(active, false);
|
|
2718
|
+
}
|
|
2719
|
+
},
|
|
2720
|
+
toggles() {
|
|
2721
|
+
this.$emit();
|
|
2722
|
+
},
|
|
2723
|
+
contents(items) {
|
|
2724
|
+
for (const el of items) {
|
|
2725
|
+
const isOpen = hasClass(
|
|
2726
|
+
this.items.find((item) => within(el, item)),
|
|
2727
|
+
this.clsOpen
|
|
2720
2728
|
);
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
hide(
|
|
2725
|
-
el,
|
|
2726
|
-
!hasClass(
|
|
2727
|
-
this.items.find((item) => within(el, item)),
|
|
2728
|
-
this.clsOpen
|
|
2729
|
-
)
|
|
2730
|
-
);
|
|
2731
|
-
}
|
|
2732
|
-
this.$emit();
|
|
2733
|
-
},
|
|
2734
|
-
immediate: true
|
|
2729
|
+
hide(el, !isOpen);
|
|
2730
|
+
}
|
|
2731
|
+
this.$emit();
|
|
2735
2732
|
}
|
|
2736
2733
|
},
|
|
2737
2734
|
observe: lazyload(),
|
|
@@ -3540,15 +3537,36 @@
|
|
|
3540
3537
|
dropbarAnchor({ dropbarAnchor }, $el) {
|
|
3541
3538
|
return query(dropbarAnchor, $el) || $el;
|
|
3542
3539
|
},
|
|
3543
|
-
dropbar
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3540
|
+
dropbar({ dropbar }) {
|
|
3541
|
+
if (!dropbar) {
|
|
3542
|
+
return null;
|
|
3543
|
+
}
|
|
3544
|
+
dropbar = this._dropbar || query(dropbar, this.$el) || $(`+ .${this.clsDropbar}`, this.$el);
|
|
3545
|
+
return dropbar ? dropbar : this._dropbar = $("<div></div>");
|
|
3546
|
+
},
|
|
3547
|
+
dropContainer(_, $el) {
|
|
3548
|
+
return this.container || $el;
|
|
3549
|
+
},
|
|
3550
|
+
dropdowns({ clsDrop }, $el) {
|
|
3551
|
+
var _a;
|
|
3552
|
+
const dropdowns = $$(`.${clsDrop}`, $el);
|
|
3553
|
+
if (this.dropContainer !== $el) {
|
|
3554
|
+
for (const el of $$(`.${clsDrop}`, this.dropContainer)) {
|
|
3555
|
+
const target = (_a = this.getDropdown(el)) == null ? void 0 : _a.targetEl;
|
|
3556
|
+
if (!includes(dropdowns, el) && target && within(target, this.$el)) {
|
|
3557
|
+
dropdowns.push(el);
|
|
3558
|
+
}
|
|
3547
3559
|
}
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3560
|
+
}
|
|
3561
|
+
return dropdowns;
|
|
3562
|
+
},
|
|
3563
|
+
items({ selNavItem }, $el) {
|
|
3564
|
+
return $$(selNavItem, $el);
|
|
3565
|
+
}
|
|
3566
|
+
},
|
|
3567
|
+
watch: {
|
|
3568
|
+
dropbar: {
|
|
3569
|
+
handler(dropbar) {
|
|
3552
3570
|
addClass(
|
|
3553
3571
|
dropbar,
|
|
3554
3572
|
"uk-dropbar",
|
|
@@ -3559,24 +3577,8 @@
|
|
|
3559
3577
|
},
|
|
3560
3578
|
immediate: true
|
|
3561
3579
|
},
|
|
3562
|
-
dropContainer(_, $el) {
|
|
3563
|
-
return this.container || $el;
|
|
3564
|
-
},
|
|
3565
3580
|
dropdowns: {
|
|
3566
|
-
|
|
3567
|
-
var _a;
|
|
3568
|
-
const dropdowns = $$(`.${clsDrop}`, $el);
|
|
3569
|
-
if (this.dropContainer !== $el) {
|
|
3570
|
-
for (const el of $$(`.${clsDrop}`, this.dropContainer)) {
|
|
3571
|
-
const target = (_a = this.getDropdown(el)) == null ? void 0 : _a.targetEl;
|
|
3572
|
-
if (!includes(dropdowns, el) && target && within(target, this.$el)) {
|
|
3573
|
-
dropdowns.push(el);
|
|
3574
|
-
}
|
|
3575
|
-
}
|
|
3576
|
-
}
|
|
3577
|
-
return dropdowns;
|
|
3578
|
-
},
|
|
3579
|
-
watch(dropdowns) {
|
|
3581
|
+
handler(dropdowns) {
|
|
3580
3582
|
this.$create(
|
|
3581
3583
|
"drop",
|
|
3582
3584
|
dropdowns.filter((el) => !this.getDropdown(el)),
|
|
@@ -3592,20 +3594,13 @@
|
|
|
3592
3594
|
immediate: true
|
|
3593
3595
|
},
|
|
3594
3596
|
items: {
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
},
|
|
3598
|
-
watch(items) {
|
|
3599
|
-
attr(children(this.$el), "role", "presentation");
|
|
3600
|
-
attr(items, { tabindex: -1, role: "menuitem" });
|
|
3597
|
+
handler(items) {
|
|
3598
|
+
attr(items, "tabindex", -1);
|
|
3601
3599
|
attr(items[0], "tabindex", 0);
|
|
3602
3600
|
},
|
|
3603
3601
|
immediate: true
|
|
3604
3602
|
}
|
|
3605
3603
|
},
|
|
3606
|
-
connected() {
|
|
3607
|
-
attr(this.$el, "role", "menubar");
|
|
3608
|
-
},
|
|
3609
3604
|
disconnected() {
|
|
3610
3605
|
remove$1(this._dropbar);
|
|
3611
3606
|
delete this._dropbar;
|
|
@@ -4117,13 +4112,8 @@
|
|
|
4117
4112
|
row: true
|
|
4118
4113
|
},
|
|
4119
4114
|
computed: {
|
|
4120
|
-
elements
|
|
4121
|
-
|
|
4122
|
-
return $$(target, $el);
|
|
4123
|
-
},
|
|
4124
|
-
watch() {
|
|
4125
|
-
this.$reset();
|
|
4126
|
-
}
|
|
4115
|
+
elements({ target }, $el) {
|
|
4116
|
+
return $$(target, $el);
|
|
4127
4117
|
}
|
|
4128
4118
|
},
|
|
4129
4119
|
observe: resize({
|
|
@@ -5147,12 +5137,9 @@
|
|
|
5147
5137
|
selNavItem: ".uk-navbar-nav > li > a,a.uk-navbar-item,button.uk-navbar-item,.uk-navbar-item a,.uk-navbar-item button,.uk-navbar-toggle"
|
|
5148
5138
|
// Simplify with :where() selector once browser target is Safari 14+
|
|
5149
5139
|
},
|
|
5150
|
-
|
|
5140
|
+
watch: {
|
|
5151
5141
|
items: {
|
|
5152
|
-
|
|
5153
|
-
return $$(selNavItem, $el);
|
|
5154
|
-
},
|
|
5155
|
-
watch(items) {
|
|
5142
|
+
handler() {
|
|
5156
5143
|
const justify = hasClass(this.$el, "uk-navbar-justify");
|
|
5157
5144
|
for (const container of $$(
|
|
5158
5145
|
".uk-navbar-nav, .uk-navbar-left, .uk-navbar-right",
|
|
@@ -5167,10 +5154,6 @@
|
|
|
5167
5154
|
).length : ""
|
|
5168
5155
|
);
|
|
5169
5156
|
}
|
|
5170
|
-
attr($$(".uk-navbar-nav", this.$el), "role", "group");
|
|
5171
|
-
attr($$(".uk-navbar-nav > *", this.$el), "role", "presentation");
|
|
5172
|
-
attr(items, { tabindex: -1, role: "menuitem" });
|
|
5173
|
-
attr(items[0], "tabindex", 0);
|
|
5174
5157
|
},
|
|
5175
5158
|
immediate: true
|
|
5176
5159
|
}
|
|
@@ -5450,16 +5433,15 @@
|
|
|
5450
5433
|
inViewClass: "uk-scrollspy-inview"
|
|
5451
5434
|
}),
|
|
5452
5435
|
computed: {
|
|
5453
|
-
elements
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
}
|
|
5461
|
-
}
|
|
5462
|
-
immediate: true
|
|
5436
|
+
elements({ target }, $el) {
|
|
5437
|
+
return target ? $$(target, $el) : [$el];
|
|
5438
|
+
}
|
|
5439
|
+
},
|
|
5440
|
+
watch: {
|
|
5441
|
+
elements(elements) {
|
|
5442
|
+
if (this.hidden) {
|
|
5443
|
+
css(filter$1(elements, `:not(.${this.inViewClass})`), "opacity", 0);
|
|
5444
|
+
}
|
|
5463
5445
|
}
|
|
5464
5446
|
},
|
|
5465
5447
|
connected() {
|
|
@@ -5553,21 +5535,20 @@
|
|
|
5553
5535
|
offset: 0
|
|
5554
5536
|
},
|
|
5555
5537
|
computed: {
|
|
5556
|
-
links
|
|
5557
|
-
|
|
5558
|
-
return $$('a[href*="#"]', $el).filter((el) => el.hash && isSameSiteAnchor(el));
|
|
5559
|
-
},
|
|
5560
|
-
watch(links) {
|
|
5561
|
-
if (this.scroll) {
|
|
5562
|
-
this.$create("scroll", links, { offset: this.offset || 0 });
|
|
5563
|
-
}
|
|
5564
|
-
},
|
|
5565
|
-
immediate: true
|
|
5538
|
+
links(_, $el) {
|
|
5539
|
+
return $$('a[href*="#"]', $el).filter((el) => el.hash && isSameSiteAnchor(el));
|
|
5566
5540
|
},
|
|
5567
5541
|
elements({ closest: selector }) {
|
|
5568
5542
|
return closest(this.links, selector || "*");
|
|
5569
5543
|
}
|
|
5570
5544
|
},
|
|
5545
|
+
watch: {
|
|
5546
|
+
links(links) {
|
|
5547
|
+
if (this.scroll) {
|
|
5548
|
+
this.$create("scroll", links, { offset: this.offset || 0 });
|
|
5549
|
+
}
|
|
5550
|
+
}
|
|
5551
|
+
},
|
|
5571
5552
|
observe: scroll$1(),
|
|
5572
5553
|
update: [
|
|
5573
5554
|
{
|
|
@@ -5990,47 +5971,42 @@
|
|
|
5990
5971
|
swiping: true
|
|
5991
5972
|
},
|
|
5992
5973
|
computed: {
|
|
5974
|
+
connects({ connect }, $el) {
|
|
5975
|
+
return queryAll(connect, $el);
|
|
5976
|
+
},
|
|
5977
|
+
connectChildren() {
|
|
5978
|
+
return this.connects.map((el) => children(el)).flat();
|
|
5979
|
+
},
|
|
5980
|
+
toggles({ toggle }, $el) {
|
|
5981
|
+
return $$(toggle, $el);
|
|
5982
|
+
},
|
|
5983
|
+
children() {
|
|
5984
|
+
return children(this.$el).filter(
|
|
5985
|
+
(child) => this.toggles.some((toggle) => within(toggle, child))
|
|
5986
|
+
);
|
|
5987
|
+
}
|
|
5988
|
+
},
|
|
5989
|
+
watch: {
|
|
5993
5990
|
connects: {
|
|
5994
|
-
|
|
5995
|
-
return queryAll(connect, $el);
|
|
5996
|
-
},
|
|
5997
|
-
watch(connects) {
|
|
5991
|
+
handler(connects) {
|
|
5998
5992
|
if (this.swiping) {
|
|
5999
5993
|
css(connects, "touchAction", "pan-y pinch-zoom");
|
|
6000
5994
|
}
|
|
6001
5995
|
this.$emit();
|
|
6002
5996
|
},
|
|
6003
|
-
document: true
|
|
6004
|
-
immediate: true
|
|
6005
|
-
},
|
|
6006
|
-
connectChildren: {
|
|
6007
|
-
get() {
|
|
6008
|
-
return this.connects.map((el) => children(el)).flat();
|
|
6009
|
-
},
|
|
6010
|
-
watch() {
|
|
6011
|
-
const index = this.index();
|
|
6012
|
-
for (const el of this.connects) {
|
|
6013
|
-
children(el).forEach((child, i) => toggleClass(child, this.cls, i === index));
|
|
6014
|
-
}
|
|
6015
|
-
this.$emit();
|
|
6016
|
-
},
|
|
6017
|
-
immediate: true
|
|
5997
|
+
document: true
|
|
6018
5998
|
},
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
const active = this.index();
|
|
6026
|
-
this.show(~active ? active : toggles[this.active] || toggles[0]);
|
|
6027
|
-
},
|
|
6028
|
-
immediate: true
|
|
5999
|
+
connectChildren() {
|
|
6000
|
+
const index = this.index();
|
|
6001
|
+
for (const el of this.connects) {
|
|
6002
|
+
children(el).forEach((child, i) => toggleClass(child, this.cls, i === index));
|
|
6003
|
+
}
|
|
6004
|
+
this.$emit();
|
|
6029
6005
|
},
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
);
|
|
6006
|
+
toggles(toggles) {
|
|
6007
|
+
this.$emit();
|
|
6008
|
+
const active = this.index();
|
|
6009
|
+
this.show(~active ? active : toggles[this.active] || toggles[0]);
|
|
6034
6010
|
}
|
|
6035
6011
|
},
|
|
6036
6012
|
connected() {
|
|
@@ -6679,35 +6655,31 @@
|
|
|
6679
6655
|
duration: 250
|
|
6680
6656
|
},
|
|
6681
6657
|
computed: {
|
|
6682
|
-
toggles
|
|
6683
|
-
|
|
6684
|
-
return $$(`[${attrItem}],[data-${attrItem}]`, $el);
|
|
6685
|
-
},
|
|
6686
|
-
watch(toggles) {
|
|
6687
|
-
this.updateState();
|
|
6688
|
-
const actives = $$(this.selActive, this.$el);
|
|
6689
|
-
for (const toggle of toggles) {
|
|
6690
|
-
if (this.selActive !== false) {
|
|
6691
|
-
toggleClass(toggle, this.cls, includes(actives, toggle));
|
|
6692
|
-
}
|
|
6693
|
-
const button = findButton(toggle);
|
|
6694
|
-
if (isTag(button, "a")) {
|
|
6695
|
-
attr(button, "role", "button");
|
|
6696
|
-
}
|
|
6697
|
-
}
|
|
6698
|
-
},
|
|
6699
|
-
immediate: true
|
|
6658
|
+
toggles({ attrItem }, $el) {
|
|
6659
|
+
return $$(`[${attrItem}],[data-${attrItem}]`, $el);
|
|
6700
6660
|
},
|
|
6701
|
-
children
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6661
|
+
children({ target }, $el) {
|
|
6662
|
+
return $$(`${target} > *`, $el);
|
|
6663
|
+
}
|
|
6664
|
+
},
|
|
6665
|
+
watch: {
|
|
6666
|
+
toggles(toggles) {
|
|
6667
|
+
this.updateState();
|
|
6668
|
+
const actives = $$(this.selActive, this.$el);
|
|
6669
|
+
for (const toggle of toggles) {
|
|
6670
|
+
if (this.selActive !== false) {
|
|
6671
|
+
toggleClass(toggle, this.cls, includes(actives, toggle));
|
|
6708
6672
|
}
|
|
6709
|
-
|
|
6710
|
-
|
|
6673
|
+
const button = findButton(toggle);
|
|
6674
|
+
if (isTag(button, "a")) {
|
|
6675
|
+
attr(button, "role", "button");
|
|
6676
|
+
}
|
|
6677
|
+
}
|
|
6678
|
+
},
|
|
6679
|
+
children(list, prev) {
|
|
6680
|
+
if (prev) {
|
|
6681
|
+
this.updateState();
|
|
6682
|
+
}
|
|
6711
6683
|
}
|
|
6712
6684
|
},
|
|
6713
6685
|
events: {
|
|
@@ -6943,28 +6915,81 @@
|
|
|
6943
6915
|
role: "region"
|
|
6944
6916
|
},
|
|
6945
6917
|
computed: {
|
|
6946
|
-
nav
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
attr(nav, "role", "tablist");
|
|
6952
|
-
if (prev) {
|
|
6953
|
-
this.$emit();
|
|
6954
|
-
}
|
|
6955
|
-
},
|
|
6956
|
-
immediate: true
|
|
6918
|
+
nav({ selNav }, $el) {
|
|
6919
|
+
return $(selNav, $el);
|
|
6920
|
+
},
|
|
6921
|
+
navChildren() {
|
|
6922
|
+
return children(this.nav);
|
|
6957
6923
|
},
|
|
6958
6924
|
selNavItem({ attrItem }) {
|
|
6959
6925
|
return `[${attrItem}],[data-${attrItem}]`;
|
|
6960
6926
|
},
|
|
6961
|
-
navItems
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6927
|
+
navItems(_, $el) {
|
|
6928
|
+
return $$(this.selNavItem, $el);
|
|
6929
|
+
}
|
|
6930
|
+
},
|
|
6931
|
+
watch: {
|
|
6932
|
+
nav(nav, prev) {
|
|
6933
|
+
attr(nav, "role", "tablist");
|
|
6934
|
+
if (prev) {
|
|
6966
6935
|
this.$emit();
|
|
6967
6936
|
}
|
|
6937
|
+
},
|
|
6938
|
+
list(list) {
|
|
6939
|
+
attr(list, "role", "presentation");
|
|
6940
|
+
},
|
|
6941
|
+
navChildren(children2) {
|
|
6942
|
+
attr(children2, "role", "presentation");
|
|
6943
|
+
},
|
|
6944
|
+
navItems(items) {
|
|
6945
|
+
for (const el of items) {
|
|
6946
|
+
const cmd = data(el, this.attrItem);
|
|
6947
|
+
const button = $("a,button", el) || el;
|
|
6948
|
+
let ariaLabel;
|
|
6949
|
+
let ariaControls = null;
|
|
6950
|
+
if (isNumeric(cmd)) {
|
|
6951
|
+
const item = toNumber(cmd);
|
|
6952
|
+
const slide = this.slides[item];
|
|
6953
|
+
if (slide) {
|
|
6954
|
+
if (!slide.id) {
|
|
6955
|
+
slide.id = generateId(this, slide, `-item-${cmd}`);
|
|
6956
|
+
}
|
|
6957
|
+
ariaControls = slide.id;
|
|
6958
|
+
}
|
|
6959
|
+
ariaLabel = this.t("slideX", toFloat(cmd) + 1);
|
|
6960
|
+
attr(button, "role", "tab");
|
|
6961
|
+
} else {
|
|
6962
|
+
if (this.list) {
|
|
6963
|
+
if (!this.list.id) {
|
|
6964
|
+
this.list.id = generateId(this, this.list, "-items");
|
|
6965
|
+
}
|
|
6966
|
+
ariaControls = this.list.id;
|
|
6967
|
+
}
|
|
6968
|
+
ariaLabel = this.t(cmd);
|
|
6969
|
+
}
|
|
6970
|
+
attr(button, {
|
|
6971
|
+
"aria-controls": ariaControls,
|
|
6972
|
+
"aria-label": attr(button, "aria-label") || ariaLabel
|
|
6973
|
+
});
|
|
6974
|
+
}
|
|
6975
|
+
},
|
|
6976
|
+
slides(slides) {
|
|
6977
|
+
slides.forEach(
|
|
6978
|
+
(slide, i) => attr(slide, {
|
|
6979
|
+
role: this.nav ? "tabpanel" : "group",
|
|
6980
|
+
"aria-label": this.t("slideLabel", i + 1, this.length),
|
|
6981
|
+
"aria-roledescription": this.nav ? null : "slide"
|
|
6982
|
+
})
|
|
6983
|
+
);
|
|
6984
|
+
},
|
|
6985
|
+
length(length) {
|
|
6986
|
+
const navLength = this.navChildren.length;
|
|
6987
|
+
if (this.nav && length !== navLength) {
|
|
6988
|
+
empty(this.nav);
|
|
6989
|
+
for (let i = 0; i < length; i++) {
|
|
6990
|
+
append(this.nav, `<li ${this.attrItem}="${i}"><a href></a></li>`);
|
|
6991
|
+
}
|
|
6992
|
+
}
|
|
6968
6993
|
}
|
|
6969
6994
|
},
|
|
6970
6995
|
connected() {
|
|
@@ -6974,54 +6999,6 @@
|
|
|
6974
6999
|
});
|
|
6975
7000
|
},
|
|
6976
7001
|
update: [
|
|
6977
|
-
{
|
|
6978
|
-
write() {
|
|
6979
|
-
this.slides.forEach(
|
|
6980
|
-
(slide, i) => attr(slide, {
|
|
6981
|
-
role: this.nav ? "tabpanel" : "group",
|
|
6982
|
-
"aria-label": this.t("slideLabel", i + 1, this.length),
|
|
6983
|
-
"aria-roledescription": this.nav ? null : "slide"
|
|
6984
|
-
})
|
|
6985
|
-
);
|
|
6986
|
-
if (this.nav && this.length !== this.nav.children.length) {
|
|
6987
|
-
html(
|
|
6988
|
-
this.nav,
|
|
6989
|
-
this.slides.map((_, i) => `<li ${this.attrItem}="${i}"><a href></a></li>`).join("")
|
|
6990
|
-
);
|
|
6991
|
-
}
|
|
6992
|
-
attr(children(this.nav).concat(this.list), "role", "presentation");
|
|
6993
|
-
for (const el of this.navItems) {
|
|
6994
|
-
const cmd = data(el, this.attrItem);
|
|
6995
|
-
const button = $("a,button", el) || el;
|
|
6996
|
-
let ariaLabel;
|
|
6997
|
-
let ariaControls = null;
|
|
6998
|
-
if (isNumeric(cmd)) {
|
|
6999
|
-
const item = toNumber(cmd);
|
|
7000
|
-
const slide = this.slides[item];
|
|
7001
|
-
if (slide) {
|
|
7002
|
-
if (!slide.id) {
|
|
7003
|
-
slide.id = generateId(this, slide, `-item-${cmd}`);
|
|
7004
|
-
}
|
|
7005
|
-
ariaControls = slide.id;
|
|
7006
|
-
}
|
|
7007
|
-
ariaLabel = this.t("slideX", toFloat(cmd) + 1);
|
|
7008
|
-
attr(button, "role", "tab");
|
|
7009
|
-
} else {
|
|
7010
|
-
if (this.list) {
|
|
7011
|
-
if (!this.list.id) {
|
|
7012
|
-
this.list.id = generateId(this, this.list, "-items");
|
|
7013
|
-
}
|
|
7014
|
-
ariaControls = this.list.id;
|
|
7015
|
-
}
|
|
7016
|
-
ariaLabel = this.t(cmd);
|
|
7017
|
-
}
|
|
7018
|
-
attr(button, {
|
|
7019
|
-
"aria-controls": ariaControls,
|
|
7020
|
-
"aria-label": attr(button, "aria-label") || ariaLabel
|
|
7021
|
-
});
|
|
7022
|
-
}
|
|
7023
|
-
}
|
|
7024
|
-
},
|
|
7025
7002
|
{
|
|
7026
7003
|
write() {
|
|
7027
7004
|
this.navItems.concat(this.nav).forEach((el) => el && (el.hidden = !this.maxIndex));
|
|
@@ -7346,18 +7323,20 @@
|
|
|
7346
7323
|
maxIndex() {
|
|
7347
7324
|
return this.length - 1;
|
|
7348
7325
|
},
|
|
7349
|
-
slides
|
|
7350
|
-
|
|
7351
|
-
return children(this.list);
|
|
7352
|
-
},
|
|
7353
|
-
watch() {
|
|
7354
|
-
this.$emit();
|
|
7355
|
-
}
|
|
7326
|
+
slides() {
|
|
7327
|
+
return children(this.list);
|
|
7356
7328
|
},
|
|
7357
7329
|
length() {
|
|
7358
7330
|
return this.slides.length;
|
|
7359
7331
|
}
|
|
7360
7332
|
},
|
|
7333
|
+
watch: {
|
|
7334
|
+
slides(slides, prev) {
|
|
7335
|
+
if (prev) {
|
|
7336
|
+
this.$emit();
|
|
7337
|
+
}
|
|
7338
|
+
}
|
|
7339
|
+
},
|
|
7361
7340
|
observe: resize(),
|
|
7362
7341
|
methods: {
|
|
7363
7342
|
show(index, force = false) {
|
|
@@ -7741,19 +7720,18 @@
|
|
|
7741
7720
|
props: { toggle: String },
|
|
7742
7721
|
data: { toggle: "a" },
|
|
7743
7722
|
computed: {
|
|
7744
|
-
toggles
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7723
|
+
toggles({ toggle }, $el) {
|
|
7724
|
+
return $$(toggle, $el);
|
|
7725
|
+
}
|
|
7726
|
+
},
|
|
7727
|
+
watch: {
|
|
7728
|
+
toggles(toggles) {
|
|
7729
|
+
this.hide();
|
|
7730
|
+
for (const toggle of toggles) {
|
|
7731
|
+
if (isTag(toggle, "a")) {
|
|
7732
|
+
attr(toggle, "role", "button");
|
|
7754
7733
|
}
|
|
7755
|
-
}
|
|
7756
|
-
immediate: true
|
|
7734
|
+
}
|
|
7757
7735
|
}
|
|
7758
7736
|
},
|
|
7759
7737
|
disconnected() {
|
|
@@ -8887,24 +8865,20 @@
|
|
|
8887
8865
|
items() {
|
|
8888
8866
|
return children(this.target);
|
|
8889
8867
|
},
|
|
8890
|
-
isEmpty
|
|
8891
|
-
|
|
8892
|
-
return isEmpty(this.items);
|
|
8893
|
-
},
|
|
8894
|
-
watch(empty) {
|
|
8895
|
-
toggleClass(this.target, this.clsEmpty, empty);
|
|
8896
|
-
},
|
|
8897
|
-
immediate: true
|
|
8868
|
+
isEmpty() {
|
|
8869
|
+
return isEmpty(this.items);
|
|
8898
8870
|
},
|
|
8899
|
-
handles
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8871
|
+
handles({ handle }, el) {
|
|
8872
|
+
return handle ? $$(handle, el) : this.items;
|
|
8873
|
+
}
|
|
8874
|
+
},
|
|
8875
|
+
watch: {
|
|
8876
|
+
isEmpty(empty) {
|
|
8877
|
+
toggleClass(this.target, this.clsEmpty, empty);
|
|
8878
|
+
},
|
|
8879
|
+
handles(handles, prev) {
|
|
8880
|
+
css(prev, { touchAction: "", userSelect: "" });
|
|
8881
|
+
css(handles, { touchAction: hasTouch ? "none" : "", userSelect: "none" });
|
|
8908
8882
|
}
|
|
8909
8883
|
},
|
|
8910
8884
|
update: {
|