esday 0.6.3 → 1.0.1
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 +7 -0
- package/README.md +16 -8
- package/chunks/{CODi8AFH.d.ts → BB5OVV-y.d.ts} +7 -2
- package/chunks/{C5qDMHT5.d.ts → CBlQG2yl.d.ts} +1 -2
- package/chunks/{BkjWOpMU.js → CeKusvtV.js} +10 -19
- package/chunks/{xt8C2lbv.js → DIG_UBsE.js} +5 -6
- package/chunks/{AyQQ6US-.js → DMdr1ZL1.js} +3 -5
- package/chunks/{CdvTtmWL.js → DXFoLbHM.js} +1 -2
- package/chunks/{Shk32pTP.js → i3oEJgL3.js} +1 -2
- package/chunks/{CXWzCl3n.js → oiGWnahC.js} +12 -22
- package/index.d.ts +3 -3
- package/index.js +2 -3
- package/locales/af.d.ts +0 -1
- package/locales/af.js +1 -2
- package/locales/am.d.ts +0 -1
- package/locales/am.js +1 -2
- package/locales/ar-dz.d.ts +0 -1
- package/locales/ar-dz.js +1 -3
- package/locales/ar-iq.d.ts +0 -1
- package/locales/ar-iq.js +1 -3
- package/locales/ar-kw.d.ts +0 -1
- package/locales/ar-kw.js +1 -3
- package/locales/ar-ly.d.ts +0 -1
- package/locales/ar-ly.js +1 -3
- package/locales/ar-ma.d.ts +0 -1
- package/locales/ar-ma.js +1 -3
- package/locales/ar-sa.d.ts +0 -1
- package/locales/ar-sa.js +1 -3
- package/locales/ar-tn.d.ts +0 -1
- package/locales/ar-tn.js +1 -3
- package/locales/ar.d.ts +0 -1
- package/locales/ar.js +1 -2
- package/locales/az.d.ts +0 -1
- package/locales/az.js +1 -2
- package/locales/be.d.ts +0 -1
- package/locales/be.js +1 -2
- package/locales/bg.d.ts +0 -1
- package/locales/bg.js +1 -2
- package/locales/bi.d.ts +0 -1
- package/locales/bi.js +1 -2
- package/locales/bm.d.ts +0 -1
- package/locales/bm.js +1 -2
- package/locales/bn-bd.d.ts +0 -1
- package/locales/bn-bd.js +1 -3
- package/locales/bn.d.ts +0 -1
- package/locales/bn.js +1 -2
- package/locales/bo.d.ts +0 -1
- package/locales/bo.js +1 -2
- package/locales/br.d.ts +0 -1
- package/locales/br.js +1 -2
- package/locales/bs.d.ts +0 -1
- package/locales/bs.js +1 -2
- package/locales/ca.d.ts +0 -1
- package/locales/ca.js +1 -2
- package/locales/cs.d.ts +0 -1
- package/locales/cs.js +1 -2
- package/locales/cv.d.ts +0 -1
- package/locales/cv.js +1 -2
- package/locales/cy.d.ts +0 -1
- package/locales/cy.js +1 -2
- package/locales/da.d.ts +0 -1
- package/locales/da.js +1 -2
- package/locales/de-at.d.ts +0 -1
- package/locales/de-at.js +1 -3
- package/locales/de-ch.d.ts +0 -1
- package/locales/de-ch.js +1 -3
- package/locales/de.d.ts +0 -1
- package/locales/de.js +1 -2
- package/locales/dv.d.ts +0 -1
- package/locales/dv.js +1 -2
- package/locales/el.d.ts +0 -1
- package/locales/el.js +1 -2
- package/locales/en-au.d.ts +0 -1
- package/locales/en-au.js +1 -3
- package/locales/en-ca.d.ts +0 -1
- package/locales/en-ca.js +1 -3
- package/locales/en-gb.d.ts +0 -1
- package/locales/en-gb.js +1 -3
- package/locales/en-ie.d.ts +0 -1
- package/locales/en-ie.js +1 -3
- package/locales/en-il.d.ts +0 -1
- package/locales/en-il.js +1 -3
- package/locales/en-in.d.ts +0 -1
- package/locales/en-in.js +1 -3
- package/locales/en-nz.d.ts +0 -1
- package/locales/en-nz.js +1 -3
- package/locales/en-sg.d.ts +0 -1
- package/locales/en-sg.js +1 -3
- package/locales/en-tt.d.ts +0 -1
- package/locales/en-tt.js +1 -3
- package/locales/en-us.d.ts +0 -1
- package/locales/en-us.js +1 -3
- package/locales/en.d.ts +0 -1
- package/locales/en.js +1 -2
- package/locales/eo.d.ts +0 -1
- package/locales/eo.js +1 -2
- package/locales/es-do.d.ts +0 -1
- package/locales/es-do.js +1 -3
- package/locales/es-mx.d.ts +0 -1
- package/locales/es-mx.js +1 -3
- package/locales/es-pr.d.ts +0 -1
- package/locales/es-pr.js +1 -3
- package/locales/es-us.d.ts +0 -1
- package/locales/es-us.js +1 -3
- package/locales/es.d.ts +0 -1
- package/locales/es.js +1 -2
- package/locales/et.d.ts +0 -1
- package/locales/et.js +1 -2
- package/locales/eu.d.ts +0 -1
- package/locales/eu.js +1 -2
- package/locales/fa.d.ts +0 -1
- package/locales/fa.js +1 -2
- package/locales/fi.d.ts +0 -1
- package/locales/fi.js +1 -2
- package/locales/fil.d.ts +0 -1
- package/locales/fil.js +1 -2
- package/locales/fo.d.ts +0 -1
- package/locales/fo.js +1 -2
- package/locales/fr-ca.d.ts +0 -1
- package/locales/fr-ca.js +1 -3
- package/locales/fr-ch.d.ts +0 -1
- package/locales/fr-ch.js +1 -3
- package/locales/fr.d.ts +0 -1
- package/locales/fr.js +1 -2
- package/locales/fy.d.ts +0 -1
- package/locales/fy.js +1 -2
- package/locales/ga.d.ts +0 -1
- package/locales/ga.js +1 -2
- package/locales/gd.d.ts +0 -1
- package/locales/gd.js +1 -2
- package/locales/gl.d.ts +0 -1
- package/locales/gl.js +1 -2
- package/locales/gom-deva.d.ts +0 -1
- package/locales/gom-deva.js +1 -2
- package/locales/gom-latn.d.ts +0 -1
- package/locales/gom-latn.js +1 -2
- package/locales/gu.d.ts +0 -1
- package/locales/gu.js +1 -2
- package/locales/he.d.ts +0 -1
- package/locales/he.js +3 -3
- package/locales/hi.d.ts +0 -1
- package/locales/hi.js +1 -2
- package/locales/hr.d.ts +0 -1
- package/locales/hr.js +1 -2
- package/locales/ht.d.ts +0 -1
- package/locales/ht.js +1 -2
- package/locales/hu.d.ts +0 -1
- package/locales/hu.js +1 -2
- package/locales/hy-am.d.ts +0 -1
- package/locales/hy-am.js +1 -2
- package/locales/id.d.ts +0 -1
- package/locales/id.js +1 -2
- package/locales/is.d.ts +0 -1
- package/locales/is.js +1 -2
- package/locales/it-ch.d.ts +0 -1
- package/locales/it-ch.js +1 -3
- package/locales/it.d.ts +0 -1
- package/locales/it.js +1 -2
- package/locales/ja.d.ts +0 -1
- package/locales/ja.js +1 -2
- package/locales/jv.d.ts +0 -1
- package/locales/jv.js +1 -2
- package/locales/ka.d.ts +0 -1
- package/locales/ka.js +1 -2
- package/locales/kk.d.ts +0 -1
- package/locales/kk.js +1 -2
- package/locales/km.d.ts +0 -1
- package/locales/km.js +1 -2
- package/locales/kn.d.ts +0 -1
- package/locales/kn.js +1 -2
- package/locales/ko.d.ts +0 -1
- package/locales/ko.js +1 -2
- package/locales/ku.d.ts +0 -1
- package/locales/ku.js +1 -2
- package/locales/ky.d.ts +0 -1
- package/locales/ky.js +1 -2
- package/locales/lb.d.ts +0 -1
- package/locales/lb.js +1 -2
- package/locales/lo.d.ts +0 -1
- package/locales/lo.js +1 -2
- package/locales/lt.d.ts +0 -1
- package/locales/lt.js +1 -2
- package/locales/lv.d.ts +0 -1
- package/locales/lv.js +1 -2
- package/locales/me.d.ts +0 -1
- package/locales/me.js +1 -2
- package/locales/mi.d.ts +0 -1
- package/locales/mi.js +1 -2
- package/locales/mk.d.ts +0 -1
- package/locales/mk.js +1 -2
- package/locales/ml.d.ts +0 -1
- package/locales/ml.js +1 -2
- package/locales/mn.d.ts +0 -1
- package/locales/mn.js +1 -2
- package/locales/mr.d.ts +0 -1
- package/locales/mr.js +1 -2
- package/locales/ms-my.d.ts +0 -1
- package/locales/ms-my.js +1 -3
- package/locales/ms.d.ts +0 -1
- package/locales/ms.js +1 -2
- package/locales/mt.d.ts +0 -1
- package/locales/mt.js +1 -2
- package/locales/my.d.ts +0 -1
- package/locales/my.js +1 -2
- package/locales/nb.d.ts +0 -1
- package/locales/nb.js +1 -2
- package/locales/ne.d.ts +0 -1
- package/locales/ne.js +1 -2
- package/locales/nl-be.d.ts +0 -1
- package/locales/nl-be.js +1 -3
- package/locales/nl.d.ts +0 -1
- package/locales/nl.js +1 -2
- package/locales/nn.d.ts +0 -1
- package/locales/nn.js +1 -2
- package/locales/oc-lnc.d.ts +0 -1
- package/locales/oc-lnc.js +1 -2
- package/locales/pa-in.d.ts +0 -1
- package/locales/pa-in.js +1 -2
- package/locales/pl.d.ts +0 -1
- package/locales/pl.js +1 -2
- package/locales/pt-br.d.ts +0 -1
- package/locales/pt-br.js +1 -3
- package/locales/pt.d.ts +0 -1
- package/locales/pt.js +1 -2
- package/locales/rn.d.ts +0 -1
- package/locales/rn.js +1 -2
- package/locales/ro.d.ts +0 -1
- package/locales/ro.js +1 -2
- package/locales/ru.d.ts +0 -1
- package/locales/ru.js +1 -2
- package/locales/rw.d.ts +0 -1
- package/locales/rw.js +1 -2
- package/locales/sd.d.ts +0 -1
- package/locales/sd.js +1 -2
- package/locales/se.d.ts +0 -1
- package/locales/se.js +1 -2
- package/locales/si.d.ts +0 -1
- package/locales/si.js +1 -2
- package/locales/sk.d.ts +0 -1
- package/locales/sk.js +1 -2
- package/locales/sl.d.ts +0 -1
- package/locales/sl.js +1 -2
- package/locales/sq.d.ts +0 -1
- package/locales/sq.js +1 -2
- package/locales/sr-cyrl.d.ts +0 -1
- package/locales/sr-cyrl.js +1 -3
- package/locales/sr.d.ts +0 -1
- package/locales/sr.js +1 -2
- package/locales/ss.d.ts +0 -1
- package/locales/ss.js +1 -2
- package/locales/sv-fi.d.ts +0 -1
- package/locales/sv-fi.js +1 -3
- package/locales/sv.d.ts +0 -1
- package/locales/sv.js +1 -2
- package/locales/sw.d.ts +0 -1
- package/locales/sw.js +1 -2
- package/locales/ta.d.ts +0 -1
- package/locales/ta.js +1 -2
- package/locales/te.d.ts +0 -1
- package/locales/te.js +1 -2
- package/locales/tet.d.ts +0 -1
- package/locales/tet.js +1 -2
- package/locales/tg.d.ts +0 -1
- package/locales/tg.js +1 -2
- package/locales/th.d.ts +0 -1
- package/locales/th.js +1 -2
- package/locales/tk.d.ts +0 -1
- package/locales/tk.js +1 -2
- package/locales/tl-ph.d.ts +0 -1
- package/locales/tl-ph.js +1 -2
- package/locales/tlh.d.ts +0 -1
- package/locales/tlh.js +1 -2
- package/locales/tr.d.ts +0 -1
- package/locales/tr.js +1 -2
- package/locales/tzl.d.ts +0 -1
- package/locales/tzl.js +1 -2
- package/locales/tzm-latn.d.ts +0 -1
- package/locales/tzm-latn.js +1 -3
- package/locales/tzm.d.ts +0 -1
- package/locales/tzm.js +1 -2
- package/locales/ug-cn.d.ts +0 -1
- package/locales/ug-cn.js +1 -2
- package/locales/uk.d.ts +0 -1
- package/locales/uk.js +1 -2
- package/locales/ur.d.ts +0 -1
- package/locales/ur.js +1 -2
- package/locales/uz-latn.d.ts +0 -1
- package/locales/uz-latn.js +1 -3
- package/locales/uz.d.ts +0 -1
- package/locales/uz.js +1 -2
- package/locales/vi.d.ts +0 -1
- package/locales/vi.js +1 -2
- package/locales/x-pseudo.d.ts +0 -1
- package/locales/x-pseudo.js +1 -2
- package/locales/yo.d.ts +0 -1
- package/locales/yo.js +1 -2
- package/locales/zh-cn.d.ts +0 -1
- package/locales/zh-cn.js +1 -3
- package/locales/zh-hk.d.ts +0 -1
- package/locales/zh-hk.js +1 -3
- package/locales/zh-mo.d.ts +0 -1
- package/locales/zh-mo.js +1 -3
- package/locales/zh-tw.d.ts +0 -1
- package/locales/zh-tw.js +1 -3
- package/locales/zh.d.ts +0 -1
- package/locales/zh.js +1 -2
- package/package.json +20 -20
- package/plugins/advancedFormat/index.d.ts +1 -2
- package/plugins/advancedFormat/index.js +2 -4
- package/plugins/advancedParse/index.d.ts +1 -2
- package/plugins/advancedParse/index.js +3 -5
- package/plugins/calendar/index.d.ts +1 -2
- package/plugins/calendar/index.js +1 -2
- package/plugins/dayOfYear/index.d.ts +1 -2
- package/plugins/dayOfYear/index.js +1 -2
- package/plugins/duration/index.d.ts +1 -2
- package/plugins/duration/index.js +12 -16
- package/plugins/isBetween/index.d.ts +1 -2
- package/plugins/isBetween/index.js +2 -4
- package/plugins/isLeapYear/index.d.ts +1 -2
- package/plugins/isLeapYear/index.js +1 -2
- package/plugins/isSameOrAfter/index.d.ts +1 -2
- package/plugins/isSameOrAfter/index.js +1 -2
- package/plugins/isSameOrBefore/index.d.ts +1 -2
- package/plugins/isSameOrBefore/index.js +1 -2
- package/plugins/isToday/index.d.ts +1 -2
- package/plugins/isToday/index.js +2 -4
- package/plugins/isTomorrow/index.d.ts +1 -2
- package/plugins/isTomorrow/index.js +2 -4
- package/plugins/isYesterday/index.d.ts +1 -2
- package/plugins/isYesterday/index.js +2 -4
- package/plugins/isoWeek/index.d.ts +1 -2
- package/plugins/isoWeek/index.js +5 -7
- package/plugins/locale/index.d.ts +4 -2
- package/plugins/locale/index.js +10 -10
- package/plugins/localeData/index.d.ts +1 -2
- package/plugins/localeData/index.js +6 -6
- package/plugins/localizedFormat/index.d.ts +1 -2
- package/plugins/localizedFormat/index.js +3 -5
- package/plugins/localizedParse/index.d.ts +1 -2
- package/plugins/localizedParse/index.js +4 -5
- package/plugins/minMax/index.d.ts +1 -2
- package/plugins/minMax/index.js +2 -4
- package/plugins/objectSupport/index.d.ts +1 -2
- package/plugins/objectSupport/index.js +5 -7
- package/plugins/pluralGetSet/index.d.ts +1 -2
- package/plugins/pluralGetSet/index.js +1 -2
- package/plugins/quarterOfYear/index.d.ts +1 -2
- package/plugins/quarterOfYear/index.js +4 -6
- package/plugins/relativeTime/index.d.ts +1 -2
- package/plugins/relativeTime/index.js +3 -5
- package/plugins/timezone/index.d.ts +1 -2
- package/plugins/timezone/index.js +13 -15
- package/plugins/toArray/index.d.ts +1 -2
- package/plugins/toArray/index.js +1 -2
- package/plugins/toObject/index.d.ts +1 -2
- package/plugins/toObject/index.js +1 -2
- package/plugins/utc/index.d.ts +6 -2
- package/plugins/utc/index.js +10 -12
- package/plugins/week/index.d.ts +1 -2
- package/plugins/week/index.js +6 -8
- package/chunks/{v_QBn7Xm.js → DuRKUq5K.js} +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.0.1](https://github.com/BePo65/esday/compare/v1.0.0...v1.0.1) (2026-07-30)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* allow other types beside EsDay as first argument to diff() ([198f9da](https://github.com/BePo65/esday/commit/198f9dab0453ce6e60ec9071629197f209f36fd9))
|
|
10
|
+
## [1.0.0](https://github.com/BePo65/esday/compare/v0.6.3...v1.0.0) (2026-06-04)
|
|
11
|
+
|
|
5
12
|
## [0.6.3](https://github.com/BePo65/esday/compare/v0.6.2...v0.6.3) (2026-03-08)
|
|
6
13
|
|
|
7
14
|
## [0.6.2](https://github.com/BePo65/esday/compare/v0.6.1...v0.6.2) (2026-03-03)
|
package/README.md
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
# EsDay
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/esday)
|
|
4
4
|
[](https://github.com/kessler/license-report/blob/master/LICENSE)
|
|
5
5
|
[](https://github.com/BePo65/esday?tab=readme-ov-file#contribute)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Repository changing ownership
|
|
8
8
|
|
|
9
9
|
On the 6th of January 2026 this repository changed the ownership to one of it's maintainers, [BePo65](https://github.com/BePo65) to reduce the workload on [g-mero](https://github.com/g-mero).
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Concepts
|
|
12
|
+
|
|
13
|
+
EsDay is a JavaScript library inspired by [Day.js](https://github.com/iamkun/dayjs).
|
|
14
|
+
|
|
15
|
+
Esday has an API largely similar to Day.js (v1.11.13), but it is written in TypeScript and fully supports es modules.
|
|
16
|
+
|
|
17
|
+
Being compatible to Day.js, EsDay is also a good replacement for Moment.js.
|
|
18
|
+
|
|
19
|
+
**Highlights**
|
|
20
|
+
|
|
21
|
+
- **Modern API**: Provides the same API as Day.js, with some features moved to plugins for a simpler core.
|
|
22
|
+
- **Immutable**: esday is immutable, which means that all operations will return a new instance of esday.
|
|
23
|
+
|
|
24
|
+
## Basic use
|
|
12
25
|
|
|
13
26
|
```javascript
|
|
14
27
|
import { esday } from 'esday'
|
|
@@ -21,11 +34,6 @@ esday('2024-12-10').set('year', 2025).add(1, 'month').isToday()
|
|
|
21
34
|
|
|
22
35
|
For detailed information see the [full documentation](https://bepo65.github.io/esday/).
|
|
23
36
|
|
|
24
|
-
## Concepts
|
|
25
|
-
|
|
26
|
-
- **Modern API**: Provides the same API as Day.js, with some features moved to plugins for a simpler core.
|
|
27
|
-
- **Immutable**: esday is immutable, which means that all operations will return a new instance of esday.
|
|
28
|
-
|
|
29
37
|
## Differences to Day.js
|
|
30
38
|
|
|
31
39
|
- **Locale is a Plugin**: no default locale!
|
|
@@ -145,6 +145,11 @@ type ParsingObjectPlurals = {
|
|
|
145
145
|
milliseconds?: number | string;
|
|
146
146
|
};
|
|
147
147
|
type ParsingObject = ParsingObjectShort | ParsingObjectLong | ParsingObjectPlurals;
|
|
148
|
+
interface ConfigurationObject {
|
|
149
|
+
args_1?: SimpleType | string[] | Record<string, SimpleType>;
|
|
150
|
+
args_2?: SimpleType | string[] | Record<string, SimpleType>;
|
|
151
|
+
args_3?: SimpleType | string[] | Record<string, SimpleType>;
|
|
152
|
+
}
|
|
148
153
|
//#endregion
|
|
149
154
|
//#region src/core/EsDay.d.ts
|
|
150
155
|
declare interface EsDay {
|
|
@@ -196,7 +201,7 @@ declare class EsDay {
|
|
|
196
201
|
add(value: UnitsObjectTypeAddSub): EsDay;
|
|
197
202
|
subtract(value: number, unit: UnitTypeAddSub): EsDay;
|
|
198
203
|
subtract(value: UnitsObjectTypeAddSub): EsDay;
|
|
199
|
-
diff(date:
|
|
204
|
+
diff(date: DateType, units?: UnitTypeAddSub, asFloat?: boolean): number;
|
|
200
205
|
/**
|
|
201
206
|
* Get the utcOffset of date in minutes.
|
|
202
207
|
* "Proxy" implementation (getter only); the full functionality including
|
|
@@ -228,4 +233,4 @@ declare class EsDay {
|
|
|
228
233
|
protected $set(unit: UnitTypeGetSet | UnitsObjectTypeSet, values: number[]): this;
|
|
229
234
|
}
|
|
230
235
|
//#endregion
|
|
231
|
-
export {
|
|
236
|
+
export { UnitMs as A, UnitDates as C, UnitIsoWeeks as D, UnitIsoWeek as E, UnitTypeCore as F, UnitTypeGetSet as I, UnitTypePlurals as L, UnitSecond as M, UnitType as N, UnitMin as O, UnitTypeAddSub as P, UnitWeek as R, UnitDate as S, UnitHour as T, LongUnit as _, EsDayFactory as a, PrettyUnitFromPlurals as b, FormattingTokenDefinitions as c, ParsingObjectPlurals as d, ParsingObjectShort as f, SimpleType as g, SimpleObject as h, DateType as i, UnitQuarter as j, UnitMonth as k, ParsingObject as l, UnitsObjectTypeSet as m, ConfigurationObject as n, EsDayFactoryParserFn as o, UnitsObjectTypeAddSub as p, DateFromDateComponents as r, EsDayPlugin as s, EsDay as t, ParsingObjectLong as u, PrettyUnitAsPlural as v, UnitDay as w, ShortUnit as x, PrettyUnitAsSingular as y, UnitYear as z };
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
const SECONDS_A_MINUTE = 60;
|
|
3
|
-
const SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
|
|
1
|
+
const SECONDS_A_HOUR = 3600;
|
|
4
2
|
const SECONDS_A_DAY = SECONDS_A_HOUR * 24;
|
|
5
3
|
const SECONDS_A_WEEK = SECONDS_A_DAY * 7;
|
|
6
4
|
const MILLISECONDS_A_SECOND = 1e3;
|
|
7
|
-
const MILLISECONDS_A_MINUTE =
|
|
5
|
+
const MILLISECONDS_A_MINUTE = 60 * MILLISECONDS_A_SECOND;
|
|
8
6
|
const MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
|
|
9
7
|
const MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
|
10
8
|
const MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND;
|
|
11
9
|
const MILLISECONDS_A_YEAR = MILLISECONDS_A_DAY * 365;
|
|
12
10
|
const MILLISECONDS_A_MONTH = MILLISECONDS_A_YEAR / 12;
|
|
13
11
|
const MILLISECONDS_A_QUARTER = MILLISECONDS_A_MONTH * 3;
|
|
14
|
-
const INDEX_SUNDAY = 0;
|
|
15
|
-
const INDEX_MONDAY = 1;
|
|
16
|
-
const INDEX_WEDNESDAY = 3;
|
|
17
|
-
const INDEX_THURSDAY = 4;
|
|
18
12
|
const MS = "millisecond";
|
|
19
13
|
const SECOND = "second";
|
|
20
14
|
const MIN = "minute";
|
|
21
15
|
const HOUR = "hour";
|
|
22
|
-
const DAY = "day";
|
|
23
16
|
const WEEK = "week";
|
|
24
17
|
const ISOWEEK = "isoWeek";
|
|
25
18
|
const MONTH = "month";
|
|
@@ -29,9 +22,8 @@ const DAY_OF_MONTH = "date";
|
|
|
29
22
|
const FORMAT_DEFAULT = "YYYY-MM-DDTHH:mm:ssZ";
|
|
30
23
|
const INVALID_DATE = /* @__PURE__ */ new Date("");
|
|
31
24
|
const INVALID_DATE_STRING = "Invalid date";
|
|
32
|
-
const REGEX_PARSE_DEFAULT = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
|
|
33
25
|
var constants_default = {
|
|
34
|
-
SECONDS_A_MINUTE,
|
|
26
|
+
SECONDS_A_MINUTE: 60,
|
|
35
27
|
SECONDS_A_HOUR,
|
|
36
28
|
SECONDS_A_DAY,
|
|
37
29
|
SECONDS_A_WEEK,
|
|
@@ -43,15 +35,15 @@ var constants_default = {
|
|
|
43
35
|
MILLISECONDS_A_QUARTER,
|
|
44
36
|
MILLISECONDS_A_MONTH,
|
|
45
37
|
MILLISECONDS_A_YEAR,
|
|
46
|
-
INDEX_SUNDAY,
|
|
47
|
-
INDEX_MONDAY,
|
|
48
|
-
INDEX_WEDNESDAY,
|
|
49
|
-
INDEX_THURSDAY,
|
|
38
|
+
INDEX_SUNDAY: 0,
|
|
39
|
+
INDEX_MONDAY: 1,
|
|
40
|
+
INDEX_WEDNESDAY: 3,
|
|
41
|
+
INDEX_THURSDAY: 4,
|
|
50
42
|
MS,
|
|
51
43
|
SECOND,
|
|
52
44
|
MIN,
|
|
53
45
|
HOUR,
|
|
54
|
-
DAY,
|
|
46
|
+
DAY: "day",
|
|
55
47
|
WEEK,
|
|
56
48
|
ISOWEEK,
|
|
57
49
|
MONTH,
|
|
@@ -61,8 +53,7 @@ var constants_default = {
|
|
|
61
53
|
FORMAT_DEFAULT,
|
|
62
54
|
INVALID_DATE,
|
|
63
55
|
INVALID_DATE_STRING,
|
|
64
|
-
REGEX_PARSE_DEFAULT
|
|
56
|
+
REGEX_PARSE_DEFAULT: /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i
|
|
65
57
|
};
|
|
66
|
-
|
|
67
58
|
//#endregion
|
|
68
|
-
export {
|
|
59
|
+
export { MIN as a, QUARTER as c, YEAR as d, constants_default as f, ISOWEEK as i, SECOND as l, HOUR as n, MONTH as o, INVALID_DATE_STRING as r, MS as s, DAY_OF_MONTH as t, WEEK as u };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as isArray } from "./
|
|
2
|
-
import { n as normalizeUnitWithPlurals } from "./
|
|
3
|
-
|
|
1
|
+
import { t as isArray } from "./DuRKUq5K.js";
|
|
2
|
+
import { n as normalizeUnitWithPlurals } from "./DMdr1ZL1.js";
|
|
4
3
|
//#region src/common/date-fields.ts
|
|
5
4
|
/**
|
|
6
5
|
* Map units to fields of a javascript Date object.
|
|
@@ -17,7 +16,8 @@ const UNIT_FIELD_MAP = {
|
|
|
17
16
|
};
|
|
18
17
|
const prettyUnitsDate = Object.keys(UNIT_FIELD_MAP);
|
|
19
18
|
function unitToField(unit) {
|
|
20
|
-
|
|
19
|
+
const p = normalizeUnitWithPlurals(unit);
|
|
20
|
+
return UNIT_FIELD_MAP[p];
|
|
21
21
|
}
|
|
22
22
|
function getUnitInDate(date, unit) {
|
|
23
23
|
return date[`get${unitToField(unit)}`]();
|
|
@@ -33,6 +33,5 @@ function setUnitInDateUTC(date, unit, value) {
|
|
|
33
33
|
date[`setUTC${unitToField(unit)}`](...isArray(value) ? value : [value]);
|
|
34
34
|
return date;
|
|
35
35
|
}
|
|
36
|
-
|
|
37
36
|
//#endregion
|
|
38
|
-
export { setUnitInDateUTC as a, setUnitInDate as i, getUnitInDateUTC as n, prettyUnitsDate as r, getUnitInDate as t };
|
|
37
|
+
export { setUnitInDateUTC as a, setUnitInDate as i, getUnitInDateUTC as n, prettyUnitsDate as r, getUnitInDate as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as MIN, c as QUARTER, d as YEAR, i as ISOWEEK, l as SECOND, n as HOUR, o as MONTH, s as MS, t as DAY_OF_MONTH, u as WEEK } from "./CeKusvtV.js";
|
|
3
2
|
//#region src/common/units.ts
|
|
4
3
|
const UNIT_MAP_SHORT_TO_LONG = {
|
|
5
4
|
y: YEAR,
|
|
@@ -8,7 +7,7 @@ const UNIT_MAP_SHORT_TO_LONG = {
|
|
|
8
7
|
w: WEEK,
|
|
9
8
|
W: ISOWEEK,
|
|
10
9
|
D: DAY_OF_MONTH,
|
|
11
|
-
d:
|
|
10
|
+
d: "day",
|
|
12
11
|
h: HOUR,
|
|
13
12
|
m: MIN,
|
|
14
13
|
s: SECOND,
|
|
@@ -79,6 +78,5 @@ function normalizeUnitWithPluralsToPlural(unit) {
|
|
|
79
78
|
}
|
|
80
79
|
return normalizedUnit;
|
|
81
80
|
}
|
|
82
|
-
|
|
83
81
|
//#endregion
|
|
84
|
-
export { normalizeUnitWithPlurals as n, normalizeUnitWithPluralsToPlural as r, normalizeUnit as t };
|
|
82
|
+
export { normalizeUnitWithPlurals as n, normalizeUnitWithPluralsToPlural as r, normalizeUnit as t };
|
|
@@ -51,6 +51,5 @@ function padZoneStr(utcOffset) {
|
|
|
51
51
|
const minuteOffset = Math.trunc(minutes % 60);
|
|
52
52
|
return `${negMinutes <= 0 ? "+" : "-"}${padStart(hourOffset, 2, "0")}:${padStart(minuteOffset, 2, "0")}`;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
54
|
//#endregion
|
|
56
|
-
export { padStart as n, padZoneStr as r, padNumberWithLeadingZeros as t };
|
|
55
|
+
export { padStart as n, padZoneStr as r, padNumberWithLeadingZeros as t };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as isUndefined, n as isEmptyObject, o as isValidDate, r as isObject, t as isArray } from "./
|
|
3
|
-
import { n as normalizeUnitWithPlurals, t as normalizeUnit } from "./
|
|
4
|
-
import { i as setUnitInDate, r as prettyUnitsDate, t as getUnitInDate } from "./
|
|
5
|
-
import { t as createInstanceFromExist } from "./
|
|
6
|
-
import { n as padStart, r as padZoneStr } from "./
|
|
7
|
-
|
|
1
|
+
import { f as constants_default } from "./CeKusvtV.js";
|
|
2
|
+
import { a as isUndefined, n as isEmptyObject, o as isValidDate, r as isObject, t as isArray } from "./DuRKUq5K.js";
|
|
3
|
+
import { n as normalizeUnitWithPlurals, t as normalizeUnit } from "./DMdr1ZL1.js";
|
|
4
|
+
import { i as setUnitInDate, r as prettyUnitsDate, t as getUnitInDate } from "./DIG_UBsE.js";
|
|
5
|
+
import { t as createInstanceFromExist } from "./i3oEJgL3.js";
|
|
6
|
+
import { n as padStart, r as padZoneStr } from "./DXFoLbHM.js";
|
|
8
7
|
//#region src/core/Impl/add.ts
|
|
9
8
|
function addImpl(that, value, units) {
|
|
10
9
|
const $d = that["$d"];
|
|
@@ -33,7 +32,6 @@ function addImpl(that, value, units) {
|
|
|
33
32
|
default: return that.clone();
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
//#endregion
|
|
38
36
|
//#region src/core/Impl/diff.ts
|
|
39
37
|
/**
|
|
@@ -97,7 +95,6 @@ function diffImpl(that, date, units, asFloat = false) {
|
|
|
97
95
|
}
|
|
98
96
|
return asFloat ? result : absFloor(result);
|
|
99
97
|
}
|
|
100
|
-
|
|
101
98
|
//#endregion
|
|
102
99
|
//#region src/core/Impl/format.ts
|
|
103
100
|
const formattingSeparatorsRegex = "\\[([^\\]]+)\\]";
|
|
@@ -154,7 +151,6 @@ function formatImpl(that, formatStr) {
|
|
|
154
151
|
};
|
|
155
152
|
return activeFormatString.replace(formattingTokensRegex, (match, $1) => $1 || matches(match));
|
|
156
153
|
}
|
|
157
|
-
|
|
158
154
|
//#endregion
|
|
159
155
|
//#region src/core/Impl/parse.ts
|
|
160
156
|
/**
|
|
@@ -179,7 +175,6 @@ function parseArrayToDate(dateArray) {
|
|
|
179
175
|
});
|
|
180
176
|
return this.dateFromDateComponents(...dateArrayTuple);
|
|
181
177
|
}
|
|
182
|
-
|
|
183
178
|
//#endregion
|
|
184
179
|
//#region src/core/Impl/startOf.ts
|
|
185
180
|
function startOfImpl(that, unit, reverse = false) {
|
|
@@ -229,26 +224,22 @@ function startOfImpl(that, unit, reverse = false) {
|
|
|
229
224
|
}
|
|
230
225
|
return result;
|
|
231
226
|
}
|
|
232
|
-
|
|
233
227
|
//#endregion
|
|
234
|
-
//#region \0@oxc-project+runtime@0.
|
|
228
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/checkPrivateRedeclaration.js
|
|
235
229
|
function _checkPrivateRedeclaration(e, t) {
|
|
236
230
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
237
231
|
}
|
|
238
|
-
|
|
239
232
|
//#endregion
|
|
240
|
-
//#region \0@oxc-project+runtime@0.
|
|
233
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/classPrivateMethodInitSpec.js
|
|
241
234
|
function _classPrivateMethodInitSpec(e, a) {
|
|
242
235
|
_checkPrivateRedeclaration(e, a), a.add(e);
|
|
243
236
|
}
|
|
244
|
-
|
|
245
237
|
//#endregion
|
|
246
|
-
//#region \0@oxc-project+runtime@0.
|
|
238
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/assertClassBrand.js
|
|
247
239
|
function _assertClassBrand(e, t, n) {
|
|
248
240
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
249
241
|
throw new TypeError("Private element is not present on this object");
|
|
250
242
|
}
|
|
251
|
-
|
|
252
243
|
//#endregion
|
|
253
244
|
//#region src/core/EsDay.ts
|
|
254
245
|
var _EsDay_brand = /* @__PURE__ */ new WeakSet();
|
|
@@ -342,7 +333,8 @@ var EsDay = class EsDay {
|
|
|
342
333
|
return this.clone();
|
|
343
334
|
}
|
|
344
335
|
diff(date, units, asFloat = false) {
|
|
345
|
-
|
|
336
|
+
const parsedDate = esday(date);
|
|
337
|
+
return diffImpl(this, parsedDate, units, asFloat);
|
|
346
338
|
}
|
|
347
339
|
utcOffset(offset, _keepLocalTime) {
|
|
348
340
|
if (offset !== void 0) return new EsDay(constants_default.INVALID_DATE);
|
|
@@ -452,7 +444,6 @@ for (const key of prettyUnitsDate) EsDay.prototype[key] = function(...args) {
|
|
|
452
444
|
if (args?.length) return this.set(key, ...args);
|
|
453
445
|
return this.get(key);
|
|
454
446
|
};
|
|
455
|
-
|
|
456
447
|
//#endregion
|
|
457
448
|
//#region src/core/factory.ts
|
|
458
449
|
const esday = (d, ...others) => {
|
|
@@ -476,6 +467,5 @@ esday.extend = (plugin, option) => {
|
|
|
476
467
|
}
|
|
477
468
|
return esday;
|
|
478
469
|
};
|
|
479
|
-
|
|
480
470
|
//#endregion
|
|
481
|
-
export { _checkPrivateRedeclaration as i, EsDay as n, _assertClassBrand as r, esday as t };
|
|
471
|
+
export { _checkPrivateRedeclaration as i, EsDay as n, _assertClassBrand as r, esday as t };
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { t as esday } from "./chunks/
|
|
3
|
-
export { DateFromDateComponents, DateType, EsDay, EsDayFactory, EsDayFactoryParserFn, EsDayPlugin, FormattingTokenDefinitions, LongUnit, ParsingObject, ParsingObjectLong, ParsingObjectPlurals, ParsingObjectShort, PrettyUnitAsPlural, PrettyUnitAsSingular, PrettyUnitFromPlurals, ShortUnit, SimpleObject, SimpleType, UnitDate, UnitDay, UnitHour, UnitIsoWeek, UnitMin, UnitMonth, UnitMs, UnitQuarter, UnitSecond, UnitType, UnitTypeAddSub, UnitTypeCore, UnitTypeGetSet, UnitWeek, UnitYear, UnitsObjectTypeAddSub, UnitsObjectTypeSet, esday };
|
|
1
|
+
import { A as UnitMs, E as UnitIsoWeek, F as UnitTypeCore, I as UnitTypeGetSet, M as UnitSecond, N as UnitType, O as UnitMin, P as UnitTypeAddSub, R as UnitWeek, S as UnitDate, T as UnitHour, _ as LongUnit, a as EsDayFactory, b as PrettyUnitFromPlurals, c as FormattingTokenDefinitions, d as ParsingObjectPlurals, f as ParsingObjectShort, g as SimpleType, h as SimpleObject, i as DateType, j as UnitQuarter, k as UnitMonth, l as ParsingObject, m as UnitsObjectTypeSet, n as ConfigurationObject, o as EsDayFactoryParserFn, p as UnitsObjectTypeAddSub, r as DateFromDateComponents, s as EsDayPlugin, t as EsDay, u as ParsingObjectLong, v as PrettyUnitAsPlural, w as UnitDay, x as ShortUnit, y as PrettyUnitAsSingular, z as UnitYear } from "./chunks/BB5OVV-y.js";
|
|
2
|
+
import { t as esday } from "./chunks/CBlQG2yl.js";
|
|
3
|
+
export { ConfigurationObject, DateFromDateComponents, DateType, EsDay, EsDayFactory, EsDayFactoryParserFn, EsDayPlugin, FormattingTokenDefinitions, type LongUnit, ParsingObject, ParsingObjectLong, ParsingObjectPlurals, ParsingObjectShort, type PrettyUnitAsPlural, type PrettyUnitAsSingular, type PrettyUnitFromPlurals, type ShortUnit, type SimpleObject, type SimpleType, type UnitDate, type UnitDay, type UnitHour, type UnitIsoWeek, type UnitMin, type UnitMonth, type UnitMs, type UnitQuarter, type UnitSecond, type UnitType, type UnitTypeAddSub, type UnitTypeCore, type UnitTypeGetSet, type UnitWeek, type UnitYear, UnitsObjectTypeAddSub, UnitsObjectTypeSet, esday };
|
package/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { n as EsDay, t as esday } from "./chunks/
|
|
2
|
-
|
|
3
|
-
export { EsDay, esday };
|
|
1
|
+
import { n as EsDay, t as esday } from "./chunks/oiGWnahC.js";
|
|
2
|
+
export { EsDay, esday };
|
package/locales/af.d.ts
CHANGED
package/locales/af.js
CHANGED
package/locales/am.d.ts
CHANGED
package/locales/am.js
CHANGED
package/locales/ar-dz.d.ts
CHANGED
package/locales/ar-dz.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import locale from "./ar.js";
|
|
2
2
|
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/locales/ar-dz.ts
|
|
5
4
|
/**
|
|
6
5
|
* Arabic (Algeria) [ar-DZ]
|
|
@@ -25,6 +24,5 @@ setLocaleProperty(localeArDz, "months", months);
|
|
|
25
24
|
setLocaleProperty(localeArDz, "monthsShort", months);
|
|
26
25
|
setLocaleProperty(localeArDz, "weekStart", 0);
|
|
27
26
|
setLocaleProperty(localeArDz, "yearStart", 4);
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
|
-
export { localeArDz as default };
|
|
28
|
+
export { localeArDz as default };
|
package/locales/ar-iq.d.ts
CHANGED
package/locales/ar-iq.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import locale from "./ar.js";
|
|
2
2
|
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/locales/ar-iq.ts
|
|
5
4
|
/**
|
|
6
5
|
* Arabic (Iraq) [ar-IQ]
|
|
7
6
|
*/
|
|
8
7
|
const localeArIq = cloneLocale(locale);
|
|
9
8
|
setLocaleProperty(localeArIq, "name", "ar-IQ");
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
|
-
export { localeArIq as default };
|
|
10
|
+
export { localeArIq as default };
|
package/locales/ar-kw.d.ts
CHANGED
package/locales/ar-kw.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import locale from "./ar.js";
|
|
2
2
|
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/locales/ar-kw.ts
|
|
5
4
|
/**
|
|
6
5
|
* Arabic (Kuwait) [ar-KW]
|
|
@@ -21,6 +20,5 @@ setLocaleProperty(localeArKw, "name", "ar-KW");
|
|
|
21
20
|
setLocaleProperty(localeArKw, "weekStart", 0);
|
|
22
21
|
setLocaleProperty(localeArKw, "formats", formats);
|
|
23
22
|
setLocaleProperty(localeArKw, "calendar", calendar);
|
|
24
|
-
|
|
25
23
|
//#endregion
|
|
26
|
-
export { localeArKw as default };
|
|
24
|
+
export { localeArKw as default };
|
package/locales/ar-ly.d.ts
CHANGED
package/locales/ar-ly.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import locale from "./ar.js";
|
|
2
2
|
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/locales/ar-ly.ts
|
|
5
4
|
/**
|
|
6
5
|
* Arabic (Lybia) [ar-LY]
|
|
7
6
|
*/
|
|
8
7
|
const localeArLy = cloneLocale(locale);
|
|
9
8
|
setLocaleProperty(localeArLy, "name", "ar-LY");
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
|
-
export { localeArLy as default };
|
|
10
|
+
export { localeArLy as default };
|
package/locales/ar-ma.d.ts
CHANGED
package/locales/ar-ma.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import locale from "./ar.js";
|
|
2
2
|
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/locales/ar-ma.ts
|
|
5
4
|
/**
|
|
6
5
|
* Arabic (Morocco) [ar-MA]
|
|
@@ -22,6 +21,5 @@ setLocaleProperty(localeArMa, "weekStart", 1);
|
|
|
22
21
|
setLocaleProperty(localeArMa, "yearStart", 4);
|
|
23
22
|
setLocaleProperty(localeArMa, "formats", formats);
|
|
24
23
|
setLocaleProperty(localeArMa, "calendar", calendar);
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
export { localeArMa as default };
|
|
25
|
+
export { localeArMa as default };
|
package/locales/ar-sa.d.ts
CHANGED
package/locales/ar-sa.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import locale from "./ar.js";
|
|
2
2
|
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/locales/ar-sa.ts
|
|
5
4
|
/**
|
|
6
5
|
* Arabic (Saudi Arabia) [ar-SA]
|
|
@@ -22,6 +21,5 @@ setLocaleProperty(localeArSa, "weekStart", 0);
|
|
|
22
21
|
setLocaleProperty(localeArSa, "yearStart", 6);
|
|
23
22
|
setLocaleProperty(localeArSa, "formats", formats);
|
|
24
23
|
setLocaleProperty(localeArSa, "calendar", calendar);
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
export { localeArSa as default };
|
|
25
|
+
export { localeArSa as default };
|
package/locales/ar-tn.d.ts
CHANGED
package/locales/ar-tn.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import locale from "./ar.js";
|
|
2
2
|
import { cloneLocale, setLocaleProperty } from "../plugins/locale/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/locales/ar-tn.ts
|
|
5
4
|
/**
|
|
6
5
|
* Arabic (Tunisia) [ar-TN]
|
|
@@ -22,6 +21,5 @@ setLocaleProperty(localeArTn, "weekStart", 1);
|
|
|
22
21
|
setLocaleProperty(localeArTn, "yearStart", 4);
|
|
23
22
|
setLocaleProperty(localeArTn, "formats", formats);
|
|
24
23
|
setLocaleProperty(localeArTn, "calendar", calendar);
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
export { localeArTn as default };
|
|
25
|
+
export { localeArTn as default };
|
package/locales/ar.d.ts
CHANGED
package/locales/ar.js
CHANGED
|
@@ -193,6 +193,5 @@ const locale = {
|
|
|
193
193
|
preParse: (dateString) => dateString.replace(/[١٢٣٤٥٦٧٨٩٠]/g, (match) => arabicToEnglishNumbersMap[match]).replace(/،/g, ","),
|
|
194
194
|
postFormat: (formattedDate) => formattedDate.replace(/\d/g, (match) => englishToArabicNumbersMap[Number(match)]).replace(/,/g, "،")
|
|
195
195
|
};
|
|
196
|
-
|
|
197
196
|
//#endregion
|
|
198
|
-
export { locale as default };
|
|
197
|
+
export { locale as default };
|
package/locales/az.d.ts
CHANGED
package/locales/az.js
CHANGED
package/locales/be.d.ts
CHANGED
package/locales/be.js
CHANGED
package/locales/bg.d.ts
CHANGED
package/locales/bg.js
CHANGED
package/locales/bi.d.ts
CHANGED
package/locales/bi.js
CHANGED