@taiga-ui/legacy 4.52.0-canary.216e347 → 4.52.0-canary.24b31eb

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 (514) 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 +1 -15
  13. package/components/multi-select/native-multi-select/native-multi-select.d.ts +1 -1
  14. package/fesm2022/taiga-ui-legacy-classes.mjs +23 -24
  15. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +6 -6
  17. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +24 -26
  19. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +130 -0
  21. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  22. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +25 -25
  23. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +26 -26
  25. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +12 -12
  27. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +23 -23
  29. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +25 -25
  31. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +20 -21
  33. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +23 -23
  35. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-legacy-components-input.mjs +15 -16
  37. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +8 -8
  39. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +50 -50
  41. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +30 -30
  43. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +9 -9
  45. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-legacy-components-select.mjs +36 -37
  47. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-legacy-components-tag.mjs +14 -15
  49. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +24 -24
  51. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +8 -8
  53. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-legacy-components.mjs +1 -15
  55. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +3 -3
  57. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +35 -35
  59. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +4 -4
  61. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +7 -7
  63. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +9 -9
  65. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +3 -4
  67. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +3 -3
  69. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +3 -3
  71. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-legacy-tokens.mjs +1 -1
  73. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-legacy.mjs +0 -1
  76. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  77. package/index.d.ts +0 -1
  78. package/package.json +6 -164
  79. package/styles/mixins/textfield.less +3 -1
  80. package/utils/icons-path-factory.d.ts +1 -1
  81. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  82. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  83. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  84. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  85. package/components/color-selector/color-selector.component.d.ts +0 -47
  86. package/components/color-selector/color-selector.module.d.ts +0 -24
  87. package/components/color-selector/color-selector.options.d.ts +0 -25
  88. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  89. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  90. package/components/color-selector/index.d.ts +0 -16
  91. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  92. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  93. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  94. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  95. package/components/color-selector/palette/palette.component.d.ts +0 -10
  96. package/components/color-selector/palette/palette.module.d.ts +0 -13
  97. package/components/color-selector/services/picker.service.d.ts +0 -15
  98. package/components/input-color/index.d.ts +0 -2
  99. package/components/input-color/input-color.component.d.ts +0 -30
  100. package/components/input-color/input-color.module.d.ts +0 -17
  101. package/components/input-copy/index.d.ts +0 -4
  102. package/components/input-copy/input-copy.component.d.ts +0 -33
  103. package/components/input-copy/input-copy.directive.d.ts +0 -11
  104. package/components/input-copy/input-copy.module.d.ts +0 -18
  105. package/components/input-copy/input-copy.options.d.ts +0 -26
  106. package/components/input-date/index.d.ts +0 -3
  107. package/components/input-date/input-date.component.d.ts +0 -62
  108. package/components/input-date/input-date.directive.d.ts +0 -19
  109. package/components/input-date/input-date.module.d.ts +0 -24
  110. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  111. package/components/input-date-multi/index.d.ts +0 -2
  112. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  113. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  114. package/components/input-month/index.d.ts +0 -3
  115. package/components/input-month/input-month.component.d.ts +0 -44
  116. package/components/input-month/input-month.directive.d.ts +0 -19
  117. package/components/input-month/input-month.module.d.ts +0 -19
  118. package/components/input-password/index.d.ts +0 -4
  119. package/components/input-password/input-password.component.d.ts +0 -33
  120. package/components/input-password/input-password.directive.d.ts +0 -15
  121. package/components/input-password/input-password.module.d.ts +0 -19
  122. package/components/input-password/input-password.options.d.ts +0 -25
  123. package/components/input-phone/index.d.ts +0 -4
  124. package/components/input-phone/input-phone.component.d.ts +0 -49
  125. package/components/input-phone/input-phone.directive.d.ts +0 -13
  126. package/components/input-phone/input-phone.module.d.ts +0 -12
  127. package/components/input-phone/input-phone.options.d.ts +0 -13
  128. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  129. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  130. package/components/input-phone/utils/index.d.ts +0 -2
  131. package/components/input-phone-international/index.d.ts +0 -3
  132. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  133. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  134. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  135. package/components/input-time/index.d.ts +0 -4
  136. package/components/input-time/input-time.component.d.ts +0 -62
  137. package/components/input-time/input-time.directive.d.ts +0 -17
  138. package/components/input-time/input-time.module.d.ts +0 -23
  139. package/components/input-time/input-time.options.d.ts +0 -42
  140. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  141. package/components/input-year/index.d.ts +0 -3
  142. package/components/input-year/input-year.component.d.ts +0 -36
  143. package/components/input-year/input-year.directive.d.ts +0 -14
  144. package/components/input-year/input-year.module.d.ts +0 -18
  145. package/components/island/index.d.ts +0 -1
  146. package/components/island/island.directive.d.ts +0 -20
  147. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  148. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  149. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -10
  150. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  151. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  152. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  153. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  154. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  155. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  156. package/components/sheet/index.d.ts +0 -14
  157. package/components/sheet/sheet-options.d.ts +0 -27
  158. package/components/sheet/sheet-tokens.d.ts +0 -18
  159. package/components/sheet/sheet.d.ts +0 -21
  160. package/components/sheet/sheet.directive.d.ts +0 -17
  161. package/components/sheet/sheet.module.d.ts +0 -24
  162. package/components/sheet/sheet.service.d.ts +0 -17
  163. package/components/svg/content-processor.d.ts +0 -19
  164. package/components/svg/deprecated-icons.d.ts +0 -5
  165. package/components/svg/index.d.ts +0 -5
  166. package/components/svg/svg-options.d.ts +0 -50
  167. package/components/svg/svg.component.d.ts +0 -50
  168. package/components/svg/svg.service.d.ts +0 -21
  169. package/components/table-bar/index.d.ts +0 -4
  170. package/components/table-bar/table-bar.component.d.ts +0 -17
  171. package/components/table-bar/table-bar.directive.d.ts +0 -11
  172. package/components/table-bar/table-bar.options.d.ts +0 -31
  173. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  174. package/components/table-bar/table-bars.service.d.ts +0 -11
  175. package/esm2022/classes/abstract-native-select.mjs +0 -49
  176. package/esm2022/classes/abstract-textfield-host.mjs +0 -37
  177. package/esm2022/classes/control.mjs +0 -181
  178. package/esm2022/classes/controller.mjs +0 -18
  179. package/esm2022/classes/index.mjs +0 -10
  180. package/esm2022/classes/interactive.mjs +0 -82
  181. package/esm2022/classes/multiple-control.mjs +0 -21
  182. package/esm2022/classes/named-day.mjs +0 -14
  183. package/esm2022/classes/nullable-control.mjs +0 -18
  184. package/esm2022/classes/stringifiable-item.mjs +0 -14
  185. package/esm2022/classes/taiga-ui-legacy-classes.mjs +0 -5
  186. package/esm2022/components/arrow/arrow.component.mjs +0 -41
  187. package/esm2022/components/arrow/arrow.options.mjs +0 -20
  188. package/esm2022/components/arrow/arrow.providers.mjs +0 -23
  189. package/esm2022/components/arrow/index.mjs +0 -4
  190. package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +0 -5
  191. package/esm2022/components/color-selector/color-edit/color-edit.component.mjs +0 -59
  192. package/esm2022/components/color-selector/color-edit/color-edit.module.mjs +0 -56
  193. package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +0 -70
  194. package/esm2022/components/color-selector/color-picker/color-picker.module.mjs +0 -25
  195. package/esm2022/components/color-selector/color-selector.component.mjs +0 -191
  196. package/esm2022/components/color-selector/color-selector.module.mjs +0 -67
  197. package/esm2022/components/color-selector/color-selector.options.mjs +0 -78
  198. package/esm2022/components/color-selector/flat-picker/flat-picker.component.mjs +0 -34
  199. package/esm2022/components/color-selector/flat-picker/flat-picker.module.mjs +0 -23
  200. package/esm2022/components/color-selector/index.mjs +0 -17
  201. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.component.mjs +0 -61
  202. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.module.mjs +0 -23
  203. package/esm2022/components/color-selector/linear-picker/linear-picker.component.mjs +0 -31
  204. package/esm2022/components/color-selector/linear-picker/linear-picker.module.mjs +0 -23
  205. package/esm2022/components/color-selector/palette/palette.component.mjs +0 -23
  206. package/esm2022/components/color-selector/palette/palette.module.mjs +0 -25
  207. package/esm2022/components/color-selector/services/picker.service.mjs +0 -31
  208. package/esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs +0 -5
  209. package/esm2022/components/combo-box/combo-box-strict.directive.mjs +0 -34
  210. package/esm2022/components/combo-box/combo-box.component.mjs +0 -183
  211. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -28
  212. package/esm2022/components/combo-box/combo-box.module.mjs +0 -71
  213. package/esm2022/components/combo-box/index.mjs +0 -5
  214. package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +0 -5
  215. package/esm2022/components/index.mjs +0 -34
  216. package/esm2022/components/input/index.mjs +0 -4
  217. package/esm2022/components/input/input.component.mjs +0 -97
  218. package/esm2022/components/input/input.directive.mjs +0 -25
  219. package/esm2022/components/input/input.module.mjs +0 -42
  220. package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +0 -5
  221. package/esm2022/components/input-color/index.mjs +0 -3
  222. package/esm2022/components/input-color/input-color.component.mjs +0 -85
  223. package/esm2022/components/input-color/input-color.module.mjs +0 -43
  224. package/esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs +0 -5
  225. package/esm2022/components/input-copy/index.mjs +0 -5
  226. package/esm2022/components/input-copy/input-copy.component.mjs +0 -105
  227. package/esm2022/components/input-copy/input-copy.directive.mjs +0 -24
  228. package/esm2022/components/input-copy/input-copy.module.mjs +0 -55
  229. package/esm2022/components/input-copy/input-copy.options.mjs +0 -24
  230. package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +0 -5
  231. package/esm2022/components/input-date/index.mjs +0 -4
  232. package/esm2022/components/input-date/input-date.component.mjs +0 -220
  233. package/esm2022/components/input-date/input-date.directive.mjs +0 -40
  234. package/esm2022/components/input-date/input-date.module.mjs +0 -75
  235. package/esm2022/components/input-date/native-date/native-date.component.mjs +0 -53
  236. package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +0 -5
  237. package/esm2022/components/input-date-multi/index.mjs +0 -3
  238. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +0 -207
  239. package/esm2022/components/input-date-multi/input-date-multi.module.mjs +0 -67
  240. package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +0 -5
  241. package/esm2022/components/input-date-range/index.mjs +0 -4
  242. package/esm2022/components/input-date-range/input-date-range.component.mjs +0 -256
  243. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -36
  244. package/esm2022/components/input-date-range/input-date-range.module.mjs +0 -71
  245. package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +0 -5
  246. package/esm2022/components/input-date-time/index.mjs +0 -4
  247. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -315
  248. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -37
  249. package/esm2022/components/input-date-time/input-date-time.module.mjs +0 -78
  250. package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +0 -49
  251. package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +0 -5
  252. package/esm2022/components/input-month/index.mjs +0 -4
  253. package/esm2022/components/input-month/input-month.component.mjs +0 -135
  254. package/esm2022/components/input-month/input-month.directive.mjs +0 -46
  255. package/esm2022/components/input-month/input-month.module.mjs +0 -57
  256. package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +0 -5
  257. package/esm2022/components/input-month-range/index.mjs +0 -4
  258. package/esm2022/components/input-month-range/input-month-range.component.mjs +0 -123
  259. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -52
  260. package/esm2022/components/input-month-range/input-month-range.module.mjs +0 -53
  261. package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +0 -5
  262. package/esm2022/components/input-number/index.mjs +0 -5
  263. package/esm2022/components/input-number/input-number.component.mjs +0 -284
  264. package/esm2022/components/input-number/input-number.directive.mjs +0 -38
  265. package/esm2022/components/input-number/input-number.module.mjs +0 -48
  266. package/esm2022/components/input-number/input-number.options.mjs +0 -30
  267. package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +0 -5
  268. package/esm2022/components/input-password/index.mjs +0 -5
  269. package/esm2022/components/input-password/input-password.component.mjs +0 -80
  270. package/esm2022/components/input-password/input-password.directive.mjs +0 -34
  271. package/esm2022/components/input-password/input-password.module.mjs +0 -59
  272. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  273. package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +0 -5
  274. package/esm2022/components/input-phone/index.mjs +0 -5
  275. package/esm2022/components/input-phone/input-phone.component.mjs +0 -216
  276. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -34
  277. package/esm2022/components/input-phone/input-phone.module.mjs +0 -44
  278. package/esm2022/components/input-phone/input-phone.options.mjs +0 -18
  279. package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +0 -5
  280. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  281. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  282. package/esm2022/components/input-phone/utils/index.mjs +0 -3
  283. package/esm2022/components/input-phone-international/index.mjs +0 -4
  284. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -178
  285. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -25
  286. package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +0 -5
  287. package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +0 -10
  288. package/esm2022/components/input-range/index.mjs +0 -3
  289. package/esm2022/components/input-range/input-range.component.mjs +0 -207
  290. package/esm2022/components/input-range/input-range.module.mjs +0 -55
  291. package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +0 -5
  292. package/esm2022/components/input-slider/index.mjs +0 -3
  293. package/esm2022/components/input-slider/input-slider.component.mjs +0 -154
  294. package/esm2022/components/input-slider/input-slider.module.mjs +0 -48
  295. package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +0 -5
  296. package/esm2022/components/input-tag/index.mjs +0 -4
  297. package/esm2022/components/input-tag/input-tag.component.mjs +0 -436
  298. package/esm2022/components/input-tag/input-tag.module.mjs +0 -67
  299. package/esm2022/components/input-tag/input-tag.options.mjs +0 -27
  300. package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +0 -5
  301. package/esm2022/components/input-time/index.mjs +0 -5
  302. package/esm2022/components/input-time/input-time.component.mjs +0 -238
  303. package/esm2022/components/input-time/input-time.directive.mjs +0 -40
  304. package/esm2022/components/input-time/input-time.module.mjs +0 -71
  305. package/esm2022/components/input-time/input-time.options.mjs +0 -39
  306. package/esm2022/components/input-time/native-time/native-time.component.mjs +0 -67
  307. package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +0 -5
  308. package/esm2022/components/input-year/index.mjs +0 -4
  309. package/esm2022/components/input-year/input-year.component.mjs +0 -110
  310. package/esm2022/components/input-year/input-year.directive.mjs +0 -32
  311. package/esm2022/components/input-year/input-year.module.mjs +0 -53
  312. package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +0 -5
  313. package/esm2022/components/island/index.mjs +0 -2
  314. package/esm2022/components/island/island.directive.mjs +0 -62
  315. package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +0 -5
  316. package/esm2022/components/multi-select/hide-selected.pipe.mjs +0 -44
  317. package/esm2022/components/multi-select/index.mjs +0 -11
  318. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -98
  319. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -94
  320. package/esm2022/components/multi-select/multi-select.component.mjs +0 -233
  321. package/esm2022/components/multi-select/multi-select.directive.mjs +0 -32
  322. package/esm2022/components/multi-select/multi-select.module.mjs +0 -113
  323. package/esm2022/components/multi-select/multi-select.options.mjs +0 -17
  324. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +0 -60
  325. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +0 -56
  326. package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +0 -19
  327. package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +0 -5
  328. package/esm2022/components/multi-select-option/index.mjs +0 -3
  329. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +0 -25
  330. package/esm2022/components/multi-select-option/multi-select-option.module.mjs +0 -20
  331. package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +0 -5
  332. package/esm2022/components/primitive-textfield/index.mjs +0 -7
  333. package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +0 -17
  334. package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +0 -2
  335. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +0 -254
  336. package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +0 -33
  337. package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +0 -66
  338. package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +0 -5
  339. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +0 -39
  340. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +0 -66
  341. package/esm2022/components/select/index.mjs +0 -7
  342. package/esm2022/components/select/native-select/native-select-group.component.mjs +0 -64
  343. package/esm2022/components/select/native-select/native-select.component.mjs +0 -60
  344. package/esm2022/components/select/select.component.mjs +0 -119
  345. package/esm2022/components/select/select.directive.mjs +0 -34
  346. package/esm2022/components/select/select.module.mjs +0 -87
  347. package/esm2022/components/select/select.options.mjs +0 -24
  348. package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +0 -5
  349. package/esm2022/components/select-option/index.mjs +0 -3
  350. package/esm2022/components/select-option/select-option.component.mjs +0 -65
  351. package/esm2022/components/select-option/select-option.module.mjs +0 -21
  352. package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +0 -5
  353. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +0 -117
  354. package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +0 -42
  355. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +0 -27
  356. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +0 -31
  357. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +0 -46
  358. package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +0 -39
  359. package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +0 -38
  360. package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +0 -52
  361. package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +0 -77
  362. package/esm2022/components/sheet/index.mjs +0 -14
  363. package/esm2022/components/sheet/sheet-options.mjs +0 -24
  364. package/esm2022/components/sheet/sheet-tokens.mjs +0 -17
  365. package/esm2022/components/sheet/sheet.directive.mjs +0 -40
  366. package/esm2022/components/sheet/sheet.mjs +0 -2
  367. package/esm2022/components/sheet/sheet.module.mjs +0 -75
  368. package/esm2022/components/sheet/sheet.service.mjs +0 -52
  369. package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +0 -5
  370. package/esm2022/components/svg/content-processor.mjs +0 -41
  371. package/esm2022/components/svg/deprecated-icons.mjs +0 -63
  372. package/esm2022/components/svg/index.mjs +0 -6
  373. package/esm2022/components/svg/svg-options.mjs +0 -83
  374. package/esm2022/components/svg/svg.component.mjs +0 -150
  375. package/esm2022/components/svg/svg.service.mjs +0 -64
  376. package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +0 -5
  377. package/esm2022/components/table-bar/index.mjs +0 -5
  378. package/esm2022/components/table-bar/table-bar.component.mjs +0 -37
  379. package/esm2022/components/table-bar/table-bar.directive.mjs +0 -25
  380. package/esm2022/components/table-bar/table-bar.options.mjs +0 -34
  381. package/esm2022/components/table-bar/table-bars-host.component.mjs +0 -39
  382. package/esm2022/components/table-bar/table-bars.service.mjs +0 -22
  383. package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +0 -5
  384. package/esm2022/components/tag/index.mjs +0 -4
  385. package/esm2022/components/tag/tag.component.mjs +0 -158
  386. package/esm2022/components/tag/tag.module.mjs +0 -42
  387. package/esm2022/components/tag/tag.options.mjs +0 -26
  388. package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +0 -5
  389. package/esm2022/components/taiga-ui-legacy-components.mjs +0 -5
  390. package/esm2022/components/textarea/index.mjs +0 -4
  391. package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +0 -5
  392. package/esm2022/components/textarea/textarea.component.mjs +0 -175
  393. package/esm2022/components/textarea/textarea.directive.mjs +0 -25
  394. package/esm2022/components/textarea/textarea.module.mjs +0 -68
  395. package/esm2022/components/tooltip/index.mjs +0 -3
  396. package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +0 -5
  397. package/esm2022/components/tooltip/tooltip.component.mjs +0 -27
  398. package/esm2022/components/tooltip/tooltip.module.mjs +0 -24
  399. package/esm2022/directives/index.mjs +0 -6
  400. package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +0 -2
  401. package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +0 -44
  402. package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -5
  403. package/esm2022/directives/taiga-ui-legacy-directives.mjs +0 -5
  404. package/esm2022/directives/textfield-controller/index.mjs +0 -15
  405. package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +0 -5
  406. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +0 -34
  407. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +0 -28
  408. package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +0 -72
  409. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +0 -44
  410. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +0 -28
  411. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +0 -28
  412. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +0 -24
  413. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +0 -24
  414. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +0 -32
  415. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +0 -28
  416. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +0 -28
  417. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +0 -28
  418. package/esm2022/directives/textfield-controller/textfield.controller.mjs +0 -49
  419. package/esm2022/directives/textfield-controller/textfield.options.mjs +0 -21
  420. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  421. package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -5
  422. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -30
  423. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -15
  424. package/esm2022/directives/value-accessor/index.mjs +0 -4
  425. package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +0 -5
  426. package/esm2022/directives/value-accessor/value-accessor.directive.mjs +0 -17
  427. package/esm2022/directives/value-accessor/value-accessor.module.mjs +0 -17
  428. package/esm2022/directives/value-accessor/value-accessor.provider.mjs +0 -10
  429. package/esm2022/directives/wrapper/index.mjs +0 -3
  430. package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +0 -5
  431. package/esm2022/directives/wrapper/wrapper.directive.mjs +0 -77
  432. package/esm2022/directives/wrapper/wrapper.module.mjs +0 -20
  433. package/esm2022/index.mjs +0 -8
  434. package/esm2022/pipes/format-phone/format-phone.pipe.mjs +0 -54
  435. package/esm2022/pipes/format-phone/index.mjs +0 -2
  436. package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +0 -5
  437. package/esm2022/pipes/index.mjs +0 -4
  438. package/esm2022/pipes/iso-to-country-code/index.mjs +0 -2
  439. package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +0 -44
  440. package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -5
  441. package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +0 -5
  442. package/esm2022/pipes/to-country-code/index.mjs +0 -2
  443. package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +0 -5
  444. package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +0 -74
  445. package/esm2022/services/index.mjs +0 -2
  446. package/esm2022/services/static-request.service.mjs +0 -36
  447. package/esm2022/services/taiga-ui-legacy-services.mjs +0 -5
  448. package/esm2022/taiga-ui-legacy.mjs +0 -5
  449. package/esm2022/tokens/countries-masks.mjs +0 -257
  450. package/esm2022/tokens/focusable-item-accessor.mjs +0 -14
  451. package/esm2022/tokens/fonts-ready.mjs +0 -10
  452. package/esm2022/tokens/icons.mjs +0 -9
  453. package/esm2022/tokens/index.mjs +0 -15
  454. package/esm2022/tokens/is-apple.mjs +0 -11
  455. package/esm2022/tokens/is-chromium.mjs +0 -10
  456. package/esm2022/tokens/is-firefox.mjs +0 -11
  457. package/esm2022/tokens/is-stackblitz.mjs +0 -9
  458. package/esm2022/tokens/month-formatter.mjs +0 -18
  459. package/esm2022/tokens/sanitizer.mjs +0 -7
  460. package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +0 -5
  461. package/esm2022/tokens/textfield-appearance.mjs +0 -10
  462. package/esm2022/tokens/textfield-host.mjs +0 -14
  463. package/esm2022/tokens/touch-supported.mjs +0 -9
  464. package/esm2022/tokens/value-accessor.mjs +0 -7
  465. package/esm2022/utils/capitalize-first-letter.mjs +0 -7
  466. package/esm2022/utils/date-mode-maskito-adapter.mjs +0 -9
  467. package/esm2022/utils/format-phone.mjs +0 -60
  468. package/esm2022/utils/get-border.mjs +0 -23
  469. package/esm2022/utils/get-max-allowed-phone-length.mjs +0 -26
  470. package/esm2022/utils/get-safe-area-size.mjs +0 -18
  471. package/esm2022/utils/icons-path-factory.mjs +0 -22
  472. package/esm2022/utils/index.mjs +0 -14
  473. package/esm2022/utils/is-apple.mjs +0 -6
  474. package/esm2022/utils/is-presumed-html-string.mjs +0 -8
  475. package/esm2022/utils/iso-to-country-code.mjs +0 -16
  476. package/esm2022/utils/not-kz-region.mjs +0 -24
  477. package/esm2022/utils/process-icon.mjs +0 -34
  478. package/esm2022/utils/specific-dropdown-controllers.mjs +0 -9
  479. package/esm2022/utils/status.mjs +0 -2
  480. package/esm2022/utils/taiga-ui-legacy-utils.mjs +0 -5
  481. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -730
  482. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  483. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  484. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  485. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  486. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  487. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  488. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  489. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  490. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  491. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  492. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  493. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  494. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  495. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  496. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  497. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
  498. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  499. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -434
  500. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  501. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  502. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  503. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  504. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  505. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -574
  506. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  507. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -389
  508. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  509. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -145
  510. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
  511. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  512. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  513. package/services/index.d.ts +0 -1
  514. package/services/static-request.service.d.ts +0 -11
@@ -1,24 +1,23 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, EventEmitter, TemplateRef, Component, ChangeDetectionStrategy, ContentChild, ViewChild, Input, Output, Directive, NgModule } from '@angular/core';
2
+ import { inject, EventEmitter, TemplateRef, Output, Input, ContentChild, ViewChild, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
3
3
  import { TUI_STRICT_MATCHER } from '@taiga-ui/cdk/constants';
4
- import { tuiIsNativeFocused } from '@taiga-ui/cdk/utils/focus';
4
+ import { tuiIsFocused } from '@taiga-ui/cdk/utils/focus';
5
5
  import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
6
- import { tuiAsDataListHost, tuiAsOptionContent, TUI_DATA_LIST_ACCESSOR, TuiDataListDirective } from '@taiga-ui/core/components/data-list';
6
+ import { TUI_DATA_LIST_ACCESSOR, TuiDataListDirective, tuiAsDataListHost, tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
7
7
  import * as i1 from '@taiga-ui/core/directives/dropdown';
8
8
  import { TuiDropdownOpen, TuiDropdownFixed, TuiDropdown } from '@taiga-ui/core/directives/dropdown';
9
9
  import { TUI_ITEMS_HANDLERS } from '@taiga-ui/kit/tokens';
10
10
  import { AbstractTuiNullableControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
11
11
  import { TUI_ARROW_MODE, TuiArrowComponent } from '@taiga-ui/legacy/components/arrow';
12
- import * as i4 from '@taiga-ui/legacy/components/primitive-textfield';
13
- import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldComponent } from '@taiga-ui/legacy/components/primitive-textfield';
12
+ import * as i3 from '@taiga-ui/legacy/components/primitive-textfield';
13
+ import { TuiPrimitiveTextfieldComponent, TuiTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
14
14
  import { TUI_SELECT_OPTION, TuiSelectOptionModule } from '@taiga-ui/legacy/components/select-option';
15
- import * as i5 from '@taiga-ui/legacy/directives';
15
+ import * as i4 from '@taiga-ui/legacy/directives';
16
16
  import { TUI_TEXTFIELD_SIZE, TuiWrapperModule, TuiTextfieldControllerModule, TuiLegacyDropdownOpenMonitorDirective } from '@taiga-ui/legacy/directives';
17
17
  import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
18
- import * as i2 from '@angular/common';
19
- import { CommonModule } from '@angular/common';
20
- import * as i3 from '@taiga-ui/polymorpheus';
18
+ import * as i2 from '@taiga-ui/polymorpheus';
21
19
  import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
20
+ import { CommonModule } from '@angular/common';
22
21
 
23
22
  /**
24
23
  * TODO(v5): delete it
@@ -45,8 +44,7 @@ class TuiComboBoxComponent extends AbstractTuiNullableControl {
45
44
  return this.textfield?.nativeFocusableElement ?? null;
46
45
  }
47
46
  get focused() {
48
- return (tuiIsNativeFocused(this.nativeFocusableElement) ||
49
- !!this.dropdown?.tuiDropdownOpen);
47
+ return (tuiIsFocused(this.nativeFocusableElement) || !!this.dropdown?.tuiDropdownOpen);
50
48
  }
51
49
  get nativeValue() {
52
50
  return this.value === null ? this.search || '' : this.stringify(this.value);
@@ -137,15 +135,15 @@ class TuiComboBoxComponent extends AbstractTuiNullableControl {
137
135
  this.nativeFocusableElement.focus({ preventScroll });
138
136
  }
139
137
  }
140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiComboBoxComponent, selector: "tui-combo-box", inputs: { stringify: "stringify", strictMatcher: "strictMatcher", identityMatcher: "identityMatcher", valueContent: "valueContent", strict: "strict", search: "search" }, outputs: { searchChange: "searchChange" }, host: { properties: { "attr.data-size": "size" } }, providers: [
138
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
139
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiComboBoxComponent, isStandalone: false, selector: "tui-combo-box", inputs: { stringify: "stringify", strictMatcher: "strictMatcher", identityMatcher: "identityMatcher", valueContent: "valueContent", strict: "strict", search: "search" }, outputs: { searchChange: "searchChange" }, host: { properties: { "attr.data-size": "size" } }, providers: [
142
140
  tuiAsFocusableItemAccessor(TuiComboBoxComponent),
143
141
  tuiAsDataListHost(TuiComboBoxComponent),
144
142
  tuiAsControl(TuiComboBoxComponent),
145
143
  tuiAsOptionContent(TUI_SELECT_OPTION),
146
- ], queries: [{ propertyName: "accessor", first: true, predicate: TUI_DATA_LIST_ACCESSOR, descendants: true }, { propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "dropdown", first: true, predicate: TuiDropdownOpen, descendants: true }, { propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.TuiDropdownFixed }], ngImport: i0, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <div\n *ngIf=\"showValueTemplate\"\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\n </div>\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;inline-size:100%;align-items:center}.t-icon{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i4.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i4.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i5.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i5.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i5.TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "directive", type: i1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
144
+ ], queries: [{ propertyName: "accessor", first: true, predicate: TUI_DATA_LIST_ACCESSOR, descendants: true }, { propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "dropdown", first: true, predicate: TuiDropdownOpen, descendants: true }, { propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.TuiDropdownFixed }], ngImport: i0, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n @if (showValueTemplate) {\n <div\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\n </div>\n }\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;inline-size:100%;align-items:center}.t-icon{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: i2.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i3.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i3.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i4.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i4.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i4.TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "directive", type: i1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
147
145
  }
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxComponent, decorators: [{
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxComponent, decorators: [{
149
147
  type: Component,
150
148
  args: [{ standalone: false, selector: 'tui-combo-box', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
151
149
  tuiAsFocusableItemAccessor(TuiComboBoxComponent),
@@ -154,7 +152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
154
152
  tuiAsOptionContent(TUI_SELECT_OPTION),
155
153
  ], hostDirectives: [TuiDropdownFixed], host: {
156
154
  '[attr.data-size]': 'size',
157
- }, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <div\n *ngIf=\"showValueTemplate\"\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\n </div>\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;inline-size:100%;align-items:center}.t-icon{pointer-events:auto}\n"] }]
155
+ }, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n @if (showValueTemplate) {\n <div\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\n </div>\n }\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;inline-size:100%;align-items:center}.t-icon{pointer-events:auto}\n"] }]
158
156
  }], propDecorators: { accessor: [{
159
157
  type: ContentChild,
160
158
  args: [TUI_DATA_LIST_ACCESSOR]
@@ -194,10 +192,10 @@ class TuiComboBoxDirective extends AbstractTuiTextfieldHost {
194
192
  onValueChange(value) {
195
193
  this.host.onValueChange(value);
196
194
  }
197
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
198
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiComboBoxDirective, selector: "tui-combo-box", providers: [tuiAsTextfieldHost(TuiComboBoxDirective)], usesInheritance: true, ngImport: i0 }); }
195
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
196
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiComboBoxDirective, isStandalone: false, selector: "tui-combo-box", providers: [tuiAsTextfieldHost(TuiComboBoxDirective)], usesInheritance: true, ngImport: i0 }); }
199
197
  }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxDirective, decorators: [{
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxDirective, decorators: [{
201
199
  type: Directive,
202
200
  args: [{
203
201
  standalone: false,
@@ -220,10 +218,10 @@ class TuiComboBoxStrictDirective {
220
218
  this.comboBox.value = this.comboBox.search;
221
219
  }
222
220
  }
223
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxStrictDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
224
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiComboBoxStrictDirective, selector: "tui-combo-box[strict]", inputs: { strict: "strict" }, host: { listeners: { "input": "onInput()" } }, ngImport: i0 }); }
221
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxStrictDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
222
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiComboBoxStrictDirective, isStandalone: false, selector: "tui-combo-box[strict]", inputs: { strict: "strict" }, host: { listeners: { "input": "onInput()" } }, ngImport: i0 }); }
225
223
  }
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxStrictDirective, decorators: [{
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxStrictDirective, decorators: [{
227
225
  type: Directive,
228
226
  args: [{
229
227
  standalone: false,
@@ -241,8 +239,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
241
239
  * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead
242
240
  */
243
241
  class TuiComboBoxModule {
244
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
245
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxModule, declarations: [TuiComboBoxComponent,
242
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
243
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, declarations: [TuiComboBoxComponent,
246
244
  TuiComboBoxStrictDirective,
247
245
  TuiComboBoxDirective], imports: [CommonModule,
248
246
  PolymorpheusOutlet,
@@ -256,14 +254,14 @@ class TuiComboBoxModule {
256
254
  TuiComboBoxStrictDirective,
257
255
  TuiComboBoxDirective,
258
256
  TuiTextfieldComponent, i1.TuiDropdownOptionsDirective, i1.TuiDropdownDriverDirective, i1.TuiDropdownDirective, i1.TuiDropdownComponent, i1.TuiDropdownOpen, i1.TuiDropdownOpenLegacy, i1.TuiDropdownPortal, i1.TuiDropdownManual, i1.TuiDropdownHover, i1.TuiDropdownContext, i1.TuiDropdownPosition, i1.TuiDropdownPositionSided, i1.TuiDropdownSelection] }); }
259
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxModule, imports: [CommonModule,
257
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, imports: [CommonModule,
260
258
  TuiPrimitiveTextfieldModule,
261
259
  TuiSelectOptionModule,
262
260
  TuiArrowComponent,
263
261
  TuiWrapperModule,
264
262
  TuiTextfieldControllerModule, i1.TuiDropdownComponent] }); }
265
263
  }
266
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiComboBoxModule, decorators: [{
264
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiComboBoxModule, decorators: [{
267
265
  type: NgModule,
268
266
  args: [{
269
267
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-combo-box.mjs","sources":["../../../projects/legacy/components/combo-box/combo-box.component.ts","../../../projects/legacy/components/combo-box/combo-box.template.html","../../../projects/legacy/components/combo-box/combo-box.directive.ts","../../../projects/legacy/components/combo-box/combo-box-strict.directive.ts","../../../projects/legacy/components/combo-box/combo-box.module.ts","../../../projects/legacy/components/combo-box/taiga-ui-legacy-components-combo-box.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n EventEmitter,\n inject,\n Input,\n Output,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {TUI_STRICT_MATCHER} from '@taiga-ui/cdk/constants';\nimport {type TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {type TuiContext, type TuiStringMatcher} from '@taiga-ui/cdk/types';\nimport {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_DATA_LIST_ACCESSOR,\n tuiAsDataListHost,\n tuiAsOptionContent,\n type TuiDataListAccessor,\n TuiDataListDirective,\n type TuiDataListHost,\n} from '@taiga-ui/core/components/data-list';\nimport {TuiDropdownFixed, TuiDropdownOpen} from '@taiga-ui/core/directives/dropdown';\nimport {\n type TuiSizeL,\n type TuiSizeM,\n type TuiSizeS,\n type TuiValueContentContext,\n} from '@taiga-ui/core/types';\nimport {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiNullableControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TUI_ARROW_MODE} from '@taiga-ui/legacy/components/arrow';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/legacy/components/select-option';\nimport {TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-combo-box',\n templateUrl: './combo-box.template.html',\n styleUrls: ['./combo-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiComboBoxComponent),\n tuiAsDataListHost(TuiComboBoxComponent),\n tuiAsControl(TuiComboBoxComponent),\n tuiAsOptionContent(TUI_SELECT_OPTION),\n ],\n hostDirectives: [TuiDropdownFixed],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiComboBoxComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @ContentChild(TUI_DATA_LIST_ACCESSOR as any)\n private readonly accessor?: TuiDataListAccessor<T>;\n\n @ViewChild(TuiDropdownOpen)\n private readonly dropdown?: TuiDropdownOpen;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly arrowMode = inject(TUI_ARROW_MODE);\n private readonly itemsHandlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n protected readonly datalist: PolymorpheusContent<TuiContext<TuiActiveZone>>;\n\n @Input()\n public stringify: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n public strictMatcher: TuiStringMatcher<T> | null = TUI_STRICT_MATCHER;\n\n @Input()\n public identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\n\n @Input()\n public valueContent: PolymorpheusContent<TuiValueContentContext<T>>;\n\n @Input()\n public strict = true;\n\n @Input()\n public search: string | null = null;\n\n @Output()\n public readonly searchChange = new EventEmitter<string | null>();\n\n public open = false;\n\n public get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n public get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield?.nativeFocusableElement ?? null;\n }\n\n public get focused(): boolean {\n return (\n tuiIsNativeFocused(this.nativeFocusableElement) ||\n !!this.dropdown?.tuiDropdownOpen\n );\n }\n\n public get nativeValue(): string {\n return this.value === null ? this.search || '' : this.stringify(this.value);\n }\n\n public checkOption(option: T): void {\n if (!this.isStrictMatch(option)) {\n return;\n }\n\n this.value = option;\n this.updateSearch(null);\n }\n\n public handleOption(item: T): void {\n this.focusInput();\n this.close();\n this.updateSearch(null);\n this.value = item;\n\n if (this.value) {\n this.setNativeValue(this.stringify(item));\n }\n }\n\n public onValueChange(value: string): void {\n this.updateSearch(value);\n\n const match = this.accessor\n ?.getOptions()\n .find((item) => this.isStrictMatch(item));\n\n if (match !== undefined) {\n this.value = match;\n this.updateSearch(null);\n\n return;\n }\n\n if (this.strict || this.search === '') {\n this.value = null;\n }\n\n // Clearing sets the empty value, the dropdown should not be opened on clear.\n if (this.search !== '') {\n this.open = true;\n }\n }\n\n public toggle(): void {\n if (this.interactive) {\n this.open = !this.open;\n }\n }\n\n protected get arrow(): PolymorpheusContent<\n TuiContext<TuiSizeL | TuiSizeM | TuiSizeS>\n > {\n return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;\n }\n\n protected get showValueTemplate(): boolean {\n return tuiIsPresent(this.value) && !this.focused;\n }\n\n protected get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.nativeValue;\n }\n\n protected onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n protected onFieldKeyDownEnter(event: Event): void {\n if (this.open) {\n event.preventDefault();\n }\n\n const options = this.accessor?.getOptions() || [];\n\n if (options.length !== 1) {\n return;\n }\n\n this.value = options[0] ?? null;\n this.updateSearch(null);\n this.close();\n }\n\n private isStrictMatch(item: T): boolean {\n return !!this.search && !!this.strictMatcher?.(item, this.search, this.stringify);\n }\n\n private close(): void {\n this.open = false;\n }\n\n private updateSearch(search: string | null): void {\n if (this.search === search) {\n return;\n }\n\n this.search = search;\n this.searchChange.emit(search);\n }\n\n private setNativeValue(value: string): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n\n private focusInput(preventScroll = false): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus({preventScroll});\n }\n }\n}\n","<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <div\n *ngIf=\"showValueTemplate\"\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\n </div>\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiComboBoxComponent} from './combo-box.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-combo-box',\n providers: [tuiAsTextfieldHost(TuiComboBoxDirective)],\n})\nexport class TuiComboBoxDirective extends AbstractTuiTextfieldHost<\n TuiComboBoxComponent<unknown>\n> {\n public override get value(): string {\n return this.host.nativeValue;\n }\n\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {Directive, inject, Input} from '@angular/core';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-combo-box[strict]',\n host: {\n '(input)': 'onInput()',\n },\n})\nexport class TuiComboBoxStrictDirective<T> {\n private readonly comboBox = inject(TuiComboBoxComponent<T | string>);\n\n @Input()\n public strict = true;\n\n protected onInput(): void {\n if (!this.strict && this.comboBox.search) {\n this.comboBox.value = this.comboBox.search;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\nimport {TuiArrowComponent} from '@taiga-ui/legacy/components/arrow';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiSelectOptionModule} from '@taiga-ui/legacy/components/select-option';\nimport {\n TuiLegacyDropdownOpenMonitorDirective,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\nimport {TuiComboBoxDirective} from './combo-box.directive';\nimport {TuiComboBoxStrictDirective} from './combo-box-strict.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiPrimitiveTextfieldModule,\n TuiSelectOptionModule,\n TuiArrowComponent,\n TuiWrapperModule,\n TuiTextfieldControllerModule,\n TuiLegacyDropdownOpenMonitorDirective,\n ...TuiDropdown,\n ],\n declarations: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n ],\n exports: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n TuiTextfieldComponent,\n ...TuiDropdown,\n ],\n})\nexport class TuiComboBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA2CA;;;AAGG;AACH,MAiBa,oBACT,SAAQ,0BAA6B,CAAA;AAlBzC,IAAA,WAAA,GAAA;;AA8BqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AACnC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAsB,kBAAkB,CAAC,CAAC;AAChE,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAMrD,QAAA,IAAA,CAAA,SAAS,GAAqC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC;QAG3E,IAAa,CAAA,aAAA,GAA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AC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,oBAAoB;wBACpB,2BAA2B;wBAC3B,qBAAqB;wBACrB,iBAAiB;wBACjB,gBAAgB;wBAChB,4BAA4B;wBAC5B,qCAAqC;AACrC,wBAAA,GAAG,WAAW;AACjB,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,oBAAoB;wBACpB,0BAA0B;wBAC1B,oBAAoB;AACvB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,0BAA0B;wBAC1B,oBAAoB;wBACpB,qBAAqB;AACrB,wBAAA,GAAG,WAAW;AACjB,qBAAA;AACJ,iBAAA,CAAA;;;ACjDD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-legacy-components-combo-box.mjs","sources":["../../../projects/legacy/components/combo-box/combo-box.component.ts","../../../projects/legacy/components/combo-box/combo-box.template.html","../../../projects/legacy/components/combo-box/combo-box.directive.ts","../../../projects/legacy/components/combo-box/combo-box-strict.directive.ts","../../../projects/legacy/components/combo-box/combo-box.module.ts","../../../projects/legacy/components/combo-box/taiga-ui-legacy-components-combo-box.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n EventEmitter,\n inject,\n Input,\n Output,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {TUI_STRICT_MATCHER} from '@taiga-ui/cdk/constants';\nimport {type TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {type TuiContext, type TuiStringMatcher} from '@taiga-ui/cdk/types';\nimport {tuiIsFocused} from '@taiga-ui/cdk/utils/focus';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_DATA_LIST_ACCESSOR,\n tuiAsDataListHost,\n tuiAsOptionContent,\n type TuiDataListAccessor,\n TuiDataListDirective,\n type TuiDataListHost,\n} from '@taiga-ui/core/components/data-list';\nimport {TuiDropdownFixed, TuiDropdownOpen} from '@taiga-ui/core/directives/dropdown';\nimport {\n type TuiSizeL,\n type TuiSizeM,\n type TuiSizeS,\n type TuiValueContentContext,\n} from '@taiga-ui/core/types';\nimport {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiNullableControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TUI_ARROW_MODE} from '@taiga-ui/legacy/components/arrow';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/legacy/components/select-option';\nimport {TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-combo-box',\n templateUrl: './combo-box.template.html',\n styleUrls: ['./combo-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiComboBoxComponent),\n tuiAsDataListHost(TuiComboBoxComponent),\n tuiAsControl(TuiComboBoxComponent),\n tuiAsOptionContent(TUI_SELECT_OPTION),\n ],\n hostDirectives: [TuiDropdownFixed],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiComboBoxComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @ContentChild(TUI_DATA_LIST_ACCESSOR as any)\n private readonly accessor?: TuiDataListAccessor<T>;\n\n @ViewChild(TuiDropdownOpen)\n private readonly dropdown?: TuiDropdownOpen;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly arrowMode = inject(TUI_ARROW_MODE);\n private readonly itemsHandlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n protected readonly datalist: PolymorpheusContent<TuiContext<TuiActiveZone>>;\n\n @Input()\n public stringify: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n public strictMatcher: TuiStringMatcher<T> | null = TUI_STRICT_MATCHER;\n\n @Input()\n public identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\n\n @Input()\n public valueContent: PolymorpheusContent<TuiValueContentContext<T>>;\n\n @Input()\n public strict = true;\n\n @Input()\n public search: string | null = null;\n\n @Output()\n public readonly searchChange = new EventEmitter<string | null>();\n\n public open = false;\n\n public get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n public get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield?.nativeFocusableElement ?? null;\n }\n\n public get focused(): boolean {\n return (\n tuiIsFocused(this.nativeFocusableElement) || !!this.dropdown?.tuiDropdownOpen\n );\n }\n\n public get nativeValue(): string {\n return this.value === null ? this.search || '' : this.stringify(this.value);\n }\n\n public checkOption(option: T): void {\n if (!this.isStrictMatch(option)) {\n return;\n }\n\n this.value = option;\n this.updateSearch(null);\n }\n\n public handleOption(item: T): void {\n this.focusInput();\n this.close();\n this.updateSearch(null);\n this.value = item;\n\n if (this.value) {\n this.setNativeValue(this.stringify(item));\n }\n }\n\n public onValueChange(value: string): void {\n this.updateSearch(value);\n\n const match = this.accessor\n ?.getOptions()\n .find((item) => this.isStrictMatch(item));\n\n if (match !== undefined) {\n this.value = match;\n this.updateSearch(null);\n\n return;\n }\n\n if (this.strict || this.search === '') {\n this.value = null;\n }\n\n // Clearing sets the empty value, the dropdown should not be opened on clear.\n if (this.search !== '') {\n this.open = true;\n }\n }\n\n public toggle(): void {\n if (this.interactive) {\n this.open = !this.open;\n }\n }\n\n protected get arrow(): PolymorpheusContent<\n TuiContext<TuiSizeL | TuiSizeM | TuiSizeS>\n > {\n return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;\n }\n\n protected get showValueTemplate(): boolean {\n return tuiIsPresent(this.value) && !this.focused;\n }\n\n protected get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.nativeValue;\n }\n\n protected onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n protected onFieldKeyDownEnter(event: Event): void {\n if (this.open) {\n event.preventDefault();\n }\n\n const options = this.accessor?.getOptions() || [];\n\n if (options.length !== 1) {\n return;\n }\n\n this.value = options[0] ?? null;\n this.updateSearch(null);\n this.close();\n }\n\n private isStrictMatch(item: T): boolean {\n return !!this.search && !!this.strictMatcher?.(item, this.search, this.stringify);\n }\n\n private close(): void {\n this.open = false;\n }\n\n private updateSearch(search: string | null): void {\n if (this.search === search) {\n return;\n }\n\n this.search = search;\n this.searchChange.emit(search);\n }\n\n private setNativeValue(value: string): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n\n private focusInput(preventScroll = false): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.focus({preventScroll});\n }\n }\n}\n","<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"datalist || ''\"\n [tuiDropdownEnabled]=\"interactive && !!datalist\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"arrow ? icon : ''\"\n [value]=\"nativeValue\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n @if (showValueTemplate) {\n <div\n automation-id=\"tui-combo-box__template\"\n ngProjectAs=\"tuiContent\"\n class=\"t-value\"\n >\n <ng-container\n *polymorpheusOutlet=\"computedContent as text; context: {$implicit: value!, active: computedFocused}\"\n >\n {{ text }}\n </ng-container>\n </div>\n }\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n appearance=\"icon\"\n tuiWrapper\n class=\"t-icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiComboBoxComponent} from './combo-box.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-combo-box',\n providers: [tuiAsTextfieldHost(TuiComboBoxDirective)],\n})\nexport class TuiComboBoxDirective extends AbstractTuiTextfieldHost<\n TuiComboBoxComponent<unknown>\n> {\n public override get value(): string {\n return this.host.nativeValue;\n }\n\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {Directive, inject, Input} from '@angular/core';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-combo-box[strict]',\n host: {\n '(input)': 'onInput()',\n },\n})\nexport class TuiComboBoxStrictDirective<T> {\n private readonly comboBox = inject(TuiComboBoxComponent<T | string>);\n\n @Input()\n public strict = true;\n\n protected onInput(): void {\n if (!this.strict && this.comboBox.search) {\n this.comboBox.value = this.comboBox.search;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\nimport {TuiArrowComponent} from '@taiga-ui/legacy/components/arrow';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiSelectOptionModule} from '@taiga-ui/legacy/components/select-option';\nimport {\n TuiLegacyDropdownOpenMonitorDirective,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\nimport {TuiComboBoxDirective} from './combo-box.directive';\nimport {TuiComboBoxStrictDirective} from './combo-box-strict.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/combo-box TuiComboBox} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiPrimitiveTextfieldModule,\n TuiSelectOptionModule,\n TuiArrowComponent,\n TuiWrapperModule,\n TuiTextfieldControllerModule,\n TuiLegacyDropdownOpenMonitorDirective,\n ...TuiDropdown,\n ],\n declarations: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n ],\n exports: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n TuiTextfieldComponent,\n ...TuiDropdown,\n ],\n})\nexport class TuiComboBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA;;;AAGG;AAkBG,MAAO,oBACT,SAAQ,0BAA6B,CAAA;AAlBzC,IAAA,WAAA,GAAA;;AA8BqB,QAAA,IAAA,CAAA,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+1,130 @@
1
+ import { AsyncPipe } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, computed, ChangeDetectionStrategy, Component, InjectionToken, Injectable, Directive, assertInInjectionContext, INJECTOR } from '@angular/core';
4
+ import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
+ import { TUI_TRUE_HANDLER } from '@taiga-ui/cdk/constants';
6
+ import * as i1 from '@taiga-ui/cdk/directives/animated';
7
+ import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
8
+ import { TuiAutoFocus } from '@taiga-ui/cdk/directives/auto-focus';
9
+ import { TuiButton } from '@taiga-ui/core/components/button';
10
+ import { TuiDialogCloseService, TUI_DIALOGS_CLOSE, TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
11
+ import { TuiBreakpointService } from '@taiga-ui/core/services';
12
+ import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
13
+ import { injectContext, PolymorpheusOutlet, PolymorpheusComponent } from '@taiga-ui/polymorpheus';
14
+ import { of, isObservable, Subject, map, merge, switchMap, exhaustMap, take, filter } from 'rxjs';
15
+ import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
16
+ import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
17
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
18
+
19
+ const REQUIRED_ERROR = new Error('Required dialog was dismissed');
20
+ function toObservable(valueOrStream) {
21
+ return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);
22
+ }
23
+ class TuiDialogComponent {
24
+ constructor() {
25
+ this.close$ = new Subject();
26
+ this.context = injectContext();
27
+ this.closeWord$ = inject(TUI_CLOSE_WORD);
28
+ this.icons = inject(TUI_COMMON_ICONS);
29
+ this.from = computed(() => this.size === 'fullscreen' || this.size === 'page' || this.isMobile()
30
+ ? 'translateY(100vh)'
31
+ : 'translateY(2.5rem)');
32
+ this.isMobile = toSignal(inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')));
33
+ 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)))
34
+ .pipe(filter(Boolean), takeUntilDestroyed())
35
+ .subscribe(() => {
36
+ this.close();
37
+ });
38
+ }
39
+ get size() {
40
+ return this.context.size;
41
+ }
42
+ get header() {
43
+ return this.context.header;
44
+ }
45
+ close() {
46
+ if (this.context.required) {
47
+ this.context.$implicit.error(REQUIRED_ERROR);
48
+ }
49
+ else {
50
+ this.context.$implicit.complete();
51
+ }
52
+ }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
54
+ 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$ | async }}\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: "pipe", type: AsyncPipe, name: "async" }, { 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 }); }
55
+ }
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogComponent, decorators: [{
57
+ type: Component,
58
+ args: [{ selector: 'tui-dialog-legacy', imports: [AsyncPipe, PolymorpheusOutlet, TuiAutoFocus, TuiButton], changeDetection: ChangeDetectionStrategy.Default, providers: [TuiDialogCloseService], hostDirectives: [TuiAnimated], host: {
59
+ '[attr.data-appearance]': 'context.appearance',
60
+ '[attr.data-size]': 'size',
61
+ '[class._centered]': 'header',
62
+ '[style.--tui-from]': 'from()',
63
+ }, 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$ | async }}\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"] }]
64
+ }], ctorParameters: () => [] });
65
+
66
+ const TUI_DIALOG_DEFAULT_OPTIONS = {
67
+ appearance: '',
68
+ size: 'm',
69
+ required: false,
70
+ closable: true,
71
+ dismissible: true,
72
+ label: '',
73
+ header: '',
74
+ data: undefined,
75
+ };
76
+ /**
77
+ * Default parameters for dialog component
78
+ */
79
+ const TUI_DIALOG_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_DIALOG_OPTIONS' : '', {
80
+ factory: () => TUI_DIALOG_DEFAULT_OPTIONS,
81
+ });
82
+ function tuiDialogOptionsProvider(options) {
83
+ return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);
84
+ }
85
+
86
+ class TuiDialogService extends TuiPopoverService {
87
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
88
+ 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)) }); }
89
+ }
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, decorators: [{
91
+ type: Injectable,
92
+ args: [{
93
+ providedIn: 'root',
94
+ useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),
95
+ }]
96
+ }] });
97
+
98
+ class TuiDialog extends TuiPopoverDirective {
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialog, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
100
+ 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 }); }
101
+ }
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialog, decorators: [{
103
+ type: Directive,
104
+ args: [{
105
+ standalone: true,
106
+ selector: 'ng-template[tuiDialog]',
107
+ inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],
108
+ outputs: ['openChange: tuiDialogChange'],
109
+ providers: [tuiAsPopover(TuiDialogService)],
110
+ }]
111
+ }] });
112
+
113
+ function tuiDialog(component, { injector, ...options } = {}) {
114
+ if (!injector) {
115
+ assertInInjectionContext(tuiDialog);
116
+ injector = inject(INJECTOR);
117
+ }
118
+ const dialogService = injector.get(TuiDialogService);
119
+ return (data) => dialogService.open(new PolymorpheusComponent(component, injector), {
120
+ ...options,
121
+ data,
122
+ });
123
+ }
124
+
125
+ /**
126
+ * Generated bundle index. Do not edit.
127
+ */
128
+
129
+ export { TUI_DIALOG_DEFAULT_OPTIONS, TUI_DIALOG_OPTIONS, TuiDialog, TuiDialogComponent, TuiDialogService, tuiDialog, tuiDialogOptionsProvider };
130
+ //# sourceMappingURL=taiga-ui-legacy-components-dialog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-legacy-components-dialog.mjs","sources":["../../../projects/legacy/components/dialog/dialog.component.ts","../../../projects/legacy/components/dialog/dialog.template.html","../../../projects/legacy/components/dialog/dialog.tokens.ts","../../../projects/legacy/components/dialog/dialog.service.ts","../../../projects/legacy/components/dialog/dialog.directive.ts","../../../projects/legacy/components/dialog/dialog.factory.ts","../../../projects/legacy/components/dialog/taiga-ui-legacy-components-dialog.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiAutoFocus} from '@taiga-ui/cdk/directives/auto-focus';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_DIALOGS_CLOSE, TuiDialogCloseService} from '@taiga-ui/core/components/dialog';\nimport {TuiBreakpointService} from '@taiga-ui/core/services';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {\n injectContext,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\nimport {\n exhaustMap,\n filter,\n isObservable,\n map,\n merge,\n type Observable,\n of,\n Subject,\n switchMap,\n take,\n} from 'rxjs';\n\nimport {type TuiDialogOptions, type TuiDialogSize} from './dialog.interfaces';\n\nconst REQUIRED_ERROR = new Error('Required dialog was dismissed');\n\nfunction toObservable<T>(valueOrStream: Observable<T> | T): Observable<T> {\n return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);\n}\n\n@Component({\n selector: 'tui-dialog-legacy',\n imports: [AsyncPipe, PolymorpheusOutlet, TuiAutoFocus, TuiButton],\n templateUrl: './dialog.template.html',\n styleUrls: ['./dialog.style.less'],\n // So we don't force OnPush on dialog content\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [TuiDialogCloseService],\n hostDirectives: [TuiAnimated],\n host: {\n '[attr.data-appearance]': 'context.appearance',\n '[attr.data-size]': 'size',\n '[class._centered]': 'header',\n '[style.--tui-from]': 'from()',\n },\n})\nexport class TuiDialogComponent<O, I> {\n protected readonly close$ = new Subject<void>();\n protected readonly context = injectContext<TuiPopover<TuiDialogOptions<I>, O>>();\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly from = computed(() =>\n this.size === 'fullscreen' || this.size === 'page' || this.isMobile()\n ? 'translateY(100vh)'\n : 'translateY(2.5rem)',\n );\n\n protected readonly isMobile = toSignal(\n inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')),\n );\n\n constructor() {\n merge(\n this.close$.pipe(switchMap(() => toObservable(this.context.closable))),\n inject(TuiDialogCloseService).pipe(\n exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1))),\n ),\n inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)),\n )\n .pipe(filter(Boolean), takeUntilDestroyed())\n .subscribe(() => {\n this.close();\n });\n }\n\n protected get size(): TuiDialogSize {\n return this.context.size;\n }\n\n protected get header(): PolymorpheusContent<TuiPopover<TuiDialogOptions<I>, O>> {\n return this.context.header;\n }\n\n private close(): void {\n if (this.context.required) {\n this.context.$implicit.error(REQUIRED_ERROR);\n } else {\n this.context.$implicit.complete();\n }\n }\n}\n","@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$ | async }}\n </button>\n}\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\n\nexport const TUI_DIALOG_DEFAULT_OPTIONS: TuiDialogOptions<void> = {\n appearance: '',\n size: 'm',\n required: false,\n closable: true,\n dismissible: true,\n label: '',\n header: '',\n data: undefined,\n};\n\n/**\n * Default parameters for dialog component\n */\nexport const TUI_DIALOG_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_DIALOG_OPTIONS' : '',\n {\n factory: () => TUI_DIALOG_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiDialogOptionsProvider(\n options: Partial<TuiDialogOptions<unknown>>,\n): Provider {\n return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);\n}\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {TuiDialogComponent} from './dialog.component';\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TUI_DIALOG_OPTIONS} from './dialog.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),\n})\nexport class TuiDialogService extends TuiPopoverService<TuiDialogOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiDialog]',\n inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],\n outputs: ['openChange: tuiDialogChange'],\n providers: [tuiAsPopover(TuiDialogService)],\n})\nexport class TuiDialog<T> extends TuiPopoverDirective<TuiDialogOptions<T>> {}\n","import {assertInInjectionContext, inject, INJECTOR, type Injector} from '@angular/core';\nimport {PolymorpheusComponent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {type TuiDialogContext, type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\ntype SingleUnionOrNever<T, U = T> = [T] extends [never]\n ? never\n : T extends U\n ? [U] extends [T]\n ? T\n : never\n : never;\n\ntype ReplaceAny<T> = 0 extends T & 1 ? void : T;\n\ntype ContextKeys<T> = {\n [K in keyof T]: ReplaceAny<T[K]> extends TuiDialogContext<any, any> | null\n ? K\n : never;\n}[keyof T];\n\ntype AssertNotMultipleContexts<T, K extends keyof T> = [K] extends [never]\n ? new (...args: any[]) => T\n : [SingleUnionOrNever<K>] extends [never]\n ? 'Component has multiple context. Cannot determine the type...'\n : new (...args: any[]) => T;\n\ntype ExtractDialogData<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<any, infer D> | null\n ? D\n : void;\n\ntype ExtractDialogResult<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<infer R, any> | null\n ? R\n : void;\n\ntype Options<T> = Omit<TuiDialogOptions<T>, 'data'> & {injector: Injector};\n\nexport function tuiDialog<\n T,\n K extends ContextKeys<T>,\n D extends ExtractDialogData<T, K>,\n R extends ExtractDialogResult<T, K>,\n>(\n component: AssertNotMultipleContexts<T, K>,\n {injector, ...options}: Partial<Options<D>> = {},\n): (data: D) => Observable<R> {\n if (!injector) {\n assertInInjectionContext(tuiDialog);\n injector = inject(INJECTOR);\n }\n\n const dialogService = injector.get(TuiDialogService);\n\n return (data) =>\n dialogService.open(\n new PolymorpheusComponent(component as new () => T, injector),\n {\n ...options,\n data,\n },\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AA+BA,MAAM,cAAc,GAAG,IAAI,KAAK,CAAC,+BAA+B,CAAC;AAEjE,SAAS,YAAY,CAAI,aAAgC,EAAA;AACrD,IAAA,OAAO,YAAY,CAAC,aAAa,CAAC,GAAG,aAAa,GAAG,EAAE,CAAC,aAAa,CAAC;AAC1E;MAmBa,kBAAkB,CAAA;AAe3B,IAAA,WAAA,GAAA;AAdmB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,OAAO,EAAQ;QAC5B,IAAO,CAAA,OAAA,GAAG,aAAa,EAAsC;AAC7D,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC;AACnC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAChC,IAAI,CAAA,IAAA,GAAG,QAAQ,CAAC,MAC/B,IAAI,CAAC,IAAI,KAAK,YAAY,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ;AAC/D,cAAE;cACA,oBAAoB,CAC7B;QAEkB,IAAQ,CAAA,QAAA,GAAG,QAAQ,CAClC,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,UAAU,KAAK,UAAU,KAAK,QAAQ,CAAC,CAAC,CAClF;AAGG,QAAA,KAAK,CACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EACtE,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAC9B,UAAU,CAAC,MAAM,YAAY,CAAC,IAAI,CAAC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