esday 0.6.3 → 1.0.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/CHANGELOG.md +2 -0
- package/chunks/{xt8C2lbv.js → CNIy0PdR.js} +3 -5
- package/chunks/{BkjWOpMU.js → CeKusvtV.js} +10 -19
- package/chunks/{CXWzCl3n.js → D2Xh96oz.js} +10 -21
- package/chunks/{AyQQ6US-.js → DMdr1ZL1.js} +3 -5
- package/chunks/{CdvTtmWL.js → DXFoLbHM.js} +1 -2
- package/chunks/{C5qDMHT5.d.ts → Dc43cziu.d.ts} +1 -1
- package/chunks/{CODi8AFH.d.ts → DuP2qVZn.d.ts} +6 -1
- package/chunks/{Shk32pTP.js → i3oEJgL3.js} +1 -2
- package/index.d.ts +3 -3
- package/index.js +2 -3
- package/locales/af.js +1 -2
- package/locales/am.js +1 -2
- package/locales/ar-dz.js +1 -3
- package/locales/ar-iq.js +1 -3
- package/locales/ar-kw.js +1 -3
- package/locales/ar-ly.js +1 -3
- package/locales/ar-ma.js +1 -3
- package/locales/ar-sa.js +1 -3
- package/locales/ar-tn.js +1 -3
- package/locales/ar.js +1 -2
- package/locales/az.js +1 -2
- package/locales/be.js +1 -2
- package/locales/bg.js +1 -2
- package/locales/bi.js +1 -2
- package/locales/bm.js +1 -2
- package/locales/bn-bd.js +1 -3
- package/locales/bn.js +1 -2
- package/locales/bo.js +1 -2
- package/locales/br.js +1 -2
- package/locales/bs.js +1 -2
- package/locales/ca.js +1 -2
- package/locales/cs.js +1 -2
- package/locales/cv.js +1 -2
- package/locales/cy.js +1 -2
- package/locales/da.js +1 -2
- package/locales/de-at.js +1 -3
- package/locales/de-ch.js +1 -3
- package/locales/de.js +1 -2
- package/locales/dv.js +1 -2
- package/locales/el.js +1 -2
- package/locales/en-au.js +1 -3
- package/locales/en-ca.js +1 -3
- package/locales/en-gb.js +1 -3
- package/locales/en-ie.js +1 -3
- package/locales/en-il.js +1 -3
- package/locales/en-in.js +1 -3
- package/locales/en-nz.js +1 -3
- package/locales/en-sg.js +1 -3
- package/locales/en-tt.js +1 -3
- package/locales/en-us.js +1 -3
- package/locales/en.js +1 -2
- package/locales/eo.js +1 -2
- package/locales/es-do.js +1 -3
- package/locales/es-mx.js +1 -3
- package/locales/es-pr.js +1 -3
- package/locales/es-us.js +1 -3
- package/locales/es.js +1 -2
- package/locales/et.js +1 -2
- package/locales/eu.js +1 -2
- package/locales/fa.js +1 -2
- package/locales/fi.js +1 -2
- package/locales/fil.js +1 -2
- package/locales/fo.js +1 -2
- package/locales/fr-ca.js +1 -3
- package/locales/fr-ch.js +1 -3
- package/locales/fr.js +1 -2
- package/locales/fy.js +1 -2
- package/locales/ga.js +1 -2
- package/locales/gd.js +1 -2
- package/locales/gl.js +1 -2
- package/locales/gom-deva.js +1 -2
- package/locales/gom-latn.js +1 -2
- package/locales/gu.js +1 -2
- package/locales/he.js +1 -2
- package/locales/hi.js +1 -2
- package/locales/hr.js +1 -2
- package/locales/ht.js +1 -2
- package/locales/hu.js +1 -2
- package/locales/hy-am.js +1 -2
- package/locales/id.js +1 -2
- package/locales/is.js +1 -2
- package/locales/it-ch.js +1 -3
- package/locales/it.js +1 -2
- package/locales/ja.js +1 -2
- package/locales/jv.js +1 -2
- package/locales/ka.js +1 -2
- package/locales/kk.js +1 -2
- package/locales/km.js +1 -2
- package/locales/kn.js +1 -2
- package/locales/ko.js +1 -2
- package/locales/ku.js +1 -2
- package/locales/ky.js +1 -2
- package/locales/lb.js +1 -2
- package/locales/lo.js +1 -2
- package/locales/lt.js +1 -2
- package/locales/lv.js +1 -2
- package/locales/me.js +1 -2
- package/locales/mi.js +1 -2
- package/locales/mk.js +1 -2
- package/locales/ml.js +1 -2
- package/locales/mn.js +1 -2
- package/locales/mr.js +1 -2
- package/locales/ms-my.js +1 -3
- package/locales/ms.js +1 -2
- package/locales/mt.js +1 -2
- package/locales/my.js +1 -2
- package/locales/nb.js +1 -2
- package/locales/ne.js +1 -2
- package/locales/nl-be.js +1 -3
- package/locales/nl.js +1 -2
- package/locales/nn.js +1 -2
- package/locales/oc-lnc.js +1 -2
- package/locales/pa-in.js +1 -2
- package/locales/pl.js +1 -2
- package/locales/pt-br.js +1 -3
- package/locales/pt.js +1 -2
- package/locales/rn.js +1 -2
- package/locales/ro.js +1 -2
- package/locales/ru.js +1 -2
- package/locales/rw.js +1 -2
- package/locales/sd.js +1 -2
- package/locales/se.js +1 -2
- package/locales/si.js +1 -2
- package/locales/sk.js +1 -2
- package/locales/sl.js +1 -2
- package/locales/sq.js +1 -2
- package/locales/sr-cyrl.js +1 -3
- package/locales/sr.js +1 -2
- package/locales/ss.js +1 -2
- package/locales/sv-fi.js +1 -3
- package/locales/sv.js +1 -2
- package/locales/sw.js +1 -2
- package/locales/ta.js +1 -2
- package/locales/te.js +1 -2
- package/locales/tet.js +1 -2
- package/locales/tg.js +1 -2
- package/locales/th.js +1 -2
- package/locales/tk.js +1 -2
- package/locales/tl-ph.js +1 -2
- package/locales/tlh.js +1 -2
- package/locales/tr.js +1 -2
- package/locales/tzl.js +1 -2
- package/locales/tzm-latn.js +1 -3
- package/locales/tzm.js +1 -2
- package/locales/ug-cn.js +1 -2
- package/locales/uk.js +1 -2
- package/locales/ur.js +1 -2
- package/locales/uz-latn.js +1 -3
- package/locales/uz.js +1 -2
- package/locales/vi.js +1 -2
- package/locales/x-pseudo.js +1 -2
- package/locales/yo.js +1 -2
- package/locales/zh-cn.js +1 -3
- package/locales/zh-hk.js +1 -3
- package/locales/zh-mo.js +1 -3
- package/locales/zh-tw.js +1 -3
- package/locales/zh.js +1 -2
- package/package.json +20 -20
- package/plugins/advancedFormat/index.d.ts +1 -1
- package/plugins/advancedFormat/index.js +2 -4
- package/plugins/advancedParse/index.d.ts +1 -1
- package/plugins/advancedParse/index.js +3 -5
- package/plugins/calendar/index.d.ts +1 -1
- package/plugins/calendar/index.js +1 -2
- package/plugins/dayOfYear/index.d.ts +1 -1
- package/plugins/dayOfYear/index.js +1 -2
- package/plugins/duration/index.d.ts +1 -1
- package/plugins/duration/index.js +9 -14
- package/plugins/isBetween/index.d.ts +1 -1
- package/plugins/isBetween/index.js +2 -4
- package/plugins/isLeapYear/index.d.ts +1 -1
- package/plugins/isLeapYear/index.js +1 -2
- package/plugins/isSameOrAfter/index.d.ts +1 -1
- package/plugins/isSameOrAfter/index.js +1 -2
- package/plugins/isSameOrBefore/index.d.ts +1 -1
- package/plugins/isSameOrBefore/index.js +1 -2
- package/plugins/isToday/index.d.ts +1 -1
- package/plugins/isToday/index.js +2 -4
- package/plugins/isTomorrow/index.d.ts +1 -1
- package/plugins/isTomorrow/index.js +2 -4
- package/plugins/isYesterday/index.d.ts +1 -1
- package/plugins/isYesterday/index.js +2 -4
- package/plugins/isoWeek/index.d.ts +1 -1
- package/plugins/isoWeek/index.js +5 -7
- package/plugins/locale/index.d.ts +4 -1
- package/plugins/locale/index.js +6 -8
- package/plugins/localeData/index.d.ts +1 -1
- package/plugins/localeData/index.js +2 -4
- package/plugins/localizedFormat/index.d.ts +1 -1
- package/plugins/localizedFormat/index.js +3 -5
- package/plugins/localizedParse/index.d.ts +1 -1
- package/plugins/localizedParse/index.js +2 -4
- package/plugins/minMax/index.d.ts +1 -1
- package/plugins/minMax/index.js +2 -4
- package/plugins/objectSupport/index.d.ts +1 -1
- package/plugins/objectSupport/index.js +5 -7
- package/plugins/pluralGetSet/index.d.ts +1 -1
- package/plugins/pluralGetSet/index.js +1 -2
- package/plugins/quarterOfYear/index.d.ts +1 -1
- package/plugins/quarterOfYear/index.js +4 -6
- package/plugins/relativeTime/index.d.ts +1 -1
- package/plugins/relativeTime/index.js +3 -5
- package/plugins/timezone/index.d.ts +1 -1
- package/plugins/timezone/index.js +13 -15
- package/plugins/toArray/index.d.ts +1 -1
- package/plugins/toArray/index.js +1 -2
- package/plugins/toObject/index.d.ts +1 -1
- package/plugins/toObject/index.js +1 -2
- package/plugins/utc/index.d.ts +6 -1
- package/plugins/utc/index.js +10 -12
- package/plugins/week/index.d.ts +1 -1
- package/plugins/week/index.js +6 -8
- package/chunks/{v_QBn7Xm.js → DuRKUq5K.js} +1 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as padStart, r as padZoneStr } from "../../chunks/
|
|
2
|
-
|
|
1
|
+
import { n as padStart, r as padZoneStr } from "../../chunks/DXFoLbHM.js";
|
|
3
2
|
//#region src/plugins/advancedFormat/index.ts
|
|
4
3
|
const advancedFormatPlugin = (_, _dayClass, dayFactory) => {
|
|
5
4
|
dayFactory.addFormatTokenDefinitions({
|
|
@@ -13,6 +12,5 @@ const advancedFormatPlugin = (_, _dayClass, dayFactory) => {
|
|
|
13
12
|
kk: (sourceDate) => padStart(sourceDate.hour() !== 0 ? sourceDate.hour() : 24, 2, "0")
|
|
14
13
|
});
|
|
15
14
|
};
|
|
16
|
-
|
|
17
15
|
//#endregion
|
|
18
|
-
export { advancedFormatPlugin as default };
|
|
16
|
+
export { advancedFormatPlugin as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as isUndefined, i as isString, o as isValidDate, t as isArray } from "../../chunks/
|
|
3
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { a as isUndefined, i as isString, o as isValidDate, t as isArray } from "../../chunks/DuRKUq5K.js";
|
|
4
3
|
//#region src/plugins/advancedParse/index.ts
|
|
5
4
|
/**
|
|
6
5
|
* Function to create a Date object from its date components
|
|
@@ -402,6 +401,5 @@ const advancedParsePlugin = (_, dayClass, dayFactory) => {
|
|
|
402
401
|
};
|
|
403
402
|
dateFromDateComponents = proto["dateFromDateComponents"];
|
|
404
403
|
};
|
|
405
|
-
|
|
406
404
|
//#endregion
|
|
407
|
-
export { advancedParsePlugin as default };
|
|
405
|
+
export { advancedParsePlugin as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as UnitDates, D as UnitIsoWeeks, L as UnitTypePlurals, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
|
|
2
2
|
import { Locale } from "../locale/index.js";
|
|
3
3
|
import { ThresholdRelativeTime } from "../relativeTime/index.js";
|
|
4
4
|
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as isUndefined, r as isObject } from "../../chunks/
|
|
3
|
-
import { n as normalizeUnitWithPlurals, r as normalizeUnitWithPluralsToPlural } from "../../chunks/
|
|
4
|
-
import { n as padStart } from "../../chunks/
|
|
5
|
-
import { i as _checkPrivateRedeclaration, r as _assertClassBrand, t as esday } from "../../chunks/
|
|
6
|
-
|
|
7
|
-
//#region \0@oxc-project+runtime@0.112.0/helpers/classPrivateFieldInitSpec.js
|
|
1
|
+
import { r as INVALID_DATE_STRING } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { a as isUndefined, r as isObject } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals, r as normalizeUnitWithPluralsToPlural } from "../../chunks/DMdr1ZL1.js";
|
|
4
|
+
import { n as padStart } from "../../chunks/DXFoLbHM.js";
|
|
5
|
+
import { i as _checkPrivateRedeclaration, r as _assertClassBrand, t as esday } from "../../chunks/D2Xh96oz.js";
|
|
6
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
8
7
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
9
8
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
11
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
|
|
14
12
|
function _classPrivateFieldSet2(s, a, r) {
|
|
15
13
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
//#endregion
|
|
19
|
-
//#region \0@oxc-project+runtime@0.
|
|
16
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
|
|
20
17
|
function _classPrivateFieldGet2(s, a) {
|
|
21
18
|
return s.get(_assertClassBrand(s, a));
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
//#endregion
|
|
25
21
|
//#region src/plugins/duration/index.ts
|
|
26
22
|
/** = 0:
|
|
@@ -472,6 +468,5 @@ const durationPlugin = (_, _dayClass, dayFactory) => {
|
|
|
472
468
|
return d instanceof DurationImpl;
|
|
473
469
|
};
|
|
474
470
|
};
|
|
475
|
-
|
|
476
471
|
//#endregion
|
|
477
|
-
export { durationPlugin as default };
|
|
472
|
+
export { durationPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isBetween/index.ts
|
|
4
3
|
const isBetweenPlugin = (_, dayClass) => {
|
|
5
4
|
dayClass.prototype.isBetween = function(from, to, unit = constants_default.MS, inclusivity = "()") {
|
|
@@ -10,6 +9,5 @@ const isBetweenPlugin = (_, dayClass) => {
|
|
|
10
9
|
return isAfterFrom && isBeforeTo;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
|
-
export { isBetweenPlugin as default };
|
|
13
|
+
export { isBetweenPlugin as default };
|
package/plugins/isToday/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isToday/index.ts
|
|
4
3
|
const isTodayPlugin = (_, dayClass) => {
|
|
5
4
|
dayClass.prototype.isToday = function() {
|
|
6
5
|
return this.isSame(/* @__PURE__ */ new Date(), constants_default.DAY);
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
|
-
export { isTodayPlugin as default };
|
|
9
|
+
export { isTodayPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isTomorrow/index.ts
|
|
4
3
|
const isTomorrowPlugin = (_, dayClass, d) => {
|
|
5
4
|
dayClass.prototype.isTomorrow = function() {
|
|
@@ -8,6 +7,5 @@ const isTomorrowPlugin = (_, dayClass, d) => {
|
|
|
8
7
|
return this.format(comparisonTemplate) === tomorrow.format(comparisonTemplate);
|
|
9
8
|
};
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { isTomorrowPlugin as default };
|
|
11
|
+
export { isTomorrowPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
3
2
|
//#region src/plugins/isYesterday/index.ts
|
|
4
3
|
const isYesterdayPlugin = (_, dayClass, d) => {
|
|
5
4
|
dayClass.prototype.isYesterday = function() {
|
|
@@ -8,6 +7,5 @@ const isYesterdayPlugin = (_, dayClass, d) => {
|
|
|
8
7
|
return this.format(comparisonTemplate) === yesterday.format(comparisonTemplate);
|
|
9
8
|
};
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { isYesterdayPlugin as default };
|
|
11
|
+
export { isYesterdayPlugin as default };
|
package/plugins/isoWeek/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as isUndefined } from "../../chunks/
|
|
3
|
-
import { t as createInstanceFromExist } from "../../chunks/
|
|
4
|
-
import { n as padStart } from "../../chunks/
|
|
5
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { a as isUndefined } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
|
|
4
|
+
import { n as padStart } from "../../chunks/DXFoLbHM.js";
|
|
6
5
|
//#region src/plugins/isoWeek/index.ts
|
|
7
6
|
const weekStart = constants_default.INDEX_MONDAY;
|
|
8
7
|
const yearStart = 4;
|
|
@@ -223,6 +222,5 @@ const isoWeekPlugin = (_, dayClass, dayFactory) => {
|
|
|
223
222
|
};
|
|
224
223
|
dayFactory.addParseTokenDefinitions?.(parseTokensDefinitions);
|
|
225
224
|
};
|
|
226
|
-
|
|
227
225
|
//#endregion
|
|
228
|
-
export { isoWeekPlugin as default };
|
|
226
|
+
export { isoWeekPlugin as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as EsDayPlugin, t as EsDay } from "../../chunks/DuP2qVZn.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/locale/types.d.ts
|
|
4
4
|
type ReadonlyTuple<T, N extends number, R extends readonly T[] = []> = R['length'] extends N ? R : ReadonlyTuple<T, N, readonly [T, ...R]>;
|
|
@@ -16,6 +16,9 @@ declare module 'esday' {
|
|
|
16
16
|
getLocale: (localeName: string) => Locale;
|
|
17
17
|
updateLocale: (localeName: string, newLocale: Partial<Locale>) => EsDayFactory;
|
|
18
18
|
}
|
|
19
|
+
interface ConfigurationObject {
|
|
20
|
+
localeName?: string;
|
|
21
|
+
}
|
|
19
22
|
}
|
|
20
23
|
type DayNames<T = string> = ReadonlyTuple<T, 7>;
|
|
21
24
|
interface DayNamesStandaloneFormat<T = DayNames<string>> {
|
package/plugins/locale/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as undefinedOr } from "../../chunks/
|
|
3
|
-
import { t as normalizeUnit } from "../../chunks/
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { s as undefinedOr } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { t as normalizeUnit } from "../../chunks/DMdr1ZL1.js";
|
|
4
4
|
import localeEn from "../../locales/en.js";
|
|
5
|
-
|
|
6
5
|
//#region src/plugins/locale/index.ts
|
|
7
6
|
const LocaleStore = /* @__PURE__ */ new Map();
|
|
8
7
|
let $localeGlobal = "en";
|
|
@@ -72,8 +71,8 @@ function cloneLocale(source) {
|
|
|
72
71
|
return cloneObject(source);
|
|
73
72
|
}
|
|
74
73
|
function getSetPrivateLocaleName(inst, newLocaleName) {
|
|
75
|
-
if (newLocaleName) inst["$conf"]
|
|
76
|
-
return inst["$conf"]
|
|
74
|
+
if (newLocaleName) inst["$conf"].localeName = newLocaleName;
|
|
75
|
+
return inst["$conf"].localeName || "";
|
|
77
76
|
}
|
|
78
77
|
const localePlugin = (_, dayClass, dayFactory) => {
|
|
79
78
|
dayClass.prototype.localeObject = function() {
|
|
@@ -136,6 +135,5 @@ const localePlugin = (_, dayClass, dayFactory) => {
|
|
|
136
135
|
return dayFactory;
|
|
137
136
|
};
|
|
138
137
|
};
|
|
139
|
-
|
|
140
138
|
//#endregion
|
|
141
|
-
export { cloneLocale, localePlugin as default, setLocaleProperty };
|
|
139
|
+
export { cloneLocale, localePlugin as default, setLocaleProperty };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as esday } from "../../chunks/
|
|
2
|
-
|
|
1
|
+
import { t as esday } from "../../chunks/D2Xh96oz.js";
|
|
3
2
|
//#region src/plugins/localeData/index.ts
|
|
4
3
|
/**
|
|
5
4
|
* LocaleData plugin
|
|
@@ -150,6 +149,5 @@ const localeDataPlugin = (_, dayClass, dayFactory) => {
|
|
|
150
149
|
dayFactory.weekdaysShort = () => getWeekdays(dayFactory.getLocale(dayFactory.locale()), "weekdaysShort");
|
|
151
150
|
dayFactory.weekdaysMin = () => getWeekdays(dayFactory.getLocale(dayFactory.locale()), "weekdaysMin");
|
|
152
151
|
};
|
|
153
|
-
|
|
154
152
|
//#endregion
|
|
155
|
-
export { localeDataPlugin as default };
|
|
153
|
+
export { localeDataPlugin as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { i as isString, t as isArray } from "../../chunks/
|
|
2
|
-
import { t as padNumberWithLeadingZeros } from "../../chunks/
|
|
3
|
-
|
|
1
|
+
import { i as isString, t as isArray } from "../../chunks/DuRKUq5K.js";
|
|
2
|
+
import { t as padNumberWithLeadingZeros } from "../../chunks/DXFoLbHM.js";
|
|
4
3
|
//#region src/plugins/localizedFormat/index.ts
|
|
5
4
|
/**
|
|
6
5
|
* Create a function that will format the day of week value from the sourceDate
|
|
@@ -78,6 +77,5 @@ const localizedFormatPlugin = (_, dayClass, dayFactory) => {
|
|
|
78
77
|
return this.localeObject?.().postFormat?.(formattedValue) ?? formattedValue;
|
|
79
78
|
};
|
|
80
79
|
};
|
|
81
|
-
|
|
82
80
|
//#endregion
|
|
83
|
-
export { localizedFormatPlugin as default };
|
|
81
|
+
export { localizedFormatPlugin as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as isUndefined, i as isString, t as isArray } from "../../chunks/
|
|
2
|
-
|
|
1
|
+
import { a as isUndefined, i as isString, t as isArray } from "../../chunks/DuRKUq5K.js";
|
|
3
2
|
//#region src/plugins/localizedParse/index.ts
|
|
4
3
|
const match2 = /\d{2}/;
|
|
5
4
|
const match1to2 = /\d\d?/;
|
|
@@ -212,6 +211,5 @@ const localizedParsePlugin = (_, dayClass, dayFactory) => {
|
|
|
212
211
|
}
|
|
213
212
|
};
|
|
214
213
|
};
|
|
215
|
-
|
|
216
214
|
//#endregion
|
|
217
|
-
export { localizedParsePlugin as default };
|
|
215
|
+
export { localizedParsePlugin as default };
|
package/plugins/minMax/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as isArray } from "../../chunks/
|
|
2
|
-
|
|
1
|
+
import { t as isArray } from "../../chunks/DuRKUq5K.js";
|
|
3
2
|
//#region src/plugins/minMax/index.ts
|
|
4
3
|
const minMaxPlugin = (_, _dayClass, dayFactory) => {
|
|
5
4
|
const sortBy = (method, dates) => {
|
|
@@ -16,6 +15,5 @@ const minMaxPlugin = (_, _dayClass, dayFactory) => {
|
|
|
16
15
|
dayFactory.max = (...dates) => sortBy("isAfter", dates);
|
|
17
16
|
dayFactory.min = (...dates) => sortBy("isBefore", dates);
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { minMaxPlugin as default };
|
|
19
|
+
export { minMaxPlugin as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as isEmptyObject, r as isObject } from "../../chunks/
|
|
3
|
-
import { n as normalizeUnitWithPlurals } from "../../chunks/
|
|
4
|
-
import { t as createInstanceFromExist } from "../../chunks/
|
|
5
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { n as isEmptyObject, r as isObject } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
|
|
4
|
+
import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
|
|
6
5
|
//#region src/plugins/objectSupport/index.ts
|
|
7
6
|
const objectSupportPlugin = (_, dayClass, _dayFactory) => {
|
|
8
7
|
const proto = dayClass.prototype;
|
|
@@ -94,6 +93,5 @@ const objectSupportPlugin = (_, dayClass, _dayFactory) => {
|
|
|
94
93
|
return oldSubtract.call(this, value, unit);
|
|
95
94
|
};
|
|
96
95
|
};
|
|
97
|
-
|
|
98
96
|
//#endregion
|
|
99
|
-
export { objectSupportPlugin as default };
|
|
97
|
+
export { objectSupportPlugin as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as isObject } from "../../chunks/
|
|
3
|
-
import { n as normalizeUnitWithPlurals } from "../../chunks/
|
|
4
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { r as isObject } from "../../chunks/DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
|
|
5
4
|
//#region src/plugins/quarterOfYear/index.ts
|
|
6
5
|
const quarterOfYearPlugin = (_, dayClass, dayFactory) => {
|
|
7
6
|
const proto = dayClass.prototype;
|
|
@@ -46,6 +45,5 @@ const quarterOfYearPlugin = (_, dayClass, dayFactory) => {
|
|
|
46
45
|
};
|
|
47
46
|
dayFactory.addFormatTokenDefinitions({ Q: (sourceDate) => sourceDate.quarter().toString() });
|
|
48
47
|
};
|
|
49
|
-
|
|
50
48
|
//#endregion
|
|
51
|
-
export { quarterOfYearPlugin as default };
|
|
49
|
+
export { quarterOfYearPlugin as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createInstanceFromExist } from "../../chunks/
|
|
3
|
-
|
|
1
|
+
import { f as constants_default } from "../../chunks/CeKusvtV.js";
|
|
2
|
+
import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
|
|
4
3
|
//#region src/plugins/relativeTime/index.ts
|
|
5
4
|
const relativeTimePlugin = (options, dayClass, dayFactory) => {
|
|
6
5
|
const defaultRelativeTimeDef = {
|
|
@@ -182,6 +181,5 @@ const relativeTimePlugin = (options, dayClass, dayFactory) => {
|
|
|
182
181
|
return this.from(now, withoutSuffix);
|
|
183
182
|
};
|
|
184
183
|
};
|
|
185
|
-
|
|
186
184
|
//#endregion
|
|
187
|
-
export { relativeTimePlugin as default };
|
|
185
|
+
export { relativeTimePlugin as default };
|