@formatjs/ecma402-abstract 1.2.6 → 1.4.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/{lib/src/BestAvailableLocale.d.ts → BestAvailableLocale.d.ts} +0 -0
- package/BestAvailableLocale.d.ts.map +1 -0
- package/{src/BestAvailableLocale.js → BestAvailableLocale.js} +0 -0
- package/{src/BestFitMatcher.d.ts → BestFitMatcher.d.ts} +1 -1
- package/BestFitMatcher.d.ts.map +1 -0
- package/{src/BestFitMatcher.js → BestFitMatcher.js} +0 -0
- package/{lib/src/CanonicalizeLocaleList.d.ts → CanonicalizeLocaleList.d.ts} +0 -0
- package/CanonicalizeLocaleList.d.ts.map +1 -0
- package/{src/CanonicalizeLocaleList.js → CanonicalizeLocaleList.js} +0 -0
- package/{lib/src/CanonicalizeTimeZoneName.d.ts → CanonicalizeTimeZoneName.d.ts} +0 -0
- package/CanonicalizeTimeZoneName.d.ts.map +1 -0
- package/{src/CanonicalizeTimeZoneName.js → CanonicalizeTimeZoneName.js} +0 -0
- package/{lib/src/DateTimeFormat → DateTimeFormat}/BasicFormatMatcher.d.ts +1 -1
- package/DateTimeFormat/BasicFormatMatcher.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/BasicFormatMatcher.js +0 -0
- package/{lib/src/DateTimeFormat → DateTimeFormat}/BestFitFormatMatcher.d.ts +1 -1
- package/DateTimeFormat/BestFitFormatMatcher.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/BestFitFormatMatcher.js +9 -2
- package/{lib/src/DateTimeFormat → DateTimeFormat}/DateTimeStyleFormat.d.ts +1 -1
- package/DateTimeFormat/DateTimeStyleFormat.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/DateTimeStyleFormat.js +0 -0
- package/{lib/src/DateTimeFormat → DateTimeFormat}/FormatDateTime.d.ts +0 -0
- package/DateTimeFormat/FormatDateTime.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTime.js +0 -0
- package/DateTimeFormat/FormatDateTimePattern.d.ts +14 -0
- package/DateTimeFormat/FormatDateTimePattern.d.ts.map +1 -0
- package/{src/DateTimeFormat/PartitionDateTimePattern.js → DateTimeFormat/FormatDateTimePattern.js} +4 -16
- package/DateTimeFormat/FormatDateTimeRange.d.ts +4 -0
- package/DateTimeFormat/FormatDateTimeRange.d.ts.map +1 -0
- package/DateTimeFormat/FormatDateTimeRange.js +14 -0
- package/DateTimeFormat/FormatDateTimeRangeToParts.d.ts +4 -0
- package/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +1 -0
- package/DateTimeFormat/FormatDateTimeRangeToParts.js +18 -0
- package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.d.ts +2 -1
- package/DateTimeFormat/FormatDateTimeToParts.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.js +1 -1
- package/{lib/src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.d.ts +1 -1
- package/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.js +39 -27
- package/DateTimeFormat/PartitionDateTimePattern.d.ts +10 -0
- package/DateTimeFormat/PartitionDateTimePattern.d.ts.map +1 -0
- package/DateTimeFormat/PartitionDateTimePattern.js +24 -0
- package/DateTimeFormat/PartitionDateTimeRangePattern.d.ts +5 -0
- package/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +1 -0
- package/DateTimeFormat/PartitionDateTimeRangePattern.js +103 -0
- package/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.d.ts +1 -1
- package/DateTimeFormat/ToDateTimeOptions.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.js +1 -1
- package/{lib/src/DateTimeFormat → DateTimeFormat}/ToLocalTime.d.ts +5 -4
- package/DateTimeFormat/ToLocalTime.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/ToLocalTime.js +1 -1
- package/DateTimeFormat/skeleton.d.ts +14 -0
- package/DateTimeFormat/skeleton.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/skeleton.js +160 -29
- package/{lib/src/DateTimeFormat → DateTimeFormat}/utils.d.ts +1 -1
- package/DateTimeFormat/utils.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/utils.js +0 -0
- package/{lib/src/DefaultNumberOption.d.ts → DefaultNumberOption.d.ts} +0 -0
- package/DefaultNumberOption.d.ts.map +1 -0
- package/{src/DefaultNumberOption.js → DefaultNumberOption.js} +0 -0
- package/{lib/src/DisplayNames → DisplayNames}/CanonicalCodeForDisplayNames.d.ts +0 -0
- package/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +1 -0
- package/{src/DisplayNames → DisplayNames}/CanonicalCodeForDisplayNames.js +0 -0
- package/{lib/src/GetNumberOption.d.ts → GetNumberOption.d.ts} +0 -0
- package/GetNumberOption.d.ts.map +1 -0
- package/{src/GetNumberOption.js → GetNumberOption.js} +0 -0
- package/{lib/src/GetOption.d.ts → GetOption.d.ts} +0 -0
- package/GetOption.d.ts.map +1 -0
- package/{src/GetOption.js → GetOption.js} +1 -1
- package/{lib/src/IsSanctionedSimpleUnitIdentifier.d.ts → IsSanctionedSimpleUnitIdentifier.d.ts} +0 -0
- package/IsSanctionedSimpleUnitIdentifier.d.ts.map +1 -0
- package/{src/IsSanctionedSimpleUnitIdentifier.js → IsSanctionedSimpleUnitIdentifier.js} +0 -0
- package/{lib/src/IsValidTimeZoneName.d.ts → IsValidTimeZoneName.d.ts} +0 -0
- package/IsValidTimeZoneName.d.ts.map +1 -0
- package/{src/IsValidTimeZoneName.js → IsValidTimeZoneName.js} +0 -0
- package/{lib/src/IsWellFormedCurrencyCode.d.ts → IsWellFormedCurrencyCode.d.ts} +0 -0
- package/IsWellFormedCurrencyCode.d.ts.map +1 -0
- package/{src/IsWellFormedCurrencyCode.js → IsWellFormedCurrencyCode.js} +0 -0
- package/{lib/src/IsWellFormedUnitIdentifier.d.ts → IsWellFormedUnitIdentifier.d.ts} +0 -0
- package/IsWellFormedUnitIdentifier.d.ts.map +1 -0
- package/{src/IsWellFormedUnitIdentifier.js → IsWellFormedUnitIdentifier.js} +0 -0
- package/{src/LookupMatcher.d.ts → LookupMatcher.d.ts} +1 -1
- package/LookupMatcher.d.ts.map +1 -0
- package/{src/LookupMatcher.js → LookupMatcher.js} +0 -0
- package/{lib/src/LookupSupportedLocales.d.ts → LookupSupportedLocales.d.ts} +0 -0
- package/LookupSupportedLocales.d.ts.map +1 -0
- package/{src/LookupSupportedLocales.js → LookupSupportedLocales.js} +0 -0
- package/{lib/src/NumberFormat → NumberFormat}/ComputeExponent.d.ts +1 -1
- package/NumberFormat/ComputeExponent.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/ComputeExponent.js +0 -0
- package/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.d.ts +1 -1
- package/NumberFormat/ComputeExponentForMagnitude.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.js +0 -0
- package/{lib/src/NumberFormat → NumberFormat}/CurrencyDigits.d.ts +0 -0
- package/NumberFormat/CurrencyDigits.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/CurrencyDigits.js +1 -1
- package/{src/NumberFormat → NumberFormat}/FormatNumericToParts.d.ts +1 -1
- package/NumberFormat/FormatNumericToParts.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/FormatNumericToParts.js +1 -1
- package/{src/NumberFormat → NumberFormat}/FormatNumericToString.d.ts +1 -1
- package/NumberFormat/FormatNumericToString.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/FormatNumericToString.js +1 -1
- package/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.d.ts +1 -1
- package/NumberFormat/InitializeNumberFormat.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.js +1 -1
- package/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.d.ts +2 -2
- package/NumberFormat/PartitionNumberPattern.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.js +1 -1
- package/{lib/src/NumberFormat → NumberFormat}/SetNumberFormatDigitOptions.d.ts +1 -1
- package/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/SetNumberFormatDigitOptions.js +0 -0
- package/{lib/src/NumberFormat → NumberFormat}/SetNumberFormatUnitOptions.d.ts +1 -1
- package/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/SetNumberFormatUnitOptions.js +0 -0
- package/{lib/src/NumberFormat → NumberFormat}/ToRawFixed.d.ts +1 -1
- package/NumberFormat/ToRawFixed.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/ToRawFixed.js +0 -0
- package/{lib/src/NumberFormat → NumberFormat}/ToRawPrecision.d.ts +1 -1
- package/NumberFormat/ToRawPrecision.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/ToRawPrecision.js +0 -0
- package/{lib/src/NumberFormat → NumberFormat}/digit-mapping.json +0 -0
- package/{lib/src/NumberFormat → NumberFormat}/format_to_parts.d.ts +1 -1
- package/NumberFormat/format_to_parts.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/format_to_parts.js +0 -0
- package/PartitionPattern.d.ts +9 -0
- package/PartitionPattern.d.ts.map +1 -0
- package/{src/PartitionPattern.js → PartitionPattern.js} +0 -0
- package/{lib/src/PluralRules → PluralRules}/GetOperands.d.ts +0 -0
- package/PluralRules/GetOperands.d.ts.map +1 -0
- package/{src/PluralRules → PluralRules}/GetOperands.js +1 -1
- package/{lib/src/PluralRules → PluralRules}/InitializePluralRules.d.ts +1 -1
- package/PluralRules/InitializePluralRules.d.ts.map +1 -0
- package/{src/PluralRules → PluralRules}/InitializePluralRules.js +1 -1
- package/{lib/src/PluralRules → PluralRules}/ResolvePlural.d.ts +1 -1
- package/PluralRules/ResolvePlural.d.ts.map +1 -0
- package/{src/PluralRules → PluralRules}/ResolvePlural.js +1 -1
- package/README.md +4 -2
- package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTime.d.ts +1 -1
- package/RelativeTimeFormat/FormatRelativeTime.d.ts.map +1 -0
- package/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTime.js +0 -0
- package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTimeToParts.d.ts +1 -1
- package/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +1 -0
- package/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTimeToParts.js +1 -1
- package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.d.ts +1 -1
- package/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +1 -0
- package/{src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.js +1 -1
- package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/MakePartsList.d.ts +1 -1
- package/RelativeTimeFormat/MakePartsList.d.ts.map +1 -0
- package/{src/RelativeTimeFormat → RelativeTimeFormat}/MakePartsList.js +0 -0
- package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/PartitionRelativeTimePattern.d.ts +1 -1
- package/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +1 -0
- package/{src/RelativeTimeFormat → RelativeTimeFormat}/PartitionRelativeTimePattern.js +1 -1
- package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/SingularRelativeTimeUnit.d.ts +1 -1
- package/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +1 -0
- package/{src/RelativeTimeFormat → RelativeTimeFormat}/SingularRelativeTimeUnit.js +1 -1
- package/{lib/src/ResolveLocale.d.ts → ResolveLocale.d.ts} +0 -0
- package/ResolveLocale.d.ts.map +1 -0
- package/{src/ResolveLocale.js → ResolveLocale.js} +0 -0
- package/{lib/src/SupportedLocales.d.ts → SupportedLocales.d.ts} +0 -0
- package/SupportedLocales.d.ts.map +1 -0
- package/{src/SupportedLocales.js → SupportedLocales.js} +1 -1
- package/{lib/src/UnicodeExtensionValue.d.ts → UnicodeExtensionValue.d.ts} +0 -0
- package/UnicodeExtensionValue.d.ts.map +1 -0
- package/{src/UnicodeExtensionValue.js → UnicodeExtensionValue.js} +0 -0
- package/{lib/src/data.d.ts → data.d.ts} +1 -1
- package/data.d.ts.map +1 -0
- package/{src/data.js → data.js} +0 -0
- package/index.d.ts +48 -46
- package/index.d.ts.map +1 -1
- package/index.js +48 -46
- package/{src → lib}/BestAvailableLocale.d.ts +0 -0
- package/lib/BestAvailableLocale.d.ts.map +1 -0
- package/lib/{src/BestAvailableLocale.js → BestAvailableLocale.js} +0 -0
- package/lib/{src/BestFitMatcher.d.ts → BestFitMatcher.d.ts} +1 -1
- package/lib/BestFitMatcher.d.ts.map +1 -0
- package/lib/{src/BestFitMatcher.js → BestFitMatcher.js} +0 -0
- package/{src → lib}/CanonicalizeLocaleList.d.ts +0 -0
- package/lib/CanonicalizeLocaleList.d.ts.map +1 -0
- package/lib/{src/CanonicalizeLocaleList.js → CanonicalizeLocaleList.js} +0 -0
- package/{src → lib}/CanonicalizeTimeZoneName.d.ts +0 -0
- package/lib/CanonicalizeTimeZoneName.d.ts.map +1 -0
- package/lib/{src/CanonicalizeTimeZoneName.js → CanonicalizeTimeZoneName.js} +0 -0
- package/{src → lib}/DateTimeFormat/BasicFormatMatcher.d.ts +1 -1
- package/lib/DateTimeFormat/BasicFormatMatcher.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/BasicFormatMatcher.js +0 -0
- package/{src → lib}/DateTimeFormat/BestFitFormatMatcher.d.ts +1 -1
- package/lib/DateTimeFormat/BestFitFormatMatcher.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/BestFitFormatMatcher.js +10 -3
- package/{src → lib}/DateTimeFormat/DateTimeStyleFormat.d.ts +1 -1
- package/lib/DateTimeFormat/DateTimeStyleFormat.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/DateTimeStyleFormat.js +0 -0
- package/{src → lib}/DateTimeFormat/FormatDateTime.d.ts +0 -0
- package/lib/DateTimeFormat/FormatDateTime.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTime.js +0 -0
- package/lib/DateTimeFormat/FormatDateTimePattern.d.ts +14 -0
- package/lib/DateTimeFormat/FormatDateTimePattern.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat/PartitionDateTimePattern.js → DateTimeFormat/FormatDateTimePattern.js} +2 -14
- package/lib/DateTimeFormat/FormatDateTimeRange.d.ts +4 -0
- package/lib/DateTimeFormat/FormatDateTimeRange.d.ts.map +1 -0
- package/lib/DateTimeFormat/FormatDateTimeRange.js +10 -0
- package/lib/DateTimeFormat/FormatDateTimeRangeToParts.d.ts +4 -0
- package/lib/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +1 -0
- package/lib/DateTimeFormat/FormatDateTimeRangeToParts.js +14 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.d.ts +2 -1
- package/lib/DateTimeFormat/FormatDateTimeToParts.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.js +1 -1
- package/{src → lib}/DateTimeFormat/InitializeDateTimeFormat.d.ts +1 -1
- package/lib/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.js +39 -27
- package/lib/DateTimeFormat/PartitionDateTimePattern.d.ts +10 -0
- package/lib/DateTimeFormat/PartitionDateTimePattern.d.ts.map +1 -0
- package/lib/DateTimeFormat/PartitionDateTimePattern.js +20 -0
- package/lib/DateTimeFormat/PartitionDateTimeRangePattern.d.ts +5 -0
- package/lib/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +1 -0
- package/lib/DateTimeFormat/PartitionDateTimeRangePattern.js +99 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.d.ts +1 -1
- package/lib/DateTimeFormat/ToDateTimeOptions.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.js +1 -1
- package/{src → lib}/DateTimeFormat/ToLocalTime.d.ts +5 -4
- package/lib/DateTimeFormat/ToLocalTime.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/ToLocalTime.js +1 -1
- package/lib/DateTimeFormat/skeleton.d.ts +14 -0
- package/lib/DateTimeFormat/skeleton.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/skeleton.js +156 -28
- package/{src → lib}/DateTimeFormat/utils.d.ts +1 -1
- package/lib/DateTimeFormat/utils.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/utils.js +0 -0
- package/{src → lib}/DefaultNumberOption.d.ts +0 -0
- package/lib/DefaultNumberOption.d.ts.map +1 -0
- package/lib/{src/DefaultNumberOption.js → DefaultNumberOption.js} +0 -0
- package/{src → lib}/DisplayNames/CanonicalCodeForDisplayNames.d.ts +0 -0
- package/lib/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +1 -0
- package/lib/{src/DisplayNames → DisplayNames}/CanonicalCodeForDisplayNames.js +0 -0
- package/{src → lib}/GetNumberOption.d.ts +0 -0
- package/lib/GetNumberOption.d.ts.map +1 -0
- package/lib/{src/GetNumberOption.js → GetNumberOption.js} +0 -0
- package/{src → lib}/GetOption.d.ts +0 -0
- package/lib/GetOption.d.ts.map +1 -0
- package/lib/{src/GetOption.js → GetOption.js} +1 -1
- package/{src → lib}/IsSanctionedSimpleUnitIdentifier.d.ts +0 -0
- package/lib/IsSanctionedSimpleUnitIdentifier.d.ts.map +1 -0
- package/lib/{src/IsSanctionedSimpleUnitIdentifier.js → IsSanctionedSimpleUnitIdentifier.js} +0 -0
- package/{src → lib}/IsValidTimeZoneName.d.ts +0 -0
- package/lib/IsValidTimeZoneName.d.ts.map +1 -0
- package/lib/{src/IsValidTimeZoneName.js → IsValidTimeZoneName.js} +0 -0
- package/{src → lib}/IsWellFormedCurrencyCode.d.ts +0 -0
- package/lib/IsWellFormedCurrencyCode.d.ts.map +1 -0
- package/lib/{src/IsWellFormedCurrencyCode.js → IsWellFormedCurrencyCode.js} +0 -0
- package/{src → lib}/IsWellFormedUnitIdentifier.d.ts +0 -0
- package/lib/IsWellFormedUnitIdentifier.d.ts.map +1 -0
- package/lib/{src/IsWellFormedUnitIdentifier.js → IsWellFormedUnitIdentifier.js} +0 -0
- package/lib/{src/LookupMatcher.d.ts → LookupMatcher.d.ts} +1 -1
- package/lib/LookupMatcher.d.ts.map +1 -0
- package/lib/{src/LookupMatcher.js → LookupMatcher.js} +0 -0
- package/{src → lib}/LookupSupportedLocales.d.ts +0 -0
- package/lib/LookupSupportedLocales.d.ts.map +1 -0
- package/lib/{src/LookupSupportedLocales.js → LookupSupportedLocales.js} +0 -0
- package/{src → lib}/NumberFormat/ComputeExponent.d.ts +1 -1
- package/lib/NumberFormat/ComputeExponent.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/ComputeExponent.js +0 -0
- package/lib/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.d.ts +1 -1
- package/lib/NumberFormat/ComputeExponentForMagnitude.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.js +0 -0
- package/{src → lib}/NumberFormat/CurrencyDigits.d.ts +0 -0
- package/lib/NumberFormat/CurrencyDigits.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/CurrencyDigits.js +1 -1
- package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToParts.d.ts +1 -1
- package/lib/NumberFormat/FormatNumericToParts.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToParts.js +1 -1
- package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToString.d.ts +1 -1
- package/lib/NumberFormat/FormatNumericToString.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToString.js +1 -1
- package/lib/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.d.ts +1 -1
- package/lib/NumberFormat/InitializeNumberFormat.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.js +1 -1
- package/lib/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.d.ts +2 -2
- package/lib/NumberFormat/PartitionNumberPattern.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.js +1 -1
- package/{src → lib}/NumberFormat/SetNumberFormatDigitOptions.d.ts +1 -1
- package/lib/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/SetNumberFormatDigitOptions.js +0 -0
- package/{src → lib}/NumberFormat/SetNumberFormatUnitOptions.d.ts +1 -1
- package/lib/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/SetNumberFormatUnitOptions.js +0 -0
- package/{src → lib}/NumberFormat/ToRawFixed.d.ts +1 -1
- package/lib/NumberFormat/ToRawFixed.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/ToRawFixed.js +0 -0
- package/{src → lib}/NumberFormat/ToRawPrecision.d.ts +1 -1
- package/lib/NumberFormat/ToRawPrecision.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/ToRawPrecision.js +0 -0
- package/{src → lib}/NumberFormat/digit-mapping.json +0 -0
- package/{src → lib}/NumberFormat/format_to_parts.d.ts +1 -1
- package/lib/NumberFormat/format_to_parts.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/format_to_parts.js +0 -0
- package/lib/PartitionPattern.d.ts +9 -0
- package/lib/PartitionPattern.d.ts.map +1 -0
- package/lib/{src/PartitionPattern.js → PartitionPattern.js} +0 -0
- package/{src → lib}/PluralRules/GetOperands.d.ts +0 -0
- package/lib/PluralRules/GetOperands.d.ts.map +1 -0
- package/lib/{src/PluralRules → PluralRules}/GetOperands.js +1 -1
- package/{src → lib}/PluralRules/InitializePluralRules.d.ts +1 -1
- package/lib/PluralRules/InitializePluralRules.d.ts.map +1 -0
- package/lib/{src/PluralRules → PluralRules}/InitializePluralRules.js +1 -1
- package/{src → lib}/PluralRules/ResolvePlural.d.ts +1 -1
- package/lib/PluralRules/ResolvePlural.d.ts.map +1 -0
- package/lib/{src/PluralRules → PluralRules}/ResolvePlural.js +1 -1
- package/{src → lib}/RelativeTimeFormat/FormatRelativeTime.d.ts +1 -1
- package/lib/RelativeTimeFormat/FormatRelativeTime.d.ts.map +1 -0
- package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTime.js +0 -0
- package/{src → lib}/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts +1 -1
- package/lib/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +1 -0
- package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTimeToParts.js +1 -1
- package/{src → lib}/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts +1 -1
- package/lib/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +1 -0
- package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.js +1 -1
- package/{src → lib}/RelativeTimeFormat/MakePartsList.d.ts +1 -1
- package/lib/RelativeTimeFormat/MakePartsList.d.ts.map +1 -0
- package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/MakePartsList.js +0 -0
- package/{src → lib}/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts +1 -1
- package/lib/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +1 -0
- package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/PartitionRelativeTimePattern.js +1 -1
- package/{src → lib}/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts +1 -1
- package/lib/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +1 -0
- package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/SingularRelativeTimeUnit.js +1 -1
- package/{src → lib}/ResolveLocale.d.ts +0 -0
- package/lib/ResolveLocale.d.ts.map +1 -0
- package/lib/{src/ResolveLocale.js → ResolveLocale.js} +0 -0
- package/{src → lib}/SupportedLocales.d.ts +0 -0
- package/lib/SupportedLocales.d.ts.map +1 -0
- package/lib/{src/SupportedLocales.js → SupportedLocales.js} +1 -1
- package/{src → lib}/UnicodeExtensionValue.d.ts +0 -0
- package/lib/UnicodeExtensionValue.d.ts.map +1 -0
- package/lib/{src/UnicodeExtensionValue.js → UnicodeExtensionValue.js} +0 -0
- package/{src → lib}/data.d.ts +1 -1
- package/lib/data.d.ts.map +1 -0
- package/lib/{src/data.js → data.js} +0 -0
- package/lib/index.d.ts +48 -46
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +48 -46
- package/lib/types/date-time.d.ts +29 -0
- package/lib/types/date-time.d.ts.map +1 -1
- package/lib/types/date-time.js +6 -1
- package/lib/types/relative-time.d.ts +1 -1
- package/lib/types/relative-time.d.ts.map +1 -1
- package/lib/{src/utils.d.ts → utils.d.ts} +0 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/{src/utils.js → utils.js} +0 -0
- package/package.json +1 -1
- package/types/date-time.d.ts +29 -0
- package/types/date-time.d.ts.map +1 -1
- package/types/date-time.js +7 -0
- package/types/relative-time.d.ts +1 -1
- package/types/relative-time.d.ts.map +1 -1
- package/{src/utils.d.ts → utils.d.ts} +0 -0
- package/utils.d.ts.map +1 -0
- package/{src/utils.js → utils.js} +0 -0
- package/_validate_dist-base_options.optionsvalid.d.ts +0 -9
- package/_validate_dist-esm_options.optionsvalid.d.ts +0 -9
- package/lib/src/BestAvailableLocale.d.ts.map +0 -1
- package/lib/src/BestFitMatcher.d.ts.map +0 -1
- package/lib/src/CanonicalizeLocaleList.d.ts.map +0 -1
- package/lib/src/CanonicalizeTimeZoneName.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/BasicFormatMatcher.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/BestFitFormatMatcher.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/DateTimeStyleFormat.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/FormatDateTime.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/FormatDateTimeToParts.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/PartitionDateTimePattern.d.ts +0 -13
- package/lib/src/DateTimeFormat/PartitionDateTimePattern.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/ToDateTimeOptions.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/ToLocalTime.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/skeleton.d.ts +0 -9
- package/lib/src/DateTimeFormat/skeleton.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/utils.d.ts.map +0 -1
- package/lib/src/DefaultNumberOption.d.ts.map +0 -1
- package/lib/src/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +0 -1
- package/lib/src/GetNumberOption.d.ts.map +0 -1
- package/lib/src/GetOption.d.ts.map +0 -1
- package/lib/src/IsSanctionedSimpleUnitIdentifier.d.ts.map +0 -1
- package/lib/src/IsValidTimeZoneName.d.ts.map +0 -1
- package/lib/src/IsWellFormedCurrencyCode.d.ts.map +0 -1
- package/lib/src/IsWellFormedUnitIdentifier.d.ts.map +0 -1
- package/lib/src/LookupMatcher.d.ts.map +0 -1
- package/lib/src/LookupSupportedLocales.d.ts.map +0 -1
- package/lib/src/NumberFormat/ComputeExponent.d.ts.map +0 -1
- package/lib/src/NumberFormat/ComputeExponentForMagnitude.d.ts.map +0 -1
- package/lib/src/NumberFormat/CurrencyDigits.d.ts.map +0 -1
- package/lib/src/NumberFormat/FormatNumericToParts.d.ts.map +0 -1
- package/lib/src/NumberFormat/FormatNumericToString.d.ts.map +0 -1
- package/lib/src/NumberFormat/InitializeNumberFormat.d.ts.map +0 -1
- package/lib/src/NumberFormat/PartitionNumberPattern.d.ts.map +0 -1
- package/lib/src/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +0 -1
- package/lib/src/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +0 -1
- package/lib/src/NumberFormat/ToRawFixed.d.ts.map +0 -1
- package/lib/src/NumberFormat/ToRawPrecision.d.ts.map +0 -1
- package/lib/src/NumberFormat/format_to_parts.d.ts.map +0 -1
- package/lib/src/PartitionPattern.d.ts +0 -12
- package/lib/src/PartitionPattern.d.ts.map +0 -1
- package/lib/src/PluralRules/GetOperands.d.ts.map +0 -1
- package/lib/src/PluralRules/InitializePluralRules.d.ts.map +0 -1
- package/lib/src/PluralRules/ResolvePlural.d.ts.map +0 -1
- package/lib/src/RelativeTimeFormat/FormatRelativeTime.d.ts.map +0 -1
- package/lib/src/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +0 -1
- package/lib/src/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +0 -1
- package/lib/src/RelativeTimeFormat/MakePartsList.d.ts.map +0 -1
- package/lib/src/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +0 -1
- package/lib/src/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +0 -1
- package/lib/src/ResolveLocale.d.ts.map +0 -1
- package/lib/src/SupportedLocales.d.ts.map +0 -1
- package/lib/src/UnicodeExtensionValue.d.ts.map +0 -1
- package/lib/src/data.d.ts.map +0 -1
- package/lib/src/utils.d.ts.map +0 -1
- package/src/BestAvailableLocale.d.ts.map +0 -1
- package/src/BestFitMatcher.d.ts.map +0 -1
- package/src/CanonicalizeLocaleList.d.ts.map +0 -1
- package/src/CanonicalizeTimeZoneName.d.ts.map +0 -1
- package/src/DateTimeFormat/BasicFormatMatcher.d.ts.map +0 -1
- package/src/DateTimeFormat/BestFitFormatMatcher.d.ts.map +0 -1
- package/src/DateTimeFormat/DateTimeStyleFormat.d.ts.map +0 -1
- package/src/DateTimeFormat/FormatDateTime.d.ts.map +0 -1
- package/src/DateTimeFormat/FormatDateTimeToParts.d.ts.map +0 -1
- package/src/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +0 -1
- package/src/DateTimeFormat/PartitionDateTimePattern.d.ts +0 -13
- package/src/DateTimeFormat/PartitionDateTimePattern.d.ts.map +0 -1
- package/src/DateTimeFormat/ToDateTimeOptions.d.ts.map +0 -1
- package/src/DateTimeFormat/ToLocalTime.d.ts.map +0 -1
- package/src/DateTimeFormat/skeleton.d.ts +0 -9
- package/src/DateTimeFormat/skeleton.d.ts.map +0 -1
- package/src/DateTimeFormat/utils.d.ts.map +0 -1
- package/src/DefaultNumberOption.d.ts.map +0 -1
- package/src/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +0 -1
- package/src/GetNumberOption.d.ts.map +0 -1
- package/src/GetOption.d.ts.map +0 -1
- package/src/IsSanctionedSimpleUnitIdentifier.d.ts.map +0 -1
- package/src/IsValidTimeZoneName.d.ts.map +0 -1
- package/src/IsWellFormedCurrencyCode.d.ts.map +0 -1
- package/src/IsWellFormedUnitIdentifier.d.ts.map +0 -1
- package/src/LookupMatcher.d.ts.map +0 -1
- package/src/LookupSupportedLocales.d.ts.map +0 -1
- package/src/NumberFormat/ComputeExponent.d.ts.map +0 -1
- package/src/NumberFormat/ComputeExponentForMagnitude.d.ts.map +0 -1
- package/src/NumberFormat/CurrencyDigits.d.ts.map +0 -1
- package/src/NumberFormat/FormatNumericToParts.d.ts.map +0 -1
- package/src/NumberFormat/FormatNumericToString.d.ts.map +0 -1
- package/src/NumberFormat/InitializeNumberFormat.d.ts.map +0 -1
- package/src/NumberFormat/PartitionNumberPattern.d.ts.map +0 -1
- package/src/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +0 -1
- package/src/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +0 -1
- package/src/NumberFormat/ToRawFixed.d.ts.map +0 -1
- package/src/NumberFormat/ToRawPrecision.d.ts.map +0 -1
- package/src/NumberFormat/format_to_parts.d.ts.map +0 -1
- package/src/PartitionPattern.d.ts +0 -12
- package/src/PartitionPattern.d.ts.map +0 -1
- package/src/PluralRules/GetOperands.d.ts.map +0 -1
- package/src/PluralRules/InitializePluralRules.d.ts.map +0 -1
- package/src/PluralRules/ResolvePlural.d.ts.map +0 -1
- package/src/RelativeTimeFormat/FormatRelativeTime.d.ts.map +0 -1
- package/src/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +0 -1
- package/src/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +0 -1
- package/src/RelativeTimeFormat/MakePartsList.d.ts.map +0 -1
- package/src/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +0 -1
- package/src/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +0 -1
- package/src/ResolveLocale.d.ts.map +0 -1
- package/src/SupportedLocales.d.ts.map +0 -1
- package/src/UnicodeExtensionValue.d.ts.map +0 -1
- package/src/data.d.ts.map +0 -1
- package/src/utils.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LDMLPluralRule, PluralRulesInternal } from '
|
|
1
|
+
import { LDMLPluralRule, PluralRulesInternal } from '../types/plural-rules';
|
|
2
2
|
import { OperandsRecord } from './GetOperands';
|
|
3
3
|
/**
|
|
4
4
|
* http://ecma-international.org/ecma-402/7.0/index.html#sec-resolveplural
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolvePlural.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/PluralRules/ResolvePlural.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1E,OAAO,EAAc,cAAc,EAAC,MAAM,eAAe,CAAC;AAE1D;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,CAAC,EAAE,MAAM,EACT,EACE,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAC;IAC5D,gBAAgB,EAAE,CAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,GAAG,SAAS,EAC5B,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE,cAAc,KACrB,cAAc,CAAC;CACrB,GACA,cAAc,CAgBhB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ResolvePlural = void 0;
|
|
4
4
|
var utils_1 = require("../utils");
|
|
5
|
-
var _262_1 = require("
|
|
5
|
+
var _262_1 = require("../262");
|
|
6
6
|
var FormatNumericToString_1 = require("../NumberFormat/FormatNumericToString");
|
|
7
7
|
var GetOperands_1 = require("./GetOperands");
|
|
8
8
|
/**
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ECMA402 Abstract
|
|
2
2
|
|
|
3
|
-
Implementation for various ECMAScript abstract operations.
|
|
3
|
+
Implementation for various ECMAScript 402 abstract operations.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.org/package/@formatjs/ecma402-abstract)
|
|
6
|
+
|
|
7
|
+
**IMPORTANT: This does not follow semver so please pin the version to the exact one that you need.**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RelativeTimeFormat, RelativeTimeFormattableUnit, RelativeTimeFormatInternal } from '
|
|
1
|
+
import { RelativeTimeFormat, RelativeTimeFormattableUnit, RelativeTimeFormatInternal } from '../types/relative-time';
|
|
2
2
|
export declare function FormatRelativeTime(rtf: RelativeTimeFormat, value: number, unit: RelativeTimeFormattableUnit, implDetails: {
|
|
3
3
|
getInternalSlots(rtf: RelativeTimeFormat): RelativeTimeFormatInternal;
|
|
4
4
|
}): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatRelativeTime.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/RelativeTimeFormat/FormatRelativeTime.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAGhC,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,kBAAkB,EACvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,EACjC,WAAW,EAAE;IACX,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,0BAA0B,CAAC;CACvE,GACA,MAAM,CAOR"}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RelativeTimeFormat, RelativeTimeFormattableUnit, RelativeTimePart, RelativeTimeFormatInternal } from '
|
|
1
|
+
import { RelativeTimeFormat, RelativeTimeFormattableUnit, RelativeTimePart, RelativeTimeFormatInternal } from '../types/relative-time';
|
|
2
2
|
export declare function FormatRelativeTimeToParts(rtf: RelativeTimeFormat, value: number, unit: RelativeTimeFormattableUnit, implDetails: {
|
|
3
3
|
getInternalSlots(rtf: RelativeTimeFormat): RelativeTimeFormatInternal;
|
|
4
4
|
}): RelativeTimePart[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatRelativeTimeToParts.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/RelativeTimeFormat/FormatRelativeTimeToParts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EAChB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAIhC,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,kBAAkB,EACvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,EACjC,WAAW,EAAE;IACX,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,0BAA0B,CAAC;CACvE,GACA,gBAAgB,EAAE,CAepB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormatRelativeTimeToParts = void 0;
|
|
4
4
|
var PartitionRelativeTimePattern_1 = require("./PartitionRelativeTimePattern");
|
|
5
|
-
var _262_1 = require("
|
|
5
|
+
var _262_1 = require("../262");
|
|
6
6
|
function FormatRelativeTimeToParts(rtf, value, unit, implDetails) {
|
|
7
7
|
var parts = PartitionRelativeTimePattern_1.PartitionRelativeTimePattern(rtf, value, unit, implDetails);
|
|
8
8
|
var result = _262_1.ArrayCreate(0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RelativeTimeFormat, IntlRelativeTimeFormatOptions, RelativeTimeFormatInternal, LocaleFieldsData } from '
|
|
1
|
+
import { RelativeTimeFormat, IntlRelativeTimeFormatOptions, RelativeTimeFormatInternal, LocaleFieldsData } from '../types/relative-time';
|
|
2
2
|
export declare function InitializeRelativeTimeFormat(rtf: RelativeTimeFormat, locales: string | string[] | undefined, options: IntlRelativeTimeFormatOptions | undefined, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale, }: {
|
|
3
3
|
getInternalSlots(rtf: RelativeTimeFormat): RelativeTimeFormatInternal;
|
|
4
4
|
availableLocales: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitializeRelativeTimeFormat.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/RelativeTimeFormat/InitializeRelativeTimeFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAShC,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,kBAAkB,EACvB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EACtC,OAAO,EAAE,6BAA6B,GAAG,SAAS,EAClD,EACE,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,GACjB,EAAE;IACD,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,0BAA0B,CAAC;IACtE,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC,CAAC;IACzD,gBAAgB,IAAI,MAAM,CAAC;CAC5B,sBA2DF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InitializeRelativeTimeFormat = void 0;
|
|
4
4
|
var CanonicalizeLocaleList_1 = require("../CanonicalizeLocaleList");
|
|
5
|
-
var _262_1 = require("
|
|
5
|
+
var _262_1 = require("../262");
|
|
6
6
|
var GetOption_1 = require("../GetOption");
|
|
7
7
|
var ResolveLocale_1 = require("../ResolveLocale");
|
|
8
8
|
var utils_1 = require("../utils");
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RelativeTimeUnit, RelativeTimePart } from '
|
|
1
|
+
import { RelativeTimeUnit, RelativeTimePart } from '../types/relative-time';
|
|
2
2
|
export declare function MakePartsList(pattern: string, unit: RelativeTimeUnit, parts: Intl.NumberFormatPart[]): RelativeTimePart[];
|
|
3
3
|
//# sourceMappingURL=MakePartsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MakePartsList.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/RelativeTimeFormat/MakePartsList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAI1E,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,sBAsB/B"}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RelativeTimeFormattableUnit, RelativeTimeFormat, RelativeTimeFormatInternal, RelativeTimePart } from '
|
|
1
|
+
import { RelativeTimeFormattableUnit, RelativeTimeFormat, RelativeTimeFormatInternal, RelativeTimePart } from '../types/relative-time';
|
|
2
2
|
export declare function PartitionRelativeTimePattern(rtf: RelativeTimeFormat, value: number, unit: RelativeTimeFormattableUnit, { getInternalSlots, }: {
|
|
3
3
|
getInternalSlots(rtf: RelativeTimeFormat): RelativeTimeFormatInternal;
|
|
4
4
|
}): RelativeTimePart[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartitionRelativeTimePattern.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/RelativeTimeFormat/PartitionRelativeTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAI3B,kBAAkB,EAClB,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAOhC,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,kBAAkB,EACvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,EACjC,EACE,gBAAgB,GACjB,EAAE;IACD,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,0BAA0B,CAAC;CACvE,GACA,gBAAgB,EAAE,CA2DpB"}
|
|
@@ -4,7 +4,7 @@ exports.PartitionRelativeTimePattern = void 0;
|
|
|
4
4
|
var utils_1 = require("../utils");
|
|
5
5
|
var SingularRelativeTimeUnit_1 = require("./SingularRelativeTimeUnit");
|
|
6
6
|
var MakePartsList_1 = require("./MakePartsList");
|
|
7
|
-
var _262_1 = require("
|
|
7
|
+
var _262_1 = require("../262");
|
|
8
8
|
function PartitionRelativeTimePattern(rtf, value, unit, _a) {
|
|
9
9
|
var getInternalSlots = _a.getInternalSlots;
|
|
10
10
|
utils_1.invariant(_262_1.Type(value) === 'Number', "value must be number, instead got " + typeof value, TypeError);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RelativeTimeFormattableUnit, RelativeTimeUnit } from '
|
|
1
|
+
import { RelativeTimeFormattableUnit, RelativeTimeUnit } from '../types/relative-time';
|
|
2
2
|
/**
|
|
3
3
|
* https://tc39.es/proposal-intl-relative-time/#sec-singularrelativetimeunit
|
|
4
4
|
* @param unit
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SingularRelativeTimeUnit.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/RelativeTimeFormat/SingularRelativeTimeUnit.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,2BAA2B,GAChC,gBAAgB,CAuBlB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SingularRelativeTimeUnit = void 0;
|
|
4
4
|
var utils_1 = require("../utils");
|
|
5
|
-
var _262_1 = require("
|
|
5
|
+
var _262_1 = require("../262");
|
|
6
6
|
/**
|
|
7
7
|
* https://tc39.es/proposal-intl-relative-time/#sec-singularrelativetimeunit
|
|
8
8
|
* @param unit
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolveLocale.d.ts","sourceRoot":"","sources":["../../../../../packages/ecma402-abstract/ResolveLocale.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS;KAAE,CAAC,IAAI,CAAC,GAAG,GAAG;CAAC,EACvE,gBAAgB,EAAE,MAAM,EAAE,EAC1B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,EACrD,qBAAqB,EAAE,CAAC,EAAE,EAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC,EACzC,gBAAgB,EAAE,MAAM,MAAM,GAC7B,mBAAmB,CA6ErB"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupportedLocales.d.ts","sourceRoot":"","sources":["../../../../../packages/ecma402-abstract/SupportedLocales.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,CAAC,EAAE;IAAC,aAAa,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAA;CAAC,GAChD,MAAM,EAAE,CAgBV"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SupportedLocales = void 0;
|
|
4
|
-
var _262_1 = require("
|
|
4
|
+
var _262_1 = require("./262");
|
|
5
5
|
var GetOption_1 = require("./GetOption");
|
|
6
6
|
var LookupSupportedLocales_1 = require("./LookupSupportedLocales");
|
|
7
7
|
/**
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnicodeExtensionValue.d.ts","sourceRoot":"","sources":["../../../../../packages/ecma402-abstract/UnicodeExtensionValue.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,sBAoCnE"}
|
|
File without changes
|
package/data.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../packages/ecma402-abstract/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAO3D;AAED,cAAM,sBAAuB,SAAQ,KAAK;IACjC,IAAI,SAAyB;CACrC;AAED,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,KAAK,GACP,CAAC,IAAI,sBAAsB,CAE7B;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACtD,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AACzB,iDAAiD;AACjD,OAAO,GAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAgC,GAC1D,CAAC,CAcH"}
|
package/{src/data.js → data.js}
RENAMED
|
File without changes
|
package/index.d.ts
CHANGED
|
@@ -1,55 +1,57 @@
|
|
|
1
|
-
export { BestFitFormatMatcher } from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './
|
|
37
|
-
export * from './
|
|
38
|
-
export * from './
|
|
39
|
-
export * from './
|
|
40
|
-
export * from './
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
1
|
+
export { BestFitFormatMatcher } from './DateTimeFormat/BestFitFormatMatcher';
|
|
2
|
+
export * from './CanonicalizeLocaleList';
|
|
3
|
+
export * from './CanonicalizeTimeZoneName';
|
|
4
|
+
export * from './DateTimeFormat/BasicFormatMatcher';
|
|
5
|
+
export * from './DateTimeFormat/DateTimeStyleFormat';
|
|
6
|
+
export * from './DateTimeFormat/FormatDateTime';
|
|
7
|
+
export * from './DateTimeFormat/FormatDateTimeRange';
|
|
8
|
+
export * from './DateTimeFormat/FormatDateTimeRangeToParts';
|
|
9
|
+
export * from './DateTimeFormat/FormatDateTimeToParts';
|
|
10
|
+
export * from './DateTimeFormat/InitializeDateTimeFormat';
|
|
11
|
+
export * from './DateTimeFormat/PartitionDateTimePattern';
|
|
12
|
+
export * from './DateTimeFormat/ToDateTimeOptions';
|
|
13
|
+
export * from './DisplayNames/CanonicalCodeForDisplayNames';
|
|
14
|
+
export * from './GetNumberOption';
|
|
15
|
+
export * from './GetOption';
|
|
16
|
+
export * from './IsSanctionedSimpleUnitIdentifier';
|
|
17
|
+
export * from './IsValidTimeZoneName';
|
|
18
|
+
export * from './IsWellFormedCurrencyCode';
|
|
19
|
+
export * from './IsWellFormedUnitIdentifier';
|
|
20
|
+
export * from './NumberFormat/ComputeExponent';
|
|
21
|
+
export * from './NumberFormat/ComputeExponentForMagnitude';
|
|
22
|
+
export * from './NumberFormat/CurrencyDigits';
|
|
23
|
+
export * from './NumberFormat/FormatNumericToParts';
|
|
24
|
+
export * from './NumberFormat/FormatNumericToString';
|
|
25
|
+
export * from './NumberFormat/InitializeNumberFormat';
|
|
26
|
+
export * from './NumberFormat/PartitionNumberPattern';
|
|
27
|
+
export * from './NumberFormat/SetNumberFormatDigitOptions';
|
|
28
|
+
export * from './NumberFormat/SetNumberFormatUnitOptions';
|
|
29
|
+
export * from './NumberFormat/ToRawFixed';
|
|
30
|
+
export * from './NumberFormat/ToRawPrecision';
|
|
31
|
+
export * from './PartitionPattern';
|
|
32
|
+
export * from './PluralRules/GetOperands';
|
|
33
|
+
export * from './PluralRules/InitializePluralRules';
|
|
34
|
+
export * from './PluralRules/ResolvePlural';
|
|
35
|
+
export * from './RelativeTimeFormat/FormatRelativeTime';
|
|
36
|
+
export * from './RelativeTimeFormat/FormatRelativeTimeToParts';
|
|
37
|
+
export * from './RelativeTimeFormat/InitializeRelativeTimeFormat';
|
|
38
|
+
export * from './RelativeTimeFormat/MakePartsList';
|
|
39
|
+
export * from './RelativeTimeFormat/PartitionRelativeTimePattern';
|
|
40
|
+
export * from './RelativeTimeFormat/SingularRelativeTimeUnit';
|
|
41
|
+
export * from './ResolveLocale';
|
|
42
|
+
export * from './SupportedLocales';
|
|
43
|
+
export { default as _formatToParts } from './NumberFormat/format_to_parts';
|
|
44
|
+
export { DATE_TIME_PROPS } from './DateTimeFormat/utils';
|
|
45
|
+
export { parseDateTimeSkeleton } from './DateTimeFormat/skeleton';
|
|
46
|
+
export { getInternalSlot, getMultiInternalSlots, isLiteralPart, LiteralPart, setInternalSlot, setMultiInternalSlots, getMagnitude, defineProperty, } from './utils';
|
|
47
|
+
export { getLocaleHierarchy, unpackData, isMissingLocaleDataError } from './data';
|
|
46
48
|
export * from './types/relative-time';
|
|
47
49
|
export * from './types/date-time';
|
|
48
50
|
export * from './types/list';
|
|
49
51
|
export * from './types/plural-rules';
|
|
50
52
|
export * from './types/number';
|
|
51
53
|
export * from './types/displaynames';
|
|
52
|
-
export { invariant } from './
|
|
54
|
+
export { invariant } from './utils';
|
|
53
55
|
export { LocaleData } from './types/core';
|
|
54
56
|
export * from './262';
|
|
55
57
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/ecma402-abstract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/ecma402-abstract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,uCAAuC,CAAC;AAC3E,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oCAAoC,CAAC;AACnD,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAC,kBAAkB,EAAE,UAAU,EAAE,wBAAwB,EAAC,MAAM,QAAQ,CAAC;AAChF,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAClC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,cAAc,OAAO,CAAC"}
|
package/index.js
CHANGED
|
@@ -2,54 +2,56 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.invariant = exports.isMissingLocaleDataError = exports.unpackData = exports.getLocaleHierarchy = exports.defineProperty = exports.getMagnitude = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports.parseDateTimeSkeleton = exports.DATE_TIME_PROPS = exports._formatToParts = exports.BestFitFormatMatcher = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
|
-
var BestFitFormatMatcher_1 = require("./
|
|
5
|
+
var BestFitFormatMatcher_1 = require("./DateTimeFormat/BestFitFormatMatcher");
|
|
6
6
|
Object.defineProperty(exports, "BestFitFormatMatcher", { enumerable: true, get: function () { return BestFitFormatMatcher_1.BestFitFormatMatcher; } });
|
|
7
|
-
tslib_1.__exportStar(require("./
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./
|
|
11
|
-
tslib_1.__exportStar(require("./
|
|
12
|
-
tslib_1.__exportStar(require("./
|
|
13
|
-
tslib_1.__exportStar(require("./
|
|
14
|
-
tslib_1.__exportStar(require("./
|
|
15
|
-
tslib_1.__exportStar(require("./
|
|
16
|
-
tslib_1.__exportStar(require("./
|
|
17
|
-
tslib_1.__exportStar(require("./
|
|
18
|
-
tslib_1.__exportStar(require("./
|
|
19
|
-
tslib_1.__exportStar(require("./
|
|
20
|
-
tslib_1.__exportStar(require("./
|
|
21
|
-
tslib_1.__exportStar(require("./
|
|
22
|
-
tslib_1.__exportStar(require("./
|
|
23
|
-
tslib_1.__exportStar(require("./
|
|
24
|
-
tslib_1.__exportStar(require("./
|
|
25
|
-
tslib_1.__exportStar(require("./
|
|
26
|
-
tslib_1.__exportStar(require("./
|
|
27
|
-
tslib_1.__exportStar(require("./
|
|
28
|
-
tslib_1.__exportStar(require("./
|
|
29
|
-
tslib_1.__exportStar(require("./
|
|
30
|
-
tslib_1.__exportStar(require("./
|
|
31
|
-
tslib_1.__exportStar(require("./
|
|
32
|
-
tslib_1.__exportStar(require("./
|
|
33
|
-
tslib_1.__exportStar(require("./
|
|
34
|
-
tslib_1.__exportStar(require("./
|
|
35
|
-
tslib_1.__exportStar(require("./
|
|
36
|
-
tslib_1.__exportStar(require("./
|
|
37
|
-
tslib_1.__exportStar(require("./
|
|
38
|
-
tslib_1.__exportStar(require("./
|
|
39
|
-
tslib_1.__exportStar(require("./
|
|
40
|
-
tslib_1.__exportStar(require("./
|
|
41
|
-
tslib_1.__exportStar(require("./
|
|
42
|
-
tslib_1.__exportStar(require("./
|
|
43
|
-
tslib_1.__exportStar(require("./
|
|
44
|
-
tslib_1.__exportStar(require("./
|
|
45
|
-
tslib_1.__exportStar(require("./
|
|
46
|
-
|
|
7
|
+
tslib_1.__exportStar(require("./CanonicalizeLocaleList"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CanonicalizeTimeZoneName"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DateTimeFormat/BasicFormatMatcher"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DateTimeFormat/DateTimeStyleFormat"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DateTimeFormat/FormatDateTime"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DateTimeFormat/FormatDateTimeRange"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DateTimeFormat/FormatDateTimeRangeToParts"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DateTimeFormat/FormatDateTimeToParts"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DateTimeFormat/InitializeDateTimeFormat"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./DateTimeFormat/PartitionDateTimePattern"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DateTimeFormat/ToDateTimeOptions"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./DisplayNames/CanonicalCodeForDisplayNames"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./GetNumberOption"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./GetOption"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./IsSanctionedSimpleUnitIdentifier"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./IsValidTimeZoneName"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./IsWellFormedCurrencyCode"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./IsWellFormedUnitIdentifier"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./NumberFormat/ComputeExponent"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./NumberFormat/ComputeExponentForMagnitude"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./NumberFormat/CurrencyDigits"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./NumberFormat/FormatNumericToParts"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./NumberFormat/FormatNumericToString"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./NumberFormat/InitializeNumberFormat"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./NumberFormat/PartitionNumberPattern"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./NumberFormat/SetNumberFormatDigitOptions"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./NumberFormat/SetNumberFormatUnitOptions"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./NumberFormat/ToRawFixed"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./NumberFormat/ToRawPrecision"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./PartitionPattern"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./PluralRules/GetOperands"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./PluralRules/InitializePluralRules"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./PluralRules/ResolvePlural"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./RelativeTimeFormat/FormatRelativeTime"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./RelativeTimeFormat/FormatRelativeTimeToParts"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./RelativeTimeFormat/InitializeRelativeTimeFormat"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./RelativeTimeFormat/MakePartsList"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./RelativeTimeFormat/PartitionRelativeTimePattern"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./RelativeTimeFormat/SingularRelativeTimeUnit"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./ResolveLocale"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./SupportedLocales"), exports);
|
|
48
|
+
var format_to_parts_1 = require("./NumberFormat/format_to_parts");
|
|
47
49
|
Object.defineProperty(exports, "_formatToParts", { enumerable: true, get: function () { return tslib_1.__importDefault(format_to_parts_1).default; } });
|
|
48
|
-
var utils_1 = require("./
|
|
50
|
+
var utils_1 = require("./DateTimeFormat/utils");
|
|
49
51
|
Object.defineProperty(exports, "DATE_TIME_PROPS", { enumerable: true, get: function () { return utils_1.DATE_TIME_PROPS; } });
|
|
50
|
-
var skeleton_1 = require("./
|
|
52
|
+
var skeleton_1 = require("./DateTimeFormat/skeleton");
|
|
51
53
|
Object.defineProperty(exports, "parseDateTimeSkeleton", { enumerable: true, get: function () { return skeleton_1.parseDateTimeSkeleton; } });
|
|
52
|
-
var utils_2 = require("./
|
|
54
|
+
var utils_2 = require("./utils");
|
|
53
55
|
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function () { return utils_2.getInternalSlot; } });
|
|
54
56
|
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function () { return utils_2.getMultiInternalSlots; } });
|
|
55
57
|
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function () { return utils_2.isLiteralPart; } });
|
|
@@ -57,7 +59,7 @@ Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: funct
|
|
|
57
59
|
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function () { return utils_2.setMultiInternalSlots; } });
|
|
58
60
|
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function () { return utils_2.getMagnitude; } });
|
|
59
61
|
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function () { return utils_2.defineProperty; } });
|
|
60
|
-
var data_1 = require("./
|
|
62
|
+
var data_1 = require("./data");
|
|
61
63
|
Object.defineProperty(exports, "getLocaleHierarchy", { enumerable: true, get: function () { return data_1.getLocaleHierarchy; } });
|
|
62
64
|
Object.defineProperty(exports, "unpackData", { enumerable: true, get: function () { return data_1.unpackData; } });
|
|
63
65
|
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function () { return data_1.isMissingLocaleDataError; } });
|
|
@@ -67,6 +69,6 @@ tslib_1.__exportStar(require("./types/list"), exports);
|
|
|
67
69
|
tslib_1.__exportStar(require("./types/plural-rules"), exports);
|
|
68
70
|
tslib_1.__exportStar(require("./types/number"), exports);
|
|
69
71
|
tslib_1.__exportStar(require("./types/displaynames"), exports);
|
|
70
|
-
var utils_3 = require("./
|
|
72
|
+
var utils_3 = require("./utils");
|
|
71
73
|
Object.defineProperty(exports, "invariant", { enumerable: true, get: function () { return utils_3.invariant; } });
|
|
72
74
|
tslib_1.__exportStar(require("./262"), exports);
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BestAvailableLocale.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/BestAvailableLocale.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,MAAM,EAAE,MAAM,sBAgBf"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BestFitMatcher.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/BestFitMatcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AAGjD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,gBAAgB,EAAE,MAAM,MAAM,GAC7B,mBAAmB,CAwBrB"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanonicalizeLocaleList.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/CanonicalizeLocaleList.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,OAGjE"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanonicalizeTimeZoneName.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/CanonicalizeTimeZoneName.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,MAAM,EACV,EACE,MAAM,EACN,cAAc,GACf,EAAE;IACD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,UAgBF"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicFormatMatcher.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/BasicFormatMatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAE,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAYlE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,qBAAqB,EAC9B,OAAO,EAAE,OAAO,EAAE,GACjB,OAAO,CAsCT"}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTimeFormatOptions, Formats } from '
|
|
1
|
+
import { DateTimeFormatOptions, Formats } from '../types/date-time';
|
|
2
2
|
/**
|
|
3
3
|
* Credit: https://github.com/andyearnshaw/Intl.js/blob/0958dc1ad8153f1056653ea22b8208f0df289a4e/src/12.datetimeformat.js#L611
|
|
4
4
|
* with some modifications
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BestFitFormatMatcher.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/BestFitFormatMatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAE,OAAO,EAAU,MAAM,oBAAoB,CAAC;AAoB3E;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,OAAO,GACd,MAAM,CA0CR;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,qBAAqB,EAC9B,OAAO,EAAE,OAAO,EAAE,WAsDnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { invariant } from '../utils';
|
|
3
3
|
import { DATE_TIME_PROPS, removalPenalty, additionPenalty, differentNumericTypePenalty, longMorePenalty, shortMorePenalty, shortLessPenalty, longLessPenalty, } from './utils';
|
|
4
|
-
import {
|
|
4
|
+
import { processDateTimePattern } from './skeleton';
|
|
5
5
|
function isNumericType(t) {
|
|
6
6
|
return t === 'numeric' || t === '2-digit';
|
|
7
7
|
}
|
|
@@ -77,10 +77,11 @@ export function BestFitFormatMatcher(options, formats) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
var skeletonFormat = __assign({}, bestFormat);
|
|
80
|
-
var patternFormat =
|
|
80
|
+
var patternFormat = { rawPattern: bestFormat.rawPattern };
|
|
81
|
+
processDateTimePattern(bestFormat.rawPattern, patternFormat);
|
|
81
82
|
// Kinda following https://github.com/unicode-org/icu/blob/dd50e38f459d84e9bf1b0c618be8483d318458ad/icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java
|
|
82
83
|
// Method adjustFieldTypes
|
|
83
|
-
for (var prop in
|
|
84
|
+
for (var prop in skeletonFormat) {
|
|
84
85
|
var skeletonValue = skeletonFormat[prop];
|
|
85
86
|
var patternValue = patternFormat[prop];
|
|
86
87
|
var requestedValue = options[prop];
|
|
@@ -105,5 +106,11 @@ export function BestFitFormatMatcher(options, formats) {
|
|
|
105
106
|
}
|
|
106
107
|
patternFormat[prop] = requestedValue;
|
|
107
108
|
}
|
|
109
|
+
// Copy those over
|
|
110
|
+
patternFormat.pattern = skeletonFormat.pattern;
|
|
111
|
+
patternFormat.pattern12 = skeletonFormat.pattern12;
|
|
112
|
+
patternFormat.skeleton = skeletonFormat.skeleton;
|
|
113
|
+
patternFormat.rangePatterns = skeletonFormat.rangePatterns;
|
|
114
|
+
patternFormat.rangePatterns12 = skeletonFormat.rangePatterns12;
|
|
108
115
|
return patternFormat;
|
|
109
116
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DateTimeFormatOptions, DateTimeFormatLocaleInternalData, Formats } from '
|
|
1
|
+
import { DateTimeFormatOptions, DateTimeFormatLocaleInternalData, Formats } from '../types/date-time';
|
|
2
2
|
export declare function DateTimeStyleFormat(dateStyle: DateTimeFormatOptions['dateStyle'], timeStyle: DateTimeFormatOptions['timeStyle'], dataLocaleData: DateTimeFormatLocaleInternalData): Formats;
|
|
3
3
|
//# sourceMappingURL=DateTimeStyleFormat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimeStyleFormat.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/DateTimeStyleFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,OAAO,EACR,MAAM,oBAAoB,CAAC;AAG5B,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,qBAAqB,CAAC,WAAW,CAAC,EAC7C,SAAS,EAAE,qBAAqB,CAAC,WAAW,CAAC,EAC7C,cAAc,EAAE,gCAAgC,GAC/C,OAAO,CAuDT"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatDateTime.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/FormatDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AAEpE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,UAQ5D"}
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, IntlDateTimeFormatPart } from '../types/date-time';
|
|
2
|
+
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
3
|
+
export interface FormatDateTimePatternImplDetails {
|
|
4
|
+
getInternalSlots(dtf: Intl.DateTimeFormat): IntlDateTimeFormatInternal;
|
|
5
|
+
localeData: Record<string, DateTimeFormatLocaleInternalData>;
|
|
6
|
+
getDefaultTimeZone(): string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* https://tc39.es/ecma402/#sec-partitiondatetimepattern
|
|
10
|
+
* @param dtf
|
|
11
|
+
* @param x
|
|
12
|
+
*/
|
|
13
|
+
export declare function FormatDateTimePattern(dtf: Intl.DateTimeFormat, patternParts: IntlDateTimeFormatPart[], x: number, { getInternalSlots, localeData, getDefaultTimeZone, tzData, }: FormatDateTimePatternImplDetails & ToLocalTimeImplDetails): IntlDateTimeFormatPart[];
|
|
14
|
+
//# sourceMappingURL=FormatDateTimePattern.d.ts.map
|