@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/index170.mjs
CHANGED
|
@@ -1,125 +1,109 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { CalendarDateTime as w } from "./index166.mjs";
|
|
2
|
+
import { constrain as x } from "./index167.mjs";
|
|
3
|
+
import { GregorianCalendar as $, getExtendedYear as d } from "./index169.mjs";
|
|
4
|
+
import { getLocalTimeZone as h } from "./index132.mjs";
|
|
5
|
+
function u(e) {
|
|
6
|
+
e = b(e, new $());
|
|
7
|
+
let t = d(e.era, e.year);
|
|
8
|
+
return y(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
|
|
9
|
+
}
|
|
10
|
+
function y(e, t, n, r, o, a, c) {
|
|
11
|
+
let f = /* @__PURE__ */ new Date();
|
|
12
|
+
return f.setUTCHours(r, o, a, c), f.setUTCFullYear(e, t - 1, n), f.getTime();
|
|
13
|
+
}
|
|
14
|
+
function l(e, t) {
|
|
15
|
+
if (t === "UTC") return 0;
|
|
16
|
+
if (e > 0 && t === h()) return new Date(e).getTimezoneOffset() * -6e4;
|
|
17
|
+
let { year: n, month: r, day: o, hour: a, minute: c, second: f } = p(e, t);
|
|
18
|
+
return y(n, r, o, a, c, f, 0) - Math.floor(e / 1e3) * 1e3;
|
|
19
|
+
}
|
|
20
|
+
const s = /* @__PURE__ */ new Map();
|
|
21
|
+
function p(e, t) {
|
|
22
|
+
let n = s.get(t);
|
|
23
|
+
n || (n = new Intl.DateTimeFormat("en-US", {
|
|
24
|
+
timeZone: t,
|
|
25
|
+
hour12: !1,
|
|
26
|
+
era: "short",
|
|
27
|
+
year: "numeric",
|
|
28
|
+
month: "numeric",
|
|
29
|
+
day: "numeric",
|
|
30
|
+
hour: "numeric",
|
|
31
|
+
minute: "numeric",
|
|
32
|
+
second: "numeric"
|
|
33
|
+
}), s.set(t, n));
|
|
34
|
+
let r = n.formatToParts(new Date(e)), o = {};
|
|
35
|
+
for (let a of r) a.type !== "literal" && (o[a.type] = a.value);
|
|
36
|
+
return {
|
|
37
|
+
// Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
|
|
38
|
+
year: o.era === "BC" || o.era === "B" ? -o.year + 1 : +o.year,
|
|
39
|
+
month: +o.month,
|
|
40
|
+
day: +o.day,
|
|
41
|
+
hour: o.hour === "24" ? 0 : +o.hour,
|
|
42
|
+
minute: +o.minute,
|
|
43
|
+
second: +o.second
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const m = 864e5;
|
|
47
|
+
function D(e, t, n, r) {
|
|
48
|
+
return (n === r ? [
|
|
49
|
+
n
|
|
50
|
+
] : [
|
|
51
|
+
n,
|
|
52
|
+
r
|
|
53
|
+
]).filter((a) => g(e, t, a));
|
|
54
|
+
}
|
|
55
|
+
function g(e, t, n) {
|
|
56
|
+
let r = p(n, t);
|
|
57
|
+
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;
|
|
58
|
+
}
|
|
59
|
+
function C(e, t, n = "compatible") {
|
|
60
|
+
let r = v(e);
|
|
61
|
+
if (t === "UTC") return u(r);
|
|
62
|
+
if (t === h() && n === "compatible") {
|
|
63
|
+
r = b(r, new $());
|
|
64
|
+
let i = /* @__PURE__ */ new Date(), T = d(r.era, r.year);
|
|
65
|
+
return i.setFullYear(T, r.month - 1, r.day), i.setHours(r.hour, r.minute, r.second, r.millisecond), i.getTime();
|
|
27
66
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
position: m[e.isHorizontal() ? "currentX" : "currentY"],
|
|
39
|
-
time: v()
|
|
40
|
-
});
|
|
67
|
+
let o = u(r), a = l(o - m, t), c = l(o + m, t), f = D(r, t, o - a, o - c);
|
|
68
|
+
if (f.length === 1) return f[0];
|
|
69
|
+
if (f.length > 1) switch (n) {
|
|
70
|
+
case "compatible":
|
|
71
|
+
case "earlier":
|
|
72
|
+
return f[0];
|
|
73
|
+
case "later":
|
|
74
|
+
return f[f.length - 1];
|
|
75
|
+
case "reject":
|
|
76
|
+
throw new RangeError("Multiple possible absolute times found");
|
|
41
77
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
rtlTranslate: p,
|
|
51
|
-
snapGrid: a,
|
|
52
|
-
touchEventsData: r
|
|
53
|
-
} = e, w = v() - r.touchStartTime;
|
|
54
|
-
if (m < -e.minTranslate()) {
|
|
55
|
-
e.slideTo(e.activeIndex);
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
if (m > -e.maxTranslate()) {
|
|
59
|
-
e.slides.length < a.length ? e.slideTo(a.length - 1) : e.slideTo(e.slides.length - 1);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (o.freeMode.momentum) {
|
|
63
|
-
if (r.velocities.length > 1) {
|
|
64
|
-
const i = r.velocities.pop(), n = r.velocities.pop(), P = i.position - n.position, y = i.time - n.time;
|
|
65
|
-
e.velocity = P / y, e.velocity /= 2, Math.abs(e.velocity) < o.freeMode.minimumVelocity && (e.velocity = 0), (y > 150 || v() - i.time > 300) && (e.velocity = 0);
|
|
66
|
-
} else
|
|
67
|
-
e.velocity = 0;
|
|
68
|
-
e.velocity *= o.freeMode.momentumVelocityRatio, r.velocities.length = 0;
|
|
69
|
-
let l = 1e3 * o.freeMode.momentumRatio;
|
|
70
|
-
const D = e.velocity * l;
|
|
71
|
-
let t = e.translate + D;
|
|
72
|
-
p && (t = -t);
|
|
73
|
-
let M = !1, u;
|
|
74
|
-
const d = Math.abs(e.velocity) * 20 * o.freeMode.momentumBounceRatio;
|
|
75
|
-
let T;
|
|
76
|
-
if (t < e.maxTranslate())
|
|
77
|
-
o.freeMode.momentumBounce ? (t + e.maxTranslate() < -d && (t = e.maxTranslate() - d), u = e.maxTranslate(), M = !0, r.allowMomentumBounce = !0) : t = e.maxTranslate(), o.loop && o.centeredSlides && (T = !0);
|
|
78
|
-
else if (t > e.minTranslate())
|
|
79
|
-
o.freeMode.momentumBounce ? (t - e.minTranslate() > d && (t = e.minTranslate() + d), u = e.minTranslate(), M = !0, r.allowMomentumBounce = !0) : t = e.minTranslate(), o.loop && o.centeredSlides && (T = !0);
|
|
80
|
-
else if (o.freeMode.sticky) {
|
|
81
|
-
let i;
|
|
82
|
-
for (let n = 0; n < a.length; n += 1)
|
|
83
|
-
if (a[n] > -t) {
|
|
84
|
-
i = n;
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
Math.abs(a[i] - t) < Math.abs(a[i - 1] - t) || e.swipeDirection === "next" ? t = a[i] : t = a[i - 1], t = -t;
|
|
88
|
-
}
|
|
89
|
-
if (T && S("transitionEnd", () => {
|
|
90
|
-
e.loopFix();
|
|
91
|
-
}), e.velocity !== 0) {
|
|
92
|
-
if (p ? l = Math.abs((-t - e.translate) / e.velocity) : l = Math.abs((t - e.translate) / e.velocity), o.freeMode.sticky) {
|
|
93
|
-
const i = Math.abs((p ? -t : t) - e.translate), n = e.slidesSizesGrid[e.activeIndex];
|
|
94
|
-
i < n ? l = o.speed : i < 2 * n ? l = o.speed * 1.5 : l = o.speed * 2.5;
|
|
95
|
-
}
|
|
96
|
-
} else if (o.freeMode.sticky) {
|
|
97
|
-
e.slideToClosest();
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
o.freeMode.momentumBounce && M ? (e.updateProgress(u), e.setTransition(l), e.setTranslate(t), e.transitionStart(!0, e.swipeDirection), e.animating = !0, h(f, () => {
|
|
101
|
-
!e || e.destroyed || !r.allowMomentumBounce || (c("momentumBounce"), e.setTransition(o.speed), setTimeout(() => {
|
|
102
|
-
e.setTranslate(u), h(f, () => {
|
|
103
|
-
!e || e.destroyed || e.transitionEnd();
|
|
104
|
-
});
|
|
105
|
-
}, 0));
|
|
106
|
-
})) : e.velocity ? (c("_freeModeNoMomentumRelease"), e.updateProgress(t), e.setTransition(l), e.setTranslate(t), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, h(f, () => {
|
|
107
|
-
!e || e.destroyed || e.transitionEnd();
|
|
108
|
-
}))) : e.updateProgress(t), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
109
|
-
} else if (o.freeMode.sticky) {
|
|
110
|
-
e.slideToClosest();
|
|
111
|
-
return;
|
|
112
|
-
} else o.freeMode && c("_freeModeNoMomentumRelease");
|
|
113
|
-
(!o.freeMode.momentum || w >= o.longSwipesMs) && (c("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
78
|
+
switch (n) {
|
|
79
|
+
case "earlier":
|
|
80
|
+
return Math.min(o - a, o - c);
|
|
81
|
+
case "compatible":
|
|
82
|
+
case "later":
|
|
83
|
+
return Math.max(o - a, o - c);
|
|
84
|
+
case "reject":
|
|
85
|
+
throw new RangeError("No such absolute time found");
|
|
114
86
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
});
|
|
87
|
+
}
|
|
88
|
+
function P(e, t, n = "compatible") {
|
|
89
|
+
return new Date(C(e, t, n));
|
|
90
|
+
}
|
|
91
|
+
function v(e, t) {
|
|
92
|
+
let n = 0, r = 0, o = 0, a = 0;
|
|
93
|
+
if ("timeZone" in e) ({ hour: n, minute: r, second: o, millisecond: a } = e);
|
|
94
|
+
else if ("hour" in e && !t) return e;
|
|
95
|
+
return t && ({ hour: n, minute: r, second: o, millisecond: a } = t), new w(e.calendar, e.era, e.year, e.month, e.day, n, r, o, a);
|
|
96
|
+
}
|
|
97
|
+
function b(e, t) {
|
|
98
|
+
if (e.calendar.identifier === t.identifier) return e;
|
|
99
|
+
let n = t.fromJulianDay(e.calendar.toJulianDay(e)), r = e.copy();
|
|
100
|
+
return r.calendar = t, r.era = n.era, r.year = n.year, r.month = n.month, r.day = n.day, x(r), r;
|
|
122
101
|
}
|
|
123
102
|
export {
|
|
124
|
-
|
|
103
|
+
u as epochFromDate,
|
|
104
|
+
l as getTimeZoneOffset,
|
|
105
|
+
C as toAbsolute,
|
|
106
|
+
b as toCalendar,
|
|
107
|
+
v as toCalendarDateTime,
|
|
108
|
+
P as toDate
|
|
125
109
|
};
|
package/index171.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index190.js");function t(e,i,_){r._check_private_redeclaration(e,i),i.set(e,_)}exports._=t;exports._class_private_field_init=t;
|
package/index171.mjs
CHANGED
|
@@ -1,75 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
extendParams: C,
|
|
5
|
-
on: w
|
|
6
|
-
} = x;
|
|
7
|
-
C({
|
|
8
|
-
grid: {
|
|
9
|
-
rows: 1,
|
|
10
|
-
fill: "column"
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
let c, h, f, g;
|
|
14
|
-
const M = () => {
|
|
15
|
-
let t = e.params.spaceBetween;
|
|
16
|
-
return typeof t == "string" && t.indexOf("%") >= 0 ? t = parseFloat(t.replace("%", "")) / 100 * e.size : typeof t == "string" && (t = parseFloat(t)), t;
|
|
17
|
-
}, L = (t) => {
|
|
18
|
-
const {
|
|
19
|
-
slidesPerView: s
|
|
20
|
-
} = e.params, {
|
|
21
|
-
rows: i,
|
|
22
|
-
fill: a
|
|
23
|
-
} = e.params.grid, l = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : t.length;
|
|
24
|
-
f = Math.floor(l / i), Math.floor(l / i) === l / i ? c = l : c = Math.ceil(l / i) * i, s !== "auto" && a === "row" && (c = Math.max(c, s * i)), h = c / i;
|
|
25
|
-
}, y = () => {
|
|
26
|
-
e.slides && e.slides.forEach((t) => {
|
|
27
|
-
t.swiperSlideGridSet && (t.style.height = "", t.style[e.getDirectionLabel("margin-top")] = "");
|
|
28
|
-
});
|
|
29
|
-
}, $ = (t, s, i) => {
|
|
30
|
-
const {
|
|
31
|
-
slidesPerGroup: a
|
|
32
|
-
} = e.params, l = M(), {
|
|
33
|
-
rows: r,
|
|
34
|
-
fill: u
|
|
35
|
-
} = e.params.grid, d = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : i.length;
|
|
36
|
-
let p, n, o;
|
|
37
|
-
if (u === "row" && a > 1) {
|
|
38
|
-
const m = Math.floor(t / (a * r)), S = t - r * a * m, v = m === 0 ? a : Math.min(Math.ceil((d - m * r * a) / r), a);
|
|
39
|
-
o = Math.floor(S / v), n = S - o * v + m * a, p = n + o * c / r, s.style.order = p;
|
|
40
|
-
} else u === "column" ? (n = Math.floor(t / r), o = t - n * r, (n > f || n === f && o === r - 1) && (o += 1, o >= r && (o = 0, n += 1))) : (o = Math.floor(t / h), n = t - o * h);
|
|
41
|
-
s.row = o, s.column = n, s.style.height = `calc((100% - ${(r - 1) * l}px) / ${r})`, s.style[e.getDirectionLabel("margin-top")] = o !== 0 ? l && `${l}px` : "", s.swiperSlideGridSet = !0;
|
|
42
|
-
}, z = (t, s) => {
|
|
43
|
-
const {
|
|
44
|
-
centeredSlides: i,
|
|
45
|
-
roundLengths: a
|
|
46
|
-
} = e.params, l = M(), {
|
|
47
|
-
rows: r
|
|
48
|
-
} = e.params.grid;
|
|
49
|
-
if (e.virtualSize = (t + l) * c, e.virtualSize = Math.ceil(e.virtualSize / r) - l, e.params.cssMode || (e.wrapperEl.style[e.getDirectionLabel("width")] = `${e.virtualSize + l}px`), i) {
|
|
50
|
-
const u = [];
|
|
51
|
-
for (let d = 0; d < s.length; d += 1) {
|
|
52
|
-
let p = s[d];
|
|
53
|
-
a && (p = Math.floor(p)), s[d] < e.virtualSize + s[0] && u.push(p);
|
|
54
|
-
}
|
|
55
|
-
s.splice(0, s.length), s.push(...u);
|
|
56
|
-
}
|
|
57
|
-
}, I = () => {
|
|
58
|
-
g = e.params.grid && e.params.grid.rows > 1;
|
|
59
|
-
}, b = () => {
|
|
60
|
-
const {
|
|
61
|
-
params: t,
|
|
62
|
-
el: s
|
|
63
|
-
} = e, i = t.grid && t.grid.rows > 1;
|
|
64
|
-
g && !i ? (s.classList.remove(`${t.containerModifierClass}grid`, `${t.containerModifierClass}grid-column`), f = 1, e.emitContainerClasses()) : !g && i && (s.classList.add(`${t.containerModifierClass}grid`), t.grid.fill === "column" && s.classList.add(`${t.containerModifierClass}grid-column`), e.emitContainerClasses()), g = i;
|
|
65
|
-
};
|
|
66
|
-
w("init", I), w("update", b), e.grid = {
|
|
67
|
-
initSlides: L,
|
|
68
|
-
unsetSlides: y,
|
|
69
|
-
updateSlide: $,
|
|
70
|
-
updateWrapperSize: z
|
|
71
|
-
};
|
|
1
|
+
import { _check_private_redeclaration as t } from "./index190.mjs";
|
|
2
|
+
function c(_, e, i) {
|
|
3
|
+
t(_, e), e.set(_, i);
|
|
72
4
|
}
|
|
73
5
|
export {
|
|
74
|
-
|
|
6
|
+
c as _,
|
|
7
|
+
c as _class_private_field_init
|
|
75
8
|
};
|
package/index172.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e,t){return e-t*Math.floor(e/t)}exports.mod=o;
|
package/index172.mjs
CHANGED
|
@@ -1,113 +1,6 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
params: t,
|
|
4
|
-
slidesEl: p
|
|
5
|
-
} = e;
|
|
6
|
-
t.loop && e.loopDestroy();
|
|
7
|
-
const f = (n) => {
|
|
8
|
-
if (typeof n == "string") {
|
|
9
|
-
const i = document.createElement("div");
|
|
10
|
-
i.innerHTML = n, p.append(i.children[0]), i.innerHTML = "";
|
|
11
|
-
} else
|
|
12
|
-
p.append(n);
|
|
13
|
-
};
|
|
14
|
-
if (typeof o == "object" && "length" in o)
|
|
15
|
-
for (let n = 0; n < o.length; n += 1)
|
|
16
|
-
o[n] && f(o[n]);
|
|
17
|
-
else
|
|
18
|
-
f(o);
|
|
19
|
-
e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update();
|
|
20
|
-
}
|
|
21
|
-
function m(o) {
|
|
22
|
-
const e = this, {
|
|
23
|
-
params: t,
|
|
24
|
-
activeIndex: p,
|
|
25
|
-
slidesEl: f
|
|
26
|
-
} = e;
|
|
27
|
-
t.loop && e.loopDestroy();
|
|
28
|
-
let n = p + 1;
|
|
29
|
-
const i = (l) => {
|
|
30
|
-
if (typeof l == "string") {
|
|
31
|
-
const a = document.createElement("div");
|
|
32
|
-
a.innerHTML = l, f.prepend(a.children[0]), a.innerHTML = "";
|
|
33
|
-
} else
|
|
34
|
-
f.prepend(l);
|
|
35
|
-
};
|
|
36
|
-
if (typeof o == "object" && "length" in o) {
|
|
37
|
-
for (let l = 0; l < o.length; l += 1)
|
|
38
|
-
o[l] && i(o[l]);
|
|
39
|
-
n = p + o.length;
|
|
40
|
-
} else
|
|
41
|
-
i(o);
|
|
42
|
-
e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update(), e.slideTo(n, 0, !1);
|
|
43
|
-
}
|
|
44
|
-
function h(o, e) {
|
|
45
|
-
const t = this, {
|
|
46
|
-
params: p,
|
|
47
|
-
activeIndex: f,
|
|
48
|
-
slidesEl: n
|
|
49
|
-
} = t;
|
|
50
|
-
let i = f;
|
|
51
|
-
p.loop && (i -= t.loopedSlides, t.loopDestroy(), t.recalcSlides());
|
|
52
|
-
const l = t.slides.length;
|
|
53
|
-
if (o <= 0) {
|
|
54
|
-
t.prependSlide(e);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
if (o >= l) {
|
|
58
|
-
t.appendSlide(e);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
let a = i > o ? i + 1 : i;
|
|
62
|
-
const d = [];
|
|
63
|
-
for (let r = l - 1; r >= o; r -= 1) {
|
|
64
|
-
const c = t.slides[r];
|
|
65
|
-
c.remove(), d.unshift(c);
|
|
66
|
-
}
|
|
67
|
-
if (typeof e == "object" && "length" in e) {
|
|
68
|
-
for (let r = 0; r < e.length; r += 1)
|
|
69
|
-
e[r] && n.append(e[r]);
|
|
70
|
-
a = i > o ? i + e.length : i;
|
|
71
|
-
} else
|
|
72
|
-
n.append(e);
|
|
73
|
-
for (let r = 0; r < d.length; r += 1)
|
|
74
|
-
n.append(d[r]);
|
|
75
|
-
t.recalcSlides(), p.loop && t.loopCreate(), (!p.observer || t.isElement) && t.update(), p.loop ? t.slideTo(a + t.loopedSlides, 0, !1) : t.slideTo(a, 0, !1);
|
|
76
|
-
}
|
|
77
|
-
function v(o) {
|
|
78
|
-
const e = this, {
|
|
79
|
-
params: t,
|
|
80
|
-
activeIndex: p
|
|
81
|
-
} = e;
|
|
82
|
-
let f = p;
|
|
83
|
-
t.loop && (f -= e.loopedSlides, e.loopDestroy());
|
|
84
|
-
let n = f, i;
|
|
85
|
-
if (typeof o == "object" && "length" in o) {
|
|
86
|
-
for (let l = 0; l < o.length; l += 1)
|
|
87
|
-
i = o[l], e.slides[i] && e.slides[i].remove(), i < n && (n -= 1);
|
|
88
|
-
n = Math.max(n, 0);
|
|
89
|
-
} else
|
|
90
|
-
i = o, e.slides[i] && e.slides[i].remove(), i < n && (n -= 1), n = Math.max(n, 0);
|
|
91
|
-
e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update(), t.loop ? e.slideTo(n + e.loopedSlides, 0, !1) : e.slideTo(n, 0, !1);
|
|
92
|
-
}
|
|
93
|
-
function S() {
|
|
94
|
-
const o = this, e = [];
|
|
95
|
-
for (let t = 0; t < o.slides.length; t += 1)
|
|
96
|
-
e.push(t);
|
|
97
|
-
o.removeSlide(e);
|
|
98
|
-
}
|
|
99
|
-
function u(o) {
|
|
100
|
-
let {
|
|
101
|
-
swiper: e
|
|
102
|
-
} = o;
|
|
103
|
-
Object.assign(e, {
|
|
104
|
-
appendSlide: s.bind(e),
|
|
105
|
-
prependSlide: m.bind(e),
|
|
106
|
-
addSlide: h.bind(e),
|
|
107
|
-
removeSlide: v.bind(e),
|
|
108
|
-
removeAllSlides: S.bind(e)
|
|
109
|
-
});
|
|
1
|
+
function d(f, a) {
|
|
2
|
+
return f - a * Math.floor(f / a);
|
|
110
3
|
}
|
|
111
4
|
export {
|
|
112
|
-
|
|
5
|
+
d as mod
|
|
113
6
|
};
|
package/index173.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index166.js"),D=require("./index169.js"),u=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],c=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],f=[1867,1911,1925,1988,2018],i=["meiji","taisho","showa","heisei","reiwa"];function h(e){const r=u.findIndex(([n,a,t])=>e.year<n||e.year===n&&e.month<a||e.year===n&&e.month===a&&e.day<t);return r===-1?u.length-1:r===0?0:r-1}function l(e){let r=f[i.indexOf(e.era)];if(!r)throw new Error("Unknown era: "+e.era);return new y.CalendarDate(e.year+r,e.month,e.day)}class M extends D.GregorianCalendar{fromJulianDay(r){let n=super.fromJulianDay(r),a=h(n);return new y.CalendarDate(this,i[a],n.year-f[a],n.month,n.day)}toJulianDay(r){return super.toJulianDay(l(r))}balanceDate(r){let n=l(r),a=h(n);i[a]!==r.era&&(r.era=i[a],r.year=n.year-f[a]),this.constrainDate(r)}constrainDate(r){let n=i.indexOf(r.era),a=c[n];if(a!=null){let[t,o,$]=a,s=t-f[n];r.year=Math.max(1,Math.min(s,r.year)),r.year===s&&(r.month=Math.min(o,r.month),r.month===o&&(r.day=Math.min($,r.day)))}if(r.year===1&&n>=0){let[,t,o]=u[n];r.month=Math.max(t,r.month),r.month===t&&(r.day=Math.max(o,r.day))}}getEras(){return i}getYearsInEra(r){let n=i.indexOf(r.era),a=u[n],t=u[n+1];if(t==null)return 9999-a[0]+1;let o=t[0]-a[0];return(r.month<t[1]||r.month===t[1]&&r.day<t[2])&&o++,o}getDaysInMonth(r){return super.getDaysInMonth(l(r))}getMinimumMonthInYear(r){let n=m(r);return n?n[1]:1}getMinimumDayInMonth(r){let n=m(r);return n&&r.month===n[1]?n[2]:1}constructor(...r){super(...r),this.identifier="japanese"}}function m(e){if(e.year===1){let r=i.indexOf(e.era);return u[r]}}exports.JapaneseCalendar=M;
|
package/index173.mjs
CHANGED
|
@@ -1,55 +1,128 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { CalendarDate as $ } from "./index166.mjs";
|
|
2
|
+
import { GregorianCalendar as c } from "./index169.mjs";
|
|
3
|
+
const f = [
|
|
4
|
+
[
|
|
5
|
+
1868,
|
|
6
|
+
9,
|
|
7
|
+
8
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
1912,
|
|
11
|
+
7,
|
|
12
|
+
30
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
1926,
|
|
16
|
+
12,
|
|
17
|
+
25
|
|
18
|
+
],
|
|
19
|
+
[
|
|
20
|
+
1989,
|
|
21
|
+
1,
|
|
22
|
+
8
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
2019,
|
|
26
|
+
5,
|
|
27
|
+
1
|
|
28
|
+
]
|
|
29
|
+
], D = [
|
|
30
|
+
[
|
|
31
|
+
1912,
|
|
32
|
+
7,
|
|
33
|
+
29
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
1926,
|
|
37
|
+
12,
|
|
38
|
+
24
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
1989,
|
|
42
|
+
1,
|
|
43
|
+
7
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
2019,
|
|
47
|
+
4,
|
|
48
|
+
30
|
|
49
|
+
]
|
|
50
|
+
], u = [
|
|
51
|
+
1867,
|
|
52
|
+
1911,
|
|
53
|
+
1925,
|
|
54
|
+
1988,
|
|
55
|
+
2018
|
|
56
|
+
], i = [
|
|
57
|
+
"meiji",
|
|
58
|
+
"taisho",
|
|
59
|
+
"showa",
|
|
60
|
+
"heisei",
|
|
61
|
+
"reiwa"
|
|
62
|
+
];
|
|
63
|
+
function h(e) {
|
|
64
|
+
const r = f.findIndex(([n, a, t]) => e.year < n || e.year === n && e.month < a || e.year === n && e.month === a && e.day < t);
|
|
65
|
+
return r === -1 ? f.length - 1 : r === 0 ? 0 : r - 1;
|
|
66
|
+
}
|
|
67
|
+
function s(e) {
|
|
68
|
+
let r = u[i.indexOf(e.era)];
|
|
69
|
+
if (!r) throw new Error("Unknown era: " + e.era);
|
|
70
|
+
return new $(e.year + r, e.month, e.day);
|
|
71
|
+
}
|
|
72
|
+
class g extends c {
|
|
73
|
+
fromJulianDay(r) {
|
|
74
|
+
let n = super.fromJulianDay(r), a = h(n);
|
|
75
|
+
return new $(this, i[a], n.year - u[a], n.month, n.day);
|
|
76
|
+
}
|
|
77
|
+
toJulianDay(r) {
|
|
78
|
+
return super.toJulianDay(s(r));
|
|
79
|
+
}
|
|
80
|
+
balanceDate(r) {
|
|
81
|
+
let n = s(r), a = h(n);
|
|
82
|
+
i[a] !== r.era && (r.era = i[a], r.year = n.year - u[a]), this.constrainDate(r);
|
|
83
|
+
}
|
|
84
|
+
constrainDate(r) {
|
|
85
|
+
let n = i.indexOf(r.era), a = D[n];
|
|
86
|
+
if (a != null) {
|
|
87
|
+
let [t, o, y] = a, m = t - u[n];
|
|
88
|
+
r.year = Math.max(1, Math.min(m, r.year)), r.year === m && (r.month = Math.min(o, r.month), r.month === o && (r.day = Math.min(y, r.day)));
|
|
14
89
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
})
|
|
51
|
-
});
|
|
90
|
+
if (r.year === 1 && n >= 0) {
|
|
91
|
+
let [, t, o] = f[n];
|
|
92
|
+
r.month = Math.max(t, r.month), r.month === t && (r.day = Math.max(o, r.day));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
getEras() {
|
|
96
|
+
return i;
|
|
97
|
+
}
|
|
98
|
+
getYearsInEra(r) {
|
|
99
|
+
let n = i.indexOf(r.era), a = f[n], t = f[n + 1];
|
|
100
|
+
if (t == null)
|
|
101
|
+
return 9999 - a[0] + 1;
|
|
102
|
+
let o = t[0] - a[0];
|
|
103
|
+
return (r.month < t[1] || r.month === t[1] && r.day < t[2]) && o++, o;
|
|
104
|
+
}
|
|
105
|
+
getDaysInMonth(r) {
|
|
106
|
+
return super.getDaysInMonth(s(r));
|
|
107
|
+
}
|
|
108
|
+
getMinimumMonthInYear(r) {
|
|
109
|
+
let n = l(r);
|
|
110
|
+
return n ? n[1] : 1;
|
|
111
|
+
}
|
|
112
|
+
getMinimumDayInMonth(r) {
|
|
113
|
+
let n = l(r);
|
|
114
|
+
return n && r.month === n[1] ? n[2] : 1;
|
|
115
|
+
}
|
|
116
|
+
constructor(...r) {
|
|
117
|
+
super(...r), this.identifier = "japanese";
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function l(e) {
|
|
121
|
+
if (e.year === 1) {
|
|
122
|
+
let r = i.indexOf(e.era);
|
|
123
|
+
return f[r];
|
|
124
|
+
}
|
|
52
125
|
}
|
|
53
126
|
export {
|
|
54
|
-
|
|
127
|
+
g as JapaneseCalendar
|
|
55
128
|
};
|
package/index174.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index166.js"),t=require("./index169.js"),o=-543;class i extends t.GregorianCalendar{fromJulianDay(e){let r=super.fromJulianDay(e),u=t.getExtendedYear(r.era,r.year);return new d.CalendarDate(this,u-o,r.month,r.day)}toJulianDay(e){return super.toJulianDay(n(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(n(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function n(a){let[e,r]=t.fromExtendedYear(a.year+o);return new d.CalendarDate(e,r,a.month,a.day)}exports.BuddhistCalendar=i;
|