@okam/stack-ui 1.40.0 → 1.40.1
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 +10 -0
- package/components/fields/ComboBox/components/ComboBoxButton.d.ts +3 -0
- package/components/fields/ComboBox/interface.d.ts +5 -1
- package/index108.js +6 -1
- package/index108.mjs +29 -12
- package/index123.js +1 -1
- package/index123.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index126.js +1 -1
- package/index126.mjs +1 -1
- package/index131.js +1 -1
- package/index131.mjs +1 -1
- package/index133.js +1 -1
- package/index133.mjs +4 -4
- package/index134.js +1 -1
- package/index134.mjs +3 -3
- package/index135.js +1 -1
- package/index135.mjs +1 -1
- package/index136.js +1 -1
- package/index136.mjs +1 -1
- package/index137.js +1 -1
- package/index137.mjs +3 -3
- package/index141.js +1 -1
- package/index141.mjs +13 -38
- package/index142.js +1 -2
- package/index142.mjs +38 -24
- package/index143.js +2 -1
- package/index143.mjs +23 -21
- package/index144.js +1 -1
- package/index144.mjs +21 -41
- package/index145.js +1 -1
- package/index145.mjs +42 -25
- package/index146.js +1 -1
- package/index146.mjs +25 -40
- package/index147.js +1 -2
- package/index147.mjs +39 -56
- package/index148.js +2 -1
- package/index148.mjs +57 -38
- package/index149.js +1 -1
- package/index149.mjs +34 -26
- package/index150.js +1 -2
- package/index150.mjs +30 -8
- package/index151.js +1 -1
- package/index151.mjs +7 -8
- package/index152.js +2 -1
- package/index152.mjs +10 -30
- package/index153.js +1 -1
- package/index153.mjs +30 -15
- package/index154.js +1 -1
- package/index154.mjs +13 -15
- package/index155.js +1 -2
- package/index155.mjs +16 -47
- package/index156.js +2 -1
- package/index156.mjs +46 -36
- package/index157.js +1 -1
- package/index157.mjs +36 -27
- package/index158.js +1 -1
- package/index158.mjs +27 -20
- package/index159.js +1 -1
- package/index159.mjs +18 -32
- package/index160.js +1 -1
- package/index160.mjs +35 -21
- package/index161.js +1 -1
- package/index161.mjs +21 -56
- package/index162.js +1 -1
- package/index162.mjs +57 -12
- package/index163.js +1 -1
- package/index163.mjs +12 -46
- package/index164.js +1 -2
- package/index164.mjs +46 -13
- package/index165.js +1 -1
- package/index165.mjs +11 -29
- package/index166.js +2 -1
- package/index166.mjs +31 -12
- package/index167.js +1 -1
- package/index167.mjs +11 -5
- package/index168.js +1 -2
- package/index168.mjs +5 -49
- package/index169.js +2 -1
- package/index169.mjs +48 -124
- package/index170.js +1 -1
- package/index170.mjs +122 -24
- package/index171.js +1 -1
- package/index171.mjs +22 -68
- package/index172.js +1 -1
- package/index172.mjs +62 -370
- package/index173.js +1 -1
- package/index173.mjs +379 -44
- package/index174.js +1 -1
- package/index174.mjs +47 -4
- package/index175.js +1 -1
- package/index175.mjs +4 -25
- package/index176.js +1 -1
- package/index176.mjs +23 -46
- package/index177.js +1 -1
- package/index177.mjs +46 -4
- package/index178.js +1 -1
- package/index178.mjs +5 -24
- package/index179.js +1 -1
- package/index179.mjs +23 -11
- package/index180.js +1 -1
- package/index180.mjs +12 -4
- package/index181.js +1 -1
- package/index181.mjs +4 -14
- package/index182.js +1 -1
- package/index182.mjs +13 -41
- package/index183.js +1 -1
- package/index183.mjs +37 -52
- package/index184.js +1 -1
- package/index184.mjs +55 -39
- package/index185.js +1 -1
- package/index185.mjs +40 -27
- package/index186.js +1 -1
- package/index186.mjs +27 -30
- package/index187.js +1 -1
- package/index187.mjs +30 -13
- package/index188.js +1 -1
- package/index188.mjs +14 -10
- package/index189.js +1 -1
- package/index189.mjs +10 -28
- package/index19.js +1 -1
- package/index19.mjs +3 -2
- package/index190.js +1 -1
- package/index190.mjs +28 -9
- package/index191.js +1 -1
- package/index191.mjs +9 -6
- package/index192.js +1 -1
- package/index192.mjs +6 -5
- package/index193.js +1 -1
- package/index193.mjs +5 -7
- package/index194.js +1 -1
- package/index194.mjs +7 -29
- package/index195.js +1 -1
- package/index195.mjs +27 -16
- package/index196.js +1 -1
- package/index196.mjs +17 -12
- package/index197.js +1 -1
- package/index197.mjs +13 -43
- package/index198.js +1 -1
- package/index198.mjs +42 -7
- package/index199.js +1 -1
- package/index199.mjs +8 -17
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +18 -3
- package/index201.js +1 -1
- package/index201.mjs +3 -5
- package/index202.js +1 -1
- package/index202.mjs +4 -19
- package/index203.js +1 -1
- package/index203.mjs +19 -54
- package/index204.js +1 -1
- package/index204.mjs +52 -122
- package/index205.js +1 -1
- package/index205.mjs +122 -132
- package/index206.js +1 -1
- package/index206.mjs +125 -35
- package/index207.js +1 -1
- package/index207.mjs +42 -12
- package/index208.js +1 -1
- package/index208.mjs +12 -93
- package/index209.js +1 -1
- package/index209.mjs +87 -98
- package/index210.js +1 -1
- package/index210.mjs +106 -4
- package/index211.js +1 -1
- package/index211.mjs +4 -3
- package/index212.js +1 -1
- package/index212.mjs +3 -125
- package/index213.js +1 -1
- package/index213.mjs +117 -21
- package/index214.js +1 -1
- package/index214.mjs +15 -37
- package/index215.js +1 -1
- package/index215.mjs +41 -34
- package/index216.js +1 -1
- package/index216.mjs +32 -25
- package/index217.js +1 -1
- package/index217.mjs +22 -98
- package/index218.js +1 -1
- package/index218.mjs +99 -63
- package/index219.js +1 -1
- package/index219.mjs +55 -79
- package/index220.js +1 -1
- package/index220.mjs +102 -98
- package/index221.js +1 -1
- package/index221.mjs +98 -141
- package/index222.js +1 -1
- package/index222.mjs +136 -193
- package/index223.js +1 -1
- package/index223.mjs +196 -21
- package/index224.js +1 -1
- package/index224.mjs +20 -47
- package/index225.js +1 -1
- package/index225.mjs +45 -44
- package/index226.js +1 -1
- package/index226.mjs +43 -92
- package/index227.js +1 -1
- package/index227.mjs +98 -72
- package/index228.js +1 -1
- package/index228.mjs +72 -69
- package/index229.js +1 -1
- package/index229.mjs +68 -7
- package/index230.js +1 -1
- package/index230.mjs +7 -11
- package/index231.js +1 -1
- package/index231.mjs +11 -203
- package/index232.js +1 -1
- package/index232.mjs +190 -51
- package/index233.js +1 -1
- package/index233.mjs +51 -130
- package/index234.js +1 -1
- package/index234.mjs +130 -111
- package/index235.js +1 -1
- package/index235.mjs +105 -205
- package/index236.js +1 -1
- package/index236.mjs +203 -169
- package/index237.js +1 -1
- package/index237.mjs +182 -61
- package/index238.js +1 -1
- package/index238.mjs +60 -270
- package/index239.js +1 -1
- package/index239.mjs +270 -89
- package/index24.js +1 -1
- package/index24.mjs +1 -1
- package/index240.js +1 -1
- package/index240.mjs +92 -182
- package/index241.js +1 -1
- package/index241.mjs +182 -78
- package/index242.js +1 -1
- package/index242.mjs +75 -49
- package/index243.js +1 -1
- package/index243.mjs +49 -117
- package/index244.js +1 -1
- package/index244.mjs +118 -108
- package/index245.js +1 -1
- package/index245.mjs +106 -112
- package/index246.js +1 -1
- package/index246.mjs +113 -63
- package/index247.js +1 -1
- package/index247.mjs +70 -108
- package/index248.js +1 -1
- package/index248.mjs +108 -50
- package/index249.js +1 -1
- package/index249.mjs +34 -75
- package/index25.js +1 -1
- package/index25.mjs +3 -3
- package/index250.js +1 -1
- package/index250.mjs +71 -48
- package/index251.js +1 -1
- package/index251.mjs +57 -43
- package/index252.js +1 -1
- package/index252.mjs +43 -86
- package/index253.js +1 -5
- package/index253.mjs +81 -62
- package/index254.js +5 -1
- package/index254.mjs +72 -2017
- package/index255.js +1 -1
- package/index255.mjs +2020 -54
- package/index256.js +1 -1
- package/index256.mjs +57 -186
- package/index257.js +1 -1
- package/index257.mjs +188 -5
- package/index258.js +1 -1
- package/index258.mjs +5 -121
- package/index259.js +1 -1
- package/index259.mjs +121 -43
- package/index26.js +1 -1
- package/index26.mjs +1 -1
- package/index260.js +1 -1
- package/index260.mjs +43 -230
- package/index261.js +1 -1
- package/index261.mjs +226 -27
- package/index262.js +1 -1
- package/index262.mjs +31 -3
- package/index263.js +1 -1
- package/index263.mjs +3 -4
- package/index264.js +1 -1
- package/index264.mjs +5 -5
- package/index265.js +1 -1
- package/index265.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +1 -1
- package/index268.js +1 -1
- package/index268.mjs +1 -1
- package/index269.js +1 -1
- package/index269.mjs +4 -4
- package/index27.js +1 -1
- package/index27.mjs +1 -1
- package/index270.js +1 -1
- package/index270.mjs +4 -4
- package/index271.js +1 -1
- package/index271.mjs +1 -1
- package/index272.js +1 -1
- package/index272.mjs +4 -4
- package/index273.js +1 -1
- package/index273.mjs +4 -4
- package/index274.js +1 -1
- package/index274.mjs +1 -1
- package/index275.js +1 -1
- package/index275.mjs +4 -4
- package/index276.js +1 -1
- package/index276.mjs +4 -4
- package/index277.js +1 -1
- package/index277.mjs +1 -1
- package/index278.js +1 -1
- package/index278.mjs +1 -1
- package/index279.js +1 -1
- package/index279.mjs +4 -4
- package/index280.js +1 -1
- package/index280.mjs +4 -4
- package/index281.js +1 -1
- package/index281.mjs +1 -1
- package/index282.js +1 -1
- package/index282.mjs +4 -4
- package/index283.js +1 -1
- package/index283.mjs +4 -4
- package/index284.js +1 -1
- package/index284.mjs +4 -4
- package/index285.js +1 -1
- package/index285.mjs +1 -1
- package/index286.js +1 -1
- package/index286.mjs +4 -4
- package/index287.js +1 -1
- package/index287.mjs +4 -4
- package/index288.js +1 -1
- package/index288.mjs +4 -4
- package/index289.js +1 -1
- package/index289.mjs +4 -4
- package/index29.js +1 -1
- package/index29.mjs +3 -3
- package/index290.js +1 -1
- package/index290.mjs +4 -4
- package/index291.js +1 -1
- package/index291.mjs +1 -1
- package/index292.js +1 -1
- package/index292.mjs +1 -1
- package/index293.js +1 -1
- package/index293.mjs +1 -1
- package/index294.js +1 -1
- package/index294.mjs +4 -4
- package/index295.js +1 -1
- package/index295.mjs +4 -4
- package/index296.js +1 -1
- package/index296.mjs +4 -4
- package/index297.js +1 -1
- package/index297.mjs +4 -4
- package/index298.js +1 -1
- package/index298.mjs +4 -130
- package/index299.js +1 -1
- package/index299.mjs +123 -183
- package/index30.js +1 -1
- package/index30.mjs +3 -3
- package/index300.js +1 -1
- package/index300.mjs +189 -8
- package/index301.js +1 -1
- package/index301.mjs +9 -3
- package/index302.js +1 -1
- package/index302.mjs +3 -36
- package/index303.js +1 -1
- package/index303.mjs +36 -5
- package/index304.js +1 -1
- package/index304.mjs +5 -29
- package/index305.js +1 -1
- package/index305.mjs +29 -6
- package/index306.js +1 -1
- package/index306.mjs +6 -62
- package/index307.js +1 -1
- package/index307.mjs +63 -7
- package/index308.js +1 -1
- package/index308.mjs +25 -23
- package/index309.js +1 -1
- package/index309.mjs +7 -93
- package/index31.js +1 -1
- package/index31.mjs +3 -3
- package/index310.js +1 -1
- package/index310.mjs +24 -6
- package/index311.js +1 -1
- package/index311.mjs +90 -23
- package/index312.js +1 -1
- package/index312.mjs +8 -32
- package/index313.js +1 -1
- package/index313.mjs +25 -6
- package/index314.js +1 -1
- package/index314.mjs +33 -6
- package/index315.js +1 -1
- package/index315.mjs +6 -50
- package/index316.js +1 -1
- package/index316.mjs +6 -29
- package/index317.js +1 -1
- package/index317.mjs +50 -14
- package/index318.js +1 -1
- package/index318.mjs +14 -21
- package/index319.js +1 -1
- package/index319.mjs +20 -28
- package/index320.js +1 -1
- package/index320.mjs +27 -64
- package/index321.js +1 -1
- package/index321.mjs +66 -53
- package/index322.js +1 -1
- package/index322.mjs +53 -54
- package/index323.js +1 -1
- package/index323.mjs +54 -281
- package/index324.js +1 -1
- package/index324.mjs +281 -20
- package/index325.js +1 -1
- package/index325.mjs +20 -3
- package/index326.js +1 -1
- package/index326.mjs +3 -4
- package/index327.js +1 -1
- package/index327.mjs +4 -8
- package/index328.js +1 -1
- package/index328.mjs +7 -4
- package/index329.js +1 -1
- package/index329.mjs +164 -27
- package/index33.js +1 -1
- package/index33.mjs +1 -1
- package/index330.js +1 -1
- package/index330.mjs +27 -164
- package/index331.js +1 -0
- package/index331.mjs +8 -0
- package/index35.js +1 -1
- package/index35.mjs +2 -2
- package/index36.js +1 -1
- package/index36.mjs +1 -1
- package/index39.js +1 -1
- package/index39.mjs +1 -1
- package/index43.js +1 -1
- package/index43.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +3 -3
- package/index47.js +1 -1
- package/index47.mjs +2 -2
- package/index48.js +1 -1
- package/index48.mjs +1 -1
- package/index49.js +1 -1
- package/index49.mjs +81 -82
- package/index51.js +1 -1
- package/index51.mjs +1 -1
- package/index95.js +1 -1
- package/index95.mjs +1 -1
- package/package.json +1 -1
package/index300.mjs
CHANGED
|
@@ -1,12 +1,193 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { a as c, g as y } from "./index299.mjs";
|
|
2
|
+
function S(e) {
|
|
3
|
+
return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
|
|
4
|
+
}
|
|
5
|
+
function E(e) {
|
|
6
|
+
const t = e;
|
|
7
|
+
Object.keys(t).forEach((n) => {
|
|
8
|
+
try {
|
|
9
|
+
t[n] = null;
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
try {
|
|
13
|
+
delete t[n];
|
|
14
|
+
} catch {
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function M(e, t) {
|
|
19
|
+
return t === void 0 && (t = 0), setTimeout(e, t);
|
|
20
|
+
}
|
|
21
|
+
function C() {
|
|
22
|
+
return Date.now();
|
|
23
|
+
}
|
|
24
|
+
function T(e) {
|
|
25
|
+
const t = c();
|
|
26
|
+
let n;
|
|
27
|
+
return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
|
|
28
|
+
}
|
|
29
|
+
function v(e, t) {
|
|
30
|
+
t === void 0 && (t = "x");
|
|
31
|
+
const n = c();
|
|
32
|
+
let r, i, s;
|
|
33
|
+
const l = T(e);
|
|
34
|
+
return n.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((o) => o.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), t === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
|
|
35
|
+
}
|
|
36
|
+
function p(e) {
|
|
37
|
+
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
38
|
+
}
|
|
39
|
+
function b(e) {
|
|
40
|
+
return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
41
|
+
}
|
|
42
|
+
function w() {
|
|
43
|
+
const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
|
|
44
|
+
for (let n = 1; n < arguments.length; n += 1) {
|
|
45
|
+
const r = n < 0 || arguments.length <= n ? void 0 : arguments[n];
|
|
46
|
+
if (r != null && !b(r)) {
|
|
47
|
+
const i = Object.keys(Object(r)).filter((s) => t.indexOf(s) < 0);
|
|
48
|
+
for (let s = 0, l = i.length; s < l; s += 1) {
|
|
49
|
+
const o = i[s], a = Object.getOwnPropertyDescriptor(r, o);
|
|
50
|
+
a !== void 0 && a.enumerable && (p(e[o]) && p(r[o]) ? r[o].__swiper__ ? e[o] = r[o] : w(e[o], r[o]) : !p(e[o]) && p(r[o]) ? (e[o] = {}, r[o].__swiper__ ? e[o] = r[o] : w(e[o], r[o])) : e[o] = r[o]);
|
|
51
|
+
}
|
|
7
52
|
}
|
|
8
|
-
}
|
|
53
|
+
}
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
function O(e, t, n) {
|
|
57
|
+
e.style.setProperty(t, n);
|
|
58
|
+
}
|
|
59
|
+
function P(e) {
|
|
60
|
+
let {
|
|
61
|
+
swiper: t,
|
|
62
|
+
targetPosition: n,
|
|
63
|
+
side: r
|
|
64
|
+
} = e;
|
|
65
|
+
const i = c(), s = -t.translate;
|
|
66
|
+
let l = null, o;
|
|
67
|
+
const a = t.params.speed;
|
|
68
|
+
t.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(t.cssModeFrameID);
|
|
69
|
+
const d = n > s ? "next" : "prev", g = (f, m) => d === "next" && f >= m || d === "prev" && f <= m, h = () => {
|
|
70
|
+
o = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = o);
|
|
71
|
+
const f = Math.max(Math.min((o - l) / a, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
|
|
72
|
+
let u = s + m * (n - s);
|
|
73
|
+
if (g(u, n) && (u = n), t.wrapperEl.scrollTo({
|
|
74
|
+
[r]: u
|
|
75
|
+
}), g(u, n)) {
|
|
76
|
+
t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
77
|
+
t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
|
|
78
|
+
[r]: u
|
|
79
|
+
});
|
|
80
|
+
}), i.cancelAnimationFrame(t.cssModeFrameID);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
t.cssModeFrameID = i.requestAnimationFrame(h);
|
|
84
|
+
};
|
|
85
|
+
h();
|
|
86
|
+
}
|
|
87
|
+
function F(e) {
|
|
88
|
+
return e.querySelector(".swiper-slide-transform") || e.shadowRoot && e.shadowRoot.querySelector(".swiper-slide-transform") || e;
|
|
89
|
+
}
|
|
90
|
+
function j(e, t) {
|
|
91
|
+
t === void 0 && (t = "");
|
|
92
|
+
const n = [...e.children];
|
|
93
|
+
return e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((r) => r.matches(t)) : n;
|
|
94
|
+
}
|
|
95
|
+
function L(e, t) {
|
|
96
|
+
const n = t.contains(e);
|
|
97
|
+
return !n && t instanceof HTMLSlotElement ? [...t.assignedElements()].includes(e) : n;
|
|
98
|
+
}
|
|
99
|
+
function _(e) {
|
|
100
|
+
try {
|
|
101
|
+
console.warn(e);
|
|
102
|
+
return;
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function A(e, t) {
|
|
107
|
+
t === void 0 && (t = []);
|
|
108
|
+
const n = document.createElement(e);
|
|
109
|
+
return n.classList.add(...Array.isArray(t) ? t : S(t)), n;
|
|
110
|
+
}
|
|
111
|
+
function k(e) {
|
|
112
|
+
const t = c(), n = y(), r = e.getBoundingClientRect(), i = n.body, s = e.clientTop || i.clientTop || 0, l = e.clientLeft || i.clientLeft || 0, o = e === t ? t.scrollY : e.scrollTop, a = e === t ? t.scrollX : e.scrollLeft;
|
|
113
|
+
return {
|
|
114
|
+
top: r.top + o - s,
|
|
115
|
+
left: r.left + a - l
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function D(e, t) {
|
|
119
|
+
const n = [];
|
|
120
|
+
for (; e.previousElementSibling; ) {
|
|
121
|
+
const r = e.previousElementSibling;
|
|
122
|
+
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
123
|
+
}
|
|
124
|
+
return n;
|
|
125
|
+
}
|
|
126
|
+
function I(e, t) {
|
|
127
|
+
const n = [];
|
|
128
|
+
for (; e.nextElementSibling; ) {
|
|
129
|
+
const r = e.nextElementSibling;
|
|
130
|
+
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
131
|
+
}
|
|
132
|
+
return n;
|
|
133
|
+
}
|
|
134
|
+
function W(e, t) {
|
|
135
|
+
return c().getComputedStyle(e, null).getPropertyValue(t);
|
|
136
|
+
}
|
|
137
|
+
function H(e) {
|
|
138
|
+
let t = e, n;
|
|
139
|
+
if (t) {
|
|
140
|
+
for (n = 0; (t = t.previousSibling) !== null; )
|
|
141
|
+
t.nodeType === 1 && (n += 1);
|
|
142
|
+
return n;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function K(e, t) {
|
|
146
|
+
const n = [];
|
|
147
|
+
let r = e.parentElement;
|
|
148
|
+
for (; r; )
|
|
149
|
+
t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
|
|
150
|
+
return n;
|
|
151
|
+
}
|
|
152
|
+
function q(e, t) {
|
|
153
|
+
function n(r) {
|
|
154
|
+
r.target === e && (t.call(e, r), e.removeEventListener("transitionend", n));
|
|
155
|
+
}
|
|
156
|
+
t && e.addEventListener("transitionend", n);
|
|
157
|
+
}
|
|
158
|
+
function R(e, t, n) {
|
|
159
|
+
const r = c();
|
|
160
|
+
return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
|
161
|
+
}
|
|
162
|
+
function V(e) {
|
|
163
|
+
return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
|
|
164
|
+
}
|
|
165
|
+
function B(e) {
|
|
166
|
+
return (t) => Math.abs(t) > 0 && e.browser && e.browser.need3dFix && Math.abs(t) % 90 === 0 ? t + 1e-3 : t;
|
|
9
167
|
}
|
|
10
168
|
export {
|
|
11
|
-
|
|
169
|
+
K as a,
|
|
170
|
+
k as b,
|
|
171
|
+
A as c,
|
|
172
|
+
C as d,
|
|
173
|
+
j as e,
|
|
174
|
+
R as f,
|
|
175
|
+
F as g,
|
|
176
|
+
H as h,
|
|
177
|
+
S as i,
|
|
178
|
+
v as j,
|
|
179
|
+
q as k,
|
|
180
|
+
p as l,
|
|
181
|
+
V as m,
|
|
182
|
+
M as n,
|
|
183
|
+
B as o,
|
|
184
|
+
W as p,
|
|
185
|
+
I as q,
|
|
186
|
+
D as r,
|
|
187
|
+
O as s,
|
|
188
|
+
P as t,
|
|
189
|
+
_ as u,
|
|
190
|
+
L as v,
|
|
191
|
+
w,
|
|
192
|
+
E as x
|
|
12
193
|
};
|
package/index301.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index300.js");function o(i,f,l,n){return i.params.createElements&&Object.keys(n).forEach(e=>{if(!l[e]&&l.auto===!0){let t=u.e(i.el,`.${n[e]}`)[0];t||(t=u.c("div",n[e]),t.className=n[e],i.el.append(t)),l[e]=t,f[e]=t}}),l}exports.c=o;
|
package/index301.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { e as i, c as m } from "./index300.mjs";
|
|
2
|
+
function o(f, a, n, l) {
|
|
3
|
+
return f.params.createElements && Object.keys(l).forEach((e) => {
|
|
4
|
+
if (!n[e] && n.auto === !0) {
|
|
5
|
+
let t = i(f.el, `.${l[e]}`)[0];
|
|
6
|
+
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
|
7
|
+
}
|
|
8
|
+
}), n;
|
|
3
9
|
}
|
|
4
10
|
export {
|
|
5
|
-
|
|
11
|
+
o as c
|
|
6
12
|
};
|
package/index302.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}exports.c=r;
|
package/index302.mjs
CHANGED
|
@@ -1,39 +1,6 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
effect: s,
|
|
4
|
-
swiper: e,
|
|
5
|
-
on: r,
|
|
6
|
-
setTranslate: f,
|
|
7
|
-
setTransition: p,
|
|
8
|
-
overwriteParams: n,
|
|
9
|
-
perspective: o,
|
|
10
|
-
recreateShadows: l,
|
|
11
|
-
getEffectParams: c
|
|
12
|
-
} = d;
|
|
13
|
-
r("beforeInit", () => {
|
|
14
|
-
if (e.params.effect !== s) return;
|
|
15
|
-
e.classNames.push(`${e.params.containerModifierClass}${s}`), o && o() && e.classNames.push(`${e.params.containerModifierClass}3d`);
|
|
16
|
-
const a = n ? n() : {};
|
|
17
|
-
Object.assign(e.params, a), Object.assign(e.originalParams, a);
|
|
18
|
-
}), r("setTranslate", () => {
|
|
19
|
-
e.params.effect === s && f();
|
|
20
|
-
}), r("setTransition", (a, i) => {
|
|
21
|
-
e.params.effect === s && p(i);
|
|
22
|
-
}), r("transitionEnd", () => {
|
|
23
|
-
if (e.params.effect === s && l) {
|
|
24
|
-
if (!c || !c().slideShadows) return;
|
|
25
|
-
e.slides.forEach((a) => {
|
|
26
|
-
a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((i) => i.remove());
|
|
27
|
-
}), l();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
let t;
|
|
31
|
-
r("virtualUpdate", () => {
|
|
32
|
-
e.params.effect === s && (e.slides.length || (t = !0), requestAnimationFrame(() => {
|
|
33
|
-
t && e.slides && e.slides.length && (f(), t = !1);
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
1
|
+
function r(e) {
|
|
2
|
+
return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
36
3
|
}
|
|
37
4
|
export {
|
|
38
|
-
|
|
5
|
+
r as c
|
|
39
6
|
};
|
package/index303.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(d){const{effect:s,swiper:e,on:r,setTranslate:n,setTransition:p,overwriteParams:f,perspective:o,recreateShadows:l,getEffectParams:c}=d;r("beforeInit",()=>{if(e.params.effect!==s)return;e.classNames.push(`${e.params.containerModifierClass}${s}`),o&&o()&&e.classNames.push(`${e.params.containerModifierClass}3d`);const t=f?f():{};Object.assign(e.params,t),Object.assign(e.originalParams,t)}),r("setTranslate",()=>{e.params.effect===s&&n()}),r("setTransition",(t,i)=>{e.params.effect===s&&p(i)}),r("transitionEnd",()=>{if(e.params.effect===s&&l){if(!c||!c().slideShadows)return;e.slides.forEach(t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(i=>i.remove())}),l()}});let a;r("virtualUpdate",()=>{e.params.effect===s&&(e.slides.length||(a=!0),requestAnimationFrame(()=>{a&&e.slides&&e.slides.length&&(n(),a=!1)}))})}exports.e=m;
|
package/index303.mjs
CHANGED
|
@@ -1,8 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
function m(d) {
|
|
2
|
+
const {
|
|
3
|
+
effect: s,
|
|
4
|
+
swiper: e,
|
|
5
|
+
on: r,
|
|
6
|
+
setTranslate: f,
|
|
7
|
+
setTransition: p,
|
|
8
|
+
overwriteParams: n,
|
|
9
|
+
perspective: o,
|
|
10
|
+
recreateShadows: l,
|
|
11
|
+
getEffectParams: c
|
|
12
|
+
} = d;
|
|
13
|
+
r("beforeInit", () => {
|
|
14
|
+
if (e.params.effect !== s) return;
|
|
15
|
+
e.classNames.push(`${e.params.containerModifierClass}${s}`), o && o() && e.classNames.push(`${e.params.containerModifierClass}3d`);
|
|
16
|
+
const a = n ? n() : {};
|
|
17
|
+
Object.assign(e.params, a), Object.assign(e.originalParams, a);
|
|
18
|
+
}), r("setTranslate", () => {
|
|
19
|
+
e.params.effect === s && f();
|
|
20
|
+
}), r("setTransition", (a, i) => {
|
|
21
|
+
e.params.effect === s && p(i);
|
|
22
|
+
}), r("transitionEnd", () => {
|
|
23
|
+
if (e.params.effect === s && l) {
|
|
24
|
+
if (!c || !c().slideShadows) return;
|
|
25
|
+
e.slides.forEach((a) => {
|
|
26
|
+
a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((i) => i.remove());
|
|
27
|
+
}), l();
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
let t;
|
|
31
|
+
r("virtualUpdate", () => {
|
|
32
|
+
e.params.effect === s && (e.slides.length || (t = !0), requestAnimationFrame(() => {
|
|
33
|
+
t && e.slides && e.slides.length && (f(), t = !1);
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
5
36
|
}
|
|
6
37
|
export {
|
|
7
|
-
|
|
38
|
+
m as e
|
|
8
39
|
};
|
package/index304.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index300.js");function r(c,t){const e=i.g(t);return e!==t&&(e.style.backfaceVisibility="hidden",e.style["-webkit-backface-visibility"]="hidden"),e}exports.e=r;
|
package/index304.mjs
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
duration: o,
|
|
6
|
-
transformElements: s,
|
|
7
|
-
allSlides: l
|
|
8
|
-
} = a;
|
|
9
|
-
const {
|
|
10
|
-
activeIndex: d
|
|
11
|
-
} = e, c = (n) => n.parentElement ? n.parentElement : e.slides.filter((t) => t.shadowRoot && t.shadowRoot === n.parentNode)[0];
|
|
12
|
-
if (e.params.virtualTranslate && o !== 0) {
|
|
13
|
-
let n = !1, r;
|
|
14
|
-
l ? r = s : r = s.filter((t) => {
|
|
15
|
-
const i = t.classList.contains("swiper-slide-transform") ? c(t) : t;
|
|
16
|
-
return e.getSlideIndex(i) === d;
|
|
17
|
-
}), r.forEach((t) => {
|
|
18
|
-
f(t, () => {
|
|
19
|
-
if (n || !e || e.destroyed) return;
|
|
20
|
-
n = !0, e.animating = !1;
|
|
21
|
-
const i = new window.CustomEvent("transitionend", {
|
|
22
|
-
bubbles: !0,
|
|
23
|
-
cancelable: !0
|
|
24
|
-
});
|
|
25
|
-
e.wrapperEl.dispatchEvent(i);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
1
|
+
import { g as i } from "./index300.mjs";
|
|
2
|
+
function r(a, t) {
|
|
3
|
+
const e = i(t);
|
|
4
|
+
return e !== t && (e.style.backfaceVisibility = "hidden", e.style["-webkit-backface-visibility"] = "hidden"), e;
|
|
29
5
|
}
|
|
30
6
|
export {
|
|
31
|
-
|
|
7
|
+
r as e
|
|
32
8
|
};
|
package/index305.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index300.js");function f(a){let{swiper:e,duration:l,transformElements:s,allSlides:o}=a;const{activeIndex:d}=e,u=n=>n.parentElement?n.parentElement:e.slides.filter(t=>t.shadowRoot&&t.shadowRoot===n.parentNode)[0];if(e.params.virtualTranslate&&l!==0){let n=!1,r;o?r=s:r=s.filter(t=>{const i=t.classList.contains("swiper-slide-transform")?u(t):t;return e.getSlideIndex(i)===d}),r.forEach(t=>{c.k(t,()=>{if(n||!e||e.destroyed)return;n=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)})})}}exports.e=f;
|
package/index305.mjs
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { k as f } from "./index300.mjs";
|
|
2
|
+
function p(a) {
|
|
3
|
+
let {
|
|
4
|
+
swiper: e,
|
|
5
|
+
duration: o,
|
|
6
|
+
transformElements: s,
|
|
7
|
+
allSlides: l
|
|
8
|
+
} = a;
|
|
9
|
+
const {
|
|
10
|
+
activeIndex: d
|
|
11
|
+
} = e, c = (n) => n.parentElement ? n.parentElement : e.slides.filter((t) => t.shadowRoot && t.shadowRoot === n.parentNode)[0];
|
|
12
|
+
if (e.params.virtualTranslate && o !== 0) {
|
|
13
|
+
let n = !1, r;
|
|
14
|
+
l ? r = s : r = s.filter((t) => {
|
|
15
|
+
const i = t.classList.contains("swiper-slide-transform") ? c(t) : t;
|
|
16
|
+
return e.getSlideIndex(i) === d;
|
|
17
|
+
}), r.forEach((t) => {
|
|
18
|
+
f(t, () => {
|
|
19
|
+
if (n || !e || e.destroyed) return;
|
|
20
|
+
n = !0, e.animating = !1;
|
|
21
|
+
const i = new window.CustomEvent("transitionend", {
|
|
22
|
+
bubbles: !0,
|
|
23
|
+
cancelable: !0
|
|
24
|
+
});
|
|
25
|
+
e.wrapperEl.dispatchEvent(i);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
6
29
|
}
|
|
7
30
|
export {
|
|
8
|
-
|
|
31
|
+
p as e
|
|
9
32
|
};
|
package/index306.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index300.js");function l(t,a,o){const s=`swiper-slide-shadow${o?`-${o}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=r.g(a);let e=i.querySelector(`.${s.split(" ").join(".")}`);return e||(e=r.c("div",s.split(" ")),i.append(e)),e}exports.c=l;
|
package/index306.mjs
CHANGED
|
@@ -1,65 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let f = null, w = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
7
|
-
function u(e, n) {
|
|
8
|
-
for (let t of w) t(e, n);
|
|
9
|
-
}
|
|
10
|
-
function g(e) {
|
|
11
|
-
return !(e.metaKey || !L() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
12
|
-
}
|
|
13
|
-
function d(e) {
|
|
14
|
-
a = !0, g(e) && (f = "keyboard", u("keyboard", e));
|
|
15
|
-
}
|
|
16
|
-
function o(e) {
|
|
17
|
-
f = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (a = !0, u("pointer", e));
|
|
18
|
-
}
|
|
19
|
-
function l(e) {
|
|
20
|
-
y(e) && (a = !0, f = "virtual");
|
|
21
|
-
}
|
|
22
|
-
function p(e) {
|
|
23
|
-
e.target === window || e.target === document || b || !e.isTrusted || (!a && !c && (f = "virtual", u("virtual", e)), a = !1, c = !1);
|
|
24
|
-
}
|
|
25
|
-
function E() {
|
|
26
|
-
b || (a = !1, c = !0);
|
|
27
|
-
}
|
|
28
|
-
function $(e) {
|
|
29
|
-
if (typeof window > "u" || i.get(s(e))) return;
|
|
30
|
-
const n = s(e), t = v(e);
|
|
31
|
-
let r = n.HTMLElement.prototype.focus;
|
|
32
|
-
n.HTMLElement.prototype.focus = function() {
|
|
33
|
-
a = !0, r.apply(this, arguments);
|
|
34
|
-
}, t.addEventListener("keydown", d, !0), t.addEventListener("keyup", d, !0), t.addEventListener("click", l, !0), n.addEventListener("focus", p, !0), n.addEventListener("blur", E, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", o, !0), t.addEventListener("pointermove", o, !0), t.addEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", o, !0), t.addEventListener("mousemove", o, !0), t.addEventListener("mouseup", o, !0)), n.addEventListener("beforeunload", () => {
|
|
35
|
-
m(e);
|
|
36
|
-
}, {
|
|
37
|
-
once: !0
|
|
38
|
-
}), i.set(n, {
|
|
39
|
-
focus: r
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
const m = (e, n) => {
|
|
43
|
-
const t = s(e), r = v(e);
|
|
44
|
-
n && r.removeEventListener("DOMContentLoaded", n), i.has(t) && (t.HTMLElement.prototype.focus = i.get(t).focus, r.removeEventListener("keydown", d, !0), r.removeEventListener("keyup", d, !0), r.removeEventListener("click", l, !0), t.removeEventListener("focus", p, !0), t.removeEventListener("blur", E, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", o, !0), r.removeEventListener("pointermove", o, !0), r.removeEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", o, !0), r.removeEventListener("mousemove", o, !0), r.removeEventListener("mouseup", o, !0)), i.delete(t));
|
|
45
|
-
};
|
|
46
|
-
function k(e) {
|
|
47
|
-
const n = v(e);
|
|
48
|
-
let t;
|
|
49
|
-
return n.readyState !== "loading" ? $(e) : (t = () => {
|
|
50
|
-
$(e);
|
|
51
|
-
}, n.addEventListener("DOMContentLoaded", t)), () => m(e, t);
|
|
52
|
-
}
|
|
53
|
-
typeof document < "u" && k();
|
|
54
|
-
function D() {
|
|
55
|
-
return f;
|
|
56
|
-
}
|
|
57
|
-
function F(e) {
|
|
58
|
-
f = e, u(e, null);
|
|
1
|
+
import { g as i, c as l } from "./index300.mjs";
|
|
2
|
+
function d(s, r, o) {
|
|
3
|
+
const a = `swiper-slide-shadow${o ? `-${o}` : ""}${s ? ` swiper-slide-shadow-${s}` : ""}`, t = i(r);
|
|
4
|
+
let e = t.querySelector(`.${a.split(" ").join(".")}`);
|
|
5
|
+
return e || (e = l("div", a.split(" ")), t.append(e)), e;
|
|
59
6
|
}
|
|
60
7
|
export {
|
|
61
|
-
|
|
62
|
-
D as getInteractionModality,
|
|
63
|
-
i as hasSetupGlobalListeners,
|
|
64
|
-
F as setInteractionModality
|
|
8
|
+
d as c
|
|
65
9
|
};
|
package/index307.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index311.js"),u=require("./index180.js"),m=require("./index185.js"),L=require("./index199.js");require("react");let f=null,y=new Set,a=new Map,i=!1,c=!1;function d(e,n){for(let t of y)t(e,n)}function g(e){return!(e.metaKey||!m.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function s(e){i=!0,g(e)&&(f="keyboard",d("keyboard",e))}function o(e){f="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(i=!0,d("pointer",e))}function b(e){L.isVirtualClick(e)&&(i=!0,f="virtual")}function $(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!i&&!c&&(f="virtual",d("virtual",e)),i=!1,c=!1)}function E(){l.ignoreFocusEvent||(i=!1,c=!0)}function v(e){if(typeof window>"u"||a.get(u.getOwnerWindow(e)))return;const n=u.getOwnerWindow(e),t=u.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){i=!0,r.apply(this,arguments)},t.addEventListener("keydown",s,!0),t.addEventListener("keyup",s,!0),t.addEventListener("click",b,!0),n.addEventListener("focus",$,!0),n.addEventListener("blur",E,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),a.set(n,{focus:r})}const p=(e,n)=>{const t=u.getOwnerWindow(e),r=u.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),a.has(t)&&(t.HTMLElement.prototype.focus=a.get(t).focus,r.removeEventListener("keydown",s,!0),r.removeEventListener("keyup",s,!0),r.removeEventListener("click",b,!0),t.removeEventListener("focus",$,!0),t.removeEventListener("blur",E,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),a.delete(t))};function w(e){const n=u.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&w();function O(){return f}function k(e){f=e,d(e,null)}exports.addWindowFocusTracking=w;exports.getInteractionModality=O;exports.hasSetupGlobalListeners=a;exports.setInteractionModality=k;
|
package/index307.mjs
CHANGED
|
@@ -1,9 +1,65 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ignoreFocusEvent as b } from "./index311.mjs";
|
|
2
|
+
import { getOwnerDocument as v, getOwnerWindow as s } from "./index180.mjs";
|
|
3
|
+
import { isMac as L } from "./index185.mjs";
|
|
4
|
+
import { isVirtualClick as y } from "./index199.mjs";
|
|
5
|
+
import "react";
|
|
6
|
+
let f = null, w = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
7
|
+
function u(e, n) {
|
|
8
|
+
for (let t of w) t(e, n);
|
|
9
|
+
}
|
|
10
|
+
function g(e) {
|
|
11
|
+
return !(e.metaKey || !L() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
12
|
+
}
|
|
13
|
+
function d(e) {
|
|
14
|
+
a = !0, g(e) && (f = "keyboard", u("keyboard", e));
|
|
15
|
+
}
|
|
16
|
+
function o(e) {
|
|
17
|
+
f = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (a = !0, u("pointer", e));
|
|
18
|
+
}
|
|
19
|
+
function l(e) {
|
|
20
|
+
y(e) && (a = !0, f = "virtual");
|
|
21
|
+
}
|
|
22
|
+
function p(e) {
|
|
23
|
+
e.target === window || e.target === document || b || !e.isTrusted || (!a && !c && (f = "virtual", u("virtual", e)), a = !1, c = !1);
|
|
24
|
+
}
|
|
25
|
+
function E() {
|
|
26
|
+
b || (a = !1, c = !0);
|
|
27
|
+
}
|
|
28
|
+
function $(e) {
|
|
29
|
+
if (typeof window > "u" || i.get(s(e))) return;
|
|
30
|
+
const n = s(e), t = v(e);
|
|
31
|
+
let r = n.HTMLElement.prototype.focus;
|
|
32
|
+
n.HTMLElement.prototype.focus = function() {
|
|
33
|
+
a = !0, r.apply(this, arguments);
|
|
34
|
+
}, t.addEventListener("keydown", d, !0), t.addEventListener("keyup", d, !0), t.addEventListener("click", l, !0), n.addEventListener("focus", p, !0), n.addEventListener("blur", E, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", o, !0), t.addEventListener("pointermove", o, !0), t.addEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", o, !0), t.addEventListener("mousemove", o, !0), t.addEventListener("mouseup", o, !0)), n.addEventListener("beforeunload", () => {
|
|
35
|
+
m(e);
|
|
36
|
+
}, {
|
|
37
|
+
once: !0
|
|
38
|
+
}), i.set(n, {
|
|
39
|
+
focus: r
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
const m = (e, n) => {
|
|
43
|
+
const t = s(e), r = v(e);
|
|
44
|
+
n && r.removeEventListener("DOMContentLoaded", n), i.has(t) && (t.HTMLElement.prototype.focus = i.get(t).focus, r.removeEventListener("keydown", d, !0), r.removeEventListener("keyup", d, !0), r.removeEventListener("click", l, !0), t.removeEventListener("focus", p, !0), t.removeEventListener("blur", E, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", o, !0), r.removeEventListener("pointermove", o, !0), r.removeEventListener("pointerup", o, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", o, !0), r.removeEventListener("mousemove", o, !0), r.removeEventListener("mouseup", o, !0)), i.delete(t));
|
|
45
|
+
};
|
|
46
|
+
function k(e) {
|
|
47
|
+
const n = v(e);
|
|
48
|
+
let t;
|
|
49
|
+
return n.readyState !== "loading" ? $(e) : (t = () => {
|
|
50
|
+
$(e);
|
|
51
|
+
}, n.addEventListener("DOMContentLoaded", t)), () => m(e, t);
|
|
52
|
+
}
|
|
53
|
+
typeof document < "u" && k();
|
|
54
|
+
function D() {
|
|
55
|
+
return f;
|
|
56
|
+
}
|
|
57
|
+
function F(e) {
|
|
58
|
+
f = e, u(e, null);
|
|
59
|
+
}
|
|
7
60
|
export {
|
|
8
|
-
|
|
61
|
+
k as addWindowFocusTracking,
|
|
62
|
+
D as getInteractionModality,
|
|
63
|
+
i as hasSetupGlobalListeners,
|
|
64
|
+
F as setInteractionModality
|
|
9
65
|
};
|
package/index308.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index318.js"),d=require("./index310.js"),P=require("./index312.js"),n=require("./index134.js"),x=require("./index191.js"),r=require("react");let a=r.createContext(null);function y(e){let t=r.useContext(a)||{};x.useSyncRef(t,e);let{ref:u,...o}=t;return o}function $(e,t){let{focusProps:u}=d.useFocus(e),{keyboardProps:o}=P.useKeyboard(e),f=n.mergeProps(u,o),l=y(t),i=e.isDisabled?{}:l,s=r.useRef(e.autoFocus);r.useEffect(()=>{s.current&&t.current&&b.focusSafely(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:n.mergeProps({...f,tabIndex:c},i)}}exports.FocusableContext=a;exports.useFocusable=$;
|