@taiga-ui/core 2.55.0 → 2.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (795) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +15 -15
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-core-animations.umd.js +138 -138
  5. package/bundles/taiga-ui-core-animations.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-animations.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-alert.umd.js +13 -13
  8. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-alert.umd.min.js +1 -1
  10. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-button.umd.js +16 -16
  12. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-calendar.umd.js +3 -3
  15. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-calendar.umd.min.js +1 -1
  17. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-data-list.umd.js +34 -34
  19. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-dialog.umd.js +24 -24
  22. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +40 -40
  25. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  27. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-error.umd.js +6 -6
  29. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-error.umd.min.js +1 -1
  31. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-expand.umd.js +14 -14
  33. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  35. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-group.umd.js +19 -19
  37. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-group.umd.min.js +1 -1
  39. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-hints-host.umd.js +47 -47
  41. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +12 -12
  44. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  46. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-label.umd.js +6 -6
  48. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  50. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-link.umd.js +11 -11
  52. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-core-components-loader.umd.js +4 -4
  55. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  56. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-notification.umd.js +10 -10
  58. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-components-notification.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-components-notification.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
  62. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +9 -9
  65. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +1 -1
  67. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +4 -4
  69. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  70. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  71. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
  72. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +57 -57
  73. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  74. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  75. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +2 -2
  77. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  78. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-root.umd.js +6 -6
  80. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  81. package/bundles/taiga-ui-core-components-root.umd.min.js +1 -1
  82. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +28 -28
  84. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  85. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +1 -1
  86. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-core-components-scrollbar.umd.js +10 -10
  88. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  89. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +1 -1
  90. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-core-components-svg.umd.js +17 -17
  92. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  93. package/bundles/taiga-ui-core-components-svg.umd.min.js +1 -1
  94. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-components-theme-night.umd.js +2 -2
  96. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  97. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-core-components-tooltip.umd.js +9 -9
  99. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  100. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  101. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-core-constants.umd.js +17 -17
  103. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  104. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  105. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-color.umd.js +6 -6
  107. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-described-by.umd.js +8 -8
  110. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  111. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  112. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js +11 -11
  113. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  114. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-dropdown.umd.js +2 -2
  116. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  117. package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-core-directives-hint-controller.umd.js +8 -8
  119. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  120. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-core-directives-hint.umd.js +7 -7
  122. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  123. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  124. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +4 -4
  125. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  126. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +1 -1
  128. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  129. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-core-directives-mode.umd.js +2 -2
  131. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  132. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  133. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +5 -5
  134. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  135. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  136. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +1 -1
  137. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  138. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  139. package/bundles/taiga-ui-core-directives-table-mode.umd.js +2 -2
  140. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  141. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +35 -35
  143. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  144. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  145. package/bundles/taiga-ui-core-directives-wrapper.umd.js +9 -9
  146. package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
  147. package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +1 -1
  148. package/bundles/taiga-ui-core-enums.umd.js +1 -0
  149. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  150. package/bundles/taiga-ui-core-enums.umd.min.js +1 -1
  151. package/bundles/taiga-ui-core-enums.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  153. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  154. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +1 -1
  156. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  157. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-core-observables.umd.js +2 -2
  159. package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
  160. package/bundles/taiga-ui-core-observables.umd.min.js.map +1 -1
  161. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +1 -1
  162. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  163. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-core-pipes-format-number.umd.js +1 -1
  165. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  166. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  167. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +3 -3
  168. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  169. package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js.map +1 -1
  170. package/bundles/taiga-ui-core-pipes-month.umd.js +1 -1
  171. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  172. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-core-pipes-pluralize.umd.js +1 -1
  174. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  175. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  176. package/bundles/taiga-ui-core-providers.umd.js +2 -2
  177. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  178. package/bundles/taiga-ui-core-providers.umd.min.js.map +1 -1
  179. package/bundles/taiga-ui-core-services.umd.js +7 -7
  180. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  181. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  182. package/bundles/taiga-ui-core-tokens.umd.js +40 -40
  183. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  184. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-core-utils-dom.umd.js +16 -16
  186. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  187. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  188. package/bundles/taiga-ui-core-utils-format.umd.js +17 -17
  189. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  190. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  191. package/bundles/taiga-ui-core-utils-mask.umd.js +28 -28
  192. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  193. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  194. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +12 -12
  195. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  196. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-core-utils-polyfills.umd.js +4 -4
  198. package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
  199. package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +1 -1
  200. package/components/alert/taiga-ui-core-components-alert.metadata.json +1 -1
  201. package/components/calendar/taiga-ui-core-components-calendar.metadata.json +1 -1
  202. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  203. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  204. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  205. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  206. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  207. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  208. package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
  209. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  210. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  211. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  212. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  213. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  214. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  215. package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
  216. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  217. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  218. package/constants/version.d.ts +1 -1
  219. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  220. package/enums/appearance.d.ts +1 -0
  221. package/enums/taiga-ui-core-enums.metadata.json +1 -1
  222. package/esm2015/abstract/abstract-dropdown.js +12 -12
  223. package/esm2015/abstract/abstract-hint-options.js +2 -2
  224. package/esm2015/abstract/abstract-hint.js +4 -4
  225. package/esm2015/animations/animations.js +140 -140
  226. package/esm2015/components/alert/alert.component.js +12 -12
  227. package/esm2015/components/alert/alert.service.js +3 -3
  228. package/esm2015/components/button/button-options.js +3 -3
  229. package/esm2015/components/button/button.component.js +15 -15
  230. package/esm2015/components/calendar/calendar.component.js +4 -4
  231. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +7 -7
  232. package/esm2015/components/data-list/data-list.component.js +12 -12
  233. package/esm2015/components/data-list/data-list.directive.js +2 -2
  234. package/esm2015/components/data-list/opt-group.directive.js +5 -5
  235. package/esm2015/components/data-list/option/option.component.js +12 -12
  236. package/esm2015/components/dialog/dialog.component.js +12 -12
  237. package/esm2015/components/dialog/dialog.directive.js +4 -4
  238. package/esm2015/components/dialog/dialog.providers.js +7 -7
  239. package/esm2015/components/dialog/dialog.service.js +5 -5
  240. package/esm2015/components/dropdown-box/dropdown-box.component.js +41 -41
  241. package/esm2015/components/error/error.component.js +7 -7
  242. package/esm2015/components/expand/expand-content.directive.js +2 -2
  243. package/esm2015/components/expand/expand.component.js +14 -14
  244. package/esm2015/components/group/group-styles.component.js +2 -2
  245. package/esm2015/components/group/group.component.js +7 -5
  246. package/esm2015/components/group/group.directive.js +15 -15
  247. package/esm2015/components/hints-host/hint-box/hint-box.component.js +46 -46
  248. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  249. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  250. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +12 -12
  251. package/esm2015/components/label/label.component.js +7 -7
  252. package/esm2015/components/link/link.component.js +12 -12
  253. package/esm2015/components/loader/loader-options.js +3 -3
  254. package/esm2015/components/loader/loader.component.js +3 -3
  255. package/esm2015/components/notification/notification.component.js +11 -11
  256. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  257. package/esm2015/components/primitive-checkbox/checkbox-options.js +5 -5
  258. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +6 -6
  259. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +5 -5
  260. package/esm2015/components/primitive-textfield/primitive-textfield-options.js +4 -4
  261. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +30 -30
  262. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  263. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +14 -14
  264. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  265. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  266. package/esm2015/components/root/root.component.js +7 -7
  267. package/esm2015/components/scroll-controls/scroll-controls.component.js +6 -6
  268. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  269. package/esm2015/components/scroll-controls/scrollbar.directive.js +23 -23
  270. package/esm2015/components/scrollbar/scroll-ref.directive.js +2 -2
  271. package/esm2015/components/scrollbar/scrollable.directive.js +2 -2
  272. package/esm2015/components/scrollbar/scrollbar.component.js +9 -9
  273. package/esm2015/components/svg/svg.component.js +18 -18
  274. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  275. package/esm2015/components/tooltip/tooltip.component.js +10 -10
  276. package/esm2015/constants/decimal-symbols.js +2 -2
  277. package/esm2015/constants/default-icons-path.js +2 -2
  278. package/esm2015/constants/editing-keys.js +10 -10
  279. package/esm2015/constants/events.js +5 -5
  280. package/esm2015/constants/mask-caret-trap.js +2 -2
  281. package/esm2015/constants/version.js +2 -2
  282. package/esm2015/directives/color/color.directive.js +7 -7
  283. package/esm2015/directives/described-by/described-by.directive.js +5 -5
  284. package/esm2015/directives/described-by/described-by.providers.js +3 -3
  285. package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
  286. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  287. package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +2 -2
  288. package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +2 -2
  289. package/esm2015/directives/hint/hint-options.js +3 -3
  290. package/esm2015/directives/hint/hint.directive.js +6 -6
  291. package/esm2015/directives/hint-controller/hint-controller.directive.js +7 -7
  292. package/esm2015/directives/hint-controller/hint-controller.provider.js +2 -2
  293. package/esm2015/directives/hint-controller/hint-controller.token.js +2 -2
  294. package/esm2015/directives/manual-hint/manual-hint-options.js +2 -2
  295. package/esm2015/directives/manual-hint/manual-hint.directive.js +4 -4
  296. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -2
  297. package/esm2015/directives/mode/mode.directive.js +3 -3
  298. package/esm2015/directives/pointer-hint/pointer-hint-options.js +2 -2
  299. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +5 -5
  300. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  301. package/esm2015/directives/table-mode/table-mode.directive.js +3 -3
  302. package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  303. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  304. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  305. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  306. package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  307. package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  308. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  309. package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  310. package/esm2015/directives/textfield-controller/textfield-size.directive.js +5 -5
  311. package/esm2015/directives/textfield-controller/textfield-type.directive.js +5 -5
  312. package/esm2015/directives/textfield-controller/textfield.controller.js +2 -2
  313. package/esm2015/directives/wrapper/wrapper.directive.js +10 -10
  314. package/esm2015/enums/appearance.js +2 -1
  315. package/esm2015/enums/base-color.js +1 -1
  316. package/esm2015/enums/button-shape.js +1 -1
  317. package/esm2015/enums/decimal.js +1 -1
  318. package/esm2015/enums/dropdown-animation.js +1 -1
  319. package/esm2015/enums/dropdown-width.js +1 -1
  320. package/esm2015/enums/hint-mode.js +1 -1
  321. package/esm2015/enums/interactive-state.js +1 -1
  322. package/esm2015/enums/link-mode.js +1 -1
  323. package/esm2015/enums/notification.js +1 -1
  324. package/esm2015/enums/orientation.js +1 -1
  325. package/esm2015/enums/range-state.js +1 -1
  326. package/esm2015/enums/support-color.js +1 -1
  327. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  328. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  329. package/esm2015/observables/smart-search.js +3 -3
  330. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
  331. package/esm2015/pipes/format-number/format-number.pipe.js +2 -2
  332. package/esm2015/pipes/format-phone/format-phone.pipe.js +4 -4
  333. package/esm2015/pipes/month/month.pipe.js +2 -2
  334. package/esm2015/pipes/pluralize/pluralize.pipe.js +2 -2
  335. package/esm2015/providers/is-mobile-resolution.provider.js +2 -2
  336. package/esm2015/providers/mode.provider.js +2 -2
  337. package/esm2015/services/hint.service.js +2 -2
  338. package/esm2015/services/night-theme.service.js +4 -4
  339. package/esm2015/services/svg.service.js +4 -4
  340. package/esm2015/tokens/animation-options.js +2 -2
  341. package/esm2015/tokens/animations-duration.js +2 -2
  342. package/esm2015/tokens/assert-enabled.js +2 -2
  343. package/esm2015/tokens/data-list-accessor.js +2 -2
  344. package/esm2015/tokens/data-list-host.js +2 -2
  345. package/esm2015/tokens/document-or-shadow-root.js +2 -2
  346. package/esm2015/tokens/dropdown-directive.js +2 -2
  347. package/esm2015/tokens/element-ref.js +2 -2
  348. package/esm2015/tokens/first-day-of-week.js +2 -2
  349. package/esm2015/tokens/i18n.js +10 -10
  350. package/esm2015/tokens/icon-place.js +3 -3
  351. package/esm2015/tokens/icons-path.js +2 -2
  352. package/esm2015/tokens/icons.js +2 -2
  353. package/esm2015/tokens/is-mobile-resolution.js +3 -3
  354. package/esm2015/tokens/media.js +2 -2
  355. package/esm2015/tokens/mode.js +2 -2
  356. package/esm2015/tokens/notification-options.js +3 -3
  357. package/esm2015/tokens/number-format.js +3 -3
  358. package/esm2015/tokens/option-content.js +2 -2
  359. package/esm2015/tokens/ordered-short-week-days.js +2 -2
  360. package/esm2015/tokens/scroll-ref.js +2 -2
  361. package/esm2015/tokens/svg-content-processor.js +2 -2
  362. package/esm2015/tokens/svg-src-processor.js +2 -2
  363. package/esm2015/tokens/textfield-appearance.js +2 -2
  364. package/esm2015/tokens/textfield-host.js +2 -2
  365. package/esm2015/tokens/theme.js +3 -3
  366. package/esm2015/tokens/value-accessor.js +2 -2
  367. package/esm2015/utils/dom/are-css-vars-supported.js +2 -2
  368. package/esm2015/utils/dom/check-fixed-position.js +3 -3
  369. package/esm2015/utils/dom/get-safe-area-size.js +4 -4
  370. package/esm2015/utils/dom/process-icon.js +11 -11
  371. package/esm2015/utils/format/format-number.js +5 -5
  372. package/esm2015/utils/format/format-phone.js +9 -9
  373. package/esm2015/utils/format/get-fractional-part-padded.js +3 -3
  374. package/esm2015/utils/format/number-to-string-without-exp.js +3 -3
  375. package/esm2015/utils/format/other-decimal-symbol.js +2 -2
  376. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +11 -11
  377. package/esm2015/utils/mask/create-correction-mask.js +3 -3
  378. package/esm2015/utils/mask/create-number-mask.js +13 -13
  379. package/esm2015/utils/mask/masked-money-value-is-empty.js +3 -3
  380. package/esm2015/utils/mask/masked-number-string-to-number.js +2 -2
  381. package/esm2015/utils/miscellaneous/color-fallback.js +8 -8
  382. package/esm2015/utils/miscellaneous/icons-path-factory.js +3 -3
  383. package/esm2015/utils/miscellaneous/is-presumed-html-string.js +2 -2
  384. package/esm2015/utils/miscellaneous/size-bigger.js +3 -3
  385. package/esm2015/utils/polyfills/inner-html.js +5 -5
  386. package/esm5/abstract/abstract-dropdown.js +12 -12
  387. package/esm5/abstract/abstract-hint-options.js +2 -2
  388. package/esm5/abstract/abstract-hint.js +4 -4
  389. package/esm5/animations/animations.js +140 -140
  390. package/esm5/components/alert/alert.component.js +12 -12
  391. package/esm5/components/alert/alert.service.js +3 -3
  392. package/esm5/components/button/button-options.js +3 -3
  393. package/esm5/components/button/button.component.js +15 -15
  394. package/esm5/components/calendar/calendar.component.js +4 -4
  395. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +8 -8
  396. package/esm5/components/data-list/data-list.component.js +12 -12
  397. package/esm5/components/data-list/data-list.directive.js +2 -2
  398. package/esm5/components/data-list/opt-group.directive.js +5 -5
  399. package/esm5/components/data-list/option/option.component.js +12 -12
  400. package/esm5/components/dialog/dialog.component.js +12 -12
  401. package/esm5/components/dialog/dialog.directive.js +4 -4
  402. package/esm5/components/dialog/dialog.providers.js +7 -7
  403. package/esm5/components/dialog/dialog.service.js +5 -5
  404. package/esm5/components/dropdown-box/dropdown-box.component.js +41 -41
  405. package/esm5/components/error/error.component.js +7 -7
  406. package/esm5/components/expand/expand-content.directive.js +2 -2
  407. package/esm5/components/expand/expand.component.js +14 -14
  408. package/esm5/components/group/group-styles.component.js +2 -2
  409. package/esm5/components/group/group.component.js +5 -5
  410. package/esm5/components/group/group.directive.js +15 -15
  411. package/esm5/components/hints-host/hint-box/hint-box.component.js +46 -46
  412. package/esm5/components/hints-host/hints-host.component.js +3 -3
  413. package/esm5/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  414. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +12 -12
  415. package/esm5/components/label/label.component.js +7 -7
  416. package/esm5/components/link/link.component.js +12 -12
  417. package/esm5/components/loader/loader-options.js +3 -3
  418. package/esm5/components/loader/loader.component.js +3 -3
  419. package/esm5/components/notification/notification.component.js +11 -11
  420. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  421. package/esm5/components/primitive-checkbox/checkbox-options.js +5 -5
  422. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +6 -6
  423. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +5 -5
  424. package/esm5/components/primitive-textfield/primitive-textfield-options.js +4 -4
  425. package/esm5/components/primitive-textfield/primitive-textfield.component.js +30 -30
  426. package/esm5/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  427. package/esm5/components/primitive-textfield/textfield/textfield.component.js +14 -14
  428. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  429. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  430. package/esm5/components/root/root.component.js +7 -7
  431. package/esm5/components/scroll-controls/scroll-controls.component.js +6 -6
  432. package/esm5/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  433. package/esm5/components/scroll-controls/scrollbar.directive.js +23 -23
  434. package/esm5/components/scrollbar/scroll-ref.directive.js +2 -2
  435. package/esm5/components/scrollbar/scrollable.directive.js +2 -2
  436. package/esm5/components/scrollbar/scrollbar.component.js +9 -9
  437. package/esm5/components/svg/svg.component.js +18 -18
  438. package/esm5/components/theme-night/theme-night.component.js +3 -3
  439. package/esm5/components/tooltip/tooltip.component.js +10 -10
  440. package/esm5/constants/decimal-symbols.js +2 -2
  441. package/esm5/constants/default-icons-path.js +2 -2
  442. package/esm5/constants/editing-keys.js +10 -10
  443. package/esm5/constants/events.js +5 -5
  444. package/esm5/constants/mask-caret-trap.js +2 -2
  445. package/esm5/constants/version.js +2 -2
  446. package/esm5/directives/color/color.directive.js +7 -7
  447. package/esm5/directives/described-by/described-by.directive.js +5 -5
  448. package/esm5/directives/described-by/described-by.providers.js +5 -5
  449. package/esm5/directives/dropdown/dropdown.directive.js +3 -3
  450. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  451. package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +2 -2
  452. package/esm5/directives/dropdown-controller/dropdown-controller.token.js +2 -2
  453. package/esm5/directives/hint/hint-options.js +3 -3
  454. package/esm5/directives/hint/hint.directive.js +6 -6
  455. package/esm5/directives/hint-controller/hint-controller.directive.js +7 -7
  456. package/esm5/directives/hint-controller/hint-controller.provider.js +2 -2
  457. package/esm5/directives/hint-controller/hint-controller.token.js +2 -2
  458. package/esm5/directives/manual-hint/manual-hint-options.js +2 -2
  459. package/esm5/directives/manual-hint/manual-hint.directive.js +4 -4
  460. package/esm5/directives/mask-accessor/mask-accessor.directive.js +2 -2
  461. package/esm5/directives/mode/mode.directive.js +3 -3
  462. package/esm5/directives/pointer-hint/pointer-hint-options.js +2 -2
  463. package/esm5/directives/pointer-hint/pointer-hint.directive.js +5 -5
  464. package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  465. package/esm5/directives/table-mode/table-mode.directive.js +3 -3
  466. package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  467. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  468. package/esm5/directives/textfield-controller/textfield-controller.provider.js +2 -2
  469. package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  470. package/esm5/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  471. package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  472. package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  473. package/esm5/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  474. package/esm5/directives/textfield-controller/textfield-size.directive.js +5 -5
  475. package/esm5/directives/textfield-controller/textfield-type.directive.js +5 -5
  476. package/esm5/directives/textfield-controller/textfield.controller.js +2 -2
  477. package/esm5/directives/wrapper/wrapper.directive.js +10 -10
  478. package/esm5/enums/appearance.js +2 -1
  479. package/esm5/enums/base-color.js +1 -1
  480. package/esm5/enums/button-shape.js +1 -1
  481. package/esm5/enums/decimal.js +1 -1
  482. package/esm5/enums/dropdown-animation.js +1 -1
  483. package/esm5/enums/dropdown-width.js +1 -1
  484. package/esm5/enums/hint-mode.js +1 -1
  485. package/esm5/enums/interactive-state.js +1 -1
  486. package/esm5/enums/link-mode.js +1 -1
  487. package/esm5/enums/notification.js +1 -1
  488. package/esm5/enums/orientation.js +1 -1
  489. package/esm5/enums/range-state.js +1 -1
  490. package/esm5/enums/support-color.js +1 -1
  491. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  492. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  493. package/esm5/observables/smart-search.js +3 -3
  494. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
  495. package/esm5/pipes/format-number/format-number.pipe.js +2 -2
  496. package/esm5/pipes/format-phone/format-phone.pipe.js +4 -4
  497. package/esm5/pipes/month/month.pipe.js +2 -2
  498. package/esm5/pipes/pluralize/pluralize.pipe.js +2 -2
  499. package/esm5/providers/is-mobile-resolution.provider.js +2 -2
  500. package/esm5/providers/mode.provider.js +2 -2
  501. package/esm5/services/hint.service.js +2 -2
  502. package/esm5/services/night-theme.service.js +4 -4
  503. package/esm5/services/svg.service.js +4 -4
  504. package/esm5/tokens/animation-options.js +2 -2
  505. package/esm5/tokens/animations-duration.js +2 -2
  506. package/esm5/tokens/assert-enabled.js +2 -2
  507. package/esm5/tokens/data-list-accessor.js +2 -2
  508. package/esm5/tokens/data-list-host.js +2 -2
  509. package/esm5/tokens/document-or-shadow-root.js +2 -2
  510. package/esm5/tokens/dropdown-directive.js +2 -2
  511. package/esm5/tokens/element-ref.js +2 -2
  512. package/esm5/tokens/first-day-of-week.js +2 -2
  513. package/esm5/tokens/i18n.js +10 -10
  514. package/esm5/tokens/icon-place.js +3 -3
  515. package/esm5/tokens/icons-path.js +2 -2
  516. package/esm5/tokens/icons.js +2 -2
  517. package/esm5/tokens/is-mobile-resolution.js +3 -3
  518. package/esm5/tokens/media.js +2 -2
  519. package/esm5/tokens/mode.js +2 -2
  520. package/esm5/tokens/notification-options.js +3 -3
  521. package/esm5/tokens/number-format.js +3 -3
  522. package/esm5/tokens/option-content.js +2 -2
  523. package/esm5/tokens/ordered-short-week-days.js +2 -2
  524. package/esm5/tokens/scroll-ref.js +2 -2
  525. package/esm5/tokens/svg-content-processor.js +2 -2
  526. package/esm5/tokens/svg-src-processor.js +2 -2
  527. package/esm5/tokens/textfield-appearance.js +2 -2
  528. package/esm5/tokens/textfield-host.js +2 -2
  529. package/esm5/tokens/theme.js +3 -3
  530. package/esm5/tokens/value-accessor.js +2 -2
  531. package/esm5/utils/dom/are-css-vars-supported.js +2 -2
  532. package/esm5/utils/dom/check-fixed-position.js +3 -3
  533. package/esm5/utils/dom/get-safe-area-size.js +4 -4
  534. package/esm5/utils/dom/process-icon.js +11 -11
  535. package/esm5/utils/format/format-number.js +5 -5
  536. package/esm5/utils/format/format-phone.js +9 -9
  537. package/esm5/utils/format/get-fractional-part-padded.js +3 -3
  538. package/esm5/utils/format/number-to-string-without-exp.js +3 -3
  539. package/esm5/utils/format/other-decimal-symbol.js +2 -2
  540. package/esm5/utils/mask/create-auto-corrected-money-pipe.js +12 -12
  541. package/esm5/utils/mask/create-correction-mask.js +3 -3
  542. package/esm5/utils/mask/create-number-mask.js +13 -13
  543. package/esm5/utils/mask/masked-money-value-is-empty.js +3 -3
  544. package/esm5/utils/mask/masked-number-string-to-number.js +2 -2
  545. package/esm5/utils/miscellaneous/color-fallback.js +8 -8
  546. package/esm5/utils/miscellaneous/icons-path-factory.js +3 -3
  547. package/esm5/utils/miscellaneous/is-presumed-html-string.js +2 -2
  548. package/esm5/utils/miscellaneous/size-bigger.js +3 -3
  549. package/esm5/utils/polyfills/inner-html.js +5 -5
  550. package/fesm2015/taiga-ui-core-abstract.js +15 -15
  551. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  552. package/fesm2015/taiga-ui-core-animations.js +138 -138
  553. package/fesm2015/taiga-ui-core-animations.js.map +1 -1
  554. package/fesm2015/taiga-ui-core-components-alert.js +13 -13
  555. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  556. package/fesm2015/taiga-ui-core-components-button.js +16 -16
  557. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  558. package/fesm2015/taiga-ui-core-components-calendar.js +3 -3
  559. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  560. package/fesm2015/taiga-ui-core-components-data-list.js +33 -33
  561. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  562. package/fesm2015/taiga-ui-core-components-dialog.js +24 -24
  563. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  564. package/fesm2015/taiga-ui-core-components-dropdown-box.js +40 -40
  565. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  566. package/fesm2015/taiga-ui-core-components-error.js +6 -6
  567. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  568. package/fesm2015/taiga-ui-core-components-expand.js +14 -14
  569. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  570. package/fesm2015/taiga-ui-core-components-group.js +21 -19
  571. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  572. package/fesm2015/taiga-ui-core-components-hints-host.js +47 -47
  573. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  574. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +12 -12
  575. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  576. package/fesm2015/taiga-ui-core-components-label.js +6 -6
  577. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  578. package/fesm2015/taiga-ui-core-components-link.js +11 -11
  579. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  580. package/fesm2015/taiga-ui-core-components-loader.js +4 -4
  581. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  582. package/fesm2015/taiga-ui-core-components-notification.js +10 -10
  583. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  584. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  585. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  586. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +9 -9
  587. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  588. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +4 -4
  589. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  590. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +57 -57
  591. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  592. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  593. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  594. package/fesm2015/taiga-ui-core-components-root.js +6 -6
  595. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  596. package/fesm2015/taiga-ui-core-components-scroll-controls.js +28 -28
  597. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  598. package/fesm2015/taiga-ui-core-components-scrollbar.js +10 -10
  599. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  600. package/fesm2015/taiga-ui-core-components-svg.js +17 -17
  601. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  602. package/fesm2015/taiga-ui-core-components-theme-night.js +2 -2
  603. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  604. package/fesm2015/taiga-ui-core-components-tooltip.js +9 -9
  605. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  606. package/fesm2015/taiga-ui-core-constants.js +17 -17
  607. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  608. package/fesm2015/taiga-ui-core-directives-color.js +6 -6
  609. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  610. package/fesm2015/taiga-ui-core-directives-described-by.js +6 -6
  611. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  612. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js +11 -11
  613. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  614. package/fesm2015/taiga-ui-core-directives-dropdown.js +2 -2
  615. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  616. package/fesm2015/taiga-ui-core-directives-hint-controller.js +8 -8
  617. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  618. package/fesm2015/taiga-ui-core-directives-hint.js +7 -7
  619. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  620. package/fesm2015/taiga-ui-core-directives-manual-hint.js +4 -4
  621. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  622. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -1
  623. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  624. package/fesm2015/taiga-ui-core-directives-mode.js +2 -2
  625. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  626. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +5 -5
  627. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  628. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -1
  629. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  630. package/fesm2015/taiga-ui-core-directives-table-mode.js +2 -2
  631. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  632. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +35 -35
  633. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  634. package/fesm2015/taiga-ui-core-directives-wrapper.js +9 -9
  635. package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
  636. package/fesm2015/taiga-ui-core-enums.js +1 -0
  637. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  638. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  639. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  640. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  641. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  642. package/fesm2015/taiga-ui-core-observables.js +2 -2
  643. package/fesm2015/taiga-ui-core-observables.js.map +1 -1
  644. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  645. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  646. package/fesm2015/taiga-ui-core-pipes-format-number.js +1 -1
  647. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  648. package/fesm2015/taiga-ui-core-pipes-format-phone.js +3 -3
  649. package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
  650. package/fesm2015/taiga-ui-core-pipes-month.js +1 -1
  651. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  652. package/fesm2015/taiga-ui-core-pipes-pluralize.js +1 -1
  653. package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +1 -1
  654. package/fesm2015/taiga-ui-core-providers.js +2 -2
  655. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  656. package/fesm2015/taiga-ui-core-services.js +7 -7
  657. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  658. package/fesm2015/taiga-ui-core-tokens.js +40 -40
  659. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  660. package/fesm2015/taiga-ui-core-utils-dom.js +16 -16
  661. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  662. package/fesm2015/taiga-ui-core-utils-format.js +17 -17
  663. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  664. package/fesm2015/taiga-ui-core-utils-mask.js +27 -27
  665. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  666. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +12 -12
  667. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  668. package/fesm2015/taiga-ui-core-utils-polyfills.js +4 -4
  669. package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
  670. package/fesm5/taiga-ui-core-abstract.js +15 -15
  671. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  672. package/fesm5/taiga-ui-core-animations.js +138 -138
  673. package/fesm5/taiga-ui-core-animations.js.map +1 -1
  674. package/fesm5/taiga-ui-core-components-alert.js +13 -13
  675. package/fesm5/taiga-ui-core-components-alert.js.map +1 -1
  676. package/fesm5/taiga-ui-core-components-button.js +16 -16
  677. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  678. package/fesm5/taiga-ui-core-components-calendar.js +3 -3
  679. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  680. package/fesm5/taiga-ui-core-components-data-list.js +34 -34
  681. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  682. package/fesm5/taiga-ui-core-components-dialog.js +24 -24
  683. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  684. package/fesm5/taiga-ui-core-components-dropdown-box.js +40 -40
  685. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  686. package/fesm5/taiga-ui-core-components-error.js +6 -6
  687. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  688. package/fesm5/taiga-ui-core-components-expand.js +14 -14
  689. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  690. package/fesm5/taiga-ui-core-components-group.js +19 -19
  691. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  692. package/fesm5/taiga-ui-core-components-hints-host.js +47 -47
  693. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  694. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +12 -12
  695. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  696. package/fesm5/taiga-ui-core-components-label.js +6 -6
  697. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  698. package/fesm5/taiga-ui-core-components-link.js +11 -11
  699. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  700. package/fesm5/taiga-ui-core-components-loader.js +4 -4
  701. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  702. package/fesm5/taiga-ui-core-components-notification.js +10 -10
  703. package/fesm5/taiga-ui-core-components-notification.js.map +1 -1
  704. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  705. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  706. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +9 -9
  707. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  708. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +4 -4
  709. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  710. package/fesm5/taiga-ui-core-components-primitive-textfield.js +57 -57
  711. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  712. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  713. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  714. package/fesm5/taiga-ui-core-components-root.js +6 -6
  715. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  716. package/fesm5/taiga-ui-core-components-scroll-controls.js +28 -28
  717. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  718. package/fesm5/taiga-ui-core-components-scrollbar.js +10 -10
  719. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  720. package/fesm5/taiga-ui-core-components-svg.js +17 -17
  721. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  722. package/fesm5/taiga-ui-core-components-theme-night.js +2 -2
  723. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  724. package/fesm5/taiga-ui-core-components-tooltip.js +9 -9
  725. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  726. package/fesm5/taiga-ui-core-constants.js +17 -17
  727. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  728. package/fesm5/taiga-ui-core-directives-color.js +6 -6
  729. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  730. package/fesm5/taiga-ui-core-directives-described-by.js +8 -8
  731. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  732. package/fesm5/taiga-ui-core-directives-dropdown-controller.js +11 -11
  733. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  734. package/fesm5/taiga-ui-core-directives-dropdown.js +2 -2
  735. package/fesm5/taiga-ui-core-directives-dropdown.js.map +1 -1
  736. package/fesm5/taiga-ui-core-directives-hint-controller.js +8 -8
  737. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  738. package/fesm5/taiga-ui-core-directives-hint.js +7 -7
  739. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  740. package/fesm5/taiga-ui-core-directives-manual-hint.js +4 -4
  741. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  742. package/fesm5/taiga-ui-core-directives-mask-accessor.js +1 -1
  743. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  744. package/fesm5/taiga-ui-core-directives-mode.js +2 -2
  745. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  746. package/fesm5/taiga-ui-core-directives-pointer-hint.js +5 -5
  747. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  748. package/fesm5/taiga-ui-core-directives-scroll-into-view.js +1 -1
  749. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  750. package/fesm5/taiga-ui-core-directives-table-mode.js +2 -2
  751. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  752. package/fesm5/taiga-ui-core-directives-textfield-controller.js +35 -35
  753. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  754. package/fesm5/taiga-ui-core-directives-wrapper.js +9 -9
  755. package/fesm5/taiga-ui-core-directives-wrapper.js.map +1 -1
  756. package/fesm5/taiga-ui-core-enums.js +1 -0
  757. package/fesm5/taiga-ui-core-enums.js.map +1 -1
  758. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  759. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  760. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  761. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  762. package/fesm5/taiga-ui-core-observables.js +2 -2
  763. package/fesm5/taiga-ui-core-observables.js.map +1 -1
  764. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  765. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  766. package/fesm5/taiga-ui-core-pipes-format-number.js +1 -1
  767. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  768. package/fesm5/taiga-ui-core-pipes-format-phone.js +3 -3
  769. package/fesm5/taiga-ui-core-pipes-format-phone.js.map +1 -1
  770. package/fesm5/taiga-ui-core-pipes-month.js +1 -1
  771. package/fesm5/taiga-ui-core-pipes-month.js.map +1 -1
  772. package/fesm5/taiga-ui-core-pipes-pluralize.js +1 -1
  773. package/fesm5/taiga-ui-core-pipes-pluralize.js.map +1 -1
  774. package/fesm5/taiga-ui-core-providers.js +2 -2
  775. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  776. package/fesm5/taiga-ui-core-services.js +7 -7
  777. package/fesm5/taiga-ui-core-services.js.map +1 -1
  778. package/fesm5/taiga-ui-core-tokens.js +40 -40
  779. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  780. package/fesm5/taiga-ui-core-utils-dom.js +16 -16
  781. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  782. package/fesm5/taiga-ui-core-utils-format.js +17 -17
  783. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  784. package/fesm5/taiga-ui-core-utils-mask.js +28 -28
  785. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  786. package/fesm5/taiga-ui-core-utils-miscellaneous.js +12 -12
  787. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  788. package/fesm5/taiga-ui-core-utils-polyfills.js +4 -4
  789. package/fesm5/taiga-ui-core-utils-polyfills.js.map +1 -1
  790. package/package.json +4 -4
  791. package/styles/markup/tui-table.less +33 -0
  792. package/styles/mixins/mixins.less +1 -2
  793. package/styles/mixins/textfield.less +2 -2
  794. package/styles/theme/wrapper/secondary-destructive.less +29 -0
  795. package/styles/theme/wrapper.less +1 -0
@@ -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: 3.0 Remove export in ivy compilation\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: 3.0 delete:\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<readonly 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<readonly TuiDay[]> {\n if (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): boolean =>\n day.year < relativeToMonth.year || day.month < relativeToMonth.month;\n\n const isNextMonthDay = (day: TuiDay, relativeToMonth = month): boolean =>\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,MAAM,uBAAuB,GAAG,CACnC,KAAe,EACf,cAA4B;IAE5B,MAAM,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,MAAM,qBAAqB,GAAG,CAAC,EAClC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,cAAc,GAejB;IACG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;IAErD,IAAI,GAAG,GACH,QAAQ,GAAG,YAAY;QACvB,QAAQ;Q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+ {"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: 3.0 Remove export in ivy compilation\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: 3.0 delete:\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<readonly 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<readonly TuiDay[]> {\n if (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): boolean =>\n day.year < relativeToMonth.year || day.month < relativeToMonth.month;\n\n const isNextMonthDay = (day: TuiDay, relativeToMonth = month): boolean =>\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,MAAM,uBAAuB,GAAG,CACnC,KAAe,EACf,cAA4B;IAE5B,MAAM,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,MAAM,qBAAqB,GAAG,CAAC,EAClC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,cAAc,GAejB;IACG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;IAErD,IAAI,GAAG,GACH,QAAQ,GAAG,YAAY;QACvB,QAAQ;QACR,uBAAuB,CAAC,KAAK,EAAE,cAAc,CAAC;QAC9C,CAAC,CAAC;IAEN,IAAI,GAAG,GAAG,KAAK,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FORMAT,] }] }
25
25
  ];
26
26
  TuiFormatNumberPipe = __decorate([
27
- Pipe({ name: 'tuiFormatNumber' }),
27
+ Pipe({ name: `tuiFormatNumber` }),
28
28
  __param(0, Inject(TUI_NUMBER_FORMAT))
29
29
  ], TuiFormatNumberPipe);
30
30
 
@@ -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 {TuiNumberFormatSettings} 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: TuiNumberFormatSettings,\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 * @param zeroPadding enable zeros at the end of decimal part\n */\n transform(\n value: number,\n decimalLimit: number | null = null,\n decimalSeparator: string = this.numberFormat.decimalSeparator,\n thousandSeparator: string = this.numberFormat.thousandSeparator,\n zeroPadding: boolean = this.numberFormat.zeroPadding,\n ): string {\n return formatNumber(\n value,\n decimalLimit,\n decimalSeparator,\n thousandSeparator,\n zeroPadding,\n );\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":";;;;;IAMa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YAEqB,YAAqC;QAArC,iBAAY,GAAZ,YAAY,CAAyB;KACtD;;;;;;;;;;IAWJ,SAAS,CACL,KAAa,EACb,eAA8B,IAAI,EAClC,mBAA2B,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAC7D,oBAA4B,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAC/D,cAAuB,IAAI,CAAC,YAAY,CAAC,WAAW;QAEpD,OAAO,YAAY,CACf,KAAK,EACL,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,CACd,CAAC;KACL;EACJ;;4CA5BQ,MAAM,SAAC,iBAAiB;;AAFpB,mBAAmB;IAD/B,IAAI,CAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC,CAAC;IAGvB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAFrB,mBAAmB,CA8B/B;;IC5BY,yBAAyB,GAAtC,MAAa,yBAAyB;EAAG;AAA5B,yBAAyB;IAJrC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,mBAAmB,CAAC;QAC9B,YAAY,EAAE,CAAC,mBAAmB,CAAC;KACtC,CAAC;GACW,yBAAyB,CAAG;;ACRzC;;;;;;"}
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 {TuiNumberFormatSettings} 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: TuiNumberFormatSettings,\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 * @param zeroPadding enable zeros at the end of decimal part\n */\n transform(\n value: number,\n decimalLimit: number | null = null,\n decimalSeparator: string = this.numberFormat.decimalSeparator,\n thousandSeparator: string = this.numberFormat.thousandSeparator,\n zeroPadding: boolean = this.numberFormat.zeroPadding,\n ): string {\n return formatNumber(\n value,\n decimalLimit,\n decimalSeparator,\n thousandSeparator,\n zeroPadding,\n );\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":";;;;;IAMa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YAEqB,YAAqC;QAArC,iBAAY,GAAZ,YAAY,CAAyB;KACtD;;;;;;;;;;IAWJ,SAAS,CACL,KAAa,EACb,eAA8B,IAAI,EAClC,mBAA2B,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAC7D,oBAA4B,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAC/D,cAAuB,IAAI,CAAC,YAAY,CAAC,WAAW;QAEpD,OAAO,YAAY,CACf,KAAK,EACL,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,CACd,CAAC;KACL;EACJ;;4CA5BQ,MAAM,SAAC,iBAAiB;;AAFpB,mBAAmB;IAD/B,IAAI,CAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC,CAAC;IAGvB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAFrB,mBAAmB,CA8B/B;;IC5BY,yBAAyB,GAAtC,MAAa,yBAAyB;EAAG;AAA5B,yBAAyB;IAJrC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,mBAAmB,CAAC;QAC9B,YAAY,EAAE,CAAC,mBAAmB,CAAC;KACtC,CAAC;GACW,yBAAyB,CAAG;;ACRzC;;;;;;"}
@@ -11,13 +11,13 @@ let TuiFormatPhonePipe = class TuiFormatPhonePipe {
11
11
  * @param phoneMask
12
12
  * @return formatted phone number string +7(XXX)XXX-XX-XX
13
13
  */
14
- transform(value, countryCode = `${CHAR_PLUS}7`, phoneMask = '(###) ###-##-##') {
15
- tuiAssert.assert(value !== undefined, 'Undefined was passed to tuiFormatPhone pipe');
14
+ transform(value, countryCode = `${CHAR_PLUS}7`, phoneMask = `(###) ###-##-##`) {
15
+ tuiAssert.assert(value !== undefined, `Undefined was passed to tuiFormatPhone pipe`);
16
16
  return formatPhone(value, countryCode, phoneMask);
17
17
  }
18
18
  };
19
19
  TuiFormatPhonePipe = __decorate([
20
- Pipe({ name: 'tuiFormatPhone' })
20
+ Pipe({ name: `tuiFormatPhone` })
21
21
  ], TuiFormatPhonePipe);
22
22
 
23
23
  let TuiFormatPhonePipeModule = class TuiFormatPhonePipeModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-pipes-format-phone.js","sources":["ng://@taiga-ui/core/pipes/format-phone/format-phone.pipe.ts","ng://@taiga-ui/core/pipes/format-phone/format-phone.module.ts","ng://@taiga-ui/core/pipes/format-phone/taiga-ui-core-pipes-format-phone.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk';\nimport {formatPhone} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: 'tuiFormatPhone'})\nexport class TuiFormatPhonePipe implements PipeTransform {\n /**\n * Formats phone number string of +7XXXXXXXXXX fomrat with adding separator symbols\n * @param value\n * @param countryCode\n * @param phoneMask\n * @return formatted phone number string +7(XXX)XXX-XX-XX\n */\n transform(\n value: string,\n countryCode: string = `${CHAR_PLUS}7`,\n phoneMask: string = '(###) ###-##-##',\n ): string {\n tuiAssert.assert(\n value !== undefined,\n 'Undefined was passed to tuiFormatPhone pipe',\n );\n\n return formatPhone(value, countryCode, phoneMask);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatPhonePipe} from './format-phone.pipe';\n\n@NgModule({\n exports: [TuiFormatPhonePipe],\n declarations: [TuiFormatPhonePipe],\n})\nexport class TuiFormatPhonePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAKa,kBAAkB,GAA/B,MAAa,kBAAkB;;;;;;;;IAQ3B,SAAS,CACL,KAAa,EACb,cAAsB,GAAG,SAAS,GAAG,EACrC,YAAoB,iBAAiB;QAErC,SAAS,CAAC,MAAM,CACZ,KAAK,KAAK,SAAS,EACnB,6CAA6C,CAChD,CAAC;QAEF,OAAO,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;KACrD;EACJ;AApBY,kBAAkB;IAD9B,IAAI,CAAC,EAAC,IAAI,EAAE,gBAAgB,EAAC,CAAC;GAClB,kBAAkB,CAoB9B;;ICjBY,wBAAwB,GAArC,MAAa,wBAAwB;EAAG;AAA3B,wBAAwB;IAJpC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,kBAAkB,CAAC;QAC7B,YAAY,EAAE,CAAC,kBAAkB,CAAC;KACrC,CAAC;GACW,wBAAwB,CAAG;;ACRxC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-pipes-format-phone.js","sources":["ng://@taiga-ui/core/pipes/format-phone/format-phone.pipe.ts","ng://@taiga-ui/core/pipes/format-phone/format-phone.module.ts","ng://@taiga-ui/core/pipes/format-phone/taiga-ui-core-pipes-format-phone.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk';\nimport {formatPhone} from '@taiga-ui/core/utils/format';\n\n@Pipe({name: `tuiFormatPhone`})\nexport class TuiFormatPhonePipe implements PipeTransform {\n /**\n * Formats phone number string of +7XXXXXXXXXX fomrat with adding separator symbols\n * @param value\n * @param countryCode\n * @param phoneMask\n * @return formatted phone number string +7(XXX)XXX-XX-XX\n */\n transform(\n value: string,\n countryCode: string = `${CHAR_PLUS}7`,\n phoneMask: string = `(###) ###-##-##`,\n ): string {\n tuiAssert.assert(\n value !== undefined,\n `Undefined was passed to tuiFormatPhone pipe`,\n );\n\n return formatPhone(value, countryCode, phoneMask);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatPhonePipe} from './format-phone.pipe';\n\n@NgModule({\n exports: [TuiFormatPhonePipe],\n declarations: [TuiFormatPhonePipe],\n})\nexport class TuiFormatPhonePipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAKa,kBAAkB,GAA/B,MAAa,kBAAkB;;;;;;;;IAQ3B,SAAS,CACL,KAAa,EACb,cAAsB,GAAG,SAAS,GAAG,EACrC,YAAoB,iBAAiB;QAErC,SAAS,CAAC,MAAM,CACZ,KAAK,KAAK,SAAS,EACnB,6CAA6C,CAChD,CAAC;QAEF,OAAO,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;KACrD;EACJ;AApBY,kBAAkB;IAD9B,IAAI,CAAC,EAAC,IAAI,EAAE,gBAAgB,EAAC,CAAC;GAClB,kBAAkB,CAoB9B;;ICjBY,wBAAwB,GAArC,MAAa,wBAAwB;EAAG;AAA3B,wBAAwB;IAJpC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,kBAAkB,CAAC;QAC7B,YAAY,EAAE,CAAC,kBAAkB,CAAC;KACrC,CAAC;GACW,wBAAwB,CAAG;;ACRxC;;;;;;"}
@@ -17,7 +17,7 @@ TuiMonthPipe.ctorParameters = () => [
17
17
  { type: Observable, decorators: [{ type: Inject, args: [TUI_MONTHS,] }] }
18
18
  ];
19
19
  TuiMonthPipe = __decorate([
20
- Pipe({ name: 'tuiMonth' }),
20
+ Pipe({ name: `tuiMonth` }),
21
21
  __param(0, Inject(TUI_MONTHS))
22
22
  ], TuiMonthPipe);
23
23
 
@@ -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';\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;IAEa,YAAY,GAAzB,MAAa,YAAY;IACrB,YAAiD,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;KAAI;IAElF,SAAS,CAAC,EAAC,KAAK,EAAW;QACvB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1D;EACJ;;YAL6D,UAAU,uBAAvD,MAAM,SAAC,UAAU;;AADrB,YAAY;IADxB,IAAI,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;IAER,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GADtB,YAAY,CAMxB;;ICNY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,YAAY,EAAE,CAAC,YAAY,CAAC;KAC/B,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
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;IAEa,YAAY,GAAzB,MAAa,YAAY;IACrB,YAAiD,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;KAAI;IAElF,SAAS,CAAC,EAAC,KAAK,EAAW;QACvB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1D;EACJ;;YAL6D,UAAU,uBAAvD,MAAM,SAAC,UAAU;;AADrB,YAAY;IADxB,IAAI,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;IAER,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GADtB,YAAY,CAMxB;;ICNY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,YAAY,EAAE,CAAC,YAAY,CAAC;KAC/B,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -17,7 +17,7 @@ let TuiPluralizePipe = class TuiPluralizePipe {
17
17
  }
18
18
  };
19
19
  TuiPluralizePipe = __decorate([
20
- Pipe({ name: 'tuiPluralize' })
20
+ Pipe({ name: `tuiPluralize` })
21
21
  ], TuiPluralizePipe);
22
22
 
23
23
  /** @deprecated use Angular built-in pipe https://angular.io/api/common/I18nPluralPipe */
@@ -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';\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,gBAAgB,GAA7B,MAAa,gBAAgB;;;;;;IAMzB,SAAS,CAAC,KAAa,EAAE,IAAkB;QACvC,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACjC;EACJ;AATY,gBAAgB;IAD5B,IAAI,CAAC,EAAC,IAAI,EAAE,cAAc,EAAC,CAAC;GAChB,gBAAgB,CAS5B;;ACdD;IAKa,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;KACnC,CAAC;GACW,sBAAsB,CAAG;;ACTtC;;;;;;"}
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,gBAAgB,GAA7B,MAAa,gBAAgB;;;;;;IAMzB,SAAS,CAAC,KAAa,EAAE,IAAkB;QACvC,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACjC;EACJ;AATY,gBAAgB;IAD5B,IAAI,CAAC,EAAC,IAAI,EAAE,cAAc,EAAC,CAAC;GAChB,gBAAgB,CAS5B;;ACdD;IAKa,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,YAAY,EAAE,CAAC,gBAAgB,CAAC;KACnC,CAAC;GACW,sBAAsB,CAAG;;ACTtC;;;;;;"}
@@ -10,7 +10,7 @@ import { watch } from '@taiga-ui/cdk';
10
10
  */
11
11
  // eslint-disable-next-line @typescript-eslint/naming-convention
12
12
  function isMobileResFactory(mobile$, { nativeElement }) {
13
- nativeElement['$.class._mobile'] = mobile$;
13
+ nativeElement[`$.class._mobile`] = mobile$;
14
14
  return mobile$;
15
15
  }
16
16
  const TUI_IS_MOBILE_RES_PROVIDER = {
@@ -28,7 +28,7 @@ function modeFactory(mode, { nativeElement }) {
28
28
  const mode$ = mode
29
29
  ? mode.change$.pipe(startWith(null), map(() => mode.mode))
30
30
  : of(null);
31
- nativeElement['$.data-mode.attr'] = mode$;
31
+ nativeElement[`$.data-mode.attr`] = mode$;
32
32
  return mode$;
33
33
  }
34
34
  const MODE_PROVIDER = {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-providers.js","sources":["ng://@taiga-ui/core/providers/is-mobile-resolution.provider.ts","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, Provider, SkipSelf} from '@angular/core';\nimport {TUI_IS_MOBILE_RES} from '@taiga-ui/core/tokens';\nimport {Observable} from 'rxjs';\n\n/**\n * @deprecated: use {@link tuiIsMobileResFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isMobileResFactory(\n mobile$: Observable<boolean>,\n {nativeElement}: ElementRef,\n): Observable<boolean> {\n nativeElement['$.class._mobile'] = mobile$;\n\n return mobile$;\n}\n\nexport const TUI_IS_MOBILE_RES_PROVIDER: Provider = {\n provide: TUI_IS_MOBILE_RES,\n deps: [[new SkipSelf(), TUI_IS_MOBILE_RES], ElementRef],\n useFactory: isMobileResFactory,\n};\n\nexport const tuiIsMobileResFactory = isMobileResFactory;\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 {Observable, of} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiModeFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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 : of(null);\n\n nativeElement['$.data-mode.attr'] = mode$;\n\n return mode$;\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n\nexport const tuiModeFactory = modeFactory;\n","import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiWatchedControllerFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\nexport const tuiWatchedControllerFactory = watchedControllerFactory;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAIA;;;AAGA;SACgB,kBAAkB,CAC9B,OAA4B,EAC5B,EAAC,aAAa,EAAa;IAE3B,aAAa,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC;IAE3C,OAAO,OAAO,CAAC;AACnB,CAAC;MAEY,0BAA0B,GAAa;IAChD,OAAO,EAAE,iBAAiB;IAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,iBAAiB,CAAC,EAAE,UAAU,CAAC;IACvD,UAAU,EAAE,kBAAkB;EAChC;MAEW,qBAAqB,GAAG;;AChBrC;;;AAGA;SACgB,WAAW,CACvB,IAA6B,EAC7B,EAAC,aAAa,EAAa;IAE3B,MAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CACvB;UACD,EAAE,CAAC,IAAI,CAAC,CAAC;IAEf,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC;IAE1C,OAAO,KAAK,CAAC;AACjB,CAAC;MAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;EACzB;MAEW,cAAc,GAAG;;AC5B9B;;;AAGA;SACgB,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,CAAC;MAEY,2BAA2B,GAAG;;ACnB3C;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-providers.js","sources":["ng://@taiga-ui/core/providers/is-mobile-resolution.provider.ts","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, Provider, SkipSelf} from '@angular/core';\nimport {TUI_IS_MOBILE_RES} from '@taiga-ui/core/tokens';\nimport {Observable} from 'rxjs';\n\n/**\n * @deprecated: use {@link tuiIsMobileResFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isMobileResFactory(\n mobile$: Observable<boolean>,\n {nativeElement}: ElementRef,\n): Observable<boolean> {\n nativeElement[`$.class._mobile`] = mobile$;\n\n return mobile$;\n}\n\nexport const TUI_IS_MOBILE_RES_PROVIDER: Provider = {\n provide: TUI_IS_MOBILE_RES,\n deps: [[new SkipSelf(), TUI_IS_MOBILE_RES], ElementRef],\n useFactory: isMobileResFactory,\n};\n\nexport const tuiIsMobileResFactory = isMobileResFactory;\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 {Observable, of} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiModeFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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 : of(null);\n\n nativeElement[`$.data-mode.attr`] = mode$;\n\n return mode$;\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n\nexport const tuiModeFactory = modeFactory;\n","import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiWatchedControllerFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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\nexport const tuiWatchedControllerFactory = watchedControllerFactory;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAIA;;;AAGA;SACgB,kBAAkB,CAC9B,OAA4B,EAC5B,EAAC,aAAa,EAAa;IAE3B,aAAa,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC;IAE3C,OAAO,OAAO,CAAC;AACnB,CAAC;MAEY,0BAA0B,GAAa;IAChD,OAAO,EAAE,iBAAiB;IAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,iBAAiB,CAAC,EAAE,UAAU,CAAC;IACvD,UAAU,EAAE,kBAAkB;EAChC;MAEW,qBAAqB,GAAG;;AChBrC;;;AAGA;SACgB,WAAW,CACvB,IAA6B,EAC7B,EAAC,aAAa,EAAa;IAE3B,MAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CACvB;UACD,EAAE,CAAC,IAAI,CAAC,CAAC;IAEf,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC;IAE1C,OAAO,KAAK,CAAC;AACjB,CAAC;MAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;EACzB;MAEW,cAAc,GAAG;;AC5B9B;;;AAGA;SACgB,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,CAAC;MAEY,2BAA2B,GAAG;;ACnB3C;;;;;;"}
@@ -57,15 +57,15 @@ let TuiHintService = class TuiHintService extends BehaviorSubject {
57
57
  TuiHintService.ɵprov = ɵɵdefineInjectable({ factory: function TuiHintService_Factory() { return new TuiHintService(); }, token: TuiHintService, providedIn: "root" });
58
58
  TuiHintService = __decorate([
59
59
  Injectable({
60
- providedIn: 'root',
60
+ providedIn: `root`,
61
61
  })
62
62
  ], TuiHintService);
63
63
 
64
64
  // @dynamic
65
65
  let TuiNightThemeService = class TuiNightThemeService extends Observable {
66
66
  constructor(windowRef) {
67
- const media = windowRef.matchMedia('(prefers-color-scheme: dark)');
68
- const media$ = fromEvent(media, 'change').pipe(startWith(null), map(() => media.matches), share());
67
+ const media = windowRef.matchMedia(`(prefers-color-scheme: dark)`);
68
+ const media$ = fromEvent(media, `change`).pipe(startWith(null), map(() => media.matches), share());
69
69
  super(subscriber => media$.subscribe(subscriber));
70
70
  }
71
71
  };
@@ -75,7 +75,7 @@ TuiNightThemeService.ctorParameters = () => [
75
75
  TuiNightThemeService.ɵprov = ɵɵdefineInjectable({ factory: function TuiNightThemeService_Factory() { return new TuiNightThemeService(ɵɵinject(WINDOW)); }, token: TuiNightThemeService, providedIn: "root" });
76
76
  TuiNightThemeService = __decorate([
77
77
  Injectable({
78
- providedIn: 'root',
78
+ providedIn: `root`,
79
79
  }),
80
80
  __param(0, Inject(WINDOW))
81
81
  ], TuiNightThemeService);
@@ -131,7 +131,7 @@ let TuiSvgService = class TuiSvgService {
131
131
  }
132
132
  const parsed = this.parseSrc(name, src);
133
133
  if (!parsed) {
134
- tuiAssert.assert(false, 'Unable to parse given SVG src');
134
+ tuiAssert.assert(false, `Unable to parse given SVG src`);
135
135
  return;
136
136
  }
137
137
  map.set(name, parsed);
@@ -143,7 +143,7 @@ let TuiSvgService = class TuiSvgService {
143
143
  sanitize(src) {
144
144
  return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer
145
145
  ? this.tuiSanitizer.sanitize(SecurityContext.HTML, src)
146
- : this.sanitizer.sanitize(SecurityContext.HTML, src)) || '');
146
+ : this.sanitizer.sanitize(SecurityContext.HTML, src)) || ``);
147
147
  }
148
148
  };
149
149
  TuiSvgService.ctorParameters = () => [
@@ -154,7 +154,7 @@ TuiSvgService.ctorParameters = () => [
154
154
  TuiSvgService.ɵprov = ɵɵdefineInjectable({ factory: function TuiSvgService_Factory() { return new TuiSvgService(ɵɵinject(TUI_SANITIZER, 8), ɵɵinject(DomSanitizer), ɵɵinject(TUI_ICONS)); }, token: TuiSvgService, providedIn: "root" });
155
155
  TuiSvgService = __decorate([
156
156
  Injectable({
157
- providedIn: 'root',
157
+ providedIn: `root`,
158
158
  }),
159
159
  __param(0, Optional()),
160
160
  __param(0, Inject(TUI_SANITIZER)),
@@ -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: 3.0 can it be removed? It prevented seps cycling before 2.0\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<readonly AbstractTuiHint[]> {\n /**\n * TODO:\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: readonly TuiHintDirective[] = [];\n\n constructor() {\n super([]);\n }\n\n add(directive: AbstractTuiHint): void {\n this.next(this.value.concat(directive));\n }\n\n remove(directive: AbstractTuiHint): void {\n if (this.value.includes(directive)) {\n this.next(this.value.filter(hint => hint !== directive));\n }\n }\n\n register(directive: TuiHintDirective): void {\n this.directives = [...this.directives, directive];\n }\n\n unregister(directive: TuiHintDirective): void {\n this.remove(directive);\n this.directives = this.directives.filter(dir => dir !== directive);\n }\n\n showHintForId(id: string): void {\n const directive = this.findDirectiveWithHintId(id);\n\n if (directive) {\n this.add(directive);\n }\n }\n\n hideHintForId(id: string): void {\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>): void {\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>): void {\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;;;IAMa,cAAc,GAA3B,MAAa,cAAe,SAAQ,eAA2C;IAS3E;QACI,KAAK,CAAC,EAAE,CAAC,CAAC;;;;;;;QAHN,eAAU,GAAgC,EAAE,CAAC;KAIpD;IAED,GAAG,CAAC,SAA0B;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;KAC3C;IAED,MAAM,CAAC,SAA0B;QAC7B,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAChC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC;SAC5D;KACJ;IAED,QAAQ,CAAC,SAA2B;QAChC,IAAI,CAAC,UAAU,GAAG,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;KACrD;IAED,UAAU,CAAC,SAA2B;QAClC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,SAAS,CAAC,CAAC;KACtE;IAED,aAAa,CAAC,EAAU;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;QAEnD,IAAI,SAAS,EAAE;YACX,IAAI,CAAC,G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;KACrB,CAAC;IAOO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IAErB,WAAA,MAAM,CAAC,YAAY,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAVb,aAAa,CA4DzB;;AC1ED;;;;;;"}
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: 3.0 can it be removed? It prevented seps cycling before 2.0\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<readonly AbstractTuiHint[]> {\n /**\n * TODO:\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: readonly TuiHintDirective[] = [];\n\n constructor() {\n super([]);\n }\n\n add(directive: AbstractTuiHint): void {\n this.next(this.value.concat(directive));\n }\n\n remove(directive: AbstractTuiHint): void {\n if (this.value.includes(directive)) {\n this.next(this.value.filter(hint => hint !== directive));\n }\n }\n\n register(directive: TuiHintDirective): void {\n this.directives = [...this.directives, directive];\n }\n\n unregister(directive: TuiHintDirective): void {\n this.remove(directive);\n this.directives = this.directives.filter(dir => dir !== directive);\n }\n\n showHintForId(id: string): void {\n const directive = this.findDirectiveWithHintId(id);\n\n if (directive) {\n this.add(directive);\n }\n }\n\n hideHintForId(id: string): void {\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>): void {\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>): void {\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;;;IAMa,cAAc,GAA3B,MAAa,cAAe,SAAQ,eAA2C;IAS3E;QACI,KAAK,CAAC,EAAE,CAAC,CAAC;;;;;;;QAHN,eAAU,GAAgC,EAAE,CAAC;KAIpD;IAED,GAAG,CAAC,SAA0B;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;KAC3C;IAED,MAAM,CAAC,SAA0B;QAC7B,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ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AAQ,CAAC,IAAY,EAAE,GAAW;QACtC,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;KAChD;IAEO,QAAQ,CAAC,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;EACJ;;YApDsC,SAAS,uBAFvC,QAAQ,YACR,MAAM,SAAC,aAAa;YAE6B,YAAY,uBAA7D,MAAM,SAAC,YAAY;4CACnB,MAAM,SAAC,SAAS;;;AAVZ,aAAa;IAHzB,UAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;IAOO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IAErB,WAAA,MAAM,CAAC,YAAY,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAVb,aAAa,CA4DzB;;AC1ED;;;;;;"}
@@ -7,11 +7,11 @@ import { share, startWith, map, distinctUntilChanged } from 'rxjs/operators';
7
7
  import { svgLinearGradientProcessor } from '@taiga-ui/cdk/utils/svg';
8
8
  import { identity } from 'rxjs';
9
9
 
10
- const TUI_ANIMATIONS_DURATION = new InjectionToken('Duration of all Taiga UI animations in ms', {
10
+ const TUI_ANIMATIONS_DURATION = new InjectionToken(`Duration of all Taiga UI animations in ms`, {
11
11
  factory: () => 300,
12
12
  });
13
13
 
14
- const TUI_ANIMATION_OPTIONS = new InjectionToken('Options for Taiga UI animations', {
14
+ const TUI_ANIMATION_OPTIONS = new InjectionToken(`Options for Taiga UI animations`, {
15
15
  factory: () => ({
16
16
  params: {
17
17
  duration: inject(TUI_ANIMATIONS_DURATION),
@@ -19,54 +19,54 @@ const TUI_ANIMATION_OPTIONS = new InjectionToken('Options for Taiga UI animation
19
19
  }),
20
20
  });
21
21
 
22
- const TUI_ASSERT_ENABLED = new InjectionToken('Flag to enable assertions across Taiga UI', {
22
+ const TUI_ASSERT_ENABLED = new InjectionToken(`Flag to enable assertions across Taiga UI`, {
23
23
  factory: () => isDevMode(),
24
24
  });
25
25
 
26
- const TUI_DATA_LIST_ACCESSOR = new InjectionToken('Accessor for options');
26
+ const TUI_DATA_LIST_ACCESSOR = new InjectionToken(`Accessor for options`);
27
27
 
28
- const TUI_DATA_LIST_HOST = new InjectionToken('DataList controller');
28
+ const TUI_DATA_LIST_HOST = new InjectionToken(`DataList controller`);
29
29
 
30
- const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken('Document or ShadowRoot');
30
+ const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken(`Document or ShadowRoot`);
31
31
 
32
- const TUI_DROPDOWN_DIRECTIVE = new InjectionToken('Directive controlling TuiDropdownBoxComponent');
32
+ const TUI_DROPDOWN_DIRECTIVE = new InjectionToken(`Directive controlling TuiDropdownBoxComponent`);
33
33
 
34
- const TUI_ELEMENT_REF = new InjectionToken('ElementRef when you cannot use @Input for single time injection');
34
+ const TUI_ELEMENT_REF = new InjectionToken(`ElementRef when you cannot use @Input for single time injection`);
35
35
 
36
- const TUI_FIRST_DAY_OF_WEEK = new InjectionToken('The first day of the week index', {
36
+ const TUI_FIRST_DAY_OF_WEEK = new InjectionToken(`The first day of the week index`, {
37
37
  factory: () => 1 /* Monday */,
38
38
  });
39
39
 
40
- const TUI_MONTHS = new InjectionToken('Localized months names', {
41
- factory: extractI18n('months'),
40
+ const TUI_MONTHS = new InjectionToken(`Localized months names`, {
41
+ factory: extractI18n(`months`),
42
42
  });
43
43
  const TUI_CLOSE_WORD = new InjectionToken(`i18n 'close' word`, {
44
- factory: extractI18n('close'),
44
+ factory: extractI18n(`close`),
45
45
  });
46
46
  const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(`i18n 'Nothing found' message`, {
47
- factory: extractI18n('nothingFoundMessage'),
47
+ factory: extractI18n(`nothingFoundMessage`),
48
48
  });
49
49
  const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(`i18n of error message`, {
50
- factory: extractI18n('defaultErrorMessage'),
50
+ factory: extractI18n(`defaultErrorMessage`),
51
51
  });
52
- const TUI_SPIN_TEXTS = new InjectionToken('spin i18n texts', {
53
- factory: extractI18n('spinTexts'),
52
+ const TUI_SPIN_TEXTS = new InjectionToken(`spin i18n texts`, {
53
+ factory: extractI18n(`spinTexts`),
54
54
  });
55
- const TUI_SHORT_WEEK_DAYS = new InjectionToken('calendars i18n texts', {
56
- factory: extractI18n('shortWeekDays'),
55
+ const TUI_SHORT_WEEK_DAYS = new InjectionToken(`calendars i18n texts`, {
56
+ factory: extractI18n(`shortWeekDays`),
57
57
  });
58
58
 
59
- const TUI_ICONS_PLACE = new InjectionToken('Recommended paths to icons from documentation guide', {
60
- factory: () => 'assets/taiga-ui/icons',
59
+ const TUI_ICONS_PLACE = new InjectionToken(`Recommended paths to icons from documentation guide`, {
60
+ factory: () => `assets/taiga-ui/icons`,
61
61
  });
62
62
 
63
- const TUI_ICONS = new InjectionToken('A key/value dictionary of icon names and src to be defined with TuiSvgService', {
63
+ const TUI_ICONS = new InjectionToken(`A key/value dictionary of icon names and src to be defined with TuiSvgService`, {
64
64
  factory: () => ({}),
65
65
  });
66
66
 
67
- const TUI_ICONS_PATH = new InjectionToken('A handler to retrieve USE id for icon by name', { factory: () => iconsPathFactory(inject(TUI_ICONS_PLACE)) });
67
+ const TUI_ICONS_PATH = new InjectionToken(`A handler to retrieve USE id for icon by name`, { factory: () => iconsPathFactory(inject(TUI_ICONS_PLACE)) });
68
68
 
69
- const TUI_MEDIA = new InjectionToken('Token for media constant', {
69
+ const TUI_MEDIA = new InjectionToken(`Token for media constant`, {
70
70
  factory: () => ({
71
71
  mobile: 768,
72
72
  desktopSmall: 1024,
@@ -74,26 +74,26 @@ const TUI_MEDIA = new InjectionToken('Token for media constant', {
74
74
  }),
75
75
  });
76
76
 
77
- const TUI_IS_MOBILE_RES = new InjectionToken('Mobile resolution stream for private providers', {
77
+ const TUI_IS_MOBILE_RES = new InjectionToken(`Mobile resolution stream for private providers`, {
78
78
  factory: () => {
79
79
  const windowRef = inject(WINDOW);
80
80
  const media = inject(TUI_MEDIA);
81
- return typedFromEvent(windowRef, 'resize').pipe(share(), startWith(null), map(() => tuiIsMobile(windowRef, media)), distinctUntilChanged(), tuiZoneOptimized(inject(NgZone)));
81
+ return typedFromEvent(windowRef, `resize`).pipe(share(), startWith(null), map(() => tuiIsMobile(windowRef, media)), distinctUntilChanged(), tuiZoneOptimized(inject(NgZone)));
82
82
  },
83
83
  });
84
84
 
85
- const TUI_MODE = new InjectionToken('Mode stream for private providers');
85
+ const TUI_MODE = new InjectionToken(`Mode stream for private providers`);
86
86
 
87
87
  /** Default values for the notification options. */
88
88
  const TUI_NOTIFICATION_DEFAULT_OPTIONS = {
89
89
  autoClose: true,
90
- label: '',
90
+ label: ``,
91
91
  status: "info" /* Info */,
92
92
  hasIcon: true,
93
93
  hasCloseButton: true,
94
94
  defaultAutoCloseTime: 3000,
95
95
  };
96
- const TUI_NOTIFICATION_OPTIONS = new InjectionToken('Default parameters for notification alert component', {
96
+ const TUI_NOTIFICATION_OPTIONS = new InjectionToken(`Default parameters for notification alert component`, {
97
97
  factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,
98
98
  });
99
99
  function tuiNotificationOptionsProvider(options) {
@@ -103,15 +103,15 @@ function tuiNotificationOptionsProvider(options) {
103
103
  };
104
104
  }
105
105
 
106
- const TUI_NUMBER_FORMAT = new InjectionToken('Formatting configuration for displayed numbers', {
106
+ const TUI_NUMBER_FORMAT = new InjectionToken(`Formatting configuration for displayed numbers`, {
107
107
  factory: () => ({
108
- decimalSeparator: ',',
108
+ decimalSeparator: `,`,
109
109
  thousandSeparator: CHAR_NO_BREAK_SPACE,
110
110
  zeroPadding: true,
111
111
  }),
112
112
  });
113
113
 
114
- const TUI_OPTION_CONTENT = new InjectionToken('Content for tuiOption component');
114
+ const TUI_OPTION_CONTENT = new InjectionToken(`Content for tuiOption component`);
115
115
 
116
116
  // TODO: 3.0 Remove export in ivy compilation
117
117
  const convertToSundayFirstWeekFormat = (weekDaysNames) => {
@@ -121,7 +121,7 @@ const convertToSundayFirstWeekFormat = (weekDaysNames) => {
121
121
  ...weekDaysNames.slice(0, sundayIndex),
122
122
  ];
123
123
  };
124
- const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken('Ordered calendars i18n texts', {
124
+ const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken(`Ordered calendars i18n texts`, {
125
125
  factory: () => {
126
126
  const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);
127
127
  return inject(TUI_SHORT_WEEK_DAYS).pipe(map(convertToSundayFirstWeekFormat), map(weekDays => [
@@ -133,25 +133,25 @@ const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken('Ordered calendars i18n t
133
133
 
134
134
  const TUI_SANITIZER = TUI_SANITIZER$1;
135
135
 
136
- const TUI_SCROLL_REF = new InjectionToken('Scrollable container');
136
+ const TUI_SCROLL_REF = new InjectionToken(`Scrollable container`);
137
137
 
138
- const TUI_SVG_CONTENT_PROCESSOR = new InjectionToken('Transform function the contents of the loaded svg file', { factory: () => svgLinearGradientProcessor });
138
+ const TUI_SVG_CONTENT_PROCESSOR = new InjectionToken(`Transform function the contents of the loaded svg file`, { factory: () => svgLinearGradientProcessor });
139
139
 
140
- const TUI_SVG_SRC_PROCESSOR = new InjectionToken('Source path processor for svg', {
140
+ const TUI_SVG_SRC_PROCESSOR = new InjectionToken(`Source path processor for svg`, {
141
141
  factory: () => identity,
142
142
  });
143
143
 
144
- const TUI_TEXTFIELD_APPEARANCE = new InjectionToken('Appearance for inputs', {
144
+ const TUI_TEXTFIELD_APPEARANCE = new InjectionToken(`Appearance for inputs`, {
145
145
  factory: () => "textfield" /* Textfield */,
146
146
  });
147
147
 
148
- const TUI_TEXTFIELD_HOST = new InjectionToken('An interface to communicate with textfield based controls');
148
+ const TUI_TEXTFIELD_HOST = new InjectionToken(`An interface to communicate with textfield based controls`);
149
149
 
150
- const TUI_THEME = new InjectionToken('Theme name', {
151
- factory: () => 'Taiga',
150
+ const TUI_THEME = new InjectionToken(`Theme name`, {
151
+ factory: () => `Taiga`,
152
152
  });
153
153
 
154
- const TUI_VALUE_ACCESSOR = new InjectionToken('Buffer token to pass NG_VALUE_ACCESSOR to a different Injector');
154
+ const TUI_VALUE_ACCESSOR = new InjectionToken(`Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`);
155
155
 
156
156
  /**
157
157
  * Generated bundle index. Do not edit.
@@ -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/first-day-of-week.ts","ng://@taiga-ui/core/tokens/i18n.ts","ng://@taiga-ui/core/tokens/icon-place.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/is-mobile-resolution.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/svg-content-processor.ts","ng://@taiga-ui/core/tokens/svg-src-processor.ts","ng://@taiga-ui/core/tokens/textfield-appearance.ts","ng://@taiga-ui/core/tokens/textfield-host.ts","ng://@taiga-ui/core/tokens/theme.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<unknown>>(\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_PLACE: InjectionToken<string> = new InjectionToken<string>(\n 'Recommended paths to icons from documentation guide',\n {\n factory: () => 'assets/taiga-ui/icons',\n },\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 {inject, InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {iconsPathFactory} from '@taiga-ui/core/utils';\n\nimport {TUI_ICONS_PLACE} from './icon-place';\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 {factory: () => iconsPathFactory(inject(TUI_ICONS_PLACE))},\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 {inject, InjectionToken, NgZone} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk';\nimport {tuiIsMobile} from '@taiga-ui/core/utils';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, startWith} from 'rxjs/operators';\n\nimport {TUI_MEDIA} from './media';\n\nexport const TUI_IS_MOBILE_RES = new InjectionToken<Observable<boolean>>(\n 'Mobile resolution stream for private providers',\n {\n factory: () => {\n const windowRef = inject(WINDOW);\n const media = inject(TUI_MEDIA);\n\n return typedFromEvent(windowRef, 'resize').pipe(\n share(),\n startWith(null),\n map(() => tuiIsMobile(windowRef, media)),\n distinctUntilChanged(),\n tuiZoneOptimized(inject(NgZone)),\n );\n },\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, ValueProvider} from '@angular/core';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\n\nexport interface TuiNotificationDefaultOptions\n extends Omit<TuiAlertOptions<unknown>, 'data'> {\n readonly defaultAutoCloseTime: number;\n}\n\n/**\n * @deprecated: remove in v3.0, use TuiNotificationDefaultOptions\n */\nexport type NotificationTokenOptions = TuiNotificationDefaultOptions;\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: TuiNotificationDefaultOptions = {\n autoClose: true,\n label: '',\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n defaultAutoCloseTime: 3000,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<TuiNotificationDefaultOptions>(\n 'Default parameters for notification alert component',\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiNotificationOptionsProvider(\n options: Partial<TuiNotificationDefaultOptions>,\n): ValueProvider {\n return {\n provide: TUI_NOTIFICATION_OPTIONS,\n useValue: {...TUI_NOTIFICATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<TuiNumberFormatSettings>(\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<Record<string, unknown>>>>\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: 3.0 Remove export in ivy compilation\nexport const convertToSundayFirstWeekFormat = (\n weekDaysNames: WEEK_DAYS_NAMES,\n): 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 {TuiStringHandler} from '@taiga-ui/cdk';\nimport {svgLinearGradientProcessor} from '@taiga-ui/cdk/utils/svg';\n\nexport const TUI_SVG_CONTENT_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n 'Transform function the contents of the loaded svg file',\n {factory: () => svgLinearGradientProcessor},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\nexport const TUI_SVG_SRC_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>('Source path processor for svg', {\n factory: () => identity,\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 {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_TEXTFIELD_HOST = new InjectionToken<TuiTextfieldHost>(\n 'An interface to communicate with textfield based controls',\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_THEME = new InjectionToken<string>('Theme name', {\n factory: () => 'Taiga',\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":";;;;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CACrD,2CAA2C,EAC3C;IACI,OAAO,EAAE,MAAM,GAAG;CACrB;;MCDQ,qBAAqB,GAAG,IAAI,cAAc,CACnD,iCAAiC,EACjC;IACI,OAAO,EAAE,OAAO;QACZ,MAAM,EAAE;YACJ,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;SAC5C;KACJ,CAAC;CACL;;MCXQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,2CAA2C,EAC3C;IACI,OAAO,EAAE,MAAM,SAAS,EAAE;CAC7B;;MCHQ,sBAAsB,GAAG,IAAI,cAAc,CACpD,sBAAsB;;MCDb,kBAAkB,GAAG,IAAI,cAAc,CAChD,qBAAqB;;MCFZ,2BAA2B,GAAG,IAAI,cAAc,CACzD,wBAAwB;;MCAf,sBAAsB,GAAG,IAAI,cAAc,CACpD,+CAA+C;;MCFtC,eAAe,GAAG,IAAI,cAAc,CAC7C,iEAAiE;;MCAxD,qBAAqB,GAAG,IAAI,cAAc,CACnD,iCAAiC,EACjC;IACI,OAAO,EAAE;CACZ;;MCJQ,UAAU,GAAG,IAAI,cAAc,CAAC,wBAAwB,EAAE;IACnE,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC;CACjC,EAAE;MA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AC,qBAAqB,CAAC,CAAC;QAE1D,OAAO,MAAM,CAAC,mBAAmB,CAAC,CAAC,IAAI,CACnC,GAAG,CAAC,8BAA8B,CAAC,EACnC,GAAG,CACC,QAAQ,IACJ;YACI,GAAG,QAAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC;YACtC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,CAAC;SACzB,CAC3B,CACJ,CAAC;KACL;CACJ;;MCnCY,aAAa,GAAGA;;MCAhB,cAAc,GAAG,IAAI,cAAc,CAC5C,sBAAsB;;MCCb,yBAAyB,GAClC,IAAI,cAAc,CACd,wDAAwD,EACxD,EAAC,OAAO,EAAE,MAAM,0BAA0B,EAAC;;MCHtC,qBAAqB,GAC9B,IAAI,cAAc,CAA2B,+BAA+B,EAAE;IAC1E,OAAO,EAAE,MAAM,QAAQ;CAC1B;;MCJQ,wBAAwB,GAAG,IAAI,cAAc,CACtD,uBAAuB,EACvB;IACI,OAAO,EAAE;CACZ;;MCJQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,2DAA2D;;MCFlD,SAAS,GAAG,IAAI,cAAc,CAAS,YAAY,EAAE;IAC9D,OAAO,EAAE,MAAM,OAAO;CACzB;;MCDY,kBAAkB,GAAG,IAAI,cAAc,CAChD,gEAAgE;;ACJpE;;;;;;"}
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/icon-place.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/is-mobile-resolution.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/svg-content-processor.ts","ng://@taiga-ui/core/tokens/svg-src-processor.ts","ng://@taiga-ui/core/tokens/textfield-appearance.ts","ng://@taiga-ui/core/tokens/textfield-host.ts","ng://@taiga-ui/core/tokens/theme.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<unknown>>(\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_PLACE: InjectionToken<string> = new InjectionToken<string>(\n `Recommended paths to icons from documentation guide`,\n {\n factory: () => `assets/taiga-ui/icons`,\n },\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 {inject, InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {iconsPathFactory} from '@taiga-ui/core/utils';\n\nimport {TUI_ICONS_PLACE} from './icon-place';\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 {factory: () => iconsPathFactory(inject(TUI_ICONS_PLACE))},\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 {inject, InjectionToken, NgZone} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk';\nimport {tuiIsMobile} from '@taiga-ui/core/utils';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, startWith} from 'rxjs/operators';\n\nimport {TUI_MEDIA} from './media';\n\nexport const TUI_IS_MOBILE_RES = new InjectionToken<Observable<boolean>>(\n `Mobile resolution stream for private providers`,\n {\n factory: () => {\n const windowRef = inject(WINDOW);\n const media = inject(TUI_MEDIA);\n\n return typedFromEvent(windowRef, `resize`).pipe(\n share(),\n startWith(null),\n map(() => tuiIsMobile(windowRef, media)),\n distinctUntilChanged(),\n tuiZoneOptimized(inject(NgZone)),\n );\n },\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, ValueProvider} from '@angular/core';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\n\nexport interface TuiNotificationDefaultOptions\n extends Omit<TuiAlertOptions<unknown>, 'data'> {\n readonly defaultAutoCloseTime: number;\n}\n\n/**\n * @deprecated: remove in v3.0, use TuiNotificationDefaultOptions\n */\nexport type NotificationTokenOptions = TuiNotificationDefaultOptions;\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: TuiNotificationDefaultOptions = {\n autoClose: true,\n label: ``,\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n defaultAutoCloseTime: 3000,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<TuiNotificationDefaultOptions>(\n `Default parameters for notification alert component`,\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiNotificationOptionsProvider(\n options: Partial<TuiNotificationDefaultOptions>,\n): ValueProvider {\n return {\n provide: TUI_NOTIFICATION_OPTIONS,\n useValue: {...TUI_NOTIFICATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<TuiNumberFormatSettings>(\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<Record<string, unknown>>>>\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: 3.0 Remove export in ivy compilation\nexport const convertToSundayFirstWeekFormat = (\n weekDaysNames: WEEK_DAYS_NAMES,\n): 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 {TuiStringHandler} from '@taiga-ui/cdk';\nimport {svgLinearGradientProcessor} from '@taiga-ui/cdk/utils/svg';\n\nexport const TUI_SVG_CONTENT_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `Transform function the contents of the loaded svg file`,\n {factory: () => svgLinearGradientProcessor},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\nexport const TUI_SVG_SRC_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(`Source path processor for svg`, {\n factory: () => identity,\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 {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_TEXTFIELD_HOST = new InjectionToken<TuiTextfieldHost>(\n `An interface to communicate with textfield based controls`,\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_THEME = new InjectionToken<string>(`Theme name`, {\n factory: () => `Taiga`,\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":";;;;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CACrD,2CAA2C,EAC3C;IACI,OAAO,EAAE,MAAM,GAAG;CACrB;;MCDQ,qBAAqB,GAAG,IAAI,cAAc,CACnD,iCAAiC,EACjC;IACI,OAAO,EAAE,OAAO;QACZ,MAAM,EAAE;YACJ,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;SAC5C;KACJ,CAAC;CACL;;MCXQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,2CAA2C,EAC3C;IACI,OAAO,EAAE,MAAM,SAAS,EAAE;CAC7B;;MCHQ,sBAAsB,GAAG,IAAI,cAAc,CACpD,sBAAsB;;MCDb,kBAAkB,GAAG,IAAI,cAAc,CAChD,qBAAqB;;MCFZ,2BAA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