@taiga-ui/core 2.23.0 → 2.27.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 (699) hide show
  1. package/README.md +7 -3
  2. package/abstract/abstract-dropdown.d.ts +1 -1
  3. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  4. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-button.umd.js +21 -7
  7. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  9. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
  11. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-calendar.umd.min.js +1 -1
  13. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-data-list.umd.js +24 -23
  15. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  17. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-dialog.umd.js +15 -39
  19. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  21. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  23. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  25. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-error.umd.js +1 -1
  27. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-error.umd.min.js +1 -1
  29. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-expand.umd.js +5 -5
  31. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  33. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-hints-host.umd.js +29 -22
  37. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +2 -2
  39. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +10 -23
  41. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  43. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  45. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  47. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-core-components-link.umd.js +5 -4
  49. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  50. package/bundles/taiga-ui-core-components-link.umd.min.js +2 -2
  51. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-core-components-loader.umd.js +2 -2
  53. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  54. package/bundles/taiga-ui-core-components-loader.umd.min.js +1 -1
  55. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-core-components-notification.umd.js +1 -1
  57. package/bundles/taiga-ui-core-components-notification.umd.min.js +1 -1
  58. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +3 -3
  59. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  60. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +2 -15
  63. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  64. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +1 -1
  65. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +4 -4
  67. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  68. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  69. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +18 -15
  71. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  73. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +4 -4
  75. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +1 -1
  77. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +61 -61
  81. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  82. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +2 -2
  83. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-core-components-scrollbar.umd.js +53 -43
  85. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  86. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
  87. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-core-components-svg.umd.js +1 -1
  89. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  90. package/bundles/taiga-ui-core-components-svg.umd.min.js +1 -1
  91. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  93. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-core-components-tooltip.umd.js +2 -2
  95. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  96. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  97. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-core-components-wrapper.umd.js.map +1 -1
  99. package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-core-components.umd.js +8 -8
  101. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  102. package/bundles/taiga-ui-core-constants.umd.js +11 -3
  103. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  104. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  105. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-border.umd.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-border.umd.min.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  111. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  112. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-core-directives-hint.umd.js +1 -1
  117. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  118. package/bundles/taiga-ui-core-directives-hint.umd.min.js +1 -1
  119. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  120. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  121. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  123. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  124. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  125. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +1 -1
  127. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  128. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
  129. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  131. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  132. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  133. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -3
  135. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  136. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-core-directives.umd.js +8 -8
  138. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  139. package/bundles/taiga-ui-core-enums.umd.js +1 -0
  140. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  141. package/bundles/taiga-ui-core-enums.umd.min.js +1 -1
  142. package/bundles/taiga-ui-core-enums.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  144. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  145. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js +1 -1
  146. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  147. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  148. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-core-modules-notifications.umd.js +25 -25
  150. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  151. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  152. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  154. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  156. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  158. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  159. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  160. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  161. package/bundles/taiga-ui-core-pipes.umd.js +12 -12
  162. package/bundles/taiga-ui-core-pipes.umd.min.js +1 -1
  163. package/bundles/taiga-ui-core-providers.umd.js +9 -9
  164. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  165. package/bundles/taiga-ui-core-providers.umd.min.js +1 -1
  166. package/bundles/taiga-ui-core-services.umd.js +1 -1
  167. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  168. package/bundles/taiga-ui-core-services.umd.min.js +1 -1
  169. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  170. package/bundles/taiga-ui-core-tokens.umd.js +25 -25
  171. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  172. package/bundles/taiga-ui-core-tokens.umd.min.js +1 -1
  173. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  174. package/bundles/taiga-ui-core-utils-mask.umd.js +27 -8
  175. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  176. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  177. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  178. package/components/button/button-options.d.ts +10 -0
  179. package/components/button/button.component.d.ts +8 -7
  180. package/components/button/index.d.ts +1 -0
  181. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  182. package/components/calendar/taiga-ui-core-components-calendar.metadata.json +1 -1
  183. package/components/data-list/data-list.component.d.ts +4 -4
  184. package/components/data-list/index.d.ts +1 -1
  185. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  186. package/components/dialog/dialog.directive.d.ts +2 -11
  187. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  188. package/components/dropdown-box/dropdown-box.component.d.ts +2 -2
  189. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  190. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  191. package/components/expand/expand.component.d.ts +2 -2
  192. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  193. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  194. package/components/hints-host/hint-box/hint-box.component.d.ts +5 -3
  195. package/components/hints-host/index.d.ts +2 -2
  196. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  197. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +4 -6
  198. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  199. package/components/index.d.ts +1 -1
  200. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  201. package/components/link/link.component.d.ts +1 -0
  202. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  203. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  204. package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
  205. package/components/primitive-calendar/primitive-calendar.component.d.ts +3 -3
  206. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  207. package/components/primitive-checkbox/primitive-checkbox.component.d.ts +1 -3
  208. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  209. package/components/primitive-spin-button/primitive-spin-button.component.d.ts +1 -1
  210. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  211. package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -3
  212. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  213. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +2 -1
  214. package/components/primitive-year-picker/primitive-year-picker.component.d.ts +3 -3
  215. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
  216. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  217. package/components/scroll-controls/index.d.ts +1 -1
  218. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  219. package/components/scrollbar/index.d.ts +1 -1
  220. package/components/scrollbar/scrollable.directive.d.ts +5 -1
  221. package/components/scrollbar/scrollbar.component.d.ts +5 -4
  222. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  223. package/components/svg/svg.component.d.ts +3 -3
  224. package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
  225. package/components/taiga-ui-core-components.metadata.json +1 -1
  226. package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
  227. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  228. package/components/tooltip/tooltip.component.d.ts +1 -1
  229. package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +1 -1
  230. package/constants/events.d.ts +5 -0
  231. package/constants/index.d.ts +1 -1
  232. package/constants/regexp.d.ts +1 -0
  233. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  234. package/constants/version.d.ts +1 -1
  235. package/directives/border/taiga-ui-core-directives-border.metadata.json +1 -1
  236. package/directives/color/index.d.ts +1 -1
  237. package/directives/color/taiga-ui-core-directives-color.metadata.json +1 -1
  238. package/directives/described-by/taiga-ui-core-directives-described-by.metadata.json +1 -1
  239. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  240. package/directives/hint/hint.directive.d.ts +1 -1
  241. package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
  242. package/directives/hint-controller/taiga-ui-core-directives-hint-controller.metadata.json +1 -1
  243. package/directives/index.d.ts +1 -1
  244. package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
  245. package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.metadata.json +1 -1
  246. package/directives/mode/taiga-ui-core-directives-mode.metadata.json +1 -1
  247. package/directives/pointer-hint/pointer-hint.directive.d.ts +1 -1
  248. package/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.metadata.json +1 -1
  249. package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.metadata.json +1 -1
  250. package/directives/table-mode/taiga-ui-core-directives-table-mode.metadata.json +1 -1
  251. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  252. package/directives/textfield-controller/index.d.ts +2 -2
  253. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  254. package/directives/textfield-controller/textfield-controller.provider.d.ts +1 -1
  255. package/enums/appearance.d.ts +1 -0
  256. package/enums/taiga-ui-core-enums.metadata.json +1 -1
  257. package/esm2015/abstract/abstract-dropdown.js +1 -1
  258. package/esm2015/components/button/button-options.js +10 -0
  259. package/esm2015/components/button/button.component.js +12 -8
  260. package/esm2015/components/button/button.module.js +1 -1
  261. package/esm2015/components/button/index.js +2 -1
  262. package/esm2015/components/calendar/calendar.component.js +2 -2
  263. package/esm2015/components/data-list/data-list.component.js +19 -18
  264. package/esm2015/components/data-list/data-list.module.js +2 -2
  265. package/esm2015/components/data-list/index.js +2 -2
  266. package/esm2015/components/data-list/option/option.component.js +3 -3
  267. package/esm2015/components/dialog/dialog.component.js +2 -2
  268. package/esm2015/components/dialog/dialog.directive.js +14 -36
  269. package/esm2015/components/dialog/dialog.module.js +1 -1
  270. package/esm2015/components/dialog/dialog.service.js +1 -1
  271. package/esm2015/components/dropdown-box/dropdown-box.component.js +2 -2
  272. package/esm2015/components/dropdown-box/dropdown-box.module.js +1 -1
  273. package/esm2015/components/error/error.component.js +2 -2
  274. package/esm2015/components/error/error.module.js +1 -1
  275. package/esm2015/components/expand/expand.component.js +6 -6
  276. package/esm2015/components/expand/expand.module.js +2 -2
  277. package/esm2015/components/group/group.component.js +1 -1
  278. package/esm2015/components/group/group.module.js +1 -1
  279. package/esm2015/components/hints-host/hint-box/hint-box.component.js +17 -13
  280. package/esm2015/components/hints-host/hint-box/hint-box.module.js +1 -1
  281. package/esm2015/components/hints-host/hints-host.component.js +2 -2
  282. package/esm2015/components/hints-host/hints-host.module.js +1 -1
  283. package/esm2015/components/hints-host/index.js +3 -3
  284. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +12 -21
  285. package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  286. package/esm2015/components/index.js +2 -2
  287. package/esm2015/components/label/label.component.js +2 -2
  288. package/esm2015/components/label/label.module.js +1 -1
  289. package/esm2015/components/link/link.component.js +5 -3
  290. package/esm2015/components/loader/loader.component.js +3 -3
  291. package/esm2015/components/loader/loader.module.js +1 -1
  292. package/esm2015/components/notification/notification.component.js +1 -1
  293. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +4 -4
  294. package/esm2015/components/primitive-calendar/primitive-calendar.module.js +1 -1
  295. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -13
  296. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +5 -5
  297. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +7 -10
  298. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +1 -1
  299. package/esm2015/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  300. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +10 -4
  301. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +5 -5
  302. package/esm2015/components/root/root.module.js +1 -1
  303. package/esm2015/components/scroll-controls/index.js +2 -2
  304. package/esm2015/components/scroll-controls/scroll-controls.component.js +1 -1
  305. package/esm2015/components/scroll-controls/scroll-controls.module.js +2 -2
  306. package/esm2015/components/scrollbar/index.js +2 -2
  307. package/esm2015/components/scrollbar/scrollable.directive.js +18 -4
  308. package/esm2015/components/scrollbar/scrollbar.component.js +21 -19
  309. package/esm2015/components/scrollbar/scrollbar.module.js +1 -1
  310. package/esm2015/components/svg/svg.component.js +2 -2
  311. package/esm2015/components/svg/svg.module.js +1 -1
  312. package/esm2015/components/theme-night/theme-night.module.js +1 -1
  313. package/esm2015/components/tooltip/tooltip.component.js +3 -3
  314. package/esm2015/components/wrapper/wrapper.module.js +1 -1
  315. package/esm2015/constants/events.js +6 -1
  316. package/esm2015/constants/index.js +2 -2
  317. package/esm2015/constants/regexp.js +2 -1
  318. package/esm2015/constants/version.js +2 -2
  319. package/esm2015/directives/border/border.module.js +1 -1
  320. package/esm2015/directives/color/color.module.js +1 -1
  321. package/esm2015/directives/color/index.js +2 -2
  322. package/esm2015/directives/described-by/described-by.module.js +1 -1
  323. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  324. package/esm2015/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  325. package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  326. package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  327. package/esm2015/directives/hint/hint.directive.js +2 -2
  328. package/esm2015/directives/hint/hint.module.js +1 -1
  329. package/esm2015/directives/hint-controller/hint-controller.directive.js +1 -1
  330. package/esm2015/directives/hint-controller/hint-controller.module.js +1 -1
  331. package/esm2015/directives/hint-controller/hint-controller.provider.js +1 -1
  332. package/esm2015/directives/hint-controller/hint-controller.token.js +1 -1
  333. package/esm2015/directives/index.js +2 -2
  334. package/esm2015/directives/manual-hint/manual-hint.module.js +1 -1
  335. package/esm2015/directives/mask-accessor/mask-accessor.module.js +1 -1
  336. package/esm2015/directives/mode/mode.module.js +1 -1
  337. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +2 -2
  338. package/esm2015/directives/pointer-hint/pointer-hint.module.js +1 -1
  339. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  340. package/esm2015/directives/table-mode/table-mode.module.js +1 -1
  341. package/esm2015/directives/textfield-controller/index.js +3 -3
  342. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  343. package/esm2015/directives/textfield-controller/textfield-controller.module.js +1 -1
  344. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  345. package/esm2015/directives/textfield-controller/textfield-size.directive.js +4 -2
  346. package/esm2015/directives/textfield-controller/textfield-type.directive.js +4 -2
  347. package/esm2015/directives/textfield-controller/textfield.controller.js +1 -1
  348. package/esm2015/enums/appearance.js +2 -1
  349. package/esm2015/interfaces/dialog-context.js +1 -1
  350. package/esm2015/interfaces/index.js +1 -1
  351. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  352. package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  353. package/esm2015/mask/index.js +1 -1
  354. package/esm2015/modules/notifications/index.js +3 -3
  355. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +1 -1
  356. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  357. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +2 -2
  358. package/esm2015/modules/notifications/notifications.module.js +1 -1
  359. package/esm2015/modules/notifications/notifications.service.js +1 -1
  360. package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  361. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  362. package/esm2015/pipes/calendar-sheet/index.js +2 -2
  363. package/esm2015/pipes/format-number/format-number.pipe.js +1 -1
  364. package/esm2015/pipes/index.js +2 -2
  365. package/esm2015/pipes/month/month.module.js +1 -1
  366. package/esm2015/pipes/pluralize/pluralize.module.js +1 -1
  367. package/esm2015/providers/index.js +2 -2
  368. package/esm2015/services/hint.service.js +1 -1
  369. package/esm2015/services/svg.service.js +2 -2
  370. package/esm2015/tokens/animation-options.js +1 -1
  371. package/esm2015/tokens/index.js +5 -5
  372. package/esm2015/tokens/ordered-short-week-days.js +1 -1
  373. package/esm2015/types/marker-handler.js +1 -1
  374. package/esm2015/utils/mask/create-number-mask.js +27 -10
  375. package/esm5/abstract/abstract-dropdown.js +1 -1
  376. package/esm5/components/button/button-options.js +10 -0
  377. package/esm5/components/button/button.component.js +12 -8
  378. package/esm5/components/button/button.module.js +1 -1
  379. package/esm5/components/button/index.js +2 -1
  380. package/esm5/components/calendar/calendar.component.js +2 -2
  381. package/esm5/components/data-list/data-list.component.js +23 -22
  382. package/esm5/components/data-list/data-list.module.js +2 -2
  383. package/esm5/components/data-list/index.js +2 -2
  384. package/esm5/components/data-list/option/option.component.js +3 -3
  385. package/esm5/components/dialog/dialog.component.js +2 -2
  386. package/esm5/components/dialog/dialog.directive.js +18 -43
  387. package/esm5/components/dialog/dialog.module.js +1 -1
  388. package/esm5/components/dialog/dialog.service.js +1 -1
  389. package/esm5/components/dropdown-box/dropdown-box.component.js +2 -2
  390. package/esm5/components/dropdown-box/dropdown-box.module.js +1 -1
  391. package/esm5/components/error/error.component.js +2 -2
  392. package/esm5/components/error/error.module.js +1 -1
  393. package/esm5/components/expand/expand.component.js +6 -6
  394. package/esm5/components/expand/expand.module.js +2 -2
  395. package/esm5/components/group/group.component.js +1 -1
  396. package/esm5/components/group/group.module.js +1 -1
  397. package/esm5/components/hints-host/hint-box/hint-box.component.js +21 -13
  398. package/esm5/components/hints-host/hint-box/hint-box.module.js +1 -1
  399. package/esm5/components/hints-host/hints-host.component.js +2 -2
  400. package/esm5/components/hints-host/hints-host.module.js +1 -1
  401. package/esm5/components/hints-host/index.js +3 -3
  402. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +12 -25
  403. package/esm5/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  404. package/esm5/components/index.js +2 -2
  405. package/esm5/components/label/label.component.js +2 -2
  406. package/esm5/components/label/label.module.js +1 -1
  407. package/esm5/components/link/link.component.js +5 -3
  408. package/esm5/components/loader/loader.component.js +3 -3
  409. package/esm5/components/loader/loader.module.js +1 -1
  410. package/esm5/components/notification/notification.component.js +1 -1
  411. package/esm5/components/primitive-calendar/primitive-calendar.component.js +4 -4
  412. package/esm5/components/primitive-calendar/primitive-calendar.module.js +1 -1
  413. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -17
  414. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +5 -5
  415. package/esm5/components/primitive-textfield/primitive-textfield.component.js +7 -14
  416. package/esm5/components/primitive-textfield/primitive-textfield.module.js +1 -1
  417. package/esm5/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  418. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +14 -4
  419. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +5 -5
  420. package/esm5/components/root/root.module.js +1 -1
  421. package/esm5/components/scroll-controls/index.js +2 -2
  422. package/esm5/components/scroll-controls/scroll-controls.component.js +1 -1
  423. package/esm5/components/scroll-controls/scroll-controls.module.js +2 -2
  424. package/esm5/components/scrollbar/index.js +2 -2
  425. package/esm5/components/scrollbar/scrollable.directive.js +17 -5
  426. package/esm5/components/scrollbar/scrollbar.component.js +21 -23
  427. package/esm5/components/scrollbar/scrollbar.module.js +1 -1
  428. package/esm5/components/svg/svg.component.js +2 -2
  429. package/esm5/components/svg/svg.module.js +1 -1
  430. package/esm5/components/theme-night/theme-night.module.js +1 -1
  431. package/esm5/components/tooltip/tooltip.component.js +3 -3
  432. package/esm5/components/wrapper/wrapper.module.js +1 -1
  433. package/esm5/constants/events.js +6 -1
  434. package/esm5/constants/index.js +2 -2
  435. package/esm5/constants/regexp.js +2 -1
  436. package/esm5/constants/version.js +2 -2
  437. package/esm5/directives/border/border.module.js +1 -1
  438. package/esm5/directives/color/color.module.js +1 -1
  439. package/esm5/directives/color/index.js +2 -2
  440. package/esm5/directives/described-by/described-by.module.js +1 -1
  441. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  442. package/esm5/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  443. package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  444. package/esm5/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  445. package/esm5/directives/hint/hint.directive.js +2 -2
  446. package/esm5/directives/hint/hint.module.js +1 -1
  447. package/esm5/directives/hint-controller/hint-controller.directive.js +1 -1
  448. package/esm5/directives/hint-controller/hint-controller.module.js +1 -1
  449. package/esm5/directives/hint-controller/hint-controller.provider.js +1 -1
  450. package/esm5/directives/hint-controller/hint-controller.token.js +1 -1
  451. package/esm5/directives/index.js +2 -2
  452. package/esm5/directives/manual-hint/manual-hint.module.js +1 -1
  453. package/esm5/directives/mask-accessor/mask-accessor.module.js +1 -1
  454. package/esm5/directives/mode/mode.module.js +1 -1
  455. package/esm5/directives/pointer-hint/pointer-hint.directive.js +2 -2
  456. package/esm5/directives/pointer-hint/pointer-hint.module.js +1 -1
  457. package/esm5/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  458. package/esm5/directives/table-mode/table-mode.module.js +1 -1
  459. package/esm5/directives/textfield-controller/index.js +3 -3
  460. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  461. package/esm5/directives/textfield-controller/textfield-controller.module.js +1 -1
  462. package/esm5/directives/textfield-controller/textfield-controller.provider.js +2 -2
  463. package/esm5/directives/textfield-controller/textfield-size.directive.js +4 -2
  464. package/esm5/directives/textfield-controller/textfield-type.directive.js +4 -2
  465. package/esm5/directives/textfield-controller/textfield.controller.js +1 -1
  466. package/esm5/enums/appearance.js +2 -1
  467. package/esm5/interfaces/dialog-context.js +1 -1
  468. package/esm5/interfaces/index.js +1 -1
  469. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  470. package/esm5/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  471. package/esm5/mask/index.js +1 -1
  472. package/esm5/modules/notifications/index.js +3 -3
  473. package/esm5/modules/notifications/notification-alert/Notification-alert.js +1 -1
  474. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  475. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +2 -2
  476. package/esm5/modules/notifications/notifications.module.js +1 -1
  477. package/esm5/modules/notifications/notifications.service.js +1 -1
  478. package/esm5/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  479. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  480. package/esm5/pipes/calendar-sheet/index.js +2 -2
  481. package/esm5/pipes/format-number/format-number.pipe.js +1 -1
  482. package/esm5/pipes/index.js +2 -2
  483. package/esm5/pipes/month/month.module.js +1 -1
  484. package/esm5/pipes/pluralize/pluralize.module.js +1 -1
  485. package/esm5/providers/index.js +2 -2
  486. package/esm5/services/hint.service.js +1 -1
  487. package/esm5/services/svg.service.js +2 -2
  488. package/esm5/tokens/animation-options.js +1 -1
  489. package/esm5/tokens/index.js +5 -5
  490. package/esm5/tokens/ordered-short-week-days.js +1 -1
  491. package/esm5/types/marker-handler.js +1 -1
  492. package/esm5/utils/mask/create-number-mask.js +29 -10
  493. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  494. package/fesm2015/taiga-ui-core-components-button.js +21 -9
  495. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  496. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  497. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  498. package/fesm2015/taiga-ui-core-components-data-list.js +21 -20
  499. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  500. package/fesm2015/taiga-ui-core-components-dialog.js +15 -36
  501. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  502. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  503. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  504. package/fesm2015/taiga-ui-core-components-error.js +1 -1
  505. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  506. package/fesm2015/taiga-ui-core-components-expand.js +6 -6
  507. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  508. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  509. package/fesm2015/taiga-ui-core-components-hints-host.js +22 -19
  510. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  511. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +12 -21
  512. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  513. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  514. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  515. package/fesm2015/taiga-ui-core-components-link.js +4 -2
  516. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  517. package/fesm2015/taiga-ui-core-components-loader.js +2 -2
  518. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  519. package/fesm2015/taiga-ui-core-components-notification.js +1 -1
  520. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +4 -4
  521. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  522. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -12
  523. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  524. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +5 -5
  525. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  526. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +15 -12
  527. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  528. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +4 -4
  529. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  530. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  531. package/fesm2015/taiga-ui-core-components-scroll-controls.js +56 -56
  532. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  533. package/fesm2015/taiga-ui-core-components-scrollbar.js +50 -34
  534. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  535. package/fesm2015/taiga-ui-core-components-svg.js +1 -1
  536. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  537. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  538. package/fesm2015/taiga-ui-core-components-tooltip.js +2 -2
  539. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  540. package/fesm2015/taiga-ui-core-components-wrapper.js.map +1 -1
  541. package/fesm2015/taiga-ui-core-components.js +1 -1
  542. package/fesm2015/taiga-ui-core-constants.js +10 -4
  543. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  544. package/fesm2015/taiga-ui-core-directives-border.js.map +1 -1
  545. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  546. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  547. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  548. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  549. package/fesm2015/taiga-ui-core-directives-hint.js +1 -1
  550. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  551. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  552. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  553. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  554. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +1 -1
  555. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  556. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  557. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  558. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +9 -3
  559. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  560. package/fesm2015/taiga-ui-core-directives.js +1 -1
  561. package/fesm2015/taiga-ui-core-enums.js +1 -0
  562. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  563. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  564. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  565. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  566. package/fesm2015/taiga-ui-core-modules-notifications.js +24 -24
  567. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  568. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  569. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  570. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  571. package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +1 -1
  572. package/fesm2015/taiga-ui-core-pipes.js +1 -1
  573. package/fesm2015/taiga-ui-core-providers.js +7 -7
  574. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  575. package/fesm2015/taiga-ui-core-services.js +1 -1
  576. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  577. package/fesm2015/taiga-ui-core-tokens.js +25 -25
  578. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  579. package/fesm2015/taiga-ui-core-utils-mask.js +26 -9
  580. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  581. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  582. package/fesm5/taiga-ui-core-components-button.js +21 -9
  583. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  584. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  585. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  586. package/fesm5/taiga-ui-core-components-data-list.js +25 -24
  587. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  588. package/fesm5/taiga-ui-core-components-dialog.js +19 -43
  589. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  590. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  591. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  592. package/fesm5/taiga-ui-core-components-error.js +1 -1
  593. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  594. package/fesm5/taiga-ui-core-components-expand.js +6 -6
  595. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  596. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  597. package/fesm5/taiga-ui-core-components-hints-host.js +26 -19
  598. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  599. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +12 -25
  600. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  601. package/fesm5/taiga-ui-core-components-label.js +1 -1
  602. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  603. package/fesm5/taiga-ui-core-components-link.js +4 -2
  604. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  605. package/fesm5/taiga-ui-core-components-loader.js +2 -2
  606. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  607. package/fesm5/taiga-ui-core-components-notification.js +1 -1
  608. package/fesm5/taiga-ui-core-components-primitive-calendar.js +4 -4
  609. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  610. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +3 -16
  611. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  612. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +5 -5
  613. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  614. package/fesm5/taiga-ui-core-components-primitive-textfield.js +19 -16
  615. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  616. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +4 -4
  617. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  618. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  619. package/fesm5/taiga-ui-core-components-scroll-controls.js +63 -63
  620. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  621. package/fesm5/taiga-ui-core-components-scrollbar.js +52 -42
  622. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  623. package/fesm5/taiga-ui-core-components-svg.js +1 -1
  624. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  625. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  626. package/fesm5/taiga-ui-core-components-tooltip.js +2 -2
  627. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  628. package/fesm5/taiga-ui-core-components-wrapper.js.map +1 -1
  629. package/fesm5/taiga-ui-core-components.js +1 -1
  630. package/fesm5/taiga-ui-core-constants.js +10 -4
  631. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  632. package/fesm5/taiga-ui-core-directives-border.js.map +1 -1
  633. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  634. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  635. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  636. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  637. package/fesm5/taiga-ui-core-directives-hint.js +1 -1
  638. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  639. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  640. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  641. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  642. package/fesm5/taiga-ui-core-directives-pointer-hint.js +1 -1
  643. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  644. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  645. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  646. package/fesm5/taiga-ui-core-directives-textfield-controller.js +9 -3
  647. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  648. package/fesm5/taiga-ui-core-directives.js +1 -1
  649. package/fesm5/taiga-ui-core-enums.js +1 -0
  650. package/fesm5/taiga-ui-core-enums.js.map +1 -1
  651. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  652. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  653. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  654. package/fesm5/taiga-ui-core-modules-notifications.js +25 -25
  655. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  656. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  657. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  658. package/fesm5/taiga-ui-core-pipes-month.js.map +1 -1
  659. package/fesm5/taiga-ui-core-pipes-pluralize.js.map +1 -1
  660. package/fesm5/taiga-ui-core-pipes.js +1 -1
  661. package/fesm5/taiga-ui-core-providers.js +7 -7
  662. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  663. package/fesm5/taiga-ui-core-services.js +1 -1
  664. package/fesm5/taiga-ui-core-services.js.map +1 -1
  665. package/fesm5/taiga-ui-core-tokens.js +25 -25
  666. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  667. package/fesm5/taiga-ui-core-utils-mask.js +29 -10
  668. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  669. package/interfaces/index.d.ts +2 -2
  670. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  671. package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.metadata.json +1 -1
  672. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  673. package/mask/index.d.ts +1 -1
  674. package/mask/taiga-ui-core-mask.metadata.json +1 -1
  675. package/modules/notifications/index.d.ts +2 -2
  676. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  677. package/package.json +6 -4
  678. package/pipes/calendar-sheet/index.d.ts +1 -1
  679. package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.metadata.json +1 -1
  680. package/pipes/index.d.ts +1 -1
  681. package/pipes/month/taiga-ui-core-pipes-month.metadata.json +1 -1
  682. package/pipes/pluralize/taiga-ui-core-pipes-pluralize.metadata.json +1 -1
  683. package/pipes/taiga-ui-core-pipes.metadata.json +1 -1
  684. package/providers/index.d.ts +1 -1
  685. package/providers/taiga-ui-core-providers.metadata.json +1 -1
  686. package/services/hint.service.d.ts +3 -3
  687. package/services/svg.service.d.ts +1 -1
  688. package/services/taiga-ui-core-services.metadata.json +1 -1
  689. package/styles/mixins/textfield.less +1 -0
  690. package/styles/theme/variables.less +1 -1
  691. package/styles/theme/wrapper/accent.less +31 -0
  692. package/styles/theme/wrapper/icon.less +1 -0
  693. package/styles/theme/wrapper/outline.less +1 -0
  694. package/styles/theme/wrapper/primary.less +1 -0
  695. package/styles/theme/wrapper/secondary.less +1 -0
  696. package/styles/theme/wrapper/whiteblock.less +2 -0
  697. package/styles/theme/wrapper.less +1 -0
  698. package/tokens/index.d.ts +4 -4
  699. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-textfield-controller.js","sources":["ng://@taiga-ui/core/directives/textfield-controller/textfield.controller.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-autocomplete.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-cleaner.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-custom-content.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-example-text.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-input-mode.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-label-outside.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-max-length.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-size.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-type.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.module.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.provider.ts","ng://@taiga-ui/core/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.ts"],"sourcesContent":["import {TuiAutofillFieldName, TuiInputModeT, TuiInputTypeT} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\nexport class TuiTextfieldController {\n constructor(\n readonly change$: Observable<void>,\n private readonly autocompleteDirective: TuiTextfieldAutocompleteDirective,\n private readonly cleanerDirective: TuiTextfieldCleanerDirective,\n private readonly customContentDirective: TuiTextfieldCustomContentDirective,\n private readonly exampleTextDirective: TuiTextfieldExampleTextDirective,\n private readonly inputModeDirective: TuiTextfieldInputModeDirective,\n private readonly labelOutsideDirective: TuiTextfieldLabelOutsideDirective,\n private readonly maxLengthDirective: TuiTextfieldMaxLengthDirective,\n private readonly sizeDirective: TuiTextfieldSizeDirective,\n private readonly typeDirective: TuiTextfieldTypeDirective,\n ) {}\n\n get autocomplete(): TuiAutofillFieldName | '' {\n return this.autocompleteDirective.autocomplete;\n }\n\n get cleaner(): boolean {\n return this.cleanerDirective.cleaner;\n }\n\n get customContent(): PolymorpheusContent {\n return this.customContentDirective.customContent || '';\n }\n\n get exampleText(): string {\n return this.exampleTextDirective.exampleText;\n }\n\n get inputMode(): TuiInputModeT {\n return this.inputModeDirective.inputMode;\n }\n\n get labelOutside(): boolean {\n return this.labelOutsideDirective.labelOutside;\n }\n\n get maxLength(): number | null {\n return this.maxLengthDirective.maxLength;\n }\n\n get size(): TuiSizeS | TuiSizeL {\n return this.sizeDirective.size;\n }\n\n get type(): TuiInputTypeT {\n return this.typeDirective.type;\n }\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiAutofillFieldName, TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_AUTOCOMPLETE =\n new InjectionToken<TuiTextfieldAutocompleteDirective>('tuiTextfieldAutocomplete', {\n factory: autocompleteDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldAutocomplete]',\n providers: [\n {\n provide: TUI_TEXTFIELD_AUTOCOMPLETE,\n useExisting: forwardRef(() => TuiTextfieldAutocompleteDirective),\n },\n ],\n})\nexport class TuiTextfieldAutocompleteDirective extends TuiController {\n @Input('tuiTextfieldAutocomplete')\n autocomplete: TuiAutofillFieldName | '' = '';\n}\n\nexport function autocompleteDirectiveFactory(): TuiTextfieldAutocompleteDirective {\n return new TuiTextfieldAutocompleteDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_CLEANER = new InjectionToken<TuiTextfieldCleanerDirective>(\n 'tuiTextfieldCleaner',\n {factory: cleanerDirectiveFactory},\n);\n\n@Directive({\n selector: '[tuiTextfieldCleaner]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CLEANER,\n useExisting: forwardRef(() => TuiTextfieldCleanerDirective),\n },\n ],\n})\nexport class TuiTextfieldCleanerDirective extends TuiController {\n @Input('tuiTextfieldCleaner')\n cleaner = false;\n}\n\nexport function cleanerDirectiveFactory(): TuiTextfieldCleanerDirective {\n return new TuiTextfieldCleanerDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_CUSTOM_CONTENT =\n new InjectionToken<TuiTextfieldCustomContentDirective>('tuiTextfieldCustomContent', {\n factory: customContentDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldCustomContent]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CUSTOM_CONTENT,\n useExisting: forwardRef(() => TuiTextfieldCustomContentDirective),\n },\n ],\n})\nexport class TuiTextfieldCustomContentDirective extends TuiController {\n // TODO: Remove null in 3.0\n @Input('tuiTextfieldCustomContent')\n customContent: PolymorpheusContent | null = null;\n}\n\nexport function customContentDirectiveFactory(): TuiTextfieldCustomContentDirective {\n return new TuiTextfieldCustomContentDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_EXAMPLE_TEXT =\n new InjectionToken<TuiTextfieldExampleTextDirective>('tuiTextfieldExampleText', {\n factory: exampleTextDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldExampleText]',\n providers: [\n {\n provide: TUI_TEXTFIELD_EXAMPLE_TEXT,\n useExisting: forwardRef(() => TuiTextfieldExampleTextDirective),\n },\n ],\n})\nexport class TuiTextfieldExampleTextDirective extends TuiController {\n @Input('tuiTextfieldExampleText')\n exampleText = '';\n}\n\nexport function exampleTextDirectiveFactory(): TuiTextfieldExampleTextDirective {\n return new TuiTextfieldExampleTextDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputModeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_INPUT_MODE =\n new InjectionToken<TuiTextfieldInputModeDirective>('tuiTextfieldInputMode', {\n factory: inputModeDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldInputMode]',\n providers: [\n {\n provide: TUI_TEXTFIELD_INPUT_MODE,\n useExisting: forwardRef(() => TuiTextfieldInputModeDirective),\n },\n ],\n})\nexport class TuiTextfieldInputModeDirective extends TuiController {\n @Input('tuiTextfieldInputMode')\n inputMode: TuiInputModeT = 'text';\n}\n\nexport function inputModeDirectiveFactory(): TuiTextfieldInputModeDirective {\n return new TuiTextfieldInputModeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_LABEL_OUTSIDE =\n new InjectionToken<TuiTextfieldLabelOutsideDirective>('tuiTextfieldLabelOutside', {\n factory: labelOutsideDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldLabelOutside]',\n providers: [\n {\n provide: TUI_TEXTFIELD_LABEL_OUTSIDE,\n useExisting: forwardRef(() => TuiTextfieldLabelOutsideDirective),\n },\n ],\n})\nexport class TuiTextfieldLabelOutsideDirective extends TuiController {\n @Input('tuiTextfieldLabelOutside')\n labelOutside = false;\n}\n\nexport function labelOutsideDirectiveFactory(): TuiTextfieldLabelOutsideDirective {\n return new TuiTextfieldLabelOutsideDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_MAX_LENGTH =\n new InjectionToken<TuiTextfieldMaxLengthDirective>('tuiTextfieldMaxLength', {\n factory: maxLengthDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldMaxLength]',\n providers: [\n {\n provide: TUI_TEXTFIELD_MAX_LENGTH,\n useExisting: forwardRef(() => TuiTextfieldMaxLengthDirective),\n },\n ],\n})\nexport class TuiTextfieldMaxLengthDirective extends TuiController {\n @Input('tuiTextfieldMaxLength')\n maxLength: number | null = null;\n}\n\nexport function maxLengthDirectiveFactory(): TuiTextfieldMaxLengthDirective {\n return new TuiTextfieldMaxLengthDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport const TUI_TEXTFIELD_SIZE = new InjectionToken<TuiTextfieldSizeDirective>(\n 'tuiTextfieldSize',\n {factory: sizeDirectiveFactory},\n);\n\n@Directive({\n selector: '[tuiTextfieldSize]',\n providers: [\n {\n provide: TUI_TEXTFIELD_SIZE,\n useExisting: forwardRef(() => TuiTextfieldSizeDirective),\n },\n ],\n})\nexport class TuiTextfieldSizeDirective extends TuiController {\n @Input('tuiTextfieldSize')\n size: TuiSizeS | TuiSizeL = 'l';\n}\n\nexport function sizeDirectiveFactory(): TuiTextfieldSizeDirective {\n return new TuiTextfieldSizeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputTypeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_TYPE = new InjectionToken<TuiTextfieldTypeDirective>(\n 'tuiTextfieldType',\n {factory: typeDirectiveFactory},\n);\n\n@Directive({\n selector: '[tuiTextfieldType]',\n providers: [\n {\n provide: TUI_TEXTFIELD_TYPE,\n useExisting: forwardRef(() => TuiTextfieldTypeDirective),\n },\n ],\n})\nexport class TuiTextfieldTypeDirective extends TuiController {\n @Input('tuiTextfieldType')\n type: TuiInputTypeT = 'text';\n}\n\nexport function typeDirectiveFactory(): TuiTextfieldTypeDirective {\n return new TuiTextfieldTypeDirective();\n}\n","import {NgModule} from '@angular/core';\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\n@NgModule({\n declarations: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n exports: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n})\nexport class TuiTextfieldControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {merge, NEVER, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\nimport {\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TuiTextfieldAutocompleteDirective,\n} from './textfield-autocomplete.directive';\nimport {\n TUI_TEXTFIELD_CLEANER,\n TuiTextfieldCleanerDirective,\n} from './textfield-cleaner.directive';\nimport {\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TuiTextfieldCustomContentDirective,\n} from './textfield-custom-content.directive';\nimport {\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TuiTextfieldExampleTextDirective,\n} from './textfield-example-text.directive';\nimport {\n TUI_TEXTFIELD_INPUT_MODE,\n TuiTextfieldInputModeDirective,\n} from './textfield-input-mode.directive';\nimport {\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiTextfieldLabelOutsideDirective,\n} from './textfield-label-outside.directive';\nimport {\n TUI_TEXTFIELD_MAX_LENGTH,\n TuiTextfieldMaxLengthDirective,\n} from './textfield-max-length.directive';\nimport {TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TUI_TEXTFIELD_TYPE, TuiTextfieldTypeDirective} from './textfield-type.directive';\nimport {TuiTextfieldController} from './textfield.controller';\n\nexport const TUI_TEXTFIELD_WATCHED_CONTROLLER =\n new InjectionToken<TuiTextfieldController>('watched textfield controller');\n\nexport function textfieldWatchedControllerFactory(\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n ...controllers: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n // @ts-ignore remove after TS update\n TuiTextfieldTypeDirective,\n ]\n): TuiTextfieldController {\n const change$ = merge(...controllers.map(({change$}) => change$ || NEVER)).pipe(\n watch(changeDetectorRef),\n takeUntil(destroy$),\n );\n\n change$.subscribe();\n\n return new TuiTextfieldController(change$, ...controllers);\n}\n\nexport const TEXTFIELD_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_TEXTFIELD_WATCHED_CONTROLLER,\n deps: [\n ChangeDetectorRef,\n TuiDestroyService,\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TUI_TEXTFIELD_CLEANER,\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TUI_TEXTFIELD_INPUT_MODE,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_MAX_LENGTH,\n TUI_TEXTFIELD_SIZE,\n TUI_TEXTFIELD_TYPE,\n ],\n useFactory: textfieldWatchedControllerFactory,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAeI,gCACa,OAAyB,EACjB,qBAAwD,EACxD,gBAA8C,EAC9C,sBAA0D,EAC1D,oBAAsD,EACtD,kBAAkD,EAClD,qBAAwD,EACxD,kBAAkD,EAClD,aAAwC,EACxC,aAAwC;QAThD,YAAO,GAAP,OAAO,CAAkB;QACjB,0BAAqB,GAArB,qBAAqB,CAAmC;QACxD,qBAAgB,GAAhB,gBAAgB,CAA8B;QAC9C,2BAAsB,GAAtB,sBAAsB,CAAoC;QAC1D,yBAAoB,GAApB,oBAAoB,CAAkC;QACtD,uBAAkB,GAAlB,kBAAkB,CAAgC;QAClD,0BAAqB,GAArB,qBAAqB,CAAmC;QACxD,uBAAkB,GAAlB,kBAAkB,CAAgC;QAClD,kBAAa,GAAb,aAAa,CAA2B;QACxC,kBAAa,GAAb,aAAa,CAA2B;KACzD;IAEJ,sBAAI,gDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC;SAClD;;;OAAA;IAED,sBAAI,2CAAO;aAAX;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;SACxC;;;OAAA;IAED,sBAAI,iDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,IAAI,EAAE,CAAC;SAC1D;;;OAAA;IAED,sBAAI,+CAAW;aAAf;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC;SAChD;;;OAA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,IAAI,CAC3E,KAAK,CAAC,iBAAiB,CAAC,EACxB,SAAS,CAAC,QAAQ,CAAC,CACtB,CAAC;IAEF,OAAO,CAAC,SAAS,EAAE,CAAC;IAEpB,YAAW,sBAAsB,YAAtB,sBAAsB,oBAAC,OAAO,GAAK,WAAW,MAAE;AAC/D,CAAC;IAEY,6BAA6B,GAAa;IACnD,iBAAiB;IACjB;QACI,OAAO,EAAE,gCAAgC;QACzC,IAAI,EAAE;YACF,iBAAiB;YACjB,iBAAiB;YACjB,0BAA0B;YAC1B,qBAAqB;YACrB,4BAA4B;YAC5B,0BAA0B;YAC1B,wBAAwB;YACxB,2BAA2B;YAC3B,wBAAwB;YACxB,kBAAkB;YAClB,kBAAkB;SACrB;QACD,UAAU,EAAE,iCAAiC;KAChD;;;ACnFL;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-textfield-controller.js","sources":["ng://@taiga-ui/core/directives/textfield-controller/textfield.controller.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-autocomplete.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-cleaner.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-custom-content.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-example-text.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-input-mode.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-label-outside.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-max-length.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-size.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-type.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.module.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.provider.ts","ng://@taiga-ui/core/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.ts"],"sourcesContent":["import {TuiAutofillFieldName, TuiInputModeT, TuiInputTypeT} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\nexport class TuiTextfieldController {\n constructor(\n readonly change$: Observable<void>,\n private readonly autocompleteDirective: TuiTextfieldAutocompleteDirective,\n private readonly cleanerDirective: TuiTextfieldCleanerDirective,\n private readonly customContentDirective: TuiTextfieldCustomContentDirective,\n private readonly exampleTextDirective: TuiTextfieldExampleTextDirective,\n private readonly inputModeDirective: TuiTextfieldInputModeDirective,\n private readonly labelOutsideDirective: TuiTextfieldLabelOutsideDirective,\n private readonly maxLengthDirective: TuiTextfieldMaxLengthDirective,\n private readonly sizeDirective: TuiTextfieldSizeDirective,\n private readonly typeDirective: TuiTextfieldTypeDirective,\n ) {}\n\n get autocomplete(): TuiAutofillFieldName | '' {\n return this.autocompleteDirective.autocomplete;\n }\n\n get cleaner(): boolean {\n return this.cleanerDirective.cleaner;\n }\n\n get customContent(): PolymorpheusContent {\n return this.customContentDirective.customContent || '';\n }\n\n get exampleText(): string {\n return this.exampleTextDirective.exampleText;\n }\n\n get inputMode(): TuiInputModeT {\n return this.inputModeDirective.inputMode;\n }\n\n get labelOutside(): boolean {\n return this.labelOutsideDirective.labelOutside;\n }\n\n get maxLength(): number | null {\n return this.maxLengthDirective.maxLength;\n }\n\n get size(): TuiSizeS | TuiSizeL {\n return this.sizeDirective.size;\n }\n\n get type(): TuiInputTypeT {\n return this.typeDirective.type;\n }\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiAutofillFieldName, TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_AUTOCOMPLETE =\n new InjectionToken<TuiTextfieldAutocompleteDirective>('tuiTextfieldAutocomplete', {\n factory: autocompleteDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldAutocomplete]',\n providers: [\n {\n provide: TUI_TEXTFIELD_AUTOCOMPLETE,\n useExisting: forwardRef(() => TuiTextfieldAutocompleteDirective),\n },\n ],\n})\nexport class TuiTextfieldAutocompleteDirective extends TuiController {\n @Input('tuiTextfieldAutocomplete')\n autocomplete: TuiAutofillFieldName | '' = '';\n}\n\nexport function autocompleteDirectiveFactory(): TuiTextfieldAutocompleteDirective {\n return new TuiTextfieldAutocompleteDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_CLEANER = new InjectionToken<TuiTextfieldCleanerDirective>(\n 'tuiTextfieldCleaner',\n {\n factory: cleanerDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldCleaner]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CLEANER,\n useExisting: forwardRef(() => TuiTextfieldCleanerDirective),\n },\n ],\n})\nexport class TuiTextfieldCleanerDirective extends TuiController {\n @Input('tuiTextfieldCleaner')\n cleaner = false;\n}\n\nexport function cleanerDirectiveFactory(): TuiTextfieldCleanerDirective {\n return new TuiTextfieldCleanerDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_CUSTOM_CONTENT =\n new InjectionToken<TuiTextfieldCustomContentDirective>('tuiTextfieldCustomContent', {\n factory: customContentDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldCustomContent]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CUSTOM_CONTENT,\n useExisting: forwardRef(() => TuiTextfieldCustomContentDirective),\n },\n ],\n})\nexport class TuiTextfieldCustomContentDirective extends TuiController {\n // TODO: Remove null in 3.0\n @Input('tuiTextfieldCustomContent')\n customContent: PolymorpheusContent | null = null;\n}\n\nexport function customContentDirectiveFactory(): TuiTextfieldCustomContentDirective {\n return new TuiTextfieldCustomContentDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_EXAMPLE_TEXT =\n new InjectionToken<TuiTextfieldExampleTextDirective>('tuiTextfieldExampleText', {\n factory: exampleTextDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldExampleText]',\n providers: [\n {\n provide: TUI_TEXTFIELD_EXAMPLE_TEXT,\n useExisting: forwardRef(() => TuiTextfieldExampleTextDirective),\n },\n ],\n})\nexport class TuiTextfieldExampleTextDirective extends TuiController {\n @Input('tuiTextfieldExampleText')\n exampleText = '';\n}\n\nexport function exampleTextDirectiveFactory(): TuiTextfieldExampleTextDirective {\n return new TuiTextfieldExampleTextDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputModeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_INPUT_MODE =\n new InjectionToken<TuiTextfieldInputModeDirective>('tuiTextfieldInputMode', {\n factory: inputModeDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldInputMode]',\n providers: [\n {\n provide: TUI_TEXTFIELD_INPUT_MODE,\n useExisting: forwardRef(() => TuiTextfieldInputModeDirective),\n },\n ],\n})\nexport class TuiTextfieldInputModeDirective extends TuiController {\n @Input('tuiTextfieldInputMode')\n inputMode: TuiInputModeT = 'text';\n}\n\nexport function inputModeDirectiveFactory(): TuiTextfieldInputModeDirective {\n return new TuiTextfieldInputModeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_LABEL_OUTSIDE =\n new InjectionToken<TuiTextfieldLabelOutsideDirective>('tuiTextfieldLabelOutside', {\n factory: labelOutsideDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldLabelOutside]',\n providers: [\n {\n provide: TUI_TEXTFIELD_LABEL_OUTSIDE,\n useExisting: forwardRef(() => TuiTextfieldLabelOutsideDirective),\n },\n ],\n})\nexport class TuiTextfieldLabelOutsideDirective extends TuiController {\n @Input('tuiTextfieldLabelOutside')\n labelOutside = false;\n}\n\nexport function labelOutsideDirectiveFactory(): TuiTextfieldLabelOutsideDirective {\n return new TuiTextfieldLabelOutsideDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_MAX_LENGTH =\n new InjectionToken<TuiTextfieldMaxLengthDirective>('tuiTextfieldMaxLength', {\n factory: maxLengthDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldMaxLength]',\n providers: [\n {\n provide: TUI_TEXTFIELD_MAX_LENGTH,\n useExisting: forwardRef(() => TuiTextfieldMaxLengthDirective),\n },\n ],\n})\nexport class TuiTextfieldMaxLengthDirective extends TuiController {\n @Input('tuiTextfieldMaxLength')\n maxLength: number | null = null;\n}\n\nexport function maxLengthDirectiveFactory(): TuiTextfieldMaxLengthDirective {\n return new TuiTextfieldMaxLengthDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport const TUI_TEXTFIELD_SIZE = new InjectionToken<TuiTextfieldSizeDirective>(\n 'tuiTextfieldSize',\n {\n factory: sizeDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldSize]',\n providers: [\n {\n provide: TUI_TEXTFIELD_SIZE,\n useExisting: forwardRef(() => TuiTextfieldSizeDirective),\n },\n ],\n})\nexport class TuiTextfieldSizeDirective extends TuiController {\n @Input('tuiTextfieldSize')\n size: TuiSizeS | TuiSizeL = 'l';\n}\n\nexport function sizeDirectiveFactory(): TuiTextfieldSizeDirective {\n return new TuiTextfieldSizeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputTypeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_TYPE = new InjectionToken<TuiTextfieldTypeDirective>(\n 'tuiTextfieldType',\n {\n factory: typeDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldType]',\n providers: [\n {\n provide: TUI_TEXTFIELD_TYPE,\n useExisting: forwardRef(() => TuiTextfieldTypeDirective),\n },\n ],\n})\nexport class TuiTextfieldTypeDirective extends TuiController {\n @Input('tuiTextfieldType')\n type: TuiInputTypeT = 'text';\n}\n\nexport function typeDirectiveFactory(): TuiTextfieldTypeDirective {\n return new TuiTextfieldTypeDirective();\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\n@NgModule({\n declarations: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n exports: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n})\nexport class TuiTextfieldControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {merge, NEVER, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiTextfieldController} from './textfield.controller';\nimport {\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TuiTextfieldAutocompleteDirective,\n} from './textfield-autocomplete.directive';\nimport {\n TUI_TEXTFIELD_CLEANER,\n TuiTextfieldCleanerDirective,\n} from './textfield-cleaner.directive';\nimport {\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TuiTextfieldCustomContentDirective,\n} from './textfield-custom-content.directive';\nimport {\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TuiTextfieldExampleTextDirective,\n} from './textfield-example-text.directive';\nimport {\n TUI_TEXTFIELD_INPUT_MODE,\n TuiTextfieldInputModeDirective,\n} from './textfield-input-mode.directive';\nimport {\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiTextfieldLabelOutsideDirective,\n} from './textfield-label-outside.directive';\nimport {\n TUI_TEXTFIELD_MAX_LENGTH,\n TuiTextfieldMaxLengthDirective,\n} from './textfield-max-length.directive';\nimport {TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TUI_TEXTFIELD_TYPE, TuiTextfieldTypeDirective} from './textfield-type.directive';\n\nexport const TUI_TEXTFIELD_WATCHED_CONTROLLER =\n new InjectionToken<TuiTextfieldController>('watched textfield controller');\n\nexport function textfieldWatchedControllerFactory(\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n ...controllers: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n // @ts-ignore remove after TS update\n TuiTextfieldTypeDirective,\n ]\n): TuiTextfieldController {\n const change$ = merge(...controllers.map(({change$}) => change$ || NEVER)).pipe(\n watch(changeDetectorRef),\n takeUntil(destroy$),\n );\n\n change$.subscribe();\n\n return new TuiTextfieldController(change$, ...controllers);\n}\n\nexport const TEXTFIELD_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_TEXTFIELD_WATCHED_CONTROLLER,\n deps: [\n ChangeDetectorRef,\n TuiDestroyService,\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TUI_TEXTFIELD_CLEANER,\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TUI_TEXTFIELD_INPUT_MODE,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_MAX_LENGTH,\n TUI_TEXTFIELD_SIZE,\n TUI_TEXTFIELD_TYPE,\n ],\n useFactory: textfieldWatchedControllerFactory,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAgBI,gCACa,OAAyB,EACjB,qBAAwD,EACxD,gBAA8C,EAC9C,sBAA0D,EAC1D,oBAAsD,EACtD,kBAAkD,EAClD,qBAAwD,EACxD,kBAAkD,EAClD,aAAwC,EACxC,aAAwC;QAThD,YAAO,GAAP,OAAO,CAAkB;QACjB,0BAAqB,GAArB,qBAAqB,CAAmC;QACxD,qBAAgB,GAAhB,gBAAg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B,kCAAkC;gBAClC,gCAAgC;gBAChC,8BAA8B;gBAC9B,iCAAiC;gBACjC,8BAA8B;gBAC9B,yBAAyB;gBACzB,yBAAyB;aAC5B;YACD,OAAO,EAAE;gBACL,iCAAiC;gBACjC,4BAA4B;gBAC5B,kCAAkC;gBAClC,gCAAgC;gBAChC,8BAA8B;gBAC9B,iCAAiC;gBACjC,8BAA8B;gBAC9B,yBAAyB;gBACzB,yBAAyB;aAC5B;SACJ,CAAC;OACW,4BAA4B,CAAG;IAAD,mCAAC;CAA5C;;ICCa,gCAAgC,GACzC,IAAI,cAAc,CAAyB,8BAA8B,EAAE;SAE/D,iCAAiC,CAC7C,iBAAoC,EACpC,QAA0B;IAC1B,qBAWC;SAXD,UAWC,EAXD,qBAWC,EAXD,IAWC;QAXD,oCAWC;;IAED,IAAM,OAAO,GAAG,KAAK,wBAAI,WAAW,CAAC,GAAG,CAAC,UAAC,EAAS;YAAR,oBAAO;QAAM,OAAA,OAAO,IAAI,KAAK;KAAA,CAAC,GAAE,IAAI,CAC3E,KAAK,CAAC,iBAAiB,CAAC,EACxB,SAAS,CAAC,QAAQ,CAAC,CACtB,CAAC;IAEF,OAAO,CAAC,SAAS,EAAE,CAAC;IAEpB,YAAW,sBAAsB,YAAtB,sBAAsB,oBAAC,OAAO,GAAK,WAAW,MAAE;AAC/D,CAAC;IAEY,6BAA6B,GAAa;IACnD,iBAAiB;IACjB;QACI,OAAO,EAAE,gCAAgC;QACzC,IAAI,EAAE;YACF,iBAAiB;YACjB,iBAAiB;YACjB,0BAA0B;YAC1B,qBAAqB;YACrB,4BAA4B;YAC5B,0BAA0B;YAC1B,wBAAwB;YACxB,2BAA2B;YAC3B,wBAAwB;YACxB,kBAAkB;YAClB,kBAAkB;SACrB;QACD,UAAU,EAAE,iCAAiC;KAChD;;;ACpFL;;;;;;"}
@@ -5,8 +5,8 @@ export * from '@taiga-ui/core/directives/dropdown';
5
5
  export * from '@taiga-ui/core/directives/dropdown-controller';
6
6
  export * from '@taiga-ui/core/directives/hint';
7
7
  export * from '@taiga-ui/core/directives/hint-controller';
8
- export * from '@taiga-ui/core/directives/mask-accessor';
9
8
  export * from '@taiga-ui/core/directives/manual-hint';
9
+ export * from '@taiga-ui/core/directives/mask-accessor';
10
10
  export * from '@taiga-ui/core/directives/mode';
11
11
  export * from '@taiga-ui/core/directives/pointer-hint';
12
12
  export * from '@taiga-ui/core/directives/scroll-into-view';
@@ -2,6 +2,7 @@ var TuiAppearance;
2
2
  (function (TuiAppearance) {
3
3
  TuiAppearance["Icon"] = "icon";
4
4
  TuiAppearance["Primary"] = "primary";
5
+ TuiAppearance["Accent"] = "accent";
5
6
  TuiAppearance["Secondary"] = "secondary";
6
7
  TuiAppearance["Table"] = "table";
7
8
  TuiAppearance["Textfield"] = "textfield";
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-enums.js","sources":["ng://@taiga-ui/core/enums/appearance.ts","ng://@taiga-ui/core/enums/base-color.ts","ng://@taiga-ui/core/enums/button-shape.ts","ng://@taiga-ui/core/enums/decimal.ts","ng://@taiga-ui/core/enums/dropdown-animation.ts","ng://@taiga-ui/core/enums/dropdown-width.ts","ng://@taiga-ui/core/enums/hint-mode.ts","ng://@taiga-ui/core/enums/interactive-state.ts","ng://@taiga-ui/core/enums/link-mode.ts","ng://@taiga-ui/core/enums/notification.ts","ng://@taiga-ui/core/enums/orientation.ts","ng://@taiga-ui/core/enums/range-state.ts","ng://@taiga-ui/core/enums/support-color.ts","ng://@taiga-ui/core/enums/taiga-ui-core-enums.ts"],"sourcesContent":["export const enum TuiAppearance {\n Icon = 'icon',\n Primary = 'primary',\n Secondary = 'secondary',\n Table = 'table',\n Textfield = 'textfield',\n Flat = 'flat',\n Outline = 'outline',\n Whiteblock = 'whiteblock',\n WhiteblockActive = 'whiteblock-active',\n}\n","/**\n * @deprecated\n */\nexport const enum TuiBaseColor {\n Primary = 'primary',\n Secondary = 'secondary',\n Success = 'success',\n Error = 'error',\n}\n","/**\n * @deprecated use string values\n */\nexport const enum TuiButtonShape {\n Square = 'square',\n Rounded = 'rounded',\n}\n","/**\n * @deprecated use join type {@link TuiDecimalT}\n */\nexport const enum TuiDecimal {\n NotZero = 'not-zero',\n Always = 'always',\n Never = 'never',\n}\n","export const enum TuiDropdownAnimation {\n FadeInBottom = 'fadeInBottom',\n FadeInTop = 'fadeInTop',\n}\n","/**\n * @deprecated use join type {@link TuiDropdownWidthT}\n */\nexport const enum TuiDropdownWidth {\n Fixed = 'fixed',\n Min = 'min',\n Auto = 'auto',\n}\n","/**\n * @deprecated use join type {@link TuiHintModeT}\n */\nexport const enum TuiHintMode {\n Error = 'error',\n OnDark = 'onDark',\n Overflow = 'overflow',\n}\n","/**\n * @internal used in calendar, year picker and wrapper\n */\nexport const enum TuiInteractiveState {\n Disabled = 'disabled',\n Readonly = 'readonly',\n Pressed = 'pressed',\n Hovered = 'hovered',\n}\n","/**\n * @deprecated use string values\n */\nexport const enum TuiLinkMode {\n Positive = 'positive',\n Negative = 'negative',\n}\n","export const enum TuiNotification {\n Info = 'info',\n Warning = 'warning',\n Success = 'success',\n Error = 'error',\n}\n","/**\n * @deprecated use join type {@link TuiOrientationT}\n */\nexport const enum TuiOrientation {\n Vertical = 'vertical',\n Horizontal = 'horizontal',\n}\n","/**\n * @internal used in calendar and year picker\n */\nexport const enum TuiRangeState {\n Start = 'start',\n End = 'end',\n Single = 'single',\n}\n","/**\n * @deprecated\n */\nexport const enum TuiSupportColor {\n Mustard = 'support-01',\n Texas = 'support-02',\n Tan = 'support-03',\n Salmon = 'support-04',\n Sienna = 'support-05',\n Bittersweet = 'support-06',\n Pinkie = 'support-07',\n Charm = 'support-08',\n Amethist = 'support-09',\n Helio = 'support-10',\n Lilac = 'support-11',\n Malibu = 'support-12',\n Havelock = 'support-13',\n Picton = 'support-14',\n Mint = 'support-15',\n Fountain = 'support-16',\n Puertorico = 'support-17',\n Bay = 'support-18',\n Forest = 'support-19',\n York = 'support-20',\n Feijoa = 'support-21',\n}\n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,CAAC,EALiB,mBAAmB,KAAnB,mBAAmB;;ACHrC;;;IAGkB;AAAlB,WAAkB,WAAW;IACzB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACzB,CAAC,EAHiB,WAAW,KAAX,WAAW;;ICHX;AAAlB,WAAkB,eAAe;IAC7B,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,kCAAe,CAAA;AACnB,CAAC,EALiB,eAAe,KAAf,eAAe;;ACAjC;;;IAGkB;AAAlB,WAAkB,cAAc;IAC5B,uCAAqB,CAAA;IACrB,2CAAyB,CAAA;AAC7B,CAAC,EAHiB,cAAc,KAAd,cAAc;;ACHhC;;;IAGkB;AAAlB,WAAkB,aAAa;IAC3B,gCAAe,CAAA;IACf,4BAAW,CAAA;IACX,kCAAiB,CAAA;AACrB,CAAC,EAJiB,aAAa,KAAb,aAAa;;ACH/B;;;IAGkB;AAAlB,WAAkB,eAAe;IAC7B,yCAAsB,CAAA;IACtB,uCAAoB,CAAA;IACpB,qCAAkB,CAAA;IAClB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,6CAA0B,CAAA;IAC1B,wCAAqB,CAAA;IACrB,uCAAoB,CAAA;IACpB,0CAAuB,CAAA;IACvB,uCAAoB,CAAA;IACpB,uCAAoB,CAAA;IACpB,wCAAqB,CAAA;IACrB,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,qCAAkB,CAAA;IAClB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;AACzB,CAAC,EAtBiB,eAAe,KAAf,eAAe;;ACHjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-enums.js","sources":["ng://@taiga-ui/core/enums/appearance.ts","ng://@taiga-ui/core/enums/base-color.ts","ng://@taiga-ui/core/enums/button-shape.ts","ng://@taiga-ui/core/enums/decimal.ts","ng://@taiga-ui/core/enums/dropdown-animation.ts","ng://@taiga-ui/core/enums/dropdown-width.ts","ng://@taiga-ui/core/enums/hint-mode.ts","ng://@taiga-ui/core/enums/interactive-state.ts","ng://@taiga-ui/core/enums/link-mode.ts","ng://@taiga-ui/core/enums/notification.ts","ng://@taiga-ui/core/enums/orientation.ts","ng://@taiga-ui/core/enums/range-state.ts","ng://@taiga-ui/core/enums/support-color.ts","ng://@taiga-ui/core/enums/taiga-ui-core-enums.ts"],"sourcesContent":["export const enum TuiAppearance {\n Icon = 'icon',\n Primary = 'primary',\n Accent = 'accent',\n Secondary = 'secondary',\n Table = 'table',\n Textfield = 'textfield',\n Flat = 'flat',\n Outline = 'outline',\n Whiteblock = 'whiteblock',\n WhiteblockActive = 'whiteblock-active',\n}\n","/**\n * @deprecated\n */\nexport const enum TuiBaseColor {\n Primary = 'primary',\n Secondary = 'secondary',\n Success = 'success',\n Error = 'error',\n}\n","/**\n * @deprecated use string values\n */\nexport const enum TuiButtonShape {\n Square = 'square',\n Rounded = 'rounded',\n}\n","/**\n * @deprecated use join type {@link TuiDecimalT}\n */\nexport const enum TuiDecimal {\n NotZero = 'not-zero',\n Always = 'always',\n Never = 'never',\n}\n","export const enum TuiDropdownAnimation {\n FadeInBottom = 'fadeInBottom',\n FadeInTop = 'fadeInTop',\n}\n","/**\n * @deprecated use join type {@link TuiDropdownWidthT}\n */\nexport const enum TuiDropdownWidth {\n Fixed = 'fixed',\n Min = 'min',\n Auto = 'auto',\n}\n","/**\n * @deprecated use join type {@link TuiHintModeT}\n */\nexport const enum TuiHintMode {\n Error = 'error',\n OnDark = 'onDark',\n Overflow = 'overflow',\n}\n","/**\n * @internal used in calendar, year picker and wrapper\n */\nexport const enum TuiInteractiveState {\n Disabled = 'disabled',\n Readonly = 'readonly',\n Pressed = 'pressed',\n Hovered = 'hovered',\n}\n","/**\n * @deprecated use string values\n */\nexport const enum TuiLinkMode {\n Positive = 'positive',\n Negative = 'negative',\n}\n","export const enum TuiNotification {\n Info = 'info',\n Warning = 'warning',\n Success = 'success',\n Error = 'error',\n}\n","/**\n * @deprecated use join type {@link TuiOrientationT}\n */\nexport const enum TuiOrientation {\n Vertical = 'vertical',\n Horizontal = 'horizontal',\n}\n","/**\n * @internal used in calendar and year picker\n */\nexport const enum TuiRangeState {\n Start = 'start',\n End = 'end',\n Single = 'single',\n}\n","/**\n * @deprecated\n */\nexport const enum TuiSupportColor {\n Mustard = 'support-01',\n Texas = 'support-02',\n Tan = 'support-03',\n Salmon = 'support-04',\n Sienna = 'support-05',\n Bittersweet = 'support-06',\n Pinkie = 'support-07',\n Charm = 'support-08',\n Amethist = 'support-09',\n Helio = 'support-10',\n Lilac = 'support-11',\n Malibu = 'support-12',\n Havelock = 'support-13',\n Picton = 'support-14',\n Mint = 'support-15',\n Fountain = 'support-16',\n Puertorico = 'support-17',\n Bay = 'support-18',\n Forest = 'support-19',\n York = 'support-20',\n Feijoa = 'support-21',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"IAAkB;AAAlB,WAAkB,aAAa;IAC3B,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,gCAAe,CAAA;IACf,wCAAuB,CAAA;IACvB,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,uDAAsC,CAAA;AAC1C,CAAC,EAXiB,aAAa,KAAb,aAAa;;ACA/B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACnB,CAAC,EALiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,cAAc;IAC5B,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACvB,CAAC,EAHiB,cAAc,KAAd,cAAc;;ACHhC;;;IAGkB;AAAlB,WAAkB,UAAU;IACxB,kC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CAAA;IACpB,qCAAkB,CAAA;IAClB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,6CAA0B,CAAA;IAC1B,wCAAqB,CAAA;IACrB,uCAAoB,CAAA;IACpB,0CAAuB,CAAA;IACvB,uCAAoB,CAAA;IACpB,uCAAoB,CAAA;IACpB,wCAAqB,CAAA;IACrB,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;IACzB,qCAAkB,CAAA;IAClB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;AACzB,CAAC,EAtBiB,eAAe,KAAf,eAAe;;ACHjC;;;;;;"}
@@ -84,7 +84,7 @@ var TuiPrimitiveYearMonthPaginationComponent = /** @class */ (function () {
84
84
  TuiPrimitiveYearMonthPaginationComponent = __decorate([
85
85
  Component({
86
86
  selector: 'tui-primitive-year-month-pagination',
87
- 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",
87
+ 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",
88
88
  styles: [":host{display:block}"]
89
89
  })
90
90
  ], TuiPrimitiveYearMonthPaginationComponent);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-internal-primitive-year-month-pagination.js","sources":["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","ng://@taiga-ui/core/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.ts"],"sourcesContent":["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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAgBA;QAKI,UAAK,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAIhC,QAAG,GAAa,aAAa,CAAC;QAI9B,QAAG,GAAa,YAAY,CAAC;QAGpB,gBAAW,GAAG,IAAI,YAAY,EAAY,CAAC;QAG3C,cAAS,GAAG,IAAI,YAAY,EAAW,CAAC;KAoDpD;IAlDG,sBAAI,uEAAiB;aAArB;YACI,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAA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,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAChC;IAjED;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;2EACe;IAIhC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;yEACa;IAI9B;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;yEACY;IAG7B;QADC,MAAM,EAAE;iFAC2C;IAGpD;QADC,MAAM,EAAE;+EACwC;IAnBxC,wCAAwC;QALpD,SAAS,CAAC;YACP,QAAQ,EAAE,qCAAqC;YAC/C,uuBAA8D;;SAEjE,CAAC;OACW,wCAAwC,CAuEpD;IAAD,+CAAC;CAvED;;;ICIA;KAAqD;IAAxC,qCAAqC;QAXjD,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,4BAA4B;gBAC5B,aAAa;gBACb,kBAAkB;aACrB;YACD,YAAY,EAAE,CAAC,wCAAwC,CAAC;YACxD,OAAO,EAAE,CAAC,wCAAwC,CAAC;SACtD,CAAC;OACW,qCAAqC,CAAG;IAAD,4CAAC;CAArD;;ACpBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-internal-primitive-year-month-pagination.js","sources":["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","ng://@taiga-ui/core/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.ts"],"sourcesContent":["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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAgBA;QAKI,UAAK,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAIhC,QAAG,GAAa,aAAa,CAAC;QAI9B,QAAG,GAAa,YAAY,CAAC;QAGpB,gBAAW,GAAG,IAAI,YAAY,EAAY,CAAC;QAG3C,cAAS,GAAG,IAAI,YAAY,EAAW,CAAC;KAoDpD;IAlDG,sBAAI,uEAAiB;aAArB;YACI,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACjD;;;OAAA;IAED,sBAAI,uEAAiB;aAArB;YACI,OAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAChD;;;OAAA;IAED,sBAAI,6DAAO;aAAX;YACI,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;SAC1C;;;OAAA;IAED,8DAAW,GAAX;QACI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACnC;IAED,mEAAgB,GAAhB;QACI,IAAI,CAAC,oBAAoB,CAAC,EAAC,KAAK,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;KAC1C;IAED,mEAAgB,GAAhB;QACI,IAAI,CAAC,oBAAoB,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;KACzC;IAEO,uEAAoB,GAA5B,UAA6B,IAAkB;QAC3C,IAAM,QAAQ,GAAa,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEnD,IAAI,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE;YACrC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAE3B,OAAO;SACV;QAED,IAAI,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE;YACtC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAE3B,OAAO;SACV;QAED,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAEO,8DAAW,GAAnB,UAAoB,KAAe;QAC/B,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAC7B,OAAO;SACV;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAChC;IAjED;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;2EACe;IAIhC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;yEACa;IAI9B;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;yEACY;IAG7B;QADC,MAAM,EAAE;iFAC2C;IAGpD;QADC,MAAM,EAAE;+EACwC;IAnBxC,wCAAwC;QALpD,SAAS,CAAC;YACP,QAAQ,EAAE,qCAAqC;YAC/C,6uBAA8D;;SAEjE,CAAC;OACW,wCAAwC,CAuEpD;IAAD,+CAAC;CAvED;;;ICIA;KAAqD;IAAxC,qCAAqC;QAXjD,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,4BAA4B;gBAC5B,aAAa;gBACb,kBAAkB;aACrB;YACD,YAAY,EAAE,CAAC,wCAAwC,CAAC;YACxD,OAAO,EAAE,CAAC,wCAAwC,CAAC;SACtD,CAAC;OACW,qCAAqC,CAAG;IAAD,4CAAC;CAArD;;ACpBA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-internal-svg-defs-host.js","sources":["ng://@taiga-ui/core/internal/svg-defs-host/svg-defs-host.component.ts","ng://@taiga-ui/core/internal/svg-defs-host/svg-defs-host.module.ts","ng://@taiga-ui/core/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.ts"],"sourcesContent":["import {DOCUMENT, isPlatformServer} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n OnInit,\n PLATFORM_ID,\n} from '@angular/core';\nimport {SafeHtml} from '@angular/platform-browser';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {TuiSvgService} from '@taiga-ui/core/services';\nimport {innerHTML} from '@taiga-ui/core/utils/polyfills';\nimport {takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: 'tui-svg-defs-host',\n templateUrl: './svg-defs-host.template.html',\n styleUrls: ['./svg-defs-host.style.less'],\n providers: [TuiDestroyService],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSvgDefsHostComponent implements OnInit {\n items!: IterableIterator<SafeHtml>;\n isBrowser = true;\n\n constructor(\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(TuiSvgService) private readonly svgService: TuiSvgService,\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(PLATFORM_ID) platformId: Object,\n ) {\n this.isBrowser = !isPlatformServer(platformId);\n innerHTML(documentRef);\n }\n\n // @bad TODO: Looks like it could be async piped but it was probably written like that for a reason\n ngOnInit() {\n this.svgService.items$.pipe(takeUntil(this.destroy$)).subscribe(defsMap => {\n this.items = defsMap.values();\n this.changeDetectorRef.detectChanges();\n });\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\nimport {TuiSvgDefsHostComponent} from './svg-defs-host.component';\n\n@NgModule({\n imports: [CommonModule, TuiLetModule],\n declarations: [TuiSvgDefsHostComponent],\n exports: [TuiSvgDefsHostComponent],\n})\nexport class TuiSvgDefsHostModule {}\n","/**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iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAVf,uBAAuB,CAuBnC;IAAD,8BAAC;CAvBD;;;ICbA;KAAoC;IAAvB,oBAAoB;QALhC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;YACrC,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-internal-svg-defs-host.js","sources":["ng://@taiga-ui/core/internal/svg-defs-host/svg-defs-host.component.ts","ng://@taiga-ui/core/internal/svg-defs-host/svg-defs-host.module.ts","ng://@taiga-ui/core/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.ts"],"sourcesContent":["import {DOCUMENT, isPlatformServer} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n OnInit,\n PLATFORM_ID,\n} from '@angular/core';\nimport {SafeHtml} from '@angular/platform-browser';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {TuiSvgService} from '@taiga-ui/core/services';\nimport {innerHTML} from '@taiga-ui/core/utils/polyfills';\nimport {takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: 'tui-svg-defs-host',\n templateUrl: './svg-defs-host.template.html',\n styleUrls: ['./svg-defs-host.style.less'],\n providers: [TuiDestroyService],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSvgDefsHostComponent implements OnInit {\n items!: IterableIterator<SafeHtml>;\n isBrowser = true;\n\n constructor(\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(TuiSvgService) private readonly svgService: TuiSvgService,\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(PLATFORM_ID) platformId: Object,\n ) {\n this.isBrowser = !isPlatformServer(platformId);\n innerHTML(documentRef);\n }\n\n // @bad TODO: Looks like it could be async piped but it was probably written like that for a reason\n ngOnInit() {\n this.svgService.items$.pipe(takeUntil(this.destroy$)).subscribe(defsMap => {\n this.items = defsMap.values();\n this.changeDetectorRef.detectChanges();\n });\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiSvgDefsHostComponent} from './svg-defs-host.component';\n\n@NgModule({\n imports: [CommonModule, TuiLetModule],\n declarations: [TuiSvgDefsHostComponent],\n exports: [TuiSvgDefsHostComponent],\n})\nexport class TuiSvgDefsHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;;IAYI,iCACsB,WAAqB,EACC,UAAyB,EACrB,iBAAoC,EAE/D,QAA2B,EACvB,UAAkB;QAJC,eAAU,GAAV,UAAU,CAAe;QACrB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAE/D,aAAQ,GAAR,QAAQ,CAAmB;QAPhD,cAAS,GAAG,IAAI,CAAC;QAUb,IAAI,CAAC,SAAS,GAAG,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAC/C,SAAS,CAAC,WAAW,CAAC,CAAC;KAC1B;;IAGD,0CAAQ,GAAR;QAAA,iBAKC;QAJG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,UAAA,OAAO;YACnE,KAAI,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;YAC9B,KAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;SAC1C,CAAC,CAAC;KACN;;gBAjBkC,QAAQ,uBAAtC,MAAM,SAAC,QAAQ;gBACoC,aAAa,uBAAhE,MAAM,SAAC,aAAa;gBAC0C,iBAAiB,uBAA/E,MAAM,SAAC,iBAAiB;gBAEE,iBAAiB,uBAD3C,MAAM,SAAC,iBAAiB;gBAEQ,MAAM,uBAAtC,MAAM,SAAC,WAAW;;IAVd,uBAAuB;QAPnC,SAAS,CAAC;YACP,QAAQ,EAAE,mBAAmB;YAC7B,yjBAA4C;YAE5C,SAAS,EAAE,CAAC,iBAAiB,CAAC;YAC9B,eAAe,EAAE,uBAAuB,CAAC,MAAM;;SAClD,CAAC;QAMO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAVf,uBAAuB,CAuBnC;IAAD,8BAAC;CAvBD;;;ICZA;KAAoC;IAAvB,oBAAoB;QALhC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;YACrC,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACXA;;;;;;"}
@@ -9,6 +9,29 @@ import { TuiNotificationModule } from '@taiga-ui/core/components/notification';
9
9
  import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
10
10
  import { tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList } from '@taiga-ui/core/animations';
11
11
 
12
+ var NotificationAlert = /** @class */ (function () {
13
+ function NotificationAlert(observer, content, options) {
14
+ this.observer = observer;
15
+ this.content = content;
16
+ this.options = options;
17
+ this.status = this.options.status;
18
+ this.hasIcon = this.options.hasIcon;
19
+ this.hasCloseButton = this.options.hasCloseButton;
20
+ this.label = this.options.label;
21
+ this.autoClose =
22
+ typeof this.options.autoClose === 'function'
23
+ ? this.options.autoClose(this.options.status)
24
+ : this.options.autoClose;
25
+ if (options && this.withData(options)) {
26
+ this.data = options.data;
27
+ }
28
+ }
29
+ NotificationAlert.prototype.withData = function (options) {
30
+ return 'data' in options;
31
+ };
32
+ return NotificationAlert;
33
+ }());
34
+
12
35
  var DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;
13
36
  var TuiNotificationAlertComponent = /** @class */ (function () {
14
37
  function TuiNotificationAlertComponent(elementRef, destroy$, options) {
@@ -73,7 +96,7 @@ var TuiNotificationAlertComponent = /** @class */ (function () {
73
96
  Component({
74
97
  selector: 'tui-notification-alert',
75
98
  changeDetection: ChangeDetectionStrategy.OnPush,
76
- 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",
99
+ 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",
77
100
  providers: [TuiDestroyService],
78
101
  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}"]
79
102
  }),
@@ -97,29 +120,6 @@ var TuiNotificationAlertModule = /** @class */ (function () {
97
120
  return TuiNotificationAlertModule;
98
121
  }());
99
122
 
100
- var NotificationAlert = /** @class */ (function () {
101
- function NotificationAlert(observer, content, options) {
102
- this.observer = observer;
103
- this.content = content;
104
- this.options = options;
105
- this.status = this.options.status;
106
- this.hasIcon = this.options.hasIcon;
107
- this.hasCloseButton = this.options.hasCloseButton;
108
- this.label = this.options.label;
109
- this.autoClose =
110
- typeof this.options.autoClose === 'function'
111
- ? this.options.autoClose(this.options.status)
112
- : this.options.autoClose;
113
- if (options && this.withData(options)) {
114
- this.data = options.data;
115
- }
116
- }
117
- NotificationAlert.prototype.withData = function (options) {
118
- return 'data' in options;
119
- };
120
- return NotificationAlert;
121
- }());
122
-
123
123
  var NO_HOST = 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';
124
124
  var TuiNotificationsService = /** @class */ (function () {
125
125
  function TuiNotificationsService(options) {
@@ -171,7 +171,7 @@ var TuiNotificationsHostComponent = /** @class */ (function () {
171
171
  Component({
172
172
  selector: 'tui-notifications-host',
173
173
  changeDetection: ChangeDetectionStrategy.OnPush,
174
- 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",
174
+ 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",
175
175
  animations: [tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList],
176
176
  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}"]
177
177
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-modules-notifications.js","sources":["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","ng://@taiga-ui/core/modules/notifications/taiga-ui-core-modules-notifications.ts"],"sourcesContent":["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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAea,+BAA+B,GAAG,KAAK;;IAahD,uCACyC,UAAmC,EAC5B,QAA2B,EAEvD,OAAiC;QAHZ,eAAU,GAAV,UAAU,CAAyB;QAC5B,aAAQ,GAAR,QAAQ,CAAmB;QAEvD,YAAO,GAAP,OAAO,CAA0B;KACjD;IAEJ,gDAAQ,GAAR;QACI,IAAI,CAAC,aAAa,EAAE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-ui/core/modules/notifications/notification-alert/Notification-alert.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.component.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.module.ts","ng://@taiga-ui/core/modules/notifications/notifications.service.ts","ng://@taiga-ui/core/modules/notifications/notifications-host/notifications-host.component.ts","ng://@taiga-ui/core/modules/notifications/notifications.module.ts","ng://@taiga-ui/core/modules/notifications/taiga-ui-core-modules-notifications.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observer} from 'rxjs';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\n\nexport class NotificationAlert<O, I> {\n readonly status = this.options.status;\n\n readonly hasIcon = this.options.hasIcon;\n\n readonly autoClose: boolean | number;\n\n readonly hasCloseButton = this.options.hasCloseButton;\n\n readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>> =\n this.options.label;\n\n readonly data!: I;\n\n constructor(\n readonly observer: Observer<O>,\n readonly content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n private readonly options: Required<\n TuiNotificationOptions | TuiNotificationOptionsWithData<I>\n >,\n ) {\n this.autoClose =\n typeof this.options.autoClose === 'function'\n ? this.options.autoClose(this.options.status)\n : this.options.autoClose;\n\n if (options && this.withData(options)) {\n this.data = options.data;\n }\n }\n\n private withData(\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I>,\n ): options is TuiNotificationOptionsWithData<I> {\n return 'data' in options;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n Input,\n OnInit,\n} from '@angular/core';\nimport {isNumber, TuiDestroyService, tuiPure} from '@taiga-ui/cdk';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\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 {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';\n\nimport {NotificationAlert} from './notification-alert/Notification-alert';\nimport {TuiNotificationContentContext} from './notification-content-context';\n\nconst NO_HOST =\n 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNotificationsService {\n /** @internal */\n readonly items$ = new BehaviorSubject<ReadonlyArray<NotificationAlert<any, any>>>([]);\n\n constructor(\n @Inject(TUI_NOTIFICATION_OPTIONS)\n 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';\n\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';\n\nimport {TuiNotificationAlertModule} from './notification-alert/notification-alert.module';\nimport {TuiNotificationsHostComponent} from './notifications-host/notifications-host.component';\n\n// TODO: remove in ivy compilation\nexport const NOTIFICATIONS_HOST = TuiNotificationsHostComponent;\n\n@NgModule({\n imports: [CommonModule, TuiNotificationAlertModule, TuiLetModule],\n declarations: [TuiNotificationsHostComponent],\n exports: [TuiNotificationsHostComponent],\n entryComponents: [TuiNotificationsHostComponent],\n providers: [\n {\n provide: TuiNotificationsHostComponent,\n useValue: NOTIFICATIONS_HOST,\n },\n ],\n})\nexport class TuiNotificationsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;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,CAAC,6BAA6B,CAAC;YAChD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,6BAA6B;oBACtC,QAAQ,EAAE,kBAAkB;iBAC/B;aACJ;SACJ,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACtBA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-calendar-sheet.js","sources":["ng://@taiga-ui/core/pipes/calendar-sheet/utils.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.pipe.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.module.ts","ng://@taiga-ui/core/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.ts"],"sourcesContent":["import {\n DAYS_IN_WEEK,\n inRange,\n tuiAssert,\n TuiDay,\n TuiDayOfWeek,\n TuiMonth,\n} from '@taiga-ui/cdk';\n\n// TODO: Remove export in ivy compiation\n/**\n * Computes day of week offset of the beginning of the month\n */\nexport const getMonthStartDaysOffset = (\n month: TuiMonth,\n firstDayOfWeek: TuiDayOfWeek,\n): number => {\n const startMonthOffsetFromSunday = new Date(month.year, month.month, 1).getDay();\n\n return startMonthOffsetFromSunday >= firstDayOfWeek\n ? startMonthOffsetFromSunday - firstDayOfWeek\n : DAYS_IN_WEEK - (firstDayOfWeek - startMonthOffsetFromSunday);\n};\n\n/*\nTODO: delete in v3.0:\n * TuiDay.getDayFromMonthRowCol\n * TuiMonth.monthStartDaysOffset\n * TuiMonth.weeksRowsCount\n * TuiYear.yearStartDaysOffset\n * TuiYear.getYearStartDaysOffset\n */\n/**\n * Calculated day on a calendar grid\n * @return resulting day on these coordinates (could exceed passed month)\n */\nexport const getDayFromMonthRowCol = ({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek,\n}: {\n month: TuiMonth;\n /**\n * row in a calendar\n */\n rowIndex: number;\n /**\n * column in a calendar\n */\n colIndex: number;\n /**\n * first day of the week index (Sunday - 0, Saturday - 6)\n */\n firstDayOfWeek: TuiDayOfWeek;\n}): TuiDay => {\n tuiAssert.assert(Number.isInteger(rowIndex));\n tuiAssert.assert(inRange(rowIndex, 0, 6));\n tuiAssert.assert(Number.isInteger(colIndex));\n tuiAssert.assert(inRange(colIndex, 0, DAYS_IN_WEEK));\n\n let day =\n rowIndex * DAYS_IN_WEEK +\n colIndex -\n getMonthStartDaysOffset(month, firstDayOfWeek) +\n 1;\n\n if (day > month.daysCount) {\n day = day - month.daysCount;\n month = month.append({month: 1});\n }\n\n if (day <= 0) {\n month = month.append({month: -1});\n day = month.daysCount + day;\n }\n\n return new TuiDay(month.year, month.month, day);\n};\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {DAYS_IN_WEEK, TuiDay, TuiDayOfWeek, TuiMonth} from '@taiga-ui/cdk';\nimport {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens';\nimport {getDayFromMonthRowCol} from './utils';\n\nconst CALENDAR_ROWS_COUNT = 6;\n\n@Pipe({\n name: 'tuiCalendarSheet',\n})\nexport class TuiCalendarSheetPipe implements PipeTransform {\n private currentMonth: TuiMonth | null = null;\n private currentSheet: ReadonlyArray<ReadonlyArray<TuiDay>> = [];\n\n constructor(\n @Inject(TUI_FIRST_DAY_OF_WEEK)\n private readonly firstDayOfWeek: TuiDayOfWeek,\n ) {}\n\n transform(\n month: TuiMonth,\n showAdjacentDays: boolean = false,\n ): ReadonlyArray<ReadonlyArray<TuiDay>> {\n if (this.currentMonth && this.currentMonth.monthSame(month)) {\n return this.currentSheet;\n }\n\n const sheet: Array<readonly TuiDay[]> = [];\n\n for (let rowIndex = 0; rowIndex < CALENDAR_ROWS_COUNT; rowIndex++) {\n const row: TuiDay[] = [];\n\n for (let colIndex = 0; colIndex < DAYS_IN_WEEK; colIndex++) {\n const day = getDayFromMonthRowCol({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek: this.firstDayOfWeek,\n });\n\n const isPrevMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year < relativeToMonth.year || day.month < relativeToMonth.month;\n\n const isNextMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year > relativeToMonth.year || day.month > relativeToMonth.month;\n\n if (isPrevMonthDay(day) && !showAdjacentDays) {\n continue;\n }\n\n if (isNextMonthDay(day) && !showAdjacentDays) {\n break;\n }\n\n row.push(day);\n }\n\n sheet.push(row);\n }\n\n this.currentSheet = sheet.filter(row => row.length);\n this.currentMonth = month;\n\n return this.currentSheet;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiCalendarSheetPipe} from './calendar-sheet.pipe';\n\n@NgModule({\n declarations: [TuiCalendarSheetPipe],\n exports: [TuiCalendarSheetPipe],\n})\nexport class TuiCalendarSheetPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;AACA;;;AAGO,IAAM,uBAAuB,GAAG,UACnC,KAAe,EACf,cAA4B;IAE5B,IAAM,0BAA0B,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAEjF,OAAO,0BAA0B,IAAI,cAAc;UAC7C,0BAA0B,GAAG,cAAc;UAC3C,YAAY,IAAI,cAAc,GAAG,0BAA0B,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF;;;;;;;;AAQA;;;;AAIO,IAAM,qBAAqB,GAAG,UAAC,EAmBrC;QAlBG,gBAAK,EACL,sBAAQ,EACR,sBAAQ,EACR,kCAAc;IAgBd,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,C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AAC,CAAA;OALzB,oBAAoB,CAuDhC;IAAD,2BAAC;CAvDD;;;ICHA;KAA0C;IAA7B,0BAA0B;QAJtC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,0BAA0B,CAAG;IAAD,iCAAC;CAA1C;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-calendar-sheet.js","sources":["ng://@taiga-ui/core/pipes/calendar-sheet/utils.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.pipe.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.module.ts","ng://@taiga-ui/core/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.ts"],"sourcesContent":["import {\n DAYS_IN_WEEK,\n inRange,\n tuiAssert,\n TuiDay,\n TuiDayOfWeek,\n TuiMonth,\n} from '@taiga-ui/cdk';\n\n// TODO: Remove export in ivy compiation\n/**\n * Computes day of week offset of the beginning of the month\n */\nexport const getMonthStartDaysOffset = (\n month: TuiMonth,\n firstDayOfWeek: TuiDayOfWeek,\n): number => {\n const startMonthOffsetFromSunday = new Date(month.year, month.month, 1).getDay();\n\n return startMonthOffsetFromSunday >= firstDayOfWeek\n ? startMonthOffsetFromSunday - firstDayOfWeek\n : DAYS_IN_WEEK - (firstDayOfWeek - startMonthOffsetFromSunday);\n};\n\n/*\nTODO: delete in v3.0:\n * TuiDay.getDayFromMonthRowCol\n * TuiMonth.monthStartDaysOffset\n * TuiMonth.weeksRowsCount\n * TuiYear.yearStartDaysOffset\n * TuiYear.getYearStartDaysOffset\n */\n/**\n * Calculated day on a calendar grid\n * @return resulting day on these coordinates (could exceed passed month)\n */\nexport const getDayFromMonthRowCol = ({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek,\n}: {\n month: TuiMonth;\n /**\n * row in a calendar\n */\n rowIndex: number;\n /**\n * column in a calendar\n */\n colIndex: number;\n /**\n * first day of the week index (Sunday - 0, Saturday - 6)\n */\n firstDayOfWeek: TuiDayOfWeek;\n}): TuiDay => {\n tuiAssert.assert(Number.isInteger(rowIndex));\n tuiAssert.assert(inRange(rowIndex, 0, 6));\n tuiAssert.assert(Number.isInteger(colIndex));\n tuiAssert.assert(inRange(colIndex, 0, DAYS_IN_WEEK));\n\n let day =\n rowIndex * DAYS_IN_WEEK +\n colIndex -\n getMonthStartDaysOffset(month, firstDayOfWeek) +\n 1;\n\n if (day > month.daysCount) {\n day = day - month.daysCount;\n month = month.append({month: 1});\n }\n\n if (day <= 0) {\n month = month.append({month: -1});\n day = month.daysCount + day;\n }\n\n return new TuiDay(month.year, month.month, day);\n};\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {DAYS_IN_WEEK, TuiDay, TuiDayOfWeek, TuiMonth} from '@taiga-ui/cdk';\nimport {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens';\n\nimport {getDayFromMonthRowCol} from './utils';\n\nconst CALENDAR_ROWS_COUNT = 6;\n\n@Pipe({\n name: 'tuiCalendarSheet',\n})\nexport class TuiCalendarSheetPipe implements PipeTransform {\n private currentMonth: TuiMonth | null = null;\n private currentSheet: ReadonlyArray<ReadonlyArray<TuiDay>> = [];\n\n constructor(\n @Inject(TUI_FIRST_DAY_OF_WEEK)\n private readonly firstDayOfWeek: TuiDayOfWeek,\n ) {}\n\n transform(\n month: TuiMonth,\n showAdjacentDays: boolean = false,\n ): ReadonlyArray<ReadonlyArray<TuiDay>> {\n if (this.currentMonth && this.currentMonth.monthSame(month)) {\n return this.currentSheet;\n }\n\n const sheet: Array<readonly TuiDay[]> = [];\n\n for (let rowIndex = 0; rowIndex < CALENDAR_ROWS_COUNT; rowIndex++) {\n const row: TuiDay[] = [];\n\n for (let colIndex = 0; colIndex < DAYS_IN_WEEK; colIndex++) {\n const day = getDayFromMonthRowCol({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek: this.firstDayOfWeek,\n });\n\n const isPrevMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year < relativeToMonth.year || day.month < relativeToMonth.month;\n\n const isNextMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year > relativeToMonth.year || day.month > relativeToMonth.month;\n\n if (isPrevMonthDay(day) && !showAdjacentDays) {\n continue;\n }\n\n if (isNextMonthDay(day) && !showAdjacentDays) {\n break;\n }\n\n row.push(day);\n }\n\n sheet.push(row);\n }\n\n this.currentSheet = sheet.filter(row => row.length);\n this.currentMonth = month;\n\n return this.currentSheet;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCalendarSheetPipe} from './calendar-sheet.pipe';\n\n@NgModule({\n declarations: [TuiCalendarSheetPipe],\n exports: [TuiCalendarSheetPipe],\n})\nexport class TuiCalendarSheetPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;AACA;;;AAGO,IAAM,uBAAuB,GAAG,UACnC,KAAe,EACf,cAA4B;IAE5B,IAAM,0BAA0B,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAEjF,OAAO,0BAA0B,IAAI,cAAc;UAC7C,0BAA0B,GAAG,cAAc;UAC3C,YAAY,IAAI,cAAc,GAAG,0BAA0B,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF;;;;;;;;AAQA;;;;AAIO,IAAM,qBAAqB,GAAG,UAAC,EAmBrC;QAlBG,gBAAK,EACL,sBAAQ,EACR,sBAAQ,EACR,kCAAc;IAgBd,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,C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,kBAAkB;SAC3B,CAAC;QAMO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OALzB,oBAAoB,CAuDhC;IAAD,2BAAC;CAvDD;;;ICHA;KAA0C;IAA7B,0BAA0B;QAJtC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,0BAA0B,CAAG;IAAD,iCAAC;CAA1C;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-format-number.js","sources":["ng://@taiga-ui/core/pipes/format-number/format-number.pipe.ts","ng://@taiga-ui/core/pipes/format-number/format-number.module.ts","ng://@taiga-ui/core/pipes/format-number/taiga-ui-core-pipes-format-number.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\nimport {formatNumber} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: 'tuiFormatNumber'})\nexport class TuiFormatNumberPipe implements PipeTransform {\n constructor(\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n ) {}\n /**\n * Formats number adding thousand separators and correct decimal separator\n * padding decimal part with zeroes to given length\n * @param value number\n * @param decimalSeparator\n * @param thousandSeparator\n * @param decimalLimit number of digits of decimal part, null to keep untouched\n */\n transform(\n value: number,\n decimalLimit: number | null = null,\n decimalSeparator: string = this.numberFormat.decimalSeparator,\n thousandSeparator: string = this.numberFormat.thousandSeparator,\n ): string {\n return formatNumber(value, decimalLimit, decimalSeparator, thousandSeparator);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatNumberPipe} from './format-number.pipe';\n\n@NgModule({\n exports: [TuiFormatNumberPipe],\n declarations: [TuiFormatNumberPipe],\n})\nexport class TuiFormatNumberPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAOI,6BAEqB,YAAkC;QAAlC,iBAAY,GAAZ,YAAY,CAAsB;KACnD;;;;;;;;;IASJ,uCAAS,GAAT,UACI,KAAa,EACb,YAAkC,EAClC,gBAA6D,EAC7D,iBAA+D;QAF/D,6BAAA,EAAA,mBAAkC;QAClC,iCAAA,EAAA,mBAA2B,IAAI,CAAC,YAAY,CAAC,gBAAgB;QAC7D,kCAAA,EAAA,oBAA4B,IAAI,CAAC,YAAY,CAAC,iBAAiB;QAE/D,OAAO,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;KACjF;;gDAlBI,MAAM,SAAC,iBAAiB;;IAFpB,mBAAmB;QAD/B,IAAI,CAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC,CAAC;QAGvB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAFrB,mBAAmB,CAqB/B;IAAD,0BAAC;CArBD;;;ICEA;KAAyC;IAA5B,yBAAyB;QAJrC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,YAAY,EAAE,CAAC,mBAAmB,CAAC;SACtC,CAAC;OACW,yBAAyB,CAAG;IAAD,gCAAC;CAAzC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-format-number.js","sources":["ng://@taiga-ui/core/pipes/format-number/format-number.pipe.ts","ng://@taiga-ui/core/pipes/format-number/format-number.module.ts","ng://@taiga-ui/core/pipes/format-number/taiga-ui-core-pipes-format-number.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\nimport {formatNumber} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: 'tuiFormatNumber'})\nexport class TuiFormatNumberPipe implements PipeTransform {\n constructor(\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n ) {}\n\n /**\n * Formats number adding thousand separators and correct decimal separator\n * padding decimal part with zeroes to given length\n * @param value number\n * @param decimalSeparator\n * @param thousandSeparator\n * @param decimalLimit number of digits of decimal part, null to keep untouched\n */\n transform(\n value: number,\n decimalLimit: number | null = null,\n decimalSeparator: string = this.numberFormat.decimalSeparator,\n thousandSeparator: string = this.numberFormat.thousandSeparator,\n ): string {\n return formatNumber(value, decimalLimit, decimalSeparator, thousandSeparator);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatNumberPipe} from './format-number.pipe';\n\n@NgModule({\n exports: [TuiFormatNumberPipe],\n declarations: [TuiFormatNumberPipe],\n})\nexport class TuiFormatNumberPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAOI,6BAEqB,YAAkC;QAAlC,iBAAY,GAAZ,YAAY,CAAsB;KACnD;;;;;;;;;IAUJ,uCAAS,GAAT,UACI,KAAa,EACb,YAAkC,EAClC,gBAA6D,EAC7D,iBAA+D;QAF/D,6BAAA,EAAA,mBAAkC;QAClC,iCAAA,EAAA,mBAA2B,IAAI,CAAC,YAAY,CAAC,gBAAgB;QAC7D,kCAAA,EAAA,oBAA4B,IAAI,CAAC,YAAY,CAAC,iBAAiB;QAE/D,OAAO,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;KACjF;;gDAnBI,MAAM,SAAC,iBAAiB;;IAFpB,mBAAmB;QAD/B,IAAI,CAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC,CAAC;QAGvB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAFrB,mBAAmB,CAsB/B;IAAD,0BAAC;CAtBD;;;ICEA;KAAyC;IAA5B,yBAAyB;QAJrC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,YAAY,EAAE,CAAC,mBAAmB,CAAC;SACtC,CAAC;OACW,yBAAyB,CAAG;IAAD,gCAAC;CAAzC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-month.js","sources":["ng://@taiga-ui/core/pipes/month/month.pipe.ts","ng://@taiga-ui/core/pipes/month/month.module.ts","ng://@taiga-ui/core/pipes/month/taiga-ui-core-pipes-month.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Pipe({name: 'tuiMonth'})\nexport class TuiMonthPipe implements PipeTransform {\n constructor(@Inject(TUI_MONTHS) private readonly months$: Observable<string[]>) {}\n\n transform({month}: TuiMonth): Observable<string> {\n return this.months$.pipe(map(months => months[month]));\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMonthPipe} from './month.pipe';\n\n@NgModule({\n exports: [TuiMonthPipe],\n declarations: [TuiMonthPipe],\n})\nexport class TuiMonthPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;IAGI,sBAAiD,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;KAAI;IAElF,gCAAS,GAAT,UAAU,EAAiB;YAAhB,gBAAK;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,KAAK,CAAC,GAAA,CAAC,CAAC,CAAC;KAC1D;;gBAJyD,UAAU,uBAAvD,MAAM,SAAC,UAAU;;IADrB,YAAY;QADxB,IAAI,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;QAER,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OADtB,YAAY,CAMxB;IAAD,mBAAC;CAND;;;ICDA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,CAAC;YACvB,YAAY,EAAE,CAAC,YAAY,CAAC;SAC/B,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-month.js","sources":["ng://@taiga-ui/core/pipes/month/month.pipe.ts","ng://@taiga-ui/core/pipes/month/month.module.ts","ng://@taiga-ui/core/pipes/month/taiga-ui-core-pipes-month.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Pipe({name: 'tuiMonth'})\nexport class TuiMonthPipe implements PipeTransform {\n constructor(@Inject(TUI_MONTHS) private readonly months$: Observable<string[]>) {}\n\n transform({month}: TuiMonth): Observable<string> {\n return this.months$.pipe(map(months => months[month]));\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMonthPipe} from './month.pipe';\n\n@NgModule({\n exports: [TuiMonthPipe],\n declarations: [TuiMonthPipe],\n})\nexport class TuiMonthPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;IAGI,sBAAiD,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;KAAI;IAElF,gCAAS,GAAT,UAAU,EAAiB;YAAhB,gBAAK;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,KAAK,CAAC,GAAA,CAAC,CAAC,CAAC;KAC1D;;gBAJyD,UAAU,uBAAvD,MAAM,SAAC,UAAU;;IADrB,YAAY;QADxB,IAAI,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;QAER,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OADtB,YAAY,CAMxB;IAAD,mBAAC;CAND;;;ICAA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,CAAC;YACvB,YAAY,EAAE,CAAC,YAAY,CAAC;SAC/B,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-pluralize.js","sources":["ng://@taiga-ui/core/pipes/pluralize/pluralize.pipe.ts","ng://@taiga-ui/core/pipes/pluralize/pluralize.module.ts","ng://@taiga-ui/core/pipes/pluralize/taiga-ui-core-pipes-pluralize.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiPluralize} from '@taiga-ui/core/types';\nimport {pluralize} from '@taiga-ui/core/utils/format';\n\n/**\n * @deprecated This implementation targets Russian.\n * Use https://angular.io/api/common/I18nPluralPipe\n */\n@Pipe({name: 'tuiPluralize'})\nexport class TuiPluralizePipe implements PipeTransform {\n /**\n * Chooses correct plural form\n * @param value\n * @param args tuple of three plural forms\n */\n transform(value: number, args: TuiPluralize): string {\n return pluralize(value, args);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPluralizePipe} from './pluralize.pipe';\n\n/** @deprecated use Angular built-in pipe https://angular.io/api/common/I18nPluralPipe */\n@NgModule({\n exports: [TuiPluralizePipe],\n declarations: [TuiPluralizePipe],\n})\nexport class TuiPluralizePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;;IAKA;KASC;;;;;;IAHG,oCAAS,GAAT,UAAU,KAAa,EAAE,IAAkB;QACvC,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACjC;IARQ,gBAAgB;QAD5B,IAAI,CAAC,EAAC,IAAI,EAAE,cAAc,EAAC,CAAC;OAChB,gBAAgB,CAS5B;IAAD,uBAAC;CATD;;ACNA;;IAKA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;SACnC,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-pluralize.js","sources":["ng://@taiga-ui/core/pipes/pluralize/pluralize.pipe.ts","ng://@taiga-ui/core/pipes/pluralize/pluralize.module.ts","ng://@taiga-ui/core/pipes/pluralize/taiga-ui-core-pipes-pluralize.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiPluralize} from '@taiga-ui/core/types';\nimport {pluralize} from '@taiga-ui/core/utils/format';\n\n/**\n * @deprecated This implementation targets Russian.\n * Use https://angular.io/api/common/I18nPluralPipe\n */\n@Pipe({name: 'tuiPluralize'})\nexport class TuiPluralizePipe implements PipeTransform {\n /**\n * Chooses correct plural form\n * @param value\n * @param args tuple of three plural forms\n */\n transform(value: number, args: TuiPluralize): string {\n return pluralize(value, args);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPluralizePipe} from './pluralize.pipe';\n\n/** @deprecated use Angular built-in pipe https://angular.io/api/common/I18nPluralPipe */\n@NgModule({\n exports: [TuiPluralizePipe],\n declarations: [TuiPluralizePipe],\n})\nexport class TuiPluralizePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;;IAKA;KASC;;;;;;IAHG,oCAAS,GAAT,UAAU,KAAa,EAAE,IAAkB;QACvC,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACjC;IARQ,gBAAgB;QAD5B,IAAI,CAAC,EAAC,IAAI,EAAE,cAAc,EAAC,CAAC;OAChB,gBAAgB,CAS5B;IAAD,uBAAC;CATD;;ACLA;;IAKA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;SACnC,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACTA;;;;;;"}
@@ -1,8 +1,8 @@
1
+ export * from '@taiga-ui/core/pipes/calendar-sheet';
1
2
  export * from '@taiga-ui/core/pipes/format-number';
2
3
  export * from '@taiga-ui/core/pipes/format-phone';
3
4
  export * from '@taiga-ui/core/pipes/month';
4
5
  export * from '@taiga-ui/core/pipes/pluralize';
5
- export * from '@taiga-ui/core/pipes/calendar-sheet';
6
6
 
7
7
  /**
8
8
  * Generated bundle index. Do not edit.
@@ -1,14 +1,9 @@
1
- import { watch } from '@taiga-ui/cdk';
2
- import { takeUntil, startWith, map } from 'rxjs/operators';
3
1
  import { Optional, ElementRef } from '@angular/core';
4
2
  import { TuiModeDirective } from '@taiga-ui/core/directives/mode';
5
3
  import { TUI_MODE } from '@taiga-ui/core/tokens';
6
4
  import { EMPTY } from 'rxjs';
7
-
8
- function watchedControllerFactory(controller, changeDetectorRef, destroy$) {
9
- controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();
10
- return controller;
11
- }
5
+ import { startWith, map, takeUntil } from 'rxjs/operators';
6
+ import { watch } from '@taiga-ui/cdk';
12
7
 
13
8
  function modeFactory(mode, _a) {
14
9
  var nativeElement = _a.nativeElement;
@@ -23,6 +18,11 @@ var MODE_PROVIDER = {
23
18
  useFactory: modeFactory,
24
19
  };
25
20
 
21
+ function watchedControllerFactory(controller, changeDetectorRef, destroy$) {
22
+ controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();
23
+ return controller;
24
+ }
25
+
26
26
  /**
27
27
  * Generated bundle index. Do not edit.
28
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-providers.js","sources":["ng://@taiga-ui/core/providers/watched-controller-provider-factory.ts","ng://@taiga-ui/core/providers/mode.provider.ts","ng://@taiga-ui/core/providers/taiga-ui-core-providers.ts"],"sourcesContent":["import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nexport function watchedControllerFactory(\n controller: TuiController,\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n): TuiController {\n controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","import {ElementRef, Optional, Provider} from '@angular/core';\nimport {TuiModeDirective} from '@taiga-ui/core/directives/mode';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nexport function modeFactory(\n mode: TuiModeDirective | null,\n {nativeElement}: ElementRef,\n): Observable<TuiBrightness | null> {\n const mode$ = mode\n ? mode.change$.pipe(\n startWith(null),\n map(() => mode.mode),\n )\n : EMPTY;\n\n return (nativeElement['$.data-mode.attr'] = mode$);\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;SAKgB,wBAAwB,CACpC,UAAyB,EACzB,iBAAoC,EACpC,QAA0B;IAE1B,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAEnF,OAAO,UAAU,CAAC;AACtB;;SCNgB,WAAW,CACvB,IAA6B,EAC7B,EAA2B;QAA1B,gCAAa;IAEd,IAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,cAAM,OAAA,IAAI,CAAC,IAAI,GAAA,CAAC,CACvB;UACD,KAAK,CAAC;IAEZ,QAAQ,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE;AACvD,CAAC;IAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;;;ACxB3B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-providers.js","sources":["ng://@taiga-ui/core/providers/mode.provider.ts","ng://@taiga-ui/core/providers/watched-controller-provider-factory.ts","ng://@taiga-ui/core/providers/taiga-ui-core-providers.ts"],"sourcesContent":["import {ElementRef, Optional, Provider} from '@angular/core';\nimport {TuiModeDirective} from '@taiga-ui/core/directives/mode';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nexport function modeFactory(\n mode: TuiModeDirective | null,\n {nativeElement}: ElementRef,\n): Observable<TuiBrightness | null> {\n const mode$ = mode\n ? mode.change$.pipe(\n startWith(null),\n map(() => mode.mode),\n )\n : EMPTY;\n\n return (nativeElement['$.data-mode.attr'] = mode$);\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n","import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nexport function watchedControllerFactory(\n controller: TuiController,\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n): TuiController {\n controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;SAOgB,WAAW,CACvB,IAA6B,EAC7B,EAA2B;QAA1B,gCAAa;IAEd,IAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,cAAM,OAAA,IAAI,CAAC,IAAI,GAAA,CAAC,CACvB;UACD,KAAK,CAAC;IAEZ,QAAQ,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE;AACvD,CAAC;IAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;;;SCnBX,wBAAwB,CACpC,UAAyB,EACzB,iBAAoC,EACpC,QAA0B;IAE1B,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAEnF,OAAO,UAAU,CAAC;AACtB;;ACbA;;;;;;"}
@@ -122,8 +122,8 @@ var TuiSvgService = /** @class */ (function () {
122
122
  function TuiSvgService(tuiSanitizer, sanitizer, icons) {
123
123
  this.tuiSanitizer = tuiSanitizer;
124
124
  this.sanitizer = sanitizer;
125
- this.items$ = new BehaviorSubject(new Map());
126
125
  this.originals = {};
126
+ this.items$ = new BehaviorSubject(new Map());
127
127
  this.define(icons);
128
128
  }
129
129
  TuiSvgService.prototype.define = function (icons) {