@taiga-ui/core 2.39.0 → 2.41.1

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 (396) hide show
  1. package/bundles/{taiga-ui-core-modules-notifications.umd.js → taiga-ui-core-components-alert.umd.js} +99 -134
  2. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -0
  3. package/bundles/taiga-ui-core-components-alert.umd.min.js +16 -0
  4. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -0
  5. package/bundles/taiga-ui-core-components-button.umd.js +1 -1
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.js +2 -2
  10. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  12. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -1
  14. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  16. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  18. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  20. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-expand.umd.js +1 -1
  22. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  24. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-group.umd.js +1 -0
  26. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-group.umd.min.js +1 -1
  28. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-hints-host.umd.js +18 -3
  30. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +2 -2
  32. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +1 -1
  34. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  36. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  38. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  40. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +1 -1
  42. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  44. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +1 -1
  46. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +1 -1
  48. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +4 -4
  50. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  52. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-root.umd.js +14 -18
  54. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-root.umd.min.js +2 -2
  56. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +1 -1
  58. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-core-components.umd.js +12 -4
  62. package/bundles/taiga-ui-core-components.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  64. package/bundles/taiga-ui-core-constants.umd.js +3 -1
  65. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  67. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +1 -1
  71. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js +1 -1
  73. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  75. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-core-pipes-format-number.umd.js +4 -2
  77. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  78. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js +1 -1
  79. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  81. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  83. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-core-utils-format.umd.js +9 -8
  85. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  86. package/bundles/taiga-ui-core-utils-format.umd.min.js +1 -1
  87. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-core-utils-mask.umd.js +3 -2
  89. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  90. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  91. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-core.umd.js +4 -12
  93. package/bundles/taiga-ui-core.umd.js.map +1 -1
  94. package/bundles/taiga-ui-core.umd.min.js +1 -1
  95. package/components/alert/alert.component.d.ts +35 -0
  96. package/components/alert/alert.module.d.ts +5 -0
  97. package/components/alert/alert.service.d.ts +18 -0
  98. package/components/alert/index.d.ts +3 -0
  99. package/components/alert/package.json +13 -0
  100. package/{modules/notifications/taiga-ui-core-modules-notifications.d.ts → components/alert/taiga-ui-core-components-alert.d.ts} +0 -0
  101. package/components/alert/taiga-ui-core-components-alert.metadata.json +1 -0
  102. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  103. package/components/data-list/data-list.component.d.ts +1 -1
  104. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  105. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  106. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  107. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  108. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  109. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  110. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  111. package/components/index.d.ts +1 -0
  112. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  113. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  114. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  115. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  116. package/components/root/root.component.d.ts +3 -4
  117. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  118. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  119. package/components/taiga-ui-core-components.metadata.json +1 -1
  120. package/constants/decimal-symbols.d.ts +1 -1
  121. package/constants/regexp.d.ts +1 -0
  122. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  123. package/constants/version.d.ts +1 -1
  124. package/directives/mask-accessor/mask-accessor.directive.d.ts +1 -1
  125. package/esm2015/components/alert/alert.component.js +89 -0
  126. package/esm2015/components/alert/alert.module.js +34 -0
  127. package/esm2015/components/alert/alert.service.js +49 -0
  128. package/esm2015/components/alert/index.js +4 -0
  129. package/esm2015/components/alert/taiga-ui-core-components-alert.js +5 -0
  130. package/esm2015/components/button/button.component.js +2 -2
  131. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +1 -1
  132. package/esm2015/components/data-list/data-list.component.js +2 -2
  133. package/esm2015/components/data-list/option/option.component.js +2 -2
  134. package/esm2015/components/dialog/dialog.component.js +2 -2
  135. package/esm2015/components/dropdown-box/dropdown-box.component.js +2 -2
  136. package/esm2015/components/expand/expand.component.js +2 -2
  137. package/esm2015/components/group/group.module.js +2 -1
  138. package/esm2015/components/hints-host/hint-box/hint-box.component.js +18 -3
  139. package/esm2015/components/hints-host/hints-host.component.js +2 -2
  140. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  141. package/esm2015/components/index.js +2 -1
  142. package/esm2015/components/label/label.component.js +2 -2
  143. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +2 -2
  144. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  145. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +3 -3
  146. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +1 -1
  147. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +2 -2
  148. package/esm2015/components/root/root.component.js +11 -17
  149. package/esm2015/components/root/root.module.js +3 -2
  150. package/esm2015/components/scroll-controls/scroll-controls.component.js +2 -2
  151. package/esm2015/constants/decimal-symbols.js +1 -1
  152. package/esm2015/constants/regexp.js +2 -1
  153. package/esm2015/constants/version.js +2 -2
  154. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +1 -1
  155. package/esm2015/index.js +1 -2
  156. package/esm2015/interfaces/alert-options.js +1 -0
  157. package/esm2015/interfaces/data-list-accessor.js +1 -1
  158. package/esm2015/interfaces/index.js +1 -1
  159. package/esm2015/interfaces/notification-options.js +1 -1
  160. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  161. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  162. package/esm2015/pipes/format-number/format-number.pipe.js +4 -3
  163. package/esm2015/services/hint.service.js +1 -1
  164. package/esm2015/tokens/notification-options.js +1 -1
  165. package/esm2015/types/direction.js +1 -1
  166. package/esm2015/utils/format/format-number.js +10 -9
  167. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +3 -3
  168. package/esm2015/utils/mask/create-number-mask.js +1 -1
  169. package/esm5/components/alert/alert.component.js +96 -0
  170. package/esm5/components/alert/alert.module.js +40 -0
  171. package/esm5/components/alert/alert.service.js +54 -0
  172. package/esm5/components/alert/index.js +4 -0
  173. package/esm5/components/alert/taiga-ui-core-components-alert.js +5 -0
  174. package/esm5/components/button/button.component.js +2 -2
  175. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +1 -1
  176. package/esm5/components/data-list/data-list.component.js +2 -2
  177. package/esm5/components/data-list/option/option.component.js +2 -2
  178. package/esm5/components/dialog/dialog.component.js +2 -2
  179. package/esm5/components/dropdown-box/dropdown-box.component.js +2 -2
  180. package/esm5/components/expand/expand.component.js +2 -2
  181. package/esm5/components/group/group.module.js +2 -1
  182. package/esm5/components/hints-host/hint-box/hint-box.component.js +18 -3
  183. package/esm5/components/hints-host/hints-host.component.js +2 -2
  184. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  185. package/esm5/components/index.js +2 -1
  186. package/esm5/components/label/label.component.js +2 -2
  187. package/esm5/components/primitive-calendar/primitive-calendar.component.js +2 -2
  188. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  189. package/esm5/components/primitive-textfield/primitive-textfield.component.js +3 -3
  190. package/esm5/components/primitive-textfield/textfield/textfield.component.js +1 -1
  191. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +2 -2
  192. package/esm5/components/root/root.component.js +11 -17
  193. package/esm5/components/root/root.module.js +3 -2
  194. package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
  195. package/esm5/constants/decimal-symbols.js +1 -1
  196. package/esm5/constants/regexp.js +2 -1
  197. package/esm5/constants/version.js +2 -2
  198. package/esm5/directives/mask-accessor/mask-accessor.directive.js +1 -1
  199. package/esm5/index.js +1 -2
  200. package/esm5/interfaces/alert-options.js +1 -0
  201. package/esm5/interfaces/data-list-accessor.js +1 -1
  202. package/esm5/interfaces/index.js +1 -1
  203. package/esm5/interfaces/notification-options.js +1 -1
  204. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  205. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  206. package/esm5/pipes/format-number/format-number.pipe.js +5 -3
  207. package/esm5/services/hint.service.js +1 -1
  208. package/esm5/tokens/notification-options.js +1 -1
  209. package/esm5/types/direction.js +1 -1
  210. package/esm5/utils/format/format-number.js +10 -9
  211. package/esm5/utils/mask/create-auto-corrected-money-pipe.js +4 -3
  212. package/esm5/utils/mask/create-number-mask.js +1 -1
  213. package/fesm2015/taiga-ui-core-components-alert.js +160 -0
  214. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -0
  215. package/fesm2015/taiga-ui-core-components-button.js +1 -1
  216. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  217. package/fesm2015/taiga-ui-core-components-data-list.js +2 -2
  218. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  219. package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
  220. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  221. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  222. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  223. package/fesm2015/taiga-ui-core-components-expand.js +1 -1
  224. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  225. package/fesm2015/taiga-ui-core-components-group.js +1 -0
  226. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  227. package/fesm2015/taiga-ui-core-components-hints-host.js +18 -3
  228. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  229. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -1
  230. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  231. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  232. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  233. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +1 -1
  234. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  235. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +1 -1
  236. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  237. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +4 -4
  238. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  239. package/fesm2015/taiga-ui-core-components-root.js +12 -17
  240. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  241. package/fesm2015/taiga-ui-core-components-scroll-controls.js +1 -1
  242. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  243. package/fesm2015/taiga-ui-core-components.js +1 -0
  244. package/fesm2015/taiga-ui-core-components.js.map +1 -1
  245. package/fesm2015/taiga-ui-core-constants.js +3 -2
  246. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  247. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  248. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  249. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  250. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  251. package/fesm2015/taiga-ui-core-pipes-format-number.js +3 -2
  252. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  253. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  254. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  255. package/fesm2015/taiga-ui-core-utils-format.js +9 -8
  256. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  257. package/fesm2015/taiga-ui-core-utils-mask.js +2 -2
  258. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  259. package/fesm2015/taiga-ui-core.js +0 -1
  260. package/fesm2015/taiga-ui-core.js.map +1 -1
  261. package/fesm5/taiga-ui-core-components-alert.js +178 -0
  262. package/fesm5/taiga-ui-core-components-alert.js.map +1 -0
  263. package/fesm5/taiga-ui-core-components-button.js +1 -1
  264. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  265. package/fesm5/taiga-ui-core-components-data-list.js +2 -2
  266. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  267. package/fesm5/taiga-ui-core-components-dialog.js +1 -1
  268. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  269. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  270. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  271. package/fesm5/taiga-ui-core-components-expand.js +1 -1
  272. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  273. package/fesm5/taiga-ui-core-components-group.js +1 -0
  274. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  275. package/fesm5/taiga-ui-core-components-hints-host.js +18 -3
  276. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  277. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +1 -1
  278. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  279. package/fesm5/taiga-ui-core-components-label.js +1 -1
  280. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  281. package/fesm5/taiga-ui-core-components-primitive-calendar.js +1 -1
  282. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  283. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +1 -1
  284. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  285. package/fesm5/taiga-ui-core-components-primitive-textfield.js +4 -4
  286. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  287. package/fesm5/taiga-ui-core-components-root.js +12 -17
  288. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  289. package/fesm5/taiga-ui-core-components-scroll-controls.js +1 -1
  290. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  291. package/fesm5/taiga-ui-core-components.js +1 -0
  292. package/fesm5/taiga-ui-core-components.js.map +1 -1
  293. package/fesm5/taiga-ui-core-constants.js +3 -2
  294. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  295. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  296. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  297. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  298. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  299. package/fesm5/taiga-ui-core-pipes-format-number.js +4 -2
  300. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  301. package/fesm5/taiga-ui-core-services.js.map +1 -1
  302. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  303. package/fesm5/taiga-ui-core-utils-format.js +9 -8
  304. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  305. package/fesm5/taiga-ui-core-utils-mask.js +3 -2
  306. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  307. package/fesm5/taiga-ui-core.js +0 -1
  308. package/fesm5/taiga-ui-core.js.map +1 -1
  309. package/index.d.ts +0 -1
  310. package/interfaces/alert-options.d.ts +12 -0
  311. package/interfaces/data-list-accessor.d.ts +1 -1
  312. package/interfaces/index.d.ts +1 -0
  313. package/interfaces/notification-options.d.ts +3 -0
  314. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  315. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  316. package/package.json +4 -4
  317. package/pipes/calendar-sheet/calendar-sheet.pipe.d.ts +1 -1
  318. package/pipes/format-number/format-number.pipe.d.ts +2 -1
  319. package/services/hint.service.d.ts +1 -1
  320. package/styles/markup/tui-group.less +1 -1
  321. package/styles/mixins/mixins.less +1 -0
  322. package/styles/mixins/slider.less +17 -0
  323. package/styles/taiga-ui-global-old.less +18 -18
  324. package/styles/taiga-ui-global.less +18 -18
  325. package/styles/taiga-ui-local-old.less +5 -5
  326. package/styles/taiga-ui-local.less +7 -7
  327. package/styles/taiga-ui-local.scss +7 -7
  328. package/styles/taiga-ui-theme.less +4 -4
  329. package/styles/theme/dialog.less +1 -1
  330. package/styles/theme/wrapper/accent.less +1 -1
  331. package/styles/theme/wrapper/base.less +1 -1
  332. package/styles/theme/wrapper/icon.less +1 -1
  333. package/styles/theme/wrapper/none.less +6 -0
  334. package/styles/theme/wrapper/outline.less +1 -1
  335. package/styles/theme/wrapper/primary.less +1 -1
  336. package/styles/theme/wrapper/secondary.less +1 -1
  337. package/styles/theme/wrapper/table.less +1 -1
  338. package/styles/theme/wrapper/textfield.less +1 -1
  339. package/styles/theme/wrapper/whiteblock.less +2 -2
  340. package/styles/theme/wrapper.less +10 -10
  341. package/taiga-ui-core.metadata.json +1 -1
  342. package/tokens/notification-options.d.ts +2 -10
  343. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  344. package/types/direction.d.ts +1 -1
  345. package/utils/mask/create-auto-corrected-money-pipe.d.ts +1 -1
  346. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +0 -1
  347. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +0 -16
  348. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +0 -1
  349. package/bundles/taiga-ui-core-modules.umd.js +0 -23
  350. package/bundles/taiga-ui-core-modules.umd.js.map +0 -1
  351. package/bundles/taiga-ui-core-modules.umd.min.js +0 -2
  352. package/bundles/taiga-ui-core-modules.umd.min.js.map +0 -1
  353. package/esm2015/modules/index.js +0 -2
  354. package/esm2015/modules/notifications/index.js +0 -7
  355. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +0 -22
  356. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +0 -74
  357. package/esm2015/modules/notifications/notification-alert/notification-alert.module.js +0 -17
  358. package/esm2015/modules/notifications/notification-content-context.js +0 -1
  359. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +0 -35
  360. package/esm2015/modules/notifications/notifications.module.js +0 -26
  361. package/esm2015/modules/notifications/notifications.service.js +0 -38
  362. package/esm2015/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  363. package/esm2015/modules/taiga-ui-core-modules.js +0 -5
  364. package/esm5/modules/index.js +0 -2
  365. package/esm5/modules/notifications/index.js +0 -7
  366. package/esm5/modules/notifications/notification-alert/Notification-alert.js +0 -24
  367. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +0 -81
  368. package/esm5/modules/notifications/notification-alert/notification-alert.module.js +0 -20
  369. package/esm5/modules/notifications/notification-content-context.js +0 -1
  370. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +0 -36
  371. package/esm5/modules/notifications/notifications.module.js +0 -29
  372. package/esm5/modules/notifications/notifications.service.js +0 -41
  373. package/esm5/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  374. package/esm5/modules/taiga-ui-core-modules.js +0 -5
  375. package/fesm2015/taiga-ui-core-modules-notifications.js +0 -192
  376. package/fesm2015/taiga-ui-core-modules-notifications.js.map +0 -1
  377. package/fesm2015/taiga-ui-core-modules.js +0 -6
  378. package/fesm2015/taiga-ui-core-modules.js.map +0 -1
  379. package/fesm5/taiga-ui-core-modules-notifications.js +0 -210
  380. package/fesm5/taiga-ui-core-modules-notifications.js.map +0 -1
  381. package/fesm5/taiga-ui-core-modules.js +0 -6
  382. package/fesm5/taiga-ui-core-modules.js.map +0 -1
  383. package/modules/index.d.ts +0 -1
  384. package/modules/notifications/index.d.ts +0 -7
  385. package/modules/notifications/notification-alert/Notification-alert.d.ts +0 -19
  386. package/modules/notifications/notification-alert/notification-alert.component.d.ts +0 -17
  387. package/modules/notifications/notification-alert/notification-alert.module.d.ts +0 -2
  388. package/modules/notifications/notification-content-context.d.ts +0 -10
  389. package/modules/notifications/notifications-host/notifications-host.component.d.ts +0 -9
  390. package/modules/notifications/notifications.module.d.ts +0 -4
  391. package/modules/notifications/notifications.service.d.ts +0 -15
  392. package/modules/notifications/package.json +0 -13
  393. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +0 -1
  394. package/modules/package.json +0 -13
  395. package/modules/taiga-ui-core-modules.d.ts +0 -4
  396. package/modules/taiga-ui-core-modules.metadata.json +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/tokens'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@taiga-ui/core/components/notification'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/core/animations')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/core/modules/notifications', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/tokens', 'rxjs', 'rxjs/operators', '@angular/common', '@taiga-ui/core/components/notification', '@tinkoff/ng-polymorpheus', '@taiga-ui/core/animations'], factory) :
4
- (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].core = global['taiga-ui'].core || {}, global['taiga-ui'].core.modules = global['taiga-ui'].core.modules || {}, global['taiga-ui'].core.modules.notifications = {}), global.ng.core, global.cdk, global['taiga-ui'].core.tokens, global.rxjs, global.rxjs.operators, global.ng.common, global['taiga-ui'].core.components.notification, global.ngPolymorpheus, global['taiga-ui'].core.animations));
5
- }(this, (function (exports, core, cdk, tokens, rxjs, operators, common, notification, ngPolymorpheus, animations) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@taiga-ui/core/components/notification'), require('@taiga-ui/cdk/services')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/core/components/alert', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/animations', '@taiga-ui/core/tokens', '@tinkoff/ng-polymorpheus', 'rxjs', 'rxjs/operators', '@angular/common', '@taiga-ui/core/components/notification', '@taiga-ui/cdk/services'], factory) :
4
+ (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].core = global['taiga-ui'].core || {}, global['taiga-ui'].core.components = global['taiga-ui'].core.components || {}, global['taiga-ui'].core.components.alert = {}), global.ng.core, global.cdk, global['taiga-ui'].core.animations, global['taiga-ui'].core.tokens, global.ngPolymorpheus, global.rxjs, global.rxjs.operators, global.ng.common, global['taiga-ui'].core.components.notification, global.services));
5
+ }(this, (function (exports, core, cdk, animations, tokens, ngPolymorpheus, rxjs, operators, common, notification, services) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -223,208 +223,173 @@
223
223
  return value;
224
224
  }
225
225
 
226
- var NotificationAlert = /** @class */ (function () {
227
- function NotificationAlert(observer, content, options) {
228
- this.observer = observer;
229
- this.content = content;
230
- this.options = options;
231
- this.status = this.options.status;
232
- this.hasIcon = this.options.hasIcon;
233
- this.hasCloseButton = this.options.hasCloseButton;
234
- this.label = this.options.label;
235
- this.autoClose =
236
- typeof this.options.autoClose === 'function'
237
- ? this.options.autoClose(this.options.status)
238
- : this.options.autoClose;
239
- if (options && this.withData(options)) {
240
- this.data = options.data;
241
- }
242
- }
243
- NotificationAlert.prototype.withData = function (options) {
244
- return 'data' in options;
245
- };
246
- return NotificationAlert;
247
- }());
248
-
249
- var TuiNotificationAlertComponent = /** @class */ (function () {
250
- function TuiNotificationAlertComponent(elementRef, destroy$, options) {
226
+ // TODO: Refactor according to new context by 3.0 and get rid of $any in template
227
+ var TuiAlertComponent = /** @class */ (function () {
228
+ function TuiAlertComponent(elementRef, destroy$, options, animationOptions, item) {
251
229
  this.elementRef = elementRef;
252
230
  this.destroy$ = destroy$;
253
231
  this.options = options;
232
+ this.animationOptions = animationOptions;
233
+ this.item = item;
234
+ this.autoClose = typeof this.item.autoClose === 'function'
235
+ ? this.item.autoClose(this.item.status)
236
+ : this.item.autoClose;
237
+ this.animation = __assign({ value: '' }, this.animationOptions);
254
238
  }
255
- TuiNotificationAlertComponent.prototype.ngOnInit = function () {
239
+ TuiAlertComponent.prototype.ngOnInit = function () {
256
240
  this.initAutoClose();
257
241
  };
258
- Object.defineProperty(TuiNotificationAlertComponent.prototype, "context", {
242
+ Object.defineProperty(TuiAlertComponent.prototype, "context", {
259
243
  get: function () {
260
244
  return this.calculateContext(this.item);
261
245
  },
262
246
  enumerable: true,
263
247
  configurable: true
264
248
  });
265
- TuiNotificationAlertComponent.prototype.closeNotification = function () {
266
- this.item.observer.complete();
249
+ TuiAlertComponent.prototype.closeNotification = function () {
250
+ this.item.$implicit.complete();
267
251
  };
268
- TuiNotificationAlertComponent.prototype.calculateContext = function (_a) {
269
- var status = _a.status, data = _a.data, label = _a.label, observer = _a.observer;
252
+ TuiAlertComponent.prototype.calculateContext = function (_a) {
253
+ var $implicit = _a.$implicit, status = _a.status, data = _a.data, label = _a.label;
270
254
  return {
271
255
  $implicit: status,
272
256
  data: data,
273
257
  label: label,
274
258
  closeHook: function () {
275
- observer.complete();
259
+ $implicit.complete();
276
260
  },
277
261
  emitHook: function (data) {
278
- observer.next(data);
262
+ $implicit.next(data);
279
263
  },
280
264
  emitAndCloseHook: function (data) {
281
- observer.next(data);
282
- observer.complete();
265
+ $implicit.next(data);
266
+ $implicit.complete();
283
267
  },
284
268
  };
285
269
  };
286
- TuiNotificationAlertComponent.prototype.initAutoClose = function () {
270
+ TuiAlertComponent.prototype.initAutoClose = function () {
287
271
  var _this = this;
288
- if (!this.item.autoClose) {
272
+ if (!this.autoClose) {
289
273
  return;
290
274
  }
291
- rxjs.timer(cdk.isNumber(this.item.autoClose)
292
- ? this.item.autoClose
293
- : this.options.defaultAutoCloseTime)
275
+ rxjs.timer(cdk.isNumber(this.autoClose) ? this.autoClose : this.options.defaultAutoCloseTime)
294
276
  .pipe(operators.takeUntil(rxjs.fromEvent(this.elementRef.nativeElement, 'mouseenter')), operators.repeatWhen(function () { return rxjs.fromEvent(_this.elementRef.nativeElement, 'mouseleave'); }), operators.takeUntil(this.destroy$))
295
277
  .subscribe(function () { return _this.closeNotification(); });
296
278
  };
297
- TuiNotificationAlertComponent.ctorParameters = function () { return [
279
+ TuiAlertComponent.ctorParameters = function () { return [
298
280
  { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
299
281
  { type: cdk.TuiDestroyService, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
300
- { type: undefined, decorators: [{ type: core.Inject, args: [tokens.TUI_NOTIFICATION_OPTIONS,] }] }
282
+ { type: undefined, decorators: [{ type: core.Inject, args: [tokens.TUI_NOTIFICATION_OPTIONS,] }] },
283
+ { type: undefined, decorators: [{ type: core.Inject, args: [tokens.TUI_ANIMATION_OPTIONS,] }] },
284
+ { type: undefined, decorators: [{ type: core.Inject, args: [ngPolymorpheus.POLYMORPHEUS_CONTEXT,] }] }
301
285
  ]; };
302
286
  __decorate([
303
- core.Input()
304
- ], TuiNotificationAlertComponent.prototype, "item", void 0);
287
+ core.HostBinding('@tuiFadeIn'),
288
+ core.HostBinding('@tuiSlideInRight'),
289
+ core.HostBinding('@tuiHeightCollapse')
290
+ ], TuiAlertComponent.prototype, "animation", void 0);
305
291
  __decorate([
306
292
  cdk.tuiPure
307
- ], TuiNotificationAlertComponent.prototype, "calculateContext", null);
308
- TuiNotificationAlertComponent = __decorate([
293
+ ], TuiAlertComponent.prototype, "calculateContext", null);
294
+ TuiAlertComponent = __decorate([
309
295
  core.Component({
310
- selector: 'tui-notification-alert',
311
- template: "<tui-notification\n *ngIf=\"item.hasCloseButton; else noClose\"\n [status]=\"item.status\"\n [hasIcon]=\"item.hasIcon\"\n (close)=\"closeNotification()\"\n>\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n</tui-notification>\n<ng-template #noClose>\n <tui-notification [status]=\"item.status\" [hasIcon]=\"item.hasIcon\">\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n </tui-notification>\n</ng-template>\n",
296
+ selector: 'tui-alert',
297
+ template: "<tui-notification\n *ngIf=\"item.hasCloseButton; else noClose\"\n [status]=\"item.status\"\n [hasIcon]=\"item.hasIcon\"\n (close)=\"closeNotification()\"\n>\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"$any(item.label)\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"$any(context)\"\n ></div>\n</tui-notification>\n<ng-template #noClose>\n <tui-notification\n [status]=\"item.status\"\n [hasIcon]=\"item.hasIcon\"\n >\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"$any(item.label)\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"$any(context)\"\n ></div>\n </tui-notification>\n</ng-template>\n",
312
298
  changeDetection: core.ChangeDetectionStrategy.OnPush,
313
299
  providers: [cdk.TuiDestroyService],
314
- styles: [":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:block;border-radius:var(--tui-radius-m)}.heading{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content{color:var(--tui-text-01);word-wrap:break-word}.content:empty{display:none}"]
300
+ animations: [animations.tuiFadeIn, animations.tuiSlideInRight, animations.tuiHeightCollapse],
301
+ host: { role: 'alert' },
302
+ styles: [":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:block;border-radius:var(--tui-radius-m);width:18rem;margin:2rem 3rem 0 auto}:host-context(tui-root._mobile) :host{margin:1rem 1rem 0 auto}:host:not(:first-child){margin-top:.75rem}@media screen and (min-width:80em){:host{width:23rem}}.heading{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content{color:var(--tui-text-01);word-wrap:break-word}.content:empty{display:none}"]
315
303
  }),
316
304
  __param(0, core.Inject(core.ElementRef)),
317
305
  __param(1, core.Inject(cdk.TuiDestroyService)),
318
- __param(2, core.Inject(tokens.TUI_NOTIFICATION_OPTIONS))
319
- ], TuiNotificationAlertComponent);
320
- return TuiNotificationAlertComponent;
306
+ __param(2, core.Inject(tokens.TUI_NOTIFICATION_OPTIONS)),
307
+ __param(3, core.Inject(tokens.TUI_ANIMATION_OPTIONS)),
308
+ __param(4, core.Inject(ngPolymorpheus.POLYMORPHEUS_CONTEXT))
309
+ ], TuiAlertComponent);
310
+ return TuiAlertComponent;
321
311
  }());
322
312
 
323
- var TuiNotificationAlertModule = /** @class */ (function () {
324
- function TuiNotificationAlertModule() {
313
+ var TuiAlertService = /** @class */ (function (_super) {
314
+ __extends(TuiAlertService, _super);
315
+ function TuiAlertService(defaultOptions, idService) {
316
+ var _this = _super.call(this, idService) || this;
317
+ _this.defaultOptions = defaultOptions;
318
+ _this.component = new ngPolymorpheus.PolymorpheusComponent(TuiAlertComponent);
319
+ return _this;
325
320
  }
326
- TuiNotificationAlertModule = __decorate([
327
- core.NgModule({
328
- imports: [common.CommonModule, ngPolymorpheus.PolymorpheusModule, notification.TuiNotificationModule],
329
- declarations: [TuiNotificationAlertComponent],
330
- exports: [TuiNotificationAlertComponent],
331
- })
332
- ], TuiNotificationAlertModule);
333
- return TuiNotificationAlertModule;
334
- }());
335
-
336
- var NO_HOST = 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';
321
+ TuiAlertService.ctorParameters = function () { return [
322
+ { type: undefined, decorators: [{ type: core.Inject, args: [tokens.TUI_NOTIFICATION_OPTIONS,] }] },
323
+ { type: cdk.TuiIdService, decorators: [{ type: core.Inject, args: [cdk.TuiIdService,] }] }
324
+ ]; };
325
+ TuiAlertService.ɵprov = core.ɵɵdefineInjectable({ factory: function TuiAlertService_Factory() { return new TuiAlertService(core.ɵɵinject(tokens.TUI_NOTIFICATION_OPTIONS), core.ɵɵinject(services.TuiIdService)); }, token: TuiAlertService, providedIn: "root" });
326
+ TuiAlertService = __decorate([
327
+ core.Injectable({
328
+ providedIn: 'root',
329
+ }),
330
+ __param(0, core.Inject(tokens.TUI_NOTIFICATION_OPTIONS)),
331
+ __param(1, core.Inject(cdk.TuiIdService))
332
+ ], TuiAlertService);
333
+ return TuiAlertService;
334
+ }(cdk.AbstractTuiDialogService));
335
+ /** @deprecated use {@link TuiAlertService} */
337
336
  var TuiNotificationsService = /** @class */ (function () {
338
- function TuiNotificationsService(options) {
339
- this.options = options;
340
- /** @internal */
341
- this.items$ = new rxjs.BehaviorSubject([]);
337
+ function TuiNotificationsService(alert) {
338
+ this.alert = alert;
342
339
  }
343
340
  TuiNotificationsService.prototype.show = function (content, options) {
344
- var _this = this;
345
341
  if (options === void 0) { options = {}; }
346
- return new rxjs.Observable(function (observer) {
347
- cdk.tuiAssert.assert(!!_this.items$.observers.length, NO_HOST);
348
- var notification = new NotificationAlert(observer, content, __assign(__assign({}, _this.options), options));
349
- _this.items$.next(__spread(_this.items$.value, [notification]));
350
- return function () {
351
- _this.items$.next(_this.items$.value.filter(function (item) { return item !== notification; }));
352
- };
353
- });
342
+ // @ts-ignore
343
+ return this.alert.open(content, options);
354
344
  };
355
345
  TuiNotificationsService.ctorParameters = function () { return [
356
- { type: undefined, decorators: [{ type: core.Inject, args: [tokens.TUI_NOTIFICATION_OPTIONS,] }] }
346
+ { type: TuiAlertService, decorators: [{ type: core.Inject, args: [TuiAlertService,] }] }
357
347
  ]; };
358
- TuiNotificationsService.ɵprov = core.ɵɵdefineInjectable({ factory: function TuiNotificationsService_Factory() { return new TuiNotificationsService(core.ɵɵinject(tokens.TUI_NOTIFICATION_OPTIONS)); }, token: TuiNotificationsService, providedIn: "root" });
348
+ TuiNotificationsService.ɵprov = core.ɵɵdefineInjectable({ factory: function TuiNotificationsService_Factory() { return new TuiNotificationsService(core.ɵɵinject(TuiAlertService)); }, token: TuiNotificationsService, providedIn: "root" });
359
349
  TuiNotificationsService = __decorate([
360
- core.Injectable({
361
- providedIn: 'root',
362
- }),
363
- __param(0, core.Inject(tokens.TUI_NOTIFICATION_OPTIONS))
350
+ core.Injectable({ providedIn: 'root' }),
351
+ __param(0, core.Inject(TuiAlertService))
364
352
  ], TuiNotificationsService);
365
353
  return TuiNotificationsService;
366
354
  }());
367
355
 
368
- var TuiNotificationsHostComponent = /** @class */ (function () {
369
- function TuiNotificationsHostComponent(options, service) {
370
- this.options = options;
371
- this.service = service;
356
+ var TuiAlertModule = /** @class */ (function () {
357
+ function TuiAlertModule() {
372
358
  }
373
- TuiNotificationsHostComponent.prototype.getAnimation = function (value) {
374
- return __assign({ value: String(value) }, this.options);
375
- };
376
- TuiNotificationsHostComponent.ctorParameters = function () { return [
377
- { type: undefined, decorators: [{ type: core.Inject, args: [tokens.TUI_ANIMATION_OPTIONS,] }] },
378
- { type: TuiNotificationsService, decorators: [{ type: core.Inject, args: [TuiNotificationsService,] }] }
379
- ]; };
380
- __decorate([
381
- cdk.tuiPure
382
- ], TuiNotificationsHostComponent.prototype, "getAnimation", null);
383
- TuiNotificationsHostComponent = __decorate([
384
- core.Component({
385
- selector: 'tui-notifications-host',
386
- template: "<ng-container *tuiLet=\"service.items$ | async as items\">\n <div\n *ngIf=\"items.length\"\n class=\"t-wrapper\"\n [@tuiFadeInList]=\"getAnimation(items.length)\"\n [@tuiHeightCollapseList]=\"getAnimation(items.length)\"\n [@tuiSlideInRightList]=\"getAnimation(items.length)\"\n >\n <tui-notification-alert\n *ngFor=\"let item of items\"\n role=\"alert\"\n class=\"t-alert\"\n [item]=\"item\"\n ></tui-notification-alert>\n </div>\n</ng-container>\n",
387
- changeDetection: core.ChangeDetectionStrategy.OnPush,
388
- animations: [animations.tuiFadeInList, animations.tuiSlideInRightList, animations.tuiHeightCollapseList],
389
- styles: [":host{position:fixed;top:0;left:0;width:100%;height:0}.t-wrapper{width:18rem;margin-left:auto;padding:2rem 3rem 0 0;pointer-events:none}:host-context(tui-root._mobile) .t-wrapper{padding:1rem 1rem 0 0}@media screen and (min-width:80em){.t-wrapper{width:23rem}}.t-alert{pointer-events:auto}.t-alert:not(:first-child){margin-top:.75rem}"]
390
- }),
391
- __param(0, core.Inject(tokens.TUI_ANIMATION_OPTIONS)),
392
- __param(1, core.Inject(TuiNotificationsService))
393
- ], TuiNotificationsHostComponent);
394
- return TuiNotificationsHostComponent;
395
- }());
396
-
397
- // TODO: remove in ivy compilation
398
- var NOTIFICATIONS_HOST = TuiNotificationsHostComponent;
399
- var TuiNotificationsModule = /** @class */ (function () {
400
- function TuiNotificationsModule() {
401
- }
402
- TuiNotificationsModule = __decorate([
359
+ TuiAlertModule = __decorate([
403
360
  core.NgModule({
404
- imports: [common.CommonModule, TuiNotificationAlertModule, cdk.TuiLetModule],
405
- declarations: [TuiNotificationsHostComponent],
406
- exports: [TuiNotificationsHostComponent],
407
- entryComponents: [TuiNotificationsHostComponent],
361
+ imports: [common.CommonModule, ngPolymorpheus.PolymorpheusModule, notification.TuiNotificationModule],
362
+ declarations: [TuiAlertComponent],
363
+ exports: [TuiAlertComponent],
364
+ entryComponents: [TuiAlertComponent],
408
365
  providers: [
409
366
  {
410
- provide: TuiNotificationsHostComponent,
411
- useValue: NOTIFICATIONS_HOST,
367
+ provide: cdk.TUI_ALERTS,
368
+ useExisting: TuiAlertService,
369
+ multi: true,
412
370
  },
413
371
  ],
414
372
  })
373
+ ], TuiAlertModule);
374
+ return TuiAlertModule;
375
+ }());
376
+ /** @deprecated use {@link TuiAlertModule} */
377
+ var TuiNotificationsModule = /** @class */ (function () {
378
+ function TuiNotificationsModule() {
379
+ }
380
+ TuiNotificationsModule = __decorate([
381
+ core.NgModule({ imports: [TuiAlertModule] })
415
382
  ], TuiNotificationsModule);
416
383
  return TuiNotificationsModule;
417
384
  }());
418
385
 
419
- exports.NOTIFICATIONS_HOST = NOTIFICATIONS_HOST;
420
- exports.NotificationAlert = NotificationAlert;
421
- exports.TuiNotificationAlertComponent = TuiNotificationAlertComponent;
422
- exports.TuiNotificationAlertModule = TuiNotificationAlertModule;
423
- exports.TuiNotificationsHostComponent = TuiNotificationsHostComponent;
386
+ exports.TuiAlertComponent = TuiAlertComponent;
387
+ exports.TuiAlertModule = TuiAlertModule;
388
+ exports.TuiAlertService = TuiAlertService;
424
389
  exports.TuiNotificationsModule = TuiNotificationsModule;
425
390
  exports.TuiNotificationsService = TuiNotificationsService;
426
391
 
427
392
  Object.defineProperty(exports, '__esModule', { value: true });
428
393
 
429
394
  })));
430
- //# sourceMappingURL=taiga-ui-core-modules-notifications.umd.js.map
395
+ //# sourceMappingURL=taiga-ui-core-components-alert.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-core-components-alert.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/alert/alert.component.ts","ng://@taiga-ui/core/components/alert/alert.service.ts","ng://@taiga-ui/core/components/alert/alert.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n OnInit,\n} from '@angular/core';\nimport {\n isNumber,\n TuiContextWithImplicit,\n TuiDestroyService,\n TuiDialog,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {tuiFadeIn, tuiHeightCollapse, tuiSlideInRight} from '@taiga-ui/core/animations';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\nimport {\n TUI_ANIMATION_OPTIONS,\n TUI_NOTIFICATION_OPTIONS,\n TuiNotificationDefaultOptions,\n} from '@taiga-ui/core/tokens';\nimport {POLYMORPHEUS_CONTEXT, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\n\n// TODO: Remove and start using TuiDialog<TuiAlertOptions<I>, O>\nexport interface TuiNotificationContentContext<O = void, I = undefined>\n extends TuiContextWithImplicit<TuiNotification> {\n label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;\n data: I;\n closeHook: () => void;\n emitHook: (data: O) => void;\n emitAndCloseHook: (data: O) => void;\n}\n\n// TODO: Refactor according to new context by 3.0 and get rid of $any in template\n@Component({\n selector: 'tui-alert',\n templateUrl: './alert.template.html',\n styleUrls: ['./alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n animations: [tuiFadeIn, tuiSlideInRight, tuiHeightCollapse],\n host: {role: 'alert'},\n})\nexport class TuiAlertComponent<O, I> implements OnInit {\n private readonly autoClose =\n typeof this.item.autoClose === 'function'\n ? this.item.autoClose(this.item.status)\n : this.item.autoClose;\n\n @HostBinding('@tuiFadeIn')\n @HostBinding('@tuiSlideInRight')\n @HostBinding('@tuiHeightCollapse')\n readonly animation = {value: '', ...this.animationOptions} as const;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n @Inject(TUI_NOTIFICATION_OPTIONS)\n private readonly options: TuiNotificationDefaultOptions,\n @Inject(TUI_ANIMATION_OPTIONS)\n private readonly animationOptions: AnimationOptions,\n @Inject(POLYMORPHEUS_CONTEXT) readonly item: TuiDialog<TuiAlertOptions<I>, O>,\n ) {}\n\n ngOnInit() {\n this.initAutoClose();\n }\n\n get context(): TuiNotificationContentContext<O, I> {\n return this.calculateContext(this.item);\n }\n\n closeNotification() {\n this.item.$implicit.complete();\n }\n\n @tuiPure\n private calculateContext({\n $implicit,\n status,\n data,\n label,\n }: TuiDialog<TuiAlertOptions<I>, O>): TuiNotificationContentContext<O, I> {\n return {\n $implicit: status,\n data,\n label,\n closeHook: () => {\n $implicit.complete();\n },\n emitHook: (data: O) => {\n $implicit.next(data);\n },\n emitAndCloseHook: (data: O) => {\n $implicit.next(data);\n $implicit.complete();\n },\n };\n }\n\n private initAutoClose() {\n if (!this.autoClose) {\n return;\n }\n\n timer(\n isNumber(this.autoClose) ? this.autoClose : this.options.defaultAutoCloseTime,\n )\n .pipe(\n takeUntil(fromEvent(this.elementRef.nativeElement, 'mouseenter')),\n repeatWhen(() => fromEvent(this.elementRef.nativeElement, 'mouseleave')),\n takeUntil(this.destroy$),\n )\n .subscribe(() => this.closeNotification());\n }\n}\n","import {Inject, Injectable} from '@angular/core';\nimport {AbstractTuiDialogService, TuiIdService} from '@taiga-ui/cdk';\nimport {\n TuiAlertOptions,\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiAlertComponent, TuiNotificationContentContext} from './alert.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiAlertService extends AbstractTuiDialogService<TuiAlertOptions<any>> {\n protected readonly component = new PolymorpheusComponent(TuiAlertComponent);\n\n constructor(\n @Inject(TUI_NOTIFICATION_OPTIONS)\n protected readonly defaultOptions: TuiAlertOptions<any>,\n @Inject(TuiIdService) idService: TuiIdService,\n ) {\n super(idService);\n }\n}\n\n/** @deprecated use {@link TuiAlertService} */\n@Injectable({providedIn: 'root'})\nexport class TuiNotificationsService {\n constructor(@Inject(TuiAlertService) private readonly alert: TuiAlertService) {}\n\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n ): Observable<O>;\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n options: TuiNotificationOptions,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptionsWithData<I>,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I> = {},\n ): Observable<O> {\n // @ts-ignore\n return this.alert.open(content, options);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_ALERTS} from '@taiga-ui/cdk';\nimport {TuiNotificationModule} from '@taiga-ui/core/components/notification';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiAlertComponent} from './alert.component';\nimport {TuiAlertService} from './alert.service';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiNotificationModule],\n declarations: [TuiAlertComponent],\n exports: [TuiAlertComponent],\n entryComponents: [TuiAlertComponent],\n providers: [\n {\n provide: TUI_ALERTS,\n useExisting: TuiAlertService,\n multi: true,\n },\n ],\n})\nexport class TuiAlertModule {}\n\n/** @deprecated use {@link TuiAlertModule} */\n@NgModule({imports: [TuiAlertModule]})\nexport class TuiNotificationsModule {}\n"],"names":["timer","isNumber","takeUntil","fromEvent","repeatWhen","ElementRef","Inject","TuiDestroyService","TUI_NOTIFICATION_OPTIONS","TUI_ANIMATION_OPTIONS","POLYMORPHEUS_CONTEXT","HostBinding","tuiPure","Component","ChangeDetectionStrategy","tuiFadeIn","tuiSlideInRight","tuiHeightCollapse","PolymorpheusComponent","TuiIdService","Injectable","AbstractTuiDialogService","NgModule","CommonModule","PolymorpheusModule","TuiNotificationModule","TUI_ALERTS"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;AACF;IACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,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kB,EAAEC,kCAAqB,CAAC;gBAClE,YAAY,EAAE,CAAC,iBAAiB,CAAC;gBACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;gBAC5B,eAAe,EAAE,CAAC,iBAAiB,CAAC;gBACpC,SAAS,EAAE;oBACP;wBACI,OAAO,EAAEC,cAAU;wBACnB,WAAW,EAAE,eAAe;wBAC5B,KAAK,EAAE,IAAI;qBACd;iBACJ;aACJ,CAAC;WACW,cAAc,CAAG;QAAD,qBAAC;KAA9B,IAA8B;IAE9B;;QAEA;SAAsC;QAAzB,sBAAsB;YADlCJ,aAAQ,CAAC,EAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAC,CAAC;WACzB,sBAAsB,CAAG;QAAD,6BAAC;KAAtC;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@taiga-ui/cdk"),require("@taiga-ui/core/animations"),require("@taiga-ui/core/tokens"),require("@tinkoff/ng-polymorpheus"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@taiga-ui/core/components/notification"),require("@taiga-ui/cdk/services")):"function"==typeof define&&define.amd?define("@taiga-ui/core/components/alert",["exports","@angular/core","@taiga-ui/cdk","@taiga-ui/core/animations","@taiga-ui/core/tokens","@tinkoff/ng-polymorpheus","rxjs","rxjs/operators","@angular/common","@taiga-ui/core/components/notification","@taiga-ui/cdk/services"],e):e(((t=t||self)["taiga-ui"]=t["taiga-ui"]||{},t["taiga-ui"].core=t["taiga-ui"].core||{},t["taiga-ui"].core.components=t["taiga-ui"].core.components||{},t["taiga-ui"].core.components.alert={}),t.ng.core,t.cdk,t["taiga-ui"].core.animations,t["taiga-ui"].core.tokens,t.ngPolymorpheus,t.rxjs,t.rxjs.operators,t.ng.common,t["taiga-ui"].core.components.notification,t.services)}(this,(function(t,e,n,o,i,r,a,c,u,s,l){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var m=function(){return(m=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function f(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function d(t,e){return function(n,o){e(n,o,t)}}var g=function(){function t(t,e,n,o,i){this.elementRef=t,this.destroy$=e,this.options=n,this.animationOptions=o,this.item=i,this.autoClose="function"==typeof this.item.autoClose?this.item.autoClose(this.item.status):this.item.autoClose,this.animation=m({value:""},this.animationOptions)}return t.prototype.ngOnInit=function(){this.initAutoClose()},Object.defineProperty(t.prototype,"context",{get:function(){return this.calculateContext(this.item)},enumerable:!0,configurable:!0}),t.prototype.closeNotification=function(){this.item.$implicit.complete()},t.prototype.calculateContext=function(t){var e=t.$implicit;return{$implicit:t.status,data:t.data,label:t.label,closeHook:function(){e.complete()},emitHook:function(t){e.next(t)},emitAndCloseHook:function(t){e.next(t),e.complete()}}},t.prototype.initAutoClose=function(){var t=this;this.autoClose&&a.timer(n.isNumber(this.autoClose)?this.autoClose:this.options.defaultAutoCloseTime).pipe(c.takeUntil(a.fromEvent(this.elementRef.nativeElement,"mouseenter")),c.repeatWhen((function(){return a.fromEvent(t.elementRef.nativeElement,"mouseleave")})),c.takeUntil(this.destroy$)).subscribe((function(){return t.closeNotification()}))},t.ctorParameters=function(){return[{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]},{type:n.TuiDestroyService,decorators:[{type:e.Inject,args:[n.TuiDestroyService]}]},{type:void 0,decorators:[{type:e.Inject,args:[i.TUI_NOTIFICATION_OPTIONS]}]},{type:void 0,decorators:[{type:e.Inject,args:[i.TUI_ANIMATION_OPTIONS]}]},{type:void 0,decorators:[{type:e.Inject,args:[r.POLYMORPHEUS_CONTEXT]}]}]},f([e.HostBinding("@tuiFadeIn"),e.HostBinding("@tuiSlideInRight"),e.HostBinding("@tuiHeightCollapse")],t.prototype,"animation",void 0),f([n.tuiPure],t.prototype,"calculateContext",null),t=f([e.Component({selector:"tui-alert",template:'<tui-notification\n *ngIf="item.hasCloseButton; else noClose"\n [status]="item.status"\n [hasIcon]="item.hasIcon"\n (close)="closeNotification()"\n>\n <label\n *ngIf="item.label"\n polymorpheus-outlet\n automation-id="tui-notification-alert__heading"\n class="heading"\n [content]="$any(item.label)"\n [context]="context"\n ></label>\n <div\n polymorpheus-outlet\n automation-id="tui-notification-alert__content"\n class="content"\n [content]="item.content"\n [context]="$any(context)"\n ></div>\n</tui-notification>\n<ng-template #noClose>\n <tui-notification\n [status]="item.status"\n [hasIcon]="item.hasIcon"\n >\n <label\n *ngIf="item.label"\n polymorpheus-outlet\n automation-id="tui-notification-alert__heading"\n class="heading"\n [content]="$any(item.label)"\n [context]="context"\n ></label>\n <div\n polymorpheus-outlet\n automation-id="tui-notification-alert__content"\n class="content"\n [content]="item.content"\n [context]="$any(context)"\n ></div>\n </tui-notification>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[n.TuiDestroyService],animations:[o.tuiFadeIn,o.tuiSlideInRight,o.tuiHeightCollapse],host:{role:"alert"},styles:[":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:block;border-radius:var(--tui-radius-m);width:18rem;margin:2rem 3rem 0 auto}:host-context(tui-root._mobile) :host{margin:1rem 1rem 0 auto}:host:not(:first-child){margin-top:.75rem}@media screen and (min-width:80em){:host{width:23rem}}.heading{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content{color:var(--tui-text-01);word-wrap:break-word}.content:empty{display:none}"]}),d(0,e.Inject(e.ElementRef)),d(1,e.Inject(n.TuiDestroyService)),d(2,e.Inject(i.TUI_NOTIFICATION_OPTIONS)),d(3,e.Inject(i.TUI_ANIMATION_OPTIONS)),d(4,e.Inject(r.POLYMORPHEUS_CONTEXT))],t)}(),h=function(t){function o(e,n){var o=t.call(this,n)||this;return o.defaultOptions=e,o.component=new r.PolymorpheusComponent(g),o}return function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(o,t),o.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[i.TUI_NOTIFICATION_OPTIONS]}]},{type:n.TuiIdService,decorators:[{type:e.Inject,args:[n.TuiIdService]}]}]},o.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(i.TUI_NOTIFICATION_OPTIONS),e.ɵɵinject(l.TuiIdService))},token:o,providedIn:"root"}),o=f([e.Injectable({providedIn:"root"}),d(0,e.Inject(i.TUI_NOTIFICATION_OPTIONS)),d(1,e.Inject(n.TuiIdService))],o)}(n.AbstractTuiDialogService),I=function(){function t(t){this.alert=t}return t.prototype.show=function(t,e){return void 0===e&&(e={}),this.alert.open(t,e)},t.ctorParameters=function(){return[{type:h,decorators:[{type:e.Inject,args:[h]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(h))},token:t,providedIn:"root"}),t=f([e.Injectable({providedIn:"root"}),d(0,e.Inject(h))],t)}(),y=function(){function t(){}return t=f([e.NgModule({imports:[u.CommonModule,r.PolymorpheusModule,s.TuiNotificationModule],declarations:[g],exports:[g],entryComponents:[g],providers:[{provide:n.TUI_ALERTS,useExisting:h,multi:!0}]})],t)}(),v=function(){function t(){}return t=f([e.NgModule({imports:[y]})],t)}();t.TuiAlertComponent=g,t.TuiAlertModule=y,t.TuiAlertService=h,t.TuiNotificationsModule=v,t.TuiNotificationsService=I,Object.defineProperty(t,"__esModule",{value:!0})}));
16
+ //# sourceMappingURL=taiga-ui-core-components-alert.umd.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/alert/alert.component.ts","ng://@taiga-ui/core/components/alert/alert.service.ts","ng://@taiga-ui/core/components/alert/alert.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__assign","assign","t","s","i","n","arguments","length","prototype","call","apply","this","__decorate","decorators","target","key","desc","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param","paramIndex","decorator","TuiAlertComponent","elementRef","destroy$","options","animationOptions","item","autoClose","status","animation","value","ngOnInit","initAutoClose","calculateContext","closeNotification","$implicit","complete","_a","data","label","closeHook","emitHook","next","emitAndCloseHook","_this","timer","isNumber","defaultAutoCloseTime","pipe","takeUntil","fromEvent","nativeElement","repeatWhen","subscribe","ElementRef","type","Inject","args","TuiDestroyService","TUI_NOTIFICATION_OPTIONS","TUI_ANIMATION_OPTIONS","POLYMORPHEUS_CONTEXT","HostBinding","tuiPure","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","animations","tuiFadeIn","tuiSlideInRight","tuiHeightCollapse","host","role","TuiAlertService","defaultOptions","idService","_super","component","PolymorpheusComponent","__","constructor","create","__extends","TuiIdService","Injectable","providedIn","AbstractTuiDialogService","TuiNotificationsService","alert","show","content","open","TuiAlertModule","NgModule","imports","CommonModule","PolymorpheusModule","TuiNotificationModule","declarations","exports","entryComponents","provide","TUI_ALERTS","useExisting","multi","TuiNotificationsModule"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IASrB,IAAIO,EAAW,WAQlB,OAPAA,EAAWN,OAAOO,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAIN,KADTK,EAAIG,UAAUF,GACOV,OAAOc,UAAUT,eAAeU,KAAKN,EAAGL,KAAII,EAAEJ,GAAKK,EAAEL,IAE9E,OAAOI,IAEKQ,MAAMC,KAAML,YAezB,SAASM,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HxB,EAAvHyB,EAAIX,UAAUC,OAAQW,EAAID,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOtB,OAAOyB,yBAAyBL,EAAQC,GAAOC,EACrH,GAAuB,iBAAZI,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASR,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIZ,EAAIS,EAAWN,OAAS,EAAGH,GAAK,EAAGA,KAASZ,EAAIqB,EA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sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n OnInit,\n} from '@angular/core';\nimport {\n isNumber,\n TuiContextWithImplicit,\n TuiDestroyService,\n TuiDialog,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {tuiFadeIn, tuiHeightCollapse, tuiSlideInRight} from '@taiga-ui/core/animations';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\nimport {\n TUI_ANIMATION_OPTIONS,\n TUI_NOTIFICATION_OPTIONS,\n TuiNotificationDefaultOptions,\n} from '@taiga-ui/core/tokens';\nimport {POLYMORPHEUS_CONTEXT, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\n\n// TODO: Remove and start using TuiDialog<TuiAlertOptions<I>, O>\nexport interface TuiNotificationContentContext<O = void, I = undefined>\n extends TuiContextWithImplicit<TuiNotification> {\n label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;\n data: I;\n closeHook: () => void;\n emitHook: (data: O) => void;\n emitAndCloseHook: (data: O) => void;\n}\n\n// TODO: Refactor according to new context by 3.0 and get rid of $any in template\n@Component({\n selector: 'tui-alert',\n templateUrl: './alert.template.html',\n styleUrls: ['./alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n animations: [tuiFadeIn, tuiSlideInRight, tuiHeightCollapse],\n host: {role: 'alert'},\n})\nexport class TuiAlertComponent<O, I> implements OnInit {\n private readonly autoClose =\n typeof this.item.autoClose === 'function'\n ? this.item.autoClose(this.item.status)\n : this.item.autoClose;\n\n @HostBinding('@tuiFadeIn')\n @HostBinding('@tuiSlideInRight')\n @HostBinding('@tuiHeightCollapse')\n readonly animation = {value: '', ...this.animationOptions} as const;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n @Inject(TUI_NOTIFICATION_OPTIONS)\n private readonly options: TuiNotificationDefaultOptions,\n @Inject(TUI_ANIMATION_OPTIONS)\n private readonly animationOptions: AnimationOptions,\n @Inject(POLYMORPHEUS_CONTEXT) readonly item: TuiDialog<TuiAlertOptions<I>, O>,\n ) {}\n\n ngOnInit() {\n this.initAutoClose();\n }\n\n get context(): TuiNotificationContentContext<O, I> {\n return this.calculateContext(this.item);\n }\n\n closeNotification() {\n this.item.$implicit.complete();\n }\n\n @tuiPure\n private calculateContext({\n $implicit,\n status,\n data,\n label,\n }: TuiDialog<TuiAlertOptions<I>, O>): TuiNotificationContentContext<O, I> {\n return {\n $implicit: status,\n data,\n label,\n closeHook: () => {\n $implicit.complete();\n },\n emitHook: (data: O) => {\n $implicit.next(data);\n },\n emitAndCloseHook: (data: O) => {\n $implicit.next(data);\n $implicit.complete();\n },\n };\n }\n\n private initAutoClose() {\n if (!this.autoClose) {\n return;\n }\n\n timer(\n isNumber(this.autoClose) ? this.autoClose : this.options.defaultAutoCloseTime,\n )\n .pipe(\n takeUntil(fromEvent(this.elementRef.nativeElement, 'mouseenter')),\n repeatWhen(() => fromEvent(this.elementRef.nativeElement, 'mouseleave')),\n takeUntil(this.destroy$),\n )\n .subscribe(() => this.closeNotification());\n }\n}\n","import {Inject, Injectable} from '@angular/core';\nimport {AbstractTuiDialogService, TuiIdService} from '@taiga-ui/cdk';\nimport {\n TuiAlertOptions,\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiAlertComponent, TuiNotificationContentContext} from './alert.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiAlertService extends AbstractTuiDialogService<TuiAlertOptions<any>> {\n protected readonly component = new PolymorpheusComponent(TuiAlertComponent);\n\n constructor(\n @Inject(TUI_NOTIFICATION_OPTIONS)\n protected readonly defaultOptions: TuiAlertOptions<any>,\n @Inject(TuiIdService) idService: TuiIdService,\n ) {\n super(idService);\n }\n}\n\n/** @deprecated use {@link TuiAlertService} */\n@Injectable({providedIn: 'root'})\nexport class TuiNotificationsService {\n constructor(@Inject(TuiAlertService) private readonly alert: TuiAlertService) {}\n\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n ): Observable<O>;\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n options: TuiNotificationOptions,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptionsWithData<I>,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I> = {},\n ): Observable<O> {\n // @ts-ignore\n return this.alert.open(content, options);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_ALERTS} from '@taiga-ui/cdk';\nimport {TuiNotificationModule} from '@taiga-ui/core/components/notification';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiAlertComponent} from './alert.component';\nimport {TuiAlertService} from './alert.service';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiNotificationModule],\n declarations: [TuiAlertComponent],\n exports: [TuiAlertComponent],\n entryComponents: [TuiAlertComponent],\n providers: [\n {\n provide: TUI_ALERTS,\n useExisting: TuiAlertService,\n multi: true,\n },\n ],\n})\nexport class TuiAlertModule {}\n\n/** @deprecated use {@link TuiAlertModule} */\n@NgModule({imports: [TuiAlertModule]})\nexport class TuiNotificationsModule {}\n"]}
@@ -362,7 +362,7 @@
362
362
  TuiButtonComponent = TuiButtonComponent_1 = __decorate([
363
363
  core.Component({
364
364
  selector: 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]',
365
- template: "<tui-wrapper\n class=\"t-wrapper\"\n [appearance]=\"appearance\"\n [hovered]=\"computedHovered\"\n [pressed]=\"computedPressed\"\n [disabled]=\"computedDisabled\"\n [focused]=\"computedFocusVisible\"\n>\n <span class=\"t-content\">\n <span *ngIf=\"icon\" polymorpheus-outlet class=\"t-left\" [content]=\"icon\">\n <ng-template let-icon>\n <tui-svg class=\"t-icon\" [src]=\"icon\"></tui-svg>\n </ng-template>\n </span>\n <ng-content></ng-content>\n <span\n *ngIf=\"iconRight\"\n polymorpheus-outlet\n class=\"t-right\"\n [content]=\"iconRight\"\n >\n <ng-template let-icon>\n <tui-svg class=\"t-icon\" [src]=\"icon\"></tui-svg>\n </ng-template>\n </span>\n </span>\n <tui-loader\n *ngIf=\"showLoader\"\n class=\"t-loader\"\n [size]=\"loaderSize\"\n [inheritColor]=\"true\"\n ></tui-loader>\n</tui-wrapper>\n",
365
+ template: "<tui-wrapper\n class=\"t-wrapper\"\n [appearance]=\"appearance\"\n [hovered]=\"computedHovered\"\n [pressed]=\"computedPressed\"\n [disabled]=\"computedDisabled\"\n [focused]=\"computedFocusVisible\"\n>\n <span class=\"t-content\">\n <span\n *ngIf=\"icon\"\n polymorpheus-outlet\n class=\"t-left\"\n [content]=\"icon\"\n >\n <ng-template let-icon>\n <tui-svg\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </span>\n <ng-content></ng-content>\n <span\n *ngIf=\"iconRight\"\n polymorpheus-outlet\n class=\"t-right\"\n [content]=\"iconRight\"\n >\n <ng-template let-icon>\n <tui-svg\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </span>\n </span>\n <tui-loader\n *ngIf=\"showLoader\"\n class=\"t-loader\"\n [size]=\"loaderSize\"\n [inheritColor]=\"true\"\n ></tui-loader>\n</tui-wrapper>\n",
366
366
  changeDetection: core.ChangeDetectionStrategy.OnPush,
367
367
  providers: [
368
368
  {