@taiga-ui/core 2.23.0 → 2.24.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 (272) hide show
  1. package/README.md +7 -3
  2. package/bundles/taiga-ui-core-components-button.umd.js +21 -7
  3. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  4. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
  7. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-calendar.umd.min.js +1 -1
  9. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-data-list.umd.js +4 -3
  11. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  13. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -1
  15. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  17. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  19. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  20. package/bundles/taiga-ui-core-components-error.umd.js +1 -1
  21. package/bundles/taiga-ui-core-components-error.umd.min.js +1 -1
  22. package/bundles/taiga-ui-core-components-expand.umd.js +1 -1
  23. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  25. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-hints-host.umd.js +2 -2
  27. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +1 -1
  29. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +1 -14
  31. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  33. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  35. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  37. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-loader.umd.js +2 -2
  39. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-loader.umd.min.js +1 -1
  41. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-notification.umd.js +1 -1
  43. package/bundles/taiga-ui-core-components-notification.umd.min.js +1 -1
  44. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +1 -1
  45. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  47. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +1 -1
  49. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  50. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +3 -3
  51. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  52. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  53. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  56. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +1 -1
  57. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +1 -1
  59. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-components-scrollbar.umd.js +34 -24
  61. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  62. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
  63. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  65. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  66. package/bundles/taiga-ui-core-constants.umd.js +9 -1
  67. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  68. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  69. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -3
  71. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  74. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  75. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js +1 -1
  76. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-core-modules-notifications.umd.js +2 -2
  78. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  80. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-core-utils-mask.umd.js +27 -8
  82. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  83. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  84. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  85. package/components/button/button-options.d.ts +10 -0
  86. package/components/button/button.component.d.ts +8 -7
  87. package/components/button/index.d.ts +1 -0
  88. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  89. package/components/calendar/taiga-ui-core-components-calendar.metadata.json +1 -1
  90. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  91. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  92. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  93. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  94. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  95. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  96. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +1 -3
  97. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  98. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  99. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  100. package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
  101. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  102. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  103. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  104. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
  105. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  106. package/components/scrollbar/scrollable.directive.d.ts +5 -1
  107. package/components/scrollbar/scrollbar.component.d.ts +4 -3
  108. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  109. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  110. package/constants/events.d.ts +5 -0
  111. package/constants/regexp.d.ts +1 -0
  112. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  113. package/constants/version.d.ts +1 -1
  114. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  115. package/esm2015/components/button/button-options.js +10 -0
  116. package/esm2015/components/button/button.component.js +12 -8
  117. package/esm2015/components/button/index.js +2 -1
  118. package/esm2015/components/calendar/calendar.component.js +2 -2
  119. package/esm2015/components/data-list/data-list.component.js +3 -2
  120. package/esm2015/components/data-list/option/option.component.js +3 -3
  121. package/esm2015/components/dialog/dialog.component.js +2 -2
  122. package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
  123. package/esm2015/components/error/error.component.js +1 -1
  124. package/esm2015/components/expand/expand.component.js +2 -2
  125. package/esm2015/components/hints-host/hint-box/hint-box.component.js +1 -1
  126. package/esm2015/components/hints-host/hints-host.component.js +2 -2
  127. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +3 -12
  128. package/esm2015/components/label/label.component.js +2 -2
  129. package/esm2015/components/loader/loader.component.js +3 -3
  130. package/esm2015/components/notification/notification.component.js +1 -1
  131. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +2 -2
  132. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +1 -1
  133. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +3 -3
  134. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +2 -2
  135. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +2 -2
  136. package/esm2015/components/scroll-controls/scroll-controls.component.js +1 -1
  137. package/esm2015/components/scrollbar/scrollable.directive.js +18 -4
  138. package/esm2015/components/scrollbar/scrollbar.component.js +20 -18
  139. package/esm2015/components/tooltip/tooltip.component.js +1 -1
  140. package/esm2015/constants/events.js +6 -1
  141. package/esm2015/constants/regexp.js +2 -1
  142. package/esm2015/constants/version.js +2 -2
  143. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  144. package/esm2015/directives/textfield-controller/textfield-size.directive.js +4 -2
  145. package/esm2015/directives/textfield-controller/textfield-type.directive.js +4 -2
  146. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  147. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  148. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  149. package/esm2015/utils/mask/create-number-mask.js +27 -10
  150. package/esm5/components/button/button-options.js +10 -0
  151. package/esm5/components/button/button.component.js +12 -8
  152. package/esm5/components/button/index.js +2 -1
  153. package/esm5/components/calendar/calendar.component.js +2 -2
  154. package/esm5/components/data-list/data-list.component.js +3 -2
  155. package/esm5/components/data-list/option/option.component.js +3 -3
  156. package/esm5/components/dialog/dialog.component.js +2 -2
  157. package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
  158. package/esm5/components/error/error.component.js +1 -1
  159. package/esm5/components/expand/expand.component.js +2 -2
  160. package/esm5/components/hints-host/hint-box/hint-box.component.js +1 -1
  161. package/esm5/components/hints-host/hints-host.component.js +2 -2
  162. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +3 -16
  163. package/esm5/components/label/label.component.js +2 -2
  164. package/esm5/components/loader/loader.component.js +3 -3
  165. package/esm5/components/notification/notification.component.js +1 -1
  166. package/esm5/components/primitive-calendar/primitive-calendar.component.js +2 -2
  167. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +1 -1
  168. package/esm5/components/primitive-textfield/primitive-textfield.component.js +3 -3
  169. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +2 -2
  170. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +2 -2
  171. package/esm5/components/scroll-controls/scroll-controls.component.js +1 -1
  172. package/esm5/components/scrollbar/scrollable.directive.js +17 -5
  173. package/esm5/components/scrollbar/scrollbar.component.js +20 -22
  174. package/esm5/components/tooltip/tooltip.component.js +1 -1
  175. package/esm5/constants/events.js +6 -1
  176. package/esm5/constants/regexp.js +2 -1
  177. package/esm5/constants/version.js +2 -2
  178. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  179. package/esm5/directives/textfield-controller/textfield-size.directive.js +4 -2
  180. package/esm5/directives/textfield-controller/textfield-type.directive.js +4 -2
  181. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  182. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  183. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  184. package/esm5/utils/mask/create-number-mask.js +29 -10
  185. package/fesm2015/taiga-ui-core-components-button.js +21 -9
  186. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  187. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  188. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  189. package/fesm2015/taiga-ui-core-components-data-list.js +4 -3
  190. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  191. package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
  192. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  193. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  194. package/fesm2015/taiga-ui-core-components-error.js +1 -1
  195. package/fesm2015/taiga-ui-core-components-expand.js +1 -1
  196. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  197. package/fesm2015/taiga-ui-core-components-hints-host.js +2 -2
  198. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  199. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +2 -11
  200. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  201. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  202. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  203. package/fesm2015/taiga-ui-core-components-loader.js +2 -2
  204. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  205. package/fesm2015/taiga-ui-core-components-notification.js +1 -1
  206. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +1 -1
  207. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  208. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +1 -1
  209. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +3 -3
  210. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  211. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +1 -1
  212. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  213. package/fesm2015/taiga-ui-core-components-scroll-controls.js +1 -1
  214. package/fesm2015/taiga-ui-core-components-scrollbar.js +33 -17
  215. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  216. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  217. package/fesm2015/taiga-ui-core-constants.js +8 -2
  218. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  219. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +9 -3
  220. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  221. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  222. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  223. package/fesm2015/taiga-ui-core-modules-notifications.js +2 -2
  224. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  225. package/fesm2015/taiga-ui-core-utils-mask.js +26 -9
  226. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  227. package/fesm5/taiga-ui-core-components-button.js +21 -9
  228. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  229. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  230. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  231. package/fesm5/taiga-ui-core-components-data-list.js +4 -3
  232. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  233. package/fesm5/taiga-ui-core-components-dialog.js +1 -1
  234. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  235. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  236. package/fesm5/taiga-ui-core-components-error.js +1 -1
  237. package/fesm5/taiga-ui-core-components-expand.js +1 -1
  238. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  239. package/fesm5/taiga-ui-core-components-hints-host.js +2 -2
  240. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  241. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +2 -15
  242. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  243. package/fesm5/taiga-ui-core-components-label.js +1 -1
  244. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  245. package/fesm5/taiga-ui-core-components-loader.js +2 -2
  246. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  247. package/fesm5/taiga-ui-core-components-notification.js +1 -1
  248. package/fesm5/taiga-ui-core-components-primitive-calendar.js +1 -1
  249. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  250. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +1 -1
  251. package/fesm5/taiga-ui-core-components-primitive-textfield.js +3 -3
  252. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  253. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +1 -1
  254. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  255. package/fesm5/taiga-ui-core-components-scroll-controls.js +1 -1
  256. package/fesm5/taiga-ui-core-components-scrollbar.js +32 -22
  257. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  258. package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
  259. package/fesm5/taiga-ui-core-constants.js +8 -2
  260. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  261. package/fesm5/taiga-ui-core-directives-textfield-controller.js +9 -3
  262. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  263. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  264. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  265. package/fesm5/taiga-ui-core-modules-notifications.js +2 -2
  266. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  267. package/fesm5/taiga-ui-core-utils-mask.js +29 -10
  268. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  269. package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.metadata.json +1 -1
  270. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  271. package/package.json +4 -4
  272. package/styles/mixins/textfield.less +1 -0
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function u(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r}var p=function(){function t(){this.value=i.TuiMonth.currentLocal(),this.min=i.TUI_FIRST_DAY,this.max=i.TUI_LAST_DAY,this.valueChange=new e.EventEmitter,this.yearClick=new e.EventEmitter}return Object.defineProperty(t.prototype,"prevMonthDisabled",{get:function(){return this.value.monthSameOrBefore(this.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextMonthDisabled",{get:function(){return this.value.monthSameOrAfter(this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oneYear",{get:function(){return this.min.year===this.max.year},enumerable:!0,configurable:!0}),t.prototype.onYearClick=function(){this.yearClick.next(this.value)},t.prototype.onPrevMonthClick=function(){this.appendValueWithLimit({month:-1})},t.prototype.onNextMonthClick=function(){this.appendValueWithLimit({month:1})},t.prototype.appendValueWithLimit=function(t){var e=this.value.append(t);this.min.monthSameOrAfter(e)?this.updateValue(this.min):this.max.monthSameOrBefore(e)?this.updateValue(this.max):this.updateValue(e)},t.prototype.updateValue=function(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))},u([e.Input(),i.tuiDefaultProp()],t.prototype,"value",void 0),u([e.Input(),i.tuiDefaultProp()],t.prototype,"min",void 0),u([e.Input(),i.tuiDefaultProp()],t.prototype,"max",void 0),u([e.Output()],t.prototype,"valueChange",void 0),u([e.Output()],t.prototype,"yearClick",void 0),t=u([e.Component({selector:"tui-primitive-year-month-pagination",template:'<tui-primitive-spin-button\n [focusable]="false"\n [leftDisabled]="prevMonthDisabled"\n [rightDisabled]="nextMonthDisabled"\n (leftClick)="onPrevMonthClick()"\n (rightClick)="onNextMonthClick()"\n>\n {{value | tuiMonth | async}}\n <ng-container *ngIf="oneYear; else button">\n {{value.formattedYear}}\n </ng-container>\n <ng-template #button>\n <button\n automation-id="tui-primitive-year-month-pagination__year-button"\n tuiLink\n type="button"\n [tuiFocusable]="false"\n (click)="onYearClick()"\n >\n {{value.formattedYear}}\n </button>\n </ng-template>\n</tui-primitive-spin-button>\n',styles:[":host{display:block}"]})],t)}(),l=function(){function t(){}return t=u([e.NgModule({imports:[n.CommonModule,i.TuiFocusableModule,a.TuiPrimitiveSpinButtonModule,o.TuiLinkModule,r.TuiMonthPipeModule],declarations:[p],exports:[p]})],t)}();t.TuiPrimitiveYearMonthPaginationComponent=p,t.TuiPrimitiveYearMonthPaginationModule=l,Object.defineProperty(t,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */function u(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r}var p=function(){function t(){this.value=i.TuiMonth.currentLocal(),this.min=i.TUI_FIRST_DAY,this.max=i.TUI_LAST_DAY,this.valueChange=new e.EventEmitter,this.yearClick=new e.EventEmitter}return Object.defineProperty(t.prototype,"prevMonthDisabled",{get:function(){return this.value.monthSameOrBefore(this.min)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextMonthDisabled",{get:function(){return this.value.monthSameOrAfter(this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oneYear",{get:function(){return this.min.year===this.max.year},enumerable:!0,configurable:!0}),t.prototype.onYearClick=function(){this.yearClick.next(this.value)},t.prototype.onPrevMonthClick=function(){this.appendValueWithLimit({month:-1})},t.prototype.onNextMonthClick=function(){this.appendValueWithLimit({month:1})},t.prototype.appendValueWithLimit=function(t){var e=this.value.append(t);this.min.monthSameOrAfter(e)?this.updateValue(this.min):this.max.monthSameOrBefore(e)?this.updateValue(this.max):this.updateValue(e)},t.prototype.updateValue=function(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))},u([e.Input(),i.tuiDefaultProp()],t.prototype,"value",void 0),u([e.Input(),i.tuiDefaultProp()],t.prototype,"min",void 0),u([e.Input(),i.tuiDefaultProp()],t.prototype,"max",void 0),u([e.Output()],t.prototype,"valueChange",void 0),u([e.Output()],t.prototype,"yearClick",void 0),t=u([e.Component({selector:"tui-primitive-year-month-pagination",template:'<tui-primitive-spin-button\n [focusable]="false"\n [leftDisabled]="prevMonthDisabled"\n [rightDisabled]="nextMonthDisabled"\n (leftClick)="onPrevMonthClick()"\n (rightClick)="onNextMonthClick()"\n>\n {{ value | tuiMonth | async }}\n <ng-container *ngIf="oneYear; else button">\n {{ value.formattedYear }}\n </ng-container>\n <ng-template #button>\n <button\n automation-id="tui-primitive-year-month-pagination__year-button"\n tuiLink\n type="button"\n [tuiFocusable]="false"\n (click)="onYearClick()"\n >\n {{ value.formattedYear }}\n </button>\n </ng-template>\n</tui-primitive-spin-button>\n',styles:[":host{display:block}"]})],t)}(),l=function(){function t(){}return t=u([e.NgModule({imports:[n.CommonModule,i.TuiFocusableModule,a.TuiPrimitiveSpinButtonModule,o.TuiLinkModule,r.TuiMonthPipeModule],declarations:[p],exports:[p]})],t)}();t.TuiPrimitiveYearMonthPaginationComponent=p,t.TuiPrimitiveYearMonthPaginationModule=l,Object.defineProperty(t,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts","ng://@taiga-ui/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.ts"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","TuiPrimitiveYearMonthPaginationComponent","this","value","TuiMonth","currentLocal","min","TUI_FIRST_DAY","max","TUI_LAST_DAY","valueChange","EventEmitter","yearClick","prototype","monthSameOrBefore","monthSameOrAfter","year","onYearClick","next","onPrevMonthClick","appendValueWithLimit","month","onNextMonthClick","date","newMonth","append","updateValue","monthSame","emit","Input","tuiDefaultProp","Output","Component","selector","template","TuiPrimitiveYearMonthPaginationModule","NgModule","imports","CommonModule","TuiFocusableModule","TuiPrimitiveSpinButtonModule","TuiLinkModule","TuiMonthPipeModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAoDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAK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AAKC,MAAMwB,UAAUxB,KAIzBD,KAAKC,MAAQA,EACbD,KAAKQ,YAAYkB,KAAKzB,KAhE1BlB,EAAA,CAFC4C,EAAAA,QACAC,EAAAA,8CAKD7C,EAAA,CAFC4C,EAAAA,QACAC,EAAAA,4CAKD7C,EAAA,CAFC4C,EAAAA,QACAC,EAAAA,4CAID7C,EAAA,CADC8C,EAAAA,4CAID9C,EAAA,CADC8C,EAAAA,0CAlBQ9B,EAAwChB,EAAA,CALpD+C,EAAAA,UAAU,CACPC,SAAU,sCACVC,SAAA,6uBAGSjC,mBCIb,SAAAkC,KAAoD,OAAvCA,EAAqClD,EAAA,CAXjDmD,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,mBACAC,EAAAA,6BACAC,EAAAA,cACAC,EAAAA,oBAEJC,aAAc,CAAC1C,GACf2C,QAAS,CAAC3C,MAEDkC","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 {Component, EventEmitter, Input, Output} from '@angular/core';\nimport {\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n tuiDefaultProp,\n TuiMonth,\n TuiMonthLike,\n TuiYear,\n} from '@taiga-ui/cdk';\nimport {TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces';\n\n@Component({\n selector: 'tui-primitive-year-month-pagination',\n templateUrl: './primitive-year-month-pagination.template.html',\n styleUrls: ['./primitive-year-month-pagination.style.less'],\n})\nexport class TuiPrimitiveYearMonthPaginationComponent\n implements TuiWithOptionalMinMax<TuiMonth>\n{\n @Input()\n @tuiDefaultProp()\n value = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n min: TuiMonth = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max: TuiMonth = TUI_LAST_DAY;\n\n @Output()\n readonly valueChange = new EventEmitter<TuiMonth>();\n\n @Output()\n readonly yearClick = new EventEmitter<TuiYear>();\n\n get prevMonthDisabled(): boolean {\n return this.value.monthSameOrBefore(this.min);\n }\n\n get nextMonthDisabled(): boolean {\n return this.value.monthSameOrAfter(this.max);\n }\n\n get oneYear(): boolean {\n return this.min.year === this.max.year;\n }\n\n onYearClick() {\n this.yearClick.next(this.value);\n }\n\n onPrevMonthClick() {\n this.appendValueWithLimit({month: -1});\n }\n\n onNextMonthClick() {\n this.appendValueWithLimit({month: 1});\n }\n\n private appendValueWithLimit(date: TuiMonthLike) {\n const newMonth: TuiMonth = this.value.append(date);\n\n if (this.min.monthSameOrAfter(newMonth)) {\n this.updateValue(this.min);\n\n return;\n }\n\n if (this.max.monthSameOrBefore(newMonth)) {\n this.updateValue(this.max);\n\n return;\n }\n\n this.updateValue(newMonth);\n }\n\n private updateValue(value: TuiMonth) {\n if (this.value.monthSame(value)) {\n return;\n }\n\n this.value = value;\n this.valueChange.emit(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusableModule} from '@taiga-ui/cdk';\nimport {TuiLinkModule} from '@taiga-ui/core/components/link';\nimport {TuiPrimitiveSpinButtonModule} from '@taiga-ui/core/components/primitive-spin-button';\nimport {TuiMonthPipeModule} from '@taiga-ui/core/pipes';\n\nimport {TuiPrimitiveYearMonthPaginationComponent} from './primitive-year-month-pagination.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusableModule,\n TuiPrimitiveSpinButtonModule,\n TuiLinkModule,\n TuiMonthPipeModule,\n ],\n declarations: [TuiPrimitiveYearMonthPaginationComponent],\n exports: [TuiPrimitiveYearMonthPaginationComponent],\n})\nexport class TuiPrimitiveYearMonthPaginationModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts","ng://@taiga-ui/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.ts"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","TuiPrimitiveYearMonthPaginationComponent","this","value","TuiMonth","currentLocal","min","TUI_FIRST_DAY","max","TUI_LAST_DAY","valueChange","EventEmitter","yearClick","prototype","monthSameOrBefore","monthSameOrAfter","year","onYearClick","next","onPrevMonthClick","appendValueWithLimit","month","onNextMonthClick","date","newMonth","append","updateValue","monthSame","emit","Input","tuiDefaultProp","Output","Component","selector","template","TuiPrimitiveYearMonthPaginationModule","NgModule","imports","CommonModule","TuiFocusableModule","TuiPrimitiveSpinButtonModule","TuiLinkModule","TuiMonthPipeModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAoDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAWa,MAAIL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAChJ,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,mBCxChE,SAAAO,IAKIC,KAAAC,MAAQC,EAAAA,SAASC,eAIjBH,KAAAI,IAAgBC,EAAAA,cAIhBL,KAAAM,IAAgBC,EAAAA,aAGPP,KAAAQ,YAAc,IAAIC,EAAAA,aAGlBT,KAAAU,UAAY,IAAID,EAAAA,aAoD7B,OAlDIhB,OAAAK,eAAIC,EAAAY,UAAA,oBAAiB,KAArB,WACI,OAAOX,KAAKC,MAAMW,kBAAkBZ,KAAKI,sCAG7CX,OAAAK,eAAIC,EAAAY,UAAA,oBAAiB,KAArB,WACI,OAAOX,KAAKC,MAAMY,iBAAiBb,KAAKM,sCAG5Cb,OAAAK,eAAIC,EAAAY,UAAA,UAAO,KAAX,WACI,OAAOX,KAAKI,IAAIU,OAASd,KAAKM,IAAIQ,sCAGtCf,EAAAY,UAAAI,YAAA,WACIf,KAAKU,UAAUM,KAAKhB,KAAKC,QAG7BF,EAAAY,UAAAM,iBAAA,WACIjB,KAAKkB,qBAAqB,CAACC,OAAQ,KAGvCpB,EAAAY,UAAAS,iBAAA,WACIpB,KAAKkB,qBAAqB,CAACC,MAAO,KAG9BpB,EAAAY,UAAAO,qBAAR,SAA6BG,GACzB,IAAMC,EAAqBtB,KAAKC,MAAMsB,OAAOF,GAEzCrB,KAAKI,IAAIS,iBAAiBS,GAC1BtB,KAAKwB,YAAYxB,KAAKI,KAKtBJ,KAAKM,IAAIM,kBAAkBU,GAC3BtB,KAAKwB,YAAYxB,KAAKM,KAK1BN,KAAKwB,YAAYF,IAGbvB,EAAAY,UAAAa,YAAR,SAAoBvB,GACZD,KAAKC,MAAMwB,UAAUxB,KAIzBD,KAAKC,MAAQA,EACbD,KAAKQ,YAAYkB,KAAKzB,KAhE1BlB,EAAA,CAFC4C,EAAAA,QACAC,EAAAA,8CAKD7C,EAAA,CAFC4C,EAAAA,QACAC,EAAAA,4CAKD7C,EAAA,CAFC4C,EAAAA,QACAC,EAAAA,4CAID7C,EAAA,CADC8C,EAAAA,4CAID9C,EAAA,CADC8C,EAAAA,0CAlBQ9B,EAAwChB,EAAA,CALpD+C,EAAAA,UAAU,CACPC,SAAU,sCACVC,SAAA,mvBAGSjC,mBCIb,SAAAkC,KAAoD,OAAvCA,EAAqClD,EAAA,CAXjDmD,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,mBACAC,EAAAA,6BACAC,EAAAA,cACAC,EAAAA,oBAEJC,aAAc,CAAC1C,GACf2C,QAAS,CAAC3C,MAEDkC","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 {Component, EventEmitter, Input, Output} from '@angular/core';\nimport {\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n tuiDefaultProp,\n TuiMonth,\n TuiMonthLike,\n TuiYear,\n} from '@taiga-ui/cdk';\nimport {TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces';\n\n@Component({\n selector: 'tui-primitive-year-month-pagination',\n templateUrl: './primitive-year-month-pagination.template.html',\n styleUrls: ['./primitive-year-month-pagination.style.less'],\n})\nexport class TuiPrimitiveYearMonthPaginationComponent\n implements TuiWithOptionalMinMax<TuiMonth>\n{\n @Input()\n @tuiDefaultProp()\n value = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n min: TuiMonth = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max: TuiMonth = TUI_LAST_DAY;\n\n @Output()\n readonly valueChange = new EventEmitter<TuiMonth>();\n\n @Output()\n readonly yearClick = new EventEmitter<TuiYear>();\n\n get prevMonthDisabled(): boolean {\n return this.value.monthSameOrBefore(this.min);\n }\n\n get nextMonthDisabled(): boolean {\n return this.value.monthSameOrAfter(this.max);\n }\n\n get oneYear(): boolean {\n return this.min.year === this.max.year;\n }\n\n onYearClick() {\n this.yearClick.next(this.value);\n }\n\n onPrevMonthClick() {\n this.appendValueWithLimit({month: -1});\n }\n\n onNextMonthClick() {\n this.appendValueWithLimit({month: 1});\n }\n\n private appendValueWithLimit(date: TuiMonthLike) {\n const newMonth: TuiMonth = this.value.append(date);\n\n if (this.min.monthSameOrAfter(newMonth)) {\n this.updateValue(this.min);\n\n return;\n }\n\n if (this.max.monthSameOrBefore(newMonth)) {\n this.updateValue(this.max);\n\n return;\n }\n\n this.updateValue(newMonth);\n }\n\n private updateValue(value: TuiMonth) {\n if (this.value.monthSame(value)) {\n return;\n }\n\n this.value = value;\n this.valueChange.emit(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusableModule} from '@taiga-ui/cdk';\nimport {TuiLinkModule} from '@taiga-ui/core/components/link';\nimport {TuiPrimitiveSpinButtonModule} from '@taiga-ui/core/components/primitive-spin-button';\nimport {TuiMonthPipeModule} from '@taiga-ui/core/pipes';\n\nimport {TuiPrimitiveYearMonthPaginationComponent} from './primitive-year-month-pagination.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusableModule,\n TuiPrimitiveSpinButtonModule,\n TuiLinkModule,\n TuiMonthPipeModule,\n ],\n declarations: [TuiPrimitiveYearMonthPaginationComponent],\n exports: [TuiPrimitiveYearMonthPaginationComponent],\n})\nexport class TuiPrimitiveYearMonthPaginationModule {}\n"]}
@@ -287,7 +287,7 @@
287
287
  core.Component({
288
288
  selector: 'tui-notification-alert',
289
289
  changeDetection: core.ChangeDetectionStrategy.OnPush,
290
- 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 >\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 >\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",
290
+ 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",
291
291
  providers: [cdk.TuiDestroyService],
292
292
  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}"]
293
293
  }),
@@ -385,7 +385,7 @@
385
385
  core.Component({
386
386
  selector: 'tui-notifications-host',
387
387
  changeDetection: core.ChangeDetectionStrategy.OnPush,
388
- template: "<ng-container *tuiLet=\"service.items$ | async as items\">\n <div\n *ngIf=\"items.length\"\n class=\"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 class=\"alert\"\n role=\"alert\"\n [item]=\"item\"\n ></tui-notification-alert>\n </div>\n</ng-container>\n",
388
+ template: "<ng-container *tuiLet=\"service.items$ | async as items\">\n <div\n *ngIf=\"items.length\"\n class=\"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=\"alert\"\n [item]=\"item\"\n ></tui-notification-alert>\n </div>\n</ng-container>\n",
389
389
  animations: [animations.tuiFadeInList, animations.tuiSlideInRightList, animations.tuiHeightCollapseList],
390
390
  styles: [":host{position:fixed;top:0;left:0;width:100%;height:0}.wrapper{width:18rem;margin-left:auto;padding:2rem 3rem 0 0;pointer-events:none}@media screen and (max-width:47.9375em){.wrapper{padding:1rem 1rem 0 0}}@media screen and (min-width:80em){.wrapper{width:23rem}}.alert{pointer-events:auto}.alert:not(:first-child){margin-top:.75rem}"]
391
391
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-modules-notifications.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","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/notification-alert/Notification-alert.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"],"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 {\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 {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\nexport const DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;\n\n@Component({\n selector: 'tui-notification-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\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 public readonly options: NotificationTokenOptions,\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 : DEFAULT_ALERT_AUTOCLOSE_TIMEOUT,\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 {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';\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 {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\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 public readonly options: NotificationTokenOptions,\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';\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\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';\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"],"names":["timer","isNumber","takeUntil","fromEvent","repeatWhen","ElementRef","Inject","TuiDestroyService","TUI_NOTIFICATION_OPTIONS","Input","tuiPure","Component","ChangeDetectionStrategy","NgModule","CommonModule","PolymorpheusModule","TuiNotificationModule","BehaviorSubject","Observable","tuiAssert","Injectable","TUI_ANIMATION_OPTIONS","tuiFadeInList","tuiSlideInRightList","tuiHeightCollapseList","TuiLetModule"],"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,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;IAC3C,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACzF,CAAC;AACD;IACO,IAAI,QAAQ,GAAG,WAAW;IACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAA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AkBA;;;QCEI,uCACoD,OAAyB,EAC/B,OAAgC;YAD1B,YAAO,GAAP,OAAO,CAAkB;YAC/B,YAAO,GAAP,OAAO,CAAyB;SAC1E;QAGJ,oDAAY,GAAZ,UAAa,KAAa;YACtB,kBACI,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IACjB,IAAI,CAAC,OAAO,EACjB;SACL;;oDAVIF,WAAM,SAACe,4BAAqB;oBACsB,uBAAuB,uBAAzEf,WAAM,SAAC,uBAAuB;;QAInC;YADCI,WAAO;yEAMP;QAZQ,6BAA6B;YAPzCC,cAAS,CAAC;gBACP,QAAQ,EAAE,wBAAwB;gBAClC,eAAe,EAAEC,4BAAuB,CAAC,MAAM;gBAC/C,+iBAAiD;gBAEjD,UAAU,EAAE,CAACU,wBAAa,EAAEC,8BAAmB,EAAEC,gCAAqB,CAAC;;aAC1E,CAAC;YAGO,WAAAlB,WAAM,CAACe,4BAAqB,CAAC,CAAA;YAC7B,WAAAf,WAAM,CAAC,uBAAuB,CAAC,CAAA;WAH3B,6BAA6B,CAazC;QAAD,oCAAC;KAbD;;ICbA;QACa,kBAAkB,GAAG,8BAA8B;;QAchE;SAAsC;QAAzB,sBAAsB;YAZlCO,aAAQ,CAAC;gBACN,OAAO,EAAE,CAACC,mBAAY,EAAE,0BAA0B,EAAEW,gBAAY,CAAC;gBACjE,YAAY,EAAE,CAAC,6BAA6B,CAAC;gBAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;gBACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;gBAChD,SAAS,EAAE;oBACP;wBACI,OAAO,EAAE,6BAA6B;wBACtC,QAAQ,EAAE,kBAAkB;qBAC/B;iBACJ;aACJ,CAAC;WACW,sBAAsB,CAAG;QAAD,6BAAC;KAAtC;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-modules-notifications.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","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/notification-alert/Notification-alert.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"],"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 {\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 {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\nexport const DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;\n\n@Component({\n selector: 'tui-notification-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\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 public readonly options: NotificationTokenOptions,\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 : DEFAULT_ALERT_AUTOCLOSE_TIMEOUT,\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 {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';\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 {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\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 public readonly options: NotificationTokenOptions,\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';\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\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';\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"],"names":["timer","isNumber","takeUntil","fromEvent","repeatWhen","ElementRef","Inject","TuiDestroyService","TUI_NOTIFICATION_OPTIONS","Input","tuiPure","Component","ChangeDetectionStrategy","NgModule","CommonModule","PolymorpheusModule","TuiNotificationModule","BehaviorSubject","Observable","tuiAssert","Injectable","TUI_ANIMATION_OPTIONS","tuiFadeInList","tuiSlideInRightList","tuiHeightCollapseList","TuiLetModule"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IAC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AAC,IACjB,IAAI,CAAC,OAAO,EACjB;SACL;;oDAVIF,WAAM,SAACe,4BAAqB;oBACsB,uBAAuB,uBAAzEf,WAAM,SAAC,uBAAuB;;QAInC;YADCI,WAAO;yEAMP;QAZQ,6BAA6B;YAPzCC,cAAS,CAAC;gBACP,QAAQ,EAAE,wBAAwB;gBAClC,eAAe,EAAEC,4BAAuB,CAAC,MAAM;gBAC/C,+iBAAiD;gBAEjD,UAAU,EAAE,CAACU,wBAAa,EAAEC,8BAAmB,EAAEC,gCAAqB,CAAC;;aAC1E,CAAC;YAGO,WAAAlB,WAAM,CAACe,4BAAqB,CAAC,CAAA;YAC7B,WAAAf,WAAM,CAAC,uBAAuB,CAAC,CAAA;WAH3B,6BAA6B,CAazC;QAAD,oCAAC;KAbD;;ICbA;QACa,kBAAkB,GAAG,8BAA8B;;QAchE;SAAsC;QAAzB,sBAAsB;YAZlCO,aAAQ,CAAC;gBACN,OAAO,EAAE,CAACC,mBAAY,EAAE,0BAA0B,EAAEW,gBAAY,CAAC;gBACjE,YAAY,EAAE,CAAC,6BAA6B,CAAC;gBAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;gBACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;gBAChD,SAAS,EAAE;oBACP;wBACI,OAAO,EAAE,6BAA6B;wBACtC,QAAQ,EAAE,kBAAkB;qBAC/B;iBACJ;aACJ,CAAC;WACW,sBAAsB,CAAG;QAAD,6BAAC;KAAtC;;;;;;;;;;;;;;;;;;;"}
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var l=function(){return(l=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 p(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 s=t.length-1;s>=0;s--)(i=t[s])&&(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 m(t,e){return function(n,o){e(n,o,t)}}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}var d=function(){function t(t,e,n){this.elementRef=t,this.destroy$=e,this.options=n}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.observer.complete()},t.prototype.calculateContext=function(t){var e=t.status,n=t.data,o=t.label,i=t.observer;return{$implicit:e,data:n,label:o,closeHook:function(){i.complete()},emitHook:function(t){i.next(t)},emitAndCloseHook:function(t){i.next(t),i.complete()}}},t.prototype.initAutoClose=function(){var t=this;this.item.autoClose&&i.timer(n.isNumber(this.item.autoClose)?this.item.autoClose:3e3).pipe(r.takeUntil(i.fromEvent(this.elementRef.nativeElement,"mouseenter")),r.repeatWhen((function(){return i.fromEvent(t.elementRef.nativeElement,"mouseleave")})),r.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:[o.TUI_NOTIFICATION_OPTIONS]}]}]},p([e.Input()],t.prototype,"item",void 0),p([n.tuiPure],t.prototype,"calculateContext",null),t=p([e.Component({selector:"tui-notification-alert",changeDetection:e.ChangeDetectionStrategy.OnPush,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 >\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 >\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',providers:[n.TuiDestroyService],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}"]}),m(0,e.Inject(e.ElementRef)),m(1,e.Inject(n.TuiDestroyService)),m(2,e.Inject(o.TUI_NOTIFICATION_OPTIONS))],t)}(),h=function(){function t(){}return t=p([e.NgModule({imports:[a.CommonModule,u.PolymorpheusModule,s.TuiNotificationModule],declarations:[d],exports:[d]})],t)}(),g=function(){function t(t,e,n){this.observer=t,this.content=e,this.options=n,this.status=this.options.status,this.hasIcon=this.options.hasIcon,this.hasCloseButton=this.options.hasCloseButton,this.label=this.options.label,this.autoClose="function"==typeof this.options.autoClose?this.options.autoClose(this.options.status):this.options.autoClose,n&&this.withData(n)&&(this.data=n.data)}return t.prototype.withData=function(t){return"data"in t},t}(),y=function(){function t(t){this.options=t,this.items$=new i.BehaviorSubject([])}return t.prototype.show=function(t,e){var o=this;return void 0===e&&(e={}),new i.Observable((function(i){n.tuiAssert.assert(!!o.items$.observers.length,"Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module");var r=new g(i,t,l(l({},o.options),e));return o.items$.next(function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}(o.items$.value,[r])),function(){o.items$.next(o.items$.value.filter((function(t){return t!==r})))}}))},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[o.TUI_NOTIFICATION_OPTIONS]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(o.TUI_NOTIFICATION_OPTIONS))},token:t,providedIn:"root"}),t=p([e.Injectable({providedIn:"root"}),m(0,e.Inject(o.TUI_NOTIFICATION_OPTIONS))],t)}(),I=function(){function t(t,e){this.options=t,this.service=e}return t.prototype.getAnimation=function(t){return l({value:String(t)},this.options)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[o.TUI_ANIMATION_OPTIONS]}]},{type:y,decorators:[{type:e.Inject,args:[y]}]}]},p([n.tuiPure],t.prototype,"getAnimation",null),t=p([e.Component({selector:"tui-notifications-host",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'<ng-container *tuiLet="service.items$ | async as items">\n <div\n *ngIf="items.length"\n class="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 class="alert"\n role="alert"\n [item]="item"\n ></tui-notification-alert>\n </div>\n</ng-container>\n',animations:[c.tuiFadeInList,c.tuiSlideInRightList,c.tuiHeightCollapseList],styles:[":host{position:fixed;top:0;left:0;width:100%;height:0}.wrapper{width:18rem;margin-left:auto;padding:2rem 3rem 0 0;pointer-events:none}@media screen and (max-width:47.9375em){.wrapper{padding:1rem 1rem 0 0}}@media screen and (min-width:80em){.wrapper{width:23rem}}.alert{pointer-events:auto}.alert:not(:first-child){margin-top:.75rem}"]}),m(0,e.Inject(o.TUI_ANIMATION_OPTIONS)),m(1,e.Inject(y))],t)}(),v=I,T=function(){function t(){}return t=p([e.NgModule({imports:[a.CommonModule,h,n.TuiLetModule],declarations:[I],exports:[I],entryComponents:[I],providers:[{provide:I,useValue:v}]})],t)}();t.DEFAULT_ALERT_AUTOCLOSE_TIMEOUT=3e3,t.NOTIFICATIONS_HOST=v,t.NotificationAlert=g,t.TuiNotificationAlertComponent=d,t.TuiNotificationAlertModule=h,t.TuiNotificationsHostComponent=I,t.TuiNotificationsModule=T,t.TuiNotificationsService=y,Object.defineProperty(t,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var l=function(){return(l=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 p(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 s=t.length-1;s>=0;s--)(i=t[s])&&(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 m(t,e){return function(n,o){e(n,o,t)}}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}var d=function(){function t(t,e,n){this.elementRef=t,this.destroy$=e,this.options=n}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.observer.complete()},t.prototype.calculateContext=function(t){var e=t.status,n=t.data,o=t.label,i=t.observer;return{$implicit:e,data:n,label:o,closeHook:function(){i.complete()},emitHook:function(t){i.next(t)},emitAndCloseHook:function(t){i.next(t),i.complete()}}},t.prototype.initAutoClose=function(){var t=this;this.item.autoClose&&i.timer(n.isNumber(this.item.autoClose)?this.item.autoClose:3e3).pipe(r.takeUntil(i.fromEvent(this.elementRef.nativeElement,"mouseenter")),r.repeatWhen((function(){return i.fromEvent(t.elementRef.nativeElement,"mouseleave")})),r.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:[o.TUI_NOTIFICATION_OPTIONS]}]}]},p([e.Input()],t.prototype,"item",void 0),p([n.tuiPure],t.prototype,"calculateContext",null),t=p([e.Component({selector:"tui-notification-alert",changeDetection:e.ChangeDetectionStrategy.OnPush,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',providers:[n.TuiDestroyService],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}"]}),m(0,e.Inject(e.ElementRef)),m(1,e.Inject(n.TuiDestroyService)),m(2,e.Inject(o.TUI_NOTIFICATION_OPTIONS))],t)}(),h=function(){function t(){}return t=p([e.NgModule({imports:[a.CommonModule,u.PolymorpheusModule,s.TuiNotificationModule],declarations:[d],exports:[d]})],t)}(),g=function(){function t(t,e,n){this.observer=t,this.content=e,this.options=n,this.status=this.options.status,this.hasIcon=this.options.hasIcon,this.hasCloseButton=this.options.hasCloseButton,this.label=this.options.label,this.autoClose="function"==typeof this.options.autoClose?this.options.autoClose(this.options.status):this.options.autoClose,n&&this.withData(n)&&(this.data=n.data)}return t.prototype.withData=function(t){return"data"in t},t}(),y=function(){function t(t){this.options=t,this.items$=new i.BehaviorSubject([])}return t.prototype.show=function(t,e){var o=this;return void 0===e&&(e={}),new i.Observable((function(i){n.tuiAssert.assert(!!o.items$.observers.length,"Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module");var r=new g(i,t,l(l({},o.options),e));return o.items$.next(function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}(o.items$.value,[r])),function(){o.items$.next(o.items$.value.filter((function(t){return t!==r})))}}))},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[o.TUI_NOTIFICATION_OPTIONS]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(o.TUI_NOTIFICATION_OPTIONS))},token:t,providedIn:"root"}),t=p([e.Injectable({providedIn:"root"}),m(0,e.Inject(o.TUI_NOTIFICATION_OPTIONS))],t)}(),I=function(){function t(t,e){this.options=t,this.service=e}return t.prototype.getAnimation=function(t){return l({value:String(t)},this.options)},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[o.TUI_ANIMATION_OPTIONS]}]},{type:y,decorators:[{type:e.Inject,args:[y]}]}]},p([n.tuiPure],t.prototype,"getAnimation",null),t=p([e.Component({selector:"tui-notifications-host",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'<ng-container *tuiLet="service.items$ | async as items">\n <div\n *ngIf="items.length"\n class="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="alert"\n [item]="item"\n ></tui-notification-alert>\n </div>\n</ng-container>\n',animations:[c.tuiFadeInList,c.tuiSlideInRightList,c.tuiHeightCollapseList],styles:[":host{position:fixed;top:0;left:0;width:100%;height:0}.wrapper{width:18rem;margin-left:auto;padding:2rem 3rem 0 0;pointer-events:none}@media screen and (max-width:47.9375em){.wrapper{padding:1rem 1rem 0 0}}@media screen and (min-width:80em){.wrapper{width:23rem}}.alert{pointer-events:auto}.alert:not(:first-child){margin-top:.75rem}"]}),m(0,e.Inject(o.TUI_ANIMATION_OPTIONS)),m(1,e.Inject(y))],t)}(),v=I,T=function(){function t(){}return t=p([e.NgModule({imports:[a.CommonModule,h,n.TuiLetModule],declarations:[I],exports:[I],entryComponents:[I],providers:[{provide:I,useValue:v}]})],t)}();t.DEFAULT_ALERT_AUTOCLOSE_TIMEOUT=3e3,t.NOTIFICATIONS_HOST=v,t.NotificationAlert=g,t.TuiNotificationAlertComponent=d,t.TuiNotificationAlertModule=h,t.TuiNotificationsHostComponent=I,t.TuiNotificationsModule=T,t.TuiNotificationsService=y,Object.defineProperty(t,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=taiga-ui-core-modules-notifications.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","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/notification-alert/Notification-alert.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"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__decorate","decorators","target","key","desc","d","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param","paramIndex","decorator","__read","o","m","Symbol","iterator","e","ar","next","done","push","value","error","TuiNotificationAlertComponent","elementRef","destroy$","options","ngOnInit","initAutoClose","calculateContext","item","closeNotification","observer","complete","_a","status","data","label","$implicit","closeHook","emitHook","emitAndCloseHook","_this","autoClose","timer","isNumber","pipe","takeUntil","fromEvent","nativeElement","repeatWhen","subscribe","ElementRef","type","Inject","args","TuiDestroyService","TUI_NOTIFICATION_OPTIONS","Input","tuiPure","Component","selector","changeDetection","ChangeDetectionStrategy","OnPush","template","providers","TuiNotificationAlertModule","NgModule","imports","CommonModule","PolymorpheusModule","TuiNotificationModule","declarations","exports","NotificationAlert","content","hasIcon","hasCloseButton","withData","TuiNotificationsService","items$","BehaviorSubject","show","Observable","tuiAssert","assert","observers","notification","concat","__spread","filter","Injectable","providedIn","TuiNotificationsHostComponent","service","getAnimation","String","TUI_ANIMATION_OPTIONS","animations","tuiFadeInList","tuiSlideInRightList","tuiHeightCollapseList","NOTIFICATIONS_HOST","TuiNotificationsModule","TuiLetModule","entryComponents","provide","useValue"],"mappings":";;;;;;;;;;;;;;oFA6BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,IAEKU,MAAMC,KAAMP,YAezB,SAASQ,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,CAACoB,GACVY,gBAAiB,CAACZ,GAClB5B,UAAW,CACP,CACIyC,QAASb,EACTc,SAAUL,OAITC,wCLNkC","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 {\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 {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\nexport const DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;\n\n@Component({\n selector: 'tui-notification-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\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 public readonly options: NotificationTokenOptions,\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 : DEFAULT_ALERT_AUTOCLOSE_TIMEOUT,\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 {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';\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 {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\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 public readonly options: NotificationTokenOptions,\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';\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\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';\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"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","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/notification-alert/Notification-alert.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"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__decorate","decorators","target","key","desc","d","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param","paramIndex","decorator","__read","o","m","Symbol","iterator","e","ar","next","done","push","value","error","TuiNotificationAlertComponent","elementRef","destroy$","options","ngOnInit","initAutoClose","calculateContext","item","closeNotification","observer","complete","_a","status","data","label","$implicit","closeHook","emitHook","emitAndCloseHook","_this","autoClose","timer","isNumber","pipe","takeUntil","fromEvent","nativeElement","repeatWhen","subscribe","ElementRef","type","Inject","args","TuiDestroyService","TUI_NOTIFICATION_OPTIONS","Input","tuiPure","Component","selector","changeDetection","ChangeDetectionStrategy","OnPush","template","providers","TuiNotificationAlertModule","NgModule","imports","CommonModule","PolymorpheusModule","TuiNotificationModule","declarations","exports","NotificationAlert","content","hasIcon","hasCloseButton","withData","TuiNotificationsService","items$","BehaviorSubject","show","Observable","tuiAssert","assert","observers","notification","concat","__spread","filter","Injectable","providedIn","TuiNotificationsHostComponent","service","getAnimation","String","TUI_ANIMATION_OPTIONS","animations","tuiFadeInList","tuiSlideInRightList","tuiHeightCollapseList","NOTIFICATIONS_HOST","TuiNotificationsModule","TuiLetModule","entryComponents","provide","useValue"],"mappings":";;;;;;;;;;;;;;oFA6BO,IAAIA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,IAEKU,MAAMC,KAAMP,YAezB,SAASQ,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAId,UAAUC,OAAQc,EAAID,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOlB,OAAOsB,yBAAyBN,EAAQC,GAAOC,EACrH,GAAuB,iBAAZK,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAAST,EAAYC,EAAQC,EAAK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/D,KAAKwB,EAAKuC,OAAO5D,MAAMsE,QAAO,SAAA7D,GAAQ,OAAAA,IAAS0D,6EA9BlElC,EAAAA,OAAMC,KAAA,CAACE,EAAAA,kKALHuB,EAAuBpF,EAAA,CAHnCgG,EAAAA,WAAW,CACRC,WAAY,SAOPrF,EAAA,EAAA8C,EAAAA,OAAOG,EAAAA,4BALHuB,mBCET,SAAAc,EACoDpE,EACNqE,GADMpG,KAAA+B,QAAAA,EACN/B,KAAAoG,QAAAA,EAUlD,OANID,EAAAvG,UAAAyG,aAAA,SAAa3E,GACT,OAAAxC,EAAA,CACIwC,MAAO4E,OAAO5E,IACX1B,KAAK+B,4EARX4B,EAAAA,OAAMC,KAAA,CAAC2C,EAAAA,gCAC2ClB,EAAuBnF,WAAA,CAAA,CAAAwD,KAAzEC,EAAAA,OAAMC,KAAA,CAACyB,QAIZpF,EAAA,CADC+D,EAAAA,0CANQmC,EAA6BlG,EAAA,CAPzCgE,EAAAA,UAAU,CACPC,SAAU,yBACVC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,SAAA,khBAEAkC,WAAY,CAACC,EAAAA,cAAeC,EAAAA,oBAAqBC,EAAAA,kXAI5C9F,EAAA,EAAA8C,EAAAA,OAAO4C,EAAAA,wBACP1F,EAAA,EAAA8C,EAAAA,OAAO0B,KAHHc,MCZAS,EAAqBT,eAclC,SAAAU,KAAqC,OAAxBA,EAAsB5G,EAAA,CAZlCwE,EAAAA,SAAS,CACNC,QAAS,CAACC,EAAAA,aAAcH,EAA4BsC,EAAAA,cACpDhC,aAAc,CAACqB,GACfpB,QAAS,CAACoB,GACVY,gBAAiB,CAACZ,GAClB5B,UAAW,CACP,CACIyC,QAASb,EACTc,SAAUL,OAITC,wCLNkC","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 {\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 {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\nexport const DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;\n\n@Component({\n selector: 'tui-notification-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\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 public readonly options: NotificationTokenOptions,\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 : DEFAULT_ALERT_AUTOCLOSE_TIMEOUT,\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 {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';\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 {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\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 public readonly options: NotificationTokenOptions,\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';\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\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';\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"]}
@@ -381,10 +381,13 @@
381
381
  var integerCapped = integerLimit
382
382
  ? integer.slice(0, integerLimit + thousandSeparators.length)
383
383
  : integer;
384
- var integerCappedClean = integerCapped
385
- .replace(constants.TUI_NON_DIGITS_REGEXP, '')
386
- .replace(/^0+(?!\.|$)/, '0');
387
- var withSeparator = addThousandsSeparator(integerCappedClean, thousandSymbol);
384
+ var integerCappedClean = integerCapped.replace(constants.TUI_NON_DIGITS_REGEXP, '');
385
+ var _b = __read(integerCappedClean.match(constants.TUI_LEADING_ZEROES_REGEXP) || [''], 1), leadingZerosMatch = _b[0];
386
+ var leadingZerosAmount = leadingZerosMatch.length;
387
+ var integerCappedZerosClean = integerCappedClean
388
+ .replace(/^0+(?!\.|$)/, '')
389
+ .trim();
390
+ var withSeparator = addThousandsSeparator(integerCappedZerosClean, thousandSymbol);
388
391
  var mask = convertToMask(withSeparator);
389
392
  if ((hasDecimal && allowDecimal) || requireDecimal) {
390
393
  var fraction = hasDecimal
@@ -401,20 +404,36 @@
401
404
  mask.push(constants.TUI_DIGIT_REGEXP);
402
405
  }
403
406
  }
407
+ var isOnlyZeroDigit = mask.length === 1 && integerCappedZerosClean === '0';
404
408
  if (isNegative) {
405
409
  if (mask.length === 0) {
406
410
  mask.push(constants.TUI_DIGIT_REGEXP);
407
411
  }
408
412
  mask.unshift('-');
409
413
  }
410
- return preventLeadingZeroes(mask);
414
+ return preventLeadingZeroes(mask, isOnlyZeroDigit, leadingZerosAmount);
411
415
  };
412
416
  }
413
- function preventLeadingZeroes(mask) {
417
+ function preventLeadingZeroes(mask, isOnlyZeroDigit, leadingZerosAmount) {
418
+ if (isOnlyZeroDigit === void 0) { isOnlyZeroDigit = false; }
419
+ if (leadingZerosAmount === void 0) { leadingZerosAmount = 0; }
420
+ if (isOnlyZeroDigit || leadingZerosAmount === 0) {
421
+ return mask;
422
+ }
414
423
  var firstDigitIndex = mask.indexOf(constants.TUI_DIGIT_REGEXP);
415
- if (firstDigitIndex !== -1 && mask[firstDigitIndex + 1] === constants.TUI_DIGIT_REGEXP) {
416
- mask[firstDigitIndex] = NON_ZERO_DIGIT;
424
+ if (firstDigitIndex === -1) {
425
+ return mask;
426
+ }
427
+ var secondMaskDigit = mask[firstDigitIndex + 1];
428
+ var isCaretTrap = secondMaskDigit === constants.MASK_CARET_TRAP;
429
+ if (isCaretTrap && leadingZerosAmount === 1) {
430
+ return mask;
431
+ }
432
+ else if (isCaretTrap) {
433
+ mask.unshift(NON_ZERO_DIGIT);
434
+ return mask;
417
435
  }
436
+ mask[firstDigitIndex] = NON_ZERO_DIGIT;
418
437
  return mask;
419
438
  }
420
439
  function getDecimalSymbolIndex(str, decimalSymbol, autoCorrectDecimalSymbol) {