@taiga-ui/kit 4.52.0-canary.6c67ccf → 4.52.0-canary.811ffeb

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 (385) 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-outline.directive.d.ts +3 -3
  9. package/components/avatar/avatar.directive.d.ts +15 -0
  10. package/components/avatar/avatar.options.d.ts +1 -4
  11. package/components/avatar/index.d.ts +1 -1
  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.options.d.ts +1 -3
  15. package/components/block/block.directive.d.ts +4 -4
  16. package/components/block/block.options.d.ts +2 -4
  17. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  18. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  19. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  20. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  21. package/components/checkbox/checkbox.component.d.ts +7 -18
  22. package/components/checkbox/checkbox.options.d.ts +5 -9
  23. package/components/chip/chip.directive.d.ts +2 -4
  24. package/components/chip/chip.options.d.ts +1 -3
  25. package/components/comment/comment.directive.d.ts +2 -2
  26. package/components/confirm/confirm.component.d.ts +4 -2
  27. package/components/confirm/confirm.service.d.ts +2 -1
  28. package/{directives → components}/copy/copy.component.d.ts +2 -2
  29. package/{directives → components}/copy/copy.directive.d.ts +3 -4
  30. package/{directives → components}/copy/copy.options.d.ts +2 -2
  31. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -0
  32. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +1 -1
  33. package/components/files/file/file.options.d.ts +2 -2
  34. package/components/files/files/files.component.d.ts +2 -2
  35. package/components/files/input-files/input-files.options.d.ts +1 -3
  36. package/components/floating-container/floating-container.directive.d.ts +2 -2
  37. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  38. package/components/fullscreen/index.d.ts +1 -0
  39. package/components/index.d.ts +3 -2
  40. package/components/input-chip/input-chip.component.d.ts +8 -7
  41. package/components/input-chip/input-chip.directive.d.ts +5 -10
  42. package/components/input-chip/input-chip.options.d.ts +1 -1
  43. package/components/input-color/input-color.component.d.ts +2 -2
  44. package/components/input-color/input-color.options.d.ts +1 -1
  45. package/components/input-date/input-date.options.d.ts +1 -1
  46. package/components/input-date-multi/input-date-multi.directive.d.ts +9 -13
  47. package/components/input-number/input-number.directive.d.ts +5 -9
  48. package/components/input-number/input-number.options.d.ts +1 -1
  49. package/components/input-number/quantum.directive.d.ts +1 -1
  50. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  51. package/components/input-phone/input-phone.options.d.ts +1 -1
  52. package/components/input-phone-international/input-phone-international.component.d.ts +24 -30
  53. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  54. package/components/input-pin/input-pin.component.d.ts +1 -1
  55. package/components/input-range/input-range.component.d.ts +9 -12
  56. package/components/input-slider/input-slider.directive.d.ts +3 -5
  57. package/components/input-time/input-time.directive.d.ts +6 -8
  58. package/components/input-time/input-time.options.d.ts +1 -1
  59. package/components/like/like.component.d.ts +4 -11
  60. package/components/like/like.options.d.ts +3 -4
  61. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  62. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  63. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  64. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  65. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  66. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  67. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  68. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  69. package/components/pager/pager.component.d.ts +1 -1
  70. package/components/pagination/index.d.ts +1 -0
  71. package/components/pagination/pagination.component.d.ts +3 -2
  72. package/components/pagination/pagination.options.d.ts +10 -0
  73. package/components/pin/pin.directive.d.ts +2 -2
  74. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  75. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  76. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  77. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  78. package/components/preview/preview.component.d.ts +1 -1
  79. package/components/preview/preview.d.ts +2 -1
  80. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  81. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  82. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  83. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  84. package/components/progress/progress.options.d.ts +1 -3
  85. package/components/push/push-alert.component.d.ts +4 -3
  86. package/components/push/push.component.d.ts +2 -2
  87. package/components/push/push.directive.d.ts +4 -6
  88. package/components/push/push.options.d.ts +5 -8
  89. package/components/push/push.service.d.ts +6 -2
  90. package/components/radio/radio.component.d.ts +7 -8
  91. package/components/radio/radio.directive.d.ts +2 -2
  92. package/components/radio/radio.options.d.ts +2 -5
  93. package/components/range/range-change.directive.d.ts +1 -2
  94. package/components/range/range.component.d.ts +16 -24
  95. package/components/rating/rating.component.d.ts +5 -5
  96. package/components/rating/rating.options.d.ts +6 -6
  97. package/components/segmented/segmented.component.d.ts +5 -9
  98. package/components/segmented/segmented.directive.d.ts +6 -7
  99. package/components/select/native-select/native-select.component.d.ts +4 -5
  100. package/components/slider/helpers/key-steps.d.ts +1 -2
  101. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  102. package/components/slider/slider.options.d.ts +1 -6
  103. package/components/slides/slides.directive.d.ts +4 -4
  104. package/components/status/status.directive.d.ts +2 -2
  105. package/components/stepper/step.component.d.ts +6 -8
  106. package/components/stepper/stepper.component.d.ts +6 -11
  107. package/components/switch/switch.component.d.ts +7 -19
  108. package/components/switch/switch.options.d.ts +4 -8
  109. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  110. package/components/tabs/tabs.options.d.ts +1 -6
  111. package/components/textarea/textarea-limit.directive.d.ts +4 -5
  112. package/components/textarea/textarea.options.d.ts +1 -1
  113. package/components/toast/index.d.ts +5 -0
  114. package/components/toast/toast.component.d.ts +18 -0
  115. package/components/toast/toast.d.ts +3 -0
  116. package/components/toast/toast.directive.d.ts +7 -0
  117. package/components/toast/toast.options.d.ts +10 -0
  118. package/components/toast/toast.service.d.ts +17 -0
  119. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  120. package/components/tree/misc/tree.constants.d.ts +0 -3
  121. package/components/tree/misc/tree.tokens.d.ts +1 -6
  122. package/directives/button-close/button-close.directive.d.ts +2 -1
  123. package/directives/button-select/button-select.directive.d.ts +3 -3
  124. package/directives/chevron/chevron.directive.d.ts +2 -3
  125. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  126. package/directives/fade/fade.directive.d.ts +1 -0
  127. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  128. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  129. package/directives/highlight/highlight.directive.d.ts +1 -3
  130. package/directives/index.d.ts +0 -1
  131. package/directives/password/password.options.d.ts +1 -1
  132. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  133. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  134. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  135. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  136. package/directives/tooltip/tooltip.options.d.ts +1 -4
  137. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  138. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  140. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-avatar.mjs +53 -71
  142. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -9
  144. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-badge.mjs +14 -25
  146. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +0 -1
  148. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-block.mjs +18 -29
  150. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +6 -12
  152. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  154. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +4 -15
  156. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +4 -5
  158. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-carousel.mjs +3 -9
  160. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +17 -75
  162. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-chip.mjs +23 -32
  164. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +5 -6
  166. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-comment.mjs +11 -18
  168. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-compass.mjs +3 -3
  170. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-confirm.mjs +8 -11
  172. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  173. package/fesm2022/{taiga-ui-kit-directives-copy.mjs → taiga-ui-kit-components-copy.mjs} +17 -22
  174. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  175. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +14 -6
  176. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-drawer.mjs +2 -2
  178. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -1
  180. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-files.mjs +21 -28
  182. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-filter.mjs +1 -1
  184. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +11 -17
  186. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  188. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  189. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +55 -68
  190. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-input-color.mjs +4 -6
  192. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +26 -45
  194. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +1 -2
  196. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +4 -6
  198. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-input-date.mjs +13 -21
  200. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -3
  202. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +6 -8
  204. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-input-month.mjs +6 -8
  206. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-input-number.mjs +30 -54
  208. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +105 -133
  210. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +3 -5
  212. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +5 -6
  214. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-input-range.mjs +31 -27
  216. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +26 -41
  218. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-input-time.mjs +32 -39
  220. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-input-year.mjs +5 -7
  222. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +2 -4
  224. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-like.mjs +38 -31
  226. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +28 -72
  228. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-message.mjs +6 -9
  230. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +27 -38
  232. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +32 -28
  234. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-pager.mjs +5 -7
  236. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-pagination.mjs +22 -13
  238. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-pin.mjs +13 -17
  240. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-preview.mjs +37 -29
  242. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-progress.mjs +61 -66
  244. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-pulse.mjs +1 -1
  246. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-push.mjs +40 -47
  248. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +2 -2
  250. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-radio.mjs +31 -37
  252. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-range.mjs +36 -80
  254. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-rating.mjs +17 -26
  256. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +7 -3
  258. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-segmented.mjs +28 -55
  260. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-select.mjs +37 -41
  262. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-slider.mjs +62 -70
  264. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-slides.mjs +12 -20
  266. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-status.mjs +10 -14
  268. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-stepper.mjs +41 -75
  270. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-switch.mjs +17 -64
  272. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-tabs.mjs +18 -31
  274. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-components-textarea.mjs +8 -18
  276. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-components-tiles.mjs +2 -3
  278. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-components-toast.mjs +165 -0
  280. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  281. package/fesm2022/taiga-ui-kit-components-tree.mjs +39 -43
  282. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-components.mjs +3 -2
  284. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +13 -5
  286. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +6 -9
  288. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +14 -13
  290. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +13 -19
  292. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-directives-connected.mjs +7 -13
  294. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +22 -50
  296. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-directives-fade.mjs +6 -9
  298. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +12 -25
  300. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +0 -1
  302. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -1
  304. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-directives-password.mjs +9 -11
  306. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-directives-present.mjs +0 -1
  308. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +11 -16
  310. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +22 -32
  312. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +25 -36
  314. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +13 -18
  316. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +3 -5
  318. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  319. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +1 -2
  320. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  321. package/fesm2022/taiga-ui-kit-directives.mjs +0 -1
  322. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  323. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +0 -1
  324. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  325. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +0 -1
  326. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  327. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +1 -2
  328. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  329. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +2 -2
  330. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  331. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +0 -1
  332. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  333. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +0 -1
  334. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  335. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  336. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  337. package/fesm2022/taiga-ui-kit-tokens.mjs +6 -24
  338. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  339. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  340. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  341. package/package.json +44 -48
  342. package/pipes/index.d.ts +0 -1
  343. package/styles/components/avatar.less +188 -0
  344. package/styles/components/badge.less +1 -0
  345. package/styles/components/checkbox.less +14 -12
  346. package/styles/components/chip.less +12 -3
  347. package/styles/components/like.less +4 -9
  348. package/styles/components/pin.less +3 -7
  349. package/styles/components/radio.less +1 -1
  350. package/styles/components/switch.less +9 -9
  351. package/styles/components/toast.less +44 -0
  352. package/tokens/i18n.d.ts +25 -26
  353. package/tokens/index.d.ts +0 -1
  354. package/tokens/input-date-options.d.ts +1 -1
  355. package/tokens/items-handlers.d.ts +1 -7
  356. package/tokens/preview-icons.d.ts +1 -3
  357. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  358. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  359. package/components/accordion/accordion-item.component.d.ts +0 -25
  360. package/components/action-bar/action-bar.d.ts +0 -3
  361. package/components/action-bar/action-bar.directive.d.ts +0 -6
  362. package/components/avatar/avatar.component.d.ts +0 -15
  363. package/components/input-password/index.d.ts +0 -2
  364. package/components/input-password/input-password.component.d.ts +0 -16
  365. package/components/input-password/input-password.options.d.ts +0 -24
  366. package/components/pdf-viewer/index.d.ts +0 -4
  367. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  368. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  369. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  370. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  371. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -95
  372. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  373. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  374. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  375. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  376. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  377. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  378. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  379. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  380. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  381. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  382. package/pipes/field-error/index.d.ts +0 -2
  383. package/tokens/validation-errors.d.ts +0 -5
  384. /package/{directives → components}/copy/copy.d.ts +0 -0
  385. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1,39 +1,33 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, Input, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, input, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
 
5
- class TuiFloatingContainerStyles {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFloatingContainerStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiFloatingContainerStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-floating-container" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiFloatingContainer]{transition-property:bottom;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;bottom:calc(100 * var(--tui-viewport-vh) - var(--tui-viewport-height) - var(--tui-viewport-y));z-index:1;margin-block-start:1rem;padding-block-end:max(1rem,env(safe-area-inset-bottom));text-align:center;font:var(--tui-font-text-ui-s);color:var(--tui-text-secondary)}[tuiFloatingContainer],[tuiFloatingContainer]>tui-elastic-container>.t-wrapper{display:flex;flex-direction:column;gap:.5rem}[tuiFloatingContainer]>*,[tuiFloatingContainer]>tui-elastic-container>.t-wrapper>*{inline-size:100%}[tuiFloatingContainer]:has(>*:only-child:not(tui-elastic-container)),[tuiFloatingContainer]:has(*.ng-animating:first-child~.ng-animating:last-child){padding-block-end:max(1.5rem,env(safe-area-inset-bottom))}[tuiFloatingContainer]:before{top:0;left:0;bottom:0;right:0;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;left:-1rem;right:-1rem;z-index:-1;background:var(--t-background, var(--tui-background-elevation-1));-webkit-mask-image:linear-gradient(180deg,transparent,black 2.5rem);mask-image:linear-gradient(180deg,transparent,black 2.5rem)}tui-sheet-dialog [tuiFloatingContainer]{margin-block-end:calc(-1*max(1.5rem,env(safe-area-inset-bottom)))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
5
+ class Styles {
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-floating-container" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiFloatingContainer]{transition-property:bottom;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;bottom:calc(100 * var(--tui-viewport-vh) - var(--tui-viewport-height) - var(--tui-viewport-y));z-index:1;margin-block-start:1rem;padding-block-end:max(1rem,env(safe-area-inset-bottom));text-align:center;font:var(--tui-font-text-ui-s);color:var(--tui-text-secondary)}[tuiFloatingContainer],[tuiFloatingContainer]>tui-elastic-container>.t-wrapper{display:flex;flex-direction:column!important;gap:.5rem}[tuiFloatingContainer]>*,[tuiFloatingContainer]>tui-elastic-container>.t-wrapper>*{inline-size:100%}[tuiFloatingContainer]:has(>*:only-child:not(tui-elastic-container)),[tuiFloatingContainer]:has(*.ng-animating:first-child~.ng-animating:last-child){padding-block-end:max(1.5rem,env(safe-area-inset-bottom))}[tuiFloatingContainer]:before{inset:0;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;left:-1rem;right:-1rem;z-index:-1;background:var(--t-background, var(--tui-background-elevation-1));-webkit-mask-image:linear-gradient(180deg,transparent,black 2.5rem);mask-image:linear-gradient(180deg,transparent,black 2.5rem)}tui-sheet-dialog [tuiFloatingContainer]{margin-block-end:calc(-1*max(1.5rem,env(safe-area-inset-bottom)))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFloatingContainerStyles, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, decorators: [{
10
10
  type: Component,
11
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
12
- class: 'tui-floating-container',
13
- }, styles: ["[tuiFloatingContainer]{transition-property:bottom;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;bottom:calc(100 * var(--tui-viewport-vh) - var(--tui-viewport-height) - var(--tui-viewport-y));z-index:1;margin-block-start:1rem;padding-block-end:max(1rem,env(safe-area-inset-bottom));text-align:center;font:var(--tui-font-text-ui-s);color:var(--tui-text-secondary)}[tuiFloatingContainer],[tuiFloatingContainer]>tui-elastic-container>.t-wrapper{display:flex;flex-direction:column;gap:.5rem}[tuiFloatingContainer]>*,[tuiFloatingContainer]>tui-elastic-container>.t-wrapper>*{inline-size:100%}[tuiFloatingContainer]:has(>*:only-child:not(tui-elastic-container)),[tuiFloatingContainer]:has(*.ng-animating:first-child~.ng-animating:last-child){padding-block-end:max(1.5rem,env(safe-area-inset-bottom))}[tuiFloatingContainer]:before{top:0;left:0;bottom:0;right:0;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;left:-1rem;right:-1rem;z-index:-1;background:var(--t-background, var(--tui-background-elevation-1));-webkit-mask-image:linear-gradient(180deg,transparent,black 2.5rem);mask-image:linear-gradient(180deg,transparent,black 2.5rem)}tui-sheet-dialog [tuiFloatingContainer]{margin-block-end:calc(-1*max(1.5rem,env(safe-area-inset-bottom)))}\n"] }]
11
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-floating-container' }, styles: ["[tuiFloatingContainer]{transition-property:bottom;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;bottom:calc(100 * var(--tui-viewport-vh) - var(--tui-viewport-height) - var(--tui-viewport-y));z-index:1;margin-block-start:1rem;padding-block-end:max(1rem,env(safe-area-inset-bottom));text-align:center;font:var(--tui-font-text-ui-s);color:var(--tui-text-secondary)}[tuiFloatingContainer],[tuiFloatingContainer]>tui-elastic-container>.t-wrapper{display:flex;flex-direction:column!important;gap:.5rem}[tuiFloatingContainer]>*,[tuiFloatingContainer]>tui-elastic-container>.t-wrapper>*{inline-size:100%}[tuiFloatingContainer]:has(>*:only-child:not(tui-elastic-container)),[tuiFloatingContainer]:has(*.ng-animating:first-child~.ng-animating:last-child){padding-block-end:max(1.5rem,env(safe-area-inset-bottom))}[tuiFloatingContainer]:before{inset:0;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;left:-1rem;right:-1rem;z-index:-1;background:var(--t-background, var(--tui-background-elevation-1));-webkit-mask-image:linear-gradient(180deg,transparent,black 2.5rem);mask-image:linear-gradient(180deg,transparent,black 2.5rem)}tui-sheet-dialog [tuiFloatingContainer]{margin-block-end:calc(-1*max(1.5rem,env(safe-area-inset-bottom)))}\n"] }]
14
12
  }] });
15
13
  class TuiFloatingContainer {
16
14
  constructor() {
17
- this.nothing = tuiWithStyles(TuiFloatingContainerStyles);
18
- this.background = '';
15
+ this.nothing = tuiWithStyles(Styles);
16
+ this.background = input('', { alias: 'tuiFloatingContainer' });
19
17
  }
20
18
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFloatingContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiFloatingContainer, isStandalone: true, selector: "[tuiFloatingContainer]", inputs: { background: ["tuiFloatingContainer", "background"] }, host: { attributes: { "tuiFloatingContainer": "" }, properties: { "style.--t-background": "background" } }, ngImport: i0 }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiFloatingContainer, isStandalone: true, selector: "[tuiFloatingContainer]", inputs: { background: { classPropertyName: "background", publicName: "tuiFloatingContainer", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiFloatingContainer": "" }, properties: { "style.--t-background": "background()" } }, ngImport: i0 }); }
22
20
  }
23
21
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFloatingContainer, decorators: [{
24
22
  type: Directive,
25
23
  args: [{
26
- standalone: true,
27
24
  selector: '[tuiFloatingContainer]',
28
25
  host: {
29
26
  tuiFloatingContainer: '',
30
- '[style.--t-background]': 'background',
27
+ '[style.--t-background]': 'background()',
31
28
  },
32
29
  }]
33
- }], propDecorators: { background: [{
34
- type: Input,
35
- args: ['tuiFloatingContainer']
36
- }] } });
30
+ }] });
37
31
 
38
32
  /**
39
33
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-floating-container.mjs","sources":["../../../projects/kit/components/floating-container/floating-container.directive.ts","../../../projects/kit/components/floating-container/taiga-ui-kit-components-floating-container.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./floating-container.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-floating-container',\n },\n})\nclass TuiFloatingContainerStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiFloatingContainer]',\n host: {\n tuiFloatingContainer: '',\n '[style.--t-background]': 'background',\n },\n})\nexport class TuiFloatingContainer {\n protected readonly nothing = tuiWithStyles(TuiFloatingContainerStyles);\n\n @Input('tuiFloatingContainer')\n public background = '';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA,MAUM,0BAA0B,CAAA;+GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,0BAA0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EAAE;AACxB,wBAAA,wBAAwB,EAAE,YAAY;AACzC,qBAAA;AACJ,iBAAA;8BAKU,UAAU,EAAA,CAAA;sBADhB,KAAK;uBAAC,sBAAsB;;;AChCjC;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-floating-container.mjs","sources":["../../../projects/kit/components/floating-container/floating-container.directive.ts","../../../projects/kit/components/floating-container/taiga-ui-kit-components-floating-container.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n template: '',\n styleUrl: './floating-container.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-floating-container'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiFloatingContainer]',\n host: {\n tuiFloatingContainer: '',\n '[style.--t-background]': 'background()',\n },\n})\nexport class TuiFloatingContainer {\n protected readonly nothing = tuiWithStyles(Styles);\n\n public readonly background = input('', {alias: 'tuiFloatingContainer'});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA,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,4HANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,m2CAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,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G;;;;"}
@@ -0,0 +1,63 @@
1
+ import { DOCUMENT } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, signal, EventEmitter, ElementRef, Input, Output, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
4
+ import { TuiRoot } from '@taiga-ui/core/components/root';
5
+
6
+ class TuiFullscreen {
7
+ constructor() {
8
+ this.doc = inject(DOCUMENT);
9
+ this.open = signal(false);
10
+ this.opened = new EventEmitter();
11
+ this.options = { navigationUI: 'auto' };
12
+ }
13
+ set fullscreen(open) {
14
+ if (this.open() === open) {
15
+ return;
16
+ }
17
+ if (open) {
18
+ this.root?.nativeElement
19
+ .requestFullscreen(this.options)
20
+ .then(() => this.fullscreenState(open));
21
+ }
22
+ else {
23
+ this.doc
24
+ .exitFullscreen()
25
+ .then(() => this.fullscreenState(open))
26
+ .catch((error) => console.error('Failed to exit fullscreen:', error));
27
+ }
28
+ }
29
+ closedByEscape(event) {
30
+ if (!this.doc.fullscreenElement && event.target === this.root?.nativeElement) {
31
+ this.fullscreenState(false);
32
+ }
33
+ }
34
+ fullscreenState(open) {
35
+ this.open.set(open);
36
+ this.opened.emit(open);
37
+ }
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFullscreen, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiFullscreen, isStandalone: true, selector: "[tuiFullscreen]", inputs: { options: ["tuiFullscreenOptions", "options"], fullscreen: ["tuiFullscreen", "fullscreen"] }, outputs: { opened: "tuiFullscreenChange" }, host: { listeners: { "document:fullscreenchange": "closedByEscape($event)" } }, viewQueries: [{ propertyName: "root", first: true, predicate: TuiRoot, descendants: true, read: ElementRef }], ngImport: i0, template: '<tui-root><ng-content /></tui-root>', isInline: true, styles: ["tui-root{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}tui-root::-webkit-scrollbar,tui-root::-webkit-scrollbar-thumb{display:none}tui-root:fullscreen{padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}\n"], dependencies: [{ kind: "component", type: TuiRoot, selector: "tui-root" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
+ }
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFullscreen, decorators: [{
42
+ type: Component,
43
+ args: [{ selector: '[tuiFullscreen]', imports: [TuiRoot], template: '<tui-root><ng-content /></tui-root>', changeDetection: ChangeDetectionStrategy.OnPush, host: { '(document:fullscreenchange)': 'closedByEscape($event)' }, styles: ["tui-root{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}tui-root::-webkit-scrollbar,tui-root::-webkit-scrollbar-thumb{display:none}tui-root:fullscreen{padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}\n"] }]
44
+ }], propDecorators: { root: [{
45
+ type: ViewChild,
46
+ args: [TuiRoot, { read: ElementRef }]
47
+ }], opened: [{
48
+ type: Output,
49
+ args: ['tuiFullscreenChange']
50
+ }], options: [{
51
+ type: Input,
52
+ args: ['tuiFullscreenOptions']
53
+ }], fullscreen: [{
54
+ type: Input,
55
+ args: ['tuiFullscreen']
56
+ }] } });
57
+
58
+ /**
59
+ * Generated bundle index. Do not edit.
60
+ */
61
+
62
+ export { TuiFullscreen };
63
+ //# sourceMappingURL=taiga-ui-kit-components-fullscreen.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-components-fullscreen.mjs","sources":["../../../projects/kit/components/fullscreen/fullscreen.component.ts","../../../projects/kit/components/fullscreen/taiga-ui-kit-components-fullscreen.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {TuiRoot} from '@taiga-ui/core/components/root';\n\n@Component({\n selector: '[tuiFullscreen]',\n imports: [TuiRoot],\n template: '<tui-root><ng-content /></tui-root>',\n styleUrl: './fullscreen.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {'(document:fullscreenchange)': 'closedByEscape($event)'},\n})\nexport class TuiFullscreen {\n @ViewChild(TuiRoot, {read: ElementRef})\n private readonly root?: ElementRef<HTMLElement>;\n\n private readonly doc = inject(DOCUMENT);\n protected readonly open = signal(false);\n\n @Output('tuiFullscreenChange')\n public readonly opened = new EventEmitter<boolean>();\n\n @Input('tuiFullscreenOptions')\n public options?: FullscreenOptions = {navigationUI: 'auto'};\n\n @Input('tuiFullscreen')\n public set fullscreen(open: boolean) {\n if (this.open() === open) {\n return;\n }\n\n if (open) {\n this.root?.nativeElement\n .requestFullscreen(this.options)\n .then(() => this.fullscreenState(open));\n } else {\n this.doc\n .exitFullscreen()\n .then(() => this.fullscreenState(open))\n .catch((error: unknown) =>\n console.error('Failed to exit fullscreen:', error),\n );\n }\n }\n\n protected closedByEscape(event: Event): void {\n if (!this.doc.fullscreenElement && event.target === this.root?.nativeElement) {\n this.fullscreenState(false);\n }\n }\n\n private fullscreenState(open: boolean): void {\n this.open.set(open);\n this.opened.emit(open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAsBa,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;AAYqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AACpB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC;AAGvB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAW;AAG7C,QAAA,IAAA,CAAA,OAAO,GAAuB,EAAC,YAAY,EAAE,MAAM,EAAC;AAgC9D;IA9BG,IACW,UAAU,CAAC,IAAa,EAAA;AAC/B,QAAA,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,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAMR,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAClB,OAAA,EAAA,CAAC,OAAO,CAAC,YACR,qCAAqC,EAAA,eAAA,EAE9B,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,6BAA6B,EAAE,wBAAwB,EAAC,EAAA,MAAA,EAAA,CAAA,yRAAA,CAAA,EAAA;8BAI9C,IAAI,EAAA,CAAA;sBADpB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,OAAO,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;gBAOtB,MAAM,EAAA,CAAA;sBADrB,MAAM;uBAAC,qBAAqB;gBAItB,OAAO,EAAA,CAAA;sBADb,KAAK;uBAAC,sBAAsB;gBAIlB,UAAU,EAAA,CAAA;sBADpB,KAAK;uBAAC,eAAe;;;ACnC1B;;AAEG;;;;"}
@@ -1,12 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, signal, computed, ElementRef, Input, ViewChild, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
2
+ import { inject, viewChild, ElementRef, signal, computed, input, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
3
  import * as i2 from '@angular/forms';
4
4
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
5
  import { TUI_IS_MOBILE, tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
6
- import { tuiDirectiveBinding, tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
6
+ import { tuiDirectiveBinding, tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
7
+ import { tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
7
8
  import { TuiButton } from '@taiga-ui/core/components/button';
8
- import * as i2$1 from '@taiga-ui/core/components/textfield';
9
- import { TUI_TEXTFIELD_OPTIONS, TuiTextfieldComponent, TuiTextfieldMultiComponent, tuiAsTextfieldAccessor, TuiTextfieldBase } from '@taiga-ui/core/components/textfield';
9
+ import * as i1$1 from '@taiga-ui/core/components/textfield';
10
+ import { TUI_TEXTFIELD_OPTIONS, TuiTextfieldMultiComponent, tuiAsTextfieldAccessor, TuiWithTextfield } from '@taiga-ui/core/components/textfield';
10
11
  import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
11
12
  import { TuiHintDirective, TuiHintOverflow } from '@taiga-ui/core/directives/hint';
12
13
  import { TUI_ITEMS_HANDLERS } from '@taiga-ui/core/directives/items-handlers';
@@ -19,38 +20,36 @@ import { injectContext } from '@taiga-ui/polymorpheus';
19
20
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
20
21
  import { TuiControl, tuiAsControl } from '@taiga-ui/cdk/classes';
21
22
  import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
22
- import * as i1$1 from '@taiga-ui/cdk/directives/native-validator';
23
- import { TuiNativeValidator } from '@taiga-ui/cdk/directives/native-validator';
24
23
  import { tuiInjectElement, tuiGetClipboardDataText } from '@taiga-ui/cdk/utils/dom';
25
24
  import { TuiDropdownDirective, tuiDropdownOpen, TuiDropdownOpen } from '@taiga-ui/core/directives/dropdown';
26
25
  import { filter } from 'rxjs';
27
- import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
28
26
 
29
27
  class TuiInputChipComponent {
30
28
  constructor() {
31
29
  this.options = inject(TUI_TEXTFIELD_OPTIONS);
32
30
  this.context = injectContext();
33
31
  this.value = tuiInjectValue();
32
+ this.input = viewChild(TuiChip, { read: ElementRef });
34
33
  this.icons = inject(TUI_COMMON_ICONS);
35
34
  this.mobile = inject(TUI_IS_MOBILE);
36
35
  this.internal = signal(this.context.$implicit.item);
37
36
  this.editing = signal(false);
38
37
  this.hint = inject(TuiHintDirective, { self: true, optional: true });
39
38
  this.handlers = inject(TUI_ITEMS_HANDLERS);
40
- this.textfield = inject(TuiTextfieldComponent);
39
+ this.textfield = inject(TuiTextfieldMultiComponent);
41
40
  this.disabled = tuiDirectiveBinding(TuiAppearance, 'tuiAppearanceState', computed(() => this.handlers.disabledItemHandler()(this.context.$implicit.item)
42
41
  ? 'disabled'
43
42
  : null));
44
43
  this.size = tuiDirectiveBinding(TuiChip, 'size', computed(() => (this.options.size() === 'l' ? 's' : 'xs')));
45
- this.editable = true;
44
+ this.editable = input(true);
46
45
  }
47
46
  get index() {
48
47
  return this.context.$implicit.index;
49
48
  }
50
49
  delete() {
51
- this.textfield.cva?.onChange(this.value().filter((_, i) => i !== this.index));
50
+ this.textfield.cva()?.onChange(this.value().filter((_, i) => i !== this.index));
52
51
  if (!this.mobile) {
53
- this.textfield.input?.nativeElement.focus({ preventScroll: true });
52
+ this.textfield.input()?.nativeElement.focus({ preventScroll: true });
54
53
  }
55
54
  }
56
55
  save() {
@@ -61,25 +60,25 @@ class TuiInputChipComponent {
61
60
  return;
62
61
  }
63
62
  const value = this.value().map((item, index) => index === this.index ? this.internal() : item);
64
- this.textfield.cva?.onChange(value);
63
+ this.textfield.cva()?.onChange(value);
65
64
  this.editing.set(false);
66
- this.textfield.input?.nativeElement.focus({ preventScroll: true });
65
+ this.textfield.input()?.nativeElement.focus({ preventScroll: true });
67
66
  }
68
67
  cancel() {
69
68
  this.editing.set(false);
70
69
  this.internal.set(this.context.$implicit.item);
71
70
  }
72
71
  edit() {
73
- if (!this.editable ||
74
- !this.textfield.cva?.interactive() ||
72
+ if (!this.editable() ||
73
+ !this.textfield.cva()?.interactive() ||
75
74
  !tuiIsString(this.internal())) {
76
75
  return;
77
76
  }
78
77
  this.editing.set(true);
79
- setTimeout(() => this.input?.nativeElement.focus());
78
+ setTimeout(() => this.input()?.nativeElement.focus());
80
79
  }
81
80
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
82
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputChipComponent, isStandalone: true, selector: "tui-input-chip", inputs: { editable: "editable" }, host: { attributes: { "tuiChip": "" }, listeners: { "click": "editing() && $event.stopPropagation()", "keydown.backspace.prevent": "delete()", "keydown.enter.prevent": "edit()", "dblclick": "edit()" }, properties: { "class._edit": "editing()", "attr.tabIndex": "disabled() ? null : -1" }, classAttribute: "tui-interactive" }, viewQueries: [{ propertyName: "input", first: true, predicate: TuiChip, descendants: true, read: ElementRef }], hostDirectives: [{ directive: i1.TuiChip }], ngImport: i0, template: "<input\n appearance=\"\"\n enterkeyhint=\"enter\"\n tuiChip\n class=\"t-input\"\n [disabled]=\"!editing()\"\n [ngModel]=\"internal()\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"cancel()\"\n (keydown.enter)=\"save()\"\n (keydown.esc)=\"cancel()\"\n (keydown.stop)=\"(0)\"\n (ngModelChange)=\"internal.set($event)\"\n/>\n<div\n tuiFade\n tuiFadeOffset=\"0.5rem\"\n class=\"t-text\"\n [tuiHintOverflow]=\"hint?.content() ? null : handlers.stringify()(internal())\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ handlers.stringify()(internal()) }}\n</div>\n@if (textfield.cva?.interactive() && !editing() && !disabled()) {\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop)=\"delete()\"\n (pointerdown.prevent.stop.zoneless)=\"(0)\"\n >\n Remove\n </button>\n}\n", styles: [":host{cursor:pointer;margin:.125rem 0;margin-inline-end:.25rem}:host[data-state=disabled]{pointer-events:none}:host .t-input{padding:0;text-indent:.375rem;transition:none;color:var(--tui-text-primary);cursor:text;outline:none}:host .t-input:disabled{visibility:hidden}:host._edit{background:transparent}:host._edit .t-text{pointer-events:none;visibility:hidden}:host._edit:before{color:transparent;transition:none}:host-context(tui-textfield[data-size=\"s\"]){left:-.375rem;inset-inline-start:-.375rem;margin:.0625rem 0;margin-inline-end:.125rem}:host-context(tui-textfield[data-size=\"m\"]){left:-.125rem;inset-inline-start:-.125rem}:host-context(tui-textfield[data-size=\"l\"]){left:-.25rem;inset-inline-start:-.25rem}:host-context(tui-textfield[data-size=\"l\"]) .t-input{text-indent:.625rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiChip, selector: "tui-chip,[tuiChip]", inputs: ["size"] }, { kind: "directive", type: TuiFade, selector: "[tuiFade]", inputs: ["tuiFadeHeight", "tuiFadeSize", "tuiFadeOffset", "tuiFade"] }, { kind: "directive", type: TuiHintOverflow, selector: "[tuiHintOverflow]", inputs: ["tuiHintOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
81
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputChipComponent, isStandalone: true, selector: "tui-input-chip", inputs: { editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiChip": "" }, listeners: { "click": "editing() && $event.stopPropagation()", "keydown.backspace.prevent": "delete()", "keydown.enter.prevent": "edit()", "dblclick": "edit()" }, properties: { "class._edit": "editing()", "attr.tabIndex": "disabled() ? null : -1" }, classAttribute: "tui-interactive" }, viewQueries: [{ propertyName: "input", first: true, predicate: TuiChip, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1.TuiChip }], ngImport: i0, template: "<input\n appearance=\"\"\n enterkeyhint=\"enter\"\n tuiChip\n class=\"t-input\"\n [disabled]=\"!editing()\"\n [ngModel]=\"internal()\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"cancel()\"\n (keydown.enter)=\"save()\"\n (keydown.esc)=\"cancel()\"\n (keydown.stop)=\"(0)\"\n (ngModelChange)=\"internal.set($event)\"\n/>\n<div\n tuiFade\n tuiFadeOffset=\"0.5rem\"\n class=\"t-text\"\n [tuiHintOverflow]=\"hint?.content() ? null : handlers.stringify()(internal())\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ handlers.stringify()(internal()) }}\n</div>\n@if (textfield.cva()?.interactive() && !editing() && !disabled()) {\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop)=\"delete()\"\n (pointerdown.prevent.stop.zoneless)=\"(0)\"\n >\n Remove\n </button>\n}\n", styles: [":host{cursor:pointer;margin:.125rem 0;margin-inline-end:.25rem}:host[data-state=disabled]{pointer-events:none}:host .t-input{padding:0;text-indent:.375rem;transition:none;color:var(--tui-text-primary);cursor:text;outline:none}:host .t-input:disabled{visibility:hidden}:host._edit{background:transparent}:host._edit .t-text{pointer-events:none;visibility:hidden}:host._edit:before{color:transparent;transition:none}:host-context(tui-textfield[data-size=\"s\"]){left:-.375rem;inset-inline-start:-.375rem;margin:.0625rem 0;margin-inline-end:.125rem}:host-context(tui-textfield[data-size=\"m\"]){left:-.125rem;inset-inline-start:-.125rem}:host-context(tui-textfield[data-size=\"l\"]){left:-.25rem;inset-inline-start:-.25rem}:host-context(tui-textfield[data-size=\"l\"]) .t-input{text-indent:.625rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiChip, selector: "tui-chip,[tuiChip]", inputs: ["size"] }, { kind: "directive", type: TuiFade, selector: "[tuiFade]", inputs: ["tuiFadeHeight", "tuiFadeSize", "tuiFadeOffset", "tuiFade"] }, { kind: "directive", type: TuiHintOverflow, selector: "[tuiHintOverflow]", inputs: ["tuiHintOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
83
82
  }
84
83
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipComponent, decorators: [{
85
84
  type: Component,
@@ -99,13 +98,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
99
98
  '(keydown.backspace.prevent)': 'delete()',
100
99
  '(keydown.enter.prevent)': 'edit()',
101
100
  '(dblclick)': 'edit()',
102
- }, template: "<input\n appearance=\"\"\n enterkeyhint=\"enter\"\n tuiChip\n class=\"t-input\"\n [disabled]=\"!editing()\"\n [ngModel]=\"internal()\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"cancel()\"\n (keydown.enter)=\"save()\"\n (keydown.esc)=\"cancel()\"\n (keydown.stop)=\"(0)\"\n (ngModelChange)=\"internal.set($event)\"\n/>\n<div\n tuiFade\n tuiFadeOffset=\"0.5rem\"\n class=\"t-text\"\n [tuiHintOverflow]=\"hint?.content() ? null : handlers.stringify()(internal())\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ handlers.stringify()(internal()) }}\n</div>\n@if (textfield.cva?.interactive() && !editing() && !disabled()) {\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop)=\"delete()\"\n (pointerdown.prevent.stop.zoneless)=\"(0)\"\n >\n Remove\n </button>\n}\n", styles: [":host{cursor:pointer;margin:.125rem 0;margin-inline-end:.25rem}:host[data-state=disabled]{pointer-events:none}:host .t-input{padding:0;text-indent:.375rem;transition:none;color:var(--tui-text-primary);cursor:text;outline:none}:host .t-input:disabled{visibility:hidden}:host._edit{background:transparent}:host._edit .t-text{pointer-events:none;visibility:hidden}:host._edit:before{color:transparent;transition:none}:host-context(tui-textfield[data-size=\"s\"]){left:-.375rem;inset-inline-start:-.375rem;margin:.0625rem 0;margin-inline-end:.125rem}:host-context(tui-textfield[data-size=\"m\"]){left:-.125rem;inset-inline-start:-.125rem}:host-context(tui-textfield[data-size=\"l\"]){left:-.25rem;inset-inline-start:-.25rem}:host-context(tui-textfield[data-size=\"l\"]) .t-input{text-indent:.625rem}\n"] }]
103
- }], propDecorators: { input: [{
104
- type: ViewChild,
105
- args: [TuiChip, { read: ElementRef }]
106
- }], editable: [{
107
- type: Input
108
- }] } });
101
+ }, template: "<input\n appearance=\"\"\n enterkeyhint=\"enter\"\n tuiChip\n class=\"t-input\"\n [disabled]=\"!editing()\"\n [ngModel]=\"internal()\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"cancel()\"\n (keydown.enter)=\"save()\"\n (keydown.esc)=\"cancel()\"\n (keydown.stop)=\"(0)\"\n (ngModelChange)=\"internal.set($event)\"\n/>\n<div\n tuiFade\n tuiFadeOffset=\"0.5rem\"\n class=\"t-text\"\n [tuiHintOverflow]=\"hint?.content() ? null : handlers.stringify()(internal())\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ handlers.stringify()(internal()) }}\n</div>\n@if (textfield.cva()?.interactive() && !editing() && !disabled()) {\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop)=\"delete()\"\n (pointerdown.prevent.stop.zoneless)=\"(0)\"\n >\n Remove\n </button>\n}\n", styles: [":host{cursor:pointer;margin:.125rem 0;margin-inline-end:.25rem}:host[data-state=disabled]{pointer-events:none}:host .t-input{padding:0;text-indent:.375rem;transition:none;color:var(--tui-text-primary);cursor:text;outline:none}:host .t-input:disabled{visibility:hidden}:host._edit{background:transparent}:host._edit .t-text{pointer-events:none;visibility:hidden}:host._edit:before{color:transparent;transition:none}:host-context(tui-textfield[data-size=\"s\"]){left:-.375rem;inset-inline-start:-.375rem;margin:.0625rem 0;margin-inline-end:.125rem}:host-context(tui-textfield[data-size=\"m\"]){left:-.125rem;inset-inline-start:-.125rem}:host-context(tui-textfield[data-size=\"l\"]){left:-.25rem;inset-inline-start:-.25rem}:host-context(tui-textfield[data-size=\"l\"]) .t-input{text-indent:.625rem}\n"] }]
102
+ }] });
109
103
 
110
104
  const TUI_INPUT_CHIP_DEFAULT_OPTIONS = {
111
105
  separator: ',',
@@ -113,8 +107,8 @@ const TUI_INPUT_CHIP_DEFAULT_OPTIONS = {
113
107
  };
114
108
  const [TUI_INPUT_CHIP_OPTIONS, tuiInputChipOptionsProvider] = tuiCreateOptions(TUI_INPUT_CHIP_DEFAULT_OPTIONS);
115
109
 
116
- // TODO(v5): remove base component after angular update
117
- class TuiInputChipBaseDirective extends TuiControl {
110
+ // TODO: Consider making input[tuiTextfieldMulti] to reuse here and in InputDateMulti
111
+ class TuiInputChipDirective extends TuiControl {
118
112
  constructor() {
119
113
  super(...arguments);
120
114
  this.options = inject(TUI_INPUT_CHIP_OPTIONS);
@@ -130,17 +124,17 @@ class TuiInputChipBaseDirective extends TuiControl {
130
124
  this.onEnter();
131
125
  this.textfield.value.set('');
132
126
  });
133
- this.separator = this.options.separator;
134
- this.unique = this.options.unique;
127
+ this.separator = input(this.options.separator);
128
+ this.unique = input(this.options.unique);
135
129
  this.el = tuiInjectElement();
136
130
  }
137
131
  setValue(value) {
138
132
  this.textfield.value.set('');
139
- this.onChange(this.unique ? Array.from(new Set(value.reverse())).reverse() : value);
133
+ this.onChange(this.unique() ? Array.from(new Set(value.reverse())).reverse() : value);
140
134
  }
141
135
  onEnter() {
142
136
  const value = this.textfield.value().trim();
143
- const items = this.separator ? value.split(this.separator) : [value];
137
+ const items = this.separator() ? value.split(this.separator()) : [value];
144
138
  const valid = items.filter((item) => item && !this.handlers.disabledItemHandler()(item));
145
139
  if (!value || !valid.length) {
146
140
  return;
@@ -150,7 +144,7 @@ class TuiInputChipBaseDirective extends TuiControl {
150
144
  }
151
145
  onInput() {
152
146
  this.open.set(!!this.dropdown.content);
153
- if (this.separator && this.textfield.value().match(this.separator)) {
147
+ if (this.separator() && this.textfield.value().match(this.separator())) {
154
148
  this.onEnter();
155
149
  }
156
150
  else {
@@ -166,11 +160,16 @@ class TuiInputChipBaseDirective extends TuiControl {
166
160
  }
167
161
  onBackspace(key) {
168
162
  // (keydown.backspace) doesn't emit event on empty input in ios safari
169
- if (key === 'Backspace' &&
170
- !this.textfield.value() &&
171
- this.interactive() &&
172
- (this.mobile || !this.textfield.item)) {
173
- this.onChange(this.value().slice(0, -1));
163
+ if (key === 'Backspace' && !this.textfield.value() && this.interactive()) {
164
+ if (this.mobile || !this.textfield.item) {
165
+ this.onChange(this.value().slice(0, -1));
166
+ }
167
+ else {
168
+ this.el.dispatchEvent(new KeyboardEvent('keydown', {
169
+ key: 'ArrowLeft',
170
+ bubbles: true,
171
+ }));
172
+ }
174
173
  }
175
174
  }
176
175
  scrollTo() {
@@ -183,53 +182,41 @@ class TuiInputChipBaseDirective extends TuiControl {
183
182
  });
184
183
  });
185
184
  }
186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipBaseDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
187
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputChipBaseDirective, isStandalone: true, inputs: { separator: "separator", unique: "unique" }, host: { attributes: { "enterkeyhint": "enter" }, listeners: { "keydown.enter.prevent": "onEnter()", "keydown.zoneless": "onBackspace($event.key)", "input": "onInput()", "paste.prevent": "onPaste($event)", "drop.prevent": "onPaste($event)" }, properties: { "disabled": "disabled()" } }, usesInheritance: true, ngImport: i0 }); }
188
- }
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipBaseDirective, decorators: [{
190
- type: Directive,
191
- args: [{
192
- standalone: true,
193
- host: {
194
- enterkeyhint: 'enter',
195
- '[disabled]': 'disabled()',
196
- '(keydown.enter.prevent)': 'onEnter()',
197
- '(keydown.zoneless)': 'onBackspace($event.key)',
198
- '(input)': 'onInput()',
199
- '(paste.prevent)': 'onPaste($event)',
200
- '(drop.prevent)': 'onPaste($event)',
201
- },
202
- }]
203
- }], propDecorators: { separator: [{
204
- type: Input
205
- }], unique: [{
206
- type: Input
207
- }] } });
208
- class TuiInputChipDirective extends TuiInputChipBaseDirective {
209
185
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
210
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputChipDirective, isStandalone: true, selector: "input[tuiInputChip]", providers: [
186
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiInputChipDirective, isStandalone: true, selector: "input[tuiInputChip]", inputs: { separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, unique: { classPropertyName: "unique", publicName: "unique", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "enterkeyhint": "enter" }, listeners: { "keydown.enter.prevent": "onEnter()", "keydown.zoneless": "onBackspace($event.key)", "input": "onInput()", "paste.prevent": "onPaste($event)", "drop.prevent": "onPaste($event)" }, properties: { "attr.tuiAppearance": "null", "disabled": "disabled()" } }, providers: [
211
187
  tuiAsControl(TuiInputChipDirective),
212
188
  tuiFallbackValueProvider([]),
213
189
  tuiAsTextfieldAccessor(TuiInputChipDirective),
214
- ], usesInheritance: true, hostDirectives: [{ directive: i1$1.TuiNativeValidator }, { directive: i2$1.TuiTextfieldBase, inputs: ["invalid", "invalid", "focused", "focused", "readOnly", "readOnly", "state", "state"] }], ngImport: i0 }); }
190
+ {
191
+ provide: TuiAppearance,
192
+ useFactory: () => inject(TuiAppearance, { skipSelf: true }),
193
+ },
194
+ ], usesInheritance: true, hostDirectives: [{ directive: i1$1.TuiWithTextfield }], ngImport: i0 }); }
215
195
  }
216
196
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipDirective, decorators: [{
217
197
  type: Directive,
218
198
  args: [{
219
- standalone: true,
220
199
  selector: 'input[tuiInputChip]',
221
200
  providers: [
222
201
  tuiAsControl(TuiInputChipDirective),
223
202
  tuiFallbackValueProvider([]),
224
203
  tuiAsTextfieldAccessor(TuiInputChipDirective),
225
- ],
226
- hostDirectives: [
227
- TuiNativeValidator,
228
204
  {
229
- directive: TuiTextfieldBase,
230
- inputs: ['invalid', 'focused', 'readOnly', 'state'],
205
+ provide: TuiAppearance,
206
+ useFactory: () => inject(TuiAppearance, { skipSelf: true }),
231
207
  },
232
208
  ],
209
+ hostDirectives: [TuiWithTextfield],
210
+ host: {
211
+ enterkeyhint: 'enter',
212
+ '[attr.tuiAppearance]': 'null',
213
+ '[disabled]': 'disabled()',
214
+ '(keydown.enter.prevent)': 'onEnter()',
215
+ '(keydown.zoneless)': 'onBackspace($event.key)',
216
+ '(input)': 'onInput()',
217
+ '(paste.prevent)': 'onPaste($event)',
218
+ '(drop.prevent)': 'onPaste($event)',
219
+ },
233
220
  }]
234
221
  }] });
235
222
 
@@ -239,5 +226,5 @@ const TuiInputChip = [TuiInputChipDirective, TuiInputChipComponent];
239
226
  * Generated bundle index. Do not edit.
240
227
  */
241
228
 
242
- export { TUI_INPUT_CHIP_DEFAULT_OPTIONS, TUI_INPUT_CHIP_OPTIONS, TuiInputChip, TuiInputChipBaseDirective, TuiInputChipComponent, TuiInputChipDirective, tuiInputChipOptionsProvider };
229
+ export { TUI_INPUT_CHIP_DEFAULT_OPTIONS, TUI_INPUT_CHIP_OPTIONS, TuiInputChip, TuiInputChipComponent, TuiInputChipDirective, tuiInputChipOptionsProvider };
243
230
  //# sourceMappingURL=taiga-ui-kit-components-input-chip.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-chip.mjs","sources":["../../../projects/kit/components/input-chip/input-chip.component.ts","../../../projects/kit/components/input-chip/input-chip.template.html","../../../projects/kit/components/input-chip/input-chip.options.ts","../../../projects/kit/components/input-chip/input-chip.directive.ts","../../../projects/kit/components/input-chip/input-chip.ts","../../../projects/kit/components/input-chip/taiga-ui-kit-components-input-chip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n Input,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiDirectiveBinding, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {\n TUI_TEXTFIELD_OPTIONS,\n TuiTextfieldComponent,\n type TuiTextfieldItem,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiHintDirective, TuiHintOverflow} from '@taiga-ui/core/directives/hint';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {TuiChip} from '@taiga-ui/kit/components/chip';\nimport {TuiFade} from '@taiga-ui/kit/directives/fade';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\nimport {injectContext} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-input-chip',\n imports: [\n FormsModule,\n ReactiveFormsModule,\n TuiButton,\n TuiChip,\n TuiFade,\n TuiHintOverflow,\n ],\n templateUrl: './input-chip.template.html',\n styleUrls: ['./input-chip.styles.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiChip],\n host: {\n tuiChip: '',\n class: 'tui-interactive',\n '[class._edit]': 'editing()',\n '[attr.tabIndex]': 'disabled() ? null : -1',\n '(click)': 'editing() && $event.stopPropagation()',\n '(keydown.backspace.prevent)': 'delete()',\n '(keydown.enter.prevent)': 'edit()',\n '(dblclick)': 'edit()',\n },\n})\nexport class TuiInputChipComponent<T> {\n @ViewChild(TuiChip, {read: ElementRef})\n private readonly input?: ElementRef<HTMLInputElement>;\n\n private readonly options = inject(TUI_TEXTFIELD_OPTIONS);\n private readonly context = injectContext<TuiContext<TuiTextfieldItem<T>>>();\n private readonly value = tuiInjectValue<readonly T[]>();\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly mobile = inject(TUI_IS_MOBILE);\n protected readonly internal = signal(this.context.$implicit.item);\n protected readonly editing = signal(false);\n protected readonly hint = inject(TuiHintDirective, {self: true, optional: true});\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly textfield = inject(TuiTextfieldComponent);\n\n protected readonly disabled = tuiDirectiveBinding(\n TuiAppearance,\n 'tuiAppearanceState',\n computed(() =>\n this.handlers.disabledItemHandler()(this.context.$implicit.item)\n ? 'disabled'\n : null,\n ),\n );\n\n protected readonly size = tuiDirectiveBinding(\n TuiChip,\n 'size',\n computed(() => (this.options.size() === 'l' ? 's' : 'xs')),\n );\n\n @Input()\n public editable = true;\n\n protected get index(): number {\n return this.context.$implicit.index;\n }\n\n protected delete(): void {\n this.textfield.cva?.onChange(this.value().filter((_, i) => i !== this.index));\n\n if (!this.mobile) {\n this.textfield.input?.nativeElement.focus({preventScroll: true});\n }\n }\n\n protected save(): void {\n if (!this.internal()) {\n this.delete();\n } else if (this.handlers.disabledItemHandler()(this.internal())) {\n return;\n }\n\n const value = this.value().map((item, index) =>\n index === this.index ? this.internal() : item,\n );\n\n this.textfield.cva?.onChange(value);\n this.editing.set(false);\n this.textfield.input?.nativeElement.focus({preventScroll: true});\n }\n\n protected cancel(): void {\n this.editing.set(false);\n this.internal.set(this.context.$implicit.item);\n }\n\n protected edit(): void {\n if (\n !this.editable ||\n !this.textfield.cva?.interactive() ||\n !tuiIsString(this.internal())\n ) {\n return;\n }\n\n this.editing.set(true);\n setTimeout(() => this.input?.nativeElement.focus());\n }\n}\n","<input\n appearance=\"\"\n enterkeyhint=\"enter\"\n tuiChip\n class=\"t-input\"\n [disabled]=\"!editing()\"\n [ngModel]=\"internal()\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"cancel()\"\n (keydown.enter)=\"save()\"\n (keydown.esc)=\"cancel()\"\n (keydown.stop)=\"(0)\"\n (ngModelChange)=\"internal.set($event)\"\n/>\n<div\n tuiFade\n tuiFadeOffset=\"0.5rem\"\n class=\"t-text\"\n [tuiHintOverflow]=\"hint?.content() ? null : handlers.stringify()(internal())\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ handlers.stringify()(internal()) }}\n</div>\n@if (textfield.cva?.interactive() && !editing() && !disabled()) {\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop)=\"delete()\"\n (pointerdown.prevent.stop.zoneless)=\"(0)\"\n >\n Remove\n </button>\n}\n","import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiInputChipOptions {\n readonly separator: RegExp | string;\n readonly unique: boolean;\n}\n\nexport const TUI_INPUT_CHIP_DEFAULT_OPTIONS: TuiInputChipOptions = {\n separator: ',',\n unique: true,\n};\n\nexport const [TUI_INPUT_CHIP_OPTIONS, tuiInputChipOptionsProvider] = tuiCreateOptions(\n TUI_INPUT_CHIP_DEFAULT_OPTIONS,\n);\n","import {Directive, inject, Input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {TUI_IS_MOBILE, tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiGetClipboardDataText, tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n TuiTextfieldBase,\n TuiTextfieldMultiComponent,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownDirective,\n TuiDropdownOpen,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {filter} from 'rxjs';\n\nimport {TUI_INPUT_CHIP_OPTIONS} from './input-chip.options';\n\n// TODO(v5): remove base component after angular update\n@Directive({\n standalone: true,\n host: {\n enterkeyhint: 'enter',\n '[disabled]': 'disabled()',\n '(keydown.enter.prevent)': 'onEnter()',\n '(keydown.zoneless)': 'onBackspace($event.key)',\n '(input)': 'onInput()',\n '(paste.prevent)': 'onPaste($event)',\n '(drop.prevent)': 'onPaste($event)',\n },\n})\nexport class TuiInputChipBaseDirective<T>\n extends TuiControl<T[]>\n implements TuiTextfieldAccessor<T[]>\n{\n private readonly options = inject(TUI_INPUT_CHIP_OPTIONS);\n private readonly mobile = inject(TUI_IS_MOBILE);\n private readonly dropdown = inject(TuiDropdownDirective);\n\n protected readonly textfield = inject(TuiTextfieldMultiComponent);\n protected readonly open = tuiDropdownOpen();\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly enabled = tuiDirectiveBinding(\n TuiDropdownOpen,\n 'tuiDropdownEnabled',\n this.interactive,\n {},\n );\n\n protected readonly sub = inject(TuiActiveZone)\n .tuiActiveZoneChange.pipe(\n filter((active) => !active && !this.el.matches('select')),\n takeUntilDestroyed(),\n )\n .subscribe(() => {\n this.onEnter();\n this.textfield.value.set('');\n });\n\n @Input()\n public separator = this.options.separator;\n\n @Input()\n public unique = this.options.unique;\n\n public readonly el = tuiInjectElement<HTMLInputElement>();\n\n public setValue(value: T[]): void {\n this.textfield.value.set('');\n this.onChange(\n this.unique ? Array.from(new Set(value.reverse())).reverse() : value,\n );\n }\n\n protected onEnter(): void {\n const value = this.textfield.value().trim();\n const items: any[] = this.separator ? value.split(this.separator) : [value];\n const valid = items.filter(\n (item) => item && !this.handlers.disabledItemHandler()(item),\n );\n\n if (!value || !valid.length) {\n return;\n }\n\n this.setValue([...this.value(), ...valid]);\n this.scrollTo();\n }\n\n protected onInput(): void {\n this.open.set(!!this.dropdown.content);\n\n if (this.separator && this.textfield.value().match(this.separator)) {\n this.onEnter();\n } else {\n this.scrollTo();\n }\n }\n\n protected onPaste(event: ClipboardEvent | DragEvent): void {\n const value =\n 'dataTransfer' in event\n ? event.dataTransfer?.getData('text/plain') || ''\n : tuiGetClipboardDataText(event);\n\n this.textfield.value.set(value);\n this.onEnter();\n }\n\n protected onBackspace(key: string): void {\n // (keydown.backspace) doesn't emit event on empty input in ios safari\n if (\n key === 'Backspace' &&\n !this.textfield.value() &&\n this.interactive() &&\n (this.mobile || !this.textfield.item)\n ) {\n this.onChange(this.value().slice(0, -1));\n }\n }\n\n protected scrollTo(): void {\n const sign = this.textfield.el.matches('[dir=\"rtl\"] :scope') ? -1 : 1;\n\n // Allow change detection to run and add new tag to DOM\n setTimeout(() => {\n this.textfield.el.scrollTo({\n left: sign * Number.MAX_SAFE_INTEGER,\n top: Number.MAX_SAFE_INTEGER,\n });\n });\n }\n}\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputChip]',\n providers: [\n tuiAsControl(TuiInputChipDirective),\n tuiFallbackValueProvider([]),\n tuiAsTextfieldAccessor(TuiInputChipDirective),\n ],\n hostDirectives: [\n TuiNativeValidator,\n {\n directive: TuiTextfieldBase,\n inputs: ['invalid', 'focused', 'readOnly', 'state'],\n },\n ],\n})\nexport class TuiInputChipDirective<T> extends TuiInputChipBaseDirective<T> {}\n","import {TuiInputChipComponent} from './input-chip.component';\nimport {TuiInputChipDirective} from './input-chip.directive';\n\nexport const TuiInputChip = [TuiInputChipDirective, TuiInputChipComponent] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyDa,qBAAqB,CAAA;AAzBlC,IAAA,WAAA,GAAA;AA6BqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC;QACvC,IAAO,CAAA,OAAA,GAAG,aAAa,EAAmC;QAC1D,IAAK,CAAA,KAAA,GAAG,cAAc,EAAgB;AAEpC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAChC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;QAC9B,IAAQ,CAAA,QAAA,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;AAC9C,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;AACvB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAA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AACP,wBAAA,YAAY,CAAuB,qBAAA,CAAA;wBACnC,wBAAwB,CAAC,EAAE,CAAC;AAC5B,wBAAA,sBAAsB,CAAuB,qBAAA,CAAA;AAChD,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,kBAAkB;AAClB,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;4BAC3B,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC;AACtD,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;MC3JY,YAAY,GAAG,CAAC,qBAAqB,EAAE,qBAAqB;;ACHzE;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-chip.mjs","sources":["../../../projects/kit/components/input-chip/input-chip.component.ts","../../../projects/kit/components/input-chip/input-chip.template.html","../../../projects/kit/components/input-chip/input-chip.options.ts","../../../projects/kit/components/input-chip/input-chip.directive.ts","../../../projects/kit/components/input-chip/input-chip.ts","../../../projects/kit/components/input-chip/taiga-ui-kit-components-input-chip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n type Signal,\n signal,\n viewChild,\n} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {\n TUI_TEXTFIELD_OPTIONS,\n type TuiTextfieldItem,\n TuiTextfieldMultiComponent,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiHintDirective, TuiHintOverflow} from '@taiga-ui/core/directives/hint';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {TuiChip} from '@taiga-ui/kit/components/chip';\nimport {TuiFade} from '@taiga-ui/kit/directives/fade';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\nimport {injectContext} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-input-chip',\n imports: [\n FormsModule,\n ReactiveFormsModule,\n TuiButton,\n TuiChip,\n TuiFade,\n TuiHintOverflow,\n ],\n templateUrl: './input-chip.template.html',\n styleUrl: './input-chip.styles.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiChip],\n host: {\n tuiChip: '',\n class: 'tui-interactive',\n '[class._edit]': 'editing()',\n '[attr.tabIndex]': 'disabled() ? null : -1',\n '(click)': 'editing() && $event.stopPropagation()',\n '(keydown.backspace.prevent)': 'delete()',\n '(keydown.enter.prevent)': 'edit()',\n '(dblclick)': 'edit()',\n },\n})\nexport class TuiInputChipComponent<T> {\n private readonly options = inject(TUI_TEXTFIELD_OPTIONS);\n private readonly context = injectContext<TuiContext<TuiTextfieldItem<T>>>();\n private readonly value = tuiInjectValue<readonly T[]>();\n private readonly input: Signal<ElementRef<HTMLInputElement> | undefined> = viewChild(\n TuiChip,\n {read: ElementRef},\n );\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly mobile = inject(TUI_IS_MOBILE);\n protected readonly internal = signal(this.context.$implicit.item);\n protected readonly editing = signal(false);\n protected readonly hint = inject(TuiHintDirective, {self: true, optional: true});\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly textfield = inject(TuiTextfieldMultiComponent);\n protected readonly disabled = tuiDirectiveBinding(\n TuiAppearance,\n 'tuiAppearanceState',\n computed(() =>\n this.handlers.disabledItemHandler()(this.context.$implicit.item)\n ? 'disabled'\n : null,\n ),\n );\n\n protected readonly size = tuiDirectiveBinding(\n TuiChip,\n 'size',\n computed(() => (this.options.size() === 'l' ? 's' : 'xs')),\n );\n\n public readonly editable = input(true);\n\n protected get index(): number {\n return this.context.$implicit.index;\n }\n\n protected delete(): void {\n this.textfield.cva()?.onChange(this.value().filter((_, i) => i !== this.index));\n\n if (!this.mobile) {\n this.textfield.input()?.nativeElement.focus({preventScroll: true});\n }\n }\n\n protected save(): void {\n if (!this.internal()) {\n this.delete();\n } else if (this.handlers.disabledItemHandler()(this.internal())) {\n return;\n }\n\n const value = this.value().map((item, index) =>\n index === this.index ? this.internal() : item,\n );\n\n this.textfield.cva()?.onChange(value);\n this.editing.set(false);\n this.textfield.input()?.nativeElement.focus({preventScroll: true});\n }\n\n protected cancel(): void {\n this.editing.set(false);\n this.internal.set(this.context.$implicit.item);\n }\n\n protected edit(): void {\n if (\n !this.editable() ||\n !this.textfield.cva()?.interactive() ||\n !tuiIsString(this.internal())\n ) {\n return;\n }\n\n this.editing.set(true);\n setTimeout(() => this.input()?.nativeElement.focus());\n }\n}\n","<input\n appearance=\"\"\n enterkeyhint=\"enter\"\n tuiChip\n class=\"t-input\"\n [disabled]=\"!editing()\"\n [ngModel]=\"internal()\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"cancel()\"\n (keydown.enter)=\"save()\"\n (keydown.esc)=\"cancel()\"\n (keydown.stop)=\"(0)\"\n (ngModelChange)=\"internal.set($event)\"\n/>\n<div\n tuiFade\n tuiFadeOffset=\"0.5rem\"\n class=\"t-text\"\n [tuiHintOverflow]=\"hint?.content() ? null : handlers.stringify()(internal())\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ handlers.stringify()(internal()) }}\n</div>\n@if (textfield.cva()?.interactive() && !editing() && !disabled()) {\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop)=\"delete()\"\n (pointerdown.prevent.stop.zoneless)=\"(0)\"\n >\n Remove\n </button>\n}\n","import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiInputChipOptions {\n readonly separator: RegExp | string;\n readonly unique: boolean;\n}\n\nexport const TUI_INPUT_CHIP_DEFAULT_OPTIONS: TuiInputChipOptions = {\n separator: ',',\n unique: true,\n};\n\nexport const [TUI_INPUT_CHIP_OPTIONS, tuiInputChipOptionsProvider] = tuiCreateOptions(\n TUI_INPUT_CHIP_DEFAULT_OPTIONS,\n);\n","import {Directive, inject, input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {TUI_IS_MOBILE, tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiGetClipboardDataText, tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n TuiTextfieldMultiComponent,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {\n TuiDropdownDirective,\n TuiDropdownOpen,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {filter} from 'rxjs';\n\nimport {TUI_INPUT_CHIP_OPTIONS} from './input-chip.options';\n\n// TODO: Consider making input[tuiTextfieldMulti] to reuse here and in InputDateMulti\n@Directive({\n selector: 'input[tuiInputChip]',\n providers: [\n tuiAsControl(TuiInputChipDirective),\n tuiFallbackValueProvider([]),\n tuiAsTextfieldAccessor(TuiInputChipDirective),\n {\n provide: TuiAppearance,\n useFactory: () => inject(TuiAppearance, {skipSelf: true}),\n },\n ],\n hostDirectives: [TuiWithTextfield],\n host: {\n enterkeyhint: 'enter',\n '[attr.tuiAppearance]': 'null',\n '[disabled]': 'disabled()',\n '(keydown.enter.prevent)': 'onEnter()',\n '(keydown.zoneless)': 'onBackspace($event.key)',\n '(input)': 'onInput()',\n '(paste.prevent)': 'onPaste($event)',\n '(drop.prevent)': 'onPaste($event)',\n },\n})\nexport class TuiInputChipDirective<T>\n extends TuiControl<T[]>\n implements TuiTextfieldAccessor<T[]>\n{\n private readonly options = inject(TUI_INPUT_CHIP_OPTIONS);\n private readonly mobile = inject(TUI_IS_MOBILE);\n private readonly dropdown = inject(TuiDropdownDirective);\n\n protected readonly textfield = inject(TuiTextfieldMultiComponent);\n protected readonly open = tuiDropdownOpen();\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly enabled = tuiDirectiveBinding(\n TuiDropdownOpen,\n 'tuiDropdownEnabled',\n this.interactive,\n {},\n );\n\n protected readonly sub = inject(TuiActiveZone)\n .tuiActiveZoneChange.pipe(\n filter((active) => !active && !this.el.matches('select')),\n takeUntilDestroyed(),\n )\n .subscribe(() => {\n this.onEnter();\n this.textfield.value.set('');\n });\n\n public readonly separator = input(this.options.separator);\n public readonly unique = input(this.options.unique);\n\n public readonly el = tuiInjectElement<HTMLInputElement>();\n\n public setValue(value: T[]): void {\n this.textfield.value.set('');\n this.onChange(\n this.unique() ? Array.from(new Set(value.reverse())).reverse() : value,\n );\n }\n\n protected onEnter(): void {\n const value = this.textfield.value().trim();\n const items: any[] = this.separator() ? value.split(this.separator()) : [value];\n const valid = items.filter(\n (item) => item && !this.handlers.disabledItemHandler()(item),\n );\n\n if (!value || !valid.length) {\n return;\n }\n\n this.setValue([...this.value(), ...valid]);\n this.scrollTo();\n }\n\n protected onInput(): void {\n this.open.set(!!this.dropdown.content);\n\n if (this.separator() && this.textfield.value().match(this.separator())) {\n this.onEnter();\n } else {\n this.scrollTo();\n }\n }\n\n protected onPaste(event: ClipboardEvent | DragEvent): void {\n const value =\n 'dataTransfer' in event\n ? event.dataTransfer?.getData('text/plain') || ''\n : tuiGetClipboardDataText(event);\n\n this.textfield.value.set(value);\n this.onEnter();\n }\n\n protected onBackspace(key: string): void {\n // (keydown.backspace) doesn't emit event on empty input in ios safari\n if (key === 'Backspace' && !this.textfield.value() && this.interactive()) {\n if (this.mobile || !this.textfield.item) {\n this.onChange(this.value().slice(0, -1));\n } else {\n this.el.dispatchEvent(\n new KeyboardEvent('keydown', {\n key: 'ArrowLeft',\n bubbles: true,\n }),\n );\n }\n }\n }\n\n protected scrollTo(): void {\n const sign = this.textfield.el.matches('[dir=\"rtl\"] :scope') ? -1 : 1;\n\n // Allow change detection to run and add new tag to DOM\n setTimeout(() => {\n this.textfield.el.scrollTo({\n left: sign * Number.MAX_SAFE_INTEGER,\n top: Number.MAX_SAFE_INTEGER,\n });\n });\n }\n}\n","import {TuiInputChipComponent} from './input-chip.component';\nimport {TuiInputChipDirective} from './input-chip.directive';\n\nexport const TuiInputChip = [TuiInputChipDirective, TuiInputChipComponent] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;MA2Da,qBAAqB,CAAA;AAzBlC,IAAA,WAAA,GAAA;AA0BqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC;QACvC,IAAO,CAAA,OAAA,GAAG,aAAa,EAAmC;QAC1D,IAAK,CAAA,KAAA,GAAG,cAAc,EAAgB;QACtC,IAAK,CAAA,KAAA,GAAqD,SAAS,CAChF,OAAO,EACP,EAAC,IAAI,EAAE,UAAU,EAAC,CACrB;AAEkB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAChC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;QAC9B,IAAQ,CAAA,QAAA,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;AAC9C,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;AACvB,QAAA,IAAA,CAA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yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,gBAAgB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,OAAO;AACrB,wBAAA,sBAAsB,EAAE,MAAM;AAC9B,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,yBAAyB,EAAE,WAAW;AACtC,wBAAA,oBAAoB,EAAE,yBAAyB;AAC/C,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,iBAAiB,EAAE,iBAAiB;AACpC,wBAAA,gBAAgB,EAAE,iBAAiB;AACtC,qBAAA;AACJ,iBAAA;;;MC/CY,YAAY,GAAG,CAAC,qBAAqB,EAAE,qBAAqB;;ACHzE;;AAEG;;;;"}
@@ -8,10 +8,9 @@ import { maskitoAddOnFocusPlugin, maskitoRemoveOnBlurPlugin, maskitoPrefixPostpr
8
8
  import { TuiControl, tuiAsControl } from '@taiga-ui/cdk/classes';
9
9
  import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
10
10
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
11
- import { tuiDirectiveBinding } from '@taiga-ui/cdk/utils/miscellaneous';
12
11
  import * as i2 from '@taiga-ui/core/components/textfield';
13
12
  import { TuiTextfieldContent, TuiWithTextfield } from '@taiga-ui/core/components/textfield';
14
- import { TuiIcons } from '@taiga-ui/core/directives/icons';
13
+ import { TuiIcons, tuiIconStart } from '@taiga-ui/core/directives/icons';
15
14
  import * as i4 from '@taiga-ui/kit/components/slider';
16
15
  import { tuiSliderOptionsProvider, TuiSlider } from '@taiga-ui/kit/components/slider';
17
16
  import { tuiMaskito } from '@taiga-ui/kit/utils';
@@ -32,8 +31,8 @@ class TuiInputColor extends TuiControl {
32
31
  this.list = this.el.getAttribute('list');
33
32
  this.format = signal(this.options.format);
34
33
  this.align = signal(this.options.align);
35
- this.left = inject(TuiIcons).iconStart();
36
- this.icon = tuiDirectiveBinding(TuiIcons, 'iconStart', computed(() => (this.align() === 'left' ? EMPTY : this.left)), {});
34
+ this.left = inject(TuiIcons).iconStart() || '';
35
+ this.icon = tuiIconStart(computed(() => (this.align() === 'left' ? EMPTY : this.left)), {});
37
36
  this.maskito = tuiMaskito(computed((length = this.format().length * 2) => ({
38
37
  mask: ['#', ...Array.from({ length }).fill(REGEX)],
39
38
  postprocessors: [maskitoPrefixPostprocessorGenerator('#')],
@@ -59,7 +58,7 @@ class TuiInputColor extends TuiControl {
59
58
  this.onChange(`${value}${toHex(opacity)}`);
60
59
  }
61
60
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputColor, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
62
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputColor, isStandalone: true, selector: "input[tuiInputColor]", inputs: { alignSetter: ["align", "alignSetter"], formatSetter: ["format", "formatSetter"] }, host: { attributes: { "ngSkipHydration": "true", "inputmode": "numeric", "spellcheck": "false" }, listeners: { "input": "onChange($event.target.value)" }, properties: { "disabled": "disabled()", "value": "value()", "attr.list": "null" } }, providers: [
61
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputColor, isStandalone: true, selector: "input[tuiInputColor]", inputs: { alignSetter: ["align", "alignSetter"], formatSetter: ["format", "formatSetter"] }, host: { attributes: { "ngSkipHydration": "true", "spellcheck": "false" }, listeners: { "input": "onChange($event.target.value)" }, properties: { "disabled": "disabled()", "value": "value()", "attr.list": "null" } }, providers: [
63
62
  tuiAsControl(TuiInputColor),
64
63
  tuiFallbackValueProvider(''),
65
64
  tuiSliderOptionsProvider({ trackColor: 'transparent' }),
@@ -73,7 +72,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
73
72
  tuiSliderOptionsProvider({ trackColor: 'transparent' }),
74
73
  ], hostDirectives: [MaskitoDirective, TuiWithTextfield], host: {
75
74
  ngSkipHydration: 'true',
76
- inputmode: 'numeric',
77
75
  spellcheck: 'false',
78
76
  '[disabled]': 'disabled()',
79
77
  '[value]': 'value()',