@taiga-ui/kit 4.51.0 → 4.52.0-canary.1ea42f6

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 (806) hide show
  1. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  2. package/components/avatar/avatar.directive.d.ts +15 -0
  3. package/components/avatar/avatar.options.d.ts +1 -4
  4. package/components/avatar/index.d.ts +1 -1
  5. package/components/badge/badge.directive.d.ts +2 -2
  6. package/components/block/block.directive.d.ts +4 -4
  7. package/components/block/block.options.d.ts +1 -1
  8. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  9. package/components/checkbox/checkbox.component.d.ts +7 -18
  10. package/components/checkbox/checkbox.options.d.ts +5 -9
  11. package/components/chip/chip.directive.d.ts +2 -4
  12. package/components/comment/comment.directive.d.ts +2 -2
  13. package/components/confirm/confirm.component.d.ts +1 -0
  14. package/components/confirm/confirm.service.d.ts +2 -1
  15. package/{directives → components}/copy/copy.directive.d.ts +1 -2
  16. package/{directives → components}/copy/copy.options.d.ts +2 -2
  17. package/components/files/file/file.options.d.ts +1 -1
  18. package/components/floating-container/floating-container.directive.d.ts +2 -2
  19. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  20. package/components/fullscreen/index.d.ts +1 -0
  21. package/components/index.d.ts +4 -1
  22. package/components/input-chip/input-chip.options.d.ts +1 -1
  23. package/components/input-color/input-color.component.d.ts +2 -1
  24. package/components/input-color/input-color.options.d.ts +1 -1
  25. package/components/input-date/input-date.directive.d.ts +1 -1
  26. package/components/input-date/input-date.options.d.ts +1 -1
  27. package/components/input-number/input-number.options.d.ts +1 -1
  28. package/components/input-number/quantum.directive.d.ts +2 -2
  29. package/components/input-phone/input-phone.options.d.ts +1 -1
  30. package/components/input-slider/input-slider.directive.d.ts +1 -1
  31. package/components/input-time/input-time.options.d.ts +1 -1
  32. package/components/like/like.component.d.ts +4 -11
  33. package/components/like/like.options.d.ts +3 -4
  34. package/components/line-clamp/line-clamp.component.d.ts +6 -10
  35. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +2 -2
  36. package/components/notification-middle/index.d.ts +3 -0
  37. package/components/notification-middle/notification-middle.component.d.ts +16 -0
  38. package/components/notification-middle/notification-middle.directive.d.ts +7 -0
  39. package/components/notification-middle/notification-middle.service.d.ts +7 -0
  40. package/components/pager/pager.component.d.ts +1 -1
  41. package/components/pin/pin.directive.d.ts +2 -2
  42. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  43. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  44. package/components/push/push.component.d.ts +1 -1
  45. package/components/radio/radio.component.d.ts +7 -8
  46. package/components/radio/radio.directive.d.ts +2 -2
  47. package/components/radio/radio.options.d.ts +2 -5
  48. package/components/rating/rating.component.d.ts +5 -5
  49. package/components/rating/rating.options.d.ts +5 -3
  50. package/components/segmented/segmented.component.d.ts +5 -5
  51. package/components/slides/slides.directive.d.ts +4 -4
  52. package/components/status/status.directive.d.ts +2 -2
  53. package/components/switch/switch.component.d.ts +7 -19
  54. package/components/switch/switch.options.d.ts +4 -8
  55. package/components/textarea/textarea-limit.directive.d.ts +0 -1
  56. package/components/textarea/textarea.options.d.ts +1 -1
  57. package/components/toast/index.d.ts +5 -0
  58. package/components/toast/toast.component.d.ts +17 -0
  59. package/components/toast/toast.d.ts +3 -0
  60. package/components/toast/toast.directive.d.ts +7 -0
  61. package/components/toast/toast.options.d.ts +8 -0
  62. package/components/toast/toast.service.d.ts +16 -0
  63. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  64. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
  65. package/directives/chevron/chevron.directive.d.ts +2 -3
  66. package/directives/fade/fade.directive.d.ts +1 -0
  67. package/directives/highlight/highlight.directive.d.ts +2 -2
  68. package/directives/index.d.ts +0 -2
  69. package/directives/password/password.options.d.ts +1 -1
  70. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  71. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  72. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  73. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  74. package/directives/tooltip/tooltip.options.d.ts +2 -2
  75. package/fesm2022/taiga-ui-kit-components-accordion.mjs +16 -17
  76. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +8 -8
  78. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-avatar.mjs +81 -100
  80. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  82. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-badge.mjs +15 -21
  84. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  86. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-block.mjs +17 -24
  88. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +8 -10
  90. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -5
  92. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -8
  94. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +10 -10
  96. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-kit-components-carousel.mjs +21 -23
  98. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +19 -76
  100. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-kit-components-chip.mjs +22 -27
  102. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
  104. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  106. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  108. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -15
  110. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  111. package/fesm2022/{taiga-ui-kit-directives-copy.mjs → taiga-ui-kit-components-copy.mjs} +13 -14
  112. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  113. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +13 -14
  114. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  116. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -8
  118. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-components-files.mjs +32 -34
  120. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-kit-components-filter.mjs +7 -16
  122. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +13 -19
  124. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +65 -0
  126. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  127. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +22 -19
  128. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-input-color.mjs +12 -15
  130. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +6 -6
  132. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  134. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +8 -9
  136. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-input-date.mjs +15 -16
  138. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +6 -6
  140. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +5 -5
  142. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-input-month.mjs +11 -12
  144. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-input-number.mjs +30 -29
  146. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +13 -16
  148. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
  150. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +9 -8
  152. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-input-range.mjs +14 -24
  154. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +13 -16
  156. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-input-time.mjs +14 -14
  158. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-input-year.mjs +6 -6
  160. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +18 -18
  162. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  164. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +33 -39
  166. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-message.mjs +10 -12
  168. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +40 -37
  170. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +90 -0
  172. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -0
  173. package/fesm2022/taiga-ui-kit-components-pager.mjs +8 -8
  174. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-pagination.mjs +8 -8
  176. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +11 -11
  178. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  180. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +11 -11
  182. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-preview.mjs +33 -35
  184. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-progress.mjs +39 -52
  186. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  188. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-push.mjs +20 -20
  190. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +7 -8
  192. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-radio.mjs +34 -39
  194. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-range.mjs +9 -9
  196. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-rating.mjs +17 -22
  198. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  200. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  202. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-select.mjs +17 -17
  204. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-slider.mjs +21 -22
  206. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-slides.mjs +14 -22
  208. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  210. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-stepper.mjs +12 -12
  212. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-switch.mjs +19 -65
  214. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-tabs.mjs +34 -37
  216. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-textarea.mjs +17 -19
  218. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  220. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-toast.mjs +166 -0
  222. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  223. package/fesm2022/taiga-ui-kit-components-tree.mjs +35 -51
  224. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components.mjs +4 -1
  226. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  228. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +10 -13
  230. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  232. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +13 -20
  234. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-directives-connected.mjs +10 -15
  236. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  238. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-directives-fade.mjs +11 -14
  240. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  242. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  244. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -9
  246. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-directives-password.mjs +6 -6
  248. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  250. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  252. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  254. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +27 -38
  256. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +13 -18
  258. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +5 -6
  260. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  262. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  264. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  266. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  268. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  270. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  272. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  274. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  276. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  278. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -9
  280. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  282. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  283. package/package.json +41 -251
  284. package/pipes/index.d.ts +0 -1
  285. package/styles/components/avatar.less +188 -0
  286. package/styles/components/badge.less +3 -18
  287. package/styles/components/block.less +1 -1
  288. package/styles/components/checkbox.less +17 -16
  289. package/styles/components/chip.less +7 -3
  290. package/styles/components/like.less +15 -17
  291. package/styles/components/pin.less +3 -7
  292. package/styles/components/radio.less +2 -2
  293. package/styles/components/switch.less +12 -12
  294. package/styles/components/toast.less +44 -0
  295. package/tokens/index.d.ts +0 -1
  296. package/tokens/input-date-options.d.ts +1 -1
  297. package/components/avatar/avatar.component.d.ts +0 -15
  298. package/components/input-password/index.d.ts +0 -2
  299. package/components/input-password/input-password.component.d.ts +0 -16
  300. package/components/input-password/input-password.options.d.ts +0 -24
  301. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  302. package/directives/icon-badge/index.d.ts +0 -1
  303. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  304. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  305. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  306. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  307. package/esm2022/components/accordion/accordion.mjs +0 -11
  308. package/esm2022/components/accordion/index.mjs +0 -6
  309. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  310. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  311. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  312. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  313. package/esm2022/components/action-bar/index.mjs +0 -4
  314. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  315. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  316. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  317. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  318. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  319. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  320. package/esm2022/components/avatar/index.mjs +0 -6
  321. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  322. package/esm2022/components/badge/badge.directive.mjs +0 -42
  323. package/esm2022/components/badge/badge.options.mjs +0 -13
  324. package/esm2022/components/badge/index.mjs +0 -3
  325. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  326. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  327. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  328. package/esm2022/components/badge-notification/index.mjs +0 -3
  329. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  330. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  331. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  332. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  333. package/esm2022/components/badged-content/index.mjs +0 -4
  334. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  335. package/esm2022/components/block/block.directive.mjs +0 -58
  336. package/esm2022/components/block/block.options.mjs +0 -13
  337. package/esm2022/components/block/index.mjs +0 -3
  338. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  339. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  340. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  341. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  342. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  343. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  344. package/esm2022/components/button-loading/index.mjs +0 -2
  345. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  346. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  347. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  348. package/esm2022/components/calendar-month/index.mjs +0 -3
  349. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  350. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  351. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  352. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  353. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  354. package/esm2022/components/calendar-range/index.mjs +0 -5
  355. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  356. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  357. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  358. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  359. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  360. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  361. package/esm2022/components/carousel/carousel.mjs +0 -15
  362. package/esm2022/components/carousel/index.mjs +0 -7
  363. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  364. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  365. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  366. package/esm2022/components/checkbox/index.mjs +0 -3
  367. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  368. package/esm2022/components/chip/chip.directive.mjs +0 -63
  369. package/esm2022/components/chip/chip.options.mjs +0 -13
  370. package/esm2022/components/chip/index.mjs +0 -3
  371. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  372. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  373. package/esm2022/components/combo-box/index.mjs +0 -2
  374. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  375. package/esm2022/components/comment/comment.directive.mjs +0 -35
  376. package/esm2022/components/comment/index.mjs +0 -2
  377. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  378. package/esm2022/components/compass/compass.component.mjs +0 -19
  379. package/esm2022/components/compass/index.mjs +0 -2
  380. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  381. package/esm2022/components/confirm/confirm.component.mjs +0 -29
  382. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  383. package/esm2022/components/confirm/index.mjs +0 -3
  384. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  385. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  386. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  387. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  388. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  389. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  390. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  391. package/esm2022/components/drawer/index.mjs +0 -2
  392. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  393. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  394. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  395. package/esm2022/components/elastic-container/index.mjs +0 -3
  396. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  397. package/esm2022/components/files/file/file.component.mjs +0 -144
  398. package/esm2022/components/files/file/file.options.mjs +0 -16
  399. package/esm2022/components/files/files/files.component.mjs +0 -49
  400. package/esm2022/components/files/files.mjs +0 -15
  401. package/esm2022/components/files/files.types.mjs +0 -2
  402. package/esm2022/components/files/files.utils.mjs +0 -30
  403. package/esm2022/components/files/files.validators.mjs +0 -32
  404. package/esm2022/components/files/index.mjs +0 -13
  405. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  406. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  407. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  408. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  409. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  410. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  411. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  412. package/esm2022/components/filter/filter.component.mjs +0 -65
  413. package/esm2022/components/filter/index.mjs +0 -2
  414. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  415. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  416. package/esm2022/components/floating-container/index.mjs +0 -2
  417. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  418. package/esm2022/components/index.mjs +0 -72
  419. package/esm2022/components/input-chip/index.mjs +0 -5
  420. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  421. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  422. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  423. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  424. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  425. package/esm2022/components/input-color/index.mjs +0 -3
  426. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  427. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  428. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  429. package/esm2022/components/input-date/date-filler.mjs +0 -20
  430. package/esm2022/components/input-date/index.mjs +0 -6
  431. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  432. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  433. package/esm2022/components/input-date/input-date.mjs +0 -9
  434. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  435. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  436. package/esm2022/components/input-date-multi/index.mjs +0 -3
  437. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  438. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  439. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  440. package/esm2022/components/input-date-range/index.mjs +0 -4
  441. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  442. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  443. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  444. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  445. package/esm2022/components/input-date-time/index.mjs +0 -5
  446. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  447. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  448. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  449. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  450. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  451. package/esm2022/components/input-inline/index.mjs +0 -2
  452. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  453. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  454. package/esm2022/components/input-month/index.mjs +0 -5
  455. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  456. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  457. package/esm2022/components/input-month/input-month.mjs +0 -9
  458. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  459. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  460. package/esm2022/components/input-month-range/index.mjs +0 -4
  461. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  462. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  463. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  464. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  465. package/esm2022/components/input-number/index.mjs +0 -6
  466. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  467. package/esm2022/components/input-number/input-number.mjs +0 -9
  468. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  469. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  470. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  471. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  472. package/esm2022/components/input-password/index.mjs +0 -3
  473. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  474. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  475. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  476. package/esm2022/components/input-phone/index.mjs +0 -3
  477. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  478. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  479. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  480. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  481. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  482. package/esm2022/components/input-phone-international/index.mjs +0 -3
  483. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  484. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  485. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  486. package/esm2022/components/input-pin/index.mjs +0 -2
  487. package/esm2022/components/input-pin/input-pin.component.mjs +0 -65
  488. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  489. package/esm2022/components/input-range/index.mjs +0 -3
  490. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  491. package/esm2022/components/input-range/input-range.mjs +0 -4
  492. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  493. package/esm2022/components/input-slider/index.mjs +0 -3
  494. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  495. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  496. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  497. package/esm2022/components/input-time/index.mjs +0 -5
  498. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  499. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  500. package/esm2022/components/input-time/input-time.mjs +0 -4
  501. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  502. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  503. package/esm2022/components/input-year/index.mjs +0 -4
  504. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  505. package/esm2022/components/input-year/input-year.mjs +0 -4
  506. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  507. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  508. package/esm2022/components/items-with-more/index.mjs +0 -6
  509. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  510. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  511. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  512. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  513. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  514. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  515. package/esm2022/components/like/index.mjs +0 -3
  516. package/esm2022/components/like/like.component.mjs +0 -46
  517. package/esm2022/components/like/like.options.mjs +0 -10
  518. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  519. package/esm2022/components/line-clamp/index.mjs +0 -4
  520. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  521. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  522. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  523. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  524. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  525. package/esm2022/components/message/index.mjs +0 -2
  526. package/esm2022/components/message/message.directive.mjs +0 -43
  527. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  528. package/esm2022/components/multi-select/index.mjs +0 -6
  529. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  530. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  531. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  532. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  533. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  534. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  535. package/esm2022/components/pager/index.mjs +0 -2
  536. package/esm2022/components/pager/pager.component.mjs +0 -97
  537. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  538. package/esm2022/components/pagination/index.mjs +0 -2
  539. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  540. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  541. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  542. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  543. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  544. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  545. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  546. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  547. package/esm2022/components/pin/index.mjs +0 -2
  548. package/esm2022/components/pin/pin.directive.mjs +0 -35
  549. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  550. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  551. package/esm2022/components/preview/dialog/index.mjs +0 -4
  552. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  553. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  554. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  555. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  556. package/esm2022/components/preview/index.mjs +0 -8
  557. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  558. package/esm2022/components/preview/preview.component.mjs +0 -142
  559. package/esm2022/components/preview/preview.mjs +0 -13
  560. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  561. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  562. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  563. package/esm2022/components/progress/index.mjs +0 -9
  564. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  565. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  566. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  567. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  568. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  569. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  570. package/esm2022/components/progress/progress.mjs +0 -15
  571. package/esm2022/components/progress/progress.options.mjs +0 -13
  572. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  573. package/esm2022/components/pulse/index.mjs +0 -2
  574. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  575. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  576. package/esm2022/components/push/index.mjs +0 -7
  577. package/esm2022/components/push/push-alert.component.mjs +0 -29
  578. package/esm2022/components/push/push.component.mjs +0 -39
  579. package/esm2022/components/push/push.directive.mjs +0 -33
  580. package/esm2022/components/push/push.mjs +0 -5
  581. package/esm2022/components/push/push.options.mjs +0 -21
  582. package/esm2022/components/push/push.service.mjs +0 -19
  583. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  584. package/esm2022/components/radio/index.mjs +0 -5
  585. package/esm2022/components/radio/radio.component.mjs +0 -53
  586. package/esm2022/components/radio/radio.directive.mjs +0 -32
  587. package/esm2022/components/radio/radio.mjs +0 -4
  588. package/esm2022/components/radio/radio.options.mjs +0 -13
  589. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  590. package/esm2022/components/radio-list/index.mjs +0 -2
  591. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  592. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  593. package/esm2022/components/range/index.mjs +0 -3
  594. package/esm2022/components/range/range-change.directive.mjs +0 -78
  595. package/esm2022/components/range/range.component.mjs +0 -164
  596. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  597. package/esm2022/components/rating/index.mjs +0 -3
  598. package/esm2022/components/rating/rating.component.mjs +0 -65
  599. package/esm2022/components/rating/rating.options.mjs +0 -13
  600. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  601. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  602. package/esm2022/components/routable-dialog/index.mjs +0 -3
  603. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  604. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  605. package/esm2022/components/segmented/index.mjs +0 -3
  606. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  607. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  608. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  609. package/esm2022/components/select/index.mjs +0 -5
  610. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  611. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  612. package/esm2022/components/select/select.directive.mjs +0 -56
  613. package/esm2022/components/select/select.mjs +0 -4
  614. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  615. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  616. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  617. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  618. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  619. package/esm2022/components/slider/index.mjs +0 -8
  620. package/esm2022/components/slider/slider.component.mjs +0 -124
  621. package/esm2022/components/slider/slider.mjs +0 -12
  622. package/esm2022/components/slider/slider.options.mjs +0 -16
  623. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  624. package/esm2022/components/slides/index.mjs +0 -2
  625. package/esm2022/components/slides/slides.directive.mjs +0 -51
  626. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  627. package/esm2022/components/status/index.mjs +0 -2
  628. package/esm2022/components/status/status.directive.mjs +0 -35
  629. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  630. package/esm2022/components/stepper/index.mjs +0 -4
  631. package/esm2022/components/stepper/step.component.mjs +0 -58
  632. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  633. package/esm2022/components/stepper/stepper.mjs +0 -4
  634. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  635. package/esm2022/components/switch/index.mjs +0 -3
  636. package/esm2022/components/switch/switch.component.mjs +0 -63
  637. package/esm2022/components/switch/switch.options.mjs +0 -15
  638. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  639. package/esm2022/components/tabs/index.mjs +0 -9
  640. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  641. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  642. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  643. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -211
  644. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  645. package/esm2022/components/tabs/tabs.mjs +0 -15
  646. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  647. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  648. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  649. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  650. package/esm2022/components/textarea/index.mjs +0 -4
  651. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  652. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -94
  653. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  654. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  655. package/esm2022/components/tiles/index.mjs +0 -7
  656. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  657. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  658. package/esm2022/components/tiles/tile.component.mjs +0 -69
  659. package/esm2022/components/tiles/tile.service.mjs +0 -90
  660. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  661. package/esm2022/components/tiles/tiles.mjs +0 -5
  662. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  663. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  664. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  665. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  666. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  667. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  668. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  669. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  670. package/esm2022/components/tree/index.mjs +0 -12
  671. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  672. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  673. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  674. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  675. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  676. package/esm2022/components/tree/tree.mjs +0 -17
  677. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  678. package/esm2022/directives/button-close/index.mjs +0 -2
  679. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  680. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  681. package/esm2022/directives/button-group/index.mjs +0 -2
  682. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  683. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  684. package/esm2022/directives/button-select/index.mjs +0 -2
  685. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  686. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  687. package/esm2022/directives/chevron/index.mjs +0 -2
  688. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  689. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  690. package/esm2022/directives/connected/index.mjs +0 -2
  691. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  692. package/esm2022/directives/copy/copy.component.mjs +0 -48
  693. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  694. package/esm2022/directives/copy/copy.mjs +0 -4
  695. package/esm2022/directives/copy/copy.options.mjs +0 -3
  696. package/esm2022/directives/copy/index.mjs +0 -6
  697. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  698. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  699. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  700. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  701. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  702. package/esm2022/directives/fade/index.mjs +0 -2
  703. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  704. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  705. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  706. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  707. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  708. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  709. package/esm2022/directives/highlight/index.mjs +0 -2
  710. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  711. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  712. package/esm2022/directives/icon-badge/index.mjs +0 -2
  713. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  714. package/esm2022/directives/index.mjs +0 -21
  715. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  716. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  717. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  718. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  719. package/esm2022/directives/password/index.mjs +0 -3
  720. package/esm2022/directives/password/password.directive.mjs +0 -67
  721. package/esm2022/directives/password/password.options.mjs +0 -8
  722. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  723. package/esm2022/directives/present/index.mjs +0 -2
  724. package/esm2022/directives/present/present.directive.mjs +0 -33
  725. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  726. package/esm2022/directives/sensitive/index.mjs +0 -2
  727. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  728. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  729. package/esm2022/directives/shimmer/index.mjs +0 -2
  730. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  731. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  732. package/esm2022/directives/skeleton/index.mjs +0 -2
  733. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  734. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  735. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  736. package/esm2022/directives/tooltip/index.mjs +0 -3
  737. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  738. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  739. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  740. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  741. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  742. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  743. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  744. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  745. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  746. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  747. package/esm2022/index.mjs +0 -6
  748. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  749. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  750. package/esm2022/pipes/emails/index.mjs +0 -3
  751. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  752. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  753. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  754. package/esm2022/pipes/field-error/index.mjs +0 -3
  755. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  756. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  757. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  758. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  759. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  760. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  761. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  762. package/esm2022/pipes/index.mjs +0 -8
  763. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  764. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  765. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  766. package/esm2022/pipes/stringify/index.mjs +0 -2
  767. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  768. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  769. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  770. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  771. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  772. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  773. package/esm2022/taiga-ui-kit.mjs +0 -5
  774. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  775. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  776. package/esm2022/tokens/i18n.mjs +0 -75
  777. package/esm2022/tokens/index.mjs +0 -10
  778. package/esm2022/tokens/input-date-options.mjs +0 -13
  779. package/esm2022/tokens/items-handlers.mjs +0 -27
  780. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  781. package/esm2022/tokens/month-formatter.mjs +0 -12
  782. package/esm2022/tokens/preview-icons.mjs +0 -17
  783. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  784. package/esm2022/tokens/validation-errors.mjs +0 -6
  785. package/esm2022/utils/create-time-periods.mjs +0 -12
  786. package/esm2022/utils/index.mjs +0 -7
  787. package/esm2022/utils/inject-value.mjs +0 -11
  788. package/esm2022/utils/is-flat.mjs +0 -4
  789. package/esm2022/utils/maskito.binding.mjs +0 -6
  790. package/esm2022/utils/phone.mjs +0 -6
  791. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  792. package/esm2022/utils/toggle-day.mjs +0 -6
  793. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -96
  794. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  795. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  796. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  797. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  798. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  799. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  800. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  801. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  802. package/pipes/field-error/index.d.ts +0 -2
  803. package/tokens/validation-errors.d.ts +0 -5
  804. /package/{directives → components}/copy/copy.component.d.ts +0 -0
  805. /package/{directives → components}/copy/copy.d.ts +0 -0
  806. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1,6 +1,5 @@
1
- import { NgIf } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, signal, computed, ElementRef, Component, ChangeDetectionStrategy, ViewChild, Input, Directive } from '@angular/core';
2
+ import { inject, signal, computed, ElementRef, Input, ViewChild, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
4
3
  import * as i2 from '@angular/forms';
5
4
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
5
  import { TUI_IS_MOBILE, tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
@@ -79,14 +78,13 @@ class TuiInputChipComponent {
79
78
  this.editing.set(true);
80
79
  setTimeout(() => this.input?.nativeElement.focus());
81
80
  }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
83
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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<button\n *ngIf=\"textfield.cva?.interactive() && !editing() && !disabled()\"\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", 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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.ɵ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 }); }
84
83
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputChipComponent, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipComponent, decorators: [{
86
85
  type: Component,
87
- args: [{ standalone: true, selector: 'tui-input-chip', imports: [
86
+ args: [{ selector: 'tui-input-chip', imports: [
88
87
  FormsModule,
89
- NgIf,
90
88
  ReactiveFormsModule,
91
89
  TuiButton,
92
90
  TuiChip,
@@ -101,7 +99,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
101
99
  '(keydown.backspace.prevent)': 'delete()',
102
100
  '(keydown.enter.prevent)': 'edit()',
103
101
  '(dblclick)': 'edit()',
104
- }, 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<button\n *ngIf=\"textfield.cva?.interactive() && !editing() && !disabled()\"\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", 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
+ }, 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"] }]
105
103
  }], propDecorators: { input: [{
106
104
  type: ViewChild,
107
105
  args: [TuiChip, { read: ElementRef }]
@@ -168,11 +166,16 @@ class TuiInputChipBaseDirective extends TuiControl {
168
166
  }
169
167
  onBackspace(key) {
170
168
  // (keydown.backspace) doesn't emit event on empty input in ios safari
171
- if (key === 'Backspace' &&
172
- !this.textfield.value() &&
173
- this.interactive() &&
174
- (this.mobile || !this.textfield.item)) {
175
- this.onChange(this.value().slice(0, -1));
169
+ if (key === 'Backspace' && !this.textfield.value() && this.interactive()) {
170
+ if (this.mobile || !this.textfield.item) {
171
+ this.onChange(this.value().slice(0, -1));
172
+ }
173
+ else {
174
+ this.el.dispatchEvent(new KeyboardEvent('keydown', {
175
+ key: 'ArrowLeft',
176
+ bubbles: true,
177
+ }));
178
+ }
176
179
  }
177
180
  }
178
181
  scrollTo() {
@@ -185,10 +188,10 @@ class TuiInputChipBaseDirective extends TuiControl {
185
188
  });
186
189
  });
187
190
  }
188
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputChipBaseDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
189
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 }); }
191
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipBaseDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
192
+ 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 }); }
190
193
  }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputChipBaseDirective, decorators: [{
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipBaseDirective, decorators: [{
192
195
  type: Directive,
193
196
  args: [{
194
197
  standalone: true,
@@ -208,14 +211,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
208
211
  type: Input
209
212
  }] } });
210
213
  class TuiInputChipDirective extends TuiInputChipBaseDirective {
211
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputChipDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
212
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputChipDirective, isStandalone: true, selector: "input[tuiInputChip]", providers: [
214
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
215
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputChipDirective, isStandalone: true, selector: "input[tuiInputChip]", providers: [
213
216
  tuiAsControl(TuiInputChipDirective),
214
217
  tuiFallbackValueProvider([]),
215
218
  tuiAsTextfieldAccessor(TuiInputChipDirective),
216
219
  ], usesInheritance: true, hostDirectives: [{ directive: i1$1.TuiNativeValidator }, { directive: i2$1.TuiTextfieldBase, inputs: ["invalid", "invalid", "focused", "focused", "readOnly", "readOnly", "state", "state"] }], ngImport: i0 }); }
217
220
  }
218
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputChipDirective, decorators: [{
221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputChipDirective, decorators: [{
219
222
  type: Directive,
220
223
  args: [{
221
224
  standalone: true,
@@ -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 {NgIf} from '@angular/common';\nimport {\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 standalone: true,\n selector: 'tui-input-chip',\n imports: [\n FormsModule,\n NgIf,\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<button\n *ngIf=\"textfield.cva?.interactive() && !editing() && !disabled()\"\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","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,MA2Ba,qBAAqB,CAAA;AA3BlC,IAAA,WAAA,GAAA;AA+BqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACxC,IAAO,CAAA,OAAA,GAAG,aAAa,EAAmC,CAAC;QAC3D,IAAK,CAAA,KAAA,GAAG,cAAc,EAAgB,CAAC;AAErC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAC/B,IAAQ,CAAA,QAAA,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC/C,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AACxB,QAAA,IAAA,CAAA,IAAI,GA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qB,EAbnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,SAAA,EAAA;YACP,YAAY,CAAC,qBAAqB,CAAC;YACnC,wBAAwB,CAAC,EAAE,CAAC;YAC5B,sBAAsB,CAAC,qBAAqB,CAAC;AAChD,SAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,IAAA,CAAA,kBAAA,EAAA,EAAA,EAAA,SAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,SAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FASQ,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAhBjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,SAAS,EAAE;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,CAAA;;;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 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 (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\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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,qBAAqB;;ACHzE;;AAEG;;;;"}
@@ -1,18 +1,16 @@
1
- import { NgIf } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, signal, computed, Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
2
+ import { inject, signal, computed, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
3
  import * as i3 from '@angular/forms';
5
4
  import { FormsModule } from '@angular/forms';
6
5
  import * as i1 from '@maskito/angular';
7
6
  import { MaskitoDirective } from '@maskito/angular';
8
- import { maskitoPrefixPostprocessorGenerator, maskitoAddOnFocusPlugin, maskitoRemoveOnBlurPlugin } from '@maskito/kit';
7
+ import { maskitoAddOnFocusPlugin, maskitoRemoveOnBlurPlugin, maskitoPrefixPostprocessorGenerator } from '@maskito/kit';
9
8
  import { TuiControl, tuiAsControl } from '@taiga-ui/cdk/classes';
10
9
  import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
11
10
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
12
- import { tuiDirectiveBinding } from '@taiga-ui/cdk/utils/miscellaneous';
13
11
  import * as i2 from '@taiga-ui/core/components/textfield';
14
12
  import { TuiTextfieldContent, TuiWithTextfield } from '@taiga-ui/core/components/textfield';
15
- import { TuiIcons } from '@taiga-ui/core/directives/icons';
13
+ import { TuiIcons, tuiIconStart } from '@taiga-ui/core/directives/icons';
16
14
  import * as i4 from '@taiga-ui/kit/components/slider';
17
15
  import { tuiSliderOptionsProvider, TuiSlider } from '@taiga-ui/kit/components/slider';
18
16
  import { tuiMaskito } from '@taiga-ui/kit/utils';
@@ -24,6 +22,7 @@ const [TUI_INPUT_COLOR_OPTIONS, tuiInputColorOptionsProvider] = tuiCreateOptions
24
22
  });
25
23
 
26
24
  const REGEX = /[0-9a-fA-F]/;
25
+ const EMPTY = '"data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg></svg>"';
27
26
  class TuiInputColor extends TuiControl {
28
27
  constructor() {
29
28
  super(...arguments);
@@ -32,9 +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.icon = tuiDirectiveBinding(TuiIcons, 'iconStart', computed(() => this.align() === 'left'
36
- ? '"data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg></svg>"'
37
- : ''), {});
34
+ this.left = inject(TuiIcons).iconStart() || '';
35
+ this.icon = tuiIconStart(computed(() => (this.align() === 'left' ? EMPTY : this.left)), {});
38
36
  this.maskito = tuiMaskito(computed((length = this.format().length * 2) => ({
39
37
  mask: ['#', ...Array.from({ length }).fill(REGEX)],
40
38
  postprocessors: [maskitoPrefixPostprocessorGenerator('#')],
@@ -59,28 +57,27 @@ class TuiInputColor extends TuiControl {
59
57
  const value = this.filled() ? this.value().slice(0, 7) : '#000000';
60
58
  this.onChange(`${value}${toHex(opacity)}`);
61
59
  }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColor, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
63
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
60
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputColor, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
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: [
64
62
  tuiAsControl(TuiInputColor),
65
63
  tuiFallbackValueProvider(''),
66
64
  tuiSliderOptionsProvider({ trackColor: 'transparent' }),
67
- ], usesInheritance: true, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithTextfield }], ngImport: i0, template: "<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n <input\n *ngIf=\"format() === 'hexa' && interactive()\"\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n</ng-container>\n", styles: [".tui-input-color_picker.tui-input-color_picker{position:relative;font-size:1rem;inline-size:calc(var(--t-height) / 2);block-size:calc(var(--t-height) / 2);border:none;border-radius:100%;padding:0!important;overflow:hidden;cursor:pointer;background:repeating-conic-gradient(var(--tui-border-normal) 0% 25%,transparent 0% 50%);box-shadow:0 0 0 1px var(--tui-border-normal)}.tui-input-color_picker.tui-input-color_picker:disabled{cursor:default}tui-textfield[data-size=s] .tui-input-color_picker{margin-inline-end:.25rem}tui-textfield[data-size=l] .tui-input-color_picker{margin-inline-end:-.25rem}.tui-input-color_picker.tui-input-color_left{position:absolute;top:50%;left:calc(var(--t-height) / 4);inset-inline-start:calc(var(--t-height) / 4);transform:translateY(-50%)}.tui-input-color_picker::-webkit-color-swatch-wrapper{padding:0}.tui-input-color_picker::-webkit-color-swatch{border:none;opacity:var(--t-opacity)}.tui-input-color_picker::-moz-color-swatch{border:none;opacity:var(--t-opacity)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.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: i3.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
65
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithTextfield }], ngImport: i0, template: "<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n @if (format() === 'hexa' && interactive()) {\n <input\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n }\n</ng-container>\n", styles: [".tui-input-color_picker.tui-input-color_picker{position:relative;font-size:1rem;inline-size:calc(var(--t-height) / 2);block-size:calc(var(--t-height) / 2);border:none;border-radius:100%;padding:0!important;overflow:hidden;cursor:pointer;order:100;background:repeating-conic-gradient(var(--tui-border-normal) 0% 25%,transparent 0% 50%);box-shadow:0 0 0 1px var(--tui-border-normal)}.tui-input-color_picker.tui-input-color_picker:disabled{cursor:default}tui-textfield[data-size=s] .tui-input-color_picker{margin-inline-end:.25rem}tui-textfield[data-size=l] .tui-input-color_picker{margin-inline-end:-.25rem}.tui-input-color_picker.tui-input-color_left{position:absolute;top:50%;left:calc(var(--t-height) / 4);inset-inline-start:calc(var(--t-height) / 4);transform:translateY(-50%)}.tui-input-color_picker::-webkit-color-swatch-wrapper{padding:0}.tui-input-color_picker::-webkit-color-swatch{border:none;opacity:var(--t-opacity)}.tui-input-color_picker::-moz-color-swatch{border:none;opacity:var(--t-opacity)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.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: i3.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
68
66
  }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColor, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputColor, decorators: [{
70
68
  type: Component,
71
- args: [{ standalone: true, selector: 'input[tuiInputColor]', imports: [FormsModule, NgIf, TuiSlider, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
69
+ args: [{ selector: 'input[tuiInputColor]', imports: [FormsModule, TuiSlider, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
72
70
  tuiAsControl(TuiInputColor),
73
71
  tuiFallbackValueProvider(''),
74
72
  tuiSliderOptionsProvider({ trackColor: 'transparent' }),
75
73
  ], hostDirectives: [MaskitoDirective, TuiWithTextfield], host: {
76
74
  ngSkipHydration: 'true',
77
- inputmode: 'numeric',
78
75
  spellcheck: 'false',
79
76
  '[disabled]': 'disabled()',
80
77
  '[value]': 'value()',
81
78
  '[attr.list]': 'null',
82
79
  '(input)': 'onChange($event.target.value)',
83
- }, template: "<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n <input\n *ngIf=\"format() === 'hexa' && interactive()\"\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n</ng-container>\n", styles: [".tui-input-color_picker.tui-input-color_picker{position:relative;font-size:1rem;inline-size:calc(var(--t-height) / 2);block-size:calc(var(--t-height) / 2);border:none;border-radius:100%;padding:0!important;overflow:hidden;cursor:pointer;background:repeating-conic-gradient(var(--tui-border-normal) 0% 25%,transparent 0% 50%);box-shadow:0 0 0 1px var(--tui-border-normal)}.tui-input-color_picker.tui-input-color_picker:disabled{cursor:default}tui-textfield[data-size=s] .tui-input-color_picker{margin-inline-end:.25rem}tui-textfield[data-size=l] .tui-input-color_picker{margin-inline-end:-.25rem}.tui-input-color_picker.tui-input-color_left{position:absolute;top:50%;left:calc(var(--t-height) / 4);inset-inline-start:calc(var(--t-height) / 4);transform:translateY(-50%)}.tui-input-color_picker::-webkit-color-swatch-wrapper{padding:0}.tui-input-color_picker::-webkit-color-swatch{border:none;opacity:var(--t-opacity)}.tui-input-color_picker::-moz-color-swatch{border:none;opacity:var(--t-opacity)}\n"] }]
80
+ }, template: "<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n @if (format() === 'hexa' && interactive()) {\n <input\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n }\n</ng-container>\n", styles: [".tui-input-color_picker.tui-input-color_picker{position:relative;font-size:1rem;inline-size:calc(var(--t-height) / 2);block-size:calc(var(--t-height) / 2);border:none;border-radius:100%;padding:0!important;overflow:hidden;cursor:pointer;order:100;background:repeating-conic-gradient(var(--tui-border-normal) 0% 25%,transparent 0% 50%);box-shadow:0 0 0 1px var(--tui-border-normal)}.tui-input-color_picker.tui-input-color_picker:disabled{cursor:default}tui-textfield[data-size=s] .tui-input-color_picker{margin-inline-end:.25rem}tui-textfield[data-size=l] .tui-input-color_picker{margin-inline-end:-.25rem}.tui-input-color_picker.tui-input-color_left{position:absolute;top:50%;left:calc(var(--t-height) / 4);inset-inline-start:calc(var(--t-height) / 4);transform:translateY(-50%)}.tui-input-color_picker::-webkit-color-swatch-wrapper{padding:0}.tui-input-color_picker::-webkit-color-swatch{border:none;opacity:var(--t-opacity)}.tui-input-color_picker::-moz-color-swatch{border:none;opacity:var(--t-opacity)}\n"] }]
84
81
  }], propDecorators: { alignSetter: [{
85
82
  type: Input,
86
83
  args: ['align']
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-color.mjs","sources":["../../../projects/kit/components/input-color/input-color.options.ts","../../../projects/kit/components/input-color/input-color.component.ts","../../../projects/kit/components/input-color/input-color.template.html","../../../projects/kit/components/input-color/taiga-ui-kit-components-input-color.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\nexport interface TuiInputColorOptions {\n readonly format: 'hex' | 'hexa';\n readonly align: TuiHorizontalDirection;\n}\n\nexport const [TUI_INPUT_COLOR_OPTIONS, tuiInputColorOptionsProvider] =\n tuiCreateOptions<TuiInputColorOptions>({\n format: 'hex',\n align: 'left',\n });\n","import {NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n Input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {\n maskitoAddOnFocusPlugin,\n maskitoPrefixPostprocessorGenerator,\n maskitoRemoveOnBlurPlugin,\n} from '@maskito/kit';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldContent, TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiIcons} from '@taiga-ui/core/directives/icons';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {TuiSlider, tuiSliderOptionsProvider} from '@taiga-ui/kit/components/slider';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_COLOR_OPTIONS, type TuiInputColorOptions} from './input-color.options';\n\nconst REGEX = /[0-9a-fA-F]/;\n\n@Component({\n standalone: true,\n selector: 'input[tuiInputColor]',\n imports: [FormsModule, NgIf, TuiSlider, TuiTextfieldContent],\n templateUrl: './input-color.template.html',\n styleUrls: ['./input-color.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputColor),\n tuiFallbackValueProvider(''),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n ],\n hostDirectives: [MaskitoDirective, TuiWithTextfield],\n host: {\n ngSkipHydration: 'true',\n inputmode: 'numeric',\n spellcheck: 'false',\n '[disabled]': 'disabled()',\n '[value]': 'value()',\n '[attr.list]': 'null',\n '(input)': 'onChange($event.target.value)',\n },\n})\nexport class TuiInputColor extends TuiControl<string> {\n protected readonly options = inject(TUI_INPUT_COLOR_OPTIONS);\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly list = this.el.getAttribute('list');\n protected readonly format = signal(this.options.format);\n protected readonly align = signal<TuiHorizontalDirection>(this.options.align);\n\n protected readonly icon = tuiDirectiveBinding(\n TuiIcons,\n 'iconStart',\n computed(() =>\n this.align() === 'left'\n ? '\"data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg></svg>\"'\n : '',\n ),\n {},\n );\n\n protected readonly maskito = tuiMaskito(\n computed((length = this.format().length * 2) => ({\n mask: ['#', ...Array.from<RegExp>({length}).fill(REGEX)],\n postprocessors: [maskitoPrefixPostprocessorGenerator('#')],\n plugins: [maskitoAddOnFocusPlugin('#'), maskitoRemoveOnBlurPlugin('#')],\n overwriteMode: 'replace',\n })),\n );\n\n protected readonly filled = computed(() =>\n this.format() === 'hex' ? this.value().length === 7 : this.value().length === 9,\n );\n\n protected readonly opacity = computed(() =>\n this.filled() && this.format() === 'hexa'\n ? Number.parseInt(this.value().slice(-2), 16)\n : 255,\n );\n\n @Input('align')\n public set alignSetter(align: TuiInputColorOptions['align']) {\n this.align.set(align);\n }\n\n @Input('format')\n public set formatSetter(mode: TuiInputColorOptions['format']) {\n this.format.set(mode);\n }\n\n protected onInput(value: string): void {\n this.onChange(\n this.format() === 'hex' ? value : `${value}${toHex(this.opacity())}`,\n );\n }\n\n protected onOpacity(opacity: number): void {\n const value = this.filled() ? this.value().slice(0, 7) : '#000000';\n\n this.onChange(`${value}${toHex(opacity)}`);\n }\n}\n\nfunction toHex(value: number): string {\n return value.toString(16).padStart(2, '0');\n}\n","<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n <input\n *ngIf=\"format() === 'hexa' && interactive()\"\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n</ng-container>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;MAQa,CAAC,uBAAuB,EAAE,4BAA4B,CAAC,GAChE,gBAAgB,CAAuB;AACnC,IAAA,MAAM,EAAE,KAAK;AACb,IAA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wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,SAAS,EAAE,+BAA+B;AAC7C,qBAAA,EAAA,QAAA,EAAA,8xBAAA,EAAA,MAAA,EAAA,CAAA,w+BAAA,CAAA,EAAA,CAAA;8BAwCU,WAAW,EAAA,CAAA;sBADrB,KAAK;uBAAC,OAAO,CAAA;gBAMH,YAAY,EAAA,CAAA;sBADtB,KAAK;uBAAC,QAAQ,CAAA;;AAkBnB,SAAS,KAAK,CAAC,KAAa,EAAA;AACxB,IAAA,OAAO,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC/C;;AErHA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-color.mjs","sources":["../../../projects/kit/components/input-color/input-color.options.ts","../../../projects/kit/components/input-color/input-color.component.ts","../../../projects/kit/components/input-color/input-color.template.html","../../../projects/kit/components/input-color/taiga-ui-kit-components-input-color.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\nexport interface TuiInputColorOptions {\n readonly format: 'hex' | 'hexa';\n readonly align: TuiHorizontalDirection;\n}\n\nexport const [TUI_INPUT_COLOR_OPTIONS, tuiInputColorOptionsProvider] =\n tuiCreateOptions<TuiInputColorOptions>({\n format: 'hex',\n align: 'left',\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n Input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {\n maskitoAddOnFocusPlugin,\n maskitoPrefixPostprocessorGenerator,\n maskitoRemoveOnBlurPlugin,\n} from '@maskito/kit';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiTextfieldContent, TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiIcons, tuiIconStart} from '@taiga-ui/core/directives/icons';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {TuiSlider, tuiSliderOptionsProvider} from '@taiga-ui/kit/components/slider';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_COLOR_OPTIONS, type TuiInputColorOptions} from './input-color.options';\n\nconst REGEX = /[0-9a-fA-F]/;\nconst EMPTY = '\"data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg></svg>\"';\n\n@Component({\n selector: 'input[tuiInputColor]',\n imports: [FormsModule, TuiSlider, TuiTextfieldContent],\n templateUrl: './input-color.template.html',\n styleUrls: ['./input-color.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputColor),\n tuiFallbackValueProvider(''),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n ],\n hostDirectives: [MaskitoDirective, TuiWithTextfield],\n host: {\n ngSkipHydration: 'true',\n spellcheck: 'false',\n '[disabled]': 'disabled()',\n '[value]': 'value()',\n '[attr.list]': 'null',\n '(input)': 'onChange($event.target.value)',\n },\n})\nexport class TuiInputColor extends TuiControl<string> {\n protected readonly options = inject(TUI_INPUT_COLOR_OPTIONS);\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly list = this.el.getAttribute('list');\n protected readonly format = signal(this.options.format);\n protected readonly align = signal<TuiHorizontalDirection>(this.options.align);\n protected readonly left = inject(TuiIcons).iconStart() || '';\n protected readonly icon = tuiIconStart(\n computed(() => (this.align() === 'left' ? EMPTY : this.left)),\n {},\n );\n\n protected readonly maskito = tuiMaskito(\n computed((length = this.format().length * 2) => ({\n mask: ['#', ...Array.from<RegExp>({length}).fill(REGEX)],\n postprocessors: [maskitoPrefixPostprocessorGenerator('#')],\n plugins: [maskitoAddOnFocusPlugin('#'), maskitoRemoveOnBlurPlugin('#')],\n overwriteMode: 'replace',\n })),\n );\n\n protected readonly filled = computed(() =>\n this.format() === 'hex' ? this.value().length === 7 : this.value().length === 9,\n );\n\n protected readonly opacity = computed(() =>\n this.filled() && this.format() === 'hexa'\n ? Number.parseInt(this.value().slice(-2), 16)\n : 255,\n );\n\n @Input('align')\n public set alignSetter(align: TuiInputColorOptions['align']) {\n this.align.set(align);\n }\n\n @Input('format')\n public set formatSetter(mode: TuiInputColorOptions['format']) {\n this.format.set(mode);\n }\n\n protected onInput(value: string): void {\n this.onChange(\n this.format() === 'hex' ? value : `${value}${toHex(this.opacity())}`,\n );\n }\n\n protected onOpacity(opacity: number): void {\n const value = this.filled() ? this.value().slice(0, 7) : '#000000';\n\n this.onChange(`${value}${toHex(opacity)}`);\n }\n}\n\nfunction toHex(value: number): string {\n return value.toString(16).padStart(2, '0');\n}\n","<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n @if (format() === 'hexa' && interactive()) {\n <input\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n }\n</ng-container>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAQa,CAAC,uBAAuB,EAAE,4BAA4B,CAAC,GAChE,gBAAgB,CAAuB;AACnC,IAAA,MAAM,EAAE,KAAK;AACb,IAA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E,MAAM;AACvB,wBAAA,UAAU,EAAE,OAAO;AACnB,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,SAAS,EAAE,+BAA+B;AAC7C,qBAAA,EAAA,QAAA,EAAA,m0BAAA,EAAA,MAAA,EAAA,CAAA,k/BAAA,CAAA,EAAA;8BAkCU,WAAW,EAAA,CAAA;sBADrB,KAAK;uBAAC,OAAO;gBAMH,YAAY,EAAA,CAAA;sBADtB,KAAK;uBAAC,QAAQ;;AAkBnB,SAAS,KAAK,CAAC,KAAa,EAAA;AACxB,IAAA,OAAO,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AAC9C;;AE5GA;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { TuiCalendar } from '@taiga-ui/core/components/calendar';
2
2
  import { TuiInputChipBaseDirective, TuiInputChipComponent } from '@taiga-ui/kit/components/input-chip';
3
3
  import * as i0 from '@angular/core';
4
- import { inject, computed, effect, signal, Directive, Input } from '@angular/core';
4
+ import { inject, computed, effect, signal, Input, Directive } from '@angular/core';
5
5
  import { toSignal } from '@angular/core/rxjs-interop';
6
6
  import * as i3 from '@maskito/angular';
7
7
  import { MaskitoDirective } from '@maskito/angular';
@@ -14,7 +14,7 @@ import { TuiNativeValidator } from '@taiga-ui/cdk/directives/native-validator';
14
14
  import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
15
15
  import { tuiArrayToggle } from '@taiga-ui/cdk/utils/miscellaneous';
16
16
  import * as i4 from '@taiga-ui/core/components/textfield';
17
- import { tuiTextfieldIconBinding, tuiInjectAuxiliary, tuiAsTextfieldAccessor, TuiTextfieldBase } from '@taiga-ui/core/components/textfield';
17
+ import { tuiTextfieldIcon, tuiInjectAuxiliary, tuiAsTextfieldAccessor, TuiTextfieldBase } from '@taiga-ui/core/components/textfield';
18
18
  import * as i2 from '@taiga-ui/core/directives/dropdown';
19
19
  import { TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
20
20
  import { TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT } from '@taiga-ui/core/tokens';
@@ -25,7 +25,7 @@ class TuiInputDateMultiDirective extends TuiInputChipBaseDirective {
25
25
  constructor() {
26
26
  super(...arguments);
27
27
  this.dateOptions = inject(TUI_INPUT_DATE_OPTIONS_NEW);
28
- this.icon = tuiTextfieldIconBinding(TUI_INPUT_DATE_OPTIONS_NEW);
28
+ this.icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);
29
29
  this.filler = tuiWithDateFiller();
30
30
  this.stringify = this.handlers.stringify.set((item) => item.toString(this.format().mode, this.format().separator));
31
31
  this.mask = tuiMaskito(computed(() => maskitoDateOptionsGenerator({
@@ -83,14 +83,14 @@ class TuiInputDateMultiDirective extends TuiInputChipBaseDirective {
83
83
  updateValue(day) {
84
84
  this.setValue(tuiArrayToggle(this.value(), day, (a, b) => a.daySame(b)));
85
85
  }
86
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputDateMultiDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
87
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputDateMultiDirective, isStandalone: true, selector: "input[tuiInputDateMulti]", inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { listeners: { "keydown.enter.prevent": "0" } }, providers: [
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateMultiDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
87
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputDateMultiDirective, isStandalone: true, selector: "input[tuiInputDateMulti]", inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { listeners: { "keydown.enter.prevent": "0" } }, providers: [
88
88
  tuiAsControl(TuiInputDateMultiDirective),
89
89
  tuiFallbackValueProvider([]),
90
90
  tuiAsTextfieldAccessor(TuiInputDateMultiDirective),
91
91
  ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiNativeValidator }, { directive: i2.TuiDropdownAuto }, { directive: i3.MaskitoDirective }, { directive: i4.TuiTextfieldBase, inputs: ["invalid", "invalid", "focused", "focused", "readOnly", "readOnly", "state", "state"] }], ngImport: i0 }); }
92
92
  }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputDateMultiDirective, decorators: [{
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateMultiDirective, decorators: [{
94
94
  type: Directive,
95
95
  args: [{
96
96
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-date-multi.mjs","sources":["../../../projects/kit/components/input-date-multi/input-date-multi.directive.ts","../../../projects/kit/components/input-date-multi/input-date-multi.ts","../../../projects/kit/components/input-date-multi/taiga-ui-kit-components-input-date-multi.ts"],"sourcesContent":["import {computed, Directive, effect, inject, Input, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {DATE_FILLER_LENGTH, TuiDay, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiArrayToggle} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {\n tuiAsTextfieldAccessor,\n tuiInjectAuxiliary,\n TuiTextfieldBase,\n tuiTextfieldIconBinding,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiInputChipBaseDirective} from '@taiga-ui/kit/components/input-chip';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateMulti]',\n providers: [\n tuiAsControl(TuiInputDateMultiDirective),\n tuiFallbackValueProvider([]),\n tuiAsTextfieldAccessor(TuiInputDateMultiDirective),\n ],\n hostDirectives: [\n TuiNativeValidator,\n TuiDropdownAuto,\n MaskitoDirective,\n {\n directive: TuiTextfieldBase,\n inputs: ['invalid', 'focused', 'readOnly', 'state'],\n },\n ],\n host: {\n '(keydown.enter.prevent)': '0',\n },\n})\nexport class TuiInputDateMultiDirective extends TuiInputChipBaseDirective<TuiDay> {\n private readonly dateOptions = inject(TUI_INPUT_DATE_OPTIONS_NEW);\n\n protected readonly icon = tuiTextfieldIconBinding(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly filler = tuiWithDateFiller();\n protected readonly stringify = this.handlers.stringify.set((item) =>\n item.toString(this.format().mode, this.format().separator),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected readonly format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.dayClick.subscribe((day) => {\n this.updateValue(day);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly min = signal(this.dateOptions.min);\n public readonly max = signal(this.dateOptions.max);\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendar>(\n (x) => x instanceof TuiCalendar,\n );\n\n @Input('min')\n public set minSetter(min: TuiDay | null) {\n this.min.set(min || this.dateOptions.min);\n }\n\n @Input('max')\n public set maxSetter(max: TuiDay | null) {\n this.max.set(max || this.dateOptions.max);\n }\n\n protected processCalendar(calendar: TuiCalendar): void {\n calendar.value = this.value();\n calendar.min = this.min();\n calendar.max = this.max();\n calendar.month =\n this.value()?.[this.value().length - 1] ?? TuiMonth.currentLocal();\n }\n\n protected onClick(): void {\n this.open.update((open) => !open);\n }\n\n protected onValueChange(value: string): void {\n const newValue =\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null;\n\n if (newValue && !this.handlers.disabledItemHandler()(newValue)) {\n this.updateValue(newValue);\n }\n }\n\n protected override onEnter(): void {\n this.onValueChange(this.textfield.value().trim());\n this.scrollTo();\n }\n\n private updateValue(day: TuiDay): void {\n this.setValue(tuiArrayToggle(this.value(), day, (a, b) => a.daySame(b)));\n }\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiInputChipComponent} from '@taiga-ui/kit/components/input-chip';\n\nimport {TuiInputDateMultiDirective} from './input-date-multi.directive';\n\nexport const TuiInputDateMulti = [\n TuiInputDateMultiDirective,\n TuiCalendar,\n TuiInputChipComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAqBa,0BAA2B,SAAQ,yBAAiC,CAAA;AArBjF,IAAA,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qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,yBAAyB,EAAE,GAAG;AACjC,qBAAA;AACJ,iBAAA,CAAA;8BA+Cc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;gBAMD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;;;AC7FH,MAAA,iBAAiB,GAAG;IAC7B,0BAA0B;IAC1B,WAAW;IACX,qBAAqB;;;ACRzB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-date-multi.mjs","sources":["../../../projects/kit/components/input-date-multi/input-date-multi.directive.ts","../../../projects/kit/components/input-date-multi/input-date-multi.ts","../../../projects/kit/components/input-date-multi/taiga-ui-kit-components-input-date-multi.ts"],"sourcesContent":["import {computed, Directive, effect, inject, Input, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {DATE_FILLER_LENGTH, TuiDay, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiArrayToggle} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {\n tuiAsTextfieldAccessor,\n tuiInjectAuxiliary,\n TuiTextfieldBase,\n tuiTextfieldIcon,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiInputChipBaseDirective} from '@taiga-ui/kit/components/input-chip';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateMulti]',\n providers: [\n tuiAsControl(TuiInputDateMultiDirective),\n tuiFallbackValueProvider([]),\n tuiAsTextfieldAccessor(TuiInputDateMultiDirective),\n ],\n hostDirectives: [\n TuiNativeValidator,\n TuiDropdownAuto,\n MaskitoDirective,\n {\n directive: TuiTextfieldBase,\n inputs: ['invalid', 'focused', 'readOnly', 'state'],\n },\n ],\n host: {\n '(keydown.enter.prevent)': '0',\n },\n})\nexport class TuiInputDateMultiDirective extends TuiInputChipBaseDirective<TuiDay> {\n private readonly dateOptions = inject(TUI_INPUT_DATE_OPTIONS_NEW);\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly filler = tuiWithDateFiller();\n protected readonly stringify = this.handlers.stringify.set((item) =>\n item.toString(this.format().mode, this.format().separator),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected readonly format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.dayClick.subscribe((day) => {\n this.updateValue(day);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly min = signal(this.dateOptions.min);\n public readonly max = signal(this.dateOptions.max);\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendar>(\n (x) => x instanceof TuiCalendar,\n );\n\n @Input('min')\n public set minSetter(min: TuiDay | null) {\n this.min.set(min || this.dateOptions.min);\n }\n\n @Input('max')\n public set maxSetter(max: TuiDay | null) {\n this.max.set(max || this.dateOptions.max);\n }\n\n protected processCalendar(calendar: TuiCalendar): void {\n calendar.value = this.value();\n calendar.min = this.min();\n calendar.max = this.max();\n calendar.month =\n this.value()?.[this.value().length - 1] ?? TuiMonth.currentLocal();\n }\n\n protected onClick(): void {\n this.open.update((open) => !open);\n }\n\n protected onValueChange(value: string): void {\n const newValue =\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null;\n\n if (newValue && !this.handlers.disabledItemHandler()(newValue)) {\n this.updateValue(newValue);\n }\n }\n\n protected override onEnter(): void {\n this.onValueChange(this.textfield.value().trim());\n this.scrollTo();\n }\n\n private updateValue(day: TuiDay): void {\n this.setValue(tuiArrayToggle(this.value(), day, (a, b) => a.daySame(b)));\n }\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiInputChipComponent} from '@taiga-ui/kit/components/input-chip';\n\nimport {TuiInputDateMultiDirective} from './input-date-multi.directive';\n\nexport const TuiInputDateMulti = [\n TuiInputDateMultiDirective,\n TuiCalendar,\n TuiInputChipComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgDM,MAAO,0BAA2B,SAAQ,yBAAiC,CAAA;AArBjF,IAAA,WAAA,GAAA;;AAsBqB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAE9C,QAAA,IAAA,CAAA,IAAI,GAAG,gBAAgB,CAAC,0BAA0B,CAAC;QACnD,IAAM,CAAA,MAAA,GAAG,iBAAiB,EAAE;AAC5B,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,KAC5D,IAAI,CAAC,QAAQ,CA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AAA,EAAA,SAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAcQ,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBArBtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,SAAS,EAAE;AACP,wBAAA,YAAY,CAA4B,0BAAA,CAAA;wBACxC,wBAAwB,CAAC,EAAE,CAAC;AAC5B,wBAAA,sBAAsB,CAA4B,0BAAA,CAAA;AACrD,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,kBAAkB;wBAClB,eAAe;wBACf,gBAAgB;AAChB,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;4BAC3B,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC;AACtD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,yBAAyB,EAAE,GAAG;AACjC,qBAAA;AACJ,iBAAA;8BA+Cc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;gBAMD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;AC7FH,MAAA,iBAAiB,GAAG;IAC7B,0BAA0B;IAC1B,WAAW;IACX,qBAAqB;;;ACRzB;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { TuiCalendarRange } from '@taiga-ui/kit/components/calendar-range';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, computed, signal, Directive, Input } from '@angular/core';
3
+ import { InjectionToken, inject, computed, signal, Input, Directive } from '@angular/core';
4
4
  import * as i3 from '@maskito/angular';
5
5
  import { MaskitoDirective } from '@maskito/angular';
6
6
  import { maskitoDateRangeOptionsGenerator } from '@maskito/kit';
@@ -56,15 +56,15 @@ class TuiInputDateRangeDirective extends TuiInputDateBase {
56
56
  ? TuiDayRange.normalizeParse(value, this.format().mode)
57
57
  : null);
58
58
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputDateRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
60
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputDateRangeDirective, isStandalone: true, selector: "input[tuiInputDateRange]", inputs: { minLengthSetter: ["minLength", "minLengthSetter"], maxLengthSetter: ["maxLength", "maxLengthSetter"] }, providers: [
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
60
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputDateRangeDirective, isStandalone: true, selector: "input[tuiInputDateRange]", inputs: { minLengthSetter: ["minLength", "minLengthSetter"], maxLengthSetter: ["maxLength", "maxLengthSetter"] }, providers: [
61
61
  // TODO: Add SelectOption after data-list in calendar-range is refactored
62
62
  tuiAsControl(TuiInputDateRangeDirective),
63
63
  tuiValueTransformerFrom(TUI_INPUT_DATE_RANGE_OPTIONS),
64
64
  tuiProvide(TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_RANGE_OPTIONS),
65
65
  ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i2.TuiDropdownAuto }, { directive: i3.MaskitoDirective }], ngImport: i0 }); }
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputDateRangeDirective, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateRangeDirective, decorators: [{
68
68
  type: Directive,
69
69
  args: [{
70
70
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-date-range.mjs","sources":["../../../projects/kit/components/input-date-range/input-date-range.options.ts","../../../projects/kit/components/input-date-range/input-date-range.directive.ts","../../../projects/kit/components/input-date-range/input-date-range.ts","../../../projects/kit/components/input-date-range/taiga-ui-kit-components-input-date-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDayRange} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateRangeOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly valueTransformer: TuiValueTransformer<TuiDayRange | null, any>;\n}\n\nexport const TUI_INPUT_DATE_RANGE_OPTIONS = new InjectionToken<TuiInputDateRangeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputDateRangeOptionsProvider = (\n options: Partial<TuiInputDateRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_DATE_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, inject, Input, signal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateRangeOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n type TuiDayLike,\n TuiDayRange,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {type TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n TuiInputDateBase,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_DATE_RANGE_OPTIONS} from './input-date-range.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateRange]',\n providers: [\n // TODO: Add SelectOption after data-list in calendar-range is refactored\n tuiAsControl(TuiInputDateRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_RANGE_OPTIONS),\n tuiProvide(TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiDropdownAuto, MaskitoDirective],\n})\nexport class TuiInputDateRangeDirective extends TuiInputDateBase<TuiDayRange> {\n protected readonly identity = inject<TuiItemsHandlers<TuiDayRange>>(\n TUI_ITEMS_HANDLERS,\n ).identityMatcher.set((a, b) => a.daySame(b));\n\n protected override readonly filler = tuiWithDateFiller(\n (filler) => `${filler}${RANGE_SEPARATOR_CHAR}${filler}`,\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateRangeOptionsGenerator({\n dateSeparator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n minLength: this.minLength() || {},\n maxLength: this.maxLength() || {},\n }),\n ),\n );\n\n public readonly minLength = signal<TuiDayLike | null>(null);\n public readonly maxLength = signal<TuiDayLike | null>(null);\n\n @Input('minLength')\n public set minLengthSetter(minLength: TuiDayLike | null) {\n this.minLength.set(minLength);\n }\n\n @Input('maxLength')\n public set maxLengthSetter(maxLength: TuiDayLike | null) {\n this.maxLength.set(maxLength);\n }\n\n protected override processCalendar(calendar: TuiCalendarRange): void {\n super.processCalendar(calendar);\n\n calendar.minLength = this.minLength();\n calendar.maxLength = this.maxLength();\n }\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_RANGE_FILLER_LENGTH\n ? TuiDayRange.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\n\nimport {TuiInputDateRangeDirective} from './input-date-range.directive';\n\nexport const TuiInputDateRange = [TuiInputDateRangeDirective, TuiCalendarRange] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBa,MAAA,4BAA4B,GAAG,IAAI,cAAc,CAC1D,SAAS,GAAG,8BAA8B,GAAG,EAAE,EAC/C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA,EACH;AAEW,MAAA,gCAAgC,GAAG,CAC5C,OAA0C,KAE1C,iBAAiB,CACb,4BAA4B,EAC5B,OAAO,EACP,kCAAkC;;ACN1C,MAWa,0BAA2B,SAAQ,gBAA6B,CAAA;AAX7E,IAAA,WAAA,GAAA;;QAYuB,IAAQ,CAAA,QAAA,GAAG,MAAM,CAChC,kBAAkB,CACrB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC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AA,UAAA,EAAA,CAAA;kBAXtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,SAAS,EAAE;;AAEP,wBAAA,YAAY,CAA4B,0BAAA,CAAA;wBACxC,uBAAuB,CAAC,4BAA4B,CAAC;AACrD,wBAAA,UAAU,CAAC,0BAA0B,EAAE,4BAA4B,CAAC;AACvE,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,CAAC;AACxE,iBAAA,CAAA;8BA2Bc,eAAe,EAAA,CAAA;sBADzB,KAAK;uBAAC,WAAW,CAAA;gBAMP,eAAe,EAAA,CAAA;sBADzB,KAAK;uBAAC,WAAW,CAAA;;;MCjET,iBAAiB,GAAG,CAAC,0BAA0B,EAAE,gBAAgB;;ACJ9E;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-date-range.mjs","sources":["../../../projects/kit/components/input-date-range/input-date-range.options.ts","../../../projects/kit/components/input-date-range/input-date-range.directive.ts","../../../projects/kit/components/input-date-range/input-date-range.ts","../../../projects/kit/components/input-date-range/taiga-ui-kit-components-input-date-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDayRange} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateRangeOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly valueTransformer: TuiValueTransformer<TuiDayRange | null, any>;\n}\n\nexport const TUI_INPUT_DATE_RANGE_OPTIONS = new InjectionToken<TuiInputDateRangeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputDateRangeOptionsProvider = (\n options: Partial<TuiInputDateRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_DATE_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, inject, Input, signal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateRangeOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n type TuiDayLike,\n TuiDayRange,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {type TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n TuiInputDateBase,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_DATE_RANGE_OPTIONS} from './input-date-range.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateRange]',\n providers: [\n // TODO: Add SelectOption after data-list in calendar-range is refactored\n tuiAsControl(TuiInputDateRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_RANGE_OPTIONS),\n tuiProvide(TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiDropdownAuto, MaskitoDirective],\n})\nexport class TuiInputDateRangeDirective extends TuiInputDateBase<TuiDayRange> {\n protected readonly identity = inject<TuiItemsHandlers<TuiDayRange>>(\n TUI_ITEMS_HANDLERS,\n ).identityMatcher.set((a, b) => a.daySame(b));\n\n protected override readonly filler = tuiWithDateFiller(\n (filler) => `${filler}${RANGE_SEPARATOR_CHAR}${filler}`,\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateRangeOptionsGenerator({\n dateSeparator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n minLength: this.minLength() || {},\n maxLength: this.maxLength() || {},\n }),\n ),\n );\n\n public readonly minLength = signal<TuiDayLike | null>(null);\n public readonly maxLength = signal<TuiDayLike | null>(null);\n\n @Input('minLength')\n public set minLengthSetter(minLength: TuiDayLike | null) {\n this.minLength.set(minLength);\n }\n\n @Input('maxLength')\n public set maxLengthSetter(maxLength: TuiDayLike | null) {\n this.maxLength.set(maxLength);\n }\n\n protected override processCalendar(calendar: TuiCalendarRange): void {\n super.processCalendar(calendar);\n\n calendar.minLength = this.minLength();\n calendar.maxLength = this.maxLength();\n }\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_RANGE_FILLER_LENGTH\n ? TuiDayRange.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\n\nimport {TuiInputDateRangeDirective} from './input-date-range.directive';\n\nexport const TuiInputDateRange = [TuiInputDateRangeDirective, TuiCalendarRange] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;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