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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (726) hide show
  1. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  2. package/components/files/file/file.options.d.ts +1 -1
  3. package/components/index.d.ts +1 -0
  4. package/components/input-chip/input-chip.options.d.ts +1 -1
  5. package/components/input-color/input-color.component.d.ts +2 -1
  6. package/components/input-color/input-color.options.d.ts +1 -1
  7. package/components/input-date/input-date.directive.d.ts +1 -1
  8. package/components/input-date/input-date.options.d.ts +1 -1
  9. package/components/input-number/input-number.options.d.ts +1 -1
  10. package/components/input-number/quantum.directive.d.ts +1 -1
  11. package/components/input-phone/input-phone.options.d.ts +1 -1
  12. package/components/input-time/input-time.component.d.ts +1 -1
  13. package/components/input-time/input-time.options.d.ts +1 -1
  14. package/components/like/like.options.d.ts +1 -1
  15. package/components/notification-middle/index.d.ts +3 -0
  16. package/components/notification-middle/notification-middle.component.d.ts +16 -0
  17. package/components/notification-middle/notification-middle.directive.d.ts +7 -0
  18. package/components/notification-middle/notification-middle.service.d.ts +7 -0
  19. package/components/segmented/segmented.component.d.ts +6 -4
  20. package/components/textarea/textarea-limit.directive.d.ts +0 -1
  21. package/components/textarea/textarea.options.d.ts +1 -1
  22. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  23. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
  24. package/directives/copy/copy.options.d.ts +1 -1
  25. package/directives/highlight/highlight.directive.d.ts +3 -1
  26. package/directives/password/password.options.d.ts +1 -1
  27. package/directives/tooltip/tooltip.options.d.ts +4 -1
  28. package/fesm2022/taiga-ui-kit-components-accordion.mjs +14 -14
  29. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
  31. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-kit-components-avatar.mjs +18 -18
  33. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  35. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-kit-components-badge.mjs +8 -8
  37. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  39. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  41. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +4 -4
  43. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -4
  45. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -5
  47. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +6 -6
  49. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-kit-components-carousel.mjs +18 -18
  51. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -5
  53. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-kit-components-chip.mjs +8 -8
  55. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
  57. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-kit-components-comment.mjs +8 -8
  59. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  61. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-confirm.mjs +9 -10
  63. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +9 -9
  65. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-drawer.mjs +6 -6
  67. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +7 -7
  69. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-files.mjs +38 -30
  71. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-filter.mjs +4 -4
  73. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +7 -7
  75. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +10 -10
  77. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-input-color.mjs +8 -8
  79. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -4
  81. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  83. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +7 -7
  85. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-input-date.mjs +11 -11
  87. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -4
  89. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
  91. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-input-month.mjs +7 -7
  93. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-input-number.mjs +20 -20
  95. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-input-password.mjs +4 -4
  97. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +14 -14
  99. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
  101. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +6 -5
  103. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-input-range.mjs +5 -5
  105. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +7 -7
  107. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-input-time.mjs +10 -10
  109. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-input-year.mjs +4 -4
  111. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +16 -16
  113. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-like.mjs +5 -5
  115. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +12 -12
  117. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-message.mjs +8 -8
  119. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +14 -14
  121. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +97 -0
  123. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -0
  124. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -6
  125. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-pagination.mjs +4 -4
  127. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +10 -10
  129. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-pin.mjs +8 -8
  131. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +10 -10
  133. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-preview.mjs +25 -25
  135. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-progress.mjs +28 -28
  137. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  139. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-push.mjs +15 -15
  141. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +5 -5
  143. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -8
  145. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-range.mjs +8 -8
  147. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-rating.mjs +6 -7
  149. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  151. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  153. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-select.mjs +11 -11
  155. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-slider.mjs +19 -20
  157. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-slides.mjs +7 -7
  159. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-status.mjs +7 -7
  161. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-stepper.mjs +7 -7
  163. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-switch.mjs +5 -5
  165. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-tabs.mjs +26 -24
  167. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-textarea.mjs +16 -17
  169. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  171. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-tree.mjs +29 -37
  173. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components.mjs +1 -0
  175. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  177. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  179. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  181. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +7 -7
  183. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-directives-connected.mjs +8 -8
  185. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-directives-copy.mjs +8 -8
  187. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  189. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -9
  191. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  193. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  195. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +8 -8
  197. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -8
  199. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-directives-password.mjs +3 -3
  201. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  203. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +8 -8
  205. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -8
  207. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -7
  209. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +7 -7
  211. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +4 -4
  213. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  215. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  217. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +7 -7
  219. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  221. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  223. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  225. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  227. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  229. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-tokens.mjs +3 -3
  231. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  233. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  234. package/package.json +12 -218
  235. package/styles/components/chip.less +6 -0
  236. package/tokens/input-date-options.d.ts +1 -1
  237. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  238. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  239. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  240. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  241. package/esm2022/components/accordion/accordion.mjs +0 -11
  242. package/esm2022/components/accordion/index.mjs +0 -6
  243. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  244. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  245. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  246. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  247. package/esm2022/components/action-bar/index.mjs +0 -4
  248. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  249. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  250. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  251. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  252. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  253. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  254. package/esm2022/components/avatar/index.mjs +0 -6
  255. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  256. package/esm2022/components/badge/badge.directive.mjs +0 -42
  257. package/esm2022/components/badge/badge.options.mjs +0 -13
  258. package/esm2022/components/badge/index.mjs +0 -3
  259. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  260. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  261. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  262. package/esm2022/components/badge-notification/index.mjs +0 -3
  263. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  264. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  265. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  266. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  267. package/esm2022/components/badged-content/index.mjs +0 -4
  268. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  269. package/esm2022/components/block/block.directive.mjs +0 -58
  270. package/esm2022/components/block/block.options.mjs +0 -13
  271. package/esm2022/components/block/index.mjs +0 -3
  272. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  273. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  274. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  275. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  276. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  277. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  278. package/esm2022/components/button-loading/index.mjs +0 -2
  279. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  280. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  281. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  282. package/esm2022/components/calendar-month/index.mjs +0 -3
  283. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  284. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  285. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  286. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  287. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  288. package/esm2022/components/calendar-range/index.mjs +0 -5
  289. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  290. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  291. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  292. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  293. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  294. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  295. package/esm2022/components/carousel/carousel.mjs +0 -15
  296. package/esm2022/components/carousel/index.mjs +0 -7
  297. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  298. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  299. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  300. package/esm2022/components/checkbox/index.mjs +0 -3
  301. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  302. package/esm2022/components/chip/chip.directive.mjs +0 -63
  303. package/esm2022/components/chip/chip.options.mjs +0 -13
  304. package/esm2022/components/chip/index.mjs +0 -3
  305. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  306. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  307. package/esm2022/components/combo-box/index.mjs +0 -2
  308. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  309. package/esm2022/components/comment/comment.directive.mjs +0 -35
  310. package/esm2022/components/comment/index.mjs +0 -2
  311. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  312. package/esm2022/components/compass/compass.component.mjs +0 -19
  313. package/esm2022/components/compass/index.mjs +0 -2
  314. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  315. package/esm2022/components/confirm/confirm.component.mjs +0 -29
  316. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  317. package/esm2022/components/confirm/index.mjs +0 -3
  318. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  319. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  320. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  321. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  322. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  323. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  324. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  325. package/esm2022/components/drawer/index.mjs +0 -2
  326. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  327. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  328. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  329. package/esm2022/components/elastic-container/index.mjs +0 -3
  330. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  331. package/esm2022/components/files/file/file.component.mjs +0 -144
  332. package/esm2022/components/files/file/file.options.mjs +0 -16
  333. package/esm2022/components/files/files/files.component.mjs +0 -49
  334. package/esm2022/components/files/files.mjs +0 -15
  335. package/esm2022/components/files/files.types.mjs +0 -2
  336. package/esm2022/components/files/files.utils.mjs +0 -30
  337. package/esm2022/components/files/files.validators.mjs +0 -32
  338. package/esm2022/components/files/index.mjs +0 -13
  339. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  340. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  341. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  342. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  343. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  344. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  345. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  346. package/esm2022/components/filter/filter.component.mjs +0 -65
  347. package/esm2022/components/filter/index.mjs +0 -2
  348. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  349. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  350. package/esm2022/components/floating-container/index.mjs +0 -2
  351. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  352. package/esm2022/components/index.mjs +0 -72
  353. package/esm2022/components/input-chip/index.mjs +0 -5
  354. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  355. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  356. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  357. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  358. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  359. package/esm2022/components/input-color/index.mjs +0 -3
  360. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  361. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  362. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  363. package/esm2022/components/input-date/date-filler.mjs +0 -20
  364. package/esm2022/components/input-date/index.mjs +0 -6
  365. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  366. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  367. package/esm2022/components/input-date/input-date.mjs +0 -9
  368. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  369. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  370. package/esm2022/components/input-date-multi/index.mjs +0 -3
  371. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  372. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  373. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  374. package/esm2022/components/input-date-range/index.mjs +0 -4
  375. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  376. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  377. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  378. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  379. package/esm2022/components/input-date-time/index.mjs +0 -5
  380. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  381. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  382. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  383. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  384. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  385. package/esm2022/components/input-inline/index.mjs +0 -2
  386. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  387. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  388. package/esm2022/components/input-month/index.mjs +0 -5
  389. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  390. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  391. package/esm2022/components/input-month/input-month.mjs +0 -9
  392. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  393. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  394. package/esm2022/components/input-month-range/index.mjs +0 -4
  395. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  396. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  397. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  398. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  399. package/esm2022/components/input-number/index.mjs +0 -6
  400. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  401. package/esm2022/components/input-number/input-number.mjs +0 -9
  402. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  403. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  404. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  405. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  406. package/esm2022/components/input-password/index.mjs +0 -3
  407. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  408. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  409. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  410. package/esm2022/components/input-phone/index.mjs +0 -3
  411. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  412. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  413. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  414. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  415. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  416. package/esm2022/components/input-phone-international/index.mjs +0 -3
  417. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  418. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  419. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  420. package/esm2022/components/input-pin/index.mjs +0 -2
  421. package/esm2022/components/input-pin/input-pin.component.mjs +0 -65
  422. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  423. package/esm2022/components/input-range/index.mjs +0 -3
  424. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  425. package/esm2022/components/input-range/input-range.mjs +0 -4
  426. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  427. package/esm2022/components/input-slider/index.mjs +0 -3
  428. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  429. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  430. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  431. package/esm2022/components/input-time/index.mjs +0 -5
  432. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  433. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  434. package/esm2022/components/input-time/input-time.mjs +0 -4
  435. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  436. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  437. package/esm2022/components/input-year/index.mjs +0 -4
  438. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  439. package/esm2022/components/input-year/input-year.mjs +0 -4
  440. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  441. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  442. package/esm2022/components/items-with-more/index.mjs +0 -6
  443. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  444. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  445. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  446. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  447. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  448. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  449. package/esm2022/components/like/index.mjs +0 -3
  450. package/esm2022/components/like/like.component.mjs +0 -46
  451. package/esm2022/components/like/like.options.mjs +0 -10
  452. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  453. package/esm2022/components/line-clamp/index.mjs +0 -4
  454. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  455. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  456. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  457. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  458. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  459. package/esm2022/components/message/index.mjs +0 -2
  460. package/esm2022/components/message/message.directive.mjs +0 -43
  461. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  462. package/esm2022/components/multi-select/index.mjs +0 -6
  463. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  464. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  465. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  466. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  467. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  468. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  469. package/esm2022/components/pager/index.mjs +0 -2
  470. package/esm2022/components/pager/pager.component.mjs +0 -97
  471. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  472. package/esm2022/components/pagination/index.mjs +0 -2
  473. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  474. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  475. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  476. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  477. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  478. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  479. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  480. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  481. package/esm2022/components/pin/index.mjs +0 -2
  482. package/esm2022/components/pin/pin.directive.mjs +0 -35
  483. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  484. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  485. package/esm2022/components/preview/dialog/index.mjs +0 -4
  486. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  487. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  488. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  489. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  490. package/esm2022/components/preview/index.mjs +0 -8
  491. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  492. package/esm2022/components/preview/preview.component.mjs +0 -142
  493. package/esm2022/components/preview/preview.mjs +0 -13
  494. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  495. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  496. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  497. package/esm2022/components/progress/index.mjs +0 -9
  498. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  499. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  500. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  501. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  502. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  503. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  504. package/esm2022/components/progress/progress.mjs +0 -15
  505. package/esm2022/components/progress/progress.options.mjs +0 -13
  506. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  507. package/esm2022/components/pulse/index.mjs +0 -2
  508. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  509. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  510. package/esm2022/components/push/index.mjs +0 -7
  511. package/esm2022/components/push/push-alert.component.mjs +0 -29
  512. package/esm2022/components/push/push.component.mjs +0 -39
  513. package/esm2022/components/push/push.directive.mjs +0 -33
  514. package/esm2022/components/push/push.mjs +0 -5
  515. package/esm2022/components/push/push.options.mjs +0 -21
  516. package/esm2022/components/push/push.service.mjs +0 -19
  517. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  518. package/esm2022/components/radio/index.mjs +0 -5
  519. package/esm2022/components/radio/radio.component.mjs +0 -53
  520. package/esm2022/components/radio/radio.directive.mjs +0 -32
  521. package/esm2022/components/radio/radio.mjs +0 -4
  522. package/esm2022/components/radio/radio.options.mjs +0 -13
  523. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  524. package/esm2022/components/radio-list/index.mjs +0 -2
  525. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  526. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  527. package/esm2022/components/range/index.mjs +0 -3
  528. package/esm2022/components/range/range-change.directive.mjs +0 -78
  529. package/esm2022/components/range/range.component.mjs +0 -164
  530. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  531. package/esm2022/components/rating/index.mjs +0 -3
  532. package/esm2022/components/rating/rating.component.mjs +0 -65
  533. package/esm2022/components/rating/rating.options.mjs +0 -13
  534. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  535. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  536. package/esm2022/components/routable-dialog/index.mjs +0 -3
  537. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  538. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  539. package/esm2022/components/segmented/index.mjs +0 -3
  540. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  541. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  542. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  543. package/esm2022/components/select/index.mjs +0 -5
  544. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  545. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  546. package/esm2022/components/select/select.directive.mjs +0 -56
  547. package/esm2022/components/select/select.mjs +0 -4
  548. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  549. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  550. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  551. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  552. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  553. package/esm2022/components/slider/index.mjs +0 -8
  554. package/esm2022/components/slider/slider.component.mjs +0 -124
  555. package/esm2022/components/slider/slider.mjs +0 -12
  556. package/esm2022/components/slider/slider.options.mjs +0 -16
  557. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  558. package/esm2022/components/slides/index.mjs +0 -2
  559. package/esm2022/components/slides/slides.directive.mjs +0 -51
  560. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  561. package/esm2022/components/status/index.mjs +0 -2
  562. package/esm2022/components/status/status.directive.mjs +0 -35
  563. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  564. package/esm2022/components/stepper/index.mjs +0 -4
  565. package/esm2022/components/stepper/step.component.mjs +0 -58
  566. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  567. package/esm2022/components/stepper/stepper.mjs +0 -4
  568. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  569. package/esm2022/components/switch/index.mjs +0 -3
  570. package/esm2022/components/switch/switch.component.mjs +0 -63
  571. package/esm2022/components/switch/switch.options.mjs +0 -15
  572. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  573. package/esm2022/components/tabs/index.mjs +0 -9
  574. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  575. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  576. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  577. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -211
  578. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  579. package/esm2022/components/tabs/tabs.mjs +0 -15
  580. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  581. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  582. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  583. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  584. package/esm2022/components/textarea/index.mjs +0 -4
  585. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  586. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -94
  587. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  588. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  589. package/esm2022/components/tiles/index.mjs +0 -7
  590. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  591. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  592. package/esm2022/components/tiles/tile.component.mjs +0 -69
  593. package/esm2022/components/tiles/tile.service.mjs +0 -90
  594. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  595. package/esm2022/components/tiles/tiles.mjs +0 -5
  596. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  597. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  598. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  599. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  600. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  601. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  602. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  603. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  604. package/esm2022/components/tree/index.mjs +0 -12
  605. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  606. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  607. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  608. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  609. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  610. package/esm2022/components/tree/tree.mjs +0 -17
  611. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  612. package/esm2022/directives/button-close/index.mjs +0 -2
  613. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  614. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  615. package/esm2022/directives/button-group/index.mjs +0 -2
  616. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  617. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  618. package/esm2022/directives/button-select/index.mjs +0 -2
  619. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  620. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  621. package/esm2022/directives/chevron/index.mjs +0 -2
  622. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  623. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  624. package/esm2022/directives/connected/index.mjs +0 -2
  625. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  626. package/esm2022/directives/copy/copy.component.mjs +0 -48
  627. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  628. package/esm2022/directives/copy/copy.mjs +0 -4
  629. package/esm2022/directives/copy/copy.options.mjs +0 -3
  630. package/esm2022/directives/copy/index.mjs +0 -6
  631. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  632. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  633. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  634. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  635. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  636. package/esm2022/directives/fade/index.mjs +0 -2
  637. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  638. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  639. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  640. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  641. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  642. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  643. package/esm2022/directives/highlight/index.mjs +0 -2
  644. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  645. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  646. package/esm2022/directives/icon-badge/index.mjs +0 -2
  647. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  648. package/esm2022/directives/index.mjs +0 -21
  649. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  650. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  651. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  652. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  653. package/esm2022/directives/password/index.mjs +0 -3
  654. package/esm2022/directives/password/password.directive.mjs +0 -67
  655. package/esm2022/directives/password/password.options.mjs +0 -8
  656. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  657. package/esm2022/directives/present/index.mjs +0 -2
  658. package/esm2022/directives/present/present.directive.mjs +0 -33
  659. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  660. package/esm2022/directives/sensitive/index.mjs +0 -2
  661. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  662. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  663. package/esm2022/directives/shimmer/index.mjs +0 -2
  664. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  665. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  666. package/esm2022/directives/skeleton/index.mjs +0 -2
  667. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  668. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  669. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  670. package/esm2022/directives/tooltip/index.mjs +0 -3
  671. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  672. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  673. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  674. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  675. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  676. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  677. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  678. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  679. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  680. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  681. package/esm2022/index.mjs +0 -6
  682. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  683. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  684. package/esm2022/pipes/emails/index.mjs +0 -3
  685. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  686. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  687. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  688. package/esm2022/pipes/field-error/index.mjs +0 -3
  689. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  690. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  691. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  692. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  693. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  694. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  695. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  696. package/esm2022/pipes/index.mjs +0 -8
  697. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  698. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  699. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  700. package/esm2022/pipes/stringify/index.mjs +0 -2
  701. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  702. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  703. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  704. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  705. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  706. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  707. package/esm2022/taiga-ui-kit.mjs +0 -5
  708. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  709. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  710. package/esm2022/tokens/i18n.mjs +0 -75
  711. package/esm2022/tokens/index.mjs +0 -10
  712. package/esm2022/tokens/input-date-options.mjs +0 -13
  713. package/esm2022/tokens/items-handlers.mjs +0 -27
  714. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  715. package/esm2022/tokens/month-formatter.mjs +0 -12
  716. package/esm2022/tokens/preview-icons.mjs +0 -17
  717. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  718. package/esm2022/tokens/validation-errors.mjs +0 -6
  719. package/esm2022/utils/create-time-periods.mjs +0 -12
  720. package/esm2022/utils/index.mjs +0 -7
  721. package/esm2022/utils/inject-value.mjs +0 -11
  722. package/esm2022/utils/is-flat.mjs +0 -4
  723. package/esm2022/utils/maskito.binding.mjs +0 -6
  724. package/esm2022/utils/phone.mjs +0 -6
  725. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  726. package/esm2022/utils/toggle-day.mjs +0 -6
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_LINE_CLAMP_OPTIONS' : '',\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TUI_HINT_PROVIDERS, TuiHintBaseComponent} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n `,\n styleUrls: ['./line-clamp-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_HINT_PROVIDERS,\n hostDirectives: [TuiAnimated],\n host: {\n '[style.min-width.px]': 'width',\n },\n})\nexport class TuiLineClampBox extends TuiHintBaseComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n type DoCheck,\n ElementRef,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiIsCurrentTarget} from '@taiga-ui/cdk/utils/dom';\nimport {\n TUI_HINT_COMPONENT,\n TuiHint,\n TuiHintDirective,\n} from '@taiga-ui/core/directives/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n BehaviorSubject,\n debounceTime,\n distinctUntilChanged,\n filter,\n map,\n type Observable,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_HINT_COMPONENT,\n useValue: TuiLineClampBox,\n },\n ],\n host: {\n '[style.height.px]': 'height()',\n '[style.max-height.px]': 'maxHeight()',\n '[class._initialized]': 'initialized()',\n '(transitionend)': 'updateView()',\n '(mouseenter)': 'updateView()',\n '(resize)': 'updateView()',\n },\n})\nexport class TuiLineClamp implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly cd = inject(ChangeDetectorRef);\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n protected initialized = signal(false);\n protected maxHeight = signal(0);\n protected height = signal(0);\n\n protected lineClamp = toSignal(\n this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.el, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n takeUntilDestroyed(),\n ),\n {initialValue: 0},\n );\n\n @Input()\n public lineHeight = 24;\n\n @Input()\n public content: PolymorpheusContent;\n\n @Output()\n public readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n debounceTime(0),\n distinctUntilChanged(),\n );\n\n @Input()\n public set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n public ngAfterViewInit(): void {\n this.initialized.set(true);\n }\n\n protected get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n protected updateView(): void {\n this.cd.detectChanges();\n }\n\n private update(): void {\n if (this.outlet) {\n this.height.set(this.outlet.nativeElement.scrollHeight);\n }\n\n this.maxHeight.set(this.lineHeight * this.linesLimit$.value);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</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,EAAA,IAAA,EAAA,kBAAkB,qUAAW,6BAA6B,EAAA,QAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAmB3D,YAAY,EAAA,UAAA,EAAA,CAAA;kBAtBxB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,gBAAgB,EACjB,OAAA,EAAA,CAAC,kBAAkB,EAAE,OAAO,EAAE,6BAA6B,CAAC,EAAA,eAAA,EAGpD,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,QAAQ,EAAE,eAAe;AAC5B,yBAAA;qBACJ,EACK,IAAA,EAAA;AACF,wBAAA,mBAAmB,EAAE,UAAU;AAC/B,wBAAA,uBAAuB,EAAE,aAAa;AACtC,wBAAA,sBAAsB,EAAE,eAAe;AACvC,wBAAA,iBAAiB,EAAE,cAAc;AACjC,wBAAA,cAAc,EAAE,cAAc;AAC9B,wBAAA,UAAU,EAAE,cAAc;AAC7B,qBAAA,EAAA,QAAA,EAAA,uTAAA,EAAA,MAAA,EAAA,CAAA,oSAAA,CAAA,EAAA,CAAA;8BAIgB,MAAM,EAAA,CAAA;sBADtB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAA;gBA8BxC,UAAU,EAAA,CAAA;sBADhB,KAAK;gBAIC,OAAO,EAAA,CAAA;sBADb,KAAK;gBAIU,eAAe,EAAA,CAAA;sBAD9B,MAAM;gBAOI,UAAU,EAAA,CAAA;sBADpB,KAAK;;;AExGV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_LINE_CLAMP_OPTIONS' : '',\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TUI_HINT_PROVIDERS, TuiHintBaseComponent} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n `,\n styleUrls: ['./line-clamp-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_HINT_PROVIDERS,\n hostDirectives: [TuiAnimated],\n host: {\n '[style.min-width.px]': 'width',\n },\n})\nexport class TuiLineClampBox extends TuiHintBaseComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n type DoCheck,\n ElementRef,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiIsCurrentTarget} from '@taiga-ui/cdk/utils/dom';\nimport {\n TUI_HINT_COMPONENT,\n TuiHint,\n TuiHintDirective,\n} from '@taiga-ui/core/directives/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n BehaviorSubject,\n debounceTime,\n distinctUntilChanged,\n filter,\n map,\n type Observable,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_HINT_COMPONENT,\n useValue: TuiLineClampBox,\n },\n ],\n host: {\n '[style.height.px]': 'height()',\n '[style.max-height.px]': 'maxHeight()',\n '[class._initialized]': 'initialized()',\n '(transitionend)': 'updateView()',\n '(mouseenter)': 'updateView()',\n '(resize)': 'updateView()',\n },\n})\nexport class TuiLineClamp implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly cd = inject(ChangeDetectorRef);\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n protected initialized = signal(false);\n protected maxHeight = signal(0);\n protected height = signal(0);\n\n protected lineClamp = toSignal(\n this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.el, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n takeUntilDestroyed(),\n ),\n {initialValue: 0},\n );\n\n @Input()\n public lineHeight = 24;\n\n @Input()\n public content: PolymorpheusContent;\n\n @Output()\n public readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n debounceTime(0),\n distinctUntilChanged(),\n );\n\n @Input()\n public set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n public ngAfterViewInit(): void {\n this.initialized.set(true);\n }\n\n protected get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n protected updateView(): void {\n this.cd.detectChanges();\n }\n\n private update(): void {\n if (this.outlet) {\n this.height.set(this.outlet.nativeElement.scrollHeight);\n }\n\n this.maxHeight.set(this.lineHeight * this.linesLimit$.value);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAOO,MAAM,8BAA8B,GAAwB;AAC/D,IAAA,QAAQ,EAAE,IAAI;;AAGlB;;AAEG;AACI,MAAM,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAAwB,GAAG,EAAE,EACzC;AACI,IAAA,OAAO,EAAE,MAAM,8BAA8B;AAChD,CAAA;AAGC,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC;AACL;;ACTM,MAAO,eAAgB,SAAQ,oBAAoB,CAAA;AACrD,IAAA,IAAc,KAAK,GAAA;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK;IAC9C;8GAHS,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,EAAA,SAAA,EANb,kBAAkB,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EALnB;;AAET,IAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gbA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,EAAA,QAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAmB3D,YAAY,EAAA,UAAA,EAAA,CAAA;kBAtBxB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EAAA,QAAA,EACN,gBAAgB,EAAA,OAAA,EACjB,CAAC,kBAAkB,EAAE,OAAO,EAAE,6BAA6B,CAAC,EAAA,eAAA,EAGpD,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,QAAQ,EAAE,eAAe;AAC5B,yBAAA;qBACJ,EAAA,IAAA,EACK;AACF,wBAAA,mBAAmB,EAAE,UAAU;AAC/B,wBAAA,uBAAuB,EAAE,aAAa;AACtC,wBAAA,sBAAsB,EAAE,eAAe;AACvC,wBAAA,iBAAiB,EAAE,cAAc;AACjC,wBAAA,cAAc,EAAE,cAAc;AAC9B,wBAAA,UAAU,EAAE,cAAc;AAC7B,qBAAA,EAAA,QAAA,EAAA,uTAAA,EAAA,MAAA,EAAA,CAAA,oSAAA,CAAA,EAAA;8BAIgB,MAAM,EAAA,CAAA;sBADtB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;gBA8BxC,UAAU,EAAA,CAAA;sBADhB;gBAIM,OAAO,EAAA,CAAA;sBADb;gBAIe,eAAe,EAAA,CAAA;sBAD9B;gBAOU,UAAU,EAAA,CAAA;sBADpB;;;AExGL;;AAEG;;;;"}
@@ -1,32 +1,32 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
  import * as i1 from '@taiga-ui/core/directives/appearance';
5
5
  import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
6
6
 
7
7
  class TuiMessageStyles {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessageStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMessageStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;-webkit-text-decoration:underline solid!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessageStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMessageStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessageStyles, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessageStyles, decorators: [{
12
12
  type: Component,
13
13
  args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
14
14
  class: 'tui-message',
15
- }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;-webkit-text-decoration:underline solid!important;text-decoration:underline solid!important}\n"] }]
15
+ }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"] }]
16
16
  }] });
17
17
  class TuiMessage {
18
18
  constructor() {
19
19
  this.nothing = tuiWithStyles(TuiMessageStyles);
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
23
23
  {
24
24
  provide: TUI_APPEARANCE_OPTIONS,
25
25
  useValue: { appearance: 'neutral' },
26
26
  },
27
27
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }], ngImport: i0 }); }
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessage, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMessage, decorators: [{
30
30
  type: Directive,
31
31
  args: [{
32
32
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/message.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-message',\n },\n})\nclass TuiMessageStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(TuiMessageStyles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAYA,MAUM,gBAAgB,CAAA;+GAAhB,gBAA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E,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,aAAA;AACJ,SAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAGQ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAXtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,iBAAiB,CAAC;AACtC,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/message.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-message',\n },\n})\nclass TuiMessageStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(TuiMessageStyles);\n}\n","/**\n * Generated bundle index.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,gBAAA,OAAO,EAAE,sBAAsB;AAC/B,gBAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,aAAA;AACJ,SAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAGQ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAXtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,iBAAiB,CAAC;AACtC,iBAAA;;;AClCD;;AAEG;;;;"}
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, inject, computed, Component, ChangeDetectionStrategy, Input, ContentChildren, Directive } from '@angular/core';
2
+ import { signal, inject, computed, ContentChildren, Input, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
3
  import { toSignal } from '@angular/core/rxjs-interop';
4
4
  import { NgControl } from '@angular/forms';
5
5
  import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
6
6
  import { TuiOptionWithValue, tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
7
7
  import { TuiLink } from '@taiga-ui/core/components/link';
8
8
  import * as i2 from '@taiga-ui/core/components/textfield';
9
- import { TuiTextfieldComponent, TUI_TEXTFIELD_OPTIONS, TuiTextfield, TuiSelectLike } from '@taiga-ui/core/components/textfield';
9
+ import { TuiTextfieldComponent, TUI_TEXTFIELD_OPTIONS, TuiSelectLike, TuiTextfield } from '@taiga-ui/core/components/textfield';
10
10
  import { TUI_ITEMS_HANDLERS } from '@taiga-ui/core/directives/items-handlers';
11
11
  import { TUI_MULTI_SELECT_TEXTS } from '@taiga-ui/kit/tokens';
12
12
  import { tuiInjectValue, tuiIsFlat } from '@taiga-ui/kit/utils';
@@ -43,10 +43,10 @@ class TuiMultiSelectGroupComponent {
43
43
  const others = this.value().filter((current) => values.every((item) => !matcher(current, item)));
44
44
  this.control?.control?.setValue(this.checked() ? others : others.concat(values));
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectGroupComponent, isStandalone: true, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: "label" }, host: { properties: { "class._label": "label" } }, queries: [{ propertyName: "options", predicate: TuiOptionWithValue }], ngImport: i0, template: "<span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()?.[checked() ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}\n"], dependencies: [{ kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectGroupComponent, isStandalone: true, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: "label" }, host: { properties: { "class._label": "label" } }, queries: [{ propertyName: "options", predicate: TuiOptionWithValue }], ngImport: i0, template: "<span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()?.[checked() ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}\n"], dependencies: [{ kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
48
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupComponent, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupComponent, decorators: [{
50
50
  type: Component,
51
51
  args: [{ standalone: true, selector: 'tui-opt-group[tuiMultiSelectGroup]', imports: [TuiLink], changeDetection: ChangeDetectionStrategy.OnPush, host: {
52
52
  '[class._label]': 'label',
@@ -71,8 +71,8 @@ class TuiMultiSelectOption {
71
71
  controlValue.some((item) => this.handlers?.identityMatcher()(item, optionValue) ??
72
72
  item === optionValue));
73
73
  }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
75
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectOption, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
75
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectOption, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
76
76
  <input
77
77
  *ngIf="option"
78
78
  tuiCheckbox
@@ -82,7 +82,7 @@ class TuiMultiSelectOption {
82
82
  />
83
83
  `, isInline: true, styles: [":host-context(tui-dropdown-mobile) input{order:100;margin-inline-start:auto}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TuiCheckbox, selector: "input[type=\"checkbox\"][tuiCheckbox]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
84
84
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectOption, decorators: [{
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectOption, decorators: [{
86
86
  type: Component,
87
87
  args: [{ standalone: true, imports: [NgIf, TuiCheckbox], template: `
88
88
  <input
@@ -96,10 +96,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
96
96
  }] });
97
97
 
98
98
  class TuiMultiSelectGroupDirective {
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
100
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectGroupDirective, isStandalone: true, selector: "[tuiMultiSelectGroup]", providers: [tuiAsOptionContent(TuiMultiSelectOption)], ngImport: i0 }); }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
100
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectGroupDirective, isStandalone: true, selector: "[tuiMultiSelectGroup]", providers: [tuiAsOptionContent(TuiMultiSelectOption)], ngImport: i0 }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectGroupDirective, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectGroupDirective, decorators: [{
103
103
  type: Directive,
104
104
  args: [{
105
105
  standalone: true,
@@ -129,10 +129,10 @@ class TuiMultiSelectNative {
129
129
  const options = Array.from(this.el.selectedOptions).map(({ index }) => index);
130
130
  this.textfield.cva?.onChange(items.flat().filter((_, i) => options.includes(i)));
131
131
  }
132
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
133
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMultiSelectNative, isStandalone: true, selector: "select[tuiMultiSelect]", inputs: { items: "items", labels: "labels", placeholder: "placeholder" }, host: { attributes: { "multiple": "" }, listeners: { "click.stop.zoneless": "0", "input": "onInput()" } }, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [{ directive: i1.TuiInputChipDirective }, { directive: i2.TuiSelectLike }], ngImport: i0, template: "<ng-container *ngIf=\"items && !isFlat(items); else flatItems\">\n <optgroup\n *ngFor=\"let group of labels; let index = index\"\n [label]=\"labels[index]\"\n >\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n </ng-container>\n</ng-container>\n\n<ng-template #flatItems>\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\n </ng-container>\n</ng-template>\n\n<ng-template\n #options\n let-items\n>\n <option\n *ngFor=\"let option of items\"\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels]), tui-data-list-wrapper:not([labels])[new]", inputs: ["items", "disabledItemHandler", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "component", type: i3.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["labels"] }, { kind: "directive", type: i2.TuiTextfieldDropdownDirective, selector: "ng-template[tuiTextfieldDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
133
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiMultiSelectNative, isStandalone: true, selector: "select[tuiMultiSelect]", inputs: { items: "items", labels: "labels", placeholder: "placeholder" }, host: { attributes: { "multiple": "" }, listeners: { "click.stop.zoneless": "0", "input": "onInput()" } }, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [{ directive: i1.TuiInputChipDirective }, { directive: i2.TuiSelectLike }], ngImport: i0, template: "<ng-container *ngIf=\"items && !isFlat(items); else flatItems\">\n <optgroup\n *ngFor=\"let group of labels; let index = index\"\n [label]=\"labels[index]\"\n >\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n </ng-container>\n</ng-container>\n\n<ng-template #flatItems>\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\n </ng-container>\n</ng-template>\n\n<ng-template\n #options\n let-items\n>\n <option\n *ngFor=\"let option of items\"\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels]), tui-data-list-wrapper:not([labels])[new]", inputs: ["items", "disabledItemHandler", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "component", type: i3.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["labels"] }, { kind: "directive", type: i2.TuiTextfieldDropdownDirective, selector: "ng-template[tuiTextfieldDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
134
134
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMultiSelectNative, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiMultiSelectNative, decorators: [{
136
136
  type: Component,
137
137
  args: [{ standalone: true, selector: 'select[tuiMultiSelect]', imports: [NgForOf, NgIf, NgTemplateOutlet, TuiDataListWrapper, TuiTextfield], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [TuiInputChipDirective, TuiSelectLike], host: {
138
138
  multiple: '',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-multi-select.mjs","sources":["../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.template.html","../../../projects/kit/components/multi-select/multi-select-option/multi-select-option.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.component.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.template.html","../../../projects/kit/components/multi-select/multi-select.ts","../../../projects/kit/components/multi-select/taiga-ui-kit-components-multi-select.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ContentChildren,\n inject,\n Input,\n type QueryList,\n signal,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_MULTI_SELECT_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n standalone: true,\n selector: 'tui-opt-group[tuiMultiSelectGroup]',\n imports: [TuiLink],\n templateUrl: './multi-select-group.template.html',\n styleUrls: ['./multi-select-group.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._label]': 'label',\n },\n})\nexport class TuiMultiSelectGroupComponent<T> {\n private readonly values = signal<readonly T[]>([]);\n private readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly control =\n inject(TuiTextfieldComponent, {optional: true})?.control ||\n inject(NgControl, {optional: true});\n\n protected readonly texts = toSignal(inject(TUI_MULTI_SELECT_TEXTS));\n protected readonly value = tuiInjectValue<readonly T[]>();\n protected readonly checked = computed(() =>\n this.values().every((item) =>\n this.value().some((value) => this.handlers.identityMatcher()(item, value)),\n ),\n );\n\n @Input()\n public label = '';\n\n @ContentChildren(TuiOptionWithValue)\n protected set options(options: QueryList<TuiOptionWithValue<T>>) {\n this.values.set(\n options\n .toArray()\n .map(({value}) => value())\n .filter(tuiIsPresent),\n );\n }\n\n protected toggle(): void {\n const values = this.values();\n const matcher = this.handlers.identityMatcher();\n const others = this.value().filter((current) =>\n values.every((item) => !matcher(current, item)),\n );\n\n this.control?.control?.setValue(this.checked() ? others : others.concat(values));\n }\n}\n","<span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()?.[checked() ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content />\n","import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TUI_TEXTFIELD_OPTIONS} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiCheckbox} from '@taiga-ui/kit/components/checkbox';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n standalone: true,\n imports: [NgIf, TuiCheckbox],\n template: `\n <input\n *ngIf=\"option\"\n tuiCheckbox\n type=\"checkbox\"\n [checked]=\"selected()\"\n [size]=\"size() === 'l' ? 'm' : 's'\"\n />\n `,\n styles: [\n `\n :host-context(tui-dropdown-mobile) input {\n order: 100;\n margin-inline-start: auto;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOption<T> {\n protected readonly option = inject<TuiOptionWithValue<T>>(TuiOptionWithValue, {\n optional: true,\n });\n\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n protected readonly value = tuiInjectValue<readonly T[]>();\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected readonly selected = computed(\n (controlValue = this.value(), optionValue = this.option?.value()) =>\n tuiIsPresent(optionValue) &&\n tuiIsPresent(controlValue) &&\n controlValue.some(\n (item) =>\n this.handlers?.identityMatcher()(item, optionValue) ??\n item === optionValue,\n ),\n );\n}\n","import {Directive} from '@angular/core';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\n\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Directive({\n standalone: true,\n selector: '[tuiMultiSelectGroup]',\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n})\nexport class TuiMultiSelectGroupDirective {}\n","import {NgForOf, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject, Input} from '@angular/core';\nimport {TuiControl} from '@taiga-ui/cdk/classes';\nimport {TUI_IS_ANDROID, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement, tuiIsPresent} from '@taiga-ui/cdk/utils';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n TuiSelectLike,\n TuiTextfield,\n TuiTextfieldComponent,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiDataListWrapper} from '@taiga-ui/kit/components/data-list-wrapper';\nimport {TuiInputChipDirective} from '@taiga-ui/kit/components/input-chip';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Component({\n standalone: true,\n selector: 'select[tuiMultiSelect]',\n imports: [NgForOf, NgIf, NgTemplateOutlet, TuiDataListWrapper, TuiTextfield],\n templateUrl: './multi-select-native.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n hostDirectives: [TuiInputChipDirective, TuiSelectLike],\n host: {\n multiple: '',\n '(click.stop.zoneless)': '0',\n '(input)': 'onInput()',\n },\n})\nexport class TuiMultiSelectNative<T> {\n private readonly control: TuiControl<readonly T[]> = inject(TuiControl);\n private readonly textfield = inject(TuiTextfieldComponent);\n\n protected readonly isFlat = tuiIsFlat;\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly el = tuiInjectElement<HTMLSelectElement>();\n protected readonly mobile =\n inject(TUI_IS_IOS) || (inject(TUI_IS_ANDROID) && 'showPicker' in this.el);\n\n protected readonly isSelected = computed(\n (value = this.control.value()) =>\n (x: T) =>\n tuiIsPresent(value) &&\n value.some((item) => this.handlers.identityMatcher()(x, item)),\n );\n\n @Input()\n public items: ReadonlyArray<readonly T[]> | readonly T[] | null = [];\n\n @Input()\n public labels: readonly string[] = [];\n\n @Input()\n public set placeholder(placeholder: string) {\n this.textfield.fillerSetter = placeholder;\n }\n\n protected onInput(): void {\n const items = this.items || [];\n const options = Array.from(this.el.selectedOptions).map(({index}) => index);\n\n this.textfield.cva?.onChange(items.flat().filter((_, i) => options.includes(i)));\n }\n}\n","<ng-container *ngIf=\"items && !isFlat(items); else flatItems\">\n <optgroup\n *ngFor=\"let group of labels; let index = index\"\n [label]=\"labels[index]\"\n >\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n </ng-container>\n</ng-container>\n\n<ng-template #flatItems>\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\n </ng-container>\n</ng-template>\n\n<ng-template\n #options\n let-items\n>\n <option\n *ngFor=\"let option of items\"\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n</ng-template>\n","import {TuiMultiSelectGroupComponent} from './multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectGroupDirective} from './multi-select-group/multi-select-group.directive';\nimport {TuiMultiSelectNative} from './multi-select-native/multi-select-native.component';\n\nexport const TuiMultiSelect = [\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiMultiSelectNative,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */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AAA,EAAA,QAAA,EAAA,mqCAAA,EAAA,CAAA;8BAoBM,KAAK,EAAA,CAAA;sBADX,KAAK;gBAIC,MAAM,EAAA,CAAA;sBADZ,KAAK;gBAIK,WAAW,EAAA,CAAA;sBADrB,KAAK;;;AEtDG,MAAA,cAAc,GAAG;IAC1B,4BAA4B;IAC5B,4BAA4B;IAC5B,oBAAoB;;;ACPxB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-multi-select.mjs","sources":["../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.template.html","../../../projects/kit/components/multi-select/multi-select-option/multi-select-option.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.component.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.template.html","../../../projects/kit/components/multi-select/multi-select.ts","../../../projects/kit/components/multi-select/taiga-ui-kit-components-multi-select.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ContentChildren,\n inject,\n Input,\n type QueryList,\n signal,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_MULTI_SELECT_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n standalone: true,\n selector: 'tui-opt-group[tuiMultiSelectGroup]',\n imports: [TuiLink],\n templateUrl: './multi-select-group.template.html',\n styleUrls: ['./multi-select-group.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._label]': 'label',\n },\n})\nexport class TuiMultiSelectGroupComponent<T> {\n private readonly values = signal<readonly T[]>([]);\n private readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly control =\n inject(TuiTextfieldComponent, {optional: true})?.control ||\n inject(NgControl, {optional: true});\n\n protected readonly texts = toSignal(inject(TUI_MULTI_SELECT_TEXTS));\n protected readonly value = tuiInjectValue<readonly T[]>();\n protected readonly checked = computed(() =>\n this.values().every((item) =>\n this.value().some((value) => this.handlers.identityMatcher()(item, value)),\n ),\n );\n\n @Input()\n public label = '';\n\n @ContentChildren(TuiOptionWithValue)\n protected set options(options: QueryList<TuiOptionWithValue<T>>) {\n this.values.set(\n options\n .toArray()\n .map(({value}) => value())\n .filter(tuiIsPresent),\n );\n }\n\n protected toggle(): void {\n const values = this.values();\n const matcher = this.handlers.identityMatcher();\n const others = this.value().filter((current) =>\n values.every((item) => !matcher(current, item)),\n );\n\n this.control?.control?.setValue(this.checked() ? others : others.concat(values));\n }\n}\n","<span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()?.[checked() ? 'none' : 'all'] }}\n </button>\n</span>\n<ng-content />\n","import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TUI_TEXTFIELD_OPTIONS} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiCheckbox} from '@taiga-ui/kit/components/checkbox';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n standalone: true,\n imports: [NgIf, TuiCheckbox],\n template: `\n <input\n *ngIf=\"option\"\n tuiCheckbox\n type=\"checkbox\"\n [checked]=\"selected()\"\n [size]=\"size() === 'l' ? 'm' : 's'\"\n />\n `,\n styles: [\n `\n :host-context(tui-dropdown-mobile) input {\n order: 100;\n margin-inline-start: auto;\n }\n `,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOption<T> {\n protected readonly option = inject<TuiOptionWithValue<T>>(TuiOptionWithValue, {\n optional: true,\n });\n\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n protected readonly value = tuiInjectValue<readonly T[]>();\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected readonly selected = computed(\n (controlValue = this.value(), optionValue = this.option?.value()) =>\n tuiIsPresent(optionValue) &&\n tuiIsPresent(controlValue) &&\n controlValue.some(\n (item) =>\n this.handlers?.identityMatcher()(item, optionValue) ??\n item === optionValue,\n ),\n );\n}\n","import {Directive} from '@angular/core';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\n\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Directive({\n standalone: true,\n selector: '[tuiMultiSelectGroup]',\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n})\nexport class TuiMultiSelectGroupDirective {}\n","import {NgForOf, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject, Input} from '@angular/core';\nimport {TuiControl} from '@taiga-ui/cdk/classes';\nimport {TUI_IS_ANDROID, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement, tuiIsPresent} from '@taiga-ui/cdk/utils';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n TuiSelectLike,\n TuiTextfield,\n TuiTextfieldComponent,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiDataListWrapper} from '@taiga-ui/kit/components/data-list-wrapper';\nimport {TuiInputChipDirective} from '@taiga-ui/kit/components/input-chip';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Component({\n standalone: true,\n selector: 'select[tuiMultiSelect]',\n imports: [NgForOf, NgIf, NgTemplateOutlet, TuiDataListWrapper, TuiTextfield],\n templateUrl: './multi-select-native.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n hostDirectives: [TuiInputChipDirective, TuiSelectLike],\n host: {\n multiple: '',\n '(click.stop.zoneless)': '0',\n '(input)': 'onInput()',\n },\n})\nexport class TuiMultiSelectNative<T> {\n private readonly control: TuiControl<readonly T[]> = inject(TuiControl);\n private readonly textfield = inject(TuiTextfieldComponent);\n\n protected readonly isFlat = tuiIsFlat;\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly el = tuiInjectElement<HTMLSelectElement>();\n protected readonly mobile =\n inject(TUI_IS_IOS) || (inject(TUI_IS_ANDROID) && 'showPicker' in this.el);\n\n protected readonly isSelected = computed(\n (value = this.control.value()) =>\n (x: T) =>\n tuiIsPresent(value) &&\n value.some((item) => this.handlers.identityMatcher()(x, item)),\n );\n\n @Input()\n public items: ReadonlyArray<readonly T[]> | readonly T[] | null = [];\n\n @Input()\n public labels: readonly string[] = [];\n\n @Input()\n public set placeholder(placeholder: string) {\n this.textfield.fillerSetter = placeholder;\n }\n\n protected onInput(): void {\n const items = this.items || [];\n const options = Array.from(this.el.selectedOptions).map(({index}) => index);\n\n this.textfield.cva?.onChange(items.flat().filter((_, i) => options.includes(i)));\n }\n}\n","<ng-container *ngIf=\"items && !isFlat(items); else flatItems\">\n <optgroup\n *ngFor=\"let group of labels; let index = index\"\n [label]=\"labels[index]\"\n >\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n </ng-container>\n</ng-container>\n\n<ng-template #flatItems>\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n <ng-container *ngIf=\"!mobile\">\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\n </ng-container>\n</ng-template>\n\n<ng-template\n #options\n let-items\n>\n <option\n *ngFor=\"let option of items\"\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n</ng-template>\n","import {TuiMultiSelectGroupComponent} from './multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectGroupDirective} from './multi-select-group/multi-select-group.directive';\nimport {TuiMultiSelectNative} from './multi-select-native/multi-select-native.component';\n\nexport const TuiMultiSelect = [\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiMultiSelectNative,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiIsPresent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MAkCa,4BAA4B,CAAA;AAXzC,IAAA,WAAA,GAAA;AAYqB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAe,EAAE,CAAC;AACjC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAsB,kBAAkB,CAAC;AAC1D,QAAA,IAAA,CAAA,OAAO,GACpB,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,OAAO;YACxD,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QAEpB,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;QAChD,IAAA,CAAA,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,UAAA,EAAA,IAAI,EAAA,QAAA,EACN,wBAAwB,EAAA,OAAA,EACzB,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,CAAC,EAAA,eAAA,EAE3D,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC,EAAA,cAAA,EACrC,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAA,IAAA,EAChD;AACF,wBAAA,QAAQ,EAAE,EAAE;AACZ,wBAAA,uBAAuB,EAAE,GAAG;AAC5B,wBAAA,SAAS,EAAE,WAAW;AACzB,qBAAA,EAAA,QAAA,EAAA,mqCAAA,EAAA;8BAoBM,KAAK,EAAA,CAAA;sBADX;gBAIM,MAAM,EAAA,CAAA;sBADZ;gBAIU,WAAW,EAAA,CAAA;sBADrB;;;AEtDE,MAAM,cAAc,GAAG;IAC1B,4BAA4B;IAC5B,4BAA4B;IAC5B,oBAAoB;;;ACPxB;;AAEG;;;;"}
@@ -0,0 +1,97 @@
1
+ import * as i0 from '@angular/core';
2
+ import { isSignal, ChangeDetectionStrategy, Component, Injectable, Directive } from '@angular/core';
3
+ import * as i2 from '@ng-web-apis/resize-observer';
4
+ import { WaResizeObserver } from '@ng-web-apis/resize-observer';
5
+ import * as i1 from '@taiga-ui/cdk/directives/animated';
6
+ import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
7
+ import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
8
+ import { TuiLoader, tuiLoaderOptionsProvider } from '@taiga-ui/core/components/loader';
9
+ import { tuiAvatarOptionsProvider } from '@taiga-ui/kit/components/avatar';
10
+ import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
11
+ import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
12
+ import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
13
+ import { TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
14
+
15
+ class TuiNotificationMiddleComponent {
16
+ constructor() {
17
+ this.el = tuiInjectElement();
18
+ this.context = injectContext();
19
+ }
20
+ onClick(target) {
21
+ if (this.closable && !this.el.contains(target)) {
22
+ this.context.$implicit.complete();
23
+ }
24
+ }
25
+ get closable() {
26
+ return isSignal(this.context.closable)
27
+ ? this.context.closable()
28
+ : this.context.closable;
29
+ }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNotificationMiddleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
31
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiNotificationMiddleComponent, isStandalone: true, selector: "tui-notification-middle", host: { listeners: { "document:click.capture": "onClick($event.target)", "document:keydown.esc": "onClick($event.currentTarget)", "waResizeObserver": "el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")" } }, providers: [
32
+ tuiLoaderOptionsProvider({ size: 'l' }),
33
+ tuiAvatarOptionsProvider({ size: 'm' }),
34
+ ], hostDirectives: [{ directive: i1.TuiAnimated }, { directive: i2.WaResizeObserver, outputs: ["waResizeObserver", "waResizeObserver"] }], ngImport: i0, template: `
35
+ <tui-loader class="t-loader" />
36
+ <ng-container *polymorpheusOutlet="context.content as text">
37
+ {{ text }}
38
+ </ng-container>
39
+ `, isInline: true, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>tui-avatar,:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiLoader, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "showLoader"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
+ }
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNotificationMiddleComponent, decorators: [{
42
+ type: Component,
43
+ args: [{ standalone: true, selector: 'tui-notification-middle', imports: [PolymorpheusOutlet, TuiLoader], template: `
44
+ <tui-loader class="t-loader" />
45
+ <ng-container *polymorpheusOutlet="context.content as text">
46
+ {{ text }}
47
+ </ng-container>
48
+ `, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
49
+ tuiLoaderOptionsProvider({ size: 'l' }),
50
+ tuiAvatarOptionsProvider({ size: 'm' }),
51
+ ], hostDirectives: [
52
+ TuiAnimated,
53
+ { directive: WaResizeObserver, outputs: ['waResizeObserver'] },
54
+ ], host: {
55
+ '(document:click.capture)': 'onClick($event.target)',
56
+ '(document:keydown.esc)': 'onClick($event.currentTarget)',
57
+ '(waResizeObserver)': 'el.style.setProperty("--t-width", el.clientWidth + "px")',
58
+ }, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>tui-avatar,:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"] }]
59
+ }] });
60
+
61
+ class TuiNotificationMiddleService extends TuiPopoverService {
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNotificationMiddleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
63
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNotificationMiddleService, providedIn: 'root', useFactory: () => new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {
64
+ closable: false,
65
+ }) }); }
66
+ }
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNotificationMiddleService, decorators: [{
68
+ type: Injectable,
69
+ args: [{
70
+ providedIn: 'root',
71
+ useFactory: () => new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {
72
+ closable: false,
73
+ }),
74
+ }]
75
+ }] });
76
+
77
+ class TuiNotificationMiddle extends TuiPopoverDirective {
78
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNotificationMiddle, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
79
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiNotificationMiddle, isStandalone: true, selector: "ng-template[tuiNotificationMiddle]", inputs: { options: ["tuiNotificationMiddleOptions", "options"], open: ["tuiNotificationMiddle", "open"] }, outputs: { openChange: "tuiNotificationMiddleChange" }, providers: [tuiAsPopover(TuiNotificationMiddleService)], usesInheritance: true, ngImport: i0 }); }
80
+ }
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiNotificationMiddle, decorators: [{
82
+ type: Directive,
83
+ args: [{
84
+ standalone: true,
85
+ selector: 'ng-template[tuiNotificationMiddle]',
86
+ inputs: ['options: tuiNotificationMiddleOptions', 'open: tuiNotificationMiddle'],
87
+ outputs: ['openChange: tuiNotificationMiddleChange'],
88
+ providers: [tuiAsPopover(TuiNotificationMiddleService)],
89
+ }]
90
+ }] });
91
+
92
+ /**
93
+ * Generated bundle index. Do not edit.
94
+ */
95
+
96
+ export { TuiNotificationMiddle, TuiNotificationMiddleComponent, TuiNotificationMiddleService };
97
+ //# sourceMappingURL=taiga-ui-kit-components-notification-middle.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-components-notification-middle.mjs","sources":["../../../projects/kit/components/notification-middle/notification-middle.component.ts","../../../projects/kit/components/notification-middle/notification-middle.service.ts","../../../projects/kit/components/notification-middle/notification-middle.directive.ts","../../../projects/kit/components/notification-middle/taiga-ui-kit-components-notification-middle.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, isSignal, type Signal} from '@angular/core';\nimport {WaResizeObserver} from '@ng-web-apis/resize-observer';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiLoader, tuiLoaderOptionsProvider} from '@taiga-ui/core/components/loader';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nexport interface TuiNotificationMiddleOptions {\n closable: Signal<boolean> | boolean;\n}\n\n@Component({\n standalone: true,\n selector: 'tui-notification-middle',\n imports: [PolymorpheusOutlet, TuiLoader],\n template: `\n <tui-loader class=\"t-loader\" />\n <ng-container *polymorpheusOutlet=\"context.content as text\">\n {{ text }}\n </ng-container>\n `,\n styleUrls: ['./notification-middle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiLoaderOptionsProvider({size: 'l'}),\n tuiAvatarOptionsProvider({size: 'm'}),\n ],\n hostDirectives: [\n TuiAnimated,\n {directive: WaResizeObserver, outputs: ['waResizeObserver']},\n ],\n host: {\n '(document:click.capture)': 'onClick($event.target)',\n '(document:keydown.esc)': 'onClick($event.currentTarget)',\n '(waResizeObserver)': 'el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")',\n },\n})\nexport class TuiNotificationMiddleComponent {\n protected readonly el = tuiInjectElement();\n protected readonly context =\n injectContext<TuiPopover<TuiNotificationMiddleOptions, void>>();\n\n protected onClick(target: HTMLElement): void {\n if (this.closable && !this.el.contains(target)) {\n this.context.$implicit.complete();\n }\n }\n\n private get closable(): boolean {\n return isSignal(this.context.closable)\n ? this.context.closable()\n : this.context.closable;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {\n TuiNotificationMiddleComponent,\n type TuiNotificationMiddleOptions,\n} from './notification-middle.component';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {\n closable: false,\n }),\n})\nexport class TuiNotificationMiddleService extends TuiPopoverService<TuiNotificationMiddleOptions> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiNotificationMiddleOptions} from './notification-middle.component';\nimport {TuiNotificationMiddleService} from './notification-middle.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiNotificationMiddle]',\n inputs: ['options: tuiNotificationMiddleOptions', 'open: tuiNotificationMiddle'],\n outputs: ['openChange: tuiNotificationMiddleChange'],\n providers: [tuiAsPopover(TuiNotificationMiddleService)],\n})\nexport class TuiNotificationMiddle extends TuiPopoverDirective<TuiNotificationMiddleOptions> {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAuCa,8BAA8B,CAAA;AA1B3C,IAAA,WAAA,GAAA;QA2BuB,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;QACvB,IAAA,CAAA,OAAO,GACtB,aAAa,EAAkD;AAatE,IAAA;AAXa,IAAA,OAAO,CAAC,MAAmB,EAAA;AACjC,QAAA,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC5C,YAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE;QACrC;IACJ;AAEA,IAAA,IAAY,QAAQ,GAAA;AAChB,QAAA,OAAO,QAAQ,CAAC,IAAI,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IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;oBAClB,UAAU,EAAE,MACR,iCAAiC,WAAW,EAAE,8BAA8B,EAAE;AAC1E,wBAAA,QAAQ,EAAE,KAAK;qBAClB,CAAC;AACT,iBAAA;;;ACDK,MAAO,qBAAsB,SAAQ,mBAAiD,CAAA;8GAA/E,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,oPAFnB,CAAC,YAAY,CAAC,4BAA4B,CAAC,CAAC,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAE9C,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oCAAoC;AAC9C,oBAAA,MAAM,EAAE,CAAC,uCAAuC,EAAE,6BAA6B,CAAC;oBAChF,OAAO,EAAE,CAAC,yCAAyC,CAAC;AACpD,oBAAA,SAAS,EAAE,CAAC,YAAY,CAAC,4BAA4B,CAAC,CAAC;AAC1D,iBAAA;;;ACbD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { signal, inject, Component, ChangeDetectionStrategy, ViewChildren, Input } from '@angular/core';
3
+ import { signal, inject, Input, ViewChildren, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { FormsModule } from '@angular/forms';
6
6
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
@@ -48,8 +48,8 @@ class TuiPager {
48
48
  }
49
49
  this.left.set(-1 * left);
50
50
  }
51
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPager, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiPager, isStandalone: true, selector: "tui-pager", inputs: { max: "max", count: "count", size: "size", valueContent: "valueContent", index: "index" }, host: { properties: { "attr.data-size": "size", "style.--t-gap.px": "gap", "style.max-width.px": "maxWidth()" } }, providers: [
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPager, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiPager, isStandalone: true, selector: "tui-pager", inputs: { max: "max", count: "count", size: "size", valueContent: "valueContent", index: "index" }, host: { properties: { "attr.data-size": "size", "style.--t-gap.px": "gap", "style.max-width.px": "maxWidth()" } }, providers: [
53
53
  MutationObserverService,
54
54
  {
55
55
  provide: WA_MUTATION_OBSERVER_INIT,
@@ -60,9 +60,9 @@ class TuiPager {
60
60
  subtree: true,
61
61
  },
62
62
  },
63
- ], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"t-items\"\n [style.transform]=\"'translateX(calc(var(--tui-inline) * ' + left() + 'px))'\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{--t-size: .5rem;display:flex;align-items:center;overflow:hidden}:host :host-context(tui-root._mobile){--t-size: .375rem}:host[data-size=m]{min-block-size:1.25rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{min-block-size:1rem;--t-small-dot: scale(.5);--t-super-small-dot: scale(.25);--t-icon-size: .875rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiRepeatTimes, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
63
+ ], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{--t-size: .5rem;display:flex;align-items:center;overflow:hidden}:host :host-context(tui-root._mobile){--t-size: .375rem}:host[data-size=m]{min-block-size:1.25rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{min-block-size:1rem;--t-small-dot: scale(.5);--t-super-small-dot: scale(.25);--t-icon-size: .875rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiRepeatTimes, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64
64
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPager, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPager, decorators: [{
66
66
  type: Component,
67
67
  args: [{ standalone: true, selector: 'tui-pager', imports: [FormsModule, NgTemplateOutlet, TuiRepeatTimes], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
68
68
  MutationObserverService,
@@ -79,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
79
79
  '[attr.data-size]': 'size',
80
80
  '[style.--t-gap.px]': 'gap',
81
81
  '[style.max-width.px]': 'maxWidth()',
82
- }, template: "<div\n class=\"t-items\"\n [style.transform]=\"'translateX(calc(var(--tui-inline) * ' + left() + 'px))'\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{--t-size: .5rem;display:flex;align-items:center;overflow:hidden}:host :host-context(tui-root._mobile){--t-size: .375rem}:host[data-size=m]{min-block-size:1.25rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{min-block-size:1rem;--t-small-dot: scale(.5);--t-super-small-dot: scale(.25);--t-icon-size: .875rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"] }]
82
+ }, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{--t-size: .5rem;display:flex;align-items:center;overflow:hidden}:host :host-context(tui-root._mobile){--t-size: .375rem}:host[data-size=m]{min-block-size:1.25rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{min-block-size:1rem;--t-small-dot: scale(.5);--t-super-small-dot: scale(.25);--t-icon-size: .875rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"] }]
83
83
  }], propDecorators: { items: [{
84
84
  type: ViewChildren,
85
85
  args: ['item']
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pager.mjs","sources":["../../../projects/kit/components/pager/pager.component.ts","../../../projects/kit/components/pager/pager.component.html","../../../projects/kit/components/pager/taiga-ui-kit-components-pager.ts"],"sourcesContent":["import {NgTemplateOutlet} from '@angular/common';\nimport {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n type ElementRef,\n inject,\n Input,\n type OnChanges,\n type QueryList,\n signal,\n type TemplateRef,\n ViewChildren,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {FormsModule} from '@angular/forms';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiRepeatTimes} from '@taiga-ui/cdk/directives/repeat-times';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {delay, map} from 'rxjs';\n\n@Component({\n standalone: true,\n selector: 'tui-pager',\n imports: [FormsModule, NgTemplateOutlet, TuiRepeatTimes],\n templateUrl: './pager.component.html',\n styleUrls: ['./pager.styles.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n attributeOldValue: true,\n characterData: true,\n childList: true,\n subtree: true,\n },\n },\n ],\n host: {\n '[attr.data-size]': 'size',\n '[style.--t-gap.px]': 'gap',\n '[style.max-width.px]': 'maxWidth()',\n },\n})\nexport class TuiPager implements OnChanges, AfterViewInit {\n @ViewChildren('item')\n protected items?: QueryList<ElementRef<HTMLElement>>;\n\n protected start = 0;\n protected end = 0;\n protected left = signal(0);\n protected readonly maxWidth = toSignal(\n inject(MutationObserverService, {self: true}).pipe(\n delay(0),\n map(() => this.visibleWidth),\n tuiWatch(),\n takeUntilDestroyed(),\n ),\n );\n\n @Input()\n public max = 6;\n\n @Input()\n public count = this.max;\n\n @Input()\n public size: TuiSizeS = 'm';\n\n @Input()\n public valueContent?: TemplateRef<unknown>;\n\n @Input()\n public index = 0;\n\n public ngOnChanges(): void {\n this.move();\n }\n\n public ngAfterViewInit(): void {\n this.move();\n }\n\n protected get gap(): number {\n return this.size === 'm' ? 9 : 7;\n }\n\n private get visibleRange(): [start: number, end: number] {\n const max = this.max > this.count ? this.count : this.max;\n\n const start = Math.min(\n Math.max(this.index - Math.floor(max / 2), 0),\n this.count - max,\n );\n\n return [start, start + (max - 1)];\n }\n\n private get visibleWidth(): number {\n return (\n (this.items?.map((item) => item.nativeElement.offsetWidth ?? 0) ?? [])\n .slice(this.start, this.end + 1)\n .reduce((sum, item) => sum + item + this.gap, 0) - this.gap\n );\n }\n\n private move(): void {\n const [start, end] = this.visibleRange;\n\n this.start = start;\n this.end = end;\n\n let left = this.start * this.gap;\n\n for (let i = 0; i < this.start; i++) {\n left += this.items?.get(i)?.nativeElement.offsetWidth ?? 0;\n }\n\n this.left.set(-1 * left);\n }\n}\n","<div\n class=\"t-items\"\n [style.transform]=\"'translateX(calc(var(--tui-inline) * ' + left() + 'px))'\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAyBA,MAyBa,QAAQ,CAAA;AAzBrB,IAAA,WAAA,GAAA;QA6Bc,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;QACV,IAAG,CAAA,GAAA,GAAG,CAAC,CAAC;AACR,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACR,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAClC,MAAM,CAAC,uBAAuB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CAC9C,KAAK,CAAC,CAAC,CAAC,EACR,GAAG,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,EAC5B,QAAQ,EAAE,EACV,kBAAkB,EAAE,CACvB,CACJ,CAAC;QAGK,IAAG,CAAA,GAAA,GAAG,CAAC,CAAC;AAGR,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;QAGjB,IAAI,CAAA,IAAA,GAAa,GAAG,CAAC;QAMrB,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;AA+CpB,KAAA;IA7CU,WAAW,GAAA;QACd,IAAI,CAAC,IAAI,EAAE,CAAC;KACf;IAEM,eAAe,GAAA;Q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AgBb,GAAG,EAAA,CAAA;sBADT,KAAK;gBAIC,KAAK,EAAA,CAAA;sBADX,KAAK;gBAIC,IAAI,EAAA,CAAA;sBADV,KAAK;gBAIC,YAAY,EAAA,CAAA;sBADlB,KAAK;gBAIC,KAAK,EAAA,CAAA;sBADX,KAAK;;;AE9EV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-pager.mjs","sources":["../../../projects/kit/components/pager/pager.component.ts","../../../projects/kit/components/pager/pager.component.html","../../../projects/kit/components/pager/taiga-ui-kit-components-pager.ts"],"sourcesContent":["import {NgTemplateOutlet} from '@angular/common';\nimport {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n type ElementRef,\n inject,\n Input,\n type OnChanges,\n type QueryList,\n signal,\n type TemplateRef,\n ViewChildren,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {FormsModule} from '@angular/forms';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiRepeatTimes} from '@taiga-ui/cdk/directives/repeat-times';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {delay, map} from 'rxjs';\n\n@Component({\n standalone: true,\n selector: 'tui-pager',\n imports: [FormsModule, NgTemplateOutlet, TuiRepeatTimes],\n templateUrl: './pager.component.html',\n styleUrls: ['./pager.styles.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n attributeOldValue: true,\n characterData: true,\n childList: true,\n subtree: true,\n },\n },\n ],\n host: {\n '[attr.data-size]': 'size',\n '[style.--t-gap.px]': 'gap',\n '[style.max-width.px]': 'maxWidth()',\n },\n})\nexport class TuiPager implements OnChanges, AfterViewInit {\n @ViewChildren('item')\n protected items?: QueryList<ElementRef<HTMLElement>>;\n\n protected start = 0;\n protected end = 0;\n protected left = signal(0);\n protected readonly maxWidth = toSignal(\n inject(MutationObserverService, {self: true}).pipe(\n delay(0),\n map(() => this.visibleWidth),\n tuiWatch(),\n takeUntilDestroyed(),\n ),\n );\n\n @Input()\n public max = 6;\n\n @Input()\n public count = this.max;\n\n @Input()\n public size: TuiSizeS = 'm';\n\n @Input()\n public valueContent?: TemplateRef<unknown>;\n\n @Input()\n public index = 0;\n\n public ngOnChanges(): void {\n this.move();\n }\n\n public ngAfterViewInit(): void {\n this.move();\n }\n\n protected get gap(): number {\n return this.size === 'm' ? 9 : 7;\n }\n\n private get visibleRange(): [start: number, end: number] {\n const max = this.max > this.count ? this.count : this.max;\n\n const start = Math.min(\n Math.max(this.index - Math.floor(max / 2), 0),\n this.count - max,\n );\n\n return [start, start + (max - 1)];\n }\n\n private get visibleWidth(): number {\n return (\n (this.items?.map((item) => item.nativeElement.offsetWidth ?? 0) ?? [])\n .slice(this.start, this.end + 1)\n .reduce((sum, item) => sum + item + this.gap, 0) - this.gap\n );\n }\n\n private move(): void {\n const [start, end] = this.visibleRange;\n\n this.start = start;\n this.end = end;\n\n let left = this.start * this.gap;\n\n for (let i = 0; i < this.start; i++) {\n left += this.items?.get(i)?.nativeElement.offsetWidth ?? 0;\n }\n\n this.left.set(-1 * left);\n }\n}\n","<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAkDa,QAAQ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