@taiga-ui/core 2.38.0 → 2.41.0

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 (403) hide show
  1. package/bundles/{taiga-ui-core-modules-notifications.umd.js → taiga-ui-core-components-alert.umd.js} +94 -136
  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 +5 -5
  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 +14 -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 +4 -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 +29 -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 +3 -3
  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/capitalize-first-letter.js +4 -0
  167. package/esm2015/utils/format/format-number.js +10 -9
  168. package/esm2015/utils/format/index.js +2 -1
  169. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +3 -3
  170. package/esm2015/utils/mask/create-number-mask.js +1 -1
  171. package/esm5/components/alert/alert.component.js +96 -0
  172. package/esm5/components/alert/alert.module.js +32 -0
  173. package/esm5/components/alert/alert.service.js +54 -0
  174. package/esm5/components/alert/index.js +4 -0
  175. package/esm5/components/alert/taiga-ui-core-components-alert.js +5 -0
  176. package/esm5/components/button/button.component.js +2 -2
  177. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +1 -1
  178. package/esm5/components/data-list/data-list.component.js +2 -2
  179. package/esm5/components/data-list/option/option.component.js +2 -2
  180. package/esm5/components/dialog/dialog.component.js +2 -2
  181. package/esm5/components/dropdown-box/dropdown-box.component.js +2 -2
  182. package/esm5/components/expand/expand.component.js +2 -2
  183. package/esm5/components/group/group.module.js +2 -1
  184. package/esm5/components/hints-host/hint-box/hint-box.component.js +18 -3
  185. package/esm5/components/hints-host/hints-host.component.js +2 -2
  186. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  187. package/esm5/components/index.js +2 -1
  188. package/esm5/components/label/label.component.js +2 -2
  189. package/esm5/components/primitive-calendar/primitive-calendar.component.js +2 -2
  190. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  191. package/esm5/components/primitive-textfield/primitive-textfield.component.js +3 -3
  192. package/esm5/components/primitive-textfield/textfield/textfield.component.js +1 -1
  193. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  194. package/esm5/components/root/root.component.js +11 -17
  195. package/esm5/components/root/root.module.js +3 -2
  196. package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
  197. package/esm5/constants/decimal-symbols.js +1 -1
  198. package/esm5/constants/regexp.js +2 -1
  199. package/esm5/constants/version.js +2 -2
  200. package/esm5/directives/mask-accessor/mask-accessor.directive.js +1 -1
  201. package/esm5/index.js +1 -2
  202. package/esm5/interfaces/alert-options.js +1 -0
  203. package/esm5/interfaces/data-list-accessor.js +1 -1
  204. package/esm5/interfaces/index.js +1 -1
  205. package/esm5/interfaces/notification-options.js +1 -1
  206. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  207. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  208. package/esm5/pipes/format-number/format-number.pipe.js +5 -3
  209. package/esm5/services/hint.service.js +1 -1
  210. package/esm5/tokens/notification-options.js +1 -1
  211. package/esm5/types/direction.js +1 -1
  212. package/esm5/utils/format/capitalize-first-letter.js +4 -0
  213. package/esm5/utils/format/format-number.js +10 -9
  214. package/esm5/utils/format/index.js +2 -1
  215. package/esm5/utils/mask/create-auto-corrected-money-pipe.js +4 -3
  216. package/esm5/utils/mask/create-number-mask.js +1 -1
  217. package/fesm2015/taiga-ui-core-components-alert.js +156 -0
  218. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -0
  219. package/fesm2015/taiga-ui-core-components-button.js +1 -1
  220. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  221. package/fesm2015/taiga-ui-core-components-data-list.js +2 -2
  222. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  223. package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
  224. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  225. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  226. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  227. package/fesm2015/taiga-ui-core-components-expand.js +1 -1
  228. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  229. package/fesm2015/taiga-ui-core-components-group.js +1 -0
  230. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  231. package/fesm2015/taiga-ui-core-components-hints-host.js +18 -3
  232. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  233. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -1
  234. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  235. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  236. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  237. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +1 -1
  238. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  239. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +1 -1
  240. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  241. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +5 -5
  242. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  243. package/fesm2015/taiga-ui-core-components-root.js +12 -17
  244. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  245. package/fesm2015/taiga-ui-core-components-scroll-controls.js +1 -1
  246. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  247. package/fesm2015/taiga-ui-core-components.js +1 -0
  248. package/fesm2015/taiga-ui-core-components.js.map +1 -1
  249. package/fesm2015/taiga-ui-core-constants.js +3 -2
  250. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  251. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  252. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  253. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  254. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  255. package/fesm2015/taiga-ui-core-pipes-format-number.js +3 -2
  256. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  257. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  258. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  259. package/fesm2015/taiga-ui-core-utils-format.js +14 -9
  260. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  261. package/fesm2015/taiga-ui-core-utils-mask.js +2 -2
  262. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  263. package/fesm2015/taiga-ui-core.js +0 -1
  264. package/fesm2015/taiga-ui-core.js.map +1 -1
  265. package/fesm5/taiga-ui-core-components-alert.js +171 -0
  266. package/fesm5/taiga-ui-core-components-alert.js.map +1 -0
  267. package/fesm5/taiga-ui-core-components-button.js +1 -1
  268. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  269. package/fesm5/taiga-ui-core-components-data-list.js +2 -2
  270. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  271. package/fesm5/taiga-ui-core-components-dialog.js +1 -1
  272. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  273. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  274. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  275. package/fesm5/taiga-ui-core-components-expand.js +1 -1
  276. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  277. package/fesm5/taiga-ui-core-components-group.js +1 -0
  278. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  279. package/fesm5/taiga-ui-core-components-hints-host.js +18 -3
  280. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  281. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +1 -1
  282. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  283. package/fesm5/taiga-ui-core-components-label.js +1 -1
  284. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  285. package/fesm5/taiga-ui-core-components-primitive-calendar.js +1 -1
  286. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  287. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +1 -1
  288. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  289. package/fesm5/taiga-ui-core-components-primitive-textfield.js +5 -5
  290. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  291. package/fesm5/taiga-ui-core-components-root.js +12 -17
  292. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  293. package/fesm5/taiga-ui-core-components-scroll-controls.js +1 -1
  294. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  295. package/fesm5/taiga-ui-core-components.js +1 -0
  296. package/fesm5/taiga-ui-core-components.js.map +1 -1
  297. package/fesm5/taiga-ui-core-constants.js +3 -2
  298. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  299. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  300. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  301. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  302. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  303. package/fesm5/taiga-ui-core-pipes-format-number.js +4 -2
  304. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  305. package/fesm5/taiga-ui-core-services.js.map +1 -1
  306. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  307. package/fesm5/taiga-ui-core-utils-format.js +14 -9
  308. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  309. package/fesm5/taiga-ui-core-utils-mask.js +3 -2
  310. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  311. package/fesm5/taiga-ui-core.js +0 -1
  312. package/fesm5/taiga-ui-core.js.map +1 -1
  313. package/index.d.ts +0 -1
  314. package/interfaces/alert-options.d.ts +12 -0
  315. package/interfaces/data-list-accessor.d.ts +1 -1
  316. package/interfaces/index.d.ts +1 -0
  317. package/interfaces/notification-options.d.ts +3 -0
  318. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  319. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  320. package/package.json +4 -4
  321. package/pipes/calendar-sheet/calendar-sheet.pipe.d.ts +1 -1
  322. package/pipes/format-number/format-number.pipe.d.ts +2 -1
  323. package/services/hint.service.d.ts +1 -1
  324. package/styles/markup/tui-group.less +1 -1
  325. package/styles/mixins/mixins.less +1 -0
  326. package/styles/mixins/slider.less +17 -0
  327. package/styles/taiga-ui-global-old.less +18 -18
  328. package/styles/taiga-ui-global.less +18 -18
  329. package/styles/taiga-ui-local-old.less +5 -5
  330. package/styles/taiga-ui-local.less +7 -7
  331. package/styles/taiga-ui-local.scss +7 -7
  332. package/styles/taiga-ui-theme.less +4 -4
  333. package/styles/theme/dialog.less +1 -1
  334. package/styles/theme/wrapper/accent.less +1 -1
  335. package/styles/theme/wrapper/base.less +1 -1
  336. package/styles/theme/wrapper/icon.less +1 -1
  337. package/styles/theme/wrapper/none.less +6 -0
  338. package/styles/theme/wrapper/outline.less +1 -1
  339. package/styles/theme/wrapper/primary.less +1 -1
  340. package/styles/theme/wrapper/secondary.less +1 -1
  341. package/styles/theme/wrapper/table.less +1 -1
  342. package/styles/theme/wrapper/textfield.less +2 -2
  343. package/styles/theme/wrapper/whiteblock.less +2 -2
  344. package/styles/theme/wrapper.less +10 -10
  345. package/taiga-ui-core.metadata.json +1 -1
  346. package/tokens/notification-options.d.ts +2 -10
  347. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  348. package/types/direction.d.ts +1 -1
  349. package/utils/format/capitalize-first-letter.d.ts +1 -0
  350. package/utils/format/index.d.ts +1 -0
  351. package/utils/format/taiga-ui-core-utils-format.metadata.json +1 -1
  352. package/utils/mask/create-auto-corrected-money-pipe.d.ts +1 -1
  353. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +0 -1
  354. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +0 -16
  355. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +0 -1
  356. package/bundles/taiga-ui-core-modules.umd.js +0 -23
  357. package/bundles/taiga-ui-core-modules.umd.js.map +0 -1
  358. package/bundles/taiga-ui-core-modules.umd.min.js +0 -2
  359. package/bundles/taiga-ui-core-modules.umd.min.js.map +0 -1
  360. package/esm2015/modules/index.js +0 -2
  361. package/esm2015/modules/notifications/index.js +0 -7
  362. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +0 -22
  363. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +0 -74
  364. package/esm2015/modules/notifications/notification-alert/notification-alert.module.js +0 -17
  365. package/esm2015/modules/notifications/notification-content-context.js +0 -1
  366. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +0 -35
  367. package/esm2015/modules/notifications/notifications.module.js +0 -26
  368. package/esm2015/modules/notifications/notifications.service.js +0 -38
  369. package/esm2015/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  370. package/esm2015/modules/taiga-ui-core-modules.js +0 -5
  371. package/esm5/modules/index.js +0 -2
  372. package/esm5/modules/notifications/index.js +0 -7
  373. package/esm5/modules/notifications/notification-alert/Notification-alert.js +0 -24
  374. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +0 -81
  375. package/esm5/modules/notifications/notification-alert/notification-alert.module.js +0 -20
  376. package/esm5/modules/notifications/notification-content-context.js +0 -1
  377. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +0 -36
  378. package/esm5/modules/notifications/notifications.module.js +0 -29
  379. package/esm5/modules/notifications/notifications.service.js +0 -41
  380. package/esm5/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  381. package/esm5/modules/taiga-ui-core-modules.js +0 -5
  382. package/fesm2015/taiga-ui-core-modules-notifications.js +0 -192
  383. package/fesm2015/taiga-ui-core-modules-notifications.js.map +0 -1
  384. package/fesm2015/taiga-ui-core-modules.js +0 -6
  385. package/fesm2015/taiga-ui-core-modules.js.map +0 -1
  386. package/fesm5/taiga-ui-core-modules-notifications.js +0 -210
  387. package/fesm5/taiga-ui-core-modules-notifications.js.map +0 -1
  388. package/fesm5/taiga-ui-core-modules.js +0 -6
  389. package/fesm5/taiga-ui-core-modules.js.map +0 -1
  390. package/modules/index.d.ts +0 -1
  391. package/modules/notifications/index.d.ts +0 -7
  392. package/modules/notifications/notification-alert/Notification-alert.d.ts +0 -19
  393. package/modules/notifications/notification-alert/notification-alert.component.d.ts +0 -17
  394. package/modules/notifications/notification-alert/notification-alert.module.d.ts +0 -2
  395. package/modules/notifications/notification-content-context.d.ts +0 -10
  396. package/modules/notifications/notifications-host/notifications-host.component.d.ts +0 -9
  397. package/modules/notifications/notifications.module.d.ts +0 -4
  398. package/modules/notifications/notifications.service.d.ts +0 -15
  399. package/modules/notifications/package.json +0 -13
  400. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +0 -1
  401. package/modules/package.json +0 -13
  402. package/modules/taiga-ui-core-modules.d.ts +0 -4
  403. package/modules/taiga-ui-core-modules.metadata.json +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-modules-notifications.js","sources":["ng://@taiga-ui/core/modules/notifications/notification-alert/Notification-alert.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.component.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.module.ts","ng://@taiga-ui/core/modules/notifications/notifications.service.ts","ng://@taiga-ui/core/modules/notifications/notifications-host/notifications-host.component.ts","ng://@taiga-ui/core/modules/notifications/notifications.module.ts","ng://@taiga-ui/core/modules/notifications/taiga-ui-core-modules-notifications.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observer} from 'rxjs';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\n\nexport class NotificationAlert<O, I> {\n readonly status = this.options.status;\n\n readonly hasIcon = this.options.hasIcon;\n\n readonly autoClose: boolean | number;\n\n readonly hasCloseButton = this.options.hasCloseButton;\n\n readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>> =\n this.options.label;\n\n readonly data!: I;\n\n constructor(\n readonly observer: Observer<O>,\n readonly content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n private readonly options: Required<\n TuiNotificationOptions | TuiNotificationOptionsWithData<I>\n >,\n ) {\n this.autoClose =\n typeof this.options.autoClose === 'function'\n ? this.options.autoClose(this.options.status)\n : this.options.autoClose;\n\n if (options && this.withData(options)) {\n this.data = options.data;\n }\n }\n\n private withData(\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I>,\n ): options is TuiNotificationOptionsWithData<I> {\n return 'data' in options;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n Input,\n OnInit,\n} from '@angular/core';\nimport {isNumber, TuiDestroyService, tuiPure} from '@taiga-ui/cdk';\nimport {\n TUI_NOTIFICATION_OPTIONS,\n TuiNotificationDefaultOptions,\n} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\n@Component({\n selector: 'tui-notification-alert',\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiNotificationAlertComponent<O, I> implements OnInit {\n @Input()\n item!: NotificationAlert<O, I>;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n @Inject(TUI_NOTIFICATION_OPTIONS)\n readonly options: TuiNotificationDefaultOptions,\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.observer.complete();\n }\n\n @tuiPure\n private calculateContext({\n status,\n data,\n label,\n observer,\n }: NotificationAlert<O, I>): TuiNotificationContentContext<O, I> {\n return {\n $implicit: status,\n data: data,\n label: label,\n closeHook: () => {\n observer.complete();\n },\n emitHook: (data: O) => {\n observer.next(data);\n },\n emitAndCloseHook: (data: O) => {\n observer.next(data);\n observer.complete();\n },\n };\n }\n\n private initAutoClose() {\n if (!this.item.autoClose) {\n return;\n }\n\n timer(\n isNumber(this.item.autoClose)\n ? this.item.autoClose\n : 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 {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiNotificationModule} from '@taiga-ui/core/components/notification';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiNotificationAlertComponent} from './notification-alert.component';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiNotificationModule],\n declarations: [TuiNotificationAlertComponent],\n exports: [TuiNotificationAlertComponent],\n})\nexport class TuiNotificationAlertModule {}\n","import {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {\n TUI_NOTIFICATION_OPTIONS,\n TuiNotificationDefaultOptions,\n} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\n\nimport {NotificationAlert} from './notification-alert/Notification-alert';\nimport {TuiNotificationContentContext} from './notification-content-context';\n\nconst NO_HOST =\n 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNotificationsService {\n /** @internal */\n readonly items$ = new BehaviorSubject<ReadonlyArray<NotificationAlert<any, any>>>([]);\n\n constructor(\n @Inject(TUI_NOTIFICATION_OPTIONS)\n readonly options: TuiNotificationDefaultOptions,\n ) {}\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 return new Observable((observer: Observer<O>) => {\n tuiAssert.assert(!!this.items$.observers.length, NO_HOST);\n\n const notification = new NotificationAlert(observer, content, {\n ...this.options,\n ...options,\n });\n\n this.items$.next([...this.items$.value, notification]);\n\n return () => {\n this.items$.next(this.items$.value.filter(item => item !== notification));\n };\n });\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk';\nimport {\n tuiFadeInList,\n tuiHeightCollapseList,\n tuiSlideInRightList,\n} from '@taiga-ui/core/animations';\nimport {TuiAnimationOptions} from '@taiga-ui/core/interfaces';\nimport {TUI_ANIMATION_OPTIONS} from '@taiga-ui/core/tokens';\n\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList],\n})\nexport class TuiNotificationsHostComponent {\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiNotificationsService) readonly service: TuiNotificationsService,\n ) {}\n\n @tuiPure\n getAnimation(value: number): TuiAnimationOptions {\n return {\n value: String(value),\n ...this.options,\n };\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiNotificationAlertModule} from './notification-alert/notification-alert.module';\nimport {TuiNotificationsHostComponent} from './notifications-host/notifications-host.component';\n\n// TODO: remove in ivy compilation\nexport const NOTIFICATIONS_HOST = TuiNotificationsHostComponent;\n\n@NgModule({\n imports: [CommonModule, TuiNotificationAlertModule, TuiLetModule],\n declarations: [TuiNotificationsHostComponent],\n exports: [TuiNotificationsHostComponent],\n entryComponents: [TuiNotificationsHostComponent],\n providers: [\n {\n provide: TuiNotificationsHostComponent,\n useValue: NOTIFICATIONS_HOST,\n },\n ],\n})\nexport class TuiNotificationsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAWa,iBAAiB;IAc1B,YACa,QAAqB,EACrB,OAAiE,EACzD,OAEhB;QAJQ,aAAQ,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AsB,CAAG;;ACtBtC;;;;;;"}
@@ -1,6 +0,0 @@
1
- export * from '@taiga-ui/core/modules/notifications';
2
-
3
- /**
4
- * Generated bundle index. Do not edit.
5
- */
6
- //# sourceMappingURL=taiga-ui-core-modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-modules.js","sources":["ng://@taiga-ui/core/modules/taiga-ui-core-modules.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;"}
@@ -1,210 +0,0 @@
1
- import { __decorate, __param, __assign, __spread } from 'tslib';
2
- import { ElementRef, Inject, Input, Component, ChangeDetectionStrategy, NgModule, ɵɵdefineInjectable, ɵɵinject, Injectable } from '@angular/core';
3
- import { isNumber, TuiDestroyService, tuiPure, tuiAssert, TuiLetModule } from '@taiga-ui/cdk';
4
- import { TUI_NOTIFICATION_OPTIONS, TUI_ANIMATION_OPTIONS } from '@taiga-ui/core/tokens';
5
- import { timer, fromEvent, BehaviorSubject, Observable } from 'rxjs';
6
- import { takeUntil, repeatWhen } from 'rxjs/operators';
7
- import { CommonModule } from '@angular/common';
8
- import { TuiNotificationModule } from '@taiga-ui/core/components/notification';
9
- import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
10
- import { tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList } from '@taiga-ui/core/animations';
11
-
12
- var NotificationAlert = /** @class */ (function () {
13
- function NotificationAlert(observer, content, options) {
14
- this.observer = observer;
15
- this.content = content;
16
- this.options = options;
17
- this.status = this.options.status;
18
- this.hasIcon = this.options.hasIcon;
19
- this.hasCloseButton = this.options.hasCloseButton;
20
- this.label = this.options.label;
21
- this.autoClose =
22
- typeof this.options.autoClose === 'function'
23
- ? this.options.autoClose(this.options.status)
24
- : this.options.autoClose;
25
- if (options && this.withData(options)) {
26
- this.data = options.data;
27
- }
28
- }
29
- NotificationAlert.prototype.withData = function (options) {
30
- return 'data' in options;
31
- };
32
- return NotificationAlert;
33
- }());
34
-
35
- var TuiNotificationAlertComponent = /** @class */ (function () {
36
- function TuiNotificationAlertComponent(elementRef, destroy$, options) {
37
- this.elementRef = elementRef;
38
- this.destroy$ = destroy$;
39
- this.options = options;
40
- }
41
- TuiNotificationAlertComponent.prototype.ngOnInit = function () {
42
- this.initAutoClose();
43
- };
44
- Object.defineProperty(TuiNotificationAlertComponent.prototype, "context", {
45
- get: function () {
46
- return this.calculateContext(this.item);
47
- },
48
- enumerable: true,
49
- configurable: true
50
- });
51
- TuiNotificationAlertComponent.prototype.closeNotification = function () {
52
- this.item.observer.complete();
53
- };
54
- TuiNotificationAlertComponent.prototype.calculateContext = function (_a) {
55
- var status = _a.status, data = _a.data, label = _a.label, observer = _a.observer;
56
- return {
57
- $implicit: status,
58
- data: data,
59
- label: label,
60
- closeHook: function () {
61
- observer.complete();
62
- },
63
- emitHook: function (data) {
64
- observer.next(data);
65
- },
66
- emitAndCloseHook: function (data) {
67
- observer.next(data);
68
- observer.complete();
69
- },
70
- };
71
- };
72
- TuiNotificationAlertComponent.prototype.initAutoClose = function () {
73
- var _this = this;
74
- if (!this.item.autoClose) {
75
- return;
76
- }
77
- timer(isNumber(this.item.autoClose)
78
- ? this.item.autoClose
79
- : this.options.defaultAutoCloseTime)
80
- .pipe(takeUntil(fromEvent(this.elementRef.nativeElement, 'mouseenter')), repeatWhen(function () { return fromEvent(_this.elementRef.nativeElement, 'mouseleave'); }), takeUntil(this.destroy$))
81
- .subscribe(function () { return _this.closeNotification(); });
82
- };
83
- TuiNotificationAlertComponent.ctorParameters = function () { return [
84
- { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
85
- { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
86
- { type: undefined, decorators: [{ type: Inject, args: [TUI_NOTIFICATION_OPTIONS,] }] }
87
- ]; };
88
- __decorate([
89
- Input()
90
- ], TuiNotificationAlertComponent.prototype, "item", void 0);
91
- __decorate([
92
- tuiPure
93
- ], TuiNotificationAlertComponent.prototype, "calculateContext", null);
94
- TuiNotificationAlertComponent = __decorate([
95
- Component({
96
- selector: 'tui-notification-alert',
97
- 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",
98
- changeDetection: ChangeDetectionStrategy.OnPush,
99
- providers: [TuiDestroyService],
100
- 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}"]
101
- }),
102
- __param(0, Inject(ElementRef)),
103
- __param(1, Inject(TuiDestroyService)),
104
- __param(2, Inject(TUI_NOTIFICATION_OPTIONS))
105
- ], TuiNotificationAlertComponent);
106
- return TuiNotificationAlertComponent;
107
- }());
108
-
109
- var TuiNotificationAlertModule = /** @class */ (function () {
110
- function TuiNotificationAlertModule() {
111
- }
112
- TuiNotificationAlertModule = __decorate([
113
- NgModule({
114
- imports: [CommonModule, PolymorpheusModule, TuiNotificationModule],
115
- declarations: [TuiNotificationAlertComponent],
116
- exports: [TuiNotificationAlertComponent],
117
- })
118
- ], TuiNotificationAlertModule);
119
- return TuiNotificationAlertModule;
120
- }());
121
-
122
- var NO_HOST = 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';
123
- var TuiNotificationsService = /** @class */ (function () {
124
- function TuiNotificationsService(options) {
125
- this.options = options;
126
- /** @internal */
127
- this.items$ = new BehaviorSubject([]);
128
- }
129
- TuiNotificationsService.prototype.show = function (content, options) {
130
- var _this = this;
131
- if (options === void 0) { options = {}; }
132
- return new Observable(function (observer) {
133
- tuiAssert.assert(!!_this.items$.observers.length, NO_HOST);
134
- var notification = new NotificationAlert(observer, content, __assign(__assign({}, _this.options), options));
135
- _this.items$.next(__spread(_this.items$.value, [notification]));
136
- return function () {
137
- _this.items$.next(_this.items$.value.filter(function (item) { return item !== notification; }));
138
- };
139
- });
140
- };
141
- TuiNotificationsService.ctorParameters = function () { return [
142
- { type: undefined, decorators: [{ type: Inject, args: [TUI_NOTIFICATION_OPTIONS,] }] }
143
- ]; };
144
- TuiNotificationsService.ɵprov = ɵɵdefineInjectable({ factory: function TuiNotificationsService_Factory() { return new TuiNotificationsService(ɵɵinject(TUI_NOTIFICATION_OPTIONS)); }, token: TuiNotificationsService, providedIn: "root" });
145
- TuiNotificationsService = __decorate([
146
- Injectable({
147
- providedIn: 'root',
148
- }),
149
- __param(0, Inject(TUI_NOTIFICATION_OPTIONS))
150
- ], TuiNotificationsService);
151
- return TuiNotificationsService;
152
- }());
153
-
154
- var TuiNotificationsHostComponent = /** @class */ (function () {
155
- function TuiNotificationsHostComponent(options, service) {
156
- this.options = options;
157
- this.service = service;
158
- }
159
- TuiNotificationsHostComponent.prototype.getAnimation = function (value) {
160
- return __assign({ value: String(value) }, this.options);
161
- };
162
- TuiNotificationsHostComponent.ctorParameters = function () { return [
163
- { type: undefined, decorators: [{ type: Inject, args: [TUI_ANIMATION_OPTIONS,] }] },
164
- { type: TuiNotificationsService, decorators: [{ type: Inject, args: [TuiNotificationsService,] }] }
165
- ]; };
166
- __decorate([
167
- tuiPure
168
- ], TuiNotificationsHostComponent.prototype, "getAnimation", null);
169
- TuiNotificationsHostComponent = __decorate([
170
- Component({
171
- selector: 'tui-notifications-host',
172
- 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",
173
- changeDetection: ChangeDetectionStrategy.OnPush,
174
- animations: [tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList],
175
- 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}"]
176
- }),
177
- __param(0, Inject(TUI_ANIMATION_OPTIONS)),
178
- __param(1, Inject(TuiNotificationsService))
179
- ], TuiNotificationsHostComponent);
180
- return TuiNotificationsHostComponent;
181
- }());
182
-
183
- // TODO: remove in ivy compilation
184
- var NOTIFICATIONS_HOST = TuiNotificationsHostComponent;
185
- var TuiNotificationsModule = /** @class */ (function () {
186
- function TuiNotificationsModule() {
187
- }
188
- TuiNotificationsModule = __decorate([
189
- NgModule({
190
- imports: [CommonModule, TuiNotificationAlertModule, TuiLetModule],
191
- declarations: [TuiNotificationsHostComponent],
192
- exports: [TuiNotificationsHostComponent],
193
- entryComponents: [TuiNotificationsHostComponent],
194
- providers: [
195
- {
196
- provide: TuiNotificationsHostComponent,
197
- useValue: NOTIFICATIONS_HOST,
198
- },
199
- ],
200
- })
201
- ], TuiNotificationsModule);
202
- return TuiNotificationsModule;
203
- }());
204
-
205
- /**
206
- * Generated bundle index. Do not edit.
207
- */
208
-
209
- export { NOTIFICATIONS_HOST, NotificationAlert, TuiNotificationAlertComponent, TuiNotificationAlertModule, TuiNotificationsHostComponent, TuiNotificationsModule, TuiNotificationsService };
210
- //# sourceMappingURL=taiga-ui-core-modules-notifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-modules-notifications.js","sources":["ng://@taiga-ui/core/modules/notifications/notification-alert/Notification-alert.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.component.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.module.ts","ng://@taiga-ui/core/modules/notifications/notifications.service.ts","ng://@taiga-ui/core/modules/notifications/notifications-host/notifications-host.component.ts","ng://@taiga-ui/core/modules/notifications/notifications.module.ts","ng://@taiga-ui/core/modules/notifications/taiga-ui-core-modules-notifications.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observer} from 'rxjs';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\n\nexport class NotificationAlert<O, I> {\n readonly status = this.options.status;\n\n readonly hasIcon = this.options.hasIcon;\n\n readonly autoClose: boolean | number;\n\n readonly hasCloseButton = this.options.hasCloseButton;\n\n readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>> =\n this.options.label;\n\n readonly data!: I;\n\n constructor(\n readonly observer: Observer<O>,\n readonly content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n private readonly options: Required<\n TuiNotificationOptions | TuiNotificationOptionsWithData<I>\n >,\n ) {\n this.autoClose =\n typeof this.options.autoClose === 'function'\n ? this.options.autoClose(this.options.status)\n : this.options.autoClose;\n\n if (options && this.withData(options)) {\n this.data = options.data;\n }\n }\n\n private withData(\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I>,\n ): options is TuiNotificationOptionsWithData<I> {\n return 'data' in options;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n Input,\n OnInit,\n} from '@angular/core';\nimport {isNumber, TuiDestroyService, tuiPure} from '@taiga-ui/cdk';\nimport {\n TUI_NOTIFICATION_OPTIONS,\n TuiNotificationDefaultOptions,\n} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\n@Component({\n selector: 'tui-notification-alert',\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiNotificationAlertComponent<O, I> implements OnInit {\n @Input()\n item!: NotificationAlert<O, I>;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n @Inject(TUI_NOTIFICATION_OPTIONS)\n readonly options: TuiNotificationDefaultOptions,\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.observer.complete();\n }\n\n @tuiPure\n private calculateContext({\n status,\n data,\n label,\n observer,\n }: NotificationAlert<O, I>): TuiNotificationContentContext<O, I> {\n return {\n $implicit: status,\n data: data,\n label: label,\n closeHook: () => {\n observer.complete();\n },\n emitHook: (data: O) => {\n observer.next(data);\n },\n emitAndCloseHook: (data: O) => {\n observer.next(data);\n observer.complete();\n },\n };\n }\n\n private initAutoClose() {\n if (!this.item.autoClose) {\n return;\n }\n\n timer(\n isNumber(this.item.autoClose)\n ? this.item.autoClose\n : 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 {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiNotificationModule} from '@taiga-ui/core/components/notification';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiNotificationAlertComponent} from './notification-alert.component';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiNotificationModule],\n declarations: [TuiNotificationAlertComponent],\n exports: [TuiNotificationAlertComponent],\n})\nexport class TuiNotificationAlertModule {}\n","import {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {\n TUI_NOTIFICATION_OPTIONS,\n TuiNotificationDefaultOptions,\n} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\n\nimport {NotificationAlert} from './notification-alert/Notification-alert';\nimport {TuiNotificationContentContext} from './notification-content-context';\n\nconst NO_HOST =\n 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNotificationsService {\n /** @internal */\n readonly items$ = new BehaviorSubject<ReadonlyArray<NotificationAlert<any, any>>>([]);\n\n constructor(\n @Inject(TUI_NOTIFICATION_OPTIONS)\n readonly options: TuiNotificationDefaultOptions,\n ) {}\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 return new Observable((observer: Observer<O>) => {\n tuiAssert.assert(!!this.items$.observers.length, NO_HOST);\n\n const notification = new NotificationAlert(observer, content, {\n ...this.options,\n ...options,\n });\n\n this.items$.next([...this.items$.value, notification]);\n\n return () => {\n this.items$.next(this.items$.value.filter(item => item !== notification));\n };\n });\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk';\nimport {\n tuiFadeInList,\n tuiHeightCollapseList,\n tuiSlideInRightList,\n} from '@taiga-ui/core/animations';\nimport {TuiAnimationOptions} from '@taiga-ui/core/interfaces';\nimport {TUI_ANIMATION_OPTIONS} from '@taiga-ui/core/tokens';\n\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList],\n})\nexport class TuiNotificationsHostComponent {\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiNotificationsService) readonly service: TuiNotificationsService,\n ) {}\n\n @tuiPure\n getAnimation(value: number): TuiAnimationOptions {\n return {\n value: String(value),\n ...this.options,\n };\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiNotificationAlertModule} from './notification-alert/notification-alert.module';\nimport {TuiNotificationsHostComponent} from './notifications-host/notifications-host.component';\n\n// TODO: remove in ivy compilation\nexport const NOTIFICATIONS_HOST = TuiNotificationsHostComponent;\n\n@NgModule({\n imports: [CommonModule, TuiNotificationAlertModule, TuiLetModule],\n declarations: [TuiNotificationsHostComponent],\n exports: [TuiNotificationsHostComponent],\n entryComponents: [TuiNotificationsHostComponent],\n providers: [\n {\n provide: TuiNotificationsHostComponent,\n useValue: NOTIFICATIONS_HOST,\n },\n ],\n})\nexport class TuiNotificationsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;IAyBI,2BACa,QAAqB,EACrB,OAAiE,EACzD,OAEhB;QAJQ,aAAQ,GAAR,QAAQ,CAAa;QACrB,YAAO,GAAP,OAAO,CAA0D;QACzD,YAAO,GAAP,OAAO,CAEvB;QAlBI,WAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAE7B,YAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAI/B,mBAAc,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAE7C,UAAK,GACV,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;QAWnB,IAAI,CAAC,SAAS;YACV,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,KAAK,UAAU;kBACtC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;kBAC3C,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAEjC,IAAI,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YACnC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;SAC5B;KACJ;IAEO,oCAAQ,GAAhB,UACI,OAAmE;QAEnE,OAAO,MAAM,IAAI,OAAO,CAAC;KAC5B;IACL,wBAAC;AAAD,CAAC;;;ICjBG,uCACyC,UAAmC,EAC5B,QAA2B,EAE9D,OAAsC;QAHV,eAAU,GAAV,UAAU,CAAyB;QAC5B,aAAQ,GAAR,QAAQ,CAAmB;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BAAuB,CAAC,CAAA;OAH3B,6BAA6B,CAazC;IAAD,oCAAC;CAbD;;ACbA;IACa,kBAAkB,GAAG,8BAA8B;;IAchE;KAAsC;IAAzB,sBAAsB;QAZlC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,EAAE,YAAY,CAAC;YACjE,YAAY,EAAE,CAAC,6BAA6B,CAAC;YAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;YACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;YAChD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,6BAA6B;oBACtC,QAAQ,EAAE,kBAAkB;iBAC/B;aACJ;SACJ,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACtBA;;;;;;"}
@@ -1,6 +0,0 @@
1
- export * from '@taiga-ui/core/modules/notifications';
2
-
3
- /**
4
- * Generated bundle index. Do not edit.
5
- */
6
- //# sourceMappingURL=taiga-ui-core-modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-modules.js","sources":["ng://@taiga-ui/core/modules/taiga-ui-core-modules.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;"}
@@ -1 +0,0 @@
1
- export * from '@taiga-ui/core/modules/notifications';
@@ -1,7 +0,0 @@
1
- export * from './notification-alert/Notification-alert';
2
- export * from './notification-alert/notification-alert.component';
3
- export * from './notification-alert/notification-alert.module';
4
- export * from './notification-content-context';
5
- export * from './notifications.module';
6
- export * from './notifications.service';
7
- export * from './notifications-host/notifications-host.component';
@@ -1,19 +0,0 @@
1
- import { TuiContextWithImplicit } from '@taiga-ui/cdk';
2
- import { TuiNotification } from '@taiga-ui/core/enums';
3
- import { TuiNotificationOptions, TuiNotificationOptionsWithData } from '@taiga-ui/core/interfaces';
4
- import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
5
- import { Observer } from 'rxjs';
6
- import { TuiNotificationContentContext } from '../notification-content-context';
7
- export declare class NotificationAlert<O, I> {
8
- readonly observer: Observer<O>;
9
- readonly content: PolymorpheusContent<TuiNotificationContentContext<O, I>>;
10
- private readonly options;
11
- readonly status: TuiNotification;
12
- readonly hasIcon: boolean;
13
- readonly autoClose: boolean | number;
14
- readonly hasCloseButton: boolean;
15
- readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;
16
- readonly data: I;
17
- constructor(observer: Observer<O>, content: PolymorpheusContent<TuiNotificationContentContext<O, I>>, options: Required<TuiNotificationOptions | TuiNotificationOptionsWithData<I>>);
18
- private withData;
19
- }
@@ -1,17 +0,0 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { TuiDestroyService } from '@taiga-ui/cdk';
3
- import { TuiNotificationDefaultOptions } from '@taiga-ui/core/tokens';
4
- import { TuiNotificationContentContext } from '../notification-content-context';
5
- import { NotificationAlert } from './Notification-alert';
6
- export declare class TuiNotificationAlertComponent<O, I> implements OnInit {
7
- private readonly elementRef;
8
- private readonly destroy$;
9
- readonly options: TuiNotificationDefaultOptions;
10
- item: NotificationAlert<O, I>;
11
- constructor(elementRef: ElementRef<HTMLElement>, destroy$: TuiDestroyService, options: TuiNotificationDefaultOptions);
12
- ngOnInit(): void;
13
- get context(): TuiNotificationContentContext<O, I>;
14
- closeNotification(): void;
15
- private calculateContext;
16
- private initAutoClose;
17
- }
@@ -1,2 +0,0 @@
1
- export declare class TuiNotificationAlertModule {
2
- }
@@ -1,10 +0,0 @@
1
- import { TuiContextWithImplicit } from '@taiga-ui/cdk';
2
- import { TuiNotification } from '@taiga-ui/core/enums';
3
- import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
- export interface TuiNotificationContentContext<O = void, I = undefined> extends TuiContextWithImplicit<TuiNotification> {
5
- label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;
6
- data: I;
7
- closeHook: () => void;
8
- emitHook: (data: O) => void;
9
- emitAndCloseHook: (data: O) => void;
10
- }
@@ -1,9 +0,0 @@
1
- import { AnimationOptions } from '@angular/animations';
2
- import { TuiAnimationOptions } from '@taiga-ui/core/interfaces';
3
- import { TuiNotificationsService } from '../notifications.service';
4
- export declare class TuiNotificationsHostComponent {
5
- private readonly options;
6
- readonly service: TuiNotificationsService;
7
- constructor(options: AnimationOptions, service: TuiNotificationsService);
8
- getAnimation(value: number): TuiAnimationOptions;
9
- }
@@ -1,4 +0,0 @@
1
- import { TuiNotificationsHostComponent } from './notifications-host/notifications-host.component';
2
- export declare const NOTIFICATIONS_HOST: typeof TuiNotificationsHostComponent;
3
- export declare class TuiNotificationsModule {
4
- }
@@ -1,15 +0,0 @@
1
- import { TuiNotificationOptions, TuiNotificationOptionsWithData } from '@taiga-ui/core/interfaces';
2
- import { TuiNotificationDefaultOptions } from '@taiga-ui/core/tokens';
3
- import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
- import { BehaviorSubject, Observable } from 'rxjs';
5
- import { NotificationAlert } from './notification-alert/Notification-alert';
6
- import { TuiNotificationContentContext } from './notification-content-context';
7
- export declare class TuiNotificationsService {
8
- readonly options: TuiNotificationDefaultOptions;
9
- /** @internal */
10
- readonly items$: BehaviorSubject<readonly NotificationAlert<any, any>[]>;
11
- constructor(options: TuiNotificationDefaultOptions);
12
- show<O = void>(content: PolymorpheusContent<TuiNotificationContentContext<O>>): Observable<O>;
13
- show<O = void>(content: PolymorpheusContent<TuiNotificationContentContext<O>>, options: TuiNotificationOptions): Observable<O>;
14
- show<O, I>(content: PolymorpheusContent<TuiNotificationContentContext<O, I>>, options: TuiNotificationOptionsWithData<I>): Observable<O>;
15
- }
@@ -1,13 +0,0 @@
1
- {
2
- "main": "../../bundles/taiga-ui-core-modules-notifications.umd.js",
3
- "module": "../../fesm5/taiga-ui-core-modules-notifications.js",
4
- "es2015": "../../fesm2015/taiga-ui-core-modules-notifications.js",
5
- "esm5": "../../esm5/modules/notifications/taiga-ui-core-modules-notifications.js",
6
- "esm2015": "../../esm2015/modules/notifications/taiga-ui-core-modules-notifications.js",
7
- "fesm5": "../../fesm5/taiga-ui-core-modules-notifications.js",
8
- "fesm2015": "../../fesm2015/taiga-ui-core-modules-notifications.js",
9
- "typings": "taiga-ui-core-modules-notifications.d.ts",
10
- "metadata": "taiga-ui-core-modules-notifications.metadata.json",
11
- "sideEffects": false,
12
- "name": "@taiga-ui/core/modules/notifications"
13
- }
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"NotificationAlert":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Observer","module":"rxjs","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":26,"character":36,"context":{"typeName":"O"},"module":"./notification-alert/Notification-alert"}]},{"__symbolic":"reference","name":"PolymorpheusContent","module":"@tinkoff/ng-polymorpheus","arguments":[{"__symbolic":"reference","name":"TuiNotificationContentContext"}]},{"__symbolic":"error","message":"Could not resolve type","line":28,"character":34,"context":{"typeName":"Required"},"module":"./notification-alert/Notification-alert"}]}],"withData":[{"__symbolic":"method"}]}},"TuiNotificationAlertComponent":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":19,"character":1},"arguments":[{"selector":"tui-notification-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":24,"character":16}],"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","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}"]}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":32,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":33,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":31,"character":68,"context":{"typeName":"HTMLElement"},"module":"./notification-alert/notification-alert.component"}]},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":32,"character":62},{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TuiNotificationDefaultOptions","line":34,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"closeNotification":[{"__symbolic":"method"}],"calculateContext":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":49,"character":5}]}],"initAutoClose":[{"__symbolic":"method"}]}},"TuiNotificationAlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":14},{"__symbolic":"reference","module":"@tinkoff/ng-polymorpheus","name":"PolymorpheusModule","line":8,"character":28},{"__symbolic":"reference","module":"@taiga-ui/core/components/notification","name":"TuiNotificationModule","line":8,"character":48}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}]}]}],"members":{}},"TuiNotificationContentContext":{"__symbolic":"interface"},"NOTIFICATIONS_HOST":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"TuiNotificationsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":14},{"__symbolic":"reference","name":"TuiNotificationAlertModule"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":11,"character":56}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"entryComponents":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"providers":[{"provide":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"useValue":{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}}]}]}],"members":{}},"TuiNotificationsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":27,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TuiNotificationDefaultOptions","line":28,"character":26}]}],"show":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"TuiNotificationsHostComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"tui-notifications-host","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":17,"character":21},"member":"OnPush"},"animations":[{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiFadeInList","line":18,"character":17},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiSlideInRightList","line":18,"character":32},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiHeightCollapseList","line":18,"character":53}],"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","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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_ANIMATION_OPTIONS","line":22,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":9},"arguments":[{"__symbolic":"reference","name":"TuiNotificationsService"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/animations","name":"AnimationOptions","line":22,"character":65},{"__symbolic":"reference","name":"TuiNotificationsService"}]}],"getAnimation":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":26,"character":5}]}]}}},"origins":{"NotificationAlert":"./notification-alert/Notification-alert","TuiNotificationAlertComponent":"./notification-alert/notification-alert.component","TuiNotificationAlertModule":"./notification-alert/notification-alert.module","TuiNotificationContentContext":"./notification-content-context","NOTIFICATIONS_HOST":"./notifications-host/notifications-host.component","TuiNotificationsModule":"./notifications.module","TuiNotificationsService":"./notifications.service","TuiNotificationsHostComponent":"./notifications-host/notifications-host.component"},"importAs":"@taiga-ui/core/modules/notifications"}
@@ -1,13 +0,0 @@
1
- {
2
- "main": "../bundles/taiga-ui-core-modules.umd.js",
3
- "module": "../fesm5/taiga-ui-core-modules.js",
4
- "es2015": "../fesm2015/taiga-ui-core-modules.js",
5
- "esm5": "../esm5/modules/taiga-ui-core-modules.js",
6
- "esm2015": "../esm2015/modules/taiga-ui-core-modules.js",
7
- "fesm5": "../fesm5/taiga-ui-core-modules.js",
8
- "fesm2015": "../fesm2015/taiga-ui-core-modules.js",
9
- "typings": "taiga-ui-core-modules.d.ts",
10
- "metadata": "taiga-ui-core-modules.metadata.json",
11
- "sideEffects": false,
12
- "name": "@taiga-ui/core/modules"
13
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/core/modules/notifications"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/core/modules"}