@taiga-ui/core 4.51.0 → 4.52.0-canary.0ec45da

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 (498) hide show
  1. package/classes/driver.d.ts +1 -1
  2. package/components/alert/alert.component.d.ts +5 -6
  3. package/components/alert/alert.directive.d.ts +4 -3
  4. package/components/alert/alert.interfaces.d.ts +3 -2
  5. package/components/alert/alert.service.d.ts +6 -2
  6. package/components/alert/alert.tokens.d.ts +1 -7
  7. package/components/alert/index.d.ts +0 -1
  8. package/components/button/button.directive.d.ts +2 -3
  9. package/components/button/button.options.d.ts +1 -1
  10. package/components/calendar/calendar-sheet.component.d.ts +1 -6
  11. package/components/cell/cell.directive.d.ts +9 -0
  12. package/components/cell/cell.options.d.ts +6 -0
  13. package/components/cell/index.d.ts +2 -0
  14. package/components/data-list/data-list.component.d.ts +1 -1
  15. package/components/dialog/active-zone-adapter.directive.d.ts +11 -0
  16. package/components/dialog/dialog.component.d.ts +6 -11
  17. package/components/dialog/dialog.directive.d.ts +5 -4
  18. package/components/dialog/dialog.factory.d.ts +1 -1
  19. package/components/dialog/dialog.options.d.ts +26 -0
  20. package/components/dialog/{dialog-close.service.d.ts → dialog.providers.d.ts} +4 -1
  21. package/components/dialog/dialog.service.d.ts +6 -3
  22. package/components/dialog/index.d.ts +2 -3
  23. package/components/error/error.component.d.ts +6 -8
  24. package/components/error/error.d.ts +4 -0
  25. package/components/error/error.directive.d.ts +19 -0
  26. package/components/error/error.pipe.d.ts +10 -0
  27. package/components/error/index.d.ts +3 -0
  28. package/components/expand/expand.component.d.ts +9 -28
  29. package/components/expand/index.d.ts +0 -2
  30. package/components/header/header.directive.d.ts +17 -0
  31. package/components/header/index.d.ts +1 -0
  32. package/components/icon/icon.component.d.ts +6 -8
  33. package/components/index.d.ts +3 -1
  34. package/components/link/link.directive.d.ts +2 -2
  35. package/components/loader/loader.component.d.ts +7 -7
  36. package/components/modal/index.d.ts +2 -0
  37. package/components/modal/modal.component.d.ts +17 -0
  38. package/components/modal/modal.service.d.ts +13 -0
  39. package/components/notification/notification.directive.d.ts +7 -11
  40. package/components/notification/notification.options.d.ts +1 -1
  41. package/components/root/root.component.d.ts +4 -6
  42. package/components/scrollbar/scrollbar.options.d.ts +1 -1
  43. package/components/spin-button/spin-button.component.d.ts +8 -9
  44. package/components/textfield/index.d.ts +1 -3
  45. package/components/textfield/textfield-content.directive.d.ts +3 -2
  46. package/components/textfield/textfield-icon.d.ts +3 -3
  47. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +7 -9
  48. package/components/textfield/textfield.component.d.ts +13 -13
  49. package/components/textfield/textfield.d.ts +2 -3
  50. package/components/textfield/textfield.directive.d.ts +11 -14
  51. package/components/textfield/textfield.options.d.ts +8 -11
  52. package/directives/appearance/appearance.directive.d.ts +5 -13
  53. package/directives/appearance/appearance.options.d.ts +1 -1
  54. package/directives/dropdown/dropdown-content.directive.d.ts +9 -0
  55. package/directives/dropdown/dropdown-context.directive.d.ts +2 -0
  56. package/directives/dropdown/dropdown.d.ts +2 -2
  57. package/directives/dropdown/dropdown.directive.d.ts +1 -2
  58. package/directives/dropdown/index.d.ts +1 -3
  59. package/directives/hint/hint-describe.directive.d.ts +4 -6
  60. package/directives/hint/hint-host.directive.d.ts +2 -2
  61. package/directives/hint/hint-hover.directive.d.ts +3 -4
  62. package/directives/hint/hint-manual.directive.d.ts +2 -2
  63. package/directives/hint/hint-options.directive.d.ts +3 -3
  64. package/directives/hint/hint-overflow.directive.d.ts +2 -2
  65. package/directives/hint/hint-position.directive.d.ts +4 -5
  66. package/directives/hint/hint-unstyled.component.d.ts +2 -7
  67. package/directives/hint/hint.component.d.ts +10 -11
  68. package/directives/hint/hint.directive.d.ts +9 -11
  69. package/directives/hint/index.d.ts +0 -2
  70. package/directives/icons/icons.bindings.d.ts +5 -0
  71. package/directives/icons/icons.directive.d.ts +8 -14
  72. package/directives/icons/index.d.ts +1 -0
  73. package/directives/index.d.ts +1 -1
  74. package/directives/notification/index.d.ts +2 -0
  75. package/directives/notification/notification.directive.d.ts +11 -0
  76. package/directives/notification/notification.service.d.ts +12 -0
  77. package/directives/popup/popup.directive.d.ts +6 -5
  78. package/directives/popup/popup.service.d.ts +1 -1
  79. package/directives/popup/popups.component.d.ts +2 -2
  80. package/directives/title/title.directive.d.ts +2 -3
  81. package/fesm2022/taiga-ui-core-animations.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-classes.mjs +3 -3
  83. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-core-components-alert.mjs +60 -100
  85. package/fesm2022/taiga-ui-core-components-alert.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-core-components-button.mjs +13 -21
  87. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-calendar.mjs +24 -27
  89. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  91. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  92. package/fesm2022/taiga-ui-core-components-data-list.mjs +32 -34
  93. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-components-dialog.mjs +125 -94
  95. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-core-components-error.mjs +109 -26
  97. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-components-expand.mjs +34 -132
  99. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-components-header.mjs +42 -0
  101. package/fesm2022/taiga-ui-core-components-header.mjs.map +1 -0
  102. package/fesm2022/taiga-ui-core-components-icon.mjs +22 -30
  103. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-components-label.mjs +10 -13
  105. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-components-link.mjs +13 -18
  107. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-components-loader.mjs +15 -29
  109. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-components-modal.mjs +89 -0
  111. package/fesm2022/taiga-ui-core-components-modal.mjs.map +1 -0
  112. package/fesm2022/taiga-ui-core-components-notification.mjs +24 -53
  113. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-core-components-root.mjs +20 -51
  115. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +28 -28
  117. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-core-components-spin-button.mjs +16 -29
  119. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-core-components-textfield.mjs +171 -300
  121. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-core-components.mjs +3 -1
  123. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-core-directives-appearance.mjs +26 -63
  125. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-core-directives-date-format.mjs +5 -5
  127. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +96 -131
  129. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-core-directives-group.mjs +10 -13
  131. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-core-directives-hint.mjs +145 -244
  133. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-core-directives-icons.mjs +41 -41
  135. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +12 -12
  137. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-core-directives-notification.mjs +73 -0
  139. package/fesm2022/taiga-ui-core-directives-notification.mjs.map +1 -0
  140. package/fesm2022/taiga-ui-core-directives-number-format.mjs +5 -5
  141. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-core-directives-popup.mjs +20 -27
  143. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-core-directives-title.mjs +13 -19
  145. package/fesm2022/taiga-ui-core-directives-title.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-core-directives.mjs +1 -1
  147. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +3 -3
  148. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +3 -3
  150. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-core-pipes-flag.mjs +3 -3
  152. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +3 -3
  154. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +3 -3
  156. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-core-pipes-initials.mjs +3 -3
  158. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-core-pipes-month.mjs +5 -4
  160. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +3 -3
  162. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-core-pipes.mjs +0 -1
  164. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-core-services.mjs +18 -18
  166. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-core-tokens.mjs +31 -17
  168. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +50 -4
  172. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  173. package/package.json +27 -123
  174. package/pipes/index.d.ts +0 -1
  175. package/styles/components/appearance.less +6 -0
  176. package/styles/components/button.less +0 -2
  177. package/styles/components/icon.less +37 -12
  178. package/styles/components/icons.less +45 -7
  179. package/styles/components/link.less +1 -3
  180. package/styles/mixins/mixins.less +1 -2
  181. package/styles/mixins/mixins.scss +1 -2
  182. package/styles/mixins/slider.less +21 -16
  183. package/styles/theme/appearance/outline.less +1 -2
  184. package/styles/theme/appearance/textfield.less +1 -2
  185. package/tokens/i18n.d.ts +7 -7
  186. package/tokens/icon-resolver.d.ts +1 -4
  187. package/tokens/index.d.ts +1 -0
  188. package/tokens/validation-errors.d.ts +4 -0
  189. package/types/index.d.ts +0 -1
  190. package/utils/miscellaneous/index.d.ts +1 -0
  191. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  192. package/components/alert/alerts.component.d.ts +0 -12
  193. package/components/dialog/dialog.interfaces.d.ts +0 -34
  194. package/components/dialog/dialog.tokens.d.ts +0 -15
  195. package/components/expand/expand-content.directive.d.ts +0 -8
  196. package/components/expand/expand.d.ts +0 -6
  197. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  198. package/components/fullscreen/index.d.ts +0 -1
  199. package/components/textfield/select.directive.d.ts +0 -19
  200. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  201. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  202. package/directives/dropdown/dropdown.service.d.ts +0 -6
  203. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  204. package/directives/hint/hint.service.d.ts +0 -13
  205. package/directives/hint/hints.component.d.ts +0 -12
  206. package/directives/surface/index.d.ts +0 -1
  207. package/directives/surface/surface.directive.d.ts +0 -8
  208. package/esm2022/animations/animations.mjs +0 -363
  209. package/esm2022/animations/index.mjs +0 -2
  210. package/esm2022/animations/taiga-ui-core-animations.mjs +0 -5
  211. package/esm2022/classes/accessors.mjs +0 -31
  212. package/esm2022/classes/driver.mjs +0 -36
  213. package/esm2022/classes/index.mjs +0 -4
  214. package/esm2022/classes/taiga-ui-core-classes.mjs +0 -5
  215. package/esm2022/classes/vehicle.mjs +0 -7
  216. package/esm2022/components/alert/alert.component.mjs +0 -43
  217. package/esm2022/components/alert/alert.directive.mjs +0 -21
  218. package/esm2022/components/alert/alert.interfaces.mjs +0 -2
  219. package/esm2022/components/alert/alert.service.mjs +0 -18
  220. package/esm2022/components/alert/alert.tokens.mjs +0 -51
  221. package/esm2022/components/alert/alerts.component.mjs +0 -34
  222. package/esm2022/components/alert/index.mjs +0 -6
  223. package/esm2022/components/alert/taiga-ui-core-components-alert.mjs +0 -5
  224. package/esm2022/components/button/button.directive.mjs +0 -43
  225. package/esm2022/components/button/button.options.mjs +0 -7
  226. package/esm2022/components/button/index.mjs +0 -3
  227. package/esm2022/components/button/taiga-ui-core-components-button.mjs +0 -5
  228. package/esm2022/components/calendar/calendar-sheet.component.mjs +0 -167
  229. package/esm2022/components/calendar/calendar-sheet.options.mjs +0 -12
  230. package/esm2022/components/calendar/calendar-spin.component.mjs +0 -53
  231. package/esm2022/components/calendar/calendar-year.component.mjs +0 -128
  232. package/esm2022/components/calendar/calendar.component.mjs +0 -147
  233. package/esm2022/components/calendar/index.mjs +0 -6
  234. package/esm2022/components/calendar/taiga-ui-core-components-calendar.mjs +0 -5
  235. package/esm2022/components/data-list/data-list.component.mjs +0 -139
  236. package/esm2022/components/data-list/data-list.directive.mjs +0 -19
  237. package/esm2022/components/data-list/data-list.mjs +0 -14
  238. package/esm2022/components/data-list/data-list.tokens.mjs +0 -18
  239. package/esm2022/components/data-list/index.mjs +0 -9
  240. package/esm2022/components/data-list/opt-group.directive.mjs +0 -21
  241. package/esm2022/components/data-list/option/option-content.mjs +0 -36
  242. package/esm2022/components/data-list/option/option-legacy.component.mjs +0 -90
  243. package/esm2022/components/data-list/option/option.directive.mjs +0 -109
  244. package/esm2022/components/data-list/taiga-ui-core-components-data-list.mjs +0 -5
  245. package/esm2022/components/dialog/dialog-close.service.mjs +0 -41
  246. package/esm2022/components/dialog/dialog.component.mjs +0 -63
  247. package/esm2022/components/dialog/dialog.directive.mjs +0 -21
  248. package/esm2022/components/dialog/dialog.factory.mjs +0 -15
  249. package/esm2022/components/dialog/dialog.interfaces.mjs +0 -2
  250. package/esm2022/components/dialog/dialog.service.mjs +0 -18
  251. package/esm2022/components/dialog/dialog.tokens.mjs +0 -33
  252. package/esm2022/components/dialog/dialogs.component.mjs +0 -29
  253. package/esm2022/components/dialog/index.mjs +0 -8
  254. package/esm2022/components/dialog/taiga-ui-core-components-dialog.mjs +0 -5
  255. package/esm2022/components/error/error.component.mjs +0 -34
  256. package/esm2022/components/error/index.mjs +0 -2
  257. package/esm2022/components/error/taiga-ui-core-components-error.mjs +0 -5
  258. package/esm2022/components/expand/expand-content.directive.mjs +0 -18
  259. package/esm2022/components/expand/expand.component.mjs +0 -124
  260. package/esm2022/components/expand/expand.mjs +0 -7
  261. package/esm2022/components/expand/index.mjs +0 -4
  262. package/esm2022/components/expand/taiga-ui-core-components-expand.mjs +0 -5
  263. package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -67
  264. package/esm2022/components/fullscreen/index.mjs +0 -2
  265. package/esm2022/components/fullscreen/taiga-ui-core-components-fullscreen.mjs +0 -5
  266. package/esm2022/components/icon/icon.component.mjs +0 -35
  267. package/esm2022/components/icon/icon.pipe.mjs +0 -19
  268. package/esm2022/components/icon/index.mjs +0 -3
  269. package/esm2022/components/icon/taiga-ui-core-components-icon.mjs +0 -5
  270. package/esm2022/components/index.mjs +0 -18
  271. package/esm2022/components/label/index.mjs +0 -2
  272. package/esm2022/components/label/label.directive.mjs +0 -41
  273. package/esm2022/components/label/taiga-ui-core-components-label.mjs +0 -5
  274. package/esm2022/components/link/index.mjs +0 -3
  275. package/esm2022/components/link/link.directive.mjs +0 -47
  276. package/esm2022/components/link/link.options.mjs +0 -13
  277. package/esm2022/components/link/taiga-ui-core-components-link.mjs +0 -5
  278. package/esm2022/components/loader/index.mjs +0 -3
  279. package/esm2022/components/loader/loader.component.mjs +0 -46
  280. package/esm2022/components/loader/loader.options.mjs +0 -18
  281. package/esm2022/components/loader/taiga-ui-core-components-loader.mjs +0 -5
  282. package/esm2022/components/notification/index.mjs +0 -3
  283. package/esm2022/components/notification/notification.directive.mjs +0 -81
  284. package/esm2022/components/notification/notification.options.mjs +0 -23
  285. package/esm2022/components/notification/taiga-ui-core-components-notification.mjs +0 -5
  286. package/esm2022/components/root/index.mjs +0 -2
  287. package/esm2022/components/root/root.component.mjs +0 -85
  288. package/esm2022/components/root/taiga-ui-core-components-root.mjs +0 -5
  289. package/esm2022/components/scrollbar/index.mjs +0 -9
  290. package/esm2022/components/scrollbar/scroll-controls.component.mjs +0 -32
  291. package/esm2022/components/scrollbar/scroll-into-view.directive.mjs +0 -43
  292. package/esm2022/components/scrollbar/scroll-ref.directive.mjs +0 -19
  293. package/esm2022/components/scrollbar/scrollable.directive.mjs +0 -26
  294. package/esm2022/components/scrollbar/scrollbar.component.mjs +0 -72
  295. package/esm2022/components/scrollbar/scrollbar.directive.mjs +0 -93
  296. package/esm2022/components/scrollbar/scrollbar.options.mjs +0 -6
  297. package/esm2022/components/scrollbar/scrollbar.service.mjs +0 -46
  298. package/esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs +0 -5
  299. package/esm2022/components/spin-button/index.mjs +0 -2
  300. package/esm2022/components/spin-button/spin-button.component.mjs +0 -51
  301. package/esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs +0 -5
  302. package/esm2022/components/taiga-ui-core-components.mjs +0 -5
  303. package/esm2022/components/textfield/index.mjs +0 -16
  304. package/esm2022/components/textfield/select-like.directive.mjs +0 -42
  305. package/esm2022/components/textfield/select.directive.mjs +0 -65
  306. package/esm2022/components/textfield/taiga-ui-core-components-textfield.mjs +0 -5
  307. package/esm2022/components/textfield/textfield-accessor.mjs +0 -7
  308. package/esm2022/components/textfield/textfield-auxiliary.mjs +0 -7
  309. package/esm2022/components/textfield/textfield-content.directive.mjs +0 -22
  310. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +0 -43
  311. package/esm2022/components/textfield/textfield-icon.mjs +0 -10
  312. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +0 -34
  313. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +0 -137
  314. package/esm2022/components/textfield/textfield.component.mjs +0 -177
  315. package/esm2022/components/textfield/textfield.directive.mjs +0 -131
  316. package/esm2022/components/textfield/textfield.mjs +0 -19
  317. package/esm2022/components/textfield/textfield.options.mjs +0 -63
  318. package/esm2022/components/textfield/with-native-picker.directive.mjs +0 -24
  319. package/esm2022/directives/appearance/appearance.bindings.mjs +0 -15
  320. package/esm2022/directives/appearance/appearance.directive.mjs +0 -79
  321. package/esm2022/directives/appearance/appearance.options.mjs +0 -12
  322. package/esm2022/directives/appearance/index.mjs +0 -5
  323. package/esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs +0 -5
  324. package/esm2022/directives/appearance/with-appearance.mjs +0 -27
  325. package/esm2022/directives/date-format/date-format.directive.mjs +0 -31
  326. package/esm2022/directives/date-format/index.mjs +0 -2
  327. package/esm2022/directives/date-format/taiga-ui-core-directives-date-format.mjs +0 -5
  328. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +0 -70
  329. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +0 -70
  330. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +0 -17
  331. package/esm2022/directives/dropdown/dropdown-limit-width.mjs +0 -37
  332. package/esm2022/directives/dropdown/dropdown-manual.directive.mjs +0 -27
  333. package/esm2022/directives/dropdown/dropdown-open-legacy.directive.mjs +0 -33
  334. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +0 -169
  335. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +0 -73
  336. package/esm2022/directives/dropdown/dropdown-portal.directive.mjs +0 -34
  337. package/esm2022/directives/dropdown/dropdown-position-sided.directive.mjs +0 -69
  338. package/esm2022/directives/dropdown/dropdown-position.directive.mjs +0 -88
  339. package/esm2022/directives/dropdown/dropdown-selection.directive.mjs +0 -159
  340. package/esm2022/directives/dropdown/dropdown.bindings.mjs +0 -19
  341. package/esm2022/directives/dropdown/dropdown.component.mjs +0 -92
  342. package/esm2022/directives/dropdown/dropdown.directive.mjs +0 -110
  343. package/esm2022/directives/dropdown/dropdown.driver.mjs +0 -32
  344. package/esm2022/directives/dropdown/dropdown.mjs +0 -29
  345. package/esm2022/directives/dropdown/dropdown.providers.mjs +0 -10
  346. package/esm2022/directives/dropdown/dropdown.service.mjs +0 -15
  347. package/esm2022/directives/dropdown/dropdowns.component.mjs +0 -24
  348. package/esm2022/directives/dropdown/index.mjs +0 -22
  349. package/esm2022/directives/dropdown/taiga-ui-core-directives-dropdown.mjs +0 -5
  350. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +0 -23
  351. package/esm2022/directives/group/group.directive.mjs +0 -53
  352. package/esm2022/directives/group/group.options.mjs +0 -15
  353. package/esm2022/directives/group/index.mjs +0 -3
  354. package/esm2022/directives/group/taiga-ui-core-directives-group.mjs +0 -5
  355. package/esm2022/directives/hint/hint-describe.directive.mjs +0 -50
  356. package/esm2022/directives/hint/hint-driver.directive.mjs +0 -19
  357. package/esm2022/directives/hint/hint-host.directive.mjs +0 -27
  358. package/esm2022/directives/hint/hint-hover.directive.mjs +0 -59
  359. package/esm2022/directives/hint/hint-manual.directive.mjs +0 -33
  360. package/esm2022/directives/hint/hint-options.directive.mjs +0 -86
  361. package/esm2022/directives/hint/hint-overflow.directive.mjs +0 -38
  362. package/esm2022/directives/hint/hint-pointer.directive.mjs +0 -33
  363. package/esm2022/directives/hint/hint-position.directive.mjs +0 -112
  364. package/esm2022/directives/hint/hint-unstyled.component.mjs +0 -39
  365. package/esm2022/directives/hint/hint.component.mjs +0 -127
  366. package/esm2022/directives/hint/hint.directive.mjs +0 -99
  367. package/esm2022/directives/hint/hint.mjs +0 -27
  368. package/esm2022/directives/hint/hint.providers.mjs +0 -9
  369. package/esm2022/directives/hint/hint.service.mjs +0 -29
  370. package/esm2022/directives/hint/hints.component.mjs +0 -34
  371. package/esm2022/directives/hint/index.mjs +0 -17
  372. package/esm2022/directives/hint/taiga-ui-core-directives-hint.mjs +0 -5
  373. package/esm2022/directives/icons/icons.directive.mjs +0 -56
  374. package/esm2022/directives/icons/index.mjs +0 -3
  375. package/esm2022/directives/icons/taiga-ui-core-directives-icons.mjs +0 -5
  376. package/esm2022/directives/icons/with-icons.mjs +0 -22
  377. package/esm2022/directives/index.mjs +0 -12
  378. package/esm2022/directives/items-handlers/index.mjs +0 -4
  379. package/esm2022/directives/items-handlers/items-handlers.directive.mjs +0 -63
  380. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +0 -27
  381. package/esm2022/directives/items-handlers/items-handlers.validator.mjs +0 -32
  382. package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +0 -5
  383. package/esm2022/directives/number-format/index.mjs +0 -2
  384. package/esm2022/directives/number-format/number-format.directive.mjs +0 -31
  385. package/esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs +0 -5
  386. package/esm2022/directives/popup/index.mjs +0 -4
  387. package/esm2022/directives/popup/popup.directive.mjs +0 -31
  388. package/esm2022/directives/popup/popup.service.mjs +0 -15
  389. package/esm2022/directives/popup/popups.component.mjs +0 -20
  390. package/esm2022/directives/popup/taiga-ui-core-directives-popup.mjs +0 -5
  391. package/esm2022/directives/surface/index.mjs +0 -2
  392. package/esm2022/directives/surface/surface.directive.mjs +0 -44
  393. package/esm2022/directives/surface/taiga-ui-core-directives-surface.mjs +0 -5
  394. package/esm2022/directives/taiga-ui-core-directives.mjs +0 -5
  395. package/esm2022/directives/title/index.mjs +0 -2
  396. package/esm2022/directives/title/taiga-ui-core-directives-title.mjs +0 -5
  397. package/esm2022/directives/title/title.directive.mjs +0 -37
  398. package/esm2022/index.mjs +0 -9
  399. package/esm2022/pipes/auto-color/auto-color.pipe.mjs +0 -19
  400. package/esm2022/pipes/auto-color/index.mjs +0 -2
  401. package/esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs +0 -5
  402. package/esm2022/pipes/calendar-sheet/calendar-sheet.pipe.mjs +0 -54
  403. package/esm2022/pipes/calendar-sheet/index.mjs +0 -2
  404. package/esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs +0 -5
  405. package/esm2022/pipes/calendar-sheet/utils.mjs +0 -36
  406. package/esm2022/pipes/fallback-src/fallback-src.pipe.mjs +0 -23
  407. package/esm2022/pipes/fallback-src/index.mjs +0 -2
  408. package/esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs +0 -5
  409. package/esm2022/pipes/flag/flag.pipe.mjs +0 -26
  410. package/esm2022/pipes/flag/index.mjs +0 -2
  411. package/esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs +0 -5
  412. package/esm2022/pipes/format-date/format-date.pipe.mjs +0 -22
  413. package/esm2022/pipes/format-date/index.mjs +0 -2
  414. package/esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs +0 -5
  415. package/esm2022/pipes/format-number/format-number.pipe.mjs +0 -36
  416. package/esm2022/pipes/format-number/index.mjs +0 -2
  417. package/esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs +0 -5
  418. package/esm2022/pipes/index.mjs +0 -10
  419. package/esm2022/pipes/initials/index.mjs +0 -2
  420. package/esm2022/pipes/initials/initials.pipe.mjs +0 -23
  421. package/esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs +0 -5
  422. package/esm2022/pipes/month/index.mjs +0 -2
  423. package/esm2022/pipes/month/month.pipe.mjs +0 -23
  424. package/esm2022/pipes/month/taiga-ui-core-pipes-month.mjs +0 -5
  425. package/esm2022/pipes/order-week-days/index.mjs +0 -2
  426. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +0 -30
  427. package/esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs +0 -5
  428. package/esm2022/pipes/taiga-ui-core-pipes.mjs +0 -5
  429. package/esm2022/services/breakpoint.service.mjs +0 -31
  430. package/esm2022/services/dark-theme.service.mjs +0 -24
  431. package/esm2022/services/format-date.service.mjs +0 -24
  432. package/esm2022/services/index.mjs +0 -6
  433. package/esm2022/services/position.service.mjs +0 -26
  434. package/esm2022/services/taiga-ui-core-services.mjs +0 -5
  435. package/esm2022/services/visual-viewport.service.mjs +0 -29
  436. package/esm2022/taiga-ui-core.mjs +0 -5
  437. package/esm2022/tokens/animations-speed.mjs +0 -9
  438. package/esm2022/tokens/assets-path.mjs +0 -11
  439. package/esm2022/tokens/auxiliary.mjs +0 -9
  440. package/esm2022/tokens/common-icons.mjs +0 -18
  441. package/esm2022/tokens/dark-mode.mjs +0 -41
  442. package/esm2022/tokens/date-format.mjs +0 -20
  443. package/esm2022/tokens/day-type-handler.mjs +0 -8
  444. package/esm2022/tokens/first-day-of-week.mjs +0 -9
  445. package/esm2022/tokens/i18n.mjs +0 -45
  446. package/esm2022/tokens/icon-resolver.mjs +0 -22
  447. package/esm2022/tokens/icon.mjs +0 -8
  448. package/esm2022/tokens/icons.mjs +0 -21
  449. package/esm2022/tokens/index.mjs +0 -21
  450. package/esm2022/tokens/media.mjs +0 -12
  451. package/esm2022/tokens/number-format.mjs +0 -24
  452. package/esm2022/tokens/reduced-motion.mjs +0 -7
  453. package/esm2022/tokens/scroll-ref.mjs +0 -6
  454. package/esm2022/tokens/selection-stream.mjs +0 -14
  455. package/esm2022/tokens/spin-icons.mjs +0 -8
  456. package/esm2022/tokens/taiga-ui-core-tokens.mjs +0 -5
  457. package/esm2022/tokens/theme.mjs +0 -5
  458. package/esm2022/tokens/viewport.mjs +0 -35
  459. package/esm2022/types/direction.mjs +0 -2
  460. package/esm2022/types/index.mjs +0 -2
  461. package/esm2022/types/interactive-state.mjs +0 -2
  462. package/esm2022/types/orientation.mjs +0 -2
  463. package/esm2022/types/point.mjs +0 -2
  464. package/esm2022/types/portal-item.mjs +0 -2
  465. package/esm2022/types/range-state.mjs +0 -2
  466. package/esm2022/types/size.mjs +0 -13
  467. package/esm2022/types/taiga-ui-core-types.mjs +0 -5
  468. package/esm2022/types/value-content-context.mjs +0 -2
  469. package/esm2022/utils/dom/check-fixed-position.mjs +0 -9
  470. package/esm2022/utils/dom/get-viewport.mjs +0 -24
  471. package/esm2022/utils/dom/get-word-range.mjs +0 -51
  472. package/esm2022/utils/dom/index.mjs +0 -4
  473. package/esm2022/utils/dom/taiga-ui-core-utils-dom.mjs +0 -5
  474. package/esm2022/utils/format/format-number.mjs +0 -47
  475. package/esm2022/utils/format/get-fractional-part-padded.mjs +0 -16
  476. package/esm2022/utils/format/index.mjs +0 -5
  477. package/esm2022/utils/format/number-to-string-without-exp.mjs +0 -18
  478. package/esm2022/utils/format/string-hash-to-hsl.mjs +0 -21
  479. package/esm2022/utils/format/taiga-ui-core-utils-format.mjs +0 -5
  480. package/esm2022/utils/index.mjs +0 -4
  481. package/esm2022/utils/miscellaneous/font-scaling.mjs +0 -11
  482. package/esm2022/utils/miscellaneous/index.mjs +0 -7
  483. package/esm2022/utils/miscellaneous/is-editing-key.mjs +0 -18
  484. package/esm2022/utils/miscellaneous/is-obscured.mjs +0 -8
  485. package/esm2022/utils/miscellaneous/override-options.mjs +0 -11
  486. package/esm2022/utils/miscellaneous/size-bigger.mjs +0 -19
  487. package/esm2022/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs +0 -5
  488. package/esm2022/utils/miscellaneous/to-animation-options.mjs +0 -16
  489. package/esm2022/utils/taiga-ui-core-utils.mjs +0 -5
  490. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -73
  491. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  492. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  493. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  494. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  495. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  496. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  497. package/pipes/fallback-src/index.d.ts +0 -1
  498. package/types/portal-item.d.ts +0 -9
@@ -1,27 +1,50 @@
1
- import * as i1$1 from '@angular/common';
2
- import { NgIf, CommonModule } from '@angular/common';
3
1
  import * as i0 from '@angular/core';
4
- import { InjectionToken, inject, Component, ChangeDetectionStrategy, Injectable, Directive, INJECTOR, Injector, ViewEncapsulation } from '@angular/core';
5
- import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
2
+ import { inject, ChangeDetectionStrategy, Component, InjectionToken, Injectable, input, Directive } from '@angular/core';
3
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
4
  import * as i1 from '@taiga-ui/cdk/directives/animated';
7
- import { TuiAnimated, TuiAnimatedParent } from '@taiga-ui/cdk/directives/animated';
5
+ import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
8
6
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
9
7
  import { TuiButton } from '@taiga-ui/core/components/button';
10
- import { TUI_NOTIFICATION_OPTIONS, TuiNotification } from '@taiga-ui/core/components/notification';
8
+ import { TuiNotification, TUI_NOTIFICATION_OPTIONS } from '@taiga-ui/core/components/notification';
9
+ import * as i2 from '@taiga-ui/core/directives';
10
+ import { TuiNotificationDirective } from '@taiga-ui/core/directives';
11
11
  import { TuiTitle } from '@taiga-ui/core/directives/title';
12
12
  import { TUI_COMMON_ICONS, TUI_CLOSE_WORD } from '@taiga-ui/core/tokens';
13
- import { injectContext, PolymorpheusOutlet, POLYMORPHEUS_CONTEXT } from '@taiga-ui/polymorpheus';
14
- import { BehaviorSubject, combineLatest, of, map, switchMap, timer, EMPTY, takeUntil, fromEvent, repeat, identity } from 'rxjs';
15
- import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
16
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
17
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
18
- import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
13
+ import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
14
+ import { of, switchMap, timer, EMPTY, takeUntil, fromEvent, repeat } from 'rxjs';
15
+ import * as i1$1 from '@taiga-ui/cdk/portals';
16
+ import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
17
+ import { TuiNotificationService } from '@taiga-ui/core/directives/notification';
18
+ import { tuiCreateToken } from '@taiga-ui/cdk/utils/miscellaneous';
19
19
 
20
+ class TuiAlertComponent {
21
+ constructor() {
22
+ this.el = tuiInjectElement();
23
+ this.icons = inject(TUI_COMMON_ICONS);
24
+ this.close = inject(TUI_CLOSE_WORD);
25
+ this.item = injectContext();
26
+ this.sub = of(typeof this.item.autoClose === 'function'
27
+ ? this.item.autoClose(this.item.appearance)
28
+ : this.item.autoClose)
29
+ .pipe(switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)), takeUntil(fromEvent(this.el, 'mouseenter')), repeat({ delay: () => fromEvent(this.el, 'mouseleave') }), takeUntilDestroyed())
30
+ .subscribe(() => this.item.$implicit.complete());
31
+ }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiAlertComponent, isStandalone: true, selector: "tui-alert", host: { attributes: { "role": "alert" } }, hostDirectives: [{ directive: i1.TuiAnimated }, { directive: i2.TuiNotificationDirective }], ngImport: i0, template: "<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closable]=\"item.closable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n @if (item.closable) {\n <button\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n }\n </tui-notification>\n</div>\n", styles: [":host{inline-size:18rem;margin:1.625rem 3rem;word-break:break-word;transform:translateZ(0);filter:drop-shadow(0 .375rem 1rem rgba(0,0,0,.12))}:host :host-context(tui-root._mobile){margin:.625rem 1rem}.t-wrapper{background:var(--tui-background-base);clip-path:inset(.375rem 0 round var(--tui-radius-m))}.t-closable{padding-inline-end:2.5rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiNotification, selector: "tui-notification,a[tuiNotification],button[tuiNotification]", inputs: ["appearance", "icon", "size"] }, { kind: "directive", type: TuiTitle, selector: "[tuiTitle]", inputs: ["tuiTitle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
+ }
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertComponent, decorators: [{
36
+ type: Component,
37
+ args: [{ selector: 'tui-alert', imports: [PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated, TuiNotificationDirective], host: { role: 'alert' }, template: "<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closable]=\"item.closable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n @if (item.closable) {\n <button\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n }\n </tui-notification>\n</div>\n", styles: [":host{inline-size:18rem;margin:1.625rem 3rem;word-break:break-word;transform:translateZ(0);filter:drop-shadow(0 .375rem 1rem rgba(0,0,0,.12))}:host :host-context(tui-root._mobile){margin:.625rem 1rem}.t-wrapper{background:var(--tui-background-base);clip-path:inset(.375rem 0 round var(--tui-radius-m))}.t-closable{padding-inline-end:2.5rem}\n"] }]
38
+ }] });
39
+
40
+ const TUI_ALERT_CONCURRENCY = tuiCreateToken(5);
20
41
  const TUI_ALERT_DEFAULT_OPTIONS = {
21
42
  autoClose: 3000,
22
43
  label: '',
23
- closeable: true,
44
+ closable: true,
24
45
  data: undefined,
46
+ block: 'start',
47
+ inline: 'end',
25
48
  };
26
49
  const TUI_ALERT_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_ALERT_OPTIONS' : '', {
27
50
  factory: () => ({
@@ -29,29 +52,6 @@ const TUI_ALERT_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_ALERT_OPTIONS' : '
29
52
  ...inject(TUI_NOTIFICATION_OPTIONS),
30
53
  }),
31
54
  });
32
- const TUI_ALERT_POSITION = new InjectionToken(ngDevMode ? 'TUI_ALERT_POSITION' : '', {
33
- factory: () => (inject(TUI_IS_MOBILE) ? '1rem 1rem 0 auto' : '2rem 3rem 0 auto'),
34
- });
35
- const TUI_ALERTS = new InjectionToken(ngDevMode ? 'TUI_ALERTS' : '', {
36
- factory: () => new BehaviorSubject([]),
37
- });
38
- /**
39
- * Grouping alerts by their component
40
- */
41
- const TUI_ALERTS_GROUPED = new InjectionToken(ngDevMode ? 'TUI_ALERTS_GROUPED' : '', {
42
- factory: () => combineLatest([
43
- of(new Map()),
44
- inject(TUI_ALERTS),
45
- ]).pipe(map(([map, alerts]) => {
46
- map.forEach((_, key) => map.set(key, []));
47
- alerts.forEach((alert) => {
48
- const key = alert.component.component;
49
- const value = map.get(key) || [];
50
- map.set(key, [...value, alert]);
51
- });
52
- return Array.from(map.values());
53
- })),
54
- });
55
55
  function tuiAlertOptionsProvider(options) {
56
56
  return {
57
57
  provide: TUI_ALERT_OPTIONS,
@@ -64,87 +64,47 @@ function tuiAlertOptionsProvider(options) {
64
64
  };
65
65
  }
66
66
 
67
- class TuiAlertComponent {
67
+ class TuiAlertService extends TuiNotificationService {
68
68
  constructor() {
69
- this.el = tuiInjectElement();
70
- this.icons = inject(TUI_COMMON_ICONS);
71
- this.close = toSignal(inject(TUI_CLOSE_WORD));
72
- this.position = inject(TUI_ALERT_POSITION);
73
- this.item = injectContext();
74
- this.sub = of(typeof this.item.autoClose === 'function'
75
- ? this.item.autoClose(this.item.appearance)
76
- : this.item.autoClose)
77
- .pipe(switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)), takeUntil(fromEvent(this.el, 'mouseenter')), repeat({ delay: () => fromEvent(this.el, 'mouseleave') }), takeUntilDestroyed())
78
- .subscribe(() => this.item.$implicit.complete());
79
- }
80
- get from() {
81
- return this.position.endsWith('auto') ? 'translateX(100%)' : 'translateX(-100%)';
69
+ super(inject(TUI_ALERT_CONCURRENCY));
70
+ this.options = inject(TUI_ALERT_OPTIONS);
71
+ this.component = TuiAlertComponent;
82
72
  }
83
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
84
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiAlertComponent, isStandalone: true, selector: "tui-alert", host: { attributes: { "role": "alert" }, properties: { "style.margin": "position", "style.--tui-from": "from" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closeable]=\"item.closeable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n <button\n *ngIf=\"item.closeable\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n </tui-notification>\n</div>\n", styles: [":host{display:grid;inline-size:18rem;flex-shrink:0;word-break:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host:not(:first-child){margin-block-start:0!important}:host:not(:last-child){margin-block-end:0!important}.t-wrapper{transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;grid-row:1 / span 2;overflow:hidden;margin-block-end:.75rem;background:var(--tui-background-base);border-radius:var(--tui-radius-m);box-shadow:var(--tui-shadow-medium)}:host.tui-leave .t-wrapper{margin:0}.t-closeable{padding-inline-end:2.5rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiNotification, selector: "tui-notification,a[tuiNotification],button[tuiNotification]", inputs: ["appearance", "icon", "size"] }, { kind: "directive", type: TuiTitle, selector: "[tuiTitle]", inputs: ["tuiTitle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
74
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, providedIn: 'root' }); }
85
75
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlertComponent, decorators: [{
87
- type: Component,
88
- args: [{ standalone: true, selector: 'tui-alert', imports: [NgIf, PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
89
- role: 'alert',
90
- '[style.margin]': 'position',
91
- '[style.--tui-from]': 'from',
92
- }, template: "<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closeable]=\"item.closeable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n <button\n *ngIf=\"item.closeable\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n </tui-notification>\n</div>\n", styles: [":host{display:grid;inline-size:18rem;flex-shrink:0;word-break:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host:not(:first-child){margin-block-start:0!important}:host:not(:last-child){margin-block-end:0!important}.t-wrapper{transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;grid-row:1 / span 2;overflow:hidden;margin-block-end:.75rem;background:var(--tui-background-base);border-radius:var(--tui-radius-m);box-shadow:var(--tui-shadow-medium)}:host.tui-leave .t-wrapper{margin:0}.t-closeable{padding-inline-end:2.5rem}\n"] }]
93
- }] });
94
-
95
- class TuiAlertService extends TuiPopoverService {
96
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlertService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
97
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlertService, providedIn: 'root', useFactory: () => new TuiAlertService(TUI_ALERTS, TuiAlertComponent, inject(TUI_ALERT_OPTIONS)) }); }
98
- }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlertService, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, decorators: [{
100
77
  type: Injectable,
101
78
  args: [{
102
79
  providedIn: 'root',
103
- useFactory: () => new TuiAlertService(TUI_ALERTS, TuiAlertComponent, inject(TUI_ALERT_OPTIONS)),
104
80
  }]
105
- }] });
81
+ }], ctorParameters: () => [] });
106
82
 
107
- class TuiAlert extends TuiPopoverDirective {
108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlert, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
109
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiAlert, isStandalone: true, selector: "ng-template[tuiAlert]", inputs: { options: ["tuiAlertOptions", "options"], open: ["tuiAlert", "open"] }, outputs: { openChange: "tuiAlertChange" }, providers: [tuiAsPopover(TuiAlertService)], usesInheritance: true, ngImport: i0 }); }
83
+ class TuiAlert {
84
+ constructor() {
85
+ this.tuiAlertOptions = input({});
86
+ }
87
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlert, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
88
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiAlert, isStandalone: true, selector: "ng-template[tuiAlert]", inputs: { tuiAlertOptions: { classPropertyName: "tuiAlertOptions", publicName: "tuiAlertOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiAlertService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["options", "tuiAlertOptions", "open", "tuiAlert"], outputs: ["openChange", "tuiAlertChange"] }], ngImport: i0 }); }
110
89
  }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlert, decorators: [{
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlert, decorators: [{
112
91
  type: Directive,
113
92
  args: [{
114
- standalone: true,
115
93
  selector: 'ng-template[tuiAlert]',
116
- inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],
117
- outputs: ['openChange: tuiAlertChange'],
118
- providers: [tuiAsPopover(TuiAlertService)],
94
+ providers: [tuiAsPortal(TuiAlertService)],
95
+ hostDirectives: [
96
+ {
97
+ directive: TuiPortalDirective,
98
+ inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],
99
+ outputs: ['openChange: tuiAlertChange'],
100
+ },
101
+ ],
119
102
  }]
120
103
  }] });
121
104
 
122
- class TuiAlerts {
123
- constructor() {
124
- this.injector = inject(INJECTOR);
125
- this.alerts$ = inject(TUI_ALERTS_GROUPED);
126
- this.trackBy = identity;
127
- this.mapper = (useValue) => Injector.create({
128
- providers: [
129
- {
130
- provide: POLYMORPHEUS_CONTEXT,
131
- useValue,
132
- },
133
- ],
134
- parent: this.injector,
135
- });
136
- }
137
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlerts, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
138
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiAlerts, isStandalone: true, selector: "tui-alerts", ngImport: i0, template: "<div\n *ngFor=\"let group of alerts$ | async; trackBy: trackBy\"\n tuiAnimatedParent\n class=\"t-wrapper\"\n>\n <ng-container\n *ngFor=\"let item of group\"\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n</div>\n", styles: ["tui-alerts>.t-wrapper{position:fixed;top:0;left:0;inline-size:100%;display:flex;flex-direction:column;pointer-events:none;box-sizing:border-box;block-size:100%;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}tui-alerts>.t-wrapper>*{pointer-events:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "directive", type: TuiAnimatedParent, selector: "[tuiAnimatedParent]" }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
139
- }
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAlerts, decorators: [{
141
- type: Component,
142
- args: [{ standalone: true, selector: 'tui-alerts', imports: [CommonModule, TuiAnimatedParent, TuiMapperPipe], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, template: "<div\n *ngFor=\"let group of alerts$ | async; trackBy: trackBy\"\n tuiAnimatedParent\n class=\"t-wrapper\"\n>\n <ng-container\n *ngFor=\"let item of group\"\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n</div>\n", styles: ["tui-alerts>.t-wrapper{position:fixed;top:0;left:0;inline-size:100%;display:flex;flex-direction:column;pointer-events:none;box-sizing:border-box;block-size:100%;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}tui-alerts>.t-wrapper>*{pointer-events:auto}\n"] }]
143
- }] });
144
-
145
105
  /**
146
106
  * Generated bundle index. Do not edit.
147
107
  */
148
108
 
149
- export { TUI_ALERTS, TUI_ALERTS_GROUPED, TUI_ALERT_DEFAULT_OPTIONS, TUI_ALERT_OPTIONS, TUI_ALERT_POSITION, TuiAlert, TuiAlertComponent, TuiAlertService, TuiAlerts, tuiAlertOptionsProvider };
109
+ export { TUI_ALERT_CONCURRENCY, TUI_ALERT_DEFAULT_OPTIONS, TUI_ALERT_OPTIONS, TuiAlert, TuiAlertComponent, TuiAlertService, tuiAlertOptionsProvider };
150
110
  //# sourceMappingURL=taiga-ui-core-components-alert.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-alert.mjs","sources":["../../../projects/core/components/alert/alert.tokens.ts","../../../projects/core/components/alert/alert.component.ts","../../../projects/core/components/alert/alert.template.html","../../../projects/core/components/alert/alert.service.ts","../../../projects/core/components/alert/alert.directive.ts","../../../projects/core/components/alert/alerts.component.ts","../../../projects/core/components/alert/alerts.template.html","../../../projects/core/components/alert/taiga-ui-core-components-alert.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken, type Type} from '@angular/core';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification';\nimport {BehaviorSubject, combineLatest, map, of} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\n\nexport const TUI_ALERT_DEFAULT_OPTIONS: Omit<TuiAlertOptions, 'appearance' | 'icon'> = {\n autoClose: 3000,\n label: '',\n closeable: true,\n data: undefined,\n};\n\nexport const TUI_ALERT_OPTIONS = new InjectionToken<TuiAlertOptions>(\n ngDevMode ? 'TUI_ALERT_OPTIONS' : '',\n {\n factory: () => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...inject(TUI_NOTIFICATION_OPTIONS),\n }),\n },\n);\n\nexport const TUI_ALERT_POSITION = new InjectionToken<string>(\n ngDevMode ? 'TUI_ALERT_POSITION' : '',\n {\n factory: () => (inject(TUI_IS_MOBILE) ? '1rem 1rem 0 auto' : '2rem 3rem 0 auto'),\n },\n);\n\nexport const TUI_ALERTS = new InjectionToken(ngDevMode ? 'TUI_ALERTS' : '', {\n factory: () => new BehaviorSubject<ReadonlyArray<TuiPopover<any, any>>>([]),\n});\n\n/**\n * Grouping alerts by their component\n */\nexport const TUI_ALERTS_GROUPED = new InjectionToken(\n ngDevMode ? 'TUI_ALERTS_GROUPED' : '',\n {\n factory: () =>\n combineLatest([\n of(new Map<Type<any>, ReadonlyArray<TuiPopover<any, any>>>()),\n inject(TUI_ALERTS),\n ]).pipe(\n map(([map, alerts]) => {\n map.forEach((_, key) => map.set(key, []));\n\n alerts.forEach((alert) => {\n const key = alert.component.component;\n const value = map.get(key) || [];\n\n map.set(key, [...value, alert]);\n });\n\n return Array.from(map.values());\n }),\n ),\n },\n);\n\nexport function tuiAlertOptionsProvider(\n options: Partial<TuiAlertOptions>,\n): FactoryProvider {\n return {\n provide: TUI_ALERT_OPTIONS,\n useFactory: (): TuiAlertOptions => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...(inject(TUI_ALERT_OPTIONS, {optional: true, skipSelf: true}) ||\n inject(TUI_NOTIFICATION_OPTIONS)),\n ...options,\n }),\n };\n}\n","import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiNotification} from '@taiga-ui/core/components/notification';\nimport {TuiTitle} from '@taiga-ui/core/directives/title';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_POSITION} from './alert.tokens';\n\n@Component({\n standalone: true,\n selector: 'tui-alert',\n imports: [NgIf, PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle],\n templateUrl: './alert.template.html',\n styleUrls: ['./alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n role: 'alert',\n '[style.margin]': 'position',\n '[style.--tui-from]': 'from',\n },\n})\nexport class TuiAlertComponent<O, I> {\n private readonly el = tuiInjectElement();\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly close = toSignal(inject(TUI_CLOSE_WORD));\n protected readonly position = inject(TUI_ALERT_POSITION);\n protected readonly item = injectContext<TuiPopover<TuiAlertOptions<I>, O>>();\n\n protected readonly sub = of(\n typeof this.item.autoClose === 'function'\n ? this.item.autoClose(this.item.appearance)\n : this.item.autoClose,\n )\n .pipe(\n switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)),\n takeUntil(fromEvent(this.el, 'mouseenter')),\n repeat({delay: () => fromEvent(this.el, 'mouseleave')}),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.item.$implicit.complete());\n\n public get from(): string {\n return this.position.endsWith('auto') ? 'translateX(100%)' : 'translateX(-100%)';\n }\n}\n","<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closeable]=\"item.closeable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n <button\n *ngIf=\"item.closeable\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n </tui-notification>\n</div>\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\n\nimport {TuiAlertComponent} from './alert.component';\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_OPTIONS, TUI_ALERTS} from './alert.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiAlertService(TUI_ALERTS, TuiAlertComponent, inject(TUI_ALERT_OPTIONS)),\n})\nexport class TuiAlertService extends TuiPopoverService<TuiAlertOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TuiAlertService} from './alert.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiAlert]',\n inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],\n outputs: ['openChange: tuiAlertChange'],\n providers: [tuiAsPopover(TuiAlertService)],\n})\nexport class TuiAlert<T> extends TuiPopoverDirective<TuiAlertOptions<T>> {}\n","import {CommonModule} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n INJECTOR,\n Injector,\n type Type,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiAnimatedParent} from '@taiga-ui/cdk/directives/animated';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n// eslint-disable-next-line no-restricted-imports\nimport {POLYMORPHEUS_CONTEXT} from '@taiga-ui/polymorpheus';\nimport {identity} from 'rxjs';\n\nimport {TUI_ALERTS_GROUPED} from './alert.tokens';\n\n@Component({\n standalone: true,\n selector: 'tui-alerts',\n imports: [CommonModule, TuiAnimatedParent, TuiMapperPipe],\n templateUrl: './alerts.template.html',\n styleUrls: ['./alerts.style.less'],\n encapsulation: ViewEncapsulation.None,\n // So that we do not force OnPush on custom alerts\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class TuiAlerts {\n private readonly injector = inject(INJECTOR);\n\n protected readonly alerts$ = inject(TUI_ALERTS_GROUPED);\n protected readonly trackBy = identity;\n protected readonly mapper: TuiMapper<[Type<any>], Injector> = (useValue) =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","<div\n *ngFor=\"let group of alerts$ | async; trackBy: trackBy\"\n tuiAnimatedParent\n class=\"t-wrapper\"\n>\n <ng-container\n *ngFor=\"let item of group\"\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n</div>\n","/**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,EAAAA,IAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,iBAAiB,2DAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,OAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQ/C,SAAS,EAAA,UAAA,EAAA,CAAA;kBAXrB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,YAAY,EAAA,OAAA,EACb,CAAC,YAAY,EAAE,iBAAiB,EAAE,aAAa,CAAC,iBAG1C,iBAAiB,CAAC,IAAI,EAGpB,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,+TAAA,EAAA,MAAA,EAAA,CAAA,+QAAA,CAAA,EAAA,CAAA;;;AE5BpD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-alert.mjs","sources":["../../../projects/core/components/alert/alert.component.ts","../../../projects/core/components/alert/alert.template.html","../../../projects/core/components/alert/alert.tokens.ts","../../../projects/core/components/alert/alert.service.ts","../../../projects/core/components/alert/alert.directive.ts","../../../projects/core/components/alert/taiga-ui-core-components-alert.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiNotification} from '@taiga-ui/core/components/notification';\nimport {TuiNotificationDirective} from '@taiga-ui/core/directives';\nimport {TuiTitle} from '@taiga-ui/core/directives/title';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\n\n@Component({\n selector: 'tui-alert',\n imports: [PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle],\n templateUrl: './alert.template.html',\n styleUrl: './alert.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated, TuiNotificationDirective],\n host: {role: 'alert'},\n})\nexport class TuiAlertComponent<O, I> {\n private readonly el = tuiInjectElement();\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly close = inject(TUI_CLOSE_WORD);\n protected readonly item = injectContext<TuiPortalContext<TuiAlertOptions<I>, O>>();\n\n protected readonly sub = of(\n typeof this.item.autoClose === 'function'\n ? this.item.autoClose(this.item.appearance)\n : this.item.autoClose,\n )\n .pipe(\n switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)),\n takeUntil(fromEvent(this.el, 'mouseenter')),\n repeat({delay: () => fromEvent(this.el, 'mouseleave')}),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.item.$implicit.complete());\n}\n","<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closable]=\"item.closable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n @if (item.closable) {\n <button\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n }\n </tui-notification>\n</div>\n","import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\n\nexport const TUI_ALERT_CONCURRENCY = tuiCreateToken<number>(5);\n\nexport const TUI_ALERT_DEFAULT_OPTIONS: Omit<TuiAlertOptions, 'appearance' | 'icon'> = {\n autoClose: 3000,\n label: '',\n closable: true,\n data: undefined,\n block: 'start',\n inline: 'end',\n};\n\nexport const TUI_ALERT_OPTIONS = new InjectionToken<TuiAlertOptions>(\n ngDevMode ? 'TUI_ALERT_OPTIONS' : '',\n {\n factory: () => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...inject(TUI_NOTIFICATION_OPTIONS),\n }),\n },\n);\n\nexport function tuiAlertOptionsProvider(\n options: Partial<TuiAlertOptions>,\n): FactoryProvider {\n return {\n provide: TUI_ALERT_OPTIONS,\n useFactory: (): TuiAlertOptions => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...(inject(TUI_ALERT_OPTIONS, {optional: true, skipSelf: true}) ||\n inject(TUI_NOTIFICATION_OPTIONS)),\n ...options,\n }),\n };\n}\n","import {inject, Injectable} from '@angular/core';\nimport {TuiNotificationService} from '@taiga-ui/core/directives/notification';\n\nimport {TuiAlertComponent} from './alert.component';\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_CONCURRENCY, TUI_ALERT_OPTIONS} from './alert.tokens';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiAlertService extends TuiNotificationService<TuiAlertOptions<any>> {\n protected override readonly options = inject(TUI_ALERT_OPTIONS);\n protected override readonly component = TuiAlertComponent;\n\n constructor() {\n super(inject(TUI_ALERT_CONCURRENCY));\n }\n}\n","import {Directive, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TuiAlertService} from './alert.service';\n\n@Directive({\n selector: 'ng-template[tuiAlert]',\n providers: [tuiAsPortal(TuiAlertService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],\n outputs: ['openChange: tuiAlertChange'],\n },\n ],\n})\nexport class TuiAlert<T> {\n public readonly tuiAlertOptions = input<Partial<TuiAlertOptions<T>>>({});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;MAwBa,iBAAiB,CAAA;AAT9B,IAAA,WAAA,GAAA;QAUqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAErB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAChC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;QAC9B,IAAI,CAAA,IAAA,GAAG,aAAa,EAA2C;QAE/D,IAAG,CAAA,GAAA,GAAG,EAAE,CACvB,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,KAAK;AAC3B,cAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU;AAC1C,cAAE,IAAI,CAAC,IAAI,CAAC,SAAS;aAExB,IAAI,CACD,SAAS,CAAC,CAAC,SAAS,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,EAChE,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,EAC3C,MAAM,CAAC,EAAC,KAAK,EAAE,MAAM,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,EAAC,CAAC,EACvD,kBAAkB,EAAE;AAEvB,aAAA,SAAS,C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AS,EAAE,kBAAkB;AAC7B,4BAAA,MAAM,EAAE,CAAC,0BAA0B,EAAE,gBAAgB,CAAC;4BACtD,OAAO,EAAE,CAAC,4BAA4B,CAAC;AAC1C,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;AChBD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, Directive, Input } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, input, inject, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
  import * as i1 from '@taiga-ui/core/directives/appearance';
5
5
  import { tuiAppearanceOptionsProvider, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
@@ -13,39 +13,31 @@ const TUI_BUTTON_DEFAULT_OPTIONS = {
13
13
  };
14
14
  const [TUI_BUTTON_OPTIONS, tuiButtonOptionsProvider] = tuiCreateOptions(TUI_BUTTON_DEFAULT_OPTIONS);
15
15
 
16
- class TuiButtonStyles {
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiButtonStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiButtonStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-button" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiButton],[tuiIconButton]{--t-size: var(--tui-height-l);--t-radius: var(--tui-radius-l);--t-gap: .25rem;--t-padding: 0 1.25rem;--t-margin: -.25rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));block-size:var(--t-size);justify-content:center;border-radius:var(--t-radius);padding:var(--t-padding);-webkit-user-select:none;user-select:none;cursor:pointer;font:var(--tui-font-text-m);font-weight:700}[tuiButton]>img,[tuiIconButton]>img,[tuiButton]>tui-svg,[tuiIconButton]>tui-svg,[tuiButton]>tui-icon,[tuiIconButton]>tui-icon,[tuiButton]>tui-avatar,[tuiIconButton]>tui-avatar,[tuiButton]>tui-badge,[tuiIconButton]>tui-badge,[tuiButton]>[tuiBadge],[tuiIconButton]>[tuiBadge],[tuiButton]>[tuiRadio],[tuiIconButton]>[tuiRadio],[tuiButton]>[tuiSwitch],[tuiIconButton]>[tuiSwitch],[tuiButton]>[tuiCheckbox],[tuiIconButton]>[tuiCheckbox],[tuiButton][tuiIcons]:before,[tuiIconButton][tuiIcons]:before,[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{margin:var(--t-margin)}[tuiButton]>.t-loader,[tuiIconButton]>.t-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[tuiButton]>.t-loader .t-text,[tuiIconButton]>.t-loader .t-text{position:absolute}[tuiButton][data-size=xs],[tuiIconButton][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: var(--tui-radius-xs);--t-gap: .125rem;--t-padding: 0 .375rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=xs] tui-svg,[tuiIconButton][data-size=xs] tui-svg,[tuiButton][data-size=xs] tui-icon,[tuiIconButton][data-size=xs] tui-icon,[tuiButton][data-size=xs]:before,[tuiIconButton][data-size=xs]:before{font-size:1rem}[tuiButton][data-size=s],[tuiIconButton][data-size=s]{--t-size: var(--tui-height-s);--t-radius: var(--tui-radius-s);--t-gap: .125rem;--t-padding: 0 .625rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=s] tui-svg,[tuiIconButton][data-size=s] tui-svg,[tuiButton][data-size=s] tui-icon,[tuiIconButton][data-size=s] tui-icon,[tuiButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before,[tuiIconButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before{font-size:1rem}[tuiButton][data-size=m],[tuiIconButton][data-size=m]{--t-size: var(--tui-height-m);--t-radius: var(--tui-radius-m);--t-gap: .125rem;--t-padding: 0 1rem;--t-margin: -.375rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=m]:after,[tuiIconButton][data-size=m]:after{margin-inline-end:-.125rem}[tuiButton]._loading,[tuiIconButton]._loading{--tui-disabled-opacity: 1;-webkit-text-fill-color:transparent}[tuiButton]._loading>*,[tuiIconButton]._loading>*,[tuiButton]._loading:before,[tuiIconButton]._loading:before,[tuiButton]._loading:after,[tuiIconButton]._loading:after{opacity:0}[tuiButton]._loading>.t-loader,[tuiIconButton]._loading>.t-loader{opacity:1}[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{font-size:1rem}[tuiButton][tuiButtonVertical],[tuiIconButton][tuiButtonVertical]{--t-margin: 0rem !important;--t-line-height: 1rem;flex-direction:column;flex-shrink:1;block-size:auto;padding:.75rem;gap:.375rem;min-inline-size:5rem;white-space:pre-line;font:var(--tui-font-text-ui-s)}[tuiButton][tuiButtonVertical]>*,[tuiIconButton][tuiButtonVertical]>*{max-block-size:calc(var(--t-line-height) * 2)}[tuiIconButton]{gap:0;inline-size:var(--t-size);font-size:0!important;padding:0}[tuiIconButton][data-size=l]:after{margin:0}[tuiIconButton][tuiIconButton][style*=\"--t-icon-start:\"]:after{display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
16
+ class Styles {
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-button" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiButton],[tuiIconButton]{--t-size: var(--tui-height-l);--t-radius: var(--tui-radius-l);--t-gap: .25rem;--t-padding: 0 1.25rem;--t-margin: -.25rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));block-size:var(--t-size);justify-content:center;border-radius:var(--t-radius);padding:var(--t-padding);-webkit-user-select:none;user-select:none;cursor:pointer;font:var(--tui-font-text-m);font-weight:700}[tuiButton]>img,[tuiIconButton]>img,[tuiButton]>tui-icon,[tuiIconButton]>tui-icon,[tuiButton]>[tuiAvatar],[tuiIconButton]>[tuiAvatar],[tuiButton]>tui-badge,[tuiIconButton]>tui-badge,[tuiButton]>[tuiBadge],[tuiIconButton]>[tuiBadge],[tuiButton]>[tuiRadio],[tuiIconButton]>[tuiRadio],[tuiButton]>[tuiSwitch],[tuiIconButton]>[tuiSwitch],[tuiButton]>[tuiCheckbox],[tuiIconButton]>[tuiCheckbox],[tuiButton][tuiIcons]:before,[tuiIconButton][tuiIcons]:before,[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{margin:var(--t-margin)}[tuiButton]>.t-loader,[tuiIconButton]>.t-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[tuiButton]>.t-loader .t-text,[tuiIconButton]>.t-loader .t-text{position:absolute}[tuiButton][data-size=xs],[tuiIconButton][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: var(--tui-radius-xs);--t-gap: .125rem;--t-padding: 0 .375rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=xs] tui-icon,[tuiIconButton][data-size=xs] tui-icon,[tuiButton][data-size=xs]:before,[tuiIconButton][data-size=xs]:before{font-size:1rem}[tuiButton][data-size=s],[tuiIconButton][data-size=s]{--t-size: var(--tui-height-s);--t-radius: var(--tui-radius-s);--t-gap: .125rem;--t-padding: 0 .625rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=s] tui-icon,[tuiIconButton][data-size=s] tui-icon,[tuiButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before,[tuiIconButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before{font-size:1rem}[tuiButton][data-size=m],[tuiIconButton][data-size=m]{--t-size: var(--tui-height-m);--t-radius: var(--tui-radius-m);--t-gap: .125rem;--t-padding: 0 1rem;--t-margin: -.375rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=m]:after,[tuiIconButton][data-size=m]:after{margin-inline-end:-.125rem}[tuiButton]._loading,[tuiIconButton]._loading{--tui-disabled-opacity: 1;-webkit-text-fill-color:transparent}[tuiButton]._loading>*,[tuiIconButton]._loading>*,[tuiButton]._loading:before,[tuiIconButton]._loading:before,[tuiButton]._loading:after,[tuiIconButton]._loading:after{opacity:0}[tuiButton]._loading>.t-loader,[tuiIconButton]._loading>.t-loader{opacity:1}[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{font-size:1rem}[tuiButton][tuiButtonVertical],[tuiIconButton][tuiButtonVertical]{--t-margin: 0rem !important;--t-line-height: 1rem;flex-direction:column;flex-shrink:1;block-size:auto;padding:.75rem;gap:.375rem;min-inline-size:5rem;white-space:pre-line;font:var(--tui-font-text-ui-s)}[tuiButton][tuiButtonVertical]>*,[tuiIconButton][tuiButtonVertical]>*{max-block-size:calc(var(--t-line-height) * 2)}[tuiIconButton]{gap:0;inline-size:var(--t-size);font-size:0!important;padding:0}[tuiIconButton][data-size=l]:after{margin:0}[tuiIconButton][tuiIconButton][style*=\"--t-icon-start:\"]:after{display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiButtonStyles, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, decorators: [{
21
21
  type: Component,
22
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
23
- class: 'tui-button',
24
- }, styles: ["[tuiButton],[tuiIconButton]{--t-size: var(--tui-height-l);--t-radius: var(--tui-radius-l);--t-gap: .25rem;--t-padding: 0 1.25rem;--t-margin: -.25rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));block-size:var(--t-size);justify-content:center;border-radius:var(--t-radius);padding:var(--t-padding);-webkit-user-select:none;user-select:none;cursor:pointer;font:var(--tui-font-text-m);font-weight:700}[tuiButton]>img,[tuiIconButton]>img,[tuiButton]>tui-svg,[tuiIconButton]>tui-svg,[tuiButton]>tui-icon,[tuiIconButton]>tui-icon,[tuiButton]>tui-avatar,[tuiIconButton]>tui-avatar,[tuiButton]>tui-badge,[tuiIconButton]>tui-badge,[tuiButton]>[tuiBadge],[tuiIconButton]>[tuiBadge],[tuiButton]>[tuiRadio],[tuiIconButton]>[tuiRadio],[tuiButton]>[tuiSwitch],[tuiIconButton]>[tuiSwitch],[tuiButton]>[tuiCheckbox],[tuiIconButton]>[tuiCheckbox],[tuiButton][tuiIcons]:before,[tuiIconButton][tuiIcons]:before,[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{margin:var(--t-margin)}[tuiButton]>.t-loader,[tuiIconButton]>.t-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[tuiButton]>.t-loader .t-text,[tuiIconButton]>.t-loader .t-text{position:absolute}[tuiButton][data-size=xs],[tuiIconButton][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: var(--tui-radius-xs);--t-gap: .125rem;--t-padding: 0 .375rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=xs] tui-svg,[tuiIconButton][data-size=xs] tui-svg,[tuiButton][data-size=xs] tui-icon,[tuiIconButton][data-size=xs] tui-icon,[tuiButton][data-size=xs]:before,[tuiIconButton][data-size=xs]:before{font-size:1rem}[tuiButton][data-size=s],[tuiIconButton][data-size=s]{--t-size: var(--tui-height-s);--t-radius: var(--tui-radius-s);--t-gap: .125rem;--t-padding: 0 .625rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=s] tui-svg,[tuiIconButton][data-size=s] tui-svg,[tuiButton][data-size=s] tui-icon,[tuiIconButton][data-size=s] tui-icon,[tuiButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before,[tuiIconButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before{font-size:1rem}[tuiButton][data-size=m],[tuiIconButton][data-size=m]{--t-size: var(--tui-height-m);--t-radius: var(--tui-radius-m);--t-gap: .125rem;--t-padding: 0 1rem;--t-margin: -.375rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=m]:after,[tuiIconButton][data-size=m]:after{margin-inline-end:-.125rem}[tuiButton]._loading,[tuiIconButton]._loading{--tui-disabled-opacity: 1;-webkit-text-fill-color:transparent}[tuiButton]._loading>*,[tuiIconButton]._loading>*,[tuiButton]._loading:before,[tuiIconButton]._loading:before,[tuiButton]._loading:after,[tuiIconButton]._loading:after{opacity:0}[tuiButton]._loading>.t-loader,[tuiIconButton]._loading>.t-loader{opacity:1}[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{font-size:1rem}[tuiButton][tuiButtonVertical],[tuiIconButton][tuiButtonVertical]{--t-margin: 0rem !important;--t-line-height: 1rem;flex-direction:column;flex-shrink:1;block-size:auto;padding:.75rem;gap:.375rem;min-inline-size:5rem;white-space:pre-line;font:var(--tui-font-text-ui-s)}[tuiButton][tuiButtonVertical]>*,[tuiIconButton][tuiButtonVertical]>*{max-block-size:calc(var(--t-line-height) * 2)}[tuiIconButton]{gap:0;inline-size:var(--t-size);font-size:0!important;padding:0}[tuiIconButton][data-size=l]:after{margin:0}[tuiIconButton][tuiIconButton][style*=\"--t-icon-start:\"]:after{display:none}\n"] }]
22
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-button' }, styles: ["[tuiButton],[tuiIconButton]{--t-size: var(--tui-height-l);--t-radius: var(--tui-radius-l);--t-gap: .25rem;--t-padding: 0 1.25rem;--t-margin: -.25rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-inline-size:100%;gap:calc(var(--t-gap, 0rem) - 2 * var(--t-margin, 0rem));block-size:var(--t-size);justify-content:center;border-radius:var(--t-radius);padding:var(--t-padding);-webkit-user-select:none;user-select:none;cursor:pointer;font:var(--tui-font-text-m);font-weight:700}[tuiButton]>img,[tuiIconButton]>img,[tuiButton]>tui-icon,[tuiIconButton]>tui-icon,[tuiButton]>[tuiAvatar],[tuiIconButton]>[tuiAvatar],[tuiButton]>tui-badge,[tuiIconButton]>tui-badge,[tuiButton]>[tuiBadge],[tuiIconButton]>[tuiBadge],[tuiButton]>[tuiRadio],[tuiIconButton]>[tuiRadio],[tuiButton]>[tuiSwitch],[tuiIconButton]>[tuiSwitch],[tuiButton]>[tuiCheckbox],[tuiIconButton]>[tuiCheckbox],[tuiButton][tuiIcons]:before,[tuiIconButton][tuiIcons]:before,[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{margin:var(--t-margin)}[tuiButton]>.t-loader,[tuiIconButton]>.t-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[tuiButton]>.t-loader .t-text,[tuiIconButton]>.t-loader .t-text{position:absolute}[tuiButton][data-size=xs],[tuiIconButton][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: var(--tui-radius-xs);--t-gap: .125rem;--t-padding: 0 .375rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=xs] tui-icon,[tuiIconButton][data-size=xs] tui-icon,[tuiButton][data-size=xs]:before,[tuiIconButton][data-size=xs]:before{font-size:1rem}[tuiButton][data-size=s],[tuiIconButton][data-size=s]{--t-size: var(--tui-height-s);--t-radius: var(--tui-radius-s);--t-gap: .125rem;--t-padding: 0 .625rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=s] tui-icon,[tuiIconButton][data-size=s] tui-icon,[tuiButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before,[tuiIconButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before{font-size:1rem}[tuiButton][data-size=m],[tuiIconButton][data-size=m]{--t-size: var(--tui-height-m);--t-radius: var(--tui-radius-m);--t-gap: .125rem;--t-padding: 0 1rem;--t-margin: -.375rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=m]:after,[tuiIconButton][data-size=m]:after{margin-inline-end:-.125rem}[tuiButton]._loading,[tuiIconButton]._loading{--tui-disabled-opacity: 1;-webkit-text-fill-color:transparent}[tuiButton]._loading>*,[tuiIconButton]._loading>*,[tuiButton]._loading:before,[tuiIconButton]._loading:before,[tuiButton]._loading:after,[tuiIconButton]._loading:after{opacity:0}[tuiButton]._loading>.t-loader,[tuiIconButton]._loading>.t-loader{opacity:1}[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{font-size:1rem}[tuiButton][tuiButtonVertical],[tuiIconButton][tuiButtonVertical]{--t-margin: 0rem !important;--t-line-height: 1rem;flex-direction:column;flex-shrink:1;block-size:auto;padding:.75rem;gap:.375rem;min-inline-size:5rem;white-space:pre-line;font:var(--tui-font-text-ui-s)}[tuiButton][tuiButtonVertical]>*,[tuiIconButton][tuiButtonVertical]>*{max-block-size:calc(var(--t-line-height) * 2)}[tuiIconButton]{gap:0;inline-size:var(--t-size);font-size:0!important;padding:0}[tuiIconButton][data-size=l]:after{margin:0}[tuiIconButton][tuiIconButton][style*=\"--t-icon-start:\"]:after{display:none}\n"] }]
25
23
  }] });
26
24
  class TuiButton {
27
25
  constructor() {
28
- this.options = inject(TUI_BUTTON_OPTIONS);
29
- this.nothing = tuiWithStyles(TuiButtonStyles);
30
- this.size = this.options.size;
26
+ this.nothing = tuiWithStyles(Styles);
27
+ this.size = input(inject(TUI_BUTTON_OPTIONS).size);
31
28
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiButton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
33
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiButton, isStandalone: true, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: { size: "size" }, host: { properties: { "attr.data-size": "size" } }, providers: [tuiAppearanceOptionsProvider(TUI_BUTTON_OPTIONS)], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiWithIcons }], ngImport: i0 }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiButton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
30
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiButton, isStandalone: true, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-size": "size()" } }, providers: [tuiAppearanceOptionsProvider(TUI_BUTTON_OPTIONS)], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiWithIcons }], ngImport: i0 }); }
34
31
  }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiButton, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiButton, decorators: [{
36
33
  type: Directive,
37
34
  args: [{
38
- standalone: true,
39
35
  selector: 'a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]',
40
36
  providers: [tuiAppearanceOptionsProvider(TUI_BUTTON_OPTIONS)],
41
37
  hostDirectives: [TuiWithAppearance, TuiWithIcons],
42
- host: {
43
- '[attr.data-size]': 'size',
44
- },
38
+ host: { '[attr.data-size]': 'size()' },
45
39
  }]
46
- }], propDecorators: { size: [{
47
- type: Input
48
- }] } });
40
+ }] });
49
41
 
50
42
  /**
51
43
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-button.mjs","sources":["../../../projects/core/components/button/button.options.ts","../../../projects/core/components/button/button.directive.ts","../../../projects/core/components/button/taiga-ui-core-components-button.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core/types';\n\nexport interface TuiButtonOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeXL | TuiSizeXS;\n}\n\nexport const TUI_BUTTON_DEFAULT_OPTIONS: TuiButtonOptions = {\n appearance: 'primary',\n size: 'l',\n};\n\nexport const [TUI_BUTTON_OPTIONS, tuiButtonOptionsProvider] = tuiCreateOptions(\n TUI_BUTTON_DEFAULT_OPTIONS,\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\n\nimport {TUI_BUTTON_OPTIONS} from './button.options';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/core/styles/components/button.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-button',\n },\n})\nclass TuiButtonStyles {}\n\n@Directive({\n standalone: true,\n selector: 'a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]',\n providers: [tuiAppearanceOptionsProvider(TUI_BUTTON_OPTIONS)],\n hostDirectives: [TuiWithAppearance, TuiWithIcons],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiButton {\n private readonly options = inject(TUI_BUTTON_OPTIONS);\n\n protected readonly nothing = tuiWithStyles(TuiButtonStyles);\n\n @Input()\n public size = this.options.size;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAQa,MAAA,0BAA0B,GAAqB;AACxD,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,IAAI,EAAE,GAAG;EACX;AAEK,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,GAAG,gBAAgB,CAC1E,0BAA0B;;ACG9B,MAUM,eAAe,CAAA;+GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA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AA,CAAA,EAAA;;4FAMpD,SAAS,EAAA,UAAA,EAAA,CAAA;kBATrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,uEAAuE;AACjF,oBAAA,SAAS,EAAE,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC;AAC7D,oBAAA,cAAc,EAAE,CAAC,iBAAiB,EAAE,YAAY,CAAC;AACjD,oBAAA,IAAI,EAAE;AACF,wBAAA,kBAAkB,EAAE,MAAM;AAC7B,qBAAA;AACJ,iBAAA,CAAA;8BAOU,IAAI,EAAA,CAAA;sBADV,KAAK;;;AC3CV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-button.mjs","sources":["../../../projects/core/components/button/button.options.ts","../../../projects/core/components/button/button.directive.ts","../../../projects/core/components/button/taiga-ui-core-components-button.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core/types';\n\nexport interface TuiButtonOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeXL | TuiSizeXS;\n}\n\nexport const TUI_BUTTON_DEFAULT_OPTIONS: TuiButtonOptions = {\n appearance: 'primary',\n size: 'l',\n};\n\nexport const [TUI_BUTTON_OPTIONS, tuiButtonOptionsProvider] = tuiCreateOptions(\n TUI_BUTTON_DEFAULT_OPTIONS,\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\n\nimport {TUI_BUTTON_OPTIONS} from './button.options';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/core/styles/components/button.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-button'},\n})\nclass Styles {}\n\n@Directive({\n selector: 'a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]',\n providers: [tuiAppearanceOptionsProvider(TUI_BUTTON_OPTIONS)],\n hostDirectives: [TuiWithAppearance, TuiWithIcons],\n host: {'[attr.data-size]': 'size()'},\n})\nexport class TuiButton {\n protected readonly nothing = tuiWithStyles(Styles);\n\n public readonly size = input(inject(TUI_BUTTON_OPTIONS).size);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAQa,MAAA,0BAA0B,GAAqB;AACxD,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,IAAI,EAAE,GAAG;;AAGN,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,GAAG,gBAAgB,CAC1E,0BAA0B;;ACG9B,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,gHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+lHAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,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