@taiga-ui/kit 4.52.0-canary.932d3ef → 4.52.0-canary.9c7b1f0

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 (511) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-labeled.component.d.ts +3 -3
  9. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  10. package/components/avatar/avatar-stack.component.d.ts +2 -2
  11. package/components/avatar/avatar.directive.d.ts +4 -3
  12. package/components/badge/badge.directive.d.ts +2 -2
  13. package/components/badge/badge.options.d.ts +1 -3
  14. package/components/badge-notification/badge-notification.component.d.ts +2 -3
  15. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  16. package/components/badged-content/badged-content.directive.d.ts +2 -3
  17. package/components/block/block.directive.d.ts +4 -4
  18. package/components/block/block.options.d.ts +2 -4
  19. package/components/breadcrumbs/breadcrumbs.component.d.ts +6 -7
  20. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  21. package/components/button-loading/button-loading.component.d.ts +5 -5
  22. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  23. package/components/calendar-range/calendar-range.component.d.ts +1 -3
  24. package/components/calendar-range/day-range-period.d.ts +2 -1
  25. package/components/carousel/carousel-autoscroll.directive.d.ts +1 -2
  26. package/components/carousel/carousel-scroll.directive.d.ts +1 -1
  27. package/components/carousel/carousel.component.d.ts +15 -18
  28. package/components/carousel/carousel.directive.d.ts +5 -4
  29. package/components/checkbox/checkbox.component.d.ts +7 -18
  30. package/components/checkbox/checkbox.options.d.ts +5 -9
  31. package/components/chip/chip.directive.d.ts +2 -4
  32. package/components/chip/chip.options.d.ts +1 -3
  33. package/components/combo-box/combo-box.d.ts +5 -0
  34. package/components/combo-box/combo-box.directive.d.ts +7 -9
  35. package/components/combo-box/index.d.ts +1 -0
  36. package/components/comment/comment.directive.d.ts +2 -2
  37. package/components/compass/compass.component.d.ts +2 -2
  38. package/components/confirm/confirm.component.d.ts +5 -3
  39. package/components/confirm/confirm.service.d.ts +3 -2
  40. package/{directives → components}/copy/copy.component.d.ts +4 -5
  41. package/{directives → components}/copy/copy.directive.d.ts +4 -6
  42. package/{directives → components}/copy/copy.options.d.ts +1 -1
  43. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  44. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  45. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  46. package/components/data-list-wrapper/index.d.ts +1 -1
  47. package/components/drawer/drawer.component.d.ts +3 -4
  48. package/components/files/file/file.component.d.ts +16 -29
  49. package/components/files/file/file.options.d.ts +1 -1
  50. package/components/files/files/files.component.d.ts +7 -10
  51. package/components/files/input-files/input-files.component.d.ts +2 -2
  52. package/components/files/input-files/input-files.content.d.ts +7 -8
  53. package/components/files/input-files/input-files.directive.d.ts +2 -2
  54. package/components/files/input-files/input-files.options.d.ts +1 -3
  55. package/components/filter/filter.component.d.ts +9 -12
  56. package/components/fullscreen/fullscreen.component.d.ts +11 -0
  57. package/components/fullscreen/index.d.ts +1 -0
  58. package/components/index.d.ts +3 -5
  59. package/components/input-chip/input-chip.component.d.ts +9 -8
  60. package/components/input-chip/input-chip.d.ts +5 -1
  61. package/components/input-chip/input-chip.directive.d.ts +7 -12
  62. package/components/input-color/index.d.ts +1 -0
  63. package/components/input-color/input-color.component.d.ts +10 -14
  64. package/components/input-color/input-color.d.ts +5 -0
  65. package/components/input-date/input-date.component.d.ts +2 -2
  66. package/components/input-date/input-date.d.ts +4 -1
  67. package/components/input-date/input-date.directive.d.ts +21 -22
  68. package/components/input-date/input-date.options.d.ts +3 -3
  69. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  70. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  71. package/components/input-date-range/input-date-range.d.ts +4 -1
  72. package/components/input-date-range/input-date-range.directive.d.ts +9 -10
  73. package/components/input-date-range/input-date-range.options.d.ts +2 -2
  74. package/components/input-date-time/input-date-time.d.ts +4 -1
  75. package/components/input-date-time/input-date-time.directive.d.ts +14 -14
  76. package/components/input-date-time/input-date-time.options.d.ts +2 -2
  77. package/components/input-inline/input-inline.component.d.ts +3 -2
  78. package/components/input-month/input-month.component.d.ts +3 -5
  79. package/components/input-month/input-month.d.ts +4 -1
  80. package/components/input-month/input-month.directive.d.ts +6 -5
  81. package/components/input-month-range/input-month-range.d.ts +4 -1
  82. package/components/input-month-range/input-month-range.directive.d.ts +6 -5
  83. package/components/input-number/index.d.ts +3 -0
  84. package/components/input-number/input-number.d.ts +7 -2
  85. package/components/input-number/input-number.directive.d.ts +11 -28
  86. package/components/input-number/input-number.options.d.ts +4 -7
  87. package/components/input-number/number-mask.directive.d.ts +42 -0
  88. package/components/input-number/quantum.directive.d.ts +10 -8
  89. package/components/input-number/step/input-number-step.component.d.ts +11 -10
  90. package/components/input-number/transformers/bigint.value-transformer.d.ts +11 -0
  91. package/components/input-number/transformers/number.value-transformer.d.ts +11 -0
  92. package/components/input-phone/index.d.ts +1 -0
  93. package/components/input-phone/input-phone.d.ts +5 -0
  94. package/components/input-phone/input-phone.directive.d.ts +12 -14
  95. package/components/input-phone-international/index.d.ts +1 -0
  96. package/components/input-phone-international/input-phone-international.component.d.ts +28 -36
  97. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  98. package/components/input-phone-international/input-phone-international.options.d.ts +2 -3
  99. package/components/input-pin/index.d.ts +1 -0
  100. package/components/input-pin/input-pin.component.d.ts +6 -7
  101. package/components/input-pin/input-pin.d.ts +5 -0
  102. package/components/input-range/index.d.ts +0 -1
  103. package/components/input-range/input-range.component.d.ts +29 -62
  104. package/components/input-slider/input-slider.d.ts +4 -1
  105. package/components/input-slider/input-slider.directive.d.ts +6 -7
  106. package/components/input-time/input-time.component.d.ts +1 -3
  107. package/components/input-time/input-time.d.ts +4 -1
  108. package/components/input-time/input-time.directive.d.ts +9 -11
  109. package/components/input-year/input-year.d.ts +4 -1
  110. package/components/input-year/input-year.directive.d.ts +8 -10
  111. package/components/input-year/input-year.options.d.ts +2 -2
  112. package/components/items-with-more/items-with-more.component.d.ts +6 -6
  113. package/components/items-with-more/items-with-more.directive.d.ts +6 -6
  114. package/components/like/like.component.d.ts +4 -11
  115. package/components/like/like.options.d.ts +3 -4
  116. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  117. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  118. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  119. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  120. package/components/multi-select/multi-select-native/multi-select-native.component.d.ts +5 -4
  121. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  122. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  123. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  124. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  125. package/components/pager/pager.component.d.ts +13 -13
  126. package/components/pagination/index.d.ts +1 -0
  127. package/components/pagination/pagination.component.d.ts +25 -54
  128. package/components/pagination/pagination.options.d.ts +7 -0
  129. package/components/pin/pin.directive.d.ts +2 -2
  130. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  131. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  132. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  133. package/components/preview/index.d.ts +1 -0
  134. package/components/preview/pagination/preview-pagination.component.d.ts +6 -10
  135. package/components/preview/preview.component.d.ts +6 -6
  136. package/components/preview/preview.d.ts +2 -1
  137. package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +1 -3
  138. package/components/preview/zoom/preview-zoom.component.d.ts +11 -17
  139. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  140. package/components/progress/progress-bar/progress-bar.component.d.ts +3 -4
  141. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  142. package/components/progress/progress-circle/progress-circle.component.d.ts +7 -11
  143. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  144. package/components/progress/progress.options.d.ts +1 -3
  145. package/components/pulse/pulse.component.d.ts +2 -2
  146. package/components/push/push-alert.component.d.ts +4 -3
  147. package/components/push/push.component.d.ts +7 -8
  148. package/components/push/push.directive.d.ts +4 -6
  149. package/components/push/push.options.d.ts +5 -8
  150. package/components/push/push.service.d.ts +6 -2
  151. package/components/radio/radio.component.d.ts +8 -9
  152. package/components/radio/radio.directive.d.ts +2 -2
  153. package/components/radio/radio.options.d.ts +2 -5
  154. package/components/radio-list/radio-list.component.d.ts +11 -9
  155. package/components/range/range-change.directive.d.ts +1 -2
  156. package/components/range/range.component.d.ts +16 -25
  157. package/components/rating/rating.component.d.ts +5 -5
  158. package/components/rating/rating.options.d.ts +6 -6
  159. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  160. package/components/segmented/segmented.component.d.ts +4 -6
  161. package/components/segmented/segmented.directive.d.ts +6 -7
  162. package/components/select/native-select/native-select.component.d.ts +7 -8
  163. package/components/select/select.d.ts +4 -1
  164. package/components/select/select.directive.d.ts +4 -3
  165. package/components/slider/helpers/key-steps.d.ts +1 -2
  166. package/components/slider/helpers/slider-key-steps.directive.d.ts +15 -23
  167. package/components/slider/helpers/slider-readonly.directive.d.ts +2 -4
  168. package/components/slider/helpers/slider-thumb-label.component.d.ts +2 -4
  169. package/components/slider/slider.component.d.ts +4 -7
  170. package/components/slider/slider.options.d.ts +1 -6
  171. package/components/status/status.directive.d.ts +2 -2
  172. package/components/stepper/step.component.d.ts +14 -9
  173. package/components/stepper/stepper.component.d.ts +5 -12
  174. package/components/switch/switch.component.d.ts +8 -19
  175. package/components/switch/switch.options.d.ts +4 -8
  176. package/components/tabs/tabs-horizontal.directive.d.ts +4 -5
  177. package/components/tabs/tabs-vertical.directive.d.ts +2 -2
  178. package/components/tabs/tabs-with-more.component.d.ts +13 -17
  179. package/components/tabs/tabs.directive.d.ts +5 -7
  180. package/components/tabs/tabs.options.d.ts +1 -6
  181. package/components/textarea/index.d.ts +2 -1
  182. package/components/textarea/textarea.component.d.ts +10 -11
  183. package/components/textarea/textarea.d.ts +6 -0
  184. package/components/textarea/textarea.directive.d.ts +13 -0
  185. package/components/tiles/tile.component.d.ts +7 -10
  186. package/components/tiles/tile.service.d.ts +1 -1
  187. package/components/tiles/tiles.component.d.ts +4 -7
  188. package/components/toast/index.d.ts +5 -0
  189. package/components/toast/toast.component.d.ts +18 -0
  190. package/components/toast/toast.d.ts +3 -0
  191. package/components/toast/toast.directive.d.ts +7 -0
  192. package/components/toast/toast.options.d.ts +10 -0
  193. package/components/toast/toast.service.d.ts +17 -0
  194. package/components/tree/components/tree/tree.component.d.ts +7 -7
  195. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  196. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  197. package/components/tree/directives/tree-children.directive.d.ts +2 -2
  198. package/components/tree/directives/tree-controller.directive.d.ts +4 -5
  199. package/components/tree/directives/tree-item-controller.directive.d.ts +2 -2
  200. package/components/tree/directives/tree-node.directive.d.ts +5 -4
  201. package/components/tree/misc/tree.constants.d.ts +0 -3
  202. package/components/tree/misc/tree.tokens.d.ts +1 -6
  203. package/directives/appearance-proxy/appearance-proxy.directive.d.ts +10 -0
  204. package/directives/appearance-proxy/index.d.ts +1 -0
  205. package/directives/button-select/button-select.directive.d.ts +4 -4
  206. package/directives/chevron/chevron.directive.d.ts +2 -3
  207. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  208. package/directives/fade/fade.directive.d.ts +6 -6
  209. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  210. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  211. package/directives/highlight/highlight.directive.d.ts +4 -4
  212. package/directives/index.d.ts +1 -3
  213. package/directives/password/password.directive.d.ts +1 -1
  214. package/directives/present/present.directive.d.ts +2 -4
  215. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  216. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  217. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  218. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  219. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +2 -2
  220. package/directives/unmask-handler/unmask-handler.directive.d.ts +3 -3
  221. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  222. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
  224. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-avatar.mjs +54 -80
  226. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +11 -18
  228. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-badge.mjs +16 -27
  230. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +9 -12
  232. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  234. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +19 -39
  236. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +19 -27
  238. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -17
  240. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +25 -26
  242. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-carousel.mjs +70 -123
  244. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +18 -76
  246. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-chip.mjs +18 -34
  248. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +45 -50
  250. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  252. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-compass.mjs +9 -11
  254. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -17
  256. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-copy.mjs +106 -0
  258. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  259. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -78
  260. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-drawer.mjs +15 -32
  262. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-files.mjs +118 -245
  264. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-filter.mjs +21 -34
  266. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +44 -0
  268. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  269. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +72 -81
  270. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-input-color.mjs +30 -33
  272. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +36 -53
  274. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +37 -37
  276. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +42 -59
  278. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-components-input-date.mjs +58 -72
  280. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +10 -13
  282. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +30 -28
  284. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-components-input-month.mjs +43 -51
  286. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-components-input-number.mjs +270 -214
  288. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +126 -159
  290. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +40 -46
  292. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +26 -24
  294. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-components-input-range.mjs +68 -91
  296. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +46 -50
  298. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-components-input-time.mjs +64 -71
  300. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-components-input-year.mjs +33 -40
  302. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +50 -72
  304. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  306. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -82
  308. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -12
  310. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +44 -60
  312. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +38 -34
  314. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-components-pager.mjs +31 -45
  316. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-components-pagination.mjs +75 -150
  318. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  319. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  320. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  321. package/fesm2022/taiga-ui-kit-components-preview.mjs +98 -158
  322. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  323. package/fesm2022/taiga-ui-kit-components-progress.mjs +93 -117
  324. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  325. package/fesm2022/taiga-ui-kit-components-pulse.mjs +7 -11
  326. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  327. package/fesm2022/taiga-ui-kit-components-push.mjs +54 -74
  328. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  329. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +23 -35
  330. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  331. package/fesm2022/taiga-ui-kit-components-radio.mjs +35 -41
  332. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  333. package/fesm2022/taiga-ui-kit-components-range.mjs +42 -96
  334. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  335. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  336. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  337. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  338. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  339. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  340. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-components-select.mjs +81 -62
  342. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  343. package/fesm2022/taiga-ui-kit-components-slider.mjs +96 -122
  344. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  345. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  346. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  347. package/fesm2022/taiga-ui-kit-components-stepper.mjs +61 -88
  348. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  349. package/fesm2022/taiga-ui-kit-components-switch.mjs +22 -64
  350. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  351. package/fesm2022/taiga-ui-kit-components-tabs.mjs +96 -166
  352. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  353. package/fesm2022/taiga-ui-kit-components-textarea.mjs +62 -82
  354. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  355. package/fesm2022/taiga-ui-kit-components-tiles.mjs +38 -71
  356. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  357. package/fesm2022/taiga-ui-kit-components-toast.mjs +164 -0
  358. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  359. package/fesm2022/taiga-ui-kit-components-tree.mjs +92 -127
  360. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  361. package/fesm2022/taiga-ui-kit-components.mjs +3 -5
  362. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  363. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +27 -0
  364. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -0
  365. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  366. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  367. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  368. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  369. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
  370. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  371. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -15
  372. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  373. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  374. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  375. package/fesm2022/taiga-ui-kit-directives-fade.mjs +28 -40
  376. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  377. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  378. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  379. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +16 -21
  380. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  381. package/fesm2022/taiga-ui-kit-directives-password.mjs +14 -16
  382. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  383. package/fesm2022/taiga-ui-kit-directives-present.mjs +10 -18
  384. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  385. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  386. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  387. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  388. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  389. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
  390. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  391. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +17 -22
  392. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  393. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +10 -14
  394. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  395. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +10 -15
  396. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  397. package/fesm2022/taiga-ui-kit-directives.mjs +1 -3
  398. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  399. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  400. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  401. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  402. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  403. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +22 -36
  404. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  405. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
  406. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  407. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +23 -27
  408. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  409. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  410. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  411. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -8
  412. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  413. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  414. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  415. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  416. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  417. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
  418. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  419. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -126
  420. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  421. package/fesm2022/taiga-ui-kit-utils.mjs +3 -15
  422. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  423. package/package.json +49 -57
  424. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  425. package/pipes/auto-color/index.d.ts +1 -0
  426. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +5 -2
  427. package/pipes/flag/flag.pipe.d.ts +13 -0
  428. package/pipes/flag/index.d.ts +1 -0
  429. package/pipes/hide-selected/hide-selected.pipe.d.ts +2 -0
  430. package/pipes/index.d.ts +3 -1
  431. package/pipes/initials/index.d.ts +1 -0
  432. package/pipes/initials/initials.pipe.d.ts +7 -0
  433. package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
  434. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  435. package/styles/components/avatar.less +188 -0
  436. package/styles/components/badge.less +4 -3
  437. package/styles/components/block.less +4 -4
  438. package/styles/components/checkbox.less +14 -12
  439. package/styles/components/chip.less +15 -4
  440. package/styles/components/comment.less +1 -1
  441. package/styles/components/like.less +4 -9
  442. package/styles/components/message.less +1 -1
  443. package/styles/components/pin.less +6 -10
  444. package/styles/components/radio.less +1 -1
  445. package/styles/components/switch.less +12 -11
  446. package/styles/components/toast.less +44 -0
  447. package/tokens/i18n.d.ts +26 -26
  448. package/tokens/index.d.ts +0 -8
  449. package/utils/index.d.ts +0 -2
  450. package/utils/maskito.binding.d.ts +1 -1
  451. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  452. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  453. package/components/accordion/accordion-item.component.d.ts +0 -25
  454. package/components/action-bar/action-bar.d.ts +0 -3
  455. package/components/action-bar/action-bar.directive.d.ts +0 -6
  456. package/components/elastic-container/elastic-container.component.d.ts +0 -8
  457. package/components/elastic-container/elastic-container.directive.d.ts +0 -7
  458. package/components/elastic-container/index.d.ts +0 -2
  459. package/components/floating-container/floating-container.directive.d.ts +0 -7
  460. package/components/floating-container/index.d.ts +0 -1
  461. package/components/input-password/index.d.ts +0 -2
  462. package/components/input-password/input-password.component.d.ts +0 -16
  463. package/components/input-password/input-password.options.d.ts +0 -24
  464. package/components/input-range/input-range.d.ts +0 -3
  465. package/components/pdf-viewer/index.d.ts +0 -4
  466. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  467. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  468. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  469. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  470. package/components/slides/index.d.ts +0 -1
  471. package/components/slides/slides.directive.d.ts +0 -11
  472. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  473. package/directives/button-close/button-close.directive.d.ts +0 -5
  474. package/directives/button-close/index.d.ts +0 -1
  475. package/directives/lazy-loading/index.d.ts +0 -2
  476. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  477. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  478. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -78
  479. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
  480. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -43
  481. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
  482. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -95
  483. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  484. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  485. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  486. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  487. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  488. package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -57
  489. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
  490. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +0 -39
  491. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +0 -1
  492. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -121
  493. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  494. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  495. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  496. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  497. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  498. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  499. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  500. package/pipes/field-error/index.d.ts +0 -2
  501. package/tokens/calendar-date-stream.d.ts +0 -10
  502. package/tokens/date-inputs-value-transformers.d.ts +0 -19
  503. package/tokens/input-date-options.d.ts +0 -15
  504. package/tokens/items-handlers.d.ts +0 -26
  505. package/tokens/mobile-calendar.d.ts +0 -6
  506. package/tokens/month-formatter.d.ts +0 -5
  507. package/tokens/validation-errors.d.ts +0 -5
  508. package/utils/phone.d.ts +0 -3
  509. package/utils/toggle-day.d.ts +0 -2
  510. /package/{directives → components}/copy/copy.d.ts +0 -0
  511. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1,12 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, signal, Input, Output, ChangeDetectionStrategy, ViewEncapsulation, Component, PLATFORM_ID, Injectable, ViewChild, Directive } from '@angular/core';
2
+ import { InjectionToken, inject, input, model, signal, ChangeDetectionStrategy, ViewEncapsulation, Component, PLATFORM_ID, Injectable, viewChild, ElementRef, Directive } from '@angular/core';
3
3
  import { tuiInjectElement, tuiGetActualTarget, tuiIsElement } from '@taiga-ui/cdk/utils/dom';
4
4
  import { isPlatformBrowser } from '@angular/common';
5
+ import { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';
5
6
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
6
7
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
7
8
  import { tuiZonefreeScheduler } from '@taiga-ui/cdk/observables';
8
9
  import { tuiArrayShallowEquals, tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
9
- import { Subject, debounce, timer, filter, map, BehaviorSubject, Subscription, combineLatest, distinctUntilChanged, startWith, debounceTime } from 'rxjs';
10
+ import { Subject, debounce, timer, filter, map, Subscription, BehaviorSubject, combineLatest, distinctUntilChanged, startWith, debounceTime } from 'rxjs';
10
11
  import { __decorate } from 'tslib';
11
12
  import { shouldCall } from '@taiga-ui/event-plugins';
12
13
 
@@ -50,17 +51,13 @@ class TuiTilesComponent {
50
51
  constructor() {
51
52
  this.el$ = new Subject();
52
53
  this.handler = inject(TUI_TILES_REORDER);
53
- this.debounce = 0;
54
- this.orderChange = this.el$.pipe(debounce(() => timer(this.debounce)), filter(this.filter.bind(this)), map((element) => this.reorder(element)));
54
+ this.sub = this.el$
55
+ .pipe(debounce(() => timer(this.debounce())), filter(this.filter.bind(this)), map((element) => this.reorder(element)), takeUntilDestroyed())
56
+ .subscribe((order) => this.order.set(order));
57
+ this.debounce = input(0);
58
+ this.order = model(new Map());
55
59
  this.element = signal(null);
56
60
  this.el = tuiInjectElement();
57
- this.order$ = new BehaviorSubject(new Map());
58
- }
59
- set order(map) {
60
- this.order$.next(map);
61
- }
62
- get order() {
63
- return this.order$.value;
64
61
  }
65
62
  rearrange(element) {
66
63
  this.el$.next(element);
@@ -72,14 +69,13 @@ class TuiTilesComponent {
72
69
  const elements = Array.from(this.el.children);
73
70
  const currentIndex = elements.indexOf(this.element() || element);
74
71
  const newIndex = elements.indexOf(element);
75
- const order = this.order.size
76
- ? new Map(this.order)
72
+ const order = this.order().size
73
+ ? new Map(this.order())
77
74
  : new Map(elements.map((_, index) => [index, index]));
78
- this.order$.next(this.handler(order, currentIndex, newIndex));
79
- return this.order$.value;
75
+ return this.handler(order, currentIndex, newIndex);
80
76
  }
81
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
82
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiTilesComponent, isStandalone: true, selector: "tui-tiles", inputs: { debounce: "debounce", order: "order" }, outputs: { orderChange: "orderChange" }, host: { listeners: { "pointerleave.zoneless": "rearrange()" } }, providers: [
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
78
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.17", type: TuiTilesComponent, isStandalone: true, selector: "tui-tiles", inputs: { debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null }, order: { classPropertyName: "order", publicName: "order", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { order: "orderChange" }, host: { listeners: { "pointerleave.zoneless": "rearrange()" } }, providers: [
83
79
  ResizeObserverService,
84
80
  MutationObserverService,
85
81
  {
@@ -88,25 +84,17 @@ class TuiTilesComponent {
88
84
  },
89
85
  ], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper,tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper,tui-tile:has(tui-tile._dragged)>.t-wrapper{z-index:1}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
90
86
  }
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTilesComponent, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTilesComponent, decorators: [{
92
88
  type: Component,
93
- args: [{ standalone: true, selector: 'tui-tiles', template: '<ng-content />', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
89
+ args: [{ selector: 'tui-tiles', template: '<ng-content />', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
94
90
  ResizeObserverService,
95
91
  MutationObserverService,
96
92
  {
97
93
  provide: WA_MUTATION_OBSERVER_INIT,
98
94
  useValue: { childList: true },
99
95
  },
100
- ], host: {
101
- '(pointerleave.zoneless)': 'rearrange()',
102
- }, styles: ["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper,tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper,tui-tile:has(tui-tile._dragged)>.t-wrapper{z-index:1}\n"] }]
103
- }], propDecorators: { debounce: [{
104
- type: Input
105
- }], orderChange: [{
106
- type: Output
107
- }], order: [{
108
- type: Input
109
- }] } });
96
+ ], host: { '(pointerleave.zoneless)': 'rearrange()' }, styles: ["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper,tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper,tui-tile:has(tui-tile._dragged)>.t-wrapper{z-index:1}\n"] }]
97
+ }] });
110
98
 
111
99
  class TuiTileService {
112
100
  constructor() {
@@ -119,11 +107,11 @@ class TuiTileService {
119
107
  this.offset$.pipe(distinctUntilChanged(tuiArrayShallowEquals)),
120
108
  inject(ResizeObserverService).pipe(startWith(null)),
121
109
  inject(MutationObserverService).pipe(startWith(null)),
122
- this.tiles.order$.pipe(debounceTime(0, tuiZonefreeScheduler())),
110
+ toObservable(this.tiles.order).pipe(debounceTime(0, tuiZonefreeScheduler())),
123
111
  ]).pipe(map(([offset]) => offset));
124
112
  }
125
113
  init(element) {
126
- if (this.isBrowser) {
114
+ if (this.isBrowser && element) {
127
115
  this.sub.add(this.position$.subscribe((offset) => {
128
116
  this.setPosition(element, offset);
129
117
  this.setRect(element, offset);
@@ -180,20 +168,21 @@ class TuiTileService {
180
168
  style.top = tuiPx(rect.top - host.top + this.el.offsetTop);
181
169
  style.left = tuiPx(rect.left - host.left + this.el.offsetLeft);
182
170
  }
183
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
184
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTileService }); }
171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
172
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTileService }); }
185
173
  }
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTileService, decorators: [{
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTileService, decorators: [{
187
175
  type: Injectable
188
176
  }] });
189
177
 
190
178
  class TuiTile {
191
179
  constructor() {
180
+ this.wrapper = viewChild('wrapper', { read: ElementRef });
192
181
  this.service = inject(TuiTileService);
193
182
  this.tiles = inject(TuiTilesComponent);
194
183
  this.dragged = signal(false);
195
- this.width = 1;
196
- this.height = 1;
184
+ this.width = input(1);
185
+ this.height = input(1);
197
186
  this.element = tuiInjectElement();
198
187
  }
199
188
  onDrag(offset) {
@@ -209,46 +198,25 @@ class TuiTile {
209
198
  }
210
199
  }
211
200
  ngAfterViewInit() {
212
- if (this.wrapper) {
213
- this.service.init(this.wrapper.nativeElement);
214
- }
201
+ this.service.init(this.wrapper()?.nativeElement);
215
202
  }
216
203
  ngOnDestroy() {
217
204
  if (this.tiles.element() === this.element) {
218
205
  this.tiles.element.set(null);
219
206
  }
220
207
  }
221
- get column() {
222
- return `span var(--tui-width, ${this.width})`;
223
- }
224
- get row() {
225
- return `span var(--tui-height, ${this.height})`;
226
- }
227
- onEnter() {
228
- this.tiles.rearrange(this.element);
229
- }
230
- onTransitionEnd() {
231
- this.dragged.set(false);
232
- }
233
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTile, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
234
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiTile, isStandalone: true, selector: "tui-tile", inputs: { width: "width", height: "height" }, host: { listeners: { "pointerenter": "onEnter()" }, properties: { "class._dragged": "dragged()", "style.gridColumn": "column", "style.gridRow": "row" } }, providers: [TuiTileService], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }], ngImport: i0, template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content />\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
208
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTile, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
209
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.17", type: TuiTile, isStandalone: true, selector: "tui-tile", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerenter": "tiles.rearrange(element)" }, properties: { "class._dragged": "dragged()", "style.grid-column": "`span var(--tui-width, ${width()})`", "style.grid-row": "`span var(--tui-height, ${height()})`" } }, providers: [TuiTileService], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"dragged.set(false)\"\n>\n <ng-content />\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
235
210
  }
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTile, decorators: [{
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTile, decorators: [{
237
212
  type: Component,
238
- args: [{ standalone: true, selector: 'tui-tile', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TuiTileService], host: {
213
+ args: [{ selector: 'tui-tile', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TuiTileService], host: {
239
214
  '[class._dragged]': 'dragged()',
240
- '[style.gridColumn]': 'column',
241
- '[style.gridRow]': 'row',
242
- '(pointerenter)': 'onEnter()',
243
- }, template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content />\n</div>\n" }]
244
- }], propDecorators: { wrapper: [{
245
- type: ViewChild,
246
- args: ['wrapper']
247
- }], width: [{
248
- type: Input
249
- }], height: [{
250
- type: Input
251
- }] } });
215
+ '[style.grid-column]': '`span var(--tui-width, ${width()})`',
216
+ '[style.grid-row]': '`span var(--tui-height, ${height()})`',
217
+ '(pointerenter)': 'tiles.rearrange(element)',
218
+ }, template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"dragged.set(false)\"\n>\n <ng-content />\n</div>\n" }]
219
+ }] });
252
220
 
253
221
  function isInteracting(x = NaN) {
254
222
  return !Number.isNaN(x) || !Number.isNaN(this['x']);
@@ -279,8 +247,8 @@ class TuiTileHandle {
279
247
  }
280
248
  this.onPointer(x, y);
281
249
  }
282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTileHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
283
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiTileHandle, isStandalone: true, selector: "[tuiTileHandle]", host: { listeners: { "pointerdown.zoneless.prevent": "onStart($event)", "document:pointerup.zoneless": "onPointer()", "document:pointermove.zoneless": "onMove($event.x, $event.y)" }, properties: { "style.touchAction": "\"none\"", "style.userSelect": "\"none\"" } }, ngImport: i0 }); }
250
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTileHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
251
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiTileHandle, isStandalone: true, selector: "[tuiTileHandle]", host: { listeners: { "pointerdown.zoneless.prevent": "onStart($event)", "document:pointerup.zoneless": "onPointer()", "document:pointermove.zoneless": "onMove($event.x, $event.y)" }, properties: { "style.touchAction": "\"none\"", "style.userSelect": "\"none\"" } }, ngImport: i0 }); }
284
252
  }
285
253
  __decorate([
286
254
  shouldCall(isInteracting)
@@ -288,10 +256,9 @@ __decorate([
288
256
  __decorate([
289
257
  shouldCall(isDragging)
290
258
  ], TuiTileHandle.prototype, "onMove", null);
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTileHandle, decorators: [{
259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiTileHandle, decorators: [{
292
260
  type: Directive,
293
261
  args: [{
294
- standalone: true,
295
262
  selector: '[tuiTileHandle]',
296
263
  host: {
297
264
  '[style.touchAction]': '"none"',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-tiles.mjs","sources":["../../../projects/kit/components/tiles/tiles.tokens.ts","../../../projects/kit/components/tiles/tiles.component.ts","../../../projects/kit/components/tiles/tile.service.ts","../../../projects/kit/components/tiles/tile.component.ts","../../../projects/kit/components/tiles/tile.template.html","../../../projects/kit/components/tiles/tile-handle.directive.ts","../../../projects/kit/components/tiles/tiles.ts","../../../projects/kit/components/tiles/taiga-ui-kit-components-tiles.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport type TuiReorderFunction = (\n order: Map<number, number>,\n currentIndex: number,\n newIndex: number,\n) => Map<number, number>;\n\nexport const tuiTilesSwap: TuiReorderFunction = (order, currentIndex, newIndex) => {\n if (!order.has(currentIndex) || !order.has(newIndex)) {\n return order;\n }\n\n const dragged = order.get(currentIndex) ?? currentIndex;\n const placement = order.get(newIndex) ?? newIndex;\n const newOrder = new Map(order);\n\n newOrder.set(currentIndex, placement);\n newOrder.set(newIndex, dragged);\n\n return newOrder;\n};\n\nexport const tuiTilesShift: TuiReorderFunction = (order, currentIndex, newIndex) => {\n if (!order.has(currentIndex) || !order.has(newIndex)) {\n return order;\n }\n\n const dragged = order.get(currentIndex) ?? currentIndex;\n const placement = order.get(newIndex) ?? newIndex;\n const newOrder = new Map(order);\n const flipped = new Map(Array.from(order).map(([a, b]) => [b, a]));\n\n if ((placement - dragged) / Math.abs(placement - dragged) > 0) {\n for (let i = placement; i > dragged; i--) {\n newOrder.set(flipped.get(i) ?? i, i - 1);\n }\n } else {\n for (let i = placement; i < dragged; i++) {\n newOrder.set(flipped.get(i) ?? i, i + 1);\n }\n }\n\n newOrder.set(currentIndex, placement);\n\n return newOrder;\n};\n\nexport const TUI_TILES_REORDER = new InjectionToken<TuiReorderFunction>(\n ngDevMode ? 'TUI_TILES_REORDER' : '',\n {\n factory: () => tuiTilesSwap,\n },\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n Output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {BehaviorSubject, debounce, filter, map, Subject, timer} from 'rxjs';\n\nimport {TUI_TILES_REORDER} from './tiles.tokens';\n\n@Component({\n standalone: true,\n selector: 'tui-tiles',\n template: '<ng-content />',\n styleUrls: ['./tiles.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {childList: true},\n },\n ],\n host: {\n '(pointerleave.zoneless)': 'rearrange()',\n },\n})\nexport class TuiTilesComponent {\n private readonly el$ = new Subject<Element | undefined>();\n private readonly handler = inject(TUI_TILES_REORDER);\n\n @Input()\n public debounce = 0;\n\n @Output()\n public readonly orderChange = this.el$.pipe(\n debounce(() => timer(this.debounce)),\n filter(this.filter.bind(this)),\n map((element) => this.reorder(element)),\n );\n\n public readonly element = signal<Element | null>(null);\n public readonly el = tuiInjectElement();\n\n public readonly order$ = new BehaviorSubject(new Map<number, number>());\n\n @Input()\n public set order(map: Map<number, number>) {\n this.order$.next(map);\n }\n\n public get order(): Map<number, number> {\n return this.order$.value;\n }\n\n public rearrange(element?: Element): void {\n this.el$.next(element);\n }\n\n private filter(element?: Element): element is Element {\n return !!this.element() && !!element && this.element() !== element;\n }\n\n private reorder(element: Element): Map<number, number> {\n const elements = Array.from(this.el.children);\n const currentIndex = elements.indexOf(this.element() || element);\n const newIndex = elements.indexOf(element);\n const order = this.order.size\n ? new Map(this.order)\n : new Map(elements.map((_, index) => [index, index]));\n\n this.order$.next(this.handler(order, currentIndex, newIndex));\n\n return this.order$.value;\n }\n}\n","import {isPlatformBrowser} from '@angular/common';\nimport {inject, Injectable, type OnDestroy, PLATFORM_ID} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiArrayShallowEquals, tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n BehaviorSubject,\n combineLatest,\n debounceTime,\n distinctUntilChanged,\n map,\n type Observable,\n startWith,\n Subscription,\n} from 'rxjs';\n\nimport {TuiTilesComponent} from './tiles.component';\n\n@Injectable()\nexport class TuiTileService implements OnDestroy {\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly el = tuiInjectElement();\n private readonly tiles = inject(TuiTilesComponent);\n private readonly sub = new Subscription();\n private readonly offset$ = new BehaviorSubject<readonly [number, number]>([NaN, NaN]);\n private readonly position$: Observable<readonly [number, number]> = combineLatest([\n this.offset$.pipe(distinctUntilChanged(tuiArrayShallowEquals)),\n inject(ResizeObserverService).pipe(startWith(null)),\n inject(MutationObserverService).pipe(startWith(null)),\n this.tiles.order$.pipe(debounceTime(0, tuiZonefreeScheduler())),\n ]).pipe(map(([offset]) => offset));\n\n public init(element: HTMLElement): void {\n if (this.isBrowser) {\n this.sub.add(\n this.position$.subscribe((offset) => {\n this.setPosition(element, offset);\n this.setRect(element, offset);\n }),\n );\n } else {\n this.el.style.setProperty('position', 'relative');\n }\n }\n\n public setOffset(offset: readonly [number, number]): void {\n this.offset$.next(offset);\n }\n\n public ngOnDestroy(): void {\n this.sub.unsubscribe();\n }\n\n private getRect([left, top]: readonly [number, number]): DOMRect {\n const elTop = Number.isNaN(top) ? this.el.offsetTop : top;\n const elLeft = Number.isNaN(left) ? this.el.offsetLeft : left;\n\n const rect = {\n top: elTop,\n left: elLeft,\n width: this.el.clientWidth,\n height: this.el.clientHeight,\n right: NaN,\n bottom: NaN,\n y: elTop,\n x: elLeft,\n };\n\n return {\n ...rect,\n toJSON: () => JSON.stringify(rect),\n };\n }\n\n private setRect({style}: HTMLElement, offset: readonly [number, number]): void {\n const {top, left, width, height} = this.getRect(offset);\n\n style.top = tuiPx(top);\n style.left = tuiPx(left);\n style.width = tuiPx(width);\n style.height = tuiPx(height);\n }\n\n private setPosition(element: HTMLElement, [left]: readonly [number, number]): void {\n if (!Number.isNaN(left)) {\n element.style.setProperty('position', 'fixed');\n element.style.setProperty('transition', 'none');\n\n return;\n }\n\n const {style} = element;\n const rect = element.getBoundingClientRect();\n const host = this.el.getBoundingClientRect();\n\n style.removeProperty('position');\n style.removeProperty('transition');\n style.removeProperty('top');\n style.removeProperty('left');\n\n style.top = tuiPx(rect.top - host.top + this.el.offsetTop);\n style.left = tuiPx(rect.left - host.left + this.el.offsetLeft);\n }\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n type ElementRef,\n inject,\n Input,\n type OnDestroy,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TuiTileService} from './tile.service';\nimport {TuiTilesComponent} from './tiles.component';\n\n@Component({\n standalone: true,\n selector: 'tui-tile',\n templateUrl: './tile.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiTileService],\n host: {\n '[class._dragged]': 'dragged()',\n '[style.gridColumn]': 'column',\n '[style.gridRow]': 'row',\n '(pointerenter)': 'onEnter()',\n },\n})\nexport class TuiTile implements OnDestroy, AfterViewInit {\n @ViewChild('wrapper')\n private readonly wrapper?: ElementRef<HTMLElement>;\n\n private readonly service = inject(TuiTileService);\n private readonly tiles = inject(TuiTilesComponent);\n\n protected dragged = signal(false);\n\n @Input()\n public width = 1;\n\n @Input()\n public height = 1;\n\n public readonly element = tuiInjectElement();\n\n public onDrag(offset: readonly [number, number]): void {\n const dragged = !Number.isNaN(offset[0]);\n\n this.dragged.set(this.dragged() || dragged);\n\n this.tiles.element.set(dragged ? this.element : null);\n this.service.setOffset(offset);\n\n if (dragged) {\n this.tiles.el.classList.add('_dragged');\n } else {\n this.tiles.el.classList.remove('_dragged');\n }\n }\n\n public ngAfterViewInit(): void {\n if (this.wrapper) {\n this.service.init(this.wrapper.nativeElement);\n }\n }\n\n public ngOnDestroy(): void {\n if (this.tiles.element() === this.element) {\n this.tiles.element.set(null);\n }\n }\n\n protected get column(): string {\n return `span var(--tui-width, ${this.width})`;\n }\n\n protected get row(): string {\n return `span var(--tui-height, ${this.height})`;\n }\n\n protected onEnter(): void {\n this.tiles.rearrange(this.element);\n }\n\n protected onTransitionEnd(): void {\n this.dragged.set(false);\n }\n}\n","<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content />\n</div>\n","import {Directive, inject} from '@angular/core';\nimport {tuiGetActualTarget, tuiIsElement} from '@taiga-ui/cdk/utils/dom';\nimport {shouldCall} from '@taiga-ui/event-plugins';\n\nimport {TuiTile} from './tile.component';\n\nfunction isInteracting(this: TuiTileHandle, x = NaN): boolean {\n return !Number.isNaN(x) || !Number.isNaN(this['x']);\n}\n\nfunction isDragging(this: TuiTileHandle): boolean {\n return !Number.isNaN(this['x']);\n}\n\n@Directive({\n standalone: true,\n selector: '[tuiTileHandle]',\n host: {\n '[style.touchAction]': '\"none\"',\n '[style.userSelect]': '\"none\"',\n '(pointerdown.zoneless.prevent)': 'onStart($event)',\n '(document:pointerup.zoneless)': 'onPointer()',\n '(document:pointermove.zoneless)': 'onMove($event.x, $event.y)',\n },\n})\nexport class TuiTileHandle {\n private readonly tile = inject(TuiTile);\n private x = NaN;\n private y = NaN;\n\n @shouldCall(isInteracting)\n protected onPointer(x = NaN, y = NaN): void {\n const {left, top} = this.tile.element.getBoundingClientRect();\n\n this.x = x - left;\n this.y = y - top;\n this.tile.onDrag([NaN, NaN]);\n }\n\n @shouldCall(isDragging)\n protected onMove(x: number, y: number): void {\n this.tile.onDrag([x - this.x, y - this.y]);\n }\n\n protected onStart(event: PointerEvent): void {\n const target = tuiGetActualTarget(event);\n const {x, y, pointerId} = event;\n\n if (tuiIsElement(target)) {\n target.releasePointerCapture(pointerId);\n }\n\n this.onPointer(x, y);\n }\n}\n","import {TuiTile} from './tile.component';\nimport {TuiTileHandle} from './tile-handle.directive';\nimport {TuiTilesComponent} from './tiles.component';\n\nexport const TuiTiles = [TuiTilesComponent, TuiTile, TuiTileHandle] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAQa,MAAA,YAAY,GAAuB,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,KAAI;AAC9E,IAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;AAClD,QAAA,OAAO,KAAK;;IAGhB,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,YAAY;IACvD,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,QAAQ;AACjD,IAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC;AAE/B,IAAA,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CAAC;AACrC,IAAA,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC;AAE/B,IAAA,OAAO,QAAQ;AACnB;AAEa,MAAA,aAAa,GAAuB,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,KAAI;AAC/E,IAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;AAClD,QAAA,OAAO,KAAK;;IAGhB,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,YAAY;IACvD,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,QAAQ;AACjD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AAA,4BAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;AAMZ,UAAA,CAAA;IADT,UAAU,CAAC,aAAa;AAOxB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,WAAA,EAAA,IAAA,CAAA;AAGS,UAAA,CAAA;IADT,UAAU,CAAC,UAAU;AAGrB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,QAAA,EAAA,IAAA,CAAA;4FAjBQ,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,IAAI,EAAE;AACF,wBAAA,qBAAqB,EAAE,QAAQ;AAC/B,wBAAA,oBAAoB,EAAE,QAAQ;AAC9B,wBAAA,gCAAgC,EAAE,iBAAiB;AACnD,wBAAA,+BAA+B,EAAE,aAAa;AAC9C,wBAAA,iCAAiC,EAAE,4BAA4B;AAClE,qBAAA;AACJ,iBAAA;AAOa,SAAA,CAAA,EAAA,cAAA,EAAA,EAAA,SAAS,MAST,MAAM,EAAA,EAAA,EAAA,EAAA,CAAA;;ACpCP,MAAA,QAAQ,GAAG,CAAC,iBAAiB,EAAE,OAAO,EAAE,aAAa;;ACJlE;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-tiles.mjs","sources":["../../../projects/kit/components/tiles/tiles.tokens.ts","../../../projects/kit/components/tiles/tiles.component.ts","../../../projects/kit/components/tiles/tile.service.ts","../../../projects/kit/components/tiles/tile.component.ts","../../../projects/kit/components/tiles/tile.template.html","../../../projects/kit/components/tiles/tile-handle.directive.ts","../../../projects/kit/components/tiles/tiles.ts","../../../projects/kit/components/tiles/taiga-ui-kit-components-tiles.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport type TuiReorderFunction = (\n order: Map<number, number>,\n currentIndex: number,\n newIndex: number,\n) => Map<number, number>;\n\nexport const tuiTilesSwap: TuiReorderFunction = (order, currentIndex, newIndex) => {\n if (!order.has(currentIndex) || !order.has(newIndex)) {\n return order;\n }\n\n const dragged = order.get(currentIndex) ?? currentIndex;\n const placement = order.get(newIndex) ?? newIndex;\n const newOrder = new Map(order);\n\n newOrder.set(currentIndex, placement);\n newOrder.set(newIndex, dragged);\n\n return newOrder;\n};\n\nexport const tuiTilesShift: TuiReorderFunction = (order, currentIndex, newIndex) => {\n if (!order.has(currentIndex) || !order.has(newIndex)) {\n return order;\n }\n\n const dragged = order.get(currentIndex) ?? currentIndex;\n const placement = order.get(newIndex) ?? newIndex;\n const newOrder = new Map(order);\n const flipped = new Map(Array.from(order).map(([a, b]) => [b, a]));\n\n if ((placement - dragged) / Math.abs(placement - dragged) > 0) {\n for (let i = placement; i > dragged; i--) {\n newOrder.set(flipped.get(i) ?? i, i - 1);\n }\n } else {\n for (let i = placement; i < dragged; i++) {\n newOrder.set(flipped.get(i) ?? i, i + 1);\n }\n }\n\n newOrder.set(currentIndex, placement);\n\n return newOrder;\n};\n\nexport const TUI_TILES_REORDER = new InjectionToken<TuiReorderFunction>(\n ngDevMode ? 'TUI_TILES_REORDER' : '',\n {\n factory: () => tuiTilesSwap,\n },\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n model,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {debounce, filter, map, Subject, timer} from 'rxjs';\n\nimport {TUI_TILES_REORDER} from './tiles.tokens';\n\n@Component({\n selector: 'tui-tiles',\n template: '<ng-content />',\n styleUrl: './tiles.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {childList: true},\n },\n ],\n host: {'(pointerleave.zoneless)': 'rearrange()'},\n})\nexport class TuiTilesComponent {\n private readonly el$ = new Subject<Element | undefined>();\n private readonly handler = inject(TUI_TILES_REORDER);\n\n protected readonly sub = this.el$\n .pipe(\n debounce(() => timer(this.debounce())),\n filter(this.filter.bind(this)),\n map((element) => this.reorder(element)),\n takeUntilDestroyed(),\n )\n .subscribe((order) => this.order.set(order));\n\n public readonly debounce = input(0);\n public readonly order = model(new Map<number, number>());\n\n public readonly element = signal<Element | null>(null);\n public readonly el = tuiInjectElement();\n\n public rearrange(element?: Element): void {\n this.el$.next(element);\n }\n\n private filter(element?: Element): element is Element {\n return !!this.element() && !!element && this.element() !== element;\n }\n\n private reorder(element: Element): Map<number, number> {\n const elements = Array.from(this.el.children);\n const currentIndex = elements.indexOf(this.element() || element);\n const newIndex = elements.indexOf(element);\n const order = this.order().size\n ? new Map(this.order())\n : new Map(elements.map((_, index) => [index, index]));\n\n return this.handler(order, currentIndex, newIndex);\n }\n}\n","import {isPlatformBrowser} from '@angular/common';\nimport {inject, Injectable, type OnDestroy, PLATFORM_ID} from '@angular/core';\nimport {toObservable} from '@angular/core/rxjs-interop';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiArrayShallowEquals, tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n BehaviorSubject,\n combineLatest,\n debounceTime,\n distinctUntilChanged,\n map,\n type Observable,\n startWith,\n Subscription,\n} from 'rxjs';\n\nimport {TuiTilesComponent} from './tiles.component';\n\n@Injectable()\nexport class TuiTileService implements OnDestroy {\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly el = tuiInjectElement();\n private readonly tiles = inject(TuiTilesComponent);\n private readonly sub = new Subscription();\n private readonly offset$ = new BehaviorSubject<readonly [number, number]>([NaN, NaN]);\n private readonly position$: Observable<readonly [number, number]> = combineLatest([\n this.offset$.pipe(distinctUntilChanged(tuiArrayShallowEquals)),\n inject(ResizeObserverService).pipe(startWith(null)),\n inject(MutationObserverService).pipe(startWith(null)),\n toObservable(this.tiles.order).pipe(debounceTime(0, tuiZonefreeScheduler())),\n ]).pipe(map(([offset]) => offset));\n\n public init(element?: HTMLElement): void {\n if (this.isBrowser && element) {\n this.sub.add(\n this.position$.subscribe((offset) => {\n this.setPosition(element, offset);\n this.setRect(element, offset);\n }),\n );\n } else {\n this.el.style.setProperty('position', 'relative');\n }\n }\n\n public setOffset(offset: readonly [number, number]): void {\n this.offset$.next(offset);\n }\n\n public ngOnDestroy(): void {\n this.sub.unsubscribe();\n }\n\n private getRect([left, top]: readonly [number, number]): DOMRect {\n const elTop = Number.isNaN(top) ? this.el.offsetTop : top;\n const elLeft = Number.isNaN(left) ? this.el.offsetLeft : left;\n\n const rect = {\n top: elTop,\n left: elLeft,\n width: this.el.clientWidth,\n height: this.el.clientHeight,\n right: NaN,\n bottom: NaN,\n y: elTop,\n x: elLeft,\n };\n\n return {\n ...rect,\n toJSON: () => JSON.stringify(rect),\n };\n }\n\n private setRect({style}: HTMLElement, offset: readonly [number, number]): void {\n const {top, left, width, height} = this.getRect(offset);\n\n style.top = tuiPx(top);\n style.left = tuiPx(left);\n style.width = tuiPx(width);\n style.height = tuiPx(height);\n }\n\n private setPosition(element: HTMLElement, [left]: readonly [number, number]): void {\n if (!Number.isNaN(left)) {\n element.style.setProperty('position', 'fixed');\n element.style.setProperty('transition', 'none');\n\n return;\n }\n\n const {style} = element;\n const rect = element.getBoundingClientRect();\n const host = this.el.getBoundingClientRect();\n\n style.removeProperty('position');\n style.removeProperty('transition');\n style.removeProperty('top');\n style.removeProperty('left');\n\n style.top = tuiPx(rect.top - host.top + this.el.offsetTop);\n style.left = tuiPx(rect.left - host.left + this.el.offsetLeft);\n }\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n input,\n type OnDestroy,\n signal,\n viewChild,\n} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TuiTileService} from './tile.service';\nimport {TuiTilesComponent} from './tiles.component';\n\n@Component({\n selector: 'tui-tile',\n templateUrl: './tile.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiTileService],\n host: {\n '[class._dragged]': 'dragged()',\n '[style.grid-column]': '`span var(--tui-width, ${width()})`',\n '[style.grid-row]': '`span var(--tui-height, ${height()})`',\n '(pointerenter)': 'tiles.rearrange(element)',\n },\n})\nexport class TuiTile implements OnDestroy, AfterViewInit {\n private readonly wrapper = viewChild('wrapper', {read: ElementRef});\n private readonly service = inject(TuiTileService);\n\n protected readonly tiles = inject(TuiTilesComponent);\n protected readonly dragged = signal(false);\n\n public readonly width = input(1);\n public readonly height = input(1);\n public readonly element = tuiInjectElement();\n\n public onDrag(offset: readonly [number, number]): void {\n const dragged = !Number.isNaN(offset[0]);\n\n this.dragged.set(this.dragged() || dragged);\n\n this.tiles.element.set(dragged ? this.element : null);\n this.service.setOffset(offset);\n\n if (dragged) {\n this.tiles.el.classList.add('_dragged');\n } else {\n this.tiles.el.classList.remove('_dragged');\n }\n }\n\n public ngAfterViewInit(): void {\n this.service.init(this.wrapper()?.nativeElement);\n }\n\n public ngOnDestroy(): void {\n if (this.tiles.element() === this.element) {\n this.tiles.element.set(null);\n }\n }\n}\n","<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"dragged.set(false)\"\n>\n <ng-content />\n</div>\n","import {Directive, inject} from '@angular/core';\nimport {tuiGetActualTarget, tuiIsElement} from '@taiga-ui/cdk/utils/dom';\nimport {shouldCall} from '@taiga-ui/event-plugins';\n\nimport {TuiTile} from './tile.component';\n\nfunction isInteracting(this: TuiTileHandle, x = NaN): boolean {\n return !Number.isNaN(x) || !Number.isNaN(this['x']);\n}\n\nfunction isDragging(this: TuiTileHandle): boolean {\n return !Number.isNaN(this['x']);\n}\n\n@Directive({\n selector: '[tuiTileHandle]',\n host: {\n '[style.touchAction]': '\"none\"',\n '[style.userSelect]': '\"none\"',\n '(pointerdown.zoneless.prevent)': 'onStart($event)',\n '(document:pointerup.zoneless)': 'onPointer()',\n '(document:pointermove.zoneless)': 'onMove($event.x, $event.y)',\n },\n})\nexport class TuiTileHandle {\n private readonly tile = inject(TuiTile);\n private x = NaN;\n private y = NaN;\n\n @shouldCall(isInteracting)\n protected onPointer(x = NaN, y = NaN): void {\n const {left, top} = this.tile.element.getBoundingClientRect();\n\n this.x = x - left;\n this.y = y - top;\n this.tile.onDrag([NaN, NaN]);\n }\n\n @shouldCall(isDragging)\n protected onMove(x: number, y: number): void {\n this.tile.onDrag([x - this.x, y - this.y]);\n }\n\n protected onStart(event: PointerEvent): void {\n const target = tuiGetActualTarget(event);\n const {x, y, pointerId} = event;\n\n if (tuiIsElement(target)) {\n target.releasePointerCapture(pointerId);\n }\n\n this.onPointer(x, y);\n }\n}\n","import {TuiTile} from './tile.component';\nimport {TuiTileHandle} from './tile-handle.directive';\nimport {TuiTilesComponent} from './tiles.component';\n\nexport const TuiTiles = [TuiTilesComponent, TuiTile, TuiTileHandle] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAQa,MAAA,YAAY,GAAuB,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,KAAI;AAC9E,IAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;AAClD,QAAA,OAAO,KAAK;;IAGhB,MAAM,OAAO,GAAG,K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A,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,8BAAA,EAAA,iBAAA,EAAA,6BAAA,EAAA,aAAA,EAAA,+BAAA,EAAA,4BAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;AAMZ,UAAA,CAAA;IADT,UAAU,CAAC,aAAa;AAOxB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,WAAA,EAAA,IAAA,CAAA;AAGS,UAAA,CAAA;IADT,UAAU,CAAC,UAAU;AAGrB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,QAAA,EAAA,IAAA,CAAA;4FAjBQ,aAAa,EAAA,UAAA,EAAA,CAAA;kBAVzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,IAAI,EAAE;AACF,wBAAA,qBAAqB,EAAE,QAAQ;AAC/B,wBAAA,oBAAoB,EAAE,QAAQ;AAC9B,wBAAA,gCAAgC,EAAE,iBAAiB;AACnD,wBAAA,+BAA+B,EAAE,aAAa;AAC9C,wBAAA,iCAAiC,EAAE,4BAA4B;AAClE,qBAAA;AACJ,iBAAA;AAOa,SAAA,CAAA,EAAA,cAAA,EAAA,EAAA,SAAS,MAST,MAAM,EAAA,EAAA,EAAA,EAAA,CAAA;;ACnCP,MAAA,QAAQ,GAAG,CAAC,iBAAiB,EAAE,OAAO,EAAE,aAAa;;ACJlE;;AAEG;;;;"}
@@ -0,0 +1,164 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Directive, viewChild, ElementRef, InjectionToken, Injectable, input } from '@angular/core';
3
+ import { TUI_PLATFORM, TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
4
+ import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
5
+ import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
6
+ import { tuiButtonOptionsProvider, TuiButton } from '@taiga-ui/core/components/button';
7
+ import * as i1 from '@taiga-ui/core/directives/icons';
8
+ import { TuiWithIcons } from '@taiga-ui/core/directives/icons';
9
+ import { TUI_ICON_END, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
10
+ import { tuiAvatarOptionsProvider } from '@taiga-ui/kit/components/avatar';
11
+ import { tuiBadgeOptionsProvider } from '@taiga-ui/kit/components/badge';
12
+ import * as i1$2 from '@taiga-ui/cdk/portals';
13
+ import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
14
+ import * as i2 from '@taiga-ui/core/portals/alert';
15
+ import { TuiAlertDirective, TuiAlertService } from '@taiga-ui/core/portals/alert';
16
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
17
+ import * as i1$1 from '@taiga-ui/cdk/directives/animated';
18
+ import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
19
+ import { TuiSwipe } from '@taiga-ui/cdk/directives/swipe';
20
+ import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
21
+ import { of, switchMap, timer, EMPTY, takeUntil, fromEvent, repeat } from 'rxjs';
22
+ import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
23
+
24
+ class Styles {
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-toast" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiToast]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;grid-row:1 / span 2;box-sizing:border-box;gap:.75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-font-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;overflow:hidden}[tuiToast]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]>*,[tuiToast]:after,[tuiToast]:before{max-inline-size:50%;margin:0 -.25rem}[tuiToast]:after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast] [tuiAvatar]{margin-inline-end:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, decorators: [{
29
+ type: Component,
30
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-toast' }, styles: ["[tuiToast]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;grid-row:1 / span 2;box-sizing:border-box;gap:.75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-font-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;overflow:hidden}[tuiToast]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]>*,[tuiToast]:after,[tuiToast]:before{max-inline-size:50%;margin:0 -.25rem}[tuiToast]:after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast] [tuiAvatar]{margin-inline-end:0}\n"] }]
31
+ }] });
32
+ class TuiToastDirective {
33
+ constructor() {
34
+ this.nothing = tuiWithStyles(Styles);
35
+ }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiToastDirective, isStandalone: true, selector: "[tuiToast]:not(ng-template)", providers: [
38
+ tuiBadgeOptionsProvider({ size: 'l' }),
39
+ tuiAvatarOptionsProvider(() => ({
40
+ size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',
41
+ })),
42
+ tuiButtonOptionsProvider(() => ({
43
+ size: 's',
44
+ appearance: inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',
45
+ })),
46
+ {
47
+ provide: TUI_ICON_END,
48
+ useFactory: () => tuiInjectElement().matches('a, button')
49
+ ? inject(TUI_COMMON_ICONS).more
50
+ : '',
51
+ },
52
+ ], hostDirectives: [{ directive: i1.TuiWithIcons }], ngImport: i0 }); }
53
+ }
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastDirective, decorators: [{
55
+ type: Directive,
56
+ args: [{
57
+ selector: '[tuiToast]:not(ng-template)',
58
+ providers: [
59
+ tuiBadgeOptionsProvider({ size: 'l' }),
60
+ tuiAvatarOptionsProvider(() => ({
61
+ size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',
62
+ })),
63
+ tuiButtonOptionsProvider(() => ({
64
+ size: 's',
65
+ appearance: inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',
66
+ })),
67
+ {
68
+ provide: TUI_ICON_END,
69
+ useFactory: () => tuiInjectElement().matches('a, button')
70
+ ? inject(TUI_COMMON_ICONS).more
71
+ : '',
72
+ },
73
+ ],
74
+ hostDirectives: [TuiWithIcons],
75
+ }]
76
+ }] });
77
+
78
+ class TuiToastComponent {
79
+ constructor() {
80
+ this.close = viewChild(TuiButton, { read: ElementRef });
81
+ this.el = tuiInjectElement();
82
+ this.isMobile = inject(TUI_IS_MOBILE);
83
+ this.context = injectContext();
84
+ this.icons = inject(TUI_COMMON_ICONS);
85
+ this.$ = of(this.context.autoClose)
86
+ .pipe(switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)), takeUntil(fromEvent(this.el, 'mouseenter')), repeat({ delay: () => fromEvent(this.el, 'mouseleave') }), takeUntilDestroyed())
87
+ .subscribe(() => this.context.$implicit.complete());
88
+ }
89
+ ngAfterViewInit() {
90
+ if (this.close()) {
91
+ this.el.querySelector('[tuiToast]')?.appendChild(this.close()?.nativeElement);
92
+ }
93
+ }
94
+ onSwipe() {
95
+ if (this.context.closable) {
96
+ this.context.$implicit.complete();
97
+ }
98
+ }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
100
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiToastComponent, isStandalone: true, selector: "tui-toast", host: { attributes: { "role": "status" }, properties: { "class._mobile": "isMobile", "attr.data-appearance": "context.appearance" } }, viewQueries: [{ propertyName: "close", first: true, predicate: TuiButton, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1$1.TuiAnimated }, { directive: i2.TuiAlertDirective }], ngImport: i0, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n {{ text }}\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 2rem;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiSwipe, selector: "[tuiSwipe]", outputs: ["tuiSwipe"] }, { kind: "directive", type: TuiToastDirective, selector: "[tuiToast]:not(ng-template)" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
101
+ }
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastComponent, decorators: [{
103
+ type: Component,
104
+ args: [{ selector: 'tui-toast', imports: [PolymorpheusOutlet, TuiButton, TuiSwipe, TuiToastDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated, TuiAlertDirective], host: {
105
+ role: 'status',
106
+ '[class._mobile]': 'isMobile',
107
+ '[attr.data-appearance]': 'context.appearance',
108
+ }, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n {{ text }}\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 2rem;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\n"] }]
109
+ }] });
110
+
111
+ const TUI_TOAST_CONCURRENCY = new InjectionToken(ngDevMode ? 'TUI_TOAST_CONCURRENCY' : '', { factory: () => (inject(TUI_IS_MOBILE) ? 1 : 2) });
112
+ const [TUI_TOAST_OPTIONS, tuiToastOptionsProvider] = tuiCreateOptions({
113
+ appearance: '',
114
+ autoClose: 5000,
115
+ closable: true,
116
+ block: 'start',
117
+ inline: 'center',
118
+ });
119
+
120
+ class TuiToastService extends TuiAlertService {
121
+ constructor() {
122
+ super(inject(TUI_TOAST_CONCURRENCY));
123
+ this.options = inject(TUI_TOAST_OPTIONS);
124
+ this.component = TuiToastComponent;
125
+ }
126
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
127
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastService, providedIn: 'root' }); }
128
+ }
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastService, decorators: [{
130
+ type: Injectable,
131
+ args: [{
132
+ providedIn: 'root',
133
+ }]
134
+ }], ctorParameters: () => [] });
135
+ class TuiToastTemplate {
136
+ constructor() {
137
+ this.tuiToastOptions = input({});
138
+ }
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
140
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiToastTemplate, isStandalone: true, selector: "ng-template[tuiToast]", inputs: { tuiToastOptions: { classPropertyName: "tuiToastOptions", publicName: "tuiToastOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiToastService)], hostDirectives: [{ directive: i1$2.TuiPortalDirective, inputs: ["options", "tuiToastOptions", "open", "tuiToast"], outputs: ["openChange", "tuiToastChange"] }], ngImport: i0 }); }
141
+ }
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiToastTemplate, decorators: [{
143
+ type: Directive,
144
+ args: [{
145
+ selector: 'ng-template[tuiToast]',
146
+ providers: [tuiAsPortal(TuiToastService)],
147
+ hostDirectives: [
148
+ {
149
+ directive: TuiPortalDirective,
150
+ inputs: ['options: tuiToastOptions', 'open: tuiToast'],
151
+ outputs: ['openChange: tuiToastChange'],
152
+ },
153
+ ],
154
+ }]
155
+ }] });
156
+
157
+ const TuiToast = [TuiToastDirective, TuiToastTemplate];
158
+
159
+ /**
160
+ * Generated bundle index. Do not edit.
161
+ */
162
+
163
+ export { TUI_TOAST_CONCURRENCY, TUI_TOAST_OPTIONS, TuiToast, TuiToastComponent, TuiToastDirective, TuiToastService, TuiToastTemplate, tuiToastOptionsProvider };
164
+ //# sourceMappingURL=taiga-ui-kit-components-toast.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-components-toast.mjs","sources":["../../../projects/kit/components/toast/toast.directive.ts","../../../projects/kit/components/toast/toast.component.ts","../../../projects/kit/components/toast/toast.template.html","../../../projects/kit/components/toast/toast.options.ts","../../../projects/kit/components/toast/toast.service.ts","../../../projects/kit/components/toast/toast.ts","../../../projects/kit/components/toast/taiga-ui-kit-components-toast.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\nimport {TUI_COMMON_ICONS, TUI_ICON_END} from '@taiga-ui/core/tokens';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {tuiBadgeOptionsProvider} from '@taiga-ui/kit/components/badge';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/toast.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-toast'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiToast]:not(ng-template)',\n providers: [\n tuiBadgeOptionsProvider({size: 'l'}),\n tuiAvatarOptionsProvider(() => ({\n size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',\n })),\n tuiButtonOptionsProvider(() => ({\n size: 's',\n appearance:\n inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',\n })),\n {\n provide: TUI_ICON_END,\n useFactory: () =>\n tuiInjectElement().matches('a, button')\n ? inject(TUI_COMMON_ICONS).more\n : '',\n },\n ],\n hostDirectives: [TuiWithIcons],\n})\nexport class TuiToastDirective {\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n viewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiSwipe} from '@taiga-ui/cdk/directives/swipe';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiAlertDirective} from '@taiga-ui/core/portals/alert';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {TuiToastDirective} from './toast.directive';\nimport {type TuiToastOptions} from './toast.options';\n\n@Component({\n selector: 'tui-toast',\n imports: [PolymorpheusOutlet, TuiButton, TuiSwipe, TuiToastDirective],\n templateUrl: './toast.template.html',\n styleUrl: './toast.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated, TuiAlertDirective],\n host: {\n role: 'status',\n '[class._mobile]': 'isMobile',\n '[attr.data-appearance]': 'context.appearance',\n },\n})\nexport class TuiToastComponent<O, I> implements AfterViewInit {\n private readonly close = viewChild(TuiButton, {read: ElementRef});\n\n private readonly el = tuiInjectElement();\n\n protected readonly isMobile = inject(TUI_IS_MOBILE);\n protected readonly context = injectContext<TuiPortalContext<TuiToastOptions<I>, O>>();\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly $ = of(this.context.autoClose)\n .pipe(\n switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)),\n takeUntil(fromEvent(this.el, 'mouseenter')),\n repeat({delay: () => fromEvent(this.el, 'mouseleave')}),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.context.$implicit.complete());\n\n public ngAfterViewInit(): void {\n if (this.close()) {\n this.el.querySelector('[tuiToast]')?.appendChild(this.close()?.nativeElement);\n }\n }\n\n protected onSwipe(): void {\n if (this.context.closable) {\n this.context.$implicit.complete();\n }\n }\n}\n","<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n {{ text }}\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n","import {inject, InjectionToken} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiPositionOptions} from '@taiga-ui/core/portals/alert';\n\nexport interface TuiToastOptions<I> extends TuiPositionOptions {\n readonly autoClose: number;\n readonly closable: boolean;\n readonly appearance: string;\n readonly data?: I;\n}\n\nexport const TUI_TOAST_CONCURRENCY = new InjectionToken(\n ngDevMode ? 'TUI_TOAST_CONCURRENCY' : '',\n {factory: () => (inject(TUI_IS_MOBILE) ? 1 : 2)},\n);\n\nexport const [TUI_TOAST_OPTIONS, tuiToastOptionsProvider] = tuiCreateOptions<\n TuiToastOptions<any>\n>({\n appearance: '',\n autoClose: 5000,\n closable: true,\n block: 'start',\n inline: 'center',\n});\n","import {Directive, inject, Injectable, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\nimport {TuiAlertService} from '@taiga-ui/core/portals/alert';\n\nimport {TuiToastComponent} from './toast.component';\nimport {\n TUI_TOAST_CONCURRENCY,\n TUI_TOAST_OPTIONS,\n type TuiToastOptions,\n} from './toast.options';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiToastService extends TuiAlertService<TuiToastOptions<any>> {\n protected override readonly options = inject(TUI_TOAST_OPTIONS);\n protected override readonly component = TuiToastComponent;\n\n constructor() {\n super(inject(TUI_TOAST_CONCURRENCY));\n }\n}\n\n@Directive({\n selector: 'ng-template[tuiToast]',\n providers: [tuiAsPortal(TuiToastService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['options: tuiToastOptions', 'open: tuiToast'],\n outputs: ['openChange: tuiToastChange'],\n },\n ],\n})\nexport class TuiToastTemplate<T> {\n public readonly tuiToastOptions = input<Partial<TuiToastOptions<T>>>({});\n}\n","import {TuiToastDirective} from './toast.directive';\nimport {TuiToastTemplate} from './toast.service';\n\nexport const TuiToast = [TuiToastDirective, TuiToastTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,+GANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+0BAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBA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