@okam/stack-ui 1.35.0 → 1.35.2
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/SearchField/interface.d.ts +1 -0
- package/components/fields/Select/Select.d.ts +1 -1
- package/index125.js +1 -1
- package/index125.mjs +9 -9
- package/index141.js +1 -1
- package/index141.mjs +23 -23
- package/index142.js +1 -1
- package/index142.mjs +3 -3
- package/index147.js +1 -1
- package/index147.mjs +1 -1
- package/index152.js +1 -1
- package/index152.mjs +1 -1
- package/index16.js +1 -1
- package/index16.mjs +133 -131
- package/index178.js +1 -1
- package/index178.mjs +122 -201
- package/index179.js +1 -1
- package/index179.mjs +130 -60
- package/index18.js +1 -1
- package/index18.mjs +22 -22
- package/index180.js +1 -1
- package/index180.mjs +44 -143
- package/index181.js +1 -1
- package/index181.mjs +14 -124
- package/index182.js +1 -1
- package/index182.mjs +87 -216
- package/index183.js +1 -1
- package/index183.mjs +102 -186
- package/index184.js +1 -1
- package/index184.mjs +4 -69
- package/index185.js +1 -1
- package/index185.mjs +3 -279
- package/index186.js +1 -1
- package/index186.mjs +119 -92
- package/index187.js +1 -1
- package/index187.mjs +23 -182
- package/index188.js +1 -1
- package/index188.mjs +51 -84
- package/index189.js +1 -1
- package/index189.mjs +44 -58
- package/index190.js +1 -1
- package/index190.mjs +35 -124
- package/index191.js +1 -1
- package/index191.mjs +110 -113
- package/index192.js +1 -1
- package/index192.mjs +74 -119
- package/index193.js +1 -1
- package/index193.mjs +101 -72
- package/index194.js +1 -1
- package/index194.mjs +98 -111
- package/index195.js +1 -1
- package/index195.mjs +197 -46
- package/index196.js +1 -1
- package/index196.mjs +57 -86
- package/index197.js +1 -1
- package/index197.mjs +138 -65
- package/index198.js +1 -1
- package/index198.mjs +121 -53
- package/index199.js +1 -1
- package/index199.mjs +218 -93
- package/index200.js +1 -5
- package/index200.mjs +187 -77
- package/index201.js +1 -1
- package/index201.mjs +60 -2016
- package/index202.js +1 -1
- package/index202.mjs +277 -57
- package/index203.js +1 -1
- package/index203.mjs +95 -185
- package/index204.js +1 -1
- package/index204.mjs +179 -115
- package/index205.js +1 -1
- package/index205.mjs +81 -131
- package/index206.js +1 -1
- package/index206.mjs +58 -44
- package/index207.js +1 -1
- package/index207.mjs +126 -14
- package/index208.js +1 -1
- package/index208.mjs +113 -92
- package/index209.js +1 -1
- package/index209.mjs +119 -103
- package/index210.js +1 -1
- package/index210.mjs +72 -4
- package/index211.js +1 -1
- package/index211.mjs +110 -3
- package/index212.js +1 -1
- package/index212.mjs +51 -124
- package/index213.js +1 -1
- package/index213.mjs +93 -29
- package/index214.js +1 -1
- package/index214.mjs +70 -51
- package/index215.js +1 -1
- package/index215.mjs +56 -44
- package/index216.js +1 -1
- package/index216.mjs +98 -36
- package/index217.js +5 -1
- package/index217.mjs +78 -111
- package/index218.js +1 -1
- package/index218.mjs +2021 -73
- package/index219.js +1 -1
- package/index219.mjs +57 -99
- package/index220.js +1 -1
- package/index220.mjs +189 -98
- package/index232.js +1 -1
- package/index232.mjs +4 -130
- package/index233.js +1 -1
- package/index233.mjs +123 -183
- package/index234.js +1 -1
- package/index234.mjs +189 -8
- package/index235.js +1 -1
- package/index235.mjs +9 -3
- package/index236.js +1 -1
- package/index236.mjs +3 -36
- package/index237.js +1 -1
- package/index237.mjs +36 -5
- package/index238.js +1 -1
- package/index238.mjs +5 -29
- package/index239.js +1 -1
- package/index239.mjs +29 -6
- package/index240.js +1 -1
- package/index240.mjs +6 -4
- package/package.json +2 -29
package/index187.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index178.js"),t=require("./index182.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/index187.mjs
CHANGED
|
@@ -1,191 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
on: o
|
|
9
|
-
} = P;
|
|
10
|
-
N({
|
|
11
|
-
a11y: {
|
|
12
|
-
enabled: !0,
|
|
13
|
-
notificationClass: "swiper-notification",
|
|
14
|
-
prevSlideMessage: "Previous slide",
|
|
15
|
-
nextSlideMessage: "Next slide",
|
|
16
|
-
firstSlideMessage: "This is the first slide",
|
|
17
|
-
lastSlideMessage: "This is the last slide",
|
|
18
|
-
paginationBulletMessage: "Go to slide {{index}}",
|
|
19
|
-
slideLabelMessage: "{{index}} / {{slidesLength}}",
|
|
20
|
-
containerMessage: null,
|
|
21
|
-
containerRoleDescriptionMessage: null,
|
|
22
|
-
containerRole: null,
|
|
23
|
-
itemRoleDescriptionMessage: null,
|
|
24
|
-
slideRole: "group",
|
|
25
|
-
id: null,
|
|
26
|
-
scrollOnFocus: !0
|
|
27
|
-
}
|
|
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);
|
|
1
|
+
import { CalendarDate as n } from "./index178.mjs";
|
|
2
|
+
import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index182.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);
|
|
35
8
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return "x".repeat(e).replace(/x/g, t);
|
|
9
|
+
toJulianDay(e) {
|
|
10
|
+
return super.toJulianDay(t(e));
|
|
39
11
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
getEras() {
|
|
13
|
+
return [
|
|
14
|
+
"BE"
|
|
15
|
+
];
|
|
44
16
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
t.setAttribute("tabIndex", "-1");
|
|
48
|
-
});
|
|
17
|
+
getDaysInMonth(e) {
|
|
18
|
+
return super.getDaysInMonth(t(e));
|
|
49
19
|
}
|
|
50
|
-
|
|
51
|
-
e = n(e), e.forEach((a) => {
|
|
52
|
-
a.setAttribute("role", t);
|
|
53
|
-
});
|
|
20
|
+
balanceDate() {
|
|
54
21
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
a.setAttribute("aria-roledescription", t);
|
|
58
|
-
});
|
|
22
|
+
constructor(...e) {
|
|
23
|
+
super(...e), this.identifier = "buddhist";
|
|
59
24
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
}
|
|
85
|
-
function w(e) {
|
|
86
|
-
e = n(e), e.forEach((t) => {
|
|
87
|
-
t.setAttribute("aria-disabled", !1);
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function d(e) {
|
|
91
|
-
if (e.keyCode !== 13 && e.keyCode !== 32) return;
|
|
92
|
-
const t = i.params.a11y, a = e.target;
|
|
93
|
-
if (!(i.pagination && i.pagination.el && (a === i.pagination.el || i.pagination.el.contains(e.target)) && !e.target.matches(y(i.params.pagination.bulletClass)))) {
|
|
94
|
-
if (i.navigation && i.navigation.prevEl && i.navigation.nextEl) {
|
|
95
|
-
const s = n(i.navigation.prevEl);
|
|
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
|
-
}
|
|
100
|
-
}
|
|
101
|
-
function G() {
|
|
102
|
-
if (i.params.loop || i.params.rewind || !i.navigation) return;
|
|
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)));
|
|
108
|
-
}
|
|
109
|
-
function k() {
|
|
110
|
-
return i.pagination && i.pagination.bullets && i.pagination.bullets.length;
|
|
111
|
-
}
|
|
112
|
-
function C() {
|
|
113
|
-
return k() && i.params.pagination.clickable;
|
|
114
|
-
}
|
|
115
|
-
function U() {
|
|
116
|
-
const e = i.params.a11y;
|
|
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
|
-
});
|
|
120
|
-
}
|
|
121
|
-
const S = (e, t, a) => {
|
|
122
|
-
g(e), e.tagName !== "BUTTON" && (m(e, "button"), e.addEventListener("keydown", d)), E(e, a), O(e, t);
|
|
123
|
-
}, R = (e) => {
|
|
124
|
-
f && f !== e.target && !f.contains(e.target) && (p = !0), i.a11y.clicked = !0;
|
|
125
|
-
}, T = () => {
|
|
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));
|
|
174
|
-
}
|
|
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
|
-
});
|
|
25
|
+
}
|
|
26
|
+
function t(a) {
|
|
27
|
+
let [e, r] = c(a.year + o);
|
|
28
|
+
return new n(e, r, a.month, a.day);
|
|
188
29
|
}
|
|
189
30
|
export {
|
|
190
|
-
|
|
31
|
+
u as BuddhistCalendar
|
|
191
32
|
};
|
package/index188.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index178.js"),o=require("./index182.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/index188.mjs
CHANGED
|
@@ -1,87 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
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
|
-
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 f } from "./index178.mjs";
|
|
2
|
+
import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index182.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);
|
|
84
51
|
}
|
|
85
52
|
export {
|
|
86
|
-
|
|
53
|
+
m as TaiwanCalendar
|
|
87
54
|
};
|
package/index189.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index178.js"),u=require("./index185.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;
|
package/index189.mjs
CHANGED
|
@@ -1,61 +1,47 @@
|
|
|
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
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
+
import { CalendarDate as i } from "./index178.mjs";
|
|
2
|
+
import { mod as c } from "./index185.mjs";
|
|
3
|
+
const n = 1948320, f = [
|
|
4
|
+
0,
|
|
5
|
+
31,
|
|
6
|
+
62,
|
|
7
|
+
93,
|
|
8
|
+
124,
|
|
9
|
+
155,
|
|
10
|
+
186,
|
|
11
|
+
216,
|
|
12
|
+
246,
|
|
13
|
+
276,
|
|
14
|
+
306,
|
|
15
|
+
336
|
|
16
|
+
// Esfand
|
|
17
|
+
];
|
|
18
|
+
class u {
|
|
19
|
+
fromJulianDay(e) {
|
|
20
|
+
let r = e - n, t = 1 + Math.floor((33 * r + 3) / 12053), s = 365 * (t - 1) + Math.floor((8 * t + 21) / 33), a = r - s, o = a < 216 ? Math.floor(a / 31) : Math.floor((a - 6) / 30), l = a - f[o] + 1;
|
|
21
|
+
return new i(this, t, o + 1, l);
|
|
22
|
+
}
|
|
23
|
+
toJulianDay(e) {
|
|
24
|
+
let r = n - 1 + 365 * (e.year - 1) + Math.floor((8 * e.year + 21) / 33);
|
|
25
|
+
return r += f[e.month - 1], r += e.day, r;
|
|
26
|
+
}
|
|
27
|
+
getMonthsInYear() {
|
|
28
|
+
return 12;
|
|
29
|
+
}
|
|
30
|
+
getDaysInMonth(e) {
|
|
31
|
+
return e.month <= 6 ? 31 : e.month <= 11 || c(25 * e.year + 11, 33) < 8 ? 30 : 29;
|
|
32
|
+
}
|
|
33
|
+
getEras() {
|
|
34
|
+
return [
|
|
35
|
+
"AP"
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
getYearsInEra() {
|
|
39
|
+
return 9377;
|
|
40
|
+
}
|
|
41
|
+
constructor() {
|
|
42
|
+
this.identifier = "persian";
|
|
43
|
+
}
|
|
58
44
|
}
|
|
59
45
|
export {
|
|
60
|
-
|
|
46
|
+
u as PersianCalendar
|
|
61
47
|
};
|
package/index190.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index178.js"),t=require("./index182.js"),u=78,y=80;class f extends t.GregorianCalendar{fromJulianDay(e){let i=super.fromJulianDay(e),l=i.year-u,r=e-t.gregorianToJulianDay(i.era,i.year,1,1),n;r<y?(l--,n=t.isLeapYear(i.year-1)?31:30,r+=n+155+90+10):(n=t.isLeapYear(i.year)?31:30,r-=y);let a,s;if(r<n)a=1,s=r+1;else{let o=r-n;o<155?(a=Math.floor(o/31)+2,s=o%31+1):(o-=155,a=Math.floor(o/30)+7,s=o%30+1)}return new d.CalendarDate(this,l,a,s)}toJulianDay(e){let i=e.year+u,[l,r]=t.fromExtendedYear(i),n,a;return t.isLeapYear(r)?(n=31,a=t.gregorianToJulianDay(l,r,3,21)):(n=30,a=t.gregorianToJulianDay(l,r,3,22)),e.month===1?a+e.day-1:(a+=n+Math.min(e.month-2,5)*31,e.month>=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&t.isLeapYear(e.year+u)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}exports.IndianCalendar=f;
|