@taiga-ui/kit 4.52.0-canary.6af05be → 4.52.0-canary.a4e325d

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 (710) hide show
  1. package/components/input-color/input-color.component.d.ts +2 -1
  2. package/components/input-number/quantum.directive.d.ts +1 -1
  3. package/components/segmented/segmented.component.d.ts +4 -4
  4. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  5. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
  6. package/fesm2022/taiga-ui-kit-components-accordion.mjs +16 -16
  7. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  8. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +8 -8
  9. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  10. package/fesm2022/taiga-ui-kit-components-avatar.mjs +20 -20
  11. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  13. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-kit-components-badge.mjs +8 -8
  15. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  17. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  19. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -5
  21. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -5
  23. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -6
  25. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -7
  27. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-kit-components-carousel.mjs +19 -19
  29. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -5
  31. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-kit-components-chip.mjs +8 -8
  33. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
  35. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-kit-components-comment.mjs +8 -8
  37. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  39. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-kit-components-confirm.mjs +8 -8
  41. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +11 -11
  43. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  45. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -8
  47. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-kit-components-files.mjs +29 -30
  49. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -5
  51. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +7 -7
  53. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +11 -11
  55. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-kit-components-input-color.mjs +9 -9
  57. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -4
  59. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  61. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +8 -8
  63. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-kit-components-input-date.mjs +12 -12
  65. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +5 -5
  67. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
  69. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-input-month.mjs +8 -8
  71. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-input-number.mjs +21 -21
  73. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-input-password.mjs +4 -5
  75. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +8 -8
  77. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
  79. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +5 -5
  81. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-input-range.mjs +6 -6
  83. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +7 -7
  85. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-input-time.mjs +12 -11
  87. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-input-year.mjs +4 -4
  89. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +15 -15
  91. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-like.mjs +5 -5
  93. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +14 -14
  95. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-message.mjs +8 -8
  97. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +17 -17
  99. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +12 -12
  101. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-pager.mjs +7 -7
  103. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-pagination.mjs +5 -5
  105. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +11 -11
  107. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-pin.mjs +8 -8
  109. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +11 -11
  111. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-preview.mjs +29 -29
  113. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-progress.mjs +28 -28
  115. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  117. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-push.mjs +17 -17
  119. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +6 -6
  121. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-radio.mjs +9 -9
  123. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-range.mjs +9 -9
  125. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-rating.mjs +6 -6
  127. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  129. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  131. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-select.mjs +15 -15
  133. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-slider.mjs +20 -21
  135. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-slides.mjs +7 -7
  137. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-status.mjs +7 -7
  139. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-stepper.mjs +10 -10
  141. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-switch.mjs +5 -5
  143. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-tabs.mjs +21 -21
  145. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-textarea.mjs +15 -15
  147. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  149. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-tree.mjs +32 -40
  151. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  153. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  155. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  157. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +8 -8
  159. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-directives-connected.mjs +8 -8
  161. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-directives-copy.mjs +9 -9
  163. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  165. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -9
  167. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  169. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  171. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +8 -8
  173. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -8
  175. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-directives-password.mjs +3 -3
  177. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  179. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +8 -8
  181. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -8
  183. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -7
  185. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -8
  187. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +4 -4
  189. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  191. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  193. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +7 -7
  195. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  197. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  199. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  201. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  203. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  205. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-tokens.mjs +3 -3
  207. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  209. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  210. package/package.json +5 -217
  211. package/styles/components/badge.less +3 -18
  212. package/styles/components/checkbox.less +5 -6
  213. package/styles/components/like.less +13 -10
  214. package/styles/components/radio.less +1 -1
  215. package/styles/components/switch.less +5 -5
  216. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  217. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  218. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  219. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  220. package/esm2022/components/accordion/accordion.mjs +0 -11
  221. package/esm2022/components/accordion/index.mjs +0 -6
  222. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  223. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  224. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  225. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  226. package/esm2022/components/action-bar/index.mjs +0 -4
  227. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  228. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  229. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  230. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  231. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  232. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  233. package/esm2022/components/avatar/index.mjs +0 -6
  234. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  235. package/esm2022/components/badge/badge.directive.mjs +0 -42
  236. package/esm2022/components/badge/badge.options.mjs +0 -13
  237. package/esm2022/components/badge/index.mjs +0 -3
  238. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  239. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  240. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  241. package/esm2022/components/badge-notification/index.mjs +0 -3
  242. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  243. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  244. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  245. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  246. package/esm2022/components/badged-content/index.mjs +0 -4
  247. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  248. package/esm2022/components/block/block.directive.mjs +0 -58
  249. package/esm2022/components/block/block.options.mjs +0 -13
  250. package/esm2022/components/block/index.mjs +0 -3
  251. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  252. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  253. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  254. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  255. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  256. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  257. package/esm2022/components/button-loading/index.mjs +0 -2
  258. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  259. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  260. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  261. package/esm2022/components/calendar-month/index.mjs +0 -3
  262. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  263. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  264. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  265. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  266. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  267. package/esm2022/components/calendar-range/index.mjs +0 -5
  268. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  269. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  270. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  271. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  272. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  273. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  274. package/esm2022/components/carousel/carousel.mjs +0 -15
  275. package/esm2022/components/carousel/index.mjs +0 -7
  276. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  277. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  278. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  279. package/esm2022/components/checkbox/index.mjs +0 -3
  280. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  281. package/esm2022/components/chip/chip.directive.mjs +0 -63
  282. package/esm2022/components/chip/chip.options.mjs +0 -13
  283. package/esm2022/components/chip/index.mjs +0 -3
  284. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  285. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  286. package/esm2022/components/combo-box/index.mjs +0 -2
  287. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  288. package/esm2022/components/comment/comment.directive.mjs +0 -35
  289. package/esm2022/components/comment/index.mjs +0 -2
  290. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  291. package/esm2022/components/compass/compass.component.mjs +0 -19
  292. package/esm2022/components/compass/index.mjs +0 -2
  293. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  294. package/esm2022/components/confirm/confirm.component.mjs +0 -28
  295. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  296. package/esm2022/components/confirm/index.mjs +0 -3
  297. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  298. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  299. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  300. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  301. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  302. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  303. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  304. package/esm2022/components/drawer/index.mjs +0 -2
  305. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  306. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  307. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  308. package/esm2022/components/elastic-container/index.mjs +0 -3
  309. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  310. package/esm2022/components/files/file/file.component.mjs +0 -144
  311. package/esm2022/components/files/file/file.options.mjs +0 -16
  312. package/esm2022/components/files/files/files.component.mjs +0 -56
  313. package/esm2022/components/files/files.mjs +0 -15
  314. package/esm2022/components/files/files.types.mjs +0 -2
  315. package/esm2022/components/files/files.utils.mjs +0 -30
  316. package/esm2022/components/files/files.validators.mjs +0 -32
  317. package/esm2022/components/files/index.mjs +0 -13
  318. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  319. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  320. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  321. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  322. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  323. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  324. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  325. package/esm2022/components/filter/filter.component.mjs +0 -65
  326. package/esm2022/components/filter/index.mjs +0 -2
  327. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  328. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  329. package/esm2022/components/floating-container/index.mjs +0 -2
  330. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  331. package/esm2022/components/index.mjs +0 -73
  332. package/esm2022/components/input-chip/index.mjs +0 -5
  333. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  334. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  335. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  336. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  337. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  338. package/esm2022/components/input-color/index.mjs +0 -3
  339. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  340. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  341. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  342. package/esm2022/components/input-date/date-filler.mjs +0 -20
  343. package/esm2022/components/input-date/index.mjs +0 -6
  344. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  345. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  346. package/esm2022/components/input-date/input-date.mjs +0 -9
  347. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  348. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  349. package/esm2022/components/input-date-multi/index.mjs +0 -3
  350. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  351. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  352. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  353. package/esm2022/components/input-date-range/index.mjs +0 -4
  354. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  355. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  356. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  357. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  358. package/esm2022/components/input-date-time/index.mjs +0 -5
  359. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  360. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  361. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  362. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  363. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  364. package/esm2022/components/input-inline/index.mjs +0 -2
  365. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  366. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  367. package/esm2022/components/input-month/index.mjs +0 -5
  368. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  369. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  370. package/esm2022/components/input-month/input-month.mjs +0 -9
  371. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  372. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  373. package/esm2022/components/input-month-range/index.mjs +0 -4
  374. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  375. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  376. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  377. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  378. package/esm2022/components/input-number/index.mjs +0 -6
  379. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  380. package/esm2022/components/input-number/input-number.mjs +0 -9
  381. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  382. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  383. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  384. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  385. package/esm2022/components/input-password/index.mjs +0 -3
  386. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  387. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  388. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  389. package/esm2022/components/input-phone/index.mjs +0 -3
  390. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  391. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  392. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  393. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  394. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  395. package/esm2022/components/input-phone-international/index.mjs +0 -3
  396. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  397. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  398. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  399. package/esm2022/components/input-pin/index.mjs +0 -2
  400. package/esm2022/components/input-pin/input-pin.component.mjs +0 -66
  401. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  402. package/esm2022/components/input-range/index.mjs +0 -3
  403. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  404. package/esm2022/components/input-range/input-range.mjs +0 -4
  405. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  406. package/esm2022/components/input-slider/index.mjs +0 -3
  407. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  408. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  409. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  410. package/esm2022/components/input-time/index.mjs +0 -5
  411. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  412. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  413. package/esm2022/components/input-time/input-time.mjs +0 -4
  414. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  415. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  416. package/esm2022/components/input-year/index.mjs +0 -4
  417. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  418. package/esm2022/components/input-year/input-year.mjs +0 -4
  419. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  420. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  421. package/esm2022/components/items-with-more/index.mjs +0 -6
  422. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  423. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  424. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  425. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  426. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  427. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  428. package/esm2022/components/like/index.mjs +0 -3
  429. package/esm2022/components/like/like.component.mjs +0 -46
  430. package/esm2022/components/like/like.options.mjs +0 -10
  431. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  432. package/esm2022/components/line-clamp/index.mjs +0 -4
  433. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  434. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  435. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  436. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  437. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  438. package/esm2022/components/message/index.mjs +0 -2
  439. package/esm2022/components/message/message.directive.mjs +0 -43
  440. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  441. package/esm2022/components/multi-select/index.mjs +0 -6
  442. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  443. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  444. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  445. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  446. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  447. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  448. package/esm2022/components/notification-middle/index.mjs +0 -4
  449. package/esm2022/components/notification-middle/notification-middle.component.mjs +0 -57
  450. package/esm2022/components/notification-middle/notification-middle.directive.mjs +0 -21
  451. package/esm2022/components/notification-middle/notification-middle.service.mjs +0 -22
  452. package/esm2022/components/notification-middle/taiga-ui-kit-components-notification-middle.mjs +0 -5
  453. package/esm2022/components/pager/index.mjs +0 -2
  454. package/esm2022/components/pager/pager.component.mjs +0 -97
  455. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  456. package/esm2022/components/pagination/index.mjs +0 -2
  457. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  458. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  459. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  460. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  461. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  462. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  463. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  464. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  465. package/esm2022/components/pin/index.mjs +0 -2
  466. package/esm2022/components/pin/pin.directive.mjs +0 -35
  467. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  468. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  469. package/esm2022/components/preview/dialog/index.mjs +0 -4
  470. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  471. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  472. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  473. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  474. package/esm2022/components/preview/index.mjs +0 -8
  475. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  476. package/esm2022/components/preview/preview.component.mjs +0 -142
  477. package/esm2022/components/preview/preview.mjs +0 -13
  478. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  479. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  480. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  481. package/esm2022/components/progress/index.mjs +0 -9
  482. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  483. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  484. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  485. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  486. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  487. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  488. package/esm2022/components/progress/progress.mjs +0 -15
  489. package/esm2022/components/progress/progress.options.mjs +0 -13
  490. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  491. package/esm2022/components/pulse/index.mjs +0 -2
  492. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  493. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  494. package/esm2022/components/push/index.mjs +0 -7
  495. package/esm2022/components/push/push-alert.component.mjs +0 -29
  496. package/esm2022/components/push/push.component.mjs +0 -39
  497. package/esm2022/components/push/push.directive.mjs +0 -33
  498. package/esm2022/components/push/push.mjs +0 -5
  499. package/esm2022/components/push/push.options.mjs +0 -21
  500. package/esm2022/components/push/push.service.mjs +0 -19
  501. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  502. package/esm2022/components/radio/index.mjs +0 -5
  503. package/esm2022/components/radio/radio.component.mjs +0 -53
  504. package/esm2022/components/radio/radio.directive.mjs +0 -32
  505. package/esm2022/components/radio/radio.mjs +0 -4
  506. package/esm2022/components/radio/radio.options.mjs +0 -13
  507. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  508. package/esm2022/components/radio-list/index.mjs +0 -2
  509. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  510. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  511. package/esm2022/components/range/index.mjs +0 -3
  512. package/esm2022/components/range/range-change.directive.mjs +0 -78
  513. package/esm2022/components/range/range.component.mjs +0 -164
  514. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  515. package/esm2022/components/rating/index.mjs +0 -3
  516. package/esm2022/components/rating/rating.component.mjs +0 -64
  517. package/esm2022/components/rating/rating.options.mjs +0 -13
  518. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  519. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  520. package/esm2022/components/routable-dialog/index.mjs +0 -3
  521. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  522. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  523. package/esm2022/components/segmented/index.mjs +0 -3
  524. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  525. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  526. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  527. package/esm2022/components/select/index.mjs +0 -5
  528. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  529. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  530. package/esm2022/components/select/select.directive.mjs +0 -56
  531. package/esm2022/components/select/select.mjs +0 -4
  532. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  533. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  534. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  535. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  536. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  537. package/esm2022/components/slider/index.mjs +0 -8
  538. package/esm2022/components/slider/slider.component.mjs +0 -124
  539. package/esm2022/components/slider/slider.mjs +0 -12
  540. package/esm2022/components/slider/slider.options.mjs +0 -16
  541. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  542. package/esm2022/components/slides/index.mjs +0 -2
  543. package/esm2022/components/slides/slides.directive.mjs +0 -51
  544. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  545. package/esm2022/components/status/index.mjs +0 -2
  546. package/esm2022/components/status/status.directive.mjs +0 -35
  547. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  548. package/esm2022/components/stepper/index.mjs +0 -4
  549. package/esm2022/components/stepper/step.component.mjs +0 -58
  550. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  551. package/esm2022/components/stepper/stepper.mjs +0 -4
  552. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  553. package/esm2022/components/switch/index.mjs +0 -3
  554. package/esm2022/components/switch/switch.component.mjs +0 -63
  555. package/esm2022/components/switch/switch.options.mjs +0 -15
  556. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  557. package/esm2022/components/tabs/index.mjs +0 -9
  558. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  559. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  560. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  561. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -213
  562. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  563. package/esm2022/components/tabs/tabs.mjs +0 -15
  564. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  565. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  566. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  567. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  568. package/esm2022/components/textarea/index.mjs +0 -4
  569. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  570. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -93
  571. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  572. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  573. package/esm2022/components/tiles/index.mjs +0 -7
  574. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  575. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  576. package/esm2022/components/tiles/tile.component.mjs +0 -69
  577. package/esm2022/components/tiles/tile.service.mjs +0 -90
  578. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  579. package/esm2022/components/tiles/tiles.mjs +0 -5
  580. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  581. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  582. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  583. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  584. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  585. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  586. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  587. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  588. package/esm2022/components/tree/index.mjs +0 -12
  589. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  590. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  591. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  592. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  593. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  594. package/esm2022/components/tree/tree.mjs +0 -17
  595. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  596. package/esm2022/directives/button-close/index.mjs +0 -2
  597. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  598. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  599. package/esm2022/directives/button-group/index.mjs +0 -2
  600. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  601. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  602. package/esm2022/directives/button-select/index.mjs +0 -2
  603. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  604. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  605. package/esm2022/directives/chevron/index.mjs +0 -2
  606. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  607. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  608. package/esm2022/directives/connected/index.mjs +0 -2
  609. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  610. package/esm2022/directives/copy/copy.component.mjs +0 -48
  611. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  612. package/esm2022/directives/copy/copy.mjs +0 -4
  613. package/esm2022/directives/copy/copy.options.mjs +0 -3
  614. package/esm2022/directives/copy/index.mjs +0 -6
  615. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  616. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  617. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  618. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  619. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  620. package/esm2022/directives/fade/index.mjs +0 -2
  621. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  622. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  623. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  624. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  625. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  626. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  627. package/esm2022/directives/highlight/index.mjs +0 -2
  628. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  629. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  630. package/esm2022/directives/icon-badge/index.mjs +0 -2
  631. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  632. package/esm2022/directives/index.mjs +0 -21
  633. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  634. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  635. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  636. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  637. package/esm2022/directives/password/index.mjs +0 -3
  638. package/esm2022/directives/password/password.directive.mjs +0 -67
  639. package/esm2022/directives/password/password.options.mjs +0 -8
  640. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  641. package/esm2022/directives/present/index.mjs +0 -2
  642. package/esm2022/directives/present/present.directive.mjs +0 -33
  643. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  644. package/esm2022/directives/sensitive/index.mjs +0 -2
  645. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  646. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  647. package/esm2022/directives/shimmer/index.mjs +0 -2
  648. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  649. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  650. package/esm2022/directives/skeleton/index.mjs +0 -2
  651. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  652. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  653. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  654. package/esm2022/directives/tooltip/index.mjs +0 -3
  655. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  656. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  657. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  658. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  659. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  660. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  661. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  662. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  663. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  664. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  665. package/esm2022/index.mjs +0 -6
  666. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  667. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  668. package/esm2022/pipes/emails/index.mjs +0 -3
  669. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  670. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  671. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  672. package/esm2022/pipes/field-error/index.mjs +0 -3
  673. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  674. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  675. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  676. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  677. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  678. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  679. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  680. package/esm2022/pipes/index.mjs +0 -8
  681. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  682. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  683. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  684. package/esm2022/pipes/stringify/index.mjs +0 -2
  685. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  686. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  687. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  688. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  689. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  690. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  691. package/esm2022/taiga-ui-kit.mjs +0 -5
  692. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  693. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  694. package/esm2022/tokens/i18n.mjs +0 -75
  695. package/esm2022/tokens/index.mjs +0 -10
  696. package/esm2022/tokens/input-date-options.mjs +0 -13
  697. package/esm2022/tokens/items-handlers.mjs +0 -27
  698. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  699. package/esm2022/tokens/month-formatter.mjs +0 -12
  700. package/esm2022/tokens/preview-icons.mjs +0 -17
  701. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  702. package/esm2022/tokens/validation-errors.mjs +0 -6
  703. package/esm2022/utils/create-time-periods.mjs +0 -12
  704. package/esm2022/utils/index.mjs +0 -7
  705. package/esm2022/utils/inject-value.mjs +0 -11
  706. package/esm2022/utils/is-flat.mjs +0 -4
  707. package/esm2022/utils/maskito.binding.mjs +0 -6
  708. package/esm2022/utils/phone.mjs +0 -6
  709. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  710. package/esm2022/utils/toggle-day.mjs +0 -6
@@ -1,7 +1,7 @@
1
1
  import { TuiItem } from '@taiga-ui/cdk/directives/item';
2
2
  import { AsyncPipe, NgForOf, NgIf, NgTemplateOutlet } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Directive, Input, inject, Injectable, TemplateRef, Component, ChangeDetectionStrategy, ContentChildren, ContentChild, Output } from '@angular/core';
4
+ import { Input, Directive, inject, Injectable, TemplateRef, Output, ContentChild, ContentChildren, ChangeDetectionStrategy, Component } from '@angular/core';
5
5
  import { toSignal } from '@angular/core/rxjs-interop';
6
6
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
7
7
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
@@ -30,10 +30,10 @@ class TuiItemsWithMoreDirective {
30
30
  maxWidth() {
31
31
  return Math.max(...Array.from(this.el.children, ({ clientWidth }) => clientWidth));
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
34
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiItemsWithMoreDirective, isStandalone: true, inputs: { itemsLimit: "itemsLimit", required: "required", linesLimit: "linesLimit", side: "side" }, host: { properties: { "class._multiline": "linesLimit > 1", "style.--t-min-width.px": "maxWidth()" } }, usesOnChanges: true, ngImport: i0 }); }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiItemsWithMoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
34
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiItemsWithMoreDirective, isStandalone: true, inputs: { itemsLimit: "itemsLimit", required: "required", linesLimit: "linesLimit", side: "side" }, host: { properties: { "class._multiline": "linesLimit > 1", "style.--t-min-width.px": "maxWidth()" } }, usesOnChanges: true, ngImport: i0 }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreDirective, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiItemsWithMoreDirective, decorators: [{
37
37
  type: Directive,
38
38
  args: [{
39
39
  standalone: true,
@@ -120,21 +120,21 @@ class TuiItemsWithMoreService extends Observable {
120
120
  const index = firstItemLastRow + this.getOverflowIndex(lastRow);
121
121
  return Math.min(itemsLimit - 1, index);
122
122
  }
123
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
124
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreService }); }
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiItemsWithMoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
124
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiItemsWithMoreService }); }
125
125
  }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreService, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiItemsWithMoreService, decorators: [{
127
127
  type: Injectable
128
- }], ctorParameters: function () { return []; } });
128
+ }], ctorParameters: () => [] });
129
129
 
130
130
  class TuiMore {
131
131
  static ngTemplateContextGuard(_dir, _ctx) {
132
132
  return true;
133
133
  }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
135
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMore, isStandalone: true, selector: "[tuiMore]", ngImport: i0 }); }
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
135
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiMore, isStandalone: true, selector: "[tuiMore]", ngImport: i0 }); }
136
136
  }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMore, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMore, decorators: [{
138
138
  type: Directive,
139
139
  args: [{
140
140
  standalone: true,
@@ -161,8 +161,8 @@ class TuiItemsWithMoreComponent {
161
161
  return ((index > this.lastIndex() && index !== required && computedSide === 'end') ||
162
162
  (index < this.lastIndex() && index !== required && computedSide === 'start'));
163
163
  }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
165
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiItemsWithMoreComponent, isStandalone: true, selector: "tui-items-with-more", outputs: { lastIndexChange: "lastIndexChange" }, providers: [
164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiItemsWithMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
165
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiItemsWithMoreComponent, isStandalone: true, selector: "tui-items-with-more", outputs: { lastIndexChange: "lastIndexChange" }, providers: [
166
166
  MutationObserverService,
167
167
  ResizeObserverService,
168
168
  TuiItemsWithMoreService,
@@ -176,9 +176,9 @@ class TuiItemsWithMoreComponent {
176
176
  },
177
177
  ], queries: [{ propertyName: "more", first: true, predicate: TuiMore, descendants: true, read: TemplateRef }, { propertyName: "items", predicate: TuiItem, descendants: true, read: TemplateRef }], hostDirectives: [{ directive: TuiItemsWithMoreDirective, inputs: ["itemsLimit", "itemsLimit", "required", "required", "side", "side", "linesLimit", "linesLimit"] }], ngImport: i0, template: "<ng-container *ngIf=\"items.changes | async\" />\n<ng-container\n *ngIf=\"directive.side === 'start'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<div\n *ngFor=\"let item of items; let index = index\"\n class=\"t-item\"\n [class.t-item_hidden]=\"isHidden(index)\"\n>\n <ng-container *ngTemplateOutlet=\"item\" />\n</div>\n<ng-container\n *ngIf=\"directive.side === 'end'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<ng-template #template>\n <span\n *ngIf=\"!isMoreHidden\"\n class=\"t-item t-item_more\"\n >\n <ng-container\n [ngTemplateOutlet]=\"more || null\"\n [ngTemplateOutletContext]=\"{$implicit: lastIndex()}\"\n />\n </span>\n</ng-template>\n", styles: [":host{position:relative;display:flex;min-inline-size:0;flex:1;align-items:center;white-space:nowrap;gap:0!important}:host._multiline{flex-wrap:wrap}.t-item{flex:0 0 auto;max-inline-size:100%}.t-item_hidden{position:absolute;bottom:0;visibility:hidden}:host._multiline .t-item_more:not(:empty){min-inline-size:var(--t-min-width, 0)}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
178
178
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreComponent, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiItemsWithMoreComponent, decorators: [{
180
180
  type: Component,
181
- args: [{ standalone: true, selector: 'tui-items-with-more', imports: [AsyncPipe, NgForOf, NgIf, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
181
+ args: [{ selector: 'tui-items-with-more', imports: [AsyncPipe, NgForOf, NgIf, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
182
182
  MutationObserverService,
183
183
  ResizeObserverService,
184
184
  TuiItemsWithMoreService,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-items-with-more.mjs","sources":["../../../projects/kit/components/items-with-more/items-with-more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.service.ts","../../../projects/kit/components/items-with-more/more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.component.ts","../../../projects/kit/components/items-with-more/items-with-more.template.html","../../../projects/kit/components/items-with-more/items-with-more.ts","../../../projects/kit/components/items-with-more/taiga-ui-kit-components-items-with-more.ts"],"sourcesContent":["import {Directive, Input, type OnChanges} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {Subject} from 'rxjs';\n\n@Directive({\n standalone: true,\n host: {\n '[class._multiline]': 'linesLimit > 1',\n '[style.--t-min-width.px]': 'maxWidth()',\n },\n})\nexport class TuiItemsWithMoreDirective implements OnChanges {\n private readonly el = tuiInjectElement();\n\n @Input()\n public itemsLimit = Infinity;\n\n @Input()\n public required = -1;\n\n @Input()\n public linesLimit = 1;\n\n @Input()\n public side: 'end' | 'start' = 'end';\n\n // TODO: refactor to signal inputs after Angular update\n public readonly change$ = new Subject<void>();\n\n public get computedSide(): 'end' | 'start' {\n return this.linesLimit > 1 ? 'end' : this.side;\n }\n\n public ngOnChanges(): void {\n this.change$.next();\n }\n\n protected maxWidth(): number {\n return Math.max(...Array.from(this.el.children, ({clientWidth}) => clientWidth));\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {debounceTime, distinctUntilChanged, map, merge, Observable, share} from 'rxjs';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\n\n@Injectable()\nexport class TuiItemsWithMoreService extends Observable<number> {\n private readonly el = tuiInjectElement();\n private readonly directive = inject(TuiItemsWithMoreDirective);\n\n protected readonly stream$ = merge(\n this.directive.change$,\n inject(MutationObserverService, {self: true}),\n inject(ResizeObserverService, {self: true}),\n ).pipe(\n debounceTime(0, tuiZonefreeScheduler()),\n map(() =>\n this.directive.linesLimit > 1\n ? this.getOverflowIndexMultiline()\n : this.getOverflowIndex(Array.from(this.el.children)),\n ),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n share(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n private getOverflowIndex(children: Element[]): number {\n const {computedSide, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const items = Array.from(children, ({clientWidth}) => clientWidth);\n const index = computedSide === 'start' ? 0 : items.length - 1;\n const more = children[index]?.tagName === 'SPAN' ? (items[index] ?? 0) : 0;\n const total = items.reduce((sum, width) => sum + width, 0) - more;\n\n if (total <= clientWidth && itemsLimit >= items.length) {\n return computedSide === 'end' ? itemsLimit : 0;\n }\n\n return computedSide === 'start'\n ? this.getIndexStart(items, total, more)\n : this.getIndexEnd(items, total, more);\n }\n\n private getIndexStart(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const min = Number.isFinite(itemsLimit) ? items.length - itemsLimit - 1 : 0;\n const last = items.length - 1;\n const mandatory = required === -1 ? last : required;\n\n for (let i = 1; i < last; i++) {\n if (i === mandatory + 1) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i, mandatory < min ? min + 1 : min, items.length);\n }\n }\n\n return items.length;\n }\n\n private getIndexEnd(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const max = itemsLimit > required ? itemsLimit - 1 : itemsLimit - 2;\n const last = items.length - 1;\n const mandatory = required === -1 ? 0 : required;\n\n for (let i = last - 1; i > 0; i--) {\n if (i === mandatory) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i - 1, -1, max);\n }\n }\n\n return -1;\n }\n\n private getOverflowIndexMultiline(): number {\n const {children} = this.el;\n const {linesLimit, itemsLimit} = this.directive;\n const items = Array.from(children) as HTMLElement[];\n const rows = new Set(items.map((item) => item.offsetTop));\n const offset = Array.from(rows)[linesLimit - 1];\n const firstItemLastRow = items.findIndex((i) => i.offsetTop === offset);\n const lastRow = items.slice(firstItemLastRow);\n const index = firstItemLastRow + this.getOverflowIndex(lastRow);\n\n return Math.min(itemsLimit - 1, index);\n }\n}\n","import {Directive} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiMore]',\n})\nexport class TuiMore {\n public static ngTemplateContextGuard(\n _dir: TuiMore,\n _ctx: unknown,\n ): _ctx is TuiContext<number> {\n return true;\n }\n}\n","import {AsyncPipe, NgForOf, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n inject,\n Output,\n type QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TuiItem} from '@taiga-ui/cdk/directives/item';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiItemsWithMoreService} from './items-with-more.service';\nimport {TuiMore} from './more.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-items-with-more',\n imports: [AsyncPipe, NgForOf, NgIf, NgTemplateOutlet],\n templateUrl: './items-with-more.template.html',\n styleUrls: ['./items-with-more.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n ResizeObserverService,\n TuiItemsWithMoreService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n hostDirectives: [\n {\n directive: TuiItemsWithMoreDirective,\n inputs: ['itemsLimit', 'required', 'side', 'linesLimit'],\n },\n ],\n})\nexport class TuiItemsWithMoreComponent {\n @ContentChildren(TuiItem, {read: TemplateRef, descendants: true})\n protected readonly items: QueryList<TemplateRef<unknown>> = EMPTY_QUERY;\n\n @ContentChild(TuiMore, {read: TemplateRef})\n protected readonly more?: TemplateRef<TuiContext<number>>;\n\n protected readonly directive = inject(TuiItemsWithMoreDirective);\n\n @Output()\n public readonly lastIndexChange = inject(TuiItemsWithMoreService);\n\n public readonly lastIndex = toSignal(this.lastIndexChange, {\n initialValue: 0,\n });\n\n protected get isMoreHidden(): boolean {\n const {computedSide} = this.directive;\n\n return (\n (this.lastIndex() >= this.items.length - 1 && computedSide === 'end') ||\n (!this.lastIndex() && computedSide === 'start')\n );\n }\n\n protected isHidden(index: number): boolean {\n const {computedSide, required} = this.directive;\n\n return (\n (index > this.lastIndex() && index !== required && computedSide === 'end') ||\n (index < this.lastIndex() && index !== required && computedSide === 'start')\n );\n }\n}\n","<ng-container *ngIf=\"items.changes | async\" />\n<ng-container\n *ngIf=\"directive.side === 'start'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<div\n *ngFor=\"let item of items; let index = index\"\n class=\"t-item\"\n [class.t-item_hidden]=\"isHidden(index)\"\n>\n <ng-container *ngTemplateOutlet=\"item\" />\n</div>\n<ng-container\n *ngIf=\"directive.side === 'end'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<ng-template #template>\n <span\n *ngIf=\"!isMoreHidden\"\n class=\"t-item t-item_more\"\n >\n <ng-container\n [ngTemplateOutlet]=\"more || null\"\n [ngTemplateOutletContext]=\"{$implicit: lastIndex()}\"\n />\n </span>\n</ng-template>\n","import {TuiItem} from '@taiga-ui/cdk/directives/item';\n\nimport {TuiItemsWithMoreComponent} from './items-with-more.component';\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiMore} from './more.directive';\n\nexport const TuiItemsWithMore = [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMore,\n TuiItem,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiItemsWithMoreDirective"],"mappings":";;;;;;;;;;;;;AAIA,MA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Aa,EAAE,IAAI;AACnB,gCAAA,OAAO,EAAE,IAAI;AAChB,6BAAA;AACJ,yBAAA;qBACJ,EACe,cAAA,EAAA;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,yBAAyB;4BACpC,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC;AAC3D,yBAAA;AACJ,qBAAA,EAAA,QAAA,EAAA,ytBAAA,EAAA,MAAA,EAAA,CAAA,+UAAA,CAAA,EAAA,CAAA;8BAIkB,KAAK,EAAA,CAAA;sBADvB,eAAe;uBAAC,OAAO,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAC,CAAA;gBAI7C,IAAI,EAAA,CAAA;sBADtB,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,OAAO,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,CAAA;gBAM1B,eAAe,EAAA,CAAA;sBAD9B,MAAM;;;AEvDE,MAAA,gBAAgB,GAAG;IAC5B,yBAAyB;IACzB,yBAAyB;IACzB,OAAO;IACP,OAAO;;;ACVX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-items-with-more.mjs","sources":["../../../projects/kit/components/items-with-more/items-with-more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.service.ts","../../../projects/kit/components/items-with-more/more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.component.ts","../../../projects/kit/components/items-with-more/items-with-more.template.html","../../../projects/kit/components/items-with-more/items-with-more.ts","../../../projects/kit/components/items-with-more/taiga-ui-kit-components-items-with-more.ts"],"sourcesContent":["import {Directive, Input, type OnChanges} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {Subject} from 'rxjs';\n\n@Directive({\n standalone: true,\n host: {\n '[class._multiline]': 'linesLimit > 1',\n '[style.--t-min-width.px]': 'maxWidth()',\n },\n})\nexport class TuiItemsWithMoreDirective implements OnChanges {\n private readonly el = tuiInjectElement();\n\n @Input()\n public itemsLimit = Infinity;\n\n @Input()\n public required = -1;\n\n @Input()\n public linesLimit = 1;\n\n @Input()\n public side: 'end' | 'start' = 'end';\n\n // TODO: refactor to signal inputs after Angular update\n public readonly change$ = new Subject<void>();\n\n public get computedSide(): 'end' | 'start' {\n return this.linesLimit > 1 ? 'end' : this.side;\n }\n\n public ngOnChanges(): void {\n this.change$.next();\n }\n\n protected maxWidth(): number {\n return Math.max(...Array.from(this.el.children, ({clientWidth}) => clientWidth));\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {debounceTime, distinctUntilChanged, map, merge, Observable, share} from 'rxjs';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\n\n@Injectable()\nexport class TuiItemsWithMoreService extends Observable<number> {\n private readonly el = tuiInjectElement();\n private readonly directive = inject(TuiItemsWithMoreDirective);\n\n protected readonly stream$ = merge(\n this.directive.change$,\n inject(MutationObserverService, {self: true}),\n inject(ResizeObserverService, {self: true}),\n ).pipe(\n debounceTime(0, tuiZonefreeScheduler()),\n map(() =>\n this.directive.linesLimit > 1\n ? this.getOverflowIndexMultiline()\n : this.getOverflowIndex(Array.from(this.el.children)),\n ),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n share(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n private getOverflowIndex(children: Element[]): number {\n const {computedSide, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const items = Array.from(children, ({clientWidth}) => clientWidth);\n const index = computedSide === 'start' ? 0 : items.length - 1;\n const more = children[index]?.tagName === 'SPAN' ? (items[index] ?? 0) : 0;\n const total = items.reduce((sum, width) => sum + width, 0) - more;\n\n if (total <= clientWidth && itemsLimit >= items.length) {\n return computedSide === 'end' ? itemsLimit : 0;\n }\n\n return computedSide === 'start'\n ? this.getIndexStart(items, total, more)\n : this.getIndexEnd(items, total, more);\n }\n\n private getIndexStart(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const min = Number.isFinite(itemsLimit) ? items.length - itemsLimit - 1 : 0;\n const last = items.length - 1;\n const mandatory = required === -1 ? last : required;\n\n for (let i = 1; i < last; i++) {\n if (i === mandatory + 1) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i, mandatory < min ? min + 1 : min, items.length);\n }\n }\n\n return items.length;\n }\n\n private getIndexEnd(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const max = itemsLimit > required ? itemsLimit - 1 : itemsLimit - 2;\n const last = items.length - 1;\n const mandatory = required === -1 ? 0 : required;\n\n for (let i = last - 1; i > 0; i--) {\n if (i === mandatory) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i - 1, -1, max);\n }\n }\n\n return -1;\n }\n\n private getOverflowIndexMultiline(): number {\n const {children} = this.el;\n const {linesLimit, itemsLimit} = this.directive;\n const items = Array.from(children) as HTMLElement[];\n const rows = new Set(items.map((item) => item.offsetTop));\n const offset = Array.from(rows)[linesLimit - 1];\n const firstItemLastRow = items.findIndex((i) => i.offsetTop === offset);\n const lastRow = items.slice(firstItemLastRow);\n const index = firstItemLastRow + this.getOverflowIndex(lastRow);\n\n return Math.min(itemsLimit - 1, index);\n }\n}\n","import {Directive} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiMore]',\n})\nexport class TuiMore {\n public static ngTemplateContextGuard(\n _dir: TuiMore,\n _ctx: unknown,\n ): _ctx is TuiContext<number> {\n return true;\n }\n}\n","import {AsyncPipe, NgForOf, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n inject,\n Output,\n type QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TuiItem} from '@taiga-ui/cdk/directives/item';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiItemsWithMoreService} from './items-with-more.service';\nimport {TuiMore} from './more.directive';\n\n@Component({\n selector: 'tui-items-with-more',\n imports: [AsyncPipe, NgForOf, NgIf, NgTemplateOutlet],\n templateUrl: './items-with-more.template.html',\n styleUrls: ['./items-with-more.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n ResizeObserverService,\n TuiItemsWithMoreService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n hostDirectives: [\n {\n directive: TuiItemsWithMoreDirective,\n inputs: ['itemsLimit', 'required', 'side', 'linesLimit'],\n },\n ],\n})\nexport class TuiItemsWithMoreComponent {\n @ContentChildren(TuiItem, {read: TemplateRef, descendants: true})\n protected readonly items: QueryList<TemplateRef<unknown>> = EMPTY_QUERY;\n\n @ContentChild(TuiMore, {read: TemplateRef})\n protected readonly more?: TemplateRef<TuiContext<number>>;\n\n protected readonly directive = inject(TuiItemsWithMoreDirective);\n\n @Output()\n public readonly lastIndexChange = inject(TuiItemsWithMoreService);\n\n public readonly lastIndex = toSignal(this.lastIndexChange, {\n initialValue: 0,\n });\n\n protected get isMoreHidden(): boolean {\n const {computedSide} = this.directive;\n\n return (\n (this.lastIndex() >= this.items.length - 1 && computedSide === 'end') ||\n (!this.lastIndex() && computedSide === 'start')\n );\n }\n\n protected isHidden(index: number): boolean {\n const {computedSide, required} = this.directive;\n\n return (\n (index > this.lastIndex() && index !== required && computedSide === 'end') ||\n (index < this.lastIndex() && index !== required && computedSide === 'start')\n );\n }\n}\n","<ng-container *ngIf=\"items.changes | async\" />\n<ng-container\n *ngIf=\"directive.side === 'start'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<div\n *ngFor=\"let item of items; let index = index\"\n class=\"t-item\"\n [class.t-item_hidden]=\"isHidden(index)\"\n>\n <ng-container *ngTemplateOutlet=\"item\" />\n</div>\n<ng-container\n *ngIf=\"directive.side === 'end'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<ng-template #template>\n <span\n *ngIf=\"!isMoreHidden\"\n class=\"t-item t-item_more\"\n >\n <ng-container\n [ngTemplateOutlet]=\"more || null\"\n [ngTemplateOutletContext]=\"{$implicit: lastIndex()}\"\n />\n </span>\n</ng-template>\n","import {TuiItem} from '@taiga-ui/cdk/directives/item';\n\nimport {TuiItemsWithMoreComponent} from './items-with-more.component';\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiMore} from './more.directive';\n\nexport const TuiItemsWithMore = [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMore,\n TuiItem,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiItemsWithMoreDirective"],"mappings":";;;;;;;;;;;;;MAWa,yBAAyB,CAAA;AAPtC,IAAA,WAAA,GAAA;QAQqB,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;QAGjC,IAAA,CAAA,UAAU,GAAG,QAAQ;QAGrB,IAAA,CAAA,QAAQ,GAAG,CAAC,CAAC;QAGb,IAAA,CAAA,UAAU,GAAG,CAAC;QAGd,IAAA,CAAA,IAAI,GAAoB,KAAK;;AAGpB,QAAA,IAAA,CAAA,OAAO,GAA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';
2
+ import { inject, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
  import * as i1 from '@taiga-ui/core/directives/appearance';
5
5
  import { tuiAppearanceOptionsProvider, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
@@ -29,10 +29,10 @@ class TuiLike {
29
29
  const icon = tuiIsString(option) ? option : option(this.size);
30
30
  return icon && `url(${this.resolver(icon)})`;
31
31
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLike, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiLike, isStandalone: true, selector: "input[tuiLike][type=checkbox]", inputs: { color: ["tuiLike", "color"], uncheckedIcon: "uncheckedIcon", checkedIcon: "checkedIcon", size: "size" }, host: { attributes: { "tuiLike": "" }, properties: { "attr.data-size": "size", "attr.data-mode": "\"\"", "style.--t-icon-color": "color", "style.--t-unchecked-icon": "getIcon(\"unchecked\")", "style.--t-checked-icon": "getIcon(\"checked\")" } }, providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)], hostDirectives: [{ directive: i1.TuiWithAppearance }], ngImport: i0, template: '', isInline: true, styles: ["[tuiLike]{--t-size: var(--tui-height-m);--t-border-width: .75rem;inline-size:var(--t-size);block-size:var(--t-size);border:var(--t-border-width) transparent solid;border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";background:currentColor;-webkit-mask:var(--t-unchecked-icon) no-repeat center / contain;mask:var(--t-unchecked-icon) no-repeat center / contain}[tuiLike]:after{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{--t-size: var(--tui-height-s);--t-border-width: .5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLike, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiLike, isStandalone: true, selector: "input[tuiLike][type=checkbox]", inputs: { color: ["tuiLike", "color"], uncheckedIcon: "uncheckedIcon", checkedIcon: "checkedIcon", size: "size" }, host: { attributes: { "tuiLike": "" }, properties: { "attr.data-size": "size", "attr.data-mode": "\"\"", "style.--t-icon-color": "color", "style.--t-unchecked-icon": "getIcon(\"unchecked\")", "style.--t-checked-icon": "getIcon(\"checked\")" } }, providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)], hostDirectives: [{ directive: i1.TuiWithAppearance }], ngImport: i0, template: '', isInline: true, styles: ["[tuiLike]{inline-size:1em;block-size:1em;font-size:var(--tui-height-m);border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";background:currentColor;font-size:1.25rem;mask:var(--t-unchecked-icon) no-repeat center / calc(min(1em,100%) + 10 * var(--tui-stroke-width, .125rem)) min(1em,100%) padding-box;transition-property:transform,opacity}[tuiLike]:after{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{font-size:var(--tui-height-s)}[tuiLike][data-size=s]:before,[tuiLike][data-size=s]:after{font-size:1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
34
34
  }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLike, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLike, decorators: [{
36
36
  type: Component,
37
37
  args: [{ standalone: true, selector: 'input[tuiLike][type=checkbox]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)], hostDirectives: [TuiWithAppearance], host: {
38
38
  tuiLike: '',
@@ -41,7 +41,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
41
41
  '[style.--t-icon-color]': 'color',
42
42
  '[style.--t-unchecked-icon]': 'getIcon("unchecked")',
43
43
  '[style.--t-checked-icon]': 'getIcon("checked")',
44
- }, styles: ["[tuiLike]{--t-size: var(--tui-height-m);--t-border-width: .75rem;inline-size:var(--t-size);block-size:var(--t-size);border:var(--t-border-width) transparent solid;border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";background:currentColor;-webkit-mask:var(--t-unchecked-icon) no-repeat center / contain;mask:var(--t-unchecked-icon) no-repeat center / contain}[tuiLike]:after{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{--t-size: var(--tui-height-s);--t-border-width: .5rem}\n"] }]
44
+ }, styles: ["[tuiLike]{inline-size:1em;block-size:1em;font-size:var(--tui-height-m);border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";background:currentColor;font-size:1.25rem;mask:var(--t-unchecked-icon) no-repeat center / calc(min(1em,100%) + 10 * var(--tui-stroke-width, .125rem)) min(1em,100%) padding-box;transition-property:transform,opacity}[tuiLike]:after{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{font-size:var(--tui-height-s)}[tuiLike][data-size=s]:before,[tuiLike][data-size=s]:after{font-size:1rem}\n"] }]
45
45
  }], propDecorators: { color: [{
46
46
  type: Input,
47
47
  args: ['tuiLike']
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-like.mjs","sources":["../../../projects/kit/components/like/like.options.ts","../../../projects/kit/components/like/like.component.ts","../../../projects/kit/components/like/taiga-ui-kit-components-like.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiLikeOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeS;\n readonly icons: Readonly<{\n checked: TuiStringHandler<TuiSizeS> | string;\n unchecked: TuiStringHandler<TuiSizeS> | string;\n }>;\n}\n\nexport const [TUI_LIKE_OPTIONS, tuiLikeOptionsProvider] =\n tuiCreateOptions<TuiLikeOptions>({\n size: 'm',\n appearance: 'secondary',\n icons: {\n unchecked: '@tui.heart',\n checked: '@tui.heart-filled',\n },\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {tuiInjectIconResolver} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nimport {TUI_LIKE_OPTIONS, type TuiLikeOptions} from './like.options';\n\n@Component({\n standalone: true,\n selector: 'input[tuiLike][type=checkbox]',\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/like.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)],\n hostDirectives: [TuiWithAppearance],\n host: {\n tuiLike: '',\n '[attr.data-size]': 'size',\n '[attr.data-mode]': '\"\"',\n '[style.--t-icon-color]': 'color',\n '[style.--t-unchecked-icon]': 'getIcon(\"unchecked\")',\n '[style.--t-checked-icon]': 'getIcon(\"checked\")',\n },\n})\nexport class TuiLike {\n private readonly options = inject(TUI_LIKE_OPTIONS);\n private readonly resolver = tuiInjectIconResolver();\n\n @Input('tuiLike')\n public color = '';\n\n @Input()\n public uncheckedIcon: TuiStringHandler<TuiSizeS> | string =\n this.options.icons.unchecked;\n\n @Input()\n public checkedIcon: TuiStringHandler<TuiSizeS> | string = this.options.icons.checked;\n\n @Input()\n public size: TuiSizeS = this.options.size;\n\n protected getIcon(state: keyof TuiLikeOptions['icons']): string {\n const option = state === 'checked' ? this.checkedIcon : this.uncheckedIcon;\n const icon = tuiIsString(option) ? option : option(this.size);\n\n return icon && `url(${this.resolver(icon)})`;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */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AA,CAAA;8BAOM,KAAK,EAAA,CAAA;sBADX,KAAK;uBAAC,SAAS,CAAA;gBAIT,aAAa,EAAA,CAAA;sBADnB,KAAK;gBAKC,WAAW,EAAA,CAAA;sBADjB,KAAK;gBAIC,IAAI,EAAA,CAAA;sBADV,KAAK;;;AClDV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-like.mjs","sources":["../../../projects/kit/components/like/like.options.ts","../../../projects/kit/components/like/like.component.ts","../../../projects/kit/components/like/taiga-ui-kit-components-like.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiLikeOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeS;\n readonly icons: Readonly<{\n checked: TuiStringHandler<TuiSizeS> | string;\n unchecked: TuiStringHandler<TuiSizeS> | string;\n }>;\n}\n\nexport const [TUI_LIKE_OPTIONS, tuiLikeOptionsProvider] =\n tuiCreateOptions<TuiLikeOptions>({\n size: 'm',\n appearance: 'secondary',\n icons: {\n unchecked: '@tui.heart',\n checked: '@tui.heart-filled',\n },\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {tuiInjectIconResolver} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nimport {TUI_LIKE_OPTIONS, type TuiLikeOptions} from './like.options';\n\n@Component({\n standalone: true,\n selector: 'input[tuiLike][type=checkbox]',\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/like.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)],\n hostDirectives: [TuiWithAppearance],\n host: {\n tuiLike: '',\n '[attr.data-size]': 'size',\n '[attr.data-mode]': '\"\"',\n '[style.--t-icon-color]': 'color',\n '[style.--t-unchecked-icon]': 'getIcon(\"unchecked\")',\n '[style.--t-checked-icon]': 'getIcon(\"checked\")',\n },\n})\nexport class TuiLike {\n private readonly options = inject(TUI_LIKE_OPTIONS);\n private readonly resolver = tuiInjectIconResolver();\n\n @Input('tuiLike')\n public color = '';\n\n @Input()\n public uncheckedIcon: TuiStringHandler<TuiSizeS> | string =\n this.options.icons.unchecked;\n\n @Input()\n public checkedIcon: TuiStringHandler<TuiSizeS> | string = this.options.icons.checked;\n\n @Input()\n public size: TuiSizeS = this.options.size;\n\n protected getIcon(state: keyof TuiLikeOptions['icons']): string {\n const option = state === 'checked' ? this.checkedIcon : this.uncheckedIcon;\n const icon = tuiIsString(option) ? option : option(this.size);\n\n return icon && `url(${this.resolver(icon)})`;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAaa,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,GACnD,gBAAgB,CAAiB;AAC7B,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,UAAU,EAAE,WAAW;AACvB,IAAA,KAAK,EAAE;AACH,QAAA,SAAS,EAAE,YAAY;AACvB,QAAA,OAAO,EAAE,mBAAmB;AAC/B,KAAA;AACJ,CAAA;;MCeQ,OAAO,CAAA;AAlBpB,IAAA,WAAA,GAAA;AAmBqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAClC,IAAA,CAAA,QAAQ,GAAG,qBAAqB,EAAE;QAG5C,IAAA,CAAA,KAAK,GAAG,EAAE;QAGV,IAAA,CAAA,aAAa,GAChB,IAAI,CAAC,OAAO,CAAC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AAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAeH,OAAO,EAAA,UAAA,EAAA,CAAA;kBAlBnB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,+BAA+B,EAAA,QAAA,EAC/B,EAAE,iBAEG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,CAAC,EAAA,cAAA,EAC3C,CAAC,iBAAiB,CAAC,EAAA,IAAA,EAC7B;AACF,wBAAA,OAAO,EAAE,EAAE;AACX,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,kBAAkB,EAAE,IAAI;AACxB,wBAAA,wBAAwB,EAAE,OAAO;AACjC,wBAAA,4BAA4B,EAAE,sBAAsB;AACpD,wBAAA,0BAA0B,EAAE,oBAAoB;AACnD,qBAAA,EAAA,MAAA,EAAA,CAAA,23BAAA,CAAA,EAAA;8BAOM,KAAK,EAAA,CAAA;sBADX,KAAK;uBAAC,SAAS;gBAIT,aAAa,EAAA,CAAA;sBADnB;gBAKM,WAAW,EAAA,CAAA;sBADjB;gBAIM,IAAI,EAAA,CAAA;sBADV;;;AClDL;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Component, ChangeDetectionStrategy, inject, Directive, ChangeDetectorRef, signal, ElementRef, ViewChild, Input, Output } from '@angular/core';
2
+ import { InjectionToken, ChangeDetectionStrategy, Component, inject, Directive, ChangeDetectorRef, signal, ElementRef, Input, Output, ViewChild } from '@angular/core';
3
3
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
5
5
  import { tuiInjectElement, tuiIsCurrentTarget } from '@taiga-ui/cdk/utils/dom';
@@ -29,18 +29,18 @@ class TuiLineClampBox extends TuiHintBaseComponent {
29
29
  get width() {
30
30
  return this.accessor.getClientRect().width;
31
31
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiLineClampBox, isStandalone: true, selector: "tui-line-clamp-box", host: { properties: { "style.min-width.px": "width" } }, providers: TUI_HINT_PROVIDERS, usesInheritance: true, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLineClampBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiLineClampBox, isStandalone: true, selector: "tui-line-clamp-box", host: { properties: { "style.min-width.px": "width" } }, providers: TUI_HINT_PROVIDERS, usesInheritance: true, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
34
34
  <ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>
35
- `, isInline: true, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:-webkit-min-content;inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
+ `, isInline: true, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampBox, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLineClampBox, decorators: [{
38
38
  type: Component,
39
- args: [{ standalone: true, selector: 'tui-line-clamp-box', imports: [PolymorpheusOutlet], template: `
39
+ args: [{ selector: 'tui-line-clamp-box', imports: [PolymorpheusOutlet], template: `
40
40
  <ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>
41
41
  `, changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_HINT_PROVIDERS, hostDirectives: [TuiAnimated], host: {
42
42
  '[style.min-width.px]': 'width',
43
- }, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:-webkit-min-content;inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"] }]
43
+ }, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"] }]
44
44
  }] });
45
45
 
46
46
  class TuiLineClampPositionDirective extends TuiPositionAccessor {
@@ -53,10 +53,10 @@ class TuiLineClampPositionDirective extends TuiPositionAccessor {
53
53
  const { top, left } = this.accessor.getClientRect();
54
54
  return [top, left];
55
55
  }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampPositionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
57
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiLineClampPositionDirective, isStandalone: true, selector: "[tuiLineClampPosition]", providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)], usesInheritance: true, ngImport: i0 }); }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLineClampPositionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
57
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiLineClampPositionDirective, isStandalone: true, selector: "[tuiLineClampPosition]", providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)], usesInheritance: true, ngImport: i0 }); }
58
58
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
60
60
  type: Directive,
61
61
  args: [{
62
62
  standalone: true,
@@ -111,17 +111,17 @@ class TuiLineClamp {
111
111
  }
112
112
  this.maxHeight.set(this.lineHeight * this.linesLimit$.value);
113
113
  }
114
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClamp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
115
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiLineClamp, isStandalone: true, selector: "tui-line-clamp", inputs: { lineHeight: "lineHeight", content: "content", linesLimit: "linesLimit" }, outputs: { overflownChange: "overflownChange" }, host: { listeners: { "transitionend": "updateView()", "mouseenter": "updateView()", "resize": "updateView()" }, properties: { "style.height.px": "height()", "style.max-height.px": "maxHeight()", "class._initialized": "initialized()" } }, providers: [
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLineClamp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
115
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiLineClamp, isStandalone: true, selector: "tui-line-clamp", inputs: { lineHeight: "lineHeight", content: "content", linesLimit: "linesLimit" }, outputs: { overflownChange: "overflownChange" }, host: { listeners: { "transitionend": "updateView()", "mouseenter": "updateView()", "resize": "updateView()" }, properties: { "style.height.px": "height()", "style.max-height.px": "maxHeight()", "class._initialized": "initialized()" } }, providers: [
116
116
  {
117
117
  provide: TUI_HINT_COMPONENT,
118
118
  useValue: TuiLineClampBox,
119
119
  },
120
120
  ], viewQueries: [{ propertyName: "outlet", first: true, predicate: TuiHintDirective, descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{position:relative;display:block;overflow:hidden}:host._initialized{transition-property:max-height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-wrapper{display:-webkit-box;-webkit-box-orient:block-axis;overflow:hidden;overflow-wrap:anywhere}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i1$1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: TuiLineClampPositionDirective, selector: "[tuiLineClampPosition]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
121
121
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClamp, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLineClamp, decorators: [{
123
123
  type: Component,
124
- args: [{ standalone: true, selector: 'tui-line-clamp', imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
124
+ args: [{ selector: 'tui-line-clamp', imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
125
125
  {
126
126
  provide: TUI_HINT_COMPONENT,
127
127
  useValue: TuiLineClampBox,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.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/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\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(\n ngDevMode ? 'TUI_LINE_CLAMP_OPTIONS' : '',\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TUI_HINT_PROVIDERS, TuiHintBaseComponent} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\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: TUI_HINT_PROVIDERS,\n hostDirectives: [TuiAnimated],\n host: {\n '[style.min-width.px]': 'width',\n },\n})\nexport class TuiLineClampBox extends TuiHintBaseComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n type DoCheck,\n ElementRef,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiIsCurrentTarget} from '@taiga-ui/cdk/utils/dom';\nimport {\n TUI_HINT_COMPONENT,\n TuiHint,\n TuiHintDirective,\n} from '@taiga-ui/core/directives/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n BehaviorSubject,\n debounceTime,\n distinctUntilChanged,\n filter,\n map,\n type Observable,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\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: TuiLineClampBox,\n },\n ],\n host: {\n '[style.height.px]': 'height()',\n '[style.max-height.px]': 'maxHeight()',\n '[class._initialized]': 'initialized()',\n '(transitionend)': 'updateView()',\n '(mouseenter)': 'updateView()',\n '(resize)': 'updateView()',\n },\n})\nexport class TuiLineClamp implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly cd = inject(ChangeDetectorRef);\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n protected initialized = signal(false);\n protected maxHeight = signal(0);\n protected height = signal(0);\n\n protected lineClamp = toSignal(\n this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.el, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n takeUntilDestroyed(),\n ),\n {initialValue: 0},\n );\n\n @Input()\n public lineHeight = 24;\n\n @Input()\n public content: PolymorpheusContent;\n\n @Output()\n public readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n debounceTime(0),\n distinctUntilChanged(),\n );\n\n @Input()\n public set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n public ngAfterViewInit(): void {\n this.initialized.set(true);\n }\n\n protected get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n protected updateView(): void {\n this.cd.detectChanges();\n }\n\n private update(): void {\n if (this.outlet) {\n this.height.set(this.outlet.nativeElement.scrollHeight);\n }\n\n this.maxHeight.set(this.lineHeight * this.linesLimit$.value);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport *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QAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAmB3D,YAAY,EAAA,UAAA,EAAA,CAAA;kBAtBxB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,gBAAgB,EACjB,OAAA,EAAA,CAAC,kBAAkB,EAAE,OAAO,EAAE,6BAA6B,CAAC,EAAA,eAAA,EAGpD,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,QAAQ,EAAE,eAAe;AAC5B,yBAAA;qBACJ,EACK,IAAA,EAAA;AACF,wBAAA,mBAAmB,EAAE,UAAU;AAC/B,wBAAA,uBAAuB,EAAE,aAAa;AACtC,wBAAA,sBAAsB,EAAE,eAAe;AACvC,wBAAA,iBAAiB,EAAE,cAAc;AACjC,wBAAA,cAAc,EAAE,cAAc;AAC9B,wBAAA,UAAU,EAAE,cAAc;AAC7B,qBAAA,EAAA,QAAA,EAAA,uTAAA,EAAA,MAAA,EAAA,CAAA,oSAAA,CAAA,EAAA,CAAA;8BAIgB,MAAM,EAAA,CAAA;sBADtB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAA;gBA8BxC,UAAU,EAAA,CAAA;sBADhB,KAAK;gBAIC,OAAO,EAAA,CAAA;sBADb,KAAK;gBAIU,eAAe,EAAA,CAAA;sBAD9B,MAAM;gBAOI,UAAU,EAAA,CAAA;sBADpB,KAAK;;;AExGV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.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/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\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(\n ngDevMode ? 'TUI_LINE_CLAMP_OPTIONS' : '',\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TUI_HINT_PROVIDERS, TuiHintBaseComponent} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\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: TUI_HINT_PROVIDERS,\n hostDirectives: [TuiAnimated],\n host: {\n '[style.min-width.px]': 'width',\n },\n})\nexport class TuiLineClampBox extends TuiHintBaseComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n type DoCheck,\n ElementRef,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiIsCurrentTarget} from '@taiga-ui/cdk/utils/dom';\nimport {\n TUI_HINT_COMPONENT,\n TuiHint,\n TuiHintDirective,\n} from '@taiga-ui/core/directives/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n BehaviorSubject,\n debounceTime,\n distinctUntilChanged,\n filter,\n map,\n type Observable,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\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: TuiLineClampBox,\n },\n ],\n host: {\n '[style.height.px]': 'height()',\n '[style.max-height.px]': 'maxHeight()',\n '[class._initialized]': 'initialized()',\n '(transitionend)': 'updateView()',\n '(mouseenter)': 'updateView()',\n '(resize)': 'updateView()',\n },\n})\nexport class TuiLineClamp implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly cd = inject(ChangeDetectorRef);\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n protected initialized = signal(false);\n protected maxHeight = signal(0);\n protected height = signal(0);\n\n protected lineClamp = toSignal(\n this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.el, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n takeUntilDestroyed(),\n ),\n {initialValue: 0},\n );\n\n @Input()\n public lineHeight = 24;\n\n @Input()\n public content: PolymorpheusContent;\n\n @Output()\n public readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n debounceTime(0),\n distinctUntilChanged(),\n );\n\n @Input()\n public set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n public ngAfterViewInit(): void {\n this.initialized.set(true);\n }\n\n protected get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n protected updateView(): void {\n this.cd.detectChanges();\n }\n\n private update(): void {\n if (this.outlet) {\n this.height.set(this.outlet.nativeElement.scrollHeight);\n }\n\n this.maxHeight.set(this.lineHeight * this.linesLimit$.value);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAOO,MAAM,8BAA8B,GAAwB;AAC/D,IAAA,QAAQ,EAAE,IAAI;;AAGlB;;AAEG;AACI,MAAM,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAAwB,GAAG,EAAE,EACzC;AACI,IAAA,OAAO,EAAE,MAAM,8BAA8B;AAChD,CAAA;AAGC,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC;AACL;;ACVM,MAAO,eAAgB,SAAQ,oBAAoB,CAAA;AACrD,IAAA,IAAc,KAAK,GAAA;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK;IAC9C;8GAHS,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,EAAA,SAAA,EANb,kBAAkB,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EALnB;;AAET,IAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gbAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA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,MAAA,EAAA,CAAA,CAAA;;2FAmB3D,YAAY,EAAA,UAAA,EAAA,CAAA;kBArBxB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,OAAA,EACjB,CAAC,kBAAkB,EAAE,OAAO,EAAE,6BAA6B,CAAC,EAAA,eAAA,EAGpD,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,QAAQ,EAAE,eAAe;AAC5B,yBAAA;qBACJ,EAAA,IAAA,EACK;AACF,wBAAA,mBAAmB,EAAE,UAAU;AAC/B,wBAAA,uBAAuB,EAAE,aAAa;AACtC,wBAAA,sBAAsB,EAAE,eAAe;AACvC,wBAAA,iBAAiB,EAAE,cAAc;AACjC,wBAAA,cAAc,EAAE,cAAc;AAC9B,wBAAA,UAAU,EAAE,cAAc;AAC7B,qBAAA,EAAA,QAAA,EAAA,uTAAA,EAAA,MAAA,EAAA,CAAA,oSAAA,CAAA,EAAA;8BAIgB,MAAM,EAAA,CAAA;sBADtB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;gBA8BxC,UAAU,EAAA,CAAA;sBADhB;gBAIM,OAAO,EAAA,CAAA;sBADb;gBAIe,eAAe,EAAA,CAAA;sBAD9B;gBAOU,UAAU,EAAA,CAAA;sBADpB;;;AEvGL;;AAEG;;;;"}
@@ -1,32 +1,32 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
  import * as i1 from '@taiga-ui/core/directives/appearance';
5
5
  import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
6
6
 
7
7
  class TuiMessageStyles {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessageStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMessageStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;-webkit-text-decoration:underline solid!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessageStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMessageStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessageStyles, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessageStyles, decorators: [{
12
12
  type: Component,
13
13
  args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
14
14
  class: 'tui-message',
15
- }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;-webkit-text-decoration:underline solid!important;text-decoration:underline solid!important}\n"] }]
15
+ }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"] }]
16
16
  }] });
17
17
  class TuiMessage {
18
18
  constructor() {
19
19
  this.nothing = tuiWithStyles(TuiMessageStyles);
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
23
23
  {
24
24
  provide: TUI_APPEARANCE_OPTIONS,
25
25
  useValue: { appearance: 'neutral' },
26
26
  },
27
27
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }], ngImport: i0 }); }
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessage, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessage, decorators: [{
30
30
  type: Directive,
31
31
  args: [{
32
32
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/message.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-message',\n },\n})\nclass TuiMessageStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(TuiMessageStyles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAYA,MAUM,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA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,CAAA,iBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAGQ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAXtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,iBAAiB,CAAC;AACtC,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/message.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-message',\n },\n})\nclass TuiMessageStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(TuiMessageStyles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAYA,MAUM,gBAAgB,CAAA;8GAAhB,gBAAgB,EAAA,IAAA,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,SAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAGQ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAXtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,iBAAiB,CAAC;AACtC,iBAAA;;;AClCD;;AAEG;;;;"}
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, inject, computed, Component, ChangeDetectionStrategy, Input, ContentChildren, Directive } from '@angular/core';
2
+ import { signal, inject, computed, ContentChildren, Input, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
3
  import { toSignal } from '@angular/core/rxjs-interop';
4
4
  import { NgControl } from '@angular/forms';
5
5
  import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
6
6
  import { TuiOptionWithValue, tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
7
7
  import { TuiLink } from '@taiga-ui/core/components/link';
8
8
  import * as i2 from '@taiga-ui/core/components/textfield';
9
- import { TuiTextfieldComponent, TUI_TEXTFIELD_OPTIONS, TuiTextfield, TuiSelectLike } from '@taiga-ui/core/components/textfield';
9
+ import { TuiTextfieldComponent, TUI_TEXTFIELD_OPTIONS, TuiSelectLike, TuiTextfield } from '@taiga-ui/core/components/textfield';
10
10
  import { TUI_ITEMS_HANDLERS } from '@taiga-ui/core/directives/items-handlers';
11
11
  import { TUI_MULTI_SELECT_TEXTS } from '@taiga-ui/kit/tokens';
12
12
  import { tuiInjectValue, tuiIsFlat } from '@taiga-ui/kit/utils';
@@ -43,12 +43,12 @@ class TuiMultiSelectGroupComponent {
43
43
  const others = this.value().filter((current) => values.every((item) => !matcher(current, item)));
44
44
  this.control?.control?.setValue(this.checked() ? others : others.concat(values));
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectGroupComponent, isStandalone: true, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: "label" }, host: { properties: { "class._label": "label" } }, queries: [{ propertyName: "options", predicate: TuiOptionWithValue }], ngImport: i0, template: "<span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()?.[checked() ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}\n"], dependencies: [{ kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectGroupComponent, isStandalone: true, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: "label" }, host: { properties: { "class._label": "label" } }, queries: [{ propertyName: "options", predicate: TuiOptionWithValue }], ngImport: i0, template: "<span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()?.[checked() ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}\n"], dependencies: [{ kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
48
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupComponent, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupComponent, decorators: [{
50
50
  type: Component,
51
- args: [{ standalone: true, selector: 'tui-opt-group[tuiMultiSelectGroup]', imports: [TuiLink], changeDetection: ChangeDetectionStrategy.OnPush, host: {
51
+ args: [{ selector: 'tui-opt-group[tuiMultiSelectGroup]', imports: [TuiLink], changeDetection: ChangeDetectionStrategy.OnPush, host: {
52
52
  '[class._label]': 'label',
53
53
  }, template: "<span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()?.[checked() ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}\n"] }]
54
54
  }], propDecorators: { label: [{
@@ -71,8 +71,8 @@ class TuiMultiSelectOption {
71
71
  controlValue.some((item) => this.handlers?.identityMatcher()(item, optionValue) ??
72
72
  item === optionValue));
73
73
  }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
75
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectOption, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
75
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectOption, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
76
76
  <input
77
77
  *ngIf="option"
78
78
  tuiCheckbox
@@ -82,9 +82,9 @@ class TuiMultiSelectOption {
82
82
  />
83
83
  `, isInline: true, styles: [":host-context(tui-dropdown-mobile) input{order:100;margin-inline-start:auto}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TuiCheckbox, selector: "input[type=\"checkbox\"][tuiCheckbox]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
84
84
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectOption, decorators: [{
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectOption, decorators: [{
86
86
  type: Component,
87
- args: [{ standalone: true, imports: [NgIf, TuiCheckbox], template: `
87
+ args: [{ imports: [NgIf, TuiCheckbox], template: `
88
88
  <input
89
89
  *ngIf="option"
90
90
  tuiCheckbox
@@ -96,10 +96,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
96
96
  }] });
97
97
 
98
98
  class TuiMultiSelectGroupDirective {
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
100
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectGroupDirective, isStandalone: true, selector: "[tuiMultiSelectGroup]", providers: [tuiAsOptionContent(TuiMultiSelectOption)], ngImport: i0 }); }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
100
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectGroupDirective, isStandalone: true, selector: "[tuiMultiSelectGroup]", providers: [tuiAsOptionContent(TuiMultiSelectOption)], ngImport: i0 }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupDirective, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupDirective, decorators: [{
103
103
  type: Directive,
104
104
  args: [{
105
105
  standalone: true,
@@ -129,12 +129,12 @@ class TuiMultiSelectNative {
129
129
  const options = Array.from(this.el.selectedOptions).map(({ index }) => index);
130
130
  this.textfield.cva?.onChange(items.flat().filter((_, i) => options.includes(i)));
131
131
  }
132
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
133
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectNative, isStandalone: true, selector: "select[tuiMultiSelect]", inputs: { items: "items", labels: "labels", placeholder: "placeholder" }, host: { attributes: { "multiple": "" }, listeners: { "click.stop.zoneless": "0", "input": "onInput()" } }, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [{ directive: i1.TuiInputChipDirective }, { directive: i2.TuiSelectLike }], ngImport: i0, template: "<ng-container *ngIf=\"items && !isFlat(items); else flatItems\">\n <optgroup\n *ngFor=\"let group of labels; let index = index\"\n [label]=\"labels[index]\"\n >\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n </ng-container>\n</ng-container>\n\n<ng-template #flatItems>\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\n </ng-container>\n</ng-template>\n\n<ng-template\n #options\n let-items\n>\n <option\n *ngFor=\"let option of items\"\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels]), tui-data-list-wrapper:not([labels])[new]", inputs: ["items", "disabledItemHandler", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "component", type: i3.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["labels"] }, { kind: "directive", type: i2.TuiTextfieldDropdownDirective, selector: "ng-template[tuiTextfieldDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
133
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectNative, isStandalone: true, selector: "select[tuiMultiSelect]", inputs: { items: "items", labels: "labels", placeholder: "placeholder" }, host: { attributes: { "multiple": "" }, listeners: { "click.stop.zoneless": "0", "input": "onInput()" } }, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [{ directive: i1.TuiInputChipDirective }, { directive: i2.TuiSelectLike }], ngImport: i0, template: "<ng-container *ngIf=\"items && !isFlat(items); else flatItems\">\n <optgroup\n *ngFor=\"let group of labels; let index = index\"\n [label]=\"labels[index]\"\n >\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n </ng-container>\n</ng-container>\n\n<ng-template #flatItems>\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\n </ng-container>\n</ng-template>\n\n<ng-template\n #options\n let-items\n>\n <option\n *ngFor=\"let option of items\"\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels]), tui-data-list-wrapper:not([labels])[new]", inputs: ["items", "disabledItemHandler", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "component", type: i3.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["labels"] }, { kind: "directive", type: i2.TuiTextfieldDropdownDirective, selector: "ng-template[tuiTextfieldDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
134
134
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectNative, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectNative, decorators: [{
136
136
  type: Component,
137
- args: [{ standalone: true, selector: 'select[tuiMultiSelect]', imports: [NgForOf, NgIf, NgTemplateOutlet, TuiDataListWrapper, TuiTextfield], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [TuiInputChipDirective, TuiSelectLike], host: {
137
+ args: [{ selector: 'select[tuiMultiSelect]', imports: [NgForOf, NgIf, NgTemplateOutlet, TuiDataListWrapper, TuiTextfield], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [TuiInputChipDirective, TuiSelectLike], host: {
138
138
  multiple: '',
139
139
  '(click.stop.zoneless)': '0',
140
140
  '(input)': 'onInput()',