@taiga-ui/core 2.40.0 → 2.42.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 (309) hide show
  1. package/bundles/{taiga-ui-core-modules-notifications.umd.js → taiga-ui-core-components-alert.umd.js} +102 -135
  2. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -0
  3. package/bundles/taiga-ui-core-components-alert.umd.min.js +16 -0
  4. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -0
  5. package/bundles/taiga-ui-core-components-button.umd.js +1 -1
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.js +3 -3
  10. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  12. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -1
  14. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  16. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  18. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  20. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-expand.umd.js +1 -1
  22. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  24. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-hints-host.umd.js +2 -2
  26. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +1 -1
  28. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +1 -1
  30. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  32. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  34. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  36. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +1 -1
  38. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  40. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +1 -1
  42. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +1 -1
  44. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +4 -4
  46. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  48. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-root.umd.js +14 -18
  50. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-root.umd.min.js +2 -2
  52. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +3 -3
  54. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +1 -1
  56. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components.umd.js +12 -4
  58. package/bundles/taiga-ui-core-components.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-constants.umd.js +1 -1
  61. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  62. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  63. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +1 -1
  65. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js +1 -1
  67. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core.umd.js +4 -12
  71. package/bundles/taiga-ui-core.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core.umd.min.js +1 -1
  73. package/components/alert/alert.component.d.ts +35 -0
  74. package/components/alert/alert.module.d.ts +5 -0
  75. package/components/alert/alert.service.d.ts +18 -0
  76. package/components/alert/index.d.ts +3 -0
  77. package/components/alert/package.json +13 -0
  78. package/{modules/notifications/taiga-ui-core-modules-notifications.d.ts → components/alert/taiga-ui-core-components-alert.d.ts} +0 -0
  79. package/components/alert/taiga-ui-core-components-alert.metadata.json +1 -0
  80. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  81. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  82. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  83. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  84. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  85. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  86. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  87. package/components/index.d.ts +1 -0
  88. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  89. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  90. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  91. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  92. package/components/root/root.component.d.ts +3 -4
  93. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  94. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  95. package/components/taiga-ui-core-components.metadata.json +1 -1
  96. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  97. package/constants/version.d.ts +1 -1
  98. package/esm2015/components/alert/alert.component.js +91 -0
  99. package/esm2015/components/alert/alert.module.js +34 -0
  100. package/esm2015/components/alert/alert.service.js +49 -0
  101. package/esm2015/components/alert/index.js +4 -0
  102. package/esm2015/components/alert/taiga-ui-core-components-alert.js +5 -0
  103. package/esm2015/components/button/button.component.js +2 -2
  104. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +2 -2
  105. package/esm2015/components/data-list/data-list.component.js +2 -2
  106. package/esm2015/components/data-list/option/option.component.js +2 -2
  107. package/esm2015/components/dialog/dialog.component.js +2 -2
  108. package/esm2015/components/dropdown-box/dropdown-box.component.js +2 -2
  109. package/esm2015/components/expand/expand.component.js +2 -2
  110. package/esm2015/components/hints-host/hint-box/hint-box.component.js +2 -2
  111. package/esm2015/components/hints-host/hints-host.component.js +2 -2
  112. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  113. package/esm2015/components/index.js +2 -1
  114. package/esm2015/components/label/label.component.js +2 -2
  115. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +2 -2
  116. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  117. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +3 -3
  118. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +1 -1
  119. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +2 -2
  120. package/esm2015/components/root/root.component.js +11 -17
  121. package/esm2015/components/root/root.module.js +3 -2
  122. package/esm2015/components/scroll-controls/scroll-controls.component.js +2 -2
  123. package/esm2015/components/scroll-controls/scrollbar.directive.js +3 -3
  124. package/esm2015/constants/version.js +2 -2
  125. package/esm2015/index.js +1 -2
  126. package/esm2015/interfaces/alert-options.js +1 -0
  127. package/esm2015/interfaces/index.js +1 -1
  128. package/esm2015/interfaces/notification-options.js +1 -1
  129. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  130. package/esm2015/tokens/notification-options.js +1 -1
  131. package/esm5/components/alert/alert.component.js +98 -0
  132. package/esm5/components/alert/alert.module.js +40 -0
  133. package/esm5/components/alert/alert.service.js +54 -0
  134. package/esm5/components/alert/index.js +4 -0
  135. package/esm5/components/alert/taiga-ui-core-components-alert.js +5 -0
  136. package/esm5/components/button/button.component.js +2 -2
  137. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +2 -2
  138. package/esm5/components/data-list/data-list.component.js +2 -2
  139. package/esm5/components/data-list/option/option.component.js +2 -2
  140. package/esm5/components/dialog/dialog.component.js +2 -2
  141. package/esm5/components/dropdown-box/dropdown-box.component.js +2 -2
  142. package/esm5/components/expand/expand.component.js +2 -2
  143. package/esm5/components/hints-host/hint-box/hint-box.component.js +2 -2
  144. package/esm5/components/hints-host/hints-host.component.js +2 -2
  145. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +2 -2
  146. package/esm5/components/index.js +2 -1
  147. package/esm5/components/label/label.component.js +2 -2
  148. package/esm5/components/primitive-calendar/primitive-calendar.component.js +2 -2
  149. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +2 -2
  150. package/esm5/components/primitive-textfield/primitive-textfield.component.js +3 -3
  151. package/esm5/components/primitive-textfield/textfield/textfield.component.js +1 -1
  152. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +2 -2
  153. package/esm5/components/root/root.component.js +11 -17
  154. package/esm5/components/root/root.module.js +3 -2
  155. package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
  156. package/esm5/components/scroll-controls/scrollbar.directive.js +3 -3
  157. package/esm5/constants/version.js +2 -2
  158. package/esm5/index.js +1 -2
  159. package/esm5/interfaces/alert-options.js +1 -0
  160. package/esm5/interfaces/index.js +1 -1
  161. package/esm5/interfaces/notification-options.js +1 -1
  162. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  163. package/esm5/tokens/notification-options.js +1 -1
  164. package/fesm2015/taiga-ui-core-components-alert.js +162 -0
  165. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -0
  166. package/fesm2015/taiga-ui-core-components-button.js +1 -1
  167. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  168. package/fesm2015/taiga-ui-core-components-data-list.js +3 -3
  169. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  170. package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
  171. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  172. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  173. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  174. package/fesm2015/taiga-ui-core-components-expand.js +1 -1
  175. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  176. package/fesm2015/taiga-ui-core-components-hints-host.js +2 -2
  177. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  178. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -1
  179. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  180. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  181. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  182. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +1 -1
  183. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  184. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +1 -1
  185. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  186. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +4 -4
  187. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  188. package/fesm2015/taiga-ui-core-components-root.js +12 -17
  189. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  190. package/fesm2015/taiga-ui-core-components-scroll-controls.js +3 -3
  191. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  192. package/fesm2015/taiga-ui-core-components.js +1 -0
  193. package/fesm2015/taiga-ui-core-components.js.map +1 -1
  194. package/fesm2015/taiga-ui-core-constants.js +1 -1
  195. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  196. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  197. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  198. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  199. package/fesm2015/taiga-ui-core.js +0 -1
  200. package/fesm2015/taiga-ui-core.js.map +1 -1
  201. package/fesm5/taiga-ui-core-components-alert.js +180 -0
  202. package/fesm5/taiga-ui-core-components-alert.js.map +1 -0
  203. package/fesm5/taiga-ui-core-components-button.js +1 -1
  204. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  205. package/fesm5/taiga-ui-core-components-data-list.js +3 -3
  206. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  207. package/fesm5/taiga-ui-core-components-dialog.js +1 -1
  208. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  209. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  210. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  211. package/fesm5/taiga-ui-core-components-expand.js +1 -1
  212. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  213. package/fesm5/taiga-ui-core-components-hints-host.js +2 -2
  214. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  215. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +1 -1
  216. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  217. package/fesm5/taiga-ui-core-components-label.js +1 -1
  218. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  219. package/fesm5/taiga-ui-core-components-primitive-calendar.js +1 -1
  220. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  221. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +1 -1
  222. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  223. package/fesm5/taiga-ui-core-components-primitive-textfield.js +4 -4
  224. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  225. package/fesm5/taiga-ui-core-components-root.js +12 -17
  226. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  227. package/fesm5/taiga-ui-core-components-scroll-controls.js +3 -3
  228. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  229. package/fesm5/taiga-ui-core-components.js +1 -0
  230. package/fesm5/taiga-ui-core-components.js.map +1 -1
  231. package/fesm5/taiga-ui-core-constants.js +1 -1
  232. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  233. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  234. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  235. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  236. package/fesm5/taiga-ui-core.js +0 -1
  237. package/fesm5/taiga-ui-core.js.map +1 -1
  238. package/index.d.ts +0 -1
  239. package/interfaces/alert-options.d.ts +12 -0
  240. package/interfaces/index.d.ts +1 -0
  241. package/interfaces/notification-options.d.ts +3 -0
  242. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  243. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  244. package/package.json +7 -7
  245. package/styles/markup/tui-group.less +1 -1
  246. package/styles/mixins/mixins.less +1 -0
  247. package/styles/mixins/slider.less +17 -0
  248. package/styles/taiga-ui-stackblitz.less +7 -0
  249. package/styles/theme/wrapper/accent.less +1 -1
  250. package/styles/theme/wrapper/base.less +1 -1
  251. package/styles/theme/wrapper/icon.less +1 -1
  252. package/styles/theme/wrapper/none.less +6 -0
  253. package/styles/theme/wrapper/outline.less +1 -1
  254. package/styles/theme/wrapper/whiteblock.less +1 -1
  255. package/styles/theme/wrapper.less +1 -1
  256. package/taiga-ui-core.metadata.json +1 -1
  257. package/tokens/notification-options.d.ts +2 -10
  258. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  259. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +0 -1
  260. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +0 -16
  261. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +0 -1
  262. package/bundles/taiga-ui-core-modules.umd.js +0 -23
  263. package/bundles/taiga-ui-core-modules.umd.js.map +0 -1
  264. package/bundles/taiga-ui-core-modules.umd.min.js +0 -2
  265. package/bundles/taiga-ui-core-modules.umd.min.js.map +0 -1
  266. package/esm2015/modules/index.js +0 -2
  267. package/esm2015/modules/notifications/index.js +0 -7
  268. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +0 -22
  269. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +0 -74
  270. package/esm2015/modules/notifications/notification-alert/notification-alert.module.js +0 -17
  271. package/esm2015/modules/notifications/notification-content-context.js +0 -1
  272. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +0 -35
  273. package/esm2015/modules/notifications/notifications.module.js +0 -26
  274. package/esm2015/modules/notifications/notifications.service.js +0 -38
  275. package/esm2015/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  276. package/esm2015/modules/taiga-ui-core-modules.js +0 -5
  277. package/esm5/modules/index.js +0 -2
  278. package/esm5/modules/notifications/index.js +0 -7
  279. package/esm5/modules/notifications/notification-alert/Notification-alert.js +0 -24
  280. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +0 -81
  281. package/esm5/modules/notifications/notification-alert/notification-alert.module.js +0 -20
  282. package/esm5/modules/notifications/notification-content-context.js +0 -1
  283. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +0 -36
  284. package/esm5/modules/notifications/notifications.module.js +0 -29
  285. package/esm5/modules/notifications/notifications.service.js +0 -41
  286. package/esm5/modules/notifications/taiga-ui-core-modules-notifications.js +0 -5
  287. package/esm5/modules/taiga-ui-core-modules.js +0 -5
  288. package/fesm2015/taiga-ui-core-modules-notifications.js +0 -192
  289. package/fesm2015/taiga-ui-core-modules-notifications.js.map +0 -1
  290. package/fesm2015/taiga-ui-core-modules.js +0 -6
  291. package/fesm2015/taiga-ui-core-modules.js.map +0 -1
  292. package/fesm5/taiga-ui-core-modules-notifications.js +0 -210
  293. package/fesm5/taiga-ui-core-modules-notifications.js.map +0 -1
  294. package/fesm5/taiga-ui-core-modules.js +0 -6
  295. package/fesm5/taiga-ui-core-modules.js.map +0 -1
  296. package/modules/index.d.ts +0 -1
  297. package/modules/notifications/index.d.ts +0 -7
  298. package/modules/notifications/notification-alert/Notification-alert.d.ts +0 -19
  299. package/modules/notifications/notification-alert/notification-alert.component.d.ts +0 -17
  300. package/modules/notifications/notification-alert/notification-alert.module.d.ts +0 -2
  301. package/modules/notifications/notification-content-context.d.ts +0 -10
  302. package/modules/notifications/notifications-host/notifications-host.component.d.ts +0 -9
  303. package/modules/notifications/notifications.module.d.ts +0 -4
  304. package/modules/notifications/notifications.service.d.ts +0 -15
  305. package/modules/notifications/package.json +0 -13
  306. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +0 -1
  307. package/modules/package.json +0 -13
  308. package/modules/taiga-ui-core-modules.d.ts +0 -4
  309. package/modules/taiga-ui-core-modules.metadata.json +0 -1
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var _=function(t,e){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function w(t,e){function i(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var k=function(){return(k=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function T(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}function I(t,e){return function(i,o){e(i,o,t)}}var D=[{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:e.forwardRef((function(){return C}))},n.TEXTFIELD_CONTROLLER_PROVIDER,o.HINT_CONTROLLER_PROVIDER,d.MODE_PROVIDER],E={iconAlign:"right",iconCleaner:"tuiIconCloseLarge"},O=new e.InjectionToken("Default parameters for primitive textfield component",{factory:function(){return E}}),C=function(t){function d(i,o,n,r,a,l){var s=t.call(this)||this;return s.mode$=i,s.appearance=o,s.controller=n,s.hintController=r,s.options=a,s.elementRef=l,s.editable=!0,s.filler="",s.iconAlign=s.options.iconAlign,s.iconContent=null,s.iconCleaner=s.options.iconCleaner,s.readOnly=!1,s.invalid=!1,s.disabled=!1,s.prefix="",s.postfix="",s.value="",s.valueChange=new e.EventEmitter,s.autofilledChange=new e.EventEmitter,s.autofilled=!1,s}return w(d,t),Object.defineProperty(d.prototype,"nativeFocusableElement",{get:function(){return this.computedDisabled||!this.focusableElement?null:this.focusableElement.nativeElement.previousElementSibling||this.focusableElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"focused",{get:function(){return i.isNativeFocusedIn(this.elementRef.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"size",{get:function(){return this.controller.size},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"computedInvalid",{get:function(){return!this.readOnly&&!this.disabled&&this.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"inputHidden",{get:function(){var t;return!!(null===(t=this.content)||void 0===t?void 0:t.length)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasValue",{get:function(){return!!this.value},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasCleaner",{get:function(){return this.controller.cleaner&&this.hasValue&&!this.disabled&&!this.readOnly},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasTooltip",{get:function(){var t;return!!(null===(t=this.hintController)||void 0===t?void 0:t.content)&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasCustomContent",{get:function(){return!!this.controller.customContent},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasPlaceholder",{get:function(){var t,e=(this.controller.exampleText||this.prefix||this.postfix||(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder))&&!this.readOnly&&this.computedFocused,i=!this.hasValue&&!e;return this.placeholderRaisable||i},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"placeholderRaised",{get:function(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"borderStart",{get:function(){return this.iconAlignLeft?this.iconPaddingLeft:0},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"borderEnd",{get:function(){return a.getBorder(this.iconAlignRight,this.hasCleaner,this.hasTooltip,this.hasCustomContent)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconAlignLeft",{get:function(){return this.hasIcon&&"left"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconAlignRight",{get:function(){return this.hasIcon&&"right"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"name",{get:function(){return"cc-exp"===this.controller.autocomplete?"ccexpiryyear":null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"computedId",{get:function(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.id)||""},enumerable:!0,configurable:!0}),d.prototype.onFocused=function(t){this.updateFocused(t)},d.prototype.getIndent$=function(t){return s.fromEvent(t,"scroll").pipe(u.map((function(){return-1*t.scrollLeft})))},d.prototype.clear=function(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")},d.prototype.onMouseDown=function(t){var e=this.nativeFocusableElement;e&&t.target!==e&&(t.preventDefault(),i.setNativeFocused(e))},d.prototype.onModelChange=function(t){this.updateValue(t)},d.prototype.onHovered=function(t){this.updateHovered(t)},d.prototype.onAutofilled=function(t){this.updateAutofilled(t)},Object.defineProperty(d.prototype,"iconPaddingLeft",{get:function(){return"s"===this.size?1.5:1.75},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"placeholderRaisable",{get:function(){return"s"!==this.size&&!this.controller.labelOutside},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasIcon",{get:function(){return!!this.iconContent},enumerable:!0,configurable:!0}),d.prototype.updateAutofilled=function(t){this.autofilled!==t&&(this.autofilled=t,this.autofilledChange.emit(t))},d.prototype.updateValue=function(t){this.value=t,this.valueChange.emit(t)},d.ctorParameters=function(){return[{type:s.Observable,decorators:[{type:e.Inject,args:[r.TUI_MODE]}]},{type:String,decorators:[{type:e.Inject,args:[r.TUI_TEXTFIELD_APPEARANCE]}]},{type:n.TuiTextfieldController,decorators:[{type:e.Inject,args:[n.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]},{type:o.TuiHintControllerDirective,decorators:[{type:e.Inject,args:[o.TUI_HINT_WATCHED_CONTROLLER]}]},{type:void 0,decorators:[{type:e.Inject,args:[O]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]}]},T([e.ViewChild("focusableElement")],d.prototype,"focusableElement",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"editable",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"filler",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"iconAlign",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"iconContent",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"iconCleaner",void 0),T([e.Input(),e.HostBinding("class._readonly"),i.tuiDefaultProp()],d.prototype,"readOnly",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"invalid",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"disabled",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"prefix",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"postfix",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"value",void 0),T([e.Output()],d.prototype,"valueChange",void 0),T([e.Output()],d.prototype,"autofilledChange",void 0),T([e.ContentChildren(l.PolymorpheusOutletComponent)],d.prototype,"content",void 0),T([e.HostBinding("attr.data-size")],d.prototype,"size",null),T([e.HostBinding("class._invalid")],d.prototype,"computedInvalid",null),T([e.HostBinding("class._hidden")],d.prototype,"inputHidden",null),T([e.HostBinding("style.--border-start.rem")],d.prototype,"borderStart",null),T([e.HostBinding("style.--border-end.rem")],d.prototype,"borderEnd",null),T([e.HostListener("focusin",["true"]),e.HostListener("focusout",["false"])],d.prototype,"onFocused",null),T([i.tuiPure],d.prototype,"getIndent$",null),d=T([e.Component({selector:"tui-primitive-textfield",template:'<ng-container *ngIf="content?.changes | async"></ng-container>\n<tui-wrapper\n automation-id="tui-primitive-textfield__wrapper"\n [appearance]="appearance"\n [readOnly]="readOnly"\n [disabled]="disabled"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [pressed]="computedPressed"\n [invalid]="computedInvalid"\n [style.--text-indent.px]="decor.pre$ | async"\n (mousedown)="onMouseDown($event)"\n (click.prevent.silent)="0"\n (tuiHoveredChange)="onHovered($event)"\n (tuiAutofilledChange)="onAutofilled($event)"\n>\n <ng-content select="input"></ng-content>\n <input\n #focusableElement\n tuiMaskAccessor\n automation-id="tui-primitive-textfield__native-input"\n class="t-input"\n [attr.disabled]="computedDisabled || null"\n [attr.maxLength]="controller.maxLength"\n [attr.name]="name"\n [attr.aria-placeholder]="controller.exampleText"\n [attr.aria-invalid]="computedInvalid"\n [autocomplete]="controller.autocomplete"\n [type]="controller.type"\n [id]="id"\n [readOnly]="readOnly || !editable"\n [tuiInputMode]="controller.inputMode"\n [tuiFocusable]="computedFocusable"\n [tuiDescribedBy]="id"\n [ngModel]="value"\n (ngModelChange)="onModelChange($event)"\n />\n <div\n *ngIf="inputHidden"\n automation-id="tui-primitive-textfield__value"\n class="t-input t-input_template"\n >\n <ng-content select="[polymorpheus-outlet]"></ng-content>\n </div>\n <div class="t-content">\n <div\n *ngIf="iconAlignLeft"\n polymorpheus-outlet\n class="t-icon t-icon_left"\n [content]="iconContent"\n [context]="{$implicit: size}"\n >\n <ng-template let-iconSrc>\n <tui-svg [src]="iconSrc"></tui-svg>\n </ng-template>\n </div>\n <div class="t-wrapper">\n <label\n *ngIf="hasPlaceholder"\n automation-id="tui-primitive-textfield__placeholder"\n class="t-placeholder"\n [class.t-placeholder_raised]="placeholderRaised"\n [for]="computedId"\n >\n <ng-content></ng-content>\n </label>\n <div class="t-wrapper-value-decoration">\n <tui-value-decoration\n #decor\n automation-id="tui-primitive-textfield__value-decoration"\n aria-hidden="true"\n class="t-value-decoration"\n [style.textIndent.px]="getIndent$(focusableElement) | async"\n ></tui-value-decoration>\n </div>\n </div>\n <div\n *ngIf="hasCustomContent"\n polymorpheus-outlet\n automation-id="tui-primitive-textfield__custom-content"\n class="t-custom-content"\n [content]="controller.customContent"\n >\n <ng-template let-iconSrc>\n <tui-svg class="t-custom-icon" [src]="iconSrc"></tui-svg>\n </ng-template>\n </div>\n <span\n *ngIf="hasCleaner"\n polymorpheus-outlet\n automation-id="tui-primitive-textfield__cleaner"\n class="t-cleaner"\n [content]="iconCleaner"\n (click.stop)="clear()"\n >\n <ng-template let-icon>\n <tui-svg [src]="icon"></tui-svg>\n </ng-template>\n </span>\n <tui-tooltip\n *ngIf="hasTooltip"\n automation-id="tui-primitive-textfield__tooltip"\n [describeId]="computedId"\n [content]="hintController.content"\n [direction]="hintController.direction"\n [mode]="hintController.mode"\n [showDelay]="hintController.showDelay"\n [hideDelay]="hintController.hideDelay"\n ></tui-tooltip>\n <div\n *ngIf="iconAlignRight"\n polymorpheus-outlet\n class="t-icon"\n [content]="iconContent"\n [context]="{$implicit: size}"\n >\n <ng-template let-iconSrc>\n <tui-svg [src]="iconSrc"></tui-svg>\n </ng-template>\n </div>\n </div>\n</tui-wrapper>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:D,host:{"($.data-mode.attr)":"mode$","[class._autofilled]":"autofilled","[class._label-outside]":"controller.labelOutside"},styles:[":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,:host[data-mode=onDark] .t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.t-input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-input{padding:0 var(--tui-padding-s)}.t-input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-input{padding:0 var(--tui-padding-l)}.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-text-area._disabled),:host._disabled .t-input{pointer-events:none}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-input{padding-top:1.25rem}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-input{padding-top:1.125rem}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-input :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-input{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .t-content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .t-content{padding:0 var(--tui-padding-l)}.t-content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .t-content:after{display:none}.t-wrapper{flex:1;min-width:0;padding-right:.25rem;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{transition-property:transform,color,letter-spacing}}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-icon{display:flex;align-items:center;justify-content:center;color:var(--tui-text-03)}.t-icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .t-icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host._autofilled .t-value-decoration{display:none}.t-custom-content{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;margin-right:.25rem;pointer-events:none}.t-custom-icon{width:2rem;height:100%}.t-icon{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);box-sizing:border-box;cursor:pointer;transition-property:color,transform;position:relative;pointer-events:none}.t-icon:hover{color:var(--tui-text-02)}:host._disabled .t-icon,:host._readonly .t-icon{pointer-events:none}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-icon:hover{color:var(--tui-text-01-night)}:host:hover:not(._readonly) .t-icon{color:var(--tui-text-02)}:host[data-mode=onDark]:hover:not(._readonly) .t-icon{color:var(--tui-text-01-night)}:host[data-mode=onLight]:hover:not(._readonly) .t-icon{color:var(--tui-text-01)}.t-input:not(:first-child){display:none}:host[data-size] .t-input_template{display:flex;width:100%;max-width:100%;align-items:center;pointer-events:none}.t-input::-webkit-caps-lock-indicator{margin-right:.375rem;align-self:center}:host[data-size='l']:not(._label-outside) .t-input::-webkit-caps-lock-indicator{margin-top:-1.25rem}.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button{background-color:var(--tui-text-03)}:host[data-size='l']:not(._label-outside) .t-input::-webkit-contacts-auto-fill-button,:host[data-size='l']:not(._label-outside) .t-input::-webkit-credentials-auto-fill-button,:host[data-size='l']:not(._label-outside) .t-input::-webkit-credit-card-auto-fill-button{margin-top:-1.25rem}.t-input::-webkit-contacts-auto-fill-button:hover,.t-input::-webkit-credentials-auto-fill-button:hover,.t-input::-webkit-credit-card-auto-fill-button:hover{background-color:var(--tui-text-02)}.t-input:-webkit-autofill,.t-input:-webkit-autofill::first-line{font-size:inherit;line-height:inherit}.t-text-template{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration{position:relative;pointer-events:none}"]}),I(0,e.Inject(r.TUI_MODE)),I(1,e.Inject(r.TUI_TEXTFIELD_APPEARANCE)),I(2,e.Inject(n.TUI_TEXTFIELD_WATCHED_CONTROLLER)),I(3,e.Inject(o.TUI_HINT_WATCHED_CONTROLLER)),I(4,e.Inject(O)),I(5,e.Inject(e.ElementRef))],d)}(i.AbstractTuiInteractive),P=function(t){function i(e){var i=t.call(this,e)||this;return i.textfield=e,i}var o;return w(i,t),o=i,Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.textfield.readOnly||!this.textfield.editable},enumerable:!0,configurable:!0}),i.prototype.onValueChange=function(t){this.textfield.onModelChange(t)},i.ctorParameters=function(){return[{type:C,decorators:[{type:e.Inject,args:[C]}]}]},i=o=T([e.Directive({selector:"tui-primitive-textfield",providers:[{provide:r.TUI_TEXTFIELD_HOST,useExisting:e.forwardRef((function(){return o}))}]}),I(0,e.Inject(C))],i)}(c.TuiAbstractTextfieldHost),z=function(){function t(t,e,i,o,n){this.host=t,this.controller=e,this.elementRef=i,this.describedBy=o,this.idService=n,this.host.process(this.elementRef.nativeElement)}return Object.defineProperty(t.prototype,"computedDescribedBy",{get:function(){return this.describedBy.computedDescribedBy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.elementRef.nativeElement.id||this.idService.generate()},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this.describedBy.tuiDescribedBy=this.id},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[r.TUI_TEXTFIELD_HOST]}]},{type:y.TuiTextfieldController,decorators:[{type:e.Inject,args:[y.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]},{type:y.TuiDescribedByDirective,decorators:[{type:e.Inject,args:[y.TuiDescribedByDirective]}]},{type:i.TuiIdService,decorators:[{type:e.Inject,args:[i.TuiIdService]}]}]},T([e.HostBinding("attr.aria-describedby")],t.prototype,"computedDescribedBy",null),T([e.HostBinding("id")],t.prototype,"id",null),t=T([e.Component({selector:"input[tuiTextfield], textarea[tuiTextfield]",template:"",providers:[y.TuiDescribedByDirective,y.TUI_DESCRIBED_BY_PROVIDERS,y.TEXTFIELD_CONTROLLER_PROVIDER],host:{type:"text","[attr.aria-placeholder]":"controller.exampleText","[attr.aria-invalid]":"host.invalid","[attr.disabled]":"host.disabled || null","[tabIndex]":"host.focusable ? 0 : -1","[readOnly]":"host.readOnly","[value]":"host.value","(input)":"host.onValueChange($event.target.value)"},changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}:host:-webkit-autofill,:host:-webkit-autofill:focus,:host:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,:host :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,:host :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,:host :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,:host :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,:host :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] :host:-webkit-autofill,:host[data-mode=onDark] :host:-webkit-autofill:focus,:host[data-mode=onDark] :host:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}:host :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),:host :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] :host{padding:0 var(--tui-padding-s)}:host :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),:host :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] :host{padding:0 var(--tui-padding-l)}:host :host-context(tui-primitive-textfield._disabled),:host :host-context(tui-text-area._disabled),:host._disabled :host{pointer-events:none}:host :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) :host{padding-top:1.25rem}:host :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) :host:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) :host{padding-top:1.125rem}:host :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) :host:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host :host-context(tui-primitive-textfield._hidden),:host._hidden input:host{opacity:0;text-indent:-10em;-webkit-user-select:none}:host::-webkit-caps-lock-indicator{margin-right:.375rem;align-self:center}:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-caps-lock-indicator{margin-top:-1.25rem}:host::-webkit-contacts-auto-fill-button,:host::-webkit-credentials-auto-fill-button,:host::-webkit-credit-card-auto-fill-button{background-color:var(--tui-text-03)}:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-contacts-auto-fill-button,:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-credentials-auto-fill-button,:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-credit-card-auto-fill-button{margin-top:-1.25rem}:host::-webkit-contacts-auto-fill-button:hover,:host::-webkit-credentials-auto-fill-button:hover,:host::-webkit-credit-card-auto-fill-button:hover{background-color:var(--tui-text-02)}:host::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}:host::placeholder{color:var(--tui-text-03);opacity:0}:host :host-context(tui-primitive-textfield[data-mode=onDark])::-ms-input-placeholder,:host :host-context(tui-text-area[data-mode=onDark])::-ms-input-placeholder{color:var(--tui-text-03-night)}:host :host-context(tui-primitive-textfield[data-mode=onDark])::placeholder,:host :host-context(tui-text-area[data-mode=onDark])::placeholder{color:var(--tui-text-03-night)}:host :host-context(tui-primitive-textfield._focused:not(._readonly))::-ms-input-placeholder,:host :host-context(tui-text-area._focused:not(._readonly))::-ms-input-placeholder{opacity:1}:host :host-context(tui-primitive-textfield._focused:not(._readonly))::placeholder,:host :host-context(tui-text-area._focused:not(._readonly))::placeholder{opacity:1}textarea:host{white-space:normal}textarea:host :host-context(tui-text-area._ios){padding-left:.8125rem}"]}),I(0,e.Inject(r.TUI_TEXTFIELD_HOST)),I(1,e.Inject(y.TUI_TEXTFIELD_WATCHED_CONTROLLER)),I(2,e.Inject(e.ElementRef)),I(3,e.Inject(y.TuiDescribedByDirective)),I(4,e.Inject(i.TuiIdService))],t)}(),j=function(){function t(t,e){var i=this;this.textfield=t,this.controller=e,this.pre$=s.defer((function(){var t,e;return null!==(e=null===(t=i.directive)||void 0===t?void 0:t.waMutationObserver)&&void 0!==e?e:s.EMPTY})).pipe(u.map((function(){var t,e;return null!==(e=null===(t=i.pre)||void 0===t?void 0:t.nativeElement.offsetWidth)&&void 0!==e?e:0})),u.startWith(0),u.distinctUntilChanged())}return Object.defineProperty(t.prototype,"isContextTable",{get:function(){return"table"===this.textfield.appearance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.textfield.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filler",{get:function(){var t=this,e=t.focused,i=t.placeholder,o=t.exampleText,n=t.value,r=t.textfield;return e&&i&&o?"":e?o||r.filler.slice(n.length):""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prefix",{get:function(){return this.decorationsVisible?this.textfield.prefix:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"postfix",{get:function(){return this.decorationsVisible?this.computedPostfix:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){var t;return(null===(t=this.textfield.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exampleText",{get:function(){var t=this.controller.exampleText||this.placeholder;return!this.value&&this.focused?t:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decorationsVisible",{get:function(){return!!this.value||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{get:function(){return this.textfield.computedFocused&&!this.textfield.readOnly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"computedPostfix",{get:function(){return this.textfield.postfix&&(this.filler||this.value)?" "+this.textfield.postfix:this.textfield.postfix},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:C,decorators:[{type:e.Inject,args:[C]}]},{type:y.TuiTextfieldController,decorators:[{type:e.Inject,args:[y.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]}]},T([e.ViewChild("pre",{read:e.ElementRef,static:!0})],t.prototype,"pre",void 0),T([e.ViewChild(f.MutationObserverDirective,{static:!0})],t.prototype,"directive",void 0),T([e.HostBinding("class._table")],t.prototype,"isContextTable",null),t=T([e.Component({selector:"tui-value-decoration",template:'<span #pre subtree characterData waMutationObserver>{{ prefix }}</span>\n<span class="t-ghost">{{ value }}</span>\n<span class="t-filler">{{ filler }}</span>\n{{ postfix }}\n',changeDetection:e.ChangeDetectionStrategy.Default,styles:[":host{position:absolute;display:block;height:1.25rem;max-width:100%;margin:-1.25rem 0;padding:.625rem 0;box-sizing:content-box;color:var(--tui-text-01)}:host._table{position:static}:host-context(tui-textfield[data-mode=onDark]) :host{color:var(--tui-text-01-night)}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip}.t-filler{display:inline-block;overflow:hidden;color:var(--tui-text-03);text-overflow:ellipsis;max-width:100%;white-space:nowrap}:host-context(tui-textfield[data-mode=onDark]) .t-filler{color:var(--tui-text-03-night)}"]}),I(0,e.Inject(C)),I(1,e.Inject(y.TUI_TEXTFIELD_WATCHED_CONTROLLER))],t)}(),R=function(){function t(){}return t=T([e.NgModule({imports:[p.CommonModule,h.FormsModule,g.TuiMaskAccessorModule,i.TuiFocusableModule,i.TuiHoveredModule,i.TuiInputModeModule,l.PolymorpheusModule,x.TuiWrapperModule,m.TuiSvgModule,b.TuiTooltipModule,i.TuiAutofilledModule,v.TuiDescribedByModule,f.MutationObserverModule],declarations:[C,P,z,j],exports:[C,P,z]})],t)}();t.TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS=E,t.TUI_PRIMITIVE_TEXTFIELD_ICON_CLEANER="tuiIconCloseLarge",t.TUI_PRIMITIVE_TEXTFIELD_OPTIONS=O,t.TUI_PRIMITIVE_TEXTFIELD_PROVIDERS=D,t.TuiPrimitiveTextfieldComponent=C,t.TuiPrimitiveTextfieldDirective=P,t.TuiPrimitiveTextfieldModule=R,t.TuiTextfieldComponent=z,t.TuiValueDecorationComponent=j,t.tuiPrimitiveTextfieldOptionsProvider=function(t){return{provide:O,useValue:k(k({},E),t)}},Object.defineProperty(t,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var _=function(t,e){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function w(t,e){function i(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var k=function(){return(k=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function T(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}function I(t,e){return function(i,o){e(i,o,t)}}var D=[{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:e.forwardRef((function(){return C}))},n.TEXTFIELD_CONTROLLER_PROVIDER,o.HINT_CONTROLLER_PROVIDER,d.MODE_PROVIDER],E={iconAlign:"right",iconCleaner:"tuiIconCloseLarge"},O=new e.InjectionToken("Default parameters for primitive textfield component",{factory:function(){return E}}),C=function(t){function d(i,o,n,r,a,l){var s=t.call(this)||this;return s.mode$=i,s.appearance=o,s.controller=n,s.hintController=r,s.options=a,s.elementRef=l,s.editable=!0,s.filler="",s.iconAlign=s.options.iconAlign,s.iconContent=null,s.iconCleaner=s.options.iconCleaner,s.readOnly=!1,s.invalid=!1,s.disabled=!1,s.prefix="",s.postfix="",s.value="",s.valueChange=new e.EventEmitter,s.autofilledChange=new e.EventEmitter,s.autofilled=!1,s}return w(d,t),Object.defineProperty(d.prototype,"nativeFocusableElement",{get:function(){return this.computedDisabled||!this.focusableElement?null:this.focusableElement.nativeElement.previousElementSibling||this.focusableElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"focused",{get:function(){return i.isNativeFocusedIn(this.elementRef.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"size",{get:function(){return this.controller.size},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"computedInvalid",{get:function(){return!this.readOnly&&!this.disabled&&this.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"inputHidden",{get:function(){var t;return!!(null===(t=this.content)||void 0===t?void 0:t.length)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasValue",{get:function(){return!!this.value},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasCleaner",{get:function(){return this.controller.cleaner&&this.hasValue&&!this.disabled&&!this.readOnly},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasTooltip",{get:function(){var t;return!!(null===(t=this.hintController)||void 0===t?void 0:t.content)&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasCustomContent",{get:function(){return!!this.controller.customContent},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasPlaceholder",{get:function(){var t,e=(this.controller.exampleText||this.prefix||this.postfix||(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder))&&!this.readOnly&&this.computedFocused,i=!this.hasValue&&!e;return this.placeholderRaisable||i},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"placeholderRaised",{get:function(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"borderStart",{get:function(){return this.iconAlignLeft?this.iconPaddingLeft:0},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"borderEnd",{get:function(){return a.getBorder(this.iconAlignRight,this.hasCleaner,this.hasTooltip,this.hasCustomContent)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconAlignLeft",{get:function(){return this.hasIcon&&"left"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconAlignRight",{get:function(){return this.hasIcon&&"right"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"name",{get:function(){return"cc-exp"===this.controller.autocomplete?"ccexpiryyear":null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"computedId",{get:function(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.id)||""},enumerable:!0,configurable:!0}),d.prototype.onFocused=function(t){this.updateFocused(t)},d.prototype.getIndent$=function(t){return s.fromEvent(t,"scroll").pipe(u.map((function(){return-1*t.scrollLeft})))},d.prototype.clear=function(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")},d.prototype.onMouseDown=function(t){var e=this.nativeFocusableElement;e&&t.target!==e&&(t.preventDefault(),i.setNativeFocused(e))},d.prototype.onModelChange=function(t){this.updateValue(t)},d.prototype.onHovered=function(t){this.updateHovered(t)},d.prototype.onAutofilled=function(t){this.updateAutofilled(t)},Object.defineProperty(d.prototype,"iconPaddingLeft",{get:function(){return"s"===this.size?1.5:1.75},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"placeholderRaisable",{get:function(){return"s"!==this.size&&!this.controller.labelOutside},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasIcon",{get:function(){return!!this.iconContent},enumerable:!0,configurable:!0}),d.prototype.updateAutofilled=function(t){this.autofilled!==t&&(this.autofilled=t,this.autofilledChange.emit(t))},d.prototype.updateValue=function(t){this.value=t,this.valueChange.emit(t)},d.ctorParameters=function(){return[{type:s.Observable,decorators:[{type:e.Inject,args:[r.TUI_MODE]}]},{type:String,decorators:[{type:e.Inject,args:[r.TUI_TEXTFIELD_APPEARANCE]}]},{type:n.TuiTextfieldController,decorators:[{type:e.Inject,args:[n.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]},{type:o.TuiHintControllerDirective,decorators:[{type:e.Inject,args:[o.TUI_HINT_WATCHED_CONTROLLER]}]},{type:void 0,decorators:[{type:e.Inject,args:[O]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]}]},T([e.ViewChild("focusableElement")],d.prototype,"focusableElement",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"editable",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"filler",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"iconAlign",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"iconContent",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"iconCleaner",void 0),T([e.Input(),e.HostBinding("class._readonly"),i.tuiDefaultProp()],d.prototype,"readOnly",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"invalid",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"disabled",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"prefix",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"postfix",void 0),T([e.Input(),i.tuiDefaultProp()],d.prototype,"value",void 0),T([e.Output()],d.prototype,"valueChange",void 0),T([e.Output()],d.prototype,"autofilledChange",void 0),T([e.ContentChildren(l.PolymorpheusOutletComponent)],d.prototype,"content",void 0),T([e.HostBinding("attr.data-size")],d.prototype,"size",null),T([e.HostBinding("class._invalid")],d.prototype,"computedInvalid",null),T([e.HostBinding("class._hidden")],d.prototype,"inputHidden",null),T([e.HostBinding("style.--border-start.rem")],d.prototype,"borderStart",null),T([e.HostBinding("style.--border-end.rem")],d.prototype,"borderEnd",null),T([e.HostListener("focusin",["true"]),e.HostListener("focusout",["false"])],d.prototype,"onFocused",null),T([i.tuiPure],d.prototype,"getIndent$",null),d=T([e.Component({selector:"tui-primitive-textfield",template:'<ng-container *ngIf="content?.changes | async"></ng-container>\n<tui-wrapper\n automation-id="tui-primitive-textfield__wrapper"\n [appearance]="appearance"\n [readOnly]="readOnly"\n [disabled]="disabled"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [pressed]="computedPressed"\n [invalid]="computedInvalid"\n [style.--text-indent.px]="decor.pre$ | async"\n (mousedown)="onMouseDown($event)"\n (click.prevent.silent)="0"\n (tuiHoveredChange)="onHovered($event)"\n (tuiAutofilledChange)="onAutofilled($event)"\n>\n <ng-content select="input"></ng-content>\n <input\n #focusableElement\n tuiMaskAccessor\n automation-id="tui-primitive-textfield__native-input"\n class="t-input"\n [attr.disabled]="computedDisabled || null"\n [attr.maxLength]="controller.maxLength"\n [attr.name]="name"\n [attr.aria-placeholder]="controller.exampleText"\n [attr.aria-invalid]="computedInvalid"\n [autocomplete]="controller.autocomplete"\n [type]="controller.type"\n [id]="id"\n [readOnly]="readOnly || !editable"\n [tuiInputMode]="controller.inputMode"\n [tuiFocusable]="computedFocusable"\n [tuiDescribedBy]="id"\n [ngModel]="value"\n (ngModelChange)="onModelChange($event)"\n />\n <div\n *ngIf="inputHidden"\n automation-id="tui-primitive-textfield__value"\n class="t-input t-input_template"\n >\n <ng-content select="[polymorpheus-outlet]"></ng-content>\n </div>\n <div class="t-content">\n <div\n *ngIf="iconAlignLeft"\n polymorpheus-outlet\n class="t-icon t-icon_left"\n [content]="iconContent"\n [context]="{$implicit: size}"\n >\n <ng-template let-iconSrc>\n <tui-svg [src]="iconSrc"></tui-svg>\n </ng-template>\n </div>\n <div class="t-wrapper">\n <label\n *ngIf="hasPlaceholder"\n automation-id="tui-primitive-textfield__placeholder"\n class="t-placeholder"\n [class.t-placeholder_raised]="placeholderRaised"\n [for]="computedId"\n >\n <ng-content></ng-content>\n </label>\n <div class="t-wrapper-value-decoration">\n <tui-value-decoration\n #decor\n automation-id="tui-primitive-textfield__value-decoration"\n aria-hidden="true"\n class="t-value-decoration"\n [style.textIndent.px]="getIndent$(focusableElement) | async"\n ></tui-value-decoration>\n </div>\n </div>\n <div\n *ngIf="hasCustomContent"\n polymorpheus-outlet\n automation-id="tui-primitive-textfield__custom-content"\n class="t-custom-content"\n [content]="controller.customContent"\n >\n <ng-template let-iconSrc>\n <tui-svg\n class="t-custom-icon"\n [src]="iconSrc"\n ></tui-svg>\n </ng-template>\n </div>\n <span\n *ngIf="hasCleaner"\n polymorpheus-outlet\n automation-id="tui-primitive-textfield__cleaner"\n class="t-cleaner"\n [content]="iconCleaner"\n (click.stop)="clear()"\n >\n <ng-template let-icon>\n <tui-svg [src]="icon"></tui-svg>\n </ng-template>\n </span>\n <tui-tooltip\n *ngIf="hasTooltip"\n automation-id="tui-primitive-textfield__tooltip"\n [describeId]="computedId"\n [content]="hintController.content"\n [direction]="hintController.direction"\n [mode]="hintController.mode"\n [showDelay]="hintController.showDelay"\n [hideDelay]="hintController.hideDelay"\n ></tui-tooltip>\n <div\n *ngIf="iconAlignRight"\n polymorpheus-outlet\n class="t-icon"\n [content]="iconContent"\n [context]="{$implicit: size}"\n >\n <ng-template let-iconSrc>\n <tui-svg [src]="iconSrc"></tui-svg>\n </ng-template>\n </div>\n </div>\n</tui-wrapper>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:D,host:{"($.data-mode.attr)":"mode$","[class._autofilled]":"autofilled","[class._label-outside]":"controller.labelOutside"},styles:[":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,:host[data-mode=onDark] .t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.t-input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-input{padding:0 var(--tui-padding-s)}.t-input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-input{padding:0 var(--tui-padding-l)}.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-text-area._disabled),:host._disabled .t-input{pointer-events:none}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-input{padding-top:1.25rem}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-input{padding-top:1.125rem}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-input :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-input{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .t-content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .t-content{padding:0 var(--tui-padding-l)}.t-content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .t-content:after{display:none}.t-wrapper{flex:1;min-width:0;padding-right:.25rem;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{transition-property:transform,color,letter-spacing}}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-icon{display:flex;align-items:center;justify-content:center;color:var(--tui-text-03)}.t-icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .t-icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host._autofilled .t-value-decoration{display:none}.t-custom-content{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;margin-right:.25rem;pointer-events:none}.t-custom-icon{width:2rem;height:100%}.t-icon{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);box-sizing:border-box;cursor:pointer;transition-property:color,transform;position:relative;pointer-events:none}.t-icon:hover{color:var(--tui-text-02)}:host._disabled .t-icon,:host._readonly .t-icon{pointer-events:none}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-icon:hover{color:var(--tui-text-01-night)}:host:hover:not(._readonly) .t-icon{color:var(--tui-text-02)}:host[data-mode=onDark]:hover:not(._readonly) .t-icon{color:var(--tui-text-01-night)}:host[data-mode=onLight]:hover:not(._readonly) .t-icon{color:var(--tui-text-01)}.t-input:not(:first-child){display:none}:host[data-size] .t-input_template{display:flex;width:100%;max-width:100%;align-items:center;pointer-events:none}.t-input::-webkit-caps-lock-indicator{margin-right:.375rem;align-self:center}:host[data-size='l']:not(._label-outside) .t-input::-webkit-caps-lock-indicator{margin-top:-1.25rem}.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button{background-color:var(--tui-text-03)}:host[data-size='l']:not(._label-outside) .t-input::-webkit-contacts-auto-fill-button,:host[data-size='l']:not(._label-outside) .t-input::-webkit-credentials-auto-fill-button,:host[data-size='l']:not(._label-outside) .t-input::-webkit-credit-card-auto-fill-button{margin-top:-1.25rem}.t-input::-webkit-contacts-auto-fill-button:hover,.t-input::-webkit-credentials-auto-fill-button:hover,.t-input::-webkit-credit-card-auto-fill-button:hover{background-color:var(--tui-text-02)}.t-input:-webkit-autofill,.t-input:-webkit-autofill::first-line{font-size:inherit;line-height:inherit}.t-text-template{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration{position:relative;pointer-events:none}"]}),I(0,e.Inject(r.TUI_MODE)),I(1,e.Inject(r.TUI_TEXTFIELD_APPEARANCE)),I(2,e.Inject(n.TUI_TEXTFIELD_WATCHED_CONTROLLER)),I(3,e.Inject(o.TUI_HINT_WATCHED_CONTROLLER)),I(4,e.Inject(O)),I(5,e.Inject(e.ElementRef))],d)}(i.AbstractTuiInteractive),P=function(t){function i(e){var i=t.call(this,e)||this;return i.textfield=e,i}var o;return w(i,t),o=i,Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.textfield.readOnly||!this.textfield.editable},enumerable:!0,configurable:!0}),i.prototype.onValueChange=function(t){this.textfield.onModelChange(t)},i.ctorParameters=function(){return[{type:C,decorators:[{type:e.Inject,args:[C]}]}]},i=o=T([e.Directive({selector:"tui-primitive-textfield",providers:[{provide:r.TUI_TEXTFIELD_HOST,useExisting:e.forwardRef((function(){return o}))}]}),I(0,e.Inject(C))],i)}(c.TuiAbstractTextfieldHost),z=function(){function t(t,e,i,o,n){this.host=t,this.controller=e,this.elementRef=i,this.describedBy=o,this.idService=n,this.host.process(this.elementRef.nativeElement)}return Object.defineProperty(t.prototype,"computedDescribedBy",{get:function(){return this.describedBy.computedDescribedBy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.elementRef.nativeElement.id||this.idService.generate()},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this.describedBy.tuiDescribedBy=this.id},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[r.TUI_TEXTFIELD_HOST]}]},{type:y.TuiTextfieldController,decorators:[{type:e.Inject,args:[y.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]},{type:y.TuiDescribedByDirective,decorators:[{type:e.Inject,args:[y.TuiDescribedByDirective]}]},{type:i.TuiIdService,decorators:[{type:e.Inject,args:[i.TuiIdService]}]}]},T([e.HostBinding("attr.aria-describedby")],t.prototype,"computedDescribedBy",null),T([e.HostBinding("id")],t.prototype,"id",null),t=T([e.Component({selector:"input[tuiTextfield], textarea[tuiTextfield]",template:"",providers:[y.TuiDescribedByDirective,y.TUI_DESCRIBED_BY_PROVIDERS,y.TEXTFIELD_CONTROLLER_PROVIDER],host:{type:"text","[attr.aria-placeholder]":"controller.exampleText","[attr.aria-invalid]":"host.invalid","[attr.disabled]":"host.disabled || null","[tabIndex]":"host.focusable ? 0 : -1","[readOnly]":"host.readOnly","[value]":"host.value","(input)":"host.onValueChange($event.target.value)"},changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}:host:-webkit-autofill,:host:-webkit-autofill:focus,:host:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,:host :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,:host :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,:host :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,:host :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,:host :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] :host:-webkit-autofill,:host[data-mode=onDark] :host:-webkit-autofill:focus,:host[data-mode=onDark] :host:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}:host :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),:host :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] :host{padding:0 var(--tui-padding-s)}:host :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),:host :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] :host{padding:0 var(--tui-padding-l)}:host :host-context(tui-primitive-textfield._disabled),:host :host-context(tui-text-area._disabled),:host._disabled :host{pointer-events:none}:host :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) :host{padding-top:1.25rem}:host :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) :host:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) :host{padding-top:1.125rem}:host :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) :host:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host :host-context(tui-primitive-textfield._hidden),:host._hidden input:host{opacity:0;text-indent:-10em;-webkit-user-select:none}:host::-webkit-caps-lock-indicator{margin-right:.375rem;align-self:center}:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-caps-lock-indicator{margin-top:-1.25rem}:host::-webkit-contacts-auto-fill-button,:host::-webkit-credentials-auto-fill-button,:host::-webkit-credit-card-auto-fill-button{background-color:var(--tui-text-03)}:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-contacts-auto-fill-button,:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-credentials-auto-fill-button,:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)) :host::-webkit-credit-card-auto-fill-button{margin-top:-1.25rem}:host::-webkit-contacts-auto-fill-button:hover,:host::-webkit-credentials-auto-fill-button:hover,:host::-webkit-credit-card-auto-fill-button:hover{background-color:var(--tui-text-02)}:host::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}:host::placeholder{color:var(--tui-text-03);opacity:0}:host :host-context(tui-primitive-textfield[data-mode=onDark])::-ms-input-placeholder,:host :host-context(tui-text-area[data-mode=onDark])::-ms-input-placeholder{color:var(--tui-text-03-night)}:host :host-context(tui-primitive-textfield[data-mode=onDark])::placeholder,:host :host-context(tui-text-area[data-mode=onDark])::placeholder{color:var(--tui-text-03-night)}:host :host-context(tui-primitive-textfield._focused:not(._readonly))::-ms-input-placeholder,:host :host-context(tui-text-area._focused:not(._readonly))::-ms-input-placeholder{opacity:1}:host :host-context(tui-primitive-textfield._focused:not(._readonly))::placeholder,:host :host-context(tui-text-area._focused:not(._readonly))::placeholder{opacity:1}textarea:host{white-space:normal}textarea:host :host-context(tui-text-area._ios){padding-left:.8125rem}"]}),I(0,e.Inject(r.TUI_TEXTFIELD_HOST)),I(1,e.Inject(y.TUI_TEXTFIELD_WATCHED_CONTROLLER)),I(2,e.Inject(e.ElementRef)),I(3,e.Inject(y.TuiDescribedByDirective)),I(4,e.Inject(i.TuiIdService))],t)}(),j=function(){function t(t,e){var i=this;this.textfield=t,this.controller=e,this.pre$=s.defer((function(){var t,e;return null!==(e=null===(t=i.directive)||void 0===t?void 0:t.waMutationObserver)&&void 0!==e?e:s.EMPTY})).pipe(u.map((function(){var t,e;return null!==(e=null===(t=i.pre)||void 0===t?void 0:t.nativeElement.offsetWidth)&&void 0!==e?e:0})),u.startWith(0),u.distinctUntilChanged())}return Object.defineProperty(t.prototype,"isContextTable",{get:function(){return"table"===this.textfield.appearance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.textfield.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filler",{get:function(){var t=this,e=t.focused,i=t.placeholder,o=t.exampleText,n=t.value,r=t.textfield;return e&&i&&o?"":e?o||r.filler.slice(n.length):""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prefix",{get:function(){return this.decorationsVisible?this.textfield.prefix:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"postfix",{get:function(){return this.decorationsVisible?this.computedPostfix:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){var t;return(null===(t=this.textfield.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exampleText",{get:function(){var t=this.controller.exampleText||this.placeholder;return!this.value&&this.focused?t:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decorationsVisible",{get:function(){return!!this.value||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{get:function(){return this.textfield.computedFocused&&!this.textfield.readOnly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"computedPostfix",{get:function(){return this.textfield.postfix&&(this.filler||this.value)?" "+this.textfield.postfix:this.textfield.postfix},enumerable:!0,configurable:!0}),t.ctorParameters=function(){return[{type:C,decorators:[{type:e.Inject,args:[C]}]},{type:y.TuiTextfieldController,decorators:[{type:e.Inject,args:[y.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]}]},T([e.ViewChild("pre",{read:e.ElementRef,static:!0})],t.prototype,"pre",void 0),T([e.ViewChild(f.MutationObserverDirective,{static:!0})],t.prototype,"directive",void 0),T([e.HostBinding("class._table")],t.prototype,"isContextTable",null),t=T([e.Component({selector:"tui-value-decoration",template:'<span\n #pre\n subtree\n characterData\n waMutationObserver\n>\n {{ prefix }}\n</span>\n<span class="t-ghost">{{ value }}</span>\n<span class="t-filler">{{ filler }}</span>\n{{ postfix }}\n',changeDetection:e.ChangeDetectionStrategy.Default,styles:[":host{position:absolute;display:block;height:1.25rem;max-width:100%;margin:-1.25rem 0;padding:.625rem 0;box-sizing:content-box;color:var(--tui-text-01)}:host._table{position:static}:host-context(tui-textfield[data-mode=onDark]) :host{color:var(--tui-text-01-night)}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip}.t-filler{display:inline-block;overflow:hidden;color:var(--tui-text-03);text-overflow:ellipsis;max-width:100%;white-space:nowrap}:host-context(tui-textfield[data-mode=onDark]) .t-filler{color:var(--tui-text-03-night)}"]}),I(0,e.Inject(C)),I(1,e.Inject(y.TUI_TEXTFIELD_WATCHED_CONTROLLER))],t)}(),R=function(){function t(){}return t=T([e.NgModule({imports:[p.CommonModule,h.FormsModule,g.TuiMaskAccessorModule,i.TuiFocusableModule,i.TuiHoveredModule,i.TuiInputModeModule,l.PolymorpheusModule,x.TuiWrapperModule,m.TuiSvgModule,b.TuiTooltipModule,i.TuiAutofilledModule,v.TuiDescribedByModule,f.MutationObserverModule],declarations:[C,P,z,j],exports:[C,P,z]})],t)}();t.TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS=E,t.TUI_PRIMITIVE_TEXTFIELD_ICON_CLEANER="tuiIconCloseLarge",t.TUI_PRIMITIVE_TEXTFIELD_OPTIONS=O,t.TUI_PRIMITIVE_TEXTFIELD_PROVIDERS=D,t.TuiPrimitiveTextfieldComponent=C,t.TuiPrimitiveTextfieldDirective=P,t.TuiPrimitiveTextfieldModule=R,t.TuiTextfieldComponent=z,t.TuiValueDecorationComponent=j,t.tuiPrimitiveTextfieldOptionsProvider=function(t){return{provide:O,useValue:k(k({},E),t)}},Object.defineProperty(t,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=taiga-ui-core-components-primitive-textfield.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.providers.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield-options.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.component.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.directive.ts","ng://@taiga-ui/core/components/primitive-textfield/textfield/textfield.component.ts","ng://@taiga-ui/core/components/primitive-textfield/value-decoration/value-decoration.component.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__assign","assign","t","s","i","n","arguments","length","call","apply","__decorate","decorators","target","key","desc","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param","paramIndex","decorator","TUI_PRIMITIVE_TEXTFIELD_PROVIDERS","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","TuiPrimitiveTextfieldComponent","TEXTFIELD_CONTROLLER_PROVIDER","HINT_CONTROLLER_PROVIDER","MODE_PROVIDER","TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS","iconAlign","iconCleaner","TUI_PRIMITIVE_TEXTFIELD_OPTIONS","InjectionToken","factory","mode$","appearance","controller","hintController","options","elementRef","_this","_super","editable","filler","iconContent","readOnly","invalid","disabled","prefix","postfix","value","valueChange","EventEmitter","autofilledChange","autofilled","computedDisabled","focusableElement","nativeElement","previousElementSibling","isNativeFocusedIn","size","_a","content","cleaner","hasValue","customContent","showDecor","exampleText","nativeFocusableElement","placeholder","computedFocused","placeholderVisible","placeholderRaisable","iconAlignLeft","iconPaddingLeft","getBorder","iconAlignRight","hasCleaner","hasTooltip","hasCustomContent","hasIcon","autocomplete","id","onFocused","focused","updateFocused","getIndent$","element","fromEvent","pipe","map","scrollLeft","clear","updateValue","onMouseDown","event","preventDefault","setNativeFocused","onModelChange","onHovered","hovered","updateHovered","onAutofilled","updateAutofilled","labelOutside","emit","Observable","type","Inject","args","TUI_MODE","TUI_TEXTFIELD_APPEARANCE","TuiTextfieldController","TUI_TEXTFIELD_WATCHED_CONTROLLER","TuiHintControllerDirective","TUI_HINT_WATCHED_CONTROLLER","ElementRef","ViewChild","Input","tuiDefaultProp","HostBinding","Output","ContentChildren","PolymorpheusOutletComponent","HostListener","tuiPure","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","host","($.data-mode.attr)","[class._autofilled]","[class._label-outside]","AbstractTuiInteractive","TuiPrimitiveTextfieldDirective","textfield","onValueChange","TuiPrimitiveTextfieldDirective_1","Directive","TUI_TEXTFIELD_HOST","TuiAbstractTextfieldHost","TuiTextfieldComponent","describedBy","idService","process","computedDescribedBy","generate","ngDoCheck","tuiDescribedBy","TuiDescribedByDirective","TuiIdService","TUI_DESCRIBED_BY_PROVIDERS","[attr.aria-placeholder]","[attr.aria-invalid]","[attr.disabled]","[tabIndex]","[readOnly]","[value]","(input)","TuiValueDecorationComponent","pre$","defer","_b","directive","waMutationObserver","EMPTY","pre","offsetWidth","startWith","distinctUntilChanged","slice","decorationsVisible","computedPostfix","read","static","MutationObserverDirective","Default","TuiPrimitiveTextfieldModule","NgModule","imports","CommonModule","FormsModule","TuiMaskAccessorModule","TuiFocusableModule","TuiHoveredModule","TuiInputModeModule","PolymorpheusModule","TuiWrapperModule","TuiSvgModule","TuiTooltipModule","TuiAutofilledModule","TuiDescribedByModule","MutationObserverModule","declarations","exports","useValue"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAGrB,SAASO,EAAUR,EAAGC,GAEzB,SAASQ,IAAOC,KAAKC,YAAcX,EADnCD,EAAcC,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B,EAA8BlB,WAAA,CAAA,CAAAqG,KADzDC,EAAAA,OAAMC,KAAA,CAACrF,YAGqBwF,EAAAA,uBAAsB1G,WAAA,CAAA,CAAAqG,KADlDC,EAAAA,OAAMC,KAAA,CAACI,EAAAA,uCAdZ5G,EAAA,CADCgH,EAAAA,UAAU,MAAO,CAAC4D,KAAM7D,EAAAA,WAAY8D,QAAQ,+BAI7C7K,EAAA,CADCgH,EAAAA,UAAU8D,EAAAA,0BAA2B,CAACD,QAAQ,qCAiB/C7K,EAAA,CADCmH,EAAAA,YAAY,oDApBJ2C,EAA2B9J,EAAA,CAPvCyH,EAAAA,UAAU,CACPC,SAAU,uBACVC,SAAA,iLAGAC,gBAAiBC,EAAAA,wBAAwBkD,sjBAgBpCpK,EAAA,EAAA4F,EAAAA,OAAOpF,IAEPR,EAAA,EAAA4F,EAAAA,OAAOK,EAAAA,oCAhBHkD,mBCwBb,SAAAkB,KAA0C,OAA7BA,EAA2BhL,EAAA,CA5BvCiL,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,sBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,mBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,aACAC,EAAAA,iBACAC,EAAAA,oBACAC,EAAAA,qBACAC,EAAAA,wBAEJC,aAAc,CACV7K,EACAkH,EACAO,EACAkB,GAEJmC,QAAS,CACL9K,EACAkH,EACAO,MAGKoC,yFLxCuC,qSAkB/B,SAAC/I,GAAmD,MAAA,CACrElB,QAASW,EACTwK,SAAQ5M,EAAAA,EAAA,GAAMiC,GAA4CU","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {forwardRef} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {HINT_CONTROLLER_PROVIDER} from '@taiga-ui/core/directives/hint-controller';\nimport {TEXTFIELD_CONTROLLER_PROVIDER} from '@taiga-ui/core/directives/textfield-controller';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\n\nimport {TuiPrimitiveTextfieldComponent} from './primitive-textfield.component';\n\nexport const TUI_PRIMITIVE_TEXTFIELD_PROVIDERS = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiPrimitiveTextfieldComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiPrimitiveTextfieldOptions {\n readonly iconAlign: TuiHorizontalDirection;\n readonly iconCleaner: PolymorpheusContent;\n}\n\n// TODO: remove in ivy compilation\nexport const TUI_PRIMITIVE_TEXTFIELD_ICON_CLEANER = 'tuiIconCloseLarge';\n\n/** Default values for primitive textfield options */\nexport const TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS: TuiPrimitiveTextfieldOptions = {\n iconAlign: 'right',\n iconCleaner: TUI_PRIMITIVE_TEXTFIELD_ICON_CLEANER,\n};\n\nexport const TUI_PRIMITIVE_TEXTFIELD_OPTIONS =\n new InjectionToken<TuiPrimitiveTextfieldOptions>(\n 'Default parameters for primitive textfield component',\n {\n factory: () => TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS,\n },\n );\n\nexport const tuiPrimitiveTextfieldOptionsProvider: (\n options: Partial<TuiPrimitiveTextfieldOptions>,\n) => ValueProvider = (options: Partial<TuiPrimitiveTextfieldOptions>) => ({\n provide: TUI_PRIMITIVE_TEXTFIELD_OPTIONS,\n useValue: {...TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n QueryList,\n ViewChild,\n} from '@angular/core';\nimport {\n AbstractTuiInteractive,\n isNativeFocusedIn,\n setNativeFocused,\n TuiContextWithImplicit,\n TuiCreditCardAutofillName,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_HINT_WATCHED_CONTROLLER,\n TuiHintControllerDirective,\n} from '@taiga-ui/core/directives/hint-controller';\nimport {\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiTextfieldController,\n} from '@taiga-ui/core/directives/textfield-controller';\nimport {TUI_MODE, TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness, TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {getBorder} from '@taiga-ui/core/utils/miscellaneous';\nimport {PolymorpheusContent, PolymorpheusOutletComponent} from '@tinkoff/ng-polymorpheus';\nimport {fromEvent, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_PRIMITIVE_TEXTFIELD_PROVIDERS} from './primitive-textfield.providers';\nimport {\n TUI_PRIMITIVE_TEXTFIELD_OPTIONS,\n TuiPrimitiveTextfieldOptions,\n} from './primitive-textfield-options';\n\nconst ICON_PADDING = 1.75;\nconst ICON_PADDING_S = 1.5;\n\n@Component({\n selector: 'tui-primitive-textfield',\n templateUrl: './primitive-textfield.template.html',\n styleUrls: ['./primitive-textfield.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_PRIMITIVE_TEXTFIELD_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._autofilled]': 'autofilled',\n '[class._label-outside]': 'controller.labelOutside',\n },\n})\nexport class TuiPrimitiveTextfieldComponent\n extends AbstractTuiInteractive\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n editable = true;\n\n @Input()\n @tuiDefaultProp()\n filler = '';\n\n @Input()\n @tuiDefaultProp()\n iconAlign: TuiPrimitiveTextfieldOptions['iconAlign'] = this.options.iconAlign;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiDefaultProp()\n iconContent: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> | null =\n null;\n\n @Input()\n @tuiDefaultProp()\n iconCleaner: TuiPrimitiveTextfieldOptions['iconCleaner'] = this.options.iconCleaner;\n\n @Input()\n @HostBinding('class._readonly')\n @tuiDefaultProp()\n readOnly = false;\n\n @Input()\n @tuiDefaultProp()\n invalid = false;\n\n @Input()\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n @tuiDefaultProp()\n prefix = '';\n\n @Input()\n @tuiDefaultProp()\n postfix = '';\n\n @Input()\n @tuiDefaultProp()\n value = '';\n\n @Output()\n readonly valueChange = new EventEmitter<string>();\n\n /**\n * @deprecated TODO: remove in 3.0\n */\n @Output()\n readonly autofilledChange = new EventEmitter<boolean>();\n\n @ContentChildren(PolymorpheusOutletComponent)\n readonly content?: QueryList<unknown>;\n\n autofilled = false;\n\n constructor(\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_PRIMITIVE_TEXTFIELD_OPTIONS)\n readonly options: TuiPrimitiveTextfieldOptions,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super();\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n if (this.computedDisabled || !this.focusableElement) {\n return null;\n }\n\n // TODO: Refactor this after we drop built-in input element\n return (\n (this.focusableElement.nativeElement\n .previousElementSibling as HTMLInputElement | null) ||\n this.focusableElement.nativeElement\n );\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeS | TuiSizeL {\n return this.controller.size;\n }\n\n @HostBinding('class._invalid')\n get computedInvalid(): boolean {\n return !this.readOnly && !this.disabled && this.invalid;\n }\n\n @HostBinding('class._hidden')\n get inputHidden(): boolean {\n return !!this.content?.length;\n }\n\n get hasValue(): boolean {\n return !!this.value;\n }\n\n get hasCleaner(): boolean {\n return (\n this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly\n );\n }\n\n get hasTooltip(): boolean {\n return !!this.hintController?.content && !this.disabled;\n }\n\n get hasCustomContent(): boolean {\n return !!this.controller.customContent;\n }\n\n get hasPlaceholder(): boolean {\n const hasDecor =\n this.controller.exampleText ||\n this.prefix ||\n this.postfix ||\n this.nativeFocusableElement?.placeholder;\n const showDecor = hasDecor && !this.readOnly && this.computedFocused;\n const placeholderVisible = !this.hasValue && !showDecor;\n\n return this.placeholderRaisable || placeholderVisible;\n }\n\n get placeholderRaised(): boolean {\n return (\n this.placeholderRaisable &&\n ((this.computedFocused && !this.readOnly) || this.hasValue || this.autofilled)\n );\n }\n\n @HostBinding('style.--border-start.rem')\n get borderStart(): number {\n return this.iconAlignLeft ? this.iconPaddingLeft : 0;\n }\n\n @HostBinding('style.--border-end.rem')\n get borderEnd(): number {\n return getBorder(\n this.iconAlignRight,\n this.hasCleaner,\n this.hasTooltip,\n this.hasCustomContent,\n );\n }\n\n get iconAlignLeft(): boolean {\n return this.hasIcon && this.iconAlign === 'left';\n }\n\n get iconAlignRight(): boolean {\n return this.hasIcon && this.iconAlign === 'right';\n }\n\n // Safari expiration date autofill workaround\n get name(): 'ccexpiryyear' | null {\n return this.controller.autocomplete === TuiCreditCardAutofillName.CcExp\n ? 'ccexpiryyear'\n : null;\n }\n\n get computedId(): string {\n return this.nativeFocusableElement?.id || '';\n }\n\n @HostListener('focusin', ['true'])\n @HostListener('focusout', ['false'])\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n @tuiPure\n getIndent$(element: HTMLElement): Observable<number> {\n return fromEvent(element, 'scroll').pipe(map(() => -1 * element.scrollLeft));\n }\n\n clear() {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = '';\n }\n\n this.updateValue('');\n }\n\n onMouseDown(event: MouseEvent) {\n const {nativeFocusableElement} = this;\n\n if (!nativeFocusableElement || event.target === nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n setNativeFocused(nativeFocusableElement);\n }\n\n onModelChange(value: string) {\n this.updateValue(value);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onAutofilled(autofilled: boolean) {\n this.updateAutofilled(autofilled);\n }\n\n private get iconPaddingLeft(): number {\n return this.size === 's' ? ICON_PADDING_S : ICON_PADDING;\n }\n\n private get placeholderRaisable(): boolean {\n return this.size !== 's' && !this.controller.labelOutside;\n }\n\n private get hasIcon(): boolean {\n return !!this.iconContent;\n }\n\n private updateAutofilled(autofilled: boolean) {\n if (this.autofilled === autofilled) {\n return;\n }\n\n this.autofilled = autofilled;\n this.autofilledChange.emit(autofilled);\n }\n\n private updateValue(value: string) {\n this.value = value;\n this.valueChange.emit(value);\n }\n}\n","import {Directive, forwardRef, Inject} from '@angular/core';\nimport {AbstractTuiControl} from '@taiga-ui/cdk';\nimport {TuiAbstractTextfieldHost} from '@taiga-ui/core/abstract';\nimport {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens';\n\nimport {TuiPrimitiveTextfieldComponent} from './primitive-textfield.component';\n\n@Directive({\n selector: 'tui-primitive-textfield',\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiPrimitiveTextfieldDirective),\n },\n ],\n})\nexport class TuiPrimitiveTextfieldDirective extends TuiAbstractTextfieldHost<any> {\n constructor(\n @Inject(TuiPrimitiveTextfieldComponent)\n private readonly textfield: TuiPrimitiveTextfieldComponent,\n ) {\n /**\n * TuiPrimitiveTextfieldComponent satisfies all required parts of\n * AbstractTuiControl interface. A new interface is not introduced\n * so AbstractTuiControl is automatically injected for all other controls.\n */\n super(textfield as any as AbstractTuiControl<unknown>);\n }\n\n get readOnly(): boolean {\n return this.textfield.readOnly || !this.textfield.editable;\n }\n\n onValueChange(value: string) {\n this.textfield.onModelChange(value);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DoCheck,\n ElementRef,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport {TuiIdService} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiDescribedByDirective,\n TuiTextfieldController,\n} from '@taiga-ui/core/directives';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\nimport {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens';\n\n// @dynamic\n@Component({\n selector: 'input[tuiTextfield], textarea[tuiTextfield]',\n template: '',\n providers: [\n TuiDescribedByDirective,\n TUI_DESCRIBED_BY_PROVIDERS,\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n host: {\n type: 'text',\n '[attr.aria-placeholder]': 'controller.exampleText',\n '[attr.aria-invalid]': 'host.invalid',\n '[attr.disabled]': 'host.disabled || null',\n '[tabIndex]': 'host.focusable ? 0 : -1',\n '[readOnly]': 'host.readOnly',\n '[value]': 'host.value',\n '(input)': 'host.onValueChange($event.target.value)',\n },\n styleUrls: ['textfield.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiTextfieldComponent implements DoCheck {\n constructor(\n @Inject(TUI_TEXTFIELD_HOST) readonly host: TuiTextfieldHost,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLInputElement>,\n @Inject(TuiDescribedByDirective)\n private readonly describedBy: TuiDescribedByDirective,\n @Inject(TuiIdService)\n private readonly idService: TuiIdService,\n ) {\n this.host.process(this.elementRef.nativeElement);\n }\n\n @HostBinding('attr.aria-describedby')\n get computedDescribedBy(): string | null {\n return this.describedBy.computedDescribedBy;\n }\n\n @HostBinding('id')\n get id(): string {\n return this.elementRef.nativeElement.id || this.idService.generate();\n }\n\n ngDoCheck() {\n this.describedBy.tuiDescribedBy = this.id;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n ViewChild,\n} from '@angular/core';\nimport {MutationObserverDirective} from '@ng-web-apis/mutation-observer';\nimport {\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiTextfieldController,\n} from '@taiga-ui/core/directives';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {defer, EMPTY} from 'rxjs';\nimport {distinctUntilChanged, map, startWith} from 'rxjs/operators';\n\nimport {TuiPrimitiveTextfieldComponent} from '../primitive-textfield.component';\n\n@Component({\n selector: 'tui-value-decoration',\n templateUrl: 'value-decoration.template.html',\n styleUrls: ['value-decoration.style.less'],\n // It follows Change Detection of PrimitiveTextfield\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class TuiValueDecorationComponent {\n @ViewChild('pre', {read: ElementRef, static: true})\n private readonly pre?: ElementRef<HTMLElement>;\n\n @ViewChild(MutationObserverDirective, {static: true})\n private readonly directive?: MutationObserverDirective;\n\n readonly pre$ = defer(() => this.directive?.waMutationObserver ?? EMPTY).pipe(\n map(() => this.pre?.nativeElement.offsetWidth ?? 0),\n startWith(0),\n distinctUntilChanged(),\n );\n\n constructor(\n @Inject(TuiPrimitiveTextfieldComponent)\n private readonly textfield: TuiPrimitiveTextfieldComponent,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n private readonly controller: TuiTextfieldController,\n ) {}\n\n @HostBinding('class._table')\n get isContextTable(): boolean {\n return this.textfield.appearance === TuiAppearance.Table;\n }\n\n get value(): string {\n return this.textfield.value;\n }\n\n get filler(): string {\n const {focused, placeholder, exampleText, value, textfield} = this;\n\n if (focused && placeholder && exampleText) {\n return '';\n }\n\n return focused ? exampleText || textfield.filler.slice(value.length) : '';\n }\n\n get prefix(): string {\n return this.decorationsVisible ? this.textfield.prefix : '';\n }\n\n get postfix(): string {\n return this.decorationsVisible ? this.computedPostfix : '';\n }\n\n private get placeholder(): string {\n return this.textfield.nativeFocusableElement?.placeholder || '';\n }\n\n private get exampleText(): string {\n const exampleText = this.controller.exampleText || this.placeholder;\n\n return !this.value && this.focused ? exampleText : '';\n }\n\n private get decorationsVisible(): boolean {\n return !!this.value || this.focused;\n }\n\n private get focused(): boolean {\n return this.textfield.computedFocused && !this.textfield.readOnly;\n }\n\n private get computedPostfix(): string {\n return this.textfield.postfix && (this.filler || this.value)\n ? ` ${this.textfield.postfix}`\n : this.textfield.postfix;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MutationObserverModule} from '@ng-web-apis/mutation-observer';\nimport {\n TuiAutofilledModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiInputModeModule,\n} from '@taiga-ui/cdk';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiTooltipModule} from '@taiga-ui/core/components/tooltip';\nimport {TuiDescribedByModule} from '@taiga-ui/core/directives/described-by';\nimport {TuiMaskAccessorModule} from '@taiga-ui/core/directives/mask-accessor';\nimport {TuiWrapperModule} from '@taiga-ui/core/directives/wrapper';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPrimitiveTextfieldComponent} from './primitive-textfield.component';\nimport {TuiPrimitiveTextfieldDirective} from './primitive-textfield.directive';\nimport {TuiTextfieldComponent} from './textfield/textfield.component';\nimport {TuiValueDecorationComponent} from './value-decoration/value-decoration.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiMaskAccessorModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiInputModeModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiAutofilledModule,\n TuiDescribedByModule,\n MutationObserverModule,\n ],\n declarations: [\n TuiPrimitiveTextfieldComponent,\n TuiPrimitiveTextfieldDirective,\n TuiTextfieldComponent,\n TuiValueDecorationComponent,\n ],\n exports: [\n TuiPrimitiveTextfieldComponent,\n TuiPrimitiveTextfieldDirective,\n TuiTextfieldComponent,\n ],\n})\nexport class TuiPrimitiveTextfieldModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.providers.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield-options.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.component.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.directive.ts","ng://@taiga-ui/core/components/primitive-textfield/textfield/textfield.component.ts","ng://@taiga-ui/core/components/primitive-textfield/value-decoration/value-decoration.component.ts","ng://@taiga-ui/core/components/primitive-textfield/primitive-textfield.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__assign","assign","t","s","i","n","arguments","length","call","apply","__decorate","decorators","target","key","desc","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param","paramIndex","decorator","TUI_PRIMITIVE_TEXTFIELD_PROVIDERS","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","TuiPrimitiveTextfieldComponent","TEXTFIELD_CONTROLLER_PROVIDER","HINT_CONTROLLER_PROVIDER","MODE_PROVIDER","TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS","iconAlign","iconCleaner","TUI_PRIMITIVE_TEXTFIELD_OPTIONS","InjectionToken","factory","mode$","appearance","controller","hintController","options","elementRef","_this","_super","editable","filler","iconContent","readOnly","invalid","disabled","prefix","postfix","value","valueChange","EventEmitter","autofilledChange","autofilled","computedDisabled","focusableElement","nativeElement","previousElementSibling","isNativeFocusedIn","size","_a","content","cleaner","hasValue","customContent","showDecor","exampleText","nativeFocusableElement","placeholder","computedFocused","placeholderVisible","placeholderRaisable","iconAlignLeft","iconPaddingLeft","getBorder","iconAlignRight","hasCleaner","hasTooltip","hasCustomContent","hasIcon","autocomplete","id","onFocused","focused","updateFocused","getIndent$","element","fromEvent","pipe","map","scrollLeft","clear","updateValue","onMouseDown","event","preventDefault","setNativeFocused","onModelChange","onHovered","hovered","updateHovered","onAutofilled","updateAutofilled","labelOutside","emit","Observable","type","Inject","args","TUI_MODE","TUI_TEXTFIELD_APPEARANCE","TuiTextfieldController","TUI_TEXTFIELD_WATCHED_CONTROLLER","TuiHintControllerDirective","TUI_HINT_WATCHED_CONTROLLER","ElementRef","ViewChild","Input","tuiDefaultProp","HostBinding","Output","ContentChildren","PolymorpheusOutletComponent","HostListener","tuiPure","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","host","($.data-mode.attr)","[class._autofilled]","[class._label-outside]","AbstractTuiInteractive","TuiPrimitiveTextfieldDirective","textfield","onValueChange","TuiPrimitiveTextfieldDirective_1","Directive","TUI_TEXTFIELD_HOST","TuiAbstractTextfieldHost","TuiTextfieldComponent","describedBy","idService","process","computedDescribedBy","generate","ngDoCheck","tuiDescribedBy","TuiDescribedByDirective","TuiIdService","TUI_DESCRIBED_BY_PROVIDERS","[attr.aria-placeholder]","[attr.aria-invalid]","[attr.disabled]","[tabIndex]","[readOnly]","[value]","(input)","TuiValueDecorationComponent","pre$","defer","_b","directive","waMutationObserver","EMPTY","pre","offsetWidth","startWith","distinctUntilChanged","slice","decorationsVisible","computedPostfix","read","static","MutationObserverDirective","Default","TuiPrimitiveTextfieldModule","NgModule","imports","CommonModule","FormsModule","TuiMaskAccessorModule","TuiFocusableModule","TuiHoveredModule","TuiInputModeModule","PolymorpheusModule","TuiWrapperModule","TuiSvgModule","TuiTooltipModule","TuiAutofilledModule","TuiDescribedByModule","MutationObserverModule","declarations","exports","useValue"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAA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1K,UAAA,kBAAe,KAA3B,WACI,OAAOF,KAAKoJ,UAAU1F,UAAY1D,KAAKoD,QAAUpD,KAAK2D,OAChD,IAAI3D,KAAKoJ,UAAU1F,QACnB1D,KAAKoJ,UAAU1F,kFArDOzB,EAA8BlB,WAAA,CAAA,CAAAqG,KADzDC,EAAAA,OAAMC,KAAA,CAACrF,YAGqBwF,EAAAA,uBAAsB1G,WAAA,CAAA,CAAAqG,KADlDC,EAAAA,OAAMC,KAAA,CAACI,EAAAA,uCAdZ5G,EAAA,CADCgH,EAAAA,UAAU,MAAO,CAAC4D,KAAM7D,EAAAA,WAAY8D,QAAQ,+BAI7C7K,EAAA,CADCgH,EAAAA,UAAU8D,EAAAA,0BAA2B,CAACD,QAAQ,qCAiB/C7K,EAAA,CADCmH,EAAAA,YAAY,oDApBJ2C,EAA2B9J,EAAA,CAPvCyH,EAAAA,UAAU,CACPC,SAAU,uBACVC,SAAA,+MAGAC,gBAAiBC,EAAAA,wBAAwBkD,sjBAgBpCpK,EAAA,EAAA4F,EAAAA,OAAOpF,IAEPR,EAAA,EAAA4F,EAAAA,OAAOK,EAAAA,oCAhBHkD,mBCwBb,SAAAkB,KAA0C,OAA7BA,EAA2BhL,EAAA,CA5BvCiL,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,sBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,mBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,aACAC,EAAAA,iBACAC,EAAAA,oBACAC,EAAAA,qBACAC,EAAAA,wBAEJC,aAAc,CACV7K,EACAkH,EACAO,EACAkB,GAEJmC,QAAS,CACL9K,EACAkH,EACAO,MAGKoC,yFLxCuC,qSAkB/B,SAAC/I,GAAmD,MAAA,CACrElB,QAASW,EACTwK,SAAQ5M,EAAAA,EAAA,GAAMiC,GAA4CU","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {forwardRef} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {HINT_CONTROLLER_PROVIDER} from '@taiga-ui/core/directives/hint-controller';\nimport {TEXTFIELD_CONTROLLER_PROVIDER} from '@taiga-ui/core/directives/textfield-controller';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\n\nimport {TuiPrimitiveTextfieldComponent} from './primitive-textfield.component';\n\nexport const TUI_PRIMITIVE_TEXTFIELD_PROVIDERS = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiPrimitiveTextfieldComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiPrimitiveTextfieldOptions {\n readonly iconAlign: TuiHorizontalDirection;\n readonly iconCleaner: PolymorpheusContent;\n}\n\n// TODO: remove in ivy compilation\nexport const TUI_PRIMITIVE_TEXTFIELD_ICON_CLEANER = 'tuiIconCloseLarge';\n\n/** Default values for primitive textfield options */\nexport const TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS: TuiPrimitiveTextfieldOptions = {\n iconAlign: 'right',\n iconCleaner: TUI_PRIMITIVE_TEXTFIELD_ICON_CLEANER,\n};\n\nexport const TUI_PRIMITIVE_TEXTFIELD_OPTIONS =\n new InjectionToken<TuiPrimitiveTextfieldOptions>(\n 'Default parameters for primitive textfield component',\n {\n factory: () => TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS,\n },\n );\n\nexport const tuiPrimitiveTextfieldOptionsProvider: (\n options: Partial<TuiPrimitiveTextfieldOptions>,\n) => ValueProvider = (options: Partial<TuiPrimitiveTextfieldOptions>) => ({\n provide: TUI_PRIMITIVE_TEXTFIELD_OPTIONS,\n useValue: {...TUI_PRIMITIVE_TEXTFIELD_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n QueryList,\n ViewChild,\n} from '@angular/core';\nimport {\n AbstractTuiInteractive,\n isNativeFocusedIn,\n setNativeFocused,\n TuiContextWithImplicit,\n TuiCreditCardAutofillName,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_HINT_WATCHED_CONTROLLER,\n TuiHintControllerDirective,\n} from '@taiga-ui/core/directives/hint-controller';\nimport {\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiTextfieldController,\n} from '@taiga-ui/core/directives/textfield-controller';\nimport {TUI_MODE, TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness, TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {getBorder} from '@taiga-ui/core/utils/miscellaneous';\nimport {PolymorpheusContent, PolymorpheusOutletComponent} from '@tinkoff/ng-polymorpheus';\nimport {fromEvent, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_PRIMITIVE_TEXTFIELD_PROVIDERS} from './primitive-textfield.providers';\nimport {\n TUI_PRIMITIVE_TEXTFIELD_OPTIONS,\n TuiPrimitiveTextfieldOptions,\n} from './primitive-textfield-options';\n\nconst ICON_PADDING = 1.75;\nconst ICON_PADDING_S = 1.5;\n\n@Component({\n selector: 'tui-primitive-textfield',\n templateUrl: './primitive-textfield.template.html',\n styleUrls: ['./primitive-textfield.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_PRIMITIVE_TEXTFIELD_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._autofilled]': 'autofilled',\n '[class._label-outside]': 'controller.labelOutside',\n },\n})\nexport class TuiPrimitiveTextfieldComponent\n extends AbstractTuiInteractive\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n editable = true;\n\n @Input()\n @tuiDefaultProp()\n filler = '';\n\n @Input()\n @tuiDefaultProp()\n iconAlign: TuiPrimitiveTextfieldOptions['iconAlign'] = this.options.iconAlign;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiDefaultProp()\n iconContent: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> | null =\n null;\n\n @Input()\n @tuiDefaultProp()\n iconCleaner: TuiPrimitiveTextfieldOptions['iconCleaner'] = this.options.iconCleaner;\n\n @Input()\n @HostBinding('class._readonly')\n @tuiDefaultProp()\n readOnly = false;\n\n @Input()\n @tuiDefaultProp()\n invalid = false;\n\n @Input()\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n @tuiDefaultProp()\n prefix = '';\n\n @Input()\n @tuiDefaultProp()\n postfix = '';\n\n @Input()\n @tuiDefaultProp()\n value = '';\n\n @Output()\n readonly valueChange = new EventEmitter<string>();\n\n /**\n * @deprecated TODO: remove in 3.0\n */\n @Output()\n readonly autofilledChange = new EventEmitter<boolean>();\n\n @ContentChildren(PolymorpheusOutletComponent)\n readonly content?: QueryList<unknown>;\n\n autofilled = false;\n\n constructor(\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_PRIMITIVE_TEXTFIELD_OPTIONS)\n readonly options: TuiPrimitiveTextfieldOptions,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super();\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n if (this.computedDisabled || !this.focusableElement) {\n return null;\n }\n\n // TODO: Refactor this after we drop built-in input element\n return (\n (this.focusableElement.nativeElement\n .previousElementSibling as HTMLInputElement | null) ||\n this.focusableElement.nativeElement\n );\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeS | TuiSizeL {\n return this.controller.size;\n }\n\n @HostBinding('class._invalid')\n get computedInvalid(): boolean {\n return !this.readOnly && !this.disabled && this.invalid;\n }\n\n @HostBinding('class._hidden')\n get inputHidden(): boolean {\n return !!this.content?.length;\n }\n\n get hasValue(): boolean {\n return !!this.value;\n }\n\n get hasCleaner(): boolean {\n return (\n this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly\n );\n }\n\n get hasTooltip(): boolean {\n return !!this.hintController?.content && !this.disabled;\n }\n\n get hasCustomContent(): boolean {\n return !!this.controller.customContent;\n }\n\n get hasPlaceholder(): boolean {\n const hasDecor =\n this.controller.exampleText ||\n this.prefix ||\n this.postfix ||\n this.nativeFocusableElement?.placeholder;\n const showDecor = hasDecor && !this.readOnly && this.computedFocused;\n const placeholderVisible = !this.hasValue && !showDecor;\n\n return this.placeholderRaisable || placeholderVisible;\n }\n\n get placeholderRaised(): boolean {\n return (\n this.placeholderRaisable &&\n ((this.computedFocused && !this.readOnly) || this.hasValue || this.autofilled)\n );\n }\n\n @HostBinding('style.--border-start.rem')\n get borderStart(): number {\n return this.iconAlignLeft ? this.iconPaddingLeft : 0;\n }\n\n @HostBinding('style.--border-end.rem')\n get borderEnd(): number {\n return getBorder(\n this.iconAlignRight,\n this.hasCleaner,\n this.hasTooltip,\n this.hasCustomContent,\n );\n }\n\n get iconAlignLeft(): boolean {\n return this.hasIcon && this.iconAlign === 'left';\n }\n\n get iconAlignRight(): boolean {\n return this.hasIcon && this.iconAlign === 'right';\n }\n\n // Safari expiration date autofill workaround\n get name(): 'ccexpiryyear' | null {\n return this.controller.autocomplete === TuiCreditCardAutofillName.CcExp\n ? 'ccexpiryyear'\n : null;\n }\n\n get computedId(): string {\n return this.nativeFocusableElement?.id || '';\n }\n\n @HostListener('focusin', ['true'])\n @HostListener('focusout', ['false'])\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n @tuiPure\n getIndent$(element: HTMLElement): Observable<number> {\n return fromEvent(element, 'scroll').pipe(map(() => -1 * element.scrollLeft));\n }\n\n clear() {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = '';\n }\n\n this.updateValue('');\n }\n\n onMouseDown(event: MouseEvent) {\n const {nativeFocusableElement} = this;\n\n if (!nativeFocusableElement || event.target === nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n setNativeFocused(nativeFocusableElement);\n }\n\n onModelChange(value: string) {\n this.updateValue(value);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onAutofilled(autofilled: boolean) {\n this.updateAutofilled(autofilled);\n }\n\n private get iconPaddingLeft(): number {\n return this.size === 's' ? ICON_PADDING_S : ICON_PADDING;\n }\n\n private get placeholderRaisable(): boolean {\n return this.size !== 's' && !this.controller.labelOutside;\n }\n\n private get hasIcon(): boolean {\n return !!this.iconContent;\n }\n\n private updateAutofilled(autofilled: boolean) {\n if (this.autofilled === autofilled) {\n return;\n }\n\n this.autofilled = autofilled;\n this.autofilledChange.emit(autofilled);\n }\n\n private updateValue(value: string) {\n this.value = value;\n this.valueChange.emit(value);\n }\n}\n","import {Directive, forwardRef, Inject} from '@angular/core';\nimport {AbstractTuiControl} from '@taiga-ui/cdk';\nimport {TuiAbstractTextfieldHost} from '@taiga-ui/core/abstract';\nimport {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens';\n\nimport {TuiPrimitiveTextfieldComponent} from './primitive-textfield.component';\n\n@Directive({\n selector: 'tui-primitive-textfield',\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiPrimitiveTextfieldDirective),\n },\n ],\n})\nexport class TuiPrimitiveTextfieldDirective extends TuiAbstractTextfieldHost<any> {\n constructor(\n @Inject(TuiPrimitiveTextfieldComponent)\n private readonly textfield: TuiPrimitiveTextfieldComponent,\n ) {\n /**\n * TuiPrimitiveTextfieldComponent satisfies all required parts of\n * AbstractTuiControl interface. A new interface is not introduced\n * so AbstractTuiControl is automatically injected for all other controls.\n */\n super(textfield as any as AbstractTuiControl<unknown>);\n }\n\n get readOnly(): boolean {\n return this.textfield.readOnly || !this.textfield.editable;\n }\n\n onValueChange(value: string) {\n this.textfield.onModelChange(value);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DoCheck,\n ElementRef,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport {TuiIdService} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiDescribedByDirective,\n TuiTextfieldController,\n} from '@taiga-ui/core/directives';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\nimport {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens';\n\n// @dynamic\n@Component({\n selector: 'input[tuiTextfield], textarea[tuiTextfield]',\n template: '',\n providers: [\n TuiDescribedByDirective,\n TUI_DESCRIBED_BY_PROVIDERS,\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n host: {\n type: 'text',\n '[attr.aria-placeholder]': 'controller.exampleText',\n '[attr.aria-invalid]': 'host.invalid',\n '[attr.disabled]': 'host.disabled || null',\n '[tabIndex]': 'host.focusable ? 0 : -1',\n '[readOnly]': 'host.readOnly',\n '[value]': 'host.value',\n '(input)': 'host.onValueChange($event.target.value)',\n },\n styleUrls: ['textfield.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiTextfieldComponent implements DoCheck {\n constructor(\n @Inject(TUI_TEXTFIELD_HOST) readonly host: TuiTextfieldHost,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLInputElement>,\n @Inject(TuiDescribedByDirective)\n private readonly describedBy: TuiDescribedByDirective,\n @Inject(TuiIdService)\n private readonly idService: TuiIdService,\n ) {\n this.host.process(this.elementRef.nativeElement);\n }\n\n @HostBinding('attr.aria-describedby')\n get computedDescribedBy(): string | null {\n return this.describedBy.computedDescribedBy;\n }\n\n @HostBinding('id')\n get id(): string {\n return this.elementRef.nativeElement.id || this.idService.generate();\n }\n\n ngDoCheck() {\n this.describedBy.tuiDescribedBy = this.id;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n ViewChild,\n} from '@angular/core';\nimport {MutationObserverDirective} from '@ng-web-apis/mutation-observer';\nimport {\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiTextfieldController,\n} from '@taiga-ui/core/directives';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {defer, EMPTY} from 'rxjs';\nimport {distinctUntilChanged, map, startWith} from 'rxjs/operators';\n\nimport {TuiPrimitiveTextfieldComponent} from '../primitive-textfield.component';\n\n@Component({\n selector: 'tui-value-decoration',\n templateUrl: 'value-decoration.template.html',\n styleUrls: ['value-decoration.style.less'],\n // It follows Change Detection of PrimitiveTextfield\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class TuiValueDecorationComponent {\n @ViewChild('pre', {read: ElementRef, static: true})\n private readonly pre?: ElementRef<HTMLElement>;\n\n @ViewChild(MutationObserverDirective, {static: true})\n private readonly directive?: MutationObserverDirective;\n\n readonly pre$ = defer(() => this.directive?.waMutationObserver ?? EMPTY).pipe(\n map(() => this.pre?.nativeElement.offsetWidth ?? 0),\n startWith(0),\n distinctUntilChanged(),\n );\n\n constructor(\n @Inject(TuiPrimitiveTextfieldComponent)\n private readonly textfield: TuiPrimitiveTextfieldComponent,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n private readonly controller: TuiTextfieldController,\n ) {}\n\n @HostBinding('class._table')\n get isContextTable(): boolean {\n return this.textfield.appearance === TuiAppearance.Table;\n }\n\n get value(): string {\n return this.textfield.value;\n }\n\n get filler(): string {\n const {focused, placeholder, exampleText, value, textfield} = this;\n\n if (focused && placeholder && exampleText) {\n return '';\n }\n\n return focused ? exampleText || textfield.filler.slice(value.length) : '';\n }\n\n get prefix(): string {\n return this.decorationsVisible ? this.textfield.prefix : '';\n }\n\n get postfix(): string {\n return this.decorationsVisible ? this.computedPostfix : '';\n }\n\n private get placeholder(): string {\n return this.textfield.nativeFocusableElement?.placeholder || '';\n }\n\n private get exampleText(): string {\n const exampleText = this.controller.exampleText || this.placeholder;\n\n return !this.value && this.focused ? exampleText : '';\n }\n\n private get decorationsVisible(): boolean {\n return !!this.value || this.focused;\n }\n\n private get focused(): boolean {\n return this.textfield.computedFocused && !this.textfield.readOnly;\n }\n\n private get computedPostfix(): string {\n return this.textfield.postfix && (this.filler || this.value)\n ? ` ${this.textfield.postfix}`\n : this.textfield.postfix;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MutationObserverModule} from '@ng-web-apis/mutation-observer';\nimport {\n TuiAutofilledModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiInputModeModule,\n} from '@taiga-ui/cdk';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiTooltipModule} from '@taiga-ui/core/components/tooltip';\nimport {TuiDescribedByModule} from '@taiga-ui/core/directives/described-by';\nimport {TuiMaskAccessorModule} from '@taiga-ui/core/directives/mask-accessor';\nimport {TuiWrapperModule} from '@taiga-ui/core/directives/wrapper';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPrimitiveTextfieldComponent} from './primitive-textfield.component';\nimport {TuiPrimitiveTextfieldDirective} from './primitive-textfield.directive';\nimport {TuiTextfieldComponent} from './textfield/textfield.component';\nimport {TuiValueDecorationComponent} from './value-decoration/value-decoration.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiMaskAccessorModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiInputModeModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiAutofilledModule,\n TuiDescribedByModule,\n MutationObserverModule,\n ],\n declarations: [\n TuiPrimitiveTextfieldComponent,\n TuiPrimitiveTextfieldDirective,\n TuiTextfieldComponent,\n TuiValueDecorationComponent,\n ],\n exports: [\n TuiPrimitiveTextfieldComponent,\n TuiPrimitiveTextfieldDirective,\n TuiTextfieldComponent,\n ],\n})\nexport class TuiPrimitiveTextfieldModule {}\n"]}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/constants'), require('@taiga-ui/core/modules/notifications'), require('@taiga-ui/core/providers'), require('@taiga-ui/core/tokens'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/core/components/hints-host'), require('@taiga-ui/core/components/scroll-controls'), require('@taiga-ui/core/internal/svg-defs-host'), require('@tinkoff/ng-event-plugins')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/core/components/root', ['exports', '@angular/common', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/constants', '@taiga-ui/core/modules/notifications', '@taiga-ui/core/providers', '@taiga-ui/core/tokens', 'rxjs', 'rxjs/operators', '@taiga-ui/core/components/hints-host', '@taiga-ui/core/components/scroll-controls', '@taiga-ui/core/internal/svg-defs-host', '@tinkoff/ng-event-plugins'], factory) :
4
- (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].core = global['taiga-ui'].core || {}, global['taiga-ui'].core.components = global['taiga-ui'].core.components || {}, global['taiga-ui'].core.components.root = {}), global.ng.common, global.ng.core, global.cdk, global['taiga-ui'].core.constants, global['taiga-ui'].core.modules.notifications, global['taiga-ui'].core.providers, global['taiga-ui'].core.tokens, global.rxjs, global.rxjs.operators, global['taiga-ui'].core.components['hints-host'], global['taiga-ui'].core.components['scroll-controls'], global['taiga-ui'].core.internal['svg-defs-host'], global.ngEventPlugins));
5
- }(this, (function (exports, common, core, cdk, constants, notifications, providers, tokens, rxjs, operators, hintsHost, scrollControls, svgDefsHost, ngEventPlugins) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/constants'), require('@taiga-ui/core/providers'), require('@taiga-ui/core/tokens'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/core/components/hints-host'), require('@taiga-ui/core/components/scroll-controls'), require('@taiga-ui/core/internal/svg-defs-host'), require('@tinkoff/ng-event-plugins')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/core/components/root', ['exports', '@angular/common', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/constants', '@taiga-ui/core/providers', '@taiga-ui/core/tokens', 'rxjs', 'rxjs/operators', '@taiga-ui/core/components/hints-host', '@taiga-ui/core/components/scroll-controls', '@taiga-ui/core/internal/svg-defs-host', '@tinkoff/ng-event-plugins'], factory) :
4
+ (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].core = global['taiga-ui'].core || {}, global['taiga-ui'].core.components = global['taiga-ui'].core.components || {}, global['taiga-ui'].core.components.root = {}), global.ng.common, global.ng.core, global.cdk, global['taiga-ui'].core.constants, global['taiga-ui'].core.providers, global['taiga-ui'].core.tokens, global.rxjs, global.rxjs.operators, global['taiga-ui'].core.components['hints-host'], global['taiga-ui'].core.components['scroll-controls'], global['taiga-ui'].core.internal['svg-defs-host'], global.ngEventPlugins));
5
+ }(this, (function (exports, common, core, cdk, constants, providers, tokens, rxjs, operators, hintsHost, scrollControls, svgDefsHost, ngEventPlugins) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -225,15 +225,14 @@
225
225
 
226
226
  // @dynamic
227
227
  var TuiRootComponent = /** @class */ (function () {
228
- function TuiRootComponent(duration, elementRef, dialogs, notificationsHost, isMobile, enabled, isMobileRes$, _a, theme) {
228
+ function TuiRootComponent(duration, elementRef, dialogs, isMobile, enabled, isMobileRes$, _a, theme) {
229
229
  var body = _a.body;
230
230
  this.duration = duration;
231
231
  this.elementRef = elementRef;
232
232
  this.dialogs = dialogs;
233
- this.notificationsHost = notificationsHost;
234
233
  this.isMobile = isMobile;
235
234
  this.isMobileRes$ = isMobileRes$;
236
- this.scrollbars$ = this.dialogs && !this.isMobile
235
+ this.scrollbars$ = this.dialogs.length && !this.isMobile
237
236
  ? rxjs.merge.apply(void 0, __spread(this.dialogs)).pipe(operators.map(function (_a) {
238
237
  var length = _a.length;
239
238
  return !length;
@@ -245,8 +244,7 @@
245
244
  TuiRootComponent.ctorParameters = function () { return [
246
245
  { type: Number, decorators: [{ type: core.Inject, args: [tokens.TUI_ANIMATIONS_DURATION,] }] },
247
246
  { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
248
- { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [cdk.TUI_DIALOGS,] }] },
249
- { type: core.Type, decorators: [{ type: core.Optional }, { type: core.Inject, args: [notifications.TuiNotificationsHostComponent,] }] },
247
+ { type: undefined, decorators: [{ type: core.Inject, args: [cdk.TUI_DIALOGS,] }] },
250
248
  { type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_MOBILE,] }] },
251
249
  { type: Boolean, decorators: [{ type: core.Inject, args: [tokens.TUI_ASSERT_ENABLED,] }] },
252
250
  { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_IS_MOBILE_RES,] }] },
@@ -256,7 +254,7 @@
256
254
  TuiRootComponent = __decorate([
257
255
  core.Component({
258
256
  selector: 'tui-root',
259
- template: "<tui-scroll-controls\n *ngIf=\"scrollbars$ | async\"\n class=\"scrollbar\"\n></tui-scroll-controls>\n<tui-svg-defs-host></tui-svg-defs-host>\n<tui-dropdown-host>\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"tuiOverContent\"></ng-content>\n <tui-dialog-host *ngIf=\"dialogs && dialogs.length\"></tui-dialog-host>\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n <ng-container\n *ngIf=\"notificationsHost\"\n [ngComponentOutlet]=\"notificationsHost\"\n ></ng-container>\n <ng-content select=\"tuiOverNotifications\"></ng-content>\n</tui-dropdown-host>\n<ng-content select=\"tuiOverPortals\"></ng-content>\n<tui-hints-host></tui-hints-host>\n<ng-content select=\"tuiOverHints\"></ng-content>\n",
257
+ template: "<tui-scroll-controls\n *ngIf=\"scrollbars$ | async\"\n class=\"scrollbar\"\n></tui-scroll-controls>\n<tui-svg-defs-host></tui-svg-defs-host>\n<tui-dropdown-host>\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"tuiOverContent\"></ng-content>\n <tui-dialog-host></tui-dialog-host>\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n <tui-alert-host></tui-alert-host>\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n <!-- TODO: Remove-->\n <ng-content select=\"tuiOverNotifications\"></ng-content>\n</tui-dropdown-host>\n<ng-content select=\"tuiOverPortals\"></ng-content>\n<tui-hints-host></tui-hints-host>\n<ng-content select=\"tuiOverHints\"></ng-content>\n",
260
258
  changeDetection: core.ChangeDetectionStrategy.OnPush,
261
259
  providers: [providers.TUI_IS_MOBILE_RES_PROVIDER],
262
260
  host: {
@@ -268,15 +266,12 @@
268
266
  }),
269
267
  __param(0, core.Inject(tokens.TUI_ANIMATIONS_DURATION)),
270
268
  __param(1, core.Inject(core.ElementRef)),
271
- __param(2, core.Optional()),
272
269
  __param(2, core.Inject(cdk.TUI_DIALOGS)),
273
- __param(3, core.Optional()),
274
- __param(3, core.Inject(notifications.TuiNotificationsHostComponent)),
275
- __param(4, core.Inject(cdk.TUI_IS_MOBILE)),
276
- __param(5, core.Inject(tokens.TUI_ASSERT_ENABLED)),
277
- __param(6, core.Inject(tokens.TUI_IS_MOBILE_RES)),
278
- __param(7, core.Inject(common.DOCUMENT)),
279
- __param(8, core.Inject(tokens.TUI_THEME))
270
+ __param(3, core.Inject(cdk.TUI_IS_MOBILE)),
271
+ __param(4, core.Inject(tokens.TUI_ASSERT_ENABLED)),
272
+ __param(5, core.Inject(tokens.TUI_IS_MOBILE_RES)),
273
+ __param(6, core.Inject(common.DOCUMENT)),
274
+ __param(7, core.Inject(tokens.TUI_THEME))
280
275
  ], TuiRootComponent);
281
276
  return TuiRootComponent;
282
277
  }());
@@ -294,6 +289,7 @@
294
289
  svgDefsHost.TuiSvgDefsHostModule,
295
290
  hintsHost.TuiHintsHostModule,
296
291
  cdk.TuiDialogHostModule,
292
+ cdk.TuiAlertHostModule,
297
293
  scrollControls.TuiScrollControlsModule,
298
294
  ],
299
295
  declarations: [TuiRootComponent],