@taiga-ui/core 2.24.0 → 2.27.1

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 (605) hide show
  1. package/abstract/abstract-dropdown.d.ts +1 -1
  2. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-data-list.umd.js +20 -20
  8. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.min.js +1 -1
  10. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-dialog.umd.js +14 -38
  12. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  14. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-expand.umd.js +4 -4
  20. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  22. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-hints-host.umd.js +27 -20
  26. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +2 -2
  28. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +9 -9
  30. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  32. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-link.umd.js +5 -4
  36. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-link.umd.min.js +2 -2
  38. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
  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 +2 -15
  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-spin-button.umd.js +3 -3
  50. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  52. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +17 -14
  54. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  56. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +3 -3
  58. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  62. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +61 -61
  64. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  65. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +2 -2
  66. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-core-components-scrollbar.umd.js +24 -24
  68. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
  70. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-core-components-svg.umd.js +1 -1
  72. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  73. package/bundles/taiga-ui-core-components-svg.umd.min.js +1 -1
  74. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  78. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  80. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-core-components-wrapper.umd.js.map +1 -1
  82. package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-core-components.umd.js +8 -8
  84. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  85. package/bundles/taiga-ui-core-constants.umd.js +3 -3
  86. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  87. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  88. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-core-directives-border.umd.js.map +1 -1
  90. package/bundles/taiga-ui-core-directives-border.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  92. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  94. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  96. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  97. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  98. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-core-directives-hint.umd.js +1 -1
  100. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-hint.umd.min.js +1 -1
  102. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  104. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  105. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +1 -1
  110. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  111. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
  112. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  114. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  116. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  118. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-core-directives.umd.js +8 -8
  120. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  121. package/bundles/taiga-ui-core-enums.umd.js +1 -0
  122. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  123. package/bundles/taiga-ui-core-enums.umd.min.js +1 -1
  124. package/bundles/taiga-ui-core-enums.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  126. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-core-modules-notifications.umd.js +23 -23
  128. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  129. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  130. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  132. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  133. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  134. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  135. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  136. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  138. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  139. package/bundles/taiga-ui-core-pipes.umd.js +12 -12
  140. package/bundles/taiga-ui-core-pipes.umd.min.js +1 -1
  141. package/bundles/taiga-ui-core-providers.umd.js +9 -9
  142. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  143. package/bundles/taiga-ui-core-providers.umd.min.js +1 -1
  144. package/bundles/taiga-ui-core-services.umd.js +1 -1
  145. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  146. package/bundles/taiga-ui-core-services.umd.min.js +1 -1
  147. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  148. package/bundles/taiga-ui-core-tokens.umd.js +25 -25
  149. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  150. package/bundles/taiga-ui-core-tokens.umd.min.js +1 -1
  151. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  152. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  153. package/components/data-list/data-list.component.d.ts +4 -4
  154. package/components/data-list/index.d.ts +1 -1
  155. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  156. package/components/dialog/dialog.directive.d.ts +2 -11
  157. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  158. package/components/dropdown-box/dropdown-box.component.d.ts +2 -2
  159. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  160. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  161. package/components/expand/expand.component.d.ts +2 -2
  162. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  163. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  164. package/components/hints-host/hint-box/hint-box.component.d.ts +5 -3
  165. package/components/hints-host/index.d.ts +2 -2
  166. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  167. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +3 -3
  168. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  169. package/components/index.d.ts +1 -1
  170. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  171. package/components/link/link.component.d.ts +1 -0
  172. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  173. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  174. package/components/primitive-calendar/primitive-calendar.component.d.ts +3 -3
  175. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  176. package/components/primitive-checkbox/primitive-checkbox.component.d.ts +1 -3
  177. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  178. package/components/primitive-spin-button/primitive-spin-button.component.d.ts +1 -1
  179. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  180. package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -3
  181. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  182. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +2 -1
  183. package/components/primitive-year-picker/primitive-year-picker.component.d.ts +3 -3
  184. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
  185. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  186. package/components/scroll-controls/index.d.ts +1 -1
  187. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  188. package/components/scrollbar/index.d.ts +1 -1
  189. package/components/scrollbar/scrollbar.component.d.ts +2 -2
  190. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  191. package/components/svg/svg.component.d.ts +3 -3
  192. package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
  193. package/components/taiga-ui-core-components.metadata.json +1 -1
  194. package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
  195. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  196. package/components/tooltip/tooltip.component.d.ts +1 -1
  197. package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +1 -1
  198. package/constants/index.d.ts +1 -1
  199. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  200. package/constants/version.d.ts +1 -1
  201. package/directives/border/taiga-ui-core-directives-border.metadata.json +1 -1
  202. package/directives/color/index.d.ts +1 -1
  203. package/directives/color/taiga-ui-core-directives-color.metadata.json +1 -1
  204. package/directives/described-by/taiga-ui-core-directives-described-by.metadata.json +1 -1
  205. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  206. package/directives/hint/hint.directive.d.ts +1 -1
  207. package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
  208. package/directives/hint-controller/taiga-ui-core-directives-hint-controller.metadata.json +1 -1
  209. package/directives/index.d.ts +1 -1
  210. package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
  211. package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.metadata.json +1 -1
  212. package/directives/mode/taiga-ui-core-directives-mode.metadata.json +1 -1
  213. package/directives/pointer-hint/pointer-hint.directive.d.ts +1 -1
  214. package/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.metadata.json +1 -1
  215. package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.metadata.json +1 -1
  216. package/directives/table-mode/taiga-ui-core-directives-table-mode.metadata.json +1 -1
  217. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  218. package/directives/textfield-controller/index.d.ts +2 -2
  219. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  220. package/directives/textfield-controller/textfield-controller.provider.d.ts +1 -1
  221. package/enums/appearance.d.ts +1 -0
  222. package/enums/taiga-ui-core-enums.metadata.json +1 -1
  223. package/esm2015/abstract/abstract-dropdown.js +1 -1
  224. package/esm2015/components/button/button.component.js +1 -1
  225. package/esm2015/components/button/button.module.js +1 -1
  226. package/esm2015/components/data-list/data-list.component.js +17 -17
  227. package/esm2015/components/data-list/data-list.module.js +2 -2
  228. package/esm2015/components/data-list/index.js +2 -2
  229. package/esm2015/components/data-list/option/option.component.js +1 -1
  230. package/esm2015/components/dialog/dialog.component.js +1 -1
  231. package/esm2015/components/dialog/dialog.directive.js +14 -36
  232. package/esm2015/components/dialog/dialog.module.js +1 -1
  233. package/esm2015/components/dialog/dialog.service.js +1 -1
  234. package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
  235. package/esm2015/components/dropdown-box/dropdown-box.module.js +1 -1
  236. package/esm2015/components/error/error.component.js +1 -1
  237. package/esm2015/components/error/error.module.js +1 -1
  238. package/esm2015/components/expand/expand.component.js +5 -5
  239. package/esm2015/components/expand/expand.module.js +2 -2
  240. package/esm2015/components/group/group.component.js +1 -1
  241. package/esm2015/components/group/group.module.js +1 -1
  242. package/esm2015/components/hints-host/hint-box/hint-box.component.js +16 -12
  243. package/esm2015/components/hints-host/hint-box/hint-box.module.js +1 -1
  244. package/esm2015/components/hints-host/hints-host.module.js +1 -1
  245. package/esm2015/components/hints-host/index.js +3 -3
  246. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  247. package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  248. package/esm2015/components/index.js +2 -2
  249. package/esm2015/components/label/label.module.js +1 -1
  250. package/esm2015/components/link/link.component.js +5 -3
  251. package/esm2015/components/loader/loader.module.js +1 -1
  252. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  253. package/esm2015/components/primitive-calendar/primitive-calendar.module.js +1 -1
  254. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -13
  255. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +4 -4
  256. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +7 -10
  257. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +1 -1
  258. package/esm2015/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  259. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +9 -3
  260. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +4 -4
  261. package/esm2015/components/root/root.module.js +1 -1
  262. package/esm2015/components/scroll-controls/index.js +2 -2
  263. package/esm2015/components/scroll-controls/scroll-controls.module.js +2 -2
  264. package/esm2015/components/scrollbar/index.js +2 -2
  265. package/esm2015/components/scrollbar/scrollbar.component.js +3 -3
  266. package/esm2015/components/scrollbar/scrollbar.module.js +1 -1
  267. package/esm2015/components/svg/svg.component.js +2 -2
  268. package/esm2015/components/svg/svg.module.js +1 -1
  269. package/esm2015/components/theme-night/theme-night.module.js +1 -1
  270. package/esm2015/components/tooltip/tooltip.component.js +2 -2
  271. package/esm2015/components/wrapper/wrapper.module.js +1 -1
  272. package/esm2015/constants/index.js +2 -2
  273. package/esm2015/constants/version.js +2 -2
  274. package/esm2015/directives/border/border.module.js +1 -1
  275. package/esm2015/directives/color/color.module.js +1 -1
  276. package/esm2015/directives/color/index.js +2 -2
  277. package/esm2015/directives/described-by/described-by.module.js +1 -1
  278. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  279. package/esm2015/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  280. package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  281. package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  282. package/esm2015/directives/hint/hint.directive.js +2 -2
  283. package/esm2015/directives/hint/hint.module.js +1 -1
  284. package/esm2015/directives/hint-controller/hint-controller.directive.js +1 -1
  285. package/esm2015/directives/hint-controller/hint-controller.module.js +1 -1
  286. package/esm2015/directives/hint-controller/hint-controller.provider.js +1 -1
  287. package/esm2015/directives/hint-controller/hint-controller.token.js +1 -1
  288. package/esm2015/directives/index.js +2 -2
  289. package/esm2015/directives/manual-hint/manual-hint.module.js +1 -1
  290. package/esm2015/directives/mask-accessor/mask-accessor.module.js +1 -1
  291. package/esm2015/directives/mode/mode.module.js +1 -1
  292. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +2 -2
  293. package/esm2015/directives/pointer-hint/pointer-hint.module.js +1 -1
  294. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  295. package/esm2015/directives/table-mode/table-mode.module.js +1 -1
  296. package/esm2015/directives/textfield-controller/index.js +3 -3
  297. package/esm2015/directives/textfield-controller/textfield-controller.module.js +1 -1
  298. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  299. package/esm2015/directives/textfield-controller/textfield.controller.js +1 -1
  300. package/esm2015/enums/appearance.js +2 -1
  301. package/esm2015/interfaces/dialog-context.js +1 -1
  302. package/esm2015/interfaces/index.js +1 -1
  303. package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  304. package/esm2015/mask/index.js +1 -1
  305. package/esm2015/modules/notifications/index.js +3 -3
  306. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +1 -1
  307. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +1 -1
  308. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  309. package/esm2015/modules/notifications/notifications.module.js +1 -1
  310. package/esm2015/modules/notifications/notifications.service.js +1 -1
  311. package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  312. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  313. package/esm2015/pipes/calendar-sheet/index.js +2 -2
  314. package/esm2015/pipes/format-number/format-number.pipe.js +1 -1
  315. package/esm2015/pipes/index.js +2 -2
  316. package/esm2015/pipes/month/month.module.js +1 -1
  317. package/esm2015/pipes/pluralize/pluralize.module.js +1 -1
  318. package/esm2015/providers/index.js +2 -2
  319. package/esm2015/services/hint.service.js +1 -1
  320. package/esm2015/services/svg.service.js +2 -2
  321. package/esm2015/tokens/animation-options.js +1 -1
  322. package/esm2015/tokens/index.js +5 -5
  323. package/esm2015/tokens/ordered-short-week-days.js +1 -1
  324. package/esm2015/types/marker-handler.js +1 -1
  325. package/esm5/abstract/abstract-dropdown.js +1 -1
  326. package/esm5/components/button/button.component.js +1 -1
  327. package/esm5/components/button/button.module.js +1 -1
  328. package/esm5/components/data-list/data-list.component.js +21 -21
  329. package/esm5/components/data-list/data-list.module.js +2 -2
  330. package/esm5/components/data-list/index.js +2 -2
  331. package/esm5/components/data-list/option/option.component.js +1 -1
  332. package/esm5/components/dialog/dialog.component.js +1 -1
  333. package/esm5/components/dialog/dialog.directive.js +18 -43
  334. package/esm5/components/dialog/dialog.module.js +1 -1
  335. package/esm5/components/dialog/dialog.service.js +1 -1
  336. package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
  337. package/esm5/components/dropdown-box/dropdown-box.module.js +1 -1
  338. package/esm5/components/error/error.component.js +1 -1
  339. package/esm5/components/error/error.module.js +1 -1
  340. package/esm5/components/expand/expand.component.js +5 -5
  341. package/esm5/components/expand/expand.module.js +2 -2
  342. package/esm5/components/group/group.component.js +1 -1
  343. package/esm5/components/group/group.module.js +1 -1
  344. package/esm5/components/hints-host/hint-box/hint-box.component.js +20 -12
  345. package/esm5/components/hints-host/hint-box/hint-box.module.js +1 -1
  346. package/esm5/components/hints-host/hints-host.module.js +1 -1
  347. package/esm5/components/hints-host/index.js +3 -3
  348. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  349. package/esm5/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  350. package/esm5/components/index.js +2 -2
  351. package/esm5/components/label/label.module.js +1 -1
  352. package/esm5/components/link/link.component.js +5 -3
  353. package/esm5/components/loader/loader.module.js +1 -1
  354. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  355. package/esm5/components/primitive-calendar/primitive-calendar.module.js +1 -1
  356. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -17
  357. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +4 -4
  358. package/esm5/components/primitive-textfield/primitive-textfield.component.js +7 -14
  359. package/esm5/components/primitive-textfield/primitive-textfield.module.js +1 -1
  360. package/esm5/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  361. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +13 -3
  362. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +4 -4
  363. package/esm5/components/root/root.module.js +1 -1
  364. package/esm5/components/scroll-controls/index.js +2 -2
  365. package/esm5/components/scroll-controls/scroll-controls.module.js +2 -2
  366. package/esm5/components/scrollbar/index.js +2 -2
  367. package/esm5/components/scrollbar/scrollbar.component.js +3 -3
  368. package/esm5/components/scrollbar/scrollbar.module.js +1 -1
  369. package/esm5/components/svg/svg.component.js +2 -2
  370. package/esm5/components/svg/svg.module.js +1 -1
  371. package/esm5/components/theme-night/theme-night.module.js +1 -1
  372. package/esm5/components/tooltip/tooltip.component.js +2 -2
  373. package/esm5/components/wrapper/wrapper.module.js +1 -1
  374. package/esm5/constants/index.js +2 -2
  375. package/esm5/constants/version.js +2 -2
  376. package/esm5/directives/border/border.module.js +1 -1
  377. package/esm5/directives/color/color.module.js +1 -1
  378. package/esm5/directives/color/index.js +2 -2
  379. package/esm5/directives/described-by/described-by.module.js +1 -1
  380. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  381. package/esm5/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  382. package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  383. package/esm5/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  384. package/esm5/directives/hint/hint.directive.js +2 -2
  385. package/esm5/directives/hint/hint.module.js +1 -1
  386. package/esm5/directives/hint-controller/hint-controller.directive.js +1 -1
  387. package/esm5/directives/hint-controller/hint-controller.module.js +1 -1
  388. package/esm5/directives/hint-controller/hint-controller.provider.js +1 -1
  389. package/esm5/directives/hint-controller/hint-controller.token.js +1 -1
  390. package/esm5/directives/index.js +2 -2
  391. package/esm5/directives/manual-hint/manual-hint.module.js +1 -1
  392. package/esm5/directives/mask-accessor/mask-accessor.module.js +1 -1
  393. package/esm5/directives/mode/mode.module.js +1 -1
  394. package/esm5/directives/pointer-hint/pointer-hint.directive.js +2 -2
  395. package/esm5/directives/pointer-hint/pointer-hint.module.js +1 -1
  396. package/esm5/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  397. package/esm5/directives/table-mode/table-mode.module.js +1 -1
  398. package/esm5/directives/textfield-controller/index.js +3 -3
  399. package/esm5/directives/textfield-controller/textfield-controller.module.js +1 -1
  400. package/esm5/directives/textfield-controller/textfield-controller.provider.js +2 -2
  401. package/esm5/directives/textfield-controller/textfield.controller.js +1 -1
  402. package/esm5/enums/appearance.js +2 -1
  403. package/esm5/interfaces/dialog-context.js +1 -1
  404. package/esm5/interfaces/index.js +1 -1
  405. package/esm5/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  406. package/esm5/mask/index.js +1 -1
  407. package/esm5/modules/notifications/index.js +3 -3
  408. package/esm5/modules/notifications/notification-alert/Notification-alert.js +1 -1
  409. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +1 -1
  410. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  411. package/esm5/modules/notifications/notifications.module.js +1 -1
  412. package/esm5/modules/notifications/notifications.service.js +1 -1
  413. package/esm5/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  414. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  415. package/esm5/pipes/calendar-sheet/index.js +2 -2
  416. package/esm5/pipes/format-number/format-number.pipe.js +1 -1
  417. package/esm5/pipes/index.js +2 -2
  418. package/esm5/pipes/month/month.module.js +1 -1
  419. package/esm5/pipes/pluralize/pluralize.module.js +1 -1
  420. package/esm5/providers/index.js +2 -2
  421. package/esm5/services/hint.service.js +1 -1
  422. package/esm5/services/svg.service.js +2 -2
  423. package/esm5/tokens/animation-options.js +1 -1
  424. package/esm5/tokens/index.js +5 -5
  425. package/esm5/tokens/ordered-short-week-days.js +1 -1
  426. package/esm5/types/marker-handler.js +1 -1
  427. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  428. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  429. package/fesm2015/taiga-ui-core-components-data-list.js +17 -17
  430. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  431. package/fesm2015/taiga-ui-core-components-dialog.js +14 -35
  432. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  433. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  434. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  435. package/fesm2015/taiga-ui-core-components-expand.js +5 -5
  436. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  437. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  438. package/fesm2015/taiga-ui-core-components-hints-host.js +20 -17
  439. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  440. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  441. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  442. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  443. package/fesm2015/taiga-ui-core-components-link.js +4 -2
  444. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  445. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  446. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +3 -3
  447. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  448. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -12
  449. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  450. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +4 -4
  451. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  452. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +14 -11
  453. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  454. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +3 -3
  455. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  456. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  457. package/fesm2015/taiga-ui-core-components-scroll-controls.js +56 -56
  458. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  459. package/fesm2015/taiga-ui-core-components-scrollbar.js +19 -19
  460. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  461. package/fesm2015/taiga-ui-core-components-svg.js +1 -1
  462. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  463. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  464. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  465. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  466. package/fesm2015/taiga-ui-core-components-wrapper.js.map +1 -1
  467. package/fesm2015/taiga-ui-core-components.js +1 -1
  468. package/fesm2015/taiga-ui-core-constants.js +3 -3
  469. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  470. package/fesm2015/taiga-ui-core-directives-border.js.map +1 -1
  471. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  472. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  473. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  474. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  475. package/fesm2015/taiga-ui-core-directives-hint.js +1 -1
  476. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  477. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  478. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  479. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  480. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +1 -1
  481. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  482. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  483. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  484. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  485. package/fesm2015/taiga-ui-core-directives.js +1 -1
  486. package/fesm2015/taiga-ui-core-enums.js +1 -0
  487. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  488. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  489. package/fesm2015/taiga-ui-core-modules-notifications.js +22 -22
  490. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  491. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  492. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  493. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  494. package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +1 -1
  495. package/fesm2015/taiga-ui-core-pipes.js +1 -1
  496. package/fesm2015/taiga-ui-core-providers.js +7 -7
  497. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  498. package/fesm2015/taiga-ui-core-services.js +1 -1
  499. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  500. package/fesm2015/taiga-ui-core-tokens.js +25 -25
  501. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  502. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  503. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  504. package/fesm5/taiga-ui-core-components-data-list.js +21 -21
  505. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  506. package/fesm5/taiga-ui-core-components-dialog.js +18 -42
  507. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  508. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  509. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  510. package/fesm5/taiga-ui-core-components-expand.js +5 -5
  511. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  512. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  513. package/fesm5/taiga-ui-core-components-hints-host.js +24 -17
  514. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  515. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +10 -10
  516. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  517. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  518. package/fesm5/taiga-ui-core-components-link.js +4 -2
  519. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  520. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  521. package/fesm5/taiga-ui-core-components-primitive-calendar.js +3 -3
  522. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  523. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +3 -16
  524. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  525. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +4 -4
  526. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  527. package/fesm5/taiga-ui-core-components-primitive-textfield.js +18 -15
  528. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  529. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +3 -3
  530. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  531. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  532. package/fesm5/taiga-ui-core-components-scroll-controls.js +63 -63
  533. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  534. package/fesm5/taiga-ui-core-components-scrollbar.js +22 -22
  535. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  536. package/fesm5/taiga-ui-core-components-svg.js +1 -1
  537. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  538. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  539. package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
  540. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  541. package/fesm5/taiga-ui-core-components-wrapper.js.map +1 -1
  542. package/fesm5/taiga-ui-core-components.js +1 -1
  543. package/fesm5/taiga-ui-core-constants.js +3 -3
  544. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  545. package/fesm5/taiga-ui-core-directives-border.js.map +1 -1
  546. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  547. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  548. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  549. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  550. package/fesm5/taiga-ui-core-directives-hint.js +1 -1
  551. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  552. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  553. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  554. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  555. package/fesm5/taiga-ui-core-directives-pointer-hint.js +1 -1
  556. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  557. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  558. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  559. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  560. package/fesm5/taiga-ui-core-directives.js +1 -1
  561. package/fesm5/taiga-ui-core-enums.js +1 -0
  562. package/fesm5/taiga-ui-core-enums.js.map +1 -1
  563. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  564. package/fesm5/taiga-ui-core-modules-notifications.js +23 -23
  565. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  566. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  567. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  568. package/fesm5/taiga-ui-core-pipes-month.js.map +1 -1
  569. package/fesm5/taiga-ui-core-pipes-pluralize.js.map +1 -1
  570. package/fesm5/taiga-ui-core-pipes.js +1 -1
  571. package/fesm5/taiga-ui-core-providers.js +7 -7
  572. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  573. package/fesm5/taiga-ui-core-services.js +1 -1
  574. package/fesm5/taiga-ui-core-services.js.map +1 -1
  575. package/fesm5/taiga-ui-core-tokens.js +25 -25
  576. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  577. package/interfaces/index.d.ts +2 -2
  578. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  579. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  580. package/mask/index.d.ts +1 -1
  581. package/mask/taiga-ui-core-mask.metadata.json +1 -1
  582. package/modules/notifications/index.d.ts +2 -2
  583. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  584. package/package.json +5 -3
  585. package/pipes/calendar-sheet/index.d.ts +1 -1
  586. package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.metadata.json +1 -1
  587. package/pipes/index.d.ts +1 -1
  588. package/pipes/month/taiga-ui-core-pipes-month.metadata.json +1 -1
  589. package/pipes/pluralize/taiga-ui-core-pipes-pluralize.metadata.json +1 -1
  590. package/pipes/taiga-ui-core-pipes.metadata.json +1 -1
  591. package/providers/index.d.ts +1 -1
  592. package/providers/taiga-ui-core-providers.metadata.json +1 -1
  593. package/services/hint.service.d.ts +3 -3
  594. package/services/svg.service.d.ts +1 -1
  595. package/services/taiga-ui-core-services.metadata.json +1 -1
  596. package/styles/theme/variables.less +1 -1
  597. package/styles/theme/wrapper/accent.less +31 -0
  598. package/styles/theme/wrapper/icon.less +1 -0
  599. package/styles/theme/wrapper/outline.less +1 -0
  600. package/styles/theme/wrapper/primary.less +1 -0
  601. package/styles/theme/wrapper/secondary.less +1 -0
  602. package/styles/theme/wrapper/whiteblock.less +2 -0
  603. package/styles/theme/wrapper.less +1 -0
  604. package/tokens/index.d.ts +4 -4
  605. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-modules-notifications.js","sources":["ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.component.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.module.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/Notification-alert.ts","ng://@taiga-ui/core/modules/notifications/notifications.service.ts","ng://@taiga-ui/core/modules/notifications/notifications-host/notifications-host.component.ts","ng://@taiga-ui/core/modules/notifications/notifications.module.ts","ng://@taiga-ui/core/modules/notifications/taiga-ui-core-modules-notifications.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n Input,\n OnInit,\n} from '@angular/core';\nimport {isNumber, TuiDestroyService, tuiPure} from '@taiga-ui/cdk';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\nexport const DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;\n\n@Component({\n selector: 'tui-notification-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\n providers: [TuiDestroyService],\n})\nexport class TuiNotificationAlertComponent<O, I> implements OnInit {\n @Input()\n item!: NotificationAlert<O, I>;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n @Inject(TUI_NOTIFICATION_OPTIONS)\n public readonly options: NotificationTokenOptions,\n ) {}\n\n ngOnInit() {\n this.initAutoClose();\n }\n\n get context(): TuiNotificationContentContext<O, I> {\n return this.calculateContext(this.item);\n }\n\n closeNotification() {\n this.item.observer.complete();\n }\n\n @tuiPure\n private calculateContext({\n status,\n data,\n label,\n observer,\n }: NotificationAlert<O, I>): TuiNotificationContentContext<O, I> {\n return {\n $implicit: status,\n data: data,\n label: label,\n closeHook: () => {\n observer.complete();\n },\n emitHook: (data: O) => {\n observer.next(data);\n },\n emitAndCloseHook: (data: O) => {\n observer.next(data);\n observer.complete();\n },\n };\n }\n\n private initAutoClose() {\n if (!this.item.autoClose) {\n return;\n }\n\n timer(\n isNumber(this.item.autoClose)\n ? this.item.autoClose\n : DEFAULT_ALERT_AUTOCLOSE_TIMEOUT,\n )\n .pipe(\n takeUntil(fromEvent(this.elementRef.nativeElement, 'mouseenter')),\n repeatWhen(() => fromEvent(this.elementRef.nativeElement, 'mouseleave')),\n takeUntil(this.destroy$),\n )\n .subscribe(() => this.closeNotification());\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiNotificationModule} from '@taiga-ui/core/components/notification';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiNotificationAlertComponent} from './notification-alert.component';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiNotificationModule],\n declarations: [TuiNotificationAlertComponent],\n exports: [TuiNotificationAlertComponent],\n})\nexport class TuiNotificationAlertModule {}\n","import {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observer} from 'rxjs';\nimport {TuiNotificationContentContext} from '../notification-content-context';\n\nexport class NotificationAlert<O, I> {\n readonly status = this.options.status;\n\n readonly hasIcon = this.options.hasIcon;\n\n readonly autoClose: boolean | number;\n\n readonly hasCloseButton = this.options.hasCloseButton;\n\n readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>> =\n this.options.label;\n\n readonly data!: I;\n\n constructor(\n readonly observer: Observer<O>,\n readonly content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n private readonly options: Required<\n TuiNotificationOptions | TuiNotificationOptionsWithData<I>\n >,\n ) {\n this.autoClose =\n typeof this.options.autoClose === 'function'\n ? this.options.autoClose(this.options.status)\n : this.options.autoClose;\n\n if (options && this.withData(options)) {\n this.data = options.data;\n }\n }\n\n private withData(\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I>,\n ): options is TuiNotificationOptionsWithData<I> {\n return 'data' in options;\n }\n}\n","import {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\nimport {NotificationAlert} from './notification-alert/Notification-alert';\nimport {TuiNotificationContentContext} from './notification-content-context';\n\nconst NO_HOST =\n 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNotificationsService {\n /** @internal */\n readonly items$ = new BehaviorSubject<ReadonlyArray<NotificationAlert<any, any>>>([]);\n\n constructor(\n @Inject(TUI_NOTIFICATION_OPTIONS)\n public readonly options: NotificationTokenOptions,\n ) {}\n\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n ): Observable<O>;\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n options: TuiNotificationOptions,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptionsWithData<I>,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I> = {},\n ): Observable<O> {\n return new Observable((observer: Observer<O>) => {\n tuiAssert.assert(!!this.items$.observers.length, NO_HOST);\n\n const notification = new NotificationAlert(observer, content, {\n ...this.options,\n ...options,\n });\n\n this.items$.next([...this.items$.value, notification]);\n\n return () => {\n this.items$.next(this.items$.value.filter(item => item !== notification));\n };\n });\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk';\nimport {\n tuiFadeInList,\n tuiHeightCollapseList,\n tuiSlideInRightList,\n} from '@taiga-ui/core/animations';\nimport {TuiAnimationOptions} from '@taiga-ui/core/interfaces';\nimport {TUI_ANIMATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\n animations: [tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList],\n})\nexport class TuiNotificationsHostComponent {\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiNotificationsService) readonly service: TuiNotificationsService,\n ) {}\n\n @tuiPure\n getAnimation(value: number): TuiAnimationOptions {\n return {\n value: String(value),\n ...this.options,\n };\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\nimport {TuiNotificationAlertModule} from './notification-alert/notification-alert.module';\nimport {TuiNotificationsHostComponent} from './notifications-host/notifications-host.component';\n\n// TODO: remove in ivy compilation\nexport const NOTIFICATIONS_HOST = TuiNotificationsHostComponent;\n\n@NgModule({\n imports: [CommonModule, TuiNotificationAlertModule, TuiLetModule],\n declarations: [TuiNotificationsHostComponent],\n exports: [TuiNotificationsHostComponent],\n entryComponents: [TuiNotificationsHostComponent],\n providers: [\n {\n provide: TuiNotificationsHostComponent,\n useValue: NOTIFICATIONS_HOST,\n },\n ],\n})\nexport class TuiNotificationsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAea,+BAA+B,GAAG,KAAK;;IAahD,uCACyC,UAAmC,EAC5B,QAA2B,EA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B;oBACtC,QAAQ,EAAE,kBAAkB;iBAC/B;aACJ;SACJ,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACrBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-modules-notifications.js","sources":["ng://@taiga-ui/core/modules/notifications/notification-alert/Notification-alert.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.component.ts","ng://@taiga-ui/core/modules/notifications/notification-alert/notification-alert.module.ts","ng://@taiga-ui/core/modules/notifications/notifications.service.ts","ng://@taiga-ui/core/modules/notifications/notifications-host/notifications-host.component.ts","ng://@taiga-ui/core/modules/notifications/notifications.module.ts","ng://@taiga-ui/core/modules/notifications/taiga-ui-core-modules-notifications.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observer} from 'rxjs';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\n\nexport class NotificationAlert<O, I> {\n readonly status = this.options.status;\n\n readonly hasIcon = this.options.hasIcon;\n\n readonly autoClose: boolean | number;\n\n readonly hasCloseButton = this.options.hasCloseButton;\n\n readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>> =\n this.options.label;\n\n readonly data!: I;\n\n constructor(\n readonly observer: Observer<O>,\n readonly content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n private readonly options: Required<\n TuiNotificationOptions | TuiNotificationOptionsWithData<I>\n >,\n ) {\n this.autoClose =\n typeof this.options.autoClose === 'function'\n ? this.options.autoClose(this.options.status)\n : this.options.autoClose;\n\n if (options && this.withData(options)) {\n this.data = options.data;\n }\n }\n\n private withData(\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I>,\n ): options is TuiNotificationOptionsWithData<I> {\n return 'data' in options;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n Input,\n OnInit,\n} from '@angular/core';\nimport {isNumber, TuiDestroyService, tuiPure} from '@taiga-ui/cdk';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {fromEvent, timer} from 'rxjs';\nimport {repeatWhen, takeUntil} from 'rxjs/operators';\n\nimport {TuiNotificationContentContext} from '../notification-content-context';\nimport {NotificationAlert} from './Notification-alert';\n\nexport const DEFAULT_ALERT_AUTOCLOSE_TIMEOUT = 3000;\n\n@Component({\n selector: 'tui-notification-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notification-alert.template.html',\n styleUrls: ['./notification-alert.style.less'],\n providers: [TuiDestroyService],\n})\nexport class TuiNotificationAlertComponent<O, I> implements OnInit {\n @Input()\n item!: NotificationAlert<O, I>;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n @Inject(TUI_NOTIFICATION_OPTIONS)\n public readonly options: NotificationTokenOptions,\n ) {}\n\n ngOnInit() {\n this.initAutoClose();\n }\n\n get context(): TuiNotificationContentContext<O, I> {\n return this.calculateContext(this.item);\n }\n\n closeNotification() {\n this.item.observer.complete();\n }\n\n @tuiPure\n private calculateContext({\n status,\n data,\n label,\n observer,\n }: NotificationAlert<O, I>): TuiNotificationContentContext<O, I> {\n return {\n $implicit: status,\n data: data,\n label: label,\n closeHook: () => {\n observer.complete();\n },\n emitHook: (data: O) => {\n observer.next(data);\n },\n emitAndCloseHook: (data: O) => {\n observer.next(data);\n observer.complete();\n },\n };\n }\n\n private initAutoClose() {\n if (!this.item.autoClose) {\n return;\n }\n\n timer(\n isNumber(this.item.autoClose)\n ? this.item.autoClose\n : DEFAULT_ALERT_AUTOCLOSE_TIMEOUT,\n )\n .pipe(\n takeUntil(fromEvent(this.elementRef.nativeElement, 'mouseenter')),\n repeatWhen(() => fromEvent(this.elementRef.nativeElement, 'mouseleave')),\n takeUntil(this.destroy$),\n )\n .subscribe(() => this.closeNotification());\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiNotificationModule} from '@taiga-ui/core/components/notification';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiNotificationAlertComponent} from './notification-alert.component';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiNotificationModule],\n declarations: [TuiNotificationAlertComponent],\n exports: [TuiNotificationAlertComponent],\n})\nexport class TuiNotificationAlertModule {}\n","import {Inject, Injectable} from '@angular/core';\nimport {tuiAssert} from '@taiga-ui/cdk';\nimport {\n TuiNotificationOptions,\n TuiNotificationOptionsWithData,\n} from '@taiga-ui/core/interfaces';\nimport {NotificationTokenOptions, TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, Observer} from 'rxjs';\n\nimport {NotificationAlert} from './notification-alert/Notification-alert';\nimport {TuiNotificationContentContext} from './notification-content-context';\n\nconst NO_HOST =\n 'Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNotificationsService {\n /** @internal */\n readonly items$ = new BehaviorSubject<ReadonlyArray<NotificationAlert<any, any>>>([]);\n\n constructor(\n @Inject(TUI_NOTIFICATION_OPTIONS)\n public readonly options: NotificationTokenOptions,\n ) {}\n\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n ): Observable<O>;\n show<O = void>(\n content: PolymorpheusContent<TuiNotificationContentContext<O>>,\n options: TuiNotificationOptions,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptionsWithData<I>,\n ): Observable<O>;\n show<O, I>(\n content: PolymorpheusContent<TuiNotificationContentContext<O, I>>,\n options: TuiNotificationOptions | TuiNotificationOptionsWithData<I> = {},\n ): Observable<O> {\n return new Observable((observer: Observer<O>) => {\n tuiAssert.assert(!!this.items$.observers.length, NO_HOST);\n\n const notification = new NotificationAlert(observer, content, {\n ...this.options,\n ...options,\n });\n\n this.items$.next([...this.items$.value, notification]);\n\n return () => {\n this.items$.next(this.items$.value.filter(item => item !== notification));\n };\n });\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk';\nimport {\n tuiFadeInList,\n tuiHeightCollapseList,\n tuiSlideInRightList,\n} from '@taiga-ui/core/animations';\nimport {TuiAnimationOptions} from '@taiga-ui/core/interfaces';\nimport {TUI_ANIMATION_OPTIONS} from '@taiga-ui/core/tokens';\n\nimport {TuiNotificationsService} from '../notifications.service';\n\n@Component({\n selector: 'tui-notifications-host',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './notifications-host.template.html',\n styleUrls: ['./notifications-host.style.less'],\n animations: [tuiFadeInList, tuiSlideInRightList, tuiHeightCollapseList],\n})\nexport class TuiNotificationsHostComponent {\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiNotificationsService) readonly service: TuiNotificationsService,\n ) {}\n\n @tuiPure\n getAnimation(value: number): TuiAnimationOptions {\n return {\n value: String(value),\n ...this.options,\n };\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiNotificationAlertModule} from './notification-alert/notification-alert.module';\nimport {TuiNotificationsHostComponent} from './notifications-host/notifications-host.component';\n\n// TODO: remove in ivy compilation\nexport const NOTIFICATIONS_HOST = TuiNotificationsHostComponent;\n\n@NgModule({\n imports: [CommonModule, TuiNotificationAlertModule, TuiLetModule],\n declarations: [TuiNotificationsHostComponent],\n exports: [TuiNotificationsHostComponent],\n entryComponents: [TuiNotificationsHostComponent],\n providers: [\n {\n provide: TuiNotificationsHostComponent,\n useValue: NOTIFICATIONS_HOST,\n },\n ],\n})\nexport class TuiNotificationsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;IAyBI,2BACa,QAAqB,EACrB,OAAiE,EACzD,OAEhB;QAJQ,aAAQ,GAAR,QAAQ,CAAa;QACrB,YAAO,GAAP,OAAO,CAA0D;QACzD,YAAO,GAAP,OAAO,CAEvB;QAlBI,WAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAE7B,YAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAI/B,mBAAc,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAE7C,UAAK,GACV,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;QAWnB,IAAI,CAAC,SAAS;YACV,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,KAAK,UAAU;kBACtC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;kBAC3C,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAEjC,IAAI,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YACnC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;SAC5B;KACJ;IAEO,oCAAQ,GAAhB,UACI,OAAmE;QAEnE,OAAO,MAAM,IAAI,OAAO,CAAC;KAC5B;IACL,wBAAC;AAAD,CAAC;;IC/BY,+BAA+B,GAAG,KAAK;;IAahD,uCACyC,UAAmC,EAC5B,QAA2B,EAEvD,OAAiC;QAHZ,eAAU,GAAV,UAAU,CAAyB;QAC5B,aAAQ,GAAR,QAAQ,CAAmB;QAEvD,YAAO,GAAP,OAAO,CAA0B;KACjD;IAEJ,gDAAQ,GAAR;QACI,IAAI,CAAC,aAAa,EAAE,CAAC;KACxB;IAED,sBA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AQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,EAAE,YAAY,CAAC;YACjE,YAAY,EAAE,CAAC,6BAA6B,CAAC;YAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;YACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;YAChD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,6BAA6B;oBACtC,QAAQ,EAAE,kBAAkB;iBAC/B;aACJ;SACJ,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACtBA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-calendar-sheet.js","sources":["ng://@taiga-ui/core/pipes/calendar-sheet/utils.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.pipe.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.module.ts","ng://@taiga-ui/core/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.ts"],"sourcesContent":["import {\n DAYS_IN_WEEK,\n inRange,\n tuiAssert,\n TuiDay,\n TuiDayOfWeek,\n TuiMonth,\n} from '@taiga-ui/cdk';\n\n// TODO: Remove export in ivy compiation\n/**\n * Computes day of week offset of the beginning of the month\n */\nexport const getMonthStartDaysOffset = (\n month: TuiMonth,\n firstDayOfWeek: TuiDayOfWeek,\n): number => {\n const startMonthOffsetFromSunday = new Date(month.year, month.month, 1).getDay();\n\n return startMonthOffsetFromSunday >= firstDayOfWeek\n ? startMonthOffsetFromSunday - firstDayOfWeek\n : DAYS_IN_WEEK - (firstDayOfWeek - startMonthOffsetFromSunday);\n};\n\n/*\nTODO: delete in v3.0:\n * TuiDay.getDayFromMonthRowCol\n * TuiMonth.monthStartDaysOffset\n * TuiMonth.weeksRowsCount\n * TuiYear.yearStartDaysOffset\n * TuiYear.getYearStartDaysOffset\n */\n/**\n * Calculated day on a calendar grid\n * @return resulting day on these coordinates (could exceed passed month)\n */\nexport const getDayFromMonthRowCol = ({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek,\n}: {\n month: TuiMonth;\n /**\n * row in a calendar\n */\n rowIndex: number;\n /**\n * column in a calendar\n */\n colIndex: number;\n /**\n * first day of the week index (Sunday - 0, Saturday - 6)\n */\n firstDayOfWeek: TuiDayOfWeek;\n}): TuiDay => {\n tuiAssert.assert(Number.isInteger(rowIndex));\n tuiAssert.assert(inRange(rowIndex, 0, 6));\n tuiAssert.assert(Number.isInteger(colIndex));\n tuiAssert.assert(inRange(colIndex, 0, DAYS_IN_WEEK));\n\n let day =\n rowIndex * DAYS_IN_WEEK +\n colIndex -\n getMonthStartDaysOffset(month, firstDayOfWeek) +\n 1;\n\n if (day > month.daysCount) {\n day = day - month.daysCount;\n month = month.append({month: 1});\n }\n\n if (day <= 0) {\n month = month.append({month: -1});\n day = month.daysCount + day;\n }\n\n return new TuiDay(month.year, month.month, day);\n};\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {DAYS_IN_WEEK, TuiDay, TuiDayOfWeek, TuiMonth} from '@taiga-ui/cdk';\nimport {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens';\nimport {getDayFromMonthRowCol} from './utils';\n\nconst CALENDAR_ROWS_COUNT = 6;\n\n@Pipe({\n name: 'tuiCalendarSheet',\n})\nexport class TuiCalendarSheetPipe implements PipeTransform {\n private currentMonth: TuiMonth | null = null;\n private currentSheet: ReadonlyArray<ReadonlyArray<TuiDay>> = [];\n\n constructor(\n @Inject(TUI_FIRST_DAY_OF_WEEK)\n private readonly firstDayOfWeek: TuiDayOfWeek,\n ) {}\n\n transform(\n month: TuiMonth,\n showAdjacentDays: boolean = false,\n ): ReadonlyArray<ReadonlyArray<TuiDay>> {\n if (this.currentMonth && this.currentMonth.monthSame(month)) {\n return this.currentSheet;\n }\n\n const sheet: Array<readonly TuiDay[]> = [];\n\n for (let rowIndex = 0; rowIndex < CALENDAR_ROWS_COUNT; rowIndex++) {\n const row: TuiDay[] = [];\n\n for (let colIndex = 0; colIndex < DAYS_IN_WEEK; colIndex++) {\n const day = getDayFromMonthRowCol({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek: this.firstDayOfWeek,\n });\n\n const isPrevMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year < relativeToMonth.year || day.month < relativeToMonth.month;\n\n const isNextMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year > relativeToMonth.year || day.month > relativeToMonth.month;\n\n if (isPrevMonthDay(day) && !showAdjacentDays) {\n continue;\n }\n\n if (isNextMonthDay(day) && !showAdjacentDays) {\n break;\n }\n\n row.push(day);\n }\n\n sheet.push(row);\n }\n\n this.currentSheet = sheet.filter(row => row.length);\n this.currentMonth = month;\n\n return this.currentSheet;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiCalendarSheetPipe} from './calendar-sheet.pipe';\n\n@NgModule({\n declarations: [TuiCalendarSheetPipe],\n exports: [TuiCalendarSheetPipe],\n})\nexport class TuiCalendarSheetPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;AACA;;;AAGO,IAAM,uBAAuB,GAAG,UACnC,KAAe,EACf,cAA4B;IAE5B,IAAM,0BAA0B,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAEjF,OAAO,0BAA0B,IAAI,cAAc;UAC7C,0BAA0B,GAAG,cAAc;UAC3C,YAAY,IAAI,cAAc,GAAG,0BAA0B,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF;;;;;;;;AAQA;;;;AAIO,IAAM,qBAAqB,GAAG,UAAC,EAmBrC;QAlBG,gBAAK,EACL,sBAAQ,EACR,sBAAQ,EACR,kCAAc;IAgBd,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,O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AAI,CAAC,YAAY,CAAC;KAC5B;;gDAjDI,MAAM,SAAC,qBAAqB;;IALxB,oBAAoB;QAHhC,IAAI,CAAC;YACF,IAAI,EAAE,kBAAkB;SAC3B,CAAC;QAMO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OALzB,oBAAoB,CAuDhC;IAAD,2BAAC;CAvDD;;;ICHA;KAA0C;IAA7B,0BAA0B;QAJtC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,0BAA0B,CAAG;IAAD,iCAAC;CAA1C;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-calendar-sheet.js","sources":["ng://@taiga-ui/core/pipes/calendar-sheet/utils.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.pipe.ts","ng://@taiga-ui/core/pipes/calendar-sheet/calendar-sheet.module.ts","ng://@taiga-ui/core/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.ts"],"sourcesContent":["import {\n DAYS_IN_WEEK,\n inRange,\n tuiAssert,\n TuiDay,\n TuiDayOfWeek,\n TuiMonth,\n} from '@taiga-ui/cdk';\n\n// TODO: Remove export in ivy compiation\n/**\n * Computes day of week offset of the beginning of the month\n */\nexport const getMonthStartDaysOffset = (\n month: TuiMonth,\n firstDayOfWeek: TuiDayOfWeek,\n): number => {\n const startMonthOffsetFromSunday = new Date(month.year, month.month, 1).getDay();\n\n return startMonthOffsetFromSunday >= firstDayOfWeek\n ? startMonthOffsetFromSunday - firstDayOfWeek\n : DAYS_IN_WEEK - (firstDayOfWeek - startMonthOffsetFromSunday);\n};\n\n/*\nTODO: delete in v3.0:\n * TuiDay.getDayFromMonthRowCol\n * TuiMonth.monthStartDaysOffset\n * TuiMonth.weeksRowsCount\n * TuiYear.yearStartDaysOffset\n * TuiYear.getYearStartDaysOffset\n */\n/**\n * Calculated day on a calendar grid\n * @return resulting day on these coordinates (could exceed passed month)\n */\nexport const getDayFromMonthRowCol = ({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek,\n}: {\n month: TuiMonth;\n /**\n * row in a calendar\n */\n rowIndex: number;\n /**\n * column in a calendar\n */\n colIndex: number;\n /**\n * first day of the week index (Sunday - 0, Saturday - 6)\n */\n firstDayOfWeek: TuiDayOfWeek;\n}): TuiDay => {\n tuiAssert.assert(Number.isInteger(rowIndex));\n tuiAssert.assert(inRange(rowIndex, 0, 6));\n tuiAssert.assert(Number.isInteger(colIndex));\n tuiAssert.assert(inRange(colIndex, 0, DAYS_IN_WEEK));\n\n let day =\n rowIndex * DAYS_IN_WEEK +\n colIndex -\n getMonthStartDaysOffset(month, firstDayOfWeek) +\n 1;\n\n if (day > month.daysCount) {\n day = day - month.daysCount;\n month = month.append({month: 1});\n }\n\n if (day <= 0) {\n month = month.append({month: -1});\n day = month.daysCount + day;\n }\n\n return new TuiDay(month.year, month.month, day);\n};\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {DAYS_IN_WEEK, TuiDay, TuiDayOfWeek, TuiMonth} from '@taiga-ui/cdk';\nimport {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens';\n\nimport {getDayFromMonthRowCol} from './utils';\n\nconst CALENDAR_ROWS_COUNT = 6;\n\n@Pipe({\n name: 'tuiCalendarSheet',\n})\nexport class TuiCalendarSheetPipe implements PipeTransform {\n private currentMonth: TuiMonth | null = null;\n private currentSheet: ReadonlyArray<ReadonlyArray<TuiDay>> = [];\n\n constructor(\n @Inject(TUI_FIRST_DAY_OF_WEEK)\n private readonly firstDayOfWeek: TuiDayOfWeek,\n ) {}\n\n transform(\n month: TuiMonth,\n showAdjacentDays: boolean = false,\n ): ReadonlyArray<ReadonlyArray<TuiDay>> {\n if (this.currentMonth && this.currentMonth.monthSame(month)) {\n return this.currentSheet;\n }\n\n const sheet: Array<readonly TuiDay[]> = [];\n\n for (let rowIndex = 0; rowIndex < CALENDAR_ROWS_COUNT; rowIndex++) {\n const row: TuiDay[] = [];\n\n for (let colIndex = 0; colIndex < DAYS_IN_WEEK; colIndex++) {\n const day = getDayFromMonthRowCol({\n month,\n rowIndex,\n colIndex,\n firstDayOfWeek: this.firstDayOfWeek,\n });\n\n const isPrevMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year < relativeToMonth.year || day.month < relativeToMonth.month;\n\n const isNextMonthDay = (day: TuiDay, relativeToMonth = month) =>\n day.year > relativeToMonth.year || day.month > relativeToMonth.month;\n\n if (isPrevMonthDay(day) && !showAdjacentDays) {\n continue;\n }\n\n if (isNextMonthDay(day) && !showAdjacentDays) {\n break;\n }\n\n row.push(day);\n }\n\n sheet.push(row);\n }\n\n this.currentSheet = sheet.filter(row => row.length);\n this.currentMonth = month;\n\n return this.currentSheet;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCalendarSheetPipe} from './calendar-sheet.pipe';\n\n@NgModule({\n declarations: [TuiCalendarSheetPipe],\n exports: [TuiCalendarSheetPipe],\n})\nexport class TuiCalendarSheetPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;AACA;;;AAGO,IAAM,uBAAuB,GAAG,UACnC,KAAe,EACf,cAA4B;IAE5B,IAAM,0BAA0B,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAEjF,OAAO,0BAA0B,IAAI,cAAc;UAC7C,0BAA0B,GAAG,cAAc;UAC3C,YAAY,IAAI,cAAc,GAAG,0BAA0B,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF;;;;;;;;AAQA;;;;AAIO,IAAM,qBAAqB,GAAG,UAAC,EAmBrC;QAlBG,gBAAK,EACL,sBAAQ,EACR,sBAAQ,EACR,kCAAc;IAgBd,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,Q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QACpD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAE1B,OAAO,IAAI,CAAC,YAAY,CAAC;KAC5B;;gDAjDI,MAAM,SAAC,qBAAqB;;IALxB,oBAAoB;QAHhC,IAAI,CAAC;YACF,IAAI,EAAE,kBAAkB;SAC3B,CAAC;QAMO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OALzB,oBAAoB,CAuDhC;IAAD,2BAAC;CAvDD;;;ICHA;KAA0C;IAA7B,0BAA0B;QAJtC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,0BAA0B,CAAG;IAAD,iCAAC;CAA1C;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-format-number.js","sources":["ng://@taiga-ui/core/pipes/format-number/format-number.pipe.ts","ng://@taiga-ui/core/pipes/format-number/format-number.module.ts","ng://@taiga-ui/core/pipes/format-number/taiga-ui-core-pipes-format-number.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\nimport {formatNumber} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: 'tuiFormatNumber'})\nexport class TuiFormatNumberPipe implements PipeTransform {\n constructor(\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n ) {}\n /**\n * Formats number adding thousand separators and correct decimal separator\n * padding decimal part with zeroes to given length\n * @param value number\n * @param decimalSeparator\n * @param thousandSeparator\n * @param decimalLimit number of digits of decimal part, null to keep untouched\n */\n transform(\n value: number,\n decimalLimit: number | null = null,\n decimalSeparator: string = this.numberFormat.decimalSeparator,\n thousandSeparator: string = this.numberFormat.thousandSeparator,\n ): string {\n return formatNumber(value, decimalLimit, decimalSeparator, thousandSeparator);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatNumberPipe} from './format-number.pipe';\n\n@NgModule({\n exports: [TuiFormatNumberPipe],\n declarations: [TuiFormatNumberPipe],\n})\nexport class TuiFormatNumberPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAOI,6BAEqB,YAAkC;QAAlC,iBAAY,GAAZ,YAAY,CAAsB;KACnD;;;;;;;;;IASJ,uCAAS,GAAT,UACI,KAAa,EACb,YAAkC,EAClC,gBAA6D,EAC7D,iBAA+D;QAF/D,6BAAA,EAAA,mBAAkC;QAClC,iCAAA,EAAA,mBAA2B,IAAI,CAAC,YAAY,CAAC,gBAAgB;QAC7D,kCAAA,EAAA,oBAA4B,IAAI,CAAC,YAAY,CAAC,iBAAiB;QAE/D,OAAO,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;KACjF;;gDAlBI,MAAM,SAAC,iBAAiB;;IAFpB,mBAAmB;QAD/B,IAAI,CAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC,CAAC;QAGvB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAFrB,mBAAmB,CAqB/B;IAAD,0BAAC;CArBD;;;ICEA;KAAyC;IAA5B,yBAAyB;QAJrC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,YAAY,EAAE,CAAC,mBAAmB,CAAC;SACtC,CAAC;OACW,yBAAyB,CAAG;IAAD,gCAAC;CAAzC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-format-number.js","sources":["ng://@taiga-ui/core/pipes/format-number/format-number.pipe.ts","ng://@taiga-ui/core/pipes/format-number/format-number.module.ts","ng://@taiga-ui/core/pipes/format-number/taiga-ui-core-pipes-format-number.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {NumberFormatSettings} from '@taiga-ui/core/interfaces';\nimport {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';\nimport {formatNumber} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: 'tuiFormatNumber'})\nexport class TuiFormatNumberPipe implements PipeTransform {\n constructor(\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n ) {}\n\n /**\n * Formats number adding thousand separators and correct decimal separator\n * padding decimal part with zeroes to given length\n * @param value number\n * @param decimalSeparator\n * @param thousandSeparator\n * @param decimalLimit number of digits of decimal part, null to keep untouched\n */\n transform(\n value: number,\n decimalLimit: number | null = null,\n decimalSeparator: string = this.numberFormat.decimalSeparator,\n thousandSeparator: string = this.numberFormat.thousandSeparator,\n ): string {\n return formatNumber(value, decimalLimit, decimalSeparator, thousandSeparator);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatNumberPipe} from './format-number.pipe';\n\n@NgModule({\n exports: [TuiFormatNumberPipe],\n declarations: [TuiFormatNumberPipe],\n})\nexport class TuiFormatNumberPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAOI,6BAEqB,YAAkC;QAAlC,iBAAY,GAAZ,YAAY,CAAsB;KACnD;;;;;;;;;IAUJ,uCAAS,GAAT,UACI,KAAa,EACb,YAAkC,EAClC,gBAA6D,EAC7D,iBAA+D;QAF/D,6BAAA,EAAA,mBAAkC;QAClC,iCAAA,EAAA,mBAA2B,IAAI,CAAC,YAAY,CAAC,gBAAgB;QAC7D,kCAAA,EAAA,oBAA4B,IAAI,CAAC,YAAY,CAAC,iBAAiB;QAE/D,OAAO,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;KACjF;;gDAnBI,MAAM,SAAC,iBAAiB;;IAFpB,mBAAmB;QAD/B,IAAI,CAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC,CAAC;QAGvB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAFrB,mBAAmB,CAsB/B;IAAD,0BAAC;CAtBD;;;ICEA;KAAyC;IAA5B,yBAAyB;QAJrC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,YAAY,EAAE,CAAC,mBAAmB,CAAC;SACtC,CAAC;OACW,yBAAyB,CAAG;IAAD,gCAAC;CAAzC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-month.js","sources":["ng://@taiga-ui/core/pipes/month/month.pipe.ts","ng://@taiga-ui/core/pipes/month/month.module.ts","ng://@taiga-ui/core/pipes/month/taiga-ui-core-pipes-month.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Pipe({name: 'tuiMonth'})\nexport class TuiMonthPipe implements PipeTransform {\n constructor(@Inject(TUI_MONTHS) private readonly months$: Observable<string[]>) {}\n\n transform({month}: TuiMonth): Observable<string> {\n return this.months$.pipe(map(months => months[month]));\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMonthPipe} from './month.pipe';\n\n@NgModule({\n exports: [TuiMonthPipe],\n declarations: [TuiMonthPipe],\n})\nexport class TuiMonthPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;IAGI,sBAAiD,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;KAAI;IAElF,gCAAS,GAAT,UAAU,EAAiB;YAAhB,gBAAK;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,KAAK,CAAC,GAAA,CAAC,CAAC,CAAC;KAC1D;;gBAJyD,UAAU,uBAAvD,MAAM,SAAC,UAAU;;IADrB,YAAY;QADxB,IAAI,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;QAER,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OADtB,YAAY,CAMxB;IAAD,mBAAC;CAND;;;ICDA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,CAAC;YACvB,YAAY,EAAE,CAAC,YAAY,CAAC;SAC/B,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-month.js","sources":["ng://@taiga-ui/core/pipes/month/month.pipe.ts","ng://@taiga-ui/core/pipes/month/month.module.ts","ng://@taiga-ui/core/pipes/month/taiga-ui-core-pipes-month.ts"],"sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Pipe({name: 'tuiMonth'})\nexport class TuiMonthPipe implements PipeTransform {\n constructor(@Inject(TUI_MONTHS) private readonly months$: Observable<string[]>) {}\n\n transform({month}: TuiMonth): Observable<string> {\n return this.months$.pipe(map(months => months[month]));\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMonthPipe} from './month.pipe';\n\n@NgModule({\n exports: [TuiMonthPipe],\n declarations: [TuiMonthPipe],\n})\nexport class TuiMonthPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;IAGI,sBAAiD,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;KAAI;IAElF,gCAAS,GAAT,UAAU,EAAiB;YAAhB,gBAAK;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,KAAK,CAAC,GAAA,CAAC,CAAC,CAAC;KAC1D;;gBAJyD,UAAU,uBAAvD,MAAM,SAAC,UAAU;;IADrB,YAAY;QADxB,IAAI,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;QAER,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OADtB,YAAY,CAMxB;IAAD,mBAAC;CAND;;;ICAA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,CAAC;YACvB,YAAY,EAAE,CAAC,YAAY,CAAC;SAC/B,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-pluralize.js","sources":["ng://@taiga-ui/core/pipes/pluralize/pluralize.pipe.ts","ng://@taiga-ui/core/pipes/pluralize/pluralize.module.ts","ng://@taiga-ui/core/pipes/pluralize/taiga-ui-core-pipes-pluralize.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiPluralize} from '@taiga-ui/core/types';\nimport {pluralize} from '@taiga-ui/core/utils/format';\n\n/**\n * @deprecated This implementation targets Russian.\n * Use https://angular.io/api/common/I18nPluralPipe\n */\n@Pipe({name: 'tuiPluralize'})\nexport class TuiPluralizePipe implements PipeTransform {\n /**\n * Chooses correct plural form\n * @param value\n * @param args tuple of three plural forms\n */\n transform(value: number, args: TuiPluralize): string {\n return pluralize(value, args);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPluralizePipe} from './pluralize.pipe';\n\n/** @deprecated use Angular built-in pipe https://angular.io/api/common/I18nPluralPipe */\n@NgModule({\n exports: [TuiPluralizePipe],\n declarations: [TuiPluralizePipe],\n})\nexport class TuiPluralizePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;;IAKA;KASC;;;;;;IAHG,oCAAS,GAAT,UAAU,KAAa,EAAE,IAAkB;QACvC,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACjC;IARQ,gBAAgB;QAD5B,IAAI,CAAC,EAAC,IAAI,EAAE,cAAc,EAAC,CAAC;OAChB,gBAAgB,CAS5B;IAAD,uBAAC;CATD;;ACNA;;IAKA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;SACnC,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-pluralize.js","sources":["ng://@taiga-ui/core/pipes/pluralize/pluralize.pipe.ts","ng://@taiga-ui/core/pipes/pluralize/pluralize.module.ts","ng://@taiga-ui/core/pipes/pluralize/taiga-ui-core-pipes-pluralize.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiPluralize} from '@taiga-ui/core/types';\nimport {pluralize} from '@taiga-ui/core/utils/format';\n\n/**\n * @deprecated This implementation targets Russian.\n * Use https://angular.io/api/common/I18nPluralPipe\n */\n@Pipe({name: 'tuiPluralize'})\nexport class TuiPluralizePipe implements PipeTransform {\n /**\n * Chooses correct plural form\n * @param value\n * @param args tuple of three plural forms\n */\n transform(value: number, args: TuiPluralize): string {\n return pluralize(value, args);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPluralizePipe} from './pluralize.pipe';\n\n/** @deprecated use Angular built-in pipe https://angular.io/api/common/I18nPluralPipe */\n@NgModule({\n exports: [TuiPluralizePipe],\n declarations: [TuiPluralizePipe],\n})\nexport class TuiPluralizePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;;IAKA;KASC;;;;;;IAHG,oCAAS,GAAT,UAAU,KAAa,EAAE,IAAkB;QACvC,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACjC;IARQ,gBAAgB;QAD5B,IAAI,CAAC,EAAC,IAAI,EAAE,cAAc,EAAC,CAAC;OAChB,gBAAgB,CAS5B;IAAD,uBAAC;CATD;;ACLA;;IAKA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;SACnC,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACTA;;;;;;"}
@@ -1,8 +1,8 @@
1
+ export * from '@taiga-ui/core/pipes/calendar-sheet';
1
2
  export * from '@taiga-ui/core/pipes/format-number';
2
3
  export * from '@taiga-ui/core/pipes/format-phone';
3
4
  export * from '@taiga-ui/core/pipes/month';
4
5
  export * from '@taiga-ui/core/pipes/pluralize';
5
- export * from '@taiga-ui/core/pipes/calendar-sheet';
6
6
 
7
7
  /**
8
8
  * Generated bundle index. Do not edit.
@@ -1,14 +1,9 @@
1
- import { watch } from '@taiga-ui/cdk';
2
- import { takeUntil, startWith, map } from 'rxjs/operators';
3
1
  import { Optional, ElementRef } from '@angular/core';
4
2
  import { TuiModeDirective } from '@taiga-ui/core/directives/mode';
5
3
  import { TUI_MODE } from '@taiga-ui/core/tokens';
6
4
  import { EMPTY } from 'rxjs';
7
-
8
- function watchedControllerFactory(controller, changeDetectorRef, destroy$) {
9
- controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();
10
- return controller;
11
- }
5
+ import { startWith, map, takeUntil } from 'rxjs/operators';
6
+ import { watch } from '@taiga-ui/cdk';
12
7
 
13
8
  function modeFactory(mode, _a) {
14
9
  var nativeElement = _a.nativeElement;
@@ -23,6 +18,11 @@ var MODE_PROVIDER = {
23
18
  useFactory: modeFactory,
24
19
  };
25
20
 
21
+ function watchedControllerFactory(controller, changeDetectorRef, destroy$) {
22
+ controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();
23
+ return controller;
24
+ }
25
+
26
26
  /**
27
27
  * Generated bundle index. Do not edit.
28
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-providers.js","sources":["ng://@taiga-ui/core/providers/watched-controller-provider-factory.ts","ng://@taiga-ui/core/providers/mode.provider.ts","ng://@taiga-ui/core/providers/taiga-ui-core-providers.ts"],"sourcesContent":["import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nexport function watchedControllerFactory(\n controller: TuiController,\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n): TuiController {\n controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","import {ElementRef, Optional, Provider} from '@angular/core';\nimport {TuiModeDirective} from '@taiga-ui/core/directives/mode';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nexport function modeFactory(\n mode: TuiModeDirective | null,\n {nativeElement}: ElementRef,\n): Observable<TuiBrightness | null> {\n const mode$ = mode\n ? mode.change$.pipe(\n startWith(null),\n map(() => mode.mode),\n )\n : EMPTY;\n\n return (nativeElement['$.data-mode.attr'] = mode$);\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;SAKgB,wBAAwB,CACpC,UAAyB,EACzB,iBAAoC,EACpC,QAA0B;IAE1B,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAEnF,OAAO,UAAU,CAAC;AACtB;;SCNgB,WAAW,CACvB,IAA6B,EAC7B,EAA2B;QAA1B,gCAAa;IAEd,IAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,cAAM,OAAA,IAAI,CAAC,IAAI,GAAA,CAAC,CACvB;UACD,KAAK,CAAC;IAEZ,QAAQ,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE;AACvD,CAAC;IAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;;;ACxB3B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-providers.js","sources":["ng://@taiga-ui/core/providers/mode.provider.ts","ng://@taiga-ui/core/providers/watched-controller-provider-factory.ts","ng://@taiga-ui/core/providers/taiga-ui-core-providers.ts"],"sourcesContent":["import {ElementRef, Optional, Provider} from '@angular/core';\nimport {TuiModeDirective} from '@taiga-ui/core/directives/mode';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nexport function modeFactory(\n mode: TuiModeDirective | null,\n {nativeElement}: ElementRef,\n): Observable<TuiBrightness | null> {\n const mode$ = mode\n ? mode.change$.pipe(\n startWith(null),\n map(() => mode.mode),\n )\n : EMPTY;\n\n return (nativeElement['$.data-mode.attr'] = mode$);\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n","import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nexport function watchedControllerFactory(\n controller: TuiController,\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n): TuiController {\n controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;SAOgB,WAAW,CACvB,IAA6B,EAC7B,EAA2B;QAA1B,gCAAa;IAEd,IAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,cAAM,OAAA,IAAI,CAAC,IAAI,GAAA,CAAC,CACvB;UACD,KAAK,CAAC;IAEZ,QAAQ,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE;AACvD,CAAC;IAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;;;SCnBX,wBAAwB,CACpC,UAAyB,EACzB,iBAAoC,EACpC,QAA0B;IAE1B,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAEnF,OAAO,UAAU,CAAC;AACtB;;ACbA;;;;;;"}
@@ -122,8 +122,8 @@ var TuiSvgService = /** @class */ (function () {
122
122
  function TuiSvgService(tuiSanitizer, sanitizer, icons) {
123
123
  this.tuiSanitizer = tuiSanitizer;
124
124
  this.sanitizer = sanitizer;
125
- this.items$ = new BehaviorSubject(new Map());
126
125
  this.originals = {};
126
+ this.items$ = new BehaviorSubject(new Map());
127
127
  this.define(icons);
128
128
  }
129
129
  TuiSvgService.prototype.define = function (icons) {
@@ -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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I,CAAC,CAAC,CAAC;KAChD;IAEO,gCAAQ,GAAhB,UAAiB,GAAW;QACxB,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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,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;;;;;;"}
@@ -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,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E,GAAG;QACX,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,IAAI;KACrB,IAAC;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,c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B,cAAc,GAAG,IAAI,cAAc,CAC5C,sBAAsB;;ICAb,wBAAwB,GAAG,IAAI,cAAc,CACtD,uBAAuB,EACvB;IACI,OAAO,EAAE,cAAM,qCAAuB;CACzC;;ICJQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,gEAAgE;;ACJpE;;;;;;"}
@@ -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":{"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';