@internationalized/date 3.11.0 → 3.12.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/dist/index.cjs +113 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +45 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{CalendarDate.main.js → private/CalendarDate.cjs} +102 -120
- package/dist/private/CalendarDate.cjs.map +1 -0
- package/dist/{CalendarDate.mjs → private/CalendarDate.js} +65 -65
- package/dist/private/CalendarDate.js.map +1 -0
- package/dist/{CalendarDate.module.js → private/CalendarDate.mjs} +99 -117
- package/dist/private/CalendarDate.mjs.map +1 -0
- package/dist/{DateFormatter.main.js → private/DateFormatter.cjs} +27 -27
- package/dist/private/DateFormatter.cjs.map +1 -0
- package/dist/{DateFormatter.module.js → private/DateFormatter.js} +23 -23
- package/dist/{DateFormatter.module.js.map → private/DateFormatter.js.map} +1 -1
- package/dist/{DateFormatter.mjs → private/DateFormatter.mjs} +27 -27
- package/dist/private/DateFormatter.mjs.map +1 -0
- package/dist/{BuddhistCalendar.main.js → private/calendars/BuddhistCalendar.cjs} +13 -13
- package/dist/{BuddhistCalendar.main.js.map → private/calendars/BuddhistCalendar.cjs.map} +1 -1
- package/dist/{BuddhistCalendar.module.js → private/calendars/BuddhistCalendar.js} +13 -13
- package/dist/{BuddhistCalendar.module.js.map → private/calendars/BuddhistCalendar.js.map} +1 -1
- package/dist/{BuddhistCalendar.mjs → private/calendars/BuddhistCalendar.mjs} +13 -13
- package/dist/private/calendars/BuddhistCalendar.mjs.map +1 -0
- package/dist/{EthiopicCalendar.main.js → private/calendars/EthiopicCalendar.cjs} +32 -32
- package/dist/{EthiopicCalendar.main.js.map → private/calendars/EthiopicCalendar.cjs.map} +1 -1
- package/dist/{EthiopicCalendar.module.js → private/calendars/EthiopicCalendar.js} +30 -30
- package/dist/{EthiopicCalendar.module.js.map → private/calendars/EthiopicCalendar.js.map} +1 -1
- package/dist/{EthiopicCalendar.mjs → private/calendars/EthiopicCalendar.mjs} +30 -30
- package/dist/private/calendars/EthiopicCalendar.mjs.map +1 -0
- package/dist/{GregorianCalendar.main.js → private/calendars/GregorianCalendar.cjs} +31 -31
- package/dist/{GregorianCalendar.main.js.map → private/calendars/GregorianCalendar.cjs.map} +1 -1
- package/dist/{GregorianCalendar.module.js → private/calendars/GregorianCalendar.js} +27 -27
- package/dist/{GregorianCalendar.module.js.map → private/calendars/GregorianCalendar.js.map} +1 -1
- package/dist/{GregorianCalendar.mjs → private/calendars/GregorianCalendar.mjs} +27 -27
- package/dist/private/calendars/GregorianCalendar.mjs.map +1 -0
- package/dist/{HebrewCalendar.main.js → private/calendars/HebrewCalendar.cjs} +44 -44
- package/dist/{HebrewCalendar.main.js.map → private/calendars/HebrewCalendar.cjs.map} +1 -1
- package/dist/{HebrewCalendar.module.js → private/calendars/HebrewCalendar.js} +44 -44
- package/dist/{HebrewCalendar.module.js.map → private/calendars/HebrewCalendar.js.map} +1 -1
- package/dist/{HebrewCalendar.mjs → private/calendars/HebrewCalendar.mjs} +44 -44
- package/dist/private/calendars/HebrewCalendar.mjs.map +1 -0
- package/dist/{IndianCalendar.main.js → private/calendars/IndianCalendar.cjs} +20 -20
- package/dist/{IndianCalendar.main.js.map → private/calendars/IndianCalendar.cjs.map} +1 -1
- package/dist/{IndianCalendar.module.js → private/calendars/IndianCalendar.js} +20 -20
- package/dist/{IndianCalendar.module.js.map → private/calendars/IndianCalendar.js.map} +1 -1
- package/dist/{IndianCalendar.mjs → private/calendars/IndianCalendar.mjs} +20 -20
- package/dist/private/calendars/IndianCalendar.mjs.map +1 -0
- package/dist/private/calendars/IslamicCalendar.cjs +168 -0
- package/dist/private/calendars/IslamicCalendar.cjs.map +1 -0
- package/dist/private/calendars/IslamicCalendar.js +161 -0
- package/dist/{IslamicCalendar.module.js.map → private/calendars/IslamicCalendar.js.map} +1 -1
- package/dist/private/calendars/IslamicCalendar.mjs +161 -0
- package/dist/private/calendars/IslamicCalendar.mjs.map +1 -0
- package/dist/{JapaneseCalendar.main.js → private/calendars/JapaneseCalendar.cjs} +37 -37
- package/dist/{JapaneseCalendar.main.js.map → private/calendars/JapaneseCalendar.cjs.map} +1 -1
- package/dist/{JapaneseCalendar.module.js → private/calendars/JapaneseCalendar.js} +37 -37
- package/dist/{JapaneseCalendar.module.js.map → private/calendars/JapaneseCalendar.js.map} +1 -1
- package/dist/{JapaneseCalendar.mjs → private/calendars/JapaneseCalendar.mjs} +37 -37
- package/dist/private/calendars/JapaneseCalendar.mjs.map +1 -0
- package/dist/{PersianCalendar.main.js → private/calendars/PersianCalendar.cjs} +13 -13
- package/dist/{PersianCalendar.main.js.map → private/calendars/PersianCalendar.cjs.map} +1 -1
- package/dist/{PersianCalendar.module.js → private/calendars/PersianCalendar.js} +13 -13
- package/dist/{PersianCalendar.module.js.map → private/calendars/PersianCalendar.js.map} +1 -1
- package/dist/{PersianCalendar.mjs → private/calendars/PersianCalendar.mjs} +13 -13
- package/dist/private/calendars/PersianCalendar.mjs.map +1 -0
- package/dist/{TaiwanCalendar.main.js → private/calendars/TaiwanCalendar.cjs} +20 -20
- package/dist/{TaiwanCalendar.main.js.map → private/calendars/TaiwanCalendar.cjs.map} +1 -1
- package/dist/private/calendars/TaiwanCalendar.js +75 -0
- package/dist/{TaiwanCalendar.module.js.map → private/calendars/TaiwanCalendar.js.map} +1 -1
- package/dist/{TaiwanCalendar.mjs → private/calendars/TaiwanCalendar.mjs} +20 -20
- package/dist/private/calendars/TaiwanCalendar.mjs.map +1 -0
- package/dist/private/conversion.cjs +241 -0
- package/dist/private/conversion.cjs.map +1 -0
- package/dist/private/conversion.js +222 -0
- package/dist/private/conversion.js.map +1 -0
- package/dist/private/conversion.mjs +222 -0
- package/dist/private/conversion.mjs.map +1 -0
- package/dist/private/createCalendar.cjs +69 -0
- package/dist/{createCalendar.main.js.map → private/createCalendar.cjs.map} +1 -1
- package/dist/private/createCalendar.js +64 -0
- package/dist/{createCalendar.module.js.map → private/createCalendar.js.map} +1 -1
- package/dist/private/createCalendar.mjs +64 -0
- package/dist/private/createCalendar.mjs.map +1 -0
- package/dist/{manipulation.main.js → private/manipulation.cjs} +106 -109
- package/dist/private/manipulation.cjs.map +1 -0
- package/dist/{manipulation.mjs → private/manipulation.js} +88 -88
- package/dist/{manipulation.module.js.map → private/manipulation.js.map} +1 -1
- package/dist/{manipulation.module.js → private/manipulation.mjs} +93 -96
- package/dist/private/manipulation.mjs.map +1 -0
- package/dist/private/queries.cjs +359 -0
- package/dist/private/queries.cjs.map +1 -0
- package/dist/private/queries.js +326 -0
- package/dist/private/queries.js.map +1 -0
- package/dist/private/queries.mjs +324 -0
- package/dist/private/queries.mjs.map +1 -0
- package/dist/private/string.cjs +181 -0
- package/dist/private/string.cjs.map +1 -0
- package/dist/{string.mjs → private/string.js} +64 -64
- package/dist/{string.module.js.map → private/string.js.map} +1 -1
- package/dist/private/string.mjs +166 -0
- package/dist/private/string.mjs.map +1 -0
- package/dist/{utils.main.js → private/utils.cjs} +3 -3
- package/dist/{utils.main.js.map → private/utils.cjs.map} +1 -1
- package/dist/{utils.module.js → private/utils.js} +3 -3
- package/dist/{utils.module.js.map → private/utils.js.map} +1 -1
- package/dist/{utils.mjs → private/utils.mjs} +3 -3
- package/dist/private/utils.mjs.map +1 -0
- package/dist/{weekStartData.main.js → private/weekStartData.cjs} +3 -3
- package/dist/{weekStartData.main.js.map → private/weekStartData.cjs.map} +1 -1
- package/dist/{weekStartData.module.js → private/weekStartData.js} +3 -3
- package/dist/{weekStartData.module.js.map → private/weekStartData.js.map} +1 -1
- package/dist/{weekStartData.mjs → private/weekStartData.mjs} +3 -3
- package/dist/private/weekStartData.mjs.map +1 -0
- package/dist/types/src/CalendarDate.d.ts +177 -0
- package/dist/types/src/DateFormatter.d.ts +21 -0
- package/dist/types/src/calendars/BuddhistCalendar.d.ts +16 -0
- package/dist/types/src/calendars/EthiopicCalendar.d.ts +45 -0
- package/dist/types/src/calendars/GregorianCalendar.d.ts +25 -0
- package/dist/types/src/calendars/HebrewCalendar.d.ts +21 -0
- package/dist/types/src/calendars/IndianCalendar.d.ts +17 -0
- package/dist/types/src/calendars/IslamicCalendar.d.ts +48 -0
- package/dist/types/src/calendars/JapaneseCalendar.d.ts +21 -0
- package/dist/types/src/calendars/PersianCalendar.d.ts +19 -0
- package/dist/types/src/calendars/TaiwanCalendar.d.ts +19 -0
- package/dist/types/src/conversion.d.ts +42 -0
- package/dist/types/src/createCalendar.d.ts +3 -0
- package/dist/types/src/index.d.ts +17 -0
- package/dist/types/src/manipulation.d.ts +25 -0
- package/dist/types/src/queries.d.ts +87 -0
- package/dist/types/src/string.d.ts +35 -0
- package/dist/types/src/types.d.ts +132 -0
- package/dist/types/src/utils.d.ts +4 -0
- package/dist/types/src/weekStartData.d.ts +97 -0
- package/package.json +26 -11
- package/src/CalendarDate.ts +2 -0
- package/src/conversion.ts +10 -3
- package/src/index.ts +2 -0
- package/src/queries.ts +9 -3
- package/dist/CalendarDate.main.js.map +0 -1
- package/dist/CalendarDate.module.js.map +0 -1
- package/dist/DateFormatter.main.js.map +0 -1
- package/dist/IslamicCalendar.main.js +0 -168
- package/dist/IslamicCalendar.main.js.map +0 -1
- package/dist/IslamicCalendar.mjs +0 -161
- package/dist/IslamicCalendar.module.js +0 -161
- package/dist/TaiwanCalendar.module.js +0 -75
- package/dist/conversion.main.js +0 -236
- package/dist/conversion.main.js.map +0 -1
- package/dist/conversion.mjs +0 -218
- package/dist/conversion.module.js +0 -218
- package/dist/conversion.module.js.map +0 -1
- package/dist/createCalendar.main.js +0 -69
- package/dist/createCalendar.mjs +0 -64
- package/dist/createCalendar.module.js +0 -64
- package/dist/import.mjs +0 -45
- package/dist/main.js +0 -112
- package/dist/main.js.map +0 -1
- package/dist/manipulation.main.js.map +0 -1
- package/dist/module.js +0 -45
- package/dist/module.js.map +0 -1
- package/dist/queries.main.js +0 -354
- package/dist/queries.main.js.map +0 -1
- package/dist/queries.mjs +0 -320
- package/dist/queries.module.js +0 -320
- package/dist/queries.module.js.map +0 -1
- package/dist/string.main.js +0 -190
- package/dist/string.main.js.map +0 -1
- package/dist/string.module.js +0 -175
- package/dist/types.d.ts +0 -668
- package/dist/types.d.ts.map +0 -1
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
var $c51b7e0106f45dea$exports = require("./private/CalendarDate.cjs");
|
|
2
|
+
var $05031860ba2f881f$exports = require("./private/calendars/GregorianCalendar.cjs");
|
|
3
|
+
var $a90e2192fa9a0f41$exports = require("./private/calendars/JapaneseCalendar.cjs");
|
|
4
|
+
var $0ce473f03e925476$exports = require("./private/calendars/BuddhistCalendar.cjs");
|
|
5
|
+
var $2dab1d4ea1fc722b$exports = require("./private/calendars/TaiwanCalendar.cjs");
|
|
6
|
+
var $4100faec94dc031c$exports = require("./private/calendars/PersianCalendar.cjs");
|
|
7
|
+
var $9dc8610ad30fbfe5$exports = require("./private/calendars/IndianCalendar.cjs");
|
|
8
|
+
var $fbcc6aba7cd7f47c$exports = require("./private/calendars/IslamicCalendar.cjs");
|
|
9
|
+
var $1aa25867248bd474$exports = require("./private/calendars/HebrewCalendar.cjs");
|
|
10
|
+
var $b6b43214f5cff964$exports = require("./private/calendars/EthiopicCalendar.cjs");
|
|
11
|
+
var $9d3159c6111892aa$exports = require("./private/createCalendar.cjs");
|
|
12
|
+
var $e13115b3b86b9007$exports = require("./private/conversion.cjs");
|
|
13
|
+
var $84a63d30beb0af0f$exports = require("./private/queries.cjs");
|
|
14
|
+
var $1b358053f79e3a77$exports = require("./private/string.cjs");
|
|
15
|
+
var $10afcf45c4831ff7$exports = require("./private/DateFormatter.cjs");
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function $parcel$export(e, n, v, s) {
|
|
19
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$parcel$export(module.exports, "CalendarDate", function () { return $c51b7e0106f45dea$exports.CalendarDate; });
|
|
23
|
+
$parcel$export(module.exports, "CalendarDateTime", function () { return $c51b7e0106f45dea$exports.CalendarDateTime; });
|
|
24
|
+
$parcel$export(module.exports, "Time", function () { return $c51b7e0106f45dea$exports.Time; });
|
|
25
|
+
$parcel$export(module.exports, "ZonedDateTime", function () { return $c51b7e0106f45dea$exports.ZonedDateTime; });
|
|
26
|
+
$parcel$export(module.exports, "GregorianCalendar", function () { return $05031860ba2f881f$exports.GregorianCalendar; });
|
|
27
|
+
$parcel$export(module.exports, "JapaneseCalendar", function () { return $a90e2192fa9a0f41$exports.JapaneseCalendar; });
|
|
28
|
+
$parcel$export(module.exports, "BuddhistCalendar", function () { return $0ce473f03e925476$exports.BuddhistCalendar; });
|
|
29
|
+
$parcel$export(module.exports, "TaiwanCalendar", function () { return $2dab1d4ea1fc722b$exports.TaiwanCalendar; });
|
|
30
|
+
$parcel$export(module.exports, "PersianCalendar", function () { return $4100faec94dc031c$exports.PersianCalendar; });
|
|
31
|
+
$parcel$export(module.exports, "IndianCalendar", function () { return $9dc8610ad30fbfe5$exports.IndianCalendar; });
|
|
32
|
+
$parcel$export(module.exports, "IslamicCivilCalendar", function () { return $fbcc6aba7cd7f47c$exports.IslamicCivilCalendar; });
|
|
33
|
+
$parcel$export(module.exports, "IslamicTabularCalendar", function () { return $fbcc6aba7cd7f47c$exports.IslamicTabularCalendar; });
|
|
34
|
+
$parcel$export(module.exports, "IslamicUmalquraCalendar", function () { return $fbcc6aba7cd7f47c$exports.IslamicUmalquraCalendar; });
|
|
35
|
+
$parcel$export(module.exports, "HebrewCalendar", function () { return $1aa25867248bd474$exports.HebrewCalendar; });
|
|
36
|
+
$parcel$export(module.exports, "EthiopicCalendar", function () { return $b6b43214f5cff964$exports.EthiopicCalendar; });
|
|
37
|
+
$parcel$export(module.exports, "EthiopicAmeteAlemCalendar", function () { return $b6b43214f5cff964$exports.EthiopicAmeteAlemCalendar; });
|
|
38
|
+
$parcel$export(module.exports, "CopticCalendar", function () { return $b6b43214f5cff964$exports.CopticCalendar; });
|
|
39
|
+
$parcel$export(module.exports, "createCalendar", function () { return $9d3159c6111892aa$exports.createCalendar; });
|
|
40
|
+
$parcel$export(module.exports, "toCalendarDate", function () { return $e13115b3b86b9007$exports.toCalendarDate; });
|
|
41
|
+
$parcel$export(module.exports, "toCalendarDateTime", function () { return $e13115b3b86b9007$exports.toCalendarDateTime; });
|
|
42
|
+
$parcel$export(module.exports, "toTime", function () { return $e13115b3b86b9007$exports.toTime; });
|
|
43
|
+
$parcel$export(module.exports, "toCalendar", function () { return $e13115b3b86b9007$exports.toCalendar; });
|
|
44
|
+
$parcel$export(module.exports, "toZoned", function () { return $e13115b3b86b9007$exports.toZoned; });
|
|
45
|
+
$parcel$export(module.exports, "toTimeZone", function () { return $e13115b3b86b9007$exports.toTimeZone; });
|
|
46
|
+
$parcel$export(module.exports, "toLocalTimeZone", function () { return $e13115b3b86b9007$exports.toLocalTimeZone; });
|
|
47
|
+
$parcel$export(module.exports, "fromDate", function () { return $e13115b3b86b9007$exports.fromDate; });
|
|
48
|
+
$parcel$export(module.exports, "fromDateToLocal", function () { return $e13115b3b86b9007$exports.fromDateToLocal; });
|
|
49
|
+
$parcel$export(module.exports, "fromAbsolute", function () { return $e13115b3b86b9007$exports.fromAbsolute; });
|
|
50
|
+
$parcel$export(module.exports, "isSameDay", function () { return $84a63d30beb0af0f$exports.isSameDay; });
|
|
51
|
+
$parcel$export(module.exports, "isSameMonth", function () { return $84a63d30beb0af0f$exports.isSameMonth; });
|
|
52
|
+
$parcel$export(module.exports, "isSameYear", function () { return $84a63d30beb0af0f$exports.isSameYear; });
|
|
53
|
+
$parcel$export(module.exports, "isEqualDay", function () { return $84a63d30beb0af0f$exports.isEqualDay; });
|
|
54
|
+
$parcel$export(module.exports, "isEqualMonth", function () { return $84a63d30beb0af0f$exports.isEqualMonth; });
|
|
55
|
+
$parcel$export(module.exports, "isEqualYear", function () { return $84a63d30beb0af0f$exports.isEqualYear; });
|
|
56
|
+
$parcel$export(module.exports, "isToday", function () { return $84a63d30beb0af0f$exports.isToday; });
|
|
57
|
+
$parcel$export(module.exports, "getDayOfWeek", function () { return $84a63d30beb0af0f$exports.getDayOfWeek; });
|
|
58
|
+
$parcel$export(module.exports, "now", function () { return $84a63d30beb0af0f$exports.now; });
|
|
59
|
+
$parcel$export(module.exports, "today", function () { return $84a63d30beb0af0f$exports.today; });
|
|
60
|
+
$parcel$export(module.exports, "getHoursInDay", function () { return $84a63d30beb0af0f$exports.getHoursInDay; });
|
|
61
|
+
$parcel$export(module.exports, "getLocalTimeZone", function () { return $84a63d30beb0af0f$exports.getLocalTimeZone; });
|
|
62
|
+
$parcel$export(module.exports, "setLocalTimeZone", function () { return $84a63d30beb0af0f$exports.setLocalTimeZone; });
|
|
63
|
+
$parcel$export(module.exports, "resetLocalTimeZone", function () { return $84a63d30beb0af0f$exports.resetLocalTimeZone; });
|
|
64
|
+
$parcel$export(module.exports, "startOfMonth", function () { return $84a63d30beb0af0f$exports.startOfMonth; });
|
|
65
|
+
$parcel$export(module.exports, "startOfWeek", function () { return $84a63d30beb0af0f$exports.startOfWeek; });
|
|
66
|
+
$parcel$export(module.exports, "startOfYear", function () { return $84a63d30beb0af0f$exports.startOfYear; });
|
|
67
|
+
$parcel$export(module.exports, "endOfMonth", function () { return $84a63d30beb0af0f$exports.endOfMonth; });
|
|
68
|
+
$parcel$export(module.exports, "endOfWeek", function () { return $84a63d30beb0af0f$exports.endOfWeek; });
|
|
69
|
+
$parcel$export(module.exports, "endOfYear", function () { return $84a63d30beb0af0f$exports.endOfYear; });
|
|
70
|
+
$parcel$export(module.exports, "getMinimumMonthInYear", function () { return $84a63d30beb0af0f$exports.getMinimumMonthInYear; });
|
|
71
|
+
$parcel$export(module.exports, "getMinimumDayInMonth", function () { return $84a63d30beb0af0f$exports.getMinimumDayInMonth; });
|
|
72
|
+
$parcel$export(module.exports, "getWeeksInMonth", function () { return $84a63d30beb0af0f$exports.getWeeksInMonth; });
|
|
73
|
+
$parcel$export(module.exports, "minDate", function () { return $84a63d30beb0af0f$exports.minDate; });
|
|
74
|
+
$parcel$export(module.exports, "maxDate", function () { return $84a63d30beb0af0f$exports.maxDate; });
|
|
75
|
+
$parcel$export(module.exports, "isWeekend", function () { return $84a63d30beb0af0f$exports.isWeekend; });
|
|
76
|
+
$parcel$export(module.exports, "isWeekday", function () { return $84a63d30beb0af0f$exports.isWeekday; });
|
|
77
|
+
$parcel$export(module.exports, "isEqualCalendar", function () { return $84a63d30beb0af0f$exports.isEqualCalendar; });
|
|
78
|
+
$parcel$export(module.exports, "parseDate", function () { return $1b358053f79e3a77$exports.parseDate; });
|
|
79
|
+
$parcel$export(module.exports, "parseDateTime", function () { return $1b358053f79e3a77$exports.parseDateTime; });
|
|
80
|
+
$parcel$export(module.exports, "parseTime", function () { return $1b358053f79e3a77$exports.parseTime; });
|
|
81
|
+
$parcel$export(module.exports, "parseAbsolute", function () { return $1b358053f79e3a77$exports.parseAbsolute; });
|
|
82
|
+
$parcel$export(module.exports, "parseAbsoluteToLocal", function () { return $1b358053f79e3a77$exports.parseAbsoluteToLocal; });
|
|
83
|
+
$parcel$export(module.exports, "parseZonedDateTime", function () { return $1b358053f79e3a77$exports.parseZonedDateTime; });
|
|
84
|
+
$parcel$export(module.exports, "parseDuration", function () { return $1b358053f79e3a77$exports.parseDuration; });
|
|
85
|
+
$parcel$export(module.exports, "DateFormatter", function () { return $10afcf45c4831ff7$exports.DateFormatter; });
|
|
86
|
+
/*
|
|
87
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
88
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
89
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
90
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
91
|
+
*
|
|
92
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
93
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
94
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
95
|
+
* governing permissions and limitations under the License.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@internationalized/date/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport type {\n AnyCalendarDate,\n AnyTime,\n AnyDateTime,\n Calendar,\n CalendarIdentifier,\n DateDuration,\n TimeDuration,\n DateTimeDuration,\n DateFields,\n TimeFields,\n DateField,\n TimeField,\n Disambiguation,\n CycleOptions,\n CycleTimeOptions\n} from './types';\nexport type {DateValue} from './CalendarDate';\n\nexport {CalendarDate, CalendarDateTime, Time, ZonedDateTime} from './CalendarDate';\nexport {GregorianCalendar} from './calendars/GregorianCalendar';\nexport {JapaneseCalendar} from './calendars/JapaneseCalendar';\nexport {BuddhistCalendar} from './calendars/BuddhistCalendar';\nexport {TaiwanCalendar} from './calendars/TaiwanCalendar';\nexport {PersianCalendar} from './calendars/PersianCalendar';\nexport {IndianCalendar} from './calendars/IndianCalendar';\nexport {IslamicCivilCalendar, IslamicTabularCalendar, IslamicUmalquraCalendar} from './calendars/IslamicCalendar';\nexport {HebrewCalendar} from './calendars/HebrewCalendar';\nexport {EthiopicCalendar, EthiopicAmeteAlemCalendar, CopticCalendar} from './calendars/EthiopicCalendar';\nexport {createCalendar} from './createCalendar';\nexport {\n toCalendarDate,\n toCalendarDateTime,\n toTime,\n toCalendar,\n toZoned,\n toTimeZone,\n toLocalTimeZone,\n fromDate,\n fromDateToLocal,\n fromAbsolute\n} from './conversion';\nexport {\n isSameDay,\n isSameMonth,\n isSameYear,\n isEqualDay,\n isEqualMonth,\n isEqualYear,\n isToday,\n getDayOfWeek,\n now,\n today,\n getHoursInDay,\n getLocalTimeZone,\n setLocalTimeZone,\n resetLocalTimeZone,\n startOfMonth,\n startOfWeek,\n startOfYear,\n endOfMonth,\n endOfWeek,\n endOfYear,\n getMinimumMonthInYear,\n getMinimumDayInMonth,\n getWeeksInMonth,\n minDate,\n maxDate,\n isWeekend,\n isWeekday,\n isEqualCalendar\n} from './queries';\nexport {\n parseDate,\n parseDateTime,\n parseTime,\n parseAbsolute,\n parseAbsoluteToLocal,\n parseZonedDateTime,\n parseDuration\n} from './string';\nexport {DateFormatter} from './DateFormatter';\n"],"names":[],"version":3,"file":"index.cjs.map"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {CalendarDate as $9a4e222e1bd2b190$export$99faa760c7908e4f, CalendarDateTime as $9a4e222e1bd2b190$export$ca871e8dbb80966f, Time as $9a4e222e1bd2b190$export$680ea196effce5f, ZonedDateTime as $9a4e222e1bd2b190$export$d3b7288e7994edea} from "./private/CalendarDate.js";
|
|
2
|
+
import {GregorianCalendar as $f25df78da1f6b40f$export$80ee6245ec4f29ec} from "./private/calendars/GregorianCalendar.js";
|
|
3
|
+
import {JapaneseCalendar as $97f08bcb2befa667$export$b746ab2b60cdffbf} from "./private/calendars/JapaneseCalendar.js";
|
|
4
|
+
import {BuddhistCalendar as $6f54c4fe66fc5ed5$export$42d20a78301dee44} from "./private/calendars/BuddhistCalendar.js";
|
|
5
|
+
import {TaiwanCalendar as $0e7b6ab888014459$export$65e01080afcb0799} from "./private/calendars/TaiwanCalendar.js";
|
|
6
|
+
import {PersianCalendar as $3e485caf6e85028a$export$37fccdbfd14c5939} from "./private/calendars/PersianCalendar.js";
|
|
7
|
+
import {IndianCalendar as $a07127433beb6bf1$export$39f31c639fa15726} from "./private/calendars/IndianCalendar.js";
|
|
8
|
+
import {IslamicCivilCalendar as $a938ddf4fc940323$export$2066795aadd37bfc, IslamicTabularCalendar as $a938ddf4fc940323$export$37f0887f2f9d22f7, IslamicUmalquraCalendar as $a938ddf4fc940323$export$5baab4758c231076} from "./private/calendars/IslamicCalendar.js";
|
|
9
|
+
import {HebrewCalendar as $f6eb69e87cd1adc1$export$ca405048b8fb5af} from "./private/calendars/HebrewCalendar.js";
|
|
10
|
+
import {CopticCalendar as $ca8f5bca40aaf2d4$export$fe6243cbe1a4b7c1, EthiopicAmeteAlemCalendar as $ca8f5bca40aaf2d4$export$d72e0c37005a4914, EthiopicCalendar as $ca8f5bca40aaf2d4$export$26ba6eab5e20cd7d} from "./private/calendars/EthiopicCalendar.js";
|
|
11
|
+
import {createCalendar as $d36eda2e2bc2be5a$export$dd0bbc9b26defe37} from "./private/createCalendar.js";
|
|
12
|
+
import {fromAbsolute as $e83297bd1a9e3ddc$export$1b96692a1ba042ac, fromDate as $e83297bd1a9e3ddc$export$e57ff100d91bd4b9, fromDateToLocal as $e83297bd1a9e3ddc$export$d7f92bcd3596b086, toCalendar as $e83297bd1a9e3ddc$export$b4a036af3fc0b032, toCalendarDate as $e83297bd1a9e3ddc$export$93522d1a439f3617, toCalendarDateTime as $e83297bd1a9e3ddc$export$b21e0b124e224484, toLocalTimeZone as $e83297bd1a9e3ddc$export$d9b67bc93c097491, toTime as $e83297bd1a9e3ddc$export$d33f79e3ffc3dc83, toTimeZone as $e83297bd1a9e3ddc$export$538b00033cc11c75, toZoned as $e83297bd1a9e3ddc$export$84c95a83c799e074} from "./private/conversion.js";
|
|
13
|
+
import {endOfMonth as $8daeb11568269f24$export$a2258d9c4118825c, endOfWeek as $8daeb11568269f24$export$ef8b6d9133084f4e, endOfYear as $8daeb11568269f24$export$8b7aa55c66d5569e, getDayOfWeek as $8daeb11568269f24$export$2061056d06d7cdf7, getHoursInDay as $8daeb11568269f24$export$126c91c941de7e, getLocalTimeZone as $8daeb11568269f24$export$aa8b41735afcabd2, getMinimumDayInMonth as $8daeb11568269f24$export$b2f4953d301981d5, getMinimumMonthInYear as $8daeb11568269f24$export$5412ac11713b72ad, getWeeksInMonth as $8daeb11568269f24$export$ccc1b2479e7dd654, isEqualCalendar as $8daeb11568269f24$export$dbc69fd56b53d5e, isEqualDay as $8daeb11568269f24$export$91b62ebf2ba703ee, isEqualMonth as $8daeb11568269f24$export$5a8da0c44a3afdf2, isEqualYear as $8daeb11568269f24$export$ea840f5a6dda8147, isSameDay as $8daeb11568269f24$export$ea39ec197993aef0, isSameMonth as $8daeb11568269f24$export$a18c89cbd24170ff, isSameYear as $8daeb11568269f24$export$5841f9eb9773f25f, isToday as $8daeb11568269f24$export$629b0a497aa65267, isWeekday as $8daeb11568269f24$export$ee9d87258e1d19ed, isWeekend as $8daeb11568269f24$export$618d60ea299da42, maxDate as $8daeb11568269f24$export$a75f2bff57811055, minDate as $8daeb11568269f24$export$5c333a116e949cdd, now as $8daeb11568269f24$export$461939dd4422153, resetLocalTimeZone as $8daeb11568269f24$export$55753838ffe79333, setLocalTimeZone as $8daeb11568269f24$export$61a9d83ceb59a3dd, startOfMonth as $8daeb11568269f24$export$a5a3b454ada2268e, startOfWeek as $8daeb11568269f24$export$42c81a444fbfb5d4, startOfYear as $8daeb11568269f24$export$f91e89d3d0406102, today as $8daeb11568269f24$export$d0bdf45af03a6ea3} from "./private/queries.js";
|
|
14
|
+
import {parseAbsolute as $7dccf15509582627$export$5adfdab05168c219, parseAbsoluteToLocal as $7dccf15509582627$export$8e384432362ed0f0, parseDate as $7dccf15509582627$export$6b862160d295c8e, parseDateTime as $7dccf15509582627$export$588937bcd60ade55, parseDuration as $7dccf15509582627$export$ecae829bb3747ea6, parseTime as $7dccf15509582627$export$c9698ec7f05a07e1, parseZonedDateTime as $7dccf15509582627$export$fd7893f06e92a6a4} from "./private/string.js";
|
|
15
|
+
import {DateFormatter as $f48a4033af8eadca$export$ad991b66133851cf} from "./private/DateFormatter.js";
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
19
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
20
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
21
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
24
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
25
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
26
|
+
* governing permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
export {$9a4e222e1bd2b190$export$99faa760c7908e4f as CalendarDate, $9a4e222e1bd2b190$export$ca871e8dbb80966f as CalendarDateTime, $9a4e222e1bd2b190$export$680ea196effce5f as Time, $9a4e222e1bd2b190$export$d3b7288e7994edea as ZonedDateTime, $f25df78da1f6b40f$export$80ee6245ec4f29ec as GregorianCalendar, $97f08bcb2befa667$export$b746ab2b60cdffbf as JapaneseCalendar, $6f54c4fe66fc5ed5$export$42d20a78301dee44 as BuddhistCalendar, $0e7b6ab888014459$export$65e01080afcb0799 as TaiwanCalendar, $3e485caf6e85028a$export$37fccdbfd14c5939 as PersianCalendar, $a07127433beb6bf1$export$39f31c639fa15726 as IndianCalendar, $a938ddf4fc940323$export$2066795aadd37bfc as IslamicCivilCalendar, $a938ddf4fc940323$export$37f0887f2f9d22f7 as IslamicTabularCalendar, $a938ddf4fc940323$export$5baab4758c231076 as IslamicUmalquraCalendar, $f6eb69e87cd1adc1$export$ca405048b8fb5af as HebrewCalendar, $ca8f5bca40aaf2d4$export$26ba6eab5e20cd7d as EthiopicCalendar, $ca8f5bca40aaf2d4$export$d72e0c37005a4914 as EthiopicAmeteAlemCalendar, $ca8f5bca40aaf2d4$export$fe6243cbe1a4b7c1 as CopticCalendar, $d36eda2e2bc2be5a$export$dd0bbc9b26defe37 as createCalendar, $e83297bd1a9e3ddc$export$93522d1a439f3617 as toCalendarDate, $e83297bd1a9e3ddc$export$b21e0b124e224484 as toCalendarDateTime, $e83297bd1a9e3ddc$export$d33f79e3ffc3dc83 as toTime, $e83297bd1a9e3ddc$export$b4a036af3fc0b032 as toCalendar, $e83297bd1a9e3ddc$export$84c95a83c799e074 as toZoned, $e83297bd1a9e3ddc$export$538b00033cc11c75 as toTimeZone, $e83297bd1a9e3ddc$export$d9b67bc93c097491 as toLocalTimeZone, $e83297bd1a9e3ddc$export$e57ff100d91bd4b9 as fromDate, $e83297bd1a9e3ddc$export$d7f92bcd3596b086 as fromDateToLocal, $e83297bd1a9e3ddc$export$1b96692a1ba042ac as fromAbsolute, $8daeb11568269f24$export$ea39ec197993aef0 as isSameDay, $8daeb11568269f24$export$a18c89cbd24170ff as isSameMonth, $8daeb11568269f24$export$5841f9eb9773f25f as isSameYear, $8daeb11568269f24$export$91b62ebf2ba703ee as isEqualDay, $8daeb11568269f24$export$5a8da0c44a3afdf2 as isEqualMonth, $8daeb11568269f24$export$ea840f5a6dda8147 as isEqualYear, $8daeb11568269f24$export$629b0a497aa65267 as isToday, $8daeb11568269f24$export$2061056d06d7cdf7 as getDayOfWeek, $8daeb11568269f24$export$461939dd4422153 as now, $8daeb11568269f24$export$d0bdf45af03a6ea3 as today, $8daeb11568269f24$export$126c91c941de7e as getHoursInDay, $8daeb11568269f24$export$aa8b41735afcabd2 as getLocalTimeZone, $8daeb11568269f24$export$61a9d83ceb59a3dd as setLocalTimeZone, $8daeb11568269f24$export$55753838ffe79333 as resetLocalTimeZone, $8daeb11568269f24$export$a5a3b454ada2268e as startOfMonth, $8daeb11568269f24$export$42c81a444fbfb5d4 as startOfWeek, $8daeb11568269f24$export$f91e89d3d0406102 as startOfYear, $8daeb11568269f24$export$a2258d9c4118825c as endOfMonth, $8daeb11568269f24$export$ef8b6d9133084f4e as endOfWeek, $8daeb11568269f24$export$8b7aa55c66d5569e as endOfYear, $8daeb11568269f24$export$5412ac11713b72ad as getMinimumMonthInYear, $8daeb11568269f24$export$b2f4953d301981d5 as getMinimumDayInMonth, $8daeb11568269f24$export$ccc1b2479e7dd654 as getWeeksInMonth, $8daeb11568269f24$export$5c333a116e949cdd as minDate, $8daeb11568269f24$export$a75f2bff57811055 as maxDate, $8daeb11568269f24$export$618d60ea299da42 as isWeekend, $8daeb11568269f24$export$ee9d87258e1d19ed as isWeekday, $8daeb11568269f24$export$dbc69fd56b53d5e as isEqualCalendar, $7dccf15509582627$export$6b862160d295c8e as parseDate, $7dccf15509582627$export$588937bcd60ade55 as parseDateTime, $7dccf15509582627$export$c9698ec7f05a07e1 as parseTime, $7dccf15509582627$export$5adfdab05168c219 as parseAbsolute, $7dccf15509582627$export$8e384432362ed0f0 as parseAbsoluteToLocal, $7dccf15509582627$export$fd7893f06e92a6a4 as parseZonedDateTime, $7dccf15509582627$export$ecae829bb3747ea6 as parseDuration, $f48a4033af8eadca$export$ad991b66133851cf as DateFormatter};
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@internationalized/date/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport type {\n AnyCalendarDate,\n AnyTime,\n AnyDateTime,\n Calendar,\n CalendarIdentifier,\n DateDuration,\n TimeDuration,\n DateTimeDuration,\n DateFields,\n TimeFields,\n DateField,\n TimeField,\n Disambiguation,\n CycleOptions,\n CycleTimeOptions\n} from './types';\nexport type {DateValue} from './CalendarDate';\n\nexport {CalendarDate, CalendarDateTime, Time, ZonedDateTime} from './CalendarDate';\nexport {GregorianCalendar} from './calendars/GregorianCalendar';\nexport {JapaneseCalendar} from './calendars/JapaneseCalendar';\nexport {BuddhistCalendar} from './calendars/BuddhistCalendar';\nexport {TaiwanCalendar} from './calendars/TaiwanCalendar';\nexport {PersianCalendar} from './calendars/PersianCalendar';\nexport {IndianCalendar} from './calendars/IndianCalendar';\nexport {IslamicCivilCalendar, IslamicTabularCalendar, IslamicUmalquraCalendar} from './calendars/IslamicCalendar';\nexport {HebrewCalendar} from './calendars/HebrewCalendar';\nexport {EthiopicCalendar, EthiopicAmeteAlemCalendar, CopticCalendar} from './calendars/EthiopicCalendar';\nexport {createCalendar} from './createCalendar';\nexport {\n toCalendarDate,\n toCalendarDateTime,\n toTime,\n toCalendar,\n toZoned,\n toTimeZone,\n toLocalTimeZone,\n fromDate,\n fromDateToLocal,\n fromAbsolute\n} from './conversion';\nexport {\n isSameDay,\n isSameMonth,\n isSameYear,\n isEqualDay,\n isEqualMonth,\n isEqualYear,\n isToday,\n getDayOfWeek,\n now,\n today,\n getHoursInDay,\n getLocalTimeZone,\n setLocalTimeZone,\n resetLocalTimeZone,\n startOfMonth,\n startOfWeek,\n startOfYear,\n endOfMonth,\n endOfWeek,\n endOfYear,\n getMinimumMonthInYear,\n getMinimumDayInMonth,\n getWeeksInMonth,\n minDate,\n maxDate,\n isWeekend,\n isWeekday,\n isEqualCalendar\n} from './queries';\nexport {\n parseDate,\n parseDateTime,\n parseTime,\n parseAbsolute,\n parseAbsoluteToLocal,\n parseZonedDateTime,\n parseDuration\n} from './string';\nexport {DateFormatter} from './DateFormatter';\n"],"names":[],"version":3,"file":"index.js.map"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {CalendarDate as $2aaf608024c21ca1$export$99faa760c7908e4f, CalendarDateTime as $2aaf608024c21ca1$export$ca871e8dbb80966f, Time as $2aaf608024c21ca1$export$680ea196effce5f, ZonedDateTime as $2aaf608024c21ca1$export$d3b7288e7994edea} from "./private/CalendarDate.mjs";
|
|
2
|
+
import {GregorianCalendar as $93635573935797de$export$80ee6245ec4f29ec} from "./private/calendars/GregorianCalendar.mjs";
|
|
3
|
+
import {JapaneseCalendar as $34b940b49ba042df$export$b746ab2b60cdffbf} from "./private/calendars/JapaneseCalendar.mjs";
|
|
4
|
+
import {BuddhistCalendar as $63d4eafd4d826996$export$42d20a78301dee44} from "./private/calendars/BuddhistCalendar.mjs";
|
|
5
|
+
import {TaiwanCalendar as $c009cc5f64923054$export$65e01080afcb0799} from "./private/calendars/TaiwanCalendar.mjs";
|
|
6
|
+
import {PersianCalendar as $a0cc0739a536c3b1$export$37fccdbfd14c5939} from "./private/calendars/PersianCalendar.mjs";
|
|
7
|
+
import {IndianCalendar as $11fa67a177e45470$export$39f31c639fa15726} from "./private/calendars/IndianCalendar.mjs";
|
|
8
|
+
import {IslamicCivilCalendar as $fd4f9bc1ba0e49a8$export$2066795aadd37bfc, IslamicTabularCalendar as $fd4f9bc1ba0e49a8$export$37f0887f2f9d22f7, IslamicUmalquraCalendar as $fd4f9bc1ba0e49a8$export$5baab4758c231076} from "./private/calendars/IslamicCalendar.mjs";
|
|
9
|
+
import {HebrewCalendar as $f39495b96f9dbac6$export$ca405048b8fb5af} from "./private/calendars/HebrewCalendar.mjs";
|
|
10
|
+
import {CopticCalendar as $97cfca9efd59523d$export$fe6243cbe1a4b7c1, EthiopicAmeteAlemCalendar as $97cfca9efd59523d$export$d72e0c37005a4914, EthiopicCalendar as $97cfca9efd59523d$export$26ba6eab5e20cd7d} from "./private/calendars/EthiopicCalendar.mjs";
|
|
11
|
+
import {createCalendar as $84102b64e5ca022f$export$dd0bbc9b26defe37} from "./private/createCalendar.mjs";
|
|
12
|
+
import {fromAbsolute as $d07e34cce18680fd$export$1b96692a1ba042ac, fromDate as $d07e34cce18680fd$export$e57ff100d91bd4b9, fromDateToLocal as $d07e34cce18680fd$export$d7f92bcd3596b086, toCalendar as $d07e34cce18680fd$export$b4a036af3fc0b032, toCalendarDate as $d07e34cce18680fd$export$93522d1a439f3617, toCalendarDateTime as $d07e34cce18680fd$export$b21e0b124e224484, toLocalTimeZone as $d07e34cce18680fd$export$d9b67bc93c097491, toTime as $d07e34cce18680fd$export$d33f79e3ffc3dc83, toTimeZone as $d07e34cce18680fd$export$538b00033cc11c75, toZoned as $d07e34cce18680fd$export$84c95a83c799e074} from "./private/conversion.mjs";
|
|
13
|
+
import {endOfMonth as $ad063034c8620db8$export$a2258d9c4118825c, endOfWeek as $ad063034c8620db8$export$ef8b6d9133084f4e, endOfYear as $ad063034c8620db8$export$8b7aa55c66d5569e, getDayOfWeek as $ad063034c8620db8$export$2061056d06d7cdf7, getHoursInDay as $ad063034c8620db8$export$126c91c941de7e, getLocalTimeZone as $ad063034c8620db8$export$aa8b41735afcabd2, getMinimumDayInMonth as $ad063034c8620db8$export$b2f4953d301981d5, getMinimumMonthInYear as $ad063034c8620db8$export$5412ac11713b72ad, getWeeksInMonth as $ad063034c8620db8$export$ccc1b2479e7dd654, isEqualCalendar as $ad063034c8620db8$export$dbc69fd56b53d5e, isEqualDay as $ad063034c8620db8$export$91b62ebf2ba703ee, isEqualMonth as $ad063034c8620db8$export$5a8da0c44a3afdf2, isEqualYear as $ad063034c8620db8$export$ea840f5a6dda8147, isSameDay as $ad063034c8620db8$export$ea39ec197993aef0, isSameMonth as $ad063034c8620db8$export$a18c89cbd24170ff, isSameYear as $ad063034c8620db8$export$5841f9eb9773f25f, isToday as $ad063034c8620db8$export$629b0a497aa65267, isWeekday as $ad063034c8620db8$export$ee9d87258e1d19ed, isWeekend as $ad063034c8620db8$export$618d60ea299da42, maxDate as $ad063034c8620db8$export$a75f2bff57811055, minDate as $ad063034c8620db8$export$5c333a116e949cdd, now as $ad063034c8620db8$export$461939dd4422153, resetLocalTimeZone as $ad063034c8620db8$export$55753838ffe79333, setLocalTimeZone as $ad063034c8620db8$export$61a9d83ceb59a3dd, startOfMonth as $ad063034c8620db8$export$a5a3b454ada2268e, startOfWeek as $ad063034c8620db8$export$42c81a444fbfb5d4, startOfYear as $ad063034c8620db8$export$f91e89d3d0406102, today as $ad063034c8620db8$export$d0bdf45af03a6ea3} from "./private/queries.mjs";
|
|
14
|
+
import {parseAbsolute as $58246871e4652552$export$5adfdab05168c219, parseAbsoluteToLocal as $58246871e4652552$export$8e384432362ed0f0, parseDate as $58246871e4652552$export$6b862160d295c8e, parseDateTime as $58246871e4652552$export$588937bcd60ade55, parseDuration as $58246871e4652552$export$ecae829bb3747ea6, parseTime as $58246871e4652552$export$c9698ec7f05a07e1, parseZonedDateTime as $58246871e4652552$export$fd7893f06e92a6a4} from "./private/string.mjs";
|
|
15
|
+
import {DateFormatter as $12a3c853105e5a70$export$ad991b66133851cf} from "./private/DateFormatter.mjs";
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
19
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
20
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
21
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
24
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
25
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
26
|
+
* governing permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
export {$2aaf608024c21ca1$export$99faa760c7908e4f as CalendarDate, $2aaf608024c21ca1$export$ca871e8dbb80966f as CalendarDateTime, $2aaf608024c21ca1$export$680ea196effce5f as Time, $2aaf608024c21ca1$export$d3b7288e7994edea as ZonedDateTime, $93635573935797de$export$80ee6245ec4f29ec as GregorianCalendar, $34b940b49ba042df$export$b746ab2b60cdffbf as JapaneseCalendar, $63d4eafd4d826996$export$42d20a78301dee44 as BuddhistCalendar, $c009cc5f64923054$export$65e01080afcb0799 as TaiwanCalendar, $a0cc0739a536c3b1$export$37fccdbfd14c5939 as PersianCalendar, $11fa67a177e45470$export$39f31c639fa15726 as IndianCalendar, $fd4f9bc1ba0e49a8$export$2066795aadd37bfc as IslamicCivilCalendar, $fd4f9bc1ba0e49a8$export$37f0887f2f9d22f7 as IslamicTabularCalendar, $fd4f9bc1ba0e49a8$export$5baab4758c231076 as IslamicUmalquraCalendar, $f39495b96f9dbac6$export$ca405048b8fb5af as HebrewCalendar, $97cfca9efd59523d$export$26ba6eab5e20cd7d as EthiopicCalendar, $97cfca9efd59523d$export$d72e0c37005a4914 as EthiopicAmeteAlemCalendar, $97cfca9efd59523d$export$fe6243cbe1a4b7c1 as CopticCalendar, $84102b64e5ca022f$export$dd0bbc9b26defe37 as createCalendar, $d07e34cce18680fd$export$93522d1a439f3617 as toCalendarDate, $d07e34cce18680fd$export$b21e0b124e224484 as toCalendarDateTime, $d07e34cce18680fd$export$d33f79e3ffc3dc83 as toTime, $d07e34cce18680fd$export$b4a036af3fc0b032 as toCalendar, $d07e34cce18680fd$export$84c95a83c799e074 as toZoned, $d07e34cce18680fd$export$538b00033cc11c75 as toTimeZone, $d07e34cce18680fd$export$d9b67bc93c097491 as toLocalTimeZone, $d07e34cce18680fd$export$e57ff100d91bd4b9 as fromDate, $d07e34cce18680fd$export$d7f92bcd3596b086 as fromDateToLocal, $d07e34cce18680fd$export$1b96692a1ba042ac as fromAbsolute, $ad063034c8620db8$export$ea39ec197993aef0 as isSameDay, $ad063034c8620db8$export$a18c89cbd24170ff as isSameMonth, $ad063034c8620db8$export$5841f9eb9773f25f as isSameYear, $ad063034c8620db8$export$91b62ebf2ba703ee as isEqualDay, $ad063034c8620db8$export$5a8da0c44a3afdf2 as isEqualMonth, $ad063034c8620db8$export$ea840f5a6dda8147 as isEqualYear, $ad063034c8620db8$export$629b0a497aa65267 as isToday, $ad063034c8620db8$export$2061056d06d7cdf7 as getDayOfWeek, $ad063034c8620db8$export$461939dd4422153 as now, $ad063034c8620db8$export$d0bdf45af03a6ea3 as today, $ad063034c8620db8$export$126c91c941de7e as getHoursInDay, $ad063034c8620db8$export$aa8b41735afcabd2 as getLocalTimeZone, $ad063034c8620db8$export$61a9d83ceb59a3dd as setLocalTimeZone, $ad063034c8620db8$export$55753838ffe79333 as resetLocalTimeZone, $ad063034c8620db8$export$a5a3b454ada2268e as startOfMonth, $ad063034c8620db8$export$42c81a444fbfb5d4 as startOfWeek, $ad063034c8620db8$export$f91e89d3d0406102 as startOfYear, $ad063034c8620db8$export$a2258d9c4118825c as endOfMonth, $ad063034c8620db8$export$ef8b6d9133084f4e as endOfWeek, $ad063034c8620db8$export$8b7aa55c66d5569e as endOfYear, $ad063034c8620db8$export$5412ac11713b72ad as getMinimumMonthInYear, $ad063034c8620db8$export$b2f4953d301981d5 as getMinimumDayInMonth, $ad063034c8620db8$export$ccc1b2479e7dd654 as getWeeksInMonth, $ad063034c8620db8$export$5c333a116e949cdd as minDate, $ad063034c8620db8$export$a75f2bff57811055 as maxDate, $ad063034c8620db8$export$618d60ea299da42 as isWeekend, $ad063034c8620db8$export$ee9d87258e1d19ed as isWeekday, $ad063034c8620db8$export$dbc69fd56b53d5e as isEqualCalendar, $58246871e4652552$export$6b862160d295c8e as parseDate, $58246871e4652552$export$588937bcd60ade55 as parseDateTime, $58246871e4652552$export$c9698ec7f05a07e1 as parseTime, $58246871e4652552$export$5adfdab05168c219 as parseAbsolute, $58246871e4652552$export$8e384432362ed0f0 as parseAbsoluteToLocal, $58246871e4652552$export$fd7893f06e92a6a4 as parseZonedDateTime, $58246871e4652552$export$ecae829bb3747ea6 as parseDuration, $12a3c853105e5a70$export$ad991b66133851cf as DateFormatter};
|
|
45
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@internationalized/date/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport type {\n AnyCalendarDate,\n AnyTime,\n AnyDateTime,\n Calendar,\n CalendarIdentifier,\n DateDuration,\n TimeDuration,\n DateTimeDuration,\n DateFields,\n TimeFields,\n DateField,\n TimeField,\n Disambiguation,\n CycleOptions,\n CycleTimeOptions\n} from './types';\nexport type {DateValue} from './CalendarDate';\n\nexport {CalendarDate, CalendarDateTime, Time, ZonedDateTime} from './CalendarDate';\nexport {GregorianCalendar} from './calendars/GregorianCalendar';\nexport {JapaneseCalendar} from './calendars/JapaneseCalendar';\nexport {BuddhistCalendar} from './calendars/BuddhistCalendar';\nexport {TaiwanCalendar} from './calendars/TaiwanCalendar';\nexport {PersianCalendar} from './calendars/PersianCalendar';\nexport {IndianCalendar} from './calendars/IndianCalendar';\nexport {IslamicCivilCalendar, IslamicTabularCalendar, IslamicUmalquraCalendar} from './calendars/IslamicCalendar';\nexport {HebrewCalendar} from './calendars/HebrewCalendar';\nexport {EthiopicCalendar, EthiopicAmeteAlemCalendar, CopticCalendar} from './calendars/EthiopicCalendar';\nexport {createCalendar} from './createCalendar';\nexport {\n toCalendarDate,\n toCalendarDateTime,\n toTime,\n toCalendar,\n toZoned,\n toTimeZone,\n toLocalTimeZone,\n fromDate,\n fromDateToLocal,\n fromAbsolute\n} from './conversion';\nexport {\n isSameDay,\n isSameMonth,\n isSameYear,\n isEqualDay,\n isEqualMonth,\n isEqualYear,\n isToday,\n getDayOfWeek,\n now,\n today,\n getHoursInDay,\n getLocalTimeZone,\n setLocalTimeZone,\n resetLocalTimeZone,\n startOfMonth,\n startOfWeek,\n startOfYear,\n endOfMonth,\n endOfWeek,\n endOfYear,\n getMinimumMonthInYear,\n getMinimumDayInMonth,\n getWeeksInMonth,\n minDate,\n maxDate,\n isWeekend,\n isWeekday,\n isEqualCalendar\n} from './queries';\nexport {\n parseDate,\n parseDateTime,\n parseTime,\n parseAbsolute,\n parseAbsoluteToLocal,\n parseZonedDateTime,\n parseDuration\n} from './string';\nexport {DateFormatter} from './DateFormatter';\n"],"names":[],"version":3,"file":"index.mjs.map"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
6
|
-
var $lislG$swchelperscjs_class_private_field_initcjs = require("@swc/helpers/cjs/_class_private_field_init.cjs");
|
|
1
|
+
var $19485913bea41f19$exports = require("./manipulation.cjs");
|
|
2
|
+
var $84a63d30beb0af0f$exports = require("./queries.cjs");
|
|
3
|
+
var $1b358053f79e3a77$exports = require("./string.cjs");
|
|
4
|
+
var $05031860ba2f881f$exports = require("./calendars/GregorianCalendar.cjs");
|
|
5
|
+
var $e13115b3b86b9007$exports = require("./conversion.cjs");
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
function $parcel$export(e, n, v, s) {
|
|
10
9
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
$parcel$export(module.exports, "CalendarDate", ()
|
|
14
|
-
$parcel$export(module.exports, "Time", ()
|
|
15
|
-
$parcel$export(module.exports, "CalendarDateTime", ()
|
|
16
|
-
$parcel$export(module.exports, "ZonedDateTime", ()
|
|
12
|
+
$parcel$export(module.exports, "CalendarDate", function () { return $c51b7e0106f45dea$export$99faa760c7908e4f; });
|
|
13
|
+
$parcel$export(module.exports, "Time", function () { return $c51b7e0106f45dea$export$680ea196effce5f; });
|
|
14
|
+
$parcel$export(module.exports, "CalendarDateTime", function () { return $c51b7e0106f45dea$export$ca871e8dbb80966f; });
|
|
15
|
+
$parcel$export(module.exports, "ZonedDateTime", function () { return $c51b7e0106f45dea$export$d3b7288e7994edea; });
|
|
17
16
|
/*
|
|
18
17
|
* Copyright 2020 Adobe. All rights reserved.
|
|
19
18
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -29,9 +28,8 @@ $parcel$export(module.exports, "ZonedDateTime", () => $625ad1e1f4c43bc1$export$d
|
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
let calendar = typeof args[0] === 'object' ? args.shift() : new (0, $af14c9812fdceb33$exports.GregorianCalendar)();
|
|
31
|
+
function $c51b7e0106f45dea$var$shiftArgs(args) {
|
|
32
|
+
let calendar = typeof args[0] === 'object' ? args.shift() : new (0, $05031860ba2f881f$exports.GregorianCalendar)();
|
|
35
33
|
let era;
|
|
36
34
|
if (typeof args[0] === 'string') era = args.shift();
|
|
37
35
|
else {
|
|
@@ -49,110 +47,115 @@ function $625ad1e1f4c43bc1$var$shiftArgs(args) {
|
|
|
49
47
|
day
|
|
50
48
|
];
|
|
51
49
|
}
|
|
52
|
-
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
class $c51b7e0106f45dea$export$99faa760c7908e4f {
|
|
51
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
52
|
+
// i.e. a ZonedDateTime should not be be passable to a parameter that expects CalendarDate.
|
|
53
|
+
// If that behavior is desired, use the AnyCalendarDate interface instead.
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
#type;
|
|
56
|
+
constructor(...args){
|
|
57
|
+
let [calendar, era, year, month, day] = $c51b7e0106f45dea$var$shiftArgs(args);
|
|
58
|
+
this.calendar = calendar;
|
|
59
|
+
this.era = era;
|
|
60
|
+
this.year = year;
|
|
61
|
+
this.month = month;
|
|
62
|
+
this.day = day;
|
|
63
|
+
(0, $19485913bea41f19$exports.constrain)(this);
|
|
64
|
+
}
|
|
58
65
|
/** Returns a copy of this date. */ copy() {
|
|
59
|
-
if (this.era) return new $
|
|
60
|
-
else return new $
|
|
66
|
+
if (this.era) return new $c51b7e0106f45dea$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
|
|
67
|
+
else return new $c51b7e0106f45dea$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
61
68
|
}
|
|
62
69
|
/** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {
|
|
63
|
-
return (0, $
|
|
70
|
+
return (0, $19485913bea41f19$exports.add)(this, duration);
|
|
64
71
|
}
|
|
65
72
|
/** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {
|
|
66
|
-
return (0, $
|
|
73
|
+
return (0, $19485913bea41f19$exports.subtract)(this, duration);
|
|
67
74
|
}
|
|
68
75
|
/** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
69
|
-
return (0, $
|
|
76
|
+
return (0, $19485913bea41f19$exports.set)(this, fields);
|
|
70
77
|
}
|
|
71
78
|
/**
|
|
72
79
|
* Returns a new `CalendarDate` with the given field adjusted by a specified amount.
|
|
73
80
|
* When the resulting value reaches the limits of the field, it wraps around.
|
|
74
81
|
*/ cycle(field, amount, options) {
|
|
75
|
-
return (0, $
|
|
82
|
+
return (0, $19485913bea41f19$exports.cycleDate)(this, field, amount, options);
|
|
76
83
|
}
|
|
77
84
|
/** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {
|
|
78
|
-
return (0, $
|
|
85
|
+
return (0, $e13115b3b86b9007$exports.toDate)(this, timeZone);
|
|
79
86
|
}
|
|
80
87
|
/** Converts the date to an ISO 8601 formatted string. */ toString() {
|
|
81
|
-
return (0, $
|
|
88
|
+
return (0, $1b358053f79e3a77$exports.dateToString)(this);
|
|
82
89
|
}
|
|
83
90
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
|
|
84
|
-
return (0, $
|
|
85
|
-
}
|
|
86
|
-
constructor(...args){
|
|
87
|
-
(0, $lislG$swchelperscjs_class_private_field_initcjs._)(this, $625ad1e1f4c43bc1$var$_type, {
|
|
88
|
-
writable: true,
|
|
89
|
-
value: void 0
|
|
90
|
-
});
|
|
91
|
-
let [calendar, era, year, month, day] = $625ad1e1f4c43bc1$var$shiftArgs(args);
|
|
92
|
-
this.calendar = calendar;
|
|
93
|
-
this.era = era;
|
|
94
|
-
this.year = year;
|
|
95
|
-
this.month = month;
|
|
96
|
-
this.day = day;
|
|
97
|
-
(0, $5c0571aa5b6fb5da$exports.constrain)(this);
|
|
91
|
+
return (0, $84a63d30beb0af0f$exports.compareDate)(this, b);
|
|
98
92
|
}
|
|
99
93
|
}
|
|
100
|
-
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
class $c51b7e0106f45dea$export$680ea196effce5f {
|
|
95
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
96
|
+
// @ts-ignore
|
|
97
|
+
#type;
|
|
98
|
+
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
99
|
+
this.hour = hour;
|
|
100
|
+
this.minute = minute;
|
|
101
|
+
this.second = second;
|
|
102
|
+
this.millisecond = millisecond;
|
|
103
|
+
(0, $19485913bea41f19$exports.constrainTime)(this);
|
|
104
|
+
}
|
|
104
105
|
/** Returns a copy of this time. */ copy() {
|
|
105
|
-
return new $
|
|
106
|
+
return new $c51b7e0106f45dea$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
|
|
106
107
|
}
|
|
107
108
|
/** Returns a new `Time` with the given duration added to it. */ add(duration) {
|
|
108
|
-
return (0, $
|
|
109
|
+
return (0, $19485913bea41f19$exports.addTime)(this, duration);
|
|
109
110
|
}
|
|
110
111
|
/** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {
|
|
111
|
-
return (0, $
|
|
112
|
+
return (0, $19485913bea41f19$exports.subtractTime)(this, duration);
|
|
112
113
|
}
|
|
113
114
|
/** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
114
|
-
return (0, $
|
|
115
|
+
return (0, $19485913bea41f19$exports.setTime)(this, fields);
|
|
115
116
|
}
|
|
116
117
|
/**
|
|
117
118
|
* Returns a new `Time` with the given field adjusted by a specified amount.
|
|
118
119
|
* When the resulting value reaches the limits of the field, it wraps around.
|
|
119
120
|
*/ cycle(field, amount, options) {
|
|
120
|
-
return (0, $
|
|
121
|
+
return (0, $19485913bea41f19$exports.cycleTime)(this, field, amount, options);
|
|
121
122
|
}
|
|
122
123
|
/** Converts the time to an ISO 8601 formatted string. */ toString() {
|
|
123
|
-
return (0, $
|
|
124
|
+
return (0, $1b358053f79e3a77$exports.timeToString)(this);
|
|
124
125
|
}
|
|
125
126
|
/** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {
|
|
126
|
-
return (0, $
|
|
127
|
-
}
|
|
128
|
-
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
129
|
-
(0, $lislG$swchelperscjs_class_private_field_initcjs._)(this, $625ad1e1f4c43bc1$var$_type1, {
|
|
130
|
-
writable: true,
|
|
131
|
-
value: void 0
|
|
132
|
-
});
|
|
133
|
-
this.hour = hour;
|
|
134
|
-
this.minute = minute;
|
|
135
|
-
this.second = second;
|
|
136
|
-
this.millisecond = millisecond;
|
|
137
|
-
(0, $5c0571aa5b6fb5da$exports.constrainTime)(this);
|
|
127
|
+
return (0, $84a63d30beb0af0f$exports.compareTime)(this, b);
|
|
138
128
|
}
|
|
139
129
|
}
|
|
140
|
-
|
|
141
|
-
//
|
|
142
|
-
|
|
143
|
-
|
|
130
|
+
class $c51b7e0106f45dea$export$ca871e8dbb80966f {
|
|
131
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
132
|
+
// @ts-ignore
|
|
133
|
+
#type;
|
|
134
|
+
constructor(...args){
|
|
135
|
+
let [calendar, era, year, month, day] = $c51b7e0106f45dea$var$shiftArgs(args);
|
|
136
|
+
this.calendar = calendar;
|
|
137
|
+
this.era = era;
|
|
138
|
+
this.year = year;
|
|
139
|
+
this.month = month;
|
|
140
|
+
this.day = day;
|
|
141
|
+
this.hour = args.shift() || 0;
|
|
142
|
+
this.minute = args.shift() || 0;
|
|
143
|
+
this.second = args.shift() || 0;
|
|
144
|
+
this.millisecond = args.shift() || 0;
|
|
145
|
+
(0, $19485913bea41f19$exports.constrain)(this);
|
|
146
|
+
}
|
|
144
147
|
/** Returns a copy of this date. */ copy() {
|
|
145
|
-
if (this.era) return new $
|
|
146
|
-
else return new $
|
|
148
|
+
if (this.era) return new $c51b7e0106f45dea$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
149
|
+
else return new $c51b7e0106f45dea$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
147
150
|
}
|
|
148
151
|
/** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {
|
|
149
|
-
return (0, $
|
|
152
|
+
return (0, $19485913bea41f19$exports.add)(this, duration);
|
|
150
153
|
}
|
|
151
154
|
/** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {
|
|
152
|
-
return (0, $
|
|
155
|
+
return (0, $19485913bea41f19$exports.subtract)(this, duration);
|
|
153
156
|
}
|
|
154
157
|
/** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
155
|
-
return (0, $
|
|
158
|
+
return (0, $19485913bea41f19$exports.set)((0, $19485913bea41f19$exports.setTime)(this, fields), fields);
|
|
156
159
|
}
|
|
157
160
|
/**
|
|
158
161
|
* Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
|
|
@@ -163,98 +166,77 @@ class $625ad1e1f4c43bc1$export$ca871e8dbb80966f {
|
|
|
163
166
|
case 'year':
|
|
164
167
|
case 'month':
|
|
165
168
|
case 'day':
|
|
166
|
-
return (0, $
|
|
169
|
+
return (0, $19485913bea41f19$exports.cycleDate)(this, field, amount, options);
|
|
167
170
|
default:
|
|
168
|
-
return (0, $
|
|
171
|
+
return (0, $19485913bea41f19$exports.cycleTime)(this, field, amount, options);
|
|
169
172
|
}
|
|
170
173
|
}
|
|
171
174
|
/** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {
|
|
172
|
-
return (0, $
|
|
175
|
+
return (0, $e13115b3b86b9007$exports.toDate)(this, timeZone, disambiguation);
|
|
173
176
|
}
|
|
174
177
|
/** Converts the date to an ISO 8601 formatted string. */ toString() {
|
|
175
|
-
return (0, $
|
|
178
|
+
return (0, $1b358053f79e3a77$exports.dateTimeToString)(this);
|
|
176
179
|
}
|
|
177
180
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
|
|
178
|
-
let res = (0, $
|
|
179
|
-
if (res === 0) return (0, $
|
|
181
|
+
let res = (0, $84a63d30beb0af0f$exports.compareDate)(this, b);
|
|
182
|
+
if (res === 0) return (0, $84a63d30beb0af0f$exports.compareTime)(this, (0, $e13115b3b86b9007$exports.toCalendarDateTime)(b));
|
|
180
183
|
return res;
|
|
181
184
|
}
|
|
185
|
+
}
|
|
186
|
+
class $c51b7e0106f45dea$export$d3b7288e7994edea {
|
|
187
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
#type;
|
|
182
190
|
constructor(...args){
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
});
|
|
187
|
-
let [calendar, era, year, month, day] = $625ad1e1f4c43bc1$var$shiftArgs(args);
|
|
191
|
+
let [calendar, era, year, month, day] = $c51b7e0106f45dea$var$shiftArgs(args);
|
|
192
|
+
let timeZone = args.shift();
|
|
193
|
+
let offset = args.shift();
|
|
188
194
|
this.calendar = calendar;
|
|
189
195
|
this.era = era;
|
|
190
196
|
this.year = year;
|
|
191
197
|
this.month = month;
|
|
192
198
|
this.day = day;
|
|
199
|
+
this.timeZone = timeZone;
|
|
200
|
+
this.offset = offset;
|
|
193
201
|
this.hour = args.shift() || 0;
|
|
194
202
|
this.minute = args.shift() || 0;
|
|
195
203
|
this.second = args.shift() || 0;
|
|
196
204
|
this.millisecond = args.shift() || 0;
|
|
197
|
-
(0, $
|
|
205
|
+
(0, $19485913bea41f19$exports.constrain)(this);
|
|
198
206
|
}
|
|
199
|
-
}
|
|
200
|
-
var // This prevents TypeScript from allowing other types with the same fields to match.
|
|
201
|
-
// @ts-ignore
|
|
202
|
-
$625ad1e1f4c43bc1$var$_type3 = /*#__PURE__*/ new WeakMap();
|
|
203
|
-
class $625ad1e1f4c43bc1$export$d3b7288e7994edea {
|
|
204
207
|
/** Returns a copy of this date. */ copy() {
|
|
205
|
-
if (this.era) return new $
|
|
206
|
-
else return new $
|
|
208
|
+
if (this.era) return new $c51b7e0106f45dea$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
209
|
+
else return new $c51b7e0106f45dea$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
207
210
|
}
|
|
208
211
|
/** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {
|
|
209
|
-
return (0, $
|
|
212
|
+
return (0, $19485913bea41f19$exports.addZoned)(this, duration);
|
|
210
213
|
}
|
|
211
214
|
/** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {
|
|
212
|
-
return (0, $
|
|
215
|
+
return (0, $19485913bea41f19$exports.subtractZoned)(this, duration);
|
|
213
216
|
}
|
|
214
217
|
/** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {
|
|
215
|
-
return (0, $
|
|
218
|
+
return (0, $19485913bea41f19$exports.setZoned)(this, fields, disambiguation);
|
|
216
219
|
}
|
|
217
220
|
/**
|
|
218
221
|
* Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
|
|
219
222
|
* When the resulting value reaches the limits of the field, it wraps around.
|
|
220
223
|
*/ cycle(field, amount, options) {
|
|
221
|
-
return (0, $
|
|
224
|
+
return (0, $19485913bea41f19$exports.cycleZoned)(this, field, amount, options);
|
|
222
225
|
}
|
|
223
226
|
/** Converts the date to a native JavaScript Date object. */ toDate() {
|
|
224
|
-
return (0, $
|
|
227
|
+
return (0, $e13115b3b86b9007$exports.zonedToDate)(this);
|
|
225
228
|
}
|
|
226
229
|
/** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {
|
|
227
|
-
return (0, $
|
|
230
|
+
return (0, $1b358053f79e3a77$exports.zonedDateTimeToString)(this);
|
|
228
231
|
}
|
|
229
232
|
/** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {
|
|
230
233
|
return this.toDate().toISOString();
|
|
231
234
|
}
|
|
232
235
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
|
|
233
236
|
// TODO: Is this a bad idea??
|
|
234
|
-
return this.toDate().getTime() - (0, $
|
|
235
|
-
}
|
|
236
|
-
constructor(...args){
|
|
237
|
-
(0, $lislG$swchelperscjs_class_private_field_initcjs._)(this, $625ad1e1f4c43bc1$var$_type3, {
|
|
238
|
-
writable: true,
|
|
239
|
-
value: void 0
|
|
240
|
-
});
|
|
241
|
-
let [calendar, era, year, month, day] = $625ad1e1f4c43bc1$var$shiftArgs(args);
|
|
242
|
-
let timeZone = args.shift();
|
|
243
|
-
let offset = args.shift();
|
|
244
|
-
this.calendar = calendar;
|
|
245
|
-
this.era = era;
|
|
246
|
-
this.year = year;
|
|
247
|
-
this.month = month;
|
|
248
|
-
this.day = day;
|
|
249
|
-
this.timeZone = timeZone;
|
|
250
|
-
this.offset = offset;
|
|
251
|
-
this.hour = args.shift() || 0;
|
|
252
|
-
this.minute = args.shift() || 0;
|
|
253
|
-
this.second = args.shift() || 0;
|
|
254
|
-
this.millisecond = args.shift() || 0;
|
|
255
|
-
(0, $5c0571aa5b6fb5da$exports.constrain)(this);
|
|
237
|
+
return this.toDate().getTime() - (0, $e13115b3b86b9007$exports.toZoned)(b, this.timeZone).toDate().getTime();
|
|
256
238
|
}
|
|
257
239
|
}
|
|
258
240
|
|
|
259
241
|
|
|
260
|
-
//# sourceMappingURL=CalendarDate.
|
|
242
|
+
//# sourceMappingURL=CalendarDate.cjs.map
|