@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-services.js","sources":["ng://@taiga-ui/core/services/hint.service.ts","ng://@taiga-ui/core/services/night-theme.service.ts","ng://@taiga-ui/core/services/router-link-active.service.ts","ng://@taiga-ui/core/services/svg.service.ts","ng://@taiga-ui/core/services/taiga-ui-core-services.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {BehaviorSubject} from 'rxjs';\n\n// TODO: remove after v2.0 separating. It prevents seps cycling.\ntype TuiHintDirective = any;\ntype AbstractTuiHint = any;\n\n/**\n * Service for displaying hints/tooltips\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiHintService extends BehaviorSubject<ReadonlyArray<AbstractTuiHint>> {\n constructor() {\n super([]);\n }\n\n add(directive: AbstractTuiHint) {\n this.next(this.value.concat(directive));\n }\n\n remove(directive: AbstractTuiHint) {\n if (this.value.includes(directive)) {\n this.next(this.value.filter(hint => hint !== directive));\n }\n }\n\n /**\n * TODO: v2.0\n * We need the following logic for desribedBy\n * move it into another service that can register hints and\n * manage it using TuiHintService inside\n */\n private directives: ReadonlyArray<TuiHintDirective> = [];\n\n register(directive: TuiHintDirective) {\n this.directives = [...this.directives, directive];\n }\n\n unregister(directive: TuiHintDirective) {\n this.remove(directive);\n this.directives = this.directives.filter(dir => dir !== directive);\n }\n\n showHintForId(id: string) {\n const directive = this.findDirectiveWithHintId(id);\n\n if (directive) {\n this.add(directive);\n }\n }\n\n hideHintForId(id: string) {\n const directive = this.findDirectiveWithHintId(id);\n\n if (directive) {\n this.remove(directive);\n }\n }\n\n private findDirectiveWithHintId(id: string): TuiHintDirective | undefined {\n return this.directives.find(directive => directive.tuiHintId === id);\n }\n}\n","import {Inject, Injectable} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {fromEvent, Observable} from 'rxjs';\nimport {map, share, startWith} from 'rxjs/operators';\n\n// @dynamic\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNightThemeService extends Observable<boolean> {\n constructor(@Inject(WINDOW) windowRef: Window) {\n const media = windowRef.matchMedia('(prefers-color-scheme: dark)');\n const media$ = fromEvent(media, 'change').pipe(\n startWith(null),\n map(() => media.matches),\n share(),\n );\n\n super(subscriber => media$.subscribe(subscriber));\n }\n}\n","import {Inject, Injectable, NgZone, Optional} from '@angular/core';\nimport {RouterLinkActive} from '@angular/router';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {TuiDestroyService, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {EMPTY, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, takeUntil} from 'rxjs/operators';\n\n@Injectable()\nexport class TuiRouterLinkActiveService extends Observable<boolean> {\n constructor(\n @Optional()\n @Inject(RouterLinkActive)\n routerLinkActive: RouterLinkActive | null,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n const stream$ = routerLinkActive\n ? animationFrame$.pipe(\n map(() => routerLinkActive.isActive),\n distinctUntilChanged(),\n tuiZoneOptimized(ngZone),\n takeUntil(destroy$),\n )\n : EMPTY;\n\n super(subscriber => stream$.subscribe(subscriber));\n }\n}\n","import {Inject, Injectable, Optional, Sanitizer, SecurityContext} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {TUI_ICONS, TUI_SANITIZER} from '@taiga-ui/core/tokens';\nimport {processIcon} from '@taiga-ui/core/utils/dom';\nimport {BehaviorSubject} from 'rxjs';\n\n/**\n * Service for reusing SVGs without inlining each instance\n */\n// @dynamic\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiSvgService {\n readonly items$ = new BehaviorSubject<Map<string, SafeHtml>>(new Map());\n\n private originals: Record<string, string> = {};\n\n constructor(\n @Optional()\n @Inject(TUI_SANITIZER)\n private readonly tuiSanitizer: Sanitizer | null,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(TUI_ICONS) icons: Record<string, string>,\n ) {\n this.define(icons);\n }\n\n define(icons: Record<string, string>) {\n const {value} = this.items$;\n\n Object.keys(icons).forEach(key => {\n this.defineIcon(key, icons[key], value);\n });\n\n this.items$.next(value);\n }\n\n getOriginal(name: string): string | null {\n return this.originals[name] || null;\n }\n\n private defineIcon(name: string, src: string, map: Map<string, SafeHtml>) {\n if (map.has(name)) {\n return;\n }\n\n const parsed = this.parseSrc(name, src);\n\n if (!parsed) {\n tuiAssert.assert(false, 'Unable to parse given SVG src');\n\n return;\n }\n\n map.set(name, parsed);\n this.originals = {\n ...this.originals,\n [name]: src,\n };\n }\n\n private parseSrc(name: string, src: string): SafeHtml {\n return this.sanitize(processIcon(src, name));\n }\n\n private sanitize(src: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(\n (this.tuiSanitizer\n ? this.tuiSanitizer.sanitize(SecurityContext.HTML, src)\n : this.sanitizer.sanitize(SecurityContext.HTML, src)) || '',\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAOA;;;;IAMoC,kCAA+C;IAC/E;QAAA,YACI,kBAAM,EAAE,CAAC,SACZ;;;;;;;QAkBO,gBAAU,GAAoC,EAAE,CAAC;;KAlBxD;IAED,4BAAG,GAAH,UAAI,SAA0B;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;KAC3C;IAED,+BAAM,GAAN,UAAO,SAA0B;QAC7B,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAChC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,KAAK,SAAS,GAAA,CAAC,CAAC,CAAC;SAC5D;KACJ;IAUD,iCAAQ,GAAR,UAAS,SAA2B;QAChC,IAAI,CAAC,UAAU,YAAO,IAAI,CAAC,UAAU,GAAE,SAAS,EAAC,CAAC;KACrD;IAED,mCAAU,GAAV,UAAW,SAA2B;QAClC,IAAI,C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xB,OAAO,IAAI,CAAC,SAAS,CAAC,uBAAuB,CACzC,CAAC,IAAI,CAAC,YAAY;cACZ,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC;cACrD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,CAClE,CAAC;KACL;;gBAnDkC,SAAS,uBAFvC,QAAQ,YACR,MAAM,SAAC,aAAa;gBAE6B,YAAY,uBAA7D,MAAM,SAAC,YAAY;gDACnB,MAAM,SAAC,SAAS;;;IAVZ,aAAa;QAHzB,UAAU,CAAC;YACR,UAAU,EAAE,MAAM;SACrB,CAAC;QAOO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QAErB,WAAA,MAAM,CAAC,YAAY,CAAC,CAAA;QACpB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;OAVb,aAAa,CA4DzB;wBA1ED;CAcA;;ACdA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-services.js","sources":["ng://@taiga-ui/core/services/hint.service.ts","ng://@taiga-ui/core/services/night-theme.service.ts","ng://@taiga-ui/core/services/router-link-active.service.ts","ng://@taiga-ui/core/services/svg.service.ts","ng://@taiga-ui/core/services/taiga-ui-core-services.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {BehaviorSubject} from 'rxjs';\n\n// TODO: remove after v2.0 separating. It prevents seps cycling.\ntype TuiHintDirective = any;\n\ntype AbstractTuiHint = any;\n\n/**\n * Service for displaying hints/tooltips\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiHintService extends BehaviorSubject<ReadonlyArray<AbstractTuiHint>> {\n /**\n * TODO: v2.0\n * We need the following logic for desribedBy\n * move it into another service that can register hints and\n * manage it using TuiHintService inside\n */\n private directives: ReadonlyArray<TuiHintDirective> = [];\n\n constructor() {\n super([]);\n }\n\n add(directive: AbstractTuiHint) {\n this.next(this.value.concat(directive));\n }\n\n remove(directive: AbstractTuiHint) {\n if (this.value.includes(directive)) {\n this.next(this.value.filter(hint => hint !== directive));\n }\n }\n\n register(directive: TuiHintDirective) {\n this.directives = [...this.directives, directive];\n }\n\n unregister(directive: TuiHintDirective) {\n this.remove(directive);\n this.directives = this.directives.filter(dir => dir !== directive);\n }\n\n showHintForId(id: string) {\n const directive = this.findDirectiveWithHintId(id);\n\n if (directive) {\n this.add(directive);\n }\n }\n\n hideHintForId(id: string) {\n const directive = this.findDirectiveWithHintId(id);\n\n if (directive) {\n this.remove(directive);\n }\n }\n\n private findDirectiveWithHintId(id: string): TuiHintDirective | undefined {\n return this.directives.find(directive => directive.tuiHintId === id);\n }\n}\n","import {Inject, Injectable} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {fromEvent, Observable} from 'rxjs';\nimport {map, share, startWith} from 'rxjs/operators';\n\n// @dynamic\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNightThemeService extends Observable<boolean> {\n constructor(@Inject(WINDOW) windowRef: Window) {\n const media = windowRef.matchMedia('(prefers-color-scheme: dark)');\n const media$ = fromEvent(media, 'change').pipe(\n startWith(null),\n map(() => media.matches),\n share(),\n );\n\n super(subscriber => media$.subscribe(subscriber));\n }\n}\n","import {Inject, Injectable, NgZone, Optional} from '@angular/core';\nimport {RouterLinkActive} from '@angular/router';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {TuiDestroyService, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {EMPTY, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, takeUntil} from 'rxjs/operators';\n\n@Injectable()\nexport class TuiRouterLinkActiveService extends Observable<boolean> {\n constructor(\n @Optional()\n @Inject(RouterLinkActive)\n routerLinkActive: RouterLinkActive | null,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n const stream$ = routerLinkActive\n ? animationFrame$.pipe(\n map(() => routerLinkActive.isActive),\n distinctUntilChanged(),\n tuiZoneOptimized(ngZone),\n takeUntil(destroy$),\n )\n : EMPTY;\n\n super(subscriber => stream$.subscribe(subscriber));\n }\n}\n","import {Inject, Injectable, Optional, Sanitizer, SecurityContext} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {TUI_ICONS, TUI_SANITIZER} from '@taiga-ui/core/tokens';\nimport {processIcon} from '@taiga-ui/core/utils/dom';\nimport {BehaviorSubject} from 'rxjs';\n\n/**\n * Service for reusing SVGs without inlining each instance\n */\n// @dynamic\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiSvgService {\n private originals: Record<string, string> = {};\n\n readonly items$ = new BehaviorSubject<Map<string, SafeHtml>>(new Map());\n\n constructor(\n @Optional()\n @Inject(TUI_SANITIZER)\n private readonly tuiSanitizer: Sanitizer | null,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(TUI_ICONS) icons: Record<string, string>,\n ) {\n this.define(icons);\n }\n\n define(icons: Record<string, string>) {\n const {value} = this.items$;\n\n Object.keys(icons).forEach(key => {\n this.defineIcon(key, icons[key], value);\n });\n\n this.items$.next(value);\n }\n\n getOriginal(name: string): string | null {\n return this.originals[name] || null;\n }\n\n private defineIcon(name: string, src: string, map: Map<string, SafeHtml>) {\n if (map.has(name)) {\n return;\n }\n\n const parsed = this.parseSrc(name, src);\n\n if (!parsed) {\n tuiAssert.assert(false, 'Unable to parse given SVG src');\n\n return;\n }\n\n map.set(name, parsed);\n this.originals = {\n ...this.originals,\n [name]: src,\n };\n }\n\n private parseSrc(name: string, src: string): SafeHtml {\n return this.sanitize(processIcon(src, name));\n }\n\n private sanitize(src: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(\n (this.tuiSanitizer\n ? this.tuiSanitizer.sanitize(SecurityContext.HTML, src)\n : this.sanitizer.sanitize(SecurityContext.HTML, src)) || '',\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;;;IAMoC,kCAA+C;IAS/E;QAAA,YACI,kBAAM,EAAE,CAAC,SACZ;;;;;;;QAJO,gBAAU,GAAoC,EAAE,CAAC;;KAIxD;IAED,4BAAG,GAAH,UAAI,SAA0B;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;KAC3C;IAED,+BAAM,GAAN,UAAO,SAA0B;QAC7B,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAChC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,KAAK,SAAS,GAAA,CAAC,CAAC,CAAC;SAC5D;KACJ;IAED,iCAAQ,GAAR,UAAS,SAA2B;QAChC,IAAI,CAAC,UAAU,YAAO,IAAI,CAAC,UAAU,GAAE,SAAS,EAAC,CAAC;KACrD;IAED,mCAAU,GAAV,UAAW,SAA2B;QAClC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,KAAK,SAAS,GAAA,CAAC,CAAC;KACtE;IAED,sCAAa,GAAb,UAAc,EAAU;QACpB,IAAM,SAAS,GAAG,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;QAEnD,IAAI,SAAS,EAAE;YACX,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;SACvB;KACJ;IAED,sCAAa,GAAb,UAAc,EAAU;QACpB,IAAM,SAAS,GAAG,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;QAEnD,IAAI,SAAS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Q,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QAErB,WAAA,MAAM,CAAC,YAAY,CAAC,CAAA;QACpB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;OAVb,aAAa,CA4DzB;wBA1ED;CAcA;;ACdA;;;;;;"}
@@ -31,6 +31,10 @@ var TUI_DROPDOWN_DIRECTIVE = new InjectionToken('Directive controlling TuiDropdo
31
31
 
32
32
  var TUI_ELEMENT_REF = new InjectionToken('ElementRef when you cannot use @Input for single time injection');
33
33
 
34
+ var TUI_FIRST_DAY_OF_WEEK = new InjectionToken('The first day of the week index', {
35
+ factory: function () { return 1 /* Monday */; },
36
+ });
37
+
34
38
  var TUI_MONTHS = new InjectionToken('Localized months names', {
35
39
  factory: extractI18n('months'),
36
40
  });
@@ -58,16 +62,16 @@ var TUI_ICONS_PATH = new InjectionToken('A handler to retrieve USE id for icon b
58
62
  factory: function () { return iconsPathFactory('assets/taiga-ui/icons/'); },
59
63
  });
60
64
 
61
- var TUI_MODE = new InjectionToken('Mode stream for private providers');
62
-
63
- var TUI_NUMBER_FORMAT = new InjectionToken('Formatting configuration for displayed numbers', {
65
+ var TUI_MEDIA = new InjectionToken('Token for media constant', {
64
66
  factory: function () { return ({
65
- decimalSeparator: ',',
66
- thousandSeparator: CHAR_NO_BREAK_SPACE,
67
- zeroPadding: true,
67
+ mobile: 768,
68
+ desktopSmall: 1024,
69
+ desktopLarge: 1280,
68
70
  }); },
69
71
  });
70
72
 
73
+ var TUI_MODE = new InjectionToken('Mode stream for private providers');
74
+
71
75
  /** Default values for the notification options. */
72
76
  var TUI_NOTIFICATION_DEFAULT_OPTIONS = {
73
77
  autoClose: true,
@@ -80,21 +84,15 @@ var TUI_NOTIFICATION_OPTIONS = new InjectionToken('Default parameters for notifi
80
84
  factory: function () { return TUI_NOTIFICATION_DEFAULT_OPTIONS; },
81
85
  });
82
86
 
83
- var TUI_OPTION_CONTENT = new InjectionToken('Content for tuiOption component');
84
-
85
- var TUI_SANITIZER = TUI_SANITIZER$1;
86
-
87
- var TUI_SCROLL_REF = new InjectionToken('Scrollable container');
88
-
89
- var TUI_TEXTFIELD_APPEARANCE = new InjectionToken('Appearance for inputs', {
90
- factory: function () { return "textfield" /* Textfield */; },
87
+ var TUI_NUMBER_FORMAT = new InjectionToken('Formatting configuration for displayed numbers', {
88
+ factory: function () { return ({
89
+ decimalSeparator: ',',
90
+ thousandSeparator: CHAR_NO_BREAK_SPACE,
91
+ zeroPadding: true,
92
+ }); },
91
93
  });
92
94
 
93
- var TUI_VALUE_ACCESSOR = new InjectionToken('Buffer token to pass NG_VALUE_ACCESSOR to a different Injector');
94
-
95
- var TUI_FIRST_DAY_OF_WEEK = new InjectionToken('The first day of the week index', {
96
- factory: function () { return 1 /* Monday */; },
97
- });
95
+ var TUI_OPTION_CONTENT = new InjectionToken('Content for tuiOption component');
98
96
 
99
97
  // TODO: Remove export in ivy compiation
100
98
  var convertToSundayFirstWeekFormat = function (weekDaysNames) {
@@ -112,14 +110,16 @@ var TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken('Ordered calendars i18n tex
112
110
  },
113
111
  });
114
112
 
115
- var TUI_MEDIA = new InjectionToken('Token for media constant', {
116
- factory: function () { return ({
117
- mobile: 768,
118
- desktopSmall: 1024,
119
- desktopLarge: 1280,
120
- }); },
113
+ var TUI_SANITIZER = TUI_SANITIZER$1;
114
+
115
+ var TUI_SCROLL_REF = new InjectionToken('Scrollable container');
116
+
117
+ var TUI_TEXTFIELD_APPEARANCE = new InjectionToken('Appearance for inputs', {
118
+ factory: function () { return "textfield" /* Textfield */; },
121
119
  });
122
120
 
121
+ var TUI_VALUE_ACCESSOR = new InjectionToken('Buffer token to pass NG_VALUE_ACCESSOR to a different Injector');
122
+
123
123
  /**
124
124
  * Generated bundle index. Do not edit.
125
125
  */
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-tokens.js","sources":["ng://@taiga-ui/core/tokens/animations-duration.ts","ng://@taiga-ui/core/tokens/animation-options.ts","ng://@taiga-ui/core/tokens/assert-enabled.ts","ng://@taiga-ui/core/tokens/data-list-accessor.ts","ng://@taiga-ui/core/tokens/data-list-host.ts","ng://@taiga-ui/core/tokens/document-or-shadow-root.ts","ng://@taiga-ui/core/tokens/dropdown-directive.ts","ng://@taiga-ui/core/tokens/element-ref.ts","ng://@taiga-ui/core/tokens/i18n.ts","ng://@taiga-ui/core/tokens/icons.ts","ng://@taiga-ui/core/tokens/icons-path.ts","ng://@taiga-ui/core/tokens/mode.ts","ng://@taiga-ui/core/tokens/number-format.ts","ng://@taiga-ui/core/tokens/notification-options.ts","ng://@taiga-ui/core/tokens/option-content.ts","ng://@taiga-ui/core/tokens/sanitizer.ts","ng://@taiga-ui/core/tokens/scroll-ref.ts","ng://@taiga-ui/core/tokens/textfield-appearance.ts","ng://@taiga-ui/core/tokens/value-accessor.ts","ng://@taiga-ui/core/tokens/first-day-of-week.ts","ng://@taiga-ui/core/tokens/ordered-short-week-days.ts","ng://@taiga-ui/core/tokens/media.ts","ng://@taiga-ui/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport const TUI_ANIMATIONS_DURATION = new InjectionToken<number>(\n 'Duration of all Taiga UI animations in ms',\n {\n factory: () => 300,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {inject, InjectionToken} from '@angular/core';\nimport {TUI_ANIMATIONS_DURATION} from './animations-duration';\n\nexport const TUI_ANIMATION_OPTIONS = new InjectionToken<AnimationOptions>(\n 'Options for Taiga UI animations',\n {\n factory: () => ({\n params: {\n duration: inject(TUI_ANIMATIONS_DURATION),\n },\n }),\n },\n);\n","import {InjectionToken, isDevMode} from '@angular/core';\n\nexport const TUI_ASSERT_ENABLED = new InjectionToken(\n 'Flag to enable assertions across Taiga UI',\n {\n factory: () => isDevMode(),\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_ACCESSOR = new InjectionToken<TuiDataListAccessor>(\n 'Accessor for options',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_HOST = new InjectionToken<TuiDataListHost<any>>(\n 'DataList controller',\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken<DocumentOrShadowRoot>(\n 'Document or ShadowRoot',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DROPDOWN_DIRECTIVE = new InjectionToken<TuiDropdown>(\n 'Directive controlling TuiDropdownBoxComponent',\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_ELEMENT_REF = new InjectionToken<ElementRef>(\n 'ElementRef when you cannot use @Input for single time injection',\n);\n","import {InjectionToken} from '@angular/core';\nimport {extractI18n} from '@taiga-ui/i18n';\n\nexport const TUI_MONTHS = new InjectionToken('Localized months names', {\n factory: extractI18n('months'),\n});\n\nexport const TUI_CLOSE_WORD = new InjectionToken(`i18n 'close' word`, {\n factory: extractI18n('close'),\n});\n\nexport const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(\n `i18n 'Nothing found' message`,\n {\n factory: extractI18n('nothingFoundMessage'),\n },\n);\n\nexport const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(`i18n of error message`, {\n factory: extractI18n('defaultErrorMessage'),\n});\n\nexport const TUI_SPIN_TEXTS = new InjectionToken('spin i18n texts', {\n factory: extractI18n('spinTexts'),\n});\n\nexport const TUI_SHORT_WEEK_DAYS = new InjectionToken('calendars i18n texts', {\n factory: extractI18n('shortWeekDays'),\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS = new InjectionToken<Record<string, string>>(\n 'A key/value dictionary of icon names and src to be defined with TuiSvgService',\n {\n factory: () => ({}),\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {iconsPathFactory} from '@taiga-ui/core/utils';\n\nexport const TUI_ICONS_PATH: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n 'A handler to retrieve USE id for icon by name',\n {\n factory: () => iconsPathFactory('assets/taiga-ui/icons/'),\n },\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MODE: InjectionToken<Observable<TuiBrightness | null>> =\n new InjectionToken<Observable<TuiBrightness | null>>(\n 'Mode stream for private providers',\n );\n","import {InjectionToken} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<NumberFormatSettings>(\n 'Formatting configuration for displayed numbers',\n {\n factory: () => ({\n decimalSeparator: ',',\n thousandSeparator: CHAR_NO_BREAK_SPACE,\n zeroPadding: true,\n }),\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiNotificationAutoClose} from '@taiga-ui/core/interfaces';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface NotificationTokenOptions {\n readonly autoClose: TuiNotificationAutoClose;\n readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;\n readonly status: TuiNotification;\n readonly hasIcon: boolean;\n readonly hasCloseButton: boolean;\n}\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: NotificationTokenOptions = {\n autoClose: true,\n label: '',\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<NotificationTokenOptions>(\n 'Default parameters for notification alert component',\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n","import {InjectionToken, TemplateRef} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_OPTION_CONTENT = new InjectionToken<\n PolymorpheusContent<TuiContextWithImplicit<TemplateRef<{}>>>\n>('Content for tuiOption component');\n","import {TUI_SANITIZER as TOKEN} from '@taiga-ui/cdk';\n\nexport const TUI_SANITIZER = TOKEN;\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_SCROLL_REF = new InjectionToken<ElementRef<HTMLElement>>(\n 'Scrollable container',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\n\nexport const TUI_TEXTFIELD_APPEARANCE = new InjectionToken<string>(\n 'Appearance for inputs',\n {\n factory: () => TuiAppearance.Textfield,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {ControlValueAccessor} from '@angular/forms';\n\nexport const TUI_VALUE_ACCESSOR = new InjectionToken<ControlValueAccessor>(\n 'Buffer token to pass NG_VALUE_ACCESSOR to a different Injector',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDayOfWeek} from '@taiga-ui/cdk';\n\nexport const TUI_FIRST_DAY_OF_WEEK = new InjectionToken<TuiDayOfWeek>(\n 'The first day of the week index',\n {\n factory: () => TuiDayOfWeek.Monday,\n },\n);\n","import {inject, InjectionToken} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {TUI_FIRST_DAY_OF_WEEK, TUI_SHORT_WEEK_DAYS} from './index';\n\nexport type WEEK_DAYS_NAMES = [string, string, string, string, string, string, string];\n\n// TODO: Remove export in ivy compiation\nexport const convertToSundayFirstWeekFormat = (weekDaysNames: WEEK_DAYS_NAMES) => {\n const sundayIndex = weekDaysNames.length - 1;\n\n return [\n weekDaysNames[sundayIndex],\n ...weekDaysNames.slice(0, sundayIndex),\n ] as WEEK_DAYS_NAMES;\n};\n\nexport const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken<\n Observable<WEEK_DAYS_NAMES>\n>('Ordered calendars i18n texts', {\n factory: () => {\n const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);\n\n return inject(TUI_SHORT_WEEK_DAYS).pipe(\n map(convertToSundayFirstWeekFormat),\n map(\n weekDays =>\n [\n ...weekDays.slice(firstDayOfWeekIndex),\n ...weekDays.slice(0, firstDayOfWeekIndex),\n ] as WEEK_DAYS_NAMES,\n ),\n );\n },\n});\n","import {InjectionToken} from '@angular/core';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\n\nexport const TUI_MEDIA = new InjectionToken<TuiMedia>('Token for media constant', {\n factory: () => ({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n }),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TOKEN"],"mappings":";;;;;;;IAEa,uBAAuB,GAAG,IAAI,cAAc,CACrD,2CAA2C,EAC3C;IACI,OAAO,EAAE,cAAM,OAAA,GAAG,GAAA;CACrB;;ICFQ,qBAAqB,GAAG,IAAI,cAAc,CACnD,iCAAiC,EACjC;IACI,OAAO,EAAE,cAAM,QAAC;QACZ,MAAM,EAAE;YACJ,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;SAC5C;KACJ,IAAC;CACL;;ICVQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,2CAA2C,EAC3C;IACI,OAAO,EAAE,cAAM,OAAA,SAAS,EAAE,GAAA;CAC7B;;ICHQ,sBAAsB,GAAG,IAAI,cAAc,CACpD,sBAAsB;;ICDb,kBAAkB,GAAG,IAAI,cAAc,CAChD,qBAAqB;;ICFZ,2BAA2B,GAAG,IAAI,cAAc,CACzD,wBAAwB;;ICAf,sBAAsB,GAAG,IAAI,cAAc,CACpD,+CAA+C;;ICFtC,eAAe,GAAG,IAAI,cAAc,CAC7C,iEAAiE;;ICAxD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AC;CACL;;ACTD;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-tokens.js","sources":["ng://@taiga-ui/core/tokens/animations-duration.ts","ng://@taiga-ui/core/tokens/animation-options.ts","ng://@taiga-ui/core/tokens/assert-enabled.ts","ng://@taiga-ui/core/tokens/data-list-accessor.ts","ng://@taiga-ui/core/tokens/data-list-host.ts","ng://@taiga-ui/core/tokens/document-or-shadow-root.ts","ng://@taiga-ui/core/tokens/dropdown-directive.ts","ng://@taiga-ui/core/tokens/element-ref.ts","ng://@taiga-ui/core/tokens/first-day-of-week.ts","ng://@taiga-ui/core/tokens/i18n.ts","ng://@taiga-ui/core/tokens/icons.ts","ng://@taiga-ui/core/tokens/icons-path.ts","ng://@taiga-ui/core/tokens/media.ts","ng://@taiga-ui/core/tokens/mode.ts","ng://@taiga-ui/core/tokens/notification-options.ts","ng://@taiga-ui/core/tokens/number-format.ts","ng://@taiga-ui/core/tokens/option-content.ts","ng://@taiga-ui/core/tokens/ordered-short-week-days.ts","ng://@taiga-ui/core/tokens/sanitizer.ts","ng://@taiga-ui/core/tokens/scroll-ref.ts","ng://@taiga-ui/core/tokens/textfield-appearance.ts","ng://@taiga-ui/core/tokens/value-accessor.ts","ng://@taiga-ui/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport const TUI_ANIMATIONS_DURATION = new InjectionToken<number>(\n 'Duration of all Taiga UI animations in ms',\n {\n factory: () => 300,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {inject, InjectionToken} from '@angular/core';\n\nimport {TUI_ANIMATIONS_DURATION} from './animations-duration';\n\nexport const TUI_ANIMATION_OPTIONS = new InjectionToken<AnimationOptions>(\n 'Options for Taiga UI animations',\n {\n factory: () => ({\n params: {\n duration: inject(TUI_ANIMATIONS_DURATION),\n },\n }),\n },\n);\n","import {InjectionToken, isDevMode} from '@angular/core';\n\nexport const TUI_ASSERT_ENABLED = new InjectionToken(\n 'Flag to enable assertions across Taiga UI',\n {\n factory: () => isDevMode(),\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_ACCESSOR = new InjectionToken<TuiDataListAccessor>(\n 'Accessor for options',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_HOST = new InjectionToken<TuiDataListHost<any>>(\n 'DataList controller',\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken<DocumentOrShadowRoot>(\n 'Document or ShadowRoot',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DROPDOWN_DIRECTIVE = new InjectionToken<TuiDropdown>(\n 'Directive controlling TuiDropdownBoxComponent',\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_ELEMENT_REF = new InjectionToken<ElementRef>(\n 'ElementRef when you cannot use @Input for single time injection',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDayOfWeek} from '@taiga-ui/cdk';\n\nexport const TUI_FIRST_DAY_OF_WEEK = new InjectionToken<TuiDayOfWeek>(\n 'The first day of the week index',\n {\n factory: () => TuiDayOfWeek.Monday,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {extractI18n} from '@taiga-ui/i18n';\n\nexport const TUI_MONTHS = new InjectionToken('Localized months names', {\n factory: extractI18n('months'),\n});\n\nexport const TUI_CLOSE_WORD = new InjectionToken(`i18n 'close' word`, {\n factory: extractI18n('close'),\n});\n\nexport const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(\n `i18n 'Nothing found' message`,\n {\n factory: extractI18n('nothingFoundMessage'),\n },\n);\n\nexport const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(`i18n of error message`, {\n factory: extractI18n('defaultErrorMessage'),\n});\n\nexport const TUI_SPIN_TEXTS = new InjectionToken('spin i18n texts', {\n factory: extractI18n('spinTexts'),\n});\n\nexport const TUI_SHORT_WEEK_DAYS = new InjectionToken('calendars i18n texts', {\n factory: extractI18n('shortWeekDays'),\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS = new InjectionToken<Record<string, string>>(\n 'A key/value dictionary of icon names and src to be defined with TuiSvgService',\n {\n factory: () => ({}),\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {iconsPathFactory} from '@taiga-ui/core/utils';\n\nexport const TUI_ICONS_PATH: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n 'A handler to retrieve USE id for icon by name',\n {\n factory: () => iconsPathFactory('assets/taiga-ui/icons/'),\n },\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\n\nexport const TUI_MEDIA = new InjectionToken<TuiMedia>('Token for media constant', {\n factory: () => ({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n }),\n});\n","import {InjectionToken} from '@angular/core';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MODE: InjectionToken<Observable<TuiBrightness | null>> =\n new InjectionToken<Observable<TuiBrightness | null>>(\n 'Mode stream for private providers',\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiNotificationAutoClose} from '@taiga-ui/core/interfaces';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface NotificationTokenOptions {\n readonly autoClose: TuiNotificationAutoClose;\n readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;\n readonly status: TuiNotification;\n readonly hasIcon: boolean;\n readonly hasCloseButton: boolean;\n}\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: NotificationTokenOptions = {\n autoClose: true,\n label: '',\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<NotificationTokenOptions>(\n 'Default parameters for notification alert component',\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<NumberFormatSettings>(\n 'Formatting configuration for displayed numbers',\n {\n factory: () => ({\n decimalSeparator: ',',\n thousandSeparator: CHAR_NO_BREAK_SPACE,\n zeroPadding: true,\n }),\n },\n);\n","import {InjectionToken, TemplateRef} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_OPTION_CONTENT = new InjectionToken<\n PolymorpheusContent<TuiContextWithImplicit<TemplateRef<{}>>>\n>('Content for tuiOption component');\n","import {inject, InjectionToken} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_FIRST_DAY_OF_WEEK, TUI_SHORT_WEEK_DAYS} from './index';\n\nexport type WEEK_DAYS_NAMES = [string, string, string, string, string, string, string];\n\n// TODO: Remove export in ivy compiation\nexport const convertToSundayFirstWeekFormat = (weekDaysNames: WEEK_DAYS_NAMES) => {\n const sundayIndex = weekDaysNames.length - 1;\n\n return [\n weekDaysNames[sundayIndex],\n ...weekDaysNames.slice(0, sundayIndex),\n ] as WEEK_DAYS_NAMES;\n};\n\nexport const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken<\n Observable<WEEK_DAYS_NAMES>\n>('Ordered calendars i18n texts', {\n factory: () => {\n const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);\n\n return inject(TUI_SHORT_WEEK_DAYS).pipe(\n map(convertToSundayFirstWeekFormat),\n map(\n weekDays =>\n [\n ...weekDays.slice(firstDayOfWeekIndex),\n ...weekDays.slice(0, firstDayOfWeekIndex),\n ] as WEEK_DAYS_NAMES,\n ),\n );\n },\n});\n","import {TUI_SANITIZER as TOKEN} from '@taiga-ui/cdk';\n\nexport const TUI_SANITIZER = TOKEN;\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_SCROLL_REF = new InjectionToken<ElementRef<HTMLElement>>(\n 'Scrollable container',\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\n\nexport const TUI_TEXTFIELD_APPEARANCE = new InjectionToken<string>(\n 'Appearance for inputs',\n {\n factory: () => TuiAppearance.Textfield,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {ControlValueAccessor} from '@angular/forms';\n\nexport const TUI_VALUE_ACCESSOR = new InjectionToken<ControlValueAccessor>(\n 'Buffer token to pass NG_VALUE_ACCESSOR to a different Injector',\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TOKEN"],"mappings":";;;;;;;IAEa,uBAAuB,GAAG,IAAI,cAAc,CACrD,2CAA2C,EAC3C;IACI,OAAO,EAAE,cAAM,OAAA,GAAG,GAAA;CACrB;;ICDQ,qBAAqB,GAAG,IAAI,cAAc,CACnD,iCAAiC,EACjC;IACI,OAAO,EAAE,cAAM,QAAC;QACZ,MAAM,EAAE;YACJ,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;SAC5C;KACJ,IAAC;CACL;;ICXQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,2CAA2C,EAC3C;IACI,OAAO,EAAE,cAAM,OAAA,SAAS,EAAE,GAAA;CAC7B;;ICHQ,sBAAsB,GAAG,IAAI,cAAc,CACpD,sBAAsB;;ICDb,kBAAkB,GAAG,IAAI,cAAc,CAChD,qBAAqB;;ICFZ,2BAA2B,GAAG,IAAI,cAAc,CACzD,wBA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IAAI,cAAc,CACtD,uBAAuB,EACvB;IACI,OAAO,EAAE,cAAM,qCAAuB;CACzC;;ICJQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,gEAAgE;;ACJpE;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { CHAR_NO_BREAK_SPACE, tuiAssert, isSafari, isNativeFocused, getDocumentOrShadowRoot, CHAR_EN_DASH } from '@taiga-ui/cdk';
2
- import { __spread } from 'tslib';
3
- import { MASK_CARET_TRAP, TUI_DIGIT_REGEXP, TUI_NON_DIGITS_REGEXP } from '@taiga-ui/core/constants';
2
+ import { __spread, __read } from 'tslib';
3
+ import { MASK_CARET_TRAP, TUI_DIGIT_REGEXP, TUI_NON_DIGITS_REGEXP, TUI_LEADING_ZEROES_REGEXP } from '@taiga-ui/core/constants';
4
4
  import { otherDecimalSymbol } from '@taiga-ui/core/utils/format';
5
5
 
6
6
  /**
@@ -161,10 +161,13 @@ function tuiCreateNumberMask(_a) {
161
161
  var integerCapped = integerLimit
162
162
  ? integer.slice(0, integerLimit + thousandSeparators.length)
163
163
  : integer;
164
- var integerCappedClean = integerCapped
165
- .replace(TUI_NON_DIGITS_REGEXP, '')
166
- .replace(/^0+(?!\.|$)/, '0');
167
- var withSeparator = addThousandsSeparator(integerCappedClean, thousandSymbol);
164
+ var integerCappedClean = integerCapped.replace(TUI_NON_DIGITS_REGEXP, '');
165
+ var _b = __read(integerCappedClean.match(TUI_LEADING_ZEROES_REGEXP) || [''], 1), leadingZerosMatch = _b[0];
166
+ var leadingZerosAmount = leadingZerosMatch.length;
167
+ var integerCappedZerosClean = integerCappedClean
168
+ .replace(/^0+(?!\.|$)/, '')
169
+ .trim();
170
+ var withSeparator = addThousandsSeparator(integerCappedZerosClean, thousandSymbol);
168
171
  var mask = convertToMask(withSeparator);
169
172
  if ((hasDecimal && allowDecimal) || requireDecimal) {
170
173
  var fraction = hasDecimal
@@ -181,20 +184,36 @@ function tuiCreateNumberMask(_a) {
181
184
  mask.push(TUI_DIGIT_REGEXP);
182
185
  }
183
186
  }
187
+ var isOnlyZeroDigit = mask.length === 1 && integerCappedZerosClean === '0';
184
188
  if (isNegative) {
185
189
  if (mask.length === 0) {
186
190
  mask.push(TUI_DIGIT_REGEXP);
187
191
  }
188
192
  mask.unshift('-');
189
193
  }
190
- return preventLeadingZeroes(mask);
194
+ return preventLeadingZeroes(mask, isOnlyZeroDigit, leadingZerosAmount);
191
195
  };
192
196
  }
193
- function preventLeadingZeroes(mask) {
197
+ function preventLeadingZeroes(mask, isOnlyZeroDigit, leadingZerosAmount) {
198
+ if (isOnlyZeroDigit === void 0) { isOnlyZeroDigit = false; }
199
+ if (leadingZerosAmount === void 0) { leadingZerosAmount = 0; }
200
+ if (isOnlyZeroDigit || leadingZerosAmount === 0) {
201
+ return mask;
202
+ }
194
203
  var firstDigitIndex = mask.indexOf(TUI_DIGIT_REGEXP);
195
- if (firstDigitIndex !== -1 && mask[firstDigitIndex + 1] === TUI_DIGIT_REGEXP) {
196
- mask[firstDigitIndex] = NON_ZERO_DIGIT;
204
+ if (firstDigitIndex === -1) {
205
+ return mask;
206
+ }
207
+ var secondMaskDigit = mask[firstDigitIndex + 1];
208
+ var isCaretTrap = secondMaskDigit === MASK_CARET_TRAP;
209
+ if (isCaretTrap && leadingZerosAmount === 1) {
210
+ return mask;
211
+ }
212
+ else if (isCaretTrap) {
213
+ mask.unshift(NON_ZERO_DIGIT);
214
+ return mask;
197
215
  }
216
+ mask[firstDigitIndex] = NON_ZERO_DIGIT;
198
217
  return mask;
199
218
  }
200
219
  function getDecimalSymbolIndex(str, decimalSymbol, autoCorrectDecimalSymbol) {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-utils-mask.js","sources":["ng://@taiga-ui/core/utils/mask/create-auto-corrected-money-pipe.ts","ng://@taiga-ui/core/utils/mask/create-correction-mask.ts","ng://@taiga-ui/core/utils/mask/create-number-mask.ts","ng://@taiga-ui/core/utils/mask/masked-money-value-is-empty.ts","ng://@taiga-ui/core/utils/mask/masked-number-string-to-number.ts","ng://@taiga-ui/core/utils/mask/taiga-ui-core-utils-mask.ts"],"sourcesContent":["import {\n CHAR_NO_BREAK_SPACE,\n getDocumentOrShadowRoot,\n isNativeFocused,\n isSafari,\n tuiAssert,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\n/**\n * Used to finish a number with zeros to a given precision\n */\nexport function tuiCreateAutoCorrectedNumberPipe(\n decimalLimit: number = 0,\n decimalSymbol: TuiDecimalSymbol = ',',\n thousandSymbol: string = CHAR_NO_BREAK_SPACE,\n nativeInput?: HTMLInputElement,\n): TuiTextMaskPipeHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit >= 0);\n\n // Guess for which browser I need this :)\n let previousCaret = -1;\n\n const unlucky = !!nativeInput && isSafari(nativeInput);\n\n if (nativeInput && unlucky) {\n nativeInput.addEventListener('beforeinput', () => {\n previousCaret = nativeInput.selectionStart || 0;\n });\n }\n\n return (conformedValue, config) => {\n // remove these hacks after text mask library has changed\n if (nativeInput && unlucky && isNativeFocused(nativeInput)) {\n const caret = calculateSafariCaret(\n config.previousConformedValue,\n conformedValue,\n previousCaret,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(caret, caret);\n });\n }\n\n if (\n nativeInput &&\n nativeInput.ownerDocument !== getDocumentOrShadowRoot(nativeInput) &&\n isNativeFocused(nativeInput) &&\n config.currentCaretPosition\n ) {\n const realCaretPosition =\n config.currentCaretPosition +\n calculateCaretGap(\n config.previousConformedValue,\n conformedValue,\n thousandSymbol,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(realCaretPosition, realCaretPosition);\n });\n }\n\n if (conformedValue === '' || !decimalLimit) {\n return {value: conformedValue};\n }\n\n const withDecimalSymbol = addDecimalSymbolIfNeeded(conformedValue, decimalSymbol);\n const decimalPart = withDecimalSymbol.split(decimalSymbol)[1];\n const zeroPaddingSize = decimalLimit - decimalPart.length;\n\n return {\n value: withDecimalSymbol + '0'.repeat(zeroPaddingSize),\n };\n };\n}\n\nfunction addDecimalSymbolIfNeeded(\n value: string,\n decimalSymbol: TuiDecimalSymbol = ',',\n): string {\n return value.indexOf(decimalSymbol) === -1 ? value + decimalSymbol : value;\n}\n\nfunction calculateSafariCaret(\n previousValue: string = '',\n current: string,\n previousCaret: number,\n decimalSymbol: string = ',',\n): number {\n const tailRegex = new RegExp(`${decimalSymbol}.+`);\n const previousWithoutTail = previousValue.replace(tailRegex, '');\n const currentWithoutTail = current.replace(tailRegex, '');\n\n const pasteOrCutOperation =\n Math.abs(previousWithoutTail.length - currentWithoutTail.length) > 2;\n\n if (pasteOrCutOperation) {\n return current.length;\n }\n\n if (previousValue.length === current.length) {\n if (previousValue.indexOf(decimalSymbol) <= previousCaret) {\n return calculateChangedTailIndex(previousValue, current);\n }\n\n return previousWithoutTail === currentWithoutTail\n ? previousCaret - 1\n : previousCaret + 1;\n }\n\n if (previousValue.length === 0) {\n return 1;\n }\n\n const changeLength = current.length - previousValue.length;\n\n return previousCaret + changeLength;\n}\n\nfunction calculateChangedTailIndex(previous: string, current: string): number {\n for (let i = 0; i < current.length; i++) {\n if (previous[i] !== current[i]) {\n return current[i] === '0' ? i : i + 1;\n }\n }\n\n return current.length;\n}\n\nfunction calculateCaretGap(\n previousValue: string = '',\n current: string,\n thousandSymbol: string,\n): number {\n const pasteOrCutOperation = Math.abs(previousValue.length - current.length) > 2;\n\n if (pasteOrCutOperation) {\n return 0;\n }\n\n const wereSpaces = previousValue.split(thousandSymbol).length;\n const nowSpaces = current.split(thousandSymbol).length;\n\n return nowSpaces - wereSpaces;\n}\n","import {tuiAssert} from '@taiga-ui/cdk';\nimport {MASK_CARET_TRAP} from '@taiga-ui/core/constants';\nimport {\n TuiTextMaskCorrectionHandler,\n TuiTextMaskList,\n TuiTextMaskListHandler,\n} from '@taiga-ui/core/mask';\n\nconst ASSERTION = 'Correction function must return single char or null';\n\nexport function tuiCreateCorrectionMask(\n allowed: RegExp,\n correctionHandler: TuiTextMaskCorrectionHandler,\n): TuiTextMaskListHandler {\n return rawValue => {\n const mask = rawValue.split('').reduce<TuiTextMaskList>((result, char, index) => {\n const corrected = correctionHandler(char, index);\n\n tuiAssert.assert(corrected === null || corrected.length === 1, ASSERTION);\n\n if (!allowed.test(char) && !corrected) {\n return result;\n }\n\n if (allowed.test(char)) {\n return [...result, allowed];\n }\n\n if (corrected) {\n return [...result, corrected, MASK_CARET_TRAP];\n }\n\n return result;\n }, []);\n const lastIndex = mask.lastIndexOf(MASK_CARET_TRAP);\n const filtered = mask.filter(\n (item, index) => item !== MASK_CARET_TRAP || index === lastIndex,\n );\n\n return filtered.some(item => item !== allowed)\n ? [...filtered, allowed]\n : filtered;\n };\n}\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, tuiAssert} from '@taiga-ui/cdk';\nimport {\n MASK_CARET_TRAP,\n TUI_DIGIT_REGEXP,\n TUI_NON_DIGITS_REGEXP,\n} from '@taiga-ui/core/constants';\nimport {TuiNumberMaskOptions, TuiTextMaskListHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\nimport {otherDecimalSymbol} from '@taiga-ui/core/utils/format';\n\nconst NON_ZERO_DIGIT = /[1-9]/;\n\n/**\n * Adaptation for {@link https://github.com/text-mask/text-mask/tree/master/addons#createnumbermask `createNumberMask`}\n * @todo TODO: autocCorrectDecimalSymbol is no longer needed. Remove it in 3.0\n */\nexport function tuiCreateNumberMask({\n allowDecimal = false,\n decimalSymbol = ',',\n thousandSymbol = CHAR_NO_BREAK_SPACE,\n autoCorrectDecimalSymbol = true,\n decimalLimit = 2,\n requireDecimal = false,\n allowNegative = false,\n integerLimit = 0,\n}: TuiNumberMaskOptions = {}): TuiTextMaskListHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit > 0);\n tuiAssert.assert(Number.isInteger(integerLimit));\n tuiAssert.assert(integerLimit >= 0);\n\n return (rawValue, {previousConformedValue}) => {\n if (previousConformedValue && requireDecimal) {\n const conformedWithoutSeparator = rawValue.split(thousandSymbol).join('');\n const previousConformedValueWithoutDecimalSymbolAndSeparator =\n previousConformedValue\n .split(thousandSymbol)\n .join('')\n .split(decimalSymbol)\n .join('');\n\n // Forbid removal of decimal separator if decimal part is required\n if (\n conformedWithoutSeparator ===\n previousConformedValueWithoutDecimalSymbolAndSeparator\n ) {\n rawValue = previousConformedValue;\n }\n }\n\n const isNegative =\n (rawValue[0] === '-' || rawValue[0] === CHAR_EN_DASH) && allowNegative;\n\n if (\n isDecimalSymbol(rawValue, decimalSymbol, autoCorrectDecimalSymbol) &&\n allowDecimal\n ) {\n return ['0', decimalSymbol, TUI_DIGIT_REGEXP];\n }\n\n if (isNegative) {\n rawValue = rawValue.substr(1);\n }\n\n const decimalIndex = getDecimalSymbolIndex(\n rawValue,\n decimalSymbol,\n autoCorrectDecimalSymbol,\n );\n const hasDecimal = decimalIndex !== -1;\n const integer = hasDecimal ? rawValue.slice(0, decimalIndex) : rawValue;\n const thousandSeparators = integer.match(new RegExp(thousandSymbol, 'g')) || [];\n const integerCapped = integerLimit\n ? integer.slice(0, integerLimit + thousandSeparators.length)\n : integer;\n const integerCappedClean = integerCapped\n .replace(TUI_NON_DIGITS_REGEXP, '')\n .replace(/^0+(?!\\.|$)/, '0');\n const withSeparator = addThousandsSeparator(integerCappedClean, thousandSymbol);\n const mask = convertToMask(withSeparator);\n\n if ((hasDecimal && allowDecimal) || requireDecimal) {\n const fraction = hasDecimal\n ? convertToMask(\n rawValue.slice(decimalIndex + 1).replace(TUI_NON_DIGITS_REGEXP, ''),\n )\n : [];\n const fractionCapped = decimalLimit\n ? fraction.slice(0, decimalLimit)\n : fraction;\n\n if (rawValue[decimalIndex] !== otherDecimalSymbol(decimalSymbol)) {\n mask.push(MASK_CARET_TRAP);\n }\n\n mask.push(decimalSymbol, MASK_CARET_TRAP, ...fractionCapped);\n\n for (let i = 0; i < decimalLimit - fractionCapped.length; i++) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n }\n\n if (isNegative) {\n if (mask.length === 0) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n\n mask.unshift('-');\n }\n\n return preventLeadingZeroes(mask);\n };\n}\n\nfunction preventLeadingZeroes(mask: Array<string | RegExp>): Array<string | RegExp> {\n const firstDigitIndex = mask.indexOf(TUI_DIGIT_REGEXP);\n\n if (firstDigitIndex !== -1 && mask[firstDigitIndex + 1] === TUI_DIGIT_REGEXP) {\n mask[firstDigitIndex] = NON_ZERO_DIGIT;\n }\n\n return mask;\n}\n\nfunction getDecimalSymbolIndex(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): number {\n if (!autoCorrectDecimalSymbol) {\n return str.lastIndexOf(decimalSymbol);\n }\n\n return Math.max(\n str.lastIndexOf(decimalSymbol),\n str.lastIndexOf(otherDecimalSymbol(decimalSymbol)),\n );\n}\n\nfunction isDecimalSymbol(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): boolean {\n if (autoCorrectDecimalSymbol) {\n return /^[,.]$/.test(str);\n }\n\n return str === decimalSymbol;\n}\n\nfunction convertToMask(strNumber: string): Array<string | RegExp> {\n return strNumber\n .split('')\n .map(char => (TUI_DIGIT_REGEXP.test(char) ? TUI_DIGIT_REGEXP : char));\n}\n\nfunction addThousandsSeparator(strNumber: string, thousandSymbol: string): string {\n return strNumber.length > 3\n ? strNumber.replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandSymbol)\n : strNumber;\n}\n","export function maskedMoneyValueIsEmpty(value: string): boolean {\n switch (value) {\n case '':\n case '-':\n case ',':\n case '-,':\n return true;\n default:\n return false;\n }\n}\n","import {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\nexport function maskedNumberStringToNumber(\n value: string,\n decimalsSymbol: TuiDecimalSymbol,\n thousandSymbol: string,\n): number {\n return parseFloat(\n value.split(thousandSymbol).join('').split(decimalsSymbol).join('.'),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAUA;;;SAGgB,gCAAgC,CAC5C,YAAwB,EACxB,aAAqC,EACrC,cAA4C,EAC5C,WAA8B;IAH9B,6BAAA,EAAA,gBAAwB;IACxB,8BAAA,EAAA,mBAAqC;IACrC,+BAAA,EAAA,oCAA4C;IAG5C,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IACjD,SAAS,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC;;IAGpC,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC;IAEvB,IAAM,OAAO,GAAG,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC;IAEvD,IAAI,WAAW,IAAI,OAAO,EAAE;QACxB,WAAW,CAAC,gBAAgB,CAAC,aAAa,EAAE;YACxC,aAAa,GAAG,WAAW,CAAC,cAAc,IAAI,CAAC,CAAC;SACnD,CAAC,CAAC;KACN;IAED,OAAO,UAAC,cAAc,EAAE,MAAM;;QAE1B,IAAI,WAAW,IAAI,OAAO,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE;YACxD,IAAM,OAAK,GAAG,oBAAoB,CAC9B,MAAM,CAAC,sBAAsB,EAC7B,cAAc,EACd,aAAa,CAChB,CAAC;YAEF,UAAU,CAAC;gBACP,WAAW,CAAC,iBAAiB,CAAC,OAAK,EAAE,OAAK,CAAC,CAAC;aAC/C,CAAC,CAAC;SACN;QAED,IACI,WAAW;YACX,WAAW,CAAC,aAAa,KAAK,uBAAuB,CAAC,WAAW,CAAC;YAClE,eAAe,CAAC,WAAW,CAAC;YAC5B,MAAM,CAAC,oBAAoB,EAC7B;YACE,IAAM,mBAAiB,GACnB,MAAM,CAAC,oBAAoB;gBAC3B,iBAAiB,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CAAC,aAAa,CAAC,EAC9B,GAAG,CAAC,WAAW,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CACrD,CAAC;AACN,CAAC;AAED,SAAS,eAAe,CACpB,GAAW,EACX,aAA+B,EAC/B,wBAAiC;IAEjC,IAAI,wBAAwB,EAAE;QAC1B,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC7B;IAED,OAAO,GAAG,KAAK,aAAa,CAAC;AACjC,CAAC;AAED,SAAS,aAAa,CAAC,SAAiB;IACpC,OAAO,SAAS;SACX,KAAK,CAAC,EAAE,CAAC;SACT,GAAG,CAAC,UAAA,IAAI,IAAI,QAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,gBAAgB,GAAG,IAAI,IAAC,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,qBAAqB,CAAC,SAAiB,EAAE,cAAsB;IACpE,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC;UACrB,SAAS,CAAC,OAAO,CAAC,uBAAuB,EAAE,cAAc,CAAC;UAC1D,SAAS,CAAC;AACpB;;SCjKgB,uBAAuB,CAAC,KAAa;IACjD,QAAQ,KAAK;QACT,KAAK,EAAE,CAAC;QACR,KAAK,GAAG,CAAC;QACT,KAAK,GAAG,CAAC;QACT,KAAK,IAAI;YACL,OAAO,IAAI,CAAC;QAChB;YACI,OAAO,KAAK,CAAC;KACpB;AACL;;SCRgB,0BAA0B,CACtC,KAAa,EACb,cAAgC,EAChC,cAAsB;IAEtB,OAAO,UAAU,CACb,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CACvE,CAAC;AACN;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-utils-mask.js","sources":["ng://@taiga-ui/core/utils/mask/create-auto-corrected-money-pipe.ts","ng://@taiga-ui/core/utils/mask/create-correction-mask.ts","ng://@taiga-ui/core/utils/mask/create-number-mask.ts","ng://@taiga-ui/core/utils/mask/masked-money-value-is-empty.ts","ng://@taiga-ui/core/utils/mask/masked-number-string-to-number.ts","ng://@taiga-ui/core/utils/mask/taiga-ui-core-utils-mask.ts"],"sourcesContent":["import {\n CHAR_NO_BREAK_SPACE,\n getDocumentOrShadowRoot,\n isNativeFocused,\n isSafari,\n tuiAssert,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\n/**\n * Used to finish a number with zeros to a given precision\n */\nexport function tuiCreateAutoCorrectedNumberPipe(\n decimalLimit: number = 0,\n decimalSymbol: TuiDecimalSymbol = ',',\n thousandSymbol: string = CHAR_NO_BREAK_SPACE,\n nativeInput?: HTMLInputElement,\n): TuiTextMaskPipeHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit >= 0);\n\n // Guess for which browser I need this :)\n let previousCaret = -1;\n\n const unlucky = !!nativeInput && isSafari(nativeInput);\n\n if (nativeInput && unlucky) {\n nativeInput.addEventListener('beforeinput', () => {\n previousCaret = nativeInput.selectionStart || 0;\n });\n }\n\n return (conformedValue, config) => {\n // remove these hacks after text mask library has changed\n if (nativeInput && unlucky && isNativeFocused(nativeInput)) {\n const caret = calculateSafariCaret(\n config.previousConformedValue,\n conformedValue,\n previousCaret,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(caret, caret);\n });\n }\n\n if (\n nativeInput &&\n nativeInput.ownerDocument !== getDocumentOrShadowRoot(nativeInput) &&\n isNativeFocused(nativeInput) &&\n config.currentCaretPosition\n ) {\n const realCaretPosition =\n config.currentCaretPosition +\n calculateCaretGap(\n config.previousConformedValue,\n conformedValue,\n thousandSymbol,\n );\n\n setTimeout(() => {\n nativeInput.setSelectionRange(realCaretPosition, realCaretPosition);\n });\n }\n\n if (conformedValue === '' || !decimalLimit) {\n return {value: conformedValue};\n }\n\n const withDecimalSymbol = addDecimalSymbolIfNeeded(conformedValue, decimalSymbol);\n const decimalPart = withDecimalSymbol.split(decimalSymbol)[1];\n const zeroPaddingSize = decimalLimit - decimalPart.length;\n\n return {\n value: withDecimalSymbol + '0'.repeat(zeroPaddingSize),\n };\n };\n}\n\nfunction addDecimalSymbolIfNeeded(\n value: string,\n decimalSymbol: TuiDecimalSymbol = ',',\n): string {\n return value.indexOf(decimalSymbol) === -1 ? value + decimalSymbol : value;\n}\n\nfunction calculateSafariCaret(\n previousValue: string = '',\n current: string,\n previousCaret: number,\n decimalSymbol: string = ',',\n): number {\n const tailRegex = new RegExp(`${decimalSymbol}.+`);\n const previousWithoutTail = previousValue.replace(tailRegex, '');\n const currentWithoutTail = current.replace(tailRegex, '');\n\n const pasteOrCutOperation =\n Math.abs(previousWithoutTail.length - currentWithoutTail.length) > 2;\n\n if (pasteOrCutOperation) {\n return current.length;\n }\n\n if (previousValue.length === current.length) {\n if (previousValue.indexOf(decimalSymbol) <= previousCaret) {\n return calculateChangedTailIndex(previousValue, current);\n }\n\n return previousWithoutTail === currentWithoutTail\n ? previousCaret - 1\n : previousCaret + 1;\n }\n\n if (previousValue.length === 0) {\n return 1;\n }\n\n const changeLength = current.length - previousValue.length;\n\n return previousCaret + changeLength;\n}\n\nfunction calculateChangedTailIndex(previous: string, current: string): number {\n for (let i = 0; i < current.length; i++) {\n if (previous[i] !== current[i]) {\n return current[i] === '0' ? i : i + 1;\n }\n }\n\n return current.length;\n}\n\nfunction calculateCaretGap(\n previousValue: string = '',\n current: string,\n thousandSymbol: string,\n): number {\n const pasteOrCutOperation = Math.abs(previousValue.length - current.length) > 2;\n\n if (pasteOrCutOperation) {\n return 0;\n }\n\n const wereSpaces = previousValue.split(thousandSymbol).length;\n const nowSpaces = current.split(thousandSymbol).length;\n\n return nowSpaces - wereSpaces;\n}\n","import {tuiAssert} from '@taiga-ui/cdk';\nimport {MASK_CARET_TRAP} from '@taiga-ui/core/constants';\nimport {\n TuiTextMaskCorrectionHandler,\n TuiTextMaskList,\n TuiTextMaskListHandler,\n} from '@taiga-ui/core/mask';\n\nconst ASSERTION = 'Correction function must return single char or null';\n\nexport function tuiCreateCorrectionMask(\n allowed: RegExp,\n correctionHandler: TuiTextMaskCorrectionHandler,\n): TuiTextMaskListHandler {\n return rawValue => {\n const mask = rawValue.split('').reduce<TuiTextMaskList>((result, char, index) => {\n const corrected = correctionHandler(char, index);\n\n tuiAssert.assert(corrected === null || corrected.length === 1, ASSERTION);\n\n if (!allowed.test(char) && !corrected) {\n return result;\n }\n\n if (allowed.test(char)) {\n return [...result, allowed];\n }\n\n if (corrected) {\n return [...result, corrected, MASK_CARET_TRAP];\n }\n\n return result;\n }, []);\n const lastIndex = mask.lastIndexOf(MASK_CARET_TRAP);\n const filtered = mask.filter(\n (item, index) => item !== MASK_CARET_TRAP || index === lastIndex,\n );\n\n return filtered.some(item => item !== allowed)\n ? [...filtered, allowed]\n : filtered;\n };\n}\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, tuiAssert} from '@taiga-ui/cdk';\nimport {\n MASK_CARET_TRAP,\n TUI_DIGIT_REGEXP,\n TUI_LEADING_ZEROES_REGEXP,\n TUI_NON_DIGITS_REGEXP,\n} from '@taiga-ui/core/constants';\nimport {TuiNumberMaskOptions, TuiTextMaskListHandler} from '@taiga-ui/core/mask';\nimport {TuiDecimalSymbol} from '@taiga-ui/core/types';\nimport {otherDecimalSymbol} from '@taiga-ui/core/utils/format';\n\nconst NON_ZERO_DIGIT = /[1-9]/;\n\n/**\n * Adaptation for {@link https://github.com/text-mask/text-mask/tree/master/addons#createnumbermask `createNumberMask`}\n * @todo TODO: autocCorrectDecimalSymbol is no longer needed. Remove it in 3.0\n */\nexport function tuiCreateNumberMask({\n allowDecimal = false,\n decimalSymbol = ',',\n thousandSymbol = CHAR_NO_BREAK_SPACE,\n autoCorrectDecimalSymbol = true,\n decimalLimit = 2,\n requireDecimal = false,\n allowNegative = false,\n integerLimit = 0,\n}: TuiNumberMaskOptions = {}): TuiTextMaskListHandler {\n tuiAssert.assert(Number.isInteger(decimalLimit));\n tuiAssert.assert(decimalLimit > 0);\n tuiAssert.assert(Number.isInteger(integerLimit));\n tuiAssert.assert(integerLimit >= 0);\n\n return (rawValue, {previousConformedValue}) => {\n if (previousConformedValue && requireDecimal) {\n const conformedWithoutSeparator = rawValue.split(thousandSymbol).join('');\n const previousConformedValueWithoutDecimalSymbolAndSeparator =\n previousConformedValue\n .split(thousandSymbol)\n .join('')\n .split(decimalSymbol)\n .join('');\n\n // Forbid removal of decimal separator if decimal part is required\n if (\n conformedWithoutSeparator ===\n previousConformedValueWithoutDecimalSymbolAndSeparator\n ) {\n rawValue = previousConformedValue;\n }\n }\n\n const isNegative =\n (rawValue[0] === '-' || rawValue[0] === CHAR_EN_DASH) && allowNegative;\n\n if (\n isDecimalSymbol(rawValue, decimalSymbol, autoCorrectDecimalSymbol) &&\n allowDecimal\n ) {\n return ['0', decimalSymbol, TUI_DIGIT_REGEXP];\n }\n\n if (isNegative) {\n rawValue = rawValue.substr(1);\n }\n\n const decimalIndex = getDecimalSymbolIndex(\n rawValue,\n decimalSymbol,\n autoCorrectDecimalSymbol,\n );\n const hasDecimal = decimalIndex !== -1;\n const integer = hasDecimal ? rawValue.slice(0, decimalIndex) : rawValue;\n const thousandSeparators = integer.match(new RegExp(thousandSymbol, 'g')) || [];\n const integerCapped = integerLimit\n ? integer.slice(0, integerLimit + thousandSeparators.length)\n : integer;\n const integerCappedClean = integerCapped.replace(TUI_NON_DIGITS_REGEXP, '');\n const [leadingZerosMatch] = integerCappedClean.match(\n TUI_LEADING_ZEROES_REGEXP,\n ) || [''];\n const leadingZerosAmount = leadingZerosMatch.length;\n const integerCappedZerosClean = integerCappedClean\n .replace(/^0+(?!\\.|$)/, '')\n .trim();\n const withSeparator = addThousandsSeparator(\n integerCappedZerosClean,\n thousandSymbol,\n );\n const mask = convertToMask(withSeparator);\n\n if ((hasDecimal && allowDecimal) || requireDecimal) {\n const fraction = hasDecimal\n ? convertToMask(\n rawValue.slice(decimalIndex + 1).replace(TUI_NON_DIGITS_REGEXP, ''),\n )\n : [];\n const fractionCapped = decimalLimit\n ? fraction.slice(0, decimalLimit)\n : fraction;\n\n if (rawValue[decimalIndex] !== otherDecimalSymbol(decimalSymbol)) {\n mask.push(MASK_CARET_TRAP);\n }\n\n mask.push(decimalSymbol, MASK_CARET_TRAP, ...fractionCapped);\n\n for (let i = 0; i < decimalLimit - fractionCapped.length; i++) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n }\n\n const isOnlyZeroDigit = mask.length === 1 && integerCappedZerosClean === '0';\n\n if (isNegative) {\n if (mask.length === 0) {\n mask.push(TUI_DIGIT_REGEXP);\n }\n\n mask.unshift('-');\n }\n\n return preventLeadingZeroes(mask, isOnlyZeroDigit, leadingZerosAmount);\n };\n}\n\nfunction preventLeadingZeroes(\n mask: Array<string | RegExp>,\n isOnlyZeroDigit: boolean = false,\n leadingZerosAmount: number = 0,\n): Array<string | RegExp> {\n if (isOnlyZeroDigit || leadingZerosAmount === 0) {\n return mask;\n }\n\n const firstDigitIndex = mask.indexOf(TUI_DIGIT_REGEXP);\n\n if (firstDigitIndex === -1) {\n return mask;\n }\n\n const secondMaskDigit = mask[firstDigitIndex + 1];\n const isCaretTrap = secondMaskDigit === MASK_CARET_TRAP;\n\n if (isCaretTrap && leadingZerosAmount === 1) {\n return mask;\n } else if (isCaretTrap) {\n mask.unshift(NON_ZERO_DIGIT);\n\n return mask;\n }\n\n mask[firstDigitIndex] = NON_ZERO_DIGIT;\n\n return mask;\n}\n\nfunction getDecimalSymbolIndex(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): number {\n if (!autoCorrectDecimalSymbol) {\n return str.lastIndexOf(decimalSymbol);\n }\n\n return Math.max(\n str.lastIndexOf(decimalSymbol),\n str.lastIndexOf(otherDecimalSymbol(decimalSymbol)),\n );\n}\n\nfunction isDecimalSymbol(\n str: string,\n decimalSymbol: TuiDecimalSymbol,\n autoCorrectDecimalSymbol: boolean,\n): boolean {\n if (autoCorrectDecimalSymbol) {\n return /^[,.]$/.test(str);\n }\n\n return str === decimalSymbol;\n}\n\nfunction convertToMask(strNumber: string): Array<string | RegExp> {\n return strNumber\n .split('')\n .map(char => (TUI_DIGIT_REGEXP.test(char) ? TUI_DIGIT_REGEXP : char));\n}\n\nfunction addThousandsSeparator(strNumber: string, thousandSymbol: string): string {\n return strNumber.length > 3\n ? strNumber.replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandSymbol)\n : strNumber;\n}\n","export function maskedMoneyValueIsEmpty(value: string): boolean {\n switch (value) {\n case '':\n case '-':\n case ',':\n case '-,':\n return true;\n default:\n return false;\n }\n}\n","import {TuiDecimalSymbol} from '@taiga-ui/core/types';\n\nexport function maskedNumberStringToNumber(\n value: string,\n decimalsSymbol: TuiDecimalSymbol,\n thousandSymbol: string,\n): number {\n return parseFloat(\n value.split(thousandSymbol).join('').split(decimalsSymbol).join('.'),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAUA;;;SAGgB,gCAAgC,CAC5C,YAAwB,EACxB,aAAqC,EACrC,cAA4C,EAC5C,WAA8B;IAH9B,6BAAA,EAAA,gBAAwB;IACxB,8BAAA,EAAA,mBAAqC;IACrC,+BAAA,EAAA,oCAA4C;IAG5C,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IACjD,SAAS,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC;;IAGpC,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC;IAEvB,IAAM,OAAO,GAAG,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC;IAEvD,IAAI,WAAW,IAAI,OAAO,EAAE;QACxB,WAAW,CAAC,gBAAgB,CAAC,aAAa,EAA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IAAI,CAAC,GAAG,CACX,GAAG,CAAC,WAAW,CAAC,aAAa,CAAC,EAC9B,GAAG,CAAC,WAAW,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CACrD,CAAC;AACN,CAAC;AAED,SAAS,eAAe,CACpB,GAAW,EACX,aAA+B,EAC/B,wBAAiC;IAEjC,IAAI,wBAAwB,EAAE;QAC1B,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC7B;IAED,OAAO,GAAG,KAAK,aAAa,CAAC;AACjC,CAAC;AAED,SAAS,aAAa,CAAC,SAAiB;IACpC,OAAO,SAAS;SACX,KAAK,CAAC,EAAE,CAAC;SACT,GAAG,CAAC,UAAA,IAAI,IAAI,QAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,gBAAgB,GAAG,IAAI,IAAC,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,qBAAqB,CAAC,SAAiB,EAAE,cAAsB;IACpE,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC;UACrB,SAAS,CAAC,OAAO,CAAC,uBAAuB,EAAE,cAAc,CAAC;UAC1D,SAAS,CAAC;AACpB;;SCjMgB,uBAAuB,CAAC,KAAa;IACjD,QAAQ,KAAK;QACT,KAAK,EAAE,CAAC;QACR,KAAK,GAAG,CAAC;QACT,KAAK,GAAG,CAAC;QACT,KAAK,IAAI;YACL,OAAO,IAAI,CAAC;QAChB;YACI,OAAO,KAAK,CAAC;KACpB;AACL;;SCRgB,0BAA0B,CACtC,KAAa,EACb,cAAgC,EAChC,cAAsB;IAEtB,OAAO,UAAU,CACb,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CACvE,CAAC;AACN;;ACVA;;;;;;"}
@@ -5,8 +5,8 @@ export * from './dialog-context';
5
5
  export * from './dialog-options';
6
6
  export * from './dropdown-directive';
7
7
  export * from './icon-error';
8
+ export * from './media';
9
+ export * from './notification-options';
8
10
  export * from './number-format-settings';
9
11
  export * from './value-content-context';
10
12
  export * from './with-optional-min-max';
11
- export * from './notification-options';
12
- export * from './media';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TuiAnimationOptions":{"__symbolic":"interface"},"TuiDataListAccessor":{"__symbolic":"interface"},"TuiDataListHost":{"__symbolic":"interface"},"TuiDialogContext":{"__symbolic":"interface"},"TuiDialogOptions":{"__symbolic":"interface"},"TuiDropdown":{"__symbolic":"interface"},"TuiIconError":{"__symbolic":"interface"},"NumberFormatSettings":{"__symbolic":"interface"},"TuiValueContentContext":{"__symbolic":"interface"},"TuiWithOptionalMinMax":{"__symbolic":"interface"},"TuiWithOptionalMinMaxWithValue":{"__symbolic":"interface"},"TuiNotificationAutoClose":{"__symbolic":"interface"},"TuiNotificationOptions":{"__symbolic":"interface"},"TuiNotificationOptionsWithData":{"__symbolic":"interface"},"TuiMedia":{"__symbolic":"interface"}},"origins":{"TuiAnimationOptions":"./animation-options","TuiDataListAccessor":"./data-list-accessor","TuiDataListHost":"./data-list-host","TuiDialogContext":"./dialog-context","TuiDialogOptions":"./dialog-options","TuiDropdown":"./dropdown-directive","TuiIconError":"./icon-error","NumberFormatSettings":"./number-format-settings","TuiValueContentContext":"./value-content-context","TuiWithOptionalMinMax":"./with-optional-min-max","TuiWithOptionalMinMaxWithValue":"./with-optional-min-max","TuiNotificationAutoClose":"./notification-options","TuiNotificationOptions":"./notification-options","TuiNotificationOptionsWithData":"./notification-options","TuiMedia":"./media"},"importAs":"@taiga-ui/core/interfaces"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiAnimationOptions":{"__symbolic":"interface"},"TuiDataListAccessor":{"__symbolic":"interface"},"TuiDataListHost":{"__symbolic":"interface"},"TuiDialogContext":{"__symbolic":"interface"},"TuiDialogOptions":{"__symbolic":"interface"},"TuiDropdown":{"__symbolic":"interface"},"TuiIconError":{"__symbolic":"interface"},"TuiMedia":{"__symbolic":"interface"},"TuiNotificationAutoClose":{"__symbolic":"interface"},"TuiNotificationOptions":{"__symbolic":"interface"},"TuiNotificationOptionsWithData":{"__symbolic":"interface"},"NumberFormatSettings":{"__symbolic":"interface"},"TuiValueContentContext":{"__symbolic":"interface"},"TuiWithOptionalMinMax":{"__symbolic":"interface"},"TuiWithOptionalMinMaxWithValue":{"__symbolic":"interface"}},"origins":{"TuiAnimationOptions":"./animation-options","TuiDataListAccessor":"./data-list-accessor","TuiDataListHost":"./data-list-host","TuiDialogContext":"./dialog-context","TuiDialogOptions":"./dialog-options","TuiDropdown":"./dropdown-directive","TuiIconError":"./icon-error","TuiMedia":"./media","TuiNotificationAutoClose":"./notification-options","TuiNotificationOptions":"./notification-options","TuiNotificationOptionsWithData":"./notification-options","NumberFormatSettings":"./number-format-settings","TuiValueContentContext":"./value-content-context","TuiWithOptionalMinMax":"./with-optional-min-max","TuiWithOptionalMinMaxWithValue":"./with-optional-min-max"},"importAs":"@taiga-ui/core/interfaces"}
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TuiPrimitiveYearMonthPaginationComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"tui-primitive-year-month-pagination","template":"<tui-primitive-spin-button\n [focusable]=\"false\"\n [leftDisabled]=\"prevMonthDisabled\"\n [rightDisabled]=\"nextMonthDisabled\"\n (leftClick)=\"onPrevMonthClick()\"\n (rightClick)=\"onNextMonthClick()\"\n>\n {{value | tuiMonth | async}}\n <ng-container *ngIf=\"oneYear; else button\">\n {{value.formattedYear}}\n </ng-container>\n <ng-template #button>\n <button\n automation-id=\"tui-primitive-year-month-pagination__year-button\"\n tuiLink\n type=\"button\"\n [tuiFocusable]=\"false\"\n (click)=\"onYearClick()\"\n >\n {{value.formattedYear}}\n </button>\n </ng-template>\n</tui-primitive-spin-button>\n","styles":[":host{display:block}"]}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":20,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":24,"character":5}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":28,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":5}}]}],"yearClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":34,"character":5}}]}],"onYearClick":[{"__symbolic":"method"}],"onPrevMonthClick":[{"__symbolic":"method"}],"onNextMonthClick":[{"__symbolic":"method"}],"appendValueWithLimit":[{"__symbolic":"method"}],"updateValue":[{"__symbolic":"method"}]}},"TuiPrimitiveYearMonthPaginationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":8},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiFocusableModule","line":12,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core/components/primitive-spin-button","name":"TuiPrimitiveSpinButtonModule","line":13,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core/components/link","name":"TuiLinkModule","line":14,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core/pipes","name":"TuiMonthPipeModule","line":15,"character":8}],"declarations":[{"__symbolic":"reference","name":"TuiPrimitiveYearMonthPaginationComponent"}],"exports":[{"__symbolic":"reference","name":"TuiPrimitiveYearMonthPaginationComponent"}]}]}],"members":{}}},"origins":{"TuiPrimitiveYearMonthPaginationComponent":"./primitive-year-month-pagination.component","TuiPrimitiveYearMonthPaginationModule":"./primitive-year-month-pagination.module"},"importAs":"@taiga-ui/core/internal/primitive-year-month-pagination"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiPrimitiveYearMonthPaginationComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"tui-primitive-year-month-pagination","template":"<tui-primitive-spin-button\n [focusable]=\"false\"\n [leftDisabled]=\"prevMonthDisabled\"\n [rightDisabled]=\"nextMonthDisabled\"\n (leftClick)=\"onPrevMonthClick()\"\n (rightClick)=\"onNextMonthClick()\"\n>\n {{ value | tuiMonth | async }}\n <ng-container *ngIf=\"oneYear; else button\">\n {{ value.formattedYear }}\n </ng-container>\n <ng-template #button>\n <button\n automation-id=\"tui-primitive-year-month-pagination__year-button\"\n tuiLink\n type=\"button\"\n [tuiFocusable]=\"false\"\n (click)=\"onYearClick()\"\n >\n {{ value.formattedYear }}\n </button>\n </ng-template>\n</tui-primitive-spin-button>\n","styles":[":host{display:block}"]}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":20,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":24,"character":5}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":28,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":5}}]}],"yearClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":34,"character":5}}]}],"onYearClick":[{"__symbolic":"method"}],"onPrevMonthClick":[{"__symbolic":"method"}],"onNextMonthClick":[{"__symbolic":"method"}],"appendValueWithLimit":[{"__symbolic":"method"}],"updateValue":[{"__symbolic":"method"}]}},"TuiPrimitiveYearMonthPaginationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":8},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiFocusableModule","line":12,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core/components/primitive-spin-button","name":"TuiPrimitiveSpinButtonModule","line":13,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core/components/link","name":"TuiLinkModule","line":14,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core/pipes","name":"TuiMonthPipeModule","line":15,"character":8}],"declarations":[{"__symbolic":"reference","name":"TuiPrimitiveYearMonthPaginationComponent"}],"exports":[{"__symbolic":"reference","name":"TuiPrimitiveYearMonthPaginationComponent"}]}]}],"members":{}}},"origins":{"TuiPrimitiveYearMonthPaginationComponent":"./primitive-year-month-pagination.component","TuiPrimitiveYearMonthPaginationModule":"./primitive-year-month-pagination.module"},"importAs":"@taiga-ui/core/internal/primitive-year-month-pagination"}
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TuiSvgDefsHostComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":16,"character":1},"arguments":[{"selector":"tui-svg-defs-host","providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":20,"character":16}],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":21,"character":21},"member":"OnPush"},"template":"<svg:svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n>\n <ng-container *ngIf=\"isBrowser; else server\">\n <defs *ngFor=\"let def of items\" [innerHTML]=\"def\"></defs>\n </ng-container>\n <ng-template #server>\n <!--svg[outerHTML] - to support SSR, because there is no support of innerHTML for for defs element in domino-->\n <defs *ngFor=\"let def of items\">\n <svg [outerHTML]=\"def\"></svg>\n </defs>\n </ng-template>\n</svg:svg>\n","styles":[":host{display:none}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":28,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":28,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/services","name":"TuiSvgService","line":29,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":30,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":33,"character":16}]}]],"parameters":[{"__symbolic":"error","message":"Could not resolve type","line":28,"character":39,"context":{"typeName":"Document"},"module":"./svg-defs-host.component"},{"__symbolic":"reference","module":"@taiga-ui/core/services","name":"TuiSvgService","line":29,"character":60},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":30,"character":71},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":32,"character":35},{"__symbolic":"reference","name":"Object"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"TuiSvgDefsHostModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":14},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":6,"character":28}],"declarations":[{"__symbolic":"reference","name":"TuiSvgDefsHostComponent"}],"exports":[{"__symbolic":"reference","name":"TuiSvgDefsHostComponent"}]}]}],"members":{}}},"origins":{"TuiSvgDefsHostComponent":"./svg-defs-host.component","TuiSvgDefsHostModule":"./svg-defs-host.module"},"importAs":"@taiga-ui/core/internal/svg-defs-host"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiSvgDefsHostComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":16,"character":1},"arguments":[{"selector":"tui-svg-defs-host","providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":20,"character":16}],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":21,"character":21},"member":"OnPush"},"template":"<svg:svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n>\n <ng-container *ngIf=\"isBrowser; else server\">\n <defs *ngFor=\"let def of items\" [innerHTML]=\"def\"></defs>\n </ng-container>\n <ng-template #server>\n <!--svg[outerHTML] - to support SSR, because there is no support of innerHTML for for defs element in domino-->\n <defs *ngFor=\"let def of items\">\n <svg [outerHTML]=\"def\"></svg>\n </defs>\n </ng-template>\n</svg:svg>\n","styles":[":host{display:none}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":28,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":28,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/services","name":"TuiSvgService","line":29,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":30,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":33,"character":16}]}]],"parameters":[{"__symbolic":"error","message":"Could not resolve type","line":28,"character":39,"context":{"typeName":"Document"},"module":"./svg-defs-host.component"},{"__symbolic":"reference","module":"@taiga-ui/core/services","name":"TuiSvgService","line":29,"character":60},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":30,"character":71},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":32,"character":35},{"__symbolic":"reference","name":"Object"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"TuiSvgDefsHostModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":14},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":7,"character":28}],"declarations":[{"__symbolic":"reference","name":"TuiSvgDefsHostComponent"}],"exports":[{"__symbolic":"reference","name":"TuiSvgDefsHostComponent"}]}]}],"members":{}}},"origins":{"TuiSvgDefsHostComponent":"./svg-defs-host.component","TuiSvgDefsHostModule":"./svg-defs-host.module"},"importAs":"@taiga-ui/core/internal/svg-defs-host"}
package/mask/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export * from './number-mask-options';
2
2
  export * from './text-mask-config';
3
- export * from './text-mask-options';
4
3
  export * from './text-mask-correction-handler';
5
4
  export * from './text-mask-list';
6
5
  export * from './text-mask-list-handler';
6
+ export * from './text-mask-options';
7
7
  export * from './text-mask-pipe-handler';
8
8
  export * from './text-mask-pipe-result';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TuiNumberMaskOptions":{"__symbolic":"interface"},"TuiTextMaskConfig":{"__symbolic":"interface"},"TuiTextMaskOptions":{"__symbolic":"interface"},"TuiTextMaskCorrectionHandler":{"__symbolic":"interface"},"TuiTextMaskList":{"__symbolic":"interface"},"TuiTextMaskListHandler":{"__symbolic":"interface"},"TuiTextMaskPipeHandler":{"__symbolic":"interface"},"TuiTextMaskPipeResult":{"__symbolic":"interface"}},"origins":{"TuiNumberMaskOptions":"./number-mask-options","TuiTextMaskConfig":"./text-mask-config","TuiTextMaskOptions":"./text-mask-options","TuiTextMaskCorrectionHandler":"./text-mask-correction-handler","TuiTextMaskList":"./text-mask-list","TuiTextMaskListHandler":"./text-mask-list-handler","TuiTextMaskPipeHandler":"./text-mask-pipe-handler","TuiTextMaskPipeResult":"./text-mask-pipe-result"},"importAs":"@taiga-ui/core/mask"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiNumberMaskOptions":{"__symbolic":"interface"},"TuiTextMaskConfig":{"__symbolic":"interface"},"TuiTextMaskCorrectionHandler":{"__symbolic":"interface"},"TuiTextMaskList":{"__symbolic":"interface"},"TuiTextMaskListHandler":{"__symbolic":"interface"},"TuiTextMaskOptions":{"__symbolic":"interface"},"TuiTextMaskPipeHandler":{"__symbolic":"interface"},"TuiTextMaskPipeResult":{"__symbolic":"interface"}},"origins":{"TuiNumberMaskOptions":"./number-mask-options","TuiTextMaskConfig":"./text-mask-config","TuiTextMaskCorrectionHandler":"./text-mask-correction-handler","TuiTextMaskList":"./text-mask-list","TuiTextMaskListHandler":"./text-mask-list-handler","TuiTextMaskOptions":"./text-mask-options","TuiTextMaskPipeHandler":"./text-mask-pipe-handler","TuiTextMaskPipeResult":"./text-mask-pipe-result"},"importAs":"@taiga-ui/core/mask"}
@@ -1,7 +1,7 @@
1
+ export * from './notification-alert/Notification-alert';
1
2
  export * from './notification-alert/notification-alert.component';
2
3
  export * from './notification-alert/notification-alert.module';
3
- export * from './notification-alert/Notification-alert';
4
- export * from './notifications-host/notifications-host.component';
5
4
  export * from './notification-content-context';
6
5
  export * from './notifications.module';
7
6
  export * from './notifications.service';
7
+ export * from './notifications-host/notifications-host.component';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"DEFAULT_ALERT_AUTOCLOSE_TIMEOUT":3000,"TuiNotificationAlertComponent":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"tui-notification-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":19,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":22,"character":16}],"template":"<tui-notification\n *ngIf=\"item.hasCloseButton else noClose\"\n [status]=\"item.status\"\n [hasIcon]=\"item.hasIcon\"\n (close)=\"closeNotification()\"\n>\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n >\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","styles":[":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:block;border-radius:var(--tui-radius-m)}.heading{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content{color:var(--tui-text-01);word-wrap:break-word}.content:empty{display:none}"]}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":29,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":30,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":31,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":29,"character":68,"context":{"typeName":"HTMLElement"},"module":"./notification-alert/notification-alert.component"}]},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":30,"character":62},{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"NotificationTokenOptions","line":32,"character":33}]}],"ngOnInit":[{"__symbolic":"method"}],"closeNotification":[{"__symbolic":"method"}],"calculateContext":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":47,"character":5}]}],"initAutoClose":[{"__symbolic":"method"}]}},"TuiNotificationAlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":14},{"__symbolic":"reference","module":"@tinkoff/ng-polymorpheus","name":"PolymorpheusModule","line":8,"character":28},{"__symbolic":"reference","module":"@taiga-ui/core/components/notification","name":"TuiNotificationModule","line":8,"character":48}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}]}]}],"members":{}},"NotificationAlert":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Observer","module":"rxjs","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":25,"character":36,"context":{"typeName":"O"},"module":"./notification-alert/Notification-alert"}]},{"__symbolic":"reference","name":"PolymorpheusContent","module":"@tinkoff/ng-polymorpheus","arguments":[{"__symbolic":"reference","name":"TuiNotificationContentContext"}]},{"__symbolic":"error","message":"Could not resolve type","line":27,"character":34,"context":{"typeName":"Required"},"module":"./notification-alert/Notification-alert"}]}],"withData":[{"__symbolic":"method"}]}},"TuiNotificationsHostComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"tui-notifications-host","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":14,"character":21},"member":"OnPush"},"animations":[{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiFadeInList","line":17,"character":17},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiSlideInRightList","line":17,"character":32},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiHeightCollapseList","line":17,"character":53}],"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","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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_ANIMATION_OPTIONS","line":21,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":9},"arguments":[{"__symbolic":"reference","name":"TuiNotificationsService"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/animations","name":"AnimationOptions","line":21,"character":65},{"__symbolic":"reference","name":"TuiNotificationsService"}]}],"getAnimation":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":25,"character":5}]}]}},"TuiNotificationContentContext":{"__symbolic":"interface"},"NOTIFICATIONS_HOST":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"TuiNotificationsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":14},{"__symbolic":"reference","name":"TuiNotificationAlertModule"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":10,"character":56}],"declarations":[{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}],"exports":[{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}],"entryComponents":[{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}],"providers":[{"provide":{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"},"useValue":{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}}]}]}],"members":{}},"TuiNotificationsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":23,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"NotificationTokenOptions","line":24,"character":33}]}],"show":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"DEFAULT_ALERT_AUTOCLOSE_TIMEOUT":"./notification-alert/notification-alert.component","TuiNotificationAlertComponent":"./notification-alert/notification-alert.component","TuiNotificationAlertModule":"./notification-alert/notification-alert.module","NotificationAlert":"./notification-alert/Notification-alert","TuiNotificationsHostComponent":"./notifications-host/notifications-host.component","TuiNotificationContentContext":"./notification-content-context","NOTIFICATIONS_HOST":"./notifications-host/notifications-host.component","TuiNotificationsModule":"./notifications.module","TuiNotificationsService":"./notifications.service"},"importAs":"@taiga-ui/core/modules/notifications"}
1
+ {"__symbolic":"module","version":4,"metadata":{"NotificationAlert":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Observer","module":"rxjs","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":26,"character":36,"context":{"typeName":"O"},"module":"./notification-alert/Notification-alert"}]},{"__symbolic":"reference","name":"PolymorpheusContent","module":"@tinkoff/ng-polymorpheus","arguments":[{"__symbolic":"reference","name":"TuiNotificationContentContext"}]},{"__symbolic":"error","message":"Could not resolve type","line":28,"character":34,"context":{"typeName":"Required"},"module":"./notification-alert/Notification-alert"}]}],"withData":[{"__symbolic":"method"}]}},"DEFAULT_ALERT_AUTOCLOSE_TIMEOUT":3000,"TuiNotificationAlertComponent":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"tui-notification-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":20,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":23,"character":16}],"template":"<tui-notification\n *ngIf=\"item.hasCloseButton; else noClose\"\n [status]=\"item.status\"\n [hasIcon]=\"item.hasIcon\"\n (close)=\"closeNotification()\"\n>\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n</tui-notification>\n<ng-template #noClose>\n <tui-notification [status]=\"item.status\" [hasIcon]=\"item.hasIcon\">\n <label\n *ngIf=\"item.label\"\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__heading\"\n class=\"heading\"\n [content]=\"item.label\"\n [context]=\"context\"\n ></label>\n <div\n polymorpheus-outlet\n automation-id=\"tui-notification-alert__content\"\n class=\"content\"\n [content]=\"item.content\"\n [context]=\"context\"\n ></div>\n </tui-notification>\n</ng-template>\n","styles":[":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:block;border-radius:var(--tui-radius-m)}.heading{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content{color:var(--tui-text-01);word-wrap:break-word}.content:empty{display:none}"]}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":30,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":32,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":30,"character":68,"context":{"typeName":"HTMLElement"},"module":"./notification-alert/notification-alert.component"}]},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":31,"character":62},{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"NotificationTokenOptions","line":33,"character":33}]}],"ngOnInit":[{"__symbolic":"method"}],"closeNotification":[{"__symbolic":"method"}],"calculateContext":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":48,"character":5}]}],"initAutoClose":[{"__symbolic":"method"}]}},"TuiNotificationAlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":14},{"__symbolic":"reference","module":"@tinkoff/ng-polymorpheus","name":"PolymorpheusModule","line":8,"character":28},{"__symbolic":"reference","module":"@taiga-ui/core/components/notification","name":"TuiNotificationModule","line":8,"character":48}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationAlertComponent"}]}]}],"members":{}},"TuiNotificationContentContext":{"__symbolic":"interface"},"NOTIFICATIONS_HOST":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"TuiNotificationsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":14},{"__symbolic":"reference","name":"TuiNotificationAlertModule"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":11,"character":56}],"declarations":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"exports":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"entryComponents":[{"__symbolic":"reference","name":"TuiNotificationsHostComponent"}],"providers":[{"provide":{"__symbolic":"reference","name":"TuiNotificationsHostComponent"},"useValue":{"__symbolic":"reference","name":"NOTIFICATIONS_HOST"}}]}]}],"members":{}},"TuiNotificationsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":24,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_NOTIFICATION_OPTIONS","line":24,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"NotificationTokenOptions","line":25,"character":33}]}],"show":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"TuiNotificationsHostComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"tui-notifications-host","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":21},"member":"OnPush"},"animations":[{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiFadeInList","line":18,"character":17},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiSlideInRightList","line":18,"character":32},{"__symbolic":"reference","module":"@taiga-ui/core/animations","name":"tuiHeightCollapseList","line":18,"character":53}],"template":"<ng-container *tuiLet=\"service.items$ | async as items\">\n <div\n *ngIf=\"items.length\"\n class=\"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","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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core/tokens","name":"TUI_ANIMATION_OPTIONS","line":22,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":23,"character":9},"arguments":[{"__symbolic":"reference","name":"TuiNotificationsService"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/animations","name":"AnimationOptions","line":22,"character":65},{"__symbolic":"reference","name":"TuiNotificationsService"}]}],"getAnimation":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":26,"character":5}]}]}}},"origins":{"NotificationAlert":"./notification-alert/Notification-alert","DEFAULT_ALERT_AUTOCLOSE_TIMEOUT":"./notification-alert/notification-alert.component","TuiNotificationAlertComponent":"./notification-alert/notification-alert.component","TuiNotificationAlertModule":"./notification-alert/notification-alert.module","TuiNotificationContentContext":"./notification-content-context","NOTIFICATIONS_HOST":"./notifications-host/notifications-host.component","TuiNotificationsModule":"./notifications.module","TuiNotificationsService":"./notifications.service","TuiNotificationsHostComponent":"./notifications-host/notifications-host.component"},"importAs":"@taiga-ui/core/modules/notifications"}