@formatjs/ecma402-abstract 1.3.0 → 1.5.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.
Files changed (486) hide show
  1. package/BestAvailableLocale.d.ts +7 -0
  2. package/BestAvailableLocale.d.ts.map +1 -0
  3. package/{src/BestAvailableLocale.js → BestAvailableLocale.js} +1 -1
  4. package/BestFitMatcher.d.ts +9 -0
  5. package/BestFitMatcher.d.ts.map +1 -0
  6. package/BestFitMatcher.js +52 -0
  7. package/{src/CanonicalizeLocaleList.d.ts → CanonicalizeLocaleList.d.ts} +1 -1
  8. package/CanonicalizeLocaleList.d.ts.map +1 -0
  9. package/{src/CanonicalizeLocaleList.js → CanonicalizeLocaleList.js} +0 -0
  10. package/{lib/src/CanonicalizeTimeZoneName.d.ts → CanonicalizeTimeZoneName.d.ts} +0 -0
  11. package/CanonicalizeTimeZoneName.d.ts.map +1 -0
  12. package/{src/CanonicalizeTimeZoneName.js → CanonicalizeTimeZoneName.js} +0 -0
  13. package/{lib/src/DateTimeFormat → DateTimeFormat}/BasicFormatMatcher.d.ts +1 -1
  14. package/DateTimeFormat/BasicFormatMatcher.d.ts.map +1 -0
  15. package/{src/DateTimeFormat → DateTimeFormat}/BasicFormatMatcher.js +0 -0
  16. package/{lib/src/DateTimeFormat → DateTimeFormat}/BestFitFormatMatcher.d.ts +1 -1
  17. package/DateTimeFormat/BestFitFormatMatcher.d.ts.map +1 -0
  18. package/{src/DateTimeFormat → DateTimeFormat}/BestFitFormatMatcher.js +6 -2
  19. package/{lib/src/DateTimeFormat → DateTimeFormat}/DateTimeStyleFormat.d.ts +1 -1
  20. package/DateTimeFormat/DateTimeStyleFormat.d.ts.map +1 -0
  21. package/{src/DateTimeFormat → DateTimeFormat}/DateTimeStyleFormat.js +0 -0
  22. package/{lib/src/DateTimeFormat → DateTimeFormat}/FormatDateTime.d.ts +0 -0
  23. package/DateTimeFormat/FormatDateTime.d.ts.map +1 -0
  24. package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTime.js +0 -0
  25. package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.d.ts +1 -1
  26. package/DateTimeFormat/FormatDateTimePattern.d.ts.map +1 -0
  27. package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.js +1 -1
  28. package/{lib/src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRange.d.ts +0 -0
  29. package/DateTimeFormat/FormatDateTimeRange.d.ts.map +1 -0
  30. package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRange.js +0 -0
  31. package/{lib/src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRangeToParts.d.ts +0 -0
  32. package/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +1 -0
  33. package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRangeToParts.js +0 -0
  34. package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.d.ts +1 -1
  35. package/DateTimeFormat/FormatDateTimeToParts.d.ts.map +1 -0
  36. package/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.js +1 -1
  37. package/{lib/src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.d.ts +2 -2
  38. package/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +1 -0
  39. package/{src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.js +34 -27
  40. package/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.d.ts +1 -1
  41. package/DateTimeFormat/PartitionDateTimePattern.d.ts.map +1 -0
  42. package/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.js +1 -1
  43. package/{lib/src/DateTimeFormat → DateTimeFormat}/PartitionDateTimeRangePattern.d.ts +1 -1
  44. package/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +1 -0
  45. package/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimeRangePattern.js +1 -1
  46. package/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.d.ts +1 -1
  47. package/DateTimeFormat/ToDateTimeOptions.d.ts.map +1 -0
  48. package/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.js +1 -1
  49. package/{lib/src/DateTimeFormat → DateTimeFormat}/ToLocalTime.d.ts +1 -1
  50. package/DateTimeFormat/ToLocalTime.d.ts.map +1 -0
  51. package/{src/DateTimeFormat → DateTimeFormat}/ToLocalTime.js +1 -1
  52. package/{lib/src/DateTimeFormat → DateTimeFormat}/skeleton.d.ts +2 -2
  53. package/DateTimeFormat/skeleton.d.ts.map +1 -0
  54. package/{src/DateTimeFormat → DateTimeFormat}/skeleton.js +0 -0
  55. package/{lib/src/DateTimeFormat → DateTimeFormat}/utils.d.ts +1 -1
  56. package/DateTimeFormat/utils.d.ts.map +1 -0
  57. package/{src/DateTimeFormat → DateTimeFormat}/utils.js +0 -0
  58. package/{lib/src/DefaultNumberOption.d.ts → DefaultNumberOption.d.ts} +0 -0
  59. package/DefaultNumberOption.d.ts.map +1 -0
  60. package/{src/DefaultNumberOption.js → DefaultNumberOption.js} +0 -0
  61. package/DisplayNames/CanonicalCodeForDisplayNames.d.ts +2 -0
  62. package/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +1 -0
  63. package/{src/DisplayNames → DisplayNames}/CanonicalCodeForDisplayNames.js +0 -0
  64. package/{lib/src/GetNumberOption.d.ts → GetNumberOption.d.ts} +0 -0
  65. package/GetNumberOption.d.ts.map +1 -0
  66. package/{src/GetNumberOption.js → GetNumberOption.js} +0 -0
  67. package/{lib/src/GetOption.d.ts → GetOption.d.ts} +0 -0
  68. package/GetOption.d.ts.map +1 -0
  69. package/{src/GetOption.js → GetOption.js} +1 -1
  70. package/{lib/src/IsSanctionedSimpleUnitIdentifier.d.ts → IsSanctionedSimpleUnitIdentifier.d.ts} +0 -0
  71. package/IsSanctionedSimpleUnitIdentifier.d.ts.map +1 -0
  72. package/{src/IsSanctionedSimpleUnitIdentifier.js → IsSanctionedSimpleUnitIdentifier.js} +0 -0
  73. package/{lib/src/IsValidTimeZoneName.d.ts → IsValidTimeZoneName.d.ts} +0 -0
  74. package/IsValidTimeZoneName.d.ts.map +1 -0
  75. package/{src/IsValidTimeZoneName.js → IsValidTimeZoneName.js} +0 -0
  76. package/{lib/src/IsWellFormedCurrencyCode.d.ts → IsWellFormedCurrencyCode.d.ts} +0 -0
  77. package/IsWellFormedCurrencyCode.d.ts.map +1 -0
  78. package/{src/IsWellFormedCurrencyCode.js → IsWellFormedCurrencyCode.js} +0 -0
  79. package/{lib/src/IsWellFormedUnitIdentifier.d.ts → IsWellFormedUnitIdentifier.d.ts} +0 -0
  80. package/IsWellFormedUnitIdentifier.d.ts.map +1 -0
  81. package/{src/IsWellFormedUnitIdentifier.js → IsWellFormedUnitIdentifier.js} +0 -0
  82. package/LookupMatcher.d.ts +9 -0
  83. package/LookupMatcher.d.ts.map +1 -0
  84. package/{src/LookupMatcher.js → LookupMatcher.js} +0 -0
  85. package/{lib/src/LookupSupportedLocales.d.ts → LookupSupportedLocales.d.ts} +1 -1
  86. package/LookupSupportedLocales.d.ts.map +1 -0
  87. package/{src/LookupSupportedLocales.js → LookupSupportedLocales.js} +0 -0
  88. package/{lib/src/NumberFormat → NumberFormat}/ComputeExponent.d.ts +1 -1
  89. package/NumberFormat/ComputeExponent.d.ts.map +1 -0
  90. package/{src/NumberFormat → NumberFormat}/ComputeExponent.js +0 -0
  91. package/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.d.ts +1 -1
  92. package/NumberFormat/ComputeExponentForMagnitude.d.ts.map +1 -0
  93. package/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.js +0 -0
  94. package/{lib/src/NumberFormat → NumberFormat}/CurrencyDigits.d.ts +0 -0
  95. package/NumberFormat/CurrencyDigits.d.ts.map +1 -0
  96. package/{src/NumberFormat → NumberFormat}/CurrencyDigits.js +1 -1
  97. package/{src/NumberFormat → NumberFormat}/FormatNumericToParts.d.ts +1 -1
  98. package/NumberFormat/FormatNumericToParts.d.ts.map +1 -0
  99. package/{src/NumberFormat → NumberFormat}/FormatNumericToParts.js +1 -1
  100. package/{src/NumberFormat → NumberFormat}/FormatNumericToString.d.ts +1 -1
  101. package/NumberFormat/FormatNumericToString.d.ts.map +1 -0
  102. package/{src/NumberFormat → NumberFormat}/FormatNumericToString.js +1 -1
  103. package/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.d.ts +2 -2
  104. package/NumberFormat/InitializeNumberFormat.d.ts.map +1 -0
  105. package/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.js +3 -12
  106. package/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.d.ts +2 -2
  107. package/NumberFormat/PartitionNumberPattern.d.ts.map +1 -0
  108. package/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.js +1 -1
  109. package/{lib/src/NumberFormat → NumberFormat}/SetNumberFormatDigitOptions.d.ts +1 -1
  110. package/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +1 -0
  111. package/{src/NumberFormat → NumberFormat}/SetNumberFormatDigitOptions.js +0 -0
  112. package/{lib/src/NumberFormat → NumberFormat}/SetNumberFormatUnitOptions.d.ts +1 -1
  113. package/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +1 -0
  114. package/{src/NumberFormat → NumberFormat}/SetNumberFormatUnitOptions.js +0 -0
  115. package/{lib/src/NumberFormat → NumberFormat}/ToRawFixed.d.ts +1 -1
  116. package/NumberFormat/ToRawFixed.d.ts.map +1 -0
  117. package/{src/NumberFormat → NumberFormat}/ToRawFixed.js +0 -0
  118. package/{lib/src/NumberFormat → NumberFormat}/ToRawPrecision.d.ts +1 -1
  119. package/NumberFormat/ToRawPrecision.d.ts.map +1 -0
  120. package/{src/NumberFormat → NumberFormat}/ToRawPrecision.js +0 -0
  121. package/{lib/src/NumberFormat → NumberFormat}/digit-mapping.json +0 -0
  122. package/{lib/src/NumberFormat → NumberFormat}/format_to_parts.d.ts +1 -1
  123. package/NumberFormat/format_to_parts.d.ts.map +1 -0
  124. package/{src/NumberFormat → NumberFormat}/format_to_parts.js +0 -0
  125. package/{lib/src/PartitionPattern.d.ts → PartitionPattern.d.ts} +0 -0
  126. package/PartitionPattern.d.ts.map +1 -0
  127. package/{src/PartitionPattern.js → PartitionPattern.js} +0 -0
  128. package/{lib/src/PluralRules → PluralRules}/GetOperands.d.ts +0 -0
  129. package/PluralRules/GetOperands.d.ts.map +1 -0
  130. package/{src/PluralRules → PluralRules}/GetOperands.js +1 -1
  131. package/{lib/src/PluralRules → PluralRules}/InitializePluralRules.d.ts +2 -2
  132. package/PluralRules/InitializePluralRules.d.ts.map +1 -0
  133. package/{src/PluralRules → PluralRules}/InitializePluralRules.js +1 -1
  134. package/{lib/src/PluralRules → PluralRules}/ResolvePlural.d.ts +1 -1
  135. package/PluralRules/ResolvePlural.d.ts.map +1 -0
  136. package/{src/PluralRules → PluralRules}/ResolvePlural.js +1 -1
  137. package/README.md +4 -2
  138. package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTime.d.ts +1 -1
  139. package/RelativeTimeFormat/FormatRelativeTime.d.ts.map +1 -0
  140. package/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTime.js +0 -0
  141. package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTimeToParts.d.ts +1 -1
  142. package/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +1 -0
  143. package/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTimeToParts.js +1 -1
  144. package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.d.ts +2 -2
  145. package/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +1 -0
  146. package/{src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.js +3 -3
  147. package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/MakePartsList.d.ts +1 -1
  148. package/RelativeTimeFormat/MakePartsList.d.ts.map +1 -0
  149. package/{src/RelativeTimeFormat → RelativeTimeFormat}/MakePartsList.js +0 -0
  150. package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/PartitionRelativeTimePattern.d.ts +1 -1
  151. package/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +1 -0
  152. package/{src/RelativeTimeFormat → RelativeTimeFormat}/PartitionRelativeTimePattern.js +1 -1
  153. package/{lib/src/RelativeTimeFormat → RelativeTimeFormat}/SingularRelativeTimeUnit.d.ts +1 -1
  154. package/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +1 -0
  155. package/{src/RelativeTimeFormat → RelativeTimeFormat}/SingularRelativeTimeUnit.js +1 -1
  156. package/{lib/src/ResolveLocale.d.ts → ResolveLocale.d.ts} +1 -1
  157. package/ResolveLocale.d.ts.map +1 -0
  158. package/{src/ResolveLocale.js → ResolveLocale.js} +0 -0
  159. package/{src/SupportedLocales.d.ts → SupportedLocales.d.ts} +1 -1
  160. package/SupportedLocales.d.ts.map +1 -0
  161. package/{src/SupportedLocales.js → SupportedLocales.js} +1 -1
  162. package/{lib/src/UnicodeExtensionValue.d.ts → UnicodeExtensionValue.d.ts} +0 -0
  163. package/UnicodeExtensionValue.d.ts.map +1 -0
  164. package/{src/UnicodeExtensionValue.js → UnicodeExtensionValue.js} +0 -0
  165. package/data.d.ts +6 -0
  166. package/data.d.ts.map +1 -0
  167. package/data.js +17 -0
  168. package/index.d.ts +48 -48
  169. package/index.d.ts.map +1 -1
  170. package/index.js +49 -51
  171. package/lib/BestAvailableLocale.d.ts +7 -0
  172. package/lib/BestAvailableLocale.d.ts.map +1 -0
  173. package/lib/{src/BestAvailableLocale.js → BestAvailableLocale.js} +1 -1
  174. package/lib/BestFitMatcher.d.ts +9 -0
  175. package/lib/BestFitMatcher.d.ts.map +1 -0
  176. package/lib/BestFitMatcher.js +48 -0
  177. package/lib/{src/CanonicalizeLocaleList.d.ts → CanonicalizeLocaleList.d.ts} +1 -1
  178. package/lib/CanonicalizeLocaleList.d.ts.map +1 -0
  179. package/lib/{src/CanonicalizeLocaleList.js → CanonicalizeLocaleList.js} +0 -0
  180. package/{src → lib}/CanonicalizeTimeZoneName.d.ts +0 -0
  181. package/lib/CanonicalizeTimeZoneName.d.ts.map +1 -0
  182. package/lib/{src/CanonicalizeTimeZoneName.js → CanonicalizeTimeZoneName.js} +0 -0
  183. package/{src → lib}/DateTimeFormat/BasicFormatMatcher.d.ts +1 -1
  184. package/lib/DateTimeFormat/BasicFormatMatcher.d.ts.map +1 -0
  185. package/lib/{src/DateTimeFormat → DateTimeFormat}/BasicFormatMatcher.js +0 -0
  186. package/{src → lib}/DateTimeFormat/BestFitFormatMatcher.d.ts +1 -1
  187. package/lib/DateTimeFormat/BestFitFormatMatcher.d.ts.map +1 -0
  188. package/lib/{src/DateTimeFormat → DateTimeFormat}/BestFitFormatMatcher.js +7 -3
  189. package/{src → lib}/DateTimeFormat/DateTimeStyleFormat.d.ts +1 -1
  190. package/lib/DateTimeFormat/DateTimeStyleFormat.d.ts.map +1 -0
  191. package/lib/{src/DateTimeFormat → DateTimeFormat}/DateTimeStyleFormat.js +0 -0
  192. package/{src → lib}/DateTimeFormat/FormatDateTime.d.ts +0 -0
  193. package/lib/DateTimeFormat/FormatDateTime.d.ts.map +1 -0
  194. package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTime.js +0 -0
  195. package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.d.ts +1 -1
  196. package/lib/DateTimeFormat/FormatDateTimePattern.d.ts.map +1 -0
  197. package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimePattern.js +1 -1
  198. package/{src → lib}/DateTimeFormat/FormatDateTimeRange.d.ts +0 -0
  199. package/lib/DateTimeFormat/FormatDateTimeRange.d.ts.map +1 -0
  200. package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRange.js +0 -0
  201. package/{src → lib}/DateTimeFormat/FormatDateTimeRangeToParts.d.ts +0 -0
  202. package/lib/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +1 -0
  203. package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeRangeToParts.js +0 -0
  204. package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.d.ts +1 -1
  205. package/lib/DateTimeFormat/FormatDateTimeToParts.d.ts.map +1 -0
  206. package/lib/{src/DateTimeFormat → DateTimeFormat}/FormatDateTimeToParts.js +1 -1
  207. package/{src → lib}/DateTimeFormat/InitializeDateTimeFormat.d.ts +2 -2
  208. package/lib/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +1 -0
  209. package/lib/{src/DateTimeFormat → DateTimeFormat}/InitializeDateTimeFormat.js +34 -27
  210. package/lib/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.d.ts +1 -1
  211. package/lib/DateTimeFormat/PartitionDateTimePattern.d.ts.map +1 -0
  212. package/lib/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimePattern.js +1 -1
  213. package/{src → lib}/DateTimeFormat/PartitionDateTimeRangePattern.d.ts +1 -1
  214. package/lib/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +1 -0
  215. package/lib/{src/DateTimeFormat → DateTimeFormat}/PartitionDateTimeRangePattern.js +1 -1
  216. package/lib/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.d.ts +1 -1
  217. package/lib/DateTimeFormat/ToDateTimeOptions.d.ts.map +1 -0
  218. package/lib/{src/DateTimeFormat → DateTimeFormat}/ToDateTimeOptions.js +1 -1
  219. package/{src → lib}/DateTimeFormat/ToLocalTime.d.ts +1 -1
  220. package/lib/DateTimeFormat/ToLocalTime.d.ts.map +1 -0
  221. package/lib/{src/DateTimeFormat → DateTimeFormat}/ToLocalTime.js +1 -1
  222. package/{src → lib}/DateTimeFormat/skeleton.d.ts +2 -2
  223. package/lib/DateTimeFormat/skeleton.d.ts.map +1 -0
  224. package/lib/{src/DateTimeFormat → DateTimeFormat}/skeleton.js +0 -0
  225. package/{src → lib}/DateTimeFormat/utils.d.ts +1 -1
  226. package/lib/DateTimeFormat/utils.d.ts.map +1 -0
  227. package/lib/{src/DateTimeFormat → DateTimeFormat}/utils.js +0 -0
  228. package/{src → lib}/DefaultNumberOption.d.ts +0 -0
  229. package/lib/DefaultNumberOption.d.ts.map +1 -0
  230. package/lib/{src/DefaultNumberOption.js → DefaultNumberOption.js} +0 -0
  231. package/lib/DisplayNames/CanonicalCodeForDisplayNames.d.ts +2 -0
  232. package/lib/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +1 -0
  233. package/lib/{src/DisplayNames → DisplayNames}/CanonicalCodeForDisplayNames.js +0 -0
  234. package/{src → lib}/GetNumberOption.d.ts +0 -0
  235. package/lib/GetNumberOption.d.ts.map +1 -0
  236. package/lib/{src/GetNumberOption.js → GetNumberOption.js} +0 -0
  237. package/{src → lib}/GetOption.d.ts +0 -0
  238. package/lib/GetOption.d.ts.map +1 -0
  239. package/lib/{src/GetOption.js → GetOption.js} +1 -1
  240. package/{src → lib}/IsSanctionedSimpleUnitIdentifier.d.ts +0 -0
  241. package/lib/IsSanctionedSimpleUnitIdentifier.d.ts.map +1 -0
  242. package/lib/{src/IsSanctionedSimpleUnitIdentifier.js → IsSanctionedSimpleUnitIdentifier.js} +0 -0
  243. package/{src → lib}/IsValidTimeZoneName.d.ts +0 -0
  244. package/lib/IsValidTimeZoneName.d.ts.map +1 -0
  245. package/lib/{src/IsValidTimeZoneName.js → IsValidTimeZoneName.js} +0 -0
  246. package/{src → lib}/IsWellFormedCurrencyCode.d.ts +0 -0
  247. package/lib/IsWellFormedCurrencyCode.d.ts.map +1 -0
  248. package/lib/{src/IsWellFormedCurrencyCode.js → IsWellFormedCurrencyCode.js} +0 -0
  249. package/{src → lib}/IsWellFormedUnitIdentifier.d.ts +0 -0
  250. package/lib/IsWellFormedUnitIdentifier.d.ts.map +1 -0
  251. package/lib/{src/IsWellFormedUnitIdentifier.js → IsWellFormedUnitIdentifier.js} +0 -0
  252. package/lib/LookupMatcher.d.ts +9 -0
  253. package/lib/LookupMatcher.d.ts.map +1 -0
  254. package/lib/{src/LookupMatcher.js → LookupMatcher.js} +0 -0
  255. package/{src → lib}/LookupSupportedLocales.d.ts +1 -1
  256. package/lib/LookupSupportedLocales.d.ts.map +1 -0
  257. package/lib/{src/LookupSupportedLocales.js → LookupSupportedLocales.js} +0 -0
  258. package/{src → lib}/NumberFormat/ComputeExponent.d.ts +1 -1
  259. package/lib/NumberFormat/ComputeExponent.d.ts.map +1 -0
  260. package/lib/{src/NumberFormat → NumberFormat}/ComputeExponent.js +0 -0
  261. package/lib/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.d.ts +1 -1
  262. package/lib/NumberFormat/ComputeExponentForMagnitude.d.ts.map +1 -0
  263. package/lib/{src/NumberFormat → NumberFormat}/ComputeExponentForMagnitude.js +0 -0
  264. package/{src → lib}/NumberFormat/CurrencyDigits.d.ts +0 -0
  265. package/lib/NumberFormat/CurrencyDigits.d.ts.map +1 -0
  266. package/lib/{src/NumberFormat → NumberFormat}/CurrencyDigits.js +1 -1
  267. package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToParts.d.ts +1 -1
  268. package/lib/NumberFormat/FormatNumericToParts.d.ts.map +1 -0
  269. package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToParts.js +1 -1
  270. package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToString.d.ts +1 -1
  271. package/lib/NumberFormat/FormatNumericToString.d.ts.map +1 -0
  272. package/lib/{src/NumberFormat → NumberFormat}/FormatNumericToString.js +1 -1
  273. package/lib/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.d.ts +2 -2
  274. package/lib/NumberFormat/InitializeNumberFormat.d.ts.map +1 -0
  275. package/lib/{src/NumberFormat → NumberFormat}/InitializeNumberFormat.js +3 -12
  276. package/lib/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.d.ts +2 -2
  277. package/lib/NumberFormat/PartitionNumberPattern.d.ts.map +1 -0
  278. package/lib/{src/NumberFormat → NumberFormat}/PartitionNumberPattern.js +1 -1
  279. package/{src → lib}/NumberFormat/SetNumberFormatDigitOptions.d.ts +1 -1
  280. package/lib/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +1 -0
  281. package/lib/{src/NumberFormat → NumberFormat}/SetNumberFormatDigitOptions.js +0 -0
  282. package/{src → lib}/NumberFormat/SetNumberFormatUnitOptions.d.ts +1 -1
  283. package/lib/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +1 -0
  284. package/lib/{src/NumberFormat → NumberFormat}/SetNumberFormatUnitOptions.js +0 -0
  285. package/{src → lib}/NumberFormat/ToRawFixed.d.ts +1 -1
  286. package/lib/NumberFormat/ToRawFixed.d.ts.map +1 -0
  287. package/lib/{src/NumberFormat → NumberFormat}/ToRawFixed.js +0 -0
  288. package/{src → lib}/NumberFormat/ToRawPrecision.d.ts +1 -1
  289. package/lib/NumberFormat/ToRawPrecision.d.ts.map +1 -0
  290. package/lib/{src/NumberFormat → NumberFormat}/ToRawPrecision.js +0 -0
  291. package/{src → lib}/NumberFormat/digit-mapping.json +0 -0
  292. package/{src → lib}/NumberFormat/format_to_parts.d.ts +1 -1
  293. package/lib/NumberFormat/format_to_parts.d.ts.map +1 -0
  294. package/lib/{src/NumberFormat → NumberFormat}/format_to_parts.js +0 -0
  295. package/{src → lib}/PartitionPattern.d.ts +0 -0
  296. package/lib/PartitionPattern.d.ts.map +1 -0
  297. package/lib/{src/PartitionPattern.js → PartitionPattern.js} +0 -0
  298. package/{src → lib}/PluralRules/GetOperands.d.ts +0 -0
  299. package/lib/PluralRules/GetOperands.d.ts.map +1 -0
  300. package/lib/{src/PluralRules → PluralRules}/GetOperands.js +1 -1
  301. package/{src → lib}/PluralRules/InitializePluralRules.d.ts +2 -2
  302. package/lib/PluralRules/InitializePluralRules.d.ts.map +1 -0
  303. package/lib/{src/PluralRules → PluralRules}/InitializePluralRules.js +1 -1
  304. package/{src → lib}/PluralRules/ResolvePlural.d.ts +1 -1
  305. package/lib/PluralRules/ResolvePlural.d.ts.map +1 -0
  306. package/lib/{src/PluralRules → PluralRules}/ResolvePlural.js +1 -1
  307. package/{src → lib}/RelativeTimeFormat/FormatRelativeTime.d.ts +1 -1
  308. package/lib/RelativeTimeFormat/FormatRelativeTime.d.ts.map +1 -0
  309. package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTime.js +0 -0
  310. package/{src → lib}/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts +1 -1
  311. package/lib/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +1 -0
  312. package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/FormatRelativeTimeToParts.js +1 -1
  313. package/{src → lib}/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts +2 -2
  314. package/lib/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +1 -0
  315. package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/InitializeRelativeTimeFormat.js +3 -3
  316. package/{src → lib}/RelativeTimeFormat/MakePartsList.d.ts +1 -1
  317. package/lib/RelativeTimeFormat/MakePartsList.d.ts.map +1 -0
  318. package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/MakePartsList.js +0 -0
  319. package/{src → lib}/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts +1 -1
  320. package/lib/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +1 -0
  321. package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/PartitionRelativeTimePattern.js +1 -1
  322. package/{src → lib}/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts +1 -1
  323. package/lib/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +1 -0
  324. package/lib/{src/RelativeTimeFormat → RelativeTimeFormat}/SingularRelativeTimeUnit.js +1 -1
  325. package/{src → lib}/ResolveLocale.d.ts +1 -1
  326. package/lib/ResolveLocale.d.ts.map +1 -0
  327. package/lib/{src/ResolveLocale.js → ResolveLocale.js} +0 -0
  328. package/lib/{src/SupportedLocales.d.ts → SupportedLocales.d.ts} +1 -1
  329. package/lib/SupportedLocales.d.ts.map +1 -0
  330. package/lib/{src/SupportedLocales.js → SupportedLocales.js} +1 -1
  331. package/{src → lib}/UnicodeExtensionValue.d.ts +0 -0
  332. package/lib/UnicodeExtensionValue.d.ts.map +1 -0
  333. package/lib/{src/UnicodeExtensionValue.js → UnicodeExtensionValue.js} +0 -0
  334. package/lib/data.d.ts +6 -0
  335. package/lib/data.d.ts.map +1 -0
  336. package/lib/data.js +13 -0
  337. package/lib/index.d.ts +48 -48
  338. package/lib/index.d.ts.map +1 -1
  339. package/lib/index.js +48 -48
  340. package/lib/types/core.d.ts +2 -2
  341. package/lib/types/core.d.ts.map +1 -1
  342. package/lib/types/date-time.d.ts +1 -0
  343. package/lib/types/date-time.d.ts.map +1 -1
  344. package/lib/types/relative-time.d.ts +1 -1
  345. package/lib/types/relative-time.d.ts.map +1 -1
  346. package/lib/{src/utils.d.ts → utils.d.ts} +0 -0
  347. package/lib/utils.d.ts.map +1 -0
  348. package/lib/{src/utils.js → utils.js} +0 -0
  349. package/package.json +1 -1
  350. package/types/core.d.ts +2 -2
  351. package/types/core.d.ts.map +1 -1
  352. package/types/date-time.d.ts +1 -0
  353. package/types/date-time.d.ts.map +1 -1
  354. package/types/relative-time.d.ts +1 -1
  355. package/types/relative-time.d.ts.map +1 -1
  356. package/{src/utils.d.ts → utils.d.ts} +0 -0
  357. package/utils.d.ts.map +1 -0
  358. package/{src/utils.js → utils.js} +0 -0
  359. package/_validate_dist-base_options.optionsvalid.d.ts +0 -9
  360. package/_validate_dist-esm_options.optionsvalid.d.ts +0 -9
  361. package/lib/src/BestAvailableLocale.d.ts +0 -7
  362. package/lib/src/BestAvailableLocale.d.ts.map +0 -1
  363. package/lib/src/BestFitMatcher.d.ts +0 -9
  364. package/lib/src/BestFitMatcher.d.ts.map +0 -1
  365. package/lib/src/BestFitMatcher.js +0 -25
  366. package/lib/src/CanonicalizeLocaleList.d.ts.map +0 -1
  367. package/lib/src/CanonicalizeTimeZoneName.d.ts.map +0 -1
  368. package/lib/src/DateTimeFormat/BasicFormatMatcher.d.ts.map +0 -1
  369. package/lib/src/DateTimeFormat/BestFitFormatMatcher.d.ts.map +0 -1
  370. package/lib/src/DateTimeFormat/DateTimeStyleFormat.d.ts.map +0 -1
  371. package/lib/src/DateTimeFormat/FormatDateTime.d.ts.map +0 -1
  372. package/lib/src/DateTimeFormat/FormatDateTimePattern.d.ts.map +0 -1
  373. package/lib/src/DateTimeFormat/FormatDateTimeRange.d.ts.map +0 -1
  374. package/lib/src/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +0 -1
  375. package/lib/src/DateTimeFormat/FormatDateTimeToParts.d.ts.map +0 -1
  376. package/lib/src/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +0 -1
  377. package/lib/src/DateTimeFormat/PartitionDateTimePattern.d.ts.map +0 -1
  378. package/lib/src/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +0 -1
  379. package/lib/src/DateTimeFormat/ToDateTimeOptions.d.ts.map +0 -1
  380. package/lib/src/DateTimeFormat/ToLocalTime.d.ts.map +0 -1
  381. package/lib/src/DateTimeFormat/skeleton.d.ts.map +0 -1
  382. package/lib/src/DateTimeFormat/utils.d.ts.map +0 -1
  383. package/lib/src/DefaultNumberOption.d.ts.map +0 -1
  384. package/lib/src/DisplayNames/CanonicalCodeForDisplayNames.d.ts +0 -2
  385. package/lib/src/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +0 -1
  386. package/lib/src/GetNumberOption.d.ts.map +0 -1
  387. package/lib/src/GetOption.d.ts.map +0 -1
  388. package/lib/src/IsSanctionedSimpleUnitIdentifier.d.ts.map +0 -1
  389. package/lib/src/IsValidTimeZoneName.d.ts.map +0 -1
  390. package/lib/src/IsWellFormedCurrencyCode.d.ts.map +0 -1
  391. package/lib/src/IsWellFormedUnitIdentifier.d.ts.map +0 -1
  392. package/lib/src/LookupMatcher.d.ts +0 -9
  393. package/lib/src/LookupMatcher.d.ts.map +0 -1
  394. package/lib/src/LookupSupportedLocales.d.ts.map +0 -1
  395. package/lib/src/NumberFormat/ComputeExponent.d.ts.map +0 -1
  396. package/lib/src/NumberFormat/ComputeExponentForMagnitude.d.ts.map +0 -1
  397. package/lib/src/NumberFormat/CurrencyDigits.d.ts.map +0 -1
  398. package/lib/src/NumberFormat/FormatNumericToParts.d.ts.map +0 -1
  399. package/lib/src/NumberFormat/FormatNumericToString.d.ts.map +0 -1
  400. package/lib/src/NumberFormat/InitializeNumberFormat.d.ts.map +0 -1
  401. package/lib/src/NumberFormat/PartitionNumberPattern.d.ts.map +0 -1
  402. package/lib/src/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +0 -1
  403. package/lib/src/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +0 -1
  404. package/lib/src/NumberFormat/ToRawFixed.d.ts.map +0 -1
  405. package/lib/src/NumberFormat/ToRawPrecision.d.ts.map +0 -1
  406. package/lib/src/NumberFormat/format_to_parts.d.ts.map +0 -1
  407. package/lib/src/PartitionPattern.d.ts.map +0 -1
  408. package/lib/src/PluralRules/GetOperands.d.ts.map +0 -1
  409. package/lib/src/PluralRules/InitializePluralRules.d.ts.map +0 -1
  410. package/lib/src/PluralRules/ResolvePlural.d.ts.map +0 -1
  411. package/lib/src/RelativeTimeFormat/FormatRelativeTime.d.ts.map +0 -1
  412. package/lib/src/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +0 -1
  413. package/lib/src/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +0 -1
  414. package/lib/src/RelativeTimeFormat/MakePartsList.d.ts.map +0 -1
  415. package/lib/src/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +0 -1
  416. package/lib/src/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +0 -1
  417. package/lib/src/ResolveLocale.d.ts.map +0 -1
  418. package/lib/src/SupportedLocales.d.ts.map +0 -1
  419. package/lib/src/UnicodeExtensionValue.d.ts.map +0 -1
  420. package/lib/src/data.d.ts +0 -11
  421. package/lib/src/data.d.ts.map +0 -1
  422. package/lib/src/data.js +0 -35
  423. package/lib/src/utils.d.ts.map +0 -1
  424. package/src/BestAvailableLocale.d.ts +0 -7
  425. package/src/BestAvailableLocale.d.ts.map +0 -1
  426. package/src/BestFitMatcher.d.ts +0 -9
  427. package/src/BestFitMatcher.d.ts.map +0 -1
  428. package/src/BestFitMatcher.js +0 -29
  429. package/src/CanonicalizeLocaleList.d.ts.map +0 -1
  430. package/src/CanonicalizeTimeZoneName.d.ts.map +0 -1
  431. package/src/DateTimeFormat/BasicFormatMatcher.d.ts.map +0 -1
  432. package/src/DateTimeFormat/BestFitFormatMatcher.d.ts.map +0 -1
  433. package/src/DateTimeFormat/DateTimeStyleFormat.d.ts.map +0 -1
  434. package/src/DateTimeFormat/FormatDateTime.d.ts.map +0 -1
  435. package/src/DateTimeFormat/FormatDateTimePattern.d.ts.map +0 -1
  436. package/src/DateTimeFormat/FormatDateTimeRange.d.ts.map +0 -1
  437. package/src/DateTimeFormat/FormatDateTimeRangeToParts.d.ts.map +0 -1
  438. package/src/DateTimeFormat/FormatDateTimeToParts.d.ts.map +0 -1
  439. package/src/DateTimeFormat/InitializeDateTimeFormat.d.ts.map +0 -1
  440. package/src/DateTimeFormat/PartitionDateTimePattern.d.ts.map +0 -1
  441. package/src/DateTimeFormat/PartitionDateTimeRangePattern.d.ts.map +0 -1
  442. package/src/DateTimeFormat/ToDateTimeOptions.d.ts.map +0 -1
  443. package/src/DateTimeFormat/ToLocalTime.d.ts.map +0 -1
  444. package/src/DateTimeFormat/skeleton.d.ts.map +0 -1
  445. package/src/DateTimeFormat/utils.d.ts.map +0 -1
  446. package/src/DefaultNumberOption.d.ts.map +0 -1
  447. package/src/DisplayNames/CanonicalCodeForDisplayNames.d.ts +0 -2
  448. package/src/DisplayNames/CanonicalCodeForDisplayNames.d.ts.map +0 -1
  449. package/src/GetNumberOption.d.ts.map +0 -1
  450. package/src/GetOption.d.ts.map +0 -1
  451. package/src/IsSanctionedSimpleUnitIdentifier.d.ts.map +0 -1
  452. package/src/IsValidTimeZoneName.d.ts.map +0 -1
  453. package/src/IsWellFormedCurrencyCode.d.ts.map +0 -1
  454. package/src/IsWellFormedUnitIdentifier.d.ts.map +0 -1
  455. package/src/LookupMatcher.d.ts +0 -9
  456. package/src/LookupMatcher.d.ts.map +0 -1
  457. package/src/LookupSupportedLocales.d.ts.map +0 -1
  458. package/src/NumberFormat/ComputeExponent.d.ts.map +0 -1
  459. package/src/NumberFormat/ComputeExponentForMagnitude.d.ts.map +0 -1
  460. package/src/NumberFormat/CurrencyDigits.d.ts.map +0 -1
  461. package/src/NumberFormat/FormatNumericToParts.d.ts.map +0 -1
  462. package/src/NumberFormat/FormatNumericToString.d.ts.map +0 -1
  463. package/src/NumberFormat/InitializeNumberFormat.d.ts.map +0 -1
  464. package/src/NumberFormat/PartitionNumberPattern.d.ts.map +0 -1
  465. package/src/NumberFormat/SetNumberFormatDigitOptions.d.ts.map +0 -1
  466. package/src/NumberFormat/SetNumberFormatUnitOptions.d.ts.map +0 -1
  467. package/src/NumberFormat/ToRawFixed.d.ts.map +0 -1
  468. package/src/NumberFormat/ToRawPrecision.d.ts.map +0 -1
  469. package/src/NumberFormat/format_to_parts.d.ts.map +0 -1
  470. package/src/PartitionPattern.d.ts.map +0 -1
  471. package/src/PluralRules/GetOperands.d.ts.map +0 -1
  472. package/src/PluralRules/InitializePluralRules.d.ts.map +0 -1
  473. package/src/PluralRules/ResolvePlural.d.ts.map +0 -1
  474. package/src/RelativeTimeFormat/FormatRelativeTime.d.ts.map +0 -1
  475. package/src/RelativeTimeFormat/FormatRelativeTimeToParts.d.ts.map +0 -1
  476. package/src/RelativeTimeFormat/InitializeRelativeTimeFormat.d.ts.map +0 -1
  477. package/src/RelativeTimeFormat/MakePartsList.d.ts.map +0 -1
  478. package/src/RelativeTimeFormat/PartitionRelativeTimePattern.d.ts.map +0 -1
  479. package/src/RelativeTimeFormat/SingularRelativeTimeUnit.d.ts.map +0 -1
  480. package/src/ResolveLocale.d.ts.map +0 -1
  481. package/src/SupportedLocales.d.ts.map +0 -1
  482. package/src/UnicodeExtensionValue.d.ts.map +0 -1
  483. package/src/data.d.ts +0 -11
  484. package/src/data.d.ts.map +0 -1
  485. package/src/data.js +0 -41
  486. package/src/utils.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { LDMLPluralRule, PluralRulesInternal } from '../../types/plural-rules';
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"}
@@ -1,5 +1,5 @@
1
1
  import { invariant } from '../utils';
2
- import { Type } from '../../262';
2
+ import { Type } from '../262';
3
3
  import { FormatNumericToString } from '../NumberFormat/FormatNumericToString';
4
4
  import { GetOperands } from './GetOperands';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { RelativeTimeFormat, RelativeTimeFormattableUnit, RelativeTimeFormatInternal } from '../../types/relative-time';
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"}
@@ -1,4 +1,4 @@
1
- import { RelativeTimeFormat, RelativeTimeFormattableUnit, RelativeTimePart, RelativeTimeFormatInternal } from '../../types/relative-time';
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"}
@@ -1,5 +1,5 @@
1
1
  import { PartitionRelativeTimePattern } from './PartitionRelativeTimePattern';
2
- import { ArrayCreate } from '../../262';
2
+ import { ArrayCreate } from '../262';
3
3
  export function FormatRelativeTimeToParts(rtf, value, unit, implDetails) {
4
4
  var parts = PartitionRelativeTimePattern(rtf, value, unit, implDetails);
5
5
  var result = ArrayCreate(0);
@@ -1,7 +1,7 @@
1
- import { RelativeTimeFormat, IntlRelativeTimeFormatOptions, RelativeTimeFormatInternal, LocaleFieldsData } from '../../types/relative-time';
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
- availableLocales: string[];
4
+ availableLocales: Set<string>;
5
5
  relevantExtensionKeys: string[];
6
6
  localeData: Record<string, LocaleFieldsData | undefined>;
7
7
  getDefaultLocale(): 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,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC,CAAC;IACzD,gBAAgB,IAAI,MAAM,CAAC;CAC5B,sBA2DF"}
@@ -1,5 +1,5 @@
1
1
  import { CanonicalizeLocaleList } from '../CanonicalizeLocaleList';
2
- import { ToObject } from '../../262';
2
+ import { ToObject } from '../262';
3
3
  import { GetOption } from '../GetOption';
4
4
  import { ResolveLocale } from '../ResolveLocale';
5
5
  import { invariant } from '../utils';
@@ -25,8 +25,8 @@ export function InitializeRelativeTimeFormat(rtf, locales, options, _a) {
25
25
  internalSlots.locale = locale;
26
26
  internalSlots.style = GetOption(opts, 'style', 'string', ['long', 'narrow', 'short'], 'long');
27
27
  internalSlots.numeric = GetOption(opts, 'numeric', 'string', ['always', 'auto'], 'always');
28
- var fields = localeData[locale];
29
- invariant(!!fields, "Missing locale data for " + locale);
28
+ var fields = localeData[r.dataLocale];
29
+ invariant(!!fields, "Missing locale data for " + r.dataLocale);
30
30
  internalSlots.fields = fields;
31
31
  internalSlots.numberFormat = new Intl.NumberFormat(locales);
32
32
  internalSlots.pluralRules = new Intl.PluralRules(locales);
@@ -1,3 +1,3 @@
1
- import { RelativeTimeUnit, RelativeTimePart } from '../../types/relative-time';
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"}
@@ -1,4 +1,4 @@
1
- import { RelativeTimeFormattableUnit, RelativeTimeFormat, RelativeTimeFormatInternal, RelativeTimePart } from '../../types/relative-time';
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"}
@@ -1,7 +1,7 @@
1
1
  import { invariant } from '../utils';
2
2
  import { SingularRelativeTimeUnit } from './SingularRelativeTimeUnit';
3
3
  import { MakePartsList } from './MakePartsList';
4
- import { ToString, Type, SameValue } from '../../262';
4
+ import { ToString, Type, SameValue } from '../262';
5
5
  export function PartitionRelativeTimePattern(rtf, value, unit, _a) {
6
6
  var getInternalSlots = _a.getInternalSlots;
7
7
  invariant(Type(value) === 'Number', "value must be number, instead got " + typeof value, TypeError);
@@ -1,4 +1,4 @@
1
- import { RelativeTimeFormattableUnit, RelativeTimeUnit } from '../../types/relative-time';
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"}
@@ -1,5 +1,5 @@
1
1
  import { invariant } from '../utils';
2
- import { Type } from '../../262';
2
+ import { Type } from '../262';
3
3
  /**
4
4
  * https://tc39.es/proposal-intl-relative-time/#sec-singularrelativetimeunit
5
5
  * @param unit
@@ -8,7 +8,7 @@ export interface ResolveLocaleResult {
8
8
  */
9
9
  export declare function ResolveLocale<K extends string, D extends {
10
10
  [k in K]: any;
11
- }>(availableLocales: string[], requestedLocales: string[], options: {
11
+ }>(availableLocales: Set<string>, requestedLocales: string[], options: {
12
12
  localeMatcher: string;
13
13
  [k: string]: string;
14
14
  }, relevantExtensionKeys: K[], localeData: Record<string, D | undefined>, getDefaultLocale: () => string): ResolveLocaleResult;
@@ -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,GAAG,CAAC,MAAM,CAAC,EAC7B,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
@@ -4,7 +4,7 @@
4
4
  * @param requestedLocales
5
5
  * @param options
6
6
  */
7
- export declare function SupportedLocales(availableLocales: string[], requestedLocales: string[], options?: {
7
+ export declare function SupportedLocales(availableLocales: Set<string>, requestedLocales: string[], options?: {
8
8
  localeMatcher?: 'best fit' | 'lookup';
9
9
  }): string[];
10
10
  //# sourceMappingURL=SupportedLocales.d.ts.map
@@ -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,GAAG,CAAC,MAAM,CAAC,EAC7B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,CAAC,EAAE;IAAC,aAAa,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAA;CAAC,GAChD,MAAM,EAAE,CAgBV"}
@@ -1,4 +1,4 @@
1
- import { ToObject } from '../262';
1
+ import { ToObject } from './262';
2
2
  import { GetOption } from './GetOption';
3
3
  import { LookupSupportedLocales } from './LookupSupportedLocales';
4
4
  /**
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"}
package/lib/data.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ declare class MissingLocaleDataError extends Error {
2
+ type: string;
3
+ }
4
+ export declare function isMissingLocaleDataError(e: Error): e is MissingLocaleDataError;
5
+ export {};
6
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/data.ts"],"names":[],"mappings":"AAAA,cAAM,sBAAuB,SAAQ,KAAK;IACjC,IAAI,SAAyB;CACrC;AAED,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,KAAK,GACP,CAAC,IAAI,sBAAsB,CAE7B"}
package/lib/data.js ADDED
@@ -0,0 +1,13 @@
1
+ import { __extends } from "tslib";
2
+ var MissingLocaleDataError = /** @class */ (function (_super) {
3
+ __extends(MissingLocaleDataError, _super);
4
+ function MissingLocaleDataError() {
5
+ var _this = _super !== null && _super.apply(this, arguments) || this;
6
+ _this.type = 'MISSING_LOCALE_DATA';
7
+ return _this;
8
+ }
9
+ return MissingLocaleDataError;
10
+ }(Error));
11
+ export function isMissingLocaleDataError(e) {
12
+ return e.type === 'MISSING_LOCALE_DATA';
13
+ }
package/lib/index.d.ts CHANGED
@@ -1,57 +1,57 @@
1
- export { BestFitFormatMatcher } from './src/DateTimeFormat/BestFitFormatMatcher';
2
- export * from './src/CanonicalizeLocaleList';
3
- export * from './src/CanonicalizeTimeZoneName';
4
- export * from './src/DateTimeFormat/BasicFormatMatcher';
5
- export * from './src/DateTimeFormat/DateTimeStyleFormat';
6
- export * from './src/DateTimeFormat/FormatDateTime';
7
- export * from './src/DateTimeFormat/FormatDateTimeRange';
8
- export * from './src/DateTimeFormat/FormatDateTimeRangeToParts';
9
- export * from './src/DateTimeFormat/FormatDateTimeToParts';
10
- export * from './src/DateTimeFormat/InitializeDateTimeFormat';
11
- export * from './src/DateTimeFormat/PartitionDateTimePattern';
12
- export * from './src/DateTimeFormat/ToDateTimeOptions';
13
- export * from './src/DisplayNames/CanonicalCodeForDisplayNames';
14
- export * from './src/GetNumberOption';
15
- export * from './src/GetOption';
16
- export * from './src/IsSanctionedSimpleUnitIdentifier';
17
- export * from './src/IsValidTimeZoneName';
18
- export * from './src/IsWellFormedCurrencyCode';
19
- export * from './src/IsWellFormedUnitIdentifier';
20
- export * from './src/NumberFormat/ComputeExponent';
21
- export * from './src/NumberFormat/ComputeExponentForMagnitude';
22
- export * from './src/NumberFormat/CurrencyDigits';
23
- export * from './src/NumberFormat/FormatNumericToParts';
24
- export * from './src/NumberFormat/FormatNumericToString';
25
- export * from './src/NumberFormat/InitializeNumberFormat';
26
- export * from './src/NumberFormat/PartitionNumberPattern';
27
- export * from './src/NumberFormat/SetNumberFormatDigitOptions';
28
- export * from './src/NumberFormat/SetNumberFormatUnitOptions';
29
- export * from './src/NumberFormat/ToRawFixed';
30
- export * from './src/NumberFormat/ToRawPrecision';
31
- export * from './src/PartitionPattern';
32
- export * from './src/PluralRules/GetOperands';
33
- export * from './src/PluralRules/InitializePluralRules';
34
- export * from './src/PluralRules/ResolvePlural';
35
- export * from './src/RelativeTimeFormat/FormatRelativeTime';
36
- export * from './src/RelativeTimeFormat/FormatRelativeTimeToParts';
37
- export * from './src/RelativeTimeFormat/InitializeRelativeTimeFormat';
38
- export * from './src/RelativeTimeFormat/MakePartsList';
39
- export * from './src/RelativeTimeFormat/PartitionRelativeTimePattern';
40
- export * from './src/RelativeTimeFormat/SingularRelativeTimeUnit';
41
- export * from './src/ResolveLocale';
42
- export * from './src/SupportedLocales';
43
- export { default as _formatToParts } from './src/NumberFormat/format_to_parts';
44
- export { DATE_TIME_PROPS } from './src/DateTimeFormat/utils';
45
- export { parseDateTimeSkeleton } from './src/DateTimeFormat/skeleton';
46
- export { getInternalSlot, getMultiInternalSlots, isLiteralPart, LiteralPart, setInternalSlot, setMultiInternalSlots, getMagnitude, defineProperty, } from './src/utils';
47
- export { getLocaleHierarchy, unpackData, isMissingLocaleDataError, } from './src/data';
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 './src/utils';
54
+ export { invariant } from './utils';
55
55
  export { LocaleData } from './types/core';
56
56
  export * from './262';
57
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAA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AA4C,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/lib/index.js CHANGED
@@ -1,55 +1,55 @@
1
- export { BestFitFormatMatcher } from './src/DateTimeFormat/BestFitFormatMatcher';
2
- export * from './src/CanonicalizeLocaleList';
3
- export * from './src/CanonicalizeTimeZoneName';
4
- export * from './src/DateTimeFormat/BasicFormatMatcher';
5
- export * from './src/DateTimeFormat/DateTimeStyleFormat';
6
- export * from './src/DateTimeFormat/FormatDateTime';
7
- export * from './src/DateTimeFormat/FormatDateTimeRange';
8
- export * from './src/DateTimeFormat/FormatDateTimeRangeToParts';
9
- export * from './src/DateTimeFormat/FormatDateTimeToParts';
10
- export * from './src/DateTimeFormat/InitializeDateTimeFormat';
11
- export * from './src/DateTimeFormat/PartitionDateTimePattern';
12
- export * from './src/DateTimeFormat/ToDateTimeOptions';
13
- export * from './src/DisplayNames/CanonicalCodeForDisplayNames';
14
- export * from './src/GetNumberOption';
15
- export * from './src/GetOption';
16
- export * from './src/IsSanctionedSimpleUnitIdentifier';
17
- export * from './src/IsValidTimeZoneName';
18
- export * from './src/IsWellFormedCurrencyCode';
19
- export * from './src/IsWellFormedUnitIdentifier';
20
- export * from './src/NumberFormat/ComputeExponent';
21
- export * from './src/NumberFormat/ComputeExponentForMagnitude';
22
- export * from './src/NumberFormat/CurrencyDigits';
23
- export * from './src/NumberFormat/FormatNumericToParts';
24
- export * from './src/NumberFormat/FormatNumericToString';
25
- export * from './src/NumberFormat/InitializeNumberFormat';
26
- export * from './src/NumberFormat/PartitionNumberPattern';
27
- export * from './src/NumberFormat/SetNumberFormatDigitOptions';
28
- export * from './src/NumberFormat/SetNumberFormatUnitOptions';
29
- export * from './src/NumberFormat/ToRawFixed';
30
- export * from './src/NumberFormat/ToRawPrecision';
31
- export * from './src/PartitionPattern';
32
- export * from './src/PluralRules/GetOperands';
33
- export * from './src/PluralRules/InitializePluralRules';
34
- export * from './src/PluralRules/ResolvePlural';
35
- export * from './src/RelativeTimeFormat/FormatRelativeTime';
36
- export * from './src/RelativeTimeFormat/FormatRelativeTimeToParts';
37
- export * from './src/RelativeTimeFormat/InitializeRelativeTimeFormat';
38
- export * from './src/RelativeTimeFormat/MakePartsList';
39
- export * from './src/RelativeTimeFormat/PartitionRelativeTimePattern';
40
- export * from './src/RelativeTimeFormat/SingularRelativeTimeUnit';
41
- export * from './src/ResolveLocale';
42
- export * from './src/SupportedLocales';
43
- export { default as _formatToParts } from './src/NumberFormat/format_to_parts';
44
- export { DATE_TIME_PROPS } from './src/DateTimeFormat/utils';
45
- export { parseDateTimeSkeleton } from './src/DateTimeFormat/skeleton';
46
- export { getInternalSlot, getMultiInternalSlots, isLiteralPart, setInternalSlot, setMultiInternalSlots, getMagnitude, defineProperty, } from './src/utils';
47
- export { getLocaleHierarchy, unpackData, isMissingLocaleDataError, } from './src/data';
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, 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 './src/utils';
54
+ export { invariant } from './utils';
55
55
  export * from './262';
@@ -1,7 +1,7 @@
1
1
  export declare type Locale = string;
2
2
  export interface LocaleData<T> {
3
- data: Record<Locale, T>;
4
- availableLocales: string[];
3
+ data: T;
4
+ locale: Locale;
5
5
  }
6
6
  export interface LookupMatcherResult {
7
7
  locale: string;
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/types/core.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACxB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/types/core.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -34,6 +34,7 @@ export interface IntlDateTimeFormatInternal {
34
34
  numberingSystem: string;
35
35
  timeZone: string;
36
36
  pattern: string;
37
+ format: Formats;
37
38
  rangePatterns: Record<TABLE_2 | 'default', RangePatterns>;
38
39
  boundFormat?: Intl.DateTimeFormat['format'];
39
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"date-time.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/types/date-time.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,qBAAqB;IACvE,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACjD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EACL,UAAU,GACV,SAAS,GACT,QAAQ,GACR,UAAU,GACV,UAAU,GACV,SAAS,GACT,QAAQ,G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AO,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,oBAAY,gBAAgB,GAAG;IAE7B,MAAM;IAEN,MAAM;IAEN,MAAM;IAEN,OAAO;CACR,CAAC;AAEF,oBAAY,0BAA0B,GAClC,IAAI,CAAC,uBAAuB,GAC5B,MAAM,GACN,aAAa,GACb,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,0BAA0B,CAAC;IACjC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -1,6 +1,6 @@
1
1
  import { LocaleData } from './core';
2
2
  import { LDMLPluralRule } from './plural-rules';
3
- import { LiteralPart } from '../src/utils';
3
+ import { LiteralPart } from '../utils';
4
4
  export interface FieldData {
5
5
  '0'?: string;
6
6
  '1'?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"relative-time.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/types/relative-time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,aAAK,gBAAgB,GAAG;KAAE,CAAC,IAAI,cAAc,CAA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AE,UAAU,GAAG,QAAQ,CAAC;IACtC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;CACrC;AAED,MAAM,WAAW,qCACf,SAAQ,IAAI,CAAC,6BAA6B,EAAE,OAAO,GAAG,SAAS,CAAC;IAChE;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,GAAG,MAAM,CAAC;IAEjE,aAAa,CACX,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,GAChC,gBAAgB,EAAE,CAAC;IAEtB,eAAe,IAAI,qCAAqC,CAAC;CAC1D;AAED,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;IAChC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAC9C,OAAO,EAAE,6BAA6B,CAAC,SAAS,CAAC,CAAC;IAClD,eAAe,EAAE,MAAM,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;CACxC"}
1
+ {"version":3,"file":"relative-time.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ecma402-abstract/types/relative-time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAErC,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM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,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAChC,EAAE,EAAE,QAAQ,EACZ,GAAG,MAAM,EAAE,KAAK,EAAE,GACjB,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CASvB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,aAAa,CAC3B,WAAW,EAAE,WAAW,GAAG;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,GACxD,WAAW,IAAI,WAAW,CAE5B;AAYD,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAC7C,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,MAAM,GAAG,MAAM,EACrB,EAAC,KAAK,EAAC,EAAE;IAAC,KAAK,EAAE,GAAG,CAAA;CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,QAQtC;AAED,eAAO,MAAM,gCAAgC,QAA4B,CAAC;AAE1E,wBAAgB,SAAS,CACvB,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,MAAM,EACf,GAAG,GAAE,GAAW,GACf,OAAO,CAAC,SAAS,CAInB"}
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/ecma402-abstract",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "A collection of implementation for ECMAScript abstract operations",
5
5
  "keywords": [
6
6
  "intl",
package/types/core.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export declare type Locale = string;
2
2
  export interface LocaleData<T> {
3
- data: Record<Locale, T>;
4
- availableLocales: string[];
3
+ data: T;
4
+ locale: Locale;
5
5
  }
6
6
  export interface LookupMatcherResult {
7
7
  locale: string;
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/types/core.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACxB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/types/core.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -34,6 +34,7 @@ export interface IntlDateTimeFormatInternal {
34
34
  numberingSystem: string;
35
35
  timeZone: string;
36
36
  pattern: string;
37
+ format: Formats;
37
38
  rangePatterns: Record<TABLE_2 | 'default', RangePatterns>;
38
39
  boundFormat?: Intl.DateTimeFormat['format'];
39
40
  }