@vtex/country-forms 1.40.0 → 1.42.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 (219) hide show
  1. package/CHANGELOG.md +21 -3
  2. package/README.md +4 -2
  3. package/dist/LTU-7WPIL34P.js +86 -0
  4. package/dist/LTU-7WPIL34P.js.map +1 -0
  5. package/dist/LTU-AHJYVHMI.mjs +84 -0
  6. package/dist/LTU-AHJYVHMI.mjs.map +1 -0
  7. package/dist/LTU-LIAP6BF3.mjs +71 -0
  8. package/dist/LTU-LIAP6BF3.mjs.map +1 -0
  9. package/dist/LTU-RKEISTKU.js +73 -0
  10. package/dist/LTU-RKEISTKU.js.map +1 -0
  11. package/dist/LUX-CJAE5BFO.js +83 -0
  12. package/dist/LUX-CJAE5BFO.js.map +1 -0
  13. package/dist/LUX-JGZOGB3E.mjs +81 -0
  14. package/dist/LUX-JGZOGB3E.mjs.map +1 -0
  15. package/dist/LUX-RLCIBEFF.js +78 -0
  16. package/dist/LUX-RLCIBEFF.js.map +1 -0
  17. package/dist/LUX-TZQPABT4.mjs +76 -0
  18. package/dist/LUX-TZQPABT4.mjs.map +1 -0
  19. package/dist/{ar-SA-VYNG6GE7.js → ar-SA-7GM2ORXX.js} +9 -2
  20. package/dist/ar-SA-7GM2ORXX.js.map +1 -0
  21. package/dist/{ar-SA-HG74SWRU.mjs → ar-SA-S5CLY4S6.mjs} +9 -2
  22. package/dist/ar-SA-S5CLY4S6.mjs.map +1 -0
  23. package/dist/{bg-BG-SNCKURK5.mjs → bg-BG-4GE7WNZI.mjs} +9 -2
  24. package/dist/bg-BG-4GE7WNZI.mjs.map +1 -0
  25. package/dist/{bg-BG-BFG5TWUH.js → bg-BG-OREVRASP.js} +9 -2
  26. package/dist/bg-BG-OREVRASP.js.map +1 -0
  27. package/dist/{ca-ES-CEN7CAVX.js → ca-ES-HOPPBDNO.js} +9 -2
  28. package/dist/ca-ES-HOPPBDNO.js.map +1 -0
  29. package/dist/{ca-ES-3PNQYLYP.mjs → ca-ES-MOJKZATB.mjs} +9 -2
  30. package/dist/ca-ES-MOJKZATB.mjs.map +1 -0
  31. package/dist/chunk-NQ4VYSJB.mjs +106 -0
  32. package/dist/chunk-NQ4VYSJB.mjs.map +1 -0
  33. package/dist/chunk-NTECNAPE.mjs +87 -0
  34. package/dist/chunk-NTECNAPE.mjs.map +1 -0
  35. package/dist/chunk-XYX3DDFW.js +112 -0
  36. package/dist/chunk-XYX3DDFW.js.map +1 -0
  37. package/dist/chunk-YTHZTXZ7.js +93 -0
  38. package/dist/chunk-YTHZTXZ7.js.map +1 -0
  39. package/dist/{cs-CZ-VZPAQYO5.js → cs-CZ-CIY4FPBM.js} +9 -2
  40. package/dist/cs-CZ-CIY4FPBM.js.map +1 -0
  41. package/dist/{cs-CZ-FPXMS3B3.mjs → cs-CZ-DUF3SFLY.mjs} +9 -2
  42. package/dist/cs-CZ-DUF3SFLY.mjs.map +1 -0
  43. package/dist/{da-DK-YX35RKS4.js → da-DK-LTEYEPCW.js} +9 -2
  44. package/dist/da-DK-LTEYEPCW.js.map +1 -0
  45. package/dist/{da-DK-EZYP2CCP.mjs → da-DK-XBOF7H6E.mjs} +9 -2
  46. package/dist/da-DK-XBOF7H6E.mjs.map +1 -0
  47. package/dist/{de-DE-K66OTYTF.js → de-DE-C5TXPYUF.js} +9 -2
  48. package/dist/de-DE-C5TXPYUF.js.map +1 -0
  49. package/dist/{de-DE-X3KER37A.mjs → de-DE-PZQKWP4M.mjs} +9 -2
  50. package/dist/de-DE-PZQKWP4M.mjs.map +1 -0
  51. package/dist/{el-GR-JMFDUNBW.mjs → el-GR-SEZRD424.mjs} +9 -2
  52. package/dist/el-GR-SEZRD424.mjs.map +1 -0
  53. package/dist/{el-GR-CHL2PM3W.js → el-GR-V6DU5BA5.js} +9 -2
  54. package/dist/el-GR-V6DU5BA5.js.map +1 -0
  55. package/dist/{en-US-WIM3CEEP.mjs → en-US-3HI5PZZI.mjs} +9 -2
  56. package/dist/en-US-3HI5PZZI.mjs.map +1 -0
  57. package/dist/{en-US-M432D5JF.js → en-US-YJ4GNDOU.js} +9 -2
  58. package/dist/en-US-YJ4GNDOU.js.map +1 -0
  59. package/dist/{es-MX-DQINXEVO.js → es-MX-ADO4CTFO.js} +9 -2
  60. package/dist/es-MX-ADO4CTFO.js.map +1 -0
  61. package/dist/{es-MX-D6MCICVL.mjs → es-MX-BABMITT2.mjs} +9 -2
  62. package/dist/es-MX-BABMITT2.mjs.map +1 -0
  63. package/dist/{fi-FI-LOJQXYEV.js → fi-FI-AB5DD252.js} +9 -2
  64. package/dist/fi-FI-AB5DD252.js.map +1 -0
  65. package/dist/{fi-FI-NZU46F4Z.mjs → fi-FI-BTN6D647.mjs} +9 -2
  66. package/dist/fi-FI-BTN6D647.mjs.map +1 -0
  67. package/dist/{fr-FR-55WMWSFW.js → fr-FR-GUG7OC7X.js} +9 -2
  68. package/dist/fr-FR-GUG7OC7X.js.map +1 -0
  69. package/dist/{fr-FR-UC3IAC2C.mjs → fr-FR-UYQOEBZF.mjs} +9 -2
  70. package/dist/fr-FR-UYQOEBZF.mjs.map +1 -0
  71. package/dist/{hu-HU-IRDOTL3C.mjs → hu-HU-55UZKYIG.mjs} +9 -2
  72. package/dist/hu-HU-55UZKYIG.mjs.map +1 -0
  73. package/dist/{hu-HU-CNBML3ZE.js → hu-HU-COBGKQ2P.js} +9 -2
  74. package/dist/hu-HU-COBGKQ2P.js.map +1 -0
  75. package/dist/{id-ID-TGOTY5FU.js → id-ID-2PBWLLS5.js} +9 -2
  76. package/dist/id-ID-2PBWLLS5.js.map +1 -0
  77. package/dist/{id-ID-3MMWOUPA.mjs → id-ID-O54QRDJJ.mjs} +9 -2
  78. package/dist/id-ID-O54QRDJJ.mjs.map +1 -0
  79. package/dist/index.d.mts +2 -2
  80. package/dist/index.d.ts +2 -2
  81. package/dist/index.js +98 -60
  82. package/dist/index.js.map +1 -1
  83. package/dist/index.mjs +98 -60
  84. package/dist/index.mjs.map +1 -1
  85. package/dist/{it-IT-WNU7QTM7.js → it-IT-2C4AEFNS.js} +9 -2
  86. package/dist/it-IT-2C4AEFNS.js.map +1 -0
  87. package/dist/{it-IT-ZFNSV3RE.mjs → it-IT-5SNWMJC4.mjs} +9 -2
  88. package/dist/it-IT-5SNWMJC4.mjs.map +1 -0
  89. package/dist/{ja-JP-6C5Z23OS.mjs → ja-JP-CERPRGJN.mjs} +9 -2
  90. package/dist/ja-JP-CERPRGJN.mjs.map +1 -0
  91. package/dist/{ja-JP-5L3DRWUX.js → ja-JP-PK5G2GD7.js} +9 -2
  92. package/dist/ja-JP-PK5G2GD7.js.map +1 -0
  93. package/dist/{ko-KR-VRCKZ626.mjs → ko-KR-WKUYLYRT.mjs} +9 -2
  94. package/dist/ko-KR-WKUYLYRT.mjs.map +1 -0
  95. package/dist/{ko-KR-3VNP2HPB.js → ko-KR-WVAOWTHI.js} +9 -2
  96. package/dist/ko-KR-WVAOWTHI.js.map +1 -0
  97. package/dist/ltu-2IH5E4CP.js +33 -0
  98. package/dist/ltu-2IH5E4CP.js.map +1 -0
  99. package/dist/ltu-2J4IBPSJ.mjs +24 -0
  100. package/dist/ltu-2J4IBPSJ.mjs.map +1 -0
  101. package/dist/ltu-3Q2ZWIFX.mjs +30 -0
  102. package/dist/ltu-3Q2ZWIFX.mjs.map +1 -0
  103. package/dist/ltu-QBLT2Y4R.js +29 -0
  104. package/dist/ltu-QBLT2Y4R.js.map +1 -0
  105. package/dist/lux-3BFDBUCW.mjs +16 -0
  106. package/dist/lux-3BFDBUCW.mjs.map +1 -0
  107. package/dist/lux-4NITUWDW.mjs +30 -0
  108. package/dist/lux-4NITUWDW.mjs.map +1 -0
  109. package/dist/lux-CBEVHERK.js +19 -0
  110. package/dist/lux-CBEVHERK.js.map +1 -0
  111. package/dist/lux-SMZLW36J.js +33 -0
  112. package/dist/lux-SMZLW36J.js.map +1 -0
  113. package/dist/lux-cantons-GSBIYGEI.mjs +22 -0
  114. package/dist/lux-cantons-GSBIYGEI.mjs.map +1 -0
  115. package/dist/lux-cantons-ZHG5E2CU.js +24 -0
  116. package/dist/lux-cantons-ZHG5E2CU.js.map +1 -0
  117. package/dist/{nb-NO-Q2QKJGR3.js → nb-NO-ABOCUQ26.js} +9 -2
  118. package/dist/nb-NO-ABOCUQ26.js.map +1 -0
  119. package/dist/{nb-NO-JEGYM4RF.mjs → nb-NO-XN6J4HJW.mjs} +9 -2
  120. package/dist/nb-NO-XN6J4HJW.mjs.map +1 -0
  121. package/dist/{nl-NL-VPVLLE2L.mjs → nl-NL-APSBUAVL.mjs} +9 -2
  122. package/dist/nl-NL-APSBUAVL.mjs.map +1 -0
  123. package/dist/{nl-NL-VJT2HCJ6.js → nl-NL-LSCXSFFR.js} +9 -2
  124. package/dist/nl-NL-LSCXSFFR.js.map +1 -0
  125. package/dist/{pl-PL-WKMVYJWV.js → pl-PL-KAHWJKLR.js} +9 -2
  126. package/dist/pl-PL-KAHWJKLR.js.map +1 -0
  127. package/dist/{pl-PL-4ZI7MWBZ.mjs → pl-PL-YASVDFZL.mjs} +9 -2
  128. package/dist/pl-PL-YASVDFZL.mjs.map +1 -0
  129. package/dist/{pt-BR-7EXV7NTE.mjs → pt-BR-EDVC6ZUA.mjs} +9 -2
  130. package/dist/pt-BR-EDVC6ZUA.mjs.map +1 -0
  131. package/dist/{pt-BR-Q3DQ66Q2.js → pt-BR-VKQ5WNWA.js} +9 -2
  132. package/dist/pt-BR-VKQ5WNWA.js.map +1 -0
  133. package/dist/{pt-PT-IBRCFRKD.mjs → pt-PT-4PKVAX2N.mjs} +9 -2
  134. package/dist/pt-PT-4PKVAX2N.mjs.map +1 -0
  135. package/dist/{pt-PT-QZHFQ5Z3.js → pt-PT-DY6DYLV4.js} +9 -2
  136. package/dist/pt-PT-DY6DYLV4.js.map +1 -0
  137. package/dist/{ro-RO-HKU2O5JL.js → ro-RO-6CSQ7S7U.js} +9 -2
  138. package/dist/ro-RO-6CSQ7S7U.js.map +1 -0
  139. package/dist/{ro-RO-DJH533UA.mjs → ro-RO-SO22CB33.mjs} +9 -2
  140. package/dist/ro-RO-SO22CB33.mjs.map +1 -0
  141. package/dist/{ru-RU-H4VKEQ43.js → ru-RU-EIM6HILI.js} +9 -2
  142. package/dist/ru-RU-EIM6HILI.js.map +1 -0
  143. package/dist/{ru-RU-X4ERQ6QJ.mjs → ru-RU-KFGK347W.mjs} +9 -2
  144. package/dist/ru-RU-KFGK347W.mjs.map +1 -0
  145. package/dist/{sk-SK-3PKYCU2R.js → sk-SK-M7GWX3LK.js} +9 -2
  146. package/dist/sk-SK-M7GWX3LK.js.map +1 -0
  147. package/dist/{sk-SK-2NHC7VSC.mjs → sk-SK-X6EIUK4M.mjs} +9 -2
  148. package/dist/sk-SK-X6EIUK4M.mjs.map +1 -0
  149. package/dist/{sl-SI-T7E374P6.js → sl-SI-IONU4PNF.js} +9 -2
  150. package/dist/sl-SI-IONU4PNF.js.map +1 -0
  151. package/dist/{sl-SI-OP5I3OYA.mjs → sl-SI-IZRM5WDE.mjs} +9 -2
  152. package/dist/sl-SI-IZRM5WDE.mjs.map +1 -0
  153. package/dist/{sv-SE-QFUWGFOB.mjs → sv-SE-52E7ION4.mjs} +9 -2
  154. package/dist/sv-SE-52E7ION4.mjs.map +1 -0
  155. package/dist/{sv-SE-KDKICPGK.js → sv-SE-XUHR4ND4.js} +9 -2
  156. package/dist/sv-SE-XUHR4ND4.js.map +1 -0
  157. package/dist/{th-TH-YUE4IBVM.js → th-TH-BRVIZPZE.js} +9 -2
  158. package/dist/{th-TH-YUE4IBVM.js.map → th-TH-BRVIZPZE.js.map} +1 -1
  159. package/dist/{th-TH-XPXGSYEX.mjs → th-TH-UPIMN4AH.mjs} +9 -2
  160. package/dist/{th-TH-XPXGSYEX.mjs.map → th-TH-UPIMN4AH.mjs.map} +1 -1
  161. package/dist/{uk-UA-JJAQRY36.js → uk-UA-4KH3B7GX.js} +9 -2
  162. package/dist/uk-UA-4KH3B7GX.js.map +1 -0
  163. package/dist/{uk-UA-A5CCZWFB.mjs → uk-UA-6Y6WTYQQ.mjs} +9 -2
  164. package/dist/uk-UA-6Y6WTYQQ.mjs.map +1 -0
  165. package/package.json +1 -1
  166. package/dist/ar-SA-HG74SWRU.mjs.map +0 -1
  167. package/dist/ar-SA-VYNG6GE7.js.map +0 -1
  168. package/dist/bg-BG-BFG5TWUH.js.map +0 -1
  169. package/dist/bg-BG-SNCKURK5.mjs.map +0 -1
  170. package/dist/ca-ES-3PNQYLYP.mjs.map +0 -1
  171. package/dist/ca-ES-CEN7CAVX.js.map +0 -1
  172. package/dist/cs-CZ-FPXMS3B3.mjs.map +0 -1
  173. package/dist/cs-CZ-VZPAQYO5.js.map +0 -1
  174. package/dist/da-DK-EZYP2CCP.mjs.map +0 -1
  175. package/dist/da-DK-YX35RKS4.js.map +0 -1
  176. package/dist/de-DE-K66OTYTF.js.map +0 -1
  177. package/dist/de-DE-X3KER37A.mjs.map +0 -1
  178. package/dist/el-GR-CHL2PM3W.js.map +0 -1
  179. package/dist/el-GR-JMFDUNBW.mjs.map +0 -1
  180. package/dist/en-US-M432D5JF.js.map +0 -1
  181. package/dist/en-US-WIM3CEEP.mjs.map +0 -1
  182. package/dist/es-MX-D6MCICVL.mjs.map +0 -1
  183. package/dist/es-MX-DQINXEVO.js.map +0 -1
  184. package/dist/fi-FI-LOJQXYEV.js.map +0 -1
  185. package/dist/fi-FI-NZU46F4Z.mjs.map +0 -1
  186. package/dist/fr-FR-55WMWSFW.js.map +0 -1
  187. package/dist/fr-FR-UC3IAC2C.mjs.map +0 -1
  188. package/dist/hu-HU-CNBML3ZE.js.map +0 -1
  189. package/dist/hu-HU-IRDOTL3C.mjs.map +0 -1
  190. package/dist/id-ID-3MMWOUPA.mjs.map +0 -1
  191. package/dist/id-ID-TGOTY5FU.js.map +0 -1
  192. package/dist/it-IT-WNU7QTM7.js.map +0 -1
  193. package/dist/it-IT-ZFNSV3RE.mjs.map +0 -1
  194. package/dist/ja-JP-5L3DRWUX.js.map +0 -1
  195. package/dist/ja-JP-6C5Z23OS.mjs.map +0 -1
  196. package/dist/ko-KR-3VNP2HPB.js.map +0 -1
  197. package/dist/ko-KR-VRCKZ626.mjs.map +0 -1
  198. package/dist/nb-NO-JEGYM4RF.mjs.map +0 -1
  199. package/dist/nb-NO-Q2QKJGR3.js.map +0 -1
  200. package/dist/nl-NL-VJT2HCJ6.js.map +0 -1
  201. package/dist/nl-NL-VPVLLE2L.mjs.map +0 -1
  202. package/dist/pl-PL-4ZI7MWBZ.mjs.map +0 -1
  203. package/dist/pl-PL-WKMVYJWV.js.map +0 -1
  204. package/dist/pt-BR-7EXV7NTE.mjs.map +0 -1
  205. package/dist/pt-BR-Q3DQ66Q2.js.map +0 -1
  206. package/dist/pt-PT-IBRCFRKD.mjs.map +0 -1
  207. package/dist/pt-PT-QZHFQ5Z3.js.map +0 -1
  208. package/dist/ro-RO-DJH533UA.mjs.map +0 -1
  209. package/dist/ro-RO-HKU2O5JL.js.map +0 -1
  210. package/dist/ru-RU-H4VKEQ43.js.map +0 -1
  211. package/dist/ru-RU-X4ERQ6QJ.mjs.map +0 -1
  212. package/dist/sk-SK-2NHC7VSC.mjs.map +0 -1
  213. package/dist/sk-SK-3PKYCU2R.js.map +0 -1
  214. package/dist/sl-SI-OP5I3OYA.mjs.map +0 -1
  215. package/dist/sl-SI-T7E374P6.js.map +0 -1
  216. package/dist/sv-SE-KDKICPGK.js.map +0 -1
  217. package/dist/sv-SE-QFUWGFOB.mjs.map +0 -1
  218. package/dist/uk-UA-A5CCZWFB.mjs.map +0 -1
  219. package/dist/uk-UA-JJAQRY36.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -7,12 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.42.0] - 2026-11-27
11
+
12
+ ### Added
13
+
14
+ - LTU address schema (`address-LTU`). Field order: postalCode → street → complement → city → state, following the visible `address-form` `LTU.ts` fields. Postal code is optional, as in `address-form` (the legacy field has no `required`): 5 digits with an optional `LT-` prefix (`validatePostalCodeLTU`, `/^(LT-)?\d{5}$/i` after trim, the legacy regex `^((L|l)(T|t)-|)\d{5}$`). Masks `formatPostalCodeLTU` / `unformatPostalCodeLTU` only upper-case the code (the legacy `autoUpperCase`; the old `AA-99999` mask was removed from `address-form` in 3.40.0), so a typed `LT-` prefix is kept in the stored value. `maxLength` is 9 (the legacy field uses 50): the 8 characters of `LT-01100` plus one for a pasted space, so `LT-011000` is rejected instead of being cut to `LT-01100`. State is required free text (`maxLength` 100) with the shared "State" label, as in the legacy form, so the 10 counties are not offered as options. Street is required (`maxLength` 750; the legacy field has no max). Complement is optional (`maxLength` 750). City is required (`maxLength` 100). The legacy labels `addressLine1` / `addressLine2` map to the shared street and complement labels. Hidden `country`, `reference`, and `neighborhood` are omitted, along with the hidden `number` and `receiverName`. `LTU` is now part of `SUPPORTED_ADDRESS_COUNTRIES`.
15
+ - LTU personal-data schema (`personal-data-LTU`). `personType` toggles individual/business visibility for `lastName`. No tax/identity document field (`profile-form` has no `LTU.js`, so it falls back to the generic default rules with a free-text `document` and no check digit). Adds `validatePhoneLTU` and masks `formatPhoneLTU`/`unformatPhoneLTU` (national display `612 34567` mobile, `5 212 3456` Vilnius, `37 123456` Kaunas, grouped like libphonenumber's `LT` formats). `front.phone` has no LTU module, so the rules follow the Lithuanian numbering plan (country code `370`, trunk prefix `8`) and libphonenumber's `LT` ranges: mobile is `6` + 7 digits and fixed line is `31`, `34`, `37`, `38`, `41`, `42`, `44`, `45`, `46`, `52` + 6 digits. Toll-free, premium-rate, shared-cost, personal, and UAN ranges are rejected. `+370` / `00370` are stripped once and one trunk `8` (or `0`, which libphonenumber also reads as a trunk) is removed; a typed trunk stays on screen and none is inserted. A bare `370` is stripped only when the remainder is a complete valid number, because a Kaunas number can itself start with `370`. A foreign `+` / `00` prefix (Latvia `+371`, Estonia `+372`, Poland `+48`) is rejected; letters and other non-phone characters are rejected (not stripped), and the mask returns such input unchanged. While `+370` / `00370` is followed by an incomplete remainder that is still the start of `370`, the mask keeps the input on screen so typing a value key by key gives the same result as pasting it. `maxLength` is 25: the widest valid pastes (`00 (370) (8) 61 23 45 67`, 24 characters) fit, and one more digit fits and is rejected instead of being cut to a different valid number. A `+` before the first digit counts as the international prefix even after `(`. `LTU` is now part of `SUPPORTED_PERSONAL_DATA_COUNTRIES`.
16
+ - New i18n keys in all locale bundles: `country-forms.address.postalCode.placeholder.LTU`, `country-forms.personal-data.phone.placeholder.LTU`, `country-forms.validation.postalCode.LTU`.
17
+
18
+ ## [1.41.0] - 2026-11-27
19
+
20
+ ### Added
21
+
22
+ - LUX address schema (`address-LUX`). Field order: postalCode → street → number → complement → city → state, following the visible `address-form` `LUX.ts` fields. Postal code is the required 4-digit code (`validatePostalCodeLUX`, `^\d{4}$`, no mask, `maxLength` 5 so `16100` is rejected instead of being cut to `1610`; the legacy mask `9999` adds no separator). State is a required select (`LUX.cantons`, the 12 cantons, stored as the two-letter code `address-form` already uses, e.g. `LU`, `ES`) with the new label `country-forms.address.state.label.LUX` ("Canton"). Street is required (`maxLength` 750; the legacy field has no max). Number is required (`maxLength` 750). Complement is optional (`maxLength` 750); the legacy label `floorAndLetter` maps to the shared complement label. City is required (`maxLength` 100). Hidden `country`, `reference`, and `neighborhood` are omitted, along with `receiverName`. `LUX` is now part of `SUPPORTED_ADDRESS_COUNTRIES`.
23
+ - LUX personal-data schema (`personal-data-LUX`). `personType` toggles individual/business visibility for `lastName`. No tax/identity document field (`profile-form` has no `LUX.js`, so it falls back to the generic default rules with a free-text `document` and no check digit). Adds `validatePhoneLUX` and masks `formatPhoneLUX`/`unformatPhoneLUX` (national display `621 123 456` mobile / `26 12 34 56` fixed line). `front.phone` has no LUX module, so the rules follow the Luxembourg numbering plan (country code `352`, no trunk prefix) and libphonenumber's `LU` ranges. Mobile is 9 digits in the allocated `6x1` ranges (`621`, `628`, `651`, `655`, `656`, `658`, `661`, `668`, `671`, `678`, `679`, `681`, `691`, `692`, `698`). Fixed line is 6–11 digits in the allocated geographic/business series (the ITU plan allows 4–11; 4–5 digit fragments are not accepted). `+352` / `00352` are stripped once; a bare `352` is stripped only when the remainder is a complete valid number (no valid national number starts with `352`); a foreign `+` / `00` prefix (Belgium `+32`, France `+33`, Germany `+49`) is rejected; a leading `0` is rejected because there is no trunk prefix; letters and other non-phone characters are rejected (not stripped), and the mask returns such input unchanged. When `+352` / `00352` is followed by another `352` the mask keeps the input on screen so it never turns a rejected value into an accepted one, and typing a value key by key gives the same result as pasting it (`+352 352 26 12 34` is rejected both ways). `maxLength` is 24, so `00352 26 12 34 56789` and `(+352) 26 12 34 56` are not truncated. A `+` before the first digit counts as the international prefix even after `(` (`(+32) 470 12 34 56` is foreign). `LUX` is now part of `SUPPORTED_PERSONAL_DATA_COUNTRIES`.
24
+ - New i18n keys in all locale bundles: `country-forms.address.state.label.LUX`, `country-forms.address.postalCode.placeholder.LUX`, `country-forms.personal-data.phone.placeholder.LUX`, `country-forms.validation.postalCode.LUX`.
25
+
10
26
  ## [1.40.0] - 2026-11-27
11
27
 
12
28
  ### Added
13
29
 
14
30
  - JPN address schema (`address-JPN`). Field order: postalCode → street → complement → city → state, following the visible `address-form` `JPN.ts` fields. Postal code is required, 7 digits with an optional hyphen after the third (`validatePostalCodeJPN`, `/^\d{3}-?\d{4}$/` after trim, the legacy regex `^([\d]{3})\-?([\d]{4})$`). Unlike the legacy regex, full-width digits and IME hyphens (`100-0001`) are read as ASCII by the validator and the masks; circled, superscript, and other-script digits are still rejected. Masks `formatPostalCodeJPN` / `unformatPostalCodeJPN` insert the hyphen only when 7 digits are present (the legacy mask is `"999-9999"`) and store the 7 digits; a typed hyphen is dropped until the code is complete, and input with letters or a hyphen in another position is left unchanged so the validator still rejects it. `maxLength` is 9 (the legacy field uses 50): the 8 characters of `100-0001` plus one for a pasted space, so an over-long code such as `100-00012` is rejected instead of being cut down to a different valid code. State is required free text (`maxLength` 100) with the shared "State" label, as in the legacy form, so the 47 prefectures are not offered as options. Street is required (`maxLength` 750; the legacy field has no max). Complement is optional (`maxLength` 750). City is required (`maxLength` 100). The legacy labels `addressLine1` / `addressLine2` map to the shared street and complement labels. Hidden `country`, `reference`, and `neighborhood` are omitted, along with the hidden `number` (default `"N/A"`) and `receiverName`. `JPN` is now part of `SUPPORTED_ADDRESS_COUNTRIES`.
15
- - JPN personal-data schema (`personal-data-JPN`). `personType` toggles individual/business visibility for `lastName`. No tax/identity document field (`profile-form` has no JPN rules, and its generic default document is free text with no check digit or mask). Adds `validatePhoneJPN` and masks `formatPhoneJPN`/`unformatPhoneJPN` (national display `090 1234 5678`, `03 1234 5678`, `052 123 4567`). `front.phone` has no Japanese module, so the numbering plan comes from the public plan for Japan and libphonenumber's JP ranges: mobile `70` / `80` / `90` and IP `50` numbers (10 digits, third digit `1`–`9`), and fixed lines (9 digits starting with an assigned prefix from libphonenumber's JP `fixedLine` pattern). Toll-free `0120` / `0800`, navigation dial `0570`, premium `0990`, and the non-geographic `0170` / `0171` / `0180` / `0181` ranges are rejected (none is in the `fixedLine` pattern). Tokyo (`3`) and Osaka (`6`) are shown with a 1-digit area code; other fixed lines are grouped 3 + 3 + 4 because area codes run from 2 to 5 digits, so the grouping does not claim an area code. `+81` / `0081` are stripped once and one trunk `0` is removed (shown again on a complete number). No national number starts with `81`, so a bare `81…` is read as the country code when a valid number follows it. A foreign `+` / `00` prefix is rejected, and when a stripped `+81` / `0081` leaves a remainder that is `8` or starts with `81` or `0` the mask keeps the original input on screen so it never turns a rejected value into an accepted one. Input is read the same way by the mask and the validator: NFKC turns full-width digits and `+` into ASCII, and also maps superscript, mathematical, and circled digits (`⁰⁹⁰`, `①`) to the digit they show; whitespace, invisible marks and typographic separators (including the IME hyphen `ー`) are ignored; letters and any other character are rejected, as is a character NFKC expands to several (`㈱`, `⑩`), and the mask returns such a value unchanged. A `+` before the first digit is the international prefix even after `(` or `-`. `maxLength` is 25, so `0081 (0) 90 - 1234 - 5678` is not truncated. `JPN` is now part of `SUPPORTED_PERSONAL_DATA_COUNTRIES`.
31
+ - JPN personal-data schema (`personal-data-JPN`). `personType` toggles individual/business visibility for `lastName`. No tax/identity document field (`profile-form` has no JPN rules, and its generic default document is free text with no check digit or mask). Adds `validatePhoneJPN` and masks `formatPhoneJPN`/`unformatPhoneJPN` (national display `090 1234 5678`, `03 1234 5678`, `052 123 4567`). `front.phone` has no Japanese module, so the numbering plan comes from the public plan for Japan and libphonenumber's JP ranges: mobile `70` / `80` / `90` and IP `50` numbers (10 digits, third digit `1`–`9`), and fixed lines (9 digits starting with an assigned prefix from libphonenumber's JP `fixedLine` pattern). Toll-free `0120` / `0800`, navigation dial `0570`, premium `0990`, and the non-geographic `0170` / `0171` / `0180` / `0181` ranges are rejected (none is in the `fixedLine` pattern). Tokyo (`3`) and Osaka (`6`) are shown with a 1-digit area code; other fixed lines are grouped 3 + 3 + 4 because area codes run from 2 to 5 digits, so the grouping does not claim an area code. `+81` / `0081` are stripped once and one trunk `0` is removed (shown again on a complete number). No national number starts with `81`, so a bare `81…` is read as the country code when a valid number follows it. A foreign `+` / `00` prefix is rejected, and when a stripped `+81` / `0081` leaves a remainder that is `8` or starts with `81` or `0` the mask keeps the original input on screen so it never turns a rejected value into an accepted one, and typing a value key by key gives the same result as pasting it (`+352 352 26 12 34` is rejected both ways). Input is read the same way by the mask and the validator: NFKC turns full-width digits and `+` into ASCII, and also maps superscript, mathematical, and circled digits (`⁰⁹⁰`, `①`) to the digit they show; whitespace, invisible marks and typographic separators (including the IME hyphen `ー`) are ignored; letters and any other character are rejected, as is a character NFKC expands to several (`㈱`, `⑩`), and the mask returns such a value unchanged. A `+` before the first digit is the international prefix even after `(` or `-`. `maxLength` is 25, so `0081 (0) 90 - 1234 - 5678` is not truncated. `JPN` is now part of `SUPPORTED_PERSONAL_DATA_COUNTRIES`.
16
32
  - New i18n keys in all locale bundles: `country-forms.address.postalCode.placeholder.JPN`, `country-forms.personal-data.phone.placeholder.JPN`, `country-forms.validation.postalCode.JPN`.
17
33
 
18
34
  ## [1.39.0] - 2026-11-26
@@ -28,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
44
  ### Added
29
45
 
30
46
  - KOR address schema (`address-KOR`). Field order: postalCode → street → complement → city → state, following the visible `address-form` `KOR.ts` fields. Postal code is required, 5 digits (`validatePostalCodeKOR`, `^\d{5}$` after trim, no mask, `maxLength` 5; the legacy field uses 50 and mask `"99999"`, which adds no separator). State is required free text (`maxLength` 100) with the shared "State" label, as in the legacy form (the USA states once offered for South Korea were removed upstream). Street is required (`maxLength` 750; the legacy field has no max). Complement is optional (`maxLength` 750); the legacy labels `addressLine1` / `addressLine2` map to the shared street and complement labels. City is required (`maxLength` 100). Hidden `country`, `reference`, and `neighborhood` are omitted, along with the hidden `number` (default `"N/A"`) and `receiverName`. `KOR` is now part of `SUPPORTED_ADDRESS_COUNTRIES`.
31
- - KOR personal-data schema (`personal-data-KOR`). `personType` toggles individual/business visibility for `lastName`. No tax/identity document field (`profile-form` `KOR.js` has a required free-text `document` with no check digit or mask). Adds `validatePhoneKOR` and masks `formatPhoneKOR`/`unformatPhoneKOR` (national display `010 1234 5678`, `02 1234 5678`, `031 123 4567`), based on `front.phone` `KOR.coffee` (country code `82`, optional trunk `0`, 17 area codes, `splitNumber` 3 + 4 / 4 + 4). `front.phone` `Phone.validate` only accepts `0` + 5–9 digits (so `0000000000` and `039 3323333` pass, while every 11-digit number such as `010 1234 5678` fails), and its area-code list has no mobile or `070` numbers; this schema accepts Seoul `2` and `31`–`33`, `41`–`44`, `51`–`55`, `61`–`64` with a 7- or 8-digit subscriber that does not start with `0`, mobile `10` / `11` / `16`–`19` + 7 or 8 digits (the subscriber may start with `0`, as in libphonenumber's KR ranges), and `70` + 8 digits. Toll-free `080`, premium `060`, personal `050`, and `15xx` numbers are rejected. `+82` / `0082` are stripped once and one trunk `0` is removed (shown again on a complete number). No national number starts with `8`, so a bare `82…` is read as the country code when a valid number follows it. A foreign `+` / `00` prefix is rejected, and when a stripped `+82` / `0082` leaves a remainder that starts with `8` or `0` (`+82 82 10…`) the mask keeps the original input on screen so it never turns a rejected value into an accepted one. Input is read the same way by the mask and the validator: NFKC turns full-width digits and `+` into ASCII; whitespace, invisible marks (RTL mark, zero-width space) and typographic separators are ignored; letters and any other character (other-script digits, Hangul, `x`, `!`) are rejected, as is a character NFKC expands to several (`㈜`, `⑩`) — `front.phone` strips letters before testing — and the mask returns such a value unchanged instead of dropping those characters. A `+` before the first digit is the international prefix even after `(` or `-` (`(+1) 1 234 5678` is foreign). `maxLength` is 25, so `0082 (0) 31 - 1234 - 5678` is not truncated. `KOR` is now part of `SUPPORTED_PERSONAL_DATA_COUNTRIES`.
47
+ - KOR personal-data schema (`personal-data-KOR`). `personType` toggles individual/business visibility for `lastName`. No tax/identity document field (`profile-form` `KOR.js` has a required free-text `document` with no check digit or mask). Adds `validatePhoneKOR` and masks `formatPhoneKOR`/`unformatPhoneKOR` (national display `010 1234 5678`, `02 1234 5678`, `031 123 4567`), based on `front.phone` `KOR.coffee` (country code `82`, optional trunk `0`, 17 area codes, `splitNumber` 3 + 4 / 4 + 4). `front.phone` `Phone.validate` only accepts `0` + 5–9 digits (so `0000000000` and `039 3323333` pass, while every 11-digit number such as `010 1234 5678` fails), and its area-code list has no mobile or `070` numbers; this schema accepts Seoul `2` and `31`–`33`, `41`–`44`, `51`–`55`, `61`–`64` with a 7- or 8-digit subscriber that does not start with `0`, mobile `10` / `11` / `16`–`19` + 7 or 8 digits (the subscriber may start with `0`, as in libphonenumber's KR ranges), and `70` + 8 digits. Toll-free `080`, premium `060`, personal `050`, and `15xx` numbers are rejected. `+82` / `0082` are stripped once and one trunk `0` is removed (shown again on a complete number). No national number starts with `8`, so a bare `82…` is read as the country code when a valid number follows it. A foreign `+` / `00` prefix is rejected, and when a stripped `+82` / `0082` leaves a remainder that starts with `8` or `0` (`+82 82 10…`) the mask keeps the original input on screen so it never turns a rejected value into an accepted one, and typing a value key by key gives the same result as pasting it (`+352 352 26 12 34` is rejected both ways). Input is read the same way by the mask and the validator: NFKC turns full-width digits and `+` into ASCII; whitespace, invisible marks (RTL mark, zero-width space) and typographic separators are ignored; letters and any other character (other-script digits, Hangul, `x`, `!`) are rejected, as is a character NFKC expands to several (`㈜`, `⑩`) — `front.phone` strips letters before testing — and the mask returns such a value unchanged instead of dropping those characters. A `+` before the first digit is the international prefix even after `(` or `-` (`(+1) 1 234 5678` is foreign). `maxLength` is 25, so `0082 (0) 31 - 1234 - 5678` is not truncated. `KOR` is now part of `SUPPORTED_PERSONAL_DATA_COUNTRIES`.
32
48
  - New i18n keys in all locale bundles: `country-forms.address.postalCode.placeholder.KOR`, `country-forms.personal-data.phone.placeholder.KOR`, `country-forms.validation.postalCode.KOR`.
33
49
 
34
50
  ## [1.37.0] - 2026-11-26
@@ -450,7 +466,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
450
466
  - `examples/react-minimal/` — React example with country/locale selection, form rendering, validation, and i18n overrides
451
467
 
452
468
 
453
- [Unreleased]: https://github.com/vtex/country-forms/compare/v1.40.0...HEAD
469
+ [Unreleased]: https://github.com/vtex/country-forms/compare/v1.42.0...HEAD
470
+ [1.42.0]: https://github.com/vtex/country-forms/compare/v1.41.0...v1.42.0
471
+ [1.41.0]: https://github.com/vtex/country-forms/compare/v1.40.0...v1.41.0
454
472
  [1.40.0]: https://github.com/vtex/country-forms/compare/v1.39.0...v1.40.0
455
473
  [1.39.0]: https://github.com/vtex/country-forms/compare/v1.38.0...v1.39.0
456
474
  [1.38.0]: https://github.com/vtex/country-forms/compare/v1.37.0...v1.38.0
package/README.md CHANGED
@@ -89,8 +89,8 @@ Both `loadSchema` and `loadLocale` use dynamic `import()` internally — only th
89
89
 
90
90
  | Constant | Type | Description |
91
91
  |----------|------|-------------|
92
- | `SUPPORTED_ADDRESS_COUNTRIES` | `readonly string[]` | Countries with a dedicated address schema (`['AGO', 'ARE', 'ARG', 'ASM', 'AUS', 'AUT', 'BEL', 'BGR', 'BOL', 'BRA', 'CAN', 'CHL', 'COL', 'CRI', 'CZE', 'DEU', 'DNK', 'DOM', 'ECU', 'ESP', 'FIN', 'FRA', 'GBR', 'GIB', 'GRC', 'GTM', 'GUM', 'HND', 'HRV', 'HUN', 'IDN', 'IND', 'IRL', 'IRQ', 'ITA', 'JAM', 'JPN', 'KOR', 'MEX', 'PER', 'USA']`). |
93
- | `SUPPORTED_PERSONAL_DATA_COUNTRIES` | `readonly string[]` | Countries with a dedicated personal-data schema (`['AGO', 'ARE', 'ARG', 'ASM', 'AUS', 'AUT', 'BEL', 'BGR', 'BOL', 'BRA', 'CAN', 'CHL', 'COL', 'CRI', 'CZE', 'DEU', 'DNK', 'DOM', 'ECU', 'ESP', 'FIN', 'FRA', 'GBR', 'GIB', 'GRC', 'GTM', 'GUM', 'HND', 'HRV', 'HUN', 'IDN', 'IND', 'IRQ', 'ITA', 'JAM', 'JPN', 'KOR', 'MEX', 'PER', 'USA']`). |
92
+ | `SUPPORTED_ADDRESS_COUNTRIES` | `readonly string[]` | Countries with a dedicated address schema (`['AGO', 'ARE', 'ARG', 'ASM', 'AUS', 'AUT', 'BEL', 'BGR', 'BOL', 'BRA', 'CAN', 'CHL', 'COL', 'CRI', 'CZE', 'DEU', 'DNK', 'DOM', 'ECU', 'ESP', 'FIN', 'FRA', 'GBR', 'GIB', 'GRC', 'GTM', 'GUM', 'HND', 'HRV', 'HUN', 'IDN', 'IND', 'IRL', 'IRQ', 'ITA', 'JAM', 'JPN', 'KOR', 'LTU', 'LUX', 'MEX', 'PER', 'USA']`). |
93
+ | `SUPPORTED_PERSONAL_DATA_COUNTRIES` | `readonly string[]` | Countries with a dedicated personal-data schema (`['AGO', 'ARE', 'ARG', 'ASM', 'AUS', 'AUT', 'BEL', 'BGR', 'BOL', 'BRA', 'CAN', 'CHL', 'COL', 'CRI', 'CZE', 'DEU', 'DNK', 'DOM', 'ECU', 'ESP', 'FIN', 'FRA', 'GBR', 'GIB', 'GRC', 'GTM', 'GUM', 'HND', 'HRV', 'HUN', 'IDN', 'IND', 'IRQ', 'ITA', 'JAM', 'JPN', 'KOR', 'LTU', 'LUX', 'MEX', 'PER', 'USA']`). |
94
94
  | `SUPPORTED_LOCALES` | `readonly string[]` | Every locale tag `loadLocale` accepts (including checkout aliases). See [Supported Locales](#supported-locales). |
95
95
  | `CANONICAL_LOCALES` | `readonly string[]` | Dedicated bundle tags only — use for locale selectors. |
96
96
  | `LOCALE_ALIASES` | `readonly string[]` | Alias tags that fall through to a canonical bundle in `loadLocale`. |
@@ -164,6 +164,8 @@ import type {
164
164
  | Italy | `ITA` | Yes | Yes | CAP, Phone | Phone |
165
165
  | Jamaica | `JAM` | Yes | Yes | Postal code, Phone | Phone |
166
166
  | Japan | `JPN` | Yes | Yes | Postal code, Phone | Phone |
167
+ | Lithuania | `LTU` | Yes | Yes | Postal code, Phone | Postal code, Phone |
168
+ | Luxembourg | `LUX` | Yes | Yes | Phone | Phone |
167
169
 
168
170
  For unknown countries, `loadSchema` returns a generic fallback schema with basic address or personal-data fields.
169
171
 
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ // src/schemas/personal-data/LTU.ts
4
+ var schema = {
5
+ id: "personal-data-LTU",
6
+ country: "LTU",
7
+ formType: "personal-data",
8
+ fields: [
9
+ {
10
+ name: "personType",
11
+ type: "radio-group",
12
+ label: "country-forms.personal-data.personType.label",
13
+ required: true,
14
+ options: [
15
+ { value: "individual", displayValue: "country-forms.personal-data.personType.individual" },
16
+ { value: "business", displayValue: "country-forms.personal-data.personType.business" }
17
+ ]
18
+ },
19
+ {
20
+ name: "firstName",
21
+ type: "text",
22
+ label: "country-forms.personal-data.firstName.label",
23
+ required: true,
24
+ inputMode: "text",
25
+ maxLength: 100,
26
+ dependsOn: "personType",
27
+ conditionalLabel: {
28
+ individual: "country-forms.personal-data.firstName.label.individual",
29
+ business: "country-forms.personal-data.firstName.label.business"
30
+ },
31
+ validation: {
32
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
33
+ }
34
+ },
35
+ {
36
+ name: "lastName",
37
+ type: "text",
38
+ label: "country-forms.personal-data.lastName.label",
39
+ required: true,
40
+ inputMode: "text",
41
+ maxLength: 100,
42
+ conditionalVisibility: {
43
+ field: "personType",
44
+ operator: "equals",
45
+ value: "individual"
46
+ },
47
+ validation: {
48
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
49
+ }
50
+ },
51
+ {
52
+ name: "email",
53
+ type: "email",
54
+ label: "country-forms.personal-data.email.label",
55
+ required: true,
56
+ inputMode: "email",
57
+ validation: {
58
+ customValidator: "validateEmail"
59
+ }
60
+ },
61
+ {
62
+ name: "phone",
63
+ type: "text",
64
+ // 25 chars: the widest valid pastes are 24 characters ("00 (370) (8) 61 23 45 67",
65
+ // "00 (370) (8) 612 34 56 7"), so one more digit fits and is rejected
66
+ // instead of being cut down to a different valid number. The limit is one
67
+ // character of slack, not a guarantee: a 25-character valid value followed
68
+ // by more characters is still cut (JPN, KOR and LUX have the same gap).
69
+ maxLength: 25,
70
+ label: "country-forms.personal-data.phone.label",
71
+ placeholder: "country-forms.personal-data.phone.placeholder.LTU",
72
+ required: true,
73
+ inputMode: "tel",
74
+ formatRef: "formatPhoneLTU",
75
+ unformatRef: "unformatPhoneLTU",
76
+ validation: {
77
+ customValidator: "validatePhoneLTU"
78
+ }
79
+ }
80
+ ]
81
+ };
82
+ var LTU_default = schema;
83
+
84
+ module.exports = LTU_default;
85
+ //# sourceMappingURL=LTU-7WPIL34P.js.map
86
+ //# sourceMappingURL=LTU-7WPIL34P.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas/personal-data/LTU.ts"],"names":[],"mappings":";;;AAiCA,IAAM,MAAA,GAAS;AAAA,EACb,EAAA,EAAI,mBAAA;AAAA,EACJ,OAAA,EAAS,KAAA;AAAA,EACT,QAAA,EAAU,eAAA;AAAA,EACV,MAAA,EAAQ;AAAA,IACN;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,IAAA,EAAM,aAAA;AAAA,MACN,KAAA,EAAO,8CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,OAAA,EAAS;AAAA,QACP,EAAE,KAAA,EAAO,YAAA,EAAc,YAAA,EAAc,mDAAA,EAAoD;AAAA,QACzF,EAAE,KAAA,EAAO,UAAA,EAAY,YAAA,EAAc,iDAAA;AAAkD;AACvF,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,WAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,6CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,SAAA,EAAW,YAAA;AAAA,MACX,gBAAA,EAAkB;AAAA,QAChB,UAAA,EAAY,wDAAA;AAAA,QACZ,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,UAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,4CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,qBAAA,EAAuB;AAAA,QACrB,KAAA,EAAO,YAAA;AAAA,QACP,QAAA,EAAU,QAAA;AAAA,QACV,KAAA,EAAO;AAAA,OACT;AAAA,MACA,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,OAAA;AAAA,MACN,KAAA,EAAO,yCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,OAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMN,SAAA,EAAW,EAAA;AAAA,MACX,KAAA,EAAO,yCAAA;AAAA,MACP,WAAA,EAAa,mDAAA;AAAA,MACb,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,KAAA;AAAA,MACX,SAAA,EAAW,gBAAA;AAAA,MACX,WAAA,EAAa,kBAAA;AAAA,MACb,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB;AACF;AAEJ,CAAA;AAEA,IAAO,WAAA,GAAQ","file":"LTU-7WPIL34P.js","sourcesContent":["/**\n * Personal-data schema for Lithuania (LTU).\n *\n * Field order: personType → firstName → lastName → email → phone\n *\n * `personType` drives conditional visibility:\n * - `\"individual\"` → `lastName` visible\n * - `\"business\"` → `lastName` hidden; `firstName` labelled as company name\n *\n * `profile-form` has no `LTU.js`, so it falls back to the generic default\n * rules (required free-text `document`, no check digit). No tax/identity\n * document field is modelled here. Optional gender and birth date are omitted.\n * Business fields (`corporateName`, `tradeName`, `corporateDocument`,\n * `businessPhone`) are optional there. Email is hidden there; here it is\n * required. `homePhone` is optional there; `phone` is required here.\n *\n * Email: validated by `validateEmail` (shared).\n * Phone: `612 34567` mobile / `5 212 3456` Vilnius / `37 123456` Kaunas —\n * validated by `validatePhoneLTU`, masked by `formatPhoneLTU`/`unformatPhoneLTU`.\n * There is no `front.phone` LTU module; rules follow the Lithuanian numbering\n * plan (country code `370`, trunk prefix `8`) and libphonenumber's `LT` ranges.\n * Mobile is `6` + 7 digits; fixed line is `31`/`34`/`37`/`38`/`41`/`42`/`44`/\n * `45`/`46`/`52` + 6 digits. `+370` / `00370` are stripped once and one trunk\n * `8` (or `0`) is removed. A bare `370` is stripped only when the remainder is\n * a complete valid number (a Kaunas number can start with `370`). A foreign\n * `+` / `00` prefix (including Latvia `+371`, Estonia `+372`, Poland `+48`) is\n * rejected.\n *\n * Required rule modules: `rules/validators/common`, `rules/validators/ltu`,\n * `rules/masks/ltu`\n */\nimport type { FormSchema } from '../../types'\n\nconst schema = {\n id: 'personal-data-LTU',\n country: 'LTU',\n formType: 'personal-data',\n fields: [\n {\n name: 'personType',\n type: 'radio-group',\n label: 'country-forms.personal-data.personType.label',\n required: true,\n options: [\n { value: 'individual', displayValue: 'country-forms.personal-data.personType.individual' },\n { value: 'business', displayValue: 'country-forms.personal-data.personType.business' },\n ],\n },\n {\n name: 'firstName',\n type: 'text',\n label: 'country-forms.personal-data.firstName.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n dependsOn: 'personType',\n conditionalLabel: {\n individual: 'country-forms.personal-data.firstName.label.individual',\n business: 'country-forms.personal-data.firstName.label.business',\n },\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'lastName',\n type: 'text',\n label: 'country-forms.personal-data.lastName.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n conditionalVisibility: {\n field: 'personType',\n operator: 'equals',\n value: 'individual',\n },\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'email',\n type: 'email',\n label: 'country-forms.personal-data.email.label',\n required: true,\n inputMode: 'email',\n validation: {\n customValidator: 'validateEmail',\n },\n },\n {\n name: 'phone',\n type: 'text',\n // 25 chars: the widest valid pastes are 24 characters (\"00 (370) (8) 61 23 45 67\",\n // \"00 (370) (8) 612 34 56 7\"), so one more digit fits and is rejected\n // instead of being cut down to a different valid number. The limit is one\n // character of slack, not a guarantee: a 25-character valid value followed\n // by more characters is still cut (JPN, KOR and LUX have the same gap).\n maxLength: 25,\n label: 'country-forms.personal-data.phone.label',\n placeholder: 'country-forms.personal-data.phone.placeholder.LTU',\n required: true,\n inputMode: 'tel',\n formatRef: 'formatPhoneLTU',\n unformatRef: 'unformatPhoneLTU',\n validation: {\n customValidator: 'validatePhoneLTU',\n },\n },\n ],\n} satisfies FormSchema\n\nexport default schema\n"]}
@@ -0,0 +1,84 @@
1
+ // src/schemas/personal-data/LTU.ts
2
+ var schema = {
3
+ id: "personal-data-LTU",
4
+ country: "LTU",
5
+ formType: "personal-data",
6
+ fields: [
7
+ {
8
+ name: "personType",
9
+ type: "radio-group",
10
+ label: "country-forms.personal-data.personType.label",
11
+ required: true,
12
+ options: [
13
+ { value: "individual", displayValue: "country-forms.personal-data.personType.individual" },
14
+ { value: "business", displayValue: "country-forms.personal-data.personType.business" }
15
+ ]
16
+ },
17
+ {
18
+ name: "firstName",
19
+ type: "text",
20
+ label: "country-forms.personal-data.firstName.label",
21
+ required: true,
22
+ inputMode: "text",
23
+ maxLength: 100,
24
+ dependsOn: "personType",
25
+ conditionalLabel: {
26
+ individual: "country-forms.personal-data.firstName.label.individual",
27
+ business: "country-forms.personal-data.firstName.label.business"
28
+ },
29
+ validation: {
30
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
31
+ }
32
+ },
33
+ {
34
+ name: "lastName",
35
+ type: "text",
36
+ label: "country-forms.personal-data.lastName.label",
37
+ required: true,
38
+ inputMode: "text",
39
+ maxLength: 100,
40
+ conditionalVisibility: {
41
+ field: "personType",
42
+ operator: "equals",
43
+ value: "individual"
44
+ },
45
+ validation: {
46
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
47
+ }
48
+ },
49
+ {
50
+ name: "email",
51
+ type: "email",
52
+ label: "country-forms.personal-data.email.label",
53
+ required: true,
54
+ inputMode: "email",
55
+ validation: {
56
+ customValidator: "validateEmail"
57
+ }
58
+ },
59
+ {
60
+ name: "phone",
61
+ type: "text",
62
+ // 25 chars: the widest valid pastes are 24 characters ("00 (370) (8) 61 23 45 67",
63
+ // "00 (370) (8) 612 34 56 7"), so one more digit fits and is rejected
64
+ // instead of being cut down to a different valid number. The limit is one
65
+ // character of slack, not a guarantee: a 25-character valid value followed
66
+ // by more characters is still cut (JPN, KOR and LUX have the same gap).
67
+ maxLength: 25,
68
+ label: "country-forms.personal-data.phone.label",
69
+ placeholder: "country-forms.personal-data.phone.placeholder.LTU",
70
+ required: true,
71
+ inputMode: "tel",
72
+ formatRef: "formatPhoneLTU",
73
+ unformatRef: "unformatPhoneLTU",
74
+ validation: {
75
+ customValidator: "validatePhoneLTU"
76
+ }
77
+ }
78
+ ]
79
+ };
80
+ var LTU_default = schema;
81
+
82
+ export { LTU_default as default };
83
+ //# sourceMappingURL=LTU-AHJYVHMI.mjs.map
84
+ //# sourceMappingURL=LTU-AHJYVHMI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas/personal-data/LTU.ts"],"names":[],"mappings":";AAiCA,IAAM,MAAA,GAAS;AAAA,EACb,EAAA,EAAI,mBAAA;AAAA,EACJ,OAAA,EAAS,KAAA;AAAA,EACT,QAAA,EAAU,eAAA;AAAA,EACV,MAAA,EAAQ;AAAA,IACN;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,IAAA,EAAM,aAAA;AAAA,MACN,KAAA,EAAO,8CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,OAAA,EAAS;AAAA,QACP,EAAE,KAAA,EAAO,YAAA,EAAc,YAAA,EAAc,mDAAA,EAAoD;AAAA,QACzF,EAAE,KAAA,EAAO,UAAA,EAAY,YAAA,EAAc,iDAAA;AAAkD;AACvF,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,WAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,6CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,SAAA,EAAW,YAAA;AAAA,MACX,gBAAA,EAAkB;AAAA,QAChB,UAAA,EAAY,wDAAA;AAAA,QACZ,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,UAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,4CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,qBAAA,EAAuB;AAAA,QACrB,KAAA,EAAO,YAAA;AAAA,QACP,QAAA,EAAU,QAAA;AAAA,QACV,KAAA,EAAO;AAAA,OACT;AAAA,MACA,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,OAAA;AAAA,MACN,KAAA,EAAO,yCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,OAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMN,SAAA,EAAW,EAAA;AAAA,MACX,KAAA,EAAO,yCAAA;AAAA,MACP,WAAA,EAAa,mDAAA;AAAA,MACb,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,KAAA;AAAA,MACX,SAAA,EAAW,gBAAA;AAAA,MACX,WAAA,EAAa,kBAAA;AAAA,MACb,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB;AACF;AAEJ,CAAA;AAEA,IAAO,WAAA,GAAQ","file":"LTU-AHJYVHMI.mjs","sourcesContent":["/**\n * Personal-data schema for Lithuania (LTU).\n *\n * Field order: personType → firstName → lastName → email → phone\n *\n * `personType` drives conditional visibility:\n * - `\"individual\"` → `lastName` visible\n * - `\"business\"` → `lastName` hidden; `firstName` labelled as company name\n *\n * `profile-form` has no `LTU.js`, so it falls back to the generic default\n * rules (required free-text `document`, no check digit). No tax/identity\n * document field is modelled here. Optional gender and birth date are omitted.\n * Business fields (`corporateName`, `tradeName`, `corporateDocument`,\n * `businessPhone`) are optional there. Email is hidden there; here it is\n * required. `homePhone` is optional there; `phone` is required here.\n *\n * Email: validated by `validateEmail` (shared).\n * Phone: `612 34567` mobile / `5 212 3456` Vilnius / `37 123456` Kaunas —\n * validated by `validatePhoneLTU`, masked by `formatPhoneLTU`/`unformatPhoneLTU`.\n * There is no `front.phone` LTU module; rules follow the Lithuanian numbering\n * plan (country code `370`, trunk prefix `8`) and libphonenumber's `LT` ranges.\n * Mobile is `6` + 7 digits; fixed line is `31`/`34`/`37`/`38`/`41`/`42`/`44`/\n * `45`/`46`/`52` + 6 digits. `+370` / `00370` are stripped once and one trunk\n * `8` (or `0`) is removed. A bare `370` is stripped only when the remainder is\n * a complete valid number (a Kaunas number can start with `370`). A foreign\n * `+` / `00` prefix (including Latvia `+371`, Estonia `+372`, Poland `+48`) is\n * rejected.\n *\n * Required rule modules: `rules/validators/common`, `rules/validators/ltu`,\n * `rules/masks/ltu`\n */\nimport type { FormSchema } from '../../types'\n\nconst schema = {\n id: 'personal-data-LTU',\n country: 'LTU',\n formType: 'personal-data',\n fields: [\n {\n name: 'personType',\n type: 'radio-group',\n label: 'country-forms.personal-data.personType.label',\n required: true,\n options: [\n { value: 'individual', displayValue: 'country-forms.personal-data.personType.individual' },\n { value: 'business', displayValue: 'country-forms.personal-data.personType.business' },\n ],\n },\n {\n name: 'firstName',\n type: 'text',\n label: 'country-forms.personal-data.firstName.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n dependsOn: 'personType',\n conditionalLabel: {\n individual: 'country-forms.personal-data.firstName.label.individual',\n business: 'country-forms.personal-data.firstName.label.business',\n },\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'lastName',\n type: 'text',\n label: 'country-forms.personal-data.lastName.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n conditionalVisibility: {\n field: 'personType',\n operator: 'equals',\n value: 'individual',\n },\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'email',\n type: 'email',\n label: 'country-forms.personal-data.email.label',\n required: true,\n inputMode: 'email',\n validation: {\n customValidator: 'validateEmail',\n },\n },\n {\n name: 'phone',\n type: 'text',\n // 25 chars: the widest valid pastes are 24 characters (\"00 (370) (8) 61 23 45 67\",\n // \"00 (370) (8) 612 34 56 7\"), so one more digit fits and is rejected\n // instead of being cut down to a different valid number. The limit is one\n // character of slack, not a guarantee: a 25-character valid value followed\n // by more characters is still cut (JPN, KOR and LUX have the same gap).\n maxLength: 25,\n label: 'country-forms.personal-data.phone.label',\n placeholder: 'country-forms.personal-data.phone.placeholder.LTU',\n required: true,\n inputMode: 'tel',\n formatRef: 'formatPhoneLTU',\n unformatRef: 'unformatPhoneLTU',\n validation: {\n customValidator: 'validatePhoneLTU',\n },\n },\n ],\n} satisfies FormSchema\n\nexport default schema\n"]}
@@ -0,0 +1,71 @@
1
+ // src/schemas/address/LTU.ts
2
+ var schema = {
3
+ id: "address-LTU",
4
+ country: "LTU",
5
+ formType: "address",
6
+ fields: [
7
+ {
8
+ name: "postalCode",
9
+ type: "text",
10
+ label: "country-forms.address.postalCode.label",
11
+ placeholder: "country-forms.address.postalCode.placeholder.LTU",
12
+ required: false,
13
+ inputMode: "text",
14
+ maxLength: 9,
15
+ formatRef: "formatPostalCodeLTU",
16
+ unformatRef: "unformatPostalCodeLTU",
17
+ validation: {
18
+ customValidator: "validatePostalCodeLTU"
19
+ }
20
+ },
21
+ {
22
+ name: "street",
23
+ type: "text",
24
+ label: "country-forms.address.street.label",
25
+ required: true,
26
+ inputMode: "text",
27
+ maxLength: 750,
28
+ validation: {
29
+ maxLength: { value: 750, message: "country-forms.validation.maxLength" }
30
+ }
31
+ },
32
+ {
33
+ name: "complement",
34
+ type: "text",
35
+ label: "country-forms.address.complement.label",
36
+ required: false,
37
+ inputMode: "text",
38
+ maxLength: 750,
39
+ validation: {
40
+ maxLength: { value: 750, message: "country-forms.validation.maxLength" }
41
+ }
42
+ },
43
+ {
44
+ name: "city",
45
+ type: "text",
46
+ label: "country-forms.address.city.label",
47
+ required: true,
48
+ inputMode: "text",
49
+ maxLength: 100,
50
+ validation: {
51
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
52
+ }
53
+ },
54
+ {
55
+ name: "state",
56
+ type: "text",
57
+ label: "country-forms.address.state.label",
58
+ required: true,
59
+ inputMode: "text",
60
+ maxLength: 100,
61
+ validation: {
62
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
63
+ }
64
+ }
65
+ ]
66
+ };
67
+ var LTU_default = schema;
68
+
69
+ export { LTU_default as default };
70
+ //# sourceMappingURL=LTU-LIAP6BF3.mjs.map
71
+ //# sourceMappingURL=LTU-LIAP6BF3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas/address/LTU.ts"],"names":[],"mappings":";AAyCA,IAAM,MAAA,GAAS;AAAA,EACb,EAAA,EAAI,aAAA;AAAA,EACJ,OAAA,EAAS,KAAA;AAAA,EACT,QAAA,EAAU,SAAA;AAAA,EACV,MAAA,EAAQ;AAAA,IACN;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,wCAAA;AAAA,MACP,WAAA,EAAa,kDAAA;AAAA,MACb,QAAA,EAAU,KAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,CAAA;AAAA,MACX,SAAA,EAAW,qBAAA;AAAA,MACX,WAAA,EAAa,uBAAA;AAAA,MACb,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,QAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,oCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,wCAAA;AAAA,MACP,QAAA,EAAU,KAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,MAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,kCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,mCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE;AACF;AAEJ,CAAA;AAEA,IAAO,WAAA,GAAQ","file":"LTU-LIAP6BF3.mjs","sourcesContent":["/**\n * Address schema for Lithuania (LTU).\n *\n * Field order: postalCode → street → complement → city → state\n * (matches the visible legacy `address-form` LTU fields; omits hidden\n * `country` / `number` / `reference` / `neighborhood` and `receiverName`,\n * which are outside this library's address model). The legacy `number` is\n * hidden and marked not applicable for geolocation, so the house number is\n * part of the street line, as in GBR and JPN.\n *\n * Postal code: 5 digits (`\"01100\"`), optionally preceded by `LT-`\n * (`\"LT-01100\"`), validated by `validatePostalCodeLTU` (parity with\n * `address-form` `LTU.ts` regex `/^((L|l)(T|t)-|)\\d{5}$/`, so the prefix is\n * accepted in any letter case). The field is optional, as in `address-form`\n * (the legacy field has no `required`), and `postalCodeAPI` is false there.\n * Masks `formatPostalCodeLTU` / `unformatPostalCodeLTU` only upper-case the\n * code, like the legacy `autoUpperCase`; the legacy separator mask\n * (`AA-99999`) was removed in `address-form` 3.40.0 so the prefix stays\n * optional. The stored value keeps the `LT-` prefix when the user typed it.\n * `maxLength` is 9 (the legacy field uses 50): the 8 characters of\n * `\"LT-01100\"` plus one for a space pasted before or after it\n * (`\" LT-01100\"` is valid after trim). A code with one more digit\n * (`\"LT-011000\"`) fits and is rejected by the validator instead of being cut\n * down to the different, valid `\"LT-01100\"`. The limit is one character of\n * slack, not a guarantee: a paste with both surrounding whitespace and an\n * extra digit is still cut (JPN and LUX have the same gap).\n *\n * Subdivision: required free text (`maxLength` 100) with the shared \"State\"\n * label, as in the legacy form. The legacy field is not a select, so the 10\n * counties (apskritys) are not offered as options here.\n *\n * Street is required. The legacy field has no max length; this schema caps it\n * at 750, the same cap used for other countries. Complement is optional\n * (`maxLength` 750). City is required (`maxLength` 100). The legacy labels\n * `addressLine1` / `addressLine2` map to the shared street and complement\n * labels.\n *\n * Required rule modules: `rules/validators/ltu`, `rules/masks/ltu`\n */\nimport type { FormSchema } from '../../types'\n\nconst schema = {\n id: 'address-LTU',\n country: 'LTU',\n formType: 'address',\n fields: [\n {\n name: 'postalCode',\n type: 'text',\n label: 'country-forms.address.postalCode.label',\n placeholder: 'country-forms.address.postalCode.placeholder.LTU',\n required: false,\n inputMode: 'text',\n maxLength: 9,\n formatRef: 'formatPostalCodeLTU',\n unformatRef: 'unformatPostalCodeLTU',\n validation: {\n customValidator: 'validatePostalCodeLTU',\n },\n },\n {\n name: 'street',\n type: 'text',\n label: 'country-forms.address.street.label',\n required: true,\n inputMode: 'text',\n maxLength: 750,\n validation: {\n maxLength: { value: 750, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'complement',\n type: 'text',\n label: 'country-forms.address.complement.label',\n required: false,\n inputMode: 'text',\n maxLength: 750,\n validation: {\n maxLength: { value: 750, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'city',\n type: 'text',\n label: 'country-forms.address.city.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'state',\n type: 'text',\n label: 'country-forms.address.state.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n ],\n} satisfies FormSchema\n\nexport default schema\n"]}
@@ -0,0 +1,73 @@
1
+ 'use strict';
2
+
3
+ // src/schemas/address/LTU.ts
4
+ var schema = {
5
+ id: "address-LTU",
6
+ country: "LTU",
7
+ formType: "address",
8
+ fields: [
9
+ {
10
+ name: "postalCode",
11
+ type: "text",
12
+ label: "country-forms.address.postalCode.label",
13
+ placeholder: "country-forms.address.postalCode.placeholder.LTU",
14
+ required: false,
15
+ inputMode: "text",
16
+ maxLength: 9,
17
+ formatRef: "formatPostalCodeLTU",
18
+ unformatRef: "unformatPostalCodeLTU",
19
+ validation: {
20
+ customValidator: "validatePostalCodeLTU"
21
+ }
22
+ },
23
+ {
24
+ name: "street",
25
+ type: "text",
26
+ label: "country-forms.address.street.label",
27
+ required: true,
28
+ inputMode: "text",
29
+ maxLength: 750,
30
+ validation: {
31
+ maxLength: { value: 750, message: "country-forms.validation.maxLength" }
32
+ }
33
+ },
34
+ {
35
+ name: "complement",
36
+ type: "text",
37
+ label: "country-forms.address.complement.label",
38
+ required: false,
39
+ inputMode: "text",
40
+ maxLength: 750,
41
+ validation: {
42
+ maxLength: { value: 750, message: "country-forms.validation.maxLength" }
43
+ }
44
+ },
45
+ {
46
+ name: "city",
47
+ type: "text",
48
+ label: "country-forms.address.city.label",
49
+ required: true,
50
+ inputMode: "text",
51
+ maxLength: 100,
52
+ validation: {
53
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
54
+ }
55
+ },
56
+ {
57
+ name: "state",
58
+ type: "text",
59
+ label: "country-forms.address.state.label",
60
+ required: true,
61
+ inputMode: "text",
62
+ maxLength: 100,
63
+ validation: {
64
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
65
+ }
66
+ }
67
+ ]
68
+ };
69
+ var LTU_default = schema;
70
+
71
+ module.exports = LTU_default;
72
+ //# sourceMappingURL=LTU-RKEISTKU.js.map
73
+ //# sourceMappingURL=LTU-RKEISTKU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas/address/LTU.ts"],"names":[],"mappings":";;;AAyCA,IAAM,MAAA,GAAS;AAAA,EACb,EAAA,EAAI,aAAA;AAAA,EACJ,OAAA,EAAS,KAAA;AAAA,EACT,QAAA,EAAU,SAAA;AAAA,EACV,MAAA,EAAQ;AAAA,IACN;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,wCAAA;AAAA,MACP,WAAA,EAAa,kDAAA;AAAA,MACb,QAAA,EAAU,KAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,CAAA;AAAA,MACX,SAAA,EAAW,qBAAA;AAAA,MACX,WAAA,EAAa,uBAAA;AAAA,MACb,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,QAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,oCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,wCAAA;AAAA,MACP,QAAA,EAAU,KAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,MAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,kCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,mCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE;AACF;AAEJ,CAAA;AAEA,IAAO,WAAA,GAAQ","file":"LTU-RKEISTKU.js","sourcesContent":["/**\n * Address schema for Lithuania (LTU).\n *\n * Field order: postalCode → street → complement → city → state\n * (matches the visible legacy `address-form` LTU fields; omits hidden\n * `country` / `number` / `reference` / `neighborhood` and `receiverName`,\n * which are outside this library's address model). The legacy `number` is\n * hidden and marked not applicable for geolocation, so the house number is\n * part of the street line, as in GBR and JPN.\n *\n * Postal code: 5 digits (`\"01100\"`), optionally preceded by `LT-`\n * (`\"LT-01100\"`), validated by `validatePostalCodeLTU` (parity with\n * `address-form` `LTU.ts` regex `/^((L|l)(T|t)-|)\\d{5}$/`, so the prefix is\n * accepted in any letter case). The field is optional, as in `address-form`\n * (the legacy field has no `required`), and `postalCodeAPI` is false there.\n * Masks `formatPostalCodeLTU` / `unformatPostalCodeLTU` only upper-case the\n * code, like the legacy `autoUpperCase`; the legacy separator mask\n * (`AA-99999`) was removed in `address-form` 3.40.0 so the prefix stays\n * optional. The stored value keeps the `LT-` prefix when the user typed it.\n * `maxLength` is 9 (the legacy field uses 50): the 8 characters of\n * `\"LT-01100\"` plus one for a space pasted before or after it\n * (`\" LT-01100\"` is valid after trim). A code with one more digit\n * (`\"LT-011000\"`) fits and is rejected by the validator instead of being cut\n * down to the different, valid `\"LT-01100\"`. The limit is one character of\n * slack, not a guarantee: a paste with both surrounding whitespace and an\n * extra digit is still cut (JPN and LUX have the same gap).\n *\n * Subdivision: required free text (`maxLength` 100) with the shared \"State\"\n * label, as in the legacy form. The legacy field is not a select, so the 10\n * counties (apskritys) are not offered as options here.\n *\n * Street is required. The legacy field has no max length; this schema caps it\n * at 750, the same cap used for other countries. Complement is optional\n * (`maxLength` 750). City is required (`maxLength` 100). The legacy labels\n * `addressLine1` / `addressLine2` map to the shared street and complement\n * labels.\n *\n * Required rule modules: `rules/validators/ltu`, `rules/masks/ltu`\n */\nimport type { FormSchema } from '../../types'\n\nconst schema = {\n id: 'address-LTU',\n country: 'LTU',\n formType: 'address',\n fields: [\n {\n name: 'postalCode',\n type: 'text',\n label: 'country-forms.address.postalCode.label',\n placeholder: 'country-forms.address.postalCode.placeholder.LTU',\n required: false,\n inputMode: 'text',\n maxLength: 9,\n formatRef: 'formatPostalCodeLTU',\n unformatRef: 'unformatPostalCodeLTU',\n validation: {\n customValidator: 'validatePostalCodeLTU',\n },\n },\n {\n name: 'street',\n type: 'text',\n label: 'country-forms.address.street.label',\n required: true,\n inputMode: 'text',\n maxLength: 750,\n validation: {\n maxLength: { value: 750, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'complement',\n type: 'text',\n label: 'country-forms.address.complement.label',\n required: false,\n inputMode: 'text',\n maxLength: 750,\n validation: {\n maxLength: { value: 750, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'city',\n type: 'text',\n label: 'country-forms.address.city.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'state',\n type: 'text',\n label: 'country-forms.address.state.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n ],\n} satisfies FormSchema\n\nexport default schema\n"]}
@@ -0,0 +1,83 @@
1
+ 'use strict';
2
+
3
+ // src/schemas/personal-data/LUX.ts
4
+ var schema = {
5
+ id: "personal-data-LUX",
6
+ country: "LUX",
7
+ formType: "personal-data",
8
+ fields: [
9
+ {
10
+ name: "personType",
11
+ type: "radio-group",
12
+ label: "country-forms.personal-data.personType.label",
13
+ required: true,
14
+ options: [
15
+ { value: "individual", displayValue: "country-forms.personal-data.personType.individual" },
16
+ { value: "business", displayValue: "country-forms.personal-data.personType.business" }
17
+ ]
18
+ },
19
+ {
20
+ name: "firstName",
21
+ type: "text",
22
+ label: "country-forms.personal-data.firstName.label",
23
+ required: true,
24
+ inputMode: "text",
25
+ maxLength: 100,
26
+ dependsOn: "personType",
27
+ conditionalLabel: {
28
+ individual: "country-forms.personal-data.firstName.label.individual",
29
+ business: "country-forms.personal-data.firstName.label.business"
30
+ },
31
+ validation: {
32
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
33
+ }
34
+ },
35
+ {
36
+ name: "lastName",
37
+ type: "text",
38
+ label: "country-forms.personal-data.lastName.label",
39
+ required: true,
40
+ inputMode: "text",
41
+ maxLength: 100,
42
+ conditionalVisibility: {
43
+ field: "personType",
44
+ operator: "equals",
45
+ value: "individual"
46
+ },
47
+ validation: {
48
+ maxLength: { value: 100, message: "country-forms.validation.maxLength" }
49
+ }
50
+ },
51
+ {
52
+ name: "email",
53
+ type: "email",
54
+ label: "country-forms.personal-data.email.label",
55
+ required: true,
56
+ inputMode: "email",
57
+ validation: {
58
+ customValidator: "validateEmail"
59
+ }
60
+ },
61
+ {
62
+ name: "phone",
63
+ type: "text",
64
+ // 24 chars fits "00352 26 12 34 56789" (20) and a pasted "(+352) 26 12 34 56".
65
+ // There is no trunk prefix, so a pasted "(0)" is not a supported form.
66
+ maxLength: 24,
67
+ label: "country-forms.personal-data.phone.label",
68
+ placeholder: "country-forms.personal-data.phone.placeholder.LUX",
69
+ required: true,
70
+ inputMode: "tel",
71
+ formatRef: "formatPhoneLUX",
72
+ unformatRef: "unformatPhoneLUX",
73
+ validation: {
74
+ customValidator: "validatePhoneLUX"
75
+ }
76
+ }
77
+ ]
78
+ };
79
+ var LUX_default = schema;
80
+
81
+ module.exports = LUX_default;
82
+ //# sourceMappingURL=LUX-CJAE5BFO.js.map
83
+ //# sourceMappingURL=LUX-CJAE5BFO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas/personal-data/LUX.ts"],"names":[],"mappings":";;;AAgCA,IAAM,MAAA,GAAS;AAAA,EACb,EAAA,EAAI,mBAAA;AAAA,EACJ,OAAA,EAAS,KAAA;AAAA,EACT,QAAA,EAAU,eAAA;AAAA,EACV,MAAA,EAAQ;AAAA,IACN;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,IAAA,EAAM,aAAA;AAAA,MACN,KAAA,EAAO,8CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,OAAA,EAAS;AAAA,QACP,EAAE,KAAA,EAAO,YAAA,EAAc,YAAA,EAAc,mDAAA,EAAoD;AAAA,QACzF,EAAE,KAAA,EAAO,UAAA,EAAY,YAAA,EAAc,iDAAA;AAAkD;AACvF,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,WAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,6CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,SAAA,EAAW,YAAA;AAAA,MACX,gBAAA,EAAkB;AAAA,QAChB,UAAA,EAAY,wDAAA;AAAA,QACZ,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,UAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,KAAA,EAAO,4CAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,MAAA;AAAA,MACX,SAAA,EAAW,GAAA;AAAA,MACX,qBAAA,EAAuB;AAAA,QACrB,KAAA,EAAO,YAAA;AAAA,QACP,QAAA,EAAU,QAAA;AAAA,QACV,KAAA,EAAO;AAAA,OACT;AAAA,MACA,UAAA,EAAY;AAAA,QACV,SAAA,EAAW,EAAE,KAAA,EAAO,GAAA,EAAK,SAAS,oCAAA;AAAqC;AACzE,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,OAAA;AAAA,MACN,KAAA,EAAO,yCAAA;AAAA,MACP,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,OAAA;AAAA,MACX,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB,KACF;AAAA,IACA;AAAA,MACE,IAAA,EAAM,OAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA,MAGN,SAAA,EAAW,EAAA;AAAA,MACX,KAAA,EAAO,yCAAA;AAAA,MACP,WAAA,EAAa,mDAAA;AAAA,MACb,QAAA,EAAU,IAAA;AAAA,MACV,SAAA,EAAW,KAAA;AAAA,MACX,SAAA,EAAW,gBAAA;AAAA,MACX,WAAA,EAAa,kBAAA;AAAA,MACb,UAAA,EAAY;AAAA,QACV,eAAA,EAAiB;AAAA;AACnB;AACF;AAEJ,CAAA;AAEA,IAAO,WAAA,GAAQ","file":"LUX-CJAE5BFO.js","sourcesContent":["/**\n * Personal-data schema for Luxembourg (LUX).\n *\n * Field order: personType → firstName → lastName → email → phone\n *\n * `personType` drives conditional visibility:\n * - `\"individual\"` → `lastName` visible\n * - `\"business\"` → `lastName` hidden; `firstName` labelled as company name\n *\n * `profile-form` has no `LUX.js`, so it falls back to the generic default\n * rules (required free-text `document`, no check digit). No tax/identity\n * document field is modelled here. Optional gender and birth date are omitted.\n * Business fields (`corporateName`, `tradeName`, `corporateDocument`,\n * `businessPhone`) are optional there. Email is hidden there; here it is\n * required. `homePhone` is optional there; `phone` is required here.\n *\n * Email: validated by `validateEmail` (shared).\n * Phone: `621 123 456` mobile / `26 12 34 56` fixed line — validated by\n * `validatePhoneLUX`, masked by `formatPhoneLUX`/`unformatPhoneLUX`. There is\n * no `front.phone` LUX module; rules follow the Luxembourg numbering plan\n * (country code `352`, no trunk prefix) and libphonenumber's `LU` ranges.\n * Mobile is 9 digits in the allocated `6x1` ranges. Fixed line is 6–11 digits.\n * `+352` / `00352` are stripped once; a bare `352` is stripped only when the\n * remainder is a complete valid number (no national number starts with `352`).\n * A foreign `+` / `00` prefix (including Belgium `+32`, France `+33`, Germany\n * `+49`) is rejected.\n *\n * Required rule modules: `rules/validators/common`, `rules/validators/lux`,\n * `rules/masks/lux`\n */\nimport type { FormSchema } from '../../types'\n\nconst schema = {\n id: 'personal-data-LUX',\n country: 'LUX',\n formType: 'personal-data',\n fields: [\n {\n name: 'personType',\n type: 'radio-group',\n label: 'country-forms.personal-data.personType.label',\n required: true,\n options: [\n { value: 'individual', displayValue: 'country-forms.personal-data.personType.individual' },\n { value: 'business', displayValue: 'country-forms.personal-data.personType.business' },\n ],\n },\n {\n name: 'firstName',\n type: 'text',\n label: 'country-forms.personal-data.firstName.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n dependsOn: 'personType',\n conditionalLabel: {\n individual: 'country-forms.personal-data.firstName.label.individual',\n business: 'country-forms.personal-data.firstName.label.business',\n },\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'lastName',\n type: 'text',\n label: 'country-forms.personal-data.lastName.label',\n required: true,\n inputMode: 'text',\n maxLength: 100,\n conditionalVisibility: {\n field: 'personType',\n operator: 'equals',\n value: 'individual',\n },\n validation: {\n maxLength: { value: 100, message: 'country-forms.validation.maxLength' },\n },\n },\n {\n name: 'email',\n type: 'email',\n label: 'country-forms.personal-data.email.label',\n required: true,\n inputMode: 'email',\n validation: {\n customValidator: 'validateEmail',\n },\n },\n {\n name: 'phone',\n type: 'text',\n // 24 chars fits \"00352 26 12 34 56789\" (20) and a pasted \"(+352) 26 12 34 56\".\n // There is no trunk prefix, so a pasted \"(0)\" is not a supported form.\n maxLength: 24,\n label: 'country-forms.personal-data.phone.label',\n placeholder: 'country-forms.personal-data.phone.placeholder.LUX',\n required: true,\n inputMode: 'tel',\n formatRef: 'formatPhoneLUX',\n unformatRef: 'unformatPhoneLUX',\n validation: {\n customValidator: 'validatePhoneLUX',\n },\n },\n ],\n} satisfies FormSchema\n\nexport default schema\n"]}