@okam/stack-ui 1.32.2 → 1.32.4
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/fields/TextInputField/index.d.ts +1 -1
- package/components/fields/TextInputField/interface.d.ts +1 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +145 -144
- package/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index115.js +1 -1
- package/index115.mjs +2 -2
- package/index118.js +1 -1
- package/index118.mjs +3 -3
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +2 -2
- package/index122.js +1 -1
- package/index122.mjs +2 -2
- package/index123.js +1 -1
- package/index123.mjs +8 -8
- package/index124.js +1 -1
- package/index124.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +52 -46
- package/index140.js +1 -1
- package/index140.mjs +46 -241
- package/index141.js +1 -2
- package/index141.mjs +241 -13
- package/index142.js +2 -1
- package/index142.mjs +12 -29
- package/index143.js +1 -1
- package/index143.mjs +30 -52
- package/index144.js +1 -1
- package/index144.mjs +23 -21
- package/index145.js +1 -1
- package/index145.mjs +113 -38
- package/index146.js +1 -1
- package/index146.mjs +22 -25
- package/index147.js +1 -1
- package/index147.mjs +35 -251
- package/index148.js +1 -1
- package/index148.mjs +25 -106
- package/index149.js +1 -1
- package/index149.mjs +242 -320
- package/index150.js +1 -1
- package/index150.mjs +105 -23
- package/index151.js +1 -1
- package/index151.mjs +323 -104
- package/index153.js +1 -1
- package/index153.mjs +1 -1
- package/index154.js +1 -1
- package/index154.mjs +1 -1
- package/index155.js +1 -1
- package/index155.mjs +1 -1
- package/index158.js +1 -1
- package/index158.mjs +3 -3
- package/index159.js +1 -1
- package/index159.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +9 -9
- package/index167.js +1 -1
- package/index167.mjs +1 -1
- package/index169.js +1 -1
- package/index169.mjs +3 -3
- package/index170.js +1 -1
- package/index170.mjs +1 -1
- package/index171.js +1 -1
- package/index171.mjs +1 -1
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index175.js +1 -1
- package/index175.mjs +1 -1
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index177.js +1 -1
- package/index177.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +4 -4
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index184.js +1 -1
- package/index184.mjs +1 -1
- package/index185.js +1 -1
- package/index185.mjs +197 -205
- package/index186.js +1 -1
- package/index186.mjs +64 -24
- package/index187.js +1 -1
- package/index187.mjs +143 -4
- package/index188.js +1 -1
- package/index188.mjs +124 -3
- package/index189.js +1 -1
- package/index189.mjs +215 -116
- package/index190.js +1 -1
- package/index190.mjs +184 -23
- package/index191.js +1 -1
- package/index191.mjs +69 -51
- package/index192.js +1 -1
- package/index192.mjs +278 -43
- package/index193.js +1 -1
- package/index193.mjs +92 -31
- package/index194.js +1 -1
- package/index194.mjs +184 -109
- package/index195.js +1 -1
- package/index195.mjs +84 -77
- package/index196.js +1 -1
- package/index196.mjs +58 -101
- package/index197.js +1 -1
- package/index197.mjs +127 -98
- package/index198.js +1 -1
- package/index198.mjs +114 -70
- package/index199.js +1 -1
- package/index199.mjs +118 -91
- package/index200.js +1 -1
- package/index200.mjs +69 -152
- package/index201.js +1 -1
- package/index201.mjs +111 -72
- package/index202.js +1 -1
- package/index202.mjs +51 -41
- package/index203.js +1 -1
- package/index203.mjs +93 -5
- package/index204.js +1 -1
- package/index204.mjs +69 -60
- package/index205.js +1 -1
- package/index205.mjs +55 -58
- package/index206.js +1 -1
- package/index206.mjs +92 -196
- package/index207.js +5 -1
- package/index207.mjs +75 -59
- package/index208.js +1 -1
- package/index208.mjs +2008 -126
- package/index209.js +1 -1
- package/index209.mjs +56 -121
- package/index210.js +1 -1
- package/index210.mjs +185 -221
- package/index211.js +1 -1
- package/index211.mjs +206 -185
- package/index212.js +1 -1
- package/index212.mjs +24 -69
- package/index213.js +1 -1
- package/index213.mjs +4 -279
- package/index214.js +1 -1
- package/index214.mjs +3 -98
- package/index215.js +1 -1
- package/index215.mjs +116 -179
- package/index216.js +1 -1
- package/index216.mjs +29 -84
- package/index217.js +1 -1
- package/index217.mjs +51 -58
- package/index218.js +1 -1
- package/index218.mjs +43 -125
- package/index219.js +1 -1
- package/index219.mjs +33 -112
- package/index22.js +1 -1
- package/index22.mjs +109 -102
- package/index220.js +1 -1
- package/index220.mjs +110 -119
- package/index221.js +1 -1
- package/index221.mjs +77 -72
- package/index222.js +1 -1
- package/index222.mjs +96 -105
- package/index223.js +1 -1
- package/index223.mjs +98 -53
- package/index224.js +1 -1
- package/index224.mjs +68 -89
- package/index225.js +1 -1
- package/index225.mjs +93 -68
- package/index226.js +1 -1
- package/index226.mjs +151 -52
- package/index227.js +1 -1
- package/index227.mjs +72 -100
- package/index228.js +1 -5
- package/index228.mjs +40 -78
- package/index229.js +1 -1
- package/index229.mjs +5 -2025
- package/index230.js +1 -1
- package/index230.mjs +61 -59
- package/index231.js +1 -1
- package/index231.mjs +58 -187
- package/index269.js +1 -1
- package/index269.mjs +130 -4
- package/index270.js +1 -1
- package/index270.mjs +184 -42
- package/index271.js +1 -1
- package/index271.mjs +9 -9
- package/index272.js +1 -1
- package/index272.mjs +4 -16
- package/index273.js +1 -1
- package/index273.mjs +37 -16
- package/index274.js +1 -1
- package/index274.mjs +6 -16
- package/index275.js +1 -1
- package/index275.mjs +30 -16
- package/index276.js +1 -1
- package/index276.mjs +7 -16
- package/index277.js +1 -1
- package/index277.mjs +141 -16
- package/index278.js +1 -1
- package/index278.mjs +198 -16
- package/index279.js +1 -1
- package/index279.mjs +23 -16
- package/index280.js +1 -1
- package/index280.mjs +29 -16
- package/index281.js +1 -1
- package/index281.mjs +47 -16
- package/index282.js +1 -1
- package/index282.mjs +49 -16
- package/index283.js +1 -1
- package/index283.mjs +101 -16
- package/index284.js +1 -1
- package/index284.mjs +6 -16
- package/index285.js +1 -1
- package/index285.mjs +71 -15
- package/index286.js +1 -1
- package/index286.mjs +59 -16
- package/index287.js +1 -1
- package/index287.mjs +8 -16
- package/index288.js +1 -1
- package/index288.mjs +12 -16
- package/index289.js +1 -1
- package/index289.mjs +48 -16
- package/index290.js +1 -1
- package/index290.mjs +25 -16
- package/index291.js +1 -1
- package/index291.mjs +6 -16
- package/index292.js +1 -1
- package/index292.mjs +15 -16
- package/index293.js +1 -1
- package/index293.mjs +25 -16
- package/index294.js +1 -1
- package/index294.mjs +29 -16
- package/index295.js +1 -1
- package/index295.mjs +32 -16
- package/index296.js +1 -1
- package/index296.mjs +10 -16
- package/index297.js +1 -1
- package/index297.mjs +10 -16
- package/index298.js +1 -1
- package/index298.mjs +6 -16
- package/index299.js +1 -1
- package/index299.mjs +8 -16
- package/index300.js +1 -1
- package/index300.mjs +14 -16
- package/index301.js +1 -1
- package/index301.mjs +9 -16
- package/index302.js +1 -1
- package/index302.mjs +5 -16
- package/index303.js +1 -1
- package/index303.mjs +49 -16
- package/index304.js +1 -1
- package/index304.mjs +12 -12
- package/index305.js +1 -1
- package/index305.mjs +12 -12
- package/index306.js +1 -1
- package/index306.mjs +15 -130
- package/index307.js +1 -1
- package/index307.mjs +16 -191
- package/index308.js +1 -1
- package/index308.mjs +16 -10
- package/index309.js +1 -1
- package/index309.mjs +16 -4
- package/index310.js +1 -1
- package/index310.mjs +16 -37
- package/index311.js +1 -1
- package/index311.mjs +16 -6
- package/index312.js +1 -1
- package/index312.mjs +16 -30
- package/index313.js +1 -1
- package/index313.mjs +16 -7
- package/index314.js +1 -1
- package/index314.mjs +16 -141
- package/index315.js +1 -1
- package/index315.mjs +16 -198
- package/index316.js +1 -1
- package/index316.mjs +16 -23
- package/index317.js +1 -1
- package/index317.mjs +16 -29
- package/index318.js +1 -1
- package/index318.mjs +16 -47
- package/index319.js +1 -1
- package/index319.mjs +16 -49
- package/index320.js +1 -1
- package/index320.mjs +16 -101
- package/index321.js +1 -1
- package/index321.mjs +16 -6
- package/index322.js +1 -1
- package/index322.mjs +15 -71
- package/index323.js +1 -1
- package/index323.mjs +16 -59
- package/index324.js +1 -1
- package/index324.mjs +16 -8
- package/index325.js +1 -1
- package/index325.mjs +16 -12
- package/index326.js +1 -1
- package/index326.mjs +16 -48
- package/index327.js +1 -1
- package/index327.mjs +16 -25
- package/index328.js +1 -1
- package/index328.mjs +16 -6
- package/index329.js +1 -1
- package/index329.mjs +16 -15
- package/index330.js +1 -1
- package/index330.mjs +16 -25
- package/index331.js +1 -1
- package/index331.mjs +16 -29
- package/index332.js +1 -1
- package/index332.mjs +16 -32
- package/index333.js +1 -1
- package/index333.mjs +16 -10
- package/index334.js +1 -1
- package/index334.mjs +16 -6
- package/index335.js +1 -1
- package/index335.mjs +16 -8
- package/index336.js +1 -1
- package/index336.mjs +16 -14
- package/index337.js +1 -1
- package/index337.mjs +16 -9
- package/index340.js +1 -1
- package/index340.mjs +1 -1
- package/index341.js +1 -1
- package/index341.mjs +2 -2
- package/index344.js +1 -1
- package/index344.mjs +1 -1
- package/index345.js +1 -1
- package/index345.mjs +71 -117
- package/index346.js +1 -1
- package/index346.mjs +117 -71
- package/package.json +1 -1
package/index215.mjs
CHANGED
|
@@ -1,191 +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
|
-
|
|
1
|
+
import { CalendarDate as $ } from "./index169.mjs";
|
|
2
|
+
import { GregorianCalendar as c } from "./index184.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)));
|
|
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));
|
|
27
93
|
}
|
|
28
|
-
}), i.a11y = {
|
|
29
|
-
clicked: !1
|
|
30
|
-
};
|
|
31
|
-
let r = null, p, f, L = (/* @__PURE__ */ new Date()).getTime();
|
|
32
|
-
function u(e) {
|
|
33
|
-
const t = r;
|
|
34
|
-
t.length !== 0 && (t.innerHTML = "", t.innerHTML = e);
|
|
35
|
-
}
|
|
36
|
-
function B(e) {
|
|
37
|
-
const t = () => Math.round(16 * Math.random()).toString(16);
|
|
38
|
-
return "x".repeat(e).replace(/x/g, t);
|
|
39
|
-
}
|
|
40
|
-
function g(e) {
|
|
41
|
-
e = n(e), e.forEach((t) => {
|
|
42
|
-
t.setAttribute("tabIndex", "0");
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function x(e) {
|
|
46
|
-
e = n(e), e.forEach((t) => {
|
|
47
|
-
t.setAttribute("tabIndex", "-1");
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function m(e, t) {
|
|
51
|
-
e = n(e), e.forEach((a) => {
|
|
52
|
-
a.setAttribute("role", t);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function M(e, t) {
|
|
56
|
-
e = n(e), e.forEach((a) => {
|
|
57
|
-
a.setAttribute("aria-roledescription", t);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function O(e, t) {
|
|
61
|
-
e = n(e), e.forEach((a) => {
|
|
62
|
-
a.setAttribute("aria-controls", t);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function E(e, t) {
|
|
66
|
-
e = n(e), e.forEach((a) => {
|
|
67
|
-
a.setAttribute("aria-label", t);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function H(e, t) {
|
|
71
|
-
e = n(e), e.forEach((a) => {
|
|
72
|
-
a.setAttribute("id", t);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function q(e, t) {
|
|
76
|
-
e = n(e), e.forEach((a) => {
|
|
77
|
-
a.setAttribute("aria-live", t);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function A(e) {
|
|
81
|
-
e = n(e), e.forEach((t) => {
|
|
82
|
-
t.setAttribute("aria-disabled", !0);
|
|
83
|
-
});
|
|
84
94
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
t.setAttribute("aria-disabled", !1);
|
|
88
|
-
});
|
|
95
|
+
getEras() {
|
|
96
|
+
return i;
|
|
89
97
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
n(i.navigation.nextEl).includes(a) && (i.isEnd && !i.params.loop || i.slideNext(), i.isEnd ? u(t.lastSlideMessage) : u(t.nextSlideMessage)), s.includes(a) && (i.isBeginning && !i.params.loop || i.slidePrev(), i.isBeginning ? u(t.firstSlideMessage) : u(t.prevSlideMessage));
|
|
97
|
-
}
|
|
98
|
-
i.pagination && a.matches(y(i.params.pagination.bulletClass)) && a.click();
|
|
99
|
-
}
|
|
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;
|
|
100
104
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
const {
|
|
104
|
-
nextEl: e,
|
|
105
|
-
prevEl: t
|
|
106
|
-
} = i.navigation;
|
|
107
|
-
t && (i.isBeginning ? (A(t), x(t)) : (w(t), g(t))), e && (i.isEnd ? (A(e), x(e)) : (w(e), g(e)));
|
|
105
|
+
getDaysInMonth(r) {
|
|
106
|
+
return super.getDaysInMonth(s(r));
|
|
108
107
|
}
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
getMinimumMonthInYear(r) {
|
|
109
|
+
let n = l(r);
|
|
110
|
+
return n ? n[1] : 1;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
getMinimumDayInMonth(r) {
|
|
113
|
+
let n = l(r);
|
|
114
|
+
return n && r.month === n[1] ? n[2] : 1;
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
k() && i.pagination.bullets.forEach((t) => {
|
|
118
|
-
i.params.pagination.clickable && (g(t), i.params.pagination.renderBullet || (m(t, "button"), E(t, e.paginationBulletMessage.replace(/\{\{index\}\}/, j(t) + 1)))), t.matches(y(i.params.pagination.bulletActiveClass)) ? t.setAttribute("aria-current", "true") : t.removeAttribute("aria-current");
|
|
119
|
-
});
|
|
116
|
+
constructor(...r) {
|
|
117
|
+
super(...r), this.identifier = "japanese";
|
|
120
118
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
p = !1, requestAnimationFrame(() => {
|
|
127
|
-
requestAnimationFrame(() => {
|
|
128
|
-
i.destroyed || (i.a11y.clicked = !1);
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
}, D = (e) => {
|
|
132
|
-
L = (/* @__PURE__ */ new Date()).getTime();
|
|
133
|
-
}, h = (e) => {
|
|
134
|
-
if (i.a11y.clicked || !i.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - L < 100) return;
|
|
135
|
-
const t = e.target.closest(`.${i.params.slideClass}, swiper-slide`);
|
|
136
|
-
if (!t || !i.slides.includes(t)) return;
|
|
137
|
-
f = t;
|
|
138
|
-
const a = i.slides.indexOf(t) === i.activeIndex, s = i.params.watchSlidesProgress && i.visibleSlides && i.visibleSlides.includes(t);
|
|
139
|
-
a || s || e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents || (i.isHorizontal() ? i.el.scrollLeft = 0 : i.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
140
|
-
p || (i.params.loop ? i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")), 0) : i.slideTo(i.slides.indexOf(t), 0), p = !1);
|
|
141
|
-
}));
|
|
142
|
-
}, I = () => {
|
|
143
|
-
const e = i.params.a11y;
|
|
144
|
-
e.itemRoleDescriptionMessage && M(i.slides, e.itemRoleDescriptionMessage), e.slideRole && m(i.slides, e.slideRole);
|
|
145
|
-
const t = i.slides.length;
|
|
146
|
-
e.slideLabelMessage && i.slides.forEach((a, s) => {
|
|
147
|
-
const l = i.params.loop ? parseInt(a.getAttribute("data-swiper-slide-index"), 10) : s, c = e.slideLabelMessage.replace(/\{\{index\}\}/, l + 1).replace(/\{\{slidesLength\}\}/, t);
|
|
148
|
-
E(a, c);
|
|
149
|
-
});
|
|
150
|
-
}, V = () => {
|
|
151
|
-
const e = i.params.a11y;
|
|
152
|
-
i.el.append(r);
|
|
153
|
-
const t = i.el;
|
|
154
|
-
e.containerRoleDescriptionMessage && M(t, e.containerRoleDescriptionMessage), e.containerMessage && E(t, e.containerMessage), e.containerRole && m(t, e.containerRole);
|
|
155
|
-
const a = i.wrapperEl, s = e.id || a.getAttribute("id") || `swiper-wrapper-${B(16)}`, l = i.params.autoplay && i.params.autoplay.enabled ? "off" : "polite";
|
|
156
|
-
H(a, s), q(a, l), I();
|
|
157
|
-
let {
|
|
158
|
-
nextEl: c,
|
|
159
|
-
prevEl: v
|
|
160
|
-
} = i.navigation ? i.navigation : {};
|
|
161
|
-
c = n(c), v = n(v), c && c.forEach((b) => S(b, s, e.nextSlideMessage)), v && v.forEach((b) => S(b, s, e.prevSlideMessage)), C() && n(i.pagination.el).forEach((z) => {
|
|
162
|
-
z.addEventListener("keydown", d);
|
|
163
|
-
}), F().addEventListener("visibilitychange", D), i.el.addEventListener("focus", h, !0), i.el.addEventListener("focus", h, !0), i.el.addEventListener("pointerdown", R, !0), i.el.addEventListener("pointerup", T, !0);
|
|
164
|
-
};
|
|
165
|
-
function $() {
|
|
166
|
-
r && r.remove();
|
|
167
|
-
let {
|
|
168
|
-
nextEl: e,
|
|
169
|
-
prevEl: t
|
|
170
|
-
} = i.navigation ? i.navigation : {};
|
|
171
|
-
e = n(e), t = n(t), e && e.forEach((s) => s.removeEventListener("keydown", d)), t && t.forEach((s) => s.removeEventListener("keydown", d)), C() && n(i.pagination.el).forEach((l) => {
|
|
172
|
-
l.removeEventListener("keydown", d);
|
|
173
|
-
}), F().removeEventListener("visibilitychange", D), i.el && typeof i.el != "string" && (i.el.removeEventListener("focus", h, !0), i.el.removeEventListener("pointerdown", R, !0), i.el.removeEventListener("pointerup", T, !0));
|
|
119
|
+
}
|
|
120
|
+
function l(e) {
|
|
121
|
+
if (e.year === 1) {
|
|
122
|
+
let r = i.indexOf(e.era);
|
|
123
|
+
return f[r];
|
|
174
124
|
}
|
|
175
|
-
o("beforeInit", () => {
|
|
176
|
-
r = K("span", i.params.a11y.notificationClass), r.setAttribute("aria-live", "assertive"), r.setAttribute("aria-atomic", "true");
|
|
177
|
-
}), o("afterInit", () => {
|
|
178
|
-
i.params.a11y.enabled && V();
|
|
179
|
-
}), o("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
180
|
-
i.params.a11y.enabled && I();
|
|
181
|
-
}), o("fromEdge toEdge afterInit lock unlock", () => {
|
|
182
|
-
i.params.a11y.enabled && G();
|
|
183
|
-
}), o("paginationUpdate", () => {
|
|
184
|
-
i.params.a11y.enabled && U();
|
|
185
|
-
}), o("destroy", () => {
|
|
186
|
-
i.params.a11y.enabled && $();
|
|
187
|
-
});
|
|
188
125
|
}
|
|
189
126
|
export {
|
|
190
|
-
|
|
127
|
+
g as JapaneseCalendar
|
|
191
128
|
};
|
package/index216.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index169.js"),t=require("./index184.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/index216.mjs
CHANGED
|
@@ -1,87 +1,32 @@
|
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${o}"]`) : e.slides[o];
|
|
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, o, r) => {
|
|
46
|
-
if (o)
|
|
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")) === o) {
|
|
50
|
-
const i = e.getSlideIndex(s);
|
|
51
|
-
e.slideTo(i, t, r);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else
|
|
55
|
-
e.slideTo(0, t, r);
|
|
56
|
-
}, u = () => {
|
|
57
|
-
l = f(e.params.url), g(e.params.speed, l.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, l = f(e.params.url), !l.key && !l.value) {
|
|
66
|
-
e.params.history.replaceState || t.addEventListener("popstate", u);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
g(0, l.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", u);
|
|
70
|
-
}
|
|
71
|
-
}, b = () => {
|
|
72
|
-
const t = h();
|
|
73
|
-
e.params.history.replaceState || t.removeEventListener("popstate", u);
|
|
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 { CalendarDate as n } from "./index169.mjs";
|
|
2
|
+
import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index184.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);
|
|
8
|
+
}
|
|
9
|
+
toJulianDay(e) {
|
|
10
|
+
return super.toJulianDay(t(e));
|
|
11
|
+
}
|
|
12
|
+
getEras() {
|
|
13
|
+
return [
|
|
14
|
+
"BE"
|
|
15
|
+
];
|
|
16
|
+
}
|
|
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);
|
|
84
29
|
}
|
|
85
30
|
export {
|
|
86
|
-
|
|
31
|
+
u as BuddhistCalendar
|
|
87
32
|
};
|
package/index217.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index169.js"),o=require("./index184.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;
|
package/index217.mjs
CHANGED
|
@@ -1,61 +1,54 @@
|
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
e.
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
e.
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
import { CalendarDate as f } from "./index169.mjs";
|
|
2
|
+
import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index184.mjs";
|
|
3
|
+
const n = 1911;
|
|
4
|
+
function i(r) {
|
|
5
|
+
return r.era === "minguo" ? r.year + n : 1 - r.year + n;
|
|
6
|
+
}
|
|
7
|
+
function o(r) {
|
|
8
|
+
let e = r - n;
|
|
9
|
+
return e > 0 ? [
|
|
10
|
+
"minguo",
|
|
11
|
+
e
|
|
12
|
+
] : [
|
|
13
|
+
"before_minguo",
|
|
14
|
+
1 - e
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
class m extends c {
|
|
18
|
+
fromJulianDay(e) {
|
|
19
|
+
let a = super.fromJulianDay(e), t = s(a.era, a.year), [u, $] = o(t);
|
|
20
|
+
return new f(this, u, $, a.month, a.day);
|
|
21
|
+
}
|
|
22
|
+
toJulianDay(e) {
|
|
23
|
+
return super.toJulianDay(b(e));
|
|
24
|
+
}
|
|
25
|
+
getEras() {
|
|
26
|
+
return [
|
|
27
|
+
"before_minguo",
|
|
28
|
+
"minguo"
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
balanceDate(e) {
|
|
32
|
+
let [a, t] = o(i(e));
|
|
33
|
+
e.era = a, e.year = t;
|
|
34
|
+
}
|
|
35
|
+
isInverseEra(e) {
|
|
36
|
+
return e.era === "before_minguo";
|
|
37
|
+
}
|
|
38
|
+
getDaysInMonth(e) {
|
|
39
|
+
return super.getDaysInMonth(b(e));
|
|
40
|
+
}
|
|
41
|
+
getYearsInEra(e) {
|
|
42
|
+
return e.era === "before_minguo" ? 9999 : 9999 - n;
|
|
43
|
+
}
|
|
44
|
+
constructor(...e) {
|
|
45
|
+
super(...e), this.identifier = "roc";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function b(r) {
|
|
49
|
+
let [e, a] = g(i(r));
|
|
50
|
+
return new f(e, a, r.month, r.day);
|
|
58
51
|
}
|
|
59
52
|
export {
|
|
60
|
-
|
|
53
|
+
m as TaiwanCalendar
|
|
61
54
|
};
|
package/index218.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index169.js"),u=require("./index214.js"),o=1948320,l=[0,31,62,93,124,155,186,216,246,276,306,336];class c{fromJulianDay(e){let r=e-o,a=1+Math.floor((33*r+3)/12053),i=365*(a-1)+Math.floor((8*a+21)/33),t=r-i,n=t<216?Math.floor(t/31):Math.floor((t-6)/30),s=t-l[n]+1;return new f.CalendarDate(this,a,n+1,s)}toJulianDay(e){let r=o-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return r+=l[e.month-1],r+=e.day,r}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||u.mod(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}exports.PersianCalendar=c;
|