@taiga-ui/kit 3.22.0 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/abstract/abstract-native-select.d.ts +18 -0
  2. package/abstract/index.d.ts +1 -0
  3. package/abstract/package.json +10 -0
  4. package/abstract/taiga-ui-kit-abstract.d.ts +5 -0
  5. package/bundles/taiga-ui-kit-abstract.umd.js +87 -0
  6. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -0
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js +2 -2
  8. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-avatar.umd.js +1 -1
  10. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-badge.umd.js +3 -3
  12. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-badged-content.umd.js +3 -3
  14. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-carousel.umd.js +1 -1
  16. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +5 -4
  18. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +3 -2
  20. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -2
  22. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-combo-box.umd.js +7 -6
  24. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-files.umd.js +1 -1
  27. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-filter.umd.js +2 -2
  29. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-input-copy.umd.js +2 -2
  31. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-input-count.umd.js +5 -4
  33. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +16 -13
  35. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +4 -4
  37. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-input-date.umd.js +6 -5
  39. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-input-files.umd.js +5 -5
  41. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-input-inline.umd.js +3 -2
  43. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +3 -3
  45. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-month.umd.js +2 -2
  47. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-input-number.umd.js +4 -5
  49. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-password.umd.js +2 -2
  51. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +7 -6
  53. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-phone.umd.js +4 -4
  55. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-range.umd.js +1 -1
  57. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-slider.umd.js +2 -2
  59. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-tag.umd.js +10 -10
  61. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-time.umd.js +6 -7
  63. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-year.umd.js +2 -2
  65. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input.umd.js +2 -2
  67. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +2 -2
  69. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-multi-select.umd.js +59 -87
  71. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-push.umd.js +1 -1
  73. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-radio-block.umd.js +5 -4
  75. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +3 -2
  77. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-radio-list.umd.js +5 -4
  79. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-radio.umd.js +1 -1
  81. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-range.umd.js +2 -2
  83. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-rating.umd.js +2 -2
  85. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-select.umd.js +38 -83
  87. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-slider.umd.js +1 -1
  89. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-stepper.umd.js +10 -3
  91. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -1
  93. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-tag.umd.js +2 -12
  95. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-text-area.umd.js +2 -2
  97. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-toggle.umd.js +6 -14
  99. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-tree.umd.js +3 -3
  101. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit.umd.js +10 -4
  103. package/bundles/taiga-ui-kit.umd.js.map +1 -1
  104. package/components/checkbox/checkbox.component.d.ts +1 -0
  105. package/components/checkbox-block/checkbox-block.component.d.ts +1 -0
  106. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -0
  107. package/components/combo-box/combo-box.component.d.ts +1 -0
  108. package/components/data-list-wrapper/data-list-wrapper.d.ts +1 -1
  109. package/components/input-count/input-count.component.d.ts +1 -0
  110. package/components/input-date-range/input-date-range.component.d.ts +1 -0
  111. package/components/input-inline/input-inline.component.d.ts +1 -0
  112. package/components/input-phone-international/input-phone-international.component.d.ts +1 -0
  113. package/components/input-tag/input-tag.component.d.ts +2 -2
  114. package/components/multi-select/multi-select.component.d.ts +2 -1
  115. package/components/multi-select/multi-select.directive.d.ts +1 -1
  116. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +1 -1
  117. package/components/multi-select/native-multi-select/native-multi-select.d.ts +4 -12
  118. package/components/radio-block/radio-block.component.d.ts +1 -0
  119. package/components/radio-labeled/radio-labeled.component.d.ts +1 -0
  120. package/components/radio-list/radio-list.component.d.ts +1 -0
  121. package/components/select/index.d.ts +0 -1
  122. package/components/select/native-select/native-select-group.component.d.ts +1 -1
  123. package/components/select/native-select/native-select.component.d.ts +1 -1
  124. package/components/stepper/stepper.component.d.ts +3 -1
  125. package/components/tag/tag.component.d.ts +0 -1
  126. package/components/toggle/toggle.component.d.ts +1 -1
  127. package/esm2015/abstract/abstract-native-select.js +49 -0
  128. package/esm2015/abstract/index.js +2 -0
  129. package/esm2015/abstract/taiga-ui-kit-abstract.js +5 -0
  130. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +3 -3
  131. package/esm2015/components/avatar/avatar.component.js +1 -1
  132. package/esm2015/components/badge/badge.component.js +4 -4
  133. package/esm2015/components/badged-content/badged-content.component.js +4 -4
  134. package/esm2015/components/carousel/carousel.component.js +1 -1
  135. package/esm2015/components/checkbox/checkbox.component.js +4 -3
  136. package/esm2015/components/checkbox-block/checkbox-block.component.js +6 -5
  137. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +4 -3
  138. package/esm2015/components/combo-box/combo-box-strict.directive.js +2 -2
  139. package/esm2015/components/combo-box/combo-box.component.js +7 -6
  140. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +1 -1
  141. package/esm2015/components/files/files.component.js +1 -1
  142. package/esm2015/components/filter/filter.component.js +3 -3
  143. package/esm2015/components/input/input.component.js +3 -3
  144. package/esm2015/components/input-copy/input-copy.component.js +3 -3
  145. package/esm2015/components/input-count/input-count.component.js +6 -5
  146. package/esm2015/components/input-date/input-date.component.js +7 -6
  147. package/esm2015/components/input-date-range/input-date-range.component.js +17 -14
  148. package/esm2015/components/input-date-time/input-date-time.component.js +5 -5
  149. package/esm2015/components/input-files/input-files.component.js +6 -6
  150. package/esm2015/components/input-inline/input-inline.component.js +4 -3
  151. package/esm2015/components/input-month/input-month.component.js +3 -3
  152. package/esm2015/components/input-month-range/input-month-range.component.js +4 -4
  153. package/esm2015/components/input-number/input-number.component.js +5 -6
  154. package/esm2015/components/input-password/input-password.component.js +3 -3
  155. package/esm2015/components/input-phone/input-phone.component.js +5 -5
  156. package/esm2015/components/input-phone-international/input-phone-international.component.js +8 -7
  157. package/esm2015/components/input-range/input-range.component.js +2 -2
  158. package/esm2015/components/input-slider/input-slider.component.js +3 -3
  159. package/esm2015/components/input-tag/input-tag.component.js +11 -11
  160. package/esm2015/components/input-time/input-time.component.js +7 -8
  161. package/esm2015/components/input-year/input-year.component.js +3 -3
  162. package/esm2015/components/line-clamp/line-clamp-box.component.js +2 -2
  163. package/esm2015/components/line-clamp/line-clamp.component.js +1 -1
  164. package/esm2015/components/multi-select/multi-select.component.js +16 -9
  165. package/esm2015/components/multi-select/multi-select.directive.js +2 -4
  166. package/esm2015/components/multi-select/native-multi-select/native-multi-select-group.component.js +5 -4
  167. package/esm2015/components/multi-select/native-multi-select/native-multi-select.component.js +5 -4
  168. package/esm2015/components/multi-select/native-multi-select/native-multi-select.js +9 -41
  169. package/esm2015/components/push/push.component.js +1 -1
  170. package/esm2015/components/radio/radio.component.js +2 -2
  171. package/esm2015/components/radio-block/radio-block.component.js +6 -5
  172. package/esm2015/components/radio-labeled/radio-labeled.component.js +4 -3
  173. package/esm2015/components/radio-list/radio-list.component.js +6 -5
  174. package/esm2015/components/range/range.component.js +3 -3
  175. package/esm2015/components/rating/rating.component.js +3 -3
  176. package/esm2015/components/select/index.js +1 -2
  177. package/esm2015/components/select/native-select/native-select-group.component.js +3 -3
  178. package/esm2015/components/select/native-select/native-select.component.js +3 -3
  179. package/esm2015/components/select/select.component.js +6 -6
  180. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +2 -2
  181. package/esm2015/components/stepper/stepper.component.js +10 -5
  182. package/esm2015/components/tabs/tab/tab.component.js +1 -1
  183. package/esm2015/components/tag/tag.component.js +3 -9
  184. package/esm2015/components/text-area/text-area.component.js +3 -3
  185. package/esm2015/components/toggle/toggle.component.js +7 -11
  186. package/esm2015/components/tree/components/tree/tree.component.js +4 -4
  187. package/esm2015/index.js +2 -1
  188. package/fesm2015/taiga-ui-kit-abstract.js +56 -0
  189. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -0
  190. package/fesm2015/taiga-ui-kit-components-accordion.js +2 -2
  191. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  192. package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
  193. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  194. package/fesm2015/taiga-ui-kit-components-badge.js +3 -3
  195. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  196. package/fesm2015/taiga-ui-kit-components-badged-content.js +3 -3
  197. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  198. package/fesm2015/taiga-ui-kit-components-carousel.js +1 -1
  199. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  200. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +5 -4
  201. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  202. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +3 -2
  203. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  204. package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -2
  205. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  206. package/fesm2015/taiga-ui-kit-components-combo-box.js +7 -6
  207. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  208. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  209. package/fesm2015/taiga-ui-kit-components-files.js +1 -1
  210. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  211. package/fesm2015/taiga-ui-kit-components-filter.js +2 -2
  212. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  213. package/fesm2015/taiga-ui-kit-components-input-copy.js +2 -2
  214. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  215. package/fesm2015/taiga-ui-kit-components-input-count.js +5 -4
  216. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  217. package/fesm2015/taiga-ui-kit-components-input-date-range.js +16 -13
  218. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  219. package/fesm2015/taiga-ui-kit-components-input-date-time.js +4 -4
  220. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  221. package/fesm2015/taiga-ui-kit-components-input-date.js +6 -5
  222. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  223. package/fesm2015/taiga-ui-kit-components-input-files.js +5 -5
  224. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  225. package/fesm2015/taiga-ui-kit-components-input-inline.js +3 -2
  226. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  227. package/fesm2015/taiga-ui-kit-components-input-month-range.js +3 -3
  228. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  229. package/fesm2015/taiga-ui-kit-components-input-month.js +2 -2
  230. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  231. package/fesm2015/taiga-ui-kit-components-input-number.js +4 -5
  232. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  233. package/fesm2015/taiga-ui-kit-components-input-password.js +2 -2
  234. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  235. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +7 -6
  236. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  237. package/fesm2015/taiga-ui-kit-components-input-phone.js +4 -4
  238. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  239. package/fesm2015/taiga-ui-kit-components-input-range.js +1 -1
  240. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  241. package/fesm2015/taiga-ui-kit-components-input-slider.js +2 -2
  242. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  243. package/fesm2015/taiga-ui-kit-components-input-tag.js +10 -10
  244. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  245. package/fesm2015/taiga-ui-kit-components-input-time.js +6 -7
  246. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  247. package/fesm2015/taiga-ui-kit-components-input-year.js +2 -2
  248. package/fesm2015/taiga-ui-kit-components-input-year.js.map +1 -1
  249. package/fesm2015/taiga-ui-kit-components-input.js +2 -2
  250. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  251. package/fesm2015/taiga-ui-kit-components-line-clamp.js +2 -2
  252. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  253. package/fesm2015/taiga-ui-kit-components-multi-select.js +47 -70
  254. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  255. package/fesm2015/taiga-ui-kit-components-push.js +1 -1
  256. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  257. package/fesm2015/taiga-ui-kit-components-radio-block.js +5 -4
  258. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  259. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +3 -2
  260. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  261. package/fesm2015/taiga-ui-kit-components-radio-list.js +5 -4
  262. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  263. package/fesm2015/taiga-ui-kit-components-radio.js +1 -1
  264. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  265. package/fesm2015/taiga-ui-kit-components-range.js +2 -2
  266. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  267. package/fesm2015/taiga-ui-kit-components-rating.js +2 -2
  268. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  269. package/fesm2015/taiga-ui-kit-components-select.js +16 -52
  270. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  271. package/fesm2015/taiga-ui-kit-components-slider.js +1 -1
  272. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  273. package/fesm2015/taiga-ui-kit-components-stepper.js +9 -4
  274. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  275. package/fesm2015/taiga-ui-kit-components-tabs.js +1 -1
  276. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  277. package/fesm2015/taiga-ui-kit-components-tag.js +2 -8
  278. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  279. package/fesm2015/taiga-ui-kit-components-text-area.js +2 -2
  280. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  281. package/fesm2015/taiga-ui-kit-components-toggle.js +6 -10
  282. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  283. package/fesm2015/taiga-ui-kit-components-tree.js +3 -3
  284. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  285. package/fesm2015/taiga-ui-kit.js +1 -0
  286. package/fesm2015/taiga-ui-kit.js.map +1 -1
  287. package/index.d.ts +1 -0
  288. package/package.json +5 -4
  289. package/components/select/native-select/native-select.d.ts +0 -15
  290. package/esm2015/components/select/native-select/native-select.js +0 -42
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-line-clamp.js","sources":["../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-options.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/line-clamp.module.ts","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding} from '@angular/core';\nimport {TuiDestroyService, TuiHoveredService} from '@taiga-ui/cdk';\nimport {\n tuiFadeIn,\n TuiHintComponent,\n TuiHintDirective,\n tuiPositionAccessorFor,\n TuiPositionService,\n tuiRectAccessorFor,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-line-clamp-box',\n template: `\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n `,\n styleUrls: ['./line-clamp-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TuiDestroyService,\n TuiPositionService,\n TuiHoveredService,\n tuiPositionAccessorFor('hint'),\n tuiRectAccessorFor('hint', TuiHintDirective),\n ],\n animations: [tuiFadeIn],\n})\nexport class TuiLineClampBoxComponent extends TuiHintComponent {\n @HostBinding('style.minWidth.px')\n get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {InjectionToken, ValueProvider} from '@angular/core';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = new InjectionToken<TuiLineClampOptions>(\n `[TUI_LINE_CLAMP_OPTIONS]`,\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiLineClampOptionsProvider: (\n options: Partial<TuiLineClampOptions>,\n) => ValueProvider = (options: Partial<TuiLineClampOptions>) => ({\n provide: TUI_LINE_CLAMP_OPTIONS,\n useValue: {...TUI_LINE_CLAMP_DEFAULT_OPTIONS, ...options},\n});\n","import {Directive, Inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiHintDirective,\n TuiPoint,\n TuiPositionAccessor,\n TuiRectAccessor,\n} from '@taiga-ui/core';\n\n@Directive({\n selector: '[tuiHintCustomPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n readonly type = 'hint';\n\n constructor(@Inject(TuiHintDirective) private readonly accessor: TuiRectAccessor) {\n super();\n }\n\n getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DoCheck,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n NgZone,\n Output,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport {\n tuiDefaultProp,\n tuiIsCurrentTarget,\n tuiTypedFromEvent,\n tuiZonefree,\n} from '@taiga-ui/cdk';\nimport {TUI_HINT_COMPONENT, TuiHintDirective} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, of, Subject, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n pairwise,\n startWith,\n switchMap,\n} from 'rxjs/operators';\n\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\nimport {TUI_LINE_CLAMP_OPTIONS, TuiLineClampOptions} from './line-clamp-options';\n\n@Component({\n selector: 'tui-line-clamp',\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_HINT_COMPONENT,\n useValue: TuiLineClampBoxComponent,\n },\n ],\n})\nexport class TuiLineClampComponent implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n private initialized = false;\n\n @HostBinding('style.maxHeight.px')\n maxHeight: number | null = null;\n\n @HostBinding('style.height.px')\n height = 0;\n\n @Input()\n @tuiDefaultProp()\n set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n @Input()\n @tuiDefaultProp()\n lineHeight = 24;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Output()\n readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n distinctUntilChanged(),\n );\n\n lineClamp$ = this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.elementRef.nativeElement, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n );\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ChangeDetectorRef) private readonly cd: ChangeDetectorRef,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(TUI_LINE_CLAMP_OPTIONS) private readonly options: TuiLineClampOptions,\n ) {\n this.skipInitialTransition();\n }\n\n get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientHeight, clientWidth} = this.elementRef.nativeElement;\n\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n return scrollHeight - clientHeight > 4 || scrollWidth - clientWidth > 0;\n }\n\n get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n @HostListener('transitionend')\n updateView(): void {\n this.cd.detectChanges();\n }\n\n ngAfterViewInit(): void {\n this.initialized = true;\n }\n\n ngDoCheck(): void {\n this.updateStaticallyHostBinding();\n this.isOverflown$.next(this.overflown);\n }\n\n private skipInitialTransition(): void {\n timer(0)\n .pipe(tuiZonefree(this.ngZone))\n .subscribe(() => {\n this.renderer.addClass(this.elementRef.nativeElement, '_initialized');\n this.cd.detectChanges();\n });\n }\n\n private updateStaticallyHostBinding(): void {\n if (this.outlet) {\n this.height = this.outlet.nativeElement.scrollHeight + 4;\n }\n\n if (this.initialized) {\n this.maxHeight = this.lineHeight * this.linesLimit$.value;\n }\n }\n}\n","<div\n *tuiLet=\"lineClamp$ | async as lineClamp\"\n tuiHintCustomPosition\n class=\"t-wrapper\"\n [tuiHint]=\"computedContent\"\n [style.-webkit-line-clamp]=\"lineClamp\"\n [style.word-break]=\"(lineClamp || 0) > 1 ? 'break-word' : 'break-all'\"\n (tuiResize)=\"updateView()\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule, TuiResizeModule} from '@taiga-ui/cdk';\nimport {TuiHintModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiLineClampComponent} from './line-clamp.component';\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiHintModule,\n TuiResizeModule,\n TuiLetModule,\n ],\n declarations: [\n TuiLineClampComponent,\n TuiLineClampBoxComponent,\n TuiLineClampPositionDirective,\n ],\n exports: [TuiLineClampComponent],\n})\nexport class TuiLineClampModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.TuiLineClampPositionDirective","i4"],"mappings":";;;;;;;;;;;;;;AA2BM,MAAO,wBAAyB,SAAQ,gBAAgB,CAAA;AAC1D,IAAA,IACI,KAAK,GAAA;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC;KAC9C;;sHAJQ,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,EATtB,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA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,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-line-clamp.js","sources":["../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-options.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/line-clamp.module.ts","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding} from '@angular/core';\nimport {TuiDestroyService, TuiHoveredService} from '@taiga-ui/cdk';\nimport {\n tuiFadeIn,\n TuiHintComponent,\n TuiHintDirective,\n tuiPositionAccessorFor,\n TuiPositionService,\n tuiRectAccessorFor,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-line-clamp-box',\n template: `\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n `,\n styleUrls: ['./line-clamp-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TuiDestroyService,\n TuiPositionService,\n TuiHoveredService,\n tuiPositionAccessorFor('hint'),\n tuiRectAccessorFor('hint', TuiHintDirective),\n ],\n animations: [tuiFadeIn],\n})\nexport class TuiLineClampBoxComponent extends TuiHintComponent {\n @HostBinding('style.minWidth.px')\n get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {InjectionToken, ValueProvider} from '@angular/core';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = new InjectionToken<TuiLineClampOptions>(\n `[TUI_LINE_CLAMP_OPTIONS]`,\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiLineClampOptionsProvider: (\n options: Partial<TuiLineClampOptions>,\n) => ValueProvider = (options: Partial<TuiLineClampOptions>) => ({\n provide: TUI_LINE_CLAMP_OPTIONS,\n useValue: {...TUI_LINE_CLAMP_DEFAULT_OPTIONS, ...options},\n});\n","import {Directive, Inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiHintDirective,\n TuiPoint,\n TuiPositionAccessor,\n TuiRectAccessor,\n} from '@taiga-ui/core';\n\n@Directive({\n selector: '[tuiHintCustomPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n readonly type = 'hint';\n\n constructor(@Inject(TuiHintDirective) private readonly accessor: TuiRectAccessor) {\n super();\n }\n\n getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DoCheck,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n NgZone,\n Output,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport {\n tuiDefaultProp,\n tuiIsCurrentTarget,\n tuiTypedFromEvent,\n tuiZonefree,\n} from '@taiga-ui/cdk';\nimport {TUI_HINT_COMPONENT, TuiHintDirective} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, of, Subject, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n pairwise,\n startWith,\n switchMap,\n} from 'rxjs/operators';\n\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\nimport {TUI_LINE_CLAMP_OPTIONS, TuiLineClampOptions} from './line-clamp-options';\n\n@Component({\n selector: 'tui-line-clamp',\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_HINT_COMPONENT,\n useValue: TuiLineClampBoxComponent,\n },\n ],\n})\nexport class TuiLineClampComponent implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n private initialized = false;\n\n @HostBinding('style.maxHeight.px')\n maxHeight: number | null = null;\n\n @HostBinding('style.height.px')\n height = 0;\n\n @Input()\n @tuiDefaultProp()\n set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n @Input()\n @tuiDefaultProp()\n lineHeight = 24;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Output()\n readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n distinctUntilChanged(),\n );\n\n lineClamp$ = this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.elementRef.nativeElement, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n );\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ChangeDetectorRef) private readonly cd: ChangeDetectorRef,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(TUI_LINE_CLAMP_OPTIONS) private readonly options: TuiLineClampOptions,\n ) {\n this.skipInitialTransition();\n }\n\n get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientHeight, clientWidth} = this.elementRef.nativeElement;\n\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n return scrollHeight - clientHeight > 4 || scrollWidth - clientWidth > 0;\n }\n\n get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n @HostListener('transitionend')\n updateView(): void {\n this.cd.detectChanges();\n }\n\n ngAfterViewInit(): void {\n this.initialized = true;\n }\n\n ngDoCheck(): void {\n this.updateStaticallyHostBinding();\n this.isOverflown$.next(this.overflown);\n }\n\n private skipInitialTransition(): void {\n timer(0)\n .pipe(tuiZonefree(this.ngZone))\n .subscribe(() => {\n this.renderer.addClass(this.elementRef.nativeElement, '_initialized');\n this.cd.detectChanges();\n });\n }\n\n private updateStaticallyHostBinding(): void {\n if (this.outlet) {\n this.height = this.outlet.nativeElement.scrollHeight + 4;\n }\n\n if (this.initialized) {\n this.maxHeight = this.lineHeight * this.linesLimit$.value;\n }\n }\n}\n","<div\n *tuiLet=\"lineClamp$ | async as lineClamp\"\n tuiHintCustomPosition\n class=\"t-wrapper\"\n [tuiHint]=\"computedContent\"\n [style.-webkit-line-clamp]=\"lineClamp\"\n [style.word-break]=\"(lineClamp || 0) > 1 ? 'break-word' : 'break-all'\"\n (tuiResize)=\"updateView()\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule, TuiResizeModule} from '@taiga-ui/cdk';\nimport {TuiHintModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiLineClampComponent} from './line-clamp.component';\nimport {TuiLineClampBoxComponent} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiHintModule,\n TuiResizeModule,\n TuiLetModule,\n ],\n declarations: [\n TuiLineClampComponent,\n TuiLineClampBoxComponent,\n TuiLineClampPositionDirective,\n ],\n exports: [TuiLineClampComponent],\n})\nexport class TuiLineClampModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.TuiLineClampPositionDirective","i4"],"mappings":";;;;;;;;;;;;;;AA2BM,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A,EAAA,IAAA,EAAA,kBAAkB,EAdlB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,kBAAkB;YAClB,aAAa;YACb,eAAe;YACf,YAAY;AACf,SAAA,CAAA,EAAA,CAAA,CAAA;4FAQQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAf9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,aAAa;wBACb,eAAe;wBACf,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,qBAAqB;wBACrB,wBAAwB;wBACxB,6BAA6B;AAChC,qBAAA;oBACD,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
@@ -1,19 +1,20 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, Directive, ElementRef, ChangeDetectorRef, TemplateRef, Inject, ViewChild, HostBinding, EventEmitter, Component, ChangeDetectionStrategy, Optional, Self, ContentChild, Input, Output, Pipe, ContentChildren, forwardRef, NgModule } from '@angular/core';
3
+ import { InjectionToken, Directive, EventEmitter, ChangeDetectorRef, TemplateRef, Component, ChangeDetectionStrategy, Optional, Self, Inject, ContentChild, ViewChild, Input, HostBinding, Output, Pipe, ContentChildren, forwardRef, NgModule } from '@angular/core';
4
4
  import * as i3 from '@taiga-ui/cdk';
5
- import { AbstractTuiControl, TuiIdService, AbstractTuiMultipleControl, EMPTY_ARRAY, tuiIsString, tuiArrayToggle, tuiIsNativeFocused, TUI_IS_MOBILE, tuiAsFocusableItemAccessor, tuiAsControl, tuiDefaultProp, tuiPure, EMPTY_QUERY, tuiQueryListChanges, tuiGetOriginalArrayFromQueryList, TUI_DEFAULT_IDENTITY_MATCHER, tuiIsPresent, tuiControlValue, EMPTY_FUNCTION, TuiPreventDefaultModule, TuiActiveZoneModule, TuiLetModule, TuiMapperPipeModule } from '@taiga-ui/cdk';
5
+ import { AbstractTuiMultipleControl, ALWAYS_TRUE_HANDLER, EMPTY_ARRAY, tuiIsString, tuiArrayToggle, tuiIsNativeFocused, TUI_IS_MOBILE, tuiAsFocusableItemAccessor, tuiAsControl, tuiDefaultProp, tuiPure, EMPTY_QUERY, tuiQueryListChanges, tuiGetOriginalArrayFromQueryList, TUI_DEFAULT_IDENTITY_MATCHER, tuiIsPresent, tuiControlValue, EMPTY_FUNCTION, TuiPreventDefaultModule, TuiActiveZoneModule, TuiLetModule, TuiMapperPipeModule } from '@taiga-ui/cdk';
6
6
  import { tuiIsFlat } from '@taiga-ui/kit/utils';
7
7
  import * as i4 from '@angular/forms';
8
8
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
9
9
  import * as i1 from '@taiga-ui/core';
10
- import { AbstractTuiTextfieldHost, tuiAsTextfieldHost, TUI_TEXTFIELD_HOST, TuiDataListDirective, TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiAsDataListHost, TEXTFIELD_CONTROLLER_PROVIDER, TUI_DATA_LIST_ACCESSOR, TuiHostedDropdownComponent, TUI_DATA_LIST_HOST, TuiOptionComponent, tuiAsOptionContent, tuiAsDataList, TuiWrapperModule, TuiSvgModule, TuiHostedDropdownModule, TuiLinkModule, TuiDataListModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
10
+ import { TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiAsDataListHost, TEXTFIELD_CONTROLLER_PROVIDER, TUI_DATA_LIST_ACCESSOR, TuiDataListDirective, TuiHostedDropdownComponent, AbstractTuiTextfieldHost, tuiAsTextfieldHost, TUI_DATA_LIST_HOST, TuiOptionComponent, tuiAsOptionContent, tuiAsDataList, TuiWrapperModule, TuiSvgModule, TuiHostedDropdownModule, TuiLinkModule, TuiDataListModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
11
11
  import { TuiStringifiableItem } from '@taiga-ui/kit/classes';
12
12
  import { TUI_ARROW_MODE, TuiArrowModule } from '@taiga-ui/kit/components/arrow';
13
13
  import * as i2 from '@taiga-ui/kit/components/input-tag';
14
14
  import { TuiInputTagComponent, TuiInputTagModule } from '@taiga-ui/kit/components/input-tag';
15
15
  import { FIXED_DROPDOWN_CONTROLLER_PROVIDER } from '@taiga-ui/kit/providers';
16
16
  import { TUI_ITEMS_HANDLERS, TUI_MULTI_SELECT_TEXTS } from '@taiga-ui/kit/tokens';
17
+ import { AbstractTuiNativeSelect } from '@taiga-ui/kit/abstract';
17
18
  import * as i2$1 from '@angular/common';
18
19
  import { CommonModule } from '@angular/common';
19
20
  import * as i6 from '@tinkoff/ng-polymorpheus';
@@ -39,75 +40,21 @@ const tuiMultiSelectOptionsProvider = (options) => ({
39
40
  useValue: Object.assign(Object.assign({}, TUI_MULTI_SELECT_DEFAULT_OPTIONS), options),
40
41
  });
41
42
 
42
- class TuiMultiSelectDirective extends AbstractTuiTextfieldHost {
43
+ class AbstractTuiNativeMultiSelect extends AbstractTuiNativeSelect {
43
44
  constructor() {
44
45
  super(...arguments);
45
- this.disableItemHandler = item => this.host.disabledItemHandler(item);
46
- }
47
- get readOnly() {
48
- return true;
49
- }
50
- onValueChange(_) {
51
- //
52
- }
53
- onSelectionChange(value) {
54
- this.host.onValueChange(value);
55
- }
56
- }
57
- TuiMultiSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiMultiSelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
58
- TuiMultiSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectDirective, selector: "tui-multi-select", providers: [tuiAsTextfieldHost(TuiMultiSelectDirective)], usesInheritance: true, ngImport: i0 });
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiMultiSelectDirective, decorators: [{
60
- type: Directive,
61
- args: [{
62
- selector: 'tui-multi-select',
63
- providers: [tuiAsTextfieldHost(TuiMultiSelectDirective)],
64
- }]
65
- }] });
66
-
67
- class AbstractTuiNativeMultiSelect {
68
- constructor(host, control, elementRef, idService, cdr) {
69
- this.host = host;
70
- this.control = control;
71
- this.elementRef = elementRef;
72
- this.idService = idService;
73
- this.cdr = cdr;
74
- this.datalist = null;
75
46
  this.selectedMapper = (option, value) => value.includes(option);
76
47
  }
77
- get id() {
78
- return this.elementRef.nativeElement.id || this.idService.generate();
79
- }
80
48
  onValueChange() {
81
49
  const { selectedOptions } = this.elementRef.nativeElement;
82
50
  this.host.onSelectionChange(Array.from(selectedOptions).map(option => option.value));
83
51
  }
84
52
  }
85
- AbstractTuiNativeMultiSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AbstractTuiNativeMultiSelect, deps: [{ token: TUI_TEXTFIELD_HOST }, { token: AbstractTuiControl }, { token: ElementRef }, { token: TuiIdService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
86
- AbstractTuiNativeMultiSelect.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiNativeMultiSelect, host: { properties: { "id": "this.id" } }, viewQueries: [{ propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 });
53
+ AbstractTuiNativeMultiSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AbstractTuiNativeMultiSelect, deps: null, target: i0.ɵɵFactoryTarget.Directive });
54
+ AbstractTuiNativeMultiSelect.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AbstractTuiNativeMultiSelect, usesInheritance: true, ngImport: i0 });
87
55
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AbstractTuiNativeMultiSelect, decorators: [{
88
56
  type: Directive
89
- }], ctorParameters: function () { return [{ type: TuiMultiSelectDirective, decorators: [{
90
- type: Inject,
91
- args: [TUI_TEXTFIELD_HOST]
92
- }] }, { type: i3.AbstractTuiControl, decorators: [{
93
- type: Inject,
94
- args: [AbstractTuiControl]
95
- }] }, { type: i0.ElementRef, decorators: [{
96
- type: Inject,
97
- args: [ElementRef]
98
- }] }, { type: i3.TuiIdService, decorators: [{
99
- type: Inject,
100
- args: [TuiIdService]
101
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
102
- type: Inject,
103
- args: [ChangeDetectorRef]
104
- }] }]; }, propDecorators: { datalist: [{
105
- type: ViewChild,
106
- args: [TuiDataListDirective, { read: TemplateRef, static: true }]
107
- }], id: [{
108
- type: HostBinding,
109
- args: [`id`]
110
- }] } });
57
+ }] });
111
58
 
112
59
  class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
113
60
  constructor(control, changeDetectorRef, arrowMode, itemsHandlers, options, controller, isMobile) {
@@ -125,6 +72,7 @@ class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
125
72
  this.editable = true;
126
73
  this.disabledItemHandler = this.itemsHandlers.disabledItemHandler;
127
74
  this.valueContent = this.options.valueContent;
75
+ this.tagValidator = ALWAYS_TRUE_HANDLER;
128
76
  this.rows = Infinity;
129
77
  this.searchChange = new EventEmitter();
130
78
  this.datalist = '';
@@ -138,7 +86,7 @@ class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
138
86
  return this.controller.size;
139
87
  }
140
88
  get arrow() {
141
- return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;
89
+ return this.interactive ? this.arrowMode.interactive : this.arrowMode.disabled;
142
90
  }
143
91
  get nativeFocusableElement() {
144
92
  var _a, _b;
@@ -180,7 +128,8 @@ class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
180
128
  handleOption(option) {
181
129
  const { value, identityMatcher } = this;
182
130
  const index = value.findIndex(item => identityMatcher(item, option));
183
- this.updateValue(index === -1 ? [...value, option] : value.filter((_, i) => i !== index));
131
+ this.value =
132
+ index === -1 ? [...value, option] : value.filter((_, i) => i !== index);
184
133
  this.updateSearch(null);
185
134
  }
186
135
  onEnter(event) {
@@ -190,7 +139,7 @@ class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
190
139
  return;
191
140
  }
192
141
  event.preventDefault();
193
- this.updateValue(tuiArrayToggle(value, options[0]));
142
+ this.value = tuiArrayToggle(value, options[0]);
194
143
  this.updateSearch(null);
195
144
  }
196
145
  onClick({ nativeFocusableElement }) {
@@ -202,10 +151,10 @@ class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
202
151
  }
203
152
  }
204
153
  onInput(value) {
205
- this.updateValue(value.map(({ item }) => item));
154
+ this.value = value.map(({ item }) => item);
206
155
  }
207
156
  onValueChange(value) {
208
- this.updateValue(value);
157
+ this.value = value;
209
158
  }
210
159
  onSearch(search) {
211
160
  this.updateSearch(search);
@@ -226,12 +175,12 @@ class TuiMultiSelectComponent extends AbstractTuiMultipleControl {
226
175
  }
227
176
  }
228
177
  TuiMultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiMultiSelectComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_ARROW_MODE }, { token: TUI_ITEMS_HANDLERS }, { token: TUI_MULTI_SELECT_OPTIONS }, { token: TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: TUI_IS_MOBILE }], target: i0.ɵɵFactoryTarget.Component });
229
- TuiMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectComponent, selector: "tui-multi-select", inputs: { stringify: "stringify", identityMatcher: "identityMatcher", expandable: "expandable", search: "search", placeholder: "placeholder", editable: "editable", disabledItemHandler: "disabledItemHandler", valueContent: "valueContent", rows: "rows" }, outputs: { searchChange: "searchChange" }, host: { properties: { "class._editable": "this.editable", "attr.data-size": "this.size" } }, providers: [
178
+ TuiMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectComponent, selector: "tui-multi-select", inputs: { stringify: "stringify", identityMatcher: "identityMatcher", expandable: "expandable", search: "search", placeholder: "placeholder", editable: "editable", disabledItemHandler: "disabledItemHandler", valueContent: "valueContent", tagValidator: "tagValidator", rows: "rows" }, outputs: { searchChange: "searchChange" }, host: { properties: { "class._editable": "this.editable", "attr.data-size": "this.size" } }, providers: [
230
179
  tuiAsFocusableItemAccessor(TuiMultiSelectComponent),
231
180
  tuiAsControl(TuiMultiSelectComponent),
232
181
  tuiAsDataListHost(TuiMultiSelectComponent),
233
182
  TEXTFIELD_CONTROLLER_PROVIDER,
234
- ], queries: [{ propertyName: "accessor", first: true, predicate: TUI_DATA_LIST_ACCESSOR, descendants: true }, { propertyName: "nativeSelect", first: true, predicate: AbstractTuiNativeMultiSelect, descendants: true, static: true }, { propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "hostedDropdown", first: true, predicate: TuiHostedDropdownComponent, descendants: true }, { propertyName: "input", first: true, predicate: TuiInputTagComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive && !nativeDropdownMode\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-tag\n #inputTag\n automation-id=\"tui-multi-select__input\"\n class=\"t-input\"\n [nativeId]=\"nativeId\"\n [tuiTextfieldIcon]=\"icon\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper : disabledItemHandlerWrapper\"\n [readOnly]=\"readOnly\"\n [inputHidden]=\"!editable\"\n [pseudoHover]=\"pseudoHover\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoInvalid]=\"computedInvalid\"\n [editable]=\"false\"\n [expandable]=\"expandable\"\n [removable]=\"!nativeDropdownMode\"\n [search]=\"searchOrSpace\"\n [rows]=\"rows\"\n [ngModel]=\"computedValue | tuiMapper : valueMapper : stringify\"\n (ngModelChange)=\"onInput($event)\"\n (searchChange)=\"onSearch($event)\"\n (keydown.space)=\"onSpace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (click.prevent)=\"onClick(inputTag)\"\n >\n <ng-content></ng-content>\n <ng-template #select>\n <ng-content\n *ngIf=\"isMobile\"\n select=\"select\"\n ></ng-content>\n </ng-template>\n\n <ng-container\n *ngTemplateOutlet=\"select\"\n ngProjectAs=\"select\"\n ></ng-container>\n </tui-input-tag>\n\n <div\n class=\"t-wrapper\"\n [class.t-wrapper_disabled]=\"disabled\"\n >\n <div\n *ngIf=\"computedGroup\"\n class=\"t-group\"\n [class.t-group_fullsize]=\"inputTag.labelOutside\"\n >\n <ng-container *polymorpheusOutlet=\"valueContent as text; context: {$implicit: value}\">\n {{ text }}\n </ng-container>\n </div>\n\n <ng-template #icon>\n <div\n *ngIf=\"arrow\"\n tuiWrapper\n appearance=\"icon\"\n automation-id=\"tui-multi-select__arrow\"\n tuiPreventDefault=\"mousedown\"\n class=\"t-arrow\"\n [class.t-arrow_native-dropdown]=\"nativeDropdownMode\"\n >\n <ng-container *polymorpheusOutlet=\"arrow as text\">\n {{ text }}\n </ng-container>\n </div>\n </ng-template>\n </div>\n</tui-hosted-dropdown>\n", styles: [":host{position:relative;display:block;border-radius:var(--tui-radius-m)}:host._disabled{pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-input{border-radius:inherit}:host:not(._editable):not(._readonly) .t-input{cursor:pointer}.t-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;pointer-events:none;justify-content:flex-end}.t-wrapper_disabled{opacity:var(--tui-disabled-opacity)}:host[data-size=s] .t-wrapper{height:var(--tui-height-s)}:host[data-size=m] .t-wrapper{height:var(--tui-height-m)}:host[data-size=l] .t-wrapper{height:var(--tui-height-l)}.t-group{display:flex;flex:1;align-items:center;padding:1.6875rem 0 .5625rem 1rem;overflow:hidden}.t-group_fullsize{padding-top:.0625rem;padding-bottom:0}:host[data-size=m] .t-group_fullsize.t-group_fullsize{padding-top:0}:host[data-size=m] .t-group{padding:1.1875rem 0 0 .75rem;font-size:.8125rem}.t-arrow{pointer-events:auto;cursor:pointer}.t-arrow_native-dropdown{pointer-events:none}\n"], components: [{ type: i1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i2.TuiInputTagComponent, selector: "tui-input-tag", inputs: ["separator", "search", "editable", "tagValidator", "expandable", "rows", "inputHidden", "uniqueTags", "maxLength", "placeholder", "removable", "disabledItemHandler", "pseudoFocused"], outputs: ["searchChange"] }], directives: [{ type: i3.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i3.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }], pipes: { "tuiMapper": i3.TuiMapperPipe }, viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0.ChangeDetectionStrategy.OnPush });
183
+ ], queries: [{ propertyName: "accessor", first: true, predicate: TUI_DATA_LIST_ACCESSOR, descendants: true }, { propertyName: "nativeSelect", first: true, predicate: AbstractTuiNativeMultiSelect, descendants: true, static: true }, { propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "hostedDropdown", first: true, predicate: TuiHostedDropdownComponent, descendants: true }, { propertyName: "input", first: true, predicate: TuiInputTagComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive && !nativeDropdownMode\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-tag\n #inputTag\n automation-id=\"tui-multi-select__input\"\n class=\"t-input\"\n [nativeId]=\"nativeId\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper : disabledItemHandlerWrapper\"\n [readOnly]=\"readOnly\"\n [inputHidden]=\"!editable\"\n [pseudoHover]=\"pseudoHover\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoInvalid]=\"computedInvalid\"\n [editable]=\"false\"\n [expandable]=\"expandable\"\n [removable]=\"!nativeDropdownMode\"\n [search]=\"searchOrSpace\"\n [tagValidator]=\"tagValidator | tuiMapper : disabledItemHandlerWrapper\"\n [rows]=\"rows\"\n [ngModel]=\"computedValue | tuiMapper : valueMapper : stringify\"\n (ngModelChange)=\"onInput($event)\"\n (searchChange)=\"onSearch($event)\"\n (keydown.space)=\"onSpace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (click.prevent)=\"onClick(inputTag)\"\n >\n <ng-content></ng-content>\n <ng-template #select>\n <ng-content\n *ngIf=\"isMobile\"\n select=\"select\"\n ></ng-content>\n </ng-template>\n\n <ng-container\n *ngTemplateOutlet=\"select\"\n ngProjectAs=\"select\"\n ></ng-container>\n </tui-input-tag>\n\n <div\n class=\"t-wrapper\"\n [class.t-wrapper_disabled]=\"disabled\"\n >\n <div\n *ngIf=\"computedGroup\"\n class=\"t-group\"\n [class.t-group_fullsize]=\"inputTag.labelOutside\"\n >\n <ng-container *polymorpheusOutlet=\"valueContent as text; context: {$implicit: value}\">\n {{ text }}\n </ng-container>\n </div>\n\n <ng-template #icon>\n <div\n tuiWrapper\n appearance=\"icon\"\n automation-id=\"tui-multi-select__arrow\"\n tuiPreventDefault=\"mousedown\"\n class=\"t-arrow\"\n [class.t-arrow_native-dropdown]=\"nativeDropdownMode\"\n >\n <ng-container *polymorpheusOutlet=\"arrow as text\">\n {{ text }}\n </ng-container>\n </div>\n </ng-template>\n </div>\n</tui-hosted-dropdown>\n", styles: [":host{position:relative;display:block;border-radius:var(--tui-radius-m)}:host._disabled{pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-input{border-radius:inherit}:host:not(._editable):not(._readonly) .t-input{cursor:pointer}.t-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;pointer-events:none;justify-content:flex-end}.t-wrapper_disabled{opacity:var(--tui-disabled-opacity)}:host[data-size=s] .t-wrapper{height:var(--tui-height-s)}:host[data-size=m] .t-wrapper{height:var(--tui-height-m)}:host[data-size=l] .t-wrapper{height:var(--tui-height-l)}.t-group{display:flex;flex:1;align-items:center;padding:1.6875rem 0 .5625rem 1rem;overflow:hidden}.t-group_fullsize{padding-top:.0625rem;padding-bottom:0}:host[data-size=m] .t-group_fullsize.t-group_fullsize{padding-top:0}:host[data-size=m] .t-group{padding:1.1875rem 0 0 .75rem;font-size:.8125rem}.t-arrow{pointer-events:auto;cursor:pointer}.t-arrow_native-dropdown{pointer-events:none}\n"], components: [{ type: i1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i2.TuiInputTagComponent, selector: "tui-input-tag", inputs: ["separator", "search", "editable", "tagValidator", "expandable", "rows", "inputHidden", "uniqueTags", "maxLength", "placeholder", "removable", "disabledItemHandler", "pseudoFocused"], outputs: ["searchChange"] }], directives: [{ type: i3.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i3.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }], pipes: { "tuiMapper": i3.TuiMapperPipe }, viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0.ChangeDetectionStrategy.OnPush });
235
184
  __decorate([
236
185
  tuiDefaultProp()
237
186
  ], TuiMultiSelectComponent.prototype, "stringify", void 0);
@@ -256,6 +205,9 @@ __decorate([
256
205
  __decorate([
257
206
  tuiDefaultProp()
258
207
  ], TuiMultiSelectComponent.prototype, "valueContent", void 0);
208
+ __decorate([
209
+ tuiDefaultProp()
210
+ ], TuiMultiSelectComponent.prototype, "tagValidator", void 0);
259
211
  __decorate([
260
212
  tuiPure
261
213
  ], TuiMultiSelectComponent.prototype, "getStringifier", null);
@@ -330,6 +282,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
330
282
  type: Input
331
283
  }], valueContent: [{
332
284
  type: Input
285
+ }], tagValidator: [{
286
+ type: Input
333
287
  }], rows: [{
334
288
  type: Input
335
289
  }], searchChange: [{
@@ -381,6 +335,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
381
335
  args: [TuiMultiSelectComponent]
382
336
  }] }]; }, propDecorators: { filter2d: [], filter: [] } });
383
337
 
338
+ class TuiMultiSelectDirective extends AbstractTuiTextfieldHost {
339
+ constructor() {
340
+ super(...arguments);
341
+ this.disableItemHandler = item => this.host.disabledItemHandler(item);
342
+ }
343
+ get readOnly() {
344
+ return true;
345
+ }
346
+ onValueChange() { }
347
+ onSelectionChange(value) {
348
+ this.host.onValueChange(value);
349
+ }
350
+ }
351
+ TuiMultiSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiMultiSelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
352
+ TuiMultiSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiMultiSelectDirective, selector: "tui-multi-select", providers: [tuiAsTextfieldHost(TuiMultiSelectDirective)], usesInheritance: true, ngImport: i0 });
353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiMultiSelectDirective, decorators: [{
354
+ type: Directive,
355
+ args: [{
356
+ selector: 'tui-multi-select',
357
+ providers: [tuiAsTextfieldHost(TuiMultiSelectDirective)],
358
+ }]
359
+ }] });
360
+
384
361
  class TuiMultiSelectGroupComponent {
385
362
  constructor(multiSelectTexts$, host, control) {
386
363
  this.multiSelectTexts$ = multiSelectTexts$;
@@ -563,7 +540,7 @@ TuiNativeMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
563
540
  provide: AbstractTuiNativeMultiSelect,
564
541
  useExisting: TuiNativeMultiSelectComponent,
565
542
  },
566
- ], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n [items]=\"items\"\n [disabledItemHandler]=\"host.disableItemHandler\"\n></tui-data-list-wrapper>\n<option\n *ngFor=\"let option of items\"\n [selected]=\"option | tuiMapper : selectedMapper : host.value\"\n [value]=\"option\"\n [disabled]=\"host.disableItemHandler(option)\"\n>\n {{ option }}\n</option>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2$1.AsyncPipe, "tuiMapper": i3.TuiMapperPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
543
+ ], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n tuiMultiSelectGroup\n [items]=\"items\"\n [disabledItemHandler]=\"disabledItemHandler || host.disableItemHandler\"\n></tui-data-list-wrapper>\n<option\n *ngFor=\"let option of items\"\n [selected]=\"option | tuiMapper : selectedMapper : host.value\"\n [value]=\"option\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : host.disableItemHandler(option)\"\n>\n {{ option }}\n</option>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1$1.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels])", inputs: ["items"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2$1.AsyncPipe, "tuiMapper": i3.TuiMapperPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
567
544
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiNativeMultiSelectComponent, decorators: [{
568
545
  type: Component,
569
546
  args: [{
@@ -615,7 +592,7 @@ TuiNativeMultiSelectGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersio
615
592
  provide: AbstractTuiNativeMultiSelect,
616
593
  useExisting: TuiNativeMultiSelectGroupComponent,
617
594
  },
618
- ], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n [items]=\"items\"\n [labels]=\"labels\"\n [disabledItemHandler]=\"host.disableItemHandler\"\n></tui-data-list-wrapper>\n<optgroup\n *ngFor=\"let group of items; let index = index\"\n [label]=\"labels[index]\"\n>\n <option\n *ngFor=\"let option of group\"\n [selected]=\"option | tuiMapper : selectedMapper : host.value\"\n [value]=\"option\"\n [disabled]=\"host.disableItemHandler(option)\"\n >\n {{ option }}\n </option>\n</optgroup>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1$1.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["items", "labels"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2$1.AsyncPipe, "tuiMapper": i3.TuiMapperPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
595
+ ], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control.control?.valueChanges | async\"></ng-container>\n\n<tui-data-list-wrapper\n *tuiDataList\n tuiMultiSelectGroup\n [items]=\"items\"\n [labels]=\"labels\"\n [disabledItemHandler]=\"disabledItemHandler || host.disableItemHandler\"\n></tui-data-list-wrapper>\n<optgroup\n *ngFor=\"let group of items; let index = index\"\n [label]=\"labels[index]\"\n>\n <option\n *ngFor=\"let option of group\"\n [selected]=\"option | tuiMapper : selectedMapper : host.value\"\n [value]=\"option\"\n [disabled]=\"disabledItemHandler ? disabledItemHandler(option) : host.disableItemHandler(option)\"\n >\n {{ option }}\n </option>\n</optgroup>\n", styles: [":host{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}\n"], components: [{ type: i1$1.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["items", "labels"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.TuiDataListDirective, selector: "ng-template[tuiDataList]" }, { type: TuiMultiSelectGroupDirective, selector: "[tuiMultiSelectGroup]" }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "async": i2$1.AsyncPipe, "tuiMapper": i3.TuiMapperPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
619
596
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiNativeMultiSelectGroupComponent, decorators: [{
620
597
  type: Component,
621
598
  args: [{