@okam/stack-ui 1.26.0 → 1.27.0
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/Alerts/interface.d.ts +3 -28
- package/components/Button/index.d.ts +2 -2
- package/components/Button/interface.d.ts +2 -2
- package/components/Carousel/components/CarouselNavigationButton.d.ts +8 -0
- package/components/Carousel/components/CarouselSlide.d.ts +3 -0
- package/components/Carousel/components/CarouselSwiper.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPagination.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPaginationBullet.d.ts +3 -0
- package/components/Carousel/interface.d.ts +34 -17
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +150 -149
- package/index100.js +2 -1
- package/index100.mjs +11 -64
- package/index101.js +1 -1
- package/index101.mjs +44 -141
- package/index102.js +1 -1
- package/index102.mjs +62 -119
- package/index103.js +1 -1
- package/index103.mjs +28 -217
- package/index104.js +1 -1
- package/index104.mjs +4 -175
- package/index105.js +1 -1
- package/index105.mjs +11 -127
- package/index106.js +1 -1
- package/index106.mjs +13 -240
- package/index107.js +1 -1
- package/index107.mjs +23 -4
- package/index108.js +1 -1
- package/index108.mjs +23 -11
- package/index109.js +1 -1
- package/index109.mjs +39 -14
- package/index11.js +1 -1
- package/index11.mjs +67 -60
- package/index110.js +2 -1
- package/index110.mjs +11 -21
- package/index111.js +1 -1
- package/index111.mjs +8 -23
- package/index112.js +1 -1
- package/index112.mjs +20 -37
- package/index113.js +1 -2
- package/index113.mjs +38 -12
- package/index114.js +1 -1
- package/index114.mjs +49 -7
- package/index115.js +1 -1
- package/index115.mjs +40 -21
- package/index116.js +1 -1
- package/index116.mjs +13 -38
- package/index117.js +1 -1
- package/index117.mjs +26 -50
- package/index118.js +1 -1
- package/index118.mjs +20 -41
- package/index119.js +1 -1
- package/index119.mjs +9 -14
- package/index120.js +1 -1
- package/index120.mjs +30 -26
- package/index121.js +1 -1
- package/index121.mjs +13 -18
- package/index122.js +1 -1
- package/index122.mjs +16 -8
- package/index123.js +1 -1
- package/index123.mjs +5 -30
- package/index124.js +1 -1
- package/index124.mjs +21 -15
- package/index125.js +1 -1
- package/index125.mjs +11 -17
- package/index126.js +1 -1
- package/index126.mjs +42 -5
- package/index127.js +2 -1
- package/index127.mjs +21 -20
- package/index128.js +1 -1
- package/index128.mjs +12 -11
- package/index129.js +1 -1
- package/index129.mjs +46 -104
- package/index13.js +1 -1
- package/index13.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +237 -38
- package/index131.js +1 -1
- package/index131.mjs +12 -21
- package/index132.js +1 -1
- package/index132.mjs +29 -11
- package/index133.js +1 -1
- package/index133.mjs +49 -19
- package/index134.js +1 -1
- package/index134.mjs +25 -49
- package/index135.js +1 -1
- package/index135.mjs +19 -25
- package/index136.js +1 -1
- package/index136.mjs +4 -25
- package/index137.js +4 -1
- package/index137.mjs +247 -46
- package/index138.js +1 -2
- package/index138.mjs +61 -11
- package/index139.js +1 -0
- package/index139.mjs +97 -0
- package/index140.js +1 -0
- package/index140.mjs +34 -0
- package/index141.js +1 -1
- package/index141.mjs +119 -39
- package/index142.js +1 -1
- package/index142.mjs +28 -29
- package/index143.js +1 -1
- package/index143.mjs +122 -197
- package/index144.js +1 -1
- package/index144.mjs +131 -187
- package/index145.js +1 -1
- package/index145.mjs +14 -69
- package/index146.js +1 -1
- package/index146.mjs +85 -248
- package/index147.js +1 -1
- package/index147.mjs +102 -93
- package/index148.js +1 -1
- package/index148.mjs +5 -84
- package/index149.js +1 -1
- package/index149.mjs +3 -58
- package/index15.js +1 -1
- package/index15.mjs +2 -2
- package/index150.js +1 -1
- package/index150.mjs +121 -112
- package/index151.js +1 -1
- package/index151.mjs +26 -119
- package/index152.js +1 -1
- package/index152.mjs +51 -72
- package/index153.js +1 -1
- package/index153.mjs +41 -107
- package/index154.js +1 -1
- package/index154.mjs +36 -51
- package/index155.js +1 -1
- package/index155.mjs +111 -91
- package/index156.js +1 -1
- package/index156.mjs +77 -70
- package/index157.js +1 -1
- package/index157.mjs +101 -56
- package/index158.js +1 -1
- package/index158.mjs +98 -100
- package/index159.js +1 -5
- package/index159.mjs +2 -81
- package/index160.js +1 -1
- package/index160.mjs +5 -2011
- package/index161.js +1 -1
- package/index161.mjs +64 -59
- package/index162.js +1 -1
- package/index162.mjs +25 -187
- package/index163.js +1 -1
- package/index163.mjs +54 -5
- package/index164.js +1 -4
- package/index164.mjs +148 -239
- package/index165.js +1 -1
- package/index165.mjs +23 -31
- package/index166.js +1 -1
- package/index166.mjs +18 -60
- package/index167.js +1 -1
- package/index167.mjs +38 -93
- package/index168.js +1 -1
- package/index168.mjs +82 -31
- package/index169.js +1 -1
- package/index169.mjs +28 -128
- package/index17.js +1 -1
- package/index17.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +19 -177
- package/index171.js +1 -1
- package/index171.mjs +52 -8
- package/index172.js +1 -1
- package/index172.mjs +2 -4
- package/index173.js +11 -1
- package/index173.mjs +114 -35
- package/index174.js +1 -1
- package/index174.mjs +199 -5
- package/index175.js +1 -1
- package/index175.mjs +61 -26
- package/index176.js +1 -1
- package/index176.mjs +141 -6
- package/index177.js +1 -1
- package/index177.mjs +114 -116
- package/index178.js +1 -1
- package/index178.mjs +217 -27
- package/index179.js +1 -1
- package/index179.mjs +188 -122
- package/index18.js +1 -1
- package/index18.mjs +2 -2
- package/index180.js +1 -1
- package/index180.mjs +67 -132
- package/index181.js +1 -1
- package/index181.mjs +258 -14
- package/index182.js +1 -1
- package/index182.mjs +92 -90
- package/index183.js +1 -1
- package/index183.mjs +172 -104
- package/index184.js +1 -1
- package/index184.mjs +84 -5
- package/index185.js +1 -1
- package/index185.mjs +58 -3
- package/index186.js +1 -1
- package/index186.mjs +123 -122
- package/index187.js +1 -1
- package/index187.mjs +113 -26
- package/index188.js +1 -1
- package/index188.mjs +119 -48
- package/index189.js +1 -1
- package/index189.mjs +72 -44
- package/index19.js +1 -1
- package/index19.mjs +1 -1
- package/index190.js +1 -1
- package/index190.mjs +107 -34
- package/index191.js +1 -1
- package/index191.mjs +50 -111
- package/index192.js +1 -1
- package/index192.mjs +93 -77
- package/index193.js +1 -1
- package/index193.mjs +70 -101
- package/index194.js +1 -1
- package/index194.mjs +57 -98
- package/index195.js +1 -1
- package/index195.mjs +100 -2
- package/index196.js +5 -1
- package/index196.mjs +80 -5
- package/index197.js +1 -1
- package/index197.mjs +2005 -58
- package/index198.js +1 -1
- package/index198.mjs +59 -26
- package/index199.js +1 -1
- package/index199.mjs +187 -53
- package/index200.js +1 -1
- package/index200.mjs +5 -155
- package/index201.js +1 -1
- package/index201.mjs +2 -23
- package/index202.js +1 -1
- package/index202.mjs +47 -14
- package/index203.js +1 -1
- package/index203.mjs +17 -36
- package/index204.js +1 -1
- package/index204.mjs +18 -77
- package/index205.js +1 -1
- package/index205.mjs +23 -27
- package/index206.js +1 -1
- package/index206.mjs +40 -15
- package/index207.js +1 -1
- package/index207.mjs +2 -61
- package/index208.js +1 -1
- package/index208.mjs +21 -2
- package/index209.js +1 -11
- package/index209.mjs +2 -116
- package/index210.js +1 -1
- package/index210.mjs +29 -2
- package/index211.js +1 -1
- package/index211.mjs +2 -6
- package/index212.mjs +2 -2
- package/index213.js +1 -1
- package/index213.mjs +18 -48
- package/index214.js +1 -1
- package/index214.mjs +2 -21
- package/index215.js +1 -1
- package/index215.mjs +2 -24
- package/index216.js +1 -1
- package/index216.mjs +2 -27
- package/index217.js +1 -1
- package/index217.mjs +34 -43
- package/index218.js +1 -1
- package/index218.mjs +2 -2
- package/index219.js +1 -1
- package/index219.mjs +12 -12
- package/index22.js +1 -1
- package/index22.mjs +3 -3
- package/index220.js +1 -1
- package/index220.mjs +23 -2
- package/index221.js +1 -1
- package/index221.mjs +2 -29
- package/index222.js +1 -1
- package/index222.mjs +23 -2
- package/index223.mjs +2 -2
- package/index224.js +1 -1
- package/index224.mjs +311 -20
- package/index225.js +1 -1
- package/index225.mjs +193 -2
- package/index226.js +1 -1
- package/index226.mjs +9 -2
- package/index227.js +1 -1
- package/index227.mjs +27 -2
- package/index228.js +1 -1
- package/index228.mjs +55 -37
- package/index229.js +1 -1
- package/index229.mjs +47 -2
- package/index23.js +1 -1
- package/index23.mjs +4 -4
- package/index230.js +1 -1
- package/index230.mjs +124 -20
- package/index231.js +1 -1
- package/index231.mjs +128 -20
- package/index232.js +1 -1
- package/index232.mjs +180 -2
- package/index233.js +1 -1
- package/index233.mjs +8 -21
- package/index234.js +1 -1
- package/index234.mjs +4 -2
- package/index235.js +1 -1
- package/index235.mjs +35 -312
- package/index236.js +1 -1
- package/index236.mjs +5 -192
- package/index237.js +1 -1
- package/index237.mjs +29 -8
- package/index238.js +1 -1
- package/index238.mjs +6 -26
- package/index239.js +1 -1
- package/index239.mjs +2 -56
- package/index240.js +1 -1
- package/index240.mjs +2 -47
- package/index241.js +1 -1
- package/index241.mjs +2 -125
- package/index242.js +1 -1
- package/index242.mjs +17 -5
- package/index243.js +1 -1
- package/index243.mjs +27 -2
- package/index244.mjs +2 -2
- package/index245.js +1 -1
- package/index245.mjs +89 -2
- package/index246.js +1 -1
- package/index246.mjs +11 -9
- package/index247.js +1 -1
- package/index247.mjs +2 -27
- package/index248.js +1 -1
- package/index248.mjs +38 -2
- package/index249.js +1 -1
- package/index249.mjs +131 -83
- package/index25.js +1 -1
- package/index25.mjs +2 -2
- package/index250.js +1 -1
- package/index250.mjs +2 -20
- package/index251.js +1 -1
- package/index251.mjs +23 -2
- package/index252.js +1 -1
- package/index252.mjs +2 -38
- package/index253.js +1 -1
- package/index253.mjs +2 -137
- package/index254.mjs +2 -2
- package/index255.js +1 -1
- package/index255.mjs +2 -23
- package/index256.js +1 -1
- package/index256.mjs +23 -2
- package/index257.js +1 -1
- package/index257.mjs +2 -2
- package/index258.js +1 -1
- package/index258.mjs +26 -2
- package/index259.js +1 -1
- package/index259.mjs +2 -2
- package/index26.js +1 -1
- package/index26.mjs +3 -3
- package/index260.js +1 -1
- package/index260.mjs +2 -23
- package/index261.js +1 -1
- package/index261.mjs +2 -2
- package/index262.js +1 -1
- package/index262.mjs +2 -26
- package/index264.js +1 -1
- package/index264.mjs +72 -2
- package/index265.mjs +2 -2
- package/index267.js +1 -1
- package/index267.mjs +19 -2
- package/index268.js +1 -1
- package/index268.mjs +2 -72
- package/index269.js +1 -1
- package/index269.mjs +6 -2
- package/index270.mjs +2 -2
- package/index271.js +1 -1
- package/index271.mjs +2 -19
- package/index272.js +1 -1
- package/index272.mjs +29 -2
- package/index273.js +1 -1
- package/index273.mjs +7 -2
- package/index274.js +1 -1
- package/index274.mjs +8 -2
- package/index275.js +1 -1
- package/index275.mjs +7 -28
- package/index276.js +1 -1
- package/index276.mjs +2 -7
- package/index277.js +1 -1
- package/index277.mjs +36 -7
- package/index278.js +1 -1
- package/index278.mjs +2 -8
- package/index279.js +1 -1
- package/index279.mjs +5 -2
- package/index28.js +1 -1
- package/index28.mjs +1 -1
- package/index280.js +1 -1
- package/index280.mjs +5 -36
- package/index281.js +1 -1
- package/index281.mjs +10 -2
- package/index282.js +1 -1
- package/index282.mjs +2 -5
- package/index283.js +1 -1
- package/index283.mjs +17 -5
- package/index284.js +1 -1
- package/index284.mjs +30 -9
- package/index285.mjs +2 -2
- package/index286.js +1 -1
- package/index286.mjs +2 -18
- package/index30.js +1 -1
- package/index30.mjs +2 -2
- package/index31.js +1 -1
- package/index31.mjs +1 -1
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index33.js +1 -1
- package/index33.mjs +1 -1
- package/index34.js +1 -1
- package/index34.mjs +30 -29
- package/index35.js +1 -1
- package/index35.mjs +16 -15
- package/index37.js +1 -1
- package/index37.mjs +1 -1
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index79.js +1 -1
- package/index79.mjs +13 -13
- package/index83.js +9 -1
- package/index83.mjs +52 -17
- package/index96.js +1 -1
- package/index96.mjs +3 -3
- package/index97.js +1 -1
- package/index97.mjs +1 -1
- package/package.json +1 -1
- package/providers/Swiper/index.d.ts +4 -0
- package/providers/{Alerts → Swiper}/interface.d.ts +2 -2
- package/theme/Alerts/index.d.ts +1 -1
- package/theme/Carousel/index.d.ts +216 -8
- package/components/Alerts/components/AlertsNavigationButton.d.ts +0 -8
- package/components/Alerts/components/AlertsSwiper.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPagination.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +0 -3
- package/index287.js +0 -1
- package/index287.mjs +0 -33
- package/index288.js +0 -1
- package/index288.mjs +0 -4
- package/index289.js +0 -1
- package/index289.mjs +0 -4
- package/providers/Alerts/index.d.ts +0 -4
- package/style.css +0 -1
package/index148.mjs
CHANGED
|
@@ -1,87 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
swiper: e,
|
|
5
|
-
extendParams: S,
|
|
6
|
-
on: c
|
|
7
|
-
} = w;
|
|
8
|
-
S({
|
|
9
|
-
history: {
|
|
10
|
-
enabled: !1,
|
|
11
|
-
root: "",
|
|
12
|
-
replaceState: !1,
|
|
13
|
-
key: "slides",
|
|
14
|
-
keepQuery: !1
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
let d = !1, o = {};
|
|
18
|
-
const y = (t) => t.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), u = (t) => {
|
|
19
|
-
const l = h();
|
|
20
|
-
let r;
|
|
21
|
-
t ? r = new URL(t) : r = l.location;
|
|
22
|
-
const a = r.pathname.slice(1).split("/").filter((i) => i !== ""), n = a.length, s = a[n - 2], p = a[n - 1];
|
|
23
|
-
return {
|
|
24
|
-
key: s,
|
|
25
|
-
value: p
|
|
26
|
-
};
|
|
27
|
-
}, m = (t, l) => {
|
|
28
|
-
const r = h();
|
|
29
|
-
if (!d || !e.params.history.enabled) return;
|
|
30
|
-
let a;
|
|
31
|
-
e.params.url ? a = new URL(e.params.url) : a = r.location;
|
|
32
|
-
const n = e.slides[l];
|
|
33
|
-
let s = y(n.getAttribute("data-history"));
|
|
34
|
-
if (e.params.history.root.length > 0) {
|
|
35
|
-
let i = e.params.history.root;
|
|
36
|
-
i[i.length - 1] === "/" && (i = i.slice(0, i.length - 1)), s = `${i}/${t ? `${t}/` : ""}${s}`;
|
|
37
|
-
} else a.pathname.includes(t) || (s = `${t ? `${t}/` : ""}${s}`);
|
|
38
|
-
e.params.history.keepQuery && (s += a.search);
|
|
39
|
-
const p = r.history.state;
|
|
40
|
-
p && p.value === s || (e.params.history.replaceState ? r.history.replaceState({
|
|
41
|
-
value: s
|
|
42
|
-
}, null, s) : r.history.pushState({
|
|
43
|
-
value: s
|
|
44
|
-
}, null, s));
|
|
45
|
-
}, g = (t, l, r) => {
|
|
46
|
-
if (l)
|
|
47
|
-
for (let a = 0, n = e.slides.length; a < n; a += 1) {
|
|
48
|
-
const s = e.slides[a];
|
|
49
|
-
if (y(s.getAttribute("data-history")) === l) {
|
|
50
|
-
const i = e.getSlideIndex(s);
|
|
51
|
-
e.slideTo(i, t, r);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else
|
|
55
|
-
e.slideTo(0, t, r);
|
|
56
|
-
}, f = () => {
|
|
57
|
-
o = u(e.params.url), g(e.params.speed, o.value, !1);
|
|
58
|
-
}, v = () => {
|
|
59
|
-
const t = h();
|
|
60
|
-
if (e.params.history) {
|
|
61
|
-
if (!t.history || !t.history.pushState) {
|
|
62
|
-
e.params.history.enabled = !1, e.params.hashNavigation.enabled = !0;
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (d = !0, o = u(e.params.url), !o.key && !o.value) {
|
|
66
|
-
e.params.history.replaceState || t.addEventListener("popstate", f);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
g(0, o.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", f);
|
|
70
|
-
}
|
|
71
|
-
}, b = () => {
|
|
72
|
-
const t = h();
|
|
73
|
-
e.params.history.replaceState || t.removeEventListener("popstate", f);
|
|
74
|
-
};
|
|
75
|
-
c("init", () => {
|
|
76
|
-
e.params.history.enabled && v();
|
|
77
|
-
}), c("destroy", () => {
|
|
78
|
-
e.params.history.enabled && b();
|
|
79
|
-
}), c("transitionEnd _freeModeNoMomentumRelease", () => {
|
|
80
|
-
d && m(e.params.history.key, e.activeIndex);
|
|
81
|
-
}), c("slideChange", () => {
|
|
82
|
-
d && e.params.cssMode && m(e.params.history.key, e.activeIndex);
|
|
83
|
-
});
|
|
1
|
+
import { _check_private_redeclaration as t } from "./index200.mjs";
|
|
2
|
+
function c(_, e, i) {
|
|
3
|
+
t(_, e), e.set(_, i);
|
|
84
4
|
}
|
|
85
5
|
export {
|
|
86
|
-
|
|
6
|
+
c as _,
|
|
7
|
+
c as _class_private_field_init
|
|
87
8
|
};
|
package/index149.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/index149.mjs
CHANGED
|
@@ -1,61 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function w(p) {
|
|
4
|
-
let {
|
|
5
|
-
swiper: e,
|
|
6
|
-
extendParams: u,
|
|
7
|
-
emit: l,
|
|
8
|
-
on: n
|
|
9
|
-
} = p, r = !1;
|
|
10
|
-
const h = f(), s = S();
|
|
11
|
-
u({
|
|
12
|
-
hashNavigation: {
|
|
13
|
-
enabled: !1,
|
|
14
|
-
replaceState: !1,
|
|
15
|
-
watchState: !1,
|
|
16
|
-
getSlideIndex(a, t) {
|
|
17
|
-
if (e.virtual && e.params.virtual.enabled) {
|
|
18
|
-
const i = e.slides.filter((v) => v.getAttribute("data-hash") === t)[0];
|
|
19
|
-
return i ? parseInt(i.getAttribute("data-swiper-slide-index"), 10) : 0;
|
|
20
|
-
}
|
|
21
|
-
return e.getSlideIndex(x(e.slidesEl, `.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0]);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const o = () => {
|
|
26
|
-
l("hashChange");
|
|
27
|
-
const a = h.location.hash.replace("#", ""), t = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], i = t ? t.getAttribute("data-hash") : "";
|
|
28
|
-
if (a !== i) {
|
|
29
|
-
const d = e.params.hashNavigation.getSlideIndex(e, a);
|
|
30
|
-
if (typeof d > "u" || Number.isNaN(d)) return;
|
|
31
|
-
e.slideTo(d);
|
|
32
|
-
}
|
|
33
|
-
}, c = () => {
|
|
34
|
-
if (!r || !e.params.hashNavigation.enabled) return;
|
|
35
|
-
const a = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], t = a ? a.getAttribute("data-hash") || a.getAttribute("data-history") : "";
|
|
36
|
-
e.params.hashNavigation.replaceState && s.history && s.history.replaceState ? (s.history.replaceState(null, null, `#${t}` || ""), l("hashSet")) : (h.location.hash = t || "", l("hashSet"));
|
|
37
|
-
}, m = () => {
|
|
38
|
-
if (!e.params.hashNavigation.enabled || e.params.history && e.params.history.enabled) return;
|
|
39
|
-
r = !0;
|
|
40
|
-
const a = h.location.hash.replace("#", "");
|
|
41
|
-
if (a) {
|
|
42
|
-
const i = e.params.hashNavigation.getSlideIndex(e, a);
|
|
43
|
-
e.slideTo(i || 0, 0, e.params.runCallbacksOnInit, !0);
|
|
44
|
-
}
|
|
45
|
-
e.params.hashNavigation.watchState && s.addEventListener("hashchange", o);
|
|
46
|
-
}, g = () => {
|
|
47
|
-
e.params.hashNavigation.watchState && s.removeEventListener("hashchange", o);
|
|
48
|
-
};
|
|
49
|
-
n("init", () => {
|
|
50
|
-
e.params.hashNavigation.enabled && m();
|
|
51
|
-
}), n("destroy", () => {
|
|
52
|
-
e.params.hashNavigation.enabled && g();
|
|
53
|
-
}), n("transitionEnd _freeModeNoMomentumRelease", () => {
|
|
54
|
-
r && c();
|
|
55
|
-
}), n("slideChange", () => {
|
|
56
|
-
r && e.params.cssMode && c();
|
|
57
|
-
});
|
|
1
|
+
function d(f, a) {
|
|
2
|
+
return f - a * Math.floor(f / a);
|
|
58
3
|
}
|
|
59
4
|
export {
|
|
60
|
-
|
|
5
|
+
d as mod
|
|
61
6
|
};
|
package/index15.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),H=require("lodash"),T=require("react"),q=require("react-aria"),S=require("react-hook-form"),E=require("react-stately"),$=require("./index24.js"),I=require("./index6.js"),L=require("./index13.js"),b=require("./index3.js"),W=require("./index36.js"),A=require("./
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),H=require("lodash"),T=require("react"),q=require("react-aria"),S=require("react-hook-form"),E=require("react-stately"),$=require("./index24.js"),I=require("./index6.js"),L=require("./index13.js"),b=require("./index3.js"),W=require("./index36.js"),A=require("./index107.js"),B=require("./index108.js"),j=n=>{var x;const{name:c,placeholderLabel:a,disabled:l,hookFormRef:u,isError:t=!1,errorMessage:i,themeName:e="select",tokens:d,customTheme:D,label:m,onSelectionChange:R,defaultValue:k,value:F,icon:M,popoverMatchesWidth:K,options:N,...g}=n,o=T.useRef(null),s=E.useSelectState({...g,children:W,selectedKey:F,defaultSelectedKey:k,items:N,onSelectionChange:R}),{triggerProps:v,menuProps:y,labelProps:w}=q.useSelect({...g,label:m},s,o),{onPress:h,onPressStart:f,...P}=v;return r.jsxs($.default,{themeName:`${e}.wrapper`,children:[m&&r.jsx(b.default,{...w,as:"label",themeName:`${e}.label`,children:m}),r.jsx(q.HiddenSelect,{...u,state:s,triggerRef:o,name:c,isDisabled:!0}),r.jsxs($.default,{themeName:`${e}.container`,children:[r.jsxs(I.ButtonWithForwardRef,{...P,handlePress:p=>{h==null||h(p),f==null||f(p)},ref:o,disabled:l,themeName:`${e}.button`,tokens:{...d,intent:t?"error":"default"},children:[s.selectedItem?s.selectedItem.rendered:a,r.jsx(L,{icon:M??"ArrowDown"})]}),s.isOpen&&o.current&&r.jsx(B,{tokens:d,state:s,triggerRef:o,placement:"bottom",themeName:`${e}.popover`,style:{[`--${e}-container-width`]:`${(x=o.current)==null?void 0:x.offsetWidth}px`},children:r.jsx(A.ListBox,{...y,themeName:e,state:s})}),t&&r.jsx(b.default,{tokens:{...d,isError:t},themeName:`${e}.errorMessage`,children:i})]})]})},C=n=>{const{name:c,required:a}=n,{register:l,formState:u}=S.useFormContext(),t=S.get(u.errors,c),i=(t==null?void 0:t.message)??void 0,{ref:e}=l(c,{required:a?"This is an error message":!1});return r.jsx(j,{...n,isError:!H.isEmpty(i),errorMessage:i,hookFormRef:e})};exports.ReactHookFormSelect=C;exports.default=j;
|
package/index15.mjs
CHANGED
|
@@ -10,8 +10,8 @@ import { ButtonWithForwardRef as q } from "./index6.mjs";
|
|
|
10
10
|
import C from "./index13.mjs";
|
|
11
11
|
import $ from "./index3.mjs";
|
|
12
12
|
import H from "./index36.mjs";
|
|
13
|
-
import { ListBox as K } from "./
|
|
14
|
-
import L from "./
|
|
13
|
+
import { ListBox as K } from "./index107.mjs";
|
|
14
|
+
import L from "./index108.mjs";
|
|
15
15
|
const A = (m) => {
|
|
16
16
|
var b;
|
|
17
17
|
const {
|
package/index150.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index143.js"),D=require("./index146.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/index150.mjs
CHANGED
|
@@ -1,119 +1,128 @@
|
|
|
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 $ } from "./index143.mjs";
|
|
2
|
+
import { GregorianCalendar as c } from "./index146.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);
|
|
29
76
|
}
|
|
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;
|
|
77
|
+
toJulianDay(r) {
|
|
78
|
+
return super.toJulianDay(s(r));
|
|
53
79
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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));
|
|
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)));
|
|
89
|
+
}
|
|
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));
|
|
78
93
|
}
|
|
79
94
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
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
|
-
});
|
|
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
|
+
}
|
|
116
125
|
}
|
|
117
126
|
export {
|
|
118
|
-
|
|
127
|
+
g as JapaneseCalendar
|
|
119
128
|
};
|
package/index151.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index143.js"),t=require("./index146.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;
|
package/index151.mjs
CHANGED
|
@@ -1,125 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} = g;
|
|
9
|
-
x({
|
|
10
|
-
freeMode: {
|
|
11
|
-
enabled: !1,
|
|
12
|
-
momentum: !0,
|
|
13
|
-
momentumRatio: 1,
|
|
14
|
-
momentumBounce: !0,
|
|
15
|
-
momentumBounceRatio: 1,
|
|
16
|
-
momentumVelocityRatio: 1,
|
|
17
|
-
sticky: !1,
|
|
18
|
-
minimumVelocity: 0.02
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
function E() {
|
|
22
|
-
if (e.params.cssMode) return;
|
|
23
|
-
const s = e.getTranslate();
|
|
24
|
-
e.setTranslate(s), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
|
|
25
|
-
currentPos: e.rtl ? e.translate : -e.translate
|
|
26
|
-
});
|
|
1
|
+
import { CalendarDate as n } from "./index143.mjs";
|
|
2
|
+
import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index146.mjs";
|
|
3
|
+
const o = -543;
|
|
4
|
+
class u extends s {
|
|
5
|
+
fromJulianDay(e) {
|
|
6
|
+
let r = super.fromJulianDay(e), d = $(r.era, r.year);
|
|
7
|
+
return new n(this, d - o, r.month, r.day);
|
|
27
8
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const {
|
|
31
|
-
touchEventsData: s,
|
|
32
|
-
touches: m
|
|
33
|
-
} = e;
|
|
34
|
-
s.velocities.length === 0 && s.velocities.push({
|
|
35
|
-
position: m[e.isHorizontal() ? "startX" : "startY"],
|
|
36
|
-
time: s.touchStartTime
|
|
37
|
-
}), s.velocities.push({
|
|
38
|
-
position: m[e.isHorizontal() ? "currentX" : "currentY"],
|
|
39
|
-
time: v()
|
|
40
|
-
});
|
|
9
|
+
toJulianDay(e) {
|
|
10
|
+
return super.toJulianDay(t(e));
|
|
41
11
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (e.params.cssMode) return;
|
|
47
|
-
const {
|
|
48
|
-
params: o,
|
|
49
|
-
wrapperEl: f,
|
|
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());
|
|
12
|
+
getEras() {
|
|
13
|
+
return [
|
|
14
|
+
"BE"
|
|
15
|
+
];
|
|
114
16
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
17
|
+
getDaysInMonth(e) {
|
|
18
|
+
return super.getDaysInMonth(t(e));
|
|
19
|
+
}
|
|
20
|
+
balanceDate() {
|
|
21
|
+
}
|
|
22
|
+
constructor(...e) {
|
|
23
|
+
super(...e), this.identifier = "buddhist";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function t(a) {
|
|
27
|
+
let [e, r] = c(a.year + o);
|
|
28
|
+
return new n(e, r, a.month, a.day);
|
|
122
29
|
}
|
|
123
30
|
export {
|
|
124
|
-
|
|
31
|
+
u as BuddhistCalendar
|
|
125
32
|
};
|
package/index152.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index143.js"),o=require("./index146.js"),n=1911;function l(r){return r.era==="minguo"?r.year+n:1-r.year+n}function u(r){let e=r-n;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends o.GregorianCalendar{fromJulianDay(e){let a=super.fromJulianDay(e),t=o.getExtendedYear(a.era,a.year),[s,g]=u(t);return new f.CalendarDate(this,s,g,a.month,a.day)}toJulianDay(e){return super.toJulianDay(i(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[a,t]=u(l(e));e.era=a,e.year=t}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(i(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-n}constructor(...e){super(...e),this.identifier="roc"}}function i(r){let[e,a]=o.fromExtendedYear(l(r));return new f.CalendarDate(e,a,r.month,r.day)}exports.TaiwanCalendar=c;
|