uikit 3.22.0 → 3.22.2
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 +12 -0
- package/dist/css/uikit-core-rtl.css +66 -92
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +66 -92
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +66 -92
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +66 -92
- 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 +2 -2
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +10 -10
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +11 -11
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +2 -2
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +10 -10
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +10 -10
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +13 -13
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +10 -10
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +17 -17
- 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 +5 -5
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +3 -3
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +50 -50
- 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 +65 -65
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/less/components/accordion.less +4 -3
- package/src/less/components/list.less +26 -49
- package/src/scss/components/accordion.scss +3 -2
- package/src/scss/components/list.scss +22 -45
- package/src/scss/mixins-theme.scss +4 -4
- package/src/scss/mixins.scss +5 -5
package/dist/js/uikit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.22.
|
|
1
|
+
/*! UIkit 3.22.2 | 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() :
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
const ucfirst = memoize((str) => str.charAt(0).toUpperCase() + str.slice(1));
|
|
20
20
|
function startsWith(str, search) {
|
|
21
21
|
var _a;
|
|
22
|
-
return (_a = str == null ?
|
|
22
|
+
return (_a = str == null ? undefined : str.startsWith) == null ? undefined : _a.call(str, search);
|
|
23
23
|
}
|
|
24
24
|
function endsWith(str, search) {
|
|
25
25
|
var _a;
|
|
26
|
-
return (_a = str == null ?
|
|
26
|
+
return (_a = str == null ? undefined : str.endsWith) == null ? undefined : _a.call(str, search);
|
|
27
27
|
}
|
|
28
28
|
function includes(obj, search) {
|
|
29
29
|
var _a;
|
|
30
|
-
return (_a = obj == null ?
|
|
30
|
+
return (_a = obj == null ? undefined : obj.includes) == null ? undefined : _a.call(obj, search);
|
|
31
31
|
}
|
|
32
32
|
function findIndex(array, predicate) {
|
|
33
33
|
var _a;
|
|
34
|
-
return (_a = array == null ?
|
|
34
|
+
return (_a = array == null ? undefined : array.findIndex) == null ? undefined : _a.call(array, predicate);
|
|
35
35
|
}
|
|
36
36
|
const { isArray, from: toArray } = Array;
|
|
37
37
|
const { assign } = Object;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
return !(isArray(obj) ? obj.length : isObject(obj) ? Object.keys(obj).length : false);
|
|
76
76
|
}
|
|
77
77
|
function isUndefined(value) {
|
|
78
|
-
return value ===
|
|
78
|
+
return value === undefined;
|
|
79
79
|
}
|
|
80
80
|
function toBoolean(value) {
|
|
81
81
|
return isBoolean(value) ? value : value === "true" || value === "1" || value === "" ? true : value === "false" || value === "0" ? false : value;
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
return element;
|
|
99
99
|
}
|
|
100
100
|
element = toNode(element);
|
|
101
|
-
const document = isDocument(element) ? element : element == null ?
|
|
102
|
-
return (document == null ?
|
|
101
|
+
const document = isDocument(element) ? element : element == null ? undefined : element.ownerDocument;
|
|
102
|
+
return (document == null ? undefined : document.defaultView) || window;
|
|
103
103
|
}
|
|
104
104
|
function isEqual(value, other) {
|
|
105
105
|
return value === other || isObject(value) && isObject(other) && Object.keys(value).length === Object.keys(other).length && each(value, (val, key) => val === other[key]);
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
if (isUndefined(value)) {
|
|
245
|
-
return (_a = toNode(element)) == null ?
|
|
245
|
+
return (_a = toNode(element)) == null ? undefined : _a.getAttribute(name);
|
|
246
246
|
} else {
|
|
247
247
|
for (const el of toNodes(element)) {
|
|
248
248
|
if (isFunction(value)) {
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
}
|
|
318
318
|
function parent(element) {
|
|
319
319
|
var _a;
|
|
320
|
-
return (_a = toNode(element)) == null ?
|
|
320
|
+
return (_a = toNode(element)) == null ? undefined : _a.parentElement;
|
|
321
321
|
}
|
|
322
322
|
function filter$1(element, selector) {
|
|
323
323
|
return toNodes(element).filter((element2) => matches(element2, selector));
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
if (listener.length > 1) {
|
|
473
473
|
listener = detail(listener);
|
|
474
474
|
}
|
|
475
|
-
if (useCapture == null ?
|
|
475
|
+
if (useCapture == null ? undefined : useCapture.self) {
|
|
476
476
|
listener = selfFilter(listener);
|
|
477
477
|
}
|
|
478
478
|
if (selector) {
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
}
|
|
566
566
|
function getEventPos(e) {
|
|
567
567
|
var _a, _b;
|
|
568
|
-
const { clientX: x, clientY: y } = ((_a = e.touches) == null ?
|
|
568
|
+
const { clientX: x, clientY: y } = ((_a = e.touches) == null ? undefined : _a[0]) || ((_b = e.changedTouches) == null ? undefined : _b[0]) || e;
|
|
569
569
|
return { x, y };
|
|
570
570
|
}
|
|
571
571
|
|
|
@@ -741,7 +741,7 @@
|
|
|
741
741
|
function isTag(element, ...tagNames) {
|
|
742
742
|
return tagNames.some((tagName) => {
|
|
743
743
|
var _a;
|
|
744
|
-
return ((_a = element == null ?
|
|
744
|
+
return ((_a = element == null ? undefined : element.tagName) == null ? undefined : _a.toLowerCase()) === tagName.toLowerCase();
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
function empty(element) {
|
|
@@ -762,7 +762,7 @@
|
|
|
762
762
|
return function(ref, element) {
|
|
763
763
|
var _a;
|
|
764
764
|
const nodes = toNodes(isString(element) ? fragment(element) : element);
|
|
765
|
-
(_a = $(ref)) == null ?
|
|
765
|
+
(_a = $(ref)) == null ? undefined : _a[fn](...nodes);
|
|
766
766
|
return unwrapSingle(nodes);
|
|
767
767
|
};
|
|
768
768
|
}
|
|
@@ -1037,7 +1037,7 @@
|
|
|
1037
1037
|
}
|
|
1038
1038
|
cancel() {
|
|
1039
1039
|
var _a;
|
|
1040
|
-
(_a = this.unbind) == null ?
|
|
1040
|
+
(_a = this.unbind) == null ? undefined : _a.call(this);
|
|
1041
1041
|
clearInterval(this.interval);
|
|
1042
1042
|
}
|
|
1043
1043
|
movesTo(target) {
|
|
@@ -2442,7 +2442,7 @@
|
|
|
2442
2442
|
}
|
|
2443
2443
|
function sortItems(nodes, sort, order) {
|
|
2444
2444
|
return [...nodes].sort(
|
|
2445
|
-
(a, b) => data(a, sort).localeCompare(data(b, sort),
|
|
2445
|
+
(a, b) => data(a, sort).localeCompare(data(b, sort), undefined, { numeric: true }) * (order === "asc" || -1)
|
|
2446
2446
|
);
|
|
2447
2447
|
}
|
|
2448
2448
|
function findButton(el) {
|
|
@@ -2775,7 +2775,7 @@
|
|
|
2775
2775
|
let changed;
|
|
2776
2776
|
if (this.cls) {
|
|
2777
2777
|
changed = includes(this.cls, " ") || toggled !== hasClass(el, this.cls);
|
|
2778
|
-
changed && toggleClass(el, this.cls, includes(this.cls, " ") ?
|
|
2778
|
+
changed && toggleClass(el, this.cls, includes(this.cls, " ") ? undefined : toggled);
|
|
2779
2779
|
} else {
|
|
2780
2780
|
changed = toggled === el.hidden;
|
|
2781
2781
|
changed && (el.hidden = !toggled);
|
|
@@ -2793,7 +2793,7 @@
|
|
|
2793
2793
|
}
|
|
2794
2794
|
async function toggleTransition(el, show, { animation, duration, velocity, transition, _toggle }) {
|
|
2795
2795
|
var _a;
|
|
2796
|
-
const [mode = "reveal", startProp = "top"] = ((_a = animation[0]) == null ?
|
|
2796
|
+
const [mode = "reveal", startProp = "top"] = ((_a = animation[0]) == null ? undefined : _a.split("-")) || [];
|
|
2797
2797
|
const dirs = [
|
|
2798
2798
|
["left", "right"],
|
|
2799
2799
|
["top", "bottom"]
|
|
@@ -3039,7 +3039,7 @@
|
|
|
3039
3039
|
return new Promise(
|
|
3040
3040
|
(resolve, reject) => once(el, "show hide", () => {
|
|
3041
3041
|
var _a;
|
|
3042
|
-
(_a = el._reject) == null ?
|
|
3042
|
+
(_a = el._reject) == null ? undefined : _a.call(el);
|
|
3043
3043
|
el._reject = reject;
|
|
3044
3044
|
_toggle(el, show);
|
|
3045
3045
|
const off = once(
|
|
@@ -3166,7 +3166,7 @@
|
|
|
3166
3166
|
return percent(prev || next, next, dir);
|
|
3167
3167
|
},
|
|
3168
3168
|
getDistance() {
|
|
3169
|
-
return prev == null ?
|
|
3169
|
+
return prev == null ? undefined : prev.offsetWidth;
|
|
3170
3170
|
}
|
|
3171
3171
|
};
|
|
3172
3172
|
}
|
|
@@ -3189,7 +3189,7 @@
|
|
|
3189
3189
|
t(key, ...params) {
|
|
3190
3190
|
var _a, _b, _c;
|
|
3191
3191
|
let i = 0;
|
|
3192
|
-
return ((_c = ((_a = this.i18n) == null ?
|
|
3192
|
+
return ((_c = ((_a = this.i18n) == null ? undefined : _a[key]) || ((_b = this.$options.i18n) == null ? undefined : _b[key])) == null ? undefined : _c.replace(
|
|
3193
3193
|
/%s/g,
|
|
3194
3194
|
() => params[i++] || ""
|
|
3195
3195
|
)) || "";
|
|
@@ -3505,7 +3505,7 @@
|
|
|
3505
3505
|
on(
|
|
3506
3506
|
el ? el.call(instance, instance) : instance.$el,
|
|
3507
3507
|
name,
|
|
3508
|
-
delegate == null ?
|
|
3508
|
+
delegate == null ? undefined : delegate.call(instance, instance),
|
|
3509
3509
|
handler.bind(instance),
|
|
3510
3510
|
{
|
|
3511
3511
|
passive,
|
|
@@ -3637,7 +3637,7 @@
|
|
|
3637
3637
|
|
|
3638
3638
|
function callHook(instance, hook) {
|
|
3639
3639
|
var _a;
|
|
3640
|
-
(_a = instance.$options[hook]) == null ?
|
|
3640
|
+
(_a = instance.$options[hook]) == null ? undefined : _a.forEach((handler) => handler.call(instance));
|
|
3641
3641
|
}
|
|
3642
3642
|
function callConnected(instance) {
|
|
3643
3643
|
if (instance._connected) {
|
|
@@ -3721,7 +3721,7 @@
|
|
|
3721
3721
|
};
|
|
3722
3722
|
App.util = util;
|
|
3723
3723
|
App.options = {};
|
|
3724
|
-
App.version = "3.22.
|
|
3724
|
+
App.version = "3.22.2";
|
|
3725
3725
|
|
|
3726
3726
|
const PREFIX = "uk-";
|
|
3727
3727
|
const DATA = "__uikit__";
|
|
@@ -3740,7 +3740,7 @@
|
|
|
3740
3740
|
const opt = (_a = options.options) != null ? _a : { ...options };
|
|
3741
3741
|
opt.id = id;
|
|
3742
3742
|
opt.name = name;
|
|
3743
|
-
(_b = opt.install) == null ?
|
|
3743
|
+
(_b = opt.install) == null ? undefined : _b.call(opt, App, opt, name);
|
|
3744
3744
|
if (App._initialized && !opt.functional) {
|
|
3745
3745
|
requestAnimationFrame(() => createComponent(name, `[${id}],[data-${id}]`));
|
|
3746
3746
|
}
|
|
@@ -3762,7 +3762,7 @@
|
|
|
3762
3762
|
}
|
|
3763
3763
|
}
|
|
3764
3764
|
function getComponents(element) {
|
|
3765
|
-
return (element == null ?
|
|
3765
|
+
return (element == null ? undefined : element[DATA]) || {};
|
|
3766
3766
|
}
|
|
3767
3767
|
function getComponent(element, name) {
|
|
3768
3768
|
return getComponents(element)[name];
|
|
@@ -3879,7 +3879,7 @@
|
|
|
3879
3879
|
}
|
|
3880
3880
|
let id = 1;
|
|
3881
3881
|
function generateId(instance, el = null) {
|
|
3882
|
-
return (el == null ?
|
|
3882
|
+
return (el == null ? undefined : el.id) || `${instance.$options.id}-${id++}`;
|
|
3883
3883
|
}
|
|
3884
3884
|
|
|
3885
3885
|
var SliderNav = {
|
|
@@ -4145,7 +4145,7 @@
|
|
|
4145
4145
|
stack[force ? "unshift" : "push"](index);
|
|
4146
4146
|
if (!force && stack.length > 1) {
|
|
4147
4147
|
if (stack.length === 2) {
|
|
4148
|
-
(_a = this._transitioner) == null ?
|
|
4148
|
+
(_a = this._transitioner) == null ? undefined : _a.forward(Math.min(this.duration, 200));
|
|
4149
4149
|
}
|
|
4150
4150
|
return;
|
|
4151
4151
|
}
|
|
@@ -4691,10 +4691,10 @@
|
|
|
4691
4691
|
return el;
|
|
4692
4692
|
}
|
|
4693
4693
|
function isImage(src) {
|
|
4694
|
-
return src == null ?
|
|
4694
|
+
return src == null ? undefined : src.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i);
|
|
4695
4695
|
}
|
|
4696
4696
|
function isVideo(src) {
|
|
4697
|
-
return src == null ?
|
|
4697
|
+
return src == null ? undefined : src.match(/\.(mp4|webm|ogv)($|\?)/i);
|
|
4698
4698
|
}
|
|
4699
4699
|
|
|
4700
4700
|
const selDisabled$1 = ".uk-disabled *, .uk-disabled, [disabled]";
|
|
@@ -4747,7 +4747,7 @@
|
|
|
4747
4747
|
},
|
|
4748
4748
|
hide() {
|
|
4749
4749
|
var _a;
|
|
4750
|
-
return (_a = this.panel) == null ?
|
|
4750
|
+
return (_a = this.panel) == null ? undefined : _a.hide();
|
|
4751
4751
|
}
|
|
4752
4752
|
}
|
|
4753
4753
|
};
|
|
@@ -4854,7 +4854,7 @@
|
|
|
4854
4854
|
const container = parent(el);
|
|
4855
4855
|
trigger(el, "close", [this]);
|
|
4856
4856
|
remove$1(el);
|
|
4857
|
-
if (!(container == null ?
|
|
4857
|
+
if (!(container == null ? undefined : container.hasChildNodes())) {
|
|
4858
4858
|
remove$1(container);
|
|
4859
4859
|
}
|
|
4860
4860
|
};
|
|
@@ -4904,7 +4904,7 @@
|
|
|
4904
4904
|
},
|
|
4905
4905
|
disconnected() {
|
|
4906
4906
|
var _a;
|
|
4907
|
-
(_a = this.offMediaObj) == null ?
|
|
4907
|
+
(_a = this.offMediaObj) == null ? undefined : _a.call(this);
|
|
4908
4908
|
}
|
|
4909
4909
|
};
|
|
4910
4910
|
function toMedia(value, element) {
|
|
@@ -4922,7 +4922,7 @@
|
|
|
4922
4922
|
return isVisible(el) ? Math.ceil(
|
|
4923
4923
|
Math.max(0, ...$$("[stroke]", el).map((stroke) => {
|
|
4924
4924
|
var _a;
|
|
4925
|
-
return ((_a = stroke.getTotalLength) == null ?
|
|
4925
|
+
return ((_a = stroke.getTotalLength) == null ? undefined : _a.call(stroke)) || 0;
|
|
4926
4926
|
}))
|
|
4927
4927
|
) : 0;
|
|
4928
4928
|
}
|
|
@@ -4951,7 +4951,7 @@
|
|
|
4951
4951
|
var Parallax = {
|
|
4952
4952
|
mixins: [Media],
|
|
4953
4953
|
props: fillObject(keys(props), "list"),
|
|
4954
|
-
data: fillObject(keys(props),
|
|
4954
|
+
data: fillObject(keys(props), undefined),
|
|
4955
4955
|
computed: {
|
|
4956
4956
|
props(properties, $el) {
|
|
4957
4957
|
const stops = {};
|
|
@@ -4998,7 +4998,7 @@
|
|
|
4998
4998
|
unit = "";
|
|
4999
4999
|
transformFn2 = (stop) => {
|
|
5000
5000
|
var _a;
|
|
5001
|
-
return getUnit([stop]) ? toPx(stop, "width", el, true) / el[`offset${((_a = stop.endsWith) == null ?
|
|
5001
|
+
return getUnit([stop]) ? toPx(stop, "width", el, true) / el[`offset${((_a = stop.endsWith) == null ? undefined : _a.call(stop, "vh")) ? "Height" : "Width"}`] : toFloat(stop);
|
|
5002
5002
|
};
|
|
5003
5003
|
}
|
|
5004
5004
|
if (stops.length === 1) {
|
|
@@ -5207,7 +5207,7 @@
|
|
|
5207
5207
|
function getUnit(stops, defaultUnit) {
|
|
5208
5208
|
var _a;
|
|
5209
5209
|
for (const stop of stops) {
|
|
5210
|
-
const match = (_a = stop.match) == null ?
|
|
5210
|
+
const match = (_a = stop.match) == null ? undefined : _a.call(stop, unitRe);
|
|
5211
5211
|
if (match) {
|
|
5212
5212
|
return match[1];
|
|
5213
5213
|
}
|
|
@@ -5896,8 +5896,8 @@
|
|
|
5896
5896
|
},
|
|
5897
5897
|
data: {
|
|
5898
5898
|
ratio: "16:9",
|
|
5899
|
-
minHeight:
|
|
5900
|
-
maxHeight:
|
|
5899
|
+
minHeight: undefined,
|
|
5900
|
+
maxHeight: undefined,
|
|
5901
5901
|
selList: ".uk-slideshow-items",
|
|
5902
5902
|
attrItem: "uk-slideshow-item",
|
|
5903
5903
|
selNav: ".uk-slideshow-nav",
|
|
@@ -5906,7 +5906,7 @@
|
|
|
5906
5906
|
watch: {
|
|
5907
5907
|
list(list) {
|
|
5908
5908
|
css(list, {
|
|
5909
|
-
aspectRatio: this.ratio ? this.ratio.replace(":", "/") :
|
|
5909
|
+
aspectRatio: this.ratio ? this.ratio.replace(":", "/") : undefined,
|
|
5910
5910
|
minHeight: this.minHeight,
|
|
5911
5911
|
maxHeight: this.maxHeight,
|
|
5912
5912
|
width: "100%"
|
|
@@ -6273,7 +6273,7 @@
|
|
|
6273
6273
|
if (this.isToggled(this.tooltip || null)) {
|
|
6274
6274
|
await this.toggleElement(this.tooltip, false, false);
|
|
6275
6275
|
}
|
|
6276
|
-
(_a = this.reset) == null ?
|
|
6276
|
+
(_a = this.reset) == null ? undefined : _a.call(this);
|
|
6277
6277
|
remove$1(this.tooltip);
|
|
6278
6278
|
this.tooltip = null;
|
|
6279
6279
|
},
|
|
@@ -6413,7 +6413,7 @@
|
|
|
6413
6413
|
drop(e) {
|
|
6414
6414
|
stop(e);
|
|
6415
6415
|
const transfer = e.dataTransfer;
|
|
6416
|
-
if (!(transfer == null ?
|
|
6416
|
+
if (!(transfer == null ? undefined : transfer.files)) {
|
|
6417
6417
|
return;
|
|
6418
6418
|
}
|
|
6419
6419
|
removeClass(this.$el, this.clsDragover);
|
|
@@ -6613,7 +6613,7 @@
|
|
|
6613
6613
|
if (hasAttr(target, attributeName)) {
|
|
6614
6614
|
createComponent(name, target);
|
|
6615
6615
|
} else {
|
|
6616
|
-
(_a = getComponent(target, name)) == null ?
|
|
6616
|
+
(_a = getComponent(target, name)) == null ? undefined : _a.$destroy();
|
|
6617
6617
|
}
|
|
6618
6618
|
}
|
|
6619
6619
|
}
|
|
@@ -6676,7 +6676,7 @@
|
|
|
6676
6676
|
contents({ content }) {
|
|
6677
6677
|
return this.items.map((item) => {
|
|
6678
6678
|
var _a;
|
|
6679
|
-
return ((_a = item._wrapper) == null ?
|
|
6679
|
+
return ((_a = item._wrapper) == null ? undefined : _a.firstElementChild) || $(content, item);
|
|
6680
6680
|
});
|
|
6681
6681
|
}
|
|
6682
6682
|
},
|
|
@@ -6715,7 +6715,7 @@
|
|
|
6715
6715
|
return;
|
|
6716
6716
|
}
|
|
6717
6717
|
e.preventDefault();
|
|
6718
|
-
(_a = this._off) == null ?
|
|
6718
|
+
(_a = this._off) == null ? undefined : _a.call(this);
|
|
6719
6719
|
this._off = keepScrollPosition(e.target);
|
|
6720
6720
|
await this.toggle(index(this.toggles, e.current));
|
|
6721
6721
|
this._off();
|
|
@@ -6784,7 +6784,7 @@
|
|
|
6784
6784
|
}
|
|
6785
6785
|
async function transition(el, show, { content, duration, velocity, transition: transition2 }) {
|
|
6786
6786
|
var _a;
|
|
6787
|
-
content = ((_a = el._wrapper) == null ?
|
|
6787
|
+
content = ((_a = el._wrapper) == null ? undefined : _a.firstElementChild) || $(content, el);
|
|
6788
6788
|
if (!el._wrapper) {
|
|
6789
6789
|
el._wrapper = wrapAll(content, "<div>");
|
|
6790
6790
|
}
|
|
@@ -7111,7 +7111,7 @@
|
|
|
7111
7111
|
if (this.isToggled()) {
|
|
7112
7112
|
this.hide(false);
|
|
7113
7113
|
} else {
|
|
7114
|
-
this.show(toggle == null ?
|
|
7114
|
+
this.show(toggle == null ? undefined : toggle.$el, false);
|
|
7115
7115
|
}
|
|
7116
7116
|
}
|
|
7117
7117
|
},
|
|
@@ -7120,7 +7120,7 @@
|
|
|
7120
7120
|
self: true,
|
|
7121
7121
|
handler(e, toggle) {
|
|
7122
7122
|
e.preventDefault();
|
|
7123
|
-
this.show(toggle == null ?
|
|
7123
|
+
this.show(toggle == null ? undefined : toggle.$el);
|
|
7124
7124
|
}
|
|
7125
7125
|
},
|
|
7126
7126
|
{
|
|
@@ -7359,7 +7359,7 @@
|
|
|
7359
7359
|
`${pointerUp$1} ${pointerCancel} scroll`,
|
|
7360
7360
|
({ defaultPrevented, type, target: newTarget }) => {
|
|
7361
7361
|
var _a;
|
|
7362
|
-
if (!defaultPrevented && type === pointerUp$1 && target === newTarget && !((_a = drop.targetEl) == null ?
|
|
7362
|
+
if (!defaultPrevented && type === pointerUp$1 && target === newTarget && !((_a = drop.targetEl) == null ? undefined : _a.contains(target))) {
|
|
7363
7363
|
drop.hide(false);
|
|
7364
7364
|
}
|
|
7365
7365
|
},
|
|
@@ -7417,7 +7417,7 @@
|
|
|
7417
7417
|
const dropdowns = $$(`.${clsDrop}`, $el);
|
|
7418
7418
|
if (this.dropContainer !== $el) {
|
|
7419
7419
|
for (const el of $$(`.${clsDrop}`, this.dropContainer)) {
|
|
7420
|
-
const target = (_a = this.getDropdown(el)) == null ?
|
|
7420
|
+
const target = (_a = this.getDropdown(el)) == null ? undefined : _a.targetEl;
|
|
7421
7421
|
if (!includes(dropdowns, el) && target && this.$el.contains(target)) {
|
|
7422
7422
|
dropdowns.push(el);
|
|
7423
7423
|
}
|
|
@@ -7469,9 +7469,9 @@
|
|
|
7469
7469
|
var _a;
|
|
7470
7470
|
const { current, keyCode } = e;
|
|
7471
7471
|
const active2 = this.getActive();
|
|
7472
|
-
if (keyCode === keyMap.DOWN && (active2 == null ?
|
|
7472
|
+
if (keyCode === keyMap.DOWN && (active2 == null ? undefined : active2.targetEl) === current) {
|
|
7473
7473
|
e.preventDefault();
|
|
7474
|
-
(_a = $(selFocusable, active2.$el)) == null ?
|
|
7474
|
+
(_a = $(selFocusable, active2.$el)) == null ? undefined : _a.focus();
|
|
7475
7475
|
}
|
|
7476
7476
|
handleNavItemNavigation(e, this.items, active2);
|
|
7477
7477
|
}
|
|
@@ -7497,7 +7497,7 @@
|
|
|
7497
7497
|
} else if (keyCode === keyMap.DOWN) {
|
|
7498
7498
|
next = "next";
|
|
7499
7499
|
} else if (keyCode === keyMap.ESC) {
|
|
7500
|
-
(_a = active2.targetEl) == null ?
|
|
7500
|
+
(_a = active2.targetEl) == null ? undefined : _a.focus();
|
|
7501
7501
|
}
|
|
7502
7502
|
if (~next) {
|
|
7503
7503
|
e.preventDefault();
|
|
@@ -7582,7 +7582,7 @@
|
|
|
7582
7582
|
if (!this.isDropbarDrop(target)) {
|
|
7583
7583
|
return;
|
|
7584
7584
|
}
|
|
7585
|
-
(_a = this._observer) == null ?
|
|
7585
|
+
(_a = this._observer) == null ? undefined : _a.disconnect();
|
|
7586
7586
|
const active2 = this.getActive();
|
|
7587
7587
|
if (!active2 || active2.$el === target) {
|
|
7588
7588
|
this.transitionTo(0);
|
|
@@ -7593,7 +7593,7 @@
|
|
|
7593
7593
|
methods: {
|
|
7594
7594
|
getActive() {
|
|
7595
7595
|
var _a;
|
|
7596
|
-
return includes(this.dropdowns, (_a = active) == null ?
|
|
7596
|
+
return includes(this.dropdowns, (_a = active) == null ? undefined : _a.$el) && active;
|
|
7597
7597
|
},
|
|
7598
7598
|
async transitionTo(newHeight, el) {
|
|
7599
7599
|
const { dropbar } = this;
|
|
@@ -7656,12 +7656,12 @@
|
|
|
7656
7656
|
} else if (keyCode === keyMap.RIGHT) {
|
|
7657
7657
|
next = "next";
|
|
7658
7658
|
} else if (keyCode === keyMap.TAB) {
|
|
7659
|
-
(_a = active2.targetEl) == null ?
|
|
7660
|
-
(_b = active2.hide) == null ?
|
|
7659
|
+
(_a = active2.targetEl) == null ? undefined : _a.focus();
|
|
7660
|
+
(_b = active2.hide) == null ? undefined : _b.call(active2, false);
|
|
7661
7661
|
}
|
|
7662
7662
|
if (~next) {
|
|
7663
7663
|
e.preventDefault();
|
|
7664
|
-
(_c = active2.hide) == null ?
|
|
7664
|
+
(_c = active2.hide) == null ? undefined : _c.call(active2, false);
|
|
7665
7665
|
toggles[getIndex(next, toggles, toggles.indexOf(active2.targetEl || current))].focus();
|
|
7666
7666
|
}
|
|
7667
7667
|
}
|
|
@@ -7693,7 +7693,7 @@
|
|
|
7693
7693
|
let option;
|
|
7694
7694
|
const prop = isInput(target) ? "value" : "textContent";
|
|
7695
7695
|
const prev = target[prop];
|
|
7696
|
-
const value = ((_a = input.files) == null ?
|
|
7696
|
+
const value = ((_a = input.files) == null ? undefined : _a[0]) ? input.files[0].name : matches(input, "select") && (option = $$("option", input).filter((el) => el.selected)[0]) ? option.textContent : input.value;
|
|
7697
7697
|
if (prev !== value) {
|
|
7698
7698
|
target[prop] = value;
|
|
7699
7699
|
}
|
|
@@ -8570,7 +8570,7 @@
|
|
|
8570
8570
|
bgClose: false,
|
|
8571
8571
|
escClose: true,
|
|
8572
8572
|
...options,
|
|
8573
|
-
i18n: { ...modal.i18n, ...options == null ?
|
|
8573
|
+
i18n: { ...modal.i18n, ...options == null ? undefined : options.i18n }
|
|
8574
8574
|
};
|
|
8575
8575
|
const dialog = modal.dialog(tmpl(options), options);
|
|
8576
8576
|
return assign(
|
|
@@ -8920,7 +8920,7 @@
|
|
|
8920
8920
|
},
|
|
8921
8921
|
disconnected() {
|
|
8922
8922
|
for (const [el, state] of this.elementData.entries()) {
|
|
8923
|
-
removeClass(el, clsInView, (state == null ?
|
|
8923
|
+
removeClass(el, clsInView, (state == null ? undefined : state.cls) || "");
|
|
8924
8924
|
}
|
|
8925
8925
|
delete this.elementData;
|
|
8926
8926
|
},
|
|
@@ -8968,11 +8968,11 @@
|
|
|
8968
8968
|
methods: {
|
|
8969
8969
|
toggle(el, inview) {
|
|
8970
8970
|
var _a, _b;
|
|
8971
|
-
const state = (_a = this.elementData) == null ?
|
|
8971
|
+
const state = (_a = this.elementData) == null ? undefined : _a.get(el);
|
|
8972
8972
|
if (!state) {
|
|
8973
8973
|
return;
|
|
8974
8974
|
}
|
|
8975
|
-
(_b = state.off) == null ?
|
|
8975
|
+
(_b = state.off) == null ? undefined : _b.call(state);
|
|
8976
8976
|
css(el, "opacity", !inview && this.hidden ? 0 : "");
|
|
8977
8977
|
toggleClass(el, clsInView, inview);
|
|
8978
8978
|
toggleClass(el, state.cls);
|
|
@@ -9400,7 +9400,7 @@
|
|
|
9400
9400
|
return propOffset + toPx(value, "height", el, true);
|
|
9401
9401
|
} else {
|
|
9402
9402
|
const refElement = value === true ? getVisibleParent(el) : query(value, el);
|
|
9403
|
-
return offset(refElement).bottom - (padding && (refElement == null ?
|
|
9403
|
+
return offset(refElement).bottom - (padding && (refElement == null ? undefined : refElement.contains(el)) ? toFloat(css(refElement, "paddingBottom")) + toFloat(css(refElement, "borderBottomWidth")) : 0);
|
|
9404
9404
|
}
|
|
9405
9405
|
}
|
|
9406
9406
|
function coerce(value) {
|
|
@@ -9635,7 +9635,7 @@
|
|
|
9635
9635
|
attr(children(this.$el), "role", "presentation");
|
|
9636
9636
|
for (const index in this.toggles) {
|
|
9637
9637
|
const toggle = this.toggles[index];
|
|
9638
|
-
const item = (_a = this.connects[0]) == null ?
|
|
9638
|
+
const item = (_a = this.connects[0]) == null ? undefined : _a.children[index];
|
|
9639
9639
|
attr(toggle, "role", "tab");
|
|
9640
9640
|
if (!item) {
|
|
9641
9641
|
continue;
|