@taiga-ui/legacy 4.51.0 → 4.52.0-canary.1ea42f6

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 (464) hide show
  1. package/classes/abstract-textfield-host.d.ts +1 -1
  2. package/classes/controller.d.ts +1 -1
  3. package/classes/multiple-control.d.ts +1 -1
  4. package/classes/nullable-control.d.ts +1 -1
  5. package/components/color-selector/color-selector.module.d.ts +11 -12
  6. package/components/index.d.ts +0 -10
  7. package/components/multi-select/native-multi-select/native-multi-select.d.ts +1 -1
  8. package/fesm2022/taiga-ui-legacy-classes.mjs +23 -24
  9. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  10. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +6 -6
  11. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +70 -74
  13. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +24 -26
  15. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +8 -8
  17. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +25 -25
  19. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +26 -26
  21. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +29 -29
  23. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +12 -12
  25. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +23 -23
  27. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +25 -25
  29. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +20 -21
  31. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +23 -23
  33. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +42 -46
  35. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-legacy-components-input.mjs +15 -16
  37. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +8 -8
  39. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +50 -50
  41. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +30 -30
  43. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +9 -9
  45. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-legacy-components-select.mjs +36 -37
  47. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-legacy-components-svg.mjs +10 -12
  49. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-legacy-components-tag.mjs +14 -15
  51. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +24 -24
  53. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +8 -8
  55. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-legacy-components.mjs +0 -10
  57. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +3 -3
  59. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +35 -35
  61. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +4 -4
  63. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +7 -7
  65. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +9 -9
  67. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +3 -4
  69. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +3 -3
  71. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +3 -3
  73. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-legacy-services.mjs +3 -3
  75. package/fesm2022/taiga-ui-legacy-services.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-legacy-tokens.mjs +1 -1
  77. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  79. package/package.json +32 -170
  80. package/styles/mixins/textfield.less +3 -1
  81. package/utils/icons-path-factory.d.ts +1 -1
  82. package/components/input-copy/index.d.ts +0 -4
  83. package/components/input-copy/input-copy.component.d.ts +0 -33
  84. package/components/input-copy/input-copy.directive.d.ts +0 -11
  85. package/components/input-copy/input-copy.module.d.ts +0 -18
  86. package/components/input-copy/input-copy.options.d.ts +0 -26
  87. package/components/input-date-multi/index.d.ts +0 -2
  88. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  89. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  90. package/components/input-month/index.d.ts +0 -3
  91. package/components/input-month/input-month.component.d.ts +0 -44
  92. package/components/input-month/input-month.directive.d.ts +0 -19
  93. package/components/input-month/input-month.module.d.ts +0 -19
  94. package/components/input-password/index.d.ts +0 -4
  95. package/components/input-password/input-password.component.d.ts +0 -33
  96. package/components/input-password/input-password.directive.d.ts +0 -15
  97. package/components/input-password/input-password.module.d.ts +0 -19
  98. package/components/input-password/input-password.options.d.ts +0 -25
  99. package/components/input-phone/index.d.ts +0 -4
  100. package/components/input-phone/input-phone.component.d.ts +0 -49
  101. package/components/input-phone/input-phone.directive.d.ts +0 -13
  102. package/components/input-phone/input-phone.module.d.ts +0 -12
  103. package/components/input-phone/input-phone.options.d.ts +0 -13
  104. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  105. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  106. package/components/input-phone/utils/index.d.ts +0 -2
  107. package/components/input-phone-international/index.d.ts +0 -3
  108. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  109. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  110. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  111. package/components/input-year/index.d.ts +0 -3
  112. package/components/input-year/input-year.component.d.ts +0 -36
  113. package/components/input-year/input-year.directive.d.ts +0 -14
  114. package/components/input-year/input-year.module.d.ts +0 -18
  115. package/components/island/index.d.ts +0 -1
  116. package/components/island/island.directive.d.ts +0 -20
  117. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  118. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  119. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -10
  120. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  121. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  122. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  123. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  124. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  125. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  126. package/components/sheet/index.d.ts +0 -14
  127. package/components/sheet/sheet-options.d.ts +0 -27
  128. package/components/sheet/sheet-tokens.d.ts +0 -18
  129. package/components/sheet/sheet.d.ts +0 -21
  130. package/components/sheet/sheet.directive.d.ts +0 -17
  131. package/components/sheet/sheet.module.d.ts +0 -24
  132. package/components/sheet/sheet.service.d.ts +0 -17
  133. package/components/table-bar/index.d.ts +0 -4
  134. package/components/table-bar/table-bar.component.d.ts +0 -17
  135. package/components/table-bar/table-bar.directive.d.ts +0 -11
  136. package/components/table-bar/table-bar.options.d.ts +0 -31
  137. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  138. package/components/table-bar/table-bars.service.d.ts +0 -11
  139. package/esm2022/classes/abstract-native-select.mjs +0 -49
  140. package/esm2022/classes/abstract-textfield-host.mjs +0 -37
  141. package/esm2022/classes/control.mjs +0 -181
  142. package/esm2022/classes/controller.mjs +0 -18
  143. package/esm2022/classes/index.mjs +0 -10
  144. package/esm2022/classes/interactive.mjs +0 -82
  145. package/esm2022/classes/multiple-control.mjs +0 -21
  146. package/esm2022/classes/named-day.mjs +0 -14
  147. package/esm2022/classes/nullable-control.mjs +0 -18
  148. package/esm2022/classes/stringifiable-item.mjs +0 -14
  149. package/esm2022/classes/taiga-ui-legacy-classes.mjs +0 -5
  150. package/esm2022/components/arrow/arrow.component.mjs +0 -41
  151. package/esm2022/components/arrow/arrow.options.mjs +0 -20
  152. package/esm2022/components/arrow/arrow.providers.mjs +0 -23
  153. package/esm2022/components/arrow/index.mjs +0 -4
  154. package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +0 -5
  155. package/esm2022/components/color-selector/color-edit/color-edit.component.mjs +0 -59
  156. package/esm2022/components/color-selector/color-edit/color-edit.module.mjs +0 -56
  157. package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +0 -70
  158. package/esm2022/components/color-selector/color-picker/color-picker.module.mjs +0 -25
  159. package/esm2022/components/color-selector/color-selector.component.mjs +0 -191
  160. package/esm2022/components/color-selector/color-selector.module.mjs +0 -67
  161. package/esm2022/components/color-selector/color-selector.options.mjs +0 -78
  162. package/esm2022/components/color-selector/flat-picker/flat-picker.component.mjs +0 -34
  163. package/esm2022/components/color-selector/flat-picker/flat-picker.module.mjs +0 -23
  164. package/esm2022/components/color-selector/index.mjs +0 -17
  165. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.component.mjs +0 -61
  166. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.module.mjs +0 -23
  167. package/esm2022/components/color-selector/linear-picker/linear-picker.component.mjs +0 -31
  168. package/esm2022/components/color-selector/linear-picker/linear-picker.module.mjs +0 -23
  169. package/esm2022/components/color-selector/palette/palette.component.mjs +0 -23
  170. package/esm2022/components/color-selector/palette/palette.module.mjs +0 -25
  171. package/esm2022/components/color-selector/services/picker.service.mjs +0 -31
  172. package/esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs +0 -5
  173. package/esm2022/components/combo-box/combo-box-strict.directive.mjs +0 -34
  174. package/esm2022/components/combo-box/combo-box.component.mjs +0 -183
  175. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -28
  176. package/esm2022/components/combo-box/combo-box.module.mjs +0 -71
  177. package/esm2022/components/combo-box/index.mjs +0 -5
  178. package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +0 -5
  179. package/esm2022/components/index.mjs +0 -34
  180. package/esm2022/components/input/index.mjs +0 -4
  181. package/esm2022/components/input/input.component.mjs +0 -97
  182. package/esm2022/components/input/input.directive.mjs +0 -25
  183. package/esm2022/components/input/input.module.mjs +0 -42
  184. package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +0 -5
  185. package/esm2022/components/input-color/index.mjs +0 -3
  186. package/esm2022/components/input-color/input-color.component.mjs +0 -85
  187. package/esm2022/components/input-color/input-color.module.mjs +0 -43
  188. package/esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs +0 -5
  189. package/esm2022/components/input-copy/index.mjs +0 -5
  190. package/esm2022/components/input-copy/input-copy.component.mjs +0 -105
  191. package/esm2022/components/input-copy/input-copy.directive.mjs +0 -24
  192. package/esm2022/components/input-copy/input-copy.module.mjs +0 -55
  193. package/esm2022/components/input-copy/input-copy.options.mjs +0 -24
  194. package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +0 -5
  195. package/esm2022/components/input-date/index.mjs +0 -4
  196. package/esm2022/components/input-date/input-date.component.mjs +0 -220
  197. package/esm2022/components/input-date/input-date.directive.mjs +0 -40
  198. package/esm2022/components/input-date/input-date.module.mjs +0 -75
  199. package/esm2022/components/input-date/native-date/native-date.component.mjs +0 -53
  200. package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +0 -5
  201. package/esm2022/components/input-date-multi/index.mjs +0 -3
  202. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +0 -207
  203. package/esm2022/components/input-date-multi/input-date-multi.module.mjs +0 -67
  204. package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +0 -5
  205. package/esm2022/components/input-date-range/index.mjs +0 -4
  206. package/esm2022/components/input-date-range/input-date-range.component.mjs +0 -256
  207. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -36
  208. package/esm2022/components/input-date-range/input-date-range.module.mjs +0 -71
  209. package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +0 -5
  210. package/esm2022/components/input-date-time/index.mjs +0 -4
  211. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -315
  212. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -37
  213. package/esm2022/components/input-date-time/input-date-time.module.mjs +0 -78
  214. package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +0 -49
  215. package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +0 -5
  216. package/esm2022/components/input-month/index.mjs +0 -4
  217. package/esm2022/components/input-month/input-month.component.mjs +0 -135
  218. package/esm2022/components/input-month/input-month.directive.mjs +0 -46
  219. package/esm2022/components/input-month/input-month.module.mjs +0 -57
  220. package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +0 -5
  221. package/esm2022/components/input-month-range/index.mjs +0 -4
  222. package/esm2022/components/input-month-range/input-month-range.component.mjs +0 -123
  223. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -52
  224. package/esm2022/components/input-month-range/input-month-range.module.mjs +0 -53
  225. package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +0 -5
  226. package/esm2022/components/input-number/index.mjs +0 -5
  227. package/esm2022/components/input-number/input-number.component.mjs +0 -284
  228. package/esm2022/components/input-number/input-number.directive.mjs +0 -38
  229. package/esm2022/components/input-number/input-number.module.mjs +0 -48
  230. package/esm2022/components/input-number/input-number.options.mjs +0 -30
  231. package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +0 -5
  232. package/esm2022/components/input-password/index.mjs +0 -5
  233. package/esm2022/components/input-password/input-password.component.mjs +0 -80
  234. package/esm2022/components/input-password/input-password.directive.mjs +0 -34
  235. package/esm2022/components/input-password/input-password.module.mjs +0 -59
  236. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  237. package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +0 -5
  238. package/esm2022/components/input-phone/index.mjs +0 -5
  239. package/esm2022/components/input-phone/input-phone.component.mjs +0 -216
  240. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -34
  241. package/esm2022/components/input-phone/input-phone.module.mjs +0 -44
  242. package/esm2022/components/input-phone/input-phone.options.mjs +0 -18
  243. package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +0 -5
  244. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  245. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  246. package/esm2022/components/input-phone/utils/index.mjs +0 -3
  247. package/esm2022/components/input-phone-international/index.mjs +0 -4
  248. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -178
  249. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -25
  250. package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +0 -5
  251. package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +0 -10
  252. package/esm2022/components/input-range/index.mjs +0 -3
  253. package/esm2022/components/input-range/input-range.component.mjs +0 -207
  254. package/esm2022/components/input-range/input-range.module.mjs +0 -55
  255. package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +0 -5
  256. package/esm2022/components/input-slider/index.mjs +0 -3
  257. package/esm2022/components/input-slider/input-slider.component.mjs +0 -154
  258. package/esm2022/components/input-slider/input-slider.module.mjs +0 -48
  259. package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +0 -5
  260. package/esm2022/components/input-tag/index.mjs +0 -4
  261. package/esm2022/components/input-tag/input-tag.component.mjs +0 -436
  262. package/esm2022/components/input-tag/input-tag.module.mjs +0 -67
  263. package/esm2022/components/input-tag/input-tag.options.mjs +0 -27
  264. package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +0 -5
  265. package/esm2022/components/input-time/index.mjs +0 -5
  266. package/esm2022/components/input-time/input-time.component.mjs +0 -238
  267. package/esm2022/components/input-time/input-time.directive.mjs +0 -40
  268. package/esm2022/components/input-time/input-time.module.mjs +0 -71
  269. package/esm2022/components/input-time/input-time.options.mjs +0 -39
  270. package/esm2022/components/input-time/native-time/native-time.component.mjs +0 -67
  271. package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +0 -5
  272. package/esm2022/components/input-year/index.mjs +0 -4
  273. package/esm2022/components/input-year/input-year.component.mjs +0 -110
  274. package/esm2022/components/input-year/input-year.directive.mjs +0 -32
  275. package/esm2022/components/input-year/input-year.module.mjs +0 -53
  276. package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +0 -5
  277. package/esm2022/components/island/index.mjs +0 -2
  278. package/esm2022/components/island/island.directive.mjs +0 -62
  279. package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +0 -5
  280. package/esm2022/components/multi-select/hide-selected.pipe.mjs +0 -44
  281. package/esm2022/components/multi-select/index.mjs +0 -11
  282. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -98
  283. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -94
  284. package/esm2022/components/multi-select/multi-select.component.mjs +0 -233
  285. package/esm2022/components/multi-select/multi-select.directive.mjs +0 -32
  286. package/esm2022/components/multi-select/multi-select.module.mjs +0 -113
  287. package/esm2022/components/multi-select/multi-select.options.mjs +0 -17
  288. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +0 -60
  289. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +0 -56
  290. package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +0 -19
  291. package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +0 -5
  292. package/esm2022/components/multi-select-option/index.mjs +0 -3
  293. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +0 -25
  294. package/esm2022/components/multi-select-option/multi-select-option.module.mjs +0 -20
  295. package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +0 -5
  296. package/esm2022/components/primitive-textfield/index.mjs +0 -7
  297. package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +0 -17
  298. package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +0 -2
  299. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +0 -254
  300. package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +0 -33
  301. package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +0 -66
  302. package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +0 -5
  303. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +0 -39
  304. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +0 -66
  305. package/esm2022/components/select/index.mjs +0 -7
  306. package/esm2022/components/select/native-select/native-select-group.component.mjs +0 -64
  307. package/esm2022/components/select/native-select/native-select.component.mjs +0 -60
  308. package/esm2022/components/select/select.component.mjs +0 -119
  309. package/esm2022/components/select/select.directive.mjs +0 -34
  310. package/esm2022/components/select/select.module.mjs +0 -87
  311. package/esm2022/components/select/select.options.mjs +0 -24
  312. package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +0 -5
  313. package/esm2022/components/select-option/index.mjs +0 -3
  314. package/esm2022/components/select-option/select-option.component.mjs +0 -65
  315. package/esm2022/components/select-option/select-option.module.mjs +0 -21
  316. package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +0 -5
  317. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +0 -117
  318. package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +0 -42
  319. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +0 -27
  320. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +0 -31
  321. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +0 -46
  322. package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +0 -39
  323. package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +0 -38
  324. package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +0 -52
  325. package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +0 -77
  326. package/esm2022/components/sheet/index.mjs +0 -14
  327. package/esm2022/components/sheet/sheet-options.mjs +0 -24
  328. package/esm2022/components/sheet/sheet-tokens.mjs +0 -17
  329. package/esm2022/components/sheet/sheet.directive.mjs +0 -40
  330. package/esm2022/components/sheet/sheet.mjs +0 -2
  331. package/esm2022/components/sheet/sheet.module.mjs +0 -75
  332. package/esm2022/components/sheet/sheet.service.mjs +0 -52
  333. package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +0 -5
  334. package/esm2022/components/svg/content-processor.mjs +0 -41
  335. package/esm2022/components/svg/deprecated-icons.mjs +0 -63
  336. package/esm2022/components/svg/index.mjs +0 -6
  337. package/esm2022/components/svg/svg-options.mjs +0 -83
  338. package/esm2022/components/svg/svg.component.mjs +0 -150
  339. package/esm2022/components/svg/svg.service.mjs +0 -64
  340. package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +0 -5
  341. package/esm2022/components/table-bar/index.mjs +0 -5
  342. package/esm2022/components/table-bar/table-bar.component.mjs +0 -37
  343. package/esm2022/components/table-bar/table-bar.directive.mjs +0 -25
  344. package/esm2022/components/table-bar/table-bar.options.mjs +0 -34
  345. package/esm2022/components/table-bar/table-bars-host.component.mjs +0 -39
  346. package/esm2022/components/table-bar/table-bars.service.mjs +0 -22
  347. package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +0 -5
  348. package/esm2022/components/tag/index.mjs +0 -4
  349. package/esm2022/components/tag/tag.component.mjs +0 -158
  350. package/esm2022/components/tag/tag.module.mjs +0 -42
  351. package/esm2022/components/tag/tag.options.mjs +0 -26
  352. package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +0 -5
  353. package/esm2022/components/taiga-ui-legacy-components.mjs +0 -5
  354. package/esm2022/components/textarea/index.mjs +0 -4
  355. package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +0 -5
  356. package/esm2022/components/textarea/textarea.component.mjs +0 -175
  357. package/esm2022/components/textarea/textarea.directive.mjs +0 -25
  358. package/esm2022/components/textarea/textarea.module.mjs +0 -68
  359. package/esm2022/components/tooltip/index.mjs +0 -3
  360. package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +0 -5
  361. package/esm2022/components/tooltip/tooltip.component.mjs +0 -27
  362. package/esm2022/components/tooltip/tooltip.module.mjs +0 -24
  363. package/esm2022/directives/index.mjs +0 -6
  364. package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +0 -2
  365. package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +0 -44
  366. package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -5
  367. package/esm2022/directives/taiga-ui-legacy-directives.mjs +0 -5
  368. package/esm2022/directives/textfield-controller/index.mjs +0 -15
  369. package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +0 -5
  370. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +0 -34
  371. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +0 -28
  372. package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +0 -72
  373. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +0 -44
  374. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +0 -28
  375. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +0 -28
  376. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +0 -24
  377. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +0 -24
  378. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +0 -32
  379. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +0 -28
  380. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +0 -28
  381. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +0 -28
  382. package/esm2022/directives/textfield-controller/textfield.controller.mjs +0 -49
  383. package/esm2022/directives/textfield-controller/textfield.options.mjs +0 -21
  384. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  385. package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -5
  386. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -30
  387. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -15
  388. package/esm2022/directives/value-accessor/index.mjs +0 -4
  389. package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +0 -5
  390. package/esm2022/directives/value-accessor/value-accessor.directive.mjs +0 -17
  391. package/esm2022/directives/value-accessor/value-accessor.module.mjs +0 -17
  392. package/esm2022/directives/value-accessor/value-accessor.provider.mjs +0 -10
  393. package/esm2022/directives/wrapper/index.mjs +0 -3
  394. package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +0 -5
  395. package/esm2022/directives/wrapper/wrapper.directive.mjs +0 -77
  396. package/esm2022/directives/wrapper/wrapper.module.mjs +0 -20
  397. package/esm2022/index.mjs +0 -8
  398. package/esm2022/pipes/format-phone/format-phone.pipe.mjs +0 -54
  399. package/esm2022/pipes/format-phone/index.mjs +0 -2
  400. package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +0 -5
  401. package/esm2022/pipes/index.mjs +0 -4
  402. package/esm2022/pipes/iso-to-country-code/index.mjs +0 -2
  403. package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +0 -44
  404. package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -5
  405. package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +0 -5
  406. package/esm2022/pipes/to-country-code/index.mjs +0 -2
  407. package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +0 -5
  408. package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +0 -74
  409. package/esm2022/services/index.mjs +0 -2
  410. package/esm2022/services/static-request.service.mjs +0 -36
  411. package/esm2022/services/taiga-ui-legacy-services.mjs +0 -5
  412. package/esm2022/taiga-ui-legacy.mjs +0 -5
  413. package/esm2022/tokens/countries-masks.mjs +0 -257
  414. package/esm2022/tokens/focusable-item-accessor.mjs +0 -14
  415. package/esm2022/tokens/fonts-ready.mjs +0 -10
  416. package/esm2022/tokens/icons.mjs +0 -9
  417. package/esm2022/tokens/index.mjs +0 -15
  418. package/esm2022/tokens/is-apple.mjs +0 -11
  419. package/esm2022/tokens/is-chromium.mjs +0 -10
  420. package/esm2022/tokens/is-firefox.mjs +0 -11
  421. package/esm2022/tokens/is-stackblitz.mjs +0 -9
  422. package/esm2022/tokens/month-formatter.mjs +0 -18
  423. package/esm2022/tokens/sanitizer.mjs +0 -7
  424. package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +0 -5
  425. package/esm2022/tokens/textfield-appearance.mjs +0 -10
  426. package/esm2022/tokens/textfield-host.mjs +0 -14
  427. package/esm2022/tokens/touch-supported.mjs +0 -9
  428. package/esm2022/tokens/value-accessor.mjs +0 -7
  429. package/esm2022/utils/capitalize-first-letter.mjs +0 -7
  430. package/esm2022/utils/date-mode-maskito-adapter.mjs +0 -9
  431. package/esm2022/utils/format-phone.mjs +0 -60
  432. package/esm2022/utils/get-border.mjs +0 -23
  433. package/esm2022/utils/get-max-allowed-phone-length.mjs +0 -26
  434. package/esm2022/utils/get-safe-area-size.mjs +0 -18
  435. package/esm2022/utils/icons-path-factory.mjs +0 -22
  436. package/esm2022/utils/index.mjs +0 -14
  437. package/esm2022/utils/is-apple.mjs +0 -6
  438. package/esm2022/utils/is-presumed-html-string.mjs +0 -8
  439. package/esm2022/utils/iso-to-country-code.mjs +0 -16
  440. package/esm2022/utils/not-kz-region.mjs +0 -24
  441. package/esm2022/utils/process-icon.mjs +0 -34
  442. package/esm2022/utils/specific-dropdown-controllers.mjs +0 -9
  443. package/esm2022/utils/status.mjs +0 -2
  444. package/esm2022/utils/taiga-ui-legacy-utils.mjs +0 -5
  445. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  446. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  447. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  448. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  449. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  450. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  451. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  452. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  453. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  454. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  455. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
  456. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  457. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  458. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  459. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  460. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  461. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -574
  462. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  463. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -145
  464. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
@@ -1,358 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, EventEmitter, TemplateRef, Component, ChangeDetectionStrategy, ViewChild, ContentChild, Input, Output, Directive, NgModule } from '@angular/core';
4
- import { maskitoTransform, MASKITO_DEFAULT_OPTIONS } from '@maskito/core';
5
- import { maskitoPrefixPostprocessorGenerator, maskitoCaretGuard } from '@maskito/kit';
6
- import { tuiIsNativeFocused } from '@taiga-ui/cdk/utils/focus';
7
- import { tuiProvideOptions, tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
8
- import { tuiAsDataListHost, TuiDataListDirective } from '@taiga-ui/core/components/data-list';
9
- import * as i1 from '@taiga-ui/core/directives/dropdown';
10
- import { TuiDropdownOpen, TuiDropdownFixed, TuiDropdown } from '@taiga-ui/core/directives/dropdown';
11
- import { AbstractTuiControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
12
- import * as i3 from '@taiga-ui/legacy/components/primitive-textfield';
13
- import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldComponent } from '@taiga-ui/legacy/components/primitive-textfield';
14
- import * as i4 from '@taiga-ui/legacy/directives';
15
- import { TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_SIZE, TuiTextfieldControllerModule, TuiValueAccessorModule, TuiLegacyDropdownOpenMonitorDirective } from '@taiga-ui/legacy/directives';
16
- import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
17
- import * as i2 from '@maskito/angular';
18
- import { MaskitoDirective } from '@maskito/angular';
19
-
20
- const TUI_INPUT_PHONE_DEFAULT_OPTIONS = {
21
- phoneMaskAfterCountryCode: '### ###-##-##',
22
- allowText: false,
23
- countryCode: '+7',
24
- };
25
- /**
26
- * @deprecated: drop in v5.0
27
- * Default parameters for input phone component
28
- */
29
- const TUI_INPUT_PHONE_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_PHONE_OPTIONS' : '', {
30
- factory: () => TUI_INPUT_PHONE_DEFAULT_OPTIONS,
31
- });
32
- function tuiInputPhoneOptionsProvider(options) {
33
- return tuiProvideOptions(TUI_INPUT_PHONE_OPTIONS, options, TUI_INPUT_PHONE_DEFAULT_OPTIONS);
34
- }
35
-
36
- const countDigits = (value) => value.replaceAll(/\D/g, '').length;
37
- /**
38
- * `InputPhone` component sets country code as non-removable prefix.
39
- * This prefix appears on focus and cannot be erased.
40
- * But users sometimes can copy complete phone number (from any different source)
41
- * and try to insert the whole string inside our `InputPhone` textfield.
42
- * This preprocessor helps to avoid country prefix duplication on paste/drop/autofill events.
43
- */
44
- function tuiCreateCompletePhoneInsertionPreprocessor(countryCode, phoneMaskAfterCountryCode) {
45
- const completePhoneLength = (countryCode + phoneMaskAfterCountryCode).replaceAll(/[^#\d]+/g, '').length;
46
- const trimCountryPrefix = (value) => countryCode === '+7'
47
- ? value.replace(/^(\+?\s*7?\s?8?)\s?/, '')
48
- : value.replace(new RegExp(`^(\\+?\\s*${countryCode.replace('+', '')}?)\\s?`), '');
49
- return ({ elementState, data }) => {
50
- const { value, selection } = elementState;
51
- return {
52
- elementState: {
53
- selection,
54
- value:
55
- /**
56
- * The only possible case when `value` includes digits more
57
- * than mask expression allows – browser autofill.
58
- * It means that we are inside `input`-event
59
- * and mask are ready to reject "extra" characters.
60
- * We should cut leading country prefix to save trailing characters!
61
- */
62
- countDigits(value) > completePhoneLength
63
- ? trimCountryPrefix(value)
64
- : value,
65
- },
66
- data: countDigits(data) >= completePhoneLength || data.startsWith(countryCode)
67
- ? /**
68
- * User tries to insert/drop the complete phone number (with country prefix).
69
- * We should drop already existing non-removable prefix.
70
- */
71
- trimCountryPrefix(data)
72
- : data,
73
- };
74
- };
75
- }
76
-
77
- /**
78
- * Create {@link https://maskito.dev/core-concepts/mask-expression pattern mask expression} for phone number
79
- *
80
- * @example
81
- * tuiCreatePhoneMaskExpression('+1', '(###) ###-####');
82
- */
83
- function tuiCreatePhoneMaskExpression(countryCode, phoneMaskAfterCountryCode) {
84
- return [
85
- ...countryCode.split(''),
86
- ' ',
87
- ...phoneMaskAfterCountryCode
88
- .replaceAll(/[^#\- ()]+/g, '')
89
- .split('')
90
- .map((item) => (item === '#' ? /\d/ : item)),
91
- ];
92
- }
93
-
94
- const MASK_SYMBOLS = /[ \-_()]/g;
95
- function isText(value) {
96
- return Number.isNaN(parseInt(value.replaceAll(MASK_SYMBOLS, ''), 10));
97
- }
98
- class TuiInputPhoneComponent extends AbstractTuiControl {
99
- constructor() {
100
- super(...arguments);
101
- this.textfieldCleaner = inject(TUI_TEXTFIELD_CLEANER);
102
- this.options = inject(TUI_INPUT_PHONE_OPTIONS);
103
- this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
104
- this.open = false;
105
- this.phoneMaskAfterCountryCode = this.options.phoneMaskAfterCountryCode;
106
- this.allowText = this.options.allowText;
107
- this.search = '';
108
- this.searchChange = new EventEmitter();
109
- this.countryCode = this.options.countryCode;
110
- }
111
- set countryCodeSetter(newCountryCode) {
112
- const prevCountryCode = this.countryCode;
113
- this.countryCode = newCountryCode;
114
- this.updateValueWithNewCountryCode(prevCountryCode, newCountryCode);
115
- }
116
- get size() {
117
- return this.textfieldSize.size;
118
- }
119
- get nativeFocusableElement() {
120
- return !this.textfield || this.computedDisabled
121
- ? null
122
- : this.textfield.nativeFocusableElement;
123
- }
124
- get focused() {
125
- return (tuiIsNativeFocused(this.nativeFocusableElement) ||
126
- !!this.dropdown?.tuiDropdownOpen);
127
- }
128
- get nativeValue() {
129
- return (this.nativeFocusableElement?.value ||
130
- maskitoTransform(this.value, this.maskOptions));
131
- }
132
- set nativeValue(value) {
133
- if (this.nativeFocusableElement) {
134
- this.nativeFocusableElement.value = value;
135
- }
136
- }
137
- get inputMode() {
138
- return this.allowText ? 'text' : 'numeric';
139
- }
140
- onValueChange(value) {
141
- const parsed = isText(value)
142
- ? value
143
- : value.replaceAll(MASK_SYMBOLS, '').slice(0, this.maxPhoneLength);
144
- this.updateSearch(parsed);
145
- this.value = parsed === this.countryCode || isText(parsed) ? '' : parsed;
146
- this.open = true;
147
- if (!this.value && !this.allowText) {
148
- this.nativeValue = this.nonRemovablePrefix;
149
- }
150
- }
151
- handleOption(item) {
152
- this.focusInput();
153
- this.value = item;
154
- this.nativeValue = maskitoTransform(this.value, this.maskOptions);
155
- this.updateSearch('');
156
- this.open = false;
157
- }
158
- setDisabledState() {
159
- super.setDisabledState();
160
- this.open = false;
161
- }
162
- writeValue(value) {
163
- super.writeValue(value);
164
- this.nativeValue = maskitoTransform(this.value || '', this.maskOptions);
165
- this.updateSearch('');
166
- }
167
- get canOpen() {
168
- return this.interactive && !!this.datalist;
169
- }
170
- get canClean() {
171
- return (this.nativeValue !== this.nonRemovablePrefix && this.textfieldCleaner.cleaner);
172
- }
173
- get maskOptions() {
174
- return this.calculateMask(this.countryCode, this.phoneMaskAfterCountryCode, this.nonRemovablePrefix, this.allowText);
175
- }
176
- onActiveZone(active) {
177
- this.updateFocused(active);
178
- if (active && !this.nativeValue && !this.readOnly && !this.allowText) {
179
- this.updateSearch(this.nonRemovablePrefix);
180
- this.nativeValue = this.nonRemovablePrefix;
181
- return;
182
- }
183
- if (this.nativeValue === this.nonRemovablePrefix || this.isTextValue) {
184
- this.updateSearch('');
185
- this.nativeValue = '';
186
- return;
187
- }
188
- if (!active && !this.allowText && this.nativeFocusableElement) {
189
- this.nativeValue = this.nativeValue.replace(/\D$/, '');
190
- }
191
- }
192
- getFallbackValue() {
193
- return '';
194
- }
195
- get nonRemovablePrefix() {
196
- return `${this.countryCode} `;
197
- }
198
- get maxPhoneLength() {
199
- return (this.countryCode.length +
200
- this.phoneMaskAfterCountryCode.replaceAll(/[^#]+/g, '').length);
201
- }
202
- get isTextValue() {
203
- return !!this.search && isText(this.search);
204
- }
205
- calculateMask(countryCode, phoneMaskAfterCountryCode, nonRemovablePrefix, allowText) {
206
- const mask = tuiCreatePhoneMaskExpression(countryCode, phoneMaskAfterCountryCode);
207
- const preprocessors = [
208
- tuiCreateCompletePhoneInsertionPreprocessor(countryCode, phoneMaskAfterCountryCode),
209
- ];
210
- return allowText
211
- ? {
212
- mask: ({ value }) => isText(value) && value !== '+'
213
- ? MASKITO_DEFAULT_OPTIONS.mask
214
- : mask,
215
- preprocessors,
216
- }
217
- : {
218
- mask,
219
- preprocessors,
220
- postprocessors: [
221
- maskitoPrefixPostprocessorGenerator(nonRemovablePrefix),
222
- ],
223
- plugins: [
224
- maskitoCaretGuard((value, [from, to]) => [
225
- from === to ? nonRemovablePrefix.length : 0,
226
- value.length,
227
- ]),
228
- ],
229
- };
230
- }
231
- focusInput() {
232
- if (this.nativeFocusableElement) {
233
- this.nativeFocusableElement.focus({ preventScroll: true });
234
- }
235
- }
236
- updateSearch(search) {
237
- if (this.search === search) {
238
- return;
239
- }
240
- this.search = search;
241
- this.searchChange.emit(search);
242
- }
243
- updateValueWithNewCountryCode(prevCountryCode, newCountryCode) {
244
- if (!this.isTextValue) {
245
- this.value = this.value.replace(prevCountryCode, newCountryCode);
246
- this.nativeValue = maskitoTransform(this.value, this.maskOptions);
247
- }
248
- }
249
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
250
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputPhoneComponent, selector: "tui-input-phone", inputs: { phoneMaskAfterCountryCode: "phoneMaskAfterCountryCode", allowText: "allowText", search: "search", countryCodeSetter: ["countryCode", "countryCodeSetter"] }, outputs: { searchChange: "searchChange" }, host: { properties: { "attr.data-size": "size" } }, providers: [
251
- tuiAsFocusableItemAccessor(TuiInputPhoneComponent),
252
- tuiAsControl(TuiInputPhoneComponent),
253
- tuiAsDataListHost(TuiInputPhoneComponent),
254
- ], queries: [{ propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "dropdown", first: true, predicate: TuiDropdownOpen, descendants: true }, { propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.TuiDropdownFixed }], ngImport: i0, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"canOpen\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCleaner]=\"canClean\"\n [(value)]=\"nativeValue\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n </tui-primitive-textfield>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host._disabled,:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i2.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i3.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i3.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i4.TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: ["tuiTextfieldCleaner"] }, { kind: "directive", type: i4.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { kind: "directive", type: i4.TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "directive", type: i1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
255
- }
256
- __decorate([
257
- tuiPure
258
- ], TuiInputPhoneComponent.prototype, "calculateMask", null);
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneComponent, decorators: [{
260
- type: Component,
261
- args: [{ standalone: false, selector: 'tui-input-phone', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
262
- tuiAsFocusableItemAccessor(TuiInputPhoneComponent),
263
- tuiAsControl(TuiInputPhoneComponent),
264
- tuiAsDataListHost(TuiInputPhoneComponent),
265
- ], hostDirectives: [TuiDropdownFixed], host: {
266
- '[attr.data-size]': 'size',
267
- }, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"canOpen\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCleaner]=\"canClean\"\n [(value)]=\"nativeValue\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n </tui-primitive-textfield>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host._disabled,:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}\n"] }]
268
- }], propDecorators: { dropdown: [{
269
- type: ViewChild,
270
- args: [TuiDropdownOpen]
271
- }], textfield: [{
272
- type: ViewChild,
273
- args: [TuiPrimitiveTextfieldComponent]
274
- }], datalist: [{
275
- type: ContentChild,
276
- args: [TuiDataListDirective, { read: TemplateRef }]
277
- }], phoneMaskAfterCountryCode: [{
278
- type: Input
279
- }], allowText: [{
280
- type: Input
281
- }], search: [{
282
- type: Input
283
- }], searchChange: [{
284
- type: Output
285
- }], countryCodeSetter: [{
286
- type: Input,
287
- args: ['countryCode']
288
- }], calculateMask: [] } });
289
-
290
- class TuiInputPhoneDirective extends AbstractTuiTextfieldHost {
291
- get value() {
292
- return this.host.nativeValue;
293
- }
294
- onValueChange(value) {
295
- this.host.onValueChange(value);
296
- }
297
- process(input) {
298
- this.input = input;
299
- }
300
- ngDoCheck() {
301
- if (!this.input) {
302
- return;
303
- }
304
- this.input.type = 'tel';
305
- this.input.inputMode = this.host.inputMode;
306
- }
307
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
308
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputPhoneDirective, selector: "tui-input-phone", providers: [tuiAsTextfieldHost(TuiInputPhoneDirective)], usesInheritance: true, ngImport: i0 }); }
309
- }
310
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneDirective, decorators: [{
311
- type: Directive,
312
- args: [{
313
- standalone: false,
314
- selector: 'tui-input-phone',
315
- providers: [tuiAsTextfieldHost(TuiInputPhoneDirective)],
316
- }]
317
- }] });
318
-
319
- class TuiInputPhoneModule {
320
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
321
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneModule, declarations: [TuiInputPhoneComponent, TuiInputPhoneDirective], imports: [MaskitoDirective,
322
- TuiPrimitiveTextfieldModule,
323
- TuiTextfieldControllerModule,
324
- TuiValueAccessorModule,
325
- TuiLegacyDropdownOpenMonitorDirective, i1.TuiDropdownOptionsDirective, i1.TuiDropdownDriverDirective, i1.TuiDropdownDirective, i1.TuiDropdownComponent, i1.TuiDropdownOpen, i1.TuiDropdownOpenLegacy, i1.TuiDropdownPortal, i1.TuiDropdownManual, i1.TuiDropdownHover, i1.TuiDropdownContext, i1.TuiDropdownPosition, i1.TuiDropdownPositionSided, i1.TuiDropdownSelection], exports: [TuiInputPhoneComponent,
326
- TuiInputPhoneDirective,
327
- TuiTextfieldComponent, i1.TuiDropdownOptionsDirective, i1.TuiDropdownDriverDirective, i1.TuiDropdownDirective, i1.TuiDropdownComponent, i1.TuiDropdownOpen, i1.TuiDropdownOpenLegacy, i1.TuiDropdownPortal, i1.TuiDropdownManual, i1.TuiDropdownHover, i1.TuiDropdownContext, i1.TuiDropdownPosition, i1.TuiDropdownPositionSided, i1.TuiDropdownSelection] }); }
328
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneModule, imports: [TuiPrimitiveTextfieldModule,
329
- TuiTextfieldControllerModule,
330
- TuiValueAccessorModule, i1.TuiDropdownComponent] }); }
331
- }
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneModule, decorators: [{
333
- type: NgModule,
334
- args: [{
335
- imports: [
336
- MaskitoDirective,
337
- TuiPrimitiveTextfieldModule,
338
- TuiTextfieldControllerModule,
339
- TuiValueAccessorModule,
340
- TuiLegacyDropdownOpenMonitorDirective,
341
- ...TuiDropdown,
342
- ],
343
- declarations: [TuiInputPhoneComponent, TuiInputPhoneDirective],
344
- exports: [
345
- TuiInputPhoneComponent,
346
- TuiInputPhoneDirective,
347
- TuiTextfieldComponent,
348
- ...TuiDropdown,
349
- ],
350
- }]
351
- }] });
352
-
353
- /**
354
- * Generated bundle index. Do not edit.
355
- */
356
-
357
- export { TUI_INPUT_PHONE_DEFAULT_OPTIONS, TUI_INPUT_PHONE_OPTIONS, TuiInputPhoneComponent, TuiInputPhoneDirective, TuiInputPhoneModule, tuiInputPhoneOptionsProvider };
358
- //# sourceMappingURL=taiga-ui-legacy-components-input-phone.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-input-phone.mjs","sources":["../../../projects/legacy/components/input-phone/input-phone.options.ts","../../../projects/legacy/components/input-phone/utils/complete-phone-insertion-preprocessor.ts","../../../projects/legacy/components/input-phone/utils/create-phone-mask-expression.ts","../../../projects/legacy/components/input-phone/input-phone.component.ts","../../../projects/legacy/components/input-phone/input-phone.template.html","../../../projects/legacy/components/input-phone/input-phone.directive.ts","../../../projects/legacy/components/input-phone/input-phone.module.ts","../../../projects/legacy/components/input-phone/taiga-ui-legacy-components-input-phone.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiInputPhoneOptions {\n readonly allowText: boolean;\n readonly countryCode: string;\n readonly phoneMaskAfterCountryCode: string;\n}\n\nexport const TUI_INPUT_PHONE_DEFAULT_OPTIONS: TuiInputPhoneOptions = {\n phoneMaskAfterCountryCode: '### ###-##-##',\n allowText: false,\n countryCode: '+7',\n};\n\n/**\n * @deprecated: drop in v5.0\n * Default parameters for input phone component\n */\nexport const TUI_INPUT_PHONE_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_PHONE_OPTIONS' : '',\n {\n factory: () => TUI_INPUT_PHONE_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiInputPhoneOptionsProvider(\n options: Partial<TuiInputPhoneOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_PHONE_OPTIONS,\n options,\n TUI_INPUT_PHONE_DEFAULT_OPTIONS,\n );\n}\n","import {type MaskitoPreprocessor} from '@maskito/core';\n\nconst countDigits = (value: string): number => value.replaceAll(/\\D/g, '').length;\n\n/**\n * `InputPhone` component sets country code as non-removable prefix.\n * This prefix appears on focus and cannot be erased.\n * But users sometimes can copy complete phone number (from any different source)\n * and try to insert the whole string inside our `InputPhone` textfield.\n * This preprocessor helps to avoid country prefix duplication on paste/drop/autofill events.\n */\nexport function tuiCreateCompletePhoneInsertionPreprocessor(\n countryCode: string,\n phoneMaskAfterCountryCode: string,\n): MaskitoPreprocessor {\n const completePhoneLength = (countryCode + phoneMaskAfterCountryCode).replaceAll(\n /[^#\\d]+/g,\n '',\n ).length;\n\n const trimCountryPrefix = (value: string): string =>\n countryCode === '+7'\n ? value.replace(/^(\\+?\\s*7?\\s?8?)\\s?/, '')\n : value.replace(\n new RegExp(`^(\\\\+?\\\\s*${countryCode.replace('+', '')}?)\\\\s?`),\n '',\n );\n\n return ({elementState, data}) => {\n const {value, selection} = elementState;\n\n return {\n elementState: {\n selection,\n value:\n /**\n * The only possible case when `value` includes digits more\n * than mask expression allows – browser autofill.\n * It means that we are inside `input`-event\n * and mask are ready to reject \"extra\" characters.\n * We should cut leading country prefix to save trailing characters!\n */\n countDigits(value) > completePhoneLength\n ? trimCountryPrefix(value)\n : value,\n },\n data:\n countDigits(data) >= completePhoneLength || data.startsWith(countryCode)\n ? /**\n * User tries to insert/drop the complete phone number (with country prefix).\n * We should drop already existing non-removable prefix.\n */\n trimCountryPrefix(data)\n : data,\n };\n };\n}\n","/**\n * Create {@link https://maskito.dev/core-concepts/mask-expression pattern mask expression} for phone number\n *\n * @example\n * tuiCreatePhoneMaskExpression('+1', '(###) ###-####');\n */\nexport function tuiCreatePhoneMaskExpression(\n countryCode: string,\n phoneMaskAfterCountryCode: string,\n): Array<RegExp | string> {\n return [\n ...countryCode.split(''),\n ' ',\n ...phoneMaskAfterCountryCode\n .replaceAll(/[^#\\- ()]+/g, '')\n .split('')\n .map((item) => (item === '#' ? /\\d/ : item)),\n ];\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n EventEmitter,\n inject,\n Input,\n Output,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {\n MASKITO_DEFAULT_OPTIONS,\n type MaskitoOptions,\n maskitoTransform,\n} from '@maskito/core';\nimport {maskitoCaretGuard, maskitoPrefixPostprocessorGenerator} from '@maskito/kit';\nimport {type TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAsDataListHost,\n TuiDataListDirective,\n type TuiDataListHost,\n} from '@taiga-ui/core/components/data-list';\nimport {TuiDropdownFixed, TuiDropdownOpen} from '@taiga-ui/core/directives/dropdown';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {AbstractTuiControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\n\nimport {TUI_INPUT_PHONE_OPTIONS} from './input-phone.options';\nimport {\n tuiCreateCompletePhoneInsertionPreprocessor,\n tuiCreatePhoneMaskExpression,\n} from './utils';\n\nconst MASK_SYMBOLS = /[ \\-_()]/g;\n\nfunction isText(value: string): boolean {\n return Number.isNaN(parseInt(value.replaceAll(MASK_SYMBOLS, ''), 10));\n}\n\n@Component({\n standalone: false,\n selector: 'tui-input-phone',\n templateUrl: './input-phone.template.html',\n styleUrls: ['./input-phone.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputPhoneComponent),\n tuiAsControl(TuiInputPhoneComponent),\n tuiAsDataListHost(TuiInputPhoneComponent),\n ],\n hostDirectives: [TuiDropdownFixed],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiInputPhoneComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor, TuiDataListHost<string>\n{\n @ViewChild(TuiDropdownOpen)\n private readonly dropdown?: TuiDropdownOpen;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly textfieldCleaner = inject(TUI_TEXTFIELD_CLEANER);\n private readonly options = inject(TUI_INPUT_PHONE_OPTIONS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n protected readonly datalist?: TemplateRef<TuiContext<TuiActiveZone>>;\n\n protected open = false;\n\n @Input()\n public phoneMaskAfterCountryCode = this.options.phoneMaskAfterCountryCode;\n\n @Input()\n public allowText = this.options.allowText;\n\n @Input()\n public search = '';\n\n @Output()\n public readonly searchChange = new EventEmitter<string>();\n\n public countryCode = this.options.countryCode;\n\n @Input('countryCode')\n public set countryCodeSetter(newCountryCode: string) {\n const prevCountryCode = this.countryCode;\n\n this.countryCode = newCountryCode;\n this.updateValueWithNewCountryCode(prevCountryCode, newCountryCode);\n }\n\n public get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n public get nativeFocusableElement(): HTMLInputElement | null {\n return !this.textfield || this.computedDisabled\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n public get focused(): boolean {\n return (\n tuiIsNativeFocused(this.nativeFocusableElement) ||\n !!this.dropdown?.tuiDropdownOpen\n );\n }\n\n public get nativeValue(): string {\n return (\n this.nativeFocusableElement?.value ||\n maskitoTransform(this.value, this.maskOptions)\n );\n }\n\n public set nativeValue(value: string) {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n\n public get inputMode(): string {\n return this.allowText ? 'text' : 'numeric';\n }\n\n public onValueChange(value: string): void {\n const parsed = isText(value)\n ? value\n : value.replaceAll(MASK_SYMBOLS, '').slice(0, this.maxPhoneLength);\n\n this.updateSearch(parsed);\n this.value = parsed === this.countryCode || isText(parsed) ? '' : parsed;\n this.open = true;\n\n if (!this.value && !this.allowText) {\n this.nativeValue = this.nonRemovablePrefix;\n }\n }\n\n public handleOption(item: string): void {\n this.focusInput();\n this.value = item;\n this.nativeValue = maskitoTransform(this.value, this.maskOptions);\n this.updateSearch('');\n this.open = false;\n }\n\n public override setDisabledState(): void {\n super.setDisabledState();\n this.open = false;\n }\n\n public override writeValue(value: string | null): void {\n super.writeValue(value);\n this.nativeValue = maskitoTransform(this.value || '', this.maskOptions);\n this.updateSearch('');\n }\n\n protected get canOpen(): boolean {\n return this.interactive && !!this.datalist;\n }\n\n protected get canClean(): boolean {\n return (\n this.nativeValue !== this.nonRemovablePrefix && this.textfieldCleaner.cleaner\n );\n }\n\n protected get maskOptions(): MaskitoOptions {\n return this.calculateMask(\n this.countryCode,\n this.phoneMaskAfterCountryCode,\n this.nonRemovablePrefix,\n this.allowText,\n );\n }\n\n protected onActiveZone(active: boolean): void {\n this.updateFocused(active);\n\n if (active && !this.nativeValue && !this.readOnly && !this.allowText) {\n this.updateSearch(this.nonRemovablePrefix);\n this.nativeValue = this.nonRemovablePrefix;\n\n return;\n }\n\n if (this.nativeValue === this.nonRemovablePrefix || this.isTextValue) {\n this.updateSearch('');\n this.nativeValue = '';\n\n return;\n }\n\n if (!active && !this.allowText && this.nativeFocusableElement) {\n this.nativeValue = this.nativeValue.replace(/\\D$/, '');\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get nonRemovablePrefix(): string {\n return `${this.countryCode} `;\n }\n\n private get maxPhoneLength(): number {\n return (\n this.countryCode.length +\n this.phoneMaskAfterCountryCode.replaceAll(/[^#]+/g, '').length\n );\n }\n\n private get isTextValue(): boolean {\n return !!this.search && isText(this.search);\n }\n\n @tuiPure\n private calculateMask(\n countryCode: string,\n phoneMaskAfterCountryCode: string,\n nonRemovablePrefix: string,\n allowText: boolean,\n ): MaskitoOptions {\n const mask = tuiCreatePhoneMaskExpression(countryCode, phoneMaskAfterCountryCode);\n const preprocessors = [\n tuiCreateCompletePhoneInsertionPreprocessor(\n countryCode,\n phoneMaskAfterCountryCode,\n ),\n ];\n\n return allowText\n ? {\n mask: ({value}) =>\n isText(value) && value !== '+'\n ? (MASKITO_DEFAULT_OPTIONS.mask as RegExp)\n : mask,\n preprocessors,\n }\n : {\n mask,\n preprocessors,\n postprocessors: [\n maskitoPrefixPostprocessorGenerator(nonRemovablePrefix),\n ],\n plugins: [\n maskitoCaretGuard((value, [from, to]) => [\n from === to ? nonRemovablePrefix.length : 0,\n value.length,\n ]),\n ],\n };\n }\n\n private focusInput(): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus({preventScroll: true});\n }\n }\n\n private updateSearch(search: string): void {\n if (this.search === search) {\n return;\n }\n\n this.search = search;\n this.searchChange.emit(search);\n }\n\n private updateValueWithNewCountryCode(\n prevCountryCode: string,\n newCountryCode: string,\n ): void {\n if (!this.isTextValue) {\n this.value = this.value.replace(prevCountryCode, newCountryCode);\n this.nativeValue = maskitoTransform(this.value, this.maskOptions);\n }\n }\n}\n","<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"canOpen\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n tuiValueAccessor\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCleaner]=\"canClean\"\n [(value)]=\"nativeValue\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n </tui-primitive-textfield>\n</div>\n","import {Directive, type DoCheck} from '@angular/core';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiInputPhoneComponent} from './input-phone.component';\n\n@Directive({\n standalone: false,\n selector: 'tui-input-phone',\n providers: [tuiAsTextfieldHost(TuiInputPhoneDirective)],\n})\nexport class TuiInputPhoneDirective\n extends AbstractTuiTextfieldHost<TuiInputPhoneComponent>\n implements DoCheck\n{\n protected input?: HTMLInputElement;\n\n public override get value(): string {\n return this.host.nativeValue;\n }\n\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n public override process(input: HTMLInputElement): void {\n this.input = input;\n }\n\n public ngDoCheck(): void {\n if (!this.input) {\n return;\n }\n\n this.input.type = 'tel';\n this.input.inputMode = this.host.inputMode;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TuiLegacyDropdownOpenMonitorDirective,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n} from '@taiga-ui/legacy/directives';\n\nimport {TuiInputPhoneComponent} from './input-phone.component';\nimport {TuiInputPhoneDirective} from './input-phone.directive';\n\n@NgModule({\n imports: [\n MaskitoDirective,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n TuiLegacyDropdownOpenMonitorDirective,\n ...TuiDropdown,\n ],\n declarations: [TuiInputPhoneComponent, TuiInputPhoneDirective],\n exports: [\n TuiInputPhoneComponent,\n TuiInputPhoneDirective,\n TuiTextfieldComponent,\n ...TuiDropdown,\n ],\n})\nexport class TuiInputPhoneModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AASa,MAAA,+BAA+B,GAAyB;AACjE,IAAA,yBAAyB,EAAE,eAAe;AAC1C,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,WAAW,EAAE,IAAI;EACnB;AAEF;;;AAGG;AACU,MAAA,uBAAuB,GAAG,IAAI,cAAc,CACrD,SAAS,GAAG,yBAAyB,GAAG,EAAE,EAC1C;AACI,IAAA,OAAO,EAAE,MAAM,+BAA+B;AACjD,CAAA,EACH;AAEI,SAAU,4BAA4B,CACxC,OAAsC,EAAA;IAEtC,OAAO,iBAAiB,CACpB,uBAAuB,EACvB,OAAO,EACP,+BAA+B,CAClC,CAAC;AACN;;AChCA,MAAM,WAAW,GAAG,CAAC,KAAa,KAAa,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC;AAElF;;;;;;AAMG;AACa,SAAA,2CAA2C,CACvD,WAAmB,EACnB,yBAAiC,EAAA;AAEjC,IAAA,MAAM,mBAAmB,GAAG,CAAC,WAAW,GAAG,yBAAyB,EAAE,UAAU,CAC5E,UAAU,EACV,EAAE,CACL,CAAC,MAAM,CAAC;IAET,MAAM,iBAAiB,GAAG,CAAC,KAAa,KACpC,WAAW,KAAK,IAAI;UACd,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC;UACxC,KAAK,CAAC,OAAO,CACT,IAAI,MAAM,CAAC,CAAA,UAAA,EAAa,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,EAC7D,EAAE,CACL,CAAC;AAEZ,IAAA,OAAO,CAAC,EAAC,YAAY,EAAE,IAAI,EAAC,KAAI;AAC5B,QAAA,MAAM,EAAC,KAAK,EAAE,SAAS,EAAC,GAAG,YAAY,CAAC;QAExC,OAAO;AACH,YAAA,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A,CAAA,2BAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,EAAA,CAAA,eAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,EAAA,CAAA,wBAAA,EAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAIhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAdxB,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB,EAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAYjB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAjB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,gBAAgB;wBAChB,2BAA2B;wBAC3B,4BAA4B;wBAC5B,sBAAsB;wBACtB,qCAAqC;AACrC,wBAAA,GAAG,WAAW;AACjB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;AAC9D,oBAAA,OAAO,EAAE;wBACL,sBAAsB;wBACtB,sBAAsB;wBACtB,qBAAqB;AACrB,wBAAA,GAAG,WAAW;AACjB,qBAAA;AACJ,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
@@ -1,188 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { inject, Component, ChangeDetectionStrategy, ViewChild, Input, Directive, NgModule } from '@angular/core';
4
- import { maskitoNumberOptionsGenerator } from '@maskito/kit';
5
- import { TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
6
- import { MIN_YEAR, MAX_YEAR } from '@taiga-ui/cdk/date-time';
7
- import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
8
- import { TUI_INPUT_DATE_OPTIONS } from '@taiga-ui/kit/tokens';
9
- import { AbstractTuiNullableControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
10
- import * as i3 from '@taiga-ui/legacy/components/primitive-textfield';
11
- import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldComponent } from '@taiga-ui/legacy/components/primitive-textfield';
12
- import * as i6 from '@taiga-ui/legacy/directives';
13
- import { TUI_TEXTFIELD_SIZE, TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives';
14
- import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
15
- import * as i1 from '@maskito/angular';
16
- import { MaskitoDirective } from '@maskito/angular';
17
- import * as i1$1 from '@taiga-ui/core/directives/dropdown';
18
- import { TuiDropdownOpen, TuiDropdown } from '@taiga-ui/core/directives/dropdown';
19
- import * as i4 from '@taiga-ui/core/components/scrollbar';
20
- import { TuiScrollbar } from '@taiga-ui/core/components/scrollbar';
21
- import * as i5 from '@taiga-ui/core/components/calendar';
22
- import { TuiCalendarYear } from '@taiga-ui/core/components/calendar';
23
-
24
- const UP_TO_4_DIGITS_REG = /^\d{0,4}$/;
25
- /**
26
- * TODO(v5): delete it
27
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-year TuiInputYear} (from @taiga-ui/kit) instead
28
- */
29
- class TuiInputYearComponent extends AbstractTuiNullableControl {
30
- constructor() {
31
- super(...arguments);
32
- this.options = inject(TUI_INPUT_DATE_OPTIONS);
33
- this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
34
- this.open = false;
35
- this.initialItem = new Date().getFullYear();
36
- this.min = this.options.min.year;
37
- this.max = this.options.max.year;
38
- this.disabledItemHandler = TUI_FALSE_HANDLER;
39
- this.nativeValue = '';
40
- }
41
- get nativeFocusableElement() {
42
- return this.textfield?.nativeFocusableElement || null;
43
- }
44
- get focused() {
45
- return !!this.textfield?.focused;
46
- }
47
- onValueChange(value) {
48
- this.value = value ? Number(value) : null;
49
- }
50
- writeValue(value) {
51
- super.writeValue(value);
52
- this.updateNativeValue(this.value);
53
- }
54
- get size() {
55
- return this.textfieldSize.size;
56
- }
57
- get calendarIcon() {
58
- return this.options.icon;
59
- }
60
- getMaskOptions(min, max) {
61
- return {
62
- ...maskitoNumberOptionsGenerator({
63
- min: min ?? MIN_YEAR,
64
- max: max ?? MAX_YEAR,
65
- thousandSeparator: '',
66
- }),
67
- mask: UP_TO_4_DIGITS_REG,
68
- };
69
- }
70
- onYearClick(year) {
71
- this.value = year;
72
- this.updateNativeValue(year);
73
- this.onOpenChange(false);
74
- }
75
- onFocused(focused) {
76
- this.updateFocused(focused);
77
- }
78
- onOpenChange(open) {
79
- this.open = open;
80
- }
81
- toggle() {
82
- this.open = !this.open;
83
- }
84
- updateNativeValue(value) {
85
- this.nativeValue = value?.toString() || '';
86
- }
87
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
88
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputYearComponent, selector: "tui-input-year", inputs: { min: "min", max: "max", disabledItemHandler: "disabledItemHandler" }, host: { properties: { "attr.data-size": "size" } }, providers: [
89
- tuiAsFocusableItemAccessor(TuiInputYearComponent),
90
- tuiAsControl(TuiInputYearComponent),
91
- ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"getMaskOptions(min, max)\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive\"\n [tuiDropdownOpen]=\"open && interactive\"\n [tuiTextfieldIcon]=\"calendarIcon\"\n [(value)]=\"nativeValue\"\n (click)=\"toggle()\"\n (focusedChange)=\"onFocused($event)\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #dropdown>\n <tui-scrollbar>\n <tui-calendar-year\n [disabledItemHandler]=\"disabledItemHandler\"\n [initialItem]=\"value || initialItem\"\n [max]=\"max\"\n [min]=\"min\"\n [value]=\"value === null ? null : value\"\n (mousedown.prevent.zoneless)=\"(0)\"\n (yearClick)=\"onYearClick($event)\"\n />\n </tui-scrollbar>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-textfield{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "directive", type: i1$1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }, { kind: "component", type: i3.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i3.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "component", type: i4.TuiScrollbar, selector: "tui-scrollbar", inputs: ["hidden"] }, { kind: "component", type: i5.TuiCalendarYear, selector: "tui-calendar-year", inputs: ["rangeMode", "disabledItemHandler", "initialItem", "min", "max", "value"], outputs: ["yearClick"] }, { kind: "directive", type: i6.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i1$1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
92
- }
93
- __decorate([
94
- tuiPure
95
- ], TuiInputYearComponent.prototype, "getMaskOptions", null);
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearComponent, decorators: [{
97
- type: Component,
98
- args: [{ standalone: false, selector: 'tui-input-year', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
99
- tuiAsFocusableItemAccessor(TuiInputYearComponent),
100
- tuiAsControl(TuiInputYearComponent),
101
- ], host: {
102
- '[attr.data-size]': 'size',
103
- }, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"getMaskOptions(min, max)\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive\"\n [tuiDropdownOpen]=\"open && interactive\"\n [tuiTextfieldIcon]=\"calendarIcon\"\n [(value)]=\"nativeValue\"\n (click)=\"toggle()\"\n (focusedChange)=\"onFocused($event)\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #dropdown>\n <tui-scrollbar>\n <tui-calendar-year\n [disabledItemHandler]=\"disabledItemHandler\"\n [initialItem]=\"value || initialItem\"\n [max]=\"max\"\n [min]=\"min\"\n [value]=\"value === null ? null : value\"\n (mousedown.prevent.zoneless)=\"(0)\"\n (yearClick)=\"onYearClick($event)\"\n />\n </tui-scrollbar>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-textfield{border-radius:inherit;text-align:inherit}\n"] }]
104
- }], propDecorators: { textfield: [{
105
- type: ViewChild,
106
- args: [TuiPrimitiveTextfieldComponent]
107
- }], min: [{
108
- type: Input
109
- }], max: [{
110
- type: Input
111
- }], disabledItemHandler: [{
112
- type: Input
113
- }], getMaskOptions: [] } });
114
-
115
- /**
116
- * TODO(v5): delete it
117
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-year TuiInputYear} (from @taiga-ui/kit) instead
118
- */
119
- class TuiInputYearDirective extends AbstractTuiTextfieldHost {
120
- get value() {
121
- return this.host.nativeValue;
122
- }
123
- onValueChange(value) {
124
- this.host.onValueChange(value);
125
- this.host.nativeValue = value;
126
- }
127
- process(input) {
128
- input.inputMode = 'numeric';
129
- }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
131
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputYearDirective, selector: "tui-input-year", providers: [tuiAsTextfieldHost(TuiInputYearDirective)], usesInheritance: true, ngImport: i0 }); }
132
- }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearDirective, decorators: [{
134
- type: Directive,
135
- args: [{
136
- standalone: false,
137
- selector: 'tui-input-year',
138
- providers: [tuiAsTextfieldHost(TuiInputYearDirective)],
139
- }]
140
- }] });
141
-
142
- /**
143
- * TODO(v5): delete it
144
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-year TuiInputYear} (from @taiga-ui/kit) instead
145
- */
146
- class TuiInputYearModule {
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
148
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearModule, declarations: [TuiInputYearComponent, TuiInputYearDirective], imports: [MaskitoDirective,
149
- TuiDropdownOpen,
150
- TuiPrimitiveTextfieldModule,
151
- TuiScrollbar,
152
- TuiCalendarYear,
153
- TuiTextfieldControllerModule, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection], exports: [TuiInputYearComponent,
154
- TuiInputYearDirective,
155
- TuiTextfieldComponent, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection] }); }
156
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearModule, imports: [TuiPrimitiveTextfieldModule,
157
- TuiScrollbar,
158
- TuiCalendarYear,
159
- TuiTextfieldControllerModule, i1$1.TuiDropdownComponent] }); }
160
- }
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputYearModule, decorators: [{
162
- type: NgModule,
163
- args: [{
164
- imports: [
165
- MaskitoDirective,
166
- TuiDropdownOpen,
167
- TuiPrimitiveTextfieldModule,
168
- TuiScrollbar,
169
- TuiCalendarYear,
170
- TuiTextfieldControllerModule,
171
- ...TuiDropdown,
172
- ],
173
- declarations: [TuiInputYearComponent, TuiInputYearDirective],
174
- exports: [
175
- TuiInputYearComponent,
176
- TuiInputYearDirective,
177
- TuiTextfieldComponent,
178
- ...TuiDropdown,
179
- ],
180
- }]
181
- }] });
182
-
183
- /**
184
- * Generated bundle index. Do not edit.
185
- */
186
-
187
- export { TuiInputYearComponent, TuiInputYearDirective, TuiInputYearModule };
188
- //# sourceMappingURL=taiga-ui-legacy-components-input-year.mjs.map