@formatjs/ecma402-abstract 1.3.2 → 1.5.2
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/BestAvailableLocale.d.ts +7 -0
- package/BestAvailableLocale.d.ts.map +1 -0
- package/{src/BestAvailableLocale.js → BestAvailableLocale.js} +1 -1
- package/BestFitMatcher.d.ts +9 -0
- package/BestFitMatcher.d.ts.map +1 -0
- package/BestFitMatcher.js +52 -0
- package/{src/CanonicalizeLocaleList.d.ts → CanonicalizeLocaleList.d.ts} +1 -1
- 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 +0 -0
- 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/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.d.ts +1 -1
- package/DateTimeFormat/FormatDateTimePattern.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.js +1 -1
- package/{lib/src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRange.d.ts +0 -0
- package/DateTimeFormat/FormatDateTimeRange.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRange.js +0 -0
- package/{lib/src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRangeToParts.d.ts +0 -0
- package/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRangeToParts.js +0 -0
- package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.d.ts +1 -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 +2 -2
- package/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.js +0 -0
- package/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.d.ts +1 -1
- package/DateTimeFormat/PartitionDateTimePattern.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.js +1 -1
- package/{lib/src/DateTimeFormat → DateTimeFormat}/PartitionDateTimeRangePattern.d.ts +1 -1
- package/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimeRangePattern.js +29 -17
- 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 +1 -1
- package/DateTimeFormat/ToLocalTime.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/ToLocalTime.js +1 -1
- package/{lib/src/DateTimeFormat → DateTimeFormat}/skeleton.d.ts +1 -1
- package/DateTimeFormat/skeleton.d.ts.map +1 -0
- package/{src/DateTimeFormat → DateTimeFormat}/skeleton.js +0 -0
- 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/DisplayNames/CanonicalCodeForDisplayNames.d.ts +2 -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} +4 -1
- 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/LookupMatcher.d.ts +9 -0
- package/LookupMatcher.d.ts.map +1 -0
- package/{src/LookupMatcher.js → LookupMatcher.js} +0 -0
- package/{lib/src/LookupSupportedLocales.d.ts → LookupSupportedLocales.d.ts} +1 -1
- 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 +2 -2
- package/NumberFormat/InitializeNumberFormat.d.ts.map +1 -0
- package/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.js +3 -12
- 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/{lib/src/PartitionPattern.d.ts → PartitionPattern.d.ts} +0 -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 +2 -2
- 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 +2 -2
- package/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +1 -0
- package/{src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.js +3 -3
- 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} +1 -1
- package/ResolveLocale.d.ts.map +1 -0
- package/{src/ResolveLocale.js → ResolveLocale.js} +0 -0
- package/{src/SupportedLocales.d.ts → SupportedLocales.d.ts} +1 -1
- 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/data.d.ts +6 -0
- package/data.d.ts.map +1 -0
- package/data.js +17 -0
- package/index.d.ts +48 -48
- package/index.d.ts.map +1 -1
- package/index.js +49 -51
- package/lib/BestAvailableLocale.d.ts +7 -0
- package/lib/BestAvailableLocale.d.ts.map +1 -0
- package/lib/{src/BestAvailableLocale.js → BestAvailableLocale.js} +1 -1
- package/lib/BestFitMatcher.d.ts +9 -0
- package/lib/BestFitMatcher.d.ts.map +1 -0
- package/lib/BestFitMatcher.js +48 -0
- package/lib/{src/CanonicalizeLocaleList.d.ts → CanonicalizeLocaleList.d.ts} +1 -1
- 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 +0 -0
- 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/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.d.ts +1 -1
- package/lib/DateTimeFormat/FormatDateTimePattern.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.js +1 -1
- package/{src → lib}/DateTimeFormat/FormatDateTimeRange.d.ts +0 -0
- package/lib/DateTimeFormat/FormatDateTimeRange.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRange.js +0 -0
- package/{src → lib}/DateTimeFormat/FormatDateTimeRangeToParts.d.ts +0 -0
- package/lib/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRangeToParts.js +0 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.d.ts +1 -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 +2 -2
- package/lib/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.js +0 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.d.ts +1 -1
- package/lib/DateTimeFormat/PartitionDateTimePattern.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.js +1 -1
- package/{src → lib}/DateTimeFormat/PartitionDateTimeRangePattern.d.ts +1 -1
- package/lib/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimeRangePattern.js +29 -17
- 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 +1 -1
- package/lib/DateTimeFormat/ToLocalTime.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/ToLocalTime.js +1 -1
- package/{src → lib}/DateTimeFormat/skeleton.d.ts +1 -1
- package/lib/DateTimeFormat/skeleton.d.ts.map +1 -0
- package/lib/{src/DateTimeFormat → DateTimeFormat}/skeleton.js +0 -0
- 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/lib/DisplayNames/CanonicalCodeForDisplayNames.d.ts +2 -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} +4 -1
- 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/LookupMatcher.d.ts +9 -0
- package/lib/LookupMatcher.d.ts.map +1 -0
- package/lib/{src/LookupMatcher.js → LookupMatcher.js} +0 -0
- package/{src → lib}/LookupSupportedLocales.d.ts +1 -1
- 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 +2 -2
- package/lib/NumberFormat/InitializeNumberFormat.d.ts.map +1 -0
- package/lib/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.js +3 -12
- 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/{src → lib}/PartitionPattern.d.ts +0 -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 +2 -2
- 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 +2 -2
- package/lib/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +1 -0
- package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.js +3 -3
- 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 +1 -1
- package/lib/ResolveLocale.d.ts.map +1 -0
- package/lib/{src/ResolveLocale.js → ResolveLocale.js} +0 -0
- package/lib/{src/SupportedLocales.d.ts → SupportedLocales.d.ts} +1 -1
- 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/lib/data.d.ts +6 -0
- package/lib/data.d.ts.map +1 -0
- package/lib/data.js +13 -0
- package/lib/index.d.ts +48 -48
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +48 -48
- package/lib/types/core.d.ts +2 -2
- package/lib/types/core.d.ts.map +1 -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/core.d.ts +2 -2
- package/types/core.d.ts.map +1 -1
- 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 +0 -7
- package/lib/src/BestAvailableLocale.d.ts.map +0 -1
- package/lib/src/BestFitMatcher.d.ts +0 -9
- package/lib/src/BestFitMatcher.d.ts.map +0 -1
- package/lib/src/BestFitMatcher.js +0 -25
- 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/FormatDateTimePattern.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/FormatDateTimeRange.d.ts.map +0 -1
- package/lib/src/DateTimeFormat/FormatDateTimeRangeToParts.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.map +0 -1
- package/lib/src/DateTimeFormat/PartitionDateTimeRangePattern.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.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 +0 -2
- 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 +0 -9
- 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.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 +0 -11
- package/lib/src/data.d.ts.map +0 -1
- package/lib/src/data.js +0 -35
- package/lib/src/utils.d.ts.map +0 -1
- package/src/BestAvailableLocale.d.ts +0 -7
- package/src/BestAvailableLocale.d.ts.map +0 -1
- package/src/BestFitMatcher.d.ts +0 -9
- package/src/BestFitMatcher.d.ts.map +0 -1
- package/src/BestFitMatcher.js +0 -29
- 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/FormatDateTimePattern.d.ts.map +0 -1
- package/src/DateTimeFormat/FormatDateTimeRange.d.ts.map +0 -1
- package/src/DateTimeFormat/FormatDateTimeRangeToParts.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.map +0 -1
- package/src/DateTimeFormat/PartitionDateTimeRangePattern.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.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 +0 -2
- 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 +0 -9
- 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.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 +0 -11
- package/src/data.d.ts.map +0 -1
- package/src/data.js +0 -41
- package/src/utils.d.ts.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,57 +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 * from './
|
|
42
|
-
export * from './
|
|
43
|
-
export { default as _formatToParts } from './
|
|
44
|
-
export { DATE_TIME_PROPS } from './
|
|
45
|
-
export { parseDateTimeSkeleton } from './
|
|
46
|
-
export { getInternalSlot, getMultiInternalSlots, isLiteralPart, LiteralPart, setInternalSlot, setMultiInternalSlots, getMagnitude, defineProperty, } from './
|
|
47
|
-
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 { isMissingLocaleDataError } from './data';
|
|
48
48
|
export * from './types/relative-time';
|
|
49
49
|
export * from './types/date-time';
|
|
50
50
|
export * from './types/list';
|
|
51
51
|
export * from './types/plural-rules';
|
|
52
52
|
export * from './types/number';
|
|
53
53
|
export * from './types/displaynames';
|
|
54
|
-
export { invariant } from './
|
|
54
|
+
export { invariant } from './utils';
|
|
55
55
|
export { LocaleData } from './types/core';
|
|
56
56
|
export * from './262';
|
|
57
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,wBAAwB,EAAC,MAAM,QAAQ,CAAC;AAChD,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
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.invariant = exports.isMissingLocaleDataError = exports.
|
|
3
|
+
exports.invariant = exports.isMissingLocaleDataError = 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
|
-
tslib_1.__exportStar(require("./
|
|
47
|
-
tslib_1.__exportStar(require("./
|
|
48
|
-
var format_to_parts_1 = require("./
|
|
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");
|
|
49
49
|
Object.defineProperty(exports, "_formatToParts", { enumerable: true, get: function () { return tslib_1.__importDefault(format_to_parts_1).default; } });
|
|
50
|
-
var utils_1 = require("./
|
|
50
|
+
var utils_1 = require("./DateTimeFormat/utils");
|
|
51
51
|
Object.defineProperty(exports, "DATE_TIME_PROPS", { enumerable: true, get: function () { return utils_1.DATE_TIME_PROPS; } });
|
|
52
|
-
var skeleton_1 = require("./
|
|
52
|
+
var skeleton_1 = require("./DateTimeFormat/skeleton");
|
|
53
53
|
Object.defineProperty(exports, "parseDateTimeSkeleton", { enumerable: true, get: function () { return skeleton_1.parseDateTimeSkeleton; } });
|
|
54
|
-
var utils_2 = require("./
|
|
54
|
+
var utils_2 = require("./utils");
|
|
55
55
|
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function () { return utils_2.getInternalSlot; } });
|
|
56
56
|
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function () { return utils_2.getMultiInternalSlots; } });
|
|
57
57
|
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function () { return utils_2.isLiteralPart; } });
|
|
@@ -59,9 +59,7 @@ Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: funct
|
|
|
59
59
|
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function () { return utils_2.setMultiInternalSlots; } });
|
|
60
60
|
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function () { return utils_2.getMagnitude; } });
|
|
61
61
|
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function () { return utils_2.defineProperty; } });
|
|
62
|
-
var data_1 = require("./
|
|
63
|
-
Object.defineProperty(exports, "getLocaleHierarchy", { enumerable: true, get: function () { return data_1.getLocaleHierarchy; } });
|
|
64
|
-
Object.defineProperty(exports, "unpackData", { enumerable: true, get: function () { return data_1.unpackData; } });
|
|
62
|
+
var data_1 = require("./data");
|
|
65
63
|
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function () { return data_1.isMissingLocaleDataError; } });
|
|
66
64
|
tslib_1.__exportStar(require("./types/relative-time"), exports);
|
|
67
65
|
tslib_1.__exportStar(require("./types/date-time"), exports);
|
|
@@ -69,6 +67,6 @@ tslib_1.__exportStar(require("./types/list"), exports);
|
|
|
69
67
|
tslib_1.__exportStar(require("./types/plural-rules"), exports);
|
|
70
68
|
tslib_1.__exportStar(require("./types/number"), exports);
|
|
71
69
|
tslib_1.__exportStar(require("./types/displaynames"), exports);
|
|
72
|
-
var utils_3 = require("./
|
|
70
|
+
var utils_3 = require("./utils");
|
|
73
71
|
Object.defineProperty(exports, "invariant", { enumerable: true, get: function () { return utils_3.invariant; } });
|
|
74
72
|
tslib_1.__exportStar(require("./262"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://tc39.es/ecma402/#sec-bestavailablelocale
|
|
3
|
+
* @param availableLocales
|
|
4
|
+
* @param locale
|
|
5
|
+
*/
|
|
6
|
+
export declare function BestAvailableLocale(availableLocales: Set<String>, locale: string): string | undefined;
|
|
7
|
+
//# sourceMappingURL=BestAvailableLocale.d.ts.map
|
|
@@ -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,GAAG,CAAC,MAAM,CAAC,EAC7B,MAAM,EAAE,MAAM,sBAgBf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LookupMatcherResult } from './types/core';
|
|
2
|
+
/**
|
|
3
|
+
* https://tc39.es/ecma402/#sec-bestfitmatcher
|
|
4
|
+
* @param availableLocales
|
|
5
|
+
* @param requestedLocales
|
|
6
|
+
* @param getDefaultLocale
|
|
7
|
+
*/
|
|
8
|
+
export declare function BestFitMatcher(availableLocales: Set<string>, requestedLocales: string[], getDefaultLocale: () => string): LookupMatcherResult;
|
|
9
|
+
//# sourceMappingURL=BestFitMatcher.d.ts.map
|
|
@@ -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,GAAG,CAAC,MAAM,CAAC,EAC7B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,gBAAgB,EAAE,MAAM,MAAM,GAC7B,mBAAmB,CAiDrB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BestAvailableLocale } from './BestAvailableLocale';
|
|
2
|
+
import { UNICODE_EXTENSION_SEQUENCE_REGEX } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* https://tc39.es/ecma402/#sec-bestfitmatcher
|
|
5
|
+
* @param availableLocales
|
|
6
|
+
* @param requestedLocales
|
|
7
|
+
* @param getDefaultLocale
|
|
8
|
+
*/
|
|
9
|
+
export function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
10
|
+
var minimizedAvailableLocaleMap = {};
|
|
11
|
+
var minimizedAvailableLocales = new Set();
|
|
12
|
+
availableLocales.forEach(function (locale) {
|
|
13
|
+
var minimizedLocale = new Intl.Locale(locale)
|
|
14
|
+
.minimize()
|
|
15
|
+
.toString();
|
|
16
|
+
minimizedAvailableLocaleMap[minimizedLocale] = locale;
|
|
17
|
+
minimizedAvailableLocales.add(minimizedLocale);
|
|
18
|
+
});
|
|
19
|
+
var foundLocale;
|
|
20
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
21
|
+
var l = requestedLocales_1[_i];
|
|
22
|
+
if (foundLocale) {
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
var noExtensionLocale = l.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, '');
|
|
26
|
+
if (availableLocales.has(noExtensionLocale)) {
|
|
27
|
+
foundLocale = noExtensionLocale;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
if (minimizedAvailableLocales.has(noExtensionLocale)) {
|
|
31
|
+
foundLocale = minimizedAvailableLocaleMap[noExtensionLocale];
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
var locale = new Intl.Locale(noExtensionLocale);
|
|
35
|
+
var maximizedRequestedLocale = locale.maximize().toString();
|
|
36
|
+
var minimizedRequestedLocale = locale.minimize().toString();
|
|
37
|
+
// Check minimized locale
|
|
38
|
+
if (minimizedAvailableLocales.has(minimizedRequestedLocale)) {
|
|
39
|
+
foundLocale = minimizedAvailableLocaleMap[minimizedRequestedLocale];
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
// Lookup algo on maximized locale
|
|
43
|
+
foundLocale = BestAvailableLocale(minimizedAvailableLocales, maximizedRequestedLocale);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
locale: foundLocale || getDefaultLocale(),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
3
3
|
* @param locales
|
|
4
4
|
*/
|
|
5
|
-
export declare function CanonicalizeLocaleList(locales?: string | string[]):
|
|
5
|
+
export declare function CanonicalizeLocaleList(locales?: string | string[]): string[];
|
|
6
6
|
//# sourceMappingURL=CanonicalizeLocaleList.d.ts.map
|
|
@@ -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,GAAG,MAAM,EAAE,CAG5E"}
|
|
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"}
|
|
File without changes
|
|
@@ -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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, IntlDateTimeFormatPart } from '
|
|
1
|
+
import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, IntlDateTimeFormatPart } from '../types/date-time';
|
|
2
2
|
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
3
3
|
export interface FormatDateTimePatternImplDetails {
|
|
4
4
|
getInternalSlots(dtf: Intl.DateTimeFormat): IntlDateTimeFormatInternal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatDateTimePattern.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/FormatDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAc,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAyClE,MAAM,WAAW,gCAAgC;IAC/C,gBAAgB,CAAC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,0BAA0B,CAAC;IACvE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC;IAC7D,kBAAkB,IAAI,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,YAAY,EAAE,sBAAsB,EAAE,EACtC,CAAC,EAAE,MAAM,EACT,EACE,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,MAAM,GACP,EAAE,gCAAgC,GAAG,sBAAsB,GAC3D,sBAAsB,EAAE,CAiI1B"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatDateTimeRange.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/FormatDateTimeRange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AAEzE,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAErD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,gCAAgC,GAAG,sBAAsB,UAQvE"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatDateTimeRangeToParts.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/FormatDateTimeRangeToParts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AAEzE,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAErD,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,gCAAgC,GAAG,sBAAsB,SAYvE"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatDateTimeToParts.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/FormatDateTimeToParts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,oBAAoB,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,GAC1D,sBAAsB,EAAE,CAU1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTimeFormatOptions, IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData } from '
|
|
1
|
+
import { DateTimeFormatOptions, IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData } from '../types/date-time';
|
|
2
2
|
/**
|
|
3
3
|
* https://tc39.es/ecma402/#sec-initializedatetimeformat
|
|
4
4
|
* @param dtf DateTimeFormat
|
|
@@ -7,7 +7,7 @@ import { DateTimeFormatOptions, IntlDateTimeFormatInternal, DateTimeFormatLocale
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function InitializeDateTimeFormat(dtf: Intl.DateTimeFormat, locales: string | string[] | undefined, opts: DateTimeFormatOptions | undefined, { getInternalSlots, availableLocales, localeData, getDefaultLocale, getDefaultTimeZone, relevantExtensionKeys, tzData, uppercaseLinks, }: {
|
|
9
9
|
getInternalSlots(dtf: Intl.DateTimeFormat): IntlDateTimeFormatInternal;
|
|
10
|
-
availableLocales: string
|
|
10
|
+
availableLocales: Set<string>;
|
|
11
11
|
getDefaultLocale(): string;
|
|
12
12
|
getDefaultTimeZone(): string;
|
|
13
13
|
relevantExtensionKeys: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitializeDateTimeFormat.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/InitializeDateTimeFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EAErB,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAuD5B;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EACtC,IAAI,EAAE,qBAAqB,GAAG,SAAS,EACvC,EACE,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,MAAM,EACN,cAAc,GACf,EAAE;IACD,gBAAgB,CAAC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,0BAA0B,CAAC;IACvE,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,gBAAgB,IAAI,MAAM,CAAC;IAC3B,kBAAkB,IAAI,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gCAAgC,GAAG,SAAS,CAAC,CAAC;IACzE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,GACA,IAAI,CAAC,cAAc,CA4OrB"}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
2
2
|
import { FormatDateTimePatternImplDetails } from './FormatDateTimePattern';
|
|
3
|
-
import { IntlDateTimeFormatPart } from '
|
|
3
|
+
import { IntlDateTimeFormatPart } from '../types/date-time';
|
|
4
4
|
/**
|
|
5
5
|
* https://tc39.es/ecma402/#sec-partitiondatetimepattern
|
|
6
6
|
* @param dtf
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartitionDateTimePattern.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/PartitionDateTimePattern.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAEL,gCAAgC,EACjC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,sBAAsB,GAAG,gCAAgC,GACrE,sBAAsB,EAAE,CAkB1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntlDateTimeFormatPart } from '
|
|
1
|
+
import { IntlDateTimeFormatPart } from '../types/date-time';
|
|
2
2
|
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
3
3
|
import { FormatDateTimePatternImplDetails } from './FormatDateTimePattern';
|
|
4
4
|
export declare function PartitionDateTimeRangePattern(dtf: Intl.DateTimeFormat, x: number, y: number, implDetails: FormatDateTimePatternImplDetails & ToLocalTimeImplDetails): IntlDateTimeFormatPart[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartitionDateTimeRangePattern.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/DateTimeFormat/PartitionDateTimeRangePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAIvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAc,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAClE,OAAO,EAEL,gCAAgC,EACjC,MAAM,yBAAyB,CAAC;AAcjC,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,gCAAgC,GAAG,sBAAsB,4BAwGvE"}
|