frey-ui 1.0.16 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Calendar/calendar.css +216 -0
- package/dist/cjs/Calendar/calendar.module.css.cjs +10 -0
- package/dist/cjs/Calendar/calendar.module.css.cjs.map +1 -0
- package/dist/cjs/Calendar/calendarInteractions.cjs +34 -0
- package/dist/cjs/Calendar/calendarInteractions.cjs.map +1 -0
- package/dist/cjs/Calendar/calendarModel.cjs +232 -0
- package/dist/cjs/Calendar/calendarModel.cjs.map +1 -0
- package/dist/cjs/Calendar/index.cjs +204 -0
- package/dist/cjs/Calendar/index.cjs.map +1 -0
- package/dist/cjs/DateField/DateFieldSegments.cjs +71 -0
- package/dist/cjs/DateField/DateFieldSegments.cjs.map +1 -0
- package/dist/cjs/DateField/DateSegmentInput.cjs +17 -0
- package/dist/cjs/DateField/DateSegmentInput.cjs.map +1 -0
- package/dist/cjs/DateField/dateFieldInteractions.cjs +205 -0
- package/dist/cjs/DateField/dateFieldInteractions.cjs.map +1 -0
- package/dist/cjs/DateField/dateFieldState.cjs +127 -0
- package/dist/cjs/DateField/dateFieldState.cjs.map +1 -0
- package/dist/cjs/DateField/datefield.css +134 -0
- package/dist/cjs/DateField/datefield.module.css.cjs +10 -0
- package/dist/cjs/DateField/datefield.module.css.cjs.map +1 -0
- package/dist/cjs/DateField/index.cjs +203 -0
- package/dist/cjs/DateField/index.cjs.map +1 -0
- package/dist/cjs/DatePicker/datepicker.css +24 -0
- package/dist/cjs/DatePicker/datepicker.module.css.cjs +10 -0
- package/dist/cjs/DatePicker/datepicker.module.css.cjs.map +1 -0
- package/dist/cjs/DatePicker/index.cjs +98 -0
- package/dist/cjs/DatePicker/index.cjs.map +1 -0
- package/dist/cjs/Icons/CalendarIcon.cjs +12 -0
- package/dist/cjs/Icons/CalendarIcon.cjs.map +1 -0
- package/dist/cjs/Popover/index.cjs +2 -2
- package/dist/cjs/Popover/index.cjs.map +1 -1
- package/dist/cjs/SegmentedControl/index.cjs +60 -0
- package/dist/cjs/SegmentedControl/index.cjs.map +1 -0
- package/dist/cjs/SegmentedControl/segmentedcontrol.css +131 -0
- package/dist/cjs/SegmentedControl/segmentedcontrol.module.css.cjs +10 -0
- package/dist/cjs/SegmentedControl/segmentedcontrol.module.css.cjs.map +1 -0
- package/dist/cjs/date/dateEngine.cjs +591 -0
- package/dist/cjs/date/dateEngine.cjs.map +1 -0
- package/dist/cjs/date/dateLocale.cjs +239 -0
- package/dist/cjs/date/dateLocale.cjs.map +1 -0
- package/dist/cjs/date/japaneseEraData.cjs +252 -0
- package/dist/cjs/date/japaneseEraData.cjs.map +1 -0
- package/dist/cjs/date/useDateLocale.cjs +24 -0
- package/dist/cjs/date/useDateLocale.cjs.map +1 -0
- package/dist/cjs/index.cjs +68 -58
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/theme.css +32 -0
- package/dist/esm/Calendar/calendar.css +216 -0
- package/dist/esm/Calendar/calendar.module.css.mjs +6 -0
- package/dist/esm/Calendar/calendar.module.css.mjs.map +1 -0
- package/dist/esm/Calendar/calendarInteractions.mjs +32 -0
- package/dist/esm/Calendar/calendarInteractions.mjs.map +1 -0
- package/dist/esm/Calendar/calendarModel.mjs +224 -0
- package/dist/esm/Calendar/calendarModel.mjs.map +1 -0
- package/dist/esm/Calendar/index.mjs +200 -0
- package/dist/esm/Calendar/index.mjs.map +1 -0
- package/dist/esm/DateField/DateFieldSegments.mjs +69 -0
- package/dist/esm/DateField/DateFieldSegments.mjs.map +1 -0
- package/dist/esm/DateField/DateSegmentInput.mjs +15 -0
- package/dist/esm/DateField/DateSegmentInput.mjs.map +1 -0
- package/dist/esm/DateField/dateFieldInteractions.mjs +198 -0
- package/dist/esm/DateField/dateFieldInteractions.mjs.map +1 -0
- package/dist/esm/DateField/dateFieldState.mjs +119 -0
- package/dist/esm/DateField/dateFieldState.mjs.map +1 -0
- package/dist/esm/DateField/datefield.css +134 -0
- package/dist/esm/DateField/datefield.module.css.mjs +6 -0
- package/dist/esm/DateField/datefield.module.css.mjs.map +1 -0
- package/dist/esm/DateField/index.mjs +198 -0
- package/dist/esm/DateField/index.mjs.map +1 -0
- package/dist/esm/DatePicker/datepicker.css +24 -0
- package/dist/esm/DatePicker/datepicker.module.css.mjs +6 -0
- package/dist/esm/DatePicker/datepicker.module.css.mjs.map +1 -0
- package/dist/esm/DatePicker/index.mjs +94 -0
- package/dist/esm/DatePicker/index.mjs.map +1 -0
- package/dist/esm/Icons/CalendarIcon.mjs +10 -0
- package/dist/esm/Icons/CalendarIcon.mjs.map +1 -0
- package/dist/esm/Popover/index.mjs +2 -2
- package/dist/esm/Popover/index.mjs.map +1 -1
- package/dist/esm/SegmentedControl/index.mjs +55 -0
- package/dist/esm/SegmentedControl/index.mjs.map +1 -0
- package/dist/esm/SegmentedControl/segmentedcontrol.css +131 -0
- package/dist/esm/SegmentedControl/segmentedcontrol.module.css.mjs +6 -0
- package/dist/esm/SegmentedControl/segmentedcontrol.module.css.mjs.map +1 -0
- package/dist/esm/date/dateEngine.mjs +573 -0
- package/dist/esm/date/dateEngine.mjs.map +1 -0
- package/dist/esm/date/dateLocale.mjs +226 -0
- package/dist/esm/date/dateLocale.mjs.map +1 -0
- package/dist/esm/date/japaneseEraData.mjs +250 -0
- package/dist/esm/date/japaneseEraData.mjs.map +1 -0
- package/dist/esm/date/useDateLocale.mjs +22 -0
- package/dist/esm/date/useDateLocale.mjs.map +1 -0
- package/dist/esm/index.mjs +5 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/theme.css +32 -0
- package/dist/index.d.ts +116 -3
- package/dist/types/src/Calendar/calendarInteractions.d.ts +9 -0
- package/dist/types/src/Calendar/calendarInteractions.d.ts.map +1 -0
- package/dist/types/src/Calendar/calendarModel.d.ts +81 -0
- package/dist/types/src/Calendar/calendarModel.d.ts.map +1 -0
- package/dist/types/src/Calendar/index.d.ts +26 -0
- package/dist/types/src/Calendar/index.d.ts.map +1 -0
- package/dist/types/src/DateField/DateFieldSegments.d.ts +28 -0
- package/dist/types/src/DateField/DateFieldSegments.d.ts.map +1 -0
- package/dist/types/src/DateField/DateSegmentInput.d.ts +23 -0
- package/dist/types/src/DateField/DateSegmentInput.d.ts.map +1 -0
- package/dist/types/src/DateField/dateFieldInteractions.d.ts +66 -0
- package/dist/types/src/DateField/dateFieldInteractions.d.ts.map +1 -0
- package/dist/types/src/DateField/dateFieldState.d.ts +32 -0
- package/dist/types/src/DateField/dateFieldState.d.ts.map +1 -0
- package/dist/types/src/DateField/index.d.ts +42 -0
- package/dist/types/src/DateField/index.d.ts.map +1 -0
- package/dist/types/src/DatePicker/index.d.ts +19 -0
- package/dist/types/src/DatePicker/index.d.ts.map +1 -0
- package/dist/types/src/Icons/CalendarIcon.d.ts +4 -0
- package/dist/types/src/Icons/CalendarIcon.d.ts.map +1 -0
- package/dist/types/src/Icons/index.d.ts +1 -0
- package/dist/types/src/Icons/index.d.ts.map +1 -1
- package/dist/types/src/Popover/index.d.ts +3 -1
- package/dist/types/src/Popover/index.d.ts.map +1 -1
- package/dist/types/src/SegmentedControl/index.d.ts +38 -0
- package/dist/types/src/SegmentedControl/index.d.ts.map +1 -0
- package/dist/types/src/date/dateEngine.d.ts +22 -0
- package/dist/types/src/date/dateEngine.d.ts.map +1 -0
- package/dist/types/src/date/dateLocale.d.ts +30 -0
- package/dist/types/src/date/dateLocale.d.ts.map +1 -0
- package/dist/types/src/date/japaneseEraData.d.ts +7 -0
- package/dist/types/src/date/japaneseEraData.d.ts.map +1 -0
- package/dist/types/src/date/types.d.ts +23 -0
- package/dist/types/src/date/types.d.ts.map +1 -0
- package/dist/types/src/date/useDateLocale.d.ts +2 -0
- package/dist/types/src/date/useDateLocale.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +10 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { JAPANESE_ERAS } from './japaneseEraData.mjs';
|
|
3
|
+
|
|
4
|
+
const ISO_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
5
|
+
const MIN_EPOCH_DAY = -719162;
|
|
6
|
+
const MAX_EPOCH_DAY = 2932896;
|
|
7
|
+
const FIXED_FROM_UNIX_EPOCH = 719163;
|
|
8
|
+
const HEBREW_EPOCH = -1373427;
|
|
9
|
+
const DATE_CALENDARS = [
|
|
10
|
+
'gregory',
|
|
11
|
+
'buddhist',
|
|
12
|
+
'japanese',
|
|
13
|
+
'roc',
|
|
14
|
+
'persian',
|
|
15
|
+
'islamic-civil',
|
|
16
|
+
'hebrew',
|
|
17
|
+
];
|
|
18
|
+
function validateDateCalendar(calendar, propName = 'calendar') {
|
|
19
|
+
if (!DATE_CALENDARS.includes(calendar)) {
|
|
20
|
+
throw new RangeError(`${propName} must be a supported date calendar; received ${String(calendar)}.`);
|
|
21
|
+
}
|
|
22
|
+
return calendar;
|
|
23
|
+
}
|
|
24
|
+
function floorDiv(dividend, divisor) {
|
|
25
|
+
return Math.floor(dividend / divisor);
|
|
26
|
+
}
|
|
27
|
+
function modulo(dividend, divisor) {
|
|
28
|
+
return ((dividend % divisor) + divisor) % divisor;
|
|
29
|
+
}
|
|
30
|
+
function isIsoLeapYear(year) {
|
|
31
|
+
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
32
|
+
}
|
|
33
|
+
function getDaysInIsoMonth(year, month) {
|
|
34
|
+
if (month === 2)
|
|
35
|
+
return isIsoLeapYear(year) ? 29 : 28;
|
|
36
|
+
return [4, 6, 9, 11].includes(month) ? 30 : 31;
|
|
37
|
+
}
|
|
38
|
+
function isValidIsoDate(date) {
|
|
39
|
+
return (Number.isInteger(date.year) &&
|
|
40
|
+
date.year >= 1 &&
|
|
41
|
+
date.year <= 9999 &&
|
|
42
|
+
Number.isInteger(date.month) &&
|
|
43
|
+
date.month >= 1 &&
|
|
44
|
+
date.month <= 12 &&
|
|
45
|
+
Number.isInteger(date.day) &&
|
|
46
|
+
date.day >= 1 &&
|
|
47
|
+
date.day <= getDaysInIsoMonth(date.year, date.month));
|
|
48
|
+
}
|
|
49
|
+
function parseDateValue(value, propName = 'value') {
|
|
50
|
+
const match = ISO_PATTERN.exec(value);
|
|
51
|
+
const parsed = match
|
|
52
|
+
? {
|
|
53
|
+
year: Number(match[1]),
|
|
54
|
+
month: Number(match[2]),
|
|
55
|
+
day: Number(match[3]),
|
|
56
|
+
}
|
|
57
|
+
: null;
|
|
58
|
+
if (!parsed || !isValidIsoDate(parsed)) {
|
|
59
|
+
throw new RangeError(`${propName} must be a valid YYYY-MM-DD date; received ${value}.`);
|
|
60
|
+
}
|
|
61
|
+
return parsed;
|
|
62
|
+
}
|
|
63
|
+
function serializeDateValue(date) {
|
|
64
|
+
if (!isValidIsoDate(date)) {
|
|
65
|
+
throw new RangeError('date must be between 0001-01-01 and 9999-12-31.');
|
|
66
|
+
}
|
|
67
|
+
return `${String(date.year).padStart(4, '0')}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`;
|
|
68
|
+
}
|
|
69
|
+
function isoDateToEpochDay(date) {
|
|
70
|
+
if (!isValidIsoDate(date)) {
|
|
71
|
+
throw new RangeError('date must be between 0001-01-01 and 9999-12-31.');
|
|
72
|
+
}
|
|
73
|
+
let year = date.year;
|
|
74
|
+
year -= date.month <= 2 ? 1 : 0;
|
|
75
|
+
const era = floorDiv(year, 400);
|
|
76
|
+
const yearOfEra = year - era * 400;
|
|
77
|
+
const adjustedMonth = date.month + (date.month > 2 ? -3 : 9);
|
|
78
|
+
const dayOfYear = floorDiv(153 * adjustedMonth + 2, 5) + date.day - 1;
|
|
79
|
+
const dayOfEra = yearOfEra * 365 +
|
|
80
|
+
floorDiv(yearOfEra, 4) -
|
|
81
|
+
floorDiv(yearOfEra, 100) +
|
|
82
|
+
dayOfYear;
|
|
83
|
+
return era * 146097 + dayOfEra - 719468;
|
|
84
|
+
}
|
|
85
|
+
function epochDayToIsoDate(epochDay) {
|
|
86
|
+
if (!Number.isInteger(epochDay) ||
|
|
87
|
+
epochDay < MIN_EPOCH_DAY ||
|
|
88
|
+
epochDay > MAX_EPOCH_DAY) {
|
|
89
|
+
throw new RangeError('epochDay is outside the supported ISO date range.');
|
|
90
|
+
}
|
|
91
|
+
const shifted = epochDay + 719468;
|
|
92
|
+
const era = floorDiv(shifted, 146097);
|
|
93
|
+
const dayOfEra = shifted - era * 146097;
|
|
94
|
+
const yearOfEra = floorDiv(dayOfEra -
|
|
95
|
+
floorDiv(dayOfEra, 1460) +
|
|
96
|
+
floorDiv(dayOfEra, 36524) -
|
|
97
|
+
floorDiv(dayOfEra, 146096), 365);
|
|
98
|
+
let year = yearOfEra + era * 400;
|
|
99
|
+
const dayOfYear = dayOfEra -
|
|
100
|
+
(365 * yearOfEra + floorDiv(yearOfEra, 4) - floorDiv(yearOfEra, 100));
|
|
101
|
+
const monthPrime = floorDiv(5 * dayOfYear + 2, 153);
|
|
102
|
+
const day = dayOfYear - floorDiv(153 * monthPrime + 2, 5) + 1;
|
|
103
|
+
const month = monthPrime + (monthPrime < 10 ? 3 : -9);
|
|
104
|
+
year += month <= 2 ? 1 : 0;
|
|
105
|
+
return { year, month, day };
|
|
106
|
+
}
|
|
107
|
+
function addIsoDays(date, amount) {
|
|
108
|
+
return epochDayToIsoDate(isoDateToEpochDay(date) + amount);
|
|
109
|
+
}
|
|
110
|
+
function addIsoMonths(date, amount) {
|
|
111
|
+
const monthIndex = date.year * 12 + date.month - 1 + amount;
|
|
112
|
+
const year = floorDiv(monthIndex, 12);
|
|
113
|
+
const month = modulo(monthIndex, 12) + 1;
|
|
114
|
+
const result = {
|
|
115
|
+
year,
|
|
116
|
+
month,
|
|
117
|
+
day: Math.min(date.day, getDaysInIsoMonth(year, month)),
|
|
118
|
+
};
|
|
119
|
+
if (!isValidIsoDate(result)) {
|
|
120
|
+
throw new RangeError('date arithmetic exceeded the supported ISO range.');
|
|
121
|
+
}
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
function addIsoYears(date, amount) {
|
|
125
|
+
const year = date.year + amount;
|
|
126
|
+
const result = {
|
|
127
|
+
year,
|
|
128
|
+
month: date.month,
|
|
129
|
+
day: Math.min(date.day, getDaysInIsoMonth(year, date.month)),
|
|
130
|
+
};
|
|
131
|
+
if (!isValidIsoDate(result)) {
|
|
132
|
+
throw new RangeError('date arithmetic exceeded the supported ISO range.');
|
|
133
|
+
}
|
|
134
|
+
return result;
|
|
135
|
+
}
|
|
136
|
+
function compareIsoDates(left, right) {
|
|
137
|
+
const difference = isoDateToEpochDay(left) - isoDateToEpochDay(right);
|
|
138
|
+
return difference < 0 ? -1 : difference > 0 ? 1 : 0;
|
|
139
|
+
}
|
|
140
|
+
function validateDateConstraints(minValue, maxValue) {
|
|
141
|
+
const minDate = minValue === undefined ? undefined : parseDateValue(minValue, 'minValue');
|
|
142
|
+
const maxDate = maxValue === undefined ? undefined : parseDateValue(maxValue, 'maxValue');
|
|
143
|
+
if (minDate && maxDate && compareIsoDates(minDate, maxDate) > 0) {
|
|
144
|
+
throw new RangeError('minValue must be on or before maxValue.');
|
|
145
|
+
}
|
|
146
|
+
return { minDate, maxDate };
|
|
147
|
+
}
|
|
148
|
+
function isDateWithinConstraints(date, minDate, maxDate) {
|
|
149
|
+
return !((minDate && compareIsoDates(date, minDate) < 0) ||
|
|
150
|
+
(maxDate && compareIsoDates(date, maxDate) > 0));
|
|
151
|
+
}
|
|
152
|
+
function fixedFromIso(date) {
|
|
153
|
+
return isoDateToEpochDay(date) + FIXED_FROM_UNIX_EPOCH;
|
|
154
|
+
}
|
|
155
|
+
function isoFromFixed(fixed) {
|
|
156
|
+
return epochDayToIsoDate(fixed - FIXED_FROM_UNIX_EPOCH);
|
|
157
|
+
}
|
|
158
|
+
function getPersianFixed(year, month, day) {
|
|
159
|
+
const epochBase = year - (year >= 0 ? 474 : 473);
|
|
160
|
+
const epochYear = 474 + modulo(epochBase, 2820);
|
|
161
|
+
const monthDays = month <= 7 ? (month - 1) * 31 : (month - 1) * 30 + 6;
|
|
162
|
+
return (day +
|
|
163
|
+
monthDays +
|
|
164
|
+
floorDiv(epochYear * 682 - 110, 2816) +
|
|
165
|
+
(epochYear - 1) * 365 +
|
|
166
|
+
floorDiv(epochBase, 2820) * 1029983 +
|
|
167
|
+
226895);
|
|
168
|
+
}
|
|
169
|
+
function getPersianDate(fixed) {
|
|
170
|
+
const daysSince475 = fixed - getPersianFixed(475, 1, 1);
|
|
171
|
+
const cycle = floorDiv(daysSince475, 1029983);
|
|
172
|
+
const cycleDay = modulo(daysSince475, 1029983);
|
|
173
|
+
const yearInCycle = cycleDay === 1029982
|
|
174
|
+
? 2820
|
|
175
|
+
: floorDiv(2134 * floorDiv(cycleDay, 366) + 2816 * modulo(cycleDay, 366) + 2815, 1028522) +
|
|
176
|
+
floorDiv(cycleDay, 366) +
|
|
177
|
+
1;
|
|
178
|
+
let year = yearInCycle + 2820 * cycle + 474;
|
|
179
|
+
if (year <= 0)
|
|
180
|
+
year -= 1;
|
|
181
|
+
const dayOfYear = fixed - getPersianFixed(year, 1, 1) + 1;
|
|
182
|
+
const month = dayOfYear <= 186
|
|
183
|
+
? Math.ceil(dayOfYear / 31)
|
|
184
|
+
: Math.ceil((dayOfYear - 6) / 30);
|
|
185
|
+
const day = fixed - getPersianFixed(year, month, 1) + 1;
|
|
186
|
+
const nextYear = year === -1 ? 1 : year + 1;
|
|
187
|
+
const nextYearLength = getPersianFixed(nextYear, 1, 1) - getPersianFixed(year, 1, 1);
|
|
188
|
+
const daysInMonth = month <= 6 ? 31 : month <= 11 ? 30 : nextYearLength === 366 ? 30 : 29;
|
|
189
|
+
const relatedDate = isoFromFixed(fixed);
|
|
190
|
+
return {
|
|
191
|
+
era: year > 0 ? 'ap' : 'before-ap',
|
|
192
|
+
year: Math.abs(year),
|
|
193
|
+
month,
|
|
194
|
+
monthCode: `M${String(month).padStart(2, '0')}`,
|
|
195
|
+
day,
|
|
196
|
+
monthsInYear: 12,
|
|
197
|
+
daysInMonth,
|
|
198
|
+
relatedYear: relatedDate.year,
|
|
199
|
+
relatedMonth: relatedDate.month,
|
|
200
|
+
relatedDay: relatedDate.day,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function getIslamicFixed(year, month, day) {
|
|
204
|
+
return (day +
|
|
205
|
+
Math.ceil(29.5 * (month - 1)) +
|
|
206
|
+
(year - 1) * 354 +
|
|
207
|
+
floorDiv(3 + 11 * year, 30) +
|
|
208
|
+
227014);
|
|
209
|
+
}
|
|
210
|
+
function isIslamicLeapYear(year) {
|
|
211
|
+
return modulo(14 + 11 * year, 30) < 11;
|
|
212
|
+
}
|
|
213
|
+
function getIslamicDate(fixed) {
|
|
214
|
+
const year = floorDiv(30 * (fixed - 227015) + 10646, 10631);
|
|
215
|
+
const month = Math.min(12, Math.max(1, Math.ceil((fixed - (29 + getIslamicFixed(year, 1, 1))) / 29.5) + 1));
|
|
216
|
+
const day = fixed - getIslamicFixed(year, month, 1) + 1;
|
|
217
|
+
const daysInMonth = month % 2 === 1 || (month === 12 && isIslamicLeapYear(year)) ? 30 : 29;
|
|
218
|
+
const relatedDate = isoFromFixed(fixed);
|
|
219
|
+
return {
|
|
220
|
+
era: year > 0 ? 'ah' : 'before-ah',
|
|
221
|
+
year: Math.abs(year),
|
|
222
|
+
month,
|
|
223
|
+
monthCode: `M${String(month).padStart(2, '0')}`,
|
|
224
|
+
day,
|
|
225
|
+
monthsInYear: 12,
|
|
226
|
+
daysInMonth,
|
|
227
|
+
relatedYear: relatedDate.year,
|
|
228
|
+
relatedMonth: relatedDate.month,
|
|
229
|
+
relatedDay: relatedDate.day,
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function isHebrewLeapYear(year) {
|
|
233
|
+
return modulo(7 * year + 1, 19) < 7;
|
|
234
|
+
}
|
|
235
|
+
function getHebrewElapsedDays(year) {
|
|
236
|
+
const months = floorDiv(235 * year - 234, 19);
|
|
237
|
+
const parts = 12084 + 13753 * months;
|
|
238
|
+
let day = months * 29 + floorDiv(parts, 25920);
|
|
239
|
+
if (modulo(3 * (day + 1), 7) < 3)
|
|
240
|
+
day += 1;
|
|
241
|
+
return day;
|
|
242
|
+
}
|
|
243
|
+
function getHebrewNewYear(year) {
|
|
244
|
+
const previous = getHebrewElapsedDays(year - 1);
|
|
245
|
+
const current = getHebrewElapsedDays(year);
|
|
246
|
+
const next = getHebrewElapsedDays(year + 1);
|
|
247
|
+
const correction = next - current === 356 ? 2 : current - previous === 382 ? 1 : 0;
|
|
248
|
+
return HEBREW_EPOCH + current + correction;
|
|
249
|
+
}
|
|
250
|
+
function getHebrewYearDays(year) {
|
|
251
|
+
return getHebrewNewYear(year + 1) - getHebrewNewYear(year);
|
|
252
|
+
}
|
|
253
|
+
function getHebrewTraditionalMonthDays(year, month) {
|
|
254
|
+
if ([2, 4, 6, 10, 13].includes(month))
|
|
255
|
+
return 29;
|
|
256
|
+
if (month === 12 && !isHebrewLeapYear(year))
|
|
257
|
+
return 29;
|
|
258
|
+
const yearDays = getHebrewYearDays(year);
|
|
259
|
+
if (month === 8 && modulo(yearDays, 10) !== 5)
|
|
260
|
+
return 29;
|
|
261
|
+
if (month === 9 && modulo(yearDays, 10) === 3)
|
|
262
|
+
return 29;
|
|
263
|
+
return 30;
|
|
264
|
+
}
|
|
265
|
+
function getHebrewFixed(year, month, day) {
|
|
266
|
+
let fixed = getHebrewNewYear(year) + day - 1;
|
|
267
|
+
const lastMonth = isHebrewLeapYear(year) ? 13 : 12;
|
|
268
|
+
if (month < 7) {
|
|
269
|
+
for (let current = 7; current <= lastMonth; current += 1) {
|
|
270
|
+
fixed += getHebrewTraditionalMonthDays(year, current);
|
|
271
|
+
}
|
|
272
|
+
for (let current = 1; current < month; current += 1) {
|
|
273
|
+
fixed += getHebrewTraditionalMonthDays(year, current);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
for (let current = 7; current < month; current += 1) {
|
|
278
|
+
fixed += getHebrewTraditionalMonthDays(year, current);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return fixed;
|
|
282
|
+
}
|
|
283
|
+
function hebrewTraditionalToDisplayMonth(year, traditionalMonth) {
|
|
284
|
+
const leap = isHebrewLeapYear(year);
|
|
285
|
+
if (traditionalMonth >= 7 && traditionalMonth <= 11) {
|
|
286
|
+
return traditionalMonth - 6;
|
|
287
|
+
}
|
|
288
|
+
if (traditionalMonth === 12)
|
|
289
|
+
return 6;
|
|
290
|
+
if (traditionalMonth === 13)
|
|
291
|
+
return 7;
|
|
292
|
+
return traditionalMonth + (leap ? 7 : 6);
|
|
293
|
+
}
|
|
294
|
+
function hebrewDisplayToTraditionalMonth(year, displayMonth) {
|
|
295
|
+
const leap = isHebrewLeapYear(year);
|
|
296
|
+
if (displayMonth <= 5)
|
|
297
|
+
return displayMonth + 6;
|
|
298
|
+
if (displayMonth === 6)
|
|
299
|
+
return 12;
|
|
300
|
+
if (leap && displayMonth === 7)
|
|
301
|
+
return 13;
|
|
302
|
+
return displayMonth - (leap ? 7 : 6);
|
|
303
|
+
}
|
|
304
|
+
function getHebrewDate(fixed) {
|
|
305
|
+
let year = floorDiv((fixed - HEBREW_EPOCH) * 98496, 35975351) + 1;
|
|
306
|
+
while (fixed >= getHebrewNewYear(year + 1))
|
|
307
|
+
year += 1;
|
|
308
|
+
while (fixed < getHebrewNewYear(year))
|
|
309
|
+
year -= 1;
|
|
310
|
+
const firstMonth = fixed < getHebrewFixed(year, 1, 1) ? 7 : 1;
|
|
311
|
+
let traditionalMonth = firstMonth;
|
|
312
|
+
while (fixed >
|
|
313
|
+
getHebrewFixed(year, traditionalMonth, getHebrewTraditionalMonthDays(year, traditionalMonth))) {
|
|
314
|
+
traditionalMonth += 1;
|
|
315
|
+
}
|
|
316
|
+
const day = fixed - getHebrewFixed(year, traditionalMonth, 1) + 1;
|
|
317
|
+
const month = hebrewTraditionalToDisplayMonth(year, traditionalMonth);
|
|
318
|
+
const isLeapAdar = traditionalMonth === 12 && isHebrewLeapYear(year);
|
|
319
|
+
const relatedDate = isoFromFixed(fixed);
|
|
320
|
+
return {
|
|
321
|
+
era: 'am',
|
|
322
|
+
year,
|
|
323
|
+
month,
|
|
324
|
+
monthCode: isLeapAdar ? 'M05L' : `M${String(month).padStart(2, '0')}`,
|
|
325
|
+
day,
|
|
326
|
+
monthsInYear: isHebrewLeapYear(year) ? 13 : 12,
|
|
327
|
+
daysInMonth: getHebrewTraditionalMonthDays(year, traditionalMonth),
|
|
328
|
+
relatedYear: relatedDate.year,
|
|
329
|
+
relatedMonth: relatedDate.month,
|
|
330
|
+
relatedDay: relatedDate.day,
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
const JAPANESE_ERA_DATES = JAPANESE_ERAS.map((era) => ({
|
|
334
|
+
...era,
|
|
335
|
+
startDate: parseDateValue(era.start),
|
|
336
|
+
startEpochDay: isoDateToEpochDay(parseDateValue(era.start)),
|
|
337
|
+
}));
|
|
338
|
+
function getJapaneseEra(date) {
|
|
339
|
+
const epochDay = isoDateToEpochDay(date);
|
|
340
|
+
let low = 0;
|
|
341
|
+
let high = JAPANESE_ERA_DATES.length - 1;
|
|
342
|
+
while (low < high) {
|
|
343
|
+
const middle = Math.ceil((low + high) / 2);
|
|
344
|
+
if (JAPANESE_ERA_DATES[middle].startEpochDay <= epochDay) {
|
|
345
|
+
low = middle;
|
|
346
|
+
}
|
|
347
|
+
else {
|
|
348
|
+
high = middle - 1;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return JAPANESE_ERA_DATES[low];
|
|
352
|
+
}
|
|
353
|
+
function getJapaneseDate(date) {
|
|
354
|
+
const era = getJapaneseEra(date);
|
|
355
|
+
return {
|
|
356
|
+
era: era.id,
|
|
357
|
+
year: date.year - era.startDate.year + 1,
|
|
358
|
+
month: date.month,
|
|
359
|
+
monthCode: `M${String(date.month).padStart(2, '0')}`,
|
|
360
|
+
day: date.day,
|
|
361
|
+
monthsInYear: 12,
|
|
362
|
+
daysInMonth: getDaysInIsoMonth(date.year, date.month),
|
|
363
|
+
relatedYear: date.year,
|
|
364
|
+
relatedMonth: date.month,
|
|
365
|
+
relatedDay: date.day,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function getCalendarDate(date, calendar) {
|
|
369
|
+
const fixed = fixedFromIso(date);
|
|
370
|
+
switch (calendar) {
|
|
371
|
+
case 'gregory':
|
|
372
|
+
return {
|
|
373
|
+
era: 'ad',
|
|
374
|
+
year: date.year,
|
|
375
|
+
month: date.month,
|
|
376
|
+
monthCode: `M${String(date.month).padStart(2, '0')}`,
|
|
377
|
+
day: date.day,
|
|
378
|
+
monthsInYear: 12,
|
|
379
|
+
daysInMonth: getDaysInIsoMonth(date.year, date.month),
|
|
380
|
+
relatedYear: date.year,
|
|
381
|
+
relatedMonth: date.month,
|
|
382
|
+
relatedDay: date.day,
|
|
383
|
+
};
|
|
384
|
+
case 'buddhist':
|
|
385
|
+
return {
|
|
386
|
+
era: 'be',
|
|
387
|
+
year: date.year + 543,
|
|
388
|
+
month: date.month,
|
|
389
|
+
monthCode: `M${String(date.month).padStart(2, '0')}`,
|
|
390
|
+
day: date.day,
|
|
391
|
+
monthsInYear: 12,
|
|
392
|
+
daysInMonth: getDaysInIsoMonth(date.year, date.month),
|
|
393
|
+
relatedYear: date.year,
|
|
394
|
+
relatedMonth: date.month,
|
|
395
|
+
relatedDay: date.day,
|
|
396
|
+
};
|
|
397
|
+
case 'roc': {
|
|
398
|
+
const isRoc = date.year >= 1912;
|
|
399
|
+
return {
|
|
400
|
+
era: isRoc ? 'roc' : 'before-roc',
|
|
401
|
+
year: isRoc ? date.year - 1911 : 1912 - date.year,
|
|
402
|
+
month: date.month,
|
|
403
|
+
monthCode: `M${String(date.month).padStart(2, '0')}`,
|
|
404
|
+
day: date.day,
|
|
405
|
+
monthsInYear: 12,
|
|
406
|
+
daysInMonth: getDaysInIsoMonth(date.year, date.month),
|
|
407
|
+
relatedYear: date.year,
|
|
408
|
+
relatedMonth: date.month,
|
|
409
|
+
relatedDay: date.day,
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
case 'japanese':
|
|
413
|
+
return getJapaneseDate(date);
|
|
414
|
+
case 'persian':
|
|
415
|
+
return getPersianDate(fixed);
|
|
416
|
+
case 'islamic-civil':
|
|
417
|
+
return getIslamicDate(fixed);
|
|
418
|
+
case 'hebrew':
|
|
419
|
+
return getHebrewDate(fixed);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
function validateCalendarRoundTrip(source, calendar, candidate) {
|
|
423
|
+
const converted = getCalendarDate(candidate, calendar);
|
|
424
|
+
if (converted.era !== source.era ||
|
|
425
|
+
converted.year !== source.year ||
|
|
426
|
+
converted.month !== source.month ||
|
|
427
|
+
converted.day !== source.day) {
|
|
428
|
+
throw new RangeError(`date is not valid in the ${calendar} calendar.`);
|
|
429
|
+
}
|
|
430
|
+
return candidate;
|
|
431
|
+
}
|
|
432
|
+
function fromCalendarDate(date, calendar) {
|
|
433
|
+
switch (calendar) {
|
|
434
|
+
case 'gregory':
|
|
435
|
+
return validateCalendarRoundTrip(date, calendar, parseDateValue(serializeDateValue({
|
|
436
|
+
year: date.year,
|
|
437
|
+
month: date.month,
|
|
438
|
+
day: date.day,
|
|
439
|
+
})));
|
|
440
|
+
case 'buddhist':
|
|
441
|
+
return validateCalendarRoundTrip(date, calendar, parseDateValue(serializeDateValue({
|
|
442
|
+
year: date.year - 543,
|
|
443
|
+
month: date.month,
|
|
444
|
+
day: date.day,
|
|
445
|
+
})));
|
|
446
|
+
case 'roc':
|
|
447
|
+
return validateCalendarRoundTrip(date, calendar, parseDateValue(serializeDateValue({
|
|
448
|
+
year: date.era === 'roc' ? date.year + 1911 : 1912 - date.year,
|
|
449
|
+
month: date.month,
|
|
450
|
+
day: date.day,
|
|
451
|
+
})));
|
|
452
|
+
case 'japanese': {
|
|
453
|
+
const era = JAPANESE_ERA_DATES.find((candidate) => candidate.id === date.era);
|
|
454
|
+
if (!era) {
|
|
455
|
+
throw new RangeError(`date.era is not a supported Japanese era: ${date.era}.`);
|
|
456
|
+
}
|
|
457
|
+
const candidate = parseDateValue(serializeDateValue({
|
|
458
|
+
year: era.startDate.year + date.year - 1,
|
|
459
|
+
month: date.month,
|
|
460
|
+
day: date.day,
|
|
461
|
+
}));
|
|
462
|
+
return validateCalendarRoundTrip(date, calendar, candidate);
|
|
463
|
+
}
|
|
464
|
+
case 'persian': {
|
|
465
|
+
const year = date.era === 'before-ap' ? -date.year : date.year;
|
|
466
|
+
return validateCalendarRoundTrip(date, calendar, isoFromFixed(getPersianFixed(year, date.month, date.day)));
|
|
467
|
+
}
|
|
468
|
+
case 'islamic-civil': {
|
|
469
|
+
const year = date.era === 'before-ah' ? -date.year : date.year;
|
|
470
|
+
return validateCalendarRoundTrip(date, calendar, isoFromFixed(getIslamicFixed(year, date.month, date.day)));
|
|
471
|
+
}
|
|
472
|
+
case 'hebrew':
|
|
473
|
+
return validateCalendarRoundTrip(date, calendar, isoFromFixed(getHebrewFixed(date.year, hebrewDisplayToTraditionalMonth(date.year, date.month), date.day)));
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function shiftSignedCalendarYear(year, amount) {
|
|
477
|
+
let result = year;
|
|
478
|
+
const direction = Math.sign(amount);
|
|
479
|
+
for (let step = 0; step < Math.abs(amount); step += 1) {
|
|
480
|
+
result += direction;
|
|
481
|
+
if (result === 0)
|
|
482
|
+
result += direction;
|
|
483
|
+
}
|
|
484
|
+
return result;
|
|
485
|
+
}
|
|
486
|
+
function getSignedCalendarYear(date) {
|
|
487
|
+
return date.era.startsWith('before-') ? -date.year : date.year;
|
|
488
|
+
}
|
|
489
|
+
function setSignedCalendarYear(date, calendar, year) {
|
|
490
|
+
const beforeEra = calendar === 'persian' ? 'before-ap' : 'before-ah';
|
|
491
|
+
const afterEra = calendar === 'persian' ? 'ap' : 'ah';
|
|
492
|
+
return {
|
|
493
|
+
...date,
|
|
494
|
+
era: year < 0 ? beforeEra : afterEra,
|
|
495
|
+
year: Math.abs(year),
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
function clampCalendarDay(source, target, calendar) {
|
|
499
|
+
const firstDay = fromCalendarDate({ ...target, day: 1 }, calendar);
|
|
500
|
+
const targetMonth = getCalendarDate(firstDay, calendar);
|
|
501
|
+
return fromCalendarDate({ ...targetMonth, day: Math.min(source.day, targetMonth.daysInMonth) }, calendar);
|
|
502
|
+
}
|
|
503
|
+
function stepVariableCalendarMonth(date, calendar, direction) {
|
|
504
|
+
if (direction > 0 && date.month < date.monthsInYear) {
|
|
505
|
+
return { ...date, month: date.month + 1 };
|
|
506
|
+
}
|
|
507
|
+
if (direction < 0 && date.month > 1) {
|
|
508
|
+
return { ...date, month: date.month - 1 };
|
|
509
|
+
}
|
|
510
|
+
if (calendar === 'hebrew') {
|
|
511
|
+
const nextYear = date.year + direction;
|
|
512
|
+
const firstDay = fromCalendarDate({ ...date, year: nextYear, month: 1, day: 1 }, calendar);
|
|
513
|
+
const nextYearDate = getCalendarDate(firstDay, calendar);
|
|
514
|
+
return {
|
|
515
|
+
...nextYearDate,
|
|
516
|
+
month: direction > 0 ? 1 : nextYearDate.monthsInYear,
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
const nextYear = shiftSignedCalendarYear(getSignedCalendarYear(date), direction);
|
|
520
|
+
return {
|
|
521
|
+
...setSignedCalendarYear(date, calendar, nextYear),
|
|
522
|
+
month: direction > 0 ? 1 : 12,
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function addCalendarMonths(date, calendar, amount) {
|
|
526
|
+
if (!Number.isInteger(amount)) {
|
|
527
|
+
throw new RangeError('amount must be an integer number of calendar months.');
|
|
528
|
+
}
|
|
529
|
+
if (calendar === 'gregory' ||
|
|
530
|
+
calendar === 'buddhist' ||
|
|
531
|
+
calendar === 'roc' ||
|
|
532
|
+
calendar === 'japanese') {
|
|
533
|
+
return addIsoMonths(date, amount);
|
|
534
|
+
}
|
|
535
|
+
const source = getCalendarDate(date, calendar);
|
|
536
|
+
let target = source;
|
|
537
|
+
const direction = Math.sign(amount);
|
|
538
|
+
for (let step = 0; step < Math.abs(amount); step += 1) {
|
|
539
|
+
target = stepVariableCalendarMonth(target, calendar, direction);
|
|
540
|
+
const targetFirstDay = fromCalendarDate({ ...target, day: 1 }, calendar);
|
|
541
|
+
target = getCalendarDate(targetFirstDay, calendar);
|
|
542
|
+
}
|
|
543
|
+
return direction === 0 ? date : clampCalendarDay(source, target, calendar);
|
|
544
|
+
}
|
|
545
|
+
function addCalendarYears(date, calendar, amount) {
|
|
546
|
+
if (!Number.isInteger(amount)) {
|
|
547
|
+
throw new RangeError('amount must be an integer number of calendar years.');
|
|
548
|
+
}
|
|
549
|
+
if (calendar === 'gregory' ||
|
|
550
|
+
calendar === 'buddhist' ||
|
|
551
|
+
calendar === 'roc' ||
|
|
552
|
+
calendar === 'japanese') {
|
|
553
|
+
return addIsoYears(date, amount);
|
|
554
|
+
}
|
|
555
|
+
const source = getCalendarDate(date, calendar);
|
|
556
|
+
let target;
|
|
557
|
+
if (calendar === 'hebrew') {
|
|
558
|
+
const firstDay = fromCalendarDate({ ...source, year: source.year + amount, month: 1, day: 1 }, calendar);
|
|
559
|
+
const targetYear = getCalendarDate(firstDay, calendar);
|
|
560
|
+
target = {
|
|
561
|
+
...targetYear,
|
|
562
|
+
month: Math.min(source.month, targetYear.monthsInYear),
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
const targetYear = shiftSignedCalendarYear(getSignedCalendarYear(source), amount);
|
|
567
|
+
target = setSignedCalendarYear(source, calendar, targetYear);
|
|
568
|
+
}
|
|
569
|
+
return amount === 0 ? date : clampCalendarDay(source, target, calendar);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export { addCalendarMonths, addCalendarYears, addIsoDays, addIsoMonths, addIsoYears, compareIsoDates, epochDayToIsoDate, fromCalendarDate, getCalendarDate, getDaysInIsoMonth, isDateWithinConstraints, isIsoLeapYear, isoDateToEpochDay, parseDateValue, serializeDateValue, validateDateCalendar, validateDateConstraints };
|
|
573
|
+
//# sourceMappingURL=dateEngine.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateEngine.mjs","sources":["../../../src/date/dateEngine.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGA,MAAM,WAAW,GAAG,2BAA2B;AAC/C,MAAM,aAAa,GAAG,OAAQ;AAC9B,MAAM,aAAa,GAAG,OAAS;AAC/B,MAAM,qBAAqB,GAAG,MAAO;AACrC,MAAM,YAAY,GAAG,QAAU;AAC/B,MAAM,cAAc,GAA4B;IAC9C,SAAS;IACT,UAAU;IACV,UAAU;IACV,KAAK;IACL,SAAS;IACT,eAAe;IACf,QAAQ;CACT;SAEe,oBAAoB,CAClC,QAAiB,EACjB,QAAQ,GAAG,UAAU,EAAA;IAErB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,QAAwB,CAAC,EAAE;AACtD,QAAA,MAAM,IAAI,UAAU,CAClB,CAAA,EAAG,QAAQ,CAAA,6CAAA,EAAgD,MAAM,CAAC,QAAQ,CAAC,CAAA,CAAA,CAAG,CAC/E;IACH;AACA,IAAA,OAAO,QAAwB;AACjC;AAEA,SAAS,QAAQ,CAAC,QAAgB,EAAE,OAAe,EAAA;IACjD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC;AACvC;AAEA,SAAS,MAAM,CAAC,QAAgB,EAAE,OAAe,EAAA;IAC/C,OAAO,CAAC,CAAC,QAAQ,GAAG,OAAO,IAAI,OAAO,IAAI,OAAO;AACnD;AAEM,SAAU,aAAa,CAAC,IAAY,EAAA;AACxC,IAAA,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,GAAG,KAAK,CAAC,IAAI,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC;AACjE;AAEM,SAAU,iBAA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