@taiga-ui/core 3.18.0 → 3.19.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 (291) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +10 -19
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-alert.umd.js +14 -23
  4. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.js +11 -20
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-calendar.umd.js +11 -20
  8. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.js +20 -29
  10. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-dialog.umd.js +20 -29
  12. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-error.umd.js +11 -20
  14. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-expand.umd.js +14 -23
  16. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-group.umd.js +14 -23
  18. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-hints-host.umd.js +7 -7
  20. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +14 -23
  21. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-label.umd.js +11 -20
  23. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-link.umd.js +12 -21
  25. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-loader.umd.js +11 -20
  27. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-notification.umd.js +11 -20
  29. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +11 -20
  31. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +11 -20
  33. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +11 -20
  35. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +28 -34
  37. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +11 -20
  39. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-root.umd.js +11 -20
  41. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +17 -26
  43. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-scrollbar.umd.js +17 -26
  45. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-svg.umd.js +11 -20
  47. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  48. package/bundles/taiga-ui-core-components-theme-night.umd.js +11 -20
  49. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  50. package/bundles/taiga-ui-core-components-tooltip.umd.js +11 -20
  51. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  52. package/bundles/taiga-ui-core-directives-dropdown.umd.js +41 -50
  53. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  54. package/bundles/taiga-ui-core-directives-hint.umd.js +38 -47
  55. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  56. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +7 -7
  57. package/bundles/taiga-ui-core-directives-mode.umd.js +11 -20
  58. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +11 -20
  60. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +100 -54
  62. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-directives-wrapper.umd.js +7 -7
  64. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +11 -20
  65. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +7 -7
  67. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +7 -7
  68. package/bundles/taiga-ui-core-pipes-flag.umd.js +96 -0
  69. package/bundles/taiga-ui-core-pipes-flag.umd.js.map +1 -0
  70. package/bundles/taiga-ui-core-pipes-format-date.umd.js +7 -7
  71. package/bundles/taiga-ui-core-pipes-format-number.umd.js +7 -7
  72. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +7 -7
  73. package/bundles/taiga-ui-core-pipes-month.umd.js +7 -7
  74. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +11 -20
  75. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-pipes.umd.js +10 -4
  77. package/bundles/taiga-ui-core-pipes.umd.js.map +1 -1
  78. package/bundles/taiga-ui-core-services.umd.js +22 -31
  79. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  80. package/bundles/taiga-ui-core-tokens.umd.js +6 -13
  81. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  82. package/bundles/taiga-ui-core-utils-format.umd.js +4 -13
  83. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  84. package/bundles/taiga-ui-core-utils-mask.umd.js +4 -13
  85. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  86. package/components/primitive-textfield/primitive-textfield.component.d.ts +3 -3
  87. package/directives/textfield-controller/index.d.ts +1 -0
  88. package/directives/textfield-controller/textfield-appearance.directive.d.ts +9 -0
  89. package/directives/textfield-controller/textfield-controller.module.d.ts +11 -10
  90. package/directives/textfield-controller/textfield.controller.d.ts +5 -1
  91. package/esm2015/abstract/abstract-driver.directive.js +3 -3
  92. package/esm2015/abstract/abstract-textfield-host.js +3 -3
  93. package/esm2015/components/alert/alert.component.js +3 -3
  94. package/esm2015/components/alert/alert.module.js +4 -4
  95. package/esm2015/components/alert/alert.service.js +3 -3
  96. package/esm2015/components/button/button.component.js +3 -3
  97. package/esm2015/components/button/button.module.js +4 -4
  98. package/esm2015/components/calendar/calendar.component.js +3 -3
  99. package/esm2015/components/calendar/calendar.module.js +4 -4
  100. package/esm2015/components/data-list/data-list.component.js +3 -3
  101. package/esm2015/components/data-list/data-list.directive.js +3 -3
  102. package/esm2015/components/data-list/data-list.module.js +4 -4
  103. package/esm2015/components/data-list/opt-group.directive.js +3 -3
  104. package/esm2015/components/data-list/option/option.component.js +3 -3
  105. package/esm2015/components/dialog/dialog-close.service.js +3 -3
  106. package/esm2015/components/dialog/dialog.component.js +3 -3
  107. package/esm2015/components/dialog/dialog.directive.js +3 -3
  108. package/esm2015/components/dialog/dialog.module.js +4 -4
  109. package/esm2015/components/dialog/dialog.service.js +3 -3
  110. package/esm2015/components/error/error.component.js +3 -3
  111. package/esm2015/components/error/error.module.js +4 -4
  112. package/esm2015/components/expand/expand-content.directive.js +3 -3
  113. package/esm2015/components/expand/expand.component.js +3 -3
  114. package/esm2015/components/expand/expand.module.js +4 -4
  115. package/esm2015/components/group/group-styles.component.js +3 -3
  116. package/esm2015/components/group/group.directive.js +3 -3
  117. package/esm2015/components/group/group.module.js +4 -4
  118. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  119. package/esm2015/components/hints-host/hints-host.module.js +4 -4
  120. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +3 -3
  121. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +3 -3
  122. package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +4 -4
  123. package/esm2015/components/label/label.component.js +3 -3
  124. package/esm2015/components/label/label.module.js +4 -4
  125. package/esm2015/components/link/link.component.js +4 -4
  126. package/esm2015/components/link/link.module.js +4 -4
  127. package/esm2015/components/loader/loader.component.js +3 -3
  128. package/esm2015/components/loader/loader.module.js +4 -4
  129. package/esm2015/components/notification/notification.component.js +3 -3
  130. package/esm2015/components/notification/notification.module.js +4 -4
  131. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  132. package/esm2015/components/primitive-calendar/primitive-calendar.module.js +4 -4
  133. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +3 -3
  134. package/esm2015/components/primitive-checkbox/primitive-checkbox.module.js +4 -4
  135. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  136. package/esm2015/components/primitive-spin-button/primitive-spin-button.module.js +4 -4
  137. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +9 -10
  138. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +3 -3
  139. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +4 -4
  140. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +3 -3
  141. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  142. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  143. package/esm2015/components/primitive-year-picker/primitive-year-picker.module.js +4 -4
  144. package/esm2015/components/root/root.component.js +3 -3
  145. package/esm2015/components/root/root.module.js +4 -4
  146. package/esm2015/components/scroll-controls/scroll-controls.component.js +3 -3
  147. package/esm2015/components/scroll-controls/scroll-controls.module.js +4 -4
  148. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +3 -3
  149. package/esm2015/components/scroll-controls/scrollbar.directive.js +3 -3
  150. package/esm2015/components/scrollbar/scroll-ref.directive.js +3 -3
  151. package/esm2015/components/scrollbar/scrollable.directive.js +3 -3
  152. package/esm2015/components/scrollbar/scrollbar.component.js +3 -3
  153. package/esm2015/components/scrollbar/scrollbar.module.js +4 -4
  154. package/esm2015/components/svg/svg.component.js +3 -3
  155. package/esm2015/components/svg/svg.module.js +4 -4
  156. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  157. package/esm2015/components/theme-night/theme-night.module.js +4 -4
  158. package/esm2015/components/tooltip/tooltip.component.js +3 -3
  159. package/esm2015/components/tooltip/tooltip.module.js +4 -4
  160. package/esm2015/directives/dropdown/dropdown-context.directive.js +3 -3
  161. package/esm2015/directives/dropdown/dropdown-driver.directive.js +3 -3
  162. package/esm2015/directives/dropdown/dropdown-host.directive.js +3 -3
  163. package/esm2015/directives/dropdown/dropdown-hover.directive.js +3 -3
  164. package/esm2015/directives/dropdown/dropdown-manual.directive.js +3 -3
  165. package/esm2015/directives/dropdown/dropdown-options.directive.js +3 -3
  166. package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +3 -3
  167. package/esm2015/directives/dropdown/dropdown-position.directive.js +3 -3
  168. package/esm2015/directives/dropdown/dropdown-selection.directive.js +3 -3
  169. package/esm2015/directives/dropdown/dropdown.component.js +3 -3
  170. package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
  171. package/esm2015/directives/dropdown/dropdown.module.js +4 -4
  172. package/esm2015/directives/hint/hint-describe.directive.js +3 -3
  173. package/esm2015/directives/hint/hint-driver.directive.js +3 -3
  174. package/esm2015/directives/hint/hint-host.directive.js +3 -3
  175. package/esm2015/directives/hint/hint-hover.directive.js +3 -3
  176. package/esm2015/directives/hint/hint-manual.directive.js +3 -3
  177. package/esm2015/directives/hint/hint-options.directive.js +3 -3
  178. package/esm2015/directives/hint/hint-pointer.directive.js +3 -3
  179. package/esm2015/directives/hint/hint-position.directive.js +3 -3
  180. package/esm2015/directives/hint/hint.component.js +3 -3
  181. package/esm2015/directives/hint/hint.directive.js +3 -3
  182. package/esm2015/directives/hint/hint.module.js +4 -4
  183. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +3 -3
  184. package/esm2015/directives/mask-accessor/mask-accessor.module.js +4 -4
  185. package/esm2015/directives/mode/mode.directive.js +3 -3
  186. package/esm2015/directives/mode/mode.module.js +4 -4
  187. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +3 -3
  188. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +4 -4
  189. package/esm2015/directives/textfield-controller/index.js +2 -1
  190. package/esm2015/directives/textfield-controller/textfield-appearance.directive.js +38 -0
  191. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +3 -3
  192. package/esm2015/directives/textfield-controller/textfield-controller.module.js +11 -6
  193. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +7 -3
  194. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +3 -3
  195. package/esm2015/directives/textfield-controller/textfield-filler.directive.js +3 -3
  196. package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +3 -3
  197. package/esm2015/directives/textfield-controller/textfield-icon.directive.js +3 -3
  198. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +3 -3
  199. package/esm2015/directives/textfield-controller/textfield-postfix.directive.js +3 -3
  200. package/esm2015/directives/textfield-controller/textfield-prefix.directive.js +3 -3
  201. package/esm2015/directives/textfield-controller/textfield-size.directive.js +3 -3
  202. package/esm2015/directives/textfield-controller/textfield.controller.js +7 -2
  203. package/esm2015/directives/wrapper/wrapper.directive.js +3 -3
  204. package/esm2015/directives/wrapper/wrapper.module.js +4 -4
  205. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +3 -3
  206. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.js +4 -4
  207. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +3 -3
  208. package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +4 -4
  209. package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +4 -4
  210. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +3 -3
  211. package/esm2015/pipes/flag/flag.module.js +16 -0
  212. package/esm2015/pipes/flag/flag.pipe.js +44 -0
  213. package/esm2015/pipes/flag/index.js +3 -0
  214. package/esm2015/pipes/flag/taiga-ui-core-pipes-flag.js +5 -0
  215. package/esm2015/pipes/format-date/format-date.module.js +4 -4
  216. package/esm2015/pipes/format-date/format-date.pipe.js +3 -3
  217. package/esm2015/pipes/format-number/format-number.module.js +4 -4
  218. package/esm2015/pipes/format-number/format-number.pipe.js +3 -3
  219. package/esm2015/pipes/format-phone/format-phone.module.js +4 -4
  220. package/esm2015/pipes/format-phone/format-phone.pipe.js +3 -3
  221. package/esm2015/pipes/index.js +2 -1
  222. package/esm2015/pipes/month/month.module.js +4 -4
  223. package/esm2015/pipes/month/month.pipe.js +3 -3
  224. package/esm2015/pipes/order-week-days/order-week-days.module.js +4 -4
  225. package/esm2015/pipes/order-week-days/order-week-days.pipe.js +3 -3
  226. package/esm2015/services/format-date.service.js +3 -3
  227. package/esm2015/services/hint.service.js +3 -3
  228. package/esm2015/services/night-theme.service.js +3 -3
  229. package/esm2015/services/position.service.js +3 -3
  230. package/esm2015/services/router-link-active.service.js +3 -3
  231. package/esm2015/services/svg.service.js +3 -3
  232. package/esm2015/tokens/textfield-appearance.js +3 -1
  233. package/fesm2015/taiga-ui-core-abstract.js +6 -6
  234. package/fesm2015/taiga-ui-core-components-alert.js +10 -10
  235. package/fesm2015/taiga-ui-core-components-button.js +7 -7
  236. package/fesm2015/taiga-ui-core-components-calendar.js +7 -7
  237. package/fesm2015/taiga-ui-core-components-data-list.js +16 -16
  238. package/fesm2015/taiga-ui-core-components-dialog.js +16 -16
  239. package/fesm2015/taiga-ui-core-components-error.js +7 -7
  240. package/fesm2015/taiga-ui-core-components-expand.js +10 -10
  241. package/fesm2015/taiga-ui-core-components-group.js +10 -10
  242. package/fesm2015/taiga-ui-core-components-hints-host.js +7 -7
  243. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  244. package/fesm2015/taiga-ui-core-components-label.js +7 -7
  245. package/fesm2015/taiga-ui-core-components-link.js +8 -8
  246. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  247. package/fesm2015/taiga-ui-core-components-loader.js +7 -7
  248. package/fesm2015/taiga-ui-core-components-notification.js +7 -7
  249. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +7 -7
  250. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +7 -7
  251. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +7 -7
  252. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +21 -22
  253. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  254. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +7 -7
  255. package/fesm2015/taiga-ui-core-components-root.js +7 -7
  256. package/fesm2015/taiga-ui-core-components-scroll-controls.js +13 -13
  257. package/fesm2015/taiga-ui-core-components-scrollbar.js +13 -13
  258. package/fesm2015/taiga-ui-core-components-svg.js +7 -7
  259. package/fesm2015/taiga-ui-core-components-theme-night.js +7 -7
  260. package/fesm2015/taiga-ui-core-components-tooltip.js +7 -7
  261. package/fesm2015/taiga-ui-core-directives-dropdown.js +37 -37
  262. package/fesm2015/taiga-ui-core-directives-hint.js +34 -34
  263. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +7 -7
  264. package/fesm2015/taiga-ui-core-directives-mode.js +7 -7
  265. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +7 -7
  266. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +83 -36
  267. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  268. package/fesm2015/taiga-ui-core-directives-wrapper.js +7 -7
  269. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +7 -7
  270. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +7 -7
  271. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +7 -7
  272. package/fesm2015/taiga-ui-core-pipes-flag.js +64 -0
  273. package/fesm2015/taiga-ui-core-pipes-flag.js.map +1 -0
  274. package/fesm2015/taiga-ui-core-pipes-format-date.js +7 -7
  275. package/fesm2015/taiga-ui-core-pipes-format-number.js +7 -7
  276. package/fesm2015/taiga-ui-core-pipes-format-phone.js +7 -7
  277. package/fesm2015/taiga-ui-core-pipes-month.js +7 -7
  278. package/fesm2015/taiga-ui-core-pipes-order-week-days.js +7 -7
  279. package/fesm2015/taiga-ui-core-pipes.js +1 -0
  280. package/fesm2015/taiga-ui-core-pipes.js.map +1 -1
  281. package/fesm2015/taiga-ui-core-services.js +18 -18
  282. package/fesm2015/taiga-ui-core-tokens.js +2 -0
  283. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  284. package/package.json +4 -4
  285. package/pipes/flag/flag.module.d.ts +7 -0
  286. package/pipes/flag/flag.pipe.d.ts +13 -0
  287. package/pipes/flag/index.d.ts +2 -0
  288. package/pipes/flag/package.json +10 -0
  289. package/pipes/flag/taiga-ui-core-pipes-flag.d.ts +5 -0
  290. package/pipes/index.d.ts +1 -0
  291. package/tokens/textfield-appearance.d.ts +1 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/textfield-controller', ['exports', '@angular/core', '@taiga-ui/cdk', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives["textfield-controller"] = {}), global.ng.core, global.cdk, global.rxjs, global.rxjs.operators));
5
- })(this, (function (exports, i0, cdk, rxjs, operators) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/tokens'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/textfield-controller', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/tokens', 'rxjs', 'rxjs/operators'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives["textfield-controller"] = {}), global.ng.core, global.cdk, global["taiga-ui"].core.tokens, global.rxjs, global.rxjs.operators));
5
+ })(this, (function (exports, i0, cdk, tokens, rxjs, operators) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -25,9 +25,11 @@
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
 
27
27
  var TuiTextfieldController = /** @class */ (function () {
28
- function TuiTextfieldController(change$, options, cleanerDirective, customContentDirective, iconDirective, iconLeftDirective, labelOutsideDirective, sizeDirective, prefixDirective, postfixDirective, fillerDirective) {
28
+ function TuiTextfieldController(change$, options, legacyAppearance, appearanceDirective, cleanerDirective, customContentDirective, iconDirective, iconLeftDirective, labelOutsideDirective, sizeDirective, prefixDirective, postfixDirective, fillerDirective) {
29
29
  this.change$ = change$;
30
30
  this.options = options;
31
+ this.legacyAppearance = legacyAppearance;
32
+ this.appearanceDirective = appearanceDirective;
31
33
  this.cleanerDirective = cleanerDirective;
32
34
  this.customContentDirective = customContentDirective;
33
35
  this.iconDirective = iconDirective;
@@ -38,6 +40,13 @@
38
40
  this.postfixDirective = postfixDirective;
39
41
  this.fillerDirective = fillerDirective;
40
42
  }
43
+ Object.defineProperty(TuiTextfieldController.prototype, "appearance", {
44
+ get: function () {
45
+ return this.appearanceDirective.appearance || this.legacyAppearance;
46
+ },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
41
50
  Object.defineProperty(TuiTextfieldController.prototype, "cleaner", {
42
51
  get: function () {
43
52
  return this.cleanerDirective.cleaner;
@@ -104,7 +113,7 @@
104
113
  return TuiTextfieldController;
105
114
  }());
106
115
 
107
- /******************************************************************************
116
+ /*! *****************************************************************************
108
117
  Copyright (c) Microsoft Corporation.
109
118
 
110
119
  Permission to use, copy, modify, and/or distribute this software for any
@@ -202,7 +211,7 @@
202
211
  function step(op) {
203
212
  if (f)
204
213
  throw new TypeError("Generator is already executing.");
205
- while (g && (g = 0, op[0] && (_ = 0)), _)
214
+ while (_)
206
215
  try {
207
216
  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)
208
217
  return t;
@@ -266,11 +275,7 @@
266
275
  var __createBinding = Object.create ? (function (o, m, k, k2) {
267
276
  if (k2 === undefined)
268
277
  k2 = k;
269
- var desc = Object.getOwnPropertyDescriptor(m, k);
270
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
271
- desc = { enumerable: true, get: function () { return m[k]; } };
272
- }
273
- Object.defineProperty(o, k2, desc);
278
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
274
279
  }) : (function (o, m, k, k2) {
275
280
  if (k2 === undefined)
276
281
  k2 = k;
@@ -343,7 +348,7 @@
343
348
  ar[i] = from[i];
344
349
  }
345
350
  }
346
- return to.concat(ar || Array.prototype.slice.call(from));
351
+ return to.concat(ar || from);
347
352
  }
348
353
  function __await(v) {
349
354
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -425,11 +430,44 @@
425
430
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
426
431
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
427
432
  }
428
- function __classPrivateFieldIn(state, receiver) {
429
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
430
- throw new TypeError("Cannot use 'in' operator on non-object");
431
- return typeof state === "function" ? receiver === state : state.has(receiver);
432
- }
433
+
434
+ // TODO: rename to TUI_TEXTFIELD_APPEARANCE in v4
435
+ var TUI_TEXTFIELD_APPEARANCE_DIRECTIVE = new i0.InjectionToken('[TUI_TEXTFIELD_APPEARANCE_DIRECTIVE]: tuiTextfieldAppearance', {
436
+ factory: function () { return new TuiTextfieldAppearanceDirective(); },
437
+ });
438
+ var TuiTextfieldAppearanceDirective = /** @class */ (function (_super) {
439
+ __extends(TuiTextfieldAppearanceDirective, _super);
440
+ function TuiTextfieldAppearanceDirective() {
441
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
442
+ // it's an empty string by default for backward compatibility
443
+ // (see comment https://github.com/Tinkoff/taiga-ui/pull/3007#issuecomment-1315179508)
444
+ _this.appearance = '';
445
+ return _this;
446
+ }
447
+ return TuiTextfieldAppearanceDirective;
448
+ }(cdk.AbstractTuiController));
449
+ TuiTextfieldAppearanceDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldAppearanceDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
450
+ TuiTextfieldAppearanceDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldAppearanceDirective, selector: "[tuiTextfieldAppearance]", inputs: { appearance: ["tuiTextfieldAppearance", "appearance"] }, providers: [
451
+ {
452
+ provide: TUI_TEXTFIELD_APPEARANCE_DIRECTIVE,
453
+ useExisting: i0.forwardRef(function () { return TuiTextfieldAppearanceDirective; }),
454
+ },
455
+ ], usesInheritance: true, ngImport: i0__namespace });
456
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldAppearanceDirective, decorators: [{
457
+ type: i0.Directive,
458
+ args: [{
459
+ selector: '[tuiTextfieldAppearance]',
460
+ providers: [
461
+ {
462
+ provide: TUI_TEXTFIELD_APPEARANCE_DIRECTIVE,
463
+ useExisting: i0.forwardRef(function () { return TuiTextfieldAppearanceDirective; }),
464
+ },
465
+ ],
466
+ }]
467
+ }], propDecorators: { appearance: [{
468
+ type: i0.Input,
469
+ args: ['tuiTextfieldAppearance']
470
+ }] } });
433
471
 
434
472
  var TUI_TEXTFIELD_CLEANER = new i0.InjectionToken('[TUI_TEXTFIELD_CLEANER]: tuiTextfieldCleaner', {
435
473
  factory: function () { return new TuiTextfieldCleanerDirective(); },
@@ -443,14 +481,14 @@
443
481
  }
444
482
  return TuiTextfieldCleanerDirective;
445
483
  }(cdk.AbstractTuiController));
446
- TuiTextfieldCleanerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldCleanerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
447
- TuiTextfieldCleanerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: { cleaner: ["tuiTextfieldCleaner", "cleaner"] }, providers: [
484
+ TuiTextfieldCleanerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldCleanerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
485
+ TuiTextfieldCleanerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldCleanerDirective, selector: "[tuiTextfieldCleaner]", inputs: { cleaner: ["tuiTextfieldCleaner", "cleaner"] }, providers: [
448
486
  {
449
487
  provide: TUI_TEXTFIELD_CLEANER,
450
488
  useExisting: i0.forwardRef(function () { return TuiTextfieldCleanerDirective; }),
451
489
  },
452
490
  ], usesInheritance: true, ngImport: i0__namespace });
453
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldCleanerDirective, decorators: [{
491
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldCleanerDirective, decorators: [{
454
492
  type: i0.Directive,
455
493
  args: [{
456
494
  selector: '[tuiTextfieldCleaner]',
@@ -478,14 +516,14 @@
478
516
  }
479
517
  return TuiTextfieldCustomContentDirective;
480
518
  }(cdk.AbstractTuiController));
481
- TuiTextfieldCustomContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldCustomContentDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
482
- TuiTextfieldCustomContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: { customContent: ["tuiTextfieldCustomContent", "customContent"] }, providers: [
519
+ TuiTextfieldCustomContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldCustomContentDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
520
+ TuiTextfieldCustomContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: { customContent: ["tuiTextfieldCustomContent", "customContent"] }, providers: [
483
521
  {
484
522
  provide: TUI_TEXTFIELD_CUSTOM_CONTENT,
485
523
  useExisting: i0.forwardRef(function () { return TuiTextfieldCustomContentDirective; }),
486
524
  },
487
525
  ], usesInheritance: true, ngImport: i0__namespace });
488
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldCustomContentDirective, decorators: [{
526
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldCustomContentDirective, decorators: [{
489
527
  type: i0.Directive,
490
528
  args: [{
491
529
  selector: '[tuiTextfieldCustomContent]',
@@ -513,14 +551,14 @@
513
551
  }
514
552
  return TuiTextfieldFillerDirective;
515
553
  }(cdk.AbstractTuiController));
516
- TuiTextfieldFillerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldFillerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
517
- TuiTextfieldFillerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: { filler: ["tuiTextfieldFiller", "filler"] }, providers: [
554
+ TuiTextfieldFillerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldFillerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
555
+ TuiTextfieldFillerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: { filler: ["tuiTextfieldFiller", "filler"] }, providers: [
518
556
  {
519
557
  provide: TUI_TEXTFIELD_FILLER,
520
558
  useExisting: i0.forwardRef(function () { return TuiTextfieldFillerDirective; }),
521
559
  },
522
560
  ], usesInheritance: true, ngImport: i0__namespace });
523
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldFillerDirective, decorators: [{
561
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldFillerDirective, decorators: [{
524
562
  type: i0.Directive,
525
563
  args: [{
526
564
  selector: '[tuiTextfieldFiller]',
@@ -548,14 +586,14 @@
548
586
  }
549
587
  return TuiTextfieldIconDirective;
550
588
  }(cdk.AbstractTuiController));
551
- TuiTextfieldIconDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldIconDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
552
- TuiTextfieldIconDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: { icon: ["tuiTextfieldIcon", "icon"] }, providers: [
589
+ TuiTextfieldIconDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldIconDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
590
+ TuiTextfieldIconDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: { icon: ["tuiTextfieldIcon", "icon"] }, providers: [
553
591
  {
554
592
  provide: TUI_TEXTFIELD_ICON,
555
593
  useExisting: i0.forwardRef(function () { return TuiTextfieldIconDirective; }),
556
594
  },
557
595
  ], usesInheritance: true, ngImport: i0__namespace });
558
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldIconDirective, decorators: [{
596
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldIconDirective, decorators: [{
559
597
  type: i0.Directive,
560
598
  args: [{
561
599
  selector: '[tuiTextfieldIcon]',
@@ -586,14 +624,14 @@
586
624
  }
587
625
  return TuiTextfieldIconLeftDirective;
588
626
  }(cdk.AbstractTuiController));
589
- TuiTextfieldIconLeftDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldIconLeftDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
590
- TuiTextfieldIconLeftDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldIconLeftDirective, selector: "[tuiTextfieldIconLeft]", inputs: { iconLeft: ["tuiTextfieldIconLeft", "iconLeft"] }, providers: [
627
+ TuiTextfieldIconLeftDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldIconLeftDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
628
+ TuiTextfieldIconLeftDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldIconLeftDirective, selector: "[tuiTextfieldIconLeft]", inputs: { iconLeft: ["tuiTextfieldIconLeft", "iconLeft"] }, providers: [
591
629
  {
592
630
  provide: TUI_TEXTFIELD_ICON_LEFT,
593
631
  useExisting: i0.forwardRef(function () { return TuiTextfieldIconLeftDirective; }),
594
632
  },
595
633
  ], usesInheritance: true, ngImport: i0__namespace });
596
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldIconLeftDirective, decorators: [{
634
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldIconLeftDirective, decorators: [{
597
635
  type: i0.Directive,
598
636
  args: [{
599
637
  selector: '[tuiTextfieldIconLeft]',
@@ -624,14 +662,14 @@
624
662
  }
625
663
  return TuiTextfieldLabelOutsideDirective;
626
664
  }(cdk.AbstractTuiController));
627
- TuiTextfieldLabelOutsideDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldLabelOutsideDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
628
- TuiTextfieldLabelOutsideDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: { labelOutside: ["tuiTextfieldLabelOutside", "labelOutside"] }, providers: [
665
+ TuiTextfieldLabelOutsideDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldLabelOutsideDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
666
+ TuiTextfieldLabelOutsideDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: { labelOutside: ["tuiTextfieldLabelOutside", "labelOutside"] }, providers: [
629
667
  {
630
668
  provide: TUI_TEXTFIELD_LABEL_OUTSIDE,
631
669
  useExisting: i0.forwardRef(function () { return TuiTextfieldLabelOutsideDirective; }),
632
670
  },
633
671
  ], usesInheritance: true, ngImport: i0__namespace });
634
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldLabelOutsideDirective, decorators: [{
672
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldLabelOutsideDirective, decorators: [{
635
673
  type: i0.Directive,
636
674
  args: [{
637
675
  selector: '[tuiTextfieldLabelOutside]',
@@ -659,14 +697,14 @@
659
697
  }
660
698
  return TuiTextfieldPostfixDirective;
661
699
  }(cdk.AbstractTuiController));
662
- TuiTextfieldPostfixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldPostfixDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
663
- TuiTextfieldPostfixDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: { postfix: ["tuiTextfieldPostfix", "postfix"] }, providers: [
700
+ TuiTextfieldPostfixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldPostfixDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
701
+ TuiTextfieldPostfixDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: { postfix: ["tuiTextfieldPostfix", "postfix"] }, providers: [
664
702
  {
665
703
  provide: TUI_TEXTFIELD_POSTFIX,
666
704
  useExisting: i0.forwardRef(function () { return TuiTextfieldPostfixDirective; }),
667
705
  },
668
706
  ], usesInheritance: true, ngImport: i0__namespace });
669
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldPostfixDirective, decorators: [{
707
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldPostfixDirective, decorators: [{
670
708
  type: i0.Directive,
671
709
  args: [{
672
710
  selector: '[tuiTextfieldPostfix]',
@@ -694,14 +732,14 @@
694
732
  }
695
733
  return TuiTextfieldPrefixDirective;
696
734
  }(cdk.AbstractTuiController));
697
- TuiTextfieldPrefixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldPrefixDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
698
- TuiTextfieldPrefixDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: { prefix: ["tuiTextfieldPrefix", "prefix"] }, providers: [
735
+ TuiTextfieldPrefixDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldPrefixDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
736
+ TuiTextfieldPrefixDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: { prefix: ["tuiTextfieldPrefix", "prefix"] }, providers: [
699
737
  {
700
738
  provide: TUI_TEXTFIELD_PREFIX,
701
739
  useExisting: i0.forwardRef(function () { return TuiTextfieldPrefixDirective; }),
702
740
  },
703
741
  ], usesInheritance: true, ngImport: i0__namespace });
704
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldPrefixDirective, decorators: [{
742
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldPrefixDirective, decorators: [{
705
743
  type: i0.Directive,
706
744
  args: [{
707
745
  selector: '[tuiTextfieldPrefix]',
@@ -729,14 +767,14 @@
729
767
  }
730
768
  return TuiTextfieldSizeDirective;
731
769
  }(cdk.AbstractTuiController));
732
- TuiTextfieldSizeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldSizeDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
733
- TuiTextfieldSizeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: { size: ["tuiTextfieldSize", "size"] }, providers: [
770
+ TuiTextfieldSizeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldSizeDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
771
+ TuiTextfieldSizeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTextfieldSizeDirective, selector: "[tuiTextfieldSize]", inputs: { size: ["tuiTextfieldSize", "size"] }, providers: [
734
772
  {
735
773
  provide: TUI_TEXTFIELD_SIZE,
736
774
  useExisting: i0.forwardRef(function () { return TuiTextfieldSizeDirective; }),
737
775
  },
738
776
  ], usesInheritance: true, ngImport: i0__namespace });
739
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldSizeDirective, decorators: [{
777
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldSizeDirective, decorators: [{
740
778
  type: i0.Directive,
741
779
  args: [{
742
780
  selector: '[tuiTextfieldSize]',
@@ -757,8 +795,9 @@
757
795
  }
758
796
  return TuiTextfieldControllerModule;
759
797
  }());
760
- TuiTextfieldControllerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldControllerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
761
- TuiTextfieldControllerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldControllerModule, declarations: [TuiTextfieldCleanerDirective,
798
+ TuiTextfieldControllerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldControllerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
799
+ TuiTextfieldControllerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldControllerModule, declarations: [TuiTextfieldAppearanceDirective,
800
+ TuiTextfieldCleanerDirective,
762
801
  TuiTextfieldCustomContentDirective,
763
802
  TuiTextfieldLabelOutsideDirective,
764
803
  TuiTextfieldSizeDirective,
@@ -766,7 +805,8 @@
766
805
  TuiTextfieldIconLeftDirective,
767
806
  TuiTextfieldPrefixDirective,
768
807
  TuiTextfieldPostfixDirective,
769
- TuiTextfieldFillerDirective], exports: [TuiTextfieldCleanerDirective,
808
+ TuiTextfieldFillerDirective], exports: [TuiTextfieldAppearanceDirective,
809
+ TuiTextfieldCleanerDirective,
770
810
  TuiTextfieldCustomContentDirective,
771
811
  TuiTextfieldLabelOutsideDirective,
772
812
  TuiTextfieldSizeDirective,
@@ -775,11 +815,12 @@
775
815
  TuiTextfieldPrefixDirective,
776
816
  TuiTextfieldPostfixDirective,
777
817
  TuiTextfieldFillerDirective] });
778
- TuiTextfieldControllerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldControllerModule });
779
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldControllerModule, decorators: [{
818
+ TuiTextfieldControllerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldControllerModule });
819
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTextfieldControllerModule, decorators: [{
780
820
  type: i0.NgModule,
781
821
  args: [{
782
822
  declarations: [
823
+ TuiTextfieldAppearanceDirective,
783
824
  TuiTextfieldCleanerDirective,
784
825
  TuiTextfieldCustomContentDirective,
785
826
  TuiTextfieldLabelOutsideDirective,
@@ -791,6 +832,7 @@
791
832
  TuiTextfieldFillerDirective,
792
833
  ],
793
834
  exports: [
835
+ TuiTextfieldAppearanceDirective,
794
836
  TuiTextfieldCleanerDirective,
795
837
  TuiTextfieldCustomContentDirective,
796
838
  TuiTextfieldLabelOutsideDirective,
@@ -826,6 +868,8 @@
826
868
  i0.ChangeDetectorRef,
827
869
  cdk.TuiDestroyService,
828
870
  TUI_TEXTFIELD_OPTIONS,
871
+ tokens.TUI_TEXTFIELD_APPEARANCE,
872
+ TUI_TEXTFIELD_APPEARANCE_DIRECTIVE,
829
873
  TUI_TEXTFIELD_CLEANER,
830
874
  TUI_TEXTFIELD_CUSTOM_CONTENT,
831
875
  TUI_TEXTFIELD_ICON,
@@ -836,17 +880,17 @@
836
880
  TUI_TEXTFIELD_POSTFIX,
837
881
  TUI_TEXTFIELD_FILLER,
838
882
  ],
839
- useFactory: function (changeDetectorRef, destroy$, options) {
883
+ useFactory: function (changeDetectorRef, destroy$, options, legacyAppearance) {
840
884
  var controllers = [];
841
- for (var _i = 3; _i < arguments.length; _i++) {
842
- controllers[_i - 3] = arguments[_i];
885
+ for (var _i = 4; _i < arguments.length; _i++) {
886
+ controllers[_i - 4] = arguments[_i];
843
887
  }
844
888
  var change$ = rxjs.merge.apply(void 0, __spreadArray([], __read(controllers.map(function (_a) {
845
889
  var change$ = _a.change$;
846
890
  return change$ || rxjs.NEVER;
847
891
  })))).pipe(cdk.tuiWatch(changeDetectorRef), operators.takeUntil(destroy$));
848
892
  change$.subscribe();
849
- return new (TuiTextfieldController.bind.apply(TuiTextfieldController, __spreadArray([void 0, change$, options], __read(controllers))))();
893
+ return new (TuiTextfieldController.bind.apply(TuiTextfieldController, __spreadArray([void 0, change$, options, legacyAppearance], __read(controllers))))();
850
894
  },
851
895
  },
852
896
  ];
@@ -856,6 +900,7 @@
856
900
  */
857
901
 
858
902
  exports.TEXTFIELD_CONTROLLER_PROVIDER = TEXTFIELD_CONTROLLER_PROVIDER;
903
+ exports.TUI_TEXTFIELD_APPEARANCE_DIRECTIVE = TUI_TEXTFIELD_APPEARANCE_DIRECTIVE;
859
904
  exports.TUI_TEXTFIELD_CLEANER = TUI_TEXTFIELD_CLEANER;
860
905
  exports.TUI_TEXTFIELD_CUSTOM_CONTENT = TUI_TEXTFIELD_CUSTOM_CONTENT;
861
906
  exports.TUI_TEXTFIELD_DEFAULT_OPTIONS = TUI_TEXTFIELD_DEFAULT_OPTIONS;
@@ -868,6 +913,7 @@
868
913
  exports.TUI_TEXTFIELD_PREFIX = TUI_TEXTFIELD_PREFIX;
869
914
  exports.TUI_TEXTFIELD_SIZE = TUI_TEXTFIELD_SIZE;
870
915
  exports.TUI_TEXTFIELD_WATCHED_CONTROLLER = TUI_TEXTFIELD_WATCHED_CONTROLLER;
916
+ exports.TuiTextfieldAppearanceDirective = TuiTextfieldAppearanceDirective;
871
917
  exports.TuiTextfieldCleanerDirective = TuiTextfieldCleanerDirective;
872
918
  exports.TuiTextfieldController = TuiTextfieldController;
873
919
  exports.TuiTextfieldControllerModule = TuiTextfieldControllerModule;