@taiga-ui/core 2.38.0 → 2.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/bundles/{taiga-ui-core-modules-notifications.umd.js → taiga-ui-core-components-alert.umd.js} +94 -136
  2. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -0
  3. package/bundles/taiga-ui-core-components-alert.umd.min.js +16 -0
  4. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -0
  5. package/bundles/taiga-ui-core-components-button.umd.js +1 -1
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.js +2 -2
  10. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  12. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -1
  14. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  16. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  18. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  20. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-expand.umd.js +1 -1
  22. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  24. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-group.umd.js +1 -0
  26. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-group.umd.min.js +1 -1
  28. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-hints-host.umd.js +18 -3
  30. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +2 -2
  32. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +1 -1
  34. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  36. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  38. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  40. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +1 -1
  42. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  44. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +1 -1
  46. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +1 -1
  48. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +5 -5
  50. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  52. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-root.umd.js +14 -18
  54. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-root.umd.min.js +2 -2
  56. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +1 -1
  58. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-core-components.umd.js +12 -4
  62. package/bundles/taiga-ui-core-components.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  64. package/bundles/taiga-ui-core-constants.umd.js +3 -1
  65. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  67. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +1 -1
  71. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js +1 -1
  73. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  75. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-core-pipes-format-number.umd.js +4 -2
  77. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  78. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js +1 -1
  79. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  81. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  83. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-core-utils-format.umd.js +14 -8
  85. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  86. package/bundles/taiga-ui-core-utils-format.umd.min.js +1 -1
  87. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-core-utils-mask.umd.js +3 -2
  89. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  90. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  91. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-core.umd.js +4 -12
  93. package/bundles/taiga-ui-core.umd.js.map +1 -1
  94. package/bundles/taiga-ui-core.umd.min.js +1 -1
  95. package/components/alert/alert.component.d.ts +35 -0
  96. package/components/alert/alert.module.d.ts +4 -0
  97. package/components/alert/alert.service.d.ts +18 -0
  98. package/components/alert/index.d.ts +3 -0
  99. package/components/alert/package.json +13 -0
  100. package/{modules/notifications/taiga-ui-core-modules-notifications.d.ts → components/alert/taiga-ui-core-components-alert.d.ts} +0 -0
  101. package/components/alert/taiga-ui-core-components-alert.metadata.json +1 -0
  102. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  103. package/components/data-list/data-list.component.d.ts +1 -1
  104. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  105. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  106. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  107. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  108. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  109. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  110. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  111. package/components/index.d.ts +1 -0
  112. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  113. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  114. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  115. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  116. package/components/root/root.component.d.ts +3 -4
  117. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  118. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  119. package/components/taiga-ui-core-components.metadata.json +1 -1
  120. package/constants/decimal-symbols.d.ts +1 -1
  121. package/constants/regexp.d.ts +1 -0
  122. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  123. package/constants/version.d.ts +1 -1
  124. package/directives/mask-accessor/mask-accessor.directive.d.ts +1 -1
  125. package/esm2015/components/alert/alert.component.js +89 -0
  126. package/esm2015/components/alert/alert.module.js +29 -0
  127. package/esm2015/components/alert/alert.service.js +49 -0
  128. package/esm2015/components/alert/index.js +4 -0
  129. package/esm2015/components/alert/taiga-ui-core-components-alert.js +5 -0
  130. package/esm2015/components/button/button.component.js +2 -2
  131. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +1 -1
  132. package/esm2015/components/data-list/data-list.component.js +2 -2
  133. package/esm2015/components/data-list/option/option.component.js +2 -2
  134. package/esm2015/components/dialog/dialog.component.js +2 -2
  135. package/esm2015/components/dropdown-box/dropdown-box.component.js +2 -2
  136. package/esm2015/components/expand/expand.component.js +2 -2
  137. package/esm2015/components/group/group.module.js +2 -1
  138. package/esm2015/components/hints-host/hint-box/hint-box.component.js +18 -3
  139. package/esm2015/components/hints-host/hints-host.component.js +2 -2
  140. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  141. package/esm2015/components/index.js +2 -1
  142. package/esm2015/components/label/label.component.js +2 -2
  143. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +2 -2
  144. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  145. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +3 -3
  146. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +1 -1
  147. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  148. package/esm2015/components/root/root.component.js +11 -17
  149. package/esm2015/components/root/root.module.js +3 -2
  150. package/esm2015/components/scroll-controls/scroll-controls.component.js +2 -2
  151. package/esm2015/constants/decimal-symbols.js +1 -1
  152. package/esm2015/constants/regexp.js +2 -1
  153. package/esm2015/constants/version.js +2 -2
  154. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +1 -1
  155. package/esm2015/index.js +1 -2
  156. package/esm2015/interfaces/alert-options.js +1 -0
  157. package/esm2015/interfaces/data-list-accessor.js +1 -1
  158. package/esm2015/interfaces/index.js +1 -1
  159. package/esm2015/interfaces/notification-options.js +1 -1
  160. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  161. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  162. package/esm2015/pipes/format-number/format-number.pipe.js +4 -3
  163. package/esm2015/services/hint.service.js +1 -1
  164. package/esm2015/tokens/notification-options.js +1 -1
  165. package/esm2015/types/direction.js +1 -1
  166. package/esm2015/utils/format/capitalize-first-letter.js +4 -0
  167. package/esm2015/utils/format/format-number.js +10 -9
  168. package/esm2015/utils/format/index.js +2 -1
  169. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +3 -3
  170. package/esm2015/utils/mask/create-number-mask.js +1 -1
  171. package/esm5/components/alert/alert.component.js +96 -0
  172. package/esm5/components/alert/alert.module.js +32 -0
  173. package/esm5/components/alert/alert.service.js +54 -0
  174. package/esm5/components/alert/index.js +4 -0
  175. package/esm5/components/alert/taiga-ui-core-components-alert.js +5 -0
  176. package/esm5/components/button/button.component.js +2 -2
  177. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +1 -1
  178. package/esm5/components/data-list/data-list.component.js +2 -2
  179. package/esm5/components/data-list/option/option.component.js +2 -2
  180. package/esm5/components/dialog/dialog.component.js +2 -2
  181. package/esm5/components/dropdown-box/dropdown-box.component.js +2 -2
  182. package/esm5/components/expand/expand.component.js +2 -2
  183. package/esm5/components/group/group.module.js +2 -1
  184. package/esm5/components/hints-host/hint-box/hint-box.component.js +18 -3
  185. package/esm5/components/hints-host/hints-host.component.js +2 -2
  186. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  187. package/esm5/components/index.js +2 -1
  188. package/esm5/components/label/label.component.js +2 -2
  189. package/esm5/components/primitive-calendar/primitive-calendar.component.js +2 -2
  190. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  191. package/esm5/components/primitive-textfield/primitive-textfield.component.js +3 -3
  192. package/esm5/components/primitive-textfield/textfield/textfield.component.js +1 -1
  193. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  194. package/esm5/components/root/root.component.js +11 -17
  195. package/esm5/components/root/root.module.js +3 -2
  196. package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
  197. package/esm5/constants/decimal-symbols.js +1 -1
  198. package/esm5/constants/regexp.js +2 -1
  199. package/esm5/constants/version.js +2 -2
  200. package/esm5/directives/mask-accessor/mask-accessor.directive.js +1 -1
  201. package/esm5/index.js +1 -2
  202. package/esm5/interfaces/alert-options.js +1 -0
  203. package/esm5/interfaces/data-list-accessor.js +1 -1
  204. package/esm5/interfaces/index.js +1 -1
  205. package/esm5/interfaces/notification-options.js +1 -1
  206. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  207. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  208. package/esm5/pipes/format-number/format-number.pipe.js +5 -3
  209. package/esm5/services/hint.service.js +1 -1
  210. package/esm5/tokens/notification-options.js +1 -1
  211. package/esm5/types/direction.js +1 -1
  212. package/esm5/utils/format/capitalize-first-letter.js +4 -0
  213. package/esm5/utils/format/format-number.js +10 -9
  214. package/esm5/utils/format/index.js +2 -1
  215. package/esm5/utils/mask/create-auto-corrected-money-pipe.js +4 -3
  216. package/esm5/utils/mask/create-number-mask.js +1 -1
  217. package/fesm2015/taiga-ui-core-components-alert.js +156 -0
  218. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -0
  219. package/fesm2015/taiga-ui-core-components-button.js +1 -1
  220. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  221. package/fesm2015/taiga-ui-core-components-data-list.js +2 -2
  222. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  223. package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
  224. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  225. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  226. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  227. package/fesm2015/taiga-ui-core-components-expand.js +1 -1
  228. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  229. package/fesm2015/taiga-ui-core-components-group.js +1 -0
  230. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  231. package/fesm2015/taiga-ui-core-components-hints-host.js +18 -3
  232. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  233. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -1
  234. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  235. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  236. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  237. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +1 -1
  238. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  239. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +1 -1
  240. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  241. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +5 -5
  242. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  243. package/fesm2015/taiga-ui-core-components-root.js +12 -17
  244. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  245. package/fesm2015/taiga-ui-core-components-scroll-controls.js +1 -1
  246. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  247. package/fesm2015/taiga-ui-core-components.js +1 -0
  248. package/fesm2015/taiga-ui-core-components.js.map +1 -1
  249. package/fesm2015/taiga-ui-core-constants.js +3 -2
  250. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  251. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  252. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  253. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  254. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  255. package/fesm2015/taiga-ui-core-pipes-format-number.js +3 -2
  256. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  257. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  258. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  259. package/fesm2015/taiga-ui-core-utils-format.js +14 -9
  260. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  261. package/fesm2015/taiga-ui-core-utils-mask.js +2 -2
  262. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  263. package/fesm2015/taiga-ui-core.js +0 -1
  264. package/fesm2015/taiga-ui-core.js.map +1 -1
  265. package/fesm5/taiga-ui-core-components-alert.js +171 -0
  266. package/fesm5/taiga-ui-core-components-alert.js.map +1 -0
  267. package/fesm5/taiga-ui-core-components-button.js +1 -1
  268. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  269. package/fesm5/taiga-ui-core-components-data-list.js +2 -2
  270. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  271. package/fesm5/taiga-ui-core-components-dialog.js +1 -1
  272. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  273. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  274. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  275. package/fesm5/taiga-ui-core-components-expand.js +1 -1
  276. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  277. package/fesm5/taiga-ui-core-components-group.js +1 -0
  278. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  279. package/fesm5/taiga-ui-core-components-hints-host.js +18 -3
  280. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  281. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +1 -1
  282. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  283. package/fesm5/taiga-ui-core-components-label.js +1 -1
  284. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  285. package/fesm5/taiga-ui-core-components-primitive-calendar.js +1 -1
  286. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  287. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +1 -1
  288. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  289. package/fesm5/taiga-ui-core-components-primitive-textfield.js +5 -5
  290. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  291. package/fesm5/taiga-ui-core-components-root.js +12 -17
  292. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  293. package/fesm5/taiga-ui-core-components-scroll-controls.js +1 -1
  294. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  295. package/fesm5/taiga-ui-core-components.js +1 -0
  296. package/fesm5/taiga-ui-core-components.js.map +1 -1
  297. package/fesm5/taiga-ui-core-constants.js +3 -2
  298. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  299. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  300. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  301. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  302. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  303. package/fesm5/taiga-ui-core-pipes-format-number.js +4 -2
  304. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  305. package/fesm5/taiga-ui-core-services.js.map +1 -1
  306. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  307. package/fesm5/taiga-ui-core-utils-format.js +14 -9
  308. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  309. package/fesm5/taiga-ui-core-utils-mask.js +3 -2
  310. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  311. package/fesm5/taiga-ui-core.js +0 -1
  312. package/fesm5/taiga-ui-core.js.map +1 -1
  313. package/index.d.ts +0 -1
  314. package/interfaces/alert-options.d.ts +12 -0
  315. package/interfaces/data-list-accessor.d.ts +1 -1
  316. package/interfaces/index.d.ts +1 -0
  317. package/interfaces/notification-options.d.ts +3 -0
  318. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  319. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  320. package/package.json +4 -4
  321. package/pipes/calendar-sheet/calendar-sheet.pipe.d.ts +1 -1
  322. package/pipes/format-number/format-number.pipe.d.ts +2 -1
  323. package/services/hint.service.d.ts +1 -1
  324. package/styles/markup/tui-group.less +1 -1
  325. package/styles/mixins/mixins.less +1 -0
  326. package/styles/mixins/slider.less +17 -0
  327. package/styles/taiga-ui-global-old.less +18 -18
  328. package/styles/taiga-ui-global.less +18 -18
  329. package/styles/taiga-ui-local-old.less +5 -5
  330. package/styles/taiga-ui-local.less +7 -7
  331. package/styles/taiga-ui-local.scss +7 -7
  332. package/styles/taiga-ui-theme.less +4 -4
  333. package/styles/theme/dialog.less +1 -1
  334. package/styles/theme/wrapper/accent.less +1 -1
  335. package/styles/theme/wrapper/base.less +1 -1
  336. package/styles/theme/wrapper/icon.less +1 -1
  337. package/styles/theme/wrapper/none.less +6 -0
  338. package/styles/theme/wrapper/outline.less +1 -1
  339. package/styles/theme/wrapper/primary.less +1 -1
  340. package/styles/theme/wrapper/secondary.less +1 -1
  341. package/styles/theme/wrapper/table.less +1 -1
  342. package/styles/theme/wrapper/textfield.less +2 -2
  343. package/styles/theme/wrapper/whiteblock.less +2 -2
  344. package/styles/theme/wrapper.less +10 -10
  345. package/taiga-ui-core.metadata.json +1 -1
  346. package/tokens/notification-options.d.ts +2 -10
  347. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  348. package/types/direction.d.ts +1 -1
  349. package/utils/format/capitalize-first-letter.d.ts +1 -0
  350. package/utils/format/index.d.ts +1 -0
  351. package/utils/format/taiga-ui-core-utils-format.metadata.json +1 -1
  352. package/utils/mask/create-auto-corrected-money-pipe.d.ts +1 -1
  353. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +0 -1
  354. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +0 -16
  355. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +0 -1
  356. package/bundles/taiga-ui-core-modules.umd.js +0 -23
  357. package/bundles/taiga-ui-core-modules.umd.js.map +0 -1
  358. package/bundles/taiga-ui-core-modules.umd.min.js +0 -2
  359. package/bundles/taiga-ui-core-modules.umd.min.js.map +0 -1
  360. package/esm2015/modules/index.js +0 -2
  361. package/esm2015/modules/notifications/index.js +0 -7
  362. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +0 -22
  363. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +0 -74
  364. package/esm2015/modules/notifications/notification-alert/notification-alert.module.js +0 -17
  365. package/esm2015/modules/notifications/notification-content-context.js +0 -1
  366. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +0 -35
  367. package/esm2015/modules/notifications/notifications.module.js +0 -26
  368. package/esm2015/modules/notifications/notifications.service.js +0 -38
  369. package/esm2015/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  370. package/esm2015/modules/taiga-ui-core-modules.js +0 -5
  371. package/esm5/modules/index.js +0 -2
  372. package/esm5/modules/notifications/index.js +0 -7
  373. package/esm5/modules/notifications/notification-alert/Notification-alert.js +0 -24
  374. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +0 -81
  375. package/esm5/modules/notifications/notification-alert/notification-alert.module.js +0 -20
  376. package/esm5/modules/notifications/notification-content-context.js +0 -1
  377. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +0 -36
  378. package/esm5/modules/notifications/notifications.module.js +0 -29
  379. package/esm5/modules/notifications/notifications.service.js +0 -41
  380. package/esm5/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  381. package/esm5/modules/taiga-ui-core-modules.js +0 -5
  382. package/fesm2015/taiga-ui-core-modules-notifications.js +0 -192
  383. package/fesm2015/taiga-ui-core-modules-notifications.js.map +0 -1
  384. package/fesm2015/taiga-ui-core-modules.js +0 -6
  385. package/fesm2015/taiga-ui-core-modules.js.map +0 -1
  386. package/fesm5/taiga-ui-core-modules-notifications.js +0 -210
  387. package/fesm5/taiga-ui-core-modules-notifications.js.map +0 -1
  388. package/fesm5/taiga-ui-core-modules.js +0 -6
  389. package/fesm5/taiga-ui-core-modules.js.map +0 -1
  390. package/modules/index.d.ts +0 -1
  391. package/modules/notifications/index.d.ts +0 -7
  392. package/modules/notifications/notification-alert/Notification-alert.d.ts +0 -19
  393. package/modules/notifications/notification-alert/notification-alert.component.d.ts +0 -17
  394. package/modules/notifications/notification-alert/notification-alert.module.d.ts +0 -2
  395. package/modules/notifications/notification-content-context.d.ts +0 -10
  396. package/modules/notifications/notifications-host/notifications-host.component.d.ts +0 -9
  397. package/modules/notifications/notifications.module.d.ts +0 -4
  398. package/modules/notifications/notifications.service.d.ts +0 -15
  399. package/modules/notifications/package.json +0 -13
  400. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +0 -1
  401. package/modules/package.json +0 -13
  402. package/modules/taiga-ui-core-modules.d.ts +0 -4
  403. package/modules/taiga-ui-core-modules.metadata.json +0 -1
@@ -1 +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/enable-auto-correct-decimal-symbol.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 | null,\n allowNegative?: boolean,\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 // Removing everything by selecting and pressing '-'\n if (!conformedValue && config.rawValue === '-' && allowNegative) {\n return '-';\n }\n\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.includes(decimalSymbol) ? 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 */\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","import {TUI_DECIMAL_SYMBOLS} from '@taiga-ui/core/constants';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport function tuiEnableAutoCorrectDecimalSymbol({\n thousandSeparator,\n}: NumberFormatSettings): boolean {\n return !TUI_DECIMAL_SYMBOLS.includes(thousandSeparator);\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,WAAqC,EACrC,aAAuB;IAJvB,6BAAA,EAAA,gBAAwB;IACxB,8BAAA,EAAA,mBAAqC;IACrC,+BAAA,EAAA,oCAA4C;IAI5C,SAAS,CAAC,MAAM,CAAC,MAA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CAAC,CAAC;AAC5D;;SCPgB,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/enable-auto-correct-decimal-symbol.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 | null,\n allowNegative?: boolean,\n isIOS = false,\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 const unlucky = (!!nativeInput && isSafari(nativeInput)) || isIOS;\n\n if (nativeInput && unlucky) {\n nativeInput.addEventListener('beforeinput', () => {\n previousCaret = nativeInput.selectionStart || 0;\n });\n }\n\n return (conformedValue, config) => {\n // Removing everything by selecting and pressing '-'\n if (!conformedValue && config.rawValue === '-' && allowNegative) {\n return '-';\n }\n\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.includes(decimalSymbol) ? 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 */\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: (string | RegExp)[],\n isOnlyZeroDigit: boolean = false,\n leadingZerosAmount: number = 0,\n): (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): (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","import {TUI_DECIMAL_SYMBOLS} from '@taiga-ui/core/constants';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport function tuiEnableAutoCorrectDecimalSymbol({\n thousandSeparator,\n}: NumberFormatSettings): boolean {\n return !TUI_DECIMAL_SYMBOLS.includes(thousandSeparator);\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,WAAqC,EACrC,aAAuB,EACvB,KAAa;IALb,6BAAA,EAAA,gBAAwB;IACxB,8BAAA,EAAA,mBAAqC;IACrC,+BAAA,EAAA,oCAA4C;IAG5C,sBAAA,EAAA,aAAa;IAEb,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;IACvB,IAAM,OAAO,GAAG,CAAC,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,KAAK,CAAC;IAElE,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,CAAC,cAAc,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,IAAI,aAAa,EAAE;YAC7D,OAAO,GAAG,CAAC;SACd;;QAGD,IAAI,WAAW,IAAI,OAAO,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE;YACxD,IAA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C,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;;SC7LgB,iCAAiC,CAAC,EAE3B;QADnB,wCAAiB;IAEjB,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAC5D;;SCPgB,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,7 +5,6 @@ export * from '@taiga-ui/core/constants';
5
5
  export * from '@taiga-ui/core/directives';
6
6
  export * from '@taiga-ui/core/enums';
7
7
  export * from '@taiga-ui/core/internal';
8
- export * from '@taiga-ui/core/modules';
9
8
  export * from '@taiga-ui/core/observables';
10
9
  export * from '@taiga-ui/core/pipes';
11
10
  export * from '@taiga-ui/core/providers';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core.js","sources":["ng://@taiga-ui/core/taiga-ui-core.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-core.js","sources":["ng://@taiga-ui/core/taiga-ui-core.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;"}
package/index.d.ts CHANGED
@@ -7,7 +7,6 @@ export * from '@taiga-ui/core/enums';
7
7
  export * from '@taiga-ui/core/interfaces';
8
8
  export * from '@taiga-ui/core/internal';
9
9
  export * from '@taiga-ui/core/mask';
10
- export * from '@taiga-ui/core/modules';
11
10
  export * from '@taiga-ui/core/observables';
12
11
  export * from '@taiga-ui/core/pipes';
13
12
  export * from '@taiga-ui/core/providers';
@@ -0,0 +1,12 @@
1
+ import { TuiContextWithImplicit, TuiHandler } from '@taiga-ui/cdk';
2
+ import { TuiNotification } from '@taiga-ui/core/enums';
3
+ import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
+ export declare type TuiAlertAutoClose = boolean | number | TuiHandler<TuiNotification, number | boolean>;
5
+ export interface TuiAlertOptions<I> {
6
+ readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;
7
+ readonly status: TuiNotification;
8
+ readonly hasIcon: boolean;
9
+ readonly autoClose: TuiAlertAutoClose;
10
+ readonly hasCloseButton: boolean;
11
+ readonly data: I;
12
+ }
@@ -1,3 +1,3 @@
1
1
  export interface TuiDataListAccessor<T = unknown> {
2
- getOptions(includeDisabled?: boolean): ReadonlyArray<T>;
2
+ getOptions(includeDisabled?: boolean): readonly T[];
3
3
  }
@@ -1,3 +1,4 @@
1
+ export * from './alert-options';
1
2
  export * from './animation-options';
2
3
  export * from './data-list-accessor';
3
4
  export * from './data-list-host';
@@ -1,7 +1,9 @@
1
1
  import { TuiContextWithImplicit } from '@taiga-ui/cdk';
2
2
  import { TuiNotification } from '@taiga-ui/core/enums';
3
3
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
+ /** @deprecated */
4
5
  export declare type TuiNotificationAutoClose = boolean | number | ((status: TuiNotification) => number | boolean);
6
+ /** @deprecated */
5
7
  export interface TuiNotificationOptions {
6
8
  readonly label?: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;
7
9
  readonly status?: TuiNotification;
@@ -9,6 +11,7 @@ export interface TuiNotificationOptions {
9
11
  readonly autoClose?: TuiNotificationAutoClose;
10
12
  readonly hasCloseButton?: boolean;
11
13
  }
14
+ /** @deprecated */
12
15
  export interface TuiNotificationOptionsWithData<I> extends TuiNotificationOptions {
13
16
  readonly data: I;
14
17
  }
@@ -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"},"TuiMedia":{"__symbolic":"interface"},"TuiNotificationAutoClose":{"__symbolic":"interface"},"TuiNotificationOptions":{"__symbolic":"interface"},"TuiNotificationOptionsWithData":{"__symbolic":"interface"},"NumberFormatSettings":{"__symbolic":"interface"},"TuiTextfieldHost":{"__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","TuiTextfieldHost":"./textfield-host","TuiValueContentContext":"./value-content-context","TuiWithOptionalMinMax":"./with-optional-min-max","TuiWithOptionalMinMaxWithValue":"./with-optional-min-max"},"importAs":"@taiga-ui/core/interfaces"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiAlertAutoClose":{"__symbolic":"interface"},"TuiAlertOptions":{"__symbolic":"interface"},"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"},"TuiTextfieldHost":{"__symbolic":"interface"},"TuiValueContentContext":{"__symbolic":"interface"},"TuiWithOptionalMinMax":{"__symbolic":"interface"},"TuiWithOptionalMinMaxWithValue":{"__symbolic":"interface"}},"origins":{"TuiAlertAutoClose":"./alert-options","TuiAlertOptions":"./alert-options","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","TuiTextfieldHost":"./textfield-host","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":{"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"}
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\n *ngFor=\"let def of items\"\n [innerHTML]=\"def\"\n ></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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/core",
3
- "version": "2.38.0",
3
+ "version": "2.41.0",
4
4
  "description": "Core library for creating Angular components and applications using Taiga UI",
5
5
  "keywords": [
6
6
  "angular",
@@ -16,12 +16,12 @@
16
16
  "homepage": "https://github.com/tinkoff/taiga-ui",
17
17
  "schematics": "./schematics/collection.json",
18
18
  "dependencies": {
19
- "@taiga-ui/i18n": "^2.38.0",
19
+ "@taiga-ui/i18n": "^2.41.0",
20
20
  "tslib": "^1.10.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@taiga-ui/i18n": ">=2.38.0",
24
- "@taiga-ui/cdk": ">=2.38.0",
23
+ "@taiga-ui/i18n": ">=2.41.0",
24
+ "@taiga-ui/cdk": ">=2.41.0",
25
25
  "@angular/animations": ">=9.0.0",
26
26
  "@angular/common": ">=9.0.0",
27
27
  "@angular/core": ">=9.0.0",
@@ -5,5 +5,5 @@ export declare class TuiCalendarSheetPipe implements PipeTransform {
5
5
  private currentMonth;
6
6
  private currentSheet;
7
7
  constructor(firstDayOfWeek: TuiDayOfWeek);
8
- transform(month: TuiMonth, showAdjacentDays?: boolean): ReadonlyArray<ReadonlyArray<TuiDay>>;
8
+ transform(month: TuiMonth, showAdjacentDays?: boolean): ReadonlyArray<readonly TuiDay[]>;
9
9
  }
@@ -10,6 +10,7 @@ export declare class TuiFormatNumberPipe implements PipeTransform {
10
10
  * @param decimalSeparator
11
11
  * @param thousandSeparator
12
12
  * @param decimalLimit number of digits of decimal part, null to keep untouched
13
+ * @param zeroPadding enable zeros at the end of decimal part
13
14
  */
14
- transform(value: number, decimalLimit?: number | null, decimalSeparator?: string, thousandSeparator?: string): string;
15
+ transform(value: number, decimalLimit?: number | null, decimalSeparator?: string, thousandSeparator?: string, zeroPadding?: boolean): string;
15
16
  }
@@ -4,7 +4,7 @@ declare type AbstractTuiHint = any;
4
4
  /**
5
5
  * Service for displaying hints/tooltips
6
6
  */
7
- export declare class TuiHintService extends BehaviorSubject<ReadonlyArray<AbstractTuiHint>> {
7
+ export declare class TuiHintService extends BehaviorSubject<readonly AbstractTuiHint[]> {
8
8
  /**
9
9
  * TODO: v2.0
10
10
  * We need the following logic for desribedBy
@@ -1,4 +1,4 @@
1
- @import '../taiga-ui-local.less';
1
+ @import './../taiga-ui-local.less';
2
2
 
3
3
  .tui-group {
4
4
  .createStackingContext();
@@ -82,6 +82,7 @@
82
82
  .clearinput(@mode: default) {
83
83
  .autofill(@mode);
84
84
  padding: 0;
85
+ margin: 0;
85
86
  border: 0;
86
87
  border-radius: inherit;
87
88
  background: none;
@@ -30,4 +30,21 @@
30
30
  tui-input-slider + & {
31
31
  margin-left: calc(var(--tui-radius-m) / 2 + @first-tick-center);
32
32
  }
33
+
34
+ tui-input-range + &,
35
+ tui-range + & {
36
+ @thumb: @thumb-diameters[ @@input-size];
37
+ margin-left: @thumb;
38
+ margin-right: @thumb;
39
+
40
+ & > * {
41
+ &:first-child {
42
+ left: -@thumb;
43
+ }
44
+
45
+ &:last-child {
46
+ right: -@thumb;
47
+ }
48
+ }
49
+ }
33
50
  }
@@ -1,18 +1,18 @@
1
- @import 'taiga-ui-local-old.less';
2
- @import 'basic/keyframes.less';
3
- @import 'basic/normalize.less';
4
- @import 'basic/main.less';
5
- @import 'markup/tui-autofill.less';
6
- @import 'markup/tui-container-old.less';
7
- @import 'markup/tui-form-old.less';
8
- @import 'markup/tui-group-old.less';
9
- @import 'markup/tui-island.less';
10
- @import 'markup/tui-list.less';
11
- @import 'markup/tui-mobile-only.less';
12
- @import 'markup/tui-palette.less';
13
- @import 'markup/tui-required.less';
14
- @import 'markup/tui-row-old.less';
15
- @import 'markup/tui-skeleton.less';
16
- @import 'markup/tui-space.less';
17
- @import 'markup/tui-table.less';
18
- @import 'markup/tui-text.less';
1
+ @import './taiga-ui-local-old.less';
2
+ @import './basic/keyframes.less';
3
+ @import './basic/normalize.less';
4
+ @import './basic/main.less';
5
+ @import './markup/tui-autofill.less';
6
+ @import './markup/tui-container-old.less';
7
+ @import './markup/tui-form-old.less';
8
+ @import './markup/tui-group-old.less';
9
+ @import './markup/tui-island.less';
10
+ @import './markup/tui-list.less';
11
+ @import './markup/tui-mobile-only.less';
12
+ @import './markup/tui-palette.less';
13
+ @import './markup/tui-required.less';
14
+ @import './markup/tui-row-old.less';
15
+ @import './markup/tui-skeleton.less';
16
+ @import './markup/tui-space.less';
17
+ @import './markup/tui-table.less';
18
+ @import './markup/tui-text.less';
@@ -1,18 +1,18 @@
1
- @import 'taiga-ui-local.less';
2
- @import 'basic/keyframes.less';
3
- @import 'basic/normalize.less';
4
- @import 'basic/main.less';
5
- @import 'markup/tui-autofill.less';
6
- @import 'markup/tui-container.less';
7
- @import 'markup/tui-form.less';
8
- @import 'markup/tui-group.less';
9
- @import 'markup/tui-island.less';
10
- @import 'markup/tui-list.less';
11
- @import 'markup/tui-mobile-only.less';
12
- @import 'markup/tui-palette.less';
13
- @import 'markup/tui-required.less';
14
- @import 'markup/tui-row.less';
15
- @import 'markup/tui-skeleton.less';
16
- @import 'markup/tui-space.less';
17
- @import 'markup/tui-table.less';
18
- @import 'markup/tui-text.less';
1
+ @import './taiga-ui-local.less';
2
+ @import './basic/keyframes.less';
3
+ @import './basic/normalize.less';
4
+ @import './basic/main.less';
5
+ @import './markup/tui-autofill.less';
6
+ @import './markup/tui-container.less';
7
+ @import './markup/tui-form.less';
8
+ @import './markup/tui-group.less';
9
+ @import './markup/tui-island.less';
10
+ @import './markup/tui-list.less';
11
+ @import './markup/tui-mobile-only.less';
12
+ @import './markup/tui-palette.less';
13
+ @import './markup/tui-required.less';
14
+ @import './markup/tui-row.less';
15
+ @import './markup/tui-skeleton.less';
16
+ @import './markup/tui-space.less';
17
+ @import './markup/tui-table.less';
18
+ @import './markup/tui-text.less';
@@ -1,7 +1,7 @@
1
1
  @space: 0.25rem;
2
2
 
3
- @import 'mixins/mixins.less';
4
- @import 'mixins/picker.less';
5
- @import 'mixins/text.less';
6
- @import 'mixins/textfield.less';
7
- @import 'variables/media-old.less';
3
+ @import './mixins/mixins.less';
4
+ @import './mixins/picker.less';
5
+ @import './mixins/text.less';
6
+ @import './mixins/textfield.less';
7
+ @import './variables/media-old.less';
@@ -1,9 +1,9 @@
1
1
  @space: 0.25rem;
2
2
 
3
- @import 'mixins/mixins.less';
4
- @import 'mixins/picker.less';
5
- @import 'mixins/slider.less';
6
- @import 'mixins/text.less';
7
- @import 'mixins/textfield.less';
8
- @import 'mixins/wrapper.less';
9
- @import 'variables/media.less';
3
+ @import './mixins/mixins.less';
4
+ @import './mixins/picker.less';
5
+ @import './mixins/slider.less';
6
+ @import './mixins/text.less';
7
+ @import './mixins/textfield.less';
8
+ @import './mixins/wrapper.less';
9
+ @import './variables/media.less';
@@ -1,9 +1,9 @@
1
1
  $space: 4px;
2
2
 
3
- @import 'mixins/mixins.scss';
4
- @import 'mixins/picker.scss';
5
- @import 'mixins/slider.scss';
6
- @import 'mixins/text.scss';
7
- @import 'mixins/textfield.scss';
8
- @import 'mixins/wrapper.scss';
9
- @import 'variables/media.scss';
3
+ @import './mixins/mixins.scss';
4
+ @import './mixins/picker.scss';
5
+ @import './mixins/slider.scss';
6
+ @import './mixins/text.scss';
7
+ @import './mixins/textfield.scss';
8
+ @import './mixins/wrapper.scss';
9
+ @import './variables/media.scss';
@@ -1,4 +1,4 @@
1
- @import 'theme/fonts.css';
2
- @import 'theme/dialog.less';
3
- @import 'theme/variables.less';
4
- @import 'theme/wrapper.less';
1
+ @import './theme/fonts.css';
2
+ @import './theme/dialog.less';
3
+ @import './theme/variables.less';
4
+ @import './theme/wrapper.less';
@@ -1,4 +1,4 @@
1
- @import '../mixins/mixins';
1
+ @import './../mixins/mixins';
2
2
 
3
3
  tui-root:not(._mobile) tui-dialog-host > section {
4
4
  .customize-scroll();
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local.less';
1
+ @import './../../taiga-ui-local.less';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='accent'],
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local.less';
1
+ @import './../../taiga-ui-local.less';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper,
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local.less';
1
+ @import './../../taiga-ui-local.less';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='icon'],
@@ -0,0 +1,6 @@
1
+ tui-wrapper[data-appearance='none'],
2
+ [tuiWrapper][data-appearance='none'] {
3
+ &:after {
4
+ border: none;
5
+ }
6
+ }
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local.less';
1
+ @import './../../taiga-ui-local.less';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='outline'],
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local';
1
+ @import './../../taiga-ui-local';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='primary'],
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local';
1
+ @import './../../taiga-ui-local';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='secondary'],
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local';
1
+ @import './../../taiga-ui-local';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='table'],
@@ -1,9 +1,9 @@
1
- @import '../../taiga-ui-local';
1
+ @import './../../taiga-ui-local';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='textfield'],
5
5
  [tuiWrapper][data-appearance='textfield'] {
6
- .transition('box-shadow, background');
6
+ .transition(~'box-shadow, background');
7
7
  background: var(--tui-base-01);
8
8
  color: var(--tui-text-01);
9
9
  box-shadow: 0 0.125rem 0.1875rem rgba(0, 0, 0, 0.1);
@@ -1,4 +1,4 @@
1
- @import '../../taiga-ui-local';
1
+ @import './../../taiga-ui-local';
2
2
 
3
3
  /* stylelint-disable order/order */
4
4
  tui-wrapper[data-appearance='whiteblock'],
@@ -9,7 +9,7 @@ tui-wrapper[data-appearance='whiteblock-active'],
9
9
  color: var(--tui-text-01);
10
10
 
11
11
  &:after {
12
- color: var(--tui-base-03);
12
+ color: var(--tui-base-04);
13
13
  }
14
14
 
15
15
  .wrapper-hover({
@@ -1,10 +1,10 @@
1
- @import 'wrapper/icon.less';
2
- @import 'wrapper/outline.less';
3
- @import 'wrapper/primary.less';
4
- @import 'wrapper/accent.less';
5
- @import 'wrapper/secondary.less';
6
- @import 'wrapper/table.less';
7
- @import 'wrapper/textfield.less';
8
- @import 'wrapper/whiteblock.less';
9
-
10
- @import 'wrapper/base.less';
1
+ @import './wrapper/icon.less';
2
+ @import './wrapper/outline.less';
3
+ @import './wrapper/primary.less';
4
+ @import './wrapper/accent.less';
5
+ @import './wrapper/secondary.less';
6
+ @import './wrapper/table.less';
7
+ @import './wrapper/textfield.less';
8
+ @import './wrapper/whiteblock.less';
9
+ @import './wrapper/none.less';
10
+ @import './wrapper/base.less';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/core/abstract"},{"from":"@taiga-ui/core/animations"},{"from":"@taiga-ui/core/components"},{"from":"@taiga-ui/core/constants"},{"from":"@taiga-ui/core/directives"},{"from":"@taiga-ui/core/enums"},{"from":"@taiga-ui/core/interfaces"},{"from":"@taiga-ui/core/internal"},{"from":"@taiga-ui/core/mask"},{"from":"@taiga-ui/core/modules"},{"from":"@taiga-ui/core/observables"},{"from":"@taiga-ui/core/pipes"},{"from":"@taiga-ui/core/providers"},{"from":"@taiga-ui/core/services"},{"from":"@taiga-ui/core/tokens"},{"from":"@taiga-ui/core/types"},{"from":"@taiga-ui/core/utils"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/core"}
1
+ {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/core/abstract"},{"from":"@taiga-ui/core/animations"},{"from":"@taiga-ui/core/components"},{"from":"@taiga-ui/core/constants"},{"from":"@taiga-ui/core/directives"},{"from":"@taiga-ui/core/enums"},{"from":"@taiga-ui/core/interfaces"},{"from":"@taiga-ui/core/internal"},{"from":"@taiga-ui/core/mask"},{"from":"@taiga-ui/core/observables"},{"from":"@taiga-ui/core/pipes"},{"from":"@taiga-ui/core/providers"},{"from":"@taiga-ui/core/services"},{"from":"@taiga-ui/core/tokens"},{"from":"@taiga-ui/core/types"},{"from":"@taiga-ui/core/utils"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/core"}
@@ -1,14 +1,6 @@
1
1
  import { InjectionToken, ValueProvider } from '@angular/core';
2
- import { TuiContextWithImplicit } from '@taiga-ui/cdk';
3
- import { TuiNotification } from '@taiga-ui/core/enums';
4
- import { TuiNotificationAutoClose } from '@taiga-ui/core/interfaces';
5
- import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
6
- export interface TuiNotificationDefaultOptions {
7
- readonly autoClose: TuiNotificationAutoClose;
8
- readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;
9
- readonly status: TuiNotification;
10
- readonly hasIcon: boolean;
11
- readonly hasCloseButton: boolean;
2
+ import { TuiAlertOptions } from '@taiga-ui/core/interfaces';
3
+ export interface TuiNotificationDefaultOptions extends Omit<TuiAlertOptions<unknown>, 'data'> {
12
4
  readonly defaultAutoCloseTime: number;
13
5
  }
14
6
  /**