@internationalized/date
Advanced tools
Comparing version 3.0.0-nightly-641446f65-240905 to 3.0.0-nightly-65e3a52a3-241120
@@ -44,4 +44,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'buddhist'; | ||
super(...args), this.identifier = 'buddhist'; | ||
} | ||
@@ -48,0 +47,0 @@ } |
@@ -38,4 +38,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from "./CalendarDate.module.js"; | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'buddhist'; | ||
super(...args), this.identifier = 'buddhist'; | ||
} | ||
@@ -42,0 +41,0 @@ } |
@@ -166,3 +166,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
let millisecond = date.getUTCMilliseconds(); | ||
return new (0, $625ad1e1f4c43bc1$exports.ZonedDateTime)(year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
return new (0, $625ad1e1f4c43bc1$exports.ZonedDateTime)(year < 1 ? 'BC' : 'AD', year < 0 ? Math.abs(year) + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
} | ||
@@ -169,0 +169,0 @@ function $4ae0260a69729f1d$export$e57ff100d91bd4b9(date, timeZone) { |
@@ -147,3 +147,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from "./CalendarDate.module.js"; | ||
let millisecond = date.getUTCMilliseconds(); | ||
return new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
return new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(year < 1 ? 'BC' : 'AD', year < 0 ? Math.abs(year) + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
} | ||
@@ -150,0 +150,0 @@ function $11d87f3f76e88657$export$e57ff100d91bd4b9(date, timeZone) { |
@@ -117,4 +117,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU | ||
super(...args), this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU | ||
; | ||
@@ -165,4 +164,3 @@ } | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'coptic'; | ||
super(...args), this.identifier = 'coptic'; | ||
} | ||
@@ -169,0 +167,0 @@ } |
@@ -109,4 +109,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from "./CalendarDate.module.js"; | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU | ||
super(...args), this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU | ||
; | ||
@@ -157,4 +156,3 @@ } | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'coptic'; | ||
super(...args), this.identifier = 'coptic'; | ||
} | ||
@@ -161,0 +159,0 @@ } |
@@ -101,4 +101,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'indian'; | ||
super(...args), this.identifier = 'indian'; | ||
} | ||
@@ -105,0 +104,0 @@ } |
@@ -95,4 +95,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from "./CalendarDate.module.js"; | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'indian'; | ||
super(...args), this.identifier = 'indian'; | ||
} | ||
@@ -99,0 +98,0 @@ } |
@@ -80,4 +80,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'islamic-tbla'; | ||
super(...args), this.identifier = 'islamic-tbla'; | ||
} | ||
@@ -150,4 +149,3 @@ } | ||
constructor(){ | ||
super(); | ||
this.identifier = 'islamic-umalqura'; | ||
super(), this.identifier = 'islamic-umalqura'; | ||
if (!$ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH) $ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($ecb2c4cc8c9aae25$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)).buffer); | ||
@@ -154,0 +152,0 @@ if (!$ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE) { |
@@ -72,4 +72,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from "./CalendarDate.module.js"; | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'islamic-tbla'; | ||
super(...args), this.identifier = 'islamic-tbla'; | ||
} | ||
@@ -142,4 +141,3 @@ } | ||
constructor(){ | ||
super(); | ||
this.identifier = 'islamic-umalqura'; | ||
super(), this.identifier = 'islamic-umalqura'; | ||
if (!$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH) $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)).buffer); | ||
@@ -146,0 +144,0 @@ if (!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE) { |
@@ -168,4 +168,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'japanese'; | ||
super(...args), this.identifier = 'japanese'; | ||
} | ||
@@ -172,0 +171,0 @@ } |
@@ -162,4 +162,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from "./CalendarDate.module.js"; | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'japanese'; | ||
super(...args), this.identifier = 'japanese'; | ||
} | ||
@@ -166,0 +165,0 @@ } |
@@ -70,4 +70,3 @@ var $625ad1e1f4c43bc1$exports = require("./CalendarDate.main.js"); | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'roc' // Republic of China | ||
super(...args), this.identifier = 'roc' // Republic of China | ||
; | ||
@@ -74,0 +73,0 @@ } |
@@ -64,4 +64,3 @@ import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from "./CalendarDate.module.js"; | ||
constructor(...args){ | ||
super(...args); | ||
this.identifier = 'roc' // Republic of China | ||
super(...args), this.identifier = 'roc' // Republic of China | ||
; | ||
@@ -68,0 +67,0 @@ } |
@@ -83,2 +83,3 @@ type Mutable<T> = { | ||
export function endOfWeek(date: CalendarDate, locale: string): CalendarDate; | ||
export function endOfWeek(date: DateValue, locale: string): DateValue; | ||
/** Returns the number of weeks in the given month and locale. */ | ||
@@ -616,5 +617,2 @@ export function getWeeksInMonth(date: DateValue, locale: string): number; | ||
export function createCalendar(name: string): Calendar; | ||
interface ResolvedDateTimeFormatOptions extends Intl.ResolvedDateTimeFormatOptions { | ||
hourCycle?: Intl.DateTimeFormatOptions['hourCycle']; | ||
} | ||
interface DateRangeFormatPart extends Intl.DateTimeFormatPart { | ||
@@ -635,5 +633,5 @@ source: 'startRange' | 'endRange' | 'shared'; | ||
/** Returns the resolved formatting options based on the values passed to the constructor. */ | ||
resolvedOptions(): ResolvedDateTimeFormatOptions; | ||
resolvedOptions(): Intl.ResolvedDateTimeFormatOptions; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@internationalized/date", | ||
"version": "3.0.0-nightly-641446f65-240905", | ||
"version": "3.0.0-nightly-65e3a52a3-241120", | ||
"description": "Internationalized calendar, date, and time manipulation utilities", | ||
@@ -30,3 +30,3 @@ "license": "Apache-2.0", | ||
}, | ||
"stableVersion": "3.5.5" | ||
"stableVersion": "3.5.6" | ||
} |
@@ -190,3 +190,3 @@ /* | ||
return new ZonedDateTime(year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
return new ZonedDateTime(year < 1 ? 'BC' : 'AD', year < 0 ? Math.abs(year) + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond); | ||
} | ||
@@ -193,0 +193,0 @@ |
@@ -15,6 +15,2 @@ /* | ||
interface ResolvedDateTimeFormatOptions extends Intl.ResolvedDateTimeFormatOptions { | ||
hourCycle?: Intl.DateTimeFormatOptions['hourCycle'] | ||
} | ||
interface DateRangeFormatPart extends Intl.DateTimeFormatPart { | ||
@@ -83,4 +79,4 @@ source: 'startRange' | 'endRange' | 'shared' | ||
/** Returns the resolved formatting options based on the values passed to the constructor. */ | ||
resolvedOptions(): ResolvedDateTimeFormatOptions { | ||
let resolvedOptions = this.formatter.resolvedOptions() as ResolvedDateTimeFormatOptions; | ||
resolvedOptions(): Intl.ResolvedDateTimeFormatOptions { | ||
let resolvedOptions = this.formatter.resolvedOptions(); | ||
if (hasBuggyResolvedHourCycle()) { | ||
@@ -161,6 +157,6 @@ if (!this.resolvedHourCycle) { | ||
if (_hasBuggyResolvedHourCycle == null) { | ||
_hasBuggyResolvedHourCycle = (new Intl.DateTimeFormat('fr', { | ||
_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat('fr', { | ||
hour: 'numeric', | ||
hour12: false | ||
}).resolvedOptions() as ResolvedDateTimeFormatOptions).hourCycle === 'h12'; | ||
}).resolvedOptions().hourCycle === 'h12'; | ||
} | ||
@@ -167,0 +163,0 @@ |
@@ -197,2 +197,3 @@ /* | ||
export function endOfWeek(date: CalendarDate, locale: string): CalendarDate; | ||
export function endOfWeek(date: DateValue, locale: string): DateValue; | ||
export function endOfWeek(date: DateValue, locale: string): DateValue { | ||
@@ -199,0 +200,0 @@ return startOfWeek(date, locale).add({days: 6}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
984660
11821