@taiga-ui/legacy 4.52.0-canary.56739a2 → 4.52.0-canary.615c741

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 (554) hide show
  1. package/classes/abstract-textfield-host.d.ts +1 -1
  2. package/classes/controller.d.ts +1 -1
  3. package/classes/multiple-control.d.ts +1 -1
  4. package/classes/nullable-control.d.ts +1 -1
  5. package/components/dialog/dialog.component.d.ts +20 -0
  6. package/components/dialog/dialog.directive.d.ts +7 -0
  7. package/components/dialog/dialog.factory.d.ts +16 -0
  8. package/components/dialog/dialog.interfaces.d.ts +31 -0
  9. package/components/dialog/dialog.service.d.ts +7 -0
  10. package/components/dialog/dialog.tokens.d.ts +8 -0
  11. package/components/dialog/index.d.ts +6 -0
  12. package/components/index.d.ts +2 -16
  13. package/components/input/input.module.d.ts +4 -4
  14. package/components/input-date-range/input-date-range.module.d.ts +8 -9
  15. package/components/input-date-time/input-date-time.component.d.ts +4 -3
  16. package/components/input-date-time/input-date-time.module.d.ts +6 -6
  17. package/components/input-month-range/input-month-range.module.d.ts +3 -3
  18. package/components/input-number/input-number.module.d.ts +5 -5
  19. package/components/input-range/input-range.component.d.ts +1 -1
  20. package/components/input-range/input-range.module.d.ts +4 -4
  21. package/components/input-tag/input-tag.module.d.ts +8 -8
  22. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  23. package/components/multi-select/multi-select.module.d.ts +11 -12
  24. package/components/multi-select/native-multi-select/native-multi-select.d.ts +1 -1
  25. package/components/pdf-viewer/index.d.ts +4 -0
  26. package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
  27. package/components/pdf-viewer/pdf-viewer.directive.d.ts +7 -0
  28. package/components/pdf-viewer/pdf-viewer.options.d.ts +13 -0
  29. package/components/pdf-viewer/pdf-viewer.service.d.ts +13 -0
  30. package/components/primitive-textfield/primitive-textfield.module.d.ts +5 -5
  31. package/components/select/select.module.d.ts +8 -8
  32. package/components/select-option/select-option.module.d.ts +3 -3
  33. package/components/tag/tag.module.d.ts +4 -4
  34. package/components/textarea/textarea.module.d.ts +7 -7
  35. package/fesm2022/taiga-ui-legacy-classes.mjs +23 -24
  36. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +6 -6
  38. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +129 -0
  40. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  41. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +39 -43
  42. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +40 -40
  44. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +22 -22
  46. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +30 -30
  48. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +31 -31
  50. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +20 -21
  52. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +38 -38
  54. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-legacy-components-input.mjs +22 -22
  56. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +8 -8
  58. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +63 -67
  60. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +82 -0
  62. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
  63. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +40 -40
  64. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +13 -13
  66. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-legacy-components-select.mjs +48 -49
  68. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-legacy-components-tag.mjs +18 -19
  70. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +40 -40
  72. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +8 -8
  74. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-legacy-components.mjs +2 -16
  76. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +3 -3
  78. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +35 -35
  80. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +5 -6
  82. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +7 -7
  84. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +9 -9
  86. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-legacy-tokens.mjs +1 -1
  88. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-legacy-utils.mjs +1 -7
  90. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-legacy.mjs +0 -2
  92. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  93. package/index.d.ts +0 -2
  94. package/package.json +14 -188
  95. package/styles/mixins/textfield.less +3 -1
  96. package/utils/icons-path-factory.d.ts +1 -1
  97. package/utils/index.d.ts +0 -1
  98. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  99. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  100. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  101. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  102. package/components/color-selector/color-selector.component.d.ts +0 -47
  103. package/components/color-selector/color-selector.module.d.ts +0 -24
  104. package/components/color-selector/color-selector.options.d.ts +0 -25
  105. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  106. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  107. package/components/color-selector/index.d.ts +0 -16
  108. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  109. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  110. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  111. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  112. package/components/color-selector/palette/palette.component.d.ts +0 -10
  113. package/components/color-selector/palette/palette.module.d.ts +0 -13
  114. package/components/color-selector/services/picker.service.d.ts +0 -15
  115. package/components/combo-box/combo-box-strict.directive.d.ts +0 -12
  116. package/components/combo-box/combo-box.component.d.ts +0 -52
  117. package/components/combo-box/combo-box.directive.d.ts +0 -13
  118. package/components/combo-box/combo-box.module.d.ts +0 -20
  119. package/components/combo-box/index.d.ts +0 -4
  120. package/components/input-color/index.d.ts +0 -2
  121. package/components/input-color/input-color.component.d.ts +0 -30
  122. package/components/input-color/input-color.module.d.ts +0 -17
  123. package/components/input-copy/index.d.ts +0 -4
  124. package/components/input-copy/input-copy.component.d.ts +0 -33
  125. package/components/input-copy/input-copy.directive.d.ts +0 -11
  126. package/components/input-copy/input-copy.module.d.ts +0 -18
  127. package/components/input-copy/input-copy.options.d.ts +0 -26
  128. package/components/input-date/index.d.ts +0 -3
  129. package/components/input-date/input-date.component.d.ts +0 -62
  130. package/components/input-date/input-date.directive.d.ts +0 -19
  131. package/components/input-date/input-date.module.d.ts +0 -24
  132. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  133. package/components/input-date-multi/index.d.ts +0 -2
  134. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  135. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  136. package/components/input-month/index.d.ts +0 -3
  137. package/components/input-month/input-month.component.d.ts +0 -44
  138. package/components/input-month/input-month.directive.d.ts +0 -19
  139. package/components/input-month/input-month.module.d.ts +0 -19
  140. package/components/input-password/index.d.ts +0 -4
  141. package/components/input-password/input-password.component.d.ts +0 -33
  142. package/components/input-password/input-password.directive.d.ts +0 -15
  143. package/components/input-password/input-password.module.d.ts +0 -19
  144. package/components/input-password/input-password.options.d.ts +0 -25
  145. package/components/input-phone/index.d.ts +0 -4
  146. package/components/input-phone/input-phone.component.d.ts +0 -49
  147. package/components/input-phone/input-phone.directive.d.ts +0 -13
  148. package/components/input-phone/input-phone.module.d.ts +0 -12
  149. package/components/input-phone/input-phone.options.d.ts +0 -13
  150. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  151. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  152. package/components/input-phone/utils/index.d.ts +0 -2
  153. package/components/input-phone-international/index.d.ts +0 -3
  154. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  155. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  156. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  157. package/components/input-time/index.d.ts +0 -4
  158. package/components/input-time/input-time.component.d.ts +0 -62
  159. package/components/input-time/input-time.directive.d.ts +0 -17
  160. package/components/input-time/input-time.module.d.ts +0 -23
  161. package/components/input-time/input-time.options.d.ts +0 -42
  162. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  163. package/components/input-year/index.d.ts +0 -3
  164. package/components/input-year/input-year.component.d.ts +0 -36
  165. package/components/input-year/input-year.directive.d.ts +0 -14
  166. package/components/input-year/input-year.module.d.ts +0 -18
  167. package/components/island/index.d.ts +0 -1
  168. package/components/island/island.directive.d.ts +0 -20
  169. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  170. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  171. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -10
  172. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  173. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  174. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  175. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  176. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  177. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  178. package/components/sheet/index.d.ts +0 -14
  179. package/components/sheet/sheet-options.d.ts +0 -27
  180. package/components/sheet/sheet-tokens.d.ts +0 -18
  181. package/components/sheet/sheet.d.ts +0 -21
  182. package/components/sheet/sheet.directive.d.ts +0 -17
  183. package/components/sheet/sheet.module.d.ts +0 -24
  184. package/components/sheet/sheet.service.d.ts +0 -17
  185. package/components/svg/content-processor.d.ts +0 -19
  186. package/components/svg/deprecated-icons.d.ts +0 -5
  187. package/components/svg/index.d.ts +0 -5
  188. package/components/svg/svg-options.d.ts +0 -50
  189. package/components/svg/svg.component.d.ts +0 -50
  190. package/components/svg/svg.service.d.ts +0 -21
  191. package/components/table-bar/index.d.ts +0 -4
  192. package/components/table-bar/table-bar.component.d.ts +0 -17
  193. package/components/table-bar/table-bar.directive.d.ts +0 -11
  194. package/components/table-bar/table-bar.options.d.ts +0 -31
  195. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  196. package/components/table-bar/table-bars.service.d.ts +0 -11
  197. package/esm2022/classes/abstract-native-select.mjs +0 -49
  198. package/esm2022/classes/abstract-textfield-host.mjs +0 -37
  199. package/esm2022/classes/control.mjs +0 -181
  200. package/esm2022/classes/controller.mjs +0 -18
  201. package/esm2022/classes/index.mjs +0 -10
  202. package/esm2022/classes/interactive.mjs +0 -82
  203. package/esm2022/classes/multiple-control.mjs +0 -21
  204. package/esm2022/classes/named-day.mjs +0 -14
  205. package/esm2022/classes/nullable-control.mjs +0 -18
  206. package/esm2022/classes/stringifiable-item.mjs +0 -14
  207. package/esm2022/classes/taiga-ui-legacy-classes.mjs +0 -5
  208. package/esm2022/components/arrow/arrow.component.mjs +0 -41
  209. package/esm2022/components/arrow/arrow.options.mjs +0 -20
  210. package/esm2022/components/arrow/arrow.providers.mjs +0 -23
  211. package/esm2022/components/arrow/index.mjs +0 -4
  212. package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +0 -5
  213. package/esm2022/components/color-selector/color-edit/color-edit.component.mjs +0 -59
  214. package/esm2022/components/color-selector/color-edit/color-edit.module.mjs +0 -56
  215. package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +0 -70
  216. package/esm2022/components/color-selector/color-picker/color-picker.module.mjs +0 -25
  217. package/esm2022/components/color-selector/color-selector.component.mjs +0 -191
  218. package/esm2022/components/color-selector/color-selector.module.mjs +0 -67
  219. package/esm2022/components/color-selector/color-selector.options.mjs +0 -78
  220. package/esm2022/components/color-selector/flat-picker/flat-picker.component.mjs +0 -34
  221. package/esm2022/components/color-selector/flat-picker/flat-picker.module.mjs +0 -23
  222. package/esm2022/components/color-selector/index.mjs +0 -17
  223. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.component.mjs +0 -61
  224. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.module.mjs +0 -23
  225. package/esm2022/components/color-selector/linear-picker/linear-picker.component.mjs +0 -31
  226. package/esm2022/components/color-selector/linear-picker/linear-picker.module.mjs +0 -23
  227. package/esm2022/components/color-selector/palette/palette.component.mjs +0 -23
  228. package/esm2022/components/color-selector/palette/palette.module.mjs +0 -25
  229. package/esm2022/components/color-selector/services/picker.service.mjs +0 -31
  230. package/esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs +0 -5
  231. package/esm2022/components/combo-box/combo-box-strict.directive.mjs +0 -34
  232. package/esm2022/components/combo-box/combo-box.component.mjs +0 -183
  233. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -28
  234. package/esm2022/components/combo-box/combo-box.module.mjs +0 -71
  235. package/esm2022/components/combo-box/index.mjs +0 -5
  236. package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +0 -5
  237. package/esm2022/components/index.mjs +0 -34
  238. package/esm2022/components/input/index.mjs +0 -4
  239. package/esm2022/components/input/input.component.mjs +0 -97
  240. package/esm2022/components/input/input.directive.mjs +0 -25
  241. package/esm2022/components/input/input.module.mjs +0 -42
  242. package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +0 -5
  243. package/esm2022/components/input-color/index.mjs +0 -3
  244. package/esm2022/components/input-color/input-color.component.mjs +0 -85
  245. package/esm2022/components/input-color/input-color.module.mjs +0 -43
  246. package/esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs +0 -5
  247. package/esm2022/components/input-copy/index.mjs +0 -5
  248. package/esm2022/components/input-copy/input-copy.component.mjs +0 -105
  249. package/esm2022/components/input-copy/input-copy.directive.mjs +0 -24
  250. package/esm2022/components/input-copy/input-copy.module.mjs +0 -55
  251. package/esm2022/components/input-copy/input-copy.options.mjs +0 -24
  252. package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +0 -5
  253. package/esm2022/components/input-date/index.mjs +0 -4
  254. package/esm2022/components/input-date/input-date.component.mjs +0 -220
  255. package/esm2022/components/input-date/input-date.directive.mjs +0 -40
  256. package/esm2022/components/input-date/input-date.module.mjs +0 -75
  257. package/esm2022/components/input-date/native-date/native-date.component.mjs +0 -53
  258. package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +0 -5
  259. package/esm2022/components/input-date-multi/index.mjs +0 -3
  260. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +0 -207
  261. package/esm2022/components/input-date-multi/input-date-multi.module.mjs +0 -67
  262. package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +0 -5
  263. package/esm2022/components/input-date-range/index.mjs +0 -4
  264. package/esm2022/components/input-date-range/input-date-range.component.mjs +0 -256
  265. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -36
  266. package/esm2022/components/input-date-range/input-date-range.module.mjs +0 -71
  267. package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +0 -5
  268. package/esm2022/components/input-date-time/index.mjs +0 -4
  269. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -315
  270. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -37
  271. package/esm2022/components/input-date-time/input-date-time.module.mjs +0 -78
  272. package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +0 -49
  273. package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +0 -5
  274. package/esm2022/components/input-month/index.mjs +0 -4
  275. package/esm2022/components/input-month/input-month.component.mjs +0 -135
  276. package/esm2022/components/input-month/input-month.directive.mjs +0 -46
  277. package/esm2022/components/input-month/input-month.module.mjs +0 -57
  278. package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +0 -5
  279. package/esm2022/components/input-month-range/index.mjs +0 -4
  280. package/esm2022/components/input-month-range/input-month-range.component.mjs +0 -123
  281. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -52
  282. package/esm2022/components/input-month-range/input-month-range.module.mjs +0 -53
  283. package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +0 -5
  284. package/esm2022/components/input-number/index.mjs +0 -5
  285. package/esm2022/components/input-number/input-number.component.mjs +0 -284
  286. package/esm2022/components/input-number/input-number.directive.mjs +0 -38
  287. package/esm2022/components/input-number/input-number.module.mjs +0 -48
  288. package/esm2022/components/input-number/input-number.options.mjs +0 -30
  289. package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +0 -5
  290. package/esm2022/components/input-password/index.mjs +0 -5
  291. package/esm2022/components/input-password/input-password.component.mjs +0 -80
  292. package/esm2022/components/input-password/input-password.directive.mjs +0 -34
  293. package/esm2022/components/input-password/input-password.module.mjs +0 -59
  294. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  295. package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +0 -5
  296. package/esm2022/components/input-phone/index.mjs +0 -5
  297. package/esm2022/components/input-phone/input-phone.component.mjs +0 -216
  298. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -34
  299. package/esm2022/components/input-phone/input-phone.module.mjs +0 -44
  300. package/esm2022/components/input-phone/input-phone.options.mjs +0 -18
  301. package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +0 -5
  302. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  303. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  304. package/esm2022/components/input-phone/utils/index.mjs +0 -3
  305. package/esm2022/components/input-phone-international/index.mjs +0 -4
  306. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -178
  307. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -25
  308. package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +0 -5
  309. package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +0 -10
  310. package/esm2022/components/input-range/index.mjs +0 -3
  311. package/esm2022/components/input-range/input-range.component.mjs +0 -207
  312. package/esm2022/components/input-range/input-range.module.mjs +0 -55
  313. package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +0 -5
  314. package/esm2022/components/input-slider/index.mjs +0 -3
  315. package/esm2022/components/input-slider/input-slider.component.mjs +0 -154
  316. package/esm2022/components/input-slider/input-slider.module.mjs +0 -48
  317. package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +0 -5
  318. package/esm2022/components/input-tag/index.mjs +0 -4
  319. package/esm2022/components/input-tag/input-tag.component.mjs +0 -436
  320. package/esm2022/components/input-tag/input-tag.module.mjs +0 -67
  321. package/esm2022/components/input-tag/input-tag.options.mjs +0 -27
  322. package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +0 -5
  323. package/esm2022/components/input-time/index.mjs +0 -5
  324. package/esm2022/components/input-time/input-time.component.mjs +0 -238
  325. package/esm2022/components/input-time/input-time.directive.mjs +0 -40
  326. package/esm2022/components/input-time/input-time.module.mjs +0 -71
  327. package/esm2022/components/input-time/input-time.options.mjs +0 -39
  328. package/esm2022/components/input-time/native-time/native-time.component.mjs +0 -67
  329. package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +0 -5
  330. package/esm2022/components/input-year/index.mjs +0 -4
  331. package/esm2022/components/input-year/input-year.component.mjs +0 -110
  332. package/esm2022/components/input-year/input-year.directive.mjs +0 -32
  333. package/esm2022/components/input-year/input-year.module.mjs +0 -53
  334. package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +0 -5
  335. package/esm2022/components/island/index.mjs +0 -2
  336. package/esm2022/components/island/island.directive.mjs +0 -62
  337. package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +0 -5
  338. package/esm2022/components/multi-select/hide-selected.pipe.mjs +0 -44
  339. package/esm2022/components/multi-select/index.mjs +0 -11
  340. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -98
  341. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -94
  342. package/esm2022/components/multi-select/multi-select.component.mjs +0 -233
  343. package/esm2022/components/multi-select/multi-select.directive.mjs +0 -32
  344. package/esm2022/components/multi-select/multi-select.module.mjs +0 -113
  345. package/esm2022/components/multi-select/multi-select.options.mjs +0 -17
  346. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +0 -60
  347. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +0 -56
  348. package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +0 -19
  349. package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +0 -5
  350. package/esm2022/components/multi-select-option/index.mjs +0 -3
  351. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +0 -25
  352. package/esm2022/components/multi-select-option/multi-select-option.module.mjs +0 -20
  353. package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +0 -5
  354. package/esm2022/components/primitive-textfield/index.mjs +0 -7
  355. package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +0 -17
  356. package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +0 -2
  357. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +0 -254
  358. package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +0 -33
  359. package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +0 -66
  360. package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +0 -5
  361. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +0 -39
  362. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +0 -66
  363. package/esm2022/components/select/index.mjs +0 -7
  364. package/esm2022/components/select/native-select/native-select-group.component.mjs +0 -64
  365. package/esm2022/components/select/native-select/native-select.component.mjs +0 -60
  366. package/esm2022/components/select/select.component.mjs +0 -119
  367. package/esm2022/components/select/select.directive.mjs +0 -34
  368. package/esm2022/components/select/select.module.mjs +0 -87
  369. package/esm2022/components/select/select.options.mjs +0 -24
  370. package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +0 -5
  371. package/esm2022/components/select-option/index.mjs +0 -3
  372. package/esm2022/components/select-option/select-option.component.mjs +0 -65
  373. package/esm2022/components/select-option/select-option.module.mjs +0 -21
  374. package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +0 -5
  375. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +0 -117
  376. package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +0 -42
  377. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +0 -27
  378. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +0 -31
  379. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +0 -46
  380. package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +0 -39
  381. package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +0 -38
  382. package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +0 -52
  383. package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +0 -77
  384. package/esm2022/components/sheet/index.mjs +0 -14
  385. package/esm2022/components/sheet/sheet-options.mjs +0 -24
  386. package/esm2022/components/sheet/sheet-tokens.mjs +0 -17
  387. package/esm2022/components/sheet/sheet.directive.mjs +0 -40
  388. package/esm2022/components/sheet/sheet.mjs +0 -2
  389. package/esm2022/components/sheet/sheet.module.mjs +0 -75
  390. package/esm2022/components/sheet/sheet.service.mjs +0 -52
  391. package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +0 -5
  392. package/esm2022/components/svg/content-processor.mjs +0 -41
  393. package/esm2022/components/svg/deprecated-icons.mjs +0 -63
  394. package/esm2022/components/svg/index.mjs +0 -6
  395. package/esm2022/components/svg/svg-options.mjs +0 -83
  396. package/esm2022/components/svg/svg.component.mjs +0 -150
  397. package/esm2022/components/svg/svg.service.mjs +0 -64
  398. package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +0 -5
  399. package/esm2022/components/table-bar/index.mjs +0 -5
  400. package/esm2022/components/table-bar/table-bar.component.mjs +0 -37
  401. package/esm2022/components/table-bar/table-bar.directive.mjs +0 -25
  402. package/esm2022/components/table-bar/table-bar.options.mjs +0 -34
  403. package/esm2022/components/table-bar/table-bars-host.component.mjs +0 -39
  404. package/esm2022/components/table-bar/table-bars.service.mjs +0 -22
  405. package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +0 -5
  406. package/esm2022/components/tag/index.mjs +0 -4
  407. package/esm2022/components/tag/tag.component.mjs +0 -158
  408. package/esm2022/components/tag/tag.module.mjs +0 -42
  409. package/esm2022/components/tag/tag.options.mjs +0 -26
  410. package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +0 -5
  411. package/esm2022/components/taiga-ui-legacy-components.mjs +0 -5
  412. package/esm2022/components/textarea/index.mjs +0 -4
  413. package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +0 -5
  414. package/esm2022/components/textarea/textarea.component.mjs +0 -175
  415. package/esm2022/components/textarea/textarea.directive.mjs +0 -25
  416. package/esm2022/components/textarea/textarea.module.mjs +0 -68
  417. package/esm2022/components/tooltip/index.mjs +0 -3
  418. package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +0 -5
  419. package/esm2022/components/tooltip/tooltip.component.mjs +0 -27
  420. package/esm2022/components/tooltip/tooltip.module.mjs +0 -24
  421. package/esm2022/directives/index.mjs +0 -6
  422. package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +0 -2
  423. package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +0 -44
  424. package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -5
  425. package/esm2022/directives/taiga-ui-legacy-directives.mjs +0 -5
  426. package/esm2022/directives/textfield-controller/index.mjs +0 -15
  427. package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +0 -5
  428. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +0 -34
  429. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +0 -28
  430. package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +0 -72
  431. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +0 -44
  432. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +0 -28
  433. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +0 -28
  434. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +0 -24
  435. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +0 -24
  436. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +0 -32
  437. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +0 -28
  438. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +0 -28
  439. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +0 -28
  440. package/esm2022/directives/textfield-controller/textfield.controller.mjs +0 -49
  441. package/esm2022/directives/textfield-controller/textfield.options.mjs +0 -21
  442. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  443. package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -5
  444. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -30
  445. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -15
  446. package/esm2022/directives/value-accessor/index.mjs +0 -4
  447. package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +0 -5
  448. package/esm2022/directives/value-accessor/value-accessor.directive.mjs +0 -17
  449. package/esm2022/directives/value-accessor/value-accessor.module.mjs +0 -17
  450. package/esm2022/directives/value-accessor/value-accessor.provider.mjs +0 -10
  451. package/esm2022/directives/wrapper/index.mjs +0 -3
  452. package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +0 -5
  453. package/esm2022/directives/wrapper/wrapper.directive.mjs +0 -77
  454. package/esm2022/directives/wrapper/wrapper.module.mjs +0 -20
  455. package/esm2022/index.mjs +0 -8
  456. package/esm2022/pipes/format-phone/format-phone.pipe.mjs +0 -54
  457. package/esm2022/pipes/format-phone/index.mjs +0 -2
  458. package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +0 -5
  459. package/esm2022/pipes/index.mjs +0 -4
  460. package/esm2022/pipes/iso-to-country-code/index.mjs +0 -2
  461. package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +0 -44
  462. package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -5
  463. package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +0 -5
  464. package/esm2022/pipes/to-country-code/index.mjs +0 -2
  465. package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +0 -5
  466. package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +0 -74
  467. package/esm2022/services/index.mjs +0 -2
  468. package/esm2022/services/static-request.service.mjs +0 -36
  469. package/esm2022/services/taiga-ui-legacy-services.mjs +0 -5
  470. package/esm2022/taiga-ui-legacy.mjs +0 -5
  471. package/esm2022/tokens/countries-masks.mjs +0 -257
  472. package/esm2022/tokens/focusable-item-accessor.mjs +0 -14
  473. package/esm2022/tokens/fonts-ready.mjs +0 -10
  474. package/esm2022/tokens/icons.mjs +0 -9
  475. package/esm2022/tokens/index.mjs +0 -15
  476. package/esm2022/tokens/is-apple.mjs +0 -11
  477. package/esm2022/tokens/is-chromium.mjs +0 -10
  478. package/esm2022/tokens/is-firefox.mjs +0 -11
  479. package/esm2022/tokens/is-stackblitz.mjs +0 -9
  480. package/esm2022/tokens/month-formatter.mjs +0 -18
  481. package/esm2022/tokens/sanitizer.mjs +0 -7
  482. package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +0 -5
  483. package/esm2022/tokens/textfield-appearance.mjs +0 -10
  484. package/esm2022/tokens/textfield-host.mjs +0 -14
  485. package/esm2022/tokens/touch-supported.mjs +0 -9
  486. package/esm2022/tokens/value-accessor.mjs +0 -7
  487. package/esm2022/utils/capitalize-first-letter.mjs +0 -7
  488. package/esm2022/utils/date-mode-maskito-adapter.mjs +0 -9
  489. package/esm2022/utils/format-phone.mjs +0 -60
  490. package/esm2022/utils/get-border.mjs +0 -23
  491. package/esm2022/utils/get-max-allowed-phone-length.mjs +0 -26
  492. package/esm2022/utils/get-safe-area-size.mjs +0 -18
  493. package/esm2022/utils/icons-path-factory.mjs +0 -22
  494. package/esm2022/utils/index.mjs +0 -14
  495. package/esm2022/utils/is-apple.mjs +0 -6
  496. package/esm2022/utils/is-presumed-html-string.mjs +0 -8
  497. package/esm2022/utils/iso-to-country-code.mjs +0 -16
  498. package/esm2022/utils/not-kz-region.mjs +0 -24
  499. package/esm2022/utils/process-icon.mjs +0 -34
  500. package/esm2022/utils/specific-dropdown-controllers.mjs +0 -9
  501. package/esm2022/utils/status.mjs +0 -2
  502. package/esm2022/utils/taiga-ui-legacy-utils.mjs +0 -5
  503. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -730
  504. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  505. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -301
  506. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  507. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  508. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  509. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  510. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  511. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  512. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  513. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  514. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  515. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  516. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  517. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  518. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  519. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  520. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  521. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
  522. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  523. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -434
  524. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  525. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  526. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  527. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  528. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  529. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -574
  530. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  531. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -389
  532. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  533. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -145
  534. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
  535. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -60
  536. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  537. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  538. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  539. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  540. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  541. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  542. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  543. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  544. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  545. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  546. package/pipes/format-phone/index.d.ts +0 -1
  547. package/pipes/index.d.ts +0 -3
  548. package/pipes/iso-to-country-code/index.d.ts +0 -1
  549. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  550. package/pipes/to-country-code/index.d.ts +0 -1
  551. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  552. package/services/index.d.ts +0 -1
  553. package/services/static-request.service.d.ts +0 -11
  554. package/utils/is-apple.d.ts +0 -5
@@ -5,20 +5,20 @@ import * as i3 from "./native-select/native-select.component";
5
5
  import * as i4 from "./native-select/native-select-group.component";
6
6
  import * as i5 from "@angular/common";
7
7
  import * as i6 from "@taiga-ui/polymorpheus";
8
- import * as i7 from "@taiga-ui/legacy/components/primitive-textfield";
9
- import * as i8 from "@taiga-ui/legacy/components/select-option";
10
- import * as i9 from "@taiga-ui/legacy/components/arrow";
11
- import * as i10 from "@taiga-ui/legacy/directives";
8
+ import * as i7 from "@taiga-ui/legacy/components/arrow";
9
+ import * as i8 from "@taiga-ui/legacy/directives";
10
+ import * as i9 from "@taiga-ui/legacy/components/primitive-textfield";
11
+ import * as i10 from "@taiga-ui/legacy/components/select-option";
12
12
  import * as i11 from "@taiga-ui/kit/pipes/stringify-content";
13
- import * as i12 from "@taiga-ui/core/directives/dropdown";
14
- import * as i13 from "@taiga-ui/core/components/data-list";
15
- import * as i14 from "@taiga-ui/kit/components/data-list-wrapper";
13
+ import * as i12 from "@taiga-ui/core/components/data-list";
14
+ import * as i13 from "@taiga-ui/kit/components/data-list-wrapper";
15
+ import * as i14 from "@taiga-ui/core/directives/dropdown";
16
16
  /**
17
17
  * TODO(v5): delete it
18
18
  * @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead
19
19
  */
20
20
  export declare class TuiSelectModule {
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiSelectModule, never>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectModule, [typeof i1.TuiSelectComponent, typeof i2.TuiSelectDirective, typeof i3.TuiNativeSelectComponent, typeof i4.TuiNativeSelectGroupComponent], [typeof i5.CommonModule, typeof i6.PolymorpheusOutlet, typeof i6.PolymorpheusTemplate, typeof i7.TuiPrimitiveTextfieldModule, typeof i8.TuiSelectOptionModule, typeof i9.TuiArrowComponent, typeof i10.TuiWrapperModule, typeof i10.TuiTextfieldControllerModule, typeof i11.TuiStringifyContentPipe, typeof i10.TuiLegacyDropdownOpenMonitorDirective, typeof i12.TuiDropdownOptionsDirective, typeof i12.TuiDropdownDriverDirective, typeof i12.TuiDropdownDirective, typeof i12.TuiDropdownComponent, typeof i12.TuiDropdownOpen, typeof i12.TuiDropdownOpenLegacy, typeof i12.TuiDropdownPortal, typeof i12.TuiDropdownManual, typeof i12.TuiDropdownHover, typeof i12.TuiDropdownContext, typeof i12.TuiDropdownPosition, typeof i12.TuiDropdownPositionSided, typeof i12.TuiDropdownSelection, typeof i13.TuiDataListComponent, typeof i13.TuiDataListDirective, typeof i13.TuiOption, typeof i13.TuiOptionNew, typeof i13.TuiOptionWithValue, typeof i13.TuiOptGroup, typeof i14.TuiDataListWrapperComponent, typeof i14.TuiDataListGroupWrapperComponent, typeof i13.TuiDataListDirective], [typeof i1.TuiSelectComponent, typeof i2.TuiSelectDirective, typeof i7.TuiTextfieldComponent, typeof i3.TuiNativeSelectComponent, typeof i4.TuiNativeSelectGroupComponent, typeof i12.TuiDropdownOptionsDirective, typeof i12.TuiDropdownDriverDirective, typeof i12.TuiDropdownDirective, typeof i12.TuiDropdownComponent, typeof i12.TuiDropdownOpen, typeof i12.TuiDropdownOpenLegacy, typeof i12.TuiDropdownPortal, typeof i12.TuiDropdownManual, typeof i12.TuiDropdownHover, typeof i12.TuiDropdownContext, typeof i12.TuiDropdownPosition, typeof i12.TuiDropdownPositionSided, typeof i12.TuiDropdownSelection, typeof i13.TuiDataListComponent, typeof i13.TuiDataListDirective, typeof i13.TuiOption, typeof i13.TuiOptionNew, typeof i13.TuiOptionWithValue, typeof i13.TuiOptGroup, typeof i14.TuiDataListWrapperComponent, typeof i14.TuiDataListGroupWrapperComponent, typeof i13.TuiDataListDirective]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectModule, [typeof i1.TuiSelectComponent, typeof i2.TuiSelectDirective, typeof i3.TuiNativeSelectComponent, typeof i4.TuiNativeSelectGroupComponent], [typeof i5.CommonModule, typeof i6.PolymorpheusOutlet, typeof i6.PolymorpheusTemplate, typeof i7.TuiArrowComponent, typeof i8.TuiLegacyDropdownOpenMonitorDirective, typeof i9.TuiPrimitiveTextfieldModule, typeof i10.TuiSelectOptionModule, typeof i11.TuiStringifyContentPipe, typeof i8.TuiTextfieldControllerModule, typeof i8.TuiWrapperModule, typeof i12.TuiDataListComponent, typeof i12.TuiDataListDirective, typeof i12.TuiOption, typeof i12.TuiOptionNew, typeof i12.TuiOptionWithValue, typeof i12.TuiOptGroup, typeof i13.TuiDataListWrapperComponent, typeof i13.TuiDataListGroupWrapperComponent, typeof i12.TuiDataListDirective, typeof i14.TuiDropdownOptionsDirective, typeof i14.TuiDropdownDriverDirective, typeof i14.TuiDropdownDirective, typeof i14.TuiDropdownComponent, typeof i14.TuiDropdownOpen, typeof i14.TuiDropdownOpenLegacy, typeof i14.TuiDropdownManual, typeof i14.TuiDropdownHover, typeof i14.TuiDropdownContent, typeof i14.TuiDropdownContext, typeof i14.TuiDropdownPosition, typeof i14.TuiDropdownPositionSided, typeof i14.TuiDropdownSelection], [typeof i1.TuiSelectComponent, typeof i2.TuiSelectDirective, typeof i9.TuiTextfieldComponent, typeof i3.TuiNativeSelectComponent, typeof i4.TuiNativeSelectGroupComponent, typeof i14.TuiDropdownOptionsDirective, typeof i14.TuiDropdownDriverDirective, typeof i14.TuiDropdownDirective, typeof i14.TuiDropdownComponent, typeof i14.TuiDropdownOpen, typeof i14.TuiDropdownOpenLegacy, typeof i14.TuiDropdownManual, typeof i14.TuiDropdownHover, typeof i14.TuiDropdownContent, typeof i14.TuiDropdownContext, typeof i14.TuiDropdownPosition, typeof i14.TuiDropdownPositionSided, typeof i14.TuiDropdownSelection, typeof i12.TuiDataListComponent, typeof i12.TuiDataListDirective, typeof i12.TuiOption, typeof i12.TuiOptionNew, typeof i12.TuiOptionWithValue, typeof i12.TuiOptGroup, typeof i13.TuiDataListWrapperComponent, typeof i13.TuiDataListGroupWrapperComponent, typeof i12.TuiDataListDirective]>;
23
23
  static ɵinj: i0.ɵɵInjectorDeclaration<TuiSelectModule>;
24
24
  }
@@ -1,10 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./select-option.component";
3
3
  import * as i2 from "@angular/common";
4
- import * as i3 from "@taiga-ui/core/components/scrollbar";
5
- import * as i4 from "@taiga-ui/core/components/icon";
4
+ import * as i3 from "@taiga-ui/core/components/icon";
5
+ import * as i4 from "@taiga-ui/core/components/scrollbar";
6
6
  export declare class TuiSelectOptionModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiSelectOptionModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectOptionModule, [typeof i1.TuiSelectOptionComponent], [typeof i2.CommonModule, typeof i3.TuiScrollIntoView, typeof i4.TuiIcon], [typeof i1.TuiSelectOptionComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectOptionModule, [typeof i1.TuiSelectOptionComponent], [typeof i2.CommonModule, typeof i3.TuiIcon, typeof i4.TuiScrollIntoView], [typeof i1.TuiSelectOptionComponent]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<TuiSelectOptionModule>;
10
10
  }
@@ -2,15 +2,15 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./tag.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/forms";
5
- import * as i4 from "@taiga-ui/core/components/icon";
6
- import * as i5 from "@taiga-ui/core/components/loader";
7
- import * as i6 from "@taiga-ui/polymorpheus";
5
+ import * as i4 from "@taiga-ui/polymorpheus";
6
+ import * as i5 from "@taiga-ui/core/components/icon";
7
+ import * as i6 from "@taiga-ui/core/components/loader";
8
8
  /**
9
9
  * @deprecated: drop in v5.0 use {@link TuiChip}
10
10
  * https://taiga-ui.dev/components/chip
11
11
  */
12
12
  export declare class TuiTagModule {
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTagModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTagModule, [typeof i1.TuiTagComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.TuiIcon, typeof i5.TuiLoader, typeof i6.PolymorpheusOutlet, typeof i6.PolymorpheusTemplate], [typeof i1.TuiTagComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTagModule, [typeof i1.TuiTagComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PolymorpheusOutlet, typeof i4.PolymorpheusTemplate, typeof i5.TuiIcon, typeof i6.TuiLoader], [typeof i1.TuiTagComponent]>;
15
15
  static ɵinj: i0.ɵɵInjectorDeclaration<TuiTagModule>;
16
16
  }
@@ -3,19 +3,19 @@ import * as i1 from "./textarea.component";
3
3
  import * as i2 from "./textarea.directive";
4
4
  import * as i3 from "@angular/common";
5
5
  import * as i4 from "@angular/forms";
6
- import * as i5 from "@taiga-ui/core/components/scrollbar";
7
- import * as i6 from "@taiga-ui/legacy/components/tooltip";
8
- import * as i7 from "@taiga-ui/legacy/directives";
6
+ import * as i5 from "@taiga-ui/polymorpheus";
7
+ import * as i6 from "@taiga-ui/core/directives/appearance";
8
+ import * as i7 from "@taiga-ui/core/components/icon";
9
9
  import * as i8 from "@taiga-ui/legacy/components/primitive-textfield";
10
- import * as i9 from "@taiga-ui/polymorpheus";
11
- import * as i10 from "@taiga-ui/core/components/icon";
12
- import * as i11 from "@taiga-ui/core/directives/appearance";
10
+ import * as i9 from "@taiga-ui/core/components/scrollbar";
11
+ import * as i10 from "@taiga-ui/legacy/components/tooltip";
12
+ import * as i11 from "@taiga-ui/legacy/directives";
13
13
  /**
14
14
  * TODO(v5): delete it
15
15
  * @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead
16
16
  */
17
17
  export declare class TuiTextareaModule {
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTextareaModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTextareaModule, [typeof i1.TuiTextareaComponent, typeof i2.TuiTextareaDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.TuiScrollbar, typeof i6.TuiTooltipModule, typeof i7.TuiWrapperModule, typeof i8.TuiPrimitiveTextfieldModule, typeof i9.PolymorpheusOutlet, typeof i9.PolymorpheusTemplate, typeof i10.TuiIcon, typeof i11.TuiAppearance], [typeof i1.TuiTextareaComponent, typeof i2.TuiTextareaDirective, typeof i8.TuiTextfieldComponent, typeof i9.PolymorpheusOutlet, typeof i9.PolymorpheusTemplate]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTextareaModule, [typeof i1.TuiTextareaComponent, typeof i2.TuiTextareaDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate, typeof i6.TuiAppearance, typeof i7.TuiIcon, typeof i8.TuiPrimitiveTextfieldModule, typeof i9.TuiScrollbar, typeof i10.TuiTooltipModule, typeof i11.TuiWrapperModule], [typeof i1.TuiTextareaComponent, typeof i2.TuiTextareaDirective, typeof i8.TuiTextfieldComponent, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate]>;
20
20
  static ɵinj: i0.ɵɵInjectorDeclaration<TuiTextareaModule>;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Directive, Input, Output, inject, DestroyRef, ChangeDetectorRef, TemplateRef, ViewChild } from '@angular/core';
2
+ import { EventEmitter, Output, Input, Directive, inject, DestroyRef, ChangeDetectorRef, TemplateRef, ViewChild } from '@angular/core';
3
3
  import { tuiInjectId } from '@taiga-ui/cdk/services';
4
4
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
5
5
  import { TuiDataListDirective } from '@taiga-ui/core/components/data-list';
@@ -61,10 +61,10 @@ class AbstractTuiInteractive {
61
61
  this.focusVisible = focusVisible;
62
62
  this.focusVisibleChange.emit(focusVisible);
63
63
  }
64
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiInteractive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
65
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiInteractive, inputs: { pseudoHover: "pseudoHover", pseudoActive: "pseudoActive", pseudoFocus: "pseudoFocus", focusable: "focusable", nativeId: "nativeId" }, outputs: { focusedChange: "focusedChange", focusVisibleChange: "focusVisibleChange" }, host: { properties: { "attr.data-focused": "pseudoFocus", "class._disabled": "computedDisabled", "class._focused": "computedFocused", "class._focus-visible": "computedFocusVisible" } }, ngImport: i0 }); }
64
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiInteractive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
65
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiInteractive, isStandalone: false, inputs: { pseudoHover: "pseudoHover", pseudoActive: "pseudoActive", pseudoFocus: "pseudoFocus", focusable: "focusable", nativeId: "nativeId" }, outputs: { focusedChange: "focusedChange", focusVisibleChange: "focusVisibleChange" }, host: { properties: { "attr.data-focused": "pseudoFocus", "class._disabled": "computedDisabled", "class._focused": "computedFocused", "class._focus-visible": "computedFocusVisible" } }, ngImport: i0 }); }
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiInteractive, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiInteractive, decorators: [{
68
68
  type: Directive,
69
69
  args: [{
70
70
  standalone: false,
@@ -91,7 +91,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
91
91
  type: Output
92
92
  }] } });
93
93
 
94
- /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
95
94
  /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
96
95
  /**
97
96
  * @deprecated: drop in v5.0
@@ -241,10 +240,10 @@ class AbstractTuiControl extends AbstractTuiInteractive {
241
240
  ? this.valueTransformer.toControlValue(componentValue)
242
241
  : componentValue;
243
242
  }
244
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
245
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiControl, inputs: { readOnly: "readOnly", pseudoInvalid: "pseudoInvalid" }, host: { properties: { "class._readonly": "readOnly", "class._invalid": "computedInvalid" } }, usesInheritance: true, ngImport: i0 }); }
243
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
244
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiControl, isStandalone: false, inputs: { readOnly: "readOnly", pseudoInvalid: "pseudoInvalid" }, host: { properties: { "class._readonly": "readOnly", "class._invalid": "computedInvalid" } }, usesInheritance: true, ngImport: i0 }); }
246
245
  }
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiControl, decorators: [{
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiControl, decorators: [{
248
247
  type: Directive,
249
248
  args: [{
250
249
  standalone: false,
@@ -253,7 +252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
253
252
  '[class._invalid]': 'computedInvalid',
254
253
  },
255
254
  }]
256
- }], ctorParameters: function () { return []; }, propDecorators: { readOnly: [{
255
+ }], ctorParameters: () => [], propDecorators: { readOnly: [{
257
256
  type: Input
258
257
  }], pseudoInvalid: [{
259
258
  type: Input
@@ -282,10 +281,10 @@ class AbstractTuiNativeSelect {
282
281
  get emptyOption() {
283
282
  return !!this.placeholder && !this.control.value;
284
283
  }
285
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiNativeSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
286
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiNativeSelect, inputs: { disabledItemHandler: "disabledItemHandler", placeholder: "placeholder" }, host: { properties: { "id": "id" } }, viewQueries: [{ propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 }); }
284
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNativeSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
285
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiNativeSelect, isStandalone: false, inputs: { disabledItemHandler: "disabledItemHandler", placeholder: "placeholder" }, host: { properties: { "id": "id" } }, viewQueries: [{ propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 }); }
287
286
  }
288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiNativeSelect, decorators: [{
287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNativeSelect, decorators: [{
289
288
  type: Directive,
290
289
  args: [{
291
290
  standalone: false,
@@ -328,10 +327,10 @@ class AbstractTuiTextfieldHost {
328
327
  return this.host.value?.toString() || '';
329
328
  }
330
329
  process(_input) { }
331
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiTextfieldHost, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
332
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiTextfieldHost, ngImport: i0 }); }
330
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiTextfieldHost, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
331
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiTextfieldHost, isStandalone: true, ngImport: i0 }); }
333
332
  }
334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiTextfieldHost, decorators: [{
333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiTextfieldHost, decorators: [{
335
334
  type: Directive
336
335
  }] });
337
336
 
@@ -342,10 +341,10 @@ class AbstractTuiController {
342
341
  ngOnChanges() {
343
342
  this.change$.next();
344
343
  }
345
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
346
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiController, usesOnChanges: true, ngImport: i0 }); }
344
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
345
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiController, isStandalone: true, usesOnChanges: true, ngImport: i0 }); }
347
346
  }
348
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiController, decorators: [{
347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiController, decorators: [{
349
348
  type: Directive
350
349
  }] });
351
350
 
@@ -359,10 +358,10 @@ class AbstractTuiMultipleControl extends AbstractTuiControl {
359
358
  getFallbackValue() {
360
359
  return [];
361
360
  }
362
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiMultipleControl, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
363
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiMultipleControl, usesInheritance: true, ngImport: i0 }); }
361
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiMultipleControl, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
362
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiMultipleControl, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
364
363
  }
365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiMultipleControl, decorators: [{
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiMultipleControl, decorators: [{
366
365
  type: Directive
367
366
  }] });
368
367
 
@@ -387,10 +386,10 @@ class AbstractTuiNullableControl extends AbstractTuiControl {
387
386
  getFallbackValue() {
388
387
  return null;
389
388
  }
390
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiNullableControl, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
391
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractTuiNullableControl, usesInheritance: true, ngImport: i0 }); }
389
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNullableControl, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
390
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiNullableControl, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
392
391
  }
393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractTuiNullableControl, decorators: [{
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNullableControl, decorators: [{
394
393
  type: Directive
395
394
  }] });
396
395
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-classes.mjs","sources":["../../../projects/legacy/classes/interactive.ts","../../../projects/legacy/classes/control.ts","../../../projects/legacy/classes/abstract-native-select.ts","../../../projects/legacy/classes/abstract-textfield-host.ts","../../../projects/legacy/classes/controller.ts","../../../projects/legacy/classes/multiple-control.ts","../../../projects/legacy/classes/named-day.ts","../../../projects/legacy/classes/nullable-control.ts","../../../projects/legacy/classes/stringifiable-item.ts","../../../projects/legacy/classes/taiga-ui-legacy-classes.ts"],"sourcesContent":["import {Directive, EventEmitter, Input, Output} from '@angular/core';\n\nconst TUI = 'tui_interactive_';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive({\n standalone: false,\n host: {\n '[attr.data-focused]': 'pseudoFocus',\n '[class._disabled]': 'computedDisabled',\n '[class._focused]': 'computedFocused',\n '[class._focus-visible]': 'computedFocusVisible',\n },\n})\nexport abstract class AbstractTuiInteractive {\n private static autoId = 0;\n\n public abstract disabled: boolean;\n\n public abstract focused: boolean;\n\n private readonly autoIdString: string = `${TUI}${AbstractTuiInteractive.autoId++}${Date.now()}`;\n\n protected focusVisible = false;\n\n @Input()\n public pseudoHover: boolean | null = null;\n\n @Input()\n public pseudoActive: boolean | null = null;\n\n @Input()\n public pseudoFocus: boolean | null = null;\n\n /**\n * Determines if component is focusable with keyboard.\n */\n @Input()\n public focusable = true;\n\n @Input()\n public nativeId = '';\n\n /**\n * Emits 'true' on focus and 'false' on blur.\n */\n @Output()\n public readonly focusedChange = new EventEmitter<boolean>();\n\n @Output()\n public readonly focusVisibleChange = new EventEmitter<boolean>();\n\n public get computedDisabled(): boolean {\n return this.disabled;\n }\n\n public get computedFocused(): boolean {\n return !this.computedDisabled && (this.pseudoFocus ?? this.focused);\n }\n\n public get computedFocusVisible(): boolean {\n return !this.computedDisabled && (this.pseudoFocus ?? this.focusVisible);\n }\n\n public get computedFocusable(): boolean {\n return !this.computedDisabled && (this.focusable || this.focused);\n }\n\n // TODO: 3.0 Consider removing since native input is exposed\n public get id(): string {\n return this.nativeId || this.autoIdString;\n }\n\n protected updateFocused(focused: boolean): void {\n this.focusedChange.emit(focused);\n }\n\n protected updateFocusVisible(focusVisible: boolean): void {\n if (this.focusVisible === focusVisible) {\n return;\n }\n\n this.focusVisible = focusVisible;\n this.focusVisibleChange.emit(focusVisible);\n }\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {\n ChangeDetectorRef,\n DestroyRef,\n Directive,\n inject,\n Input,\n type OnInit,\n type Provider,\n type Type,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n type AbstractControl,\n type ControlValueAccessor,\n NgControl,\n NgModel,\n} from '@angular/forms';\nimport {TuiControl, TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiIsPresent, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n delay,\n distinctUntilChanged,\n EMPTY,\n filter,\n map,\n merge,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {AbstractTuiInteractive} from './interactive';\n\n/**\n * @deprecated: drop in v5.0\n * Basic ControlValueAccessor class to build form components upon\n */\n@Directive({\n standalone: false,\n host: {\n '[class._readonly]': 'readOnly',\n '[class._invalid]': 'computedInvalid',\n },\n})\nexport abstract class AbstractTuiControl<T>\n extends AbstractTuiInteractive\n implements OnInit, ControlValueAccessor\n{\n private readonly ngControl = inject(NgControl, {optional: true});\n private previousInternalValue?: T | null;\n private readonly refresh$ = new Subject<void>();\n\n protected onTouched = EMPTY_FUNCTION;\n protected onChange = EMPTY_FUNCTION;\n protected readonly fallbackValue = this.getFallbackValue();\n protected destroyRef = inject(DestroyRef);\n protected readonly cdr = inject(ChangeDetectorRef);\n protected readonly valueTransformer = inject<TuiValueTransformer<T>>(\n TuiValueTransformer,\n {optional: true},\n );\n\n @Input()\n public readOnly = false;\n\n @Input()\n public pseudoInvalid: boolean | null = null;\n\n // Workaround for legacy control to notify of internal change in case updateOn: 'blur' is used\n public readonly update$ = new Subject<void>();\n\n constructor() {\n super();\n\n if (ngDevMode && this.ngControl === null) {\n console.assert(\n false,\n `NgControl not injected in ${this.constructor.name}!\\n`,\n 'Use [(ngModel)] or [formControl] or formControlName for correct work.',\n );\n }\n\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n protected abstract getFallbackValue(): T;\n\n public get computedInvalid(): boolean {\n return (\n this.interactive &&\n (this.pseudoInvalid !== null\n ? this.pseudoInvalid\n : this.touched && this.invalid)\n );\n }\n\n public get value(): T {\n return this.previousInternalValue ?? this.fallbackValue;\n }\n\n public set value(value: T) {\n this.updateValue(value);\n this.update$.next();\n }\n\n public get safeCurrentValue(): T {\n return this.rawValue ?? this.fallbackValue;\n }\n\n public get invalid(): boolean {\n return this.safeNgControlData<boolean>(({invalid}) => invalid, false);\n }\n\n public get valid(): boolean {\n return this.safeNgControlData<boolean>(({valid}) => valid, false);\n }\n\n public get touched(): boolean {\n return this.safeNgControlData<boolean>(({touched}) => touched, false);\n }\n\n public get disabled(): boolean {\n return this.safeNgControlData<boolean>(({disabled}) => disabled, false);\n }\n\n public get interactive(): boolean {\n return !this.readOnly && !this.computedDisabled;\n }\n\n public get control(): AbstractControl | null {\n return this.safeNgControlData<AbstractControl | null>(\n ({control}) => control,\n null,\n );\n }\n\n public get computedName(): string | null {\n return this.controlName?.toString() ?? null;\n }\n\n public get controlName(): string | null {\n return this.ngControl?.name?.toString() ?? null;\n }\n\n public ngOnInit(): void {\n this.refresh$\n .pipe(\n delay(0),\n startWith(null),\n map(() => this.ngControl?.control),\n filter(tuiIsPresent),\n distinctUntilChanged(),\n switchMap((control) =>\n merge(\n control.valueChanges,\n control.statusChanges,\n (control as any).events || EMPTY,\n ),\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => {\n this.refreshLocalValue(this.safeCurrentValue);\n });\n }\n\n public checkControlUpdate(): void {\n this.cdr.markForCheck();\n }\n\n public registerOnChange(onChange: (value: unknown) => void): void {\n this.onChange = (componentValue: T) => {\n onChange(this.toControlValue(componentValue));\n };\n\n this.refresh$.next();\n }\n\n public registerOnTouched(onTouched: () => void): void {\n this.onTouched = onTouched;\n }\n\n public setDisabledState(): void {\n this.checkControlUpdate();\n }\n\n public writeValue(value: T | null): void {\n const controlValue =\n this.ngControl instanceof NgModel && this.previousInternalValue === undefined\n ? this.ngControl.model\n : value;\n\n this.refreshLocalValue(this.fromControlValue(controlValue));\n }\n\n protected override updateFocused(focused: boolean): void {\n if (!focused) {\n this.controlMarkAsTouched();\n }\n\n super.updateFocused(focused);\n }\n\n /**\n * @deprecated use `value` setter\n */\n protected updateValue(value: T): void {\n if (this.disabled || this.valueIdenticalComparator(this.value, value)) {\n return;\n }\n\n this.previousInternalValue = value;\n this.controlSetValue(value);\n }\n\n protected valueIdenticalComparator(oldValue: T, newValue: T): boolean {\n return oldValue === newValue;\n }\n\n private get rawValue(): T | undefined {\n const {ngControl} = this;\n\n if (ngControl === null) {\n return undefined;\n }\n\n const controlValue =\n ngControl instanceof NgModel && this.previousInternalValue === undefined\n ? ngControl.viewModel\n : ngControl.value;\n\n return this.fromControlValue(controlValue);\n }\n\n private safeNgControlData<T>(\n extractor: (ngControl: NgControl) => T | null | undefined,\n defaultFieldValue: T,\n ): T {\n return (this.ngControl && extractor(this.ngControl)) ?? defaultFieldValue;\n }\n\n private controlMarkAsTouched(): void {\n this.onTouched();\n this.checkControlUpdate();\n }\n\n private controlSetValue(value: T): void {\n this.onChange(value);\n this.checkControlUpdate();\n }\n\n private refreshLocalValue(value: T | null): void {\n this.previousInternalValue = value;\n this.checkControlUpdate();\n }\n\n private fromControlValue(controlValue: unknown): T {\n return this.valueTransformer\n ? this.valueTransformer.fromControlValue(controlValue)\n : (controlValue as T);\n }\n\n private toControlValue(componentValue: T): unknown {\n return this.valueTransformer\n ? this.valueTransformer.toControlValue(componentValue)\n : componentValue;\n }\n}\n\nexport function tuiAsControl<T>(control: Type<AbstractTuiControl<T>>): Provider[] {\n return [tuiProvide(AbstractTuiControl, control), tuiProvide(TuiControl, control)];\n}\n","import {Directive, inject, Input, TemplateRef, ViewChild} from '@angular/core';\nimport {tuiInjectId} from '@taiga-ui/cdk/services';\nimport {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiDataListDirective} from '@taiga-ui/core/components/data-list';\nimport {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens';\nimport {TUI_TEXTFIELD_HOST, type TuiTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive({\n standalone: false,\n host: {\n '[id]': 'id',\n },\n})\nexport abstract class AbstractTuiNativeSelect<H = TuiTextfieldHost, T = string> {\n @ViewChild(TuiDataListDirective, {read: TemplateRef, static: true})\n protected readonly datalist: TemplateRef<any> | null = null;\n\n protected readonly autoId = tuiInjectId();\n protected readonly el = tuiInjectElement<HTMLSelectElement>();\n protected readonly host = inject<H>(TUI_TEXTFIELD_HOST);\n protected readonly control = inject(AbstractTuiControl);\n protected readonly itemsHandlers = inject(TUI_ITEMS_HANDLERS);\n\n @Input()\n public disabledItemHandler: TuiBooleanHandler<T> | null = null;\n\n @Input()\n public placeholder = '';\n\n protected get id(): string {\n return this.el.id || this.autoId;\n }\n\n protected get emptyOption(): boolean {\n return !!this.placeholder && !this.control.value;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {type TuiTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive()\nexport abstract class AbstractTuiTextfieldHost<T extends AbstractTuiControl<any>>\n implements TuiTextfieldHost\n{\n protected readonly host: T = inject<any>(AbstractTuiControl, {optional: true});\n\n public abstract onValueChange(value: string): void;\n\n public get readOnly(): boolean {\n return this.host.readOnly;\n }\n\n public get disabled(): boolean {\n return this.host.computedDisabled;\n }\n\n public get invalid(): boolean {\n return this.host.computedInvalid;\n }\n\n public get focusable(): boolean {\n return this.host.computedFocusable;\n }\n\n public get inputMode(): TuiTextfieldHost['inputMode'] {\n return 'text';\n }\n\n public get value(): string {\n return this.host.value?.toString() || '';\n }\n\n public process(_input: HTMLInputElement): void {}\n}\n","import {Directive, type OnChanges} from '@angular/core';\nimport {Subject} from 'rxjs';\n\n@Directive()\nexport abstract class AbstractTuiController implements OnChanges {\n public readonly change$ = new Subject<void>();\n\n public ngOnChanges(): void {\n this.change$.next();\n }\n}\n","import {Directive} from '@angular/core';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive()\nexport abstract class AbstractTuiMultipleControl<T> extends AbstractTuiControl<\n readonly T[]\n> {\n protected clear(): void {\n this.value = [];\n }\n\n protected getFallbackValue(): readonly T[] {\n return [];\n }\n}\n","import {type TuiDay} from '@taiga-ui/cdk/date-time';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport class TuiNamedDay {\n constructor(\n public readonly day: TuiDay,\n private readonly name: string,\n public readonly displayDay: TuiDay = day,\n ) {}\n\n protected toString(): string {\n return this.name;\n }\n}\n","import {Directive} from '@angular/core';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive()\nexport abstract class AbstractTuiNullableControl<T> extends AbstractTuiControl<T | null> {\n protected getFallbackValue(): T | null {\n return null;\n }\n}\n","import {type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * @deprecated: drop in v5.0\n * Wrapper around an item to add `toString()` method\n */\nexport class TuiStringifiableItem<T> {\n constructor(\n public readonly item: T,\n public readonly stringify: TuiStringHandler<T>,\n ) {}\n\n protected toString(): string {\n return this.stringify(this.item);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,MAAM,GAAG,GAAG,kBAAkB,CAAC;AAE/B;;AAEG;AACH,MASsB,sBAAsB,CAAA;AAT5C,IAAA,WAAA,GAAA;AAgBqB,QAAA,IAAA,CAAA,YAAY,GAAW,CAAA,EAAG,GAAG,CAAA,EAAG,sBAAsB,CAAC,MAAM,EAAE,CAAA,EAAG,IAAI,CA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AS;;;ACLV;;;AAGG;MACU,oBAAoB,CAAA;IAC7B,WACoB,CAAA,IAAO,EACP,SAA8B,EAAA;QAD9B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAG;QACP,IAAS,CAAA,SAAA,GAAT,SAAS,CAAqB;KAC9C;IAEM,QAAQ,GAAA;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpC;AACJ;;ACfD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-legacy-classes.mjs","sources":["../../../projects/legacy/classes/interactive.ts","../../../projects/legacy/classes/control.ts","../../../projects/legacy/classes/abstract-native-select.ts","../../../projects/legacy/classes/abstract-textfield-host.ts","../../../projects/legacy/classes/controller.ts","../../../projects/legacy/classes/multiple-control.ts","../../../projects/legacy/classes/named-day.ts","../../../projects/legacy/classes/nullable-control.ts","../../../projects/legacy/classes/stringifiable-item.ts","../../../projects/legacy/classes/taiga-ui-legacy-classes.ts"],"sourcesContent":["import {Directive, EventEmitter, Input, Output} from '@angular/core';\n\nconst TUI = 'tui_interactive_';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive({\n standalone: false,\n host: {\n '[attr.data-focused]': 'pseudoFocus',\n '[class._disabled]': 'computedDisabled',\n '[class._focused]': 'computedFocused',\n '[class._focus-visible]': 'computedFocusVisible',\n },\n})\nexport abstract class AbstractTuiInteractive {\n private static autoId = 0;\n\n public abstract disabled: boolean;\n\n public abstract focused: boolean;\n\n private readonly autoIdString: string = `${TUI}${AbstractTuiInteractive.autoId++}${Date.now()}`;\n\n protected focusVisible = false;\n\n @Input()\n public pseudoHover: boolean | null = null;\n\n @Input()\n public pseudoActive: boolean | null = null;\n\n @Input()\n public pseudoFocus: boolean | null = null;\n\n /**\n * Determines if component is focusable with keyboard.\n */\n @Input()\n public focusable = true;\n\n @Input()\n public nativeId = '';\n\n /**\n * Emits 'true' on focus and 'false' on blur.\n */\n @Output()\n public readonly focusedChange = new EventEmitter<boolean>();\n\n @Output()\n public readonly focusVisibleChange = new EventEmitter<boolean>();\n\n public get computedDisabled(): boolean {\n return this.disabled;\n }\n\n public get computedFocused(): boolean {\n return !this.computedDisabled && (this.pseudoFocus ?? this.focused);\n }\n\n public get computedFocusVisible(): boolean {\n return !this.computedDisabled && (this.pseudoFocus ?? this.focusVisible);\n }\n\n public get computedFocusable(): boolean {\n return !this.computedDisabled && (this.focusable || this.focused);\n }\n\n // TODO: 3.0 Consider removing since native input is exposed\n public get id(): string {\n return this.nativeId || this.autoIdString;\n }\n\n protected updateFocused(focused: boolean): void {\n this.focusedChange.emit(focused);\n }\n\n protected updateFocusVisible(focusVisible: boolean): void {\n if (this.focusVisible === focusVisible) {\n return;\n }\n\n this.focusVisible = focusVisible;\n this.focusVisibleChange.emit(focusVisible);\n }\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {\n ChangeDetectorRef,\n DestroyRef,\n Directive,\n inject,\n Input,\n type OnInit,\n type Provider,\n type Type,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n type AbstractControl,\n type ControlValueAccessor,\n NgControl,\n NgModel,\n} from '@angular/forms';\nimport {TuiControl, TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiIsPresent, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n delay,\n distinctUntilChanged,\n EMPTY,\n filter,\n map,\n merge,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {AbstractTuiInteractive} from './interactive';\n\n/**\n * @deprecated: drop in v5.0\n * Basic ControlValueAccessor class to build form components upon\n */\n@Directive({\n standalone: false,\n host: {\n '[class._readonly]': 'readOnly',\n '[class._invalid]': 'computedInvalid',\n },\n})\nexport abstract class AbstractTuiControl<T>\n extends AbstractTuiInteractive\n implements OnInit, ControlValueAccessor\n{\n private readonly ngControl = inject(NgControl, {optional: true});\n private previousInternalValue?: T | null;\n private readonly refresh$ = new Subject<void>();\n\n protected onTouched = EMPTY_FUNCTION;\n protected onChange = EMPTY_FUNCTION;\n protected readonly fallbackValue = this.getFallbackValue();\n protected destroyRef = inject(DestroyRef);\n protected readonly cdr = inject(ChangeDetectorRef);\n protected readonly valueTransformer = inject<TuiValueTransformer<T>>(\n TuiValueTransformer,\n {optional: true},\n );\n\n @Input()\n public readOnly = false;\n\n @Input()\n public pseudoInvalid: boolean | null = null;\n\n // Workaround for legacy control to notify of internal change in case updateOn: 'blur' is used\n public readonly update$ = new Subject<void>();\n\n constructor() {\n super();\n\n if (ngDevMode && this.ngControl === null) {\n console.assert(\n false,\n `NgControl not injected in ${this.constructor.name}!\\n`,\n 'Use [(ngModel)] or [formControl] or formControlName for correct work.',\n );\n }\n\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n protected abstract getFallbackValue(): T;\n\n public get computedInvalid(): boolean {\n return (\n this.interactive &&\n (this.pseudoInvalid !== null\n ? this.pseudoInvalid\n : this.touched && this.invalid)\n );\n }\n\n public get value(): T {\n return this.previousInternalValue ?? this.fallbackValue;\n }\n\n public set value(value: T) {\n this.updateValue(value);\n this.update$.next();\n }\n\n public get safeCurrentValue(): T {\n return this.rawValue ?? this.fallbackValue;\n }\n\n public get invalid(): boolean {\n return this.safeNgControlData<boolean>(({invalid}) => invalid, false);\n }\n\n public get valid(): boolean {\n return this.safeNgControlData<boolean>(({valid}) => valid, false);\n }\n\n public get touched(): boolean {\n return this.safeNgControlData<boolean>(({touched}) => touched, false);\n }\n\n public get disabled(): boolean {\n return this.safeNgControlData<boolean>(({disabled}) => disabled, false);\n }\n\n public get interactive(): boolean {\n return !this.readOnly && !this.computedDisabled;\n }\n\n public get control(): AbstractControl | null {\n return this.safeNgControlData<AbstractControl | null>(\n ({control}) => control,\n null,\n );\n }\n\n public get computedName(): string | null {\n return this.controlName?.toString() ?? null;\n }\n\n public get controlName(): string | null {\n return this.ngControl?.name?.toString() ?? null;\n }\n\n public ngOnInit(): void {\n this.refresh$\n .pipe(\n delay(0),\n startWith(null),\n map(() => this.ngControl?.control),\n filter(tuiIsPresent),\n distinctUntilChanged(),\n switchMap((control) =>\n merge(\n control.valueChanges,\n control.statusChanges,\n (control as any).events || EMPTY,\n ),\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => {\n this.refreshLocalValue(this.safeCurrentValue);\n });\n }\n\n public checkControlUpdate(): void {\n this.cdr.markForCheck();\n }\n\n public registerOnChange(onChange: (value: unknown) => void): void {\n this.onChange = (componentValue: T) => {\n onChange(this.toControlValue(componentValue));\n };\n\n this.refresh$.next();\n }\n\n public registerOnTouched(onTouched: () => void): void {\n this.onTouched = onTouched;\n }\n\n public setDisabledState(): void {\n this.checkControlUpdate();\n }\n\n public writeValue(value: T | null): void {\n const controlValue =\n this.ngControl instanceof NgModel && this.previousInternalValue === undefined\n ? this.ngControl.model\n : value;\n\n this.refreshLocalValue(this.fromControlValue(controlValue));\n }\n\n protected override updateFocused(focused: boolean): void {\n if (!focused) {\n this.controlMarkAsTouched();\n }\n\n super.updateFocused(focused);\n }\n\n /**\n * @deprecated use `value` setter\n */\n protected updateValue(value: T): void {\n if (this.disabled || this.valueIdenticalComparator(this.value, value)) {\n return;\n }\n\n this.previousInternalValue = value;\n this.controlSetValue(value);\n }\n\n protected valueIdenticalComparator(oldValue: T, newValue: T): boolean {\n return oldValue === newValue;\n }\n\n private get rawValue(): T | undefined {\n const {ngControl} = this;\n\n if (ngControl === null) {\n return undefined;\n }\n\n const controlValue =\n ngControl instanceof NgModel && this.previousInternalValue === undefined\n ? ngControl.viewModel\n : ngControl.value;\n\n return this.fromControlValue(controlValue);\n }\n\n private safeNgControlData<T>(\n extractor: (ngControl: NgControl) => T | null | undefined,\n defaultFieldValue: T,\n ): T {\n return (this.ngControl && extractor(this.ngControl)) ?? defaultFieldValue;\n }\n\n private controlMarkAsTouched(): void {\n this.onTouched();\n this.checkControlUpdate();\n }\n\n private controlSetValue(value: T): void {\n this.onChange(value);\n this.checkControlUpdate();\n }\n\n private refreshLocalValue(value: T | null): void {\n this.previousInternalValue = value;\n this.checkControlUpdate();\n }\n\n private fromControlValue(controlValue: unknown): T {\n return this.valueTransformer\n ? this.valueTransformer.fromControlValue(controlValue)\n : (controlValue as T);\n }\n\n private toControlValue(componentValue: T): unknown {\n return this.valueTransformer\n ? this.valueTransformer.toControlValue(componentValue)\n : componentValue;\n }\n}\n\nexport function tuiAsControl<T>(control: Type<AbstractTuiControl<T>>): Provider[] {\n return [tuiProvide(AbstractTuiControl, control), tuiProvide(TuiControl, control)];\n}\n","import {Directive, inject, Input, TemplateRef, ViewChild} from '@angular/core';\nimport {tuiInjectId} from '@taiga-ui/cdk/services';\nimport {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiDataListDirective} from '@taiga-ui/core/components/data-list';\nimport {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens';\nimport {TUI_TEXTFIELD_HOST, type TuiTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive({\n standalone: false,\n host: {\n '[id]': 'id',\n },\n})\nexport abstract class AbstractTuiNativeSelect<H = TuiTextfieldHost, T = string> {\n @ViewChild(TuiDataListDirective, {read: TemplateRef, static: true})\n protected readonly datalist: TemplateRef<any> | null = null;\n\n protected readonly autoId = tuiInjectId();\n protected readonly el = tuiInjectElement<HTMLSelectElement>();\n protected readonly host = inject<H>(TUI_TEXTFIELD_HOST);\n protected readonly control = inject(AbstractTuiControl);\n protected readonly itemsHandlers = inject(TUI_ITEMS_HANDLERS);\n\n @Input()\n public disabledItemHandler: TuiBooleanHandler<T> | null = null;\n\n @Input()\n public placeholder = '';\n\n protected get id(): string {\n return this.el.id || this.autoId;\n }\n\n protected get emptyOption(): boolean {\n return !!this.placeholder && !this.control.value;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {type TuiTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive()\nexport abstract class AbstractTuiTextfieldHost<T extends AbstractTuiControl<any>>\n implements TuiTextfieldHost\n{\n protected readonly host: T = inject<any>(AbstractTuiControl, {optional: true});\n\n public abstract onValueChange(value: string): void;\n\n public get readOnly(): boolean {\n return this.host.readOnly;\n }\n\n public get disabled(): boolean {\n return this.host.computedDisabled;\n }\n\n public get invalid(): boolean {\n return this.host.computedInvalid;\n }\n\n public get focusable(): boolean {\n return this.host.computedFocusable;\n }\n\n public get inputMode(): TuiTextfieldHost['inputMode'] {\n return 'text';\n }\n\n public get value(): string {\n return this.host.value?.toString() || '';\n }\n\n public process(_input: HTMLInputElement): void {}\n}\n","import {Directive, type OnChanges} from '@angular/core';\nimport {Subject} from 'rxjs';\n\n@Directive()\nexport abstract class AbstractTuiController implements OnChanges {\n public readonly change$ = new Subject<void>();\n\n public ngOnChanges(): void {\n this.change$.next();\n }\n}\n","import {Directive} from '@angular/core';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive()\nexport abstract class AbstractTuiMultipleControl<T> extends AbstractTuiControl<\n readonly T[]\n> {\n protected clear(): void {\n this.value = [];\n }\n\n protected getFallbackValue(): readonly T[] {\n return [];\n }\n}\n","import {type TuiDay} from '@taiga-ui/cdk/date-time';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport class TuiNamedDay {\n constructor(\n public readonly day: TuiDay,\n private readonly name: string,\n public readonly displayDay: TuiDay = day,\n ) {}\n\n protected toString(): string {\n return this.name;\n }\n}\n","import {Directive} from '@angular/core';\n\nimport {AbstractTuiControl} from './control';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive()\nexport abstract class AbstractTuiNullableControl<T> extends AbstractTuiControl<T | null> {\n protected getFallbackValue(): T | null {\n return null;\n }\n}\n","import {type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * @deprecated: drop in v5.0\n * Wrapper around an item to add `toString()` method\n */\nexport class TuiStringifiableItem<T> {\n constructor(\n public readonly item: T,\n public readonly stringify: TuiStringHandler<T>,\n ) {}\n\n protected toString(): string {\n return this.stringify(this.item);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,MAAM,GAAG,GAAG,kBAAkB;AAE9B;;AAEG;MAUmB,sBAAsB,CAAA;AAT5C,IAAA,WAAA,GAAA;AAgBqB,QAAA,IAAA,CAAA,YAAY,GAAW,CAAA,EAAG,GAAG,CAAA,EAAG,sBAAsB,CAAC,MAAM,EAAE,CAAA,EAAG,IAAI,CAAC,GAAG,EAAE,EAAE;QAErF,IAAY,CAAA,YAAA,GAAG,KAAK;QAGvB,IAAW,CAAA,WAAA,GAAmB,IAAI;QAGlC,IAAY,CAAA,YAAA,GAAmB,IAAI;QAGnC,IAAW,CAAA,WAAA,GAAmB,IAAI;AAEzC;;AAEG;QAEI,IAAS,CAAA,SAAA,GAAG,IAAI;QAGhB,IAAQ,CAAA,QAAA,GAAG,EAAE;AAEpB;;AAEG;AAEa,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAW;AAG3C,QAAA,IAAA,CAAA,kBAAkB,GAAG,IAAI,YAAY,EAAW;AAmCnE;aAtEkB,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;AAqC1B,IAAA,IAAW,gBAAgB,GAAA;QACvB,OAAO,IAAI,CAAC,QAAQ;;AAGxB,IAAA,IAAW,eAAe,GAAA;AACtB,QAAA,OAAO,CAAC,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC;;AAGvE,IAAA,IAAW,oBAAoB,GAAA;AAC3B,QAAA,OAAO,CAAC,IAAI,CAAC,gBAAgB,KAAK,IAAI,CAAC,WAAW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QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAD/C;;;ACLD;;AAEG;MACU,WAAW,CAAA;AACpB,IAAA,WAAA,CACoB,GAAW,EACV,IAAY,EACb,aAAqB,GAAG,EAAA;QAFxB,IAAG,CAAA,GAAA,GAAH,GAAG;QACF,IAAI,CAAA,IAAA,GAAJ,IAAI;QACL,IAAU,CAAA,UAAA,GAAV,UAAU;;IAGpB,QAAQ,GAAA;QACd,OAAO,IAAI,CAAC,IAAI;;AAEvB;;ACXD;;AAEG;AAEG,MAAgB,0BAA8B,SAAQ,kBAA4B,CAAA;IAC1E,gBAAgB,GAAA;AACtB,QAAA,OAAO,IAAI;;+GAFG,0BAA0B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAD/C;;;ACLD;;;AAGG;MACU,oBAAoB,CAAA;IAC7B,WACoB,CAAA,IAAO,EACP,SAA8B,EAAA;QAD9B,IAAI,CAAA,IAAA,GAAJ,IAAI;QACJ,IAAS,CAAA,SAAA,GAAT,SAAS;;IAGnB,QAAQ,GAAA;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;;AAEvC;;ACfD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, computed, Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { InjectionToken, inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { toSignal } from '@angular/core/rxjs-interop';
4
4
  import { TuiIcon } from '@taiga-ui/core/components/icon';
5
5
  import { TuiDropdownOpen } from '@taiga-ui/core/directives/dropdown';
@@ -45,15 +45,15 @@ class TuiArrowComponent {
45
45
  get arrowIcon() {
46
46
  return !this.small ? this.options.iconLarge : this.options.iconSmall;
47
47
  }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiArrowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
49
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiArrowComponent, isStandalone: true, selector: "tui-arrow", host: { properties: { "class._rotated": "rotated()", "class._small": "small" } }, ngImport: i0, template: "<tui-icon\n *polymorpheusOutlet=\"arrowIcon as src\"\n [icon]=\"src\"\n/>\n", styles: [":host{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}:host._rotated{transform:rotate(180deg)}tui-icon{border-width:.25rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiArrowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
49
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiArrowComponent, isStandalone: true, selector: "tui-arrow", host: { properties: { "class._rotated": "rotated()", "class._small": "small" } }, ngImport: i0, template: "<tui-icon\n *polymorpheusOutlet=\"arrowIcon as src\"\n [icon]=\"src\"\n/>\n", styles: [":host{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}:host._rotated{transform:rotate(180deg)}tui-icon:before{font-size:1rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiArrowComponent, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiArrowComponent, decorators: [{
52
52
  type: Component,
53
- args: [{ standalone: true, selector: 'tui-arrow', imports: [PolymorpheusOutlet, TuiIcon], changeDetection: ChangeDetectionStrategy.OnPush, host: {
53
+ args: [{ selector: 'tui-arrow', imports: [PolymorpheusOutlet, TuiIcon], changeDetection: ChangeDetectionStrategy.OnPush, host: {
54
54
  '[class._rotated]': 'rotated()',
55
55
  '[class._small]': 'small',
56
- }, template: "<tui-icon\n *polymorpheusOutlet=\"arrowIcon as src\"\n [icon]=\"src\"\n/>\n", styles: [":host{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}:host._rotated{transform:rotate(180deg)}tui-icon{border-width:.25rem}\n"] }]
56
+ }, template: "<tui-icon\n *polymorpheusOutlet=\"arrowIcon as src\"\n [icon]=\"src\"\n/>\n", styles: [":host{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}:host._rotated{transform:rotate(180deg)}tui-icon:before{font-size:1rem}\n"] }]
57
57
  }] });
58
58
  const TUI_ARROW = new PolymorpheusComponent(TuiArrowComponent);
59
59
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-arrow.mjs","sources":["../../../projects/legacy/components/arrow/arrow.options.ts","../../../projects/legacy/components/arrow/arrow.component.ts","../../../projects/legacy/components/arrow/arrow.template.html","../../../projects/legacy/components/arrow/arrow.providers.ts","../../../projects/legacy/components/arrow/taiga-ui-legacy-components-arrow.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport interface TuiArrowOptions {\n readonly iconLarge: PolymorpheusContent;\n readonly iconSmall: PolymorpheusContent;\n}\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport const TUI_ARROW_DEFAULT_OPTIONS: TuiArrowOptions = {\n iconSmall: '@tui.chevron-down',\n iconLarge: '@tui.chevron-down',\n};\n\n/**\n * @deprecated: drop in v5.0\n * Default parameters for arrow component\n */\nexport const TUI_ARROW_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_ARROW_OPTIONS' : '',\n {\n factory: () => TUI_ARROW_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiArrowOptionsProvider(options: Partial<TuiArrowOptions>): Provider {\n return tuiProvideOptions(TUI_ARROW_OPTIONS, options, TUI_ARROW_DEFAULT_OPTIONS);\n}\n","import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiDropdownOpen} from '@taiga-ui/core/directives/dropdown';\nimport {tuiSizeBigger} from '@taiga-ui/core/utils/miscellaneous';\nimport {AbstractTuiControl} from '@taiga-ui/legacy/classes';\nimport {TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n PolymorpheusComponent,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\nimport {of} from 'rxjs';\n\nimport {TUI_ARROW_OPTIONS} from './arrow.options';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\n@Component({\n standalone: true,\n selector: 'tui-arrow',\n imports: [PolymorpheusOutlet, TuiIcon],\n templateUrl: './arrow.template.html',\n styleUrls: ['./arrow.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._rotated]': 'rotated()',\n '[class._small]': 'small',\n },\n})\nexport class TuiArrowComponent {\n private readonly control: any = inject(AbstractTuiControl, {optional: true});\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n private readonly options = inject(TUI_ARROW_OPTIONS);\n protected readonly dropdownOpen = toSignal(\n inject(TuiDropdownOpen, {optional: true})?.tuiDropdownOpenChange || of(false),\n );\n\n protected readonly rotated = computed(\n () => this.dropdownOpen() || this.control.pseudoOpen?.(),\n );\n\n protected get small(): boolean {\n return !tuiSizeBigger(this.textfieldSize.size);\n }\n\n protected get arrowIcon(): PolymorpheusContent {\n return !this.small ? this.options.iconLarge : this.options.iconSmall;\n }\n}\n\nexport const TUI_ARROW = new PolymorpheusComponent(TuiArrowComponent);\n","<tui-icon\n *polymorpheusOutlet=\"arrowIcon as src\"\n [icon]=\"src\"\n/>\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeM, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nimport {TUI_ARROW} from './arrow.component';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport interface TuiArrowMode {\n readonly disabled: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeM | TuiSizeS>>;\n readonly interactive: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeM | TuiSizeS>>;\n}\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport const TUI_ARROW_DEFAULT_MODE: TuiArrowMode = {\n interactive: TUI_ARROW,\n disabled: TUI_ARROW,\n};\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport const TUI_ARROW_MODE = new InjectionToken(ngDevMode ? 'TUI_ARROW_MODE' : '', {\n factory: () => TUI_ARROW_DEFAULT_MODE,\n});\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport function tuiArrowModeProvider(options: Partial<TuiArrowMode>): Provider {\n return tuiProvideOptions(TUI_ARROW_MODE, options, TUI_ARROW_DEFAULT_MODE);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAYA;;AAEG;AACU,MAAA,yBAAyB,GAAoB;AACtD,IAAA,SAAS,EAAE,mBAAmB;AAC9B,IAAA,SAAS,EAAE,mBAAmB;EAChC;AAEF;;;AAGG;AACU,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,MAAM,yBAAyB;AAC3C,CAAA,EACH;AAEI,SAAU,uBAAuB,CAAC,OAAiC,EAAA;IACrE,OAAO,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,EAAE,yBAAyB,CAAC,CAAC;AACpF;;ACjBA;;AAEG;AACH,MAYa,iBAAiB,CAAA;AAZ9B,IAAA,WAAA,GAAA;QAaqB,IAAO,CAAA,OAAA,GAAQ,MAAM,CAAC,kBAAkB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;AAC5D,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAC3C,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAClC,IAAY,CAAA,YAAA,GAAG,QAAQ,CACtC,MAAM,CAAC,eAAe,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,qBAAqB,IAAI,EAAE,CAAC,KAAK,CAAC,CAChF,CAAC;AAEiB,QAAA,IAAA,CAAA,OAAO,GAAG,Q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AAW,EACZ,OAAA,EAAA,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAGrB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,kBAAkB,EAAE,WAAW;AAC/B,wBAAA,gBAAgB,EAAE,OAAO;AAC5B,qBAAA,EAAA,QAAA,EAAA,mFAAA,EAAA,MAAA,EAAA,CAAA,kPAAA,CAAA,EAAA,CAAA;;MAuBQ,SAAS,GAAG,IAAI,qBAAqB,CAAC,iBAAiB;;AEpCpE;;AAEG;AACU,MAAA,sBAAsB,GAAiB;AAChD,IAAA,WAAW,EAAE,SAAS;AACtB,IAAA,QAAQ,EAAE,SAAS;EACrB;AAEF;;AAEG;AACU,MAAA,cAAc,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,gBAAgB,GAAG,EAAE,EAAE;AAChF,IAAA,OAAO,EAAE,MAAM,sBAAsB;AACxC,CAAA,EAAE;AAEH;;AAEG;AACG,SAAU,oBAAoB,CAAC,OAA8B,EAAA;IAC/D,OAAO,iBAAiB,CAAC,cAAc,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;AAC9E;;ACpCA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-legacy-components-arrow.mjs","sources":["../../../projects/legacy/components/arrow/arrow.options.ts","../../../projects/legacy/components/arrow/arrow.component.ts","../../../projects/legacy/components/arrow/arrow.template.html","../../../projects/legacy/components/arrow/arrow.providers.ts","../../../projects/legacy/components/arrow/taiga-ui-legacy-components-arrow.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport interface TuiArrowOptions {\n readonly iconLarge: PolymorpheusContent;\n readonly iconSmall: PolymorpheusContent;\n}\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport const TUI_ARROW_DEFAULT_OPTIONS: TuiArrowOptions = {\n iconSmall: '@tui.chevron-down',\n iconLarge: '@tui.chevron-down',\n};\n\n/**\n * @deprecated: drop in v5.0\n * Default parameters for arrow component\n */\nexport const TUI_ARROW_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_ARROW_OPTIONS' : '',\n {\n factory: () => TUI_ARROW_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiArrowOptionsProvider(options: Partial<TuiArrowOptions>): Provider {\n return tuiProvideOptions(TUI_ARROW_OPTIONS, options, TUI_ARROW_DEFAULT_OPTIONS);\n}\n","import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiDropdownOpen} from '@taiga-ui/core/directives/dropdown';\nimport {tuiSizeBigger} from '@taiga-ui/core/utils/miscellaneous';\nimport {AbstractTuiControl} from '@taiga-ui/legacy/classes';\nimport {TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n PolymorpheusComponent,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\nimport {of} from 'rxjs';\n\nimport {TUI_ARROW_OPTIONS} from './arrow.options';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\n@Component({\n selector: 'tui-arrow',\n imports: [PolymorpheusOutlet, TuiIcon],\n templateUrl: './arrow.template.html',\n styleUrl: './arrow.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._rotated]': 'rotated()',\n '[class._small]': 'small',\n },\n})\nexport class TuiArrowComponent {\n private readonly control: any = inject(AbstractTuiControl, {optional: true});\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n private readonly options = inject(TUI_ARROW_OPTIONS);\n protected readonly dropdownOpen = toSignal(\n inject(TuiDropdownOpen, {optional: true})?.tuiDropdownOpenChange || of(false),\n );\n\n protected readonly rotated = computed(\n () => this.dropdownOpen() || this.control.pseudoOpen?.(),\n );\n\n protected get small(): boolean {\n return !tuiSizeBigger(this.textfieldSize.size);\n }\n\n protected get arrowIcon(): PolymorpheusContent {\n return !this.small ? this.options.iconLarge : this.options.iconSmall;\n }\n}\n\nexport const TUI_ARROW = new PolymorpheusComponent(TuiArrowComponent);\n","<tui-icon\n *polymorpheusOutlet=\"arrowIcon as src\"\n [icon]=\"src\"\n/>\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeM, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nimport {TUI_ARROW} from './arrow.component';\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport interface TuiArrowMode {\n readonly disabled: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeM | TuiSizeS>>;\n readonly interactive: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeM | TuiSizeS>>;\n}\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport const TUI_ARROW_DEFAULT_MODE: TuiArrowMode = {\n interactive: TUI_ARROW,\n disabled: TUI_ARROW,\n};\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport const TUI_ARROW_MODE = new InjectionToken(ngDevMode ? 'TUI_ARROW_MODE' : '', {\n factory: () => TUI_ARROW_DEFAULT_MODE,\n});\n\n/**\n * @deprecated: drop in v5.0 use {@link TuiChevron}\n */\nexport function tuiArrowModeProvider(options: Partial<TuiArrowMode>): Provider {\n return tuiProvideOptions(TUI_ARROW_MODE, options, TUI_ARROW_DEFAULT_MODE);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAYA;;AAEG;AACU,MAAA,yBAAyB,GA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,MAAM,sBAAsB;AACxC,CAAA;AAED;;AAEG;AACG,SAAU,oBAAoB,CAAC,OAA8B,EAAA;IAC/D,OAAO,iBAAiB,CAAC,cAAc,EAAE,OAAO,EAAE,sBAAsB,CAAC;AAC7E;;ACpCA;;AAEG;;;;"}
@@ -0,0 +1,129 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, computed, ChangeDetectionStrategy, Component, InjectionToken, Injectable, Directive, assertInInjectionContext, INJECTOR } from '@angular/core';
3
+ import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
+ import { TUI_TRUE_HANDLER } from '@taiga-ui/cdk/constants';
5
+ import * as i1 from '@taiga-ui/cdk/directives/animated';
6
+ import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
7
+ import { TuiAutoFocus } from '@taiga-ui/cdk/directives/auto-focus';
8
+ import { TuiButton } from '@taiga-ui/core/components/button';
9
+ import { TuiDialogCloseService, TUI_DIALOGS_CLOSE, TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
10
+ import { TuiBreakpointService } from '@taiga-ui/core/services';
11
+ import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
12
+ import { injectContext, PolymorpheusOutlet, PolymorpheusComponent } from '@taiga-ui/polymorpheus';
13
+ import { of, isObservable, Subject, map, merge, switchMap, exhaustMap, take, filter } from 'rxjs';
14
+ import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
15
+ import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
16
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
17
+
18
+ const REQUIRED_ERROR = new Error('Required dialog was dismissed');
19
+ function toObservable(valueOrStream) {
20
+ return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);
21
+ }
22
+ class TuiDialogComponent {
23
+ constructor() {
24
+ this.close$ = new Subject();
25
+ this.context = injectContext();
26
+ this.closeWord = inject(TUI_CLOSE_WORD);
27
+ this.icons = inject(TUI_COMMON_ICONS);
28
+ this.from = computed(() => this.size === 'fullscreen' || this.size === 'page' || this.isMobile()
29
+ ? 'translateY(100vh)'
30
+ : 'translateY(2.5rem)');
31
+ this.isMobile = toSignal(inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')));
32
+ merge(this.close$.pipe(switchMap(() => toObservable(this.context.closable))), inject(TuiDialogCloseService).pipe(exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1)))), inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)))
33
+ .pipe(filter(Boolean), takeUntilDestroyed())
34
+ .subscribe(() => {
35
+ this.close();
36
+ });
37
+ }
38
+ get size() {
39
+ return this.context.size;
40
+ }
41
+ get header() {
42
+ return this.context.header;
43
+ }
44
+ close() {
45
+ if (this.context.required) {
46
+ this.context.$implicit.error(REQUIRED_ERROR);
47
+ }
48
+ else {
49
+ this.context.$implicit.complete();
50
+ }
51
+ }
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
53
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiDialogComponent, isStandalone: true, selector: "tui-dialog-legacy", host: { properties: { "attr.data-appearance": "context.appearance", "attr.data-size": "size", "class._centered": "header", "style.--tui-from": "from()" } }, providers: [TuiDialogCloseService], hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "@if (header) {\n <header class=\"t-header\">\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n </header>\n}\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n @if (context.closable || context.dismissible) {\n <div class=\"t-buttons\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n }\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closable === Observable<false>` by design -->\n@if (context.closable) {\n <button\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n >\n {{ closeWord() }}\n </button>\n}\n", styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:2.5rem;border-radius:1.5rem}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}:host[data-size=auto]{inline-size:auto}:host[data-size=s]{inline-size:25rem}:host[data-size=s] .t-content{padding:1.5rem}:host[data-size=s] .t-heading{font:var(--tui-font-heading-5)}:host[data-size=m]{inline-size:37.5rem}:host[data-size=l]{inline-size:50rem}:host[data-size=fullscreen],:host[data-size=page]{min-inline-size:100vw;min-block-size:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}:host[data-size=fullscreen] .t-content,:host[data-size=page] .t-content{padding:3rem calc(50vw - 22.5rem)}:host[data-size=fullscreen] .t-heading,:host[data-size=page] .t-heading{font:var(--tui-font-heading-3)}:host._centered{text-align:center}:host :host-context(tui-root._mobile)[data-size]{min-inline-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;border:none;margin:auto 0 0;background:var(--tui-background-elevation-1);padding-block-end:env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size] .t-content{padding:1rem}:host :host-context(tui-root._mobile)[data-size] .t-heading{font:var(--tui-font-heading-5)}:host :host-context(tui-root._mobile)[data-size=fullscreen],:host :host-context(tui-root._mobile)[data-size=page]{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size=fullscreen] .t-close,:host :host-context(tui-root._mobile)[data-size=page] .t-close{top:max(1rem,env(safe-area-inset-top))}:host[data-size=page] .t-content,:host-context(tui-root._mobile) :host[data-size=page] .t-content{padding:0}.t-heading{margin:0 0 .5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}.t-heading_closable{padding-inline-end:2rem}.t-heading:empty{display:none}.t-header{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}:host[data-size=fullscreen] :host-context(tui-root._mobile) .t-header{flex:1}.t-content{border-radius:inherit;padding:1.75rem;background:var(--tui-background-elevation-1)}.t-content:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-content>section{border-radius:inherit}.t-filler{flex-grow:1}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:1rem;right:1rem}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:1rem}}.t-buttons{margin-block-start:1.25rem;text-align:end}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiAutoFocus, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
54
+ }
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogComponent, decorators: [{
56
+ type: Component,
57
+ args: [{ selector: 'tui-dialog-legacy', imports: [PolymorpheusOutlet, TuiAutoFocus, TuiButton], changeDetection: ChangeDetectionStrategy.Default, providers: [TuiDialogCloseService], hostDirectives: [TuiAnimated], host: {
58
+ '[attr.data-appearance]': 'context.appearance',
59
+ '[attr.data-size]': 'size',
60
+ '[class._centered]': 'header',
61
+ '[style.--tui-from]': 'from()',
62
+ }, template: "@if (header) {\n <header class=\"t-header\">\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n </header>\n}\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n @if (context.closable || context.dismissible) {\n <div class=\"t-buttons\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n }\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closable === Observable<false>` by design -->\n@if (context.closable) {\n <button\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n >\n {{ closeWord() }}\n </button>\n}\n", styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:2.5rem;border-radius:1.5rem}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}:host[data-size=auto]{inline-size:auto}:host[data-size=s]{inline-size:25rem}:host[data-size=s] .t-content{padding:1.5rem}:host[data-size=s] .t-heading{font:var(--tui-font-heading-5)}:host[data-size=m]{inline-size:37.5rem}:host[data-size=l]{inline-size:50rem}:host[data-size=fullscreen],:host[data-size=page]{min-inline-size:100vw;min-block-size:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}:host[data-size=fullscreen] .t-content,:host[data-size=page] .t-content{padding:3rem calc(50vw - 22.5rem)}:host[data-size=fullscreen] .t-heading,:host[data-size=page] .t-heading{font:var(--tui-font-heading-3)}:host._centered{text-align:center}:host :host-context(tui-root._mobile)[data-size]{min-inline-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;border:none;margin:auto 0 0;background:var(--tui-background-elevation-1);padding-block-end:env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size] .t-content{padding:1rem}:host :host-context(tui-root._mobile)[data-size] .t-heading{font:var(--tui-font-heading-5)}:host :host-context(tui-root._mobile)[data-size=fullscreen],:host :host-context(tui-root._mobile)[data-size=page]{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size=fullscreen] .t-close,:host :host-context(tui-root._mobile)[data-size=page] .t-close{top:max(1rem,env(safe-area-inset-top))}:host[data-size=page] .t-content,:host-context(tui-root._mobile) :host[data-size=page] .t-content{padding:0}.t-heading{margin:0 0 .5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}.t-heading_closable{padding-inline-end:2rem}.t-heading:empty{display:none}.t-header{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}:host[data-size=fullscreen] :host-context(tui-root._mobile) .t-header{flex:1}.t-content{border-radius:inherit;padding:1.75rem;background:var(--tui-background-elevation-1)}.t-content:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-content>section{border-radius:inherit}.t-filler{flex-grow:1}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:1rem;right:1rem}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:1rem}}.t-buttons{margin-block-start:1.25rem;text-align:end}\n"] }]
63
+ }], ctorParameters: () => [] });
64
+
65
+ const TUI_DIALOG_DEFAULT_OPTIONS = {
66
+ appearance: '',
67
+ size: 'm',
68
+ required: false,
69
+ closable: true,
70
+ dismissible: true,
71
+ label: '',
72
+ header: '',
73
+ data: undefined,
74
+ };
75
+ /**
76
+ * Default parameters for dialog component
77
+ */
78
+ const TUI_DIALOG_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_DIALOG_OPTIONS' : '', {
79
+ factory: () => TUI_DIALOG_DEFAULT_OPTIONS,
80
+ });
81
+ function tuiDialogOptionsProvider(options) {
82
+ return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);
83
+ }
84
+
85
+ class TuiDialogService extends TuiPopoverService {
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
87
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, providedIn: 'root', useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)) }); }
88
+ }
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, decorators: [{
90
+ type: Injectable,
91
+ args: [{
92
+ providedIn: 'root',
93
+ useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),
94
+ }]
95
+ }] });
96
+
97
+ class TuiDialog extends TuiPopoverDirective {
98
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialog, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
99
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDialog, isStandalone: true, selector: "ng-template[tuiDialog]", inputs: { options: ["tuiDialogOptions", "options"], open: ["tuiDialog", "open"] }, outputs: { openChange: "tuiDialogChange" }, providers: [tuiAsPopover(TuiDialogService)], usesInheritance: true, ngImport: i0 }); }
100
+ }
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialog, decorators: [{
102
+ type: Directive,
103
+ args: [{
104
+ standalone: true,
105
+ selector: 'ng-template[tuiDialog]',
106
+ inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],
107
+ outputs: ['openChange: tuiDialogChange'],
108
+ providers: [tuiAsPopover(TuiDialogService)],
109
+ }]
110
+ }] });
111
+
112
+ function tuiDialog(component, { injector, ...options } = {}) {
113
+ if (!injector) {
114
+ assertInInjectionContext(tuiDialog);
115
+ injector = inject(INJECTOR);
116
+ }
117
+ const dialogService = injector.get(TuiDialogService);
118
+ return (data) => dialogService.open(new PolymorpheusComponent(component, injector), {
119
+ ...options,
120
+ data,
121
+ });
122
+ }
123
+
124
+ /**
125
+ * Generated bundle index. Do not edit.
126
+ */
127
+
128
+ export { TUI_DIALOG_DEFAULT_OPTIONS, TUI_DIALOG_OPTIONS, TuiDialog, TuiDialogComponent, TuiDialogService, tuiDialog, tuiDialogOptionsProvider };
129
+ //# sourceMappingURL=taiga-ui-legacy-components-dialog.mjs.map