@taiga-ui/core 2.52.0 → 2.53.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 (299) hide show
  1. package/bundles/taiga-ui-core-components-data-list.umd.js +1 -0
  2. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -0
  5. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-expand.umd.js +1 -1
  8. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  10. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-hints-host.umd.js +14 -20
  12. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +1 -1
  14. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +1 -1
  16. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  18. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-link.umd.js +1 -1
  20. package/bundles/taiga-ui-core-components-link.umd.min.js +1 -1
  21. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +3 -3
  23. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  25. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-scrollbar.umd.js +1 -0
  27. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-core-constants.umd.js +1 -1
  30. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  32. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-core-directives-described-by.umd.js +1 -0
  34. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +1 -0
  37. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +15 -0
  40. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js +1 -1
  42. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-core-observables.umd.js +9 -3
  44. package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-observables.umd.min.js +1 -1
  46. package/bundles/taiga-ui-core-observables.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-core-providers.umd.js +18 -0
  48. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-providers.umd.min.js +1 -1
  50. package/bundles/taiga-ui-core-providers.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-core-utils-dom.umd.js +26 -0
  52. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  53. package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
  54. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-core-utils-format.umd.js +33 -0
  56. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  57. package/bundles/taiga-ui-core-utils-format.umd.min.js +1 -1
  58. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-core-utils-mask.umd.js +12 -0
  60. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  62. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +30 -1
  64. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  65. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js +1 -1
  66. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-core-utils-polyfills.umd.js +1 -0
  68. package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +1 -1
  70. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  71. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  72. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  73. package/components/hints-host/hint-box/hint-box.component.d.ts +1 -0
  74. package/components/hints-host/hints-host.component.d.ts +4 -5
  75. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  76. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  77. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  78. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  79. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  80. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  81. package/constants/version.d.ts +1 -1
  82. package/directives/described-by/taiga-ui-core-directives-described-by.metadata.json +1 -1
  83. package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.metadata.json +1 -1
  84. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  85. package/directives/textfield-controller/textfield-controller.provider.d.ts +4 -0
  86. package/esm2015/components/data-list/option/option.component.js +2 -1
  87. package/esm2015/components/dialog/dialog.providers.js +2 -1
  88. package/esm2015/components/expand/expand.component.js +2 -2
  89. package/esm2015/components/hints-host/hint-box/hint-box.component.js +8 -2
  90. package/esm2015/components/hints-host/hint-box/hint-box.module.js +3 -2
  91. package/esm2015/components/hints-host/hints-host.component.js +4 -9
  92. package/esm2015/components/hints-host/hints-host.module.js +3 -9
  93. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  94. package/esm2015/components/link/link.component.js +1 -1
  95. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +2 -2
  96. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  97. package/esm2015/components/scrollbar/scrollbar.component.js +2 -1
  98. package/esm2015/constants/version.js +2 -2
  99. package/esm2015/directives/described-by/described-by.providers.js +2 -1
  100. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -1
  101. package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +2 -1
  102. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +2 -1
  103. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +6 -1
  104. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +2 -1
  105. package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +2 -1
  106. package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +2 -1
  107. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +2 -1
  108. package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +2 -1
  109. package/esm2015/directives/textfield-controller/textfield-size.directive.js +2 -1
  110. package/esm2015/directives/textfield-controller/textfield-type.directive.js +2 -1
  111. package/esm2015/interfaces/hint.js +1 -0
  112. package/esm2015/interfaces/index.js +1 -1
  113. package/esm2015/observables/smart-search.js +8 -3
  114. package/esm2015/providers/is-mobile-resolution.provider.js +6 -1
  115. package/esm2015/providers/mode.provider.js +6 -1
  116. package/esm2015/providers/watched-controller-provider-factory.js +6 -1
  117. package/esm2015/utils/dom/are-css-vars-supported.js +4 -1
  118. package/esm2015/utils/dom/check-fixed-position.js +6 -1
  119. package/esm2015/utils/dom/get-safe-area-size.js +4 -1
  120. package/esm2015/utils/dom/get-screen-width.js +6 -1
  121. package/esm2015/utils/dom/process-icon.js +6 -1
  122. package/esm2015/utils/format/capitalize-first-letter.js +6 -1
  123. package/esm2015/utils/format/capitalize.js +4 -1
  124. package/esm2015/utils/format/format-number.js +4 -1
  125. package/esm2015/utils/format/format-phone.js +4 -1
  126. package/esm2015/utils/format/get-fractional-part-padded.js +4 -1
  127. package/esm2015/utils/format/number-to-string-without-exp.js +4 -1
  128. package/esm2015/utils/format/other-decimal-symbol.js +6 -1
  129. package/esm2015/utils/format/pluralize.js +2 -1
  130. package/esm2015/utils/mask/masked-money-value-is-empty.js +6 -1
  131. package/esm2015/utils/mask/masked-number-string-to-number.js +6 -1
  132. package/esm2015/utils/miscellaneous/color-fallback.js +5 -2
  133. package/esm2015/utils/miscellaneous/get-border.js +6 -1
  134. package/esm2015/utils/miscellaneous/icons-path-factory.js +6 -1
  135. package/esm2015/utils/miscellaneous/is-editing-key.js +4 -1
  136. package/esm2015/utils/miscellaneous/is-presumed-html-string.js +6 -1
  137. package/esm2015/utils/miscellaneous/size-bigger.js +4 -1
  138. package/esm2015/utils/polyfills/inner-html.js +2 -1
  139. package/esm5/components/data-list/option/option.component.js +2 -1
  140. package/esm5/components/dialog/dialog.providers.js +2 -1
  141. package/esm5/components/expand/expand.component.js +2 -2
  142. package/esm5/components/hints-host/hint-box/hint-box.component.js +8 -2
  143. package/esm5/components/hints-host/hint-box/hint-box.module.js +3 -2
  144. package/esm5/components/hints-host/hints-host.component.js +4 -9
  145. package/esm5/components/hints-host/hints-host.module.js +3 -9
  146. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  147. package/esm5/components/link/link.component.js +1 -1
  148. package/esm5/components/primitive-textfield/primitive-textfield.component.js +2 -2
  149. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  150. package/esm5/components/scrollbar/scrollbar.component.js +2 -1
  151. package/esm5/constants/version.js +2 -2
  152. package/esm5/directives/described-by/described-by.providers.js +2 -1
  153. package/esm5/directives/mask-accessor/mask-accessor.directive.js +2 -1
  154. package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +2 -1
  155. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +2 -1
  156. package/esm5/directives/textfield-controller/textfield-controller.provider.js +6 -1
  157. package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +2 -1
  158. package/esm5/directives/textfield-controller/textfield-example-text.directive.js +2 -1
  159. package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +2 -1
  160. package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +2 -1
  161. package/esm5/directives/textfield-controller/textfield-max-length.directive.js +2 -1
  162. package/esm5/directives/textfield-controller/textfield-size.directive.js +2 -1
  163. package/esm5/directives/textfield-controller/textfield-type.directive.js +2 -1
  164. package/esm5/interfaces/hint.js +1 -0
  165. package/esm5/interfaces/index.js +1 -1
  166. package/esm5/observables/smart-search.js +9 -4
  167. package/esm5/providers/is-mobile-resolution.provider.js +6 -1
  168. package/esm5/providers/mode.provider.js +6 -1
  169. package/esm5/providers/watched-controller-provider-factory.js +6 -1
  170. package/esm5/utils/dom/are-css-vars-supported.js +4 -1
  171. package/esm5/utils/dom/check-fixed-position.js +6 -1
  172. package/esm5/utils/dom/get-safe-area-size.js +4 -1
  173. package/esm5/utils/dom/get-screen-width.js +6 -1
  174. package/esm5/utils/dom/process-icon.js +6 -1
  175. package/esm5/utils/format/capitalize-first-letter.js +6 -1
  176. package/esm5/utils/format/capitalize.js +4 -1
  177. package/esm5/utils/format/format-number.js +4 -1
  178. package/esm5/utils/format/format-phone.js +4 -1
  179. package/esm5/utils/format/get-fractional-part-padded.js +4 -1
  180. package/esm5/utils/format/number-to-string-without-exp.js +4 -1
  181. package/esm5/utils/format/other-decimal-symbol.js +6 -1
  182. package/esm5/utils/format/pluralize.js +2 -1
  183. package/esm5/utils/mask/masked-money-value-is-empty.js +6 -1
  184. package/esm5/utils/mask/masked-number-string-to-number.js +6 -1
  185. package/esm5/utils/miscellaneous/color-fallback.js +5 -2
  186. package/esm5/utils/miscellaneous/get-border.js +6 -1
  187. package/esm5/utils/miscellaneous/icons-path-factory.js +6 -1
  188. package/esm5/utils/miscellaneous/is-editing-key.js +4 -1
  189. package/esm5/utils/miscellaneous/is-presumed-html-string.js +6 -1
  190. package/esm5/utils/miscellaneous/size-bigger.js +4 -1
  191. package/esm5/utils/polyfills/inner-html.js +2 -1
  192. package/fesm2015/taiga-ui-core-components-data-list.js +1 -0
  193. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  194. package/fesm2015/taiga-ui-core-components-dialog.js +1 -0
  195. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  196. package/fesm2015/taiga-ui-core-components-expand.js +1 -1
  197. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  198. package/fesm2015/taiga-ui-core-components-hints-host.js +11 -17
  199. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  200. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -1
  201. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  202. package/fesm2015/taiga-ui-core-components-link.js +1 -1
  203. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +3 -3
  204. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  205. package/fesm2015/taiga-ui-core-components-scrollbar.js +1 -0
  206. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  207. package/fesm2015/taiga-ui-core-constants.js +1 -1
  208. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  209. package/fesm2015/taiga-ui-core-directives-described-by.js +1 -0
  210. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  211. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -0
  212. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  213. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +15 -1
  214. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  215. package/fesm2015/taiga-ui-core-observables.js +8 -3
  216. package/fesm2015/taiga-ui-core-observables.js.map +1 -1
  217. package/fesm2015/taiga-ui-core-providers.js +16 -1
  218. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  219. package/fesm2015/taiga-ui-core-utils-dom.js +22 -1
  220. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  221. package/fesm2015/taiga-ui-core-utils-format.js +27 -1
  222. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  223. package/fesm2015/taiga-ui-core-utils-mask.js +11 -1
  224. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  225. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +26 -2
  226. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  227. package/fesm2015/taiga-ui-core-utils-polyfills.js +1 -0
  228. package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
  229. package/fesm5/taiga-ui-core-components-data-list.js +1 -0
  230. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  231. package/fesm5/taiga-ui-core-components-dialog.js +1 -0
  232. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  233. package/fesm5/taiga-ui-core-components-expand.js +1 -1
  234. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  235. package/fesm5/taiga-ui-core-components-hints-host.js +11 -17
  236. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  237. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +1 -1
  238. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  239. package/fesm5/taiga-ui-core-components-link.js +1 -1
  240. package/fesm5/taiga-ui-core-components-primitive-textfield.js +3 -3
  241. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  242. package/fesm5/taiga-ui-core-components-scrollbar.js +1 -0
  243. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  244. package/fesm5/taiga-ui-core-constants.js +1 -1
  245. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  246. package/fesm5/taiga-ui-core-directives-described-by.js +1 -0
  247. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  248. package/fesm5/taiga-ui-core-directives-mask-accessor.js +1 -0
  249. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  250. package/fesm5/taiga-ui-core-directives-textfield-controller.js +15 -1
  251. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  252. package/fesm5/taiga-ui-core-observables.js +9 -4
  253. package/fesm5/taiga-ui-core-observables.js.map +1 -1
  254. package/fesm5/taiga-ui-core-providers.js +16 -1
  255. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  256. package/fesm5/taiga-ui-core-utils-dom.js +22 -1
  257. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  258. package/fesm5/taiga-ui-core-utils-format.js +27 -1
  259. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  260. package/fesm5/taiga-ui-core-utils-mask.js +11 -1
  261. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  262. package/fesm5/taiga-ui-core-utils-miscellaneous.js +26 -2
  263. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  264. package/fesm5/taiga-ui-core-utils-polyfills.js +1 -0
  265. package/fesm5/taiga-ui-core-utils-polyfills.js.map +1 -1
  266. package/interfaces/hint.d.ts +7 -0
  267. package/interfaces/index.d.ts +1 -0
  268. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  269. package/observables/smart-search.d.ts +5 -1
  270. package/observables/taiga-ui-core-observables.metadata.json +1 -1
  271. package/package.json +4 -4
  272. package/providers/is-mobile-resolution.provider.d.ts +4 -0
  273. package/providers/mode.provider.d.ts +4 -0
  274. package/providers/taiga-ui-core-providers.metadata.json +1 -1
  275. package/providers/watched-controller-provider-factory.d.ts +4 -0
  276. package/utils/dom/are-css-vars-supported.d.ts +2 -0
  277. package/utils/dom/check-fixed-position.d.ts +4 -0
  278. package/utils/dom/get-safe-area-size.d.ts +2 -0
  279. package/utils/dom/get-screen-width.d.ts +4 -0
  280. package/utils/dom/process-icon.d.ts +4 -0
  281. package/utils/dom/taiga-ui-core-utils-dom.metadata.json +1 -1
  282. package/utils/format/capitalize-first-letter.d.ts +4 -0
  283. package/utils/format/capitalize.d.ts +2 -0
  284. package/utils/format/format-number.d.ts +2 -0
  285. package/utils/format/format-phone.d.ts +2 -0
  286. package/utils/format/get-fractional-part-padded.d.ts +2 -0
  287. package/utils/format/number-to-string-without-exp.d.ts +2 -0
  288. package/utils/format/other-decimal-symbol.d.ts +4 -0
  289. package/utils/format/taiga-ui-core-utils-format.metadata.json +1 -1
  290. package/utils/mask/masked-money-value-is-empty.d.ts +4 -0
  291. package/utils/mask/masked-number-string-to-number.d.ts +4 -0
  292. package/utils/mask/taiga-ui-core-utils-mask.metadata.json +1 -1
  293. package/utils/miscellaneous/color-fallback.d.ts +3 -1
  294. package/utils/miscellaneous/get-border.d.ts +4 -0
  295. package/utils/miscellaneous/icons-path-factory.d.ts +4 -0
  296. package/utils/miscellaneous/is-editing-key.d.ts +2 -0
  297. package/utils/miscellaneous/is-presumed-html-string.d.ts +4 -0
  298. package/utils/miscellaneous/size-bigger.d.ts +2 -0
  299. package/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-scrollbar.js","sources":["ng://@taiga-ui/core/components/scrollbar/scroll-ref.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollable.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.component.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.module.ts","ng://@taiga-ui/core/components/scrollbar/taiga-ui-core-components-scrollbar.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport const SCROLL_REF_SELECTOR = '[tuiScrollRef]';\n\n@Directive({\n selector: SCROLL_REF_SELECTOR,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollRefDirective {}\n","import {Directive, ElementRef, Inject, OnInit} from '@angular/core';\nimport {TUI_SCROLLABLE} from '@taiga-ui/core/constants';\n\n@Directive({\n selector: '[tuiScrollable]',\n})\nexport class TuiScrollableDirective implements OnInit {\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngOnInit(): void {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SCROLLABLE, {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n }),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {CSS, USER_AGENT} from '@ng-web-apis/common';\nimport {getElementOffset, isFirefox, TUI_IS_IOS, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW, TUI_SCROLLABLE} from '@taiga-ui/core/constants';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport function scrollRefFactory({\n browserScrollRef,\n}: TuiScrollbarComponent): ElementRef<HTMLElement> {\n return browserScrollRef;\n}\n\n// @dynamic\n@Component({\n selector: 'tui-scrollbar',\n templateUrl: './scrollbar.template.html',\n styleUrls: ['./scrollbar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n deps: [TuiScrollbarComponent],\n useFactory: scrollRefFactory,\n },\n ],\n})\nexport class TuiScrollbarComponent {\n private delegated = false;\n\n private readonly isLegacy: boolean =\n !this.cssRef.supports('position', 'sticky') ||\n (isFirefox(this.userAgent) && !this.cssRef.supports('scrollbar-width', 'none'));\n\n @Input()\n @tuiDefaultProp()\n hidden = false;\n\n readonly browserScrollRef = new ElementRef(this.elementRef.nativeElement);\n\n constructor(\n @Inject(CSS) private readonly cssRef: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_IS_IOS) private readonly isIos: boolean,\n ) {}\n\n get showScrollbars(): boolean {\n return !this.hidden && !this.isIos && (!this.isLegacy || this.delegated);\n }\n\n @HostBinding('class._legacy')\n get showNative(): boolean {\n return this.isLegacy && !this.hidden && !this.delegated;\n }\n\n @HostListener(`${TUI_SCROLLABLE}.stop`, ['$event.detail'])\n onScrollable(element: HTMLElement): void {\n this.delegated = true;\n this.browserScrollRef.nativeElement = element;\n }\n\n @HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, ['$event.detail'])\n scrollIntoView(detail: HTMLElement): void {\n if (this.delegated) {\n return;\n }\n\n const {nativeElement} = this.browserScrollRef;\n const {offsetTop, offsetLeft} = getElementOffset(nativeElement, detail);\n\n nativeElement.scrollTop =\n offsetTop + detail.offsetHeight / 2 - nativeElement.clientHeight / 2;\n nativeElement.scrollLeft =\n offsetLeft + detail.offsetWidth / 2 - nativeElement.clientWidth / 2;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\n\nimport {TuiScrollRefDirective} from './scroll-ref.directive';\nimport {TuiScrollableDirective} from './scrollable.directive';\nimport {TuiScrollbarComponent} from './scrollbar.component';\n\n@NgModule({\n imports: [CommonModule, TuiScrollControlsModule],\n declarations: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n exports: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n})\nexport class TuiScrollbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAGa,mBAAmB,GAAG,iBAAiB;;IAWpD;KAAqC;IAAxB,qBAAqB;QATjC,SAAS,CAAC;YACP,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,cAAc;oBACvB,WAAW,EAAE,UAAU;iBAC1B;aACJ;SACJ,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;;ICPI,gCACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;KACxE;IAEJ,yCAAQ,GAAR;QACI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CACvC,IAAI,WAAW,CAAC,cAAc,EAAE;YAC5B,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa;SACxC,CAAC,CACL,CAAC;KACL;;gBAVoD,UAAU,uBAA1D,MAAM,SAAC,UAAU;;IAFb,sBAAsB;QAHlC,SAAS,CAAC;YACP,QAAQ,EAAE,iBAAiB;SAC9B,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAFd,sBAAsB,CAalC;IAAD,6BAAC;CAbD;;SCQgB,gBAAgB,CAAC,EAET;QADpB,sCAAgB;IAEhB,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED;;IA2BI,+BACkC,MAAW,EACJ,UAAmC,EACnC,SAAiB,EACjB,KAAc;QAHrB,WAAM,GAAN,MAAM,CAAK;QACJ,eAAU,GAAV,UAAU,CAAyB;QACnC,cAAS,GAAT,SAAS,CAAQ;QACjB,UAAK,GAAL,KAAK,CAAS;QAhB/C,cAAS,GAAG,KAAK,CAAC;QAET,aAAQ,GACrB,CAAC,IAAI,C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,MAAM,SAAC,UAAU;6CACjB,MAAM,SAAC,UAAU;8CACjB,MAAM,SAAC,UAAU;;IARtB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;yDACF;IAgBf;QADC,WAAW,CAAC,eAAe,CAAC;2DAG5B;IAGD;QADC,YAAY,CAAI,cAAc,UAAO,EAAE,CAAC,eAAe,CAAC,CAAC;6DAIzD;IAGD;QADC,YAAY,CAAI,oBAAoB,UAAO,EAAE,CAAC,eAAe,CAAC,CAAC;+DAa/D;IAhDQ,qBAAqB;QAbjC,SAAS,CAAC;YACP,QAAQ,EAAE,eAAe;YACzB,kJAAwC;YAExC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,cAAc;oBACvB,IAAI,EAAE,CAAC,uBAAqB,CAAC;oBAC7B,UAAU,EAAE,gBAAgB;iBAC/B;aACJ;;SACJ,CAAC;QAeO,WAAA,MAAM,CAAC,GAAG,CAAC,CAAA;QACX,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAjBd,qBAAqB,CAiDjC;IAAD,4BAAC;CAjDD;;;ICrBA;KAAkC;IAArB,kBAAkB;QAL9B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,uBAAuB,CAAC;YAChD,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;YACpF,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;SAClF,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACbA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-scrollbar.js","sources":["ng://@taiga-ui/core/components/scrollbar/scroll-ref.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollable.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.component.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.module.ts","ng://@taiga-ui/core/components/scrollbar/taiga-ui-core-components-scrollbar.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport const SCROLL_REF_SELECTOR = '[tuiScrollRef]';\n\n@Directive({\n selector: SCROLL_REF_SELECTOR,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollRefDirective {}\n","import {Directive, ElementRef, Inject, OnInit} from '@angular/core';\nimport {TUI_SCROLLABLE} from '@taiga-ui/core/constants';\n\n@Directive({\n selector: '[tuiScrollable]',\n})\nexport class TuiScrollableDirective implements OnInit {\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngOnInit(): void {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SCROLLABLE, {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n }),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {CSS, USER_AGENT} from '@ng-web-apis/common';\nimport {getElementOffset, isFirefox, TUI_IS_IOS, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW, TUI_SCROLLABLE} from '@taiga-ui/core/constants';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function scrollRefFactory({\n browserScrollRef,\n}: TuiScrollbarComponent): ElementRef<HTMLElement> {\n return browserScrollRef;\n}\n\n// @dynamic\n@Component({\n selector: 'tui-scrollbar',\n templateUrl: './scrollbar.template.html',\n styleUrls: ['./scrollbar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n deps: [TuiScrollbarComponent],\n useFactory: scrollRefFactory,\n },\n ],\n})\nexport class TuiScrollbarComponent {\n private delegated = false;\n\n private readonly isLegacy: boolean =\n !this.cssRef.supports('position', 'sticky') ||\n (isFirefox(this.userAgent) && !this.cssRef.supports('scrollbar-width', 'none'));\n\n @Input()\n @tuiDefaultProp()\n hidden = false;\n\n readonly browserScrollRef = new ElementRef(this.elementRef.nativeElement);\n\n constructor(\n @Inject(CSS) private readonly cssRef: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_IS_IOS) private readonly isIos: boolean,\n ) {}\n\n get showScrollbars(): boolean {\n return !this.hidden && !this.isIos && (!this.isLegacy || this.delegated);\n }\n\n @HostBinding('class._legacy')\n get showNative(): boolean {\n return this.isLegacy && !this.hidden && !this.delegated;\n }\n\n @HostListener(`${TUI_SCROLLABLE}.stop`, ['$event.detail'])\n onScrollable(element: HTMLElement): void {\n this.delegated = true;\n this.browserScrollRef.nativeElement = element;\n }\n\n @HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, ['$event.detail'])\n scrollIntoView(detail: HTMLElement): void {\n if (this.delegated) {\n return;\n }\n\n const {nativeElement} = this.browserScrollRef;\n const {offsetTop, offsetLeft} = getElementOffset(nativeElement, detail);\n\n nativeElement.scrollTop =\n offsetTop + detail.offsetHeight / 2 - nativeElement.clientHeight / 2;\n nativeElement.scrollLeft =\n offsetLeft + detail.offsetWidth / 2 - nativeElement.clientWidth / 2;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\n\nimport {TuiScrollRefDirective} from './scroll-ref.directive';\nimport {TuiScrollableDirective} from './scrollable.directive';\nimport {TuiScrollbarComponent} from './scrollbar.component';\n\n@NgModule({\n imports: [CommonModule, TuiScrollControlsModule],\n declarations: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n exports: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n})\nexport class TuiScrollbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAGa,mBAAmB,GAAG,iBAAiB;;IAWpD;KAAqC;IAAxB,qBAAqB;QATjC,SAAS,CAAC;YACP,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,cAAc;oBACvB,WAAW,EAAE,UAAU;iBAC1B;aACJ;SACJ,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;;ICPI,gCACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;KACxE;IAEJ,yCAAQ,GAAR;QACI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CACvC,IAAI,WAAW,CAAC,cAAc,EAAE;YAC5B,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa;SACxC,CAAC,CACL,CAAC;KACL;;gBAVoD,UAAU,uBAA1D,MAAM,SAAC,UAAU;;IAFb,sBAAsB;QAHlC,SAAS,CAAC;YACP,QAAQ,EAAE,iBAAiB;SAC9B,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAFd,sBAAsB,CAalC;IAAD,6BAAC;CAbD;;ACQA;SACgB,gBAAgB,CAAC,EAET;QADpB,sCAAgB;IAEhB,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED;;IA2BI,+BACkC,MAAW,EACJ,UAAmC,EACnC,SAAiB,EACjB,KAAc;QAHrB,WAAM,GAAN,MAAM,CAAK;QACJ,eAAU,GAAV,UAAU,CAAyB;QACnC,cAAS,GAAT,SAAS,CAAQ;QACjB,UAAK,GAAL,KAAK,CAAS;QAhB/C,cAAS,GAAG,KAAK,CAAC;QAET,aAAQ,GACrB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,Q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 
69
- var VERSION = '2.52.0';
69
+ var VERSION = '2.53.0';
70
70
 
71
71
  /**
72
72
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-constants.js","sources":["ng://@taiga-ui/core/constants/absolute-box-sizes.ts","ng://@taiga-ui/core/constants/decimal-symbols.ts","ng://@taiga-ui/core/constants/default-icons-path.ts","ng://@taiga-ui/core/constants/default-marker-handler.ts","ng://@taiga-ui/core/constants/editing-keys.ts","ng://@taiga-ui/core/constants/events.ts","ng://@taiga-ui/core/constants/mask-caret-trap.ts","ng://@taiga-ui/core/constants/media.ts","ng://@taiga-ui/core/constants/regexp.ts","ng://@taiga-ui/core/constants/version.ts","ng://@taiga-ui/core/constants/taiga-ui-core-constants.ts"],"sourcesContent":["export const DEFAULT_MARGIN = 4;\nexport const DEFAULT_MIN_HEIGHT = 80;\nexport const DEFAULT_MAX_HEIGHT = 400;\nexport const DEFAULT_MAX_WIDTH = 600;\n","export const TUI_DECIMAL_SYMBOLS: readonly string[] = [',', '.'];\n","import {TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = name =>\n name.includes('.svg#') ? name : `#${name}`;\n","import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {TuiMarkerHandler} from '@taiga-ui/core/types';\n\nexport const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY;\n","export const tuiEditingKeys: readonly string[] = [\n 'Spacebar',\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Left',\n 'Right',\n 'End',\n 'Home',\n];\n","/**\n * An event indicating that async data for expand has finished loading.\n * Dispatch to finish loading states for {@link TuiExpandComponent}.\n */\nexport const TUI_EXPAND_LOADED = 'tui-expand-loaded';\n\n/**\n * An event for scrolling an element into view within {@link TuiScrollbarComponent}.\n */\nexport const TUI_SCROLL_INTO_VIEW = 'tui-scroll-into-view';\n\n/**\n * An event to notify {@link TuiScrollbarComponent} that\n * it should control a nested element.\n */\nexport const TUI_SCROLLABLE = 'tui-scrollable';\n\n/**\n * An event indicating and error during icon loading in {@link TuiSvgComponent}.\n */\nexport const TUI_ICON_ERROR = 'tui-icon-error';\n","export const MASK_CARET_TRAP = '[]';\n","/**\n * Media constants are exact the same as css media breakpoints\n * @deprecated use TUI_MEDIA token\n */\nexport const MEDIA = {\n mobile: 320,\n tablet: 600,\n desktopSmall: 1024,\n desktopLarge: 1280,\n};\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\nexport const TUI_LEADING_ZEROES_REGEXP = /^0+/;\nexport const TUI_MASK_SYMBOLS_REGEXP = /[ \\-_()]/g;\nexport const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\\\/#!$%\\\\^&\\\\*;:{}=\\\\-_`~()]$/;\nexport const TUI_LATIN_REGEXP = /[A-z]/;\nexport const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;\n","export const VERSION = '2.52.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;IAAa,cAAc,GAAG,EAAE;IACnB,kBAAkB,GAAG,GAAG;IACxB,kBAAkB,GAAG,IAAI;IACzB,iBAAiB,GAAG;;ICHpB,mBAAmB,GAAsB,CAAC,GAAG,EAAE,GAAG;;ICElD,kBAAkB,GAA6B,UAAA,IAAI;IAC5D,OAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,MAAI,IAAM;AAA1C;;ICAS,0BAA0B,GAAqB,cAAM,OAAA,WAAW;;ICHhE,cAAc,GAAsB;IAC7C,UAAU;IACV,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;;;ACTV;;;;IAIa,iBAAiB,GAAG,oBAAoB;AAErD;;;IAGa,oBAAoB,GAAG,uBAAuB;AAE3D;;;;IAIa,cAAc,GAAG,iBAAiB;AAE/C;;;IAGa,cAAc,GAAG;;ICpBjB,eAAe,GAAG;;ACA/B;;;;IAIa,KAAK,GAAG;IACjB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;;;ICRT,gBAAgB,GAAG,KAAK;IACxB,oBAAoB,GAAG,KAAK;IAC5B,qBAAqB,GAAG,OAAO;IAC/B,yBAAyB,GAAG,MAAM;IAClC,uBAAuB,GAAG,YAAY;IACtC,gCAAgC,GAAG,mCAAmC;IACtE,gBAAgB,GAAG,QAAQ;IAC3B,4BAA4B,GAAG;;ICP/B,OAAO,GAAG;;ACAvB;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-constants.js","sources":["ng://@taiga-ui/core/constants/absolute-box-sizes.ts","ng://@taiga-ui/core/constants/decimal-symbols.ts","ng://@taiga-ui/core/constants/default-icons-path.ts","ng://@taiga-ui/core/constants/default-marker-handler.ts","ng://@taiga-ui/core/constants/editing-keys.ts","ng://@taiga-ui/core/constants/events.ts","ng://@taiga-ui/core/constants/mask-caret-trap.ts","ng://@taiga-ui/core/constants/media.ts","ng://@taiga-ui/core/constants/regexp.ts","ng://@taiga-ui/core/constants/version.ts","ng://@taiga-ui/core/constants/taiga-ui-core-constants.ts"],"sourcesContent":["export const DEFAULT_MARGIN = 4;\nexport const DEFAULT_MIN_HEIGHT = 80;\nexport const DEFAULT_MAX_HEIGHT = 400;\nexport const DEFAULT_MAX_WIDTH = 600;\n","export const TUI_DECIMAL_SYMBOLS: readonly string[] = [',', '.'];\n","import {TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = name =>\n name.includes('.svg#') ? name : `#${name}`;\n","import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {TuiMarkerHandler} from '@taiga-ui/core/types';\n\nexport const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY;\n","export const tuiEditingKeys: readonly string[] = [\n 'Spacebar',\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Left',\n 'Right',\n 'End',\n 'Home',\n];\n","/**\n * An event indicating that async data for expand has finished loading.\n * Dispatch to finish loading states for {@link TuiExpandComponent}.\n */\nexport const TUI_EXPAND_LOADED = 'tui-expand-loaded';\n\n/**\n * An event for scrolling an element into view within {@link TuiScrollbarComponent}.\n */\nexport const TUI_SCROLL_INTO_VIEW = 'tui-scroll-into-view';\n\n/**\n * An event to notify {@link TuiScrollbarComponent} that\n * it should control a nested element.\n */\nexport const TUI_SCROLLABLE = 'tui-scrollable';\n\n/**\n * An event indicating and error during icon loading in {@link TuiSvgComponent}.\n */\nexport const TUI_ICON_ERROR = 'tui-icon-error';\n","export const MASK_CARET_TRAP = '[]';\n","/**\n * Media constants are exact the same as css media breakpoints\n * @deprecated use TUI_MEDIA token\n */\nexport const MEDIA = {\n mobile: 320,\n tablet: 600,\n desktopSmall: 1024,\n desktopLarge: 1280,\n};\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\nexport const TUI_LEADING_ZEROES_REGEXP = /^0+/;\nexport const TUI_MASK_SYMBOLS_REGEXP = /[ \\-_()]/g;\nexport const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\\\/#!$%\\\\^&\\\\*;:{}=\\\\-_`~()]$/;\nexport const TUI_LATIN_REGEXP = /[A-z]/;\nexport const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;\n","export const VERSION = '2.53.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;IAAa,cAAc,GAAG,EAAE;IACnB,kBAAkB,GAAG,GAAG;IACxB,kBAAkB,GAAG,IAAI;IACzB,iBAAiB,GAAG;;ICHpB,mBAAmB,GAAsB,CAAC,GAAG,EAAE,GAAG;;ICElD,kBAAkB,GAA6B,UAAA,IAAI;IAC5D,OAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,MAAI,IAAM;AAA1C;;ICAS,0BAA0B,GAAqB,cAAM,OAAA,WAAW;;ICHhE,cAAc,GAAsB;IAC7C,UAAU;IACV,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;;;ACTV;;;;IAIa,iBAAiB,GAAG,oBAAoB;AAErD;;;IAGa,oBAAoB,GAAG,uBAAuB;AAE3D;;;;IAIa,cAAc,GAAG,iBAAiB;AAE/C;;;IAGa,cAAc,GAAG;;ICpBjB,eAAe,GAAG;;ACA/B;;;;IAIa,KAAK,GAAG;IACjB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;;;ICRT,gBAAgB,GAAG,KAAK;IACxB,oBAAoB,GAAG,KAAK;IAC5B,qBAAqB,GAAG,OAAO;IAC/B,yBAAyB,GAAG,MAAM;IAClC,uBAAuB,GAAG,YAAY;IACtC,gCAAgC,GAAG,mCAAmC;IACtE,gBAAgB,GAAG,QAAQ;IAC3B,4BAA4B,GAAG;;ICP/B,OAAO,GAAG;;ACAvB;;;;;;"}
@@ -16,6 +16,7 @@ var TUI_DESCRIBED_BY_PROVIDERS = [
16
16
  useFactory: describedByFactory,
17
17
  },
18
18
  ];
19
+ // eslint-disable-next-line @typescript-eslint/naming-convention
19
20
  function describedByFactory(focusVisible$, _a) {
20
21
  var nativeElement = _a.nativeElement;
21
22
  return focusVisible$
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-described-by.js","sources":["ng://@taiga-ui/core/directives/described-by/described-by.providers.ts","ng://@taiga-ui/core/directives/described-by/described-by.directive.ts","ng://@taiga-ui/core/directives/described-by/described-by.module.ts","ng://@taiga-ui/core/directives/described-by/taiga-ui-core-directives-described-by.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {\n stopPropagation,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {merge, Observable, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n startWith,\n switchMapTo,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nconst DELAY = 1000;\n\nexport const TUI_DESCRIBED_BY_SHOW = new InjectionToken<Observable<boolean>>(\n 'Accessible tooltip visibility stream',\n);\nexport const TUI_DESCRIBED_BY_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n {\n provide: TUI_DESCRIBED_BY_SHOW,\n deps: [TuiFocusVisibleService, ElementRef],\n useFactory: describedByFactory,\n },\n];\n\nexport function describedByFactory(\n focusVisible$: Observable<boolean>,\n {nativeElement}: ElementRef<HTMLElement>,\n): Observable<boolean> {\n return focusVisible$\n .pipe(\n filter(Boolean),\n switchMapTo(\n timer(DELAY).pipe(\n mapTo(true),\n takeUntil(\n merge(\n typedFromEvent(nativeElement, 'keydown'),\n typedFromEvent(nativeElement, 'blur'),\n ),\n ),\n ),\n ),\n switchMapTo(\n merge(\n typedFromEvent(nativeElement, 'keydown').pipe(\n filter(({key}) => key === 'Escape'),\n take(1),\n stopPropagation(),\n mapTo(false),\n startWith(true),\n ),\n typedFromEvent(nativeElement, 'blur').pipe(mapTo(false)),\n ),\n ),\n )\n .pipe(distinctUntilChanged());\n}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_DESCRIBED_BY_SHOW,\n} from './described-by.providers';\n\nexport const DESCRIBED_BY = '_described-by';\n\n/**\n * A directive linking focusable elements and hints for accessibility\n */\n@Directive({\n selector: '[tuiDescribedBy]:not(ng-container)',\n providers: TUI_DESCRIBED_BY_PROVIDERS,\n})\nexport class TuiDescribedByDirective {\n @Input()\n @tuiDefaultProp()\n tuiDescribedBy = '';\n\n constructor(\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TUI_DESCRIBED_BY_SHOW) visibility$: Observable<boolean>,\n ) {\n visibility$.subscribe(visible => {\n if (!this.tuiDescribedBy) {\n return;\n }\n\n if (visible) {\n hintService.showHintForId(this.tuiDescribedBy);\n } else {\n hintService.hideHintForId(this.tuiDescribedBy);\n }\n });\n }\n\n @HostBinding('attr.aria-describedby')\n get computedDescribedBy(): string | null {\n return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDescribedByDirective} from './described-by.directive';\n\n@NgModule({\n declarations: [TuiDescribedByDirective],\n exports: [TuiDescribedByDirective],\n})\nexport class TuiDescribedByModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAkBA,IAAM,KAAK,GAAG,IAAI,CAAC;IAEN,qBAAqB,GAAG,IAAI,cAAc,CACnD,sCAAsC,EACxC;IACW,0BAA0B,GAAe;IAClD,iBAAiB;IACjB,sBAAsB;IACtB;QACI,OAAO,EAAE,qBAAqB;QAC9B,IAAI,EAAE,CAAC,sBAAsB,EAAE,UAAU,CAAC;QAC1C,UAAU,EAAE,kBAAkB;KACjC;EACH;SAEc,kBAAkB,CAC9B,aAAkC,EAClC,EAAwC;QAAvC,gCAAa;IAEd,OAAO,aAAa;SACf,IAAI,CACD,MAAM,CAAC,OAAO,CAAC,EACf,WAAW,CACP,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CACb,KAAK,CAAC,IAAI,CAAC,EACX,SAAS,CACL,KAAK,CACD,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,EACxC,c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C,SAAS,CAAC;YACP,QAAQ,EAAE,oCAAoC;YAC9C,SAAS,EAAE,0BAA0B;SACxC,CAAC;QAOO,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OAPzB,uBAAuB,CA0BnC;IAAD,8BAAC;CA1BD;;;ICXA;KAAoC;IAAvB,oBAAoB;QAJhC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-described-by.js","sources":["ng://@taiga-ui/core/directives/described-by/described-by.providers.ts","ng://@taiga-ui/core/directives/described-by/described-by.directive.ts","ng://@taiga-ui/core/directives/described-by/described-by.module.ts","ng://@taiga-ui/core/directives/described-by/taiga-ui-core-directives-described-by.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {\n stopPropagation,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {merge, Observable, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n startWith,\n switchMapTo,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nconst DELAY = 1000;\n\nexport const TUI_DESCRIBED_BY_SHOW = new InjectionToken<Observable<boolean>>(\n 'Accessible tooltip visibility stream',\n);\nexport const TUI_DESCRIBED_BY_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n {\n provide: TUI_DESCRIBED_BY_SHOW,\n deps: [TuiFocusVisibleService, ElementRef],\n useFactory: describedByFactory,\n },\n];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function describedByFactory(\n focusVisible$: Observable<boolean>,\n {nativeElement}: ElementRef<HTMLElement>,\n): Observable<boolean> {\n return focusVisible$\n .pipe(\n filter(Boolean),\n switchMapTo(\n timer(DELAY).pipe(\n mapTo(true),\n takeUntil(\n merge(\n typedFromEvent(nativeElement, 'keydown'),\n typedFromEvent(nativeElement, 'blur'),\n ),\n ),\n ),\n ),\n switchMapTo(\n merge(\n typedFromEvent(nativeElement, 'keydown').pipe(\n filter(({key}) => key === 'Escape'),\n take(1),\n stopPropagation(),\n mapTo(false),\n startWith(true),\n ),\n typedFromEvent(nativeElement, 'blur').pipe(mapTo(false)),\n ),\n ),\n )\n .pipe(distinctUntilChanged());\n}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_DESCRIBED_BY_SHOW,\n} from './described-by.providers';\n\nexport const DESCRIBED_BY = '_described-by';\n\n/**\n * A directive linking focusable elements and hints for accessibility\n */\n@Directive({\n selector: '[tuiDescribedBy]:not(ng-container)',\n providers: TUI_DESCRIBED_BY_PROVIDERS,\n})\nexport class TuiDescribedByDirective {\n @Input()\n @tuiDefaultProp()\n tuiDescribedBy = '';\n\n constructor(\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TUI_DESCRIBED_BY_SHOW) visibility$: Observable<boolean>,\n ) {\n visibility$.subscribe(visible => {\n if (!this.tuiDescribedBy) {\n return;\n }\n\n if (visible) {\n hintService.showHintForId(this.tuiDescribedBy);\n } else {\n hintService.hideHintForId(this.tuiDescribedBy);\n }\n });\n }\n\n @HostBinding('attr.aria-describedby')\n get computedDescribedBy(): string | null {\n return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDescribedByDirective} from './described-by.directive';\n\n@NgModule({\n declarations: [TuiDescribedByDirective],\n exports: [TuiDescribedByDirective],\n})\nexport class TuiDescribedByModule {}\n","/**\n * Generated bundle index. Do not edit.\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,IAAI,CAAC,KAAI,CAAC,cAAc,EAAE;gBACtB,OAAO;aACV;YAED,IAAI,OAAO,EAAE;gBACT,WAAW,CAAC,aAAa,CAAC,KAAI,CAAC,cAAc,CAAC,CAAC;aAClD;iBAAM;gBACH,WAAW,CAAC,aAAa,CAAC,KAAI,CAAC,cAAc,CAAC,CAAC;aAClD;SACJ,CAAC,CAAC;KACN;IAGD,sBAAI,wDAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,GAAG,YAAY,GAAG,IAAI,CAAC;SAC1E;;;OAAA;;gBAnBwC,cAAc,uBAAlD,MAAM,SAAC,cAAc;gBACsB,UAAU,uBAArD,MAAM,SAAC,qBAAqB;;IAJjC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;mEACG;IAoBpB;QADC,WAAW,CAAC,uBAAuB,CAAC;sEAGpC;IAzBQ,uBAAuB;QAJnC,SAAS,CAAC;YACP,QAAQ,EAAE,oCAAoC;YAC9C,SAAS,EAAE,0BAA0B;SACxC,CAAC;QAOO,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OAPzB,uBAAuB,CA0BnC;IAAD,8BAAC;CA1BD;;;ICXA;KAAoC;IAAvB,oBAAoB;QAJhC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACRA;;;;;;"}
@@ -3,6 +3,7 @@ import { Directive, Optional, NgModule } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR, DefaultValueAccessor } from '@angular/forms';
4
4
  import { TUI_VALUE_ACCESSOR } from '@taiga-ui/core/tokens';
5
5
 
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
6
7
  function fallbackAccessorFactory(accessor, fallback) {
7
8
  return accessor ? accessor[0] : fallback;
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-mask-accessor.js","sources":["ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.directive.ts","ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.module.ts","ng://@taiga-ui/core/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.ts"],"sourcesContent":["import {Directive, Optional} from '@angular/core';\nimport {\n ControlValueAccessor,\n DefaultValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\n\nexport function fallbackAccessorFactory(\n accessor: readonly ControlValueAccessor[] | null,\n fallback: ControlValueAccessor,\n): ControlValueAccessor {\n return accessor ? accessor[0] : fallback;\n}\n\n@Directive({\n selector: 'input[tuiMaskAccessor]',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n deps: [[new Optional(), TUI_VALUE_ACCESSOR], DefaultValueAccessor],\n useFactory: fallbackAccessorFactory,\n multi: true,\n },\n ],\n})\nexport class TuiMaskAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMaskAccessorDirective} from './mask-accessor.directive';\n\n/**\n * @internal\n */\n@NgModule({\n declarations: [TuiMaskAccessorDirective],\n exports: [TuiMaskAccessorDirective],\n})\nexport class TuiMaskAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;SAQgB,uBAAuB,CACnC,QAAgD,EAChD,QAA8B;IAE9B,OAAO,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;AAC7C,CAAC;;IAaD;KAAwC;IAA3B,wBAAwB;QAXpC,SAAS,CAAC;YACP,QAAQ,EAAE,wBAAwB;YAClC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,iBAAiB;oBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;oBAClE,UAAU,EAAE,uBAAuB;oBACnC,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACtBA;;;;IAOA;KAAqC;IAAxB,qBAAqB;QAJjC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;YACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACXA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-mask-accessor.js","sources":["ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.directive.ts","ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.module.ts","ng://@taiga-ui/core/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.ts"],"sourcesContent":["import {Directive, Optional} from '@angular/core';\nimport {\n ControlValueAccessor,\n DefaultValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function fallbackAccessorFactory(\n accessor: readonly ControlValueAccessor[] | null,\n fallback: ControlValueAccessor,\n): ControlValueAccessor {\n return accessor ? accessor[0] : fallback;\n}\n\n@Directive({\n selector: 'input[tuiMaskAccessor]',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n deps: [[new Optional(), TUI_VALUE_ACCESSOR], DefaultValueAccessor],\n useFactory: fallbackAccessorFactory,\n multi: true,\n },\n ],\n})\nexport class TuiMaskAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMaskAccessorDirective} from './mask-accessor.directive';\n\n/**\n * @internal\n */\n@NgModule({\n declarations: [TuiMaskAccessorDirective],\n exports: [TuiMaskAccessorDirective],\n})\nexport class TuiMaskAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAQA;SACgB,uBAAuB,CACnC,QAAgD,EAChD,QAA8B;IAE9B,OAAO,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;AAC7C,CAAC;;IAaD;KAAwC;IAA3B,wBAAwB;QAXpC,SAAS,CAAC;YACP,QAAQ,EAAE,wBAAwB;YAClC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,iBAAiB;oBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;oBAClE,UAAU,EAAE,uBAAuB;oBACnC,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACvBA;;;;IAOA;KAAqC;IAAxB,qBAAqB;QAJjC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;YACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACXA;;;;;;"}
@@ -111,6 +111,7 @@ var TuiTextfieldAutocompleteDirective = /** @class */ (function (_super) {
111
111
  ], TuiTextfieldAutocompleteDirective);
112
112
  return TuiTextfieldAutocompleteDirective;
113
113
  }(TuiController));
114
+ // eslint-disable-next-line @typescript-eslint/naming-convention
114
115
  function autocompleteDirectiveFactory() {
115
116
  return new TuiTextfieldAutocompleteDirective();
116
117
  }
@@ -143,6 +144,7 @@ var TuiTextfieldCleanerDirective = /** @class */ (function (_super) {
143
144
  ], TuiTextfieldCleanerDirective);
144
145
  return TuiTextfieldCleanerDirective;
145
146
  }(TuiController));
147
+ // eslint-disable-next-line @typescript-eslint/naming-convention
146
148
  function cleanerDirectiveFactory() {
147
149
  return new TuiTextfieldCleanerDirective();
148
150
  }
@@ -176,6 +178,7 @@ var TuiTextfieldCustomContentDirective = /** @class */ (function (_super) {
176
178
  ], TuiTextfieldCustomContentDirective);
177
179
  return TuiTextfieldCustomContentDirective;
178
180
  }(TuiController));
181
+ // eslint-disable-next-line @typescript-eslint/naming-convention
179
182
  function customContentDirectiveFactory() {
180
183
  return new TuiTextfieldCustomContentDirective();
181
184
  }
@@ -208,6 +211,7 @@ var TuiTextfieldExampleTextDirective = /** @class */ (function (_super) {
208
211
  ], TuiTextfieldExampleTextDirective);
209
212
  return TuiTextfieldExampleTextDirective;
210
213
  }(TuiController));
214
+ // eslint-disable-next-line @typescript-eslint/naming-convention
211
215
  function exampleTextDirectiveFactory() {
212
216
  return new TuiTextfieldExampleTextDirective();
213
217
  }
@@ -240,6 +244,7 @@ var TuiTextfieldInputModeDirective = /** @class */ (function (_super) {
240
244
  ], TuiTextfieldInputModeDirective);
241
245
  return TuiTextfieldInputModeDirective;
242
246
  }(TuiController));
247
+ // eslint-disable-next-line @typescript-eslint/naming-convention
243
248
  function inputModeDirectiveFactory() {
244
249
  return new TuiTextfieldInputModeDirective();
245
250
  }
@@ -272,6 +277,7 @@ var TuiTextfieldLabelOutsideDirective = /** @class */ (function (_super) {
272
277
  ], TuiTextfieldLabelOutsideDirective);
273
278
  return TuiTextfieldLabelOutsideDirective;
274
279
  }(TuiController));
280
+ // eslint-disable-next-line @typescript-eslint/naming-convention
275
281
  function labelOutsideDirectiveFactory() {
276
282
  return new TuiTextfieldLabelOutsideDirective();
277
283
  }
@@ -304,6 +310,7 @@ var TuiTextfieldMaxLengthDirective = /** @class */ (function (_super) {
304
310
  ], TuiTextfieldMaxLengthDirective);
305
311
  return TuiTextfieldMaxLengthDirective;
306
312
  }(TuiController));
313
+ // eslint-disable-next-line @typescript-eslint/naming-convention
307
314
  function maxLengthDirectiveFactory() {
308
315
  return new TuiTextfieldMaxLengthDirective();
309
316
  }
@@ -336,6 +343,7 @@ var TuiTextfieldSizeDirective = /** @class */ (function (_super) {
336
343
  ], TuiTextfieldSizeDirective);
337
344
  return TuiTextfieldSizeDirective;
338
345
  }(TuiController));
346
+ // eslint-disable-next-line @typescript-eslint/naming-convention
339
347
  function sizeDirectiveFactory() {
340
348
  return new TuiTextfieldSizeDirective();
341
349
  }
@@ -368,6 +376,7 @@ var TuiTextfieldTypeDirective = /** @class */ (function (_super) {
368
376
  ], TuiTextfieldTypeDirective);
369
377
  return TuiTextfieldTypeDirective;
370
378
  }(TuiController));
379
+ // eslint-disable-next-line @typescript-eslint/naming-convention
371
380
  function typeDirectiveFactory() {
372
381
  return new TuiTextfieldTypeDirective();
373
382
  }
@@ -405,6 +414,10 @@ var TuiTextfieldControllerModule = /** @class */ (function () {
405
414
  }());
406
415
 
407
416
  var TUI_TEXTFIELD_WATCHED_CONTROLLER = new InjectionToken('watched textfield controller');
417
+ /**
418
+ * @deprecated: use {@link tuiTextfieldWatchedControllerFactory} instead
419
+ */
420
+ // eslint-disable-next-line @typescript-eslint/naming-convention
408
421
  function textfieldWatchedControllerFactory(changeDetectorRef, destroy$) {
409
422
  var controllers = [];
410
423
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -437,10 +450,11 @@ var TEXTFIELD_CONTROLLER_PROVIDER = [
437
450
  useFactory: textfieldWatchedControllerFactory,
438
451
  },
439
452
  ];
453
+ var tuiTextfieldWatchedControllerFactory = textfieldWatchedControllerFactory;
440
454
 
441
455
  /**
442
456
  * Generated bundle index. Do not edit.
443
457
  */
444
458
 
445
- export { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_AUTOCOMPLETE, TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_CUSTOM_CONTENT, TUI_TEXTFIELD_EXAMPLE_TEXT, TUI_TEXTFIELD_INPUT_MODE, TUI_TEXTFIELD_LABEL_OUTSIDE, TUI_TEXTFIELD_MAX_LENGTH, TUI_TEXTFIELD_SIZE, TUI_TEXTFIELD_TYPE, TUI_TEXTFIELD_WATCHED_CONTROLLER, TuiTextfieldAutocompleteDirective, TuiTextfieldCleanerDirective, TuiTextfieldController, TuiTextfieldControllerModule, TuiTextfieldCustomContentDirective, TuiTextfieldExampleTextDirective, TuiTextfieldInputModeDirective, TuiTextfieldLabelOutsideDirective, TuiTextfieldMaxLengthDirective, TuiTextfieldSizeDirective, TuiTextfieldTypeDirective, autocompleteDirectiveFactory, cleanerDirectiveFactory, customContentDirectiveFactory, exampleTextDirectiveFactory, inputModeDirectiveFactory, labelOutsideDirectiveFactory, maxLengthDirectiveFactory, sizeDirectiveFactory, textfieldWatchedControllerFactory, typeDirectiveFactory };
459
+ export { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_AUTOCOMPLETE, TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_CUSTOM_CONTENT, TUI_TEXTFIELD_EXAMPLE_TEXT, TUI_TEXTFIELD_INPUT_MODE, TUI_TEXTFIELD_LABEL_OUTSIDE, TUI_TEXTFIELD_MAX_LENGTH, TUI_TEXTFIELD_SIZE, TUI_TEXTFIELD_TYPE, TUI_TEXTFIELD_WATCHED_CONTROLLER, TuiTextfieldAutocompleteDirective, TuiTextfieldCleanerDirective, TuiTextfieldController, TuiTextfieldControllerModule, TuiTextfieldCustomContentDirective, TuiTextfieldExampleTextDirective, TuiTextfieldInputModeDirective, TuiTextfieldLabelOutsideDirective, TuiTextfieldMaxLengthDirective, TuiTextfieldSizeDirective, TuiTextfieldTypeDirective, autocompleteDirectiveFactory, cleanerDirectiveFactory, customContentDirectiveFactory, exampleTextDirectiveFactory, inputModeDirectiveFactory, labelOutsideDirectiveFactory, maxLengthDirectiveFactory, sizeDirectiveFactory, textfieldWatchedControllerFactory, tuiTextfieldWatchedControllerFactory, typeDirectiveFactory };
446
460
  //# sourceMappingURL=taiga-ui-core-directives-textfield-controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-textfield-controller.js","sources":["ng://@taiga-ui/core/directives/textfield-controller/textfield.controller.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-autocomplete.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-cleaner.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-custom-content.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-example-text.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-input-mode.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-label-outside.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-max-length.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-size.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-type.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.module.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.provider.ts","ng://@taiga-ui/core/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.ts"],"sourcesContent":["import {TuiAutofillFieldName, TuiInputModeT, TuiInputTypeT} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\nexport class TuiTextfieldController {\n constructor(\n readonly change$: Observable<void>,\n private readonly autocompleteDirective: TuiTextfieldAutocompleteDirective,\n private readonly cleanerDirective: TuiTextfieldCleanerDirective,\n private readonly customContentDirective: TuiTextfieldCustomContentDirective,\n private readonly exampleTextDirective: TuiTextfieldExampleTextDirective,\n private readonly inputModeDirective: TuiTextfieldInputModeDirective,\n private readonly labelOutsideDirective: TuiTextfieldLabelOutsideDirective,\n private readonly maxLengthDirective: TuiTextfieldMaxLengthDirective,\n private readonly sizeDirective: TuiTextfieldSizeDirective,\n private readonly typeDirective: TuiTextfieldTypeDirective,\n ) {}\n\n get autocomplete(): TuiAutofillFieldName | '' {\n return this.autocompleteDirective.autocomplete;\n }\n\n get cleaner(): boolean {\n return this.cleanerDirective.cleaner;\n }\n\n get customContent(): PolymorpheusContent {\n return this.customContentDirective.customContent || '';\n }\n\n get exampleText(): string {\n return this.exampleTextDirective.exampleText;\n }\n\n get inputMode(): TuiInputModeT {\n return this.inputModeDirective.inputMode;\n }\n\n get labelOutside(): boolean {\n return this.labelOutsideDirective.labelOutside;\n }\n\n get maxLength(): number | null {\n return this.maxLengthDirective.maxLength;\n }\n\n get size(): TuiSizeS | TuiSizeL {\n return this.sizeDirective.size;\n }\n\n get type(): TuiInputTypeT {\n return this.typeDirective.type;\n }\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiAutofillFieldName, TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_AUTOCOMPLETE =\n new InjectionToken<TuiTextfieldAutocompleteDirective>('tuiTextfieldAutocomplete', {\n factory: autocompleteDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldAutocomplete]',\n providers: [\n {\n provide: TUI_TEXTFIELD_AUTOCOMPLETE,\n useExisting: forwardRef(() => TuiTextfieldAutocompleteDirective),\n },\n ],\n})\nexport class TuiTextfieldAutocompleteDirective extends TuiController {\n @Input('tuiTextfieldAutocomplete')\n autocomplete: TuiAutofillFieldName | '' = '';\n}\n\nexport function autocompleteDirectiveFactory(): TuiTextfieldAutocompleteDirective {\n return new TuiTextfieldAutocompleteDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_CLEANER = new InjectionToken<TuiTextfieldCleanerDirective>(\n 'tuiTextfieldCleaner',\n {\n factory: cleanerDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldCleaner]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CLEANER,\n useExisting: forwardRef(() => TuiTextfieldCleanerDirective),\n },\n ],\n})\nexport class TuiTextfieldCleanerDirective extends TuiController {\n @Input('tuiTextfieldCleaner')\n cleaner = false;\n}\n\nexport function cleanerDirectiveFactory(): TuiTextfieldCleanerDirective {\n return new TuiTextfieldCleanerDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_CUSTOM_CONTENT =\n new InjectionToken<TuiTextfieldCustomContentDirective>('tuiTextfieldCustomContent', {\n factory: customContentDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldCustomContent]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CUSTOM_CONTENT,\n useExisting: forwardRef(() => TuiTextfieldCustomContentDirective),\n },\n ],\n})\nexport class TuiTextfieldCustomContentDirective extends TuiController {\n // TODO: 3.0 Remove null\n @Input('tuiTextfieldCustomContent')\n customContent: PolymorpheusContent | null = '';\n}\n\nexport function customContentDirectiveFactory(): TuiTextfieldCustomContentDirective {\n return new TuiTextfieldCustomContentDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_EXAMPLE_TEXT =\n new InjectionToken<TuiTextfieldExampleTextDirective>('tuiTextfieldExampleText', {\n factory: exampleTextDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldExampleText]',\n providers: [\n {\n provide: TUI_TEXTFIELD_EXAMPLE_TEXT,\n useExisting: forwardRef(() => TuiTextfieldExampleTextDirective),\n },\n ],\n})\nexport class TuiTextfieldExampleTextDirective extends TuiController {\n @Input('tuiTextfieldExampleText')\n exampleText = '';\n}\n\nexport function exampleTextDirectiveFactory(): TuiTextfieldExampleTextDirective {\n return new TuiTextfieldExampleTextDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputModeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_INPUT_MODE =\n new InjectionToken<TuiTextfieldInputModeDirective>('tuiTextfieldInputMode', {\n factory: inputModeDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldInputMode]',\n providers: [\n {\n provide: TUI_TEXTFIELD_INPUT_MODE,\n useExisting: forwardRef(() => TuiTextfieldInputModeDirective),\n },\n ],\n})\nexport class TuiTextfieldInputModeDirective extends TuiController {\n @Input('tuiTextfieldInputMode')\n inputMode: TuiInputModeT = 'text';\n}\n\nexport function inputModeDirectiveFactory(): TuiTextfieldInputModeDirective {\n return new TuiTextfieldInputModeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_LABEL_OUTSIDE =\n new InjectionToken<TuiTextfieldLabelOutsideDirective>('tuiTextfieldLabelOutside', {\n factory: labelOutsideDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldLabelOutside]',\n providers: [\n {\n provide: TUI_TEXTFIELD_LABEL_OUTSIDE,\n useExisting: forwardRef(() => TuiTextfieldLabelOutsideDirective),\n },\n ],\n})\nexport class TuiTextfieldLabelOutsideDirective extends TuiController {\n @Input('tuiTextfieldLabelOutside')\n labelOutside = false;\n}\n\nexport function labelOutsideDirectiveFactory(): TuiTextfieldLabelOutsideDirective {\n return new TuiTextfieldLabelOutsideDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_MAX_LENGTH =\n new InjectionToken<TuiTextfieldMaxLengthDirective>('tuiTextfieldMaxLength', {\n factory: maxLengthDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldMaxLength]',\n providers: [\n {\n provide: TUI_TEXTFIELD_MAX_LENGTH,\n useExisting: forwardRef(() => TuiTextfieldMaxLengthDirective),\n },\n ],\n})\nexport class TuiTextfieldMaxLengthDirective extends TuiController {\n @Input('tuiTextfieldMaxLength')\n maxLength: number | null = null;\n}\n\nexport function maxLengthDirectiveFactory(): TuiTextfieldMaxLengthDirective {\n return new TuiTextfieldMaxLengthDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport const TUI_TEXTFIELD_SIZE = new InjectionToken<TuiTextfieldSizeDirective>(\n 'tuiTextfieldSize',\n {\n factory: sizeDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldSize]',\n providers: [\n {\n provide: TUI_TEXTFIELD_SIZE,\n useExisting: forwardRef(() => TuiTextfieldSizeDirective),\n },\n ],\n})\nexport class TuiTextfieldSizeDirective extends TuiController {\n @Input('tuiTextfieldSize')\n size: TuiSizeS | TuiSizeL = 'l';\n}\n\nexport function sizeDirectiveFactory(): TuiTextfieldSizeDirective {\n return new TuiTextfieldSizeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputTypeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_TYPE = new InjectionToken<TuiTextfieldTypeDirective>(\n 'tuiTextfieldType',\n {\n factory: typeDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldType]',\n providers: [\n {\n provide: TUI_TEXTFIELD_TYPE,\n useExisting: forwardRef(() => TuiTextfieldTypeDirective),\n },\n ],\n})\nexport class TuiTextfieldTypeDirective extends TuiController {\n @Input('tuiTextfieldType')\n type: TuiInputTypeT = 'text';\n}\n\nexport function typeDirectiveFactory(): TuiTextfieldTypeDirective {\n return new TuiTextfieldTypeDirective();\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\n@NgModule({\n declarations: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n exports: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n})\nexport class TuiTextfieldControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {merge, NEVER, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiTextfieldController} from './textfield.controller';\nimport {\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TuiTextfieldAutocompleteDirective,\n} from './textfield-autocomplete.directive';\nimport {\n TUI_TEXTFIELD_CLEANER,\n TuiTextfieldCleanerDirective,\n} from './textfield-cleaner.directive';\nimport {\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TuiTextfieldCustomContentDirective,\n} from './textfield-custom-content.directive';\nimport {\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TuiTextfieldExampleTextDirective,\n} from './textfield-example-text.directive';\nimport {\n TUI_TEXTFIELD_INPUT_MODE,\n TuiTextfieldInputModeDirective,\n} from './textfield-input-mode.directive';\nimport {\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiTextfieldLabelOutsideDirective,\n} from './textfield-label-outside.directive';\nimport {\n TUI_TEXTFIELD_MAX_LENGTH,\n TuiTextfieldMaxLengthDirective,\n} from './textfield-max-length.directive';\nimport {TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TUI_TEXTFIELD_TYPE, TuiTextfieldTypeDirective} from './textfield-type.directive';\n\nexport const TUI_TEXTFIELD_WATCHED_CONTROLLER =\n new InjectionToken<TuiTextfieldController>('watched textfield controller');\n\nexport function textfieldWatchedControllerFactory(\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n ...controllers: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n // @ts-ignore remove after TS update\n TuiTextfieldTypeDirective,\n ]\n): TuiTextfieldController {\n const change$ = merge(...controllers.map(({change$}) => change$ || NEVER)).pipe(\n watch(changeDetectorRef),\n takeUntil(destroy$),\n );\n\n change$.subscribe();\n\n return new TuiTextfieldController(change$, ...controllers);\n}\n\nexport const TEXTFIELD_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_TEXTFIELD_WATCHED_CONTROLLER,\n deps: [\n ChangeDetectorRef,\n TuiDestroyService,\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TUI_TEXTFIELD_CLEANER,\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TUI_TEXTFIELD_INPUT_MODE,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_MAX_LENGTH,\n TUI_TEXTFIELD_SIZE,\n TUI_TEXTFIELD_TYPE,\n ],\n useFactory: textfieldWatchedControllerFactory,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAgBI,gCACa,OAAyB,EACjB,qBAAwD,EACxD,gBAA8C,EAC9C,sBAA0D,EAC1D,oBAAsD,EACtD,kBAAkD,EAClD,qBAAwD,EACxD,kBAAkD,EAClD,aAAwC,EACxC,aAAwC;QAThD,YAAO,GAAP,OAAO,CAAkB;QACjB,0BAAqB,GAArB,qBAAqB,CAAmC;QACxD,qBAAgB,GAAhB,gBAAgB,CAA8B;QAC9C,2BAAsB,GAAtB,sBAAsB,CAAoC;QAC1D,yBAAoB,GAApB,oBAAoB,CAAkC;QACtD,uBAAkB,GAAlB,kBAAkB,CAAgC;QAClD,0BAAqB,GAArB,qBAAqB,CAAmC;QACxD,uBAAkB,GAAlB,kBAAkB,CAAgC;QAClD,kBAAa,GAAb,aAAa,CAA2B;QACxC,kBAAa,GAAb,aAAa,CAA2B;KACzD;IAEJ,sBAAI,gDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC;SAClD;;;OAAA;IAED,sBAAI,2CAAO;aAAX;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;SACxC;;;OAAA;IAED,sBAAI,iDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,IAAI,EAAE,CAAC;SAC1D;;;OAAA;IAED,sBAAI,+CAAW;aAAf;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC;SAChD;;;OAAA;IAED,sBAAI,6CAAS;aAAb;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC,SA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tB,CAAC;IAEF,OAAO,CAAC,SAAS,EAAE,CAAC;IAEpB,YAAW,sBAAsB,YAAtB,sBAAsB,oBAAC,OAAO,GAAK,WAAW,MAAE;AAC/D,CAAC;IAEY,6BAA6B,GAAa;IACnD,iBAAiB;IACjB;QACI,OAAO,EAAE,gCAAgC;QACzC,IAAI,EAAE;YACF,iBAAiB;YACjB,iBAAiB;YACjB,0BAA0B;YAC1B,qBAAqB;YACrB,4BAA4B;YAC5B,0BAA0B;YAC1B,wBAAwB;YACxB,2BAA2B;YAC3B,wBAAwB;YACxB,kBAAkB;YAClB,kBAAkB;SACrB;QACD,UAAU,EAAE,iCAAiC;KAChD;;;ACpFL;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-textfield-controller.js","sources":["ng://@taiga-ui/core/directives/textfield-controller/textfield.controller.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-autocomplete.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-cleaner.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-custom-content.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-example-text.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-input-mode.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-label-outside.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-max-length.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-size.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-type.directive.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.module.ts","ng://@taiga-ui/core/directives/textfield-controller/textfield-controller.provider.ts","ng://@taiga-ui/core/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.ts"],"sourcesContent":["import {TuiAutofillFieldName, TuiInputModeT, TuiInputTypeT} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\nexport class TuiTextfieldController {\n constructor(\n readonly change$: Observable<void>,\n private readonly autocompleteDirective: TuiTextfieldAutocompleteDirective,\n private readonly cleanerDirective: TuiTextfieldCleanerDirective,\n private readonly customContentDirective: TuiTextfieldCustomContentDirective,\n private readonly exampleTextDirective: TuiTextfieldExampleTextDirective,\n private readonly inputModeDirective: TuiTextfieldInputModeDirective,\n private readonly labelOutsideDirective: TuiTextfieldLabelOutsideDirective,\n private readonly maxLengthDirective: TuiTextfieldMaxLengthDirective,\n private readonly sizeDirective: TuiTextfieldSizeDirective,\n private readonly typeDirective: TuiTextfieldTypeDirective,\n ) {}\n\n get autocomplete(): TuiAutofillFieldName | '' {\n return this.autocompleteDirective.autocomplete;\n }\n\n get cleaner(): boolean {\n return this.cleanerDirective.cleaner;\n }\n\n get customContent(): PolymorpheusContent {\n return this.customContentDirective.customContent || '';\n }\n\n get exampleText(): string {\n return this.exampleTextDirective.exampleText;\n }\n\n get inputMode(): TuiInputModeT {\n return this.inputModeDirective.inputMode;\n }\n\n get labelOutside(): boolean {\n return this.labelOutsideDirective.labelOutside;\n }\n\n get maxLength(): number | null {\n return this.maxLengthDirective.maxLength;\n }\n\n get size(): TuiSizeS | TuiSizeL {\n return this.sizeDirective.size;\n }\n\n get type(): TuiInputTypeT {\n return this.typeDirective.type;\n }\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiAutofillFieldName, TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_AUTOCOMPLETE =\n new InjectionToken<TuiTextfieldAutocompleteDirective>('tuiTextfieldAutocomplete', {\n factory: autocompleteDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldAutocomplete]',\n providers: [\n {\n provide: TUI_TEXTFIELD_AUTOCOMPLETE,\n useExisting: forwardRef(() => TuiTextfieldAutocompleteDirective),\n },\n ],\n})\nexport class TuiTextfieldAutocompleteDirective extends TuiController {\n @Input('tuiTextfieldAutocomplete')\n autocomplete: TuiAutofillFieldName | '' = '';\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function autocompleteDirectiveFactory(): TuiTextfieldAutocompleteDirective {\n return new TuiTextfieldAutocompleteDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_CLEANER = new InjectionToken<TuiTextfieldCleanerDirective>(\n 'tuiTextfieldCleaner',\n {\n factory: cleanerDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldCleaner]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CLEANER,\n useExisting: forwardRef(() => TuiTextfieldCleanerDirective),\n },\n ],\n})\nexport class TuiTextfieldCleanerDirective extends TuiController {\n @Input('tuiTextfieldCleaner')\n cleaner = false;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function cleanerDirectiveFactory(): TuiTextfieldCleanerDirective {\n return new TuiTextfieldCleanerDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_CUSTOM_CONTENT =\n new InjectionToken<TuiTextfieldCustomContentDirective>('tuiTextfieldCustomContent', {\n factory: customContentDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldCustomContent]',\n providers: [\n {\n provide: TUI_TEXTFIELD_CUSTOM_CONTENT,\n useExisting: forwardRef(() => TuiTextfieldCustomContentDirective),\n },\n ],\n})\nexport class TuiTextfieldCustomContentDirective extends TuiController {\n // TODO: 3.0 Remove null\n @Input('tuiTextfieldCustomContent')\n customContent: PolymorpheusContent | null = '';\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function customContentDirectiveFactory(): TuiTextfieldCustomContentDirective {\n return new TuiTextfieldCustomContentDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_EXAMPLE_TEXT =\n new InjectionToken<TuiTextfieldExampleTextDirective>('tuiTextfieldExampleText', {\n factory: exampleTextDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldExampleText]',\n providers: [\n {\n provide: TUI_TEXTFIELD_EXAMPLE_TEXT,\n useExisting: forwardRef(() => TuiTextfieldExampleTextDirective),\n },\n ],\n})\nexport class TuiTextfieldExampleTextDirective extends TuiController {\n @Input('tuiTextfieldExampleText')\n exampleText = '';\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function exampleTextDirectiveFactory(): TuiTextfieldExampleTextDirective {\n return new TuiTextfieldExampleTextDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputModeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_INPUT_MODE =\n new InjectionToken<TuiTextfieldInputModeDirective>('tuiTextfieldInputMode', {\n factory: inputModeDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldInputMode]',\n providers: [\n {\n provide: TUI_TEXTFIELD_INPUT_MODE,\n useExisting: forwardRef(() => TuiTextfieldInputModeDirective),\n },\n ],\n})\nexport class TuiTextfieldInputModeDirective extends TuiController {\n @Input('tuiTextfieldInputMode')\n inputMode: TuiInputModeT = 'text';\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function inputModeDirectiveFactory(): TuiTextfieldInputModeDirective {\n return new TuiTextfieldInputModeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_LABEL_OUTSIDE =\n new InjectionToken<TuiTextfieldLabelOutsideDirective>('tuiTextfieldLabelOutside', {\n factory: labelOutsideDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldLabelOutside]',\n providers: [\n {\n provide: TUI_TEXTFIELD_LABEL_OUTSIDE,\n useExisting: forwardRef(() => TuiTextfieldLabelOutsideDirective),\n },\n ],\n})\nexport class TuiTextfieldLabelOutsideDirective extends TuiController {\n @Input('tuiTextfieldLabelOutside')\n labelOutside = false;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function labelOutsideDirectiveFactory(): TuiTextfieldLabelOutsideDirective {\n return new TuiTextfieldLabelOutsideDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_MAX_LENGTH =\n new InjectionToken<TuiTextfieldMaxLengthDirective>('tuiTextfieldMaxLength', {\n factory: maxLengthDirectiveFactory,\n });\n\n@Directive({\n selector: '[tuiTextfieldMaxLength]',\n providers: [\n {\n provide: TUI_TEXTFIELD_MAX_LENGTH,\n useExisting: forwardRef(() => TuiTextfieldMaxLengthDirective),\n },\n ],\n})\nexport class TuiTextfieldMaxLengthDirective extends TuiController {\n @Input('tuiTextfieldMaxLength')\n maxLength: number | null = null;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function maxLengthDirectiveFactory(): TuiTextfieldMaxLengthDirective {\n return new TuiTextfieldMaxLengthDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport const TUI_TEXTFIELD_SIZE = new InjectionToken<TuiTextfieldSizeDirective>(\n 'tuiTextfieldSize',\n {\n factory: sizeDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldSize]',\n providers: [\n {\n provide: TUI_TEXTFIELD_SIZE,\n useExisting: forwardRef(() => TuiTextfieldSizeDirective),\n },\n ],\n})\nexport class TuiTextfieldSizeDirective extends TuiController {\n @Input('tuiTextfieldSize')\n size: TuiSizeS | TuiSizeL = 'l';\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function sizeDirectiveFactory(): TuiTextfieldSizeDirective {\n return new TuiTextfieldSizeDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {TuiController, TuiInputTypeT} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_TYPE = new InjectionToken<TuiTextfieldTypeDirective>(\n 'tuiTextfieldType',\n {\n factory: typeDirectiveFactory,\n },\n);\n\n@Directive({\n selector: '[tuiTextfieldType]',\n providers: [\n {\n provide: TUI_TEXTFIELD_TYPE,\n useExisting: forwardRef(() => TuiTextfieldTypeDirective),\n },\n ],\n})\nexport class TuiTextfieldTypeDirective extends TuiController {\n @Input('tuiTextfieldType')\n type: TuiInputTypeT = 'text';\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typeDirectiveFactory(): TuiTextfieldTypeDirective {\n return new TuiTextfieldTypeDirective();\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTextfieldAutocompleteDirective} from './textfield-autocomplete.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldExampleTextDirective} from './textfield-example-text.directive';\nimport {TuiTextfieldInputModeDirective} from './textfield-input-mode.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldMaxLengthDirective} from './textfield-max-length.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TuiTextfieldTypeDirective} from './textfield-type.directive';\n\n@NgModule({\n declarations: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n exports: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldTypeDirective,\n ],\n})\nexport class TuiTextfieldControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {merge, NEVER, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiTextfieldController} from './textfield.controller';\nimport {\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TuiTextfieldAutocompleteDirective,\n} from './textfield-autocomplete.directive';\nimport {\n TUI_TEXTFIELD_CLEANER,\n TuiTextfieldCleanerDirective,\n} from './textfield-cleaner.directive';\nimport {\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TuiTextfieldCustomContentDirective,\n} from './textfield-custom-content.directive';\nimport {\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TuiTextfieldExampleTextDirective,\n} from './textfield-example-text.directive';\nimport {\n TUI_TEXTFIELD_INPUT_MODE,\n TuiTextfieldInputModeDirective,\n} from './textfield-input-mode.directive';\nimport {\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiTextfieldLabelOutsideDirective,\n} from './textfield-label-outside.directive';\nimport {\n TUI_TEXTFIELD_MAX_LENGTH,\n TuiTextfieldMaxLengthDirective,\n} from './textfield-max-length.directive';\nimport {TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective} from './textfield-size.directive';\nimport {TUI_TEXTFIELD_TYPE, TuiTextfieldTypeDirective} from './textfield-type.directive';\n\nexport const TUI_TEXTFIELD_WATCHED_CONTROLLER =\n new InjectionToken<TuiTextfieldController>('watched textfield controller');\n\n/**\n * @deprecated: use {@link tuiTextfieldWatchedControllerFactory} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function textfieldWatchedControllerFactory(\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n ...controllers: [\n TuiTextfieldAutocompleteDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldInputModeDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldMaxLengthDirective,\n TuiTextfieldSizeDirective,\n // @ts-ignore remove after TS update\n TuiTextfieldTypeDirective,\n ]\n): TuiTextfieldController {\n const change$ = merge(...controllers.map(({change$}) => change$ || NEVER)).pipe(\n watch(changeDetectorRef),\n takeUntil(destroy$),\n );\n\n change$.subscribe();\n\n return new TuiTextfieldController(change$, ...controllers);\n}\n\nexport const TEXTFIELD_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_TEXTFIELD_WATCHED_CONTROLLER,\n deps: [\n ChangeDetectorRef,\n TuiDestroyService,\n TUI_TEXTFIELD_AUTOCOMPLETE,\n TUI_TEXTFIELD_CLEANER,\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TUI_TEXTFIELD_INPUT_MODE,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_MAX_LENGTH,\n TUI_TEXTFIELD_SIZE,\n TUI_TEXTFIELD_TYPE,\n ],\n useFactory: textfieldWatchedControllerFactory,\n },\n];\n\nexport const tuiTextfieldWatchedControllerFactory = textfieldWatchedControllerFactory;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAgBI,gCACa,OAAyB,EACjB,qBAAwD,EACxD,gBAA8C,EAC9C,sBAA0D,EAC1D,oBAAsD,EACtD,kBAAkD,EAClD,qBAAwD,EACxD,kBAAkD,EAClD,aAAwC,EACxC,aAAwC;QAThD,YAAO,GAAP,OAAO,CAAkB;QACjB,0BAAqB,GAArB,qBAAqB,CAAmC;QACxD,qBAAgB,GAAhB,gBAAgB,CAA8B;QAC9C,2BAAsB,GAAtB,sBAAsB,CAAoC;QAC1D,yBAAoB,GAApB,oBAAoB,CAAkC;QACtD,uBAAkB,GAAlB,kBAAkB,CAAgC;QAClD,0BAAqB,GAArB,qBAAqB,CAAmC;QACxD,uBAAkB,GAAlB,kBAAkB,CAAgC;QAClD,kBAAa,GAAb,aAAa,CAA2B;QACxC,kBAAa,GAAb,aAAa,CAA2B;KACzD;IAEJ,sBAAI,gDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC;SAClD;;;OAAA;IAED,sBAAI,2CAAO;aAAX;YACI,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;SACxC;;;OAAA;IAED,sBAAI,iDAAa;aAAjB;YACI,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,IAAI,EAAE,CAAC;SAC1D;;;OAAA;IAED,sBAAI,+CAAW;aAAf;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC;SAChD;;;OAAA;IAED,sBAAI,6CAAS;aAAb;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC;SAC5C;;;OAAA;IAED,sBAAI,gDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC;SAClD;;;OAAA;IAED,sBAAI,6CAAS;aAAb;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC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D,CAAC;IAEY,6BAA6B,GAAa;IACnD,iBAAiB;IACjB;QACI,OAAO,EAAE,gCAAgC;QACzC,IAAI,EAAE;YACF,iBAAiB;YACjB,iBAAiB;YACjB,0BAA0B;YAC1B,qBAAqB;YACrB,4BAA4B;YAC5B,0BAA0B;YAC1B,wBAAwB;YACxB,2BAA2B;YAC3B,wBAAwB;YACxB,kBAAkB;YAClB,kBAAkB;SACrB;QACD,UAAU,EAAE,iCAAiC;KAChD;EACH;IAEW,oCAAoC,GAAG;;AC3FpD;;;;;;"}
@@ -2,16 +2,21 @@ import { EMPTY_ARRAY, tuiZonefull } from '@taiga-ui/cdk';
2
2
  import { debounceTime, scan, distinctUntilChanged, switchMap, startWith, map } from 'rxjs/operators';
3
3
  import { pipe } from 'rxjs';
4
4
 
5
- function smartSearch(getSearchFunction, searchDebouceTimeMs) {
6
- if (searchDebouceTimeMs === void 0) { searchDebouceTimeMs = 400; }
5
+ /**
6
+ * @deprecated: use {@link tuiSmartSearch} instead
7
+ */
8
+ // eslint-disable-next-line @typescript-eslint/naming-convention
9
+ function smartSearch(getSearchFunction, searchDebounceTimeMs) {
10
+ if (searchDebounceTimeMs === void 0) { searchDebounceTimeMs = 400; }
7
11
  return function (source) {
8
- return source.pipe(debounceTime(searchDebouceTimeMs), scan(function (previousSearched, current) {
12
+ return source.pipe(debounceTime(searchDebounceTimeMs), scan(function (previousSearched, current) {
9
13
  return previousSearched !== '' && current.startsWith(previousSearched)
10
14
  ? previousSearched
11
15
  : current;
12
16
  }, ''), distinctUntilChanged(), switchMap(function (value) { return getSearchFunction(value).pipe(startWith(null)); }), startWith(EMPTY_ARRAY));
13
17
  };
14
18
  }
19
+ var tuiSmartSearch = smartSearch;
15
20
 
16
21
  /**
17
22
  * Works like regular map + distinctUntilChanged
@@ -28,5 +33,5 @@ function tuiZonefulMap(project, ngZone) {
28
33
  * Generated bundle index. Do not edit.
29
34
  */
30
35
 
31
- export { smartSearch, tuiZonefulMap };
36
+ export { smartSearch, tuiSmartSearch, tuiZonefulMap };
32
37
  //# sourceMappingURL=taiga-ui-core-observables.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-observables.js","sources":["ng://@taiga-ui/core/observables/smart-search.ts","ng://@taiga-ui/core/observables/zoneful-map.ts","ng://@taiga-ui/core/observables/taiga-ui-core-observables.ts"],"sourcesContent":["import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {Observable, OperatorFunction} from 'rxjs';\nimport {\n debounceTime,\n distinctUntilChanged,\n scan,\n startWith,\n switchMap,\n} from 'rxjs/operators';\n\nexport function smartSearch<T>(\n getSearchFunction: (search: string) => Observable<readonly T[] | readonly T[][]>,\n searchDebouceTimeMs: number = 400,\n): OperatorFunction<string, readonly T[] | readonly T[][] | null> {\n return source =>\n source.pipe(\n debounceTime(searchDebouceTimeMs),\n scan((previousSearched, current) => {\n return previousSearched !== '' && current.startsWith(previousSearched)\n ? previousSearched\n : current;\n }, ''),\n distinctUntilChanged(),\n switchMap(value => getSearchFunction(value).pipe(startWith(null))),\n startWith(EMPTY_ARRAY),\n );\n}\n","import {NgZone} from '@angular/core';\nimport {tuiZonefull} from '@taiga-ui/cdk';\nimport {OperatorFunction, pipe} from 'rxjs';\nimport {distinctUntilChanged, map} from 'rxjs/operators';\n\n/**\n * Works like regular map + distinctUntilChanged\n * and only returns to NgZone if value has changed\n *\n * @param project mapping function\n * @param ngZone NgZone instance\n */\nexport function tuiZonefulMap<T, R>(\n project: (value: T, index: number) => R,\n ngZone: NgZone,\n): OperatorFunction<T, R> {\n return pipe(map(project), distinctUntilChanged(), tuiZonefull(ngZone));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SAUgB,WAAW,CACvB,iBAAgF,EAChF,mBAAiC;IAAjC,oCAAA,EAAA,yBAAiC;IAEjC,OAAO,UAAA,MAAM;QACT,OAAA,MAAM,CAAC,IAAI,CACP,YAAY,CAAC,mBAAmB,CAAC,EACjC,IAAI,CAAC,UAAC,gBAAgB,EAAE,OAAO;YAC3B,OAAO,gBAAgB,KAAK,EAAE,IAAI,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;kBAChE,gBAAgB;kBAChB,OAAO,CAAC;SACjB,EAAE,EAAE,CAAC,EACN,oBAAoB,EAAE,EACtB,SAAS,CAAC,UAAA,KAAK,IAAI,OAAA,iBAAiB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAA,CAAC,EAClE,SAAS,CAAC,WAAW,CAAC,CACzB;KAAA,CAAC;AACV;;ACrBA;;;;;;;SAOgB,aAAa,CACzB,OAAuC,EACvC,MAAc;IAEd,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,oBAAoB,EAAE,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3E;;ACjBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-observables.js","sources":["ng://@taiga-ui/core/observables/smart-search.ts","ng://@taiga-ui/core/observables/zoneful-map.ts","ng://@taiga-ui/core/observables/taiga-ui-core-observables.ts"],"sourcesContent":["import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {Observable, OperatorFunction} from 'rxjs';\nimport {\n debounceTime,\n distinctUntilChanged,\n scan,\n startWith,\n switchMap,\n} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiSmartSearch} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function smartSearch<T>(\n getSearchFunction: (search: string) => Observable<readonly T[] | readonly T[][]>,\n searchDebounceTimeMs: number = 400,\n): OperatorFunction<string, readonly T[] | readonly T[][] | null> {\n return source =>\n source.pipe(\n debounceTime(searchDebounceTimeMs),\n scan((previousSearched, current) => {\n return previousSearched !== '' && current.startsWith(previousSearched)\n ? previousSearched\n : current;\n }, ''),\n distinctUntilChanged(),\n switchMap(value => getSearchFunction(value).pipe(startWith(null))),\n startWith(EMPTY_ARRAY),\n );\n}\n\nexport const tuiSmartSearch = smartSearch;\n","import {NgZone} from '@angular/core';\nimport {tuiZonefull} from '@taiga-ui/cdk';\nimport {OperatorFunction, pipe} from 'rxjs';\nimport {distinctUntilChanged, map} from 'rxjs/operators';\n\n/**\n * Works like regular map + distinctUntilChanged\n * and only returns to NgZone if value has changed\n *\n * @param project mapping function\n * @param ngZone NgZone instance\n */\nexport function tuiZonefulMap<T, R>(\n project: (value: T, index: number) => R,\n ngZone: NgZone,\n): OperatorFunction<T, R> {\n return pipe(map(project), distinctUntilChanged(), tuiZonefull(ngZone));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAUA;;;AAGA;SACgB,WAAW,CACvB,iBAAgF,EAChF,oBAAkC;IAAlC,qCAAA,EAAA,0BAAkC;IAElC,OAAO,UAAA,MAAM;QACT,OAAA,MAAM,CAAC,IAAI,CACP,YAAY,CAAC,oBAAoB,CAAC,EAClC,IAAI,CAAC,UAAC,gBAAgB,EAAE,OAAO;YAC3B,OAAO,gBAAgB,KAAK,EAAE,IAAI,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;kBAChE,gBAAgB;kBAChB,OAAO,CAAC;SACjB,EAAE,EAAE,CAAC,EACN,oBAAoB,EAAE,EACtB,SAAS,CAAC,UAAA,KAAK,IAAI,OAAA,iBAAiB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAA,CAAC,EAClE,SAAS,CAAC,WAAW,CAAC,CACzB;KAAA,CAAC;AACV,CAAC;IAEY,cAAc,GAAG;;AC3B9B;;;;;;;SAOgB,aAAa,CACzB,OAAuC,EACvC,MAAc;IAEd,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,oBAAoB,EAAE,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3E;;ACjBA;;;;;;"}
@@ -5,6 +5,10 @@ import { of } from 'rxjs';
5
5
  import { startWith, map, takeUntil } from 'rxjs/operators';
6
6
  import { watch } from '@taiga-ui/cdk';
7
7
 
8
+ /**
9
+ * @deprecated: use {@link tuiIsMobileResFactory} instead
10
+ */
11
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
12
  function isMobileResFactory(mobile$, _a) {
9
13
  var nativeElement = _a.nativeElement;
10
14
  nativeElement['$.class._mobile'] = mobile$;
@@ -15,7 +19,12 @@ var TUI_IS_MOBILE_RES_PROVIDER = {
15
19
  deps: [[new SkipSelf(), TUI_IS_MOBILE_RES], ElementRef],
16
20
  useFactory: isMobileResFactory,
17
21
  };
22
+ var tuiIsMobileResFactory = isMobileResFactory;
18
23
 
24
+ /**
25
+ * @deprecated: use {@link tuiModeFactory} instead
26
+ */
27
+ // eslint-disable-next-line @typescript-eslint/naming-convention
19
28
  function modeFactory(mode, _a) {
20
29
  var nativeElement = _a.nativeElement;
21
30
  var mode$ = mode
@@ -29,15 +38,21 @@ var MODE_PROVIDER = {
29
38
  deps: [[new Optional(), TuiModeDirective], ElementRef],
30
39
  useFactory: modeFactory,
31
40
  };
41
+ var tuiModeFactory = modeFactory;
32
42
 
43
+ /**
44
+ * @deprecated: use {@link tuiWatchedControllerFactory} instead
45
+ */
46
+ // eslint-disable-next-line @typescript-eslint/naming-convention
33
47
  function watchedControllerFactory(controller, changeDetectorRef, destroy$) {
34
48
  controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();
35
49
  return controller;
36
50
  }
51
+ var tuiWatchedControllerFactory = watchedControllerFactory;
37
52
 
38
53
  /**
39
54
  * Generated bundle index. Do not edit.
40
55
  */
41
56
 
42
- export { MODE_PROVIDER, TUI_IS_MOBILE_RES_PROVIDER, isMobileResFactory, modeFactory, watchedControllerFactory };
57
+ export { MODE_PROVIDER, TUI_IS_MOBILE_RES_PROVIDER, isMobileResFactory, modeFactory, tuiIsMobileResFactory, tuiModeFactory, tuiWatchedControllerFactory, watchedControllerFactory };
43
58
  //# sourceMappingURL=taiga-ui-core-providers.js.map
@@ -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\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","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\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","import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nexport function watchedControllerFactory(\n controller: TuiController,\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n): TuiController {\n controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;SAIgB,kBAAkB,CAC9B,OAA4B,EAC5B,EAA2B;QAA1B,gCAAa;IAEd,aAAa,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC;IAE3C,OAAO,OAAO,CAAC;AACnB,CAAC;IAEY,0BAA0B,GAAa;IAChD,OAAO,EAAE,iBAAiB;IAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,iBAAiB,CAAC,EAAE,UAAU,CAAC;IACvD,UAAU,EAAE,kBAAkB;;;SCTlB,WAAW,CACvB,IAA6B,EAC7B,EAA2B;QAA1B,gCAAa;IAEd,IAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,cAAM,OAAA,IAAI,CAAC,IAAI,GAAA,CAAC,CACvB;UACD,EAAE,CAAC,IAAI,CAAC,CAAC;IAEf,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC;IAE1C,OAAO,KAAK,CAAC;AACjB,CAAC;IAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;;;SCrBX,wBAAwB,CACpC,UAAyB,EACzB,iBAAoC,EACpC,QAA0B;IAE1B,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAEnF,OAAO,UAAU,CAAC;AACtB;;ACbA;;;;;;"}
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,EAA2B;QAA1B,gCAAa;IAEd,aAAa,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC;IAE3C,OAAO,OAAO,CAAC;AACnB,CAAC;IAEY,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;IAEW,qBAAqB,GAAG;;AChBrC;;;AAGA;SACgB,WAAW,CACvB,IAA6B,EAC7B,EAA2B;QAA1B,gCAAa;IAEd,IAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,cAAM,OAAA,IAAI,CAAC,IAAI,GAAA,CAAC,CACvB;UACD,EAAE,CAAC,IAAI,CAAC,CAAC;IAEf,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC;IAE1C,OAAO,KAAK,CAAC;AACjB,CAAC;IAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACtD,UAAU,EAAE,WAAW;EACzB;IAEW,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;IAEY,2BAA2B,GAAG;;ACnB3C;;;;;;"}
@@ -1,12 +1,19 @@
1
1
  import { isEdgeOlderThan } from '@taiga-ui/cdk';
2
2
 
3
3
  /**
4
+ * @deprecated: use {@link tuiAreCssVarsSupported} instead
4
5
  * TODO: 3.0 remove this function
5
6
  */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
6
8
  function areCssVarsSupported(cssRef, userAgent) {
7
9
  return cssRef.supports('(--a: 0)') && !isEdgeOlderThan(17, userAgent);
8
10
  }
11
+ var tuiAreCssVarsSupported = areCssVarsSupported;
9
12
 
13
+ /**
14
+ * @deprecated: use {@link tuiCheckFixedPosition} instead
15
+ */
16
+ // eslint-disable-next-line @typescript-eslint/naming-convention
10
17
  function checkFixedPosition(element) {
11
18
  if (!element || typeof getComputedStyle === 'undefined') {
12
19
  return false;
@@ -15,12 +22,15 @@ function checkFixedPosition(element) {
15
22
  return (style.getPropertyValue('position') === 'fixed' ||
16
23
  checkFixedPosition(element.parentElement));
17
24
  }
25
+ var tuiCheckFixedPosition = checkFixedPosition;
18
26
 
19
27
  /**
28
+ * @deprecated: use {@link tuiGetSafeAreaSize} instead
20
29
  * Calculates size of safe area on mobile devices (status bars)
21
30
  *
22
31
  * ATTENTION: Only use in browser environment
23
32
  */
33
+ // eslint-disable-next-line @typescript-eslint/naming-convention
24
34
  function getSafeAreaSize() {
25
35
  if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {
26
36
  return 0;
@@ -32,10 +42,16 @@ function getSafeAreaSize() {
32
42
  document.body.removeChild(div);
33
43
  return safeAreaSize;
34
44
  }
45
+ var tuiGetSafeAreaSize = getSafeAreaSize;
35
46
 
47
+ /**
48
+ * @deprecated: use {@link tuiGetScreenWidth} instead
49
+ */
50
+ // eslint-disable-next-line @typescript-eslint/naming-convention
36
51
  function getScreenWidth(documentRef) {
37
52
  return Math.max(documentRef.documentElement.clientWidth, documentRef.defaultView ? documentRef.defaultView.innerWidth : 0);
38
53
  }
54
+ var tuiGetScreenWidth = getScreenWidth;
39
55
 
40
56
  /**
41
57
  * @description:
@@ -84,6 +100,10 @@ function tuiGetViewportWidth(_a) {
84
100
  var WIDTH_SEARCH = 'width="';
85
101
  var HEIGHT_SEARCH = 'height="';
86
102
  var START = '<svg';
103
+ /**
104
+ * @deprecated: use {@link tuiProcessIcon} instead
105
+ */
106
+ // eslint-disable-next-line @typescript-eslint/naming-convention
87
107
  function processIcon(source, name) {
88
108
  if (source.includes("id=\"" + name + "\"")) {
89
109
  return source;
@@ -113,10 +133,11 @@ function processIcon(source, name) {
113
133
  var height = parseInt(heightString, 10);
114
134
  return "<g id=\"" + name + "\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"" + width / 16 + "em\" height=\"" + height / 16 + "em\" overflow=\"visible\" viewBox=\"0 0 " + width + " " + height + "\"><svg x=\"" + -width / 2 + "\" y=\"" + -height / 2 + "\">" + src + "</svg></svg></g>";
115
135
  }
136
+ var tuiProcessIcon = processIcon;
116
137
 
117
138
  /**
118
139
  * Generated bundle index. Do not edit.
119
140
  */
120
141
 
121
- export { areCssVarsSupported, checkFixedPosition, getSafeAreaSize, getScreenWidth, processIcon, tuiGetViewportHeight, tuiGetViewportWidth };
142
+ export { areCssVarsSupported, checkFixedPosition, getSafeAreaSize, getScreenWidth, processIcon, tuiAreCssVarsSupported, tuiCheckFixedPosition, tuiGetSafeAreaSize, tuiGetScreenWidth, tuiGetViewportHeight, tuiGetViewportWidth, tuiProcessIcon };
122
143
  //# sourceMappingURL=taiga-ui-core-utils-dom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-utils-dom.js","sources":["ng://@taiga-ui/core/utils/dom/are-css-vars-supported.ts","ng://@taiga-ui/core/utils/dom/check-fixed-position.ts","ng://@taiga-ui/core/utils/dom/get-safe-area-size.ts","ng://@taiga-ui/core/utils/dom/get-screen-width.ts","ng://@taiga-ui/core/utils/dom/get-viewport-height.ts","ng://@taiga-ui/core/utils/dom/get-viewport-width.ts","ng://@taiga-ui/core/utils/dom/process-icon.ts","ng://@taiga-ui/core/utils/dom/taiga-ui-core-utils-dom.ts"],"sourcesContent":["import {isEdgeOlderThan} from '@taiga-ui/cdk';\n\n/**\n * TODO: 3.0 remove this function\n */\nexport function areCssVarsSupported(cssRef: typeof CSS, userAgent: string): boolean {\n return cssRef.supports('(--a: 0)') && !isEdgeOlderThan(17, userAgent);\n}\n","export function checkFixedPosition(element: HTMLElement | null): boolean {\n if (!element || typeof getComputedStyle === 'undefined') {\n return false;\n }\n\n const style = getComputedStyle(element);\n\n return (\n style.getPropertyValue('position') === 'fixed' ||\n checkFixedPosition(element.parentElement)\n );\n}\n","/**\n * Calculates size of safe area on mobile devices (status bars)\n *\n * ATTENTION: Only use in browser environment\n */\nexport function getSafeAreaSize(): number {\n if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {\n return 0;\n }\n\n const div = document.createElement('div');\n\n div.style.paddingTop = 'env(safe-area-inset-top)';\n document.body.appendChild(div);\n\n const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop!, 10) || 0;\n\n document.body.removeChild(div);\n\n return safeAreaSize;\n}\n","export function getScreenWidth(documentRef: Document): number {\n return Math.max(\n documentRef.documentElement.clientWidth,\n documentRef.defaultView ? documentRef.defaultView.innerWidth : 0,\n );\n}\n","/**\n * @description:\n * Cross-browser @media (height)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (height) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientHeight\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (height) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportHeight({document, innerHeight}: Window): number {\n return Math.max(document.documentElement.clientHeight || 0, innerHeight || 0);\n}\n","/**\n * @description:\n * Cross-browser @media (width)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (width) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientWidth\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (width) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportWidth({document, innerWidth}: Window): number {\n return Math.max(document.documentElement.clientWidth || 0, innerWidth || 0);\n}\n","const WIDTH_SEARCH = 'width=\"';\nconst HEIGHT_SEARCH = 'height=\"';\nconst START = '<svg';\n\nexport function processIcon(source: string, name: string): string {\n if (source.includes(`id=\"${name}\"`)) {\n return source;\n }\n\n const src = source.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(0, src.indexOf('>')));\n\n if (\n !attributes ||\n !attributes.includes(WIDTH_SEARCH) ||\n !attributes.includes(HEIGHT_SEARCH)\n ) {\n return `${src.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n )}</g></svg>`;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.slice(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.slice(\n heightOffset,\n attributes.indexOf('\"', heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes('%') ||\n heightString.includes('%') ||\n widthString.includes('em') ||\n heightString.includes('em')\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n\n return `<g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"${\n width / 16\n }em\" height=\"${\n height / 16\n }em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\"><svg x=\"${-width / 2}\" y=\"${\n -height / 2\n }\">${src}</svg></svg></g>`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;SAGgB,mBAAmB,CAAC,MAAkB,EAAE,SAAiB;IACrE,OAAO,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;AAC1E;;SCPgB,kBAAkB,CAAC,OAA2B;IAC1D,IAAI,CAAC,OAAO,IAAI,OAAO,gBAAgB,KAAK,WAAW,EAAE;QACrD,OAAO,KAAK,CAAC;KAChB;IAED,IAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAExC,QACI,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,OAAO;QAC9C,kBAAkB,CAAC,OAAO,CAAC,aAAa,CAAC,EAC3C;AACN;;ACXA;;;;;SAKgB,eAAe;IAC3B,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,uCAAuC,CAAC,EAAE;QACxD,OAAO,CAAC,CAAC;KACZ;IAED,IAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAE1C,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,0BAA0B,CAAC;IAClD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W,EAAE,EAAE,CAAC,CAAC;IACxC,IAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE1C,OAAO,aAAU,IAAI,kFACjB,KAAK,GAAG,EAAE,sBAEV,MAAM,GAAG,EAAE,gDACwB,KAAK,SAAI,MAAM,oBAAa,CAAC,KAAK,GAAG,CAAC,eACzE,CAAC,MAAM,GAAG,CAAC,WACV,GAAG,qBAAkB,CAAC;AAC/B;;ACzDA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-utils-dom.js","sources":["ng://@taiga-ui/core/utils/dom/are-css-vars-supported.ts","ng://@taiga-ui/core/utils/dom/check-fixed-position.ts","ng://@taiga-ui/core/utils/dom/get-safe-area-size.ts","ng://@taiga-ui/core/utils/dom/get-screen-width.ts","ng://@taiga-ui/core/utils/dom/get-viewport-height.ts","ng://@taiga-ui/core/utils/dom/get-viewport-width.ts","ng://@taiga-ui/core/utils/dom/process-icon.ts","ng://@taiga-ui/core/utils/dom/taiga-ui-core-utils-dom.ts"],"sourcesContent":["import {isEdgeOlderThan} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiAreCssVarsSupported} instead\n * TODO: 3.0 remove this function\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function areCssVarsSupported(cssRef: typeof CSS, userAgent: string): boolean {\n return cssRef.supports('(--a: 0)') && !isEdgeOlderThan(17, userAgent);\n}\n\nexport const tuiAreCssVarsSupported = areCssVarsSupported;\n","/**\n * @deprecated: use {@link tuiCheckFixedPosition} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function checkFixedPosition(element: HTMLElement | null): boolean {\n if (!element || typeof getComputedStyle === 'undefined') {\n return false;\n }\n\n const style = getComputedStyle(element);\n\n return (\n style.getPropertyValue('position') === 'fixed' ||\n checkFixedPosition(element.parentElement)\n );\n}\n\nexport const tuiCheckFixedPosition = checkFixedPosition;\n","/**\n * @deprecated: use {@link tuiGetSafeAreaSize} instead\n * Calculates size of safe area on mobile devices (status bars)\n *\n * ATTENTION: Only use in browser environment\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getSafeAreaSize(): number {\n if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {\n return 0;\n }\n\n const div = document.createElement('div');\n\n div.style.paddingTop = 'env(safe-area-inset-top)';\n document.body.appendChild(div);\n\n const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop!, 10) || 0;\n\n document.body.removeChild(div);\n\n return safeAreaSize;\n}\n\nexport const tuiGetSafeAreaSize = getSafeAreaSize;\n","/**\n * @deprecated: use {@link tuiGetScreenWidth} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getScreenWidth(documentRef: Document): number {\n return Math.max(\n documentRef.documentElement.clientWidth,\n documentRef.defaultView ? documentRef.defaultView.innerWidth : 0,\n );\n}\n\nexport const tuiGetScreenWidth = getScreenWidth;\n","/**\n * @description:\n * Cross-browser @media (height)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (height) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientHeight\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (height) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportHeight({document, innerHeight}: Window): number {\n return Math.max(document.documentElement.clientHeight || 0, innerHeight || 0);\n}\n","/**\n * @description:\n * Cross-browser @media (width)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (width) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientWidth\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (width) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportWidth({document, innerWidth}: Window): number {\n return Math.max(document.documentElement.clientWidth || 0, innerWidth || 0);\n}\n","const WIDTH_SEARCH = 'width=\"';\nconst HEIGHT_SEARCH = 'height=\"';\nconst START = '<svg';\n\n/**\n * @deprecated: use {@link tuiProcessIcon} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function processIcon(source: string, name: string): string {\n if (source.includes(`id=\"${name}\"`)) {\n return source;\n }\n\n const src = source.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(0, src.indexOf('>')));\n\n if (\n !attributes ||\n !attributes.includes(WIDTH_SEARCH) ||\n !attributes.includes(HEIGHT_SEARCH)\n ) {\n return `${src.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n )}</g></svg>`;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.slice(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.slice(\n heightOffset,\n attributes.indexOf('\"', heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes('%') ||\n heightString.includes('%') ||\n widthString.includes('em') ||\n heightString.includes('em')\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n\n return `<g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"${\n width / 16\n }em\" height=\"${\n height / 16\n }em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\"><svg x=\"${-width / 2}\" y=\"${\n -height / 2\n }\">${src}</svg></svg></g>`;\n}\n\nexport const tuiProcessIcon = processIcon;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;;AAIA;SACgB,mBAAmB,CAAC,MAAkB,EAAE,SAAiB;IACrE,OAAO,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;AAC1E,CAAC;IAEY,sBAAsB,GAAG;;ACXtC;;;AAGA;SACgB,kBAAkB,CAAC,OAA2B;IAC1D,IAAI,CAAC,OAAO,IAAI,OAAO,gBAAgB,KAAK,WAAW,EAAE;QACrD,OAAO,KAAK,CAAC;KAChB;IAED,IAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAExC,QACI,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,OAAO;QAC9C,kBAAkB,CAAC,OAAO,CAAC,aAAa,CAAC,EAC3C;AACN,CAAC;IAEY,qBAAqB,GAAG;;ACjBrC;;;;;;AAMA;SACgB,eAAe;IAC3B,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,uCAAuC,CAAC,EAAE;QACxD,OAAO,CAAC,CAAC;KACZ;IAED,IAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAE1C,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,0BAA0B,CAAC;IAClD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAE/B,IAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,UAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAEjF,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAE/B,OAAO,YAAY,CAAC;AACxB,CAAC;IAEY,kBAAkB,GAAG;;ACxBlC;;;AAGA;SACgB,cAAc,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