@taiga-ui/kit 4.52.0-canary.536e4ff → 4.52.0-canary.698642f

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 (720) hide show
  1. package/components/avatar/avatar.component.d.ts +1 -1
  2. package/components/badge/badge.directive.d.ts +1 -1
  3. package/components/input-color/input-color.component.d.ts +2 -1
  4. package/components/input-number/quantum.directive.d.ts +1 -1
  5. package/components/line-clamp/line-clamp.component.d.ts +6 -10
  6. package/components/segmented/segmented.component.d.ts +4 -4
  7. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  8. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
  9. package/directives/index.d.ts +0 -1
  10. package/fesm2022/taiga-ui-kit-components-accordion.mjs +16 -17
  11. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +8 -8
  13. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-kit-components-avatar.mjs +41 -42
  15. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  17. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-kit-components-badge.mjs +10 -9
  19. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  21. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-kit-components-block.mjs +8 -8
  23. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +8 -10
  25. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -5
  27. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -8
  29. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +10 -10
  31. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-kit-components-carousel.mjs +21 -23
  33. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -5
  35. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-kit-components-chip.mjs +8 -8
  37. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
  39. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-kit-components-comment.mjs +8 -8
  41. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  43. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-kit-components-confirm.mjs +9 -9
  45. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +11 -12
  47. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  49. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -8
  51. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-kit-components-files.mjs +31 -41
  53. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-kit-components-filter.mjs +6 -15
  55. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +7 -7
  57. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +12 -14
  59. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-input-color.mjs +11 -12
  61. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -4
  63. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  65. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +8 -9
  67. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-input-date.mjs +13 -14
  69. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +6 -6
  71. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
  73. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-input-month.mjs +9 -10
  75. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-input-number.mjs +23 -23
  77. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-input-password.mjs +5 -6
  79. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +9 -12
  81. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
  83. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +5 -5
  85. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-input-range.mjs +8 -16
  87. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +7 -7
  89. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-input-time.mjs +12 -12
  91. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-input-year.mjs +4 -4
  93. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +18 -18
  95. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-like.mjs +5 -5
  97. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +33 -39
  99. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-message.mjs +8 -8
  101. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +36 -34
  103. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +14 -14
  105. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-pager.mjs +7 -7
  107. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-pagination.mjs +6 -6
  109. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +11 -11
  111. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-pin.mjs +8 -8
  113. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +11 -11
  115. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-preview.mjs +33 -35
  117. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-progress.mjs +28 -28
  119. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  121. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-push.mjs +20 -20
  123. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +7 -8
  125. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-radio.mjs +9 -9
  127. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-range.mjs +9 -9
  129. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-rating.mjs +6 -6
  131. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  133. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  135. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-select.mjs +17 -17
  137. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-slider.mjs +21 -22
  139. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-slides.mjs +7 -7
  141. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-status.mjs +7 -7
  143. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-stepper.mjs +12 -12
  145. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-switch.mjs +5 -5
  147. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-tabs.mjs +23 -25
  149. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-textarea.mjs +15 -16
  151. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  153. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-tree.mjs +35 -51
  155. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  157. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  159. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  161. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +8 -8
  163. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-directives-connected.mjs +8 -8
  165. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-directives-copy.mjs +11 -10
  167. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  169. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -9
  171. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  173. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  175. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -9
  177. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-directives-password.mjs +5 -5
  179. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  181. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +8 -8
  183. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -8
  185. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -7
  187. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -8
  189. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +4 -4
  191. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  193. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-directives.mjs +0 -1
  195. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  197. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +7 -7
  199. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  201. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  203. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  205. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  207. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  209. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-tokens.mjs +3 -3
  211. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  213. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  214. package/package.json +41 -257
  215. package/styles/components/badge.less +3 -18
  216. package/styles/components/block.less +1 -1
  217. package/styles/components/checkbox.less +5 -6
  218. package/styles/components/chip.less +1 -1
  219. package/styles/components/like.less +13 -10
  220. package/styles/components/radio.less +1 -1
  221. package/styles/components/switch.less +5 -5
  222. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  223. package/directives/icon-badge/index.d.ts +0 -1
  224. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  225. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  226. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  227. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  228. package/esm2022/components/accordion/accordion.mjs +0 -11
  229. package/esm2022/components/accordion/index.mjs +0 -6
  230. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  231. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  232. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  233. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  234. package/esm2022/components/action-bar/index.mjs +0 -4
  235. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  236. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  237. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  238. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  239. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  240. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  241. package/esm2022/components/avatar/index.mjs +0 -6
  242. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  243. package/esm2022/components/badge/badge.directive.mjs +0 -42
  244. package/esm2022/components/badge/badge.options.mjs +0 -13
  245. package/esm2022/components/badge/index.mjs +0 -3
  246. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  247. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  248. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  249. package/esm2022/components/badge-notification/index.mjs +0 -3
  250. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  251. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  252. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  253. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  254. package/esm2022/components/badged-content/index.mjs +0 -4
  255. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  256. package/esm2022/components/block/block.directive.mjs +0 -58
  257. package/esm2022/components/block/block.options.mjs +0 -13
  258. package/esm2022/components/block/index.mjs +0 -3
  259. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  260. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  261. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  262. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  263. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  264. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  265. package/esm2022/components/button-loading/index.mjs +0 -2
  266. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  267. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  268. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  269. package/esm2022/components/calendar-month/index.mjs +0 -3
  270. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  271. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  272. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  273. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  274. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  275. package/esm2022/components/calendar-range/index.mjs +0 -5
  276. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  277. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  278. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  279. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  280. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  281. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  282. package/esm2022/components/carousel/carousel.mjs +0 -15
  283. package/esm2022/components/carousel/index.mjs +0 -7
  284. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  285. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  286. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  287. package/esm2022/components/checkbox/index.mjs +0 -3
  288. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  289. package/esm2022/components/chip/chip.directive.mjs +0 -63
  290. package/esm2022/components/chip/chip.options.mjs +0 -13
  291. package/esm2022/components/chip/index.mjs +0 -3
  292. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  293. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  294. package/esm2022/components/combo-box/index.mjs +0 -2
  295. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  296. package/esm2022/components/comment/comment.directive.mjs +0 -35
  297. package/esm2022/components/comment/index.mjs +0 -2
  298. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  299. package/esm2022/components/compass/compass.component.mjs +0 -19
  300. package/esm2022/components/compass/index.mjs +0 -2
  301. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  302. package/esm2022/components/confirm/confirm.component.mjs +0 -28
  303. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  304. package/esm2022/components/confirm/index.mjs +0 -3
  305. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  306. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  307. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  308. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  309. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  310. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  311. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  312. package/esm2022/components/drawer/index.mjs +0 -2
  313. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  314. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  315. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  316. package/esm2022/components/elastic-container/index.mjs +0 -3
  317. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  318. package/esm2022/components/files/file/file.component.mjs +0 -144
  319. package/esm2022/components/files/file/file.options.mjs +0 -16
  320. package/esm2022/components/files/files/files.component.mjs +0 -56
  321. package/esm2022/components/files/files.mjs +0 -15
  322. package/esm2022/components/files/files.types.mjs +0 -2
  323. package/esm2022/components/files/files.utils.mjs +0 -30
  324. package/esm2022/components/files/files.validators.mjs +0 -32
  325. package/esm2022/components/files/index.mjs +0 -13
  326. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  327. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  328. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  329. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  330. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  331. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  332. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  333. package/esm2022/components/filter/filter.component.mjs +0 -65
  334. package/esm2022/components/filter/index.mjs +0 -2
  335. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  336. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  337. package/esm2022/components/floating-container/index.mjs +0 -2
  338. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  339. package/esm2022/components/index.mjs +0 -73
  340. package/esm2022/components/input-chip/index.mjs +0 -5
  341. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  342. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  343. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  344. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  345. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  346. package/esm2022/components/input-color/index.mjs +0 -3
  347. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  348. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  349. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  350. package/esm2022/components/input-date/date-filler.mjs +0 -20
  351. package/esm2022/components/input-date/index.mjs +0 -6
  352. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  353. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  354. package/esm2022/components/input-date/input-date.mjs +0 -9
  355. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  356. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  357. package/esm2022/components/input-date-multi/index.mjs +0 -3
  358. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  359. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  360. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  361. package/esm2022/components/input-date-range/index.mjs +0 -4
  362. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  363. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  364. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  365. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  366. package/esm2022/components/input-date-time/index.mjs +0 -5
  367. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  368. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  369. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  370. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  371. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  372. package/esm2022/components/input-inline/index.mjs +0 -2
  373. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  374. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  375. package/esm2022/components/input-month/index.mjs +0 -5
  376. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  377. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  378. package/esm2022/components/input-month/input-month.mjs +0 -9
  379. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  380. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  381. package/esm2022/components/input-month-range/index.mjs +0 -4
  382. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  383. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  384. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  385. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  386. package/esm2022/components/input-number/index.mjs +0 -6
  387. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  388. package/esm2022/components/input-number/input-number.mjs +0 -9
  389. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  390. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  391. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  392. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  393. package/esm2022/components/input-password/index.mjs +0 -3
  394. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  395. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  396. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  397. package/esm2022/components/input-phone/index.mjs +0 -3
  398. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  399. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  400. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  401. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  402. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  403. package/esm2022/components/input-phone-international/index.mjs +0 -3
  404. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  405. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  406. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  407. package/esm2022/components/input-pin/index.mjs +0 -2
  408. package/esm2022/components/input-pin/input-pin.component.mjs +0 -66
  409. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  410. package/esm2022/components/input-range/index.mjs +0 -3
  411. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  412. package/esm2022/components/input-range/input-range.mjs +0 -4
  413. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  414. package/esm2022/components/input-slider/index.mjs +0 -3
  415. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  416. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  417. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  418. package/esm2022/components/input-time/index.mjs +0 -5
  419. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  420. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  421. package/esm2022/components/input-time/input-time.mjs +0 -4
  422. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  423. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  424. package/esm2022/components/input-year/index.mjs +0 -4
  425. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  426. package/esm2022/components/input-year/input-year.mjs +0 -4
  427. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  428. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  429. package/esm2022/components/items-with-more/index.mjs +0 -6
  430. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  431. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  432. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  433. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  434. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  435. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  436. package/esm2022/components/like/index.mjs +0 -3
  437. package/esm2022/components/like/like.component.mjs +0 -46
  438. package/esm2022/components/like/like.options.mjs +0 -10
  439. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  440. package/esm2022/components/line-clamp/index.mjs +0 -4
  441. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  442. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  443. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  444. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  445. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  446. package/esm2022/components/message/index.mjs +0 -2
  447. package/esm2022/components/message/message.directive.mjs +0 -43
  448. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  449. package/esm2022/components/multi-select/index.mjs +0 -6
  450. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  451. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  452. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  453. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  454. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  455. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  456. package/esm2022/components/notification-middle/index.mjs +0 -4
  457. package/esm2022/components/notification-middle/notification-middle.component.mjs +0 -57
  458. package/esm2022/components/notification-middle/notification-middle.directive.mjs +0 -21
  459. package/esm2022/components/notification-middle/notification-middle.service.mjs +0 -22
  460. package/esm2022/components/notification-middle/taiga-ui-kit-components-notification-middle.mjs +0 -5
  461. package/esm2022/components/pager/index.mjs +0 -2
  462. package/esm2022/components/pager/pager.component.mjs +0 -97
  463. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  464. package/esm2022/components/pagination/index.mjs +0 -2
  465. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  466. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  467. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  468. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  469. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  470. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  471. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  472. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  473. package/esm2022/components/pin/index.mjs +0 -2
  474. package/esm2022/components/pin/pin.directive.mjs +0 -35
  475. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  476. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  477. package/esm2022/components/preview/dialog/index.mjs +0 -4
  478. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  479. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  480. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  481. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  482. package/esm2022/components/preview/index.mjs +0 -8
  483. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  484. package/esm2022/components/preview/preview.component.mjs +0 -142
  485. package/esm2022/components/preview/preview.mjs +0 -13
  486. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  487. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  488. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  489. package/esm2022/components/progress/index.mjs +0 -9
  490. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  491. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  492. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  493. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  494. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  495. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  496. package/esm2022/components/progress/progress.mjs +0 -15
  497. package/esm2022/components/progress/progress.options.mjs +0 -13
  498. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  499. package/esm2022/components/pulse/index.mjs +0 -2
  500. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  501. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  502. package/esm2022/components/push/index.mjs +0 -7
  503. package/esm2022/components/push/push-alert.component.mjs +0 -29
  504. package/esm2022/components/push/push.component.mjs +0 -39
  505. package/esm2022/components/push/push.directive.mjs +0 -33
  506. package/esm2022/components/push/push.mjs +0 -5
  507. package/esm2022/components/push/push.options.mjs +0 -21
  508. package/esm2022/components/push/push.service.mjs +0 -19
  509. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  510. package/esm2022/components/radio/index.mjs +0 -5
  511. package/esm2022/components/radio/radio.component.mjs +0 -53
  512. package/esm2022/components/radio/radio.directive.mjs +0 -32
  513. package/esm2022/components/radio/radio.mjs +0 -4
  514. package/esm2022/components/radio/radio.options.mjs +0 -13
  515. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  516. package/esm2022/components/radio-list/index.mjs +0 -2
  517. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  518. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  519. package/esm2022/components/range/index.mjs +0 -3
  520. package/esm2022/components/range/range-change.directive.mjs +0 -78
  521. package/esm2022/components/range/range.component.mjs +0 -164
  522. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  523. package/esm2022/components/rating/index.mjs +0 -3
  524. package/esm2022/components/rating/rating.component.mjs +0 -64
  525. package/esm2022/components/rating/rating.options.mjs +0 -13
  526. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  527. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  528. package/esm2022/components/routable-dialog/index.mjs +0 -3
  529. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  530. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  531. package/esm2022/components/segmented/index.mjs +0 -3
  532. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  533. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  534. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  535. package/esm2022/components/select/index.mjs +0 -5
  536. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  537. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  538. package/esm2022/components/select/select.directive.mjs +0 -56
  539. package/esm2022/components/select/select.mjs +0 -4
  540. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  541. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  542. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  543. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  544. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  545. package/esm2022/components/slider/index.mjs +0 -8
  546. package/esm2022/components/slider/slider.component.mjs +0 -124
  547. package/esm2022/components/slider/slider.mjs +0 -12
  548. package/esm2022/components/slider/slider.options.mjs +0 -16
  549. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  550. package/esm2022/components/slides/index.mjs +0 -2
  551. package/esm2022/components/slides/slides.directive.mjs +0 -51
  552. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  553. package/esm2022/components/status/index.mjs +0 -2
  554. package/esm2022/components/status/status.directive.mjs +0 -35
  555. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  556. package/esm2022/components/stepper/index.mjs +0 -4
  557. package/esm2022/components/stepper/step.component.mjs +0 -58
  558. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  559. package/esm2022/components/stepper/stepper.mjs +0 -4
  560. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  561. package/esm2022/components/switch/index.mjs +0 -3
  562. package/esm2022/components/switch/switch.component.mjs +0 -63
  563. package/esm2022/components/switch/switch.options.mjs +0 -15
  564. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  565. package/esm2022/components/tabs/index.mjs +0 -9
  566. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  567. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  568. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  569. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -213
  570. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  571. package/esm2022/components/tabs/tabs.mjs +0 -15
  572. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  573. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  574. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  575. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  576. package/esm2022/components/textarea/index.mjs +0 -4
  577. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  578. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -93
  579. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  580. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  581. package/esm2022/components/tiles/index.mjs +0 -7
  582. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  583. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  584. package/esm2022/components/tiles/tile.component.mjs +0 -69
  585. package/esm2022/components/tiles/tile.service.mjs +0 -90
  586. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  587. package/esm2022/components/tiles/tiles.mjs +0 -5
  588. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  589. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  590. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  591. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  592. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  593. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  594. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  595. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  596. package/esm2022/components/tree/index.mjs +0 -12
  597. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  598. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  599. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  600. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  601. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  602. package/esm2022/components/tree/tree.mjs +0 -17
  603. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  604. package/esm2022/directives/button-close/index.mjs +0 -2
  605. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  606. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  607. package/esm2022/directives/button-group/index.mjs +0 -2
  608. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  609. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  610. package/esm2022/directives/button-select/index.mjs +0 -2
  611. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  612. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  613. package/esm2022/directives/chevron/index.mjs +0 -2
  614. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  615. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  616. package/esm2022/directives/connected/index.mjs +0 -2
  617. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  618. package/esm2022/directives/copy/copy.component.mjs +0 -48
  619. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  620. package/esm2022/directives/copy/copy.mjs +0 -4
  621. package/esm2022/directives/copy/copy.options.mjs +0 -3
  622. package/esm2022/directives/copy/index.mjs +0 -6
  623. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  624. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  625. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  626. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  627. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  628. package/esm2022/directives/fade/index.mjs +0 -2
  629. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  630. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  631. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  632. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  633. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  634. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  635. package/esm2022/directives/highlight/index.mjs +0 -2
  636. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  637. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  638. package/esm2022/directives/icon-badge/index.mjs +0 -2
  639. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  640. package/esm2022/directives/index.mjs +0 -21
  641. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  642. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  643. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  644. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  645. package/esm2022/directives/password/index.mjs +0 -3
  646. package/esm2022/directives/password/password.directive.mjs +0 -67
  647. package/esm2022/directives/password/password.options.mjs +0 -8
  648. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  649. package/esm2022/directives/present/index.mjs +0 -2
  650. package/esm2022/directives/present/present.directive.mjs +0 -33
  651. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  652. package/esm2022/directives/sensitive/index.mjs +0 -2
  653. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  654. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  655. package/esm2022/directives/shimmer/index.mjs +0 -2
  656. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  657. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  658. package/esm2022/directives/skeleton/index.mjs +0 -2
  659. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  660. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  661. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  662. package/esm2022/directives/tooltip/index.mjs +0 -3
  663. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  664. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  665. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  666. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  667. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  668. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  669. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  670. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  671. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  672. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  673. package/esm2022/index.mjs +0 -6
  674. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  675. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  676. package/esm2022/pipes/emails/index.mjs +0 -3
  677. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  678. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  679. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  680. package/esm2022/pipes/field-error/index.mjs +0 -3
  681. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  682. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  683. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  684. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  685. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  686. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  687. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  688. package/esm2022/pipes/index.mjs +0 -8
  689. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  690. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  691. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  692. package/esm2022/pipes/stringify/index.mjs +0 -2
  693. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  694. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  695. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  696. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  697. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  698. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  699. package/esm2022/taiga-ui-kit.mjs +0 -5
  700. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  701. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  702. package/esm2022/tokens/i18n.mjs +0 -75
  703. package/esm2022/tokens/index.mjs +0 -10
  704. package/esm2022/tokens/input-date-options.mjs +0 -13
  705. package/esm2022/tokens/items-handlers.mjs +0 -27
  706. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  707. package/esm2022/tokens/month-formatter.mjs +0 -12
  708. package/esm2022/tokens/preview-icons.mjs +0 -17
  709. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  710. package/esm2022/tokens/validation-errors.mjs +0 -6
  711. package/esm2022/utils/create-time-periods.mjs +0 -12
  712. package/esm2022/utils/index.mjs +0 -7
  713. package/esm2022/utils/inject-value.mjs +0 -11
  714. package/esm2022/utils/is-flat.mjs +0 -4
  715. package/esm2022/utils/maskito.binding.mjs +0 -6
  716. package/esm2022/utils/phone.mjs +0 -6
  717. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  718. package/esm2022/utils/toggle-day.mjs +0 -6
  719. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  720. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, Directive, Input } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Input, Directive } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
5
5
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
@@ -12,14 +12,14 @@ import { merge, fromEvent, filter } from 'rxjs';
12
12
 
13
13
  const BUFFER = 1; // buffer for rounding issues
14
14
  class TuiFadeStyles {
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFadeStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiFadeStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-fade-styles" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFadeStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiFadeStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-fade-styles" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFadeStyles, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFadeStyles, decorators: [{
19
19
  type: Component,
20
20
  args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
21
21
  class: 'tui-fade-styles',
22
- }, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"] }]
22
+ }, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"] }]
23
23
  }] });
24
24
  class TuiFade {
25
25
  constructor() {
@@ -44,8 +44,8 @@ class TuiFade {
44
44
  // horizontal multiline fade can kick in early due to hanging elements of fonts so using bigger buffer
45
45
  scrollHeight > clientHeight + 4 * BUFFER;
46
46
  }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFade, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
48
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiFade, isStandalone: true, selector: "[tuiFade]", inputs: { lineHeight: ["tuiFadeHeight", "lineHeight"], size: ["tuiFadeSize", "size"], offset: ["tuiFadeOffset", "offset"], orientation: ["tuiFade", "orientation"] }, host: { properties: { "style.line-height": "lineHeight", "style.--t-line-height": "lineHeight", "style.--t-fade-size": "size", "style.--t-fade-offset": "offset", "attr.data-orientation": "orientation" } }, providers: [
47
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFade, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
48
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiFade, isStandalone: true, selector: "[tuiFade]", inputs: { lineHeight: ["tuiFadeHeight", "lineHeight"], size: ["tuiFadeSize", "size"], offset: ["tuiFadeOffset", "offset"], orientation: ["tuiFade", "orientation"] }, host: { properties: { "style.line-height": "lineHeight", "style.--t-line-height": "lineHeight", "style.--t-fade-size": "size", "style.--t-fade-offset": "offset", "attr.data-orientation": "orientation" } }, providers: [
49
49
  ResizeObserverService,
50
50
  MutationObserverService,
51
51
  {
@@ -54,7 +54,7 @@ class TuiFade {
54
54
  },
55
55
  ], hostDirectives: [{ directive: i1.TuiTransitioned }], ngImport: i0 }); }
56
56
  }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFade, decorators: [{
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFade, decorators: [{
58
58
  type: Directive,
59
59
  args: [{
60
60
  standalone: true,
@@ -76,7 +76,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
76
76
  '[attr.data-orientation]': 'orientation',
77
77
  },
78
78
  }]
79
- }], ctorParameters: function () { return []; }, propDecorators: { lineHeight: [{
79
+ }], ctorParameters: () => [], propDecorators: { lineHeight: [{
80
80
  type: Input,
81
81
  args: ['tuiFadeHeight']
82
82
  }], size: [{
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-fade.mjs","sources":["../../../projects/kit/directives/fade/fade.directive.ts","../../../projects/kit/directives/fade/taiga-ui-kit-directives-fade.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {TuiTransitioned} from '@taiga-ui/cdk/directives/transitioned';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiOrientation} from '@taiga-ui/core/types';\nimport {filter, fromEvent, merge} from 'rxjs';\n\nconst BUFFER = 1; // buffer for rounding issues\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./fade.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-fade-styles',\n },\n})\nclass TuiFadeStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiFade]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n hostDirectives: [TuiTransitioned],\n host: {\n '[style.line-height]': 'lineHeight',\n '[style.--t-line-height]': 'lineHeight',\n '[style.--t-fade-size]': 'size',\n '[style.--t-fade-offset]': 'offset',\n '[attr.data-orientation]': 'orientation',\n },\n})\nexport class TuiFade {\n // TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh\n @Input('tuiFadeHeight')\n public lineHeight: string | null = null;\n\n @Input('tuiFadeSize')\n public size = '1.5em';\n\n @Input('tuiFadeOffset')\n public offset = '0em';\n\n @Input('tuiFade')\n public orientation: TuiOrientation | '' = 'horizontal';\n\n constructor() {\n const el = tuiInjectElement();\n\n tuiWithStyles(TuiFadeStyles);\n merge(\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(el, 'scroll'),\n )\n .pipe(\n filter(() => !!el.scrollWidth),\n tuiZonefree(),\n takeUntilDestroyed(),\n )\n .subscribe(() => {\n el.classList.toggle('_end', this.isEnd(el));\n el.classList.toggle(\n '_start',\n !!Math.floor(el.scrollLeft) || !!Math.floor(el.scrollTop),\n );\n });\n }\n\n private isEnd({\n scrollTop,\n scrollLeft,\n scrollHeight,\n scrollWidth,\n clientHeight,\n clientWidth,\n }: HTMLElement): boolean {\n return this.orientation === 'vertical'\n ? Math.round(scrollTop) < scrollHeight - clientHeight - BUFFER\n : Math.ceil(Math.abs(scrollLeft)) < scrollWidth - clientWidth - BUFFER ||\n // horizontal multiline fade can kick in early due to hanging elements of fonts so using bigger buffer\n scrollHeight > clientHeight + 4 * BUFFER;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB,MAUM,aAAa,CAAA;+GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,qHARL,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,y9IAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQV,aAAa,EAAA,UAAA,EAAA,CAAA;kBAVlB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,iBAAiB;AAC3B,qBAAA,EAAA,MAAA,EAAA,CAAA,y9IAAA,CAAA,EAAA,CAAA;;AAIL,MAoBa,OAAO,CAAA;AAchB,IAAA,WAAA,GAAA;;QAXO,IAAU,CAAA,UAAA,GAAkB,IAAI,CAAC;QAGjC,IAAI,CAAA,I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SAAS,EAAE;wBACP,qBAAqB;wBACrB,uBAAuB;AACvB,wBAAA;AACI,4BAAA,OAAO,EAAE,yBAAyB;4BAClC,QAAQ,EAAE,EAAC,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC;AACjD,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,eAAe,CAAC;AACjC,oBAAA,IAAI,EAAE;AACF,wBAAA,qBAAqB,EAAE,YAAY;AACnC,wBAAA,yBAAyB,EAAE,YAAY;AACvC,wBAAA,uBAAuB,EAAE,MAAM;AAC/B,wBAAA,yBAAyB,EAAE,QAAQ;AACnC,wBAAA,yBAAyB,EAAE,aAAa;AAC3C,qBAAA;AACJ,iBAAA,CAAA;0EAIU,UAAU,EAAA,CAAA;sBADhB,KAAK;uBAAC,eAAe,CAAA;gBAIf,IAAI,EAAA,CAAA;sBADV,KAAK;uBAAC,aAAa,CAAA;gBAIb,MAAM,EAAA,CAAA;sBADZ,KAAK;uBAAC,eAAe,CAAA;gBAIf,WAAW,EAAA,CAAA;sBADjB,KAAK;uBAAC,SAAS,CAAA;;;AClEpB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-fade.mjs","sources":["../../../projects/kit/directives/fade/fade.directive.ts","../../../projects/kit/directives/fade/taiga-ui-kit-directives-fade.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {TuiTransitioned} from '@taiga-ui/cdk/directives/transitioned';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiOrientation} from '@taiga-ui/core/types';\nimport {filter, fromEvent, merge} from 'rxjs';\n\nconst BUFFER = 1; // buffer for rounding issues\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./fade.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-fade-styles',\n },\n})\nclass TuiFadeStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiFade]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n hostDirectives: [TuiTransitioned],\n host: {\n '[style.line-height]': 'lineHeight',\n '[style.--t-line-height]': 'lineHeight',\n '[style.--t-fade-size]': 'size',\n '[style.--t-fade-offset]': 'offset',\n '[attr.data-orientation]': 'orientation',\n },\n})\nexport class TuiFade {\n // TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh\n @Input('tuiFadeHeight')\n public lineHeight: string | null = null;\n\n @Input('tuiFadeSize')\n public size = '1.5em';\n\n @Input('tuiFadeOffset')\n public offset = '0em';\n\n @Input('tuiFade')\n public orientation: TuiOrientation | '' = 'horizontal';\n\n constructor() {\n const el = tuiInjectElement();\n\n tuiWithStyles(TuiFadeStyles);\n merge(\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(el, 'scroll'),\n )\n .pipe(\n filter(() => !!el.scrollWidth),\n tuiZonefree(),\n takeUntilDestroyed(),\n )\n .subscribe(() => {\n el.classList.toggle('_end', this.isEnd(el));\n el.classList.toggle(\n '_start',\n !!Math.floor(el.scrollLeft) || !!Math.floor(el.scrollTop),\n );\n });\n }\n\n private isEnd({\n scrollTop,\n scrollLeft,\n scrollHeight,\n scrollWidth,\n clientHeight,\n clientWidth,\n }: HTMLElement): boolean {\n return this.orientation === 'vertical'\n ? Math.round(scrollTop) < scrollHeight - clientHeight - BUFFER\n : Math.ceil(Math.abs(scrollLeft)) < scrollWidth - clientWidth - BUFFER ||\n // horizontal multiline fade can kick in early due to hanging elements of fonts so using bigger buffer\n scrollHeight > clientHeight + 4 * BUFFER;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB,MAUM,aAAa,CAAA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,qHARL,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,u3IAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAQV,aAAa,EAAA,UAAA,EAAA,CAAA;kBAVlB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACF,wBAAA,KAAK,EAAE,iBAAiB;AAC3B,qBAAA,EAAA,MAAA,EAAA,CAAA,u3IAAA,CAAA,EAAA;;MAwBQ,OAAO,CAAA;AAchB,IAAA,WAAA,GAAA;;QAXO,IAAA,CAAA,UAAU,GAAkB,IAAI;QAGhC,IAAA,CAAA,IAAI,GAAG,OAAO;QAGd,IAAA,CAAA,MAAM,GAAG,KAAK;QAGd,IAAA,CAAA,WAAW,GAAwB,YAAY;AAGlD,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE;QAE7B,aAAa,CAAC,aAAa,CAAC;AAC5B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wBAAA,qBAAqB,EAAE,YAAY;AACnC,wBAAA,yBAAyB,EAAE,YAAY;AACvC,wBAAA,uBAAuB,EAAE,MAAM;AAC/B,wBAAA,yBAAyB,EAAE,QAAQ;AACnC,wBAAA,yBAAyB,EAAE,aAAa;AAC3C,qBAAA;AACJ,iBAAA;wDAIU,UAAU,EAAA,CAAA;sBADhB,KAAK;uBAAC,eAAe;gBAIf,IAAI,EAAA,CAAA;sBADV,KAAK;uBAAC,aAAa;gBAIb,MAAM,EAAA,CAAA;sBADZ,KAAK;uBAAC,eAAe;gBAIf,WAAW,EAAA,CAAA;sBADjB,KAAK;uBAAC,SAAS;;;AClEpB;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, Directive, Input } from '@angular/core';
2
+ import { InjectionToken, inject, Input, Directive } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
5
5
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
@@ -43,8 +43,8 @@ class TuiFluidTypography {
43
43
  ngOnChanges() {
44
44
  this.changes$.next();
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFluidTypography, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
47
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiFluidTypography, isStandalone: true, selector: "[tuiFluidTypography]", inputs: { tuiFluidTypography: "tuiFluidTypography" }, host: { attributes: { "tuiFluidTypography": "" } }, providers: [
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFluidTypography, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
47
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiFluidTypography, isStandalone: true, selector: "[tuiFluidTypography]", inputs: { tuiFluidTypography: "tuiFluidTypography" }, host: { attributes: { "tuiFluidTypography": "" } }, providers: [
48
48
  ResizeObserverService,
49
49
  MutationObserverService,
50
50
  {
@@ -53,7 +53,7 @@ class TuiFluidTypography {
53
53
  },
54
54
  ], usesOnChanges: true, ngImport: i0 }); }
55
55
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFluidTypography, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiFluidTypography, decorators: [{
57
57
  type: Directive,
58
58
  args: [{
59
59
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-fluid-typography.mjs","sources":["../../../projects/kit/directives/fluid-typography/fluid-typography.options.ts","../../../projects/kit/directives/fluid-typography/fluid-typography.directive.ts","../../../projects/kit/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiFluidTypographyOptions {\n readonly min: number;\n readonly max: number;\n}\n\nexport const TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS: TuiFluidTypographyOptions = {\n min: 0.625,\n max: 1.25,\n};\n\nexport const TUI_FLUID_TYPOGRAPHY_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_FLUID_TYPOGRAPHY_OPTIONS' : '',\n {\n factory: () => TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiFluidTypographyOptionsProvider(\n options: Partial<TuiFluidTypographyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_FLUID_TYPOGRAPHY_OPTIONS,\n options,\n TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n );\n}\n","import {Directive, inject, Input, type OnChanges} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {fromEvent, merge, Subject} from 'rxjs';\n\nimport {TUI_FLUID_TYPOGRAPHY_OPTIONS} from './fluid-typography.options';\n\nconst STEP = 1 / 16;\n\n@Directive({\n standalone: true,\n selector: '[tuiFluidTypography]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n host: {tuiFluidTypography: ''},\n})\nexport class TuiFluidTypography implements OnChanges {\n // TODO: refactor to signal inputs after Angular update\n private readonly changes$ = new Subject<void>();\n private readonly el = tuiInjectElement();\n private readonly options = inject(TUI_FLUID_TYPOGRAPHY_OPTIONS);\n\n protected readonly sub = merge(\n this.changes$,\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(this.el, 'input'),\n )\n .pipe(tuiZonefree(), takeUntilDestroyed())\n .subscribe(() => {\n const min = Number(this.tuiFluidTypography[0] || this.options.min);\n const max = Number(this.tuiFluidTypography[1] || this.options.max);\n\n for (let i = max; i >= min; i -= STEP) {\n this.el.style.fontSize = `${i}rem`;\n\n if (this.el.scrollWidth <= this.el.clientWidth) {\n break;\n }\n }\n });\n\n @Input()\n public tuiFluidTypography: readonly [min: number, max: number] | '' = '';\n\n public ngOnChanges(): void {\n this.changes$.next();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQa,MAAA,oCAAoC,GAA8B;AAC3E,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,GAAG,EAAE,IAAI;E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AA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,SAAS,EAAE;wBACP,qBAAqB;wBACrB,uBAAuB;AACvB,wBAAA;AACI,4BAAA,OAAO,EAAE,yBAAyB;4BAClC,QAAQ,EAAE,EAAC,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC;AACjD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE,EAAC,kBAAkB,EAAE,EAAE,EAAC;AACjC,iBAAA,CAAA;8BA4BU,kBAAkB,EAAA,CAAA;sBADxB,KAAK;;;ACtDV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-fluid-typography.mjs","sources":["../../../projects/kit/directives/fluid-typography/fluid-typography.options.ts","../../../projects/kit/directives/fluid-typography/fluid-typography.directive.ts","../../../projects/kit/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiFluidTypographyOptions {\n readonly min: number;\n readonly max: number;\n}\n\nexport const TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS: TuiFluidTypographyOptions = {\n min: 0.625,\n max: 1.25,\n};\n\nexport const TUI_FLUID_TYPOGRAPHY_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_FLUID_TYPOGRAPHY_OPTIONS' : '',\n {\n factory: () => TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiFluidTypographyOptionsProvider(\n options: Partial<TuiFluidTypographyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_FLUID_TYPOGRAPHY_OPTIONS,\n options,\n TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n );\n}\n","import {Directive, inject, Input, type OnChanges} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {fromEvent, merge, Subject} from 'rxjs';\n\nimport {TUI_FLUID_TYPOGRAPHY_OPTIONS} from './fluid-typography.options';\n\nconst STEP = 1 / 16;\n\n@Directive({\n standalone: true,\n selector: '[tuiFluidTypography]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n host: {tuiFluidTypography: ''},\n})\nexport class TuiFluidTypography implements OnChanges {\n // TODO: refactor to signal inputs after Angular update\n private readonly changes$ = new Subject<void>();\n private readonly el = tuiInjectElement();\n private readonly options = inject(TUI_FLUID_TYPOGRAPHY_OPTIONS);\n\n protected readonly sub = merge(\n this.changes$,\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(this.el, 'input'),\n )\n .pipe(tuiZonefree(), takeUntilDestroyed())\n .subscribe(() => {\n const min = Number(this.tuiFluidTypography[0] || this.options.min);\n const max = Number(this.tuiFluidTypography[1] || this.options.max);\n\n for (let i = max; i >= min; i -= STEP) {\n this.el.style.fontSize = `${i}rem`;\n\n if (this.el.scrollWidth <= this.el.clientWidth) {\n break;\n }\n }\n });\n\n @Input()\n public tuiFluidTypography: readonly [min: number, max: number] | '' = '';\n\n public ngOnChanges(): void {\n this.changes$.next();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQO,MAAM,oCAAoC,GAA8B;AAC3E,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,GAAG,EAAE,IAAI;;AAGN,MAAM,4BAA4B,GAAG,IAAI,cAAc,CAC1D,SAAS,GAAG,8BAA8B,GAAG,EAAE,EAC/C;AACI,IAAA,OAAO,EAAE,MAAM,oCAA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,oBAAA,IAAI,EAAE,EAAC,kBAAkB,EAAE,EAAE,EAAC;AACjC,iBAAA;8BA4BU,kBAAkB,EAAA,CAAA;sBADxB;;;ACtDL;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Renderer2, Directive, Input } from '@angular/core';
3
+ import { inject, Renderer2, Input, Directive } from '@angular/core';
4
4
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
6
6
  import { svgNodeFilter } from '@taiga-ui/cdk/constants';
@@ -70,10 +70,10 @@ class TuiHighlight {
70
70
  this.renderer.appendChild(this.el, highlight);
71
71
  return highlight;
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHighlight, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHighlight, isStandalone: true, selector: "[tuiHighlight]", inputs: { tuiHighlight: "tuiHighlight", tuiHighlightColor: "tuiHighlightColor" }, host: { properties: { "style.position": "\"relative\"", "style.zIndex": "0" } }, providers: [ResizeObserverService], usesOnChanges: true, ngImport: i0 }); }
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiHighlight, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiHighlight, isStandalone: true, selector: "[tuiHighlight]", inputs: { tuiHighlight: "tuiHighlight", tuiHighlightColor: "tuiHighlightColor" }, host: { properties: { "style.position": "\"relative\"", "style.zIndex": "0" } }, providers: [ResizeObserverService], usesOnChanges: true, ngImport: i0 }); }
75
75
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHighlight, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiHighlight, decorators: [{
77
77
  type: Directive,
78
78
  args: [{
79
79
  standalone: true,
@@ -84,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
84
84
  '[style.zIndex]': '0',
85
85
  },
86
86
  }]
87
- }], ctorParameters: function () { return []; }, propDecorators: { tuiHighlight: [{
87
+ }], ctorParameters: () => [], propDecorators: { tuiHighlight: [{
88
88
  type: Input
89
89
  }], tuiHighlightColor: [{
90
90
  type: Input
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-highlight.mjs","sources":["../../../projects/kit/directives/highlight/highlight.directive.ts","../../../projects/kit/directives/highlight/taiga-ui-kit-directives-highlight.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, Input, type OnChanges, Renderer2} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {svgNodeFilter} from '@taiga-ui/cdk/constants';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const [TUI_HIGHLIGHT_OPTIONS, tuiHighlightOptionsProvider] = tuiCreateOptions({\n highlightColor: 'var(--tui-service-selection-background)',\n});\n\n@Directive({\n standalone: true,\n selector: '[tuiHighlight]',\n providers: [ResizeObserverService],\n host: {\n '[style.position]': '\"relative\"',\n '[style.zIndex]': '0',\n },\n})\nexport class TuiHighlight implements OnChanges {\n private readonly el = tuiInjectElement();\n private readonly renderer = inject(Renderer2);\n private readonly doc = inject(DOCUMENT);\n\n private readonly highlight: HTMLElement = this.setUpHighlight();\n private readonly treeWalker = this.doc.createTreeWalker(\n this.el,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n );\n\n @Input()\n public tuiHighlight = '';\n\n @Input()\n public tuiHighlightColor = inject(TUI_HIGHLIGHT_OPTIONS).highlightColor;\n\n constructor() {\n inject(ResizeObserverService, {self: true})\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.updateStyles());\n }\n\n public ngOnChanges(): void {\n this.updateStyles();\n }\n\n protected get match(): boolean {\n return this.indexOf(this.el.textContent) !== -1;\n }\n\n private updateStyles(): void {\n this.highlight.style.display = 'none';\n\n if (!this.match) {\n return;\n }\n\n this.treeWalker.currentNode = this.el;\n\n do {\n const index = this.indexOf(this.treeWalker.currentNode.nodeValue);\n\n if (index === -1) {\n continue;\n }\n\n const range = this.doc.createRange();\n\n range.setStart(this.treeWalker.currentNode, index);\n range.setEnd(this.treeWalker.currentNode, index + this.tuiHighlight.length);\n\n const hostRect = this.el.getBoundingClientRect();\n const {left, top, width, height} = range.getBoundingClientRect();\n const {style} = this.highlight;\n\n style.background = this.tuiHighlightColor;\n style.left = tuiPx(left - hostRect.left);\n style.top = tuiPx(top - hostRect.top);\n style.width = tuiPx(width);\n style.height = tuiPx(height);\n style.display = 'block';\n\n return;\n } while (this.treeWalker.nextNode());\n }\n\n private indexOf(source: string | null): number {\n return !source || !this.tuiHighlight\n ? -1\n : source.toLowerCase().indexOf(this.tuiHighlight.toLowerCase());\n }\n\n private setUpHighlight(): HTMLElement {\n const highlight = this.renderer.createElement('div');\n const {style} = highlight;\n\n style.background = this.tuiHighlightColor;\n style.zIndex = '-1';\n style.position = 'absolute';\n this.renderer.appendChild(this.el, highlight);\n\n return highlight;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MASa,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,GAAG,gBAAgB,CAAC;AACjF,IAAA,cAAc,EAAE,yCAAyC;AAC5D,CAAA,EAAE;AAEH,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IAAI,EAAE;AACF,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,gBAAgB,EAAE,GAAG;AACxB,qBAAA;AACJ,iBAAA,CAAA;0EAcU,YAAY,EAAA,CAAA;sBADlB,KAAK;gBAIC,iBAAiB,EAAA,CAAA;sBADvB,KAAK;;;ACrCV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-highlight.mjs","sources":["../../../projects/kit/directives/highlight/highlight.directive.ts","../../../projects/kit/directives/highlight/taiga-ui-kit-directives-highlight.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, Input, type OnChanges, Renderer2} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {svgNodeFilter} from '@taiga-ui/cdk/constants';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const [TUI_HIGHLIGHT_OPTIONS, tuiHighlightOptionsProvider] = tuiCreateOptions({\n highlightColor: 'var(--tui-service-selection-background)',\n});\n\n@Directive({\n standalone: true,\n selector: '[tuiHighlight]',\n providers: [ResizeObserverService],\n host: {\n '[style.position]': '\"relative\"',\n '[style.zIndex]': '0',\n },\n})\nexport class TuiHighlight implements OnChanges {\n private readonly el = tuiInjectElement();\n private readonly renderer = inject(Renderer2);\n private readonly doc = inject(DOCUMENT);\n\n private readonly highlight: HTMLElement = this.setUpHighlight();\n private readonly treeWalker = this.doc.createTreeWalker(\n this.el,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n );\n\n @Input()\n public tuiHighlight = '';\n\n @Input()\n public tuiHighlightColor = inject(TUI_HIGHLIGHT_OPTIONS).highlightColor;\n\n constructor() {\n inject(ResizeObserverService, {self: true})\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.updateStyles());\n }\n\n public ngOnChanges(): void {\n this.updateStyles();\n }\n\n protected get match(): boolean {\n return this.indexOf(this.el.textContent) !== -1;\n }\n\n private updateStyles(): void {\n this.highlight.style.display = 'none';\n\n if (!this.match) {\n return;\n }\n\n this.treeWalker.currentNode = this.el;\n\n do {\n const index = this.indexOf(this.treeWalker.currentNode.nodeValue);\n\n if (index === -1) {\n continue;\n }\n\n const range = this.doc.createRange();\n\n range.setStart(this.treeWalker.currentNode, index);\n range.setEnd(this.treeWalker.currentNode, index + this.tuiHighlight.length);\n\n const hostRect = this.el.getBoundingClientRect();\n const {left, top, width, height} = range.getBoundingClientRect();\n const {style} = this.highlight;\n\n style.background = this.tuiHighlightColor;\n style.left = tuiPx(left - hostRect.left);\n style.top = tuiPx(top - hostRect.top);\n style.width = tuiPx(width);\n style.height = tuiPx(height);\n style.display = 'block';\n\n return;\n } while (this.treeWalker.nextNode());\n }\n\n private indexOf(source: string | null): number {\n return !source || !this.tuiHighlight\n ? -1\n : source.toLowerCase().indexOf(this.tuiHighlight.toLowerCase());\n }\n\n private setUpHighlight(): HTMLElement {\n const highlight = this.renderer.createElement('div');\n const {style} = highlight;\n\n style.background = this.tuiHighlightColor;\n style.zIndex = '-1';\n style.position = 'absolute';\n this.renderer.appendChild(this.el, highlight);\n\n return highlight;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MASa,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,GAAG,gBAAgB,CAAC;AACjF,IAAA,cAAc,EAAE,yCAAyC;AAC5D,CAAA;MAWY,YAAY,CAAA;AAkBrB,IAAA,WAAA,GAAA;QAjBiB,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;AAC5B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AAEtB,QAAA,IAAA,CAAA,SAAS,GAA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AC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC;AAE7C,QAAA,OAAO,SAAS;IACpB;8GApFS,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,cAAA,EAAA,cAAA,EAAA,GAAA,EAAA,EAAA,EAAA,SAAA,EANV,CAAC,qBAAqB,CAAC,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAMzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBATxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,SAAS,EAAE,CAAC,qBAAqB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,gBAAgB,EAAE,GAAG;AACxB,qBAAA;AACJ,iBAAA;wDAcU,YAAY,EAAA,CAAA;sBADlB;gBAIM,iBAAiB,EAAA,CAAA;sBADvB;;;ACrCL;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { isPlatformServer } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Injectable, PLATFORM_ID, signal, Directive, Input } from '@angular/core';
3
+ import { inject, Injectable, PLATFORM_ID, signal, Input, Directive } from '@angular/core';
4
4
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { IntersectionObserverService } from '@ng-web-apis/intersection-observer';
6
6
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
@@ -17,12 +17,12 @@ class TuiLazyLoadingService extends Observable {
17
17
  next(src) {
18
18
  this.src$.next(src);
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLazyLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLazyLoadingService }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLazyLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLazyLoadingService }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLazyLoadingService, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiLazyLoadingService, decorators: [{
24
24
  type: Injectable
25
- }], ctorParameters: function () { return []; } });
25
+ }], ctorParameters: () => [] });
26
26
 
27
27
  /**
28
28
  * @deprecated: Drop in v5.0
@@ -36,7 +36,6 @@ class TuiImgLazyLoading {
36
36
  this.background = signal(this.isServer ? '' : 'var(--tui-background-neutral-2)');
37
37
  this.animation = signal(this.isServer ? '' : 'tuiSkeletonVibe ease-in-out 1s infinite alternate');
38
38
  this.$ = !this.supported &&
39
- // eslint-disable-next-line @angular-eslint/no-uncalled-signals
40
39
  this.loading$.pipe(takeUntilDestroyed()).subscribe((src) => this.src.set(src));
41
40
  }
42
41
  set srcSetter(src) {
@@ -51,10 +50,10 @@ class TuiImgLazyLoading {
51
50
  this.background.set('');
52
51
  this.animation.set('');
53
52
  }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiImgLazyLoading, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
55
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiImgLazyLoading, isStandalone: true, selector: "img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]", inputs: { srcSetter: ["src", "srcSetter"] }, host: { listeners: { "load": "unset()", "error": "unset()" }, properties: { "style.animation": "animation()", "style.background": "background()", "attr.loading": "supported ? \"lazy\" : null", "attr.src": "src()" } }, providers: [TuiLazyLoadingService, IntersectionObserverService], ngImport: i0 }); }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiImgLazyLoading, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
54
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiImgLazyLoading, isStandalone: true, selector: "img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]", inputs: { srcSetter: ["src", "srcSetter"] }, host: { listeners: { "load": "unset()", "error": "unset()" }, properties: { "style.animation": "animation()", "style.background": "background()", "attr.loading": "supported ? \"lazy\" : null", "attr.src": "src()" } }, providers: [TuiLazyLoadingService, IntersectionObserverService], ngImport: i0 }); }
56
55
  }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiImgLazyLoading, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiImgLazyLoading, decorators: [{
58
57
  type: Directive,
59
58
  args: [{
60
59
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-lazy-loading.mjs","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {filter, map, Observable, Subject, switchMap, take} from 'rxjs';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n private readonly intersections$ = inject(IntersectionObserverService);\n private readonly stream$ = this.src$.pipe(\n switchMap((src) =>\n this.intersections$.pipe(\n filter((entry) => !!entry[0]?.isIntersecting),\n map(() => src),\n take(1),\n ),\n ),\n tuiWatch(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n public next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {isPlatformServer} from '@angular/common';\nimport {Directive, inject, Input, PLATFORM_ID, signal} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n/**\n * @deprecated: Drop in v5.0\n */\n@Directive({\n standalone: true,\n selector: 'img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]',\n providers: [TuiLazyLoadingService, IntersectionObserverService],\n host: {\n '[style.animation]': 'animation()',\n '[style.background]': 'background()',\n '[attr.loading]': 'supported ? \"lazy\" : null',\n '[attr.src]': 'src()',\n '(load)': 'unset()',\n '(error)': 'unset()',\n },\n})\nexport class TuiImgLazyLoading {\n private readonly isServer = isPlatformServer(inject(PLATFORM_ID));\n private readonly loading$ = inject(TuiLazyLoadingService);\n protected readonly supported = 'loading' in tuiInjectElement<HTMLImageElement>();\n protected src = signal<SafeResourceUrl | string | null>(null);\n protected background = signal(this.isServer ? '' : 'var(--tui-background-neutral-2)');\n protected animation = signal(\n this.isServer ? '' : 'tuiSkeletonVibe ease-in-out 1s infinite alternate',\n );\n\n protected readonly $ =\n !this.supported &&\n // eslint-disable-next-line @angular-eslint/no-uncalled-signals\n this.loading$.pipe(takeUntilDestroyed()).subscribe((src) => this.src.set(src));\n\n @Input('src')\n public set srcSetter(src: SafeResourceUrl | string) {\n if (this.supported) {\n this.src.set(src);\n } else {\n this.loading$.next(src);\n }\n }\n\n protected unset(): void {\n this.background.set('');\n this.animation.set('');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAMA,MACa,qBAAsB,SAAQ,UAAoC,CAAA;AAc3E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAd7C,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,OAAO,EAA4B,CAAC;AAC/C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;QACrD,IAAO,CAAA,OAAA,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CACrC,SAAS,CAAC,CAAC,GAAG,KACV,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,EAC7C,GAAG,CAAC,MAAM,GAAG,CAAC,EACd,IAAI,CAAC,CAAC,CAAC,CACV,CACJ,EACD,QAAQ,EAAE,CACb,CAAC;KAID;AAEM,IAAA,IAAI,CAAC,GAA6B,EAAA;AACrC,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACvB;+GApBQ,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA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A;AACJ,iBAAA,CAAA;8BAiBc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;;;ACxChB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-lazy-loading.mjs","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {filter, map, Observable, Subject, switchMap, take} from 'rxjs';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n private readonly intersections$ = inject(IntersectionObserverService);\n private readonly stream$ = this.src$.pipe(\n switchMap((src) =>\n this.intersections$.pipe(\n filter((entry) => !!entry[0]?.isIntersecting),\n map(() => src),\n take(1),\n ),\n ),\n tuiWatch(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n public next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {isPlatformServer} from '@angular/common';\nimport {Directive, inject, Input, PLATFORM_ID, signal} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n/**\n * @deprecated: Drop in v5.0\n */\n@Directive({\n standalone: true,\n selector: 'img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]',\n providers: [TuiLazyLoadingService, IntersectionObserverService],\n host: {\n '[style.animation]': 'animation()',\n '[style.background]': 'background()',\n '[attr.loading]': 'supported ? \"lazy\" : null',\n '[attr.src]': 'src()',\n '(load)': 'unset()',\n '(error)': 'unset()',\n },\n})\nexport class TuiImgLazyLoading {\n private readonly isServer = isPlatformServer(inject(PLATFORM_ID));\n private readonly loading$ = inject(TuiLazyLoadingService);\n protected readonly supported = 'loading' in tuiInjectElement<HTMLImageElement>();\n protected src = signal<SafeResourceUrl | string | null>(null);\n protected background = signal(this.isServer ? '' : 'var(--tui-background-neutral-2)');\n protected animation = signal(\n this.isServer ? '' : 'tuiSkeletonVibe ease-in-out 1s infinite alternate',\n );\n\n protected readonly $ =\n !this.supported &&\n this.loading$.pipe(takeUntilDestroyed()).subscribe((src) => this.src.set(src));\n\n @Input('src')\n public set srcSetter(src: SafeResourceUrl | string) {\n if (this.supported) {\n this.src.set(src);\n } else {\n this.loading$.next(src);\n }\n }\n\n protected unset(): void {\n this.background.set('');\n this.animation.set('');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAOM,MAAO,qBAAsB,SAAQ,UAAoC,CAAA;AAc3E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;AAd5C,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,OAAO,EAA4B;AAC9C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,2BAA2B,CAAC;QACpD,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CACrC,SAAS,CAAC,CAAC,GAAG,KACV,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,EAC7C,GAAG,CAAC,MAAM,GAAG,CAAC,EACd,IAAI,CAAC,CAAC,CAAC,CACV,CACJ,EACD,QAAQ,EAAE,C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A,YAAY,EAAE,OAAO;AACrB,wBAAA,QAAQ,EAAE,SAAS;AACnB,wBAAA,SAAS,EAAE,SAAS;AACvB,qBAAA;AACJ,iBAAA;8BAgBc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;ACvChB;;AAEG;;;;"}
@@ -2,12 +2,12 @@ import * as i0 from '@angular/core';
2
2
  import { inject, signal, computed, Directive } from '@angular/core';
3
3
  import { toSignal } from '@angular/core/rxjs-interop';
4
4
  import { tuiDirectiveBinding, tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
5
- import { TuiIcon } from '@taiga-ui/core/components/icon';
6
5
  import { TuiTextfieldComponent } from '@taiga-ui/core/components/textfield';
7
6
  import * as i1 from '@taiga-ui/core/directives/appearance';
8
7
  import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
9
8
  import * as i2 from '@taiga-ui/core/directives/hint';
10
9
  import { TuiHintDirective } from '@taiga-ui/core/directives/hint';
10
+ import { TuiIcons } from '@taiga-ui/core/directives/icons';
11
11
  import { TUI_PASSWORD_TEXTS } from '@taiga-ui/kit/tokens';
12
12
  import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
13
13
 
@@ -26,7 +26,7 @@ class TuiPassword {
26
26
  });
27
27
  this.textfield = inject(TuiTextfieldComponent);
28
28
  this.hidden = signal(true);
29
- this.icon = tuiDirectiveBinding(TuiIcon, 'icon', computed((size = this.textfield.options.size()) => {
29
+ this.icon = tuiDirectiveBinding(TuiIcons, 'iconStart', computed((size = this.textfield.options.size()) => {
30
30
  const icon = this.hidden()
31
31
  ? this.options.icons.show
32
32
  : this.options.icons.hide;
@@ -38,15 +38,15 @@ class TuiPassword {
38
38
  this.hidden.set(!this.hidden());
39
39
  this.textfield.input?.nativeElement.setAttribute('type', this.hidden() ? 'password' : 'text');
40
40
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPassword, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPassword, isStandalone: true, selector: "tui-icon[tuiPassword]", host: { listeners: { "click": "toggle()" }, properties: { "style.border": "textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null" }, styleAttribute: "cursor: pointer" }, providers: [
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPassword, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiPassword, isStandalone: true, selector: "tui-icon[tuiPassword]", host: { listeners: { "click": "toggle()" }, properties: { "style.border": "textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null" }, styleAttribute: "cursor: pointer" }, providers: [
43
43
  {
44
44
  provide: TUI_APPEARANCE_OPTIONS,
45
45
  useValue: { appearance: 'icon' },
46
46
  },
47
47
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiHintDirective, inputs: ["tuiHintAppearance", "tuiHintAppearance", "tuiHintContext", "tuiHintContext"] }], ngImport: i0 }); }
48
48
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPassword, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPassword, decorators: [{
50
50
  type: Directive,
51
51
  args: [{
52
52
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-password.mjs","sources":["../../../projects/kit/directives/password/password.options.ts","../../../projects/kit/directives/password/password.directive.ts","../../../projects/kit/directives/password/taiga-ui-kit-directives-password.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiPasswordOptions {\n readonly icons: Readonly<{\n hide: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n show: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n }>;\n}\n\nexport const [TUI_PASSWORD_OPTIONS, tuiPasswordOptionsProvider] =\n tuiCreateOptions<TuiPasswordOptions>({\n icons: {\n hide: '@tui.eye-off',\n show: '@tui.eye',\n },\n });\n","import {computed, Directive, inject, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiDirectiveBinding, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\n\nimport {TUI_PASSWORD_OPTIONS} from './password.options';\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiPassword]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDirective,\n inputs: ['tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n style: 'cursor: pointer',\n '(click)': 'toggle()',\n '[style.border]':\n 'textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null',\n },\n})\nexport class TuiPassword {\n private readonly options = inject(TUI_PASSWORD_OPTIONS);\n private readonly texts = toSignal(inject(TUI_PASSWORD_TEXTS), {\n initialValue: ['', ''] as const,\n });\n\n protected readonly textfield = inject(TuiTextfieldComponent);\n protected readonly hidden = signal(true);\n protected readonly icon = tuiDirectiveBinding(\n TuiIcon,\n 'icon',\n computed((size = this.textfield.options.size()) => {\n const icon = this.hidden()\n ? this.options.icons.show\n : this.options.icons.hide;\n\n return tuiIsString(icon) ? icon : icon(size);\n }),\n );\n\n protected readonly hint = tuiDirectiveBinding(\n TuiHintDirective,\n 'tuiHint',\n computed(() => (this.hidden() ? this.texts()[0] : this.texts()[1])),\n );\n\n protected toggle(): void {\n this.hidden.set(!this.hidden());\n this.textfield.input?.nativeElement.setAttribute(\n 'type',\n this.hidden() ? 'password' : 'text',\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAWa,CAAC,oBAAoB,EAAE,0BAA0B,CAAC,GAC3D,gBAAgB,CAAqB;AACjC,IAAA,KAAK,EAAE;AACH,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,IAAI,EAAE,UAAU;AACnB,KAAA;AACJ,CAAA;;ACHL,MAuBa,WAAW,CAAA;AAvBxB,IAAA,WAAA,GAAA;AAwBqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACvC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE;AAC1D,YAAA,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,CAAU;AAClC,SAAA,CAAC,CAAC;AAEgB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC1C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QACtB,IAAI,CAAA,IAAA,GAAG,mBAAmB,CACzC,OAAO,EACP,MAAM,EACN,QAAQ,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,KAAI;AAC9C,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE;AACtB,kBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;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;AACjC,aAAA;AACJ,SAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,mBAAA,EAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAeQ,WAAW,EAAA,UAAA,EAAA,CAAA;kBAvBvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC;AACjC,yBAAA;AACJ,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,iBAAiB;AACjB,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;AAClD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,KAAK,EAAE,iBAAiB;AACxB,wBAAA,SAAS,EAAE,UAAU;AACrB,wBAAA,gBAAgB,EACZ,uEAAuE;AAC9E,qBAAA;AACJ,iBAAA,CAAA;;;ACpCD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-password.mjs","sources":["../../../projects/kit/directives/password/password.options.ts","../../../projects/kit/directives/password/password.directive.ts","../../../projects/kit/directives/password/taiga-ui-kit-directives-password.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiPasswordOptions {\n readonly icons: Readonly<{\n hide: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n show: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n }>;\n}\n\nexport const [TUI_PASSWORD_OPTIONS, tuiPasswordOptionsProvider] =\n tuiCreateOptions<TuiPasswordOptions>({\n icons: {\n hide: '@tui.eye-off',\n show: '@tui.eye',\n },\n });\n","import {computed, Directive, inject, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiDirectiveBinding, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {TuiIcons} from '@taiga-ui/core/directives/icons';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\n\nimport {TUI_PASSWORD_OPTIONS} from './password.options';\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiPassword]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDirective,\n inputs: ['tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n style: 'cursor: pointer',\n '(click)': 'toggle()',\n '[style.border]':\n 'textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null',\n },\n})\nexport class TuiPassword {\n private readonly options = inject(TUI_PASSWORD_OPTIONS);\n private readonly texts = toSignal(inject(TUI_PASSWORD_TEXTS), {\n initialValue: ['', ''] as const,\n });\n\n protected readonly textfield = inject(TuiTextfieldComponent);\n protected readonly hidden = signal(true);\n protected readonly icon = tuiDirectiveBinding(\n TuiIcons,\n 'iconStart',\n computed((size = this.textfield.options.size()) => {\n const icon = this.hidden()\n ? this.options.icons.show\n : this.options.icons.hide;\n\n return tuiIsString(icon) ? icon : icon(size);\n }),\n );\n\n protected readonly hint = tuiDirectiveBinding(\n TuiHintDirective,\n 'tuiHint',\n computed(() => (this.hidden() ? this.texts()[0] : this.texts()[1])),\n );\n\n protected toggle(): void {\n this.hidden.set(!this.hidden());\n this.textfield.input?.nativeElement.setAttribute(\n 'type',\n this.hidden() ? 'password' : 'text',\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAWa,CAAC,oBAAoB,EAAE,0BAA0B,CAAC,GAC3D,gBAAgB,CAAqB;AACjC,IAAA,KAAK,EAAE;AACH,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,IAAI,EAAE,UAAU;AACnB,KAAA;AACJ,CAAA;;MCoBQ,WAAW,CAAA;AAvBxB,IAAA,WAAA,GAAA;AAwBqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACtC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE;AAC1D,YAAA,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,CAAU;AAClC,SAAA,CAAC;AAEiB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACzC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;QACrB,IAAA,CAAA,IAAI,GAAG,mBAAmB,CACzC,QAAQ,EACR,WAAW,EACX,QAAQ,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,KAAI;AAC9C,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM;AACpB,kBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;kBACnB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;AAE7B,YAAA,OAAO,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI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AAA,EAAA,mBAAA,EAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAeQ,WAAW,EAAA,UAAA,EAAA,CAAA;kBAvBvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC;AACjC,yBAAA;AACJ,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,iBAAiB;AACjB,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;AAClD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,KAAK,EAAE,iBAAiB;AACxB,wBAAA,SAAS,EAAE,UAAU;AACrB,wBAAA,gBAAgB,EACZ,uEAAuE;AAC9E,qBAAA;AACJ,iBAAA;;;ACpCD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Output } from '@angular/core';
2
+ import { Output, Directive } from '@angular/core';
3
3
  import { BehaviorSubject, distinctUntilChanged, skip } from 'rxjs';
4
4
 
5
5
  class TuiPresent {
@@ -13,10 +13,10 @@ class TuiPresent {
13
13
  onAnimation(visibility) {
14
14
  this.visibility$.next(visibility);
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPresent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPresent, isStandalone: true, selector: "[tuiPresentChange]", outputs: { tuiPresentChange: "tuiPresentChange" }, host: { listeners: { "animationcancel.self": "onAnimation(false)", "animationstart.self": "onAnimation(true)" }, properties: { "style.animation": "\"tuiPresent 1s infinite\"" } }, ngImport: i0 }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPresent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiPresent, isStandalone: true, selector: "[tuiPresentChange]", outputs: { tuiPresentChange: "tuiPresentChange" }, host: { listeners: { "animationcancel.self": "onAnimation(false)", "animationstart.self": "onAnimation(true)" }, properties: { "style.animation": "\"tuiPresent 1s infinite\"" } }, ngImport: i0 }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPresent, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPresent, decorators: [{
20
20
  type: Directive,
21
21
  args: [{
22
22
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-present.mjs","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import {Directive, type OnDestroy, Output} from '@angular/core';\nimport {BehaviorSubject, distinctUntilChanged, skip} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n '(animationcancel.self)': 'onAnimation(false)',\n '(animationstart.self)': 'onAnimation(true)',\n },\n})\nexport class TuiPresent implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n public readonly tuiPresentChange = this.visibility$.pipe(\n distinctUntilChanged(),\n skip(1),\n );\n\n public ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n\n protected onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MASa,UAAU,CAAA;AATvB,IAAA,WAAA,GAAA;AAUqB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AAG1C,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CACpD,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,CACV,CAAC;AASL,KAAA;IAPU,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAChC;AAES,IAAA,WAAW,CAAC,UAAmB,EAAA;AACrC,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrC;+GAfQ,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,4BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBATtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,mBAAmB,EAAE,0BAA0B;AAC/C,wBAAA,wBAAwB,EAAE,oBAAoB;AAC9C,wBAAA,uBAAuB,EAAE,mBAAmB;AAC/C,qBAAA;AACJ,iBAAA,CAAA;8BAKmB,gBAAgB,EAAA,CAAA;sBAD/B,MAAM;;;ACfX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-present.mjs","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import {Directive, type OnDestroy, Output} from '@angular/core';\nimport {BehaviorSubject, distinctUntilChanged, skip} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n '(animationcancel.self)': 'onAnimation(false)',\n '(animationstart.self)': 'onAnimation(true)',\n },\n})\nexport class TuiPresent implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n public readonly tuiPresentChange = this.visibility$.pipe(\n distinctUntilChanged(),\n skip(1),\n );\n\n public ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n\n protected onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,UAAU,CAAA;AATvB,IAAA,WAAA,GAAA;AAUqB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC;AAGzC,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CACpD,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,CACV;AASJ,IAAA;IAPU,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC;IAChC;AAEU,IAAA,WAAW,CAAC,UAAmB,EAAA;AACrC,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;IACrC;8GAfS,UAAU,EAAA,IAAA,EAAA,EAAA,EAA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