@taiga-ui/addon-commerce 3.57.0 → 3.59.0-canary.10da730

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 (261) hide show
  1. package/components/input-card/abstract-input-card.d.ts +1 -1
  2. package/components/input-card/input-card.component.d.ts +1 -1
  3. package/components/input-card/input-card.directive.d.ts +1 -1
  4. package/components/input-card-grouped/input-card-grouped.component.d.ts +1 -1
  5. package/components/input-cvc/input-cvc.component.d.ts +1 -1
  6. package/components/input-expire/input-expire.component.d.ts +1 -1
  7. package/components/money/money.component.d.ts +1 -1
  8. package/components/money/pipes/fraction-part.pipe.d.ts +1 -1
  9. package/components/money/pipes/integer-part.pipe.d.ts +1 -1
  10. package/components/money/pipes/sign-symbol.pipe.d.ts +1 -1
  11. package/components/thumbnail-card/deprecated.d.ts +1 -1
  12. package/components/thumbnail-card/thumbnail-card.component.d.ts +1 -1
  13. package/{esm2015/components/input-card/abstract-input-card.js → esm2020/components/input-card/abstract-input-card.mjs} +3 -3
  14. package/esm2020/components/input-card/input-card.component.mjs +91 -0
  15. package/{esm2015/components/input-card/input-card.directive.js → esm2020/components/input-card/input-card.directive.mjs} +3 -3
  16. package/{esm2015/components/input-card/input-card.module.js → esm2020/components/input-card/input-card.module.mjs} +9 -11
  17. package/esm2020/components/input-card-grouped/input-card-grouped.component.mjs +337 -0
  18. package/{esm2015/components/input-card-grouped/input-card-grouped.module.js → esm2020/components/input-card-grouped/input-card-grouped.module.mjs} +19 -21
  19. package/esm2020/components/input-card-grouped/input-card-grouped.options.mjs +14 -0
  20. package/esm2020/components/input-card-grouped/input-card-grouped.providers.mjs +28 -0
  21. package/esm2020/components/input-cvc/input-cvc.component.mjs +91 -0
  22. package/{esm2015/components/input-cvc/input-cvc.module.js → esm2020/components/input-cvc/input-cvc.module.mjs} +8 -10
  23. package/esm2020/components/input-expire/input-expire.component.mjs +73 -0
  24. package/{esm2015/components/input-expire/input-expire.module.js → esm2020/components/input-expire/input-expire.module.mjs} +8 -10
  25. package/esm2020/components/money/money.component.mjs +78 -0
  26. package/{esm2015/components/money/money.module.js → esm2020/components/money/money.module.mjs} +5 -5
  27. package/{esm2015/components/money/pipes/fraction-part.pipe.js → esm2020/components/money/pipes/fraction-part.pipe.mjs} +3 -3
  28. package/{esm2015/components/money/pipes/integer-part.pipe.js → esm2020/components/money/pipes/integer-part.pipe.mjs} +9 -5
  29. package/{esm2015/components/money/pipes/sign-symbol.pipe.js → esm2020/components/money/pipes/sign-symbol.pipe.mjs} +3 -3
  30. package/esm2020/components/money/utils/format-fraction-part.mjs +11 -0
  31. package/esm2020/components/thumbnail-card/deprecated.mjs +35 -0
  32. package/{esm2015/components/thumbnail-card/thumbnail-card.component.js → esm2020/components/thumbnail-card/thumbnail-card.component.mjs} +7 -12
  33. package/{esm2015/components/thumbnail-card/thumbnail-card.module.js → esm2020/components/thumbnail-card/thumbnail-card.module.mjs} +5 -5
  34. package/{esm2015/pipes/currency/currency.module.js → esm2020/pipes/currency/currency.module.mjs} +4 -4
  35. package/{esm2015/pipes/currency/currency.pipe.js → esm2020/pipes/currency/currency.pipe.mjs} +3 -3
  36. package/{esm2015/pipes/format-card/format-card.module.js → esm2020/pipes/format-card/format-card.module.mjs} +4 -4
  37. package/{esm2015/pipes/format-card/format-card.pipe.js → esm2020/pipes/format-card/format-card.pipe.mjs} +3 -3
  38. package/{esm2015/utils/get-code-by-currency.js → esm2020/utils/get-code-by-currency.mjs} +2 -3
  39. package/{esm2015/utils/get-currency-by-code.js → esm2020/utils/get-currency-by-code.mjs} +2 -3
  40. package/esm2020/utils/get-payment-system.mjs +105 -0
  41. package/esm2020/validators/card-expire.validator.mjs +8 -0
  42. package/esm2020/validators/card-number.validator.mjs +8 -0
  43. package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.mjs +450 -0
  44. package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.mjs.map +1 -0
  45. package/fesm2015/taiga-ui-addon-commerce-components-input-card.mjs +230 -0
  46. package/fesm2015/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -0
  47. package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.mjs +128 -0
  48. package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.mjs.map +1 -0
  49. package/fesm2015/taiga-ui-addon-commerce-components-input-expire.mjs +110 -0
  50. package/fesm2015/taiga-ui-addon-commerce-components-input-expire.mjs.map +1 -0
  51. package/fesm2015/taiga-ui-addon-commerce-components-money.mjs +205 -0
  52. package/fesm2015/taiga-ui-addon-commerce-components-money.mjs.map +1 -0
  53. package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.mjs +100 -0
  54. package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -0
  55. package/fesm2015/{taiga-ui-addon-commerce-components.js → taiga-ui-addon-commerce-components.mjs} +1 -1
  56. package/fesm2015/taiga-ui-addon-commerce-components.mjs.map +1 -0
  57. package/fesm2015/{taiga-ui-addon-commerce-constants.js → taiga-ui-addon-commerce-constants.mjs} +1 -1
  58. package/fesm2015/taiga-ui-addon-commerce-constants.mjs.map +1 -0
  59. package/fesm2015/{taiga-ui-addon-commerce-enums.js → taiga-ui-addon-commerce-enums.mjs} +1 -1
  60. package/fesm2015/taiga-ui-addon-commerce-enums.mjs.map +1 -0
  61. package/fesm2015/taiga-ui-addon-commerce-interfaces.mjs +4 -0
  62. package/fesm2015/taiga-ui-addon-commerce-interfaces.mjs.map +1 -0
  63. package/fesm2015/{taiga-ui-addon-commerce-pipes.js → taiga-ui-addon-commerce-pipes.mjs} +15 -15
  64. package/fesm2015/taiga-ui-addon-commerce-pipes.mjs.map +1 -0
  65. package/fesm2015/{taiga-ui-addon-commerce-tokens.js → taiga-ui-addon-commerce-tokens.mjs} +1 -1
  66. package/fesm2015/taiga-ui-addon-commerce-tokens.mjs.map +1 -0
  67. package/fesm2015/taiga-ui-addon-commerce-types.mjs +4 -0
  68. package/fesm2015/taiga-ui-addon-commerce-types.mjs.map +1 -0
  69. package/fesm2015/{taiga-ui-addon-commerce-utils.js → taiga-ui-addon-commerce-utils.mjs} +1 -2
  70. package/fesm2015/taiga-ui-addon-commerce-utils.mjs.map +1 -0
  71. package/fesm2015/{taiga-ui-addon-commerce-validators.js → taiga-ui-addon-commerce-validators.mjs} +1 -1
  72. package/fesm2015/taiga-ui-addon-commerce-validators.mjs.map +1 -0
  73. package/fesm2015/{taiga-ui-addon-commerce.js → taiga-ui-addon-commerce.mjs} +1 -1
  74. package/fesm2015/taiga-ui-addon-commerce.mjs.map +1 -0
  75. package/fesm2020/taiga-ui-addon-commerce-components-input-card-grouped.mjs +440 -0
  76. package/fesm2020/taiga-ui-addon-commerce-components-input-card-grouped.mjs.map +1 -0
  77. package/{fesm2015/taiga-ui-addon-commerce-components-input-card.js → fesm2020/taiga-ui-addon-commerce-components-input-card.mjs} +28 -38
  78. package/fesm2020/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -0
  79. package/{fesm2015/taiga-ui-addon-commerce-components-input-cvc.js → fesm2020/taiga-ui-addon-commerce-components-input-cvc.mjs} +27 -36
  80. package/fesm2020/taiga-ui-addon-commerce-components-input-cvc.mjs.map +1 -0
  81. package/{fesm2015/taiga-ui-addon-commerce-components-input-expire.js → fesm2020/taiga-ui-addon-commerce-components-input-expire.mjs} +20 -29
  82. package/fesm2020/taiga-ui-addon-commerce-components-input-expire.mjs.map +1 -0
  83. package/{fesm2015/taiga-ui-addon-commerce-components-money.js → fesm2020/taiga-ui-addon-commerce-components-money.mjs} +67 -65
  84. package/fesm2020/taiga-ui-addon-commerce-components-money.mjs.map +1 -0
  85. package/{fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js → fesm2020/taiga-ui-addon-commerce-components-thumbnail-card.mjs} +19 -29
  86. package/fesm2020/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -0
  87. package/fesm2020/taiga-ui-addon-commerce-components.mjs +11 -0
  88. package/fesm2020/taiga-ui-addon-commerce-components.mjs.map +1 -0
  89. package/fesm2020/taiga-ui-addon-commerce-constants.mjs +103 -0
  90. package/fesm2020/taiga-ui-addon-commerce-constants.mjs.map +1 -0
  91. package/fesm2020/taiga-ui-addon-commerce-enums.mjs +721 -0
  92. package/fesm2020/taiga-ui-addon-commerce-enums.mjs.map +1 -0
  93. package/fesm2020/taiga-ui-addon-commerce-interfaces.mjs +4 -0
  94. package/fesm2020/taiga-ui-addon-commerce-interfaces.mjs.map +1 -0
  95. package/fesm2020/taiga-ui-addon-commerce-pipes.mjs +67 -0
  96. package/fesm2020/taiga-ui-addon-commerce-pipes.mjs.map +1 -0
  97. package/fesm2020/taiga-ui-addon-commerce-tokens.mjs +23 -0
  98. package/fesm2020/taiga-ui-addon-commerce-tokens.mjs.map +1 -0
  99. package/fesm2020/taiga-ui-addon-commerce-types.mjs +4 -0
  100. package/fesm2020/taiga-ui-addon-commerce-types.mjs.map +1 -0
  101. package/fesm2020/taiga-ui-addon-commerce-utils.mjs +443 -0
  102. package/fesm2020/taiga-ui-addon-commerce-utils.mjs.map +1 -0
  103. package/fesm2020/taiga-ui-addon-commerce-validators.mjs +25 -0
  104. package/fesm2020/taiga-ui-addon-commerce-validators.mjs.map +1 -0
  105. package/fesm2020/taiga-ui-addon-commerce.mjs +14 -0
  106. package/fesm2020/taiga-ui-addon-commerce.mjs.map +1 -0
  107. package/package.json +172 -39
  108. package/pipes/currency/currency.pipe.d.ts +1 -1
  109. package/pipes/format-card/format-card.pipe.d.ts +1 -1
  110. package/types/code-length.d.ts +1 -1
  111. package/types/currency-variants.d.ts +2 -2
  112. package/types/money-sign.d.ts +2 -2
  113. package/types/payment-system.d.ts +1 -1
  114. package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js +0 -917
  115. package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map +0 -1
  116. package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js +0 -635
  117. package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js.map +0 -1
  118. package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js +0 -507
  119. package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js.map +0 -1
  120. package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js +0 -480
  121. package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js.map +0 -1
  122. package/bundles/taiga-ui-addon-commerce-components-money.umd.js +0 -272
  123. package/bundles/taiga-ui-addon-commerce-components-money.umd.js.map +0 -1
  124. package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js +0 -475
  125. package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js.map +0 -1
  126. package/bundles/taiga-ui-addon-commerce-components.umd.js +0 -51
  127. package/bundles/taiga-ui-addon-commerce-components.umd.js.map +0 -1
  128. package/bundles/taiga-ui-addon-commerce-constants.umd.js +0 -114
  129. package/bundles/taiga-ui-addon-commerce-constants.umd.js.map +0 -1
  130. package/bundles/taiga-ui-addon-commerce-enums.umd.js +0 -729
  131. package/bundles/taiga-ui-addon-commerce-enums.umd.js.map +0 -1
  132. package/bundles/taiga-ui-addon-commerce-interfaces.umd.js +0 -11
  133. package/bundles/taiga-ui-addon-commerce-interfaces.umd.js.map +0 -1
  134. package/bundles/taiga-ui-addon-commerce-pipes.umd.js +0 -110
  135. package/bundles/taiga-ui-addon-commerce-pipes.umd.js.map +0 -1
  136. package/bundles/taiga-ui-addon-commerce-tokens.umd.js +0 -31
  137. package/bundles/taiga-ui-addon-commerce-tokens.umd.js.map +0 -1
  138. package/bundles/taiga-ui-addon-commerce-types.umd.js +0 -11
  139. package/bundles/taiga-ui-addon-commerce-types.umd.js.map +0 -1
  140. package/bundles/taiga-ui-addon-commerce-utils.umd.js +0 -794
  141. package/bundles/taiga-ui-addon-commerce-utils.umd.js.map +0 -1
  142. package/bundles/taiga-ui-addon-commerce-validators.umd.js +0 -40
  143. package/bundles/taiga-ui-addon-commerce-validators.umd.js.map +0 -1
  144. package/bundles/taiga-ui-addon-commerce.umd.js +0 -69
  145. package/bundles/taiga-ui-addon-commerce.umd.js.map +0 -1
  146. package/components/input-card/package.json +0 -10
  147. package/components/input-card/taiga-ui-addon-commerce-components-input-card.d.ts +0 -5
  148. package/components/input-card-grouped/package.json +0 -10
  149. package/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.d.ts +0 -5
  150. package/components/input-cvc/package.json +0 -10
  151. package/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.d.ts +0 -5
  152. package/components/input-expire/package.json +0 -10
  153. package/components/input-expire/taiga-ui-addon-commerce-components-input-expire.d.ts +0 -5
  154. package/components/money/package.json +0 -10
  155. package/components/money/taiga-ui-addon-commerce-components-money.d.ts +0 -5
  156. package/components/package.json +0 -10
  157. package/components/taiga-ui-addon-commerce-components.d.ts +0 -5
  158. package/components/thumbnail-card/package.json +0 -10
  159. package/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.d.ts +0 -5
  160. package/constants/package.json +0 -10
  161. package/constants/taiga-ui-addon-commerce-constants.d.ts +0 -5
  162. package/enums/package.json +0 -10
  163. package/enums/taiga-ui-addon-commerce-enums.d.ts +0 -5
  164. package/esm2015/components/input-card/input-card.component.js +0 -99
  165. package/esm2015/components/input-card-grouped/input-card-grouped.component.js +0 -357
  166. package/esm2015/components/input-card-grouped/input-card-grouped.options.js +0 -9
  167. package/esm2015/components/input-card-grouped/input-card-grouped.providers.js +0 -29
  168. package/esm2015/components/input-cvc/input-cvc.component.js +0 -98
  169. package/esm2015/components/input-expire/input-expire.component.js +0 -80
  170. package/esm2015/components/money/money.component.js +0 -83
  171. package/esm2015/components/money/utils/format-fraction-part.js +0 -8
  172. package/esm2015/components/thumbnail-card/deprecated.js +0 -40
  173. package/esm2015/utils/get-payment-system.js +0 -107
  174. package/esm2015/validators/card-expire.validator.js +0 -9
  175. package/esm2015/validators/card-number.validator.js +0 -8
  176. package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js +0 -458
  177. package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js.map +0 -1
  178. package/fesm2015/taiga-ui-addon-commerce-components-input-card.js.map +0 -1
  179. package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.js.map +0 -1
  180. package/fesm2015/taiga-ui-addon-commerce-components-input-expire.js.map +0 -1
  181. package/fesm2015/taiga-ui-addon-commerce-components-money.js.map +0 -1
  182. package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js.map +0 -1
  183. package/fesm2015/taiga-ui-addon-commerce-components.js.map +0 -1
  184. package/fesm2015/taiga-ui-addon-commerce-constants.js.map +0 -1
  185. package/fesm2015/taiga-ui-addon-commerce-enums.js.map +0 -1
  186. package/fesm2015/taiga-ui-addon-commerce-interfaces.js +0 -4
  187. package/fesm2015/taiga-ui-addon-commerce-interfaces.js.map +0 -1
  188. package/fesm2015/taiga-ui-addon-commerce-pipes.js.map +0 -1
  189. package/fesm2015/taiga-ui-addon-commerce-tokens.js.map +0 -1
  190. package/fesm2015/taiga-ui-addon-commerce-types.js +0 -4
  191. package/fesm2015/taiga-ui-addon-commerce-types.js.map +0 -1
  192. package/fesm2015/taiga-ui-addon-commerce-utils.js.map +0 -1
  193. package/fesm2015/taiga-ui-addon-commerce-validators.js.map +0 -1
  194. package/fesm2015/taiga-ui-addon-commerce.js.map +0 -1
  195. package/interfaces/package.json +0 -10
  196. package/interfaces/taiga-ui-addon-commerce-interfaces.d.ts +0 -5
  197. package/pipes/package.json +0 -10
  198. package/pipes/taiga-ui-addon-commerce-pipes.d.ts +0 -5
  199. package/taiga-ui-addon-commerce.d.ts +0 -5
  200. package/tokens/package.json +0 -10
  201. package/tokens/taiga-ui-addon-commerce-tokens.d.ts +0 -5
  202. package/types/package.json +0 -10
  203. package/types/taiga-ui-addon-commerce-types.d.ts +0 -5
  204. package/utils/package.json +0 -10
  205. package/utils/taiga-ui-addon-commerce-utils.d.ts +0 -5
  206. package/validators/package.json +0 -10
  207. package/validators/taiga-ui-addon-commerce-validators.d.ts +0 -5
  208. /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
  209. /package/{esm2015/components/input-card/index.js → esm2020/components/input-card/index.mjs} +0 -0
  210. /package/{esm2015/components/input-card/input-card.options.js → esm2020/components/input-card/input-card.options.mjs} +0 -0
  211. /package/{esm2015/components/input-card/taiga-ui-addon-commerce-components-input-card.js → esm2020/components/input-card/taiga-ui-addon-commerce-components-input-card.mjs} +0 -0
  212. /package/{esm2015/components/input-card-grouped/index.js → esm2020/components/input-card-grouped/index.mjs} +0 -0
  213. /package/{esm2015/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.js → esm2020/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.mjs} +0 -0
  214. /package/{esm2015/components/input-cvc/index.js → esm2020/components/input-cvc/index.mjs} +0 -0
  215. /package/{esm2015/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.js → esm2020/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.mjs} +0 -0
  216. /package/{esm2015/components/input-expire/index.js → esm2020/components/input-expire/index.mjs} +0 -0
  217. /package/{esm2015/components/input-expire/taiga-ui-addon-commerce-components-input-expire.js → esm2020/components/input-expire/taiga-ui-addon-commerce-components-input-expire.mjs} +0 -0
  218. /package/{esm2015/components/money/index.js → esm2020/components/money/index.mjs} +0 -0
  219. /package/{esm2015/components/money/money.options.js → esm2020/components/money/money.options.mjs} +0 -0
  220. /package/{esm2015/components/money/taiga-ui-addon-commerce-components-money.js → esm2020/components/money/taiga-ui-addon-commerce-components-money.mjs} +0 -0
  221. /package/{esm2015/components/money/utils/format-sign-symbol.js → esm2020/components/money/utils/format-sign-symbol.mjs} +0 -0
  222. /package/{esm2015/components/taiga-ui-addon-commerce-components.js → esm2020/components/taiga-ui-addon-commerce-components.mjs} +0 -0
  223. /package/{esm2015/components/thumbnail-card/index.js → esm2020/components/thumbnail-card/index.mjs} +0 -0
  224. /package/{esm2015/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.js → esm2020/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.mjs} +0 -0
  225. /package/{esm2015/constants/card-holder-mask.js → esm2020/constants/card-holder-mask.mjs} +0 -0
  226. /package/{esm2015/constants/card-mask.js → esm2020/constants/card-mask.mjs} +0 -0
  227. /package/{esm2015/constants/default-card-validator.js → esm2020/constants/default-card-validator.mjs} +0 -0
  228. /package/{esm2015/constants/index.js → esm2020/constants/index.mjs} +0 -0
  229. /package/{esm2015/constants/taiga-ui-addon-commerce-constants.js → esm2020/constants/taiga-ui-addon-commerce-constants.mjs} +0 -0
  230. /package/{esm2015/enums/currency-code.js → esm2020/enums/currency-code.mjs} +0 -0
  231. /package/{esm2015/enums/currency.js → esm2020/enums/currency.mjs} +0 -0
  232. /package/{esm2015/enums/index.js → esm2020/enums/index.mjs} +0 -0
  233. /package/{esm2015/enums/taiga-ui-addon-commerce-enums.js → esm2020/enums/taiga-ui-addon-commerce-enums.mjs} +0 -0
  234. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  235. /package/{esm2015/interfaces/card.js → esm2020/interfaces/card.mjs} +0 -0
  236. /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
  237. /package/{esm2015/interfaces/taiga-ui-addon-commerce-interfaces.js → esm2020/interfaces/taiga-ui-addon-commerce-interfaces.mjs} +0 -0
  238. /package/{esm2015/pipes/index.js → esm2020/pipes/index.mjs} +0 -0
  239. /package/{esm2015/pipes/taiga-ui-addon-commerce-pipes.js → esm2020/pipes/taiga-ui-addon-commerce-pipes.mjs} +0 -0
  240. /package/{esm2015/taiga-ui-addon-commerce.js → esm2020/taiga-ui-addon-commerce.mjs} +0 -0
  241. /package/{esm2015/tokens/i18n.js → esm2020/tokens/i18n.mjs} +0 -0
  242. /package/{esm2015/tokens/index.js → esm2020/tokens/index.mjs} +0 -0
  243. /package/{esm2015/tokens/taiga-ui-addon-commerce-tokens.js → esm2020/tokens/taiga-ui-addon-commerce-tokens.mjs} +0 -0
  244. /package/{esm2015/types/code-length.js → esm2020/types/code-length.mjs} +0 -0
  245. /package/{esm2015/types/currency-variants.js → esm2020/types/currency-variants.mjs} +0 -0
  246. /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
  247. /package/{esm2015/types/money-sign.js → esm2020/types/money-sign.mjs} +0 -0
  248. /package/{esm2015/types/payment-system.js → esm2020/types/payment-system.mjs} +0 -0
  249. /package/{esm2015/types/taiga-ui-addon-commerce-types.js → esm2020/types/taiga-ui-addon-commerce-types.mjs} +0 -0
  250. /package/{esm2015/utils/create-auto-corrected-expire-pipe.js → esm2020/utils/create-auto-corrected-expire-pipe.mjs} +0 -0
  251. /package/{esm2015/utils/format-currency.js → esm2020/utils/format-currency.mjs} +0 -0
  252. /package/{esm2015/utils/get-currency-symbol.js → esm2020/utils/get-currency-symbol.mjs} +0 -0
  253. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  254. /package/{esm2015/utils/is-card-length-valid.js → esm2020/utils/is-card-length-valid.mjs} +0 -0
  255. /package/{esm2015/utils/is-card-number-valid.js → esm2020/utils/is-card-number-valid.mjs} +0 -0
  256. /package/{esm2015/utils/is-expire-valid.js → esm2020/utils/is-expire-valid.mjs} +0 -0
  257. /package/{esm2015/utils/payment-system-icons.js → esm2020/utils/payment-system-icons.mjs} +0 -0
  258. /package/{esm2015/utils/taiga-ui-addon-commerce-utils.js → esm2020/utils/taiga-ui-addon-commerce-utils.mjs} +0 -0
  259. /package/{esm2015/validators/index.js → esm2020/validators/index.mjs} +0 -0
  260. /package/{esm2015/validators/luhn.validator.js → esm2020/validators/luhn.validator.mjs} +0 -0
  261. /package/{esm2015/validators/taiga-ui-addon-commerce-validators.js → esm2020/validators/taiga-ui-addon-commerce-validators.mjs} +0 -0
@@ -5,13 +5,13 @@ import * as i1 from '@angular/forms';
5
5
  import { NgControl } from '@angular/forms';
6
6
  import { AbstractTuiNullableControl, tuiPure, tuiCreateToken, tuiProvideOptions, tuiAsFocusableItemAccessor, tuiAsControl } from '@taiga-ui/cdk';
7
7
  import { TUI_CARD_MASK } from '@taiga-ui/addon-commerce/constants';
8
- import * as i1$1 from '@taiga-ui/core';
8
+ import * as i2 from '@taiga-ui/core';
9
9
  import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, AbstractTuiTextfieldHost, tuiAsTextfieldHost, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiSvgModule, TuiTextfieldComponent } from '@taiga-ui/core';
10
10
  import { TUI_PAYMENT_SYSTEM_ICONS, tuiGetPaymentSystem } from '@taiga-ui/addon-commerce/utils';
11
- import * as i2 from '@taiga-ui/kit';
12
- import { TuiValueAccessorModule } from '@taiga-ui/kit';
13
- import * as i3 from '@maskito/angular';
11
+ import * as i1$1 from '@maskito/angular';
14
12
  import { MaskitoModule } from '@maskito/angular';
13
+ import * as i3 from '@taiga-ui/kit';
14
+ import { TuiValueAccessorModule } from '@taiga-ui/kit';
15
15
 
16
16
  class AbstractTuiInputCard extends AbstractTuiNullableControl {
17
17
  constructor(control, cdr, options) {
@@ -48,12 +48,12 @@ class AbstractTuiInputCard extends AbstractTuiNullableControl {
48
48
  return this.options.paymentSystemHandler(cardNumber);
49
49
  }
50
50
  }
51
- AbstractTuiInputCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AbstractTuiInputCard, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
52
- AbstractTuiInputCard.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiInputCard, inputs: { cardSrc: "cardSrc", autocompleteEnabled: "autocompleteEnabled" }, outputs: { binChange: "binChange" }, usesInheritance: true, ngImport: i0 });
51
+ AbstractTuiInputCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AbstractTuiInputCard, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
52
+ AbstractTuiInputCard.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AbstractTuiInputCard, inputs: { cardSrc: "cardSrc", autocompleteEnabled: "autocompleteEnabled" }, outputs: { binChange: "binChange" }, usesInheritance: true, ngImport: i0 });
53
53
  __decorate([
54
54
  tuiPure
55
55
  ], AbstractTuiInputCard.prototype, "getPaymentSystem", null);
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AbstractTuiInputCard, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AbstractTuiInputCard, decorators: [{
57
57
  type: Directive
58
58
  }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
59
59
  type: Optional
@@ -97,12 +97,10 @@ class TuiInputCardComponent extends AbstractTuiInputCard {
97
97
  return this.textfieldSize.size;
98
98
  }
99
99
  get card() {
100
- var _a;
101
- return (_a = this.value) !== null && _a !== void 0 ? _a : '';
100
+ return this.value ?? '';
102
101
  }
103
102
  get nativeFocusableElement() {
104
- var _a, _b;
105
- return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
103
+ return this.input?.nativeFocusableElement ?? null;
106
104
  }
107
105
  get focused() {
108
106
  return !!this.input && this.input.focused;
@@ -131,23 +129,17 @@ class TuiInputCardComponent extends AbstractTuiInputCard {
131
129
  return '';
132
130
  }
133
131
  }
134
- TuiInputCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }, { token: TUI_INPUT_CARD_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
135
- TuiInputCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCardComponent, selector: "tui-input-card", host: { properties: { "attr.data-size": "this.size" } }, providers: [
132
+ TuiInputCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }, { token: TUI_INPUT_CARD_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
133
+ TuiInputCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputCardComponent, selector: "tui-input-card", host: { properties: { "attr.data-size": "this.size" } }, providers: [
136
134
  tuiAsFocusableItemAccessor(TuiInputCardComponent),
137
135
  tuiAsControl(TuiInputCardComponent),
138
- ], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}.t-payment-system{width:2rem;height:2rem;color:#1434cb}\n"], components: [{ type: i1$1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1$1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i1$1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i2.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i3.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i1$1.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }], pipes: { "maskito": i3.MaskitoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardComponent, decorators: [{
136
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}.t-payment-system{width:2rem;height:2rem;color:#1434cb}\n"], dependencies: [{ kind: "directive", type: i1$1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i2.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }, { kind: "directive", type: i3.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { kind: "component", type: i2.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { kind: "pipe", type: i1$1.MaskitoPipe, name: "maskito" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardComponent, decorators: [{
140
138
  type: Component,
141
- args: [{
142
- selector: 'tui-input-card',
143
- templateUrl: './input-card.template.html',
144
- styleUrls: ['./input-card.style.less'],
145
- changeDetection: ChangeDetectionStrategy.OnPush,
146
- providers: [
139
+ args: [{ selector: 'tui-input-card', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
147
140
  tuiAsFocusableItemAccessor(TuiInputCardComponent),
148
141
  tuiAsControl(TuiInputCardComponent),
149
- ],
150
- }]
142
+ ], template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}.t-payment-system{width:2rem;height:2rem;color:#1434cb}\n"] }]
151
143
  }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
152
144
  type: Optional
153
145
  }, {
@@ -158,7 +150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
158
150
  }] }, { type: i0.ChangeDetectorRef, decorators: [{
159
151
  type: Inject,
160
152
  args: [ChangeDetectorRef]
161
- }] }, { type: i1$1.TuiTextfieldSizeDirective, decorators: [{
153
+ }] }, { type: i2.TuiTextfieldSizeDirective, decorators: [{
162
154
  type: Inject,
163
155
  args: [TUI_TEXTFIELD_SIZE]
164
156
  }] }, { type: undefined, decorators: [{
@@ -186,9 +178,9 @@ class TuiInputCardDirective extends AbstractTuiTextfieldHost {
186
178
  nativeFocusableElement.placeholder || '0000 0000 0000 0000';
187
179
  }
188
180
  }
189
- TuiInputCardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
190
- TuiInputCardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCardDirective, selector: "tui-input-card", providers: [tuiAsTextfieldHost(TuiInputCardDirective)], usesInheritance: true, ngImport: i0 });
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardDirective, decorators: [{
181
+ TuiInputCardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
182
+ TuiInputCardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputCardDirective, selector: "tui-input-card", providers: [tuiAsTextfieldHost(TuiInputCardDirective)], usesInheritance: true, ngImport: i0 });
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardDirective, decorators: [{
192
184
  type: Directive,
193
185
  args: [{
194
186
  selector: 'tui-input-card',
@@ -198,20 +190,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
198
190
 
199
191
  class TuiInputCardModule {
200
192
  }
201
- TuiInputCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
202
- TuiInputCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardModule, declarations: [TuiInputCardComponent, TuiInputCardDirective], imports: [MaskitoModule,
193
+ TuiInputCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
194
+ TuiInputCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, declarations: [TuiInputCardComponent, TuiInputCardDirective], imports: [MaskitoModule,
203
195
  TuiPrimitiveTextfieldModule,
204
196
  TuiTextfieldControllerModule,
205
197
  TuiValueAccessorModule,
206
198
  TuiSvgModule], exports: [TuiInputCardComponent, TuiInputCardDirective, TuiTextfieldComponent] });
207
- TuiInputCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardModule, imports: [[
208
- MaskitoModule,
209
- TuiPrimitiveTextfieldModule,
210
- TuiTextfieldControllerModule,
211
- TuiValueAccessorModule,
212
- TuiSvgModule,
213
- ]] });
214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardModule, decorators: [{
199
+ TuiInputCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, imports: [MaskitoModule,
200
+ TuiPrimitiveTextfieldModule,
201
+ TuiTextfieldControllerModule,
202
+ TuiValueAccessorModule,
203
+ TuiSvgModule] });
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, decorators: [{
215
205
  type: NgModule,
216
206
  args: [{
217
207
  imports: [
@@ -231,4 +221,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
231
221
  */
232
222
 
233
223
  export { AbstractTuiInputCard, TUI_INPUT_CARD_DEFAULT_OPTIONS, TUI_INPUT_CARD_OPTIONS, TuiInputCardComponent, TuiInputCardDirective, TuiInputCardModule, tuiInputCardOptionsProvider };
234
- //# sourceMappingURL=taiga-ui-addon-commerce-components-input-card.js.map
224
+ //# sourceMappingURL=taiga-ui-addon-commerce-components-input-card.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-commerce-components-input-card.mjs","sources":["../../../projects/addon-commerce/components/input-card/abstract-input-card.ts","../../../projects/addon-commerce/components/input-card/input-card.options.ts","../../../projects/addon-commerce/components/input-card/input-card.component.ts","../../../projects/addon-commerce/components/input-card/input-card.template.html","../../../projects/addon-commerce/components/input-card/input-card.directive.ts","../../../projects/addon-commerce/components/input-card/input-card.module.ts","../../../projects/addon-commerce/components/input-card/taiga-ui-addon-commerce-components-input-card.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n EventEmitter,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\nimport {\n AbstractTuiNullableControl,\n TuiAutofillFieldName,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCardOptions} from './input-card.options';\n\n@Directive()\nexport abstract class AbstractTuiInputCard<\n T,\n Options extends TuiInputCardOptions = TuiInputCardOptions,\n >\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @Input()\n cardSrc: PolymorpheusContent;\n\n @Input()\n autocompleteEnabled = this.options.autocompleteEnabled;\n\n @Output()\n readonly binChange = new EventEmitter<string | null>();\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n protected readonly options: Options,\n ) {\n super(control, cdr);\n }\n\n abstract get card(): string;\n\n abstract get nativeFocusableElement(): TuiNativeFocusableElement | null;\n\n get defaultIcon(): string | null {\n const paymentSystem = this.getPaymentSystem(this.card);\n\n return paymentSystem && this.options.icons[paymentSystem];\n }\n\n get paymentSystem(): TuiPaymentSystem | null {\n return this.getPaymentSystem(this.card);\n }\n\n /** @deprecated remove in 4.0 */\n get icon(): PolymorpheusContent {\n return this.cardSrc || this.defaultIcon;\n }\n\n get autocomplete(): TuiAutofillFieldName {\n return this.autocompleteEnabled ? `cc-number` : `off`;\n }\n\n /**\n * @deprecated: drop in v4.0\n * use {@link autocomplete}\n */\n get autocompleteCard(): TuiAutofillFieldName {\n return this.autocomplete;\n }\n\n get bin(): string | null {\n return this.card.length < 6 ? null : this.card.slice(0, 6);\n }\n\n @tuiPure\n protected getPaymentSystem(cardNumber?: string | null): TuiPaymentSystem | null {\n return this.options.paymentSystemHandler(cardNumber);\n }\n}\n","import {Provider} from '@angular/core';\nimport {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\nimport {\n TUI_PAYMENT_SYSTEM_ICONS,\n tuiGetPaymentSystem,\n} from '@taiga-ui/addon-commerce/utils';\nimport {tuiCreateToken, TuiHandler, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCardOptions {\n readonly autocompleteEnabled: boolean;\n cardSrc: PolymorpheusContent;\n readonly icons: Record<TuiPaymentSystem, string>;\n readonly paymentSystemHandler: TuiHandler<\n string | null | undefined,\n TuiPaymentSystem | null\n >;\n}\n\n// TODO: Move payment system icons into its own token in 4.0\nexport const TUI_INPUT_CARD_DEFAULT_OPTIONS: TuiInputCardOptions = {\n icons: TUI_PAYMENT_SYSTEM_ICONS,\n cardSrc: ``,\n paymentSystemHandler: tuiGetPaymentSystem,\n autocompleteEnabled: false,\n};\n\nexport const TUI_INPUT_CARD_OPTIONS = tuiCreateToken(TUI_INPUT_CARD_DEFAULT_OPTIONS);\n\nexport function tuiInputCardOptionsProvider(\n options: Partial<TuiInputCardOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_CARD_OPTIONS,\n options,\n TUI_INPUT_CARD_DEFAULT_OPTIONS,\n );\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {MaskitoOptions} from '@maskito/core';\nimport {TUI_CARD_MASK} from '@taiga-ui/addon-commerce/constants';\nimport {tuiAsControl, tuiAsFocusableItemAccessor} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\n\nimport {AbstractTuiInputCard} from './abstract-input-card';\nimport {TUI_INPUT_CARD_OPTIONS, TuiInputCardOptions} from './input-card.options';\n\n@Component({\n selector: 'tui-input-card',\n templateUrl: './input-card.template.html',\n styleUrls: ['./input-card.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCardComponent),\n tuiAsControl(TuiInputCardComponent),\n ],\n})\nexport class TuiInputCardComponent extends AbstractTuiInputCard<string> {\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly input?: TuiPrimitiveTextfieldComponent;\n\n readonly maskOptions: MaskitoOptions = {\n mask: TUI_CARD_MASK,\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_INPUT_CARD_OPTIONS) options: TuiInputCardOptions,\n ) {\n super(control, cdr, options);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n get card(): string {\n return this.value ?? '';\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.input?.nativeFocusableElement ?? null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n onValueChange(value: string): void {\n const parsed = value.split(' ').join('');\n const currentBin = this.bin;\n\n this.value = parsed;\n\n const newBin = this.bin;\n\n if (currentBin !== newBin) {\n this.binChange.emit(newBin);\n }\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n override writeValue(value: string | null): void {\n const currentBin = this.bin;\n\n super.writeValue(value);\n\n const newBin = this.bin;\n\n if (currentBin !== newBin) {\n this.binChange.emit(newBin);\n }\n }\n\n protected override getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n","import {AfterViewInit, Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCardComponent} from './input-card.component';\n\n@Directive({\n selector: 'tui-input-card',\n providers: [tuiAsTextfieldHost(TuiInputCardDirective)],\n})\nexport class TuiInputCardDirective\n extends AbstractTuiTextfieldHost<TuiInputCardComponent>\n implements AfterViewInit\n{\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n ngAfterViewInit(): void {\n const {nativeFocusableElement} = this.host;\n\n if (!nativeFocusableElement) {\n return;\n }\n\n nativeFocusableElement.inputMode = 'numeric';\n nativeFocusableElement.placeholder =\n nativeFocusableElement.placeholder || '0000 0000 0000 0000';\n }\n}\n","import {NgModule} from '@angular/core';\nimport {MaskitoModule} from '@maskito/angular';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\n\nimport {TuiInputCardComponent} from './input-card.component';\nimport {TuiInputCardDirective} from './input-card.directive';\n\n@NgModule({\n imports: [\n MaskitoModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n TuiSvgModule,\n ],\n declarations: [TuiInputCardComponent, TuiInputCardDirective],\n exports: [TuiInputCardComponent, TuiInputCardDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAwBM,MAAgB,oBAIlB,SAAQ,0BAA6B,CAAA;AAYrC,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAC9B,OAAgB,EAAA;AAEnC,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAFD,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;AAXvC,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC;AAG9C,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAiB,CAAC;KAWtD;AAMD,IAAA,IAAI,WAAW,GAAA;QACX,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEvD,OAAO,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;KAC7D;AAED,IAAA,IAAI,aAAa,GAAA;QACb,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC3C;;AAGD,IAAA,IAAI,IAAI,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC;KAC3C;AAED,IAAA,IAAI,YAAY,GAAA;QACZ,OAAO,IAAI,CAAC,mBAAmB,GAAG,CAAA,SAAA,CAAW,GAAG,CAAA,GAAA,CAAK,CAAC;KACzD;AAED;;;AAGG;AACH,IAAA,IAAI,gBAAgB,GAAA;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC;KAC5B;AAED,IAAA,IAAI,GAAG,GAAA;QACH,OAAO,IAAI,CAAC,I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BAC3B,4BAA4B;wBAC5B,sBAAsB;wBACtB,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AACjF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
@@ -3,14 +3,20 @@ import { ChangeDetectorRef, Component, ChangeDetectionStrategy, Optional, Self,
3
3
  import * as i4 from '@angular/forms';
4
4
  import { NgControl } from '@angular/forms';
5
5
  import { AbstractTuiControl, tuiAsFocusableItemAccessor, tuiAsControl } from '@taiga-ui/cdk';
6
- import * as i1 from '@taiga-ui/core';
6
+ import * as i2 from '@taiga-ui/core';
7
7
  import { TUI_DIGIT_REGEXP, TUI_TEXTFIELD_LABEL_OUTSIDE, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
8
- import * as i2 from '@taiga-ui/kit';
9
- import { TuiValueAccessorModule } from '@taiga-ui/kit';
10
- import * as i3 from '@maskito/angular';
8
+ import * as i1 from '@maskito/angular';
11
9
  import { MaskitoModule } from '@maskito/angular';
10
+ import * as i3 from '@taiga-ui/kit';
11
+ import { TuiValueAccessorModule } from '@taiga-ui/kit';
12
12
 
13
13
  class TuiInputCVCComponent extends AbstractTuiControl {
14
+ set length(length) {
15
+ this.exampleText = '0'.repeat(length);
16
+ this.maskOptions = {
17
+ mask: new Array(length).fill(TUI_DIGIT_REGEXP),
18
+ };
19
+ }
14
20
  constructor(control, cdr, textfieldLabelOutside, textfieldSize) {
15
21
  super(control, cdr);
16
22
  this.textfieldLabelOutside = textfieldLabelOutside;
@@ -21,18 +27,11 @@ class TuiInputCVCComponent extends AbstractTuiControl {
21
27
  mask: new Array(3).fill(TUI_DIGIT_REGEXP),
22
28
  };
23
29
  }
24
- set length(length) {
25
- this.exampleText = '0'.repeat(length);
26
- this.maskOptions = {
27
- mask: new Array(length).fill(TUI_DIGIT_REGEXP),
28
- };
29
- }
30
30
  get size() {
31
31
  return this.textfieldSize.size;
32
32
  }
33
33
  get nativeFocusableElement() {
34
- var _a, _b;
35
- return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
34
+ return this.input?.nativeFocusableElement ?? null;
36
35
  }
37
36
  get focused() {
38
37
  return !!this.input && this.input.focused;
@@ -54,23 +53,17 @@ class TuiInputCVCComponent extends AbstractTuiControl {
54
53
  return '';
55
54
  }
56
55
  }
57
- TuiInputCVCComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCVCComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_LABEL_OUTSIDE }, { token: TUI_TEXTFIELD_SIZE }], target: i0.ɵɵFactoryTarget.Component });
58
- TuiInputCVCComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputCVCComponent, selector: "tui-input-cvc", inputs: { autocompleteEnabled: "autocompleteEnabled", length: "length" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
56
+ TuiInputCVCComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_LABEL_OUTSIDE }, { token: TUI_TEXTFIELD_SIZE }], target: i0.ɵɵFactoryTarget.Component });
57
+ TuiInputCVCComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputCVCComponent, selector: "tui-input-cvc", inputs: { autocompleteEnabled: "autocompleteEnabled", length: "length" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
59
58
  tuiAsFocusableItemAccessor(TuiInputCVCComponent),
60
59
  tuiAsControl(TuiInputCVCComponent),
61
- ], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"], components: [{ type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }], directives: [{ type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i2.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i3.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCVCComponent, decorators: [{
60
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "component", type: i2.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { kind: "directive", type: i3.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCComponent, decorators: [{
63
62
  type: Component,
64
- args: [{
65
- selector: 'tui-input-cvc',
66
- templateUrl: './input-cvc.template.html',
67
- styleUrls: ['./input-cvc.style.less'],
68
- changeDetection: ChangeDetectionStrategy.OnPush,
69
- providers: [
63
+ args: [{ selector: 'tui-input-cvc', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
70
64
  tuiAsFocusableItemAccessor(TuiInputCVCComponent),
71
65
  tuiAsControl(TuiInputCVCComponent),
72
- ],
73
- }]
66
+ ], template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"] }]
74
67
  }], ctorParameters: function () { return [{ type: i4.NgControl, decorators: [{
75
68
  type: Optional
76
69
  }, {
@@ -81,10 +74,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
81
74
  }] }, { type: i0.ChangeDetectorRef, decorators: [{
82
75
  type: Inject,
83
76
  args: [ChangeDetectorRef]
84
- }] }, { type: i1.TuiTextfieldLabelOutsideDirective, decorators: [{
77
+ }] }, { type: i2.TuiTextfieldLabelOutsideDirective, decorators: [{
85
78
  type: Inject,
86
79
  args: [TUI_TEXTFIELD_LABEL_OUTSIDE]
87
- }] }, { type: i1.TuiTextfieldSizeDirective, decorators: [{
80
+ }] }, { type: i2.TuiTextfieldSizeDirective, decorators: [{
88
81
  type: Inject,
89
82
  args: [TUI_TEXTFIELD_SIZE]
90
83
  }] }]; }, propDecorators: { input: [{
@@ -101,18 +94,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
101
94
 
102
95
  class TuiInputCVCModule {
103
96
  }
104
- TuiInputCVCModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCVCModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
- TuiInputCVCModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCVCModule, declarations: [TuiInputCVCComponent], imports: [MaskitoModule,
97
+ TuiInputCVCModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
98
+ TuiInputCVCModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, declarations: [TuiInputCVCComponent], imports: [MaskitoModule,
106
99
  TuiPrimitiveTextfieldModule,
107
100
  TuiTextfieldControllerModule,
108
101
  TuiValueAccessorModule], exports: [TuiInputCVCComponent] });
109
- TuiInputCVCModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCVCModule, imports: [[
110
- MaskitoModule,
111
- TuiPrimitiveTextfieldModule,
112
- TuiTextfieldControllerModule,
113
- TuiValueAccessorModule,
114
- ]] });
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCVCModule, decorators: [{
102
+ TuiInputCVCModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, imports: [MaskitoModule,
103
+ TuiPrimitiveTextfieldModule,
104
+ TuiTextfieldControllerModule,
105
+ TuiValueAccessorModule] });
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, decorators: [{
116
107
  type: NgModule,
117
108
  args: [{
118
109
  imports: [
@@ -131,4 +122,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
131
122
  */
132
123
 
133
124
  export { TuiInputCVCComponent, TuiInputCVCModule };
134
- //# sourceMappingURL=taiga-ui-addon-commerce-components-input-cvc.js.map
125
+ //# sourceMappingURL=taiga-ui-addon-commerce-components-input-cvc.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-commerce-components-input-cvc.mjs","sources":["../../../projects/addon-commerce/components/input-cvc/input-cvc.component.ts","../../../projects/addon-commerce/components/input-cvc/input-cvc.template.html","../../../projects/addon-commerce/components/input-cvc/input-cvc.module.ts","../../../projects/addon-commerce/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {MaskitoOptions} from '@maskito/core';\nimport {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiAutofillFieldName,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DIGIT_REGEXP,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-input-cvc',\n templateUrl: './input-cvc.template.html',\n styleUrls: ['./input-cvc.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCVCComponent),\n tuiAsControl(TuiInputCVCComponent),\n ],\n})\nexport class TuiInputCVCComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly input?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n autocompleteEnabled = false;\n\n @Input()\n set length(length: TuiCodeCVCLength) {\n this.exampleText = '0'.repeat(length);\n this.maskOptions = {\n mask: new Array(length).fill(TUI_DIGIT_REGEXP),\n };\n }\n\n exampleText = '000';\n\n maskOptions: MaskitoOptions = {\n mask: new Array(3).fill(TUI_DIGIT_REGEXP),\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_LABEL_OUTSIDE)\n private readonly textfieldLabelOutside: TuiTextfieldLabelOutsideDirective,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.input?.nativeFocusableElement ?? null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n get autocomplete(): TuiAutofillFieldName {\n return this.autocompleteEnabled ? 'cc-csc' : 'off';\n }\n\n get computedPlaceholder(): string {\n return this.textfieldLabelOutside.labelOutside ? '' : this.exampleText;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /** deprecated use 'value' setter */\n onValueChange(value: string): void {\n this.value = value;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n","import {NgModule} from '@angular/core';\nimport {MaskitoModule} from '@maskito/angular';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\n\nimport {TuiInputCVCComponent} from './input-cvc.component';\n\n@NgModule({\n imports: [\n MaskitoModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputCVCComponent],\n exports: [TuiInputCVCComponent],\n})\nexport class TuiInputCVCModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA2CM,MAAO,oBACT,SAAQ,kBAA0B,CAAA;IASlC,IACI,MAAM,CAAC,MAAwB,EAAA;QAC/B,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG;YACf,IAAI,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACjD,CAAC;KACL;AAQD,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAEhC,qBAAwD,EAExD,aAAwC,EAAA;AAEzD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAJH,IAAqB,CAAA,qBAAA,GAArB,qBAAqB,CAAmC;QAExD,IAAa,CAAA,aAAA,GAAb,aAAa,CAA2B;QAzB7D,IAAmB,CAAA,mBAAA,GAAG,KAAK,CAAC;QAU5B,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AAEpB,QAAA,IAAA,CAAA,WAAW,GAAmB;YAC1B,IAAI,EAAE,IAAI,KAAK,CAAC,CAAC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OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YARtB,aAAa;QACb,2BAA2B;QAC3B,4BAA4B;QAC5B,sBAAsB,CAAA,EAAA,CAAA,CAAA;4FAKjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAV7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,aAAa;wBACb,2BAA2B;wBAC3B,4BAA4B;wBAC5B,sBAAsB;AACzB,qBAAA;oBACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
@@ -4,12 +4,12 @@ import * as i4 from '@angular/forms';
4
4
  import { NgControl } from '@angular/forms';
5
5
  import { maskitoDateOptionsGenerator } from '@maskito/kit';
6
6
  import { AbstractTuiControl, tuiAsFocusableItemAccessor, tuiAsControl } from '@taiga-ui/cdk';
7
- import * as i1 from '@taiga-ui/core';
7
+ import * as i2 from '@taiga-ui/core';
8
8
  import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
9
- import * as i2 from '@taiga-ui/kit';
10
- import { TuiValueAccessorModule } from '@taiga-ui/kit';
11
- import * as i3 from '@maskito/angular';
9
+ import * as i1 from '@maskito/angular';
12
10
  import { MaskitoModule } from '@maskito/angular';
11
+ import * as i3 from '@taiga-ui/kit';
12
+ import { TuiValueAccessorModule } from '@taiga-ui/kit';
13
13
 
14
14
  class TuiInputExpireComponent extends AbstractTuiControl {
15
15
  constructor(control, cdr, textfieldSize) {
@@ -25,8 +25,7 @@ class TuiInputExpireComponent extends AbstractTuiControl {
25
25
  return this.textfieldSize.size;
26
26
  }
27
27
  get nativeFocusableElement() {
28
- var _a, _b;
29
- return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
28
+ return this.input?.nativeFocusableElement ?? null;
30
29
  }
31
30
  get focused() {
32
31
  return !!this.input && this.input.focused;
@@ -41,23 +40,17 @@ class TuiInputExpireComponent extends AbstractTuiControl {
41
40
  return '';
42
41
  }
43
42
  }
44
- TuiInputExpireComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputExpireComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }], target: i0.ɵɵFactoryTarget.Component });
45
- TuiInputExpireComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputExpireComponent, selector: "tui-input-expire", inputs: { autocompleteEnabled: "autocompleteEnabled" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
43
+ TuiInputExpireComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }], target: i0.ɵɵFactoryTarget.Component });
44
+ TuiInputExpireComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputExpireComponent, selector: "tui-input-expire", inputs: { autocompleteEnabled: "autocompleteEnabled" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
46
45
  tuiAsFocusableItemAccessor(TuiInputExpireComponent),
47
46
  tuiAsControl(TuiInputExpireComponent),
48
- ], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"], components: [{ type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }], directives: [{ type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i2.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i3.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputExpireComponent, decorators: [{
47
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "component", type: i2.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { kind: "directive", type: i3.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireComponent, decorators: [{
50
49
  type: Component,
51
- args: [{
52
- selector: 'tui-input-expire',
53
- templateUrl: './input-expire.template.html',
54
- styleUrls: ['./input-expire.style.less'],
55
- changeDetection: ChangeDetectionStrategy.OnPush,
56
- providers: [
50
+ args: [{ selector: 'tui-input-expire', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
57
51
  tuiAsFocusableItemAccessor(TuiInputExpireComponent),
58
52
  tuiAsControl(TuiInputExpireComponent),
59
- ],
60
- }]
53
+ ], template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"] }]
61
54
  }], ctorParameters: function () { return [{ type: i4.NgControl, decorators: [{
62
55
  type: Optional
63
56
  }, {
@@ -68,7 +61,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
68
61
  }] }, { type: i0.ChangeDetectorRef, decorators: [{
69
62
  type: Inject,
70
63
  args: [ChangeDetectorRef]
71
- }] }, { type: i1.TuiTextfieldSizeDirective, decorators: [{
64
+ }] }, { type: i2.TuiTextfieldSizeDirective, decorators: [{
72
65
  type: Inject,
73
66
  args: [TUI_TEXTFIELD_SIZE]
74
67
  }] }]; }, propDecorators: { input: [{
@@ -83,18 +76,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
83
76
 
84
77
  class TuiInputExpireModule {
85
78
  }
86
- TuiInputExpireModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputExpireModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
87
- TuiInputExpireModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputExpireModule, declarations: [TuiInputExpireComponent], imports: [MaskitoModule,
79
+ TuiInputExpireModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
80
+ TuiInputExpireModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, declarations: [TuiInputExpireComponent], imports: [MaskitoModule,
88
81
  TuiPrimitiveTextfieldModule,
89
82
  TuiTextfieldControllerModule,
90
83
  TuiValueAccessorModule], exports: [TuiInputExpireComponent] });
91
- TuiInputExpireModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputExpireModule, imports: [[
92
- MaskitoModule,
93
- TuiPrimitiveTextfieldModule,
94
- TuiTextfieldControllerModule,
95
- TuiValueAccessorModule,
96
- ]] });
97
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputExpireModule, decorators: [{
84
+ TuiInputExpireModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, imports: [MaskitoModule,
85
+ TuiPrimitiveTextfieldModule,
86
+ TuiTextfieldControllerModule,
87
+ TuiValueAccessorModule] });
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, decorators: [{
98
89
  type: NgModule,
99
90
  args: [{
100
91
  imports: [
@@ -113,4 +104,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
113
104
  */
114
105
 
115
106
  export { TuiInputExpireComponent, TuiInputExpireModule };
116
- //# sourceMappingURL=taiga-ui-addon-commerce-components-input-expire.js.map
107
+ //# sourceMappingURL=taiga-ui-addon-commerce-components-input-expire.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-commerce-components-input-expire.mjs","sources":["../../../projects/addon-commerce/components/input-expire/input-expire.component.ts","../../../projects/addon-commerce/components/input-expire/input-expire.template.html","../../../projects/addon-commerce/components/input-expire/input-expire.module.ts","../../../projects/addon-commerce/components/input-expire/taiga-ui-addon-commerce-components-input-expire.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiAutofillFieldName,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-input-expire',\n templateUrl: './input-expire.template.html',\n styleUrls: ['./input-expire.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputExpireComponent),\n tuiAsControl(TuiInputExpireComponent),\n ],\n})\nexport class TuiInputExpireComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly input?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n autocompleteEnabled = false;\n\n readonly maskOptions = maskitoDateOptionsGenerator({\n mode: 'mm/yy',\n separator: '/',\n });\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.input?.nativeFocusableElement ?? null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n get autocomplete(): TuiAutofillFieldName {\n return this.autocompleteEnabled ? 'cc-exp' : 'off';\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n","import {NgModule} from '@angular/core';\nimport {MaskitoModule} from '@maskito/angular';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\n\nimport {TuiInputExpireComponent} from './input-expire.component';\n\n@NgModule({\n imports: [\n MaskitoModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputExpireComponent],\n exports: [TuiInputExpireComponent],\n})\nexport class TuiInputExpireModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAsCM,MAAO,uBACT,SAAQ,kBAA0B,CAAA;AAclC,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAEhC,aAAwC,EAAA;AAEzD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAFH,IAAa,CAAA,aAAA,GAAb,aAAa,CAA2B;QAd7D,IAAmB,CAAA,mBAAA,GAAG,KAAK,CAAC;QAEnB,IAAW,CAAA,WAAA,GAAG,2BAA2B,CAAC;AAC/C,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,SAAS,EAAE,GAAG;AACjB,SAAA,CAAC,CAAC;KAYF;AAED,IAAA,IACI,IAAI,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,aAAa,CA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