@cdx-ui/formatters 0.0.1-beta.132
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/README.md +108 -0
- package/lib/commonjs/dates/calendar/formatCalendarMonthYear.js +28 -0
- package/lib/commonjs/dates/calendar/formatCalendarMonthYear.js.map +1 -0
- package/lib/commonjs/dates/calendar/formatDateTimeListDateRow.js +40 -0
- package/lib/commonjs/dates/calendar/formatDateTimeListDateRow.js.map +1 -0
- package/lib/commonjs/dates/calendar/formatMonthCalendarMonth.js +28 -0
- package/lib/commonjs/dates/calendar/formatMonthCalendarMonth.js.map +1 -0
- package/lib/commonjs/dates/calendar/formatMonthCalendarYear.js +16 -0
- package/lib/commonjs/dates/calendar/formatMonthCalendarYear.js.map +1 -0
- package/lib/commonjs/dates/calendar/getCalendarWeekdayLabels.js +23 -0
- package/lib/commonjs/dates/calendar/getCalendarWeekdayLabels.js.map +1 -0
- package/lib/commonjs/dates/datetime/clampDateTimeId.js +27 -0
- package/lib/commonjs/dates/datetime/clampDateTimeId.js.map +1 -0
- package/lib/commonjs/dates/datetime/compareDateTimeIds.js +28 -0
- package/lib/commonjs/dates/datetime/compareDateTimeIds.js.map +1 -0
- package/lib/commonjs/dates/datetime/dateTimeId.js +38 -0
- package/lib/commonjs/dates/datetime/dateTimeId.js.map +1 -0
- package/lib/commonjs/dates/datetime/formatDateTimeId.js +27 -0
- package/lib/commonjs/dates/datetime/formatDateTimeId.js.map +1 -0
- package/lib/commonjs/dates/datetime/formatDateTimeListHour.js +21 -0
- package/lib/commonjs/dates/datetime/formatDateTimeListHour.js.map +1 -0
- package/lib/commonjs/dates/datetime/formatDateTimeListMinute.js +16 -0
- package/lib/commonjs/dates/datetime/formatDateTimeListMinute.js.map +1 -0
- package/lib/commonjs/dates/datetime/formatDateTimeListPeriod.js +17 -0
- package/lib/commonjs/dates/datetime/formatDateTimeListPeriod.js.map +1 -0
- package/lib/commonjs/dates/datetime/isLocaleHour12.js +30 -0
- package/lib/commonjs/dates/datetime/isLocaleHour12.js.map +1 -0
- package/lib/commonjs/dates/datetime/isValidDateTimeId.js +23 -0
- package/lib/commonjs/dates/datetime/isValidDateTimeId.js.map +1 -0
- package/lib/commonjs/dates/datetime/nowDateTimeId.js +57 -0
- package/lib/commonjs/dates/datetime/nowDateTimeId.js.map +1 -0
- package/lib/commonjs/dates/datetime/parseDateTimeId.js +29 -0
- package/lib/commonjs/dates/datetime/parseDateTimeId.js.map +1 -0
- package/lib/commonjs/dates/display/formatDateForDisplay.js +28 -0
- package/lib/commonjs/dates/display/formatDateForDisplay.js.map +1 -0
- package/lib/commonjs/dates/display/formatDateRangeForDisplay.js +25 -0
- package/lib/commonjs/dates/display/formatDateRangeForDisplay.js.map +1 -0
- package/lib/commonjs/dates/display/formatDateTimeForDisplay.js +34 -0
- package/lib/commonjs/dates/display/formatDateTimeForDisplay.js.map +1 -0
- package/lib/commonjs/dates/display/formatMonthForDisplay.js +33 -0
- package/lib/commonjs/dates/display/formatMonthForDisplay.js.map +1 -0
- package/lib/commonjs/dates/index.js +367 -0
- package/lib/commonjs/dates/index.js.map +1 -0
- package/lib/commonjs/dates/internal/brand.js +19 -0
- package/lib/commonjs/dates/internal/brand.js.map +1 -0
- package/lib/commonjs/dates/internal/calendarHelpers.js +22 -0
- package/lib/commonjs/dates/internal/calendarHelpers.js.map +1 -0
- package/lib/commonjs/dates/internal/clampHelpers.js +20 -0
- package/lib/commonjs/dates/internal/clampHelpers.js.map +1 -0
- package/lib/commonjs/dates/internal/dateIdToNativeDate.js +20 -0
- package/lib/commonjs/dates/internal/dateIdToNativeDate.js.map +1 -0
- package/lib/commonjs/dates/internal/intlCache.js +52 -0
- package/lib/commonjs/dates/internal/intlCache.js.map +1 -0
- package/lib/commonjs/dates/internal/intlCopy.js +72 -0
- package/lib/commonjs/dates/internal/intlCopy.js.map +1 -0
- package/lib/commonjs/dates/internal/segmentBuilders.js +98 -0
- package/lib/commonjs/dates/internal/segmentBuilders.js.map +1 -0
- package/lib/commonjs/dates/labels/dateComponentLabels.js +57 -0
- package/lib/commonjs/dates/labels/dateComponentLabels.js.map +1 -0
- package/lib/commonjs/dates/ranges/compareDateIds.js +26 -0
- package/lib/commonjs/dates/ranges/compareDateIds.js.map +1 -0
- package/lib/commonjs/dates/ranges/compareMonthIds.js +31 -0
- package/lib/commonjs/dates/ranges/compareMonthIds.js.map +1 -0
- package/lib/commonjs/dates/ranges/dateRangeAroundDay.js +25 -0
- package/lib/commonjs/dates/ranges/dateRangeAroundDay.js.map +1 -0
- package/lib/commonjs/dates/ranges/dateRangeFromLastNDays.js +28 -0
- package/lib/commonjs/dates/ranges/dateRangeFromLastNDays.js.map +1 -0
- package/lib/commonjs/dates/ranges/eachDateIdInRange.js +29 -0
- package/lib/commonjs/dates/ranges/eachDateIdInRange.js.map +1 -0
- package/lib/commonjs/dates/ranges/normalizeDateRange.js +23 -0
- package/lib/commonjs/dates/ranges/normalizeDateRange.js.map +1 -0
- package/lib/commonjs/dates/segments/applyDateSegmentChange.js +77 -0
- package/lib/commonjs/dates/segments/applyDateSegmentChange.js.map +1 -0
- package/lib/commonjs/dates/segments/formatDateSegment.js +19 -0
- package/lib/commonjs/dates/segments/formatDateSegment.js.map +1 -0
- package/lib/commonjs/dates/segments/getDateFieldSegments.js +44 -0
- package/lib/commonjs/dates/segments/getDateFieldSegments.js.map +1 -0
- package/lib/commonjs/dates/segments/getDateTimeFieldSegments.js +150 -0
- package/lib/commonjs/dates/segments/getDateTimeFieldSegments.js.map +1 -0
- package/lib/commonjs/dates/segments/getDateTimeSegmentVisibility.js +15 -0
- package/lib/commonjs/dates/segments/getDateTimeSegmentVisibility.js.map +1 -0
- package/lib/commonjs/dates/segments/getEmptyDateSegmentText.js +17 -0
- package/lib/commonjs/dates/segments/getEmptyDateSegmentText.js.map +1 -0
- package/lib/commonjs/dates/segments/parseDateSegment.js +26 -0
- package/lib/commonjs/dates/segments/parseDateSegment.js.map +1 -0
- package/lib/commonjs/dates/types.js +2 -0
- package/lib/commonjs/dates/types.js.map +1 -0
- package/lib/commonjs/dates/wire/clampDateParts.js +26 -0
- package/lib/commonjs/dates/wire/clampDateParts.js.map +1 -0
- package/lib/commonjs/dates/wire/clampMonthParts.js +23 -0
- package/lib/commonjs/dates/wire/clampMonthParts.js.map +1 -0
- package/lib/commonjs/dates/wire/dateId.js +50 -0
- package/lib/commonjs/dates/wire/dateId.js.map +1 -0
- package/lib/commonjs/dates/wire/formatDateId.js +25 -0
- package/lib/commonjs/dates/wire/formatDateId.js.map +1 -0
- package/lib/commonjs/dates/wire/formatMonthId.js +21 -0
- package/lib/commonjs/dates/wire/formatMonthId.js.map +1 -0
- package/lib/commonjs/dates/wire/isValidDateId.js +27 -0
- package/lib/commonjs/dates/wire/isValidDateId.js.map +1 -0
- package/lib/commonjs/dates/wire/isValidDateParts.js +18 -0
- package/lib/commonjs/dates/wire/isValidDateParts.js.map +1 -0
- package/lib/commonjs/dates/wire/isValidMonthId.js +27 -0
- package/lib/commonjs/dates/wire/isValidMonthId.js.map +1 -0
- package/lib/commonjs/dates/wire/isValidMonthParts.js +16 -0
- package/lib/commonjs/dates/wire/isValidMonthParts.js.map +1 -0
- package/lib/commonjs/dates/wire/monthId.js +47 -0
- package/lib/commonjs/dates/wire/monthId.js.map +1 -0
- package/lib/commonjs/dates/wire/parseDateId.js +29 -0
- package/lib/commonjs/dates/wire/parseDateId.js.map +1 -0
- package/lib/commonjs/dates/wire/parseMonthId.js +28 -0
- package/lib/commonjs/dates/wire/parseMonthId.js.map +1 -0
- package/lib/commonjs/dates/wire/toMonthId.js +22 -0
- package/lib/commonjs/dates/wire/toMonthId.js.map +1 -0
- package/lib/commonjs/dates/wire/todayDateId.js +17 -0
- package/lib/commonjs/dates/wire/todayDateId.js.map +1 -0
- package/lib/commonjs/dates/wire/todayMonthId.js +17 -0
- package/lib/commonjs/dates/wire/todayMonthId.js.map +1 -0
- package/lib/commonjs/formatNumber.js +50 -0
- package/lib/commonjs/formatNumber.js.map +1 -0
- package/lib/commonjs/index.js +326 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types.js +2 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/utils.js +33 -0
- package/lib/commonjs/utils.js.map +1 -0
- package/lib/module/dates/calendar/formatCalendarMonthYear.js +24 -0
- package/lib/module/dates/calendar/formatCalendarMonthYear.js.map +1 -0
- package/lib/module/dates/calendar/formatDateTimeListDateRow.js +36 -0
- package/lib/module/dates/calendar/formatDateTimeListDateRow.js.map +1 -0
- package/lib/module/dates/calendar/formatMonthCalendarMonth.js +24 -0
- package/lib/module/dates/calendar/formatMonthCalendarMonth.js.map +1 -0
- package/lib/module/dates/calendar/formatMonthCalendarYear.js +12 -0
- package/lib/module/dates/calendar/formatMonthCalendarYear.js.map +1 -0
- package/lib/module/dates/calendar/getCalendarWeekdayLabels.js +19 -0
- package/lib/module/dates/calendar/getCalendarWeekdayLabels.js.map +1 -0
- package/lib/module/dates/datetime/clampDateTimeId.js +24 -0
- package/lib/module/dates/datetime/clampDateTimeId.js.map +1 -0
- package/lib/module/dates/datetime/compareDateTimeIds.js +24 -0
- package/lib/module/dates/datetime/compareDateTimeIds.js.map +1 -0
- package/lib/module/dates/datetime/dateTimeId.js +35 -0
- package/lib/module/dates/datetime/dateTimeId.js.map +1 -0
- package/lib/module/dates/datetime/formatDateTimeId.js +23 -0
- package/lib/module/dates/datetime/formatDateTimeId.js.map +1 -0
- package/lib/module/dates/datetime/formatDateTimeListHour.js +17 -0
- package/lib/module/dates/datetime/formatDateTimeListHour.js.map +1 -0
- package/lib/module/dates/datetime/formatDateTimeListMinute.js +12 -0
- package/lib/module/dates/datetime/formatDateTimeListMinute.js.map +1 -0
- package/lib/module/dates/datetime/formatDateTimeListPeriod.js +13 -0
- package/lib/module/dates/datetime/formatDateTimeListPeriod.js.map +1 -0
- package/lib/module/dates/datetime/isLocaleHour12.js +26 -0
- package/lib/module/dates/datetime/isLocaleHour12.js.map +1 -0
- package/lib/module/dates/datetime/isValidDateTimeId.js +19 -0
- package/lib/module/dates/datetime/isValidDateTimeId.js.map +1 -0
- package/lib/module/dates/datetime/nowDateTimeId.js +54 -0
- package/lib/module/dates/datetime/nowDateTimeId.js.map +1 -0
- package/lib/module/dates/datetime/parseDateTimeId.js +26 -0
- package/lib/module/dates/datetime/parseDateTimeId.js.map +1 -0
- package/lib/module/dates/display/formatDateForDisplay.js +24 -0
- package/lib/module/dates/display/formatDateForDisplay.js.map +1 -0
- package/lib/module/dates/display/formatDateRangeForDisplay.js +22 -0
- package/lib/module/dates/display/formatDateRangeForDisplay.js.map +1 -0
- package/lib/module/dates/display/formatDateTimeForDisplay.js +30 -0
- package/lib/module/dates/display/formatDateTimeForDisplay.js.map +1 -0
- package/lib/module/dates/display/formatMonthForDisplay.js +29 -0
- package/lib/module/dates/display/formatMonthForDisplay.js.map +1 -0
- package/lib/module/dates/index.js +59 -0
- package/lib/module/dates/index.js.map +1 -0
- package/lib/module/dates/internal/brand.js +12 -0
- package/lib/module/dates/internal/brand.js.map +1 -0
- package/lib/module/dates/internal/calendarHelpers.js +19 -0
- package/lib/module/dates/internal/calendarHelpers.js.map +1 -0
- package/lib/module/dates/internal/clampHelpers.js +14 -0
- package/lib/module/dates/internal/clampHelpers.js.map +1 -0
- package/lib/module/dates/internal/dateIdToNativeDate.js +16 -0
- package/lib/module/dates/internal/dateIdToNativeDate.js.map +1 -0
- package/lib/module/dates/internal/intlCache.js +47 -0
- package/lib/module/dates/internal/intlCache.js.map +1 -0
- package/lib/module/dates/internal/intlCopy.js +66 -0
- package/lib/module/dates/internal/intlCopy.js.map +1 -0
- package/lib/module/dates/internal/segmentBuilders.js +91 -0
- package/lib/module/dates/internal/segmentBuilders.js.map +1 -0
- package/lib/module/dates/labels/dateComponentLabels.js +50 -0
- package/lib/module/dates/labels/dateComponentLabels.js.map +1 -0
- package/lib/module/dates/ranges/compareDateIds.js +22 -0
- package/lib/module/dates/ranges/compareDateIds.js.map +1 -0
- package/lib/module/dates/ranges/compareMonthIds.js +27 -0
- package/lib/module/dates/ranges/compareMonthIds.js.map +1 -0
- package/lib/module/dates/ranges/dateRangeAroundDay.js +21 -0
- package/lib/module/dates/ranges/dateRangeAroundDay.js.map +1 -0
- package/lib/module/dates/ranges/dateRangeFromLastNDays.js +24 -0
- package/lib/module/dates/ranges/dateRangeFromLastNDays.js.map +1 -0
- package/lib/module/dates/ranges/eachDateIdInRange.js +26 -0
- package/lib/module/dates/ranges/eachDateIdInRange.js.map +1 -0
- package/lib/module/dates/ranges/normalizeDateRange.js +20 -0
- package/lib/module/dates/ranges/normalizeDateRange.js.map +1 -0
- package/lib/module/dates/segments/applyDateSegmentChange.js +73 -0
- package/lib/module/dates/segments/applyDateSegmentChange.js.map +1 -0
- package/lib/module/dates/segments/formatDateSegment.js +15 -0
- package/lib/module/dates/segments/formatDateSegment.js.map +1 -0
- package/lib/module/dates/segments/getDateFieldSegments.js +40 -0
- package/lib/module/dates/segments/getDateFieldSegments.js.map +1 -0
- package/lib/module/dates/segments/getDateTimeFieldSegments.js +147 -0
- package/lib/module/dates/segments/getDateTimeFieldSegments.js.map +1 -0
- package/lib/module/dates/segments/getDateTimeSegmentVisibility.js +11 -0
- package/lib/module/dates/segments/getDateTimeSegmentVisibility.js.map +1 -0
- package/lib/module/dates/segments/getEmptyDateSegmentText.js +13 -0
- package/lib/module/dates/segments/getEmptyDateSegmentText.js.map +1 -0
- package/lib/module/dates/segments/parseDateSegment.js +22 -0
- package/lib/module/dates/segments/parseDateSegment.js.map +1 -0
- package/lib/module/dates/types.js +2 -0
- package/lib/module/dates/types.js.map +1 -0
- package/lib/module/dates/wire/clampDateParts.js +22 -0
- package/lib/module/dates/wire/clampDateParts.js.map +1 -0
- package/lib/module/dates/wire/clampMonthParts.js +19 -0
- package/lib/module/dates/wire/clampMonthParts.js.map +1 -0
- package/lib/module/dates/wire/dateId.js +47 -0
- package/lib/module/dates/wire/dateId.js.map +1 -0
- package/lib/module/dates/wire/formatDateId.js +22 -0
- package/lib/module/dates/wire/formatDateId.js.map +1 -0
- package/lib/module/dates/wire/formatMonthId.js +17 -0
- package/lib/module/dates/wire/formatMonthId.js.map +1 -0
- package/lib/module/dates/wire/isValidDateId.js +23 -0
- package/lib/module/dates/wire/isValidDateId.js.map +1 -0
- package/lib/module/dates/wire/isValidDateParts.js +14 -0
- package/lib/module/dates/wire/isValidDateParts.js.map +1 -0
- package/lib/module/dates/wire/isValidMonthId.js +23 -0
- package/lib/module/dates/wire/isValidMonthId.js.map +1 -0
- package/lib/module/dates/wire/isValidMonthParts.js +12 -0
- package/lib/module/dates/wire/isValidMonthParts.js.map +1 -0
- package/lib/module/dates/wire/monthId.js +44 -0
- package/lib/module/dates/wire/monthId.js.map +1 -0
- package/lib/module/dates/wire/parseDateId.js +26 -0
- package/lib/module/dates/wire/parseDateId.js.map +1 -0
- package/lib/module/dates/wire/parseMonthId.js +25 -0
- package/lib/module/dates/wire/parseMonthId.js.map +1 -0
- package/lib/module/dates/wire/toMonthId.js +18 -0
- package/lib/module/dates/wire/toMonthId.js.map +1 -0
- package/lib/module/dates/wire/todayDateId.js +13 -0
- package/lib/module/dates/wire/todayDateId.js.map +1 -0
- package/lib/module/dates/wire/todayMonthId.js +13 -0
- package/lib/module/dates/wire/todayMonthId.js.map +1 -0
- package/lib/module/formatNumber.js +46 -0
- package/lib/module/formatNumber.js.map +1 -0
- package/lib/module/index.js +17 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils.js +29 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/typescript/dates/calendar/formatCalendarMonthYear.d.ts +12 -0
- package/lib/typescript/dates/calendar/formatCalendarMonthYear.d.ts.map +1 -0
- package/lib/typescript/dates/calendar/formatDateTimeListDateRow.d.ts +13 -0
- package/lib/typescript/dates/calendar/formatDateTimeListDateRow.d.ts.map +1 -0
- package/lib/typescript/dates/calendar/formatMonthCalendarMonth.d.ts +13 -0
- package/lib/typescript/dates/calendar/formatMonthCalendarMonth.d.ts.map +1 -0
- package/lib/typescript/dates/calendar/formatMonthCalendarYear.d.ts +8 -0
- package/lib/typescript/dates/calendar/formatMonthCalendarYear.d.ts.map +1 -0
- package/lib/typescript/dates/calendar/getCalendarWeekdayLabels.d.ts +12 -0
- package/lib/typescript/dates/calendar/getCalendarWeekdayLabels.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/clampDateTimeId.d.ts +16 -0
- package/lib/typescript/dates/datetime/clampDateTimeId.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/compareDateTimeIds.d.ts +13 -0
- package/lib/typescript/dates/datetime/compareDateTimeIds.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/dateTimeId.d.ts +18 -0
- package/lib/typescript/dates/datetime/dateTimeId.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/formatDateTimeId.d.ts +12 -0
- package/lib/typescript/dates/datetime/formatDateTimeId.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/formatDateTimeListHour.d.ts +11 -0
- package/lib/typescript/dates/datetime/formatDateTimeListHour.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/formatDateTimeListMinute.d.ts +8 -0
- package/lib/typescript/dates/datetime/formatDateTimeListMinute.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/formatDateTimeListPeriod.d.ts +9 -0
- package/lib/typescript/dates/datetime/formatDateTimeListPeriod.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/isLocaleHour12.d.ts +12 -0
- package/lib/typescript/dates/datetime/isLocaleHour12.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/isValidDateTimeId.d.ts +9 -0
- package/lib/typescript/dates/datetime/isValidDateTimeId.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/nowDateTimeId.d.ts +14 -0
- package/lib/typescript/dates/datetime/nowDateTimeId.d.ts.map +1 -0
- package/lib/typescript/dates/datetime/parseDateTimeId.d.ts +9 -0
- package/lib/typescript/dates/datetime/parseDateTimeId.d.ts.map +1 -0
- package/lib/typescript/dates/display/formatDateForDisplay.d.ts +13 -0
- package/lib/typescript/dates/display/formatDateForDisplay.d.ts.map +1 -0
- package/lib/typescript/dates/display/formatDateRangeForDisplay.d.ts +16 -0
- package/lib/typescript/dates/display/formatDateRangeForDisplay.d.ts.map +1 -0
- package/lib/typescript/dates/display/formatDateTimeForDisplay.d.ts +13 -0
- package/lib/typescript/dates/display/formatDateTimeForDisplay.d.ts.map +1 -0
- package/lib/typescript/dates/display/formatMonthForDisplay.d.ts +13 -0
- package/lib/typescript/dates/display/formatMonthForDisplay.d.ts.map +1 -0
- package/lib/typescript/dates/index.d.ts +58 -0
- package/lib/typescript/dates/index.d.ts.map +1 -0
- package/lib/typescript/dates/internal/brand.d.ts +11 -0
- package/lib/typescript/dates/internal/brand.d.ts.map +1 -0
- package/lib/typescript/dates/internal/calendarHelpers.d.ts +8 -0
- package/lib/typescript/dates/internal/calendarHelpers.d.ts.map +1 -0
- package/lib/typescript/dates/internal/clampHelpers.d.ts +5 -0
- package/lib/typescript/dates/internal/clampHelpers.d.ts.map +1 -0
- package/lib/typescript/dates/internal/dateIdToNativeDate.d.ts +12 -0
- package/lib/typescript/dates/internal/dateIdToNativeDate.d.ts.map +1 -0
- package/lib/typescript/dates/internal/intlCache.d.ts +12 -0
- package/lib/typescript/dates/internal/intlCache.d.ts.map +1 -0
- package/lib/typescript/dates/internal/intlCopy.d.ts +10 -0
- package/lib/typescript/dates/internal/intlCopy.d.ts.map +1 -0
- package/lib/typescript/dates/internal/segmentBuilders.d.ts +12 -0
- package/lib/typescript/dates/internal/segmentBuilders.d.ts.map +1 -0
- package/lib/typescript/dates/labels/dateComponentLabels.d.ts +31 -0
- package/lib/typescript/dates/labels/dateComponentLabels.d.ts.map +1 -0
- package/lib/typescript/dates/ranges/compareDateIds.d.ts +10 -0
- package/lib/typescript/dates/ranges/compareDateIds.d.ts.map +1 -0
- package/lib/typescript/dates/ranges/compareMonthIds.d.ts +10 -0
- package/lib/typescript/dates/ranges/compareMonthIds.d.ts.map +1 -0
- package/lib/typescript/dates/ranges/dateRangeAroundDay.d.ts +14 -0
- package/lib/typescript/dates/ranges/dateRangeAroundDay.d.ts.map +1 -0
- package/lib/typescript/dates/ranges/dateRangeFromLastNDays.d.ts +16 -0
- package/lib/typescript/dates/ranges/dateRangeFromLastNDays.d.ts.map +1 -0
- package/lib/typescript/dates/ranges/eachDateIdInRange.d.ts +10 -0
- package/lib/typescript/dates/ranges/eachDateIdInRange.d.ts.map +1 -0
- package/lib/typescript/dates/ranges/normalizeDateRange.d.ts +15 -0
- package/lib/typescript/dates/ranges/normalizeDateRange.d.ts.map +1 -0
- package/lib/typescript/dates/segments/applyDateSegmentChange.d.ts +21 -0
- package/lib/typescript/dates/segments/applyDateSegmentChange.d.ts.map +1 -0
- package/lib/typescript/dates/segments/formatDateSegment.d.ts +13 -0
- package/lib/typescript/dates/segments/formatDateSegment.d.ts.map +1 -0
- package/lib/typescript/dates/segments/getDateFieldSegments.d.ts +13 -0
- package/lib/typescript/dates/segments/getDateFieldSegments.d.ts.map +1 -0
- package/lib/typescript/dates/segments/getDateTimeFieldSegments.d.ts +14 -0
- package/lib/typescript/dates/segments/getDateTimeFieldSegments.d.ts.map +1 -0
- package/lib/typescript/dates/segments/getDateTimeSegmentVisibility.d.ts +8 -0
- package/lib/typescript/dates/segments/getDateTimeSegmentVisibility.d.ts.map +1 -0
- package/lib/typescript/dates/segments/getEmptyDateSegmentText.d.ts +9 -0
- package/lib/typescript/dates/segments/getEmptyDateSegmentText.d.ts.map +1 -0
- package/lib/typescript/dates/segments/parseDateSegment.d.ts +13 -0
- package/lib/typescript/dates/segments/parseDateSegment.d.ts.map +1 -0
- package/lib/typescript/dates/types.d.ts +66 -0
- package/lib/typescript/dates/types.d.ts.map +1 -0
- package/lib/typescript/dates/wire/clampDateParts.d.ts +12 -0
- package/lib/typescript/dates/wire/clampDateParts.d.ts.map +1 -0
- package/lib/typescript/dates/wire/clampMonthParts.d.ts +12 -0
- package/lib/typescript/dates/wire/clampMonthParts.d.ts.map +1 -0
- package/lib/typescript/dates/wire/dateId.d.ts +24 -0
- package/lib/typescript/dates/wire/dateId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/formatDateId.d.ts +12 -0
- package/lib/typescript/dates/wire/formatDateId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/formatMonthId.d.ts +12 -0
- package/lib/typescript/dates/wire/formatMonthId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/isValidDateId.d.ts +13 -0
- package/lib/typescript/dates/wire/isValidDateId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/isValidDateParts.d.ts +9 -0
- package/lib/typescript/dates/wire/isValidDateParts.d.ts.map +1 -0
- package/lib/typescript/dates/wire/isValidMonthId.d.ts +13 -0
- package/lib/typescript/dates/wire/isValidMonthId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/isValidMonthParts.d.ts +9 -0
- package/lib/typescript/dates/wire/isValidMonthParts.d.ts.map +1 -0
- package/lib/typescript/dates/wire/monthId.d.ts +22 -0
- package/lib/typescript/dates/wire/monthId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/parseDateId.d.ts +12 -0
- package/lib/typescript/dates/wire/parseDateId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/parseMonthId.d.ts +12 -0
- package/lib/typescript/dates/wire/parseMonthId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/toMonthId.d.ts +12 -0
- package/lib/typescript/dates/wire/toMonthId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/todayDateId.d.ts +8 -0
- package/lib/typescript/dates/wire/todayDateId.d.ts.map +1 -0
- package/lib/typescript/dates/wire/todayMonthId.d.ts +8 -0
- package/lib/typescript/dates/wire/todayMonthId.d.ts.map +1 -0
- package/lib/typescript/formatNumber.d.ts +19 -0
- package/lib/typescript/formatNumber.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +5 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +2 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils.d.ts +10 -0
- package/lib/typescript/utils.d.ts.map +1 -0
- package/package.json +50 -0
- package/src/__tests__/applyDateSegmentChange.test.ts +26 -0
- package/src/__tests__/calendarFormatters.test.ts +35 -0
- package/src/__tests__/clampDateParts.test.ts +16 -0
- package/src/__tests__/compareDateIds.test.ts +7 -0
- package/src/__tests__/compareMonthIds.test.ts +19 -0
- package/src/__tests__/dateComponentLabels.test.ts +25 -0
- package/src/__tests__/dateRangeAroundDay.test.ts +10 -0
- package/src/__tests__/dateRangeFromLastNDays.test.ts +8 -0
- package/src/__tests__/dateSegmentHelpers.test.ts +24 -0
- package/src/__tests__/datetimeHelpers.test.ts +65 -0
- package/src/__tests__/displayFormatters.test.ts +34 -0
- package/src/__tests__/eachDateIdInRange.test.ts +11 -0
- package/src/__tests__/formatCalendarMonthYear.test.ts +9 -0
- package/src/__tests__/formatDateForDisplay.test.ts +11 -0
- package/src/__tests__/formatDateId.test.ts +15 -0
- package/src/__tests__/formatMonthId.test.ts +7 -0
- package/src/__tests__/formatNumber.test.ts +35 -0
- package/src/__tests__/getDateFieldSegments.test.ts +35 -0
- package/src/__tests__/getDateTimeFieldSegments.test.ts +140 -0
- package/src/__tests__/getDateTimeSegmentVisibility.test.ts +12 -0
- package/src/__tests__/intlCopy.test.ts +64 -0
- package/src/__tests__/isValidDateId.test.ts +8 -0
- package/src/__tests__/isValidMonthId.test.ts +8 -0
- package/src/__tests__/normalizeDateRange.test.ts +10 -0
- package/src/__tests__/toMonthId.test.ts +7 -0
- package/src/__tests__/todayDateId.test.ts +7 -0
- package/src/__tests__/wireConstructors.test.ts +74 -0
- package/src/dates/calendar/formatCalendarMonthYear.ts +21 -0
- package/src/dates/calendar/formatDateTimeListDateRow.ts +41 -0
- package/src/dates/calendar/formatMonthCalendarMonth.ts +21 -0
- package/src/dates/calendar/formatMonthCalendarYear.ts +9 -0
- package/src/dates/calendar/getCalendarWeekdayLabels.ts +23 -0
- package/src/dates/datetime/clampDateTimeId.ts +25 -0
- package/src/dates/datetime/compareDateTimeIds.ts +23 -0
- package/src/dates/datetime/dateTimeId.ts +36 -0
- package/src/dates/datetime/formatDateTimeId.ts +35 -0
- package/src/dates/datetime/formatDateTimeListHour.ts +14 -0
- package/src/dates/datetime/formatDateTimeListMinute.ts +9 -0
- package/src/dates/datetime/formatDateTimeListPeriod.ts +12 -0
- package/src/dates/datetime/isLocaleHour12.ts +23 -0
- package/src/dates/datetime/isValidDateTimeId.ts +18 -0
- package/src/dates/datetime/nowDateTimeId.ts +53 -0
- package/src/dates/datetime/parseDateTimeId.ts +24 -0
- package/src/dates/display/formatDateForDisplay.ts +21 -0
- package/src/dates/display/formatDateRangeForDisplay.ts +23 -0
- package/src/dates/display/formatDateTimeForDisplay.ts +37 -0
- package/src/dates/display/formatMonthForDisplay.ts +26 -0
- package/src/dates/index.ts +86 -0
- package/src/dates/internal/brand.ts +11 -0
- package/src/dates/internal/calendarHelpers.ts +18 -0
- package/src/dates/internal/clampHelpers.ts +15 -0
- package/src/dates/internal/dateIdToNativeDate.ts +15 -0
- package/src/dates/internal/intlCache.ts +40 -0
- package/src/dates/internal/intlCopy.ts +75 -0
- package/src/dates/internal/segmentBuilders.ts +94 -0
- package/src/dates/labels/dateComponentLabels.ts +79 -0
- package/src/dates/ranges/compareDateIds.ts +21 -0
- package/src/dates/ranges/compareMonthIds.ts +26 -0
- package/src/dates/ranges/dateRangeAroundDay.ts +24 -0
- package/src/dates/ranges/dateRangeFromLastNDays.ts +26 -0
- package/src/dates/ranges/eachDateIdInRange.ts +21 -0
- package/src/dates/ranges/normalizeDateRange.ts +18 -0
- package/src/dates/segments/applyDateSegmentChange.ts +57 -0
- package/src/dates/segments/formatDateSegment.ts +18 -0
- package/src/dates/segments/getDateFieldSegments.ts +45 -0
- package/src/dates/segments/getDateTimeFieldSegments.ts +126 -0
- package/src/dates/segments/getDateTimeSegmentVisibility.ts +14 -0
- package/src/dates/segments/getEmptyDateSegmentText.ts +12 -0
- package/src/dates/segments/parseDateSegment.ts +25 -0
- package/src/dates/types.ts +80 -0
- package/src/dates/wire/clampDateParts.ts +17 -0
- package/src/dates/wire/clampMonthParts.ts +15 -0
- package/src/dates/wire/dateId.ts +44 -0
- package/src/dates/wire/formatDateId.ts +20 -0
- package/src/dates/wire/formatMonthId.ts +16 -0
- package/src/dates/wire/isValidDateId.ts +22 -0
- package/src/dates/wire/isValidDateParts.ts +17 -0
- package/src/dates/wire/isValidMonthId.ts +22 -0
- package/src/dates/wire/isValidMonthParts.ts +11 -0
- package/src/dates/wire/monthId.ts +42 -0
- package/src/dates/wire/parseDateId.ts +20 -0
- package/src/dates/wire/parseMonthId.ts +20 -0
- package/src/dates/wire/toMonthId.ts +17 -0
- package/src/dates/wire/todayDateId.ts +12 -0
- package/src/dates/wire/todayMonthId.ts +12 -0
- package/src/formatNumber.ts +56 -0
- package/src/index.ts +82 -0
- package/src/types.ts +1 -0
- package/src/utils.ts +29 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats a year label for month-calendar decade/year pickers.
|
|
5
|
+
*
|
|
6
|
+
* @param year - Four-digit year.
|
|
7
|
+
* @returns Year as a string.
|
|
8
|
+
*/
|
|
9
|
+
export function formatMonthCalendarYear(year) {
|
|
10
|
+
return String(year);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=formatMonthCalendarYear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatMonthCalendarYear","year","String"],"sourceRoot":"../../../../src","sources":["dates/calendar/formatMonthCalendarYear.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,uBAAuBA,CAACC,IAAY,EAAU;EAC5D,OAAOC,MAAM,CAACD,IAAI,CAAC;AACrB","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { formatCalendarWeekday } from '../internal/calendarHelpers';
|
|
4
|
+
/**
|
|
5
|
+
* Returns ordered weekday labels for a calendar week header.
|
|
6
|
+
*
|
|
7
|
+
* @param options - Locale, first day of week, and weekday width.
|
|
8
|
+
* @returns Array of seven weekday label strings.
|
|
9
|
+
*/
|
|
10
|
+
export function getCalendarWeekdayLabels(options) {
|
|
11
|
+
const firstDayOfWeek = options?.firstDayOfWeek ?? 0;
|
|
12
|
+
const labels = [];
|
|
13
|
+
for (let i = 0; i < 7; i += 1) {
|
|
14
|
+
const index = (firstDayOfWeek + i) % 7;
|
|
15
|
+
labels.push(formatCalendarWeekday(index, options));
|
|
16
|
+
}
|
|
17
|
+
return labels;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=getCalendarWeekdayLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatCalendarWeekday","getCalendarWeekdayLabels","options","firstDayOfWeek","labels","i","index","push"],"sourceRoot":"../../../../src","sources":["dates/calendar/getCalendarWeekdayLabels.ts"],"mappings":";;AAAA,SAASA,qBAAqB,QAAQ,6BAA6B;AAGnE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,wBAAwBA,CACtCC,OAGC,EACS;EACV,MAAMC,cAAc,GAAGD,OAAO,EAAEC,cAAc,IAAI,CAAC;EACnD,MAAMC,MAAgB,GAAG,EAAE;EAC3B,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAI,CAAC,EAAE;IAC7B,MAAMC,KAAK,GAAG,CAACH,cAAc,GAAGE,CAAC,IAAI,CAAC;IACtCD,MAAM,CAACG,IAAI,CAACP,qBAAqB,CAACM,KAAK,EAAEJ,OAAO,CAAC,CAAC;EACpD;EACA,OAAOE,MAAM;AACf","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { compareDateTimeIds } from './compareDateTimeIds';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Clamps a wire date-time into the inclusive `[min, max]` range.
|
|
7
|
+
*
|
|
8
|
+
* Returns `min` when `value` is earlier than `min`, `max` when later than `max`,
|
|
9
|
+
* otherwise `value` unchanged. Omitted bounds are ignored.
|
|
10
|
+
*
|
|
11
|
+
* @param value - Wire date-time to clamp.
|
|
12
|
+
* @param bounds - Optional inclusive `min` / `max` wire date-times.
|
|
13
|
+
* @returns The clamped `DateTimeId`.
|
|
14
|
+
*/
|
|
15
|
+
export function clampDateTimeId(value, bounds) {
|
|
16
|
+
if (bounds.min && compareDateTimeIds(value, bounds.min) < 0) {
|
|
17
|
+
return bounds.min;
|
|
18
|
+
}
|
|
19
|
+
if (bounds.max && compareDateTimeIds(value, bounds.max) > 0) {
|
|
20
|
+
return bounds.max;
|
|
21
|
+
}
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=clampDateTimeId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["compareDateTimeIds","clampDateTimeId","value","bounds","min","max"],"sourceRoot":"../../../../src","sources":["dates/datetime/clampDateTimeId.ts"],"mappings":";;AACA,SAASA,kBAAkB,QAAQ,sBAAsB;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAC7BC,KAAiB,EACjBC,MAA8C,EAClC;EACZ,IAAIA,MAAM,CAACC,GAAG,IAAIJ,kBAAkB,CAACE,KAAK,EAAEC,MAAM,CAACC,GAAG,CAAC,GAAG,CAAC,EAAE;IAC3D,OAAOD,MAAM,CAACC,GAAG;EACnB;EACA,IAAID,MAAM,CAACE,GAAG,IAAIL,kBAAkB,CAACE,KAAK,EAAEC,MAAM,CAACE,GAAG,CAAC,GAAG,CAAC,EAAE;IAC3D,OAAOF,MAAM,CAACE,GAAG;EACnB;EACA,OAAOH,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { compareAsc, parseISO } from 'date-fns';
|
|
4
|
+
/**
|
|
5
|
+
* Compares two wire date-times chronologically.
|
|
6
|
+
*
|
|
7
|
+
* Handles local (`YYYY-MM-DDTHH:MM`) and UTC (`…Z`) forms alike by parsing each
|
|
8
|
+
* to an absolute instant before comparing.
|
|
9
|
+
*
|
|
10
|
+
* @param a - First wire date-time.
|
|
11
|
+
* @param b - Second wire date-time.
|
|
12
|
+
* @returns `-1` if `a` is earlier, `1` if later, `0` if equal.
|
|
13
|
+
*/
|
|
14
|
+
export function compareDateTimeIds(a, b) {
|
|
15
|
+
const result = compareAsc(parseISO(a), parseISO(b));
|
|
16
|
+
if (result < 0) {
|
|
17
|
+
return -1;
|
|
18
|
+
}
|
|
19
|
+
if (result > 0) {
|
|
20
|
+
return 1;
|
|
21
|
+
}
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=compareDateTimeIds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["compareAsc","parseISO","compareDateTimeIds","a","b","result"],"sourceRoot":"../../../../src","sources":["dates/datetime/compareDateTimeIds.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,QAAQ,QAAQ,UAAU;AAG/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACC,CAAa,EAAEC,CAAa,EAAc;EAC3E,MAAMC,MAAM,GAAGL,UAAU,CAACC,QAAQ,CAACE,CAAC,CAAC,EAAEF,QAAQ,CAACG,CAAC,CAAC,CAAC;EACnD,IAAIC,MAAM,GAAG,CAAC,EAAE;IACd,OAAO,CAAC,CAAC;EACX;EACA,IAAIA,MAAM,GAAG,CAAC,EAAE;IACd,OAAO,CAAC;EACV;EACA,OAAO,CAAC;AACV","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { asDateTimeId } from '../internal/brand';
|
|
4
|
+
import { formatDateTimeId } from './formatDateTimeId';
|
|
5
|
+
import { isValidDateTimeId } from './isValidDateTimeId';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Validating smart constructor for a wire {@link DateTimeId} (local ISO-like,
|
|
9
|
+
* e.g. `YYYY-MM-DDTHH:mm`).
|
|
10
|
+
*
|
|
11
|
+
* Accepts either a wire string or {@link DateTimeParts}. Throws `RangeError` on
|
|
12
|
+
* input that does not parse to a valid date-time.
|
|
13
|
+
*
|
|
14
|
+
* @param input - A wire date-time string or {@link DateTimeParts}.
|
|
15
|
+
* @returns The branded `DateTimeId`.
|
|
16
|
+
* @throws RangeError when the input is not a valid `DateTimeId`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* dateTimeId('2026-08-07T14:30'); // DateTimeId
|
|
20
|
+
* dateTimeId({ year: 2026, month: 8, day: 7, hour: 14, minute: 30 }); // DateTimeId
|
|
21
|
+
*/
|
|
22
|
+
export function dateTimeId(input) {
|
|
23
|
+
if (typeof input === 'string') {
|
|
24
|
+
if (!isValidDateTimeId(input)) {
|
|
25
|
+
throw new RangeError(`Invalid DateTimeId: "${input}". Expected a wire date-time such as "YYYY-MM-DDTHH:mm".`);
|
|
26
|
+
}
|
|
27
|
+
return input;
|
|
28
|
+
}
|
|
29
|
+
const built = formatDateTimeId(input);
|
|
30
|
+
if (!isValidDateTimeId(built)) {
|
|
31
|
+
throw new RangeError(`Invalid DateTimeId parts: ${JSON.stringify(input)}.`);
|
|
32
|
+
}
|
|
33
|
+
return asDateTimeId(built);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=dateTimeId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["asDateTimeId","formatDateTimeId","isValidDateTimeId","dateTimeId","input","RangeError","built","JSON","stringify"],"sourceRoot":"../../../../src","sources":["dates/datetime/dateTimeId.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,mBAAmB;AAEhD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,iBAAiB,QAAQ,qBAAqB;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,KAA6B,EAAc;EACpE,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAI,CAACF,iBAAiB,CAACE,KAAK,CAAC,EAAE;MAC7B,MAAM,IAAIC,UAAU,CAClB,wBAAwBD,KAAK,0DAC/B,CAAC;IACH;IACA,OAAOA,KAAK;EACd;EAEA,MAAME,KAAK,GAAGL,gBAAgB,CAACG,KAAK,CAAC;EACrC,IAAI,CAACF,iBAAiB,CAACI,KAAK,CAAC,EAAE;IAC7B,MAAM,IAAID,UAAU,CAAC,6BAA6BE,IAAI,CAACC,SAAS,CAACJ,KAAK,CAAC,GAAG,CAAC;EAC7E;EACA,OAAOJ,YAAY,CAACM,KAAK,CAAC;AAC5B","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { asDateTimeId } from '../internal/brand';
|
|
4
|
+
import { formatDateId } from '../wire/formatDateId';
|
|
5
|
+
/**
|
|
6
|
+
* Builds a wire `DateTimeId` from parts. Local by default; pass `{ utc: true }` for ISO UTC.
|
|
7
|
+
*
|
|
8
|
+
* @param parts - Date and time parts.
|
|
9
|
+
* @param options - When `utc` is true, returns an ISO UTC string ending in `Z`.
|
|
10
|
+
* @returns Wire `DateTimeId` string.
|
|
11
|
+
*/
|
|
12
|
+
export function formatDateTimeId(parts, options) {
|
|
13
|
+
const date = options?.utc ? new Date(Date.UTC(parts.year, parts.month - 1, parts.day, parts.hour, parts.minute, parts.second ?? 0)) : new Date(parts.year, parts.month - 1, parts.day, parts.hour, parts.minute, parts.second ?? 0);
|
|
14
|
+
if (options?.utc) {
|
|
15
|
+
return asDateTimeId(date.toISOString());
|
|
16
|
+
}
|
|
17
|
+
const datePart = formatDateId(parts);
|
|
18
|
+
const hour = String(parts.hour).padStart(2, '0');
|
|
19
|
+
const minute = String(parts.minute).padStart(2, '0');
|
|
20
|
+
const second = parts.second != null ? `:${String(parts.second).padStart(2, '0')}` : '';
|
|
21
|
+
return asDateTimeId(`${datePart}T${hour}:${minute}${second}`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=formatDateTimeId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["asDateTimeId","formatDateId","formatDateTimeId","parts","options","date","utc","Date","UTC","year","month","day","hour","minute","second","toISOString","datePart","String","padStart"],"sourceRoot":"../../../../src","sources":["dates/datetime/formatDateTimeId.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,mBAAmB;AAChD,SAASC,YAAY,QAAQ,sBAAsB;AAGnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACC,KAAoB,EAAEC,OAA2B,EAAc;EAC9F,MAAMC,IAAI,GAAGD,OAAO,EAAEE,GAAG,GACrB,IAAIC,IAAI,CACNA,IAAI,CAACC,GAAG,CACNL,KAAK,CAACM,IAAI,EACVN,KAAK,CAACO,KAAK,GAAG,CAAC,EACfP,KAAK,CAACQ,GAAG,EACTR,KAAK,CAACS,IAAI,EACVT,KAAK,CAACU,MAAM,EACZV,KAAK,CAACW,MAAM,IAAI,CAClB,CACF,CAAC,GACD,IAAIP,IAAI,CAACJ,KAAK,CAACM,IAAI,EAAEN,KAAK,CAACO,KAAK,GAAG,CAAC,EAAEP,KAAK,CAACQ,GAAG,EAAER,KAAK,CAACS,IAAI,EAAET,KAAK,CAACU,MAAM,EAAEV,KAAK,CAACW,MAAM,IAAI,CAAC,CAAC;EAEjG,IAAIV,OAAO,EAAEE,GAAG,EAAE;IAChB,OAAON,YAAY,CAACK,IAAI,CAACU,WAAW,CAAC,CAAC,CAAC;EACzC;EAEA,MAAMC,QAAQ,GAAGf,YAAY,CAACE,KAAK,CAAC;EACpC,MAAMS,IAAI,GAAGK,MAAM,CAACd,KAAK,CAACS,IAAI,CAAC,CAACM,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EAChD,MAAML,MAAM,GAAGI,MAAM,CAACd,KAAK,CAACU,MAAM,CAAC,CAACK,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EACpD,MAAMJ,MAAM,GAAGX,KAAK,CAACW,MAAM,IAAI,IAAI,GAAG,IAAIG,MAAM,CAACd,KAAK,CAACW,MAAM,CAAC,CAACI,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE;EACtF,OAAOlB,YAAY,CAAC,GAAGgB,QAAQ,IAAIJ,IAAI,IAAIC,MAAM,GAAGC,MAAM,EAAE,CAAC;AAC/D","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats the hour label for a date-time list column.
|
|
5
|
+
*
|
|
6
|
+
* @param hour - Hour value (0–23).
|
|
7
|
+
* @param options - When `hour12` is true, returns 1–12 without leading zero.
|
|
8
|
+
* @returns Hour label string.
|
|
9
|
+
*/
|
|
10
|
+
export function formatDateTimeListHour(hour, options) {
|
|
11
|
+
if (options?.hour12) {
|
|
12
|
+
const h = hour % 12 || 12;
|
|
13
|
+
return String(h);
|
|
14
|
+
}
|
|
15
|
+
return String(hour).padStart(2, '0');
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=formatDateTimeListHour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatDateTimeListHour","hour","options","hour12","h","String","padStart"],"sourceRoot":"../../../../src","sources":["dates/datetime/formatDateTimeListHour.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,sBAAsBA,CAACC,IAAY,EAAEC,OAA8B,EAAU;EAC3F,IAAIA,OAAO,EAAEC,MAAM,EAAE;IACnB,MAAMC,CAAC,GAAGH,IAAI,GAAG,EAAE,IAAI,EAAE;IACzB,OAAOI,MAAM,CAACD,CAAC,CAAC;EAClB;EACA,OAAOC,MAAM,CAACJ,IAAI,CAAC,CAACK,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AACtC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats a zero-padded minute label for a date-time list column.
|
|
5
|
+
*
|
|
6
|
+
* @param minute - Minute value (0–59).
|
|
7
|
+
* @returns Two-digit minute string.
|
|
8
|
+
*/
|
|
9
|
+
export function formatDateTimeListMinute(minute) {
|
|
10
|
+
return String(minute).padStart(2, '0');
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=formatDateTimeListMinute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatDateTimeListMinute","minute","String","padStart"],"sourceRoot":"../../../../src","sources":["dates/datetime/formatDateTimeListMinute.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,wBAAwBA,CAACC,MAAc,EAAU;EAC/D,OAAOC,MAAM,CAACD,MAAM,CAAC,CAACE,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AACxC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { formatDayPeriodFromHour } from '../internal/intlCopy';
|
|
4
|
+
/**
|
|
5
|
+
* Returns the day-period label (AM/PM or locale equivalent) derived from a 0–23 hour value.
|
|
6
|
+
*
|
|
7
|
+
* @param hour - Hour value (0–23).
|
|
8
|
+
* @param options - Locale for the day-period label.
|
|
9
|
+
*/
|
|
10
|
+
export function formatDateTimeListPeriod(hour, options) {
|
|
11
|
+
return formatDayPeriodFromHour(hour, options?.locale);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=formatDateTimeListPeriod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatDayPeriodFromHour","formatDateTimeListPeriod","hour","options","locale"],"sourceRoot":"../../../../src","sources":["dates/datetime/formatDateTimeListPeriod.ts"],"mappings":";;AAAA,SAASA,uBAAuB,QAAQ,sBAAsB;AAG9D;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,wBAAwBA,CAACC,IAAY,EAAEC,OAA2B,EAAU;EAC1F,OAAOH,uBAAuB,CAACE,IAAI,EAAEC,OAAO,EAAEC,MAAM,CAAC;AACvD","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Whether the given locale conventionally uses a 12-hour clock (AM/PM).
|
|
5
|
+
*
|
|
6
|
+
* Derived from the locale's resolved hour cycle so date-time components can
|
|
7
|
+
* default their clock to the locale instead of hardcoding 12-hour. Pass an
|
|
8
|
+
* explicit `hour12` to override.
|
|
9
|
+
*
|
|
10
|
+
* @param locale - BCP-47 locale. Defaults to `en-US`.
|
|
11
|
+
* @returns `true` when the locale uses a 12-hour clock.
|
|
12
|
+
*/
|
|
13
|
+
export function isLocaleHour12(locale) {
|
|
14
|
+
try {
|
|
15
|
+
const resolved = new Intl.DateTimeFormat(locale ?? 'en-US', {
|
|
16
|
+
hour: 'numeric'
|
|
17
|
+
}).resolvedOptions();
|
|
18
|
+
if (typeof resolved.hour12 === 'boolean') {
|
|
19
|
+
return resolved.hour12;
|
|
20
|
+
}
|
|
21
|
+
return resolved.hourCycle === 'h11' || resolved.hourCycle === 'h12';
|
|
22
|
+
} catch {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=isLocaleHour12.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isLocaleHour12","locale","resolved","Intl","DateTimeFormat","hour","resolvedOptions","hour12","hourCycle"],"sourceRoot":"../../../../src","sources":["dates/datetime/isLocaleHour12.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,cAAcA,CAACC,MAAe,EAAW;EACvD,IAAI;IACF,MAAMC,QAAQ,GAAG,IAAIC,IAAI,CAACC,cAAc,CAACH,MAAM,IAAI,OAAO,EAAE;MAC1DI,IAAI,EAAE;IACR,CAAC,CAAC,CAACC,eAAe,CAAC,CAA6C;IAChE,IAAI,OAAOJ,QAAQ,CAACK,MAAM,KAAK,SAAS,EAAE;MACxC,OAAOL,QAAQ,CAACK,MAAM;IACxB;IACA,OAAOL,QAAQ,CAACM,SAAS,KAAK,KAAK,IAAIN,QAAQ,CAACM,SAAS,KAAK,KAAK;EACrE,CAAC,CAAC,MAAM;IACN,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { isValid, parseISO } from 'date-fns';
|
|
4
|
+
const LOCAL_DATE_TIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Type guard for local `DateTimeId` (`YYYY-MM-DDTHH:mm` or with seconds) and UTC `…Z` strings.
|
|
8
|
+
*
|
|
9
|
+
* @param dateTimeId - Candidate wire date-time string.
|
|
10
|
+
* @returns `true` when `dateTimeId` is a valid `DateTimeId`.
|
|
11
|
+
*/
|
|
12
|
+
export function isValidDateTimeId(dateTimeId) {
|
|
13
|
+
if (!LOCAL_DATE_TIME_PATTERN.test(dateTimeId) && !dateTimeId.endsWith('Z')) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const parsed = parseISO(dateTimeId);
|
|
17
|
+
return isValid(parsed);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=isValidDateTimeId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isValid","parseISO","LOCAL_DATE_TIME_PATTERN","isValidDateTimeId","dateTimeId","test","endsWith","parsed"],"sourceRoot":"../../../../src","sources":["dates/datetime/isValidDateTimeId.ts"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,UAAU;AAG5C,MAAMC,uBAAuB,GAAG,0CAA0C;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,UAAkB,EAA4B;EAC9E,IAAI,CAACF,uBAAuB,CAACG,IAAI,CAACD,UAAU,CAAC,IAAI,CAACA,UAAU,CAACE,QAAQ,CAAC,GAAG,CAAC,EAAE;IAC1E,OAAO,KAAK;EACd;EACA,MAAMC,MAAM,GAAGN,QAAQ,CAACG,UAAU,CAAC;EACnC,OAAOJ,OAAO,CAACO,MAAM,CAAC;AACxB","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { formatDateTimeId } from './formatDateTimeId';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Returns the local device date/time as a `DateTimeId`, truncated to the requested granularity.
|
|
7
|
+
*
|
|
8
|
+
* @param options - Optional granularity; defaults to `'minute'`.
|
|
9
|
+
* @returns Wire `DateTimeId` for the current local time.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* nowDateTimeId({ granularity: 'minute' }) // '2026-07-28T14:30'
|
|
13
|
+
*/
|
|
14
|
+
export function nowDateTimeId(options) {
|
|
15
|
+
const now = new Date();
|
|
16
|
+
const parts = {
|
|
17
|
+
year: now.getFullYear(),
|
|
18
|
+
month: now.getMonth() + 1,
|
|
19
|
+
day: now.getDate(),
|
|
20
|
+
hour: now.getHours(),
|
|
21
|
+
minute: now.getMinutes(),
|
|
22
|
+
second: now.getSeconds()
|
|
23
|
+
};
|
|
24
|
+
switch (options?.granularity ?? 'minute') {
|
|
25
|
+
case 'day':
|
|
26
|
+
return formatDateTimeId({
|
|
27
|
+
year: parts.year,
|
|
28
|
+
month: parts.month,
|
|
29
|
+
day: parts.day,
|
|
30
|
+
hour: 0,
|
|
31
|
+
minute: 0
|
|
32
|
+
});
|
|
33
|
+
case 'hour':
|
|
34
|
+
return formatDateTimeId({
|
|
35
|
+
year: parts.year,
|
|
36
|
+
month: parts.month,
|
|
37
|
+
day: parts.day,
|
|
38
|
+
hour: parts.hour,
|
|
39
|
+
minute: 0
|
|
40
|
+
});
|
|
41
|
+
case 'minute':
|
|
42
|
+
return formatDateTimeId({
|
|
43
|
+
year: parts.year,
|
|
44
|
+
month: parts.month,
|
|
45
|
+
day: parts.day,
|
|
46
|
+
hour: parts.hour,
|
|
47
|
+
minute: parts.minute
|
|
48
|
+
});
|
|
49
|
+
case 'second':
|
|
50
|
+
default:
|
|
51
|
+
return formatDateTimeId(parts);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=nowDateTimeId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatDateTimeId","nowDateTimeId","options","now","Date","parts","year","getFullYear","month","getMonth","day","getDate","hour","getHours","minute","getMinutes","second","getSeconds","granularity"],"sourceRoot":"../../../../src","sources":["dates/datetime/nowDateTimeId.ts"],"mappings":";;AACA,SAASA,gBAAgB,QAAQ,oBAAoB;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,OAA+C,EAAc;EACzF,MAAMC,GAAG,GAAG,IAAIC,IAAI,CAAC,CAAC;EACtB,MAAMC,KAAoB,GAAG;IAC3BC,IAAI,EAAEH,GAAG,CAACI,WAAW,CAAC,CAAC;IACvBC,KAAK,EAAEL,GAAG,CAACM,QAAQ,CAAC,CAAC,GAAG,CAAC;IACzBC,GAAG,EAAEP,GAAG,CAACQ,OAAO,CAAC,CAAC;IAClBC,IAAI,EAAET,GAAG,CAACU,QAAQ,CAAC,CAAC;IACpBC,MAAM,EAAEX,GAAG,CAACY,UAAU,CAAC,CAAC;IACxBC,MAAM,EAAEb,GAAG,CAACc,UAAU,CAAC;EACzB,CAAC;EAED,QAAQf,OAAO,EAAEgB,WAAW,IAAI,QAAQ;IACtC,KAAK,KAAK;MACR,OAAOlB,gBAAgB,CAAC;QACtBM,IAAI,EAAED,KAAK,CAACC,IAAI;QAChBE,KAAK,EAAEH,KAAK,CAACG,KAAK;QAClBE,GAAG,EAAEL,KAAK,CAACK,GAAG;QACdE,IAAI,EAAE,CAAC;QACPE,MAAM,EAAE;MACV,CAAC,CAAC;IACJ,KAAK,MAAM;MACT,OAAOd,gBAAgB,CAAC;QACtBM,IAAI,EAAED,KAAK,CAACC,IAAI;QAChBE,KAAK,EAAEH,KAAK,CAACG,KAAK;QAClBE,GAAG,EAAEL,KAAK,CAACK,GAAG;QACdE,IAAI,EAAEP,KAAK,CAACO,IAAI;QAChBE,MAAM,EAAE;MACV,CAAC,CAAC;IACJ,KAAK,QAAQ;MACX,OAAOd,gBAAgB,CAAC;QACtBM,IAAI,EAAED,KAAK,CAACC,IAAI;QAChBE,KAAK,EAAEH,KAAK,CAACG,KAAK;QAClBE,GAAG,EAAEL,KAAK,CAACK,GAAG;QACdE,IAAI,EAAEP,KAAK,CAACO,IAAI;QAChBE,MAAM,EAAET,KAAK,CAACS;MAChB,CAAC,CAAC;IACJ,KAAK,QAAQ;IACb;MACE,OAAOd,gBAAgB,CAACK,KAAK,CAAC;EAClC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { parseISO } from 'date-fns';
|
|
4
|
+
import { isValidDateTimeId } from './isValidDateTimeId';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Parses a wire `DateTimeId` into numeric parts, or `null` when invalid.
|
|
8
|
+
*
|
|
9
|
+
* @param dateTimeId - Wire date-time string.
|
|
10
|
+
* @returns Parsed parts, or `null` when `dateTimeId` is invalid.
|
|
11
|
+
*/
|
|
12
|
+
export function parseDateTimeId(dateTimeId) {
|
|
13
|
+
if (!isValidDateTimeId(dateTimeId)) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
const date = parseISO(dateTimeId);
|
|
17
|
+
return {
|
|
18
|
+
year: date.getFullYear(),
|
|
19
|
+
month: date.getMonth() + 1,
|
|
20
|
+
day: date.getDate(),
|
|
21
|
+
hour: date.getHours(),
|
|
22
|
+
minute: date.getMinutes(),
|
|
23
|
+
second: date.getSeconds()
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=parseDateTimeId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["parseISO","isValidDateTimeId","parseDateTimeId","dateTimeId","date","year","getFullYear","month","getMonth","day","getDate","hour","getHours","minute","getMinutes","second","getSeconds"],"sourceRoot":"../../../../src","sources":["dates/datetime/parseDateTimeId.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,UAAU;AAEnC,SAASC,iBAAiB,QAAQ,qBAAqB;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,UAAsB,EAAwB;EAC5E,IAAI,CAACF,iBAAiB,CAACE,UAAU,CAAC,EAAE;IAClC,OAAO,IAAI;EACb;EACA,MAAMC,IAAI,GAAGJ,QAAQ,CAACG,UAAU,CAAC;EACjC,OAAO;IACLE,IAAI,EAAED,IAAI,CAACE,WAAW,CAAC,CAAC;IACxBC,KAAK,EAAEH,IAAI,CAACI,QAAQ,CAAC,CAAC,GAAG,CAAC;IAC1BC,GAAG,EAAEL,IAAI,CAACM,OAAO,CAAC,CAAC;IACnBC,IAAI,EAAEP,IAAI,CAACQ,QAAQ,CAAC,CAAC;IACrBC,MAAM,EAAET,IAAI,CAACU,UAAU,CAAC,CAAC;IACzBC,MAAM,EAAEX,IAAI,CAACY,UAAU,CAAC;EAC1B,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { dateIdToNativeDate } from '../internal/dateIdToNativeDate';
|
|
4
|
+
import { getCachedDateFormatter } from '../internal/intlCache';
|
|
5
|
+
/**
|
|
6
|
+
* Formats a locale-aware date string for UI labels (never store the result in form state).
|
|
7
|
+
*
|
|
8
|
+
* @param dateId - Wire date string (`YYYY-MM-DD`).
|
|
9
|
+
* @param options - Locale, date style, and optional time zone.
|
|
10
|
+
* @returns Locale-formatted date string.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* formatDateForDisplay('2026-07-28', { locale: 'en-US' }) // e.g. '7/28/26'
|
|
14
|
+
*/
|
|
15
|
+
export function formatDateForDisplay(dateId, options) {
|
|
16
|
+
const formatter = getCachedDateFormatter(options?.locale ?? 'en-US', {
|
|
17
|
+
dateStyle: options?.dateStyle ?? 'short',
|
|
18
|
+
...(options?.timeZone ? {
|
|
19
|
+
timeZone: options.timeZone
|
|
20
|
+
} : {})
|
|
21
|
+
});
|
|
22
|
+
return formatter.format(dateIdToNativeDate(dateId));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=formatDateForDisplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["dateIdToNativeDate","getCachedDateFormatter","formatDateForDisplay","dateId","options","formatter","locale","dateStyle","timeZone","format"],"sourceRoot":"../../../../src","sources":["dates/display/formatDateForDisplay.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,gCAAgC;AACnE,SAASC,sBAAsB,QAAQ,uBAAuB;AAG9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAACC,MAAc,EAAEC,OAAkC,EAAU;EAC/F,MAAMC,SAAS,GAAGJ,sBAAsB,CAACG,OAAO,EAAEE,MAAM,IAAI,OAAO,EAAE;IACnEC,SAAS,EAAEH,OAAO,EAAEG,SAAS,IAAI,OAAO;IACxC,IAAIH,OAAO,EAAEI,QAAQ,GAAG;MAAEA,QAAQ,EAAEJ,OAAO,CAACI;IAAS,CAAC,GAAG,CAAC,CAAC;EAC7D,CAAC,CAAC;EACF,OAAOH,SAAS,CAACI,MAAM,CAACT,kBAAkB,CAACG,MAAM,CAAC,CAAC;AACrD","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getDateRangeSeparator } from '../internal/intlCopy';
|
|
4
|
+
import { formatDateForDisplay } from './formatDateForDisplay';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Formats an inclusive date range for display.
|
|
8
|
+
*
|
|
9
|
+
* @param range - Start and end wire date ids.
|
|
10
|
+
* @param options - Locale, separator, and display options passed to `formatDateForDisplay`.
|
|
11
|
+
* @returns Formatted range string.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* formatDateRangeForDisplay({ startId: '2026-07-01', endId: '2026-07-28' })
|
|
15
|
+
*/
|
|
16
|
+
export function formatDateRangeForDisplay(range, options) {
|
|
17
|
+
const separator = options?.rangeSeparator ?? getDateRangeSeparator(options?.locale);
|
|
18
|
+
const start = formatDateForDisplay(range.startId, options);
|
|
19
|
+
const end = formatDateForDisplay(range.endId, options);
|
|
20
|
+
return `${start}${separator}${end}`;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=formatDateRangeForDisplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getDateRangeSeparator","formatDateForDisplay","formatDateRangeForDisplay","range","options","separator","rangeSeparator","locale","start","startId","end","endId"],"sourceRoot":"../../../../src","sources":["dates/display/formatDateRangeForDisplay.ts"],"mappings":";;AAAA,SAASA,qBAAqB,QAAQ,sBAAsB;AAE5D,SAASC,oBAAoB,QAAQ,wBAAwB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,yBAAyBA,CACvCC,KAAyC,EACzCC,OAAiC,EACzB;EACR,MAAMC,SAAS,GAAGD,OAAO,EAAEE,cAAc,IAAIN,qBAAqB,CAACI,OAAO,EAAEG,MAAM,CAAC;EACnF,MAAMC,KAAK,GAAGP,oBAAoB,CAACE,KAAK,CAACM,OAAO,EAAEL,OAAO,CAAC;EAC1D,MAAMM,GAAG,GAAGT,oBAAoB,CAACE,KAAK,CAACQ,KAAK,EAAEP,OAAO,CAAC;EACtD,OAAO,GAAGI,KAAK,GAAGH,SAAS,GAAGK,GAAG,EAAE;AACrC","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getCachedDateFormatter } from '../internal/intlCache';
|
|
4
|
+
import { parseDateTimeId } from '../datetime/parseDateTimeId';
|
|
5
|
+
/**
|
|
6
|
+
* Formats a locale-aware date-time string for UI labels.
|
|
7
|
+
*
|
|
8
|
+
* @param dateTimeId - Wire date-time string.
|
|
9
|
+
* @param options - Locale, date/time styles, and optional time zone.
|
|
10
|
+
* @returns Locale-formatted date-time string, or `''` when invalid.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* formatDateTimeForDisplay('2026-07-28T10:01', { locale: 'en-US' })
|
|
14
|
+
*/
|
|
15
|
+
export function formatDateTimeForDisplay(dateTimeId, options) {
|
|
16
|
+
const parts = parseDateTimeId(dateTimeId);
|
|
17
|
+
if (!parts) {
|
|
18
|
+
return '';
|
|
19
|
+
}
|
|
20
|
+
const date = new Date(parts.year, parts.month - 1, parts.day, parts.hour, parts.minute, parts.second ?? 0);
|
|
21
|
+
const formatter = getCachedDateFormatter(options?.locale ?? 'en-US', {
|
|
22
|
+
dateStyle: options?.dateStyle ?? 'medium',
|
|
23
|
+
timeStyle: options?.timeStyle ?? 'short',
|
|
24
|
+
...(options?.timeZone ? {
|
|
25
|
+
timeZone: options.timeZone
|
|
26
|
+
} : {})
|
|
27
|
+
});
|
|
28
|
+
return formatter.format(date);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=formatDateTimeForDisplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getCachedDateFormatter","parseDateTimeId","formatDateTimeForDisplay","dateTimeId","options","parts","date","Date","year","month","day","hour","minute","second","formatter","locale","dateStyle","timeStyle","timeZone","format"],"sourceRoot":"../../../../src","sources":["dates/display/formatDateTimeForDisplay.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,uBAAuB;AAC9D,SAASC,eAAe,QAAQ,6BAA6B;AAG7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,wBAAwBA,CACtCC,UAAsB,EACtBC,OAAsC,EAC9B;EACR,MAAMC,KAAK,GAAGJ,eAAe,CAACE,UAAU,CAAC;EACzC,IAAI,CAACE,KAAK,EAAE;IACV,OAAO,EAAE;EACX;EACA,MAAMC,IAAI,GAAG,IAAIC,IAAI,CACnBF,KAAK,CAACG,IAAI,EACVH,KAAK,CAACI,KAAK,GAAG,CAAC,EACfJ,KAAK,CAACK,GAAG,EACTL,KAAK,CAACM,IAAI,EACVN,KAAK,CAACO,MAAM,EACZP,KAAK,CAACQ,MAAM,IAAI,CAClB,CAAC;EACD,MAAMC,SAAS,GAAGd,sBAAsB,CAACI,OAAO,EAAEW,MAAM,IAAI,OAAO,EAAE;IACnEC,SAAS,EAAEZ,OAAO,EAAEY,SAAS,IAAI,QAAQ;IACzCC,SAAS,EAAEb,OAAO,EAAEa,SAAS,IAAI,OAAO;IACxC,IAAIb,OAAO,EAAEc,QAAQ,GAAG;MAAEA,QAAQ,EAAEd,OAAO,CAACc;IAAS,CAAC,GAAG,CAAC,CAAC;EAC7D,CAAC,CAAC;EACF,OAAOJ,SAAS,CAACK,MAAM,CAACb,IAAI,CAAC;AAC/B","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { dateIdToNativeDate } from '../internal/dateIdToNativeDate';
|
|
4
|
+
import { getCachedDateFormatter } from '../internal/intlCache';
|
|
5
|
+
/**
|
|
6
|
+
* Formats a locale-aware month/year string for UI labels.
|
|
7
|
+
*
|
|
8
|
+
* @param monthId - Wire month string (`YYYY-MM-01`).
|
|
9
|
+
* @param options - Locale, date style, and optional time zone.
|
|
10
|
+
* @returns Locale-formatted month/year string.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* formatMonthForDisplay('2026-07-01', { locale: 'en-US' }) // e.g. '07/2026'
|
|
14
|
+
*/
|
|
15
|
+
export function formatMonthForDisplay(monthId, options) {
|
|
16
|
+
const formatter = getCachedDateFormatter(options?.locale ?? 'en-US', {
|
|
17
|
+
month: '2-digit',
|
|
18
|
+
year: 'numeric',
|
|
19
|
+
...(options?.dateStyle === 'long' ? {
|
|
20
|
+
month: 'long',
|
|
21
|
+
year: 'numeric'
|
|
22
|
+
} : {}),
|
|
23
|
+
...(options?.timeZone ? {
|
|
24
|
+
timeZone: options.timeZone
|
|
25
|
+
} : {})
|
|
26
|
+
});
|
|
27
|
+
return formatter.format(dateIdToNativeDate(monthId));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=formatMonthForDisplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["dateIdToNativeDate","getCachedDateFormatter","formatMonthForDisplay","monthId","options","formatter","locale","month","year","dateStyle","timeZone","format"],"sourceRoot":"../../../../src","sources":["dates/display/formatMonthForDisplay.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,gCAAgC;AACnE,SAASC,sBAAsB,QAAQ,uBAAuB;AAG9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CACnCC,OAAgB,EAChBC,OAAkC,EAC1B;EACR,MAAMC,SAAS,GAAGJ,sBAAsB,CAACG,OAAO,EAAEE,MAAM,IAAI,OAAO,EAAE;IACnEC,KAAK,EAAE,SAAS;IAChBC,IAAI,EAAE,SAAS;IACf,IAAIJ,OAAO,EAAEK,SAAS,KAAK,MAAM,GAAG;MAAEF,KAAK,EAAE,MAAM;MAAEC,IAAI,EAAE;IAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,IAAIJ,OAAO,EAAEM,QAAQ,GAAG;MAAEA,QAAQ,EAAEN,OAAO,CAACM;IAAS,CAAC,GAAG,CAAC,CAAC;EAC7D,CAAC,CAAC;EACF,OAAOL,SAAS,CAACM,MAAM,CAACX,kBAAkB,CAACG,OAAO,CAAC,CAAC;AACtD","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Date / date-time formatters.
|
|
5
|
+
*
|
|
6
|
+
* Wire ids (`DateId`, `MonthId`, `DateTimeId`) are fixed-format strings for state and APIs.
|
|
7
|
+
* Display helpers return locale-dependent strings for UI labels — never store those in form state.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export { clampDateParts } from './wire/clampDateParts';
|
|
11
|
+
export { clampMonthParts } from './wire/clampMonthParts';
|
|
12
|
+
export { dateId } from './wire/dateId';
|
|
13
|
+
export { monthId } from './wire/monthId';
|
|
14
|
+
export { formatDateId } from './wire/formatDateId';
|
|
15
|
+
export { formatMonthId } from './wire/formatMonthId';
|
|
16
|
+
export { isValidDateId } from './wire/isValidDateId';
|
|
17
|
+
export { isValidDateParts } from './wire/isValidDateParts';
|
|
18
|
+
export { isValidMonthId } from './wire/isValidMonthId';
|
|
19
|
+
export { isValidMonthParts } from './wire/isValidMonthParts';
|
|
20
|
+
export { parseDateId } from './wire/parseDateId';
|
|
21
|
+
export { parseMonthId } from './wire/parseMonthId';
|
|
22
|
+
export { toMonthId } from './wire/toMonthId';
|
|
23
|
+
export { todayDateId } from './wire/todayDateId';
|
|
24
|
+
export { todayMonthId } from './wire/todayMonthId';
|
|
25
|
+
export { clampDateTimeId } from './datetime/clampDateTimeId';
|
|
26
|
+
export { compareDateTimeIds } from './datetime/compareDateTimeIds';
|
|
27
|
+
export { dateTimeId } from './datetime/dateTimeId';
|
|
28
|
+
export { formatDateTimeId } from './datetime/formatDateTimeId';
|
|
29
|
+
export { isLocaleHour12 } from './datetime/isLocaleHour12';
|
|
30
|
+
export { formatDateTimeListHour } from './datetime/formatDateTimeListHour';
|
|
31
|
+
export { formatDateTimeListMinute } from './datetime/formatDateTimeListMinute';
|
|
32
|
+
export { formatDateTimeListPeriod } from './datetime/formatDateTimeListPeriod';
|
|
33
|
+
export { isValidDateTimeId } from './datetime/isValidDateTimeId';
|
|
34
|
+
export { nowDateTimeId } from './datetime/nowDateTimeId';
|
|
35
|
+
export { parseDateTimeId } from './datetime/parseDateTimeId';
|
|
36
|
+
export { formatDateForDisplay } from './display/formatDateForDisplay';
|
|
37
|
+
export { formatDateRangeForDisplay } from './display/formatDateRangeForDisplay';
|
|
38
|
+
export { formatDateTimeForDisplay } from './display/formatDateTimeForDisplay';
|
|
39
|
+
export { formatMonthForDisplay } from './display/formatMonthForDisplay';
|
|
40
|
+
export { compareDateIds } from './ranges/compareDateIds';
|
|
41
|
+
export { compareMonthIds } from './ranges/compareMonthIds';
|
|
42
|
+
export { dateRangeAroundDay } from './ranges/dateRangeAroundDay';
|
|
43
|
+
export { dateRangeFromLastNDays } from './ranges/dateRangeFromLastNDays';
|
|
44
|
+
export { eachDateIdInRange } from './ranges/eachDateIdInRange';
|
|
45
|
+
export { normalizeDateRange } from './ranges/normalizeDateRange';
|
|
46
|
+
export { applyDateSegmentChange } from './segments/applyDateSegmentChange';
|
|
47
|
+
export { formatDateSegment } from './segments/formatDateSegment';
|
|
48
|
+
export { getDateFieldSegments } from './segments/getDateFieldSegments';
|
|
49
|
+
export { getDateTimeFieldSegments } from './segments/getDateTimeFieldSegments';
|
|
50
|
+
export { getDateTimeSegmentVisibility } from './segments/getDateTimeSegmentVisibility';
|
|
51
|
+
export { getEmptyDateSegmentText } from './segments/getEmptyDateSegmentText';
|
|
52
|
+
export { parseDateSegment } from './segments/parseDateSegment';
|
|
53
|
+
export { formatCalendarMonthYear } from './calendar/formatCalendarMonthYear';
|
|
54
|
+
export { formatDateTimeListDateRow } from './calendar/formatDateTimeListDateRow';
|
|
55
|
+
export { formatMonthCalendarMonth } from './calendar/formatMonthCalendarMonth';
|
|
56
|
+
export { formatMonthCalendarYear } from './calendar/formatMonthCalendarYear';
|
|
57
|
+
export { getCalendarWeekdayLabels } from './calendar/getCalendarWeekdayLabels';
|
|
58
|
+
export { DEFAULT_DATE_COMPONENT_LABELS, formatSelectYear, getDateSegmentAccessibilityLabel, resolveDateComponentLabels } from './labels/dateComponentLabels';
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["clampDateParts","clampMonthParts","dateId","monthId","formatDateId","formatMonthId","isValidDateId","isValidDateParts","isValidMonthId","isValidMonthParts","parseDateId","parseMonthId","toMonthId","todayDateId","todayMonthId","clampDateTimeId","compareDateTimeIds","dateTimeId","formatDateTimeId","isLocaleHour12","formatDateTimeListHour","formatDateTimeListMinute","formatDateTimeListPeriod","isValidDateTimeId","nowDateTimeId","parseDateTimeId","formatDateForDisplay","formatDateRangeForDisplay","formatDateTimeForDisplay","formatMonthForDisplay","compareDateIds","compareMonthIds","dateRangeAroundDay","dateRangeFromLastNDays","eachDateIdInRange","normalizeDateRange","applyDateSegmentChange","formatDateSegment","getDateFieldSegments","getDateTimeFieldSegments","getDateTimeSegmentVisibility","getEmptyDateSegmentText","parseDateSegment","formatCalendarMonthYear","formatDateTimeListDateRow","formatMonthCalendarMonth","formatMonthCalendarYear","getCalendarWeekdayLabels","DEFAULT_DATE_COMPONENT_LABELS","formatSelectYear","getDateSegmentAccessibilityLabel","resolveDateComponentLabels"],"sourceRoot":"../../../src","sources":["dates/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAoBA,SAASA,cAAc,QAAQ,uBAAuB;AACtD,SAASC,eAAe,QAAQ,wBAAwB;AACxD,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,YAAY,QAAQ,qBAAqB;AAClD,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,iBAAiB,QAAQ,0BAA0B;AAC5D,SAASC,WAAW,QAAQ,oBAAoB;AAChD,SAASC,YAAY,QAAQ,qBAAqB;AAClD,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,WAAW,QAAQ,oBAAoB;AAChD,SAASC,YAAY,QAAQ,qBAAqB;AAElD,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,kBAAkB,QAAQ,+BAA+B;AAClE,SAASC,UAAU,QAAQ,uBAAuB;AAClD,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,sBAAsB,QAAQ,mCAAmC;AAC1E,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,aAAa,QAAQ,0BAA0B;AACxD,SAASC,eAAe,QAAQ,4BAA4B;AAE5D,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,yBAAyB,QAAQ,qCAAqC;AAC/E,SAASC,wBAAwB,QAAQ,oCAAoC;AAC7E,SAASC,qBAAqB,QAAQ,iCAAiC;AAEvE,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,kBAAkB,QAAQ,6BAA6B;AAChE,SAASC,sBAAsB,QAAQ,iCAAiC;AACxE,SAASC,iBAAiB,QAAQ,4BAA4B;AAC9D,SAASC,kBAAkB,QAAQ,6BAA6B;AAEhE,SAASC,sBAAsB,QAAQ,mCAAmC;AAC1E,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,oBAAoB,QAAQ,iCAAiC;AACtE,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,4BAA4B,QAAQ,yCAAyC;AACtF,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,gBAAgB,QAAQ,6BAA6B;AAE9D,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,yBAAyB,QAAQ,sCAAsC;AAChF,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,wBAAwB,QAAQ,qCAAqC;AAG9E,SACEC,6BAA6B,EAC7BC,gBAAgB,EAChBC,gCAAgC,EAChCC,0BAA0B,QACrB,8BAA8B","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* Unchecked brand casts for wire producers that have already guaranteed a
|
|
6
|
+
* well-formed wire string. Callers outside `@cdx-ui/formatters` must go through
|
|
7
|
+
* the validating smart constructors (`dateId`, `monthId`, `dateTimeId`) instead.
|
|
8
|
+
*/
|
|
9
|
+
export const asDateId = value => value;
|
|
10
|
+
export const asMonthId = value => value;
|
|
11
|
+
export const asDateTimeId = value => value;
|
|
12
|
+
//# sourceMappingURL=brand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["asDateId","value","asMonthId","asDateTimeId"],"sourceRoot":"../../../../src","sources":["dates/internal/brand.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,QAAQ,GAAIC,KAAa,IAAaA,KAAe;AAClE,OAAO,MAAMC,SAAS,GAAID,KAAa,IAAcA,KAAgB;AACrE,OAAO,MAAME,YAAY,GAAIF,KAAa,IAAiBA,KAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getCachedDateFormatter } from './intlCache';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export function formatCalendarWeekday(weekdayIndex, options) {
|
|
9
|
+
// 2023-01-01 was a Sunday — index 0..6 maps Sun..Sat regardless of locale week start.
|
|
10
|
+
const ref = new Date(2023, 0, 1 + weekdayIndex);
|
|
11
|
+
const formatter = getCachedDateFormatter(options?.locale ?? 'en-US', {
|
|
12
|
+
weekday: options?.weekday ?? 'short',
|
|
13
|
+
...(options?.timeZone ? {
|
|
14
|
+
timeZone: options.timeZone
|
|
15
|
+
} : {})
|
|
16
|
+
});
|
|
17
|
+
return formatter.format(ref);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=calendarHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getCachedDateFormatter","formatCalendarWeekday","weekdayIndex","options","ref","Date","formatter","locale","weekday","timeZone","format"],"sourceRoot":"../../../../src","sources":["dates/internal/calendarHelpers.ts"],"mappings":";;AACA,SAASA,sBAAsB,QAAQ,aAAa;;AAEpD;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CACnCC,YAAoB,EACpBC,OAAuE,EAC/D;EACR;EACA,MAAMC,GAAG,GAAG,IAAIC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,GAAGH,YAAY,CAAC;EAC/C,MAAMI,SAAS,GAAGN,sBAAsB,CAACG,OAAO,EAAEI,MAAM,IAAI,OAAO,EAAE;IACnEC,OAAO,EAAEL,OAAO,EAAEK,OAAO,IAAI,OAAO;IACpC,IAAIL,OAAO,EAAEM,QAAQ,GAAG;MAAEA,QAAQ,EAAEN,OAAO,CAACM;IAAS,CAAC,GAAG,CAAC,CAAC;EAC7D,CAAC,CAAC;EACF,OAAOH,SAAS,CAACI,MAAM,CAACN,GAAG,CAAC;AAC9B","ignoreList":[]}
|