@taiga-ui/kit 4.51.0 → 4.52.0-canary.34c26c6

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 (726) hide show
  1. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  2. package/components/files/file/file.options.d.ts +1 -1
  3. package/components/index.d.ts +1 -0
  4. package/components/input-chip/input-chip.options.d.ts +1 -1
  5. package/components/input-color/input-color.component.d.ts +2 -1
  6. package/components/input-color/input-color.options.d.ts +1 -1
  7. package/components/input-date/input-date.directive.d.ts +1 -1
  8. package/components/input-date/input-date.options.d.ts +1 -1
  9. package/components/input-number/input-number.options.d.ts +1 -1
  10. package/components/input-number/quantum.directive.d.ts +1 -1
  11. package/components/input-phone/input-phone.options.d.ts +1 -1
  12. package/components/input-time/input-time.component.d.ts +1 -1
  13. package/components/input-time/input-time.options.d.ts +1 -1
  14. package/components/like/like.options.d.ts +1 -1
  15. package/components/notification-middle/index.d.ts +3 -0
  16. package/components/notification-middle/notification-middle.component.d.ts +16 -0
  17. package/components/notification-middle/notification-middle.directive.d.ts +7 -0
  18. package/components/notification-middle/notification-middle.service.d.ts +7 -0
  19. package/components/segmented/segmented.component.d.ts +6 -4
  20. package/components/textarea/textarea-limit.directive.d.ts +0 -1
  21. package/components/textarea/textarea.options.d.ts +1 -1
  22. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  23. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
  24. package/directives/copy/copy.options.d.ts +1 -1
  25. package/directives/highlight/highlight.directive.d.ts +3 -1
  26. package/directives/password/password.options.d.ts +1 -1
  27. package/directives/tooltip/tooltip.options.d.ts +4 -1
  28. package/fesm2022/taiga-ui-kit-components-accordion.mjs +14 -14
  29. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
  31. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-kit-components-avatar.mjs +18 -18
  33. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  35. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-kit-components-badge.mjs +8 -8
  37. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  39. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  41. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +4 -4
  43. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -4
  45. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -5
  47. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +6 -6
  49. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-kit-components-carousel.mjs +18 -18
  51. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -5
  53. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-kit-components-chip.mjs +8 -8
  55. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
  57. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-kit-components-comment.mjs +8 -8
  59. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  61. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-confirm.mjs +9 -10
  63. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +9 -9
  65. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-drawer.mjs +6 -6
  67. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +7 -7
  69. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-files.mjs +38 -30
  71. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-filter.mjs +4 -4
  73. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +7 -7
  75. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +10 -10
  77. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-input-color.mjs +8 -8
  79. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -4
  81. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  83. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +7 -7
  85. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-input-date.mjs +11 -11
  87. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -4
  89. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
  91. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-input-month.mjs +7 -7
  93. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-input-number.mjs +20 -20
  95. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-input-password.mjs +4 -4
  97. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +14 -14
  99. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
  101. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +6 -5
  103. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-input-range.mjs +5 -5
  105. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +7 -7
  107. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-input-time.mjs +10 -10
  109. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-input-year.mjs +4 -4
  111. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +16 -16
  113. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-like.mjs +5 -5
  115. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +12 -12
  117. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-message.mjs +8 -8
  119. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +14 -14
  121. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +97 -0
  123. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -0
  124. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -6
  125. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-pagination.mjs +4 -4
  127. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +10 -10
  129. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-pin.mjs +8 -8
  131. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +10 -10
  133. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-preview.mjs +25 -25
  135. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-progress.mjs +28 -28
  137. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  139. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-push.mjs +15 -15
  141. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +5 -5
  143. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -8
  145. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-range.mjs +8 -8
  147. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-rating.mjs +6 -7
  149. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  151. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  153. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-select.mjs +11 -11
  155. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-slider.mjs +19 -20
  157. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-slides.mjs +7 -7
  159. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-status.mjs +7 -7
  161. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-stepper.mjs +7 -7
  163. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-switch.mjs +5 -5
  165. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-tabs.mjs +26 -24
  167. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-textarea.mjs +16 -17
  169. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  171. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-tree.mjs +29 -37
  173. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components.mjs +1 -0
  175. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  177. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  179. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  181. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +7 -7
  183. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-directives-connected.mjs +8 -8
  185. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-directives-copy.mjs +8 -8
  187. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  189. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -9
  191. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  193. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  195. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +8 -8
  197. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -8
  199. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-directives-password.mjs +3 -3
  201. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  203. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +8 -8
  205. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -8
  207. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -7
  209. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +7 -7
  211. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +4 -4
  213. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  215. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  217. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +7 -7
  219. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  221. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  223. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  225. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  227. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  229. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-tokens.mjs +3 -3
  231. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  233. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  234. package/package.json +12 -218
  235. package/styles/components/chip.less +6 -0
  236. package/tokens/input-date-options.d.ts +1 -1
  237. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  238. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  239. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  240. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  241. package/esm2022/components/accordion/accordion.mjs +0 -11
  242. package/esm2022/components/accordion/index.mjs +0 -6
  243. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  244. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  245. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  246. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  247. package/esm2022/components/action-bar/index.mjs +0 -4
  248. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  249. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  250. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  251. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  252. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  253. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  254. package/esm2022/components/avatar/index.mjs +0 -6
  255. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  256. package/esm2022/components/badge/badge.directive.mjs +0 -42
  257. package/esm2022/components/badge/badge.options.mjs +0 -13
  258. package/esm2022/components/badge/index.mjs +0 -3
  259. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  260. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  261. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  262. package/esm2022/components/badge-notification/index.mjs +0 -3
  263. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  264. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  265. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  266. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  267. package/esm2022/components/badged-content/index.mjs +0 -4
  268. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  269. package/esm2022/components/block/block.directive.mjs +0 -58
  270. package/esm2022/components/block/block.options.mjs +0 -13
  271. package/esm2022/components/block/index.mjs +0 -3
  272. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  273. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  274. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  275. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  276. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  277. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  278. package/esm2022/components/button-loading/index.mjs +0 -2
  279. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  280. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  281. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  282. package/esm2022/components/calendar-month/index.mjs +0 -3
  283. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  284. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  285. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  286. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  287. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  288. package/esm2022/components/calendar-range/index.mjs +0 -5
  289. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  290. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  291. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  292. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  293. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  294. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  295. package/esm2022/components/carousel/carousel.mjs +0 -15
  296. package/esm2022/components/carousel/index.mjs +0 -7
  297. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  298. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  299. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  300. package/esm2022/components/checkbox/index.mjs +0 -3
  301. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  302. package/esm2022/components/chip/chip.directive.mjs +0 -63
  303. package/esm2022/components/chip/chip.options.mjs +0 -13
  304. package/esm2022/components/chip/index.mjs +0 -3
  305. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  306. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  307. package/esm2022/components/combo-box/index.mjs +0 -2
  308. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  309. package/esm2022/components/comment/comment.directive.mjs +0 -35
  310. package/esm2022/components/comment/index.mjs +0 -2
  311. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  312. package/esm2022/components/compass/compass.component.mjs +0 -19
  313. package/esm2022/components/compass/index.mjs +0 -2
  314. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  315. package/esm2022/components/confirm/confirm.component.mjs +0 -29
  316. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  317. package/esm2022/components/confirm/index.mjs +0 -3
  318. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  319. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  320. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  321. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  322. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  323. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  324. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  325. package/esm2022/components/drawer/index.mjs +0 -2
  326. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  327. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  328. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  329. package/esm2022/components/elastic-container/index.mjs +0 -3
  330. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  331. package/esm2022/components/files/file/file.component.mjs +0 -144
  332. package/esm2022/components/files/file/file.options.mjs +0 -16
  333. package/esm2022/components/files/files/files.component.mjs +0 -49
  334. package/esm2022/components/files/files.mjs +0 -15
  335. package/esm2022/components/files/files.types.mjs +0 -2
  336. package/esm2022/components/files/files.utils.mjs +0 -30
  337. package/esm2022/components/files/files.validators.mjs +0 -32
  338. package/esm2022/components/files/index.mjs +0 -13
  339. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  340. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  341. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  342. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  343. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  344. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  345. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  346. package/esm2022/components/filter/filter.component.mjs +0 -65
  347. package/esm2022/components/filter/index.mjs +0 -2
  348. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  349. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  350. package/esm2022/components/floating-container/index.mjs +0 -2
  351. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  352. package/esm2022/components/index.mjs +0 -72
  353. package/esm2022/components/input-chip/index.mjs +0 -5
  354. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  355. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  356. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  357. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  358. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  359. package/esm2022/components/input-color/index.mjs +0 -3
  360. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  361. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  362. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  363. package/esm2022/components/input-date/date-filler.mjs +0 -20
  364. package/esm2022/components/input-date/index.mjs +0 -6
  365. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  366. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  367. package/esm2022/components/input-date/input-date.mjs +0 -9
  368. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  369. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  370. package/esm2022/components/input-date-multi/index.mjs +0 -3
  371. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  372. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  373. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  374. package/esm2022/components/input-date-range/index.mjs +0 -4
  375. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  376. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  377. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  378. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  379. package/esm2022/components/input-date-time/index.mjs +0 -5
  380. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  381. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  382. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  383. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  384. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  385. package/esm2022/components/input-inline/index.mjs +0 -2
  386. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  387. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  388. package/esm2022/components/input-month/index.mjs +0 -5
  389. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  390. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  391. package/esm2022/components/input-month/input-month.mjs +0 -9
  392. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  393. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  394. package/esm2022/components/input-month-range/index.mjs +0 -4
  395. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  396. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  397. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  398. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  399. package/esm2022/components/input-number/index.mjs +0 -6
  400. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  401. package/esm2022/components/input-number/input-number.mjs +0 -9
  402. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  403. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  404. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  405. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  406. package/esm2022/components/input-password/index.mjs +0 -3
  407. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  408. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  409. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  410. package/esm2022/components/input-phone/index.mjs +0 -3
  411. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  412. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  413. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  414. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  415. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  416. package/esm2022/components/input-phone-international/index.mjs +0 -3
  417. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  418. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  419. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  420. package/esm2022/components/input-pin/index.mjs +0 -2
  421. package/esm2022/components/input-pin/input-pin.component.mjs +0 -65
  422. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  423. package/esm2022/components/input-range/index.mjs +0 -3
  424. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  425. package/esm2022/components/input-range/input-range.mjs +0 -4
  426. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  427. package/esm2022/components/input-slider/index.mjs +0 -3
  428. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  429. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  430. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  431. package/esm2022/components/input-time/index.mjs +0 -5
  432. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  433. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  434. package/esm2022/components/input-time/input-time.mjs +0 -4
  435. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  436. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  437. package/esm2022/components/input-year/index.mjs +0 -4
  438. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  439. package/esm2022/components/input-year/input-year.mjs +0 -4
  440. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  441. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  442. package/esm2022/components/items-with-more/index.mjs +0 -6
  443. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  444. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  445. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  446. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  447. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  448. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  449. package/esm2022/components/like/index.mjs +0 -3
  450. package/esm2022/components/like/like.component.mjs +0 -46
  451. package/esm2022/components/like/like.options.mjs +0 -10
  452. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  453. package/esm2022/components/line-clamp/index.mjs +0 -4
  454. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  455. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  456. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  457. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  458. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  459. package/esm2022/components/message/index.mjs +0 -2
  460. package/esm2022/components/message/message.directive.mjs +0 -43
  461. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  462. package/esm2022/components/multi-select/index.mjs +0 -6
  463. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  464. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  465. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  466. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  467. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  468. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  469. package/esm2022/components/pager/index.mjs +0 -2
  470. package/esm2022/components/pager/pager.component.mjs +0 -97
  471. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  472. package/esm2022/components/pagination/index.mjs +0 -2
  473. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  474. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  475. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  476. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  477. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  478. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  479. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  480. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  481. package/esm2022/components/pin/index.mjs +0 -2
  482. package/esm2022/components/pin/pin.directive.mjs +0 -35
  483. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  484. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  485. package/esm2022/components/preview/dialog/index.mjs +0 -4
  486. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  487. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  488. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  489. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  490. package/esm2022/components/preview/index.mjs +0 -8
  491. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  492. package/esm2022/components/preview/preview.component.mjs +0 -142
  493. package/esm2022/components/preview/preview.mjs +0 -13
  494. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  495. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  496. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  497. package/esm2022/components/progress/index.mjs +0 -9
  498. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  499. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  500. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  501. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  502. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  503. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  504. package/esm2022/components/progress/progress.mjs +0 -15
  505. package/esm2022/components/progress/progress.options.mjs +0 -13
  506. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  507. package/esm2022/components/pulse/index.mjs +0 -2
  508. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  509. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  510. package/esm2022/components/push/index.mjs +0 -7
  511. package/esm2022/components/push/push-alert.component.mjs +0 -29
  512. package/esm2022/components/push/push.component.mjs +0 -39
  513. package/esm2022/components/push/push.directive.mjs +0 -33
  514. package/esm2022/components/push/push.mjs +0 -5
  515. package/esm2022/components/push/push.options.mjs +0 -21
  516. package/esm2022/components/push/push.service.mjs +0 -19
  517. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  518. package/esm2022/components/radio/index.mjs +0 -5
  519. package/esm2022/components/radio/radio.component.mjs +0 -53
  520. package/esm2022/components/radio/radio.directive.mjs +0 -32
  521. package/esm2022/components/radio/radio.mjs +0 -4
  522. package/esm2022/components/radio/radio.options.mjs +0 -13
  523. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  524. package/esm2022/components/radio-list/index.mjs +0 -2
  525. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  526. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  527. package/esm2022/components/range/index.mjs +0 -3
  528. package/esm2022/components/range/range-change.directive.mjs +0 -78
  529. package/esm2022/components/range/range.component.mjs +0 -164
  530. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  531. package/esm2022/components/rating/index.mjs +0 -3
  532. package/esm2022/components/rating/rating.component.mjs +0 -65
  533. package/esm2022/components/rating/rating.options.mjs +0 -13
  534. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  535. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  536. package/esm2022/components/routable-dialog/index.mjs +0 -3
  537. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  538. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  539. package/esm2022/components/segmented/index.mjs +0 -3
  540. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  541. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  542. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  543. package/esm2022/components/select/index.mjs +0 -5
  544. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  545. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  546. package/esm2022/components/select/select.directive.mjs +0 -56
  547. package/esm2022/components/select/select.mjs +0 -4
  548. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  549. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  550. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  551. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  552. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  553. package/esm2022/components/slider/index.mjs +0 -8
  554. package/esm2022/components/slider/slider.component.mjs +0 -124
  555. package/esm2022/components/slider/slider.mjs +0 -12
  556. package/esm2022/components/slider/slider.options.mjs +0 -16
  557. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  558. package/esm2022/components/slides/index.mjs +0 -2
  559. package/esm2022/components/slides/slides.directive.mjs +0 -51
  560. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  561. package/esm2022/components/status/index.mjs +0 -2
  562. package/esm2022/components/status/status.directive.mjs +0 -35
  563. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  564. package/esm2022/components/stepper/index.mjs +0 -4
  565. package/esm2022/components/stepper/step.component.mjs +0 -58
  566. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  567. package/esm2022/components/stepper/stepper.mjs +0 -4
  568. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  569. package/esm2022/components/switch/index.mjs +0 -3
  570. package/esm2022/components/switch/switch.component.mjs +0 -63
  571. package/esm2022/components/switch/switch.options.mjs +0 -15
  572. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  573. package/esm2022/components/tabs/index.mjs +0 -9
  574. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  575. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  576. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  577. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -211
  578. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  579. package/esm2022/components/tabs/tabs.mjs +0 -15
  580. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  581. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  582. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  583. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  584. package/esm2022/components/textarea/index.mjs +0 -4
  585. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  586. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -94
  587. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  588. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  589. package/esm2022/components/tiles/index.mjs +0 -7
  590. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  591. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  592. package/esm2022/components/tiles/tile.component.mjs +0 -69
  593. package/esm2022/components/tiles/tile.service.mjs +0 -90
  594. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  595. package/esm2022/components/tiles/tiles.mjs +0 -5
  596. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  597. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  598. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  599. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  600. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  601. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  602. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  603. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  604. package/esm2022/components/tree/index.mjs +0 -12
  605. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  606. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  607. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  608. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  609. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  610. package/esm2022/components/tree/tree.mjs +0 -17
  611. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  612. package/esm2022/directives/button-close/index.mjs +0 -2
  613. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  614. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  615. package/esm2022/directives/button-group/index.mjs +0 -2
  616. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  617. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  618. package/esm2022/directives/button-select/index.mjs +0 -2
  619. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  620. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  621. package/esm2022/directives/chevron/index.mjs +0 -2
  622. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  623. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  624. package/esm2022/directives/connected/index.mjs +0 -2
  625. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  626. package/esm2022/directives/copy/copy.component.mjs +0 -48
  627. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  628. package/esm2022/directives/copy/copy.mjs +0 -4
  629. package/esm2022/directives/copy/copy.options.mjs +0 -3
  630. package/esm2022/directives/copy/index.mjs +0 -6
  631. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  632. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  633. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  634. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  635. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  636. package/esm2022/directives/fade/index.mjs +0 -2
  637. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  638. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  639. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  640. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  641. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  642. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  643. package/esm2022/directives/highlight/index.mjs +0 -2
  644. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  645. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  646. package/esm2022/directives/icon-badge/index.mjs +0 -2
  647. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  648. package/esm2022/directives/index.mjs +0 -21
  649. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  650. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  651. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  652. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  653. package/esm2022/directives/password/index.mjs +0 -3
  654. package/esm2022/directives/password/password.directive.mjs +0 -67
  655. package/esm2022/directives/password/password.options.mjs +0 -8
  656. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  657. package/esm2022/directives/present/index.mjs +0 -2
  658. package/esm2022/directives/present/present.directive.mjs +0 -33
  659. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  660. package/esm2022/directives/sensitive/index.mjs +0 -2
  661. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  662. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  663. package/esm2022/directives/shimmer/index.mjs +0 -2
  664. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  665. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  666. package/esm2022/directives/skeleton/index.mjs +0 -2
  667. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  668. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  669. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  670. package/esm2022/directives/tooltip/index.mjs +0 -3
  671. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  672. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  673. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  674. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  675. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  676. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  677. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  678. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  679. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  680. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  681. package/esm2022/index.mjs +0 -6
  682. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  683. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  684. package/esm2022/pipes/emails/index.mjs +0 -3
  685. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  686. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  687. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  688. package/esm2022/pipes/field-error/index.mjs +0 -3
  689. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  690. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  691. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  692. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  693. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  694. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  695. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  696. package/esm2022/pipes/index.mjs +0 -8
  697. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  698. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  699. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  700. package/esm2022/pipes/stringify/index.mjs +0 -2
  701. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  702. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  703. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  704. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  705. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  706. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  707. package/esm2022/taiga-ui-kit.mjs +0 -5
  708. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  709. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  710. package/esm2022/tokens/i18n.mjs +0 -75
  711. package/esm2022/tokens/index.mjs +0 -10
  712. package/esm2022/tokens/input-date-options.mjs +0 -13
  713. package/esm2022/tokens/items-handlers.mjs +0 -27
  714. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  715. package/esm2022/tokens/month-formatter.mjs +0 -12
  716. package/esm2022/tokens/preview-icons.mjs +0 -17
  717. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  718. package/esm2022/tokens/validation-errors.mjs +0 -6
  719. package/esm2022/utils/create-time-periods.mjs +0 -12
  720. package/esm2022/utils/index.mjs +0 -7
  721. package/esm2022/utils/inject-value.mjs +0 -11
  722. package/esm2022/utils/is-flat.mjs +0 -4
  723. package/esm2022/utils/maskito.binding.mjs +0 -6
  724. package/esm2022/utils/phone.mjs +0 -6
  725. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  726. package/esm2022/utils/toggle-day.mjs +0 -6
@@ -2,12 +2,12 @@ import { TuiItem } from '@taiga-ui/cdk/directives/item';
2
2
  import { __decorate } from 'tslib';
3
3
  import { isPlatformServer, AsyncPipe, NgForOf, NgIf, NgTemplateOutlet } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { inject, PLATFORM_ID, NgZone, Directive, Input, Output, ChangeDetectorRef, EventEmitter, TemplateRef, Component, ChangeDetectionStrategy, ContentChildren } from '@angular/core';
5
+ import { inject, PLATFORM_ID, NgZone, Input, Directive, Output, ChangeDetectorRef, EventEmitter, TemplateRef, ContentChildren, ChangeDetectionStrategy, Component } from '@angular/core';
6
6
  import * as i2 from '@ng-web-apis/intersection-observer';
7
7
  import { WaIntersectionObserver } from '@ng-web-apis/intersection-observer';
8
8
  import { TUI_FALSE_HANDLER, TUI_TRUE_HANDLER, EMPTY_QUERY } from '@taiga-ui/cdk/constants';
9
9
  import { TuiPan } from '@taiga-ui/cdk/directives/pan';
10
- import { TUI_SWIPE_OPTIONS, TuiSwipe } from '@taiga-ui/cdk/directives/swipe';
10
+ import { TuiSwipe, TUI_SWIPE_OPTIONS } from '@taiga-ui/cdk/directives/swipe';
11
11
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
12
12
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
13
13
  import { tuiClamp } from '@taiga-ui/cdk/utils/math';
@@ -33,15 +33,15 @@ class TuiCarouselDirective extends Observable {
33
33
  set duration(duration) {
34
34
  this.duration$.next(Number.isNaN(duration) ? this.duration$.value : duration);
35
35
  }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiCarouselDirective, isStandalone: true, inputs: { duration: "duration" }, usesInheritance: true, ngImport: i0 }); }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiCarouselDirective, isStandalone: true, inputs: { duration: "duration" }, usesInheritance: true, ngImport: i0 }); }
38
38
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselDirective, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselDirective, decorators: [{
40
40
  type: Directive,
41
41
  args: [{
42
42
  standalone: true,
43
43
  }]
44
- }], ctorParameters: function () { return []; }, propDecorators: { duration: [{
44
+ }], ctorParameters: () => [], propDecorators: { duration: [{
45
45
  type: Input
46
46
  }] } });
47
47
 
@@ -49,10 +49,10 @@ class TuiCarouselAutoscroll {
49
49
  constructor() {
50
50
  this.tuiCarouselAutoscroll = inject(TuiCarouselDirective);
51
51
  }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselAutoscroll, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
53
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiCarouselAutoscroll, isStandalone: true, selector: "[tuiCarouselAutoscroll]", outputs: { tuiCarouselAutoscroll: "tuiCarouselAutoscroll" }, ngImport: i0 }); }
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselAutoscroll, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
53
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiCarouselAutoscroll, isStandalone: true, selector: "[tuiCarouselAutoscroll]", outputs: { tuiCarouselAutoscroll: "tuiCarouselAutoscroll" }, ngImport: i0 }); }
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselAutoscroll, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselAutoscroll, decorators: [{
56
56
  type: Directive,
57
57
  args: [{
58
58
  standalone: true,
@@ -70,10 +70,10 @@ class TuiCarouselScroll {
70
70
  this.el.scrollLeft = 10;
71
71
  }));
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiCarouselScroll, isStandalone: true, selector: "[tuiCarouselScroll]", outputs: { tuiCarouselScroll: "tuiCarouselScroll" }, ngImport: i0 }); }
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiCarouselScroll, isStandalone: true, selector: "[tuiCarouselScroll]", outputs: { tuiCarouselScroll: "tuiCarouselScroll" }, ngImport: i0 }); }
75
75
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselScroll, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselScroll, decorators: [{
77
77
  type: Directive,
78
78
  args: [{
79
79
  standalone: true,
@@ -183,13 +183,13 @@ class TuiCarouselComponent {
183
183
  this.indexChange.emit(this.index);
184
184
  this.cdr.markForCheck();
185
185
  }
186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
187
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiCarouselComponent, isStandalone: true, selector: "tui-carousel", inputs: { draggable: "draggable", itemsCount: "itemsCount", indexSetter: ["index", "indexSetter"] }, outputs: { indexChange: "indexChange", shift: "shift" }, host: { listeners: { "touchstart": "onTransitioned(false)", "touchend": "onTransitioned(true)", "mousedown": "onTransitioned(false)", "document:mouseup.zoneless": "onTransitioned(true)" }, properties: { "class._transitioned": "transitioned", "class._draggable": "draggable" } }, providers: [{ provide: TUI_SWIPE_OPTIONS, useValue: { timeout: 200, threshold: 30 } }], queries: [{ propertyName: "items", predicate: TuiItem, read: TemplateRef }], hostDirectives: [{ directive: TuiCarouselDirective, inputs: ["duration", "duration"] }], ngImport: i0, template: "<ng-container *ngIf=\"items.changes | async\" />\n<div\n class=\"t-scroller\"\n (tuiCarouselScroll)=\"onScroll($event)\"\n>\n <div\n waIntersectionObserver\n waIntersectionThreshold=\"0.5\"\n class=\"t-wrapper\"\n >\n <div\n class=\"t-items\"\n [style.transform]=\"transform\"\n (tuiCarouselAutoscroll)=\"onAutoscroll()\"\n (tuiPan)=\"onPan($event[0])\"\n (tuiSwipe)=\"onSwipe($event.direction)\"\n >\n <fieldset\n *ngFor=\"let item of items; let i = index\"\n class=\"t-item\"\n [disabled]=\"isDisabled(i)\"\n [style]=\"getStyle(itemsCount)\"\n (waIntersectionObservee)=\"$event[0] && onIntersection($event[0], i)\"\n >\n <ng-container [ngTemplateOutlet]=\"item\" />\n </fieldset>\n </div>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;overflow:hidden}:host._draggable{-webkit-user-select:none;user-select:none}:host._draggable:hover{cursor:grab}:host._draggable:active{cursor:grabbing}.t-items{display:flex}:host._transitioned .t-items{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}::ng-deep [tuiCarouselButtons] [tuiIconButton]{border-radius:100%}.t-item{display:flex;flex-direction:column;justify-content:center;padding:var(--tui-carousel-padding, 0 1.25rem);flex:1;min-inline-size:100%;max-inline-size:100%;box-sizing:border-box;border:none;margin:0}.t-wrapper{position:sticky;left:0;right:0;min-inline-size:100%;overflow:hidden}.t-scroller{scrollbar-width:none;-ms-overflow-style:none;display:flex;overflow:auto;overscroll-behavior-x:none;touch-action:pan-y}.t-scroller::-webkit-scrollbar,.t-scroller::-webkit-scrollbar-thumb{display:none}.t-scroller:before,.t-scroller:after{content:\"\";display:block;min-inline-size:1rem}\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"] }, { kind: "directive", type: TuiCarouselAutoscroll, selector: "[tuiCarouselAutoscroll]", outputs: ["tuiCarouselAutoscroll"] }, { kind: "directive", type: TuiCarouselScroll, selector: "[tuiCarouselScroll]", outputs: ["tuiCarouselScroll"] }, { kind: "directive", type: TuiPan, selector: "[tuiPan]", outputs: ["tuiPan"] }, { kind: "directive", type: TuiSwipe, selector: "[tuiSwipe]", outputs: ["tuiSwipe"] }, { kind: "directive", type: i2.WaIntersectionObserverDirective, selector: "[waIntersectionObserver]", inputs: ["waIntersectionRootMargin", "waIntersectionThreshold"], exportAs: ["IntersectionObserver"] }, { kind: "directive", type: i2.WaIntersectionObservee, selector: "[waIntersectionObservee]", outputs: ["waIntersectionObservee"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
186
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
187
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiCarouselComponent, isStandalone: true, selector: "tui-carousel", inputs: { draggable: "draggable", itemsCount: "itemsCount", indexSetter: ["index", "indexSetter"] }, outputs: { indexChange: "indexChange", shift: "shift" }, host: { listeners: { "touchstart": "onTransitioned(false)", "touchend": "onTransitioned(true)", "mousedown": "onTransitioned(false)", "document:mouseup.zoneless": "onTransitioned(true)" }, properties: { "class._transitioned": "transitioned", "class._draggable": "draggable" } }, providers: [{ provide: TUI_SWIPE_OPTIONS, useValue: { timeout: 200, threshold: 30 } }], queries: [{ propertyName: "items", predicate: TuiItem, read: TemplateRef }], hostDirectives: [{ directive: TuiCarouselDirective, inputs: ["duration", "duration"] }], ngImport: i0, template: "<ng-container *ngIf=\"items.changes | async\" />\n<div\n class=\"t-scroller\"\n (tuiCarouselScroll)=\"onScroll($event)\"\n>\n <div\n waIntersectionObserver\n waIntersectionThreshold=\"0.5\"\n class=\"t-wrapper\"\n >\n <div\n class=\"t-items\"\n [style.transform]=\"transform\"\n (tuiCarouselAutoscroll)=\"onAutoscroll()\"\n (tuiPan)=\"onPan($event[0])\"\n (tuiSwipe)=\"onSwipe($event.direction)\"\n >\n <fieldset\n *ngFor=\"let item of items; let i = index\"\n class=\"t-item\"\n [disabled]=\"isDisabled(i)\"\n [style]=\"getStyle(itemsCount)\"\n (waIntersectionObservee)=\"$event[0] && onIntersection($event[0], i)\"\n >\n <ng-container [ngTemplateOutlet]=\"item\" />\n </fieldset>\n </div>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;overflow:hidden}:host._draggable{-webkit-user-select:none;user-select:none}:host._draggable:hover{cursor:grab}:host._draggable:active{cursor:grabbing}.t-items{display:flex}:host._transitioned .t-items{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}::ng-deep [tuiCarouselButtons] [tuiIconButton]{border-radius:100%}.t-item{display:flex;flex-direction:column;justify-content:center;padding:var(--tui-carousel-padding, 0 1.25rem);flex:1;min-inline-size:100%;max-inline-size:100%;box-sizing:border-box;border:none;margin:0}.t-wrapper{position:sticky;left:0;right:0;min-inline-size:100%;overflow:hidden}.t-scroller{scrollbar-width:none;-ms-overflow-style:none;display:flex;overflow:auto;overscroll-behavior-x:none;touch-action:pan-y}.t-scroller::-webkit-scrollbar,.t-scroller::-webkit-scrollbar-thumb{display:none}.t-scroller:before,.t-scroller:after{content:\"\";display:block;min-inline-size:1rem}\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"] }, { kind: "directive", type: TuiCarouselAutoscroll, selector: "[tuiCarouselAutoscroll]", outputs: ["tuiCarouselAutoscroll"] }, { kind: "directive", type: TuiCarouselScroll, selector: "[tuiCarouselScroll]", outputs: ["tuiCarouselScroll"] }, { kind: "directive", type: TuiPan, selector: "[tuiPan]", outputs: ["tuiPan"] }, { kind: "directive", type: TuiSwipe, selector: "[tuiSwipe]", outputs: ["tuiSwipe"] }, { kind: "directive", type: i2.WaIntersectionObserverDirective, selector: "[waIntersectionObserver]", inputs: ["waIntersectionRootMargin", "waIntersectionThreshold"], exportAs: ["IntersectionObserver"] }, { kind: "directive", type: i2.WaIntersectionObservee, selector: "[waIntersectionObservee]", outputs: ["waIntersectionObservee"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
188
188
  }
189
189
  __decorate([
190
190
  tuiPure
191
191
  ], TuiCarouselComponent.prototype, "getStyle", null);
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselComponent, decorators: [{
192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselComponent, decorators: [{
193
193
  type: Component,
194
194
  args: [{ standalone: true, selector: 'tui-carousel', imports: [
195
195
  AsyncPipe,
@@ -231,15 +231,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
231
231
  }], getStyle: [] } });
232
232
 
233
233
  class TuiCarouselButtons {
234
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselButtons, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
235
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiCarouselButtons, isStandalone: true, selector: "[tuiCarouselButtons]", providers: [
234
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselButtons, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
235
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiCarouselButtons, isStandalone: true, selector: "[tuiCarouselButtons]", providers: [
236
236
  tuiButtonOptionsProvider({
237
237
  appearance: 'secondary',
238
238
  size: 'm',
239
239
  }),
240
240
  ], ngImport: i0 }); }
241
241
  }
242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCarouselButtons, decorators: [{
242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCarouselButtons, decorators: [{
243
243
  type: Directive,
244
244
  args: [{
245
245
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-carousel.mjs","sources":["../../../projects/kit/components/carousel/carousel.directive.ts","../../../projects/kit/components/carousel/carousel-autoscroll.directive.ts","../../../projects/kit/components/carousel/carousel-scroll.directive.ts","../../../projects/kit/components/carousel/carousel.component.ts","../../../projects/kit/components/carousel/carousel.template.html","../../../projects/kit/components/carousel/carousel-buttons.directive.ts","../../../projects/kit/components/carousel/carousel.ts","../../../projects/kit/components/carousel/taiga-ui-kit-components-carousel.ts"],"sourcesContent":["import {isPlatformServer} from '@angular/common';\nimport {Directive, inject, Input, NgZone, PLATFORM_ID} from '@angular/core';\nimport {WA_PAGE_VISIBILITY} from '@ng-web-apis/common';\nimport {TUI_FALSE_HANDLER, TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiIfMap, tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n BehaviorSubject,\n combineLatest,\n EMPTY,\n interval,\n map,\n merge,\n Observable,\n} from 'rxjs';\n\n@Directive({\n standalone: true,\n})\nexport class TuiCarouselDirective extends Observable<unknown> {\n private readonly el = tuiInjectElement();\n private readonly platform = inject(PLATFORM_ID);\n private readonly visible$ = inject(WA_PAGE_VISIBILITY);\n private readonly zone = inject(NgZone);\n private readonly duration$ = new BehaviorSubject(0);\n private readonly running$ = merge(\n tuiTypedFromEvent(this.el, 'mouseenter').pipe(map(TUI_FALSE_HANDLER)),\n tuiTypedFromEvent(this.el, 'touchstart').pipe(map(TUI_FALSE_HANDLER)),\n tuiTypedFromEvent(this.el, 'touchend').pipe(map(TUI_TRUE_HANDLER)),\n tuiTypedFromEvent(this.el, 'mouseleave').pipe(map(TUI_TRUE_HANDLER)),\n this.visible$,\n );\n\n private readonly output$ = isPlatformServer(this.platform)\n ? EMPTY\n : combineLatest([this.duration$, this.running$]).pipe(\n tuiIfMap(\n ([duration]) => interval(duration).pipe(tuiZoneOptimized(this.zone)),\n (values) => values.every(Boolean),\n ),\n );\n\n constructor() {\n super((subscriber) => this.output$.subscribe(subscriber));\n }\n\n @Input()\n public set duration(duration: number) {\n this.duration$.next(Number.isNaN(duration) ? this.duration$.value : duration);\n }\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiCarouselDirective} from './carousel.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiCarouselAutoscroll]',\n})\nexport class TuiCarouselAutoscroll {\n @Output()\n public readonly tuiCarouselAutoscroll = inject(TuiCarouselDirective);\n}\n","import {Directive, Output} from '@angular/core';\nimport {tuiTypedFromEvent, tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {filter, map, tap, throttleTime} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiCarouselScroll]',\n})\nexport class TuiCarouselScroll {\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiCarouselScroll = tuiTypedFromEvent(this.el, 'wheel').pipe(\n filter(({deltaX}) => Math.abs(deltaX) > 20),\n throttleTime(500, tuiZonefreeScheduler()),\n map(({deltaX}) => Math.sign(deltaX)),\n tap(() => {\n // So we always have space to scroll and overflow-behavior saves us from back nav\n this.el.scrollLeft = 10;\n }),\n );\n}\n","import {AsyncPipe, NgForOf, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n Output,\n type QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {WaIntersectionObserver} from '@ng-web-apis/intersection-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TuiItem} from '@taiga-ui/cdk/directives/item';\nimport {TuiPan} from '@taiga-ui/cdk/directives/pan';\nimport {\n TUI_SWIPE_OPTIONS,\n TuiSwipe,\n type TuiSwipeDirection,\n} from '@taiga-ui/cdk/directives/swipe';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselAutoscroll} from './carousel-autoscroll.directive';\nimport {TuiCarouselScroll} from './carousel-scroll.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-carousel',\n imports: [\n AsyncPipe,\n NgForOf,\n NgIf,\n NgTemplateOutlet,\n TuiCarouselAutoscroll,\n TuiCarouselScroll,\n TuiPan,\n TuiSwipe,\n WaIntersectionObserver,\n ],\n templateUrl: './carousel.template.html',\n styleUrls: ['./carousel.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: TUI_SWIPE_OPTIONS, useValue: {timeout: 200, threshold: 30}}],\n hostDirectives: [\n {\n directive: TuiCarouselDirective,\n inputs: ['duration'],\n },\n ],\n host: {\n '[class._transitioned]': 'transitioned',\n '[class._draggable]': 'draggable',\n '(touchstart)': 'onTransitioned(false)',\n '(touchend)': 'onTransitioned(true)',\n '(mousedown)': 'onTransitioned(false)',\n '(document:mouseup.zoneless)': 'onTransitioned(true)',\n },\n})\nexport class TuiCarouselComponent {\n private readonly el = tuiInjectElement();\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly directive = inject(TuiCarouselDirective);\n private translate = 0;\n\n @ContentChildren(TuiItem, {read: TemplateRef})\n protected readonly items: QueryList<TemplateRef<Record<string, unknown>>> =\n EMPTY_QUERY;\n\n protected transitioned = true;\n\n protected index = 0;\n\n @Input()\n public draggable = false;\n\n @Input()\n public itemsCount = 1;\n\n @Output()\n public readonly indexChange = new EventEmitter<number>();\n\n @Output()\n public readonly shift = new EventEmitter<number>();\n\n @Input('index')\n public set indexSetter(index: number) {\n this.index = index;\n this.directive.duration = NaN;\n }\n\n public next(): void {\n if (this.items && this.index === this.items.length - this.itemsCount) {\n return;\n }\n\n this.updateIndex(this.index + 1);\n }\n\n public prev(): void {\n this.updateIndex(this.index - 1);\n }\n\n protected get transform(): string {\n return `translateX(${100 * this.x}%)`;\n }\n\n @tuiPure\n protected getStyle(itemsCount: number): Partial<CSSStyleDeclaration> {\n const percent = `${100 / itemsCount}%`;\n\n return {\n flexBasis: percent,\n minWidth: percent,\n maxWidth: percent,\n };\n }\n\n protected onTransitioned(transitioned: boolean): void {\n this.transitioned = transitioned;\n\n if (!transitioned) {\n this.translate = this.computedTranslate;\n }\n\n this.onShift();\n }\n\n protected isDisabled(index: number): boolean {\n return index < this.index || index >= this.index + this.itemsCount;\n }\n\n protected onIntersection(\n {intersectionRatio}: IntersectionObserverEntry,\n index: number,\n ): void {\n if (intersectionRatio && intersectionRatio >= 0.5 && !this.transitioned) {\n this.updateIndex(this.index < index ? index - this.itemsCount + 1 : index);\n }\n }\n\n protected onScroll(delta: number): void {\n if (!this.isMobile) {\n if (delta > 0) {\n this.next();\n } else {\n this.prev();\n }\n }\n }\n\n protected onPan(x: number): void {\n if (!this.computedDraggable) {\n return;\n }\n\n const min = 1 - this.items.length / this.itemsCount;\n\n this.translate = tuiClamp(x / this.el.clientWidth + this.translate, min, 0);\n\n this.onShift();\n }\n\n protected onSwipe(direction: TuiSwipeDirection): void {\n if (direction === 'left') {\n this.next();\n } else if (direction === 'right') {\n this.prev();\n }\n }\n\n protected onAutoscroll(): void {\n this.updateIndex(this.index === this.items.length - 1 ? 0 : this.index + 1);\n }\n\n protected onShift(): void {\n this.shift.emit(Math.abs((this.x % 1) + 0.5) * 2);\n }\n\n private get x(): number {\n return this.transitioned ? this.computedTranslate : this.translate;\n }\n\n private get computedTranslate(): number {\n return -this.index / this.itemsCount;\n }\n\n private get computedDraggable(): boolean {\n return this.isMobile || this.draggable;\n }\n\n private updateIndex(index: number): void {\n this.index = tuiClamp(index, 0, this.items.length - 1);\n this.indexChange.emit(this.index);\n this.cdr.markForCheck();\n }\n}\n","<ng-container *ngIf=\"items.changes | async\" />\n<div\n class=\"t-scroller\"\n (tuiCarouselScroll)=\"onScroll($event)\"\n>\n <div\n waIntersectionObserver\n waIntersectionThreshold=\"0.5\"\n class=\"t-wrapper\"\n >\n <div\n class=\"t-items\"\n [style.transform]=\"transform\"\n (tuiCarouselAutoscroll)=\"onAutoscroll()\"\n (tuiPan)=\"onPan($event[0])\"\n (tuiSwipe)=\"onSwipe($event.direction)\"\n >\n <fieldset\n *ngFor=\"let item of items; let i = index\"\n class=\"t-item\"\n [disabled]=\"isDisabled(i)\"\n [style]=\"getStyle(itemsCount)\"\n (waIntersectionObservee)=\"$event[0] && onIntersection($event[0], i)\"\n >\n <ng-container [ngTemplateOutlet]=\"item\" />\n </fieldset>\n </div>\n </div>\n</div>\n","import {Directive} from '@angular/core';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\n\n@Directive({\n standalone: true,\n selector: '[tuiCarouselButtons]',\n providers: [\n tuiButtonOptionsProvider({\n appearance: 'secondary',\n size: 'm',\n }),\n ],\n})\nexport class TuiCarouselButtons {}\n","import {TuiItem} from '@taiga-ui/cdk/directives/item';\n\nimport {TuiCarouselComponent} from './carousel.component';\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselAutoscroll} from './carousel-autoscroll.directive';\nimport {TuiCarouselButtons} from './carousel-buttons.directive';\nimport {TuiCarouselScroll} from './carousel-scroll.directive';\n\nexport const TuiCarousel = [\n TuiItem,\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselAutoscroll,\n TuiCarouselButtons,\n TuiCarouselScroll,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiCarouselDirective"],"mappings":";;;;;;;;;;;;;;;;;;;AAgBA,MAGa,oBAAqB,SAAQ,UAAmB,CAAA;AAuBzD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;QAvB7C,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;AACxB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACtB,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,eAAe,CAAC,CAAC,CAAC,CA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,sBAAsB;AAChC,oBAAA,SAAS,EAAE;AACP,wBAAA,wBAAwB,CAAC;AACrB,4BAAA,UAAU,EAAE,WAAW;AACvB,4BAAA,IAAI,EAAE,GAAG;yBACZ,CAAC;AACL,qBAAA;AACJ,iBAAA,CAAA;;;ACJY,MAAA,WAAW,GAAG;IACvB,OAAO;IACP,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,kBAAkB;IAClB,iBAAiB;;;ACdrB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-carousel.mjs","sources":["../../../projects/kit/components/carousel/carousel.directive.ts","../../../projects/kit/components/carousel/carousel-autoscroll.directive.ts","../../../projects/kit/components/carousel/carousel-scroll.directive.ts","../../../projects/kit/components/carousel/carousel.component.ts","../../../projects/kit/components/carousel/carousel.template.html","../../../projects/kit/components/carousel/carousel-buttons.directive.ts","../../../projects/kit/components/carousel/carousel.ts","../../../projects/kit/components/carousel/taiga-ui-kit-components-carousel.ts"],"sourcesContent":["import {isPlatformServer} from '@angular/common';\nimport {Directive, inject, Input, NgZone, PLATFORM_ID} from '@angular/core';\nimport {WA_PAGE_VISIBILITY} from '@ng-web-apis/common';\nimport {TUI_FALSE_HANDLER, TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiIfMap, tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n BehaviorSubject,\n combineLatest,\n EMPTY,\n interval,\n map,\n merge,\n Observable,\n} from 'rxjs';\n\n@Directive({\n standalone: true,\n})\nexport class TuiCarouselDirective extends Observable<unknown> {\n private readonly el = tuiInjectElement();\n private readonly platform = inject(PLATFORM_ID);\n private readonly visible$ = inject(WA_PAGE_VISIBILITY);\n private readonly zone = inject(NgZone);\n private readonly duration$ = new BehaviorSubject(0);\n private readonly running$ = merge(\n tuiTypedFromEvent(this.el, 'mouseenter').pipe(map(TUI_FALSE_HANDLER)),\n tuiTypedFromEvent(this.el, 'touchstart').pipe(map(TUI_FALSE_HANDLER)),\n tuiTypedFromEvent(this.el, 'touchend').pipe(map(TUI_TRUE_HANDLER)),\n tuiTypedFromEvent(this.el, 'mouseleave').pipe(map(TUI_TRUE_HANDLER)),\n this.visible$,\n );\n\n private readonly output$ = isPlatformServer(this.platform)\n ? EMPTY\n : combineLatest([this.duration$, this.running$]).pipe(\n tuiIfMap(\n ([duration]) => interval(duration).pipe(tuiZoneOptimized(this.zone)),\n (values) => values.every(Boolean),\n ),\n );\n\n constructor() {\n super((subscriber) => this.output$.subscribe(subscriber));\n }\n\n @Input()\n public set duration(duration: number) {\n this.duration$.next(Number.isNaN(duration) ? this.duration$.value : duration);\n }\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiCarouselDirective} from './carousel.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiCarouselAutoscroll]',\n})\nexport class TuiCarouselAutoscroll {\n @Output()\n public readonly tuiCarouselAutoscroll = inject(TuiCarouselDirective);\n}\n","import {Directive, Output} from '@angular/core';\nimport {tuiTypedFromEvent, tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {filter, map, tap, throttleTime} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiCarouselScroll]',\n})\nexport class TuiCarouselScroll {\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiCarouselScroll = tuiTypedFromEvent(this.el, 'wheel').pipe(\n filter(({deltaX}) => Math.abs(deltaX) > 20),\n throttleTime(500, tuiZonefreeScheduler()),\n map(({deltaX}) => Math.sign(deltaX)),\n tap(() => {\n // So we always have space to scroll and overflow-behavior saves us from back nav\n this.el.scrollLeft = 10;\n }),\n );\n}\n","import {AsyncPipe, NgForOf, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n EventEmitter,\n inject,\n Input,\n Output,\n type QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {WaIntersectionObserver} from '@ng-web-apis/intersection-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TuiItem} from '@taiga-ui/cdk/directives/item';\nimport {TuiPan} from '@taiga-ui/cdk/directives/pan';\nimport {\n TUI_SWIPE_OPTIONS,\n TuiSwipe,\n type TuiSwipeDirection,\n} from '@taiga-ui/cdk/directives/swipe';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselAutoscroll} from './carousel-autoscroll.directive';\nimport {TuiCarouselScroll} from './carousel-scroll.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-carousel',\n imports: [\n AsyncPipe,\n NgForOf,\n NgIf,\n NgTemplateOutlet,\n TuiCarouselAutoscroll,\n TuiCarouselScroll,\n TuiPan,\n TuiSwipe,\n WaIntersectionObserver,\n ],\n templateUrl: './carousel.template.html',\n styleUrls: ['./carousel.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: TUI_SWIPE_OPTIONS, useValue: {timeout: 200, threshold: 30}}],\n hostDirectives: [\n {\n directive: TuiCarouselDirective,\n inputs: ['duration'],\n },\n ],\n host: {\n '[class._transitioned]': 'transitioned',\n '[class._draggable]': 'draggable',\n '(touchstart)': 'onTransitioned(false)',\n '(touchend)': 'onTransitioned(true)',\n '(mousedown)': 'onTransitioned(false)',\n '(document:mouseup.zoneless)': 'onTransitioned(true)',\n },\n})\nexport class TuiCarouselComponent {\n private readonly el = tuiInjectElement();\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly directive = inject(TuiCarouselDirective);\n private translate = 0;\n\n @ContentChildren(TuiItem, {read: TemplateRef})\n protected readonly items: QueryList<TemplateRef<Record<string, unknown>>> =\n EMPTY_QUERY;\n\n protected transitioned = true;\n\n protected index = 0;\n\n @Input()\n public draggable = false;\n\n @Input()\n public itemsCount = 1;\n\n @Output()\n public readonly indexChange = new EventEmitter<number>();\n\n @Output()\n public readonly shift = new EventEmitter<number>();\n\n @Input('index')\n public set indexSetter(index: number) {\n this.index = index;\n this.directive.duration = NaN;\n }\n\n public next(): void {\n if (this.items && this.index === this.items.length - this.itemsCount) {\n return;\n }\n\n this.updateIndex(this.index + 1);\n }\n\n public prev(): void {\n this.updateIndex(this.index - 1);\n }\n\n protected get transform(): string {\n return `translateX(${100 * this.x}%)`;\n }\n\n @tuiPure\n protected getStyle(itemsCount: number): Partial<CSSStyleDeclaration> {\n const percent = `${100 / itemsCount}%`;\n\n return {\n flexBasis: percent,\n minWidth: percent,\n maxWidth: percent,\n };\n }\n\n protected onTransitioned(transitioned: boolean): void {\n this.transitioned = transitioned;\n\n if (!transitioned) {\n this.translate = this.computedTranslate;\n }\n\n this.onShift();\n }\n\n protected isDisabled(index: number): boolean {\n return index < this.index || index >= this.index + this.itemsCount;\n }\n\n protected onIntersection(\n {intersectionRatio}: IntersectionObserverEntry,\n index: number,\n ): void {\n if (intersectionRatio && intersectionRatio >= 0.5 && !this.transitioned) {\n this.updateIndex(this.index < index ? index - this.itemsCount + 1 : index);\n }\n }\n\n protected onScroll(delta: number): void {\n if (!this.isMobile) {\n if (delta > 0) {\n this.next();\n } else {\n this.prev();\n }\n }\n }\n\n protected onPan(x: number): void {\n if (!this.computedDraggable) {\n return;\n }\n\n const min = 1 - this.items.length / this.itemsCount;\n\n this.translate = tuiClamp(x / this.el.clientWidth + this.translate, min, 0);\n\n this.onShift();\n }\n\n protected onSwipe(direction: TuiSwipeDirection): void {\n if (direction === 'left') {\n this.next();\n } else if (direction === 'right') {\n this.prev();\n }\n }\n\n protected onAutoscroll(): void {\n this.updateIndex(this.index === this.items.length - 1 ? 0 : this.index + 1);\n }\n\n protected onShift(): void {\n this.shift.emit(Math.abs((this.x % 1) + 0.5) * 2);\n }\n\n private get x(): number {\n return this.transitioned ? this.computedTranslate : this.translate;\n }\n\n private get computedTranslate(): number {\n return -this.index / this.itemsCount;\n }\n\n private get computedDraggable(): boolean {\n return this.isMobile || this.draggable;\n }\n\n private updateIndex(index: number): void {\n this.index = tuiClamp(index, 0, this.items.length - 1);\n this.indexChange.emit(this.index);\n this.cdr.markForCheck();\n }\n}\n","<ng-container *ngIf=\"items.changes | async\" />\n<div\n class=\"t-scroller\"\n (tuiCarouselScroll)=\"onScroll($event)\"\n>\n <div\n waIntersectionObserver\n waIntersectionThreshold=\"0.5\"\n class=\"t-wrapper\"\n >\n <div\n class=\"t-items\"\n [style.transform]=\"transform\"\n (tuiCarouselAutoscroll)=\"onAutoscroll()\"\n (tuiPan)=\"onPan($event[0])\"\n (tuiSwipe)=\"onSwipe($event.direction)\"\n >\n <fieldset\n *ngFor=\"let item of items; let i = index\"\n class=\"t-item\"\n [disabled]=\"isDisabled(i)\"\n [style]=\"getStyle(itemsCount)\"\n (waIntersectionObservee)=\"$event[0] && onIntersection($event[0], i)\"\n >\n <ng-container [ngTemplateOutlet]=\"item\" />\n </fieldset>\n </div>\n </div>\n</div>\n","import {Directive} from '@angular/core';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\n\n@Directive({\n standalone: true,\n selector: '[tuiCarouselButtons]',\n providers: [\n tuiButtonOptionsProvider({\n appearance: 'secondary',\n size: 'm',\n }),\n ],\n})\nexport class TuiCarouselButtons {}\n","import {TuiItem} from '@taiga-ui/cdk/directives/item';\n\nimport {TuiCarouselComponent} from './carousel.component';\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselAutoscroll} from './carousel-autoscroll.directive';\nimport {TuiCarouselButtons} from './carousel-buttons.directive';\nimport {TuiCarouselScroll} from './carousel-scroll.directive';\n\nexport const TuiCarousel = [\n TuiItem,\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselAutoscroll,\n TuiCarouselButtons,\n TuiCarouselScroll,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiCarouselDirective"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBM,MAAO,oBAAqB,SAAQ,UAAmB,CAAA;AAuBzD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAvB5C,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC;AACrC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AACrB,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,eAAe,CAAC,CAAC,CAAC;AAClC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAC7B,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,EACrE,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,EACrE,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,EAClE,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,EACpE,IAAI,CAAC,QAAQ,CAChB;AAEgB,QAAA,IAAA,CAAA,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC,QAAQ;AACrD,cAAE;cAC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CAAA,CAAA;;2FAEQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAV9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,SAAS,EAAE;AACP,wBAAA,wBAAwB,CAAC;AACrB,4BAAA,UAAU,EAAE,WAAW;AACvB,4BAAA,IAAI,EAAE,GAAG;yBACZ,CAAC;AACL,qBAAA;AACJ,iBAAA;;;ACJM,MAAM,WAAW,GAAG;IACvB,OAAO;IACP,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,kBAAkB;IAClB,iBAAiB;;;ACdrB;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, ChangeDetectorRef, DestroyRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
2
+ import { InjectionToken, inject, ChangeDetectorRef, DestroyRef, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { NgControl, NgModel } from '@angular/forms';
5
5
  import * as i2 from '@taiga-ui/cdk/directives/native-validator';
@@ -64,10 +64,10 @@ class TuiCheckbox {
64
64
  const icon = tuiIsString(option) ? option : option(this.size);
65
65
  return icon && `url(${this.resolver(icon)})`;
66
66
  }
67
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
68
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiCheckbox, isStandalone: true, selector: "input[type=\"checkbox\"][tuiCheckbox]", inputs: { size: "size" }, host: { properties: { "disabled": "!control || control.disabled", "attr.data-size": "size", "class._readonly": "!control", "style.--t-checked-icon": "getIcon(\"checked\")", "style.--t-indeterminate-icon": "getIcon(\"indeterminate\")" } }, hostDirectives: [{ directive: i1.TuiAppearance, inputs: ["tuiAppearanceState", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceFocus", "tuiAppearanceMode", "tuiAppearanceMode"] }, { directive: i2.TuiNativeValidator }], ngImport: i0, template: '', isInline: true, styles: ["[tuiCheckbox]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);inline-size:var(--t-size);block-size:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[tuiCheckbox]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";inline-size:1rem;block-size:1rem;margin:auto;background:currentColor;-webkit-mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>') center / 100%;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}[tuiCheckbox]:disabled._readonly{opacity:1;pointer-events:none}[tuiCheckbox]:checked:before,[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out,-webkit-mask 0s ease-in-out}[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate-icon);mask-image:var(--t-indeterminate-icon)}[tuiCheckbox][data-size=s]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}[tuiCheckbox][data-size=s]:before{inline-size:.875rem;block-size:.875rem}[tuiCheckbox]:invalid:not([data-mode]),[tuiCheckbox][data-mode~=invalid]{color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
67
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
68
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiCheckbox, isStandalone: true, selector: "input[type=\"checkbox\"][tuiCheckbox]", inputs: { size: "size" }, host: { properties: { "disabled": "!control || control.disabled", "attr.data-size": "size", "class._readonly": "!control", "style.--t-checked-icon": "getIcon(\"checked\")", "style.--t-indeterminate-icon": "getIcon(\"indeterminate\")" } }, hostDirectives: [{ directive: i1.TuiAppearance, inputs: ["tuiAppearanceState", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceFocus", "tuiAppearanceMode", "tuiAppearanceMode"] }, { directive: i2.TuiNativeValidator }], ngImport: i0, template: '', isInline: true, styles: ["[tuiCheckbox]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);inline-size:var(--t-size);block-size:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[tuiCheckbox]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";inline-size:1rem;block-size:1rem;margin:auto;background:currentColor;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out}[tuiCheckbox]:disabled._readonly{opacity:1;pointer-events:none}[tuiCheckbox]:checked:before,[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out}[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate-icon);mask-image:var(--t-indeterminate-icon)}[tuiCheckbox][data-size=s]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}[tuiCheckbox][data-size=s]:before{inline-size:.875rem;block-size:.875rem}[tuiCheckbox]:invalid:not([data-mode]),[tuiCheckbox][data-mode~=invalid]{color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
69
69
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCheckbox, decorators: [{
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCheckbox, decorators: [{
71
71
  type: Component,
72
72
  args: [{ standalone: true, selector: 'input[type="checkbox"][tuiCheckbox]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
73
73
  {
@@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
81
81
  '[class._readonly]': '!control',
82
82
  '[style.--t-checked-icon]': 'getIcon("checked")',
83
83
  '[style.--t-indeterminate-icon]': 'getIcon("indeterminate")',
84
- }, styles: ["[tuiCheckbox]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);inline-size:var(--t-size);block-size:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[tuiCheckbox]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";inline-size:1rem;block-size:1rem;margin:auto;background:currentColor;-webkit-mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>') center / 100%;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}[tuiCheckbox]:disabled._readonly{opacity:1;pointer-events:none}[tuiCheckbox]:checked:before,[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out,-webkit-mask 0s ease-in-out}[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate-icon);mask-image:var(--t-indeterminate-icon)}[tuiCheckbox][data-size=s]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}[tuiCheckbox][data-size=s]:before{inline-size:.875rem;block-size:.875rem}[tuiCheckbox]:invalid:not([data-mode]),[tuiCheckbox][data-mode~=invalid]{color:#fff}\n"] }]
84
+ }, styles: ["[tuiCheckbox]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);inline-size:var(--t-size);block-size:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[tuiCheckbox]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";inline-size:1rem;block-size:1rem;margin:auto;background:currentColor;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out}[tuiCheckbox]:disabled._readonly{opacity:1;pointer-events:none}[tuiCheckbox]:checked:before,[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out}[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate-icon);mask-image:var(--t-indeterminate-icon)}[tuiCheckbox][data-size=s]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}[tuiCheckbox][data-size=s]:before{inline-size:.875rem;block-size:.875rem}[tuiCheckbox]:invalid:not([data-mode]),[tuiCheckbox][data-mode~=invalid]{color:#fff}\n"] }]
85
85
  }], propDecorators: { size: [{
86
86
  type: Input
87
87
  }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-checkbox.mjs","sources":["../../../projects/kit/components/checkbox/checkbox.options.ts","../../../projects/kit/components/checkbox/checkbox.component.ts","../../../projects/kit/components/checkbox/taiga-ui-kit-components-checkbox.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiCheckboxOptions {\n readonly size: TuiSizeS;\n readonly appearance: TuiStringHandler<HTMLInputElement> | string;\n readonly icons: Readonly<{\n checked: TuiStringHandler<TuiSizeS> | string;\n indeterminate: TuiStringHandler<TuiSizeS> | string;\n }>;\n}\n\nexport const TUI_CHECKBOX_DEFAULT_OPTIONS: TuiCheckboxOptions = {\n size: 'm',\n appearance: (el) =>\n el.checked || el.indeterminate ? 'primary' : 'outline-grayscale',\n icons: {\n checked: '@tui.check',\n indeterminate: '@tui.minus',\n },\n};\n\nexport const TUI_CHECKBOX_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_CHECKBOX_OPTIONS' : '',\n {\n factory: () => TUI_CHECKBOX_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiCheckboxOptionsProvider(\n options: Partial<TuiCheckboxOptions>,\n): Provider {\n return tuiProvideOptions(TUI_CHECKBOX_OPTIONS, options, TUI_CHECKBOX_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n type DoCheck,\n inject,\n Input,\n type OnInit,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {NgControl, NgModel} from '@angular/forms';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiControlValue, tuiWatch} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {tuiInjectIconResolver} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nimport {TUI_CHECKBOX_OPTIONS} from './checkbox.options';\n\n@Component({\n standalone: true,\n selector: 'input[type=\"checkbox\"][tuiCheckbox]',\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/checkbox.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: TuiAppearance,\n inputs: ['tuiAppearanceState', 'tuiAppearanceFocus', 'tuiAppearanceMode'],\n },\n\n TuiNativeValidator,\n ],\n host: {\n '[disabled]': '!control || control.disabled',\n '[attr.data-size]': 'size',\n '[class._readonly]': '!control',\n '[style.--t-checked-icon]': 'getIcon(\"checked\")',\n '[style.--t-indeterminate-icon]': 'getIcon(\"indeterminate\")',\n },\n})\nexport class TuiCheckbox implements OnInit, DoCheck {\n private readonly appearance = inject(TuiAppearance);\n private readonly options = inject(TUI_CHECKBOX_OPTIONS);\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly resolver = tuiInjectIconResolver();\n private readonly destroyRef = inject(DestroyRef);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n\n @Input()\n public size: TuiSizeS = this.options.size;\n\n public readonly control: NgControl | null = inject(NgControl, {\n optional: true,\n self: true,\n });\n\n public ngOnInit(): void {\n if (!this.control?.valueChanges) {\n return;\n }\n\n tuiControlValue(this.control)\n .pipe(tuiWatch(this.cdr), takeUntilDestroyed(this.destroyRef))\n .subscribe((value) => {\n // https://github.com/angular/angular/issues/14988\n const fix =\n this.control instanceof NgModel && value === null\n ? this.control.model\n : value;\n\n this.el.indeterminate = fix === null;\n });\n }\n\n public ngDoCheck(): void {\n this.appearance.tuiAppearance = tuiIsString(this.options.appearance)\n ? this.options.appearance\n : this.options.appearance(this.el);\n }\n\n protected getIcon(state: 'checked' | 'indeterminate'): string {\n const option = this.options.icons[state];\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":";;;;;;;;;;;;;AAca,MAAA,4BAA4B,GAAuB;AAC5D,IAAA,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,CAAC,EAAE,KACX,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,aAAa,GAAG,SAAS,GAAG,mBAAmB;AACpE,IAAA,KAAK,EAAE;AACH,QAAA,OAAO,EAAE,YAAY;AACrB,QAAA,aAAa,EAAE,YAAY;AAC9B,KAAA;EACH;AAEW,MAAA,oBAAoB,GAAG,IAAI,cAAc,CAClD,SAAS,GAAG,sBAAsB,GAAG,EAAE,EACvC;AACI,IAAA,OAAO,EAAE,MAAM,4BAA4B;AAC9C,CAAA,EACH;AAEI,SAAU,0BAA0B,CACtC,OAAoC,EAAA;IAEpC,OAAO,iBAAiB,CAAC,oBAAoB,EAAE,OAAO,EAAE,4BAA4B,CAAC,CAAC;AAC1F;;ACZA,MAuBa,WAAW,CAAA;AAvBxB,IAAA,WAAA,GAAA;AAwBqB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AACnC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACvC,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAChC,IAAQ,CAAA,QAAA,GAAG,qBAAqB,EAAE,CAAC;AACnC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU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AA0B;AAC/D,qBAAA,EAAA,MAAA,EAAA,CAAA,mrDAAA,CAAA,EAAA,CAAA;8BAWM,IAAI,EAAA,CAAA;sBADV,KAAK;;;ACtDV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-checkbox.mjs","sources":["../../../projects/kit/components/checkbox/checkbox.options.ts","../../../projects/kit/components/checkbox/checkbox.component.ts","../../../projects/kit/components/checkbox/taiga-ui-kit-components-checkbox.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiCheckboxOptions {\n readonly size: TuiSizeS;\n readonly appearance: TuiStringHandler<HTMLInputElement> | string;\n readonly icons: Readonly<{\n checked: TuiStringHandler<TuiSizeS> | string;\n indeterminate: TuiStringHandler<TuiSizeS> | string;\n }>;\n}\n\nexport const TUI_CHECKBOX_DEFAULT_OPTIONS: TuiCheckboxOptions = {\n size: 'm',\n appearance: (el) =>\n el.checked || el.indeterminate ? 'primary' : 'outline-grayscale',\n icons: {\n checked: '@tui.check',\n indeterminate: '@tui.minus',\n },\n};\n\nexport const TUI_CHECKBOX_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_CHECKBOX_OPTIONS' : '',\n {\n factory: () => TUI_CHECKBOX_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiCheckboxOptionsProvider(\n options: Partial<TuiCheckboxOptions>,\n): Provider {\n return tuiProvideOptions(TUI_CHECKBOX_OPTIONS, options, TUI_CHECKBOX_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n type DoCheck,\n inject,\n Input,\n type OnInit,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {NgControl, NgModel} from '@angular/forms';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiControlValue, tuiWatch} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {tuiInjectIconResolver} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nimport {TUI_CHECKBOX_OPTIONS} from './checkbox.options';\n\n@Component({\n standalone: true,\n selector: 'input[type=\"checkbox\"][tuiCheckbox]',\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/checkbox.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: TuiAppearance,\n inputs: ['tuiAppearanceState', 'tuiAppearanceFocus', 'tuiAppearanceMode'],\n },\n\n TuiNativeValidator,\n ],\n host: {\n '[disabled]': '!control || control.disabled',\n '[attr.data-size]': 'size',\n '[class._readonly]': '!control',\n '[style.--t-checked-icon]': 'getIcon(\"checked\")',\n '[style.--t-indeterminate-icon]': 'getIcon(\"indeterminate\")',\n },\n})\nexport class TuiCheckbox implements OnInit, DoCheck {\n private readonly appearance = inject(TuiAppearance);\n private readonly options = inject(TUI_CHECKBOX_OPTIONS);\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly resolver = tuiInjectIconResolver();\n private readonly destroyRef = inject(DestroyRef);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n\n @Input()\n public size: TuiSizeS = this.options.size;\n\n public readonly control: NgControl | null = inject(NgControl, {\n optional: true,\n self: true,\n });\n\n public ngOnInit(): void {\n if (!this.control?.valueChanges) {\n return;\n }\n\n tuiControlValue(this.control)\n .pipe(tuiWatch(this.cdr), takeUntilDestroyed(this.destroyRef))\n .subscribe((value) => {\n // https://github.com/angular/angular/issues/14988\n const fix =\n this.control instanceof NgModel && value === null\n ? this.control.model\n : value;\n\n this.el.indeterminate = fix === null;\n });\n }\n\n public ngDoCheck(): void {\n this.appearance.tuiAppearance = tuiIsString(this.options.appearance)\n ? this.options.appearance\n : this.options.appearance(this.el);\n }\n\n protected getIcon(state: 'checked' | 'indeterminate'): string {\n const option = this.options.icons[state];\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":";;;;;;;;;;;;;AAcO,MAAM,4BAA4B,GAAuB;AAC5D,IAAA,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,CAAC,EAAE,KACX,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,aAAa,GAAG,SAAS,GAAG,mBAAmB;AACpE,IAAA,KAAK,EAAE;AACH,QAAA,OAAO,EAAE,YAAY;AACrB,QAAA,aAAa,EAAE,YAAY;AAC9B,KAAA;;AAGE,MAAM,oBAAoB,GAAG,IAAI,cAAc,CAClD,SAAS,GAAG,sBAAsB,GAAG,EAAE,EACvC;AACI,IAAA,OAAO,EAAE,MAAM,4BAA4B;AAC9C,CAAA;AAGC,SAAU,0BAA0B,CACtC,OAAoC,EAAA;IAEpC,OAAO,iBAAiB,CAAC,oBAAoB,EAAE,OAAO,EAAE,4BAA4B,CAAC;AACzF;;MCWa,WAAW,CAAA;AAvBxB,IAAA,WAAA,GAAA;AAwBqB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC;AAClC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACtC,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;QAC/B,IAAA,CAAA,QAAQ,GAAG,qBAAqB,EAAE;AAClC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAC/B,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAoB;AAGnD,QAAA,IAA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ation, ChangeDetectionStrategy, inject, Directive, Input } from '@angular/core';
2
+ import { InjectionToken, ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Input, Directive } from '@angular/core';
3
3
  import { tuiProvideOptions, tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
  import { tuiButtonOptionsProvider } from '@taiga-ui/core/components/button';
5
5
  import * as i1 from '@taiga-ui/core/directives/appearance';
@@ -22,14 +22,14 @@ function tuiChipOptionsProvider(options) {
22
22
  }
23
23
 
24
24
  class TuiChipStyles {
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiChipStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiChipStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-chip" }, ngImport: i0, template: '', isInline: true, styles: ["tui-chip,[tuiChip]{--t-gap: .125rem;--t-margin: -.125rem;--t-icon-size: 1rem;--t-padding: 0 .625rem;--t-size: var(--tui-height-s);-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);padding:var(--t-padding);block-size:var(--t-size);inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate}tui-chip>img,[tuiChip]>img,tui-chip>tui-svg,[tuiChip]>tui-svg,tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip>tui-avatar,[tuiChip]>tui-avatar,tui-chip>tui-badge,[tuiChip]>tui-badge,tui-chip>[tuiBadge],[tuiChip]>[tuiBadge],tui-chip>[tuiRadio],[tuiChip]>[tuiRadio],tui-chip>[tuiSwitch],[tuiChip]>[tuiSwitch],tui-chip>[tuiCheckbox],[tuiChip]>[tuiCheckbox],tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{margin:var(--t-margin)}tui-chip:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-chip>[tuiIconButton],[tuiChip]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=xxs],[tuiChip][data-size=xxs]{--t-gap: 0rem;--t-padding: 0 .25rem;--t-size: 1rem;--t-icon-size: .75rem;font:var(--tui-font-text-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xxs]>[tuiIconButton],[tuiChip][data-size=xxs]>[tuiIconButton]{margin:-.5rem;transform:scale(.75)}tui-chip[data-size=xs],[tuiChip][data-size=xs]{--t-padding: 0 .375rem;--t-size: var(--tui-height-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xs]>[tuiIconButton],[tuiChip][data-size=xs]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=m],[tuiChip][data-size=m]{--t-margin: -.375rem;--t-icon-size: 1.5rem;--t-padding: 0 1rem;--t-size: var(--tui-height-m);font:var(--tui-font-text-m)}tui-chip[data-size=m]>[tuiIconButton],[tuiChip][data-size=m]>[tuiIconButton]{margin:-.75rem}tui-chip>img,[tuiChip]>img,tui-chip tui-avatar,[tuiChip] tui-avatar{inline-size:1.5rem;margin-inline-start:-.375rem}tui-chip>[tuiFade]:first-of-type,[tuiChip]>[tuiFade]:first-of-type{flex:1 0 30%;max-inline-size:-webkit-fit-content;max-inline-size:-moz-fit-content;max-inline-size:fit-content}tui-chip>[tuiFade]:last-of-type,[tuiChip]>[tuiFade]:last-of-type{flex:0 1 auto}tui-chip>input[tuiChip],[tuiChip]>input[tuiChip]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;margin:0}tui-chip>input[tuiChip][type=checkbox],[tuiChip]>input[tuiChip][type=checkbox],tui-chip>input[tuiChip][type=radio],[tuiChip]>input[tuiChip][type=radio]{z-index:-1}tui-chip[tuiAppearance][data-appearance=error],[tuiChip][tuiAppearance][data-appearance=error],tui-chip[tuiAppearance][data-appearance=success],[tuiChip][tuiAppearance][data-appearance=success],tui-chip[tuiAppearance][data-appearance=negative],[tuiChip][tuiAppearance][data-appearance=negative],tui-chip[tuiAppearance][data-appearance=positive],[tuiChip][tuiAppearance][data-appearance=positive],tui-chip[tuiAppearance][data-appearance=warning],[tuiChip][tuiAppearance][data-appearance=warning],tui-chip[tuiAppearance][data-appearance=info],[tuiChip][tuiAppearance][data-appearance=info],tui-chip[tuiAppearance][data-appearance=neutral],[tuiChip][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiChipStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiChipStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-chip" }, ngImport: i0, template: '', isInline: true, styles: ["tui-chip,[tuiChip]{--t-gap: .125rem;--t-margin: -.125rem;--t-icon-size: 1rem;--t-padding: 0 .625rem;--t-size: var(--tui-height-s);-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);padding:var(--t-padding);block-size:var(--t-size);inline-size:fit-content;isolation:isolate}tui-chip>img,[tuiChip]>img,tui-chip>tui-svg,[tuiChip]>tui-svg,tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip>tui-avatar,[tuiChip]>tui-avatar,tui-chip>tui-badge,[tuiChip]>tui-badge,tui-chip>[tuiBadge],[tuiChip]>[tuiBadge],tui-chip>[tuiRadio],[tuiChip]>[tuiRadio],tui-chip>[tuiSwitch],[tuiChip]>[tuiSwitch],tui-chip>[tuiCheckbox],[tuiChip]>[tuiCheckbox],tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{margin:var(--t-margin)}tui-chip:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-chip>[tuiIconButton],[tuiChip]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=xxs],[tuiChip][data-size=xxs]{--t-gap: 0rem;--t-padding: 0 .25rem;--t-size: 1rem;--t-icon-size: .75rem;font:var(--tui-font-text-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xxs]>[tuiIconButton],[tuiChip][data-size=xxs]>[tuiIconButton]{margin:-.5rem;transform:scale(.75)}tui-chip[data-size=xs],[tuiChip][data-size=xs]{--t-padding: 0 .375rem;--t-size: var(--tui-height-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xs]>[tuiIconButton],[tuiChip][data-size=xs]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=m],[tuiChip][data-size=m]{--t-margin: -.375rem;--t-icon-size: 1.5rem;--t-padding: 0 1rem;--t-size: var(--tui-height-m);font:var(--tui-font-text-m)}tui-chip[data-size=m]>[tuiIconButton],[tuiChip][data-size=m]>[tuiIconButton]{margin:-.75rem}tui-chip>img,[tuiChip]>img,tui-chip tui-avatar,[tuiChip] tui-avatar{inline-size:1.5rem;margin-inline-start:-.375rem}tui-chip>[tuiFade]:first-of-type,[tuiChip]>[tuiFade]:first-of-type{flex:1 0 30%;max-inline-size:fit-content}tui-chip>[tuiFade]:last-of-type,[tuiChip]>[tuiFade]:last-of-type{flex:0 1 auto}tui-chip>input[tuiChip],[tuiChip]>input[tuiChip]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;margin:0}tui-chip>input[tuiChip][type=checkbox],[tuiChip]>input[tuiChip][type=checkbox],tui-chip>input[tuiChip][type=radio],[tuiChip]>input[tuiChip][type=radio]{z-index:-1}tui-chip[tuiAppearance][data-appearance=error],[tuiChip][tuiAppearance][data-appearance=error],tui-chip[tuiAppearance][data-appearance=success],[tuiChip][tuiAppearance][data-appearance=success],tui-chip[tuiAppearance][data-appearance=negative],[tuiChip][tuiAppearance][data-appearance=negative],tui-chip[tuiAppearance][data-appearance=positive],[tuiChip][tuiAppearance][data-appearance=positive],tui-chip[tuiAppearance][data-appearance=warning],[tuiChip][tuiAppearance][data-appearance=warning],tui-chip[tuiAppearance][data-appearance=info],[tuiChip][tuiAppearance][data-appearance=info],tui-chip[tuiAppearance][data-appearance=neutral],[tuiChip][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}input[tuiChip]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:text}input[tuiChip]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:text}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiChipStyles, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiChipStyles, decorators: [{
29
29
  type: Component,
30
30
  args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
31
31
  class: 'tui-chip',
32
- }, styles: ["tui-chip,[tuiChip]{--t-gap: .125rem;--t-margin: -.125rem;--t-icon-size: 1rem;--t-padding: 0 .625rem;--t-size: var(--tui-height-s);-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);padding:var(--t-padding);block-size:var(--t-size);inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate}tui-chip>img,[tuiChip]>img,tui-chip>tui-svg,[tuiChip]>tui-svg,tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip>tui-avatar,[tuiChip]>tui-avatar,tui-chip>tui-badge,[tuiChip]>tui-badge,tui-chip>[tuiBadge],[tuiChip]>[tuiBadge],tui-chip>[tuiRadio],[tuiChip]>[tuiRadio],tui-chip>[tuiSwitch],[tuiChip]>[tuiSwitch],tui-chip>[tuiCheckbox],[tuiChip]>[tuiCheckbox],tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{margin:var(--t-margin)}tui-chip:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-chip>[tuiIconButton],[tuiChip]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=xxs],[tuiChip][data-size=xxs]{--t-gap: 0rem;--t-padding: 0 .25rem;--t-size: 1rem;--t-icon-size: .75rem;font:var(--tui-font-text-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xxs]>[tuiIconButton],[tuiChip][data-size=xxs]>[tuiIconButton]{margin:-.5rem;transform:scale(.75)}tui-chip[data-size=xs],[tuiChip][data-size=xs]{--t-padding: 0 .375rem;--t-size: var(--tui-height-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xs]>[tuiIconButton],[tuiChip][data-size=xs]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=m],[tuiChip][data-size=m]{--t-margin: -.375rem;--t-icon-size: 1.5rem;--t-padding: 0 1rem;--t-size: var(--tui-height-m);font:var(--tui-font-text-m)}tui-chip[data-size=m]>[tuiIconButton],[tuiChip][data-size=m]>[tuiIconButton]{margin:-.75rem}tui-chip>img,[tuiChip]>img,tui-chip tui-avatar,[tuiChip] tui-avatar{inline-size:1.5rem;margin-inline-start:-.375rem}tui-chip>[tuiFade]:first-of-type,[tuiChip]>[tuiFade]:first-of-type{flex:1 0 30%;max-inline-size:-webkit-fit-content;max-inline-size:-moz-fit-content;max-inline-size:fit-content}tui-chip>[tuiFade]:last-of-type,[tuiChip]>[tuiFade]:last-of-type{flex:0 1 auto}tui-chip>input[tuiChip],[tuiChip]>input[tuiChip]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;margin:0}tui-chip>input[tuiChip][type=checkbox],[tuiChip]>input[tuiChip][type=checkbox],tui-chip>input[tuiChip][type=radio],[tuiChip]>input[tuiChip][type=radio]{z-index:-1}tui-chip[tuiAppearance][data-appearance=error],[tuiChip][tuiAppearance][data-appearance=error],tui-chip[tuiAppearance][data-appearance=success],[tuiChip][tuiAppearance][data-appearance=success],tui-chip[tuiAppearance][data-appearance=negative],[tuiChip][tuiAppearance][data-appearance=negative],tui-chip[tuiAppearance][data-appearance=positive],[tuiChip][tuiAppearance][data-appearance=positive],tui-chip[tuiAppearance][data-appearance=warning],[tuiChip][tuiAppearance][data-appearance=warning],tui-chip[tuiAppearance][data-appearance=info],[tuiChip][tuiAppearance][data-appearance=info],tui-chip[tuiAppearance][data-appearance=neutral],[tuiChip][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}\n"] }]
32
+ }, styles: ["tui-chip,[tuiChip]{--t-gap: .125rem;--t-margin: -.125rem;--t-icon-size: 1rem;--t-padding: 0 .625rem;--t-size: var(--tui-height-s);-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));font:var(--tui-font-text-s);border-radius:var(--tui-radius-m);padding:var(--t-padding);block-size:var(--t-size);inline-size:fit-content;isolation:isolate}tui-chip>img,[tuiChip]>img,tui-chip>tui-svg,[tuiChip]>tui-svg,tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip>tui-avatar,[tuiChip]>tui-avatar,tui-chip>tui-badge,[tuiChip]>tui-badge,tui-chip>[tuiBadge],[tuiChip]>[tuiBadge],tui-chip>[tuiRadio],[tuiChip]>[tuiRadio],tui-chip>[tuiSwitch],[tuiChip]>[tuiSwitch],tui-chip>[tuiCheckbox],[tuiChip]>[tuiCheckbox],tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{margin:var(--t-margin)}tui-chip:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiChip]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-chip>tui-icon,[tuiChip]>tui-icon,tui-chip[tuiIcons]:before,[tuiChip][tuiIcons]:before,tui-chip[tuiIcons]:after,[tuiChip][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-chip>[tuiIconButton],[tuiChip]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=xxs],[tuiChip][data-size=xxs]{--t-gap: 0rem;--t-padding: 0 .25rem;--t-size: 1rem;--t-icon-size: .75rem;font:var(--tui-font-text-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xxs]>[tuiIconButton],[tuiChip][data-size=xxs]>[tuiIconButton]{margin:-.5rem;transform:scale(.75)}tui-chip[data-size=xs],[tuiChip][data-size=xs]{--t-padding: 0 .375rem;--t-size: var(--tui-height-xs);border-radius:var(--tui-radius-xs)}tui-chip[data-size=xs]>[tuiIconButton],[tuiChip][data-size=xs]>[tuiIconButton]{margin:-.375rem}tui-chip[data-size=m],[tuiChip][data-size=m]{--t-margin: -.375rem;--t-icon-size: 1.5rem;--t-padding: 0 1rem;--t-size: var(--tui-height-m);font:var(--tui-font-text-m)}tui-chip[data-size=m]>[tuiIconButton],[tuiChip][data-size=m]>[tuiIconButton]{margin:-.75rem}tui-chip>img,[tuiChip]>img,tui-chip tui-avatar,[tuiChip] tui-avatar{inline-size:1.5rem;margin-inline-start:-.375rem}tui-chip>[tuiFade]:first-of-type,[tuiChip]>[tuiFade]:first-of-type{flex:1 0 30%;max-inline-size:fit-content}tui-chip>[tuiFade]:last-of-type,[tuiChip]>[tuiFade]:last-of-type{flex:0 1 auto}tui-chip>input[tuiChip],[tuiChip]>input[tuiChip]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;margin:0}tui-chip>input[tuiChip][type=checkbox],[tuiChip]>input[tuiChip][type=checkbox],tui-chip>input[tuiChip][type=radio],[tuiChip]>input[tuiChip][type=radio]{z-index:-1}tui-chip[tuiAppearance][data-appearance=error],[tuiChip][tuiAppearance][data-appearance=error],tui-chip[tuiAppearance][data-appearance=success],[tuiChip][tuiAppearance][data-appearance=success],tui-chip[tuiAppearance][data-appearance=negative],[tuiChip][tuiAppearance][data-appearance=negative],tui-chip[tuiAppearance][data-appearance=positive],[tuiChip][tuiAppearance][data-appearance=positive],tui-chip[tuiAppearance][data-appearance=warning],[tuiChip][tuiAppearance][data-appearance=warning],tui-chip[tuiAppearance][data-appearance=info],[tuiChip][tuiAppearance][data-appearance=info],tui-chip[tuiAppearance][data-appearance=neutral],[tuiChip][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}input[tuiChip]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:text}input[tuiChip]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:text}\n"] }]
33
33
  }] });
34
34
  class TuiChip {
35
35
  constructor() {
@@ -37,8 +37,8 @@ class TuiChip {
37
37
  this.nothing = tuiWithStyles(TuiChipStyles);
38
38
  this.size = this.options.size;
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiChip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiChip, isStandalone: true, selector: "tui-chip,[tuiChip]", inputs: { size: "size" }, host: { properties: { "attr.data-size": "size" } }, providers: [
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiChip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiChip, isStandalone: true, selector: "tui-chip,[tuiChip]", inputs: { size: "size" }, host: { properties: { "attr.data-size": "size" } }, providers: [
42
42
  tuiAppearanceOptionsProvider(TUI_CHIP_OPTIONS),
43
43
  tuiSwitchOptionsProvider({ size: 's' }),
44
44
  tuiCheckboxOptionsProvider({ size: 's' }),
@@ -49,7 +49,7 @@ class TuiChip {
49
49
  }),
50
50
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiWithIcons }], ngImport: i0 }); }
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiChip, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiChip, decorators: [{
53
53
  type: Directive,
54
54
  args: [{
55
55
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-chip.mjs","sources":["../../../projects/kit/components/chip/chip.options.ts","../../../projects/kit/components/chip/chip.directive.ts","../../../projects/kit/components/chip/taiga-ui-kit-components-chip.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeXXS} from '@taiga-ui/core/types';\n\nexport interface TuiChipOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeXXS;\n}\n\nexport const TUI_CHIP_DEFAULT_OPTIONS: TuiChipOptions = {\n appearance: 'neutral',\n size: 's',\n};\n\nexport const TUI_CHIP_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_CHIP_OPTIONS' : '', {\n factory: () => TUI_CHIP_DEFAULT_OPTIONS,\n});\n\nexport function tuiChipOptionsProvider(options: Partial<TuiChipOptions>): Provider {\n return tuiProvideOptions(TUI_CHIP_OPTIONS, options, TUI_CHIP_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\nimport {type TuiSizeXXS} from '@taiga-ui/core/types';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {tuiCheckboxOptionsProvider} from '@taiga-ui/kit/components/checkbox';\nimport {tuiSwitchOptionsProvider} from '@taiga-ui/kit/components/switch';\n\nimport {TUI_CHIP_OPTIONS} from './chip.options';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/chip.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-chip',\n },\n})\nclass TuiChipStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-chip,[tuiChip]',\n providers: [\n tuiAppearanceOptionsProvider(TUI_CHIP_OPTIONS),\n tuiSwitchOptionsProvider({size: 's'}),\n tuiCheckboxOptionsProvider({size: 's'}),\n tuiAvatarOptionsProvider({size: 'xs'}),\n tuiButtonOptionsProvider({\n size: 'xs',\n appearance: 'icon',\n }),\n ],\n hostDirectives: [TuiWithAppearance, TuiWithIcons],\n host: {'[attr.data-size]': 'size'},\n})\nexport class TuiChip {\n private readonly options = inject(TUI_CHIP_OPTIONS);\n\n protected readonly nothing = tuiWithStyles(TuiChipStyles);\n\n @Input()\n public size: TuiSizeXXS = this.options.size;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;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E,oBAAoB;AAC9B,oBAAA,SAAS,EAAE;wBACP,4BAA4B,CAAC,gBAAgB,CAAC;AAC9C,wBAAA,wBAAwB,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;AACrC,wBAAA,0BAA0B,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;AACvC,wBAAA,wBAAwB,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;AACtC,wBAAA,wBAAwB,CAAC;AACrB,4BAAA,IAAI,EAAE,IAAI;AACV,4BAAA,UAAU,EAAE,MAAM;yBACrB,CAAC;AACL,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,iBAAiB,EAAE,YAAY,CAAC;AACjD,oBAAA,IAAI,EAAE,EAAC,kBAAkB,EAAE,MAAM,EAAC;AACrC,iBAAA,CAAA;8BAOU,IAAI,EAAA,CAAA;sBADV,KAAK;;;ACvDV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-chip.mjs","sources":["../../../projects/kit/components/chip/chip.options.ts","../../../projects/kit/components/chip/chip.directive.ts","../../../projects/kit/components/chip/taiga-ui-kit-components-chip.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeXXS} from '@taiga-ui/core/types';\n\nexport interface TuiChipOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeXXS;\n}\n\nexport const TUI_CHIP_DEFAULT_OPTIONS: TuiChipOptions = {\n appearance: 'neutral',\n size: 's',\n};\n\nexport const TUI_CHIP_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_CHIP_OPTIONS' : '', {\n factory: () => TUI_CHIP_DEFAULT_OPTIONS,\n});\n\nexport function tuiChipOptionsProvider(options: Partial<TuiChipOptions>): Provider {\n return tuiProvideOptions(TUI_CHIP_OPTIONS, options, TUI_CHIP_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\nimport {type TuiSizeXXS} from '@taiga-ui/core/types';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {tuiCheckboxOptionsProvider} from '@taiga-ui/kit/components/checkbox';\nimport {tuiSwitchOptionsProvider} from '@taiga-ui/kit/components/switch';\n\nimport {TUI_CHIP_OPTIONS} from './chip.options';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/chip.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-chip',\n },\n})\nclass TuiChipStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-chip,[tuiChip]',\n providers: [\n tuiAppearanceOptionsProvider(TUI_CHIP_OPTIONS),\n tuiSwitchOptionsProvider({size: 's'}),\n tuiCheckboxOptionsProvider({size: 's'}),\n tuiAvatarOptionsProvider({size: 'xs'}),\n tuiButtonOptionsProvider({\n size: 'xs',\n appearance: 'icon',\n }),\n ],\n hostDirectives: [TuiWithAppearance, TuiWithIcons],\n host: {'[attr.data-size]': 'size'},\n})\nexport class TuiChip {\n private readonly options = inject(TUI_CHIP_OPTIONS);\n\n protected readonly nothing = tuiWithStyles(TuiChipStyles);\n\n @Input()\n public size: TuiSizeXXS = this.options.size;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AASO,MAAM,wBAAwB,GAAmB;AACpD,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,IAA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AA,0BAA0B,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;AACvC,wBAAA,wBAAwB,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;AACtC,wBAAA,wBAAwB,CAAC;AACrB,4BAAA,IAAI,EAAE,IAAI;AACV,4BAAA,UAAU,EAAE,MAAM;yBACrB,CAAC;AACL,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,iBAAiB,EAAE,YAAY,CAAC;AACjD,oBAAA,IAAI,EAAE,EAAC,kBAAkB,EAAE,MAAM,EAAC;AACrC,iBAAA;8BAOU,IAAI,EAAA,CAAA;sBADV;;;ACvDL;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, signal, isSignal, computed, effect, untracked, Directive, Input } from '@angular/core';
2
+ import { inject, signal, isSignal, computed, effect, untracked, Input, Directive } from '@angular/core';
3
3
  import { TuiControl, tuiAsControl } from '@taiga-ui/cdk/classes';
4
4
  import { TUI_STRICT_MATCHER, TUI_ALLOW_SIGNAL_WRITES } from '@taiga-ui/cdk/constants';
5
5
  import { tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
@@ -104,14 +104,14 @@ class TuiComboBox extends TuiControl {
104
104
  stringify(value) {
105
105
  return value != null ? this.handlers.stringify()(value) : '';
106
106
  }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBox, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
108
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiComboBox, isStandalone: true, selector: "input[tuiComboBox]", inputs: { strictSetter: ["strict", "strictSetter"], matcherSetter: ["matcher", "matcherSetter"] }, host: { listeners: { "click": "toggleDropdown()", "input": "toggleDropdown(true)", "keydown.enter": "keydownEnter($event)" }, properties: { "disabled": "disabled()" } }, providers: [
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiComboBox, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
108
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiComboBox, isStandalone: true, selector: "input[tuiComboBox]", inputs: { strictSetter: ["strict", "strictSetter"], matcherSetter: ["matcher", "matcherSetter"] }, host: { listeners: { "click": "toggleDropdown()", "input": "toggleDropdown(true)", "keydown.enter": "keydownEnter($event)" }, properties: { "disabled": "disabled()" } }, providers: [
109
109
  tuiAsOptionContent(TuiSelectOption),
110
110
  tuiAsTextfieldAccessor(TuiComboBox),
111
111
  tuiAsControl(TuiComboBox),
112
112
  ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }], ngImport: i0 }); }
113
113
  }
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBox, decorators: [{
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiComboBox, decorators: [{
115
115
  type: Directive,
116
116
  args: [{
117
117
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-combo-box.mjs","sources":["../../../projects/kit/components/combo-box/combo-box.directive.ts","../../../projects/kit/components/combo-box/taiga-ui-kit-components-combo-box.ts"],"sourcesContent":["import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n isSignal,\n signal,\n untracked,\n} from '@angular/core';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES, TUI_STRICT_MATCHER} from '@taiga-ui/cdk/constants';\nimport {type TuiStringMatcher} from '@taiga-ui/cdk/types';\nimport {\n tuiAsOptionContent,\n type TuiDataListAccessor,\n} from '@taiga-ui/core/components/data-list';\nimport {\n tuiAsTextfieldAccessor,\n tuiInjectAuxiliary,\n type TuiTextfieldAccessor,\n TuiTextfieldComponent,\n TuiTextfieldDirective,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownDirective,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiComboBox]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsTextfieldAccessor(TuiComboBox),\n tuiAsControl(TuiComboBox),\n ],\n hostDirectives: [TuiWithTextfield],\n host: {\n '[disabled]': 'disabled()',\n '(click)': 'toggleDropdown()',\n '(input)': 'toggleDropdown(true)',\n '(keydown.enter)': 'keydownEnter($event)',\n },\n})\nexport class TuiComboBox<T>\n extends TuiControl<T | string | null>\n implements TuiTextfieldAccessor<T>\n{\n private readonly host: TuiTextfieldComponent<T> = inject(TuiTextfieldComponent);\n private readonly textfield: TuiTextfieldDirective<T> = inject(TuiTextfieldDirective);\n private readonly open = tuiDropdownOpen();\n private readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n private readonly dropdown = inject(TuiDropdownDirective);\n private readonly handlers: TuiItemsHandlers<T | string> = inject(TUI_ITEMS_HANDLERS);\n\n private readonly matcher = signal<TuiStringMatcher<T> | null>(TUI_STRICT_MATCHER);\n private readonly strict = signal(true);\n private readonly datalist = tuiInjectAuxiliary<TuiDataListAccessor<T>>(\n (x) => x !== this && 'options' in x && isSignal(x.options),\n );\n\n private readonly options = computed(\n () =>\n this.datalist()\n ?.options?.() // TODO(v5): remove optional call `?.()`\n .filter((x) => !this.handlers.disabledItemHandler()(x)) ?? [],\n );\n\n protected readonly nonStrictControlEffect = effect(() => {\n if (\n !this.options().length &&\n !this.strict() &&\n this.stringify(this.value()) !== this.textfield.value()\n ) {\n this.onChange(this.textfield.value() || null);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly matchingEffect = effect(() => {\n const options = this.options();\n const matcher = this.matcher();\n\n if (!options.length || !matcher) {\n return;\n }\n\n const textfieldValue = this.textfield.value();\n const selectedOption = options.find((x) =>\n matcher(x, textfieldValue, this.handlers.stringify()),\n );\n const value = untracked(() => this.value());\n const unchanged = this.stringify(value) === textfieldValue;\n const fallback = this.strict() || !textfieldValue ? null : textfieldValue;\n\n this.onChange(\n selectedOption ??\n /**\n * Don't clear already not-null form control value on new `this.options()` array.\n * Otherwise, `ComboBox` becomes incompatible with virtual scroll\n * (which displays large lists of elements by only rendering the items that fit on-screen).\n * Users can still able to patch form value with `null` on new items if they wish the such behavior.\n */\n (unchanged ? value : fallback),\n );\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly newValueEffect = effect(() => {\n const stringified = this.stringify(this.value());\n\n this.textfield.value.update((x) => stringified || x);\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly blurEffect = effect(() => {\n const incomplete = untracked(() => this.strict() && this.value() === null);\n\n if (!this.host.focused() && incomplete) {\n this.textfield.value.set('');\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n // TODO(v5): use signal input\n @Input('strict')\n public set strictSetter(x: boolean) {\n this.strict.set(x);\n }\n\n // TODO(v5): use signal input\n @Input('matcher')\n public set matcherSetter(x: TuiStringMatcher<T> | null) {\n this.matcher.set(x);\n }\n\n public setValue(value: T | null): void {\n this.textfield.setValue(value);\n this.onChange(value);\n\n if (!value) {\n this.toggleDropdown(true);\n }\n }\n\n public override writeValue(value: T | string | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n untracked(() => this.textfield.value.set(this.stringify(value)));\n }\n }\n\n protected toggleDropdown(open = !this.open()): void {\n if (this.dropdownEnabled() && this.dropdown._content()) {\n this.open.set(open);\n }\n }\n\n protected keydownEnter(event: KeyboardEvent): void {\n if (!this.open()) {\n return;\n }\n\n event.preventDefault();\n\n const options = this.options();\n\n if (options.length === 1 && options[0]) {\n this.setValue(options[0]);\n this.toggleDropdown(false);\n }\n }\n\n private stringify(value?: T | string | null): string {\n return value != null ? this.handlers.stringify()(value) : '';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAoCA,MAgBa,WACT,SAAQ,UAA6B,CAAA;AAjBzC,IAAA,WAAA,GAAA;;AAoBqB,QAAA,IAAA,CAAA,IAAI,GAA6B,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC/D,QAAA,IAAA,CAAA,SAAS,GAA6B,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACpE,IAAI,CAAA,IAAA,GAAG,eAAe,EAAE,CAAC;AACzB,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AACvD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACxC,QAAA,IAAA,CAAA,QAAQ,GAAiC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAEpE,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAA6B,kBAAkB,CAAC,CAAC;AACjE,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QACtB,IAAQ,CAAA,QAAA,GAAG,kBAAkB,CAC1C,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,SAAS,IAAI,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAC7D,CAAC;QAEe,IAAO,CAAA,OAAA,GAAG,QAAQ,CAC/B,MACI,IAAI,CAAC,QAAQ,EAAE;AACX,cAAE,OAAO,IAAI;aACZ,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CACxE,CAAC;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;AAC5B,qBAAA;oBACD,cAAc,EAAE,CAAC,gBAAgB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,kBAAkB;AAC7B,wBAAA,SAAS,EAAE,sBAAsB;AACjC,wBAAA,iBAAiB,EAAE,sBAAsB;AAC5C,qBAAA;AACJ,iBAAA,CAAA;8BA+Ec,YAAY,EAAA,CAAA;sBADtB,KAAK;uBAAC,QAAQ,CAAA;gBAOJ,aAAa,EAAA,CAAA;sBADvB,KAAK;uBAAC,SAAS,CAAA;;;ACvIpB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-combo-box.mjs","sources":["../../../projects/kit/components/combo-box/combo-box.directive.ts","../../../projects/kit/components/combo-box/taiga-ui-kit-components-combo-box.ts"],"sourcesContent":["import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n isSignal,\n signal,\n untracked,\n} from '@angular/core';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES, TUI_STRICT_MATCHER} from '@taiga-ui/cdk/constants';\nimport {type TuiStringMatcher} from '@taiga-ui/cdk/types';\nimport {\n tuiAsOptionContent,\n type TuiDataListAccessor,\n} from '@taiga-ui/core/components/data-list';\nimport {\n tuiAsTextfieldAccessor,\n tuiInjectAuxiliary,\n type TuiTextfieldAccessor,\n TuiTextfieldComponent,\n TuiTextfieldDirective,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownDirective,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiComboBox]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsTextfieldAccessor(TuiComboBox),\n tuiAsControl(TuiComboBox),\n ],\n hostDirectives: [TuiWithTextfield],\n host: {\n '[disabled]': 'disabled()',\n '(click)': 'toggleDropdown()',\n '(input)': 'toggleDropdown(true)',\n '(keydown.enter)': 'keydownEnter($event)',\n },\n})\nexport class TuiComboBox<T>\n extends TuiControl<T | string | null>\n implements TuiTextfieldAccessor<T>\n{\n private readonly host: TuiTextfieldComponent<T> = inject(TuiTextfieldComponent);\n private readonly textfield: TuiTextfieldDirective<T> = inject(TuiTextfieldDirective);\n private readonly open = tuiDropdownOpen();\n private readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n private readonly dropdown = inject(TuiDropdownDirective);\n private readonly handlers: TuiItemsHandlers<T | string> = inject(TUI_ITEMS_HANDLERS);\n\n private readonly matcher = signal<TuiStringMatcher<T> | null>(TUI_STRICT_MATCHER);\n private readonly strict = signal(true);\n private readonly datalist = tuiInjectAuxiliary<TuiDataListAccessor<T>>(\n (x) => x !== this && 'options' in x && isSignal(x.options),\n );\n\n private readonly options = computed(\n () =>\n this.datalist()\n ?.options?.() // TODO(v5): remove optional call `?.()`\n .filter((x) => !this.handlers.disabledItemHandler()(x)) ?? [],\n );\n\n protected readonly nonStrictControlEffect = effect(() => {\n if (\n !this.options().length &&\n !this.strict() &&\n this.stringify(this.value()) !== this.textfield.value()\n ) {\n this.onChange(this.textfield.value() || null);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly matchingEffect = effect(() => {\n const options = this.options();\n const matcher = this.matcher();\n\n if (!options.length || !matcher) {\n return;\n }\n\n const textfieldValue = this.textfield.value();\n const selectedOption = options.find((x) =>\n matcher(x, textfieldValue, this.handlers.stringify()),\n );\n const value = untracked(() => this.value());\n const unchanged = this.stringify(value) === textfieldValue;\n const fallback = this.strict() || !textfieldValue ? null : textfieldValue;\n\n this.onChange(\n selectedOption ??\n /**\n * Don't clear already not-null form control value on new `this.options()` array.\n * Otherwise, `ComboBox` becomes incompatible with virtual scroll\n * (which displays large lists of elements by only rendering the items that fit on-screen).\n * Users can still able to patch form value with `null` on new items if they wish the such behavior.\n */\n (unchanged ? value : fallback),\n );\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly newValueEffect = effect(() => {\n const stringified = this.stringify(this.value());\n\n this.textfield.value.update((x) => stringified || x);\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly blurEffect = effect(() => {\n const incomplete = untracked(() => this.strict() && this.value() === null);\n\n if (!this.host.focused() && incomplete) {\n this.textfield.value.set('');\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n // TODO(v5): use signal input\n @Input('strict')\n public set strictSetter(x: boolean) {\n this.strict.set(x);\n }\n\n // TODO(v5): use signal input\n @Input('matcher')\n public set matcherSetter(x: TuiStringMatcher<T> | null) {\n this.matcher.set(x);\n }\n\n public setValue(value: T | null): void {\n this.textfield.setValue(value);\n this.onChange(value);\n\n if (!value) {\n this.toggleDropdown(true);\n }\n }\n\n public override writeValue(value: T | string | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n untracked(() => this.textfield.value.set(this.stringify(value)));\n }\n }\n\n protected toggleDropdown(open = !this.open()): void {\n if (this.dropdownEnabled() && this.dropdown._content()) {\n this.open.set(open);\n }\n }\n\n protected keydownEnter(event: KeyboardEvent): void {\n if (!this.open()) {\n return;\n }\n\n event.preventDefault();\n\n const options = this.options();\n\n if (options.length === 1 && options[0]) {\n this.setValue(options[0]);\n this.toggleDropdown(false);\n }\n }\n\n private stringify(value?: T | string | null): string {\n return value != null ? this.handlers.stringify()(value) : '';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAoDM,MAAO,WACT,SAAQ,UAA6B,CAAA;AAjBzC,IAAA,WAAA,GAAA;;AAoBqB,QAAA,IAAA,CAAA,IAAI,GAA6B,MAAM,CAAC,qB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UAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,EAAA,SAAA,EAbT;YACP,kBAAkB,CAAC,eAAe,CAAC;YACnC,sBAAsB,CAAC,WAAW,CAAC;YACnC,YAAY,CAAC,WAAW,CAAC;AAC5B,SAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FASQ,WAAW,EAAA,UAAA,EAAA,CAAA;kBAhBvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,SAAS,EAAE;wBACP,kBAAkB,CAAC,eAAe,CAAC;AACnC,wBAAA,sBAAsB,CAAA,WAAA,CAAa;AACnC,wBAAA,YAAY,CAAA,WAAA,CAAa;AAC5B,qBAAA;oBACD,cAAc,EAAE,CAAC,gBAAgB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,kBAAkB;AAC7B,wBAAA,SAAS,EAAE,sBAAsB;AACjC,wBAAA,iBAAiB,EAAE,sBAAsB;AAC5C,qBAAA;AACJ,iBAAA;8BA+Ec,YAAY,EAAA,CAAA;sBADtB,KAAK;uBAAC,QAAQ;gBAOJ,aAAa,EAAA,CAAA;sBADvB,KAAK;uBAAC,SAAS;;;ACvIpB;;AAEG;;;;"}
@@ -1,26 +1,26 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Directive, Input } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, Input, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
 
5
5
  class TuiCommentStyles {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCommentStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiCommentStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-comment" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiComment]{position:relative;display:inline-flex;font:var(--tui-font-text-m);color:#fff;padding:.5rem .75rem;min-inline-size:2.5rem;border-radius:1rem;line-height:1.125rem;background:var(--tui-background-accent-2);align-items:center;justify-content:center}[tuiComment]:before{content:\"\";position:absolute;bottom:100%;left:50%;inline-size:1.5625rem;block-size:.5625rem;background:inherit;transform:translate(-50%);-webkit-mask:url(\"data:image/svg+xml,%3Csvg width='25' height='9' viewBox='0 0 25 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23309 6.67813L7.56191 3.83178C9.4546 1.5185 10.4009 0.361853 11.5998 0.10488C12.0834 0.00123882 12.5834 0.00123882 13.0669 0.10488C14.2658 0.361853 15.2121 1.5185 17.1048 3.83178L19.4337 6.67813C20.636 8.14771 22.4346 9 24.3334 9H0.333374C2.23217 9 4.0307 8.14772 5.23309 6.67813Z' fill='black'/%3E%3C/svg%3E%0A\") no-repeat;mask:url(\"data:image/svg+xml,%3Csvg width='25' height='9' viewBox='0 0 25 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23309 6.67813L7.56191 3.83178C9.4546 1.5185 10.4009 0.361853 11.5998 0.10488C12.0834 0.00123882 12.5834 0.00123882 13.0669 0.10488C14.2658 0.361853 15.2121 1.5185 17.1048 3.83178L19.4337 6.67813C20.636 8.14771 22.4346 9 24.3334 9H0.333374C2.23217 9 4.0307 8.14772 5.23309 6.67813Z' fill='black'/%3E%3C/svg%3E%0A\") no-repeat}[tuiComment][data-direction=bottom]:before{top:100%;bottom:auto;transform:translate(-50%) rotate(180deg)}[tuiComment][data-direction=left]:before{left:auto;top:50%;right:100%;transform:translate(.785rem,-50%) rotate(-90deg)}[tuiComment][data-direction=right]:before{top:50%;left:100%;transform:translate(-.785rem,-50%) rotate(90deg)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCommentStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiCommentStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-comment" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiComment]{position:relative;display:inline-flex;font:var(--tui-font-text-m);color:#fff;padding:.5rem .75rem;min-inline-size:2.5rem;border-radius:1rem;line-height:1.125rem;background:var(--tui-background-accent-2);align-items:center;justify-content:center}[tuiComment]:before{content:\"\";position:absolute;bottom:100%;left:50%;inline-size:1.5625rem;block-size:.5625rem;background:inherit;transform:translate(-50%);mask:url(\"data:image/svg+xml,%3Csvg width='25' height='9' viewBox='0 0 25 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23309 6.67813L7.56191 3.83178C9.4546 1.5185 10.4009 0.361853 11.5998 0.10488C12.0834 0.00123882 12.5834 0.00123882 13.0669 0.10488C14.2658 0.361853 15.2121 1.5185 17.1048 3.83178L19.4337 6.67813C20.636 8.14771 22.4346 9 24.3334 9H0.333374C2.23217 9 4.0307 8.14772 5.23309 6.67813Z' fill='black'/%3E%3C/svg%3E%0A\") no-repeat}[tuiComment][data-direction=bottom]:before{top:100%;bottom:auto;transform:translate(-50%) rotate(180deg)}[tuiComment][data-direction=left]:before{left:auto;top:50%;right:100%;transform:translate(.785rem,-50%) rotate(-90deg)}[tuiComment][data-direction=right]:before{top:50%;left:100%;transform:translate(-.785rem,-50%) rotate(90deg)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCommentStyles, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiCommentStyles, decorators: [{
10
10
  type: Component,
11
11
  args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
12
12
  class: 'tui-comment',
13
- }, styles: ["[tuiComment]{position:relative;display:inline-flex;font:var(--tui-font-text-m);color:#fff;padding:.5rem .75rem;min-inline-size:2.5rem;border-radius:1rem;line-height:1.125rem;background:var(--tui-background-accent-2);align-items:center;justify-content:center}[tuiComment]:before{content:\"\";position:absolute;bottom:100%;left:50%;inline-size:1.5625rem;block-size:.5625rem;background:inherit;transform:translate(-50%);-webkit-mask:url(\"data:image/svg+xml,%3Csvg width='25' height='9' viewBox='0 0 25 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23309 6.67813L7.56191 3.83178C9.4546 1.5185 10.4009 0.361853 11.5998 0.10488C12.0834 0.00123882 12.5834 0.00123882 13.0669 0.10488C14.2658 0.361853 15.2121 1.5185 17.1048 3.83178L19.4337 6.67813C20.636 8.14771 22.4346 9 24.3334 9H0.333374C2.23217 9 4.0307 8.14772 5.23309 6.67813Z' fill='black'/%3E%3C/svg%3E%0A\") no-repeat;mask:url(\"data:image/svg+xml,%3Csvg width='25' height='9' viewBox='0 0 25 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23309 6.67813L7.56191 3.83178C9.4546 1.5185 10.4009 0.361853 11.5998 0.10488C12.0834 0.00123882 12.5834 0.00123882 13.0669 0.10488C14.2658 0.361853 15.2121 1.5185 17.1048 3.83178L19.4337 6.67813C20.636 8.14771 22.4346 9 24.3334 9H0.333374C2.23217 9 4.0307 8.14772 5.23309 6.67813Z' fill='black'/%3E%3C/svg%3E%0A\") no-repeat}[tuiComment][data-direction=bottom]:before{top:100%;bottom:auto;transform:translate(-50%) rotate(180deg)}[tuiComment][data-direction=left]:before{left:auto;top:50%;right:100%;transform:translate(.785rem,-50%) rotate(-90deg)}[tuiComment][data-direction=right]:before{top:50%;left:100%;transform:translate(-.785rem,-50%) rotate(90deg)}\n"] }]
13
+ }, styles: ["[tuiComment]{position:relative;display:inline-flex;font:var(--tui-font-text-m);color:#fff;padding:.5rem .75rem;min-inline-size:2.5rem;border-radius:1rem;line-height:1.125rem;background:var(--tui-background-accent-2);align-items:center;justify-content:center}[tuiComment]:before{content:\"\";position:absolute;bottom:100%;left:50%;inline-size:1.5625rem;block-size:.5625rem;background:inherit;transform:translate(-50%);mask:url(\"data:image/svg+xml,%3Csvg width='25' height='9' viewBox='0 0 25 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23309 6.67813L7.56191 3.83178C9.4546 1.5185 10.4009 0.361853 11.5998 0.10488C12.0834 0.00123882 12.5834 0.00123882 13.0669 0.10488C14.2658 0.361853 15.2121 1.5185 17.1048 3.83178L19.4337 6.67813C20.636 8.14771 22.4346 9 24.3334 9H0.333374C2.23217 9 4.0307 8.14772 5.23309 6.67813Z' fill='black'/%3E%3C/svg%3E%0A\") no-repeat}[tuiComment][data-direction=bottom]:before{top:100%;bottom:auto;transform:translate(-50%) rotate(180deg)}[tuiComment][data-direction=left]:before{left:auto;top:50%;right:100%;transform:translate(.785rem,-50%) rotate(-90deg)}[tuiComment][data-direction=right]:before{top:50%;left:100%;transform:translate(-.785rem,-50%) rotate(90deg)}\n"] }]
14
14
  }] });
15
15
  class TuiComment {
16
16
  constructor() {
17
17
  this.nothing = tuiWithStyles(TuiCommentStyles);
18
18
  this.tuiComment = 'top';
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComment, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiComment, isStandalone: true, selector: "[tuiComment]", inputs: { tuiComment: "tuiComment" }, host: { properties: { "attr.data-direction": "tuiComment" } }, ngImport: i0 }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiComment, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiComment, isStandalone: true, selector: "[tuiComment]", inputs: { tuiComment: "tuiComment" }, host: { properties: { "attr.data-direction": "tuiComment" } }, ngImport: i0 }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComment, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiComment, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  standalone: true,