@okam/stack-ui 1.30.0 → 1.30.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/components/Popover/index.d.ts +3 -1
- package/index.js +1 -1
- package/index10.js +1 -1
- package/index10.mjs +1 -0
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index110.js +1 -1
- package/index110.mjs +2 -2
- package/index116.js +1 -1
- package/index116.mjs +9 -9
- package/index117.js +1 -1
- package/index117.mjs +9 -9
- package/index121.js +1 -1
- package/index121.mjs +2 -2
- package/index127.js +1 -1
- package/index127.mjs +46 -12
- package/index128.js +1 -1
- package/index128.mjs +241 -46
- package/index129.js +2 -1
- package/index129.mjs +13 -241
- package/index13.js +1 -1
- package/index13.mjs +9 -8
- package/index130.js +1 -2
- package/index130.mjs +29 -12
- package/index131.js +1 -1
- package/index131.mjs +11 -29
- package/index132.js +1 -1
- package/index132.mjs +2 -2
- package/index135.js +1 -1
- package/index135.mjs +196 -58
- package/index136.js +1 -1
- package/index136.mjs +60 -90
- package/index137.js +1 -1
- package/index137.mjs +140 -32
- package/index138.js +1 -1
- package/index138.mjs +114 -116
- package/index139.js +1 -1
- package/index139.mjs +217 -27
- package/index140.js +1 -1
- package/index140.mjs +188 -122
- package/index141.js +1 -1
- package/index141.mjs +67 -132
- package/index142.js +1 -1
- package/index142.mjs +258 -14
- package/index143.js +1 -1
- package/index143.mjs +92 -90
- package/index144.js +1 -1
- package/index144.mjs +172 -104
- package/index145.js +1 -1
- package/index145.mjs +84 -5
- package/index146.js +1 -1
- package/index146.mjs +58 -3
- package/index147.js +1 -1
- package/index147.mjs +123 -122
- package/index148.js +1 -1
- package/index148.mjs +113 -26
- package/index149.js +1 -1
- package/index149.mjs +119 -48
- package/index150.js +1 -1
- package/index150.mjs +72 -44
- package/index151.js +1 -1
- package/index151.mjs +107 -34
- package/index152.js +1 -1
- package/index152.mjs +50 -111
- package/index153.js +1 -1
- package/index153.mjs +93 -77
- package/index154.js +1 -1
- package/index154.mjs +70 -101
- package/index155.js +1 -1
- package/index155.mjs +57 -98
- package/index156.js +1 -1
- package/index156.mjs +92 -192
- package/index157.js +5 -1
- package/index157.mjs +75 -59
- package/index158.js +1 -1
- package/index158.mjs +1995 -125
- package/index159.js +1 -1
- package/index159.mjs +56 -116
- package/index160.js +1 -1
- package/index160.mjs +185 -214
- package/index161.js +1 -1
- package/index161.mjs +58 -187
- package/index162.js +1 -1
- package/index162.mjs +89 -64
- package/index163.js +1 -1
- package/index163.mjs +32 -257
- package/index164.js +1 -1
- package/index164.mjs +117 -93
- package/index165.js +1 -1
- package/index165.mjs +27 -174
- package/index166.js +1 -1
- package/index166.mjs +123 -83
- package/index167.js +1 -1
- package/index167.mjs +132 -56
- package/index168.js +1 -1
- package/index168.mjs +14 -126
- package/index169.js +1 -1
- package/index169.mjs +92 -113
- package/index170.js +1 -1
- package/index170.mjs +103 -119
- package/index171.js +1 -1
- package/index171.mjs +5 -72
- package/index172.js +1 -1
- package/index172.mjs +3 -110
- package/index173.js +1 -1
- package/index173.mjs +124 -51
- package/index174.js +1 -1
- package/index174.mjs +29 -93
- package/index175.js +1 -1
- package/index175.mjs +51 -70
- package/index176.js +1 -1
- package/index176.mjs +44 -56
- package/index177.js +1 -1
- package/index177.mjs +36 -98
- package/index178.js +1 -5
- package/index178.mjs +111 -78
- package/index179.js +1 -1
- package/index179.mjs +74 -2008
- package/index180.js +1 -1
- package/index180.mjs +99 -57
- package/index181.js +1 -1
- package/index181.mjs +98 -189
- package/index182.js +1 -1
- package/index182.mjs +130 -5
- package/index183.js +1 -1
- package/index183.mjs +172 -123
- package/index184.js +1 -1
- package/index184.mjs +8 -178
- package/index185.js +1 -1
- package/index185.mjs +3 -9
- package/index186.js +1 -1
- package/index186.mjs +36 -3
- package/index187.js +1 -1
- package/index187.mjs +5 -36
- package/index188.js +1 -1
- package/index188.mjs +29 -5
- package/index189.js +1 -1
- package/index189.mjs +6 -29
- package/index190.js +1 -1
- package/index190.mjs +5 -6
- package/index191.js +1 -1
- package/index191.mjs +1 -1
- package/index2.js +1 -1
- package/index2.mjs +44 -43
- package/index23.js +1 -1
- package/index23.mjs +39 -38
- package/index24.js +1 -1
- package/index24.mjs +40 -39
- package/index6.js +1 -1
- package/index6.mjs +34 -34
- package/index88.js +1 -1
- package/index88.mjs +16 -13
- package/index98.js +1 -1
- package/index98.mjs +3 -3
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
- package/theme/DatePicker/index.d.ts +3 -2
package/index167.mjs
CHANGED
|
@@ -1,61 +1,137 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
function M(n, a) {
|
|
2
|
+
let r = n.copy(), e = "hour" in r ? g(r, a) : 0;
|
|
3
|
+
y(r, a.years || 0), r.calendar.balanceYearMonth && r.calendar.balanceYearMonth(r, n), r.month += a.months || 0, s(r), $(r), r.day += (a.weeks || 0) * 7, r.day += a.days || 0, r.day += e, u(r), r.calendar.balanceDate && r.calendar.balanceDate(r), r.year < 1 && (r.year = 1, r.month = 1, r.day = 1);
|
|
4
|
+
let c = r.calendar.getYearsInEra(r);
|
|
5
|
+
if (r.year > c) {
|
|
6
|
+
var d, h;
|
|
7
|
+
let o = (d = (h = r.calendar).isInverseEra) === null || d === void 0 ? void 0 : d.call(h, r);
|
|
8
|
+
r.year = c, r.month = o ? 1 : r.calendar.getMonthsInYear(r), r.day = o ? 1 : r.calendar.getDaysInMonth(r);
|
|
9
|
+
}
|
|
10
|
+
r.month < 1 && (r.month = 1, r.day = 1);
|
|
11
|
+
let l = r.calendar.getMonthsInYear(r);
|
|
12
|
+
return r.month > l && (r.month = l, r.day = r.calendar.getDaysInMonth(r)), r.day = Math.max(1, Math.min(r.calendar.getDaysInMonth(r), r.day)), r;
|
|
13
|
+
}
|
|
14
|
+
function y(n, a) {
|
|
15
|
+
var r, e;
|
|
16
|
+
!((r = (e = n.calendar).isInverseEra) === null || r === void 0) && r.call(e, n) && (a = -a), n.year += a;
|
|
17
|
+
}
|
|
18
|
+
function s(n) {
|
|
19
|
+
for (; n.month < 1; )
|
|
20
|
+
y(n, -1), n.month += n.calendar.getMonthsInYear(n);
|
|
21
|
+
let a = 0;
|
|
22
|
+
for (; n.month > (a = n.calendar.getMonthsInYear(n)); )
|
|
23
|
+
n.month -= a, y(n, 1);
|
|
24
|
+
}
|
|
25
|
+
function u(n) {
|
|
26
|
+
for (; n.day < 1; )
|
|
27
|
+
n.month--, s(n), n.day += n.calendar.getDaysInMonth(n);
|
|
28
|
+
for (; n.day > n.calendar.getDaysInMonth(n); )
|
|
29
|
+
n.day -= n.calendar.getDaysInMonth(n), n.month++, s(n);
|
|
30
|
+
}
|
|
31
|
+
function $(n) {
|
|
32
|
+
n.month = Math.max(1, Math.min(n.calendar.getMonthsInYear(n), n.month)), n.day = Math.max(1, Math.min(n.calendar.getDaysInMonth(n), n.day));
|
|
33
|
+
}
|
|
34
|
+
function f(n) {
|
|
35
|
+
n.calendar.constrainDate && n.calendar.constrainDate(n), n.year = Math.max(1, Math.min(n.calendar.getYearsInEra(n), n.year)), $(n);
|
|
36
|
+
}
|
|
37
|
+
function m(n) {
|
|
38
|
+
let a = {};
|
|
39
|
+
for (let r in n) typeof n[r] == "number" && (a[r] = -n[r]);
|
|
40
|
+
return a;
|
|
41
|
+
}
|
|
42
|
+
function x(n, a) {
|
|
43
|
+
return M(n, m(a));
|
|
44
|
+
}
|
|
45
|
+
function D(n, a) {
|
|
46
|
+
let r = n.copy();
|
|
47
|
+
return a.era != null && (r.era = a.era), a.year != null && (r.year = a.year), a.month != null && (r.month = a.month), a.day != null && (r.day = a.day), f(r), r;
|
|
48
|
+
}
|
|
49
|
+
function Y(n, a) {
|
|
50
|
+
let r = n.copy();
|
|
51
|
+
return a.hour != null && (r.hour = a.hour), a.minute != null && (r.minute = a.minute), a.second != null && (r.second = a.second), a.millisecond != null && (r.millisecond = a.millisecond), I(r), r;
|
|
52
|
+
}
|
|
53
|
+
function b(n) {
|
|
54
|
+
n.second += Math.floor(n.millisecond / 1e3), n.millisecond = i(n.millisecond, 1e3), n.minute += Math.floor(n.second / 60), n.second = i(n.second, 60), n.hour += Math.floor(n.minute / 60), n.minute = i(n.minute, 60);
|
|
55
|
+
let a = Math.floor(n.hour / 24);
|
|
56
|
+
return n.hour = i(n.hour, 24), a;
|
|
57
|
+
}
|
|
58
|
+
function I(n) {
|
|
59
|
+
n.millisecond = Math.max(0, Math.min(n.millisecond, 1e3)), n.second = Math.max(0, Math.min(n.second, 59)), n.minute = Math.max(0, Math.min(n.minute, 59)), n.hour = Math.max(0, Math.min(n.hour, 23));
|
|
60
|
+
}
|
|
61
|
+
function i(n, a) {
|
|
62
|
+
let r = n % a;
|
|
63
|
+
return r < 0 && (r += a), r;
|
|
64
|
+
}
|
|
65
|
+
function g(n, a) {
|
|
66
|
+
return n.hour += a.hours || 0, n.minute += a.minutes || 0, n.second += a.seconds || 0, n.millisecond += a.milliseconds || 0, b(n);
|
|
67
|
+
}
|
|
68
|
+
function w(n, a, r, e) {
|
|
69
|
+
let c = n.copy();
|
|
70
|
+
switch (a) {
|
|
71
|
+
case "era": {
|
|
72
|
+
let l = n.calendar.getEras(), o = l.indexOf(n.era);
|
|
73
|
+
if (o < 0) throw new Error("Invalid era: " + n.era);
|
|
74
|
+
o = t(o, r, 0, l.length - 1, e == null ? void 0 : e.round), c.era = l[o], f(c);
|
|
75
|
+
break;
|
|
32
76
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
77
|
+
case "year":
|
|
78
|
+
var d, h;
|
|
79
|
+
!((d = (h = c.calendar).isInverseEra) === null || d === void 0) && d.call(h, c) && (r = -r), c.year = t(n.year, r, -1 / 0, 9999, e == null ? void 0 : e.round), c.year === -1 / 0 && (c.year = 1), c.calendar.balanceYearMonth && c.calendar.balanceYearMonth(c, n);
|
|
80
|
+
break;
|
|
81
|
+
case "month":
|
|
82
|
+
c.month = t(n.month, r, 1, n.calendar.getMonthsInYear(n), e == null ? void 0 : e.round);
|
|
83
|
+
break;
|
|
84
|
+
case "day":
|
|
85
|
+
c.day = t(n.day, r, 1, n.calendar.getDaysInMonth(n), e == null ? void 0 : e.round);
|
|
86
|
+
break;
|
|
87
|
+
default:
|
|
88
|
+
throw new Error("Unsupported field " + a);
|
|
89
|
+
}
|
|
90
|
+
return n.calendar.balanceDate && n.calendar.balanceDate(c), f(c), c;
|
|
91
|
+
}
|
|
92
|
+
function k(n, a, r, e) {
|
|
93
|
+
let c = n.copy();
|
|
94
|
+
switch (a) {
|
|
95
|
+
case "hour": {
|
|
96
|
+
let d = n.hour, h = 0, l = 23;
|
|
97
|
+
if ((e == null ? void 0 : e.hourCycle) === 12) {
|
|
98
|
+
let o = d >= 12;
|
|
99
|
+
h = o ? 12 : 0, l = o ? 23 : 11;
|
|
100
|
+
}
|
|
101
|
+
c.hour = t(d, r, h, l, e == null ? void 0 : e.round);
|
|
102
|
+
break;
|
|
44
103
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
104
|
+
case "minute":
|
|
105
|
+
c.minute = t(n.minute, r, 0, 59, e == null ? void 0 : e.round);
|
|
106
|
+
break;
|
|
107
|
+
case "second":
|
|
108
|
+
c.second = t(n.second, r, 0, 59, e == null ? void 0 : e.round);
|
|
109
|
+
break;
|
|
110
|
+
case "millisecond":
|
|
111
|
+
c.millisecond = t(n.millisecond, r, 0, 999, e == null ? void 0 : e.round);
|
|
112
|
+
break;
|
|
113
|
+
default:
|
|
114
|
+
throw new Error("Unsupported field " + a);
|
|
115
|
+
}
|
|
116
|
+
return c;
|
|
117
|
+
}
|
|
118
|
+
function t(n, a, r, e, c = !1) {
|
|
119
|
+
if (c) {
|
|
120
|
+
n += Math.sign(a), n < r && (n = e);
|
|
121
|
+
let d = Math.abs(a);
|
|
122
|
+
a > 0 ? n = Math.ceil(n / d) * d : n = Math.floor(n / d) * d, n > e && (n = r);
|
|
123
|
+
} else
|
|
124
|
+
n += a, n < r ? n = e - (r - n - 1) : n > e && (n = r + (n - e - 1));
|
|
125
|
+
return n;
|
|
58
126
|
}
|
|
59
127
|
export {
|
|
60
|
-
|
|
128
|
+
M as add,
|
|
129
|
+
f as constrain,
|
|
130
|
+
I as constrainTime,
|
|
131
|
+
w as cycleDate,
|
|
132
|
+
k as cycleTime,
|
|
133
|
+
m as invertDuration,
|
|
134
|
+
D as set,
|
|
135
|
+
Y as setTime,
|
|
136
|
+
x as subtract
|
|
61
137
|
};
|
package/index168.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index170.js"),i=require("./index169.js");function a(r){return`${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}:${String(r.second).padStart(2,"0")}${r.millisecond?String(r.millisecond/1e3).slice(1):""}`}function e(r){let t=n.toCalendar(r,new i.GregorianCalendar);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function o(r){return`${e(r)}T${a(r)}`}exports.dateTimeToString=o;exports.dateToString=e;exports.timeToString=a;
|
package/index168.mjs
CHANGED
|
@@ -1,129 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
paused: !1,
|
|
13
|
-
timeLeft: 0
|
|
14
|
-
}, B({
|
|
15
|
-
autoplay: {
|
|
16
|
-
enabled: !1,
|
|
17
|
-
delay: 3e3,
|
|
18
|
-
waitForTransition: !0,
|
|
19
|
-
disableOnInteraction: !1,
|
|
20
|
-
stopOnLastSlide: !1,
|
|
21
|
-
reverseDirection: !1,
|
|
22
|
-
pauseOnMouseEnter: !1
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
let y, E, L = l && l.autoplay ? l.autoplay.delay : 3e3, g = l && l.autoplay ? l.autoplay.delay : 3e3, n, f = (/* @__PURE__ */ new Date()).getTime(), b, v, p, h, w, o, D;
|
|
26
|
-
function O(t) {
|
|
27
|
-
!e || e.destroyed || !e.wrapperEl || t.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", O), !D && u());
|
|
28
|
-
}
|
|
29
|
-
const M = () => {
|
|
30
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
31
|
-
e.autoplay.paused ? b = !0 : b && (g = n, b = !1);
|
|
32
|
-
const t = e.autoplay.paused ? n : f + g - (/* @__PURE__ */ new Date()).getTime();
|
|
33
|
-
e.autoplay.timeLeft = t, r("autoplayTimeLeft", t, t / L), E = requestAnimationFrame(() => {
|
|
34
|
-
M();
|
|
35
|
-
});
|
|
36
|
-
}, C = () => {
|
|
37
|
-
let t;
|
|
38
|
-
return e.virtual && e.params.virtual.enabled ? t = e.slides.filter((a) => a.classList.contains("swiper-slide-active"))[0] : t = e.slides[e.activeIndex], t ? parseInt(t.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
39
|
-
}, T = (t) => {
|
|
40
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
41
|
-
cancelAnimationFrame(E), M();
|
|
42
|
-
let i = typeof t > "u" ? e.params.autoplay.delay : t;
|
|
43
|
-
L = e.params.autoplay.delay, g = e.params.autoplay.delay;
|
|
44
|
-
const a = C();
|
|
45
|
-
!Number.isNaN(a) && a > 0 && typeof t > "u" && (i = a, L = a, g = a), n = i;
|
|
46
|
-
const c = e.params.speed, N = () => {
|
|
47
|
-
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, c, !0, !0), r("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, c, !0, !0), r("autoplay")), e.params.cssMode && (f = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
48
|
-
T();
|
|
49
|
-
})));
|
|
50
|
-
};
|
|
51
|
-
return i > 0 ? (clearTimeout(y), y = setTimeout(() => {
|
|
52
|
-
N();
|
|
53
|
-
}, i)) : requestAnimationFrame(() => {
|
|
54
|
-
N();
|
|
55
|
-
}), i;
|
|
56
|
-
}, I = () => {
|
|
57
|
-
f = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, T(), r("autoplayStart");
|
|
58
|
-
}, m = () => {
|
|
59
|
-
e.autoplay.running = !1, clearTimeout(y), cancelAnimationFrame(E), r("autoplayStop");
|
|
60
|
-
}, d = (t, i) => {
|
|
61
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
62
|
-
clearTimeout(y), t || (o = !0);
|
|
63
|
-
const a = () => {
|
|
64
|
-
r("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", O) : u();
|
|
65
|
-
};
|
|
66
|
-
if (e.autoplay.paused = !0, i) {
|
|
67
|
-
w && (n = e.params.autoplay.delay), w = !1, a();
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
n = (n || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - f), !(e.isEnd && n < 0 && !e.params.loop) && (n < 0 && (n = 0), a());
|
|
71
|
-
}, u = () => {
|
|
72
|
-
e.isEnd && n < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (f = (/* @__PURE__ */ new Date()).getTime(), o ? (o = !1, T(n)) : T(), e.autoplay.paused = !1, r("autoplayResume"));
|
|
73
|
-
}, A = () => {
|
|
74
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
75
|
-
const t = S();
|
|
76
|
-
t.visibilityState === "hidden" && (o = !0, d(!0)), t.visibilityState === "visible" && u();
|
|
77
|
-
}, P = (t) => {
|
|
78
|
-
t.pointerType === "mouse" && (o = !0, D = !0, !(e.animating || e.autoplay.paused) && d(!0));
|
|
79
|
-
}, F = (t) => {
|
|
80
|
-
t.pointerType === "mouse" && (D = !1, e.autoplay.paused && u());
|
|
81
|
-
}, q = () => {
|
|
82
|
-
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", P), e.el.addEventListener("pointerleave", F));
|
|
83
|
-
}, R = () => {
|
|
84
|
-
e.el.removeEventListener("pointerenter", P), e.el.removeEventListener("pointerleave", F);
|
|
85
|
-
}, _ = () => {
|
|
86
|
-
S().addEventListener("visibilitychange", A);
|
|
87
|
-
}, j = () => {
|
|
88
|
-
S().removeEventListener("visibilitychange", A);
|
|
89
|
-
};
|
|
90
|
-
s("init", () => {
|
|
91
|
-
e.params.autoplay.enabled && (q(), _(), I());
|
|
92
|
-
}), s("destroy", () => {
|
|
93
|
-
R(), j(), e.autoplay.running && m();
|
|
94
|
-
}), s("_freeModeStaticRelease", () => {
|
|
95
|
-
(p || o) && u();
|
|
96
|
-
}), s("_freeModeNoMomentumRelease", () => {
|
|
97
|
-
e.params.autoplay.disableOnInteraction ? m() : d(!0, !0);
|
|
98
|
-
}), s("beforeTransitionStart", (t, i, a) => {
|
|
99
|
-
e.destroyed || !e.autoplay.running || (a || !e.params.autoplay.disableOnInteraction ? d(!0, !0) : m());
|
|
100
|
-
}), s("sliderFirstMove", () => {
|
|
101
|
-
if (!(e.destroyed || !e.autoplay.running)) {
|
|
102
|
-
if (e.params.autoplay.disableOnInteraction) {
|
|
103
|
-
m();
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
v = !0, p = !1, o = !1, h = setTimeout(() => {
|
|
107
|
-
o = !0, p = !0, d(!0);
|
|
108
|
-
}, 200);
|
|
109
|
-
}
|
|
110
|
-
}), s("touchEnd", () => {
|
|
111
|
-
if (!(e.destroyed || !e.autoplay.running || !v)) {
|
|
112
|
-
if (clearTimeout(h), clearTimeout(y), e.params.autoplay.disableOnInteraction) {
|
|
113
|
-
p = !1, v = !1;
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
p && e.params.cssMode && u(), p = !1, v = !1;
|
|
117
|
-
}
|
|
118
|
-
}), s("slideChange", () => {
|
|
119
|
-
e.destroyed || !e.autoplay.running || (w = !0);
|
|
120
|
-
}), Object.assign(e.autoplay, {
|
|
121
|
-
start: I,
|
|
122
|
-
stop: m,
|
|
123
|
-
pause: d,
|
|
124
|
-
resume: u
|
|
125
|
-
});
|
|
1
|
+
import { toCalendar as t } from "./index170.mjs";
|
|
2
|
+
import { GregorianCalendar as e } from "./index169.mjs";
|
|
3
|
+
function n(a) {
|
|
4
|
+
return `${String(a.hour).padStart(2, "0")}:${String(a.minute).padStart(2, "0")}:${String(a.second).padStart(2, "0")}${a.millisecond ? String(a.millisecond / 1e3).slice(1) : ""}`;
|
|
5
|
+
}
|
|
6
|
+
function o(a) {
|
|
7
|
+
let r = t(a, new e());
|
|
8
|
+
return `${String(r.year).padStart(4, "0")}-${String(r.month).padStart(2, "0")}-${String(r.day).padStart(2, "0")}`;
|
|
9
|
+
}
|
|
10
|
+
function i(a) {
|
|
11
|
+
return `${o(a)}T${n(a)}`;
|
|
126
12
|
}
|
|
127
13
|
export {
|
|
128
|
-
|
|
14
|
+
i as dateTimeToString,
|
|
15
|
+
o as dateToString,
|
|
16
|
+
n as timeToString
|
|
129
17
|
};
|
package/index169.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("./index166.js"),b=require("./index172.js"),y=1721426;function l(r,e,t,f){e=g(r,e);let a=e-1,n=-2;return t<=2?n=0:d(e)&&(n=-1),y-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*t-362)/12+n+f)}function d(r){return r%4===0&&(r%100!==0||r%400===0)}function g(r,e){return r==="BC"?1-e:e}function M(r){let e="AD";return r<=0&&(e="BC",r=1-r),[e,r]}const q={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class B{fromJulianDay(e){let t=e,f=t-y,a=Math.floor(f/146097),n=b.mod(f,146097),c=Math.floor(n/36524),s=b.mod(n,36524),D=Math.floor(s/1461),p=b.mod(s,1461),$=Math.floor(p/365),C=a*400+c*100+D*4+$+(c!==4&&$!==4?1:0),[i,o]=M(C),m=t-l(i,o,1,1),u=2;t<l(i,o,3,1)?u=0:d(o)&&(u=1);let h=Math.floor(((m+u)*12+373)/367),x=t-l(i,o,h,1)+1;return new Y.CalendarDate(i,o,h,x)}toJulianDay(e){return l(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return q[d(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return d(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}exports.GregorianCalendar=B;exports.fromExtendedYear=M;exports.getExtendedYear=g;exports.gregorianToJulianDay=l;exports.isLeapYear=d;
|
package/index169.mjs
CHANGED
|
@@ -1,119 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { CalendarDate as m } from "./index166.mjs";
|
|
2
|
+
import { mod as s } from "./index172.mjs";
|
|
3
|
+
const p = 1721426;
|
|
4
|
+
function b(r, e, t, l) {
|
|
5
|
+
e = C(r, e);
|
|
6
|
+
let a = e - 1, n = -2;
|
|
7
|
+
return t <= 2 ? n = 0 : d(e) && (n = -1), p - 1 + 365 * a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + Math.floor((367 * t - 362) / 12 + n + l);
|
|
8
|
+
}
|
|
9
|
+
function d(r) {
|
|
10
|
+
return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
|
|
11
|
+
}
|
|
12
|
+
function C(r, e) {
|
|
13
|
+
return r === "BC" ? 1 - e : e;
|
|
14
|
+
}
|
|
15
|
+
function Y(r) {
|
|
16
|
+
let e = "AD";
|
|
17
|
+
return r <= 0 && (e = "BC", r = 1 - r), [
|
|
18
|
+
e,
|
|
19
|
+
r
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
const B = {
|
|
23
|
+
standard: [
|
|
24
|
+
31,
|
|
25
|
+
28,
|
|
26
|
+
31,
|
|
27
|
+
30,
|
|
28
|
+
31,
|
|
29
|
+
30,
|
|
30
|
+
31,
|
|
31
|
+
31,
|
|
32
|
+
30,
|
|
33
|
+
31,
|
|
34
|
+
30,
|
|
35
|
+
31
|
|
36
|
+
],
|
|
37
|
+
leapyear: [
|
|
38
|
+
31,
|
|
39
|
+
29,
|
|
40
|
+
31,
|
|
41
|
+
30,
|
|
42
|
+
31,
|
|
43
|
+
30,
|
|
44
|
+
31,
|
|
45
|
+
31,
|
|
46
|
+
30,
|
|
47
|
+
31,
|
|
48
|
+
30,
|
|
49
|
+
31
|
|
50
|
+
]
|
|
51
|
+
};
|
|
52
|
+
class q {
|
|
53
|
+
fromJulianDay(e) {
|
|
54
|
+
let t = e, l = t - p, a = Math.floor(l / 146097), n = s(l, 146097), $ = Math.floor(n / 36524), i = s(n, 36524), y = Math.floor(i / 1461), x = s(i, 1461), u = Math.floor(x / 365), M = a * 400 + $ * 100 + y * 4 + u + ($ !== 4 && u !== 4 ? 1 : 0), [f, o] = Y(M), g = t - b(f, o, 1, 1), c = 2;
|
|
55
|
+
t < b(f, o, 3, 1) ? c = 0 : d(o) && (c = 1);
|
|
56
|
+
let h = Math.floor(((g + c) * 12 + 373) / 367), D = t - b(f, o, h, 1) + 1;
|
|
57
|
+
return new m(f, o, h, D);
|
|
58
|
+
}
|
|
59
|
+
toJulianDay(e) {
|
|
60
|
+
return b(e.era, e.year, e.month, e.day);
|
|
61
|
+
}
|
|
62
|
+
getDaysInMonth(e) {
|
|
63
|
+
return B[d(e.year) ? "leapyear" : "standard"][e.month - 1];
|
|
64
|
+
}
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
66
|
+
getMonthsInYear(e) {
|
|
67
|
+
return 12;
|
|
68
|
+
}
|
|
69
|
+
getDaysInYear(e) {
|
|
70
|
+
return d(e.year) ? 366 : 365;
|
|
71
|
+
}
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
73
|
+
getYearsInEra(e) {
|
|
74
|
+
return 9999;
|
|
75
|
+
}
|
|
76
|
+
getEras() {
|
|
77
|
+
return [
|
|
78
|
+
"BC",
|
|
79
|
+
"AD"
|
|
80
|
+
];
|
|
81
|
+
}
|
|
82
|
+
isInverseEra(e) {
|
|
83
|
+
return e.era === "BC";
|
|
29
84
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
thumbs: t
|
|
33
|
-
} = e.params;
|
|
34
|
-
if (f) return !1;
|
|
35
|
-
f = !0;
|
|
36
|
-
const s = e.constructor;
|
|
37
|
-
if (t.swiper instanceof s)
|
|
38
|
-
e.thumbs.swiper = t.swiper, Object.assign(e.thumbs.swiper.originalParams, {
|
|
39
|
-
watchSlidesProgress: !0,
|
|
40
|
-
slideToClickedSlide: !1
|
|
41
|
-
}), Object.assign(e.thumbs.swiper.params, {
|
|
42
|
-
watchSlidesProgress: !0,
|
|
43
|
-
slideToClickedSlide: !1
|
|
44
|
-
}), e.thumbs.swiper.update();
|
|
45
|
-
else if (I(t.swiper)) {
|
|
46
|
-
const i = Object.assign({}, t.swiper);
|
|
47
|
-
Object.assign(i, {
|
|
48
|
-
watchSlidesProgress: !0,
|
|
49
|
-
slideToClickedSlide: !1
|
|
50
|
-
}), e.thumbs.swiper = new s(i), b = !0;
|
|
51
|
-
}
|
|
52
|
-
return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", x), !0;
|
|
85
|
+
balanceDate(e) {
|
|
86
|
+
e.year <= 0 && (e.era = e.era === "BC" ? "AD" : "BC", e.year = 1 - e.year);
|
|
53
87
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (!s || s.destroyed) return;
|
|
57
|
-
const i = s.params.slidesPerView === "auto" ? s.slidesPerViewDynamic() : s.params.slidesPerView;
|
|
58
|
-
let r = 1;
|
|
59
|
-
const n = e.params.thumbs.slideThumbActiveClass;
|
|
60
|
-
if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (r = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (r = 1), r = Math.floor(r), s.slides.forEach((l) => l.classList.remove(n)), s.params.loop || s.params.virtual && s.params.virtual.enabled)
|
|
61
|
-
for (let l = 0; l < r; l += 1)
|
|
62
|
-
g(s.slidesEl, `[data-swiper-slide-index="${e.realIndex + l}"]`).forEach((a) => {
|
|
63
|
-
a.classList.add(n);
|
|
64
|
-
});
|
|
65
|
-
else
|
|
66
|
-
for (let l = 0; l < r; l += 1)
|
|
67
|
-
s.slides[e.realIndex + l] && s.slides[e.realIndex + l].classList.add(n);
|
|
68
|
-
const d = e.params.thumbs.autoScrollOffset, p = d && !s.params.loop;
|
|
69
|
-
if (e.realIndex !== s.realIndex || p) {
|
|
70
|
-
const l = s.activeIndex;
|
|
71
|
-
let a, c;
|
|
72
|
-
if (s.params.loop) {
|
|
73
|
-
const S = s.slides.filter((T) => T.getAttribute("data-swiper-slide-index") === `${e.realIndex}`)[0];
|
|
74
|
-
a = s.slides.indexOf(S), c = e.activeIndex > e.previousIndex ? "next" : "prev";
|
|
75
|
-
} else
|
|
76
|
-
a = e.realIndex, c = a > e.previousIndex ? "next" : "prev";
|
|
77
|
-
p && (a += c === "next" ? d : -1 * d), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(a) < 0 && (s.params.centeredSlides ? a > l ? a = a - Math.floor(i / 2) + 1 : a = a + Math.floor(i / 2) - 1 : a > l && s.params.slidesPerGroup, s.slideTo(a, t ? 0 : void 0));
|
|
78
|
-
}
|
|
88
|
+
constructor() {
|
|
89
|
+
this.identifier = "gregory";
|
|
79
90
|
}
|
|
80
|
-
u("beforeInit", () => {
|
|
81
|
-
const {
|
|
82
|
-
thumbs: t
|
|
83
|
-
} = e.params;
|
|
84
|
-
if (!(!t || !t.swiper))
|
|
85
|
-
if (typeof t.swiper == "string" || t.swiper instanceof HTMLElement) {
|
|
86
|
-
const s = v(), i = () => {
|
|
87
|
-
const n = typeof t.swiper == "string" ? s.querySelector(t.swiper) : t.swiper;
|
|
88
|
-
if (n && n.swiper)
|
|
89
|
-
t.swiper = n.swiper, m(), o(!0);
|
|
90
|
-
else if (n) {
|
|
91
|
-
const d = (p) => {
|
|
92
|
-
t.swiper = p.detail[0], n.removeEventListener("init", d), m(), o(!0), t.swiper.update(), e.update();
|
|
93
|
-
};
|
|
94
|
-
n.addEventListener("init", d);
|
|
95
|
-
}
|
|
96
|
-
return n;
|
|
97
|
-
}, r = () => {
|
|
98
|
-
if (e.destroyed) return;
|
|
99
|
-
i() || requestAnimationFrame(r);
|
|
100
|
-
};
|
|
101
|
-
requestAnimationFrame(r);
|
|
102
|
-
} else
|
|
103
|
-
m(), o(!0);
|
|
104
|
-
}), u("slideChange update resize observerUpdate", () => {
|
|
105
|
-
o();
|
|
106
|
-
}), u("setTransition", (t, s) => {
|
|
107
|
-
const i = e.thumbs.swiper;
|
|
108
|
-
!i || i.destroyed || i.setTransition(s);
|
|
109
|
-
}), u("beforeDestroy", () => {
|
|
110
|
-
const t = e.thumbs.swiper;
|
|
111
|
-
!t || t.destroyed || b && t.destroy();
|
|
112
|
-
}), Object.assign(e.thumbs, {
|
|
113
|
-
init: m,
|
|
114
|
-
update: o
|
|
115
|
-
});
|
|
116
91
|
}
|
|
117
92
|
export {
|
|
118
|
-
|
|
93
|
+
q as GregorianCalendar,
|
|
94
|
+
Y as fromExtendedYear,
|
|
95
|
+
C as getExtendedYear,
|
|
96
|
+
b as gregorianToJulianDay,
|
|
97
|
+
d as isLeapYear
|
|
119
98
|
};
|
package/index170.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index166.js"),D=require("./index167.js"),f=require("./index169.js"),y=require("./index132.js");function c(e){e=m(e,new f.GregorianCalendar);let t=f.getExtendedYear(e.era,e.year);return $(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function $(e,t,n,r,o,a,u){let i=new Date;return i.setUTCHours(r,o,a,u),i.setUTCFullYear(e,t-1,n),i.getTime()}function s(e,t){if(t==="UTC")return 0;if(e>0&&t===y.getLocalTimeZone())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:a,minute:u,second:i}=p(e,t);return $(n,r,o,a,u,i,0)-Math.floor(e/1e3)*1e3}const d=new Map;function p(e,t){let n=d.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),d.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let a of r)a.type!=="literal"&&(o[a.type]=a.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const h=864e5;function C(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>v(e,t,a))}function v(e,t,n){let r=p(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function b(e,t,n="compatible"){let r=T(e);if(t==="UTC")return c(r);if(t===y.getLocalTimeZone()&&n==="compatible"){r=m(r,new f.GregorianCalendar);let l=new Date,g=f.getExtendedYear(r.era,r.year);return l.setFullYear(g,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=c(r),a=s(o-h,t),u=s(o+h,t),i=C(r,t,o-a,o-u);if(i.length===1)return i[0];if(i.length>1)switch(n){case"compatible":case"earlier":return i[0];case"later":return i[i.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-a,o-u);case"compatible":case"later":return Math.max(o-a,o-u);case"reject":throw new RangeError("No such absolute time found")}}function x(e,t,n="compatible"){return new Date(b(e,t,n))}function T(e,t){let n=0,r=0,o=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:a}=t),new w.CalendarDateTime(e.calendar,e.era,e.year,e.month,e.day,n,r,o,a)}function m(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,D.constrain(r),r}exports.epochFromDate=c;exports.getTimeZoneOffset=s;exports.toAbsolute=b;exports.toCalendar=m;exports.toCalendarDateTime=T;exports.toDate=x;
|