yuyeon 0.3.6-beta.7 → 0.3.6-beta.8
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/dist/yuyeon.js +8 -8
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/util/date/adapters/yuyeon-date-adapter.js +3 -2
- package/lib/util/date/adapters/yuyeon-date-adapter.js.map +1 -1
- package/lib/util/date/built-in.js +6 -3
- package/lib/util/date/built-in.js.map +1 -1
- package/lib/util/date/types.js.map +1 -1
- package/package.json +1 -1
- package/types/util/date/adapters/yuyeon-date-adapter.d.ts +1 -1
- package/types/util/date/built-in.d.ts +1 -1
- package/types/util/date/types.d.ts +1 -1
package/dist/yuyeon.js
CHANGED
|
@@ -2432,12 +2432,12 @@ class U {
|
|
|
2432
2432
|
static getNextMonth(t) {
|
|
2433
2433
|
return new Date(t.getFullYear(), t.getMonth() + 1, 1);
|
|
2434
2434
|
}
|
|
2435
|
-
static getWeekdays(t) {
|
|
2436
|
-
|
|
2437
|
-
return [...Array(7).keys()].map((
|
|
2438
|
-
const
|
|
2439
|
-
return
|
|
2440
|
-
|
|
2435
|
+
static getWeekdays(t, n) {
|
|
2436
|
+
let a = Bt[t.slice(-2).toUpperCase()] ?? 0;
|
|
2437
|
+
return typeof n < "u" && n >= 0 && n < 7 && (a = n), [...Array(7).keys()].map((l) => {
|
|
2438
|
+
const i = new Date(dt);
|
|
2439
|
+
return i.setDate(dt.getDate() + a + l), new Intl.DateTimeFormat(t, { weekday: "narrow" }).format(
|
|
2440
|
+
i
|
|
2441
2441
|
);
|
|
2442
2442
|
});
|
|
2443
2443
|
}
|
|
@@ -2557,8 +2557,8 @@ class Ui {
|
|
|
2557
2557
|
getNextMonth(t) {
|
|
2558
2558
|
return U.getNextMonth(t);
|
|
2559
2559
|
}
|
|
2560
|
-
getWeekdays() {
|
|
2561
|
-
return U.getWeekdays(
|
|
2560
|
+
getWeekdays(t, n = this.locale) {
|
|
2561
|
+
return U.getWeekdays(n, t);
|
|
2562
2562
|
}
|
|
2563
2563
|
isAfter(t, n) {
|
|
2564
2564
|
return U.isAfter(t, n);
|