@taiga-ui/cdk 2.75.0 → 2.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (580) hide show
  1. package/abstract/dialog.service.d.ts +1 -1
  2. package/bundles/taiga-ui-cdk-abstract.umd.js +46 -1
  3. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-cdk-abstract.umd.min.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
  6. package/bundles/taiga-ui-cdk-classes.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-cdk-coercion.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +47 -2
  10. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-components-alert-host.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +50 -5
  13. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  14. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +48 -3
  16. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-cdk-components-portal-host.umd.js +46 -1
  19. package/bundles/taiga-ui-cdk-components-portal-host.umd.js.map +1 -1
  20. package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
  22. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-constants.umd.min.js +1 -1
  24. package/bundles/taiga-ui-cdk-constants.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-date-time.umd.js +47 -2
  26. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-date-time.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-cdk-decorators.umd.js +46 -1
  29. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  30. package/bundles/taiga-ui-cdk-decorators.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +49 -4
  32. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +47 -2
  35. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  36. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +52 -7
  38. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-cdk-directives-checked.umd.js +52 -7
  41. package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
  42. package/bundles/taiga-ui-cdk-directives-checked.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +49 -4
  44. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-cdk-directives-drag.umd.js +50 -5
  47. package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
  48. package/bundles/taiga-ui-cdk-directives-drag.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-cdk-directives-droppable.umd.js +51 -6
  50. package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-cdk-directives-element.umd.js +48 -3
  53. package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
  54. package/bundles/taiga-ui-cdk-directives-element.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +51 -6
  56. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
  57. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +48 -3
  59. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
  60. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-cdk-directives-focusable.umd.js +49 -4
  62. package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
  63. package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-cdk-directives-focused.umd.js +48 -3
  65. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  66. package/bundles/taiga-ui-cdk-directives-focused.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +47 -2
  68. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  69. package/bundles/taiga-ui-cdk-directives-for-async.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-cdk-directives-for.umd.js +47 -2
  71. package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
  72. package/bundles/taiga-ui-cdk-directives-for.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +47 -2
  74. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
  75. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +50 -5
  77. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  78. package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-cdk-directives-input-mode.umd.js +56 -11
  80. package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +1 -1
  81. package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-cdk-directives-item.umd.js +47 -2
  83. package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
  84. package/bundles/taiga-ui-cdk-directives-item.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-cdk-directives-let.umd.js +47 -2
  86. package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
  87. package/bundles/taiga-ui-cdk-directives-let.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-cdk-directives-media.umd.js +60 -15
  89. package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
  90. package/bundles/taiga-ui-cdk-directives-media.umd.min.js +1 -1
  91. package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-cdk-directives-obscured.umd.js +47 -2
  93. package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
  94. package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +57 -12
  96. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  97. package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-cdk-directives-pan.umd.js +48 -3
  99. package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
  100. package/bundles/taiga-ui-cdk-directives-pan.umd.min.js.map +1 -1
  101. package/bundles/taiga-ui-cdk-directives-portal.umd.js +47 -2
  102. package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
  103. package/bundles/taiga-ui-cdk-directives-portal.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-cdk-directives-pressed.umd.js +47 -2
  105. package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
  106. package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +49 -4
  108. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  109. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +47 -2
  111. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
  112. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-cdk-directives-resize.umd.js +48 -3
  114. package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
  115. package/bundles/taiga-ui-cdk-directives-resize.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-cdk-directives-swipe.umd.js +48 -3
  117. package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
  118. package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-cdk-directives-validator.umd.js +47 -2
  120. package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
  121. package/bundles/taiga-ui-cdk-directives-validator.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-cdk-directives-zoom.umd.js +49 -4
  123. package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
  124. package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
  126. package/bundles/taiga-ui-cdk-enums.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-cdk-exceptions.umd.js +46 -1
  128. package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
  129. package/bundles/taiga-ui-cdk-exceptions.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  131. package/bundles/taiga-ui-cdk-observables.umd.min.js.map +1 -1
  132. package/bundles/taiga-ui-cdk-pipes-filter.umd.js +46 -1
  133. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  134. package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js.map +1 -1
  135. package/bundles/taiga-ui-cdk-pipes-keys.umd.js +46 -1
  136. package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
  137. package/bundles/taiga-ui-cdk-pipes-keys.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +46 -1
  139. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  140. package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js.map +1 -1
  141. package/bundles/taiga-ui-cdk-services.umd.js +46 -1
  142. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  143. package/bundles/taiga-ui-cdk-services.umd.min.js.map +1 -1
  144. package/bundles/taiga-ui-cdk-tokens.umd.js +47 -2
  145. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  146. package/bundles/taiga-ui-cdk-tokens.umd.min.js +1 -1
  147. package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
  148. package/bundles/taiga-ui-cdk-utils-dom.umd.js +1 -1
  149. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  150. package/bundles/taiga-ui-cdk-utils-dom.umd.min.js +1 -1
  151. package/bundles/taiga-ui-cdk-utils-dom.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-cdk-utils-focus.umd.js +2 -1
  153. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  154. package/bundles/taiga-ui-cdk-utils-focus.umd.min.js +1 -1
  155. package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +1 -1
  156. package/bundles/taiga-ui-cdk-utils-math.umd.js +8 -8
  157. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  158. package/bundles/taiga-ui-cdk-utils-math.umd.min.js +1 -1
  159. package/bundles/taiga-ui-cdk-utils-math.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +2 -4
  161. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  162. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js +1 -1
  163. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-cdk-utils-svg.umd.js +46 -1
  165. package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
  166. package/bundles/taiga-ui-cdk-utils-svg.umd.min.js.map +1 -1
  167. package/classes/assert.d.ts +1 -1
  168. package/classes/validation-error.d.ts +1 -1
  169. package/coercion/coerce-boolean-property.d.ts +1 -1
  170. package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
  171. package/constants/version.d.ts +1 -1
  172. package/constants/version.js +1 -1
  173. package/date-time/time.d.ts +1 -1
  174. package/date-time/year.d.ts +1 -1
  175. package/decorators/default-prop.d.ts +1 -1
  176. package/decorators/pure.d.ts +1 -1
  177. package/decorators/required-setter.d.ts +1 -1
  178. package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
  179. package/directives/checked/checked.directive.d.ts +1 -1
  180. package/directives/for-async/for-async.directive.d.ts +1 -1
  181. package/directives/media/media.directive.d.ts +2 -2
  182. package/directives/media/taiga-ui-cdk-directives-media.metadata.json +1 -1
  183. package/enums/autocomplete.d.ts +1 -1
  184. package/esm2015/abstract/dialog.service.js +1 -1
  185. package/esm2015/classes/assert.js +1 -1
  186. package/esm2015/classes/validation-error.js +1 -1
  187. package/esm2015/coercion/coerce-boolean-property.js +1 -1
  188. package/esm2015/components/alert-host/alert-host.component.js +2 -2
  189. package/esm2015/components/dialog-host/dialog-host.component.js +5 -5
  190. package/esm2015/components/dropdown-host/dropdown-host.component.js +3 -3
  191. package/esm2015/constants/version.js +2 -2
  192. package/esm2015/date-time/day-range.js +1 -1
  193. package/esm2015/date-time/day.js +2 -2
  194. package/esm2015/date-time/time.js +1 -1
  195. package/esm2015/date-time/year.js +1 -1
  196. package/esm2015/decorators/default-prop.js +1 -1
  197. package/esm2015/decorators/pure.js +1 -1
  198. package/esm2015/decorators/required-setter.js +1 -1
  199. package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
  200. package/esm2015/directives/auto-focus/autofocus.directive.js +2 -2
  201. package/esm2015/directives/autofilled/autofilled-style.component.js +2 -2
  202. package/esm2015/directives/autofilled/autofilled.directive.js +6 -6
  203. package/esm2015/directives/checked/checked.directive.js +7 -7
  204. package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
  205. package/esm2015/directives/drag/drag.directive.js +5 -5
  206. package/esm2015/directives/droppable/droppable.directive.js +5 -5
  207. package/esm2015/directives/element/element.directive.js +3 -3
  208. package/esm2015/directives/focus-trap/focus-trap.directive.js +6 -6
  209. package/esm2015/directives/focus-visible/focus-visible.directive.js +3 -3
  210. package/esm2015/directives/focusable/focusable.directive.js +4 -4
  211. package/esm2015/directives/focused/focused.directive.js +3 -3
  212. package/esm2015/directives/for/for.directive.js +2 -2
  213. package/esm2015/directives/for-async/for-async.directive.js +2 -2
  214. package/esm2015/directives/high-dpi/high-dpi.directive.js +2 -2
  215. package/esm2015/directives/hovered/hovered.directive.js +5 -5
  216. package/esm2015/directives/input-mode/input-mode.directive.js +11 -11
  217. package/esm2015/directives/item/item.directive.js +2 -2
  218. package/esm2015/directives/let/let.directive.js +2 -2
  219. package/esm2015/directives/media/media.directive.js +18 -18
  220. package/esm2015/directives/obscured/obscured.directive.js +2 -2
  221. package/esm2015/directives/overscroll/overscroll.directive.js +12 -12
  222. package/esm2015/directives/pan/pan.directive.js +3 -3
  223. package/esm2015/directives/portal/portal.directive.js +2 -2
  224. package/esm2015/directives/pressed/pressed.directive.js +2 -2
  225. package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
  226. package/esm2015/directives/repeat-times/repeat-times.directive.js +2 -2
  227. package/esm2015/directives/resize/resize.directive.js +3 -3
  228. package/esm2015/directives/swipe/swipe.directive.js +3 -3
  229. package/esm2015/directives/validator/validator.directive.js +2 -2
  230. package/esm2015/directives/zoom/zoom.directive.js +4 -4
  231. package/esm2015/enums/autocomplete.js +1 -1
  232. package/esm2015/interfaces/alert-context.js +1 -1
  233. package/esm2015/interfaces/swipe.js +1 -1
  234. package/esm2015/interfaces/zoom.js +1 -1
  235. package/esm2015/observables/must-be-present.js +1 -1
  236. package/esm2015/services/obscured.service.js +1 -1
  237. package/esm2015/tokens/active-element.js +2 -2
  238. package/esm2015/types/dialog.js +1 -1
  239. package/esm2015/types/event-with.js +1 -1
  240. package/esm2015/types/input-mode.js +1 -1
  241. package/esm2015/types/input-type.js +1 -1
  242. package/esm2015/types/overscroll-mode.js +1 -1
  243. package/esm2015/types/time-mode.js +1 -1
  244. package/esm2015/utils/dom/get-closest-element.js +1 -1
  245. package/esm2015/utils/dom/get-document-or-shadow-root.js +1 -1
  246. package/esm2015/utils/dom/get-element-obscurers.js +2 -2
  247. package/esm2015/utils/focus/get-native-focused.js +3 -2
  248. package/esm2015/utils/focus/set-native-mouse-focused.js +1 -1
  249. package/esm2015/utils/math/clamp.js +4 -4
  250. package/esm2015/utils/math/in-range.js +4 -4
  251. package/esm2015/utils/math/normalize-to-int-number.js +2 -2
  252. package/esm2015/utils/math/round.js +2 -2
  253. package/esm2015/utils/math/to-int.js +1 -1
  254. package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
  255. package/esm2015/utils/miscellaneous/get-swipe-direction.js +2 -4
  256. package/esm2015/utils/miscellaneous/uniq-by.js +1 -1
  257. package/esm5/abstract/dialog.service.js +1 -1
  258. package/esm5/classes/assert.js +1 -1
  259. package/esm5/classes/validation-error.js +1 -1
  260. package/esm5/coercion/coerce-boolean-property.js +1 -1
  261. package/esm5/components/alert-host/alert-host.component.js +2 -2
  262. package/esm5/components/dialog-host/dialog-host.component.js +5 -5
  263. package/esm5/components/dropdown-host/dropdown-host.component.js +3 -3
  264. package/esm5/constants/version.js +2 -2
  265. package/esm5/date-time/day-range.js +1 -1
  266. package/esm5/date-time/day.js +2 -2
  267. package/esm5/date-time/time.js +1 -1
  268. package/esm5/date-time/year.js +1 -1
  269. package/esm5/decorators/default-prop.js +1 -1
  270. package/esm5/decorators/pure.js +1 -1
  271. package/esm5/decorators/required-setter.js +1 -1
  272. package/esm5/directives/active-zone/active-zone.directive.js +4 -4
  273. package/esm5/directives/auto-focus/autofocus.directive.js +2 -2
  274. package/esm5/directives/autofilled/autofilled-style.component.js +2 -2
  275. package/esm5/directives/autofilled/autofilled.directive.js +6 -6
  276. package/esm5/directives/checked/checked.directive.js +7 -7
  277. package/esm5/directives/copy-processor/copy-processor.directive.js +4 -4
  278. package/esm5/directives/drag/drag.directive.js +5 -5
  279. package/esm5/directives/droppable/droppable.directive.js +6 -6
  280. package/esm5/directives/element/element.directive.js +3 -3
  281. package/esm5/directives/focus-trap/focus-trap.directive.js +6 -6
  282. package/esm5/directives/focus-visible/focus-visible.directive.js +3 -3
  283. package/esm5/directives/focusable/focusable.directive.js +4 -4
  284. package/esm5/directives/focused/focused.directive.js +3 -3
  285. package/esm5/directives/for/for.directive.js +2 -2
  286. package/esm5/directives/for-async/for-async.directive.js +2 -2
  287. package/esm5/directives/high-dpi/high-dpi.directive.js +2 -2
  288. package/esm5/directives/hovered/hovered.directive.js +5 -5
  289. package/esm5/directives/input-mode/input-mode.directive.js +11 -11
  290. package/esm5/directives/item/item.directive.js +2 -2
  291. package/esm5/directives/let/let.directive.js +2 -2
  292. package/esm5/directives/media/media.directive.js +15 -15
  293. package/esm5/directives/obscured/obscured.directive.js +2 -2
  294. package/esm5/directives/overscroll/overscroll.directive.js +12 -12
  295. package/esm5/directives/pan/pan.directive.js +3 -3
  296. package/esm5/directives/portal/portal.directive.js +2 -2
  297. package/esm5/directives/pressed/pressed.directive.js +2 -2
  298. package/esm5/directives/prevent-default/prevent-default.directive.js +4 -4
  299. package/esm5/directives/repeat-times/repeat-times.directive.js +2 -2
  300. package/esm5/directives/resize/resize.directive.js +3 -3
  301. package/esm5/directives/swipe/swipe.directive.js +3 -3
  302. package/esm5/directives/validator/validator.directive.js +2 -2
  303. package/esm5/directives/zoom/zoom.directive.js +4 -4
  304. package/esm5/enums/autocomplete.js +1 -1
  305. package/esm5/interfaces/alert-context.js +1 -1
  306. package/esm5/interfaces/swipe.js +1 -1
  307. package/esm5/interfaces/zoom.js +1 -1
  308. package/esm5/observables/must-be-present.js +1 -1
  309. package/esm5/services/obscured.service.js +1 -1
  310. package/esm5/tokens/active-element.js +2 -2
  311. package/esm5/types/dialog.js +1 -1
  312. package/esm5/types/event-with.js +1 -1
  313. package/esm5/types/input-mode.js +1 -1
  314. package/esm5/types/input-type.js +1 -1
  315. package/esm5/types/overscroll-mode.js +1 -1
  316. package/esm5/types/time-mode.js +1 -1
  317. package/esm5/utils/dom/get-closest-element.js +1 -1
  318. package/esm5/utils/dom/get-document-or-shadow-root.js +1 -1
  319. package/esm5/utils/dom/get-element-obscurers.js +2 -2
  320. package/esm5/utils/focus/get-native-focused.js +3 -2
  321. package/esm5/utils/focus/set-native-mouse-focused.js +1 -1
  322. package/esm5/utils/math/clamp.js +4 -4
  323. package/esm5/utils/math/in-range.js +4 -4
  324. package/esm5/utils/math/normalize-to-int-number.js +2 -2
  325. package/esm5/utils/math/round.js +2 -2
  326. package/esm5/utils/math/to-int.js +1 -1
  327. package/esm5/utils/miscellaneous/ease-in-out-quad.js +2 -2
  328. package/esm5/utils/miscellaneous/get-swipe-direction.js +2 -4
  329. package/esm5/utils/miscellaneous/uniq-by.js +1 -1
  330. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  331. package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
  332. package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
  333. package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
  334. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  335. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +4 -4
  336. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  337. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +2 -2
  338. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  339. package/fesm2015/taiga-ui-cdk-constants.js +1 -1
  340. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  341. package/fesm2015/taiga-ui-cdk-date-time.js +1 -1
  342. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  343. package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
  344. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
  345. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  346. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +1 -1
  347. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  348. package/fesm2015/taiga-ui-cdk-directives-autofilled.js +6 -6
  349. package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  350. package/fesm2015/taiga-ui-cdk-directives-checked.js +6 -6
  351. package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
  352. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
  353. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  354. package/fesm2015/taiga-ui-cdk-directives-drag.js +4 -4
  355. package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
  356. package/fesm2015/taiga-ui-cdk-directives-droppable.js +4 -4
  357. package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
  358. package/fesm2015/taiga-ui-cdk-directives-element.js +2 -2
  359. package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
  360. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +5 -5
  361. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  362. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +2 -2
  363. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  364. package/fesm2015/taiga-ui-cdk-directives-focusable.js +3 -3
  365. package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
  366. package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
  367. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  368. package/fesm2015/taiga-ui-cdk-directives-for-async.js +1 -1
  369. package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
  370. package/fesm2015/taiga-ui-cdk-directives-for.js +1 -1
  371. package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
  372. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +1 -1
  373. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  374. package/fesm2015/taiga-ui-cdk-directives-hovered.js +4 -4
  375. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  376. package/fesm2015/taiga-ui-cdk-directives-input-mode.js +10 -10
  377. package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  378. package/fesm2015/taiga-ui-cdk-directives-item.js +1 -1
  379. package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
  380. package/fesm2015/taiga-ui-cdk-directives-let.js +1 -1
  381. package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
  382. package/fesm2015/taiga-ui-cdk-directives-media.js +17 -17
  383. package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
  384. package/fesm2015/taiga-ui-cdk-directives-obscured.js +1 -1
  385. package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
  386. package/fesm2015/taiga-ui-cdk-directives-overscroll.js +11 -11
  387. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  388. package/fesm2015/taiga-ui-cdk-directives-pan.js +2 -2
  389. package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
  390. package/fesm2015/taiga-ui-cdk-directives-portal.js +1 -1
  391. package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
  392. package/fesm2015/taiga-ui-cdk-directives-pressed.js +1 -1
  393. package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
  394. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
  395. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  396. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +1 -1
  397. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  398. package/fesm2015/taiga-ui-cdk-directives-resize.js +2 -2
  399. package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
  400. package/fesm2015/taiga-ui-cdk-directives-swipe.js +2 -2
  401. package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
  402. package/fesm2015/taiga-ui-cdk-directives-validator.js +1 -1
  403. package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
  404. package/fesm2015/taiga-ui-cdk-directives-zoom.js +3 -3
  405. package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
  406. package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
  407. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  408. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  409. package/fesm2015/taiga-ui-cdk-tokens.js +1 -1
  410. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  411. package/fesm2015/taiga-ui-cdk-utils-dom.js +1 -1
  412. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  413. package/fesm2015/taiga-ui-cdk-utils-focus.js +2 -1
  414. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  415. package/fesm2015/taiga-ui-cdk-utils-math.js +8 -8
  416. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  417. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +2 -4
  418. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  419. package/fesm5/taiga-ui-cdk-abstract.js.map +1 -1
  420. package/fesm5/taiga-ui-cdk-classes.js.map +1 -1
  421. package/fesm5/taiga-ui-cdk-coercion.js.map +1 -1
  422. package/fesm5/taiga-ui-cdk-components-alert-host.js +1 -1
  423. package/fesm5/taiga-ui-cdk-components-alert-host.js.map +1 -1
  424. package/fesm5/taiga-ui-cdk-components-dialog-host.js +4 -4
  425. package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  426. package/fesm5/taiga-ui-cdk-components-dropdown-host.js +2 -2
  427. package/fesm5/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  428. package/fesm5/taiga-ui-cdk-constants.js +1 -1
  429. package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
  430. package/fesm5/taiga-ui-cdk-date-time.js +1 -1
  431. package/fesm5/taiga-ui-cdk-date-time.js.map +1 -1
  432. package/fesm5/taiga-ui-cdk-decorators.js.map +1 -1
  433. package/fesm5/taiga-ui-cdk-directives-active-zone.js +3 -3
  434. package/fesm5/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  435. package/fesm5/taiga-ui-cdk-directives-auto-focus.js +1 -1
  436. package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  437. package/fesm5/taiga-ui-cdk-directives-autofilled.js +6 -6
  438. package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  439. package/fesm5/taiga-ui-cdk-directives-checked.js +6 -6
  440. package/fesm5/taiga-ui-cdk-directives-checked.js.map +1 -1
  441. package/fesm5/taiga-ui-cdk-directives-copy-processor.js +3 -3
  442. package/fesm5/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  443. package/fesm5/taiga-ui-cdk-directives-drag.js +4 -4
  444. package/fesm5/taiga-ui-cdk-directives-drag.js.map +1 -1
  445. package/fesm5/taiga-ui-cdk-directives-droppable.js +5 -5
  446. package/fesm5/taiga-ui-cdk-directives-droppable.js.map +1 -1
  447. package/fesm5/taiga-ui-cdk-directives-element.js +2 -2
  448. package/fesm5/taiga-ui-cdk-directives-element.js.map +1 -1
  449. package/fesm5/taiga-ui-cdk-directives-focus-trap.js +5 -5
  450. package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  451. package/fesm5/taiga-ui-cdk-directives-focus-visible.js +2 -2
  452. package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  453. package/fesm5/taiga-ui-cdk-directives-focusable.js +3 -3
  454. package/fesm5/taiga-ui-cdk-directives-focusable.js.map +1 -1
  455. package/fesm5/taiga-ui-cdk-directives-focused.js +2 -2
  456. package/fesm5/taiga-ui-cdk-directives-focused.js.map +1 -1
  457. package/fesm5/taiga-ui-cdk-directives-for-async.js +1 -1
  458. package/fesm5/taiga-ui-cdk-directives-for-async.js.map +1 -1
  459. package/fesm5/taiga-ui-cdk-directives-for.js +1 -1
  460. package/fesm5/taiga-ui-cdk-directives-for.js.map +1 -1
  461. package/fesm5/taiga-ui-cdk-directives-high-dpi.js +1 -1
  462. package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  463. package/fesm5/taiga-ui-cdk-directives-hovered.js +4 -4
  464. package/fesm5/taiga-ui-cdk-directives-hovered.js.map +1 -1
  465. package/fesm5/taiga-ui-cdk-directives-input-mode.js +10 -10
  466. package/fesm5/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  467. package/fesm5/taiga-ui-cdk-directives-item.js +1 -1
  468. package/fesm5/taiga-ui-cdk-directives-item.js.map +1 -1
  469. package/fesm5/taiga-ui-cdk-directives-let.js +1 -1
  470. package/fesm5/taiga-ui-cdk-directives-let.js.map +1 -1
  471. package/fesm5/taiga-ui-cdk-directives-media.js +14 -14
  472. package/fesm5/taiga-ui-cdk-directives-media.js.map +1 -1
  473. package/fesm5/taiga-ui-cdk-directives-obscured.js +1 -1
  474. package/fesm5/taiga-ui-cdk-directives-obscured.js.map +1 -1
  475. package/fesm5/taiga-ui-cdk-directives-overscroll.js +11 -11
  476. package/fesm5/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  477. package/fesm5/taiga-ui-cdk-directives-pan.js +2 -2
  478. package/fesm5/taiga-ui-cdk-directives-pan.js.map +1 -1
  479. package/fesm5/taiga-ui-cdk-directives-portal.js +1 -1
  480. package/fesm5/taiga-ui-cdk-directives-portal.js.map +1 -1
  481. package/fesm5/taiga-ui-cdk-directives-pressed.js +1 -1
  482. package/fesm5/taiga-ui-cdk-directives-pressed.js.map +1 -1
  483. package/fesm5/taiga-ui-cdk-directives-prevent-default.js +3 -3
  484. package/fesm5/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  485. package/fesm5/taiga-ui-cdk-directives-repeat-times.js +1 -1
  486. package/fesm5/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  487. package/fesm5/taiga-ui-cdk-directives-resize.js +2 -2
  488. package/fesm5/taiga-ui-cdk-directives-resize.js.map +1 -1
  489. package/fesm5/taiga-ui-cdk-directives-swipe.js +2 -2
  490. package/fesm5/taiga-ui-cdk-directives-swipe.js.map +1 -1
  491. package/fesm5/taiga-ui-cdk-directives-validator.js +1 -1
  492. package/fesm5/taiga-ui-cdk-directives-validator.js.map +1 -1
  493. package/fesm5/taiga-ui-cdk-directives-zoom.js +3 -3
  494. package/fesm5/taiga-ui-cdk-directives-zoom.js.map +1 -1
  495. package/fesm5/taiga-ui-cdk-enums.js.map +1 -1
  496. package/fesm5/taiga-ui-cdk-observables.js.map +1 -1
  497. package/fesm5/taiga-ui-cdk-services.js.map +1 -1
  498. package/fesm5/taiga-ui-cdk-tokens.js +1 -1
  499. package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
  500. package/fesm5/taiga-ui-cdk-utils-dom.js +1 -1
  501. package/fesm5/taiga-ui-cdk-utils-dom.js.map +1 -1
  502. package/fesm5/taiga-ui-cdk-utils-focus.js +2 -1
  503. package/fesm5/taiga-ui-cdk-utils-focus.js.map +1 -1
  504. package/fesm5/taiga-ui-cdk-utils-math.js +8 -8
  505. package/fesm5/taiga-ui-cdk-utils-math.js.map +1 -1
  506. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +2 -4
  507. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  508. package/interfaces/alert-context.d.ts +1 -1
  509. package/interfaces/swipe.d.ts +1 -1
  510. package/interfaces/zoom.d.ts +1 -1
  511. package/observables/must-be-present.d.ts +1 -1
  512. package/package.json +1 -1
  513. package/schematics/constants/file-globs.js +2 -2
  514. package/schematics/ng-add/constants/modules.d.ts +4 -4
  515. package/schematics/ng-add/constants/modules.js +12 -12
  516. package/schematics/ng-add/constants/packages.js +1 -1
  517. package/schematics/ng-add/constants/versions.js +3 -3
  518. package/schematics/ng-add/index.js +7 -7
  519. package/schematics/ng-add/schema.d.ts +1 -1
  520. package/schematics/ng-add/steps/add-taiga-icons.js +4 -4
  521. package/schematics/ng-add/steps/add-taiga-modules.js +4 -4
  522. package/schematics/ng-add/steps/add-taiga-styles.js +3 -3
  523. package/schematics/ng-add/steps/wrap-with-tui-root.js +12 -12
  524. package/schematics/ng-update/constants/consts.js +57 -57
  525. package/schematics/ng-update/constants/deprecated-functions.js +426 -426
  526. package/schematics/ng-update/constants/enums.js +109 -109
  527. package/schematics/ng-update/constants/modules.js +3 -3
  528. package/schematics/ng-update/constants/services.d.ts +2 -2
  529. package/schematics/ng-update/constants/services.js +16 -16
  530. package/schematics/ng-update/constants/templates.d.ts +1 -1
  531. package/schematics/ng-update/constants/templates.js +123 -123
  532. package/schematics/ng-update/constants/tui-interactive-selectors.js +50 -50
  533. package/schematics/ng-update/constants/types.d.ts +1 -1
  534. package/schematics/ng-update/constants/types.js +87 -87
  535. package/schematics/ng-update/constants/warnings.js +56 -56
  536. package/schematics/ng-update/index.js +14 -14
  537. package/schematics/ng-update/steps/migrate-date-time.js +38 -38
  538. package/schematics/ng-update/steps/migrate-progress.js +11 -9
  539. package/schematics/ng-update/steps/migrate-sliders/index.js +2 -2
  540. package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.js +28 -26
  541. package/schematics/ng-update/steps/migrate-sliders/migrate-input-slider.js +28 -27
  542. package/schematics/ng-update/steps/migrate-templates.js +24 -21
  543. package/schematics/ng-update/steps/miscellaneous.js +10 -10
  544. package/schematics/ng-update/steps/remove-module.js +1 -1
  545. package/schematics/ng-update/steps/rename-types.js +5 -5
  546. package/schematics/ng-update/steps/replace-const.js +3 -3
  547. package/schematics/ng-update/steps/replace-deep-import.js +2 -2
  548. package/schematics/ng-update/steps/replace-enums.js +3 -3
  549. package/schematics/ng-update/steps/replace-functions.js +8 -8
  550. package/schematics/ng-update/steps/replace-services.js +4 -5
  551. package/schematics/ng-update/steps/show-warnings.js +2 -2
  552. package/schematics/utils/add-unique-import.js +1 -1
  553. package/schematics/utils/angular/ng-component.js +1 -1
  554. package/schematics/utils/angular/ng-module.js +1 -1
  555. package/schematics/utils/colored-log.js +5 -5
  556. package/schematics/utils/get-named-import-references.d.ts +1 -1
  557. package/schematics/utils/get-named-import-references.js +2 -2
  558. package/schematics/utils/get-project-target-options.d.ts +1 -1
  559. package/schematics/utils/get-project-target-options.js +1 -1
  560. package/schematics/utils/get-project.js +1 -1
  561. package/schematics/utils/progress.js +1 -1
  562. package/schematics/utils/templates/elements.js +3 -3
  563. package/schematics/utils/templates/get-component-templates.js +9 -11
  564. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +5 -5
  565. package/schematics/utils/templates/ng-component-input-manipulations.js +8 -8
  566. package/schematics/utils/templates/template-resource.d.ts +1 -1
  567. package/schematics/utils/templates/template-resource.js +3 -3
  568. package/services/obscured.service.d.ts +1 -1
  569. package/types/dialog.d.ts +2 -2
  570. package/types/event-with.d.ts +2 -2
  571. package/types/input-mode.d.ts +1 -1
  572. package/types/input-type.d.ts +1 -1
  573. package/types/overscroll-mode.d.ts +1 -1
  574. package/types/time-mode.d.ts +1 -1
  575. package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +1 -1
  576. package/utils/focus/set-native-mouse-focused.d.ts +1 -1
  577. package/utils/math/to-int.d.ts +1 -1
  578. package/utils/miscellaneous/uniq-by.d.ts +1 -1
  579. package/schematics/ng-update/constants/functions.d.ts +0 -0
  580. package/schematics/ng-update/constants/functions.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-active-zone.js","sources":["ng://@taiga-ui/cdk/directives/active-zone/active-zone.directive.ts","ng://@taiga-ui/cdk/directives/active-zone/active-zone.module.ts","ng://@taiga-ui/cdk/directives/active-zone/taiga-ui-cdk-directives-active-zone.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Optional,\n Output,\n SkipSelf,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiPure} from '@taiga-ui/cdk/decorators';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n@Directive({\n selector: `[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)`,\n exportAs: `tuiActiveZone`,\n})\nexport class TuiActiveZoneDirective implements OnDestroy {\n private subActiveZones: readonly TuiActiveZoneDirective[] = [];\n\n private tuiActiveZoneParent: TuiActiveZoneDirective | null = null;\n\n @Input(`tuiActiveZoneParent`)\n @tuiDefaultProp()\n set tuiActiveZoneParentSetter(zone: TuiActiveZoneDirective | null) {\n this.setZone(zone);\n }\n\n @Output()\n readonly tuiActiveZoneChange = this.active$.pipe(\n map(element => !!element && this.contains(element)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(this.ngZone),\n );\n\n constructor(\n @Inject(TUI_ACTIVE_ELEMENT)\n private readonly active$: Observable<Element | null>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Optional()\n @SkipSelf()\n @Inject(TuiActiveZoneDirective)\n private readonly directParentActiveZone: TuiActiveZoneDirective | null,\n ) {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.addSubActiveZone(this);\n }\n }\n\n ngOnDestroy(): void {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.removeSubActiveZone(this);\n }\n\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n }\n\n contains(node: Node): boolean {\n return (\n this.elementRef.nativeElement.contains(node) ||\n this.subActiveZones.some(\n (item, index, array) =>\n array.indexOf(item) === index && item.contains(node),\n )\n );\n }\n\n @tuiPure\n private setZone(zone: TuiActiveZoneDirective | null): void {\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n\n if (zone) {\n zone.addSubActiveZone(this);\n }\n\n this.tuiActiveZoneParent = zone;\n }\n\n private addSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n this.subActiveZones = [...this.subActiveZones, activeZone];\n }\n\n private removeSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n const index = this.subActiveZones.findIndex(item => item === activeZone);\n\n this.subActiveZones = [\n ...this.subActiveZones.slice(0, index),\n ...this.subActiveZones.slice(index + 1),\n ];\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiActiveZoneDirective} from './active-zone.directive';\n\n@NgModule({\n declarations: [TuiActiveZoneDirective],\n exports: [TuiActiveZoneDirective],\n})\nexport class TuiActiveZoneModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAqBa,sBAAsB,8BAAnC,MAAa,sBAAsB;IAoB/B,YAEqB,OAAmC,EACnB,MAAc,EACV,UAA+B,EAInD,sBAAqD;QANrD,YAAO,GAAP,OAAO,CAA4B;QACnB,WAAM,GAAN,MAAM,CAAQ;QACV,eAAU,GAAV,UAAU,CAAqB;QAInD,2BAAsB,GAAtB,sBAAsB,CAA+B;QA3BlE,mBA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C;;IC7FY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-active-zone.js","sources":["ng://@taiga-ui/cdk/directives/active-zone/active-zone.directive.ts","ng://@taiga-ui/cdk/directives/active-zone/active-zone.module.ts","ng://@taiga-ui/cdk/directives/active-zone/taiga-ui-cdk-directives-active-zone.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Optional,\n Output,\n SkipSelf,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiPure} from '@taiga-ui/cdk/decorators';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n@Directive({\n selector:\n '[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)',\n exportAs: 'tuiActiveZone',\n})\nexport class TuiActiveZoneDirective implements OnDestroy {\n private subActiveZones: readonly TuiActiveZoneDirective[] = [];\n\n private tuiActiveZoneParent: TuiActiveZoneDirective | null = null;\n\n @Input('tuiActiveZoneParent')\n @tuiDefaultProp()\n set tuiActiveZoneParentSetter(zone: TuiActiveZoneDirective | null) {\n this.setZone(zone);\n }\n\n @Output()\n readonly tuiActiveZoneChange = this.active$.pipe(\n map(element => !!element && this.contains(element)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(this.ngZone),\n );\n\n constructor(\n @Inject(TUI_ACTIVE_ELEMENT)\n private readonly active$: Observable<Element | null>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Optional()\n @SkipSelf()\n @Inject(TuiActiveZoneDirective)\n private readonly directParentActiveZone: TuiActiveZoneDirective | null,\n ) {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.addSubActiveZone(this);\n }\n }\n\n ngOnDestroy(): void {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.removeSubActiveZone(this);\n }\n\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n }\n\n contains(node: Node): boolean {\n return (\n this.elementRef.nativeElement.contains(node) ||\n this.subActiveZones.some(\n (item, index, array) =>\n array.indexOf(item) === index && item.contains(node),\n )\n );\n }\n\n @tuiPure\n private setZone(zone: TuiActiveZoneDirective | null): void {\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n\n if (zone) {\n zone.addSubActiveZone(this);\n }\n\n this.tuiActiveZoneParent = zone;\n }\n\n private addSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n this.subActiveZones = [...this.subActiveZones, activeZone];\n }\n\n private removeSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n const index = this.subActiveZones.findIndex(item => item === activeZone);\n\n this.subActiveZones = [\n ...this.subActiveZones.slice(0, index),\n ...this.subActiveZones.slice(index + 1),\n ];\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiActiveZoneDirective} from './active-zone.directive';\n\n@NgModule({\n declarations: [TuiActiveZoneDirective],\n exports: [TuiActiveZoneDirective],\n})\nexport class TuiActiveZoneModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAsBa,sBAAsB,8BAAnC,MAAa,sBAAsB;IAoB/B,YAEqB,OAAmC,EACnB,MAAc,EACV,UAA+B,EAInD,sBAAqD;QANrD,YAAO,GAAP,OAAO,CAA4B;QACnB,WAAM,GAAN,MAAM,CAAQ;QACV,eAAU,GAAV,U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AA,MAAM,CAAC,wBAAsB,CAAC,CAAA;GA3B1B,sBAAsB,CAgFlC;;IC9FY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
@@ -217,7 +217,7 @@ __decorate([
217
217
  ], TuiAutoFocusDirective.prototype, "autoFocus", void 0);
218
218
  TuiAutoFocusDirective = __decorate([
219
219
  Directive({
220
- selector: `[tuiAutoFocus]`,
220
+ selector: '[tuiAutoFocus]',
221
221
  providers: TUI_AUTOFOCUS_PROVIDERS,
222
222
  }),
223
223
  __param(0, Inject(TUI_AUTOFOCUS_HANDLER))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-auto-focus.js","sources":["ng://@taiga-ui/cdk/directives/auto-focus/handlers/abstract.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/default.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/ios.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.options.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.directive.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.module.ts","ng://@taiga-ui/cdk/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiAutofocusHandler} from '../autofocus.options';\n\n@Directive()\nexport abstract class AbstractTuiAutofocusHandler implements TuiAutofocusHandler {\n protected constructor(\n protected readonly tuiFocusableComponent: TuiFocusableElementAccessor | null,\n protected readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n protected get element(): TuiNativeFocusableElement {\n return (\n this.tuiFocusableComponent?.nativeFocusableElement ||\n this.elementRef.nativeElement\n );\n }\n\n protected get isTextFieldElement(): boolean {\n return this.element.matches(`input, textarea`);\n }\n\n abstract setFocus(): void;\n}\n","import {Directive, ElementRef, Inject, Optional, Self} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {POLLING_TIME} from '@taiga-ui/cdk/constants';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {Observable, race, timer} from 'rxjs';\nimport {map, skipWhile, take, throttleTime} from 'rxjs/operators';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TIMEOUT = 1000;\nconst NG_ANIMATION_SELECTOR = `.ng-animating`;\n\n@Directive()\nexport class TuiDefaultAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n ) {\n super(tuiFocusableComponent, elementRef);\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n race(\n timer(TIMEOUT),\n this.animationFrame$.pipe(\n throttleTime(POLLING_TIME),\n map(() => this.element.closest(NG_ANIMATION_SELECTOR)),\n skipWhile(Boolean),\n take(1),\n ),\n ).subscribe(() => this.element.focus());\n } else {\n this.element.focus();\n }\n }\n}\n","import {\n Directive,\n ElementRef,\n Inject,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {px} from '@taiga-ui/cdk/utils';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\n// @dynamic\n@Directive()\nexport class TuiIosAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(WINDOW) private readonly windowRef: Window,\n ) {\n super(tuiFocusableComponent, elementRef);\n this.patchCssStyles();\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n this.ngZone.runOutsideAngular(() => this.iosWebkitAutofocus());\n } else {\n this.element.focus();\n }\n }\n\n private iosWebkitAutofocus(): void {\n const fakeInput: HTMLInputElement = this.makeFakeInput();\n const duration = this.getDurationTimeBeforeFocus();\n let fakeFocusTimeoutId = 0;\n let elementFocusTimeoutId = 0;\n\n const blurHandler = (): void => fakeInput.focus({preventScroll: true});\n const focusHandler = (): void => {\n clearTimeout(fakeFocusTimeoutId);\n\n fakeFocusTimeoutId = this.windowRef.setTimeout(() => {\n clearTimeout(elementFocusTimeoutId);\n\n fakeInput.removeEventListener(`blur`, blurHandler);\n fakeInput.removeEventListener(`focus`, focusHandler);\n\n elementFocusTimeoutId = this.windowRef.setTimeout(() => {\n this.element.focus({preventScroll: false});\n fakeInput.remove();\n }, duration);\n });\n };\n\n fakeInput.addEventListener(`blur`, blurHandler, {once: true});\n fakeInput.addEventListener(`focus`, focusHandler);\n\n if (this.insideDialog()) {\n this.windowRef.document.body.appendChild(fakeInput);\n } else {\n this.element.parentElement?.appendChild(fakeInput);\n }\n\n fakeInput.focus({preventScroll: true});\n }\n\n /**\n * @note:\n * emulate textfield position in layout with cursor\n * before focus to real textfield element\n */\n private makeFakeInput(): HTMLInputElement {\n const fakeInput: HTMLInputElement = this.renderer.createElement(`input`);\n const rect: DOMRect = this.element.getBoundingClientRect();\n\n fakeInput.style.height = px(rect.height);\n fakeInput.style.width = px(rect.width / 2);\n fakeInput.style.position = `fixed`;\n fakeInput.style.opacity = `0`;\n fakeInput.style.fontSize = px(16); // disable possible auto zoom\n fakeInput.readOnly = true; // prevent keyboard for fake input\n\n // @note: emulate position cursor before focus to real textfield element\n fakeInput.style.top = px(rect.top);\n fakeInput.style.left = px(rect.left);\n\n return fakeInput;\n }\n\n private getDurationTimeBeforeFocus(): number {\n return (\n parseFloat(\n this.windowRef\n .getComputedStyle(this.element)\n .getPropertyValue(`--tui-duration`),\n ) || 0\n );\n }\n\n /**\n * @note:\n * unfortunately, in older versions of iOS\n * there is a bug that the fake input cursor\n * will move along with the dialog animation\n * and then that dialog will be shaking\n */\n private insideDialog(): boolean {\n return !!this.element.closest(`tui-dialog`);\n }\n\n /**\n * @note:\n * This is necessary so that the viewport isn't recalculated\n * and then the dialogs don't shake.\n *\n * Also, we need to fixed height viewport,\n * so that when focusing the dialogs don't shake\n */\n private patchCssStyles(): void {\n const documentRef = this.windowRef.document;\n\n for (const element of [documentRef.documentElement, documentRef.body]) {\n element.style.setProperty(`overflow`, `auto`);\n element.style.setProperty(`height`, `100%`);\n }\n }\n}\n","import {\n ElementRef,\n InjectionToken,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\n\nimport {TuiDefaultAutofocusHandler} from './handlers/default.handler';\nimport {TuiIosAutofocusHandler} from './handlers/ios.handler';\n\nexport interface TuiAutofocusHandler {\n setFocus(): void;\n}\n\nexport const TUI_AUTOFOCUS_HANDLER = new InjectionToken<TuiAutofocusHandler>(\n `Autofocusing handler`,\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport function tuiAutofocusHandlerFactory(\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n elementRef: ElementRef<HTMLElement>,\n animationFrame$: Observable<number>,\n renderer: Renderer2,\n ngZone: NgZone,\n windowRef: Window,\n isIos: boolean,\n): TuiAutofocusHandler {\n return isIos\n ? new TuiIosAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n renderer,\n ngZone,\n windowRef,\n )\n : new TuiDefaultAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n animationFrame$,\n );\n}\n\nexport const TUI_AUTOFOCUS_PROVIDERS = [\n {\n provide: TUI_AUTOFOCUS_HANDLER,\n // TODO: replace to useClass in v3.0\n useFactory: tuiAutofocusHandlerFactory,\n deps: [\n [new Optional(), new Self(), TUI_FOCUSABLE_ITEM_ACCESSOR],\n ElementRef,\n ANIMATION_FRAME,\n Renderer2,\n NgZone,\n WINDOW,\n TUI_IS_IOS,\n ],\n },\n];\n","import {AfterViewInit, Directive, Inject, Input} from '@angular/core';\n\nimport {\n TUI_AUTOFOCUS_HANDLER,\n TUI_AUTOFOCUS_PROVIDERS,\n TuiAutofocusHandler,\n} from './autofocus.options';\n\n// TODO: 3.0 change input name to tuiAutoFocus and handle empty string\n@Directive({\n selector: `[tuiAutoFocus]`,\n providers: TUI_AUTOFOCUS_PROVIDERS,\n})\nexport class TuiAutoFocusDirective implements AfterViewInit {\n @Input()\n autoFocus = true;\n\n constructor(\n @Inject(TUI_AUTOFOCUS_HANDLER) private readonly handler: TuiAutofocusHandler,\n ) {}\n\n ngAfterViewInit(): void {\n if (this.autoFocus) {\n this.handler.setFocus();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutoFocusDirective} from './autofocus.directive';\n\n@NgModule({\n declarations: [TuiAutoFocusDirective],\n exports: [TuiAutoFocusDirective],\n})\nexport class TuiAutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IASsB,2BAA2B,GAAjD,MAAsB,2BAA2B;IAC7C,YACuB,q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FR,qBAAqB;IAJjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE,uBAAuB;KACrC,CAAC;IAMO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;GALzB,qBAAqB,CAajC;;IClBY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-auto-focus.js","sources":["ng://@taiga-ui/cdk/directives/auto-focus/handlers/abstract.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/default.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/ios.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.options.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.directive.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.module.ts","ng://@taiga-ui/cdk/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiAutofocusHandler} from '../autofocus.options';\n\n@Directive()\nexport abstract class AbstractTuiAutofocusHandler implements TuiAutofocusHandler {\n protected constructor(\n protected readonly tuiFocusableComponent: TuiFocusableElementAccessor | null,\n protected readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n protected get element(): TuiNativeFocusableElement {\n return (\n this.tuiFocusableComponent?.nativeFocusableElement ||\n this.elementRef.nativeElement\n );\n }\n\n protected get isTextFieldElement(): boolean {\n return this.element.matches(`input, textarea`);\n }\n\n abstract setFocus(): void;\n}\n","import {Directive, ElementRef, Inject, Optional, Self} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {POLLING_TIME} from '@taiga-ui/cdk/constants';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {Observable, race, timer} from 'rxjs';\nimport {map, skipWhile, take, throttleTime} from 'rxjs/operators';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TIMEOUT = 1000;\nconst NG_ANIMATION_SELECTOR = `.ng-animating`;\n\n@Directive()\nexport class TuiDefaultAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n ) {\n super(tuiFocusableComponent, elementRef);\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n race(\n timer(TIMEOUT),\n this.animationFrame$.pipe(\n throttleTime(POLLING_TIME),\n map(() => this.element.closest(NG_ANIMATION_SELECTOR)),\n skipWhile(Boolean),\n take(1),\n ),\n ).subscribe(() => this.element.focus());\n } else {\n this.element.focus();\n }\n }\n}\n","import {\n Directive,\n ElementRef,\n Inject,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {px} from '@taiga-ui/cdk/utils';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\n// @dynamic\n@Directive()\nexport class TuiIosAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(WINDOW) private readonly windowRef: Window,\n ) {\n super(tuiFocusableComponent, elementRef);\n this.patchCssStyles();\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n this.ngZone.runOutsideAngular(() => this.iosWebkitAutofocus());\n } else {\n this.element.focus();\n }\n }\n\n private iosWebkitAutofocus(): void {\n const fakeInput: HTMLInputElement = this.makeFakeInput();\n const duration = this.getDurationTimeBeforeFocus();\n let fakeFocusTimeoutId = 0;\n let elementFocusTimeoutId = 0;\n\n const blurHandler = (): void => fakeInput.focus({preventScroll: true});\n const focusHandler = (): void => {\n clearTimeout(fakeFocusTimeoutId);\n\n fakeFocusTimeoutId = this.windowRef.setTimeout(() => {\n clearTimeout(elementFocusTimeoutId);\n\n fakeInput.removeEventListener(`blur`, blurHandler);\n fakeInput.removeEventListener(`focus`, focusHandler);\n\n elementFocusTimeoutId = this.windowRef.setTimeout(() => {\n this.element.focus({preventScroll: false});\n fakeInput.remove();\n }, duration);\n });\n };\n\n fakeInput.addEventListener(`blur`, blurHandler, {once: true});\n fakeInput.addEventListener(`focus`, focusHandler);\n\n if (this.insideDialog()) {\n this.windowRef.document.body.appendChild(fakeInput);\n } else {\n this.element.parentElement?.appendChild(fakeInput);\n }\n\n fakeInput.focus({preventScroll: true});\n }\n\n /**\n * @note:\n * emulate textfield position in layout with cursor\n * before focus to real textfield element\n */\n private makeFakeInput(): HTMLInputElement {\n const fakeInput: HTMLInputElement = this.renderer.createElement(`input`);\n const rect: DOMRect = this.element.getBoundingClientRect();\n\n fakeInput.style.height = px(rect.height);\n fakeInput.style.width = px(rect.width / 2);\n fakeInput.style.position = `fixed`;\n fakeInput.style.opacity = `0`;\n fakeInput.style.fontSize = px(16); // disable possible auto zoom\n fakeInput.readOnly = true; // prevent keyboard for fake input\n\n // @note: emulate position cursor before focus to real textfield element\n fakeInput.style.top = px(rect.top);\n fakeInput.style.left = px(rect.left);\n\n return fakeInput;\n }\n\n private getDurationTimeBeforeFocus(): number {\n return (\n parseFloat(\n this.windowRef\n .getComputedStyle(this.element)\n .getPropertyValue(`--tui-duration`),\n ) || 0\n );\n }\n\n /**\n * @note:\n * unfortunately, in older versions of iOS\n * there is a bug that the fake input cursor\n * will move along with the dialog animation\n * and then that dialog will be shaking\n */\n private insideDialog(): boolean {\n return !!this.element.closest(`tui-dialog`);\n }\n\n /**\n * @note:\n * This is necessary so that the viewport isn't recalculated\n * and then the dialogs don't shake.\n *\n * Also, we need to fixed height viewport,\n * so that when focusing the dialogs don't shake\n */\n private patchCssStyles(): void {\n const documentRef = this.windowRef.document;\n\n for (const element of [documentRef.documentElement, documentRef.body]) {\n element.style.setProperty(`overflow`, `auto`);\n element.style.setProperty(`height`, `100%`);\n }\n }\n}\n","import {\n ElementRef,\n InjectionToken,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\n\nimport {TuiDefaultAutofocusHandler} from './handlers/default.handler';\nimport {TuiIosAutofocusHandler} from './handlers/ios.handler';\n\nexport interface TuiAutofocusHandler {\n setFocus(): void;\n}\n\nexport const TUI_AUTOFOCUS_HANDLER = new InjectionToken<TuiAutofocusHandler>(\n `Autofocusing handler`,\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport function tuiAutofocusHandlerFactory(\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n elementRef: ElementRef<HTMLElement>,\n animationFrame$: Observable<number>,\n renderer: Renderer2,\n ngZone: NgZone,\n windowRef: Window,\n isIos: boolean,\n): TuiAutofocusHandler {\n return isIos\n ? new TuiIosAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n renderer,\n ngZone,\n windowRef,\n )\n : new TuiDefaultAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n animationFrame$,\n );\n}\n\nexport const TUI_AUTOFOCUS_PROVIDERS = [\n {\n provide: TUI_AUTOFOCUS_HANDLER,\n // TODO: replace to useClass in v3.0\n useFactory: tuiAutofocusHandlerFactory,\n deps: [\n [new Optional(), new Self(), TUI_FOCUSABLE_ITEM_ACCESSOR],\n ElementRef,\n ANIMATION_FRAME,\n Renderer2,\n NgZone,\n WINDOW,\n TUI_IS_IOS,\n ],\n },\n];\n","import {AfterViewInit, Directive, Inject, Input} from '@angular/core';\n\nimport {\n TUI_AUTOFOCUS_HANDLER,\n TUI_AUTOFOCUS_PROVIDERS,\n TuiAutofocusHandler,\n} from './autofocus.options';\n\n// TODO: 3.0 change input name to tuiAutoFocus and handle empty string\n@Directive({\n selector: '[tuiAutoFocus]',\n providers: TUI_AUTOFOCUS_PROVIDERS,\n})\nexport class TuiAutoFocusDirective implements AfterViewInit {\n @Input()\n autoFocus = true;\n\n constructor(\n @Inject(TUI_AUTOFOCUS_HANDLER) private readonly handler: TuiAutofocusHandler,\n ) {}\n\n ngAfterViewInit(): void {\n if (this.autoFocus) {\n this.handler.setFocus();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutoFocusDirective} from './autofocus.directive';\n\n@NgModule({\n declarations: [TuiAutoFocusDirective],\n exports: [TuiAutoFocusDirective],\n})\nexport class TuiAutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IASsB,2BAA2B,GAAjD,MAAsB,2BAA2B;IAC7C,YACuB,qBAAyD,EACzD,UAAmC;QADnC,0BAAqB,GAArB,qBAAqB,CAAoC;QACzD,eAAU,GAAV,UAAU,CAAyB;KACtD;IAEJ,IAAc,OAAO;;QACjB,QACI,OAAA,IAAI,CAAC,qBAAqB,0CAAE,sBAAsB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BY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -6,7 +6,7 @@ let TuiAutofilledStyleComponent = class TuiAutofilledStyleComponent {
6
6
  };
7
7
  TuiAutofilledStyleComponent = __decorate([
8
8
  Component({
9
- template: ``,
9
+ template: '',
10
10
  encapsulation: ViewEncapsulation.None,
11
11
  styles: [".tui-autofill input,input.tui-autofill{transition:box-shadow 10ms}"]
12
12
  })
@@ -20,7 +20,7 @@ let TuiAutofilledDirective = class TuiAutofilledDirective {
20
20
  }
21
21
  transitionStartHandler({ propertyName, target }) {
22
22
  var _a;
23
- const matchedAutofill = propertyName.includes(`box-shadow`) && ((_a = target) === null || _a === void 0 ? void 0 : _a.matches(`input`));
23
+ const matchedAutofill = propertyName.includes('box-shadow') && ((_a = target) === null || _a === void 0 ? void 0 : _a.matches('input'));
24
24
  if (matchedAutofill) {
25
25
  this.autofilled = !this.autofilled;
26
26
  this.tuiAutofilledChange.emit(this.autofilled);
@@ -31,18 +31,18 @@ TuiAutofilledDirective.ctorParameters = () => [
31
31
  { type: TuiDirectiveStylesService, decorators: [{ type: Inject, args: [TuiDirectiveStylesService,] }] }
32
32
  ];
33
33
  __decorate([
34
- HostBinding(`class._autofilled`)
34
+ HostBinding('class._autofilled')
35
35
  ], TuiAutofilledDirective.prototype, "autofilled", void 0);
36
36
  __decorate([
37
37
  Output()
38
38
  ], TuiAutofilledDirective.prototype, "tuiAutofilledChange", void 0);
39
39
  __decorate([
40
- HostListener(`transitionstart`, [`$event`])
40
+ HostListener('transitionstart', ['$event'])
41
41
  ], TuiAutofilledDirective.prototype, "transitionStartHandler", null);
42
42
  TuiAutofilledDirective = __decorate([
43
43
  Directive({
44
- selector: `[tuiAutofilledChange]`,
45
- host: { class: `tui-autofill` },
44
+ selector: '[tuiAutofilledChange]',
45
+ host: { class: 'tui-autofill' },
46
46
  }),
47
47
  __param(0, Inject(TuiDirectiveStylesService))
48
48
  ], TuiAutofilledDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-autofilled.js","sources":["ng://@taiga-ui/cdk/directives/autofilled/autofilled-style.component.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.directive.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.module.ts","ng://@taiga-ui/cdk/directives/autofilled/taiga-ui-cdk-directives-autofilled.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: ``,\n styleUrls: [`./autofilled.style.less`],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAutofilledStyleComponent {}\n","import {\n Directive,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Output,\n} from '@angular/core';\nimport {TuiDirectiveStylesService} from '@taiga-ui/cdk/services';\n\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@Directive({\n selector: `[tuiAutofilledChange]`,\n host: {class: `tui-autofill`},\n})\nexport class TuiAutofilledDirective {\n @HostBinding(`class._autofilled`)\n autofilled = false;\n\n @Output()\n readonly tuiAutofilledChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiAutofilledStyleComponent);\n }\n\n @HostListener(`transitionstart`, [`$event`])\n transitionStartHandler({propertyName, target}: TransitionEvent): void {\n const matchedAutofill =\n propertyName.includes(`box-shadow`) && (target as Element)?.matches(`input`);\n\n if (matchedAutofill) {\n this.autofilled = !this.autofilled;\n this.tuiAutofilledChange.emit(this.autofilled);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutofilledDirective} from './autofilled.directive';\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@NgModule({\n exports: [TuiAutofilledDirective],\n entryComponents: [TuiAutofilledStyleComponent],\n declarations: [TuiAutofilledDirective, TuiAutofilledStyleComponent],\n})\nexport class TuiAutofilledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAOa,2BAA2B,GAAxC,MAAa,2BAA2B;EAAG;AAA9B,2BAA2B;IALvC,SAAS,CAAC;QACP,QAAQ,EAAE,EAAE;QAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;GACW,2BAA2B,CAAG;;ICS9B,sBAAsB,GAAnC,MAAa,sBAAsB;IAO/B,YACuC,eAA0C;QANjF,eAAU,GAAG,KAAK,CAAC;QAGV,wBAAmB,GAAG,IAAI,YAAY,EAAW,CAAC;QAKvD,eAAe,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;KAC7D;IAGD,sBAAsB,CAAC,EAAC,YAAY,EAAE,MAAM,EAAkB;;QAC1D,MAAM,eAAe,GACjB,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAK,MAAkB,0CAAE,OAAO,CAAC,OAAO,EAAC,CAAC;QAEjF,IAAI,eAAe,EAAE;YACjB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACnC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAClD;KACJ;EACJ;;YAf2D,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;AANrC;IADC,WAAW,CAAC,mBAAmB,CAAC;0DACd;AAGnB;IADC,MAAM,EAAE;mEACkD;AAS3D;IADC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;oEAS3C;AAtBQ,sBAAsB;IAJlC,SAAS,CAAC;QACP,QAAQ,EAAE,uBAAuB;QACjC,IAAI,EAAE,EAAC,KAAK,EAAE,cAAc,EAAC;KAChC,CAAC;IASO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAR7B,sBAAsB,CAuBlC;;IC7BY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAL/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,eAAe,EAAE,CAAC,2BAA2B,CAAC;QAC9C,YAAY,EAAE,CAAC,sBAAsB,EAAE,2BAA2B,CAAC;KACtE,CAAC;GACW,mBAAmB,CAAG;;ACVnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-autofilled.js","sources":["ng://@taiga-ui/cdk/directives/autofilled/autofilled-style.component.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.directive.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.module.ts","ng://@taiga-ui/cdk/directives/autofilled/taiga-ui-cdk-directives-autofilled.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./autofilled.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAutofilledStyleComponent {}\n","import {\n Directive,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Output,\n} from '@angular/core';\nimport {TuiDirectiveStylesService} from '@taiga-ui/cdk/services';\n\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@Directive({\n selector: '[tuiAutofilledChange]',\n host: {class: 'tui-autofill'},\n})\nexport class TuiAutofilledDirective {\n @HostBinding('class._autofilled')\n autofilled = false;\n\n @Output()\n readonly tuiAutofilledChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiAutofilledStyleComponent);\n }\n\n @HostListener('transitionstart', ['$event'])\n transitionStartHandler({propertyName, target}: TransitionEvent): void {\n const matchedAutofill =\n propertyName.includes('box-shadow') && (target as Element)?.matches('input');\n\n if (matchedAutofill) {\n this.autofilled = !this.autofilled;\n this.tuiAutofilledChange.emit(this.autofilled);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutofilledDirective} from './autofilled.directive';\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@NgModule({\n exports: [TuiAutofilledDirective],\n entryComponents: [TuiAutofilledStyleComponent],\n declarations: [TuiAutofilledDirective, TuiAutofilledStyleComponent],\n})\nexport class TuiAutofilledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAOa,2BAA2B,GAAxC,MAAa,2BAA2B;EAAG;AAA9B,2BAA2B;IALvC,SAAS,CAAC;QACP,QAAQ,EAAE,EAAE;QAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;GACW,2BAA2B,CAAG;;ICS9B,sBAAsB,GAAnC,MAAa,sBAAsB;IAO/B,YACuC,eAA0C;QANjF,eAAU,GAAG,KAAK,CAAC;QAGV,wBAAmB,GAAG,IAAI,YAAY,EAAW,CAAC;QAKvD,eAAe,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;KAC7D;IAGD,sBAAsB,CAAC,EAAC,YAAY,EAAE,MAAM,EAAkB;;QAC1D,MAAM,eAAe,GACjB,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAK,MAAkB,0CAAE,OAAO,CAAC,OAAO,EAAC,CAAC;QAEjF,IAAI,eAAe,EAAE;YACjB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACnC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAClD;KACJ;EACJ;;YAf2D,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;AANrC;IADC,WAAW,CAAC,mBAAmB,CAAC;0DACd;AAGnB;IADC,MAAM,EAAE;mEACkD;AAS3D;IADC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;oEAS3C;AAtBQ,sBAAsB;IAJlC,SAAS,CAAC;QACP,QAAQ,EAAE,uBAAuB;QACjC,IAAI,EAAE,EAAC,KAAK,EAAE,cAAc,EAAC;KAChC,CAAC;IASO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAR7B,sBAAsB,CAuBlC;;IC7BY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAL/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,eAAe,EAAE,CAAC,2BAA2B,CAAC;QAC9C,YAAY,EAAE,CAAC,sBAAsB,EAAE,2BAA2B,CAAC;KACtE,CAAC;GACW,mBAAmB,CAAG;;ACVnC;;;;;;"}
@@ -6,14 +6,14 @@ let TuiCheckedDirective = class TuiCheckedDirective {
6
6
  this.element = element;
7
7
  this.renderer = renderer;
8
8
  this.tuiCheckedChange = new EventEmitter();
9
- this.updateProperty(`checked`, false);
9
+ this.updateProperty('checked', false);
10
10
  }
11
11
  set tuiChecked(checked) {
12
- this.updateProperty(`checked`, checked || false);
13
- this.updateProperty(`indeterminate`, checked === null);
12
+ this.updateProperty('checked', checked || false);
13
+ this.updateProperty('indeterminate', checked === null);
14
14
  }
15
15
  onChange({ checked }) {
16
- this.updateProperty(`indeterminate`, false);
16
+ this.updateProperty('indeterminate', false);
17
17
  this.tuiCheckedChange.emit(checked);
18
18
  }
19
19
  updateProperty(property, value) {
@@ -31,11 +31,11 @@ __decorate([
31
31
  Output()
32
32
  ], TuiCheckedDirective.prototype, "tuiCheckedChange", void 0);
33
33
  __decorate([
34
- HostListener(`change`, [`$event.target`])
34
+ HostListener('change', ['$event.target'])
35
35
  ], TuiCheckedDirective.prototype, "onChange", null);
36
36
  TuiCheckedDirective = __decorate([
37
37
  Directive({
38
- selector: `input[tuiChecked], input[tuiCheckedChange]`,
38
+ selector: 'input[tuiChecked], input[tuiCheckedChange]',
39
39
  }),
40
40
  __param(0, Inject(ElementRef)),
41
41
  __param(1, Inject(Renderer2))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-checked.js","sources":["ng://@taiga-ui/cdk/directives/checked/checked.directive.ts","ng://@taiga-ui/cdk/directives/checked/checked.module.ts","ng://@taiga-ui/cdk/directives/checked/taiga-ui-cdk-directives-checked.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Output,\n Renderer2,\n} from '@angular/core';\n\n@Directive({\n selector: `input[tuiChecked], input[tuiCheckedChange]`,\n})\nexport class TuiCheckedDirective {\n @Input()\n set tuiChecked(checked: null | boolean) {\n this.updateProperty(`checked`, checked || false);\n this.updateProperty(`indeterminate`, checked === null);\n }\n\n @Output()\n readonly tuiCheckedChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(ElementRef)\n private readonly element: ElementRef<HTMLInputElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n this.updateProperty(`checked`, false);\n }\n\n @HostListener(`change`, [`$event.target`])\n onChange({checked}: HTMLInputElement): void {\n this.updateProperty(`indeterminate`, false);\n this.tuiCheckedChange.emit(checked);\n }\n\n private updateProperty(property: 'checked' | 'indeterminate', value: boolean): void {\n this.renderer.setProperty(this.element.nativeElement, property, value);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCheckedDirective} from './checked.directive';\n\n@NgModule({\n declarations: [TuiCheckedDirective],\n exports: [TuiCheckedDirective],\n})\nexport class TuiCheckedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAca,mBAAmB,GAAhC,MAAa,mBAAmB;IAU5B,YAEqB,OAAqC,EAClB,QAAmB;QADtC,YAAO,GAAP,OAAO,CAA8B;QAClB,aAAQ,GAAR,QAAQ,CAAW;QALlD,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;QAOpD,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KACzC;IAdD,IAAI,UAAU,CAAC,OAAuB;QAClC,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,OAAO,IAAI,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC;KAC1D;IAcD,QAAQ,CAAC,EAAC,OAAO,EAAmB;QAChC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACvC;IAEO,cAAc,CAAC,QAAqC,EAAE,KAAc;QACxE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;KAC1E;EACJ;;YAfiC,UAAU,uBADnC,MAAM,SAAC,UAAU;YAE4B,SAAS,uBAAtD,MAAM,SAAC,SAAS;;AAXrB;IADC,KAAK,EAAE;qDAIP;AAGD;IADC,MAAM,EAAE;6DAC+C;AAWxD;IADC,YAAY,CAAC,QAAQ,EAAE,CAAC,eAAe,CAAC,CAAC;mDAIzC;AAtBQ,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,4CAA4C;KACzD,CAAC;IAYO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAbb,mBAAmB,CA2B/B;;ICjCY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-checked.js","sources":["ng://@taiga-ui/cdk/directives/checked/checked.directive.ts","ng://@taiga-ui/cdk/directives/checked/checked.module.ts","ng://@taiga-ui/cdk/directives/checked/taiga-ui-cdk-directives-checked.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Output,\n Renderer2,\n} from '@angular/core';\n\n@Directive({\n selector: 'input[tuiChecked], input[tuiCheckedChange]',\n})\nexport class TuiCheckedDirective {\n @Input()\n set tuiChecked(checked: boolean | null) {\n this.updateProperty('checked', checked || false);\n this.updateProperty('indeterminate', checked === null);\n }\n\n @Output()\n readonly tuiCheckedChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(ElementRef)\n private readonly element: ElementRef<HTMLInputElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n this.updateProperty('checked', false);\n }\n\n @HostListener('change', ['$event.target'])\n onChange({checked}: HTMLInputElement): void {\n this.updateProperty('indeterminate', false);\n this.tuiCheckedChange.emit(checked);\n }\n\n private updateProperty(property: 'checked' | 'indeterminate', value: boolean): void {\n this.renderer.setProperty(this.element.nativeElement, property, value);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCheckedDirective} from './checked.directive';\n\n@NgModule({\n declarations: [TuiCheckedDirective],\n exports: [TuiCheckedDirective],\n})\nexport class TuiCheckedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAca,mBAAmB,GAAhC,MAAa,mBAAmB;IAU5B,YAEqB,OAAqC,EAClB,QAAmB;QADtC,YAAO,GAAP,OAAO,CAA8B;QAClB,aAAQ,GAAR,QAAQ,CAAW;QALlD,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;QAOpD,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KACzC;IAdD,IAAI,UAAU,CAAC,OAAuB;QAClC,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,OAAO,IAAI,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC;KAC1D;IAcD,QAAQ,CAAC,EAAC,OAAO,EAAmB;QAChC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACvC;IAEO,cAAc,CAAC,QAAqC,EAAE,KAAc;QACxE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;KAC1E;EACJ;;YAfiC,UAAU,uBADnC,MAAM,SAAC,UAAU;YAE4B,SAAS,uBAAtD,MAAM,SAAC,SAAS;;AAXrB;IADC,KAAK,EAAE;qDAIP;AAGD;IADC,MAAM,EAAE;6DAC+C;AAWxD;IADC,YAAY,CAAC,QAAQ,EAAE,CAAC,eAAe,CAAC,CAAC;mDAIzC;AAtBQ,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,4CAA4C;KACzD,CAAC;IAYO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAbb,mBAAmB,CA2B/B;;ICjCY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
@@ -15,7 +15,7 @@ let TuiCopyProcessorDirective = class TuiCopyProcessorDirective {
15
15
  var _a;
16
16
  const text = tuiGetSelectedText(this.windowRef);
17
17
  if (text) {
18
- (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.setData(`text/plain`, this.tuiCopyProcessor(text));
18
+ (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.setData('text/plain', this.tuiCopyProcessor(text));
19
19
  }
20
20
  }
21
21
  };
@@ -27,11 +27,11 @@ __decorate([
27
27
  tuiDefaultProp()
28
28
  ], TuiCopyProcessorDirective.prototype, "tuiCopyProcessor", void 0);
29
29
  __decorate([
30
- HostListener(`copy.prevent`, [`$event`])
30
+ HostListener('copy.prevent', ['$event'])
31
31
  ], TuiCopyProcessorDirective.prototype, "onCopy", null);
32
32
  TuiCopyProcessorDirective = __decorate([
33
33
  Directive({
34
- selector: `[tuiCopyProcessor]`,
34
+ selector: '[tuiCopyProcessor]',
35
35
  }),
36
36
  __param(0, Inject(WINDOW))
37
37
  ], TuiCopyProcessorDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-copy-processor.js","sources":["ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.directive.ts","ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.module.ts","ng://@taiga-ui/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, HostListener, Inject, Input} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\nimport {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: `[tuiCopyProcessor]`,\n})\nexport class TuiCopyProcessorDirective {\n @Input()\n @tuiDefaultProp()\n tuiCopyProcessor: TuiStringHandler<string> = identity;\n\n constructor(@Inject(WINDOW) private readonly windowRef: Window) {}\n\n @HostListener(`copy.prevent`, [`$event`])\n onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.windowRef);\n\n if (text) {\n event.clipboardData?.setData(`text/plain`, this.tuiCopyProcessor(text));\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCopyProcessorDirective} from './copy-processor.directive';\n\n@NgModule({\n declarations: [TuiCopyProcessorDirective],\n exports: [TuiCopyProcessorDirective],\n})\nexport class TuiCopyProcessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOA;IAIa,yBAAyB,GAAtC,MAAa,yBAAyB;IAKlC,YAA6C,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;QAF9D,qBAAgB,GAA6B,QAAQ,CAAC;KAEY;IAGlE,MAAM,CAAC,KAAqB;;QACxB,MAAM,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhD,IAAI,IAAI,EAAE;YACN,MAAA,KAAK,CAAC,aAAa,0CAAE,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;SAC3E;KACJ;EACJ;;YAV2D,MAAM,uBAAjD,MAAM,SAAC,MAAM;;AAF1B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mEACqC;AAKtD;IADC,YAAY,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC;uDAOxC;AAdQ,yBAAyB;IAHrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMe,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GALlB,yBAAyB,CAerC;;IClBY,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;ACRtC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-copy-processor.js","sources":["ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.directive.ts","ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.module.ts","ng://@taiga-ui/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, HostListener, Inject, Input} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\nimport {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiCopyProcessor]',\n})\nexport class TuiCopyProcessorDirective {\n @Input()\n @tuiDefaultProp()\n tuiCopyProcessor: TuiStringHandler<string> = identity;\n\n constructor(@Inject(WINDOW) private readonly windowRef: Window) {}\n\n @HostListener('copy.prevent', ['$event'])\n onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.windowRef);\n\n if (text) {\n event.clipboardData?.setData('text/plain', this.tuiCopyProcessor(text));\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCopyProcessorDirective} from './copy-processor.directive';\n\n@NgModule({\n declarations: [TuiCopyProcessorDirective],\n exports: [TuiCopyProcessorDirective],\n})\nexport class TuiCopyProcessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOA;IAIa,yBAAyB,GAAtC,MAAa,yBAAyB;IAKlC,YAA6C,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;QAF9D,qBAAgB,GAA6B,QAAQ,CAAC;KAEY;IAGlE,MAAM,CAAC,KAAqB;;QACxB,MAAM,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhD,IAAI,IAAI,EAAE;YACN,MAAA,KAAK,CAAC,aAAa,0CAAE,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;SAC3E;KACJ;EACJ;;YAV2D,MAAM,uBAAjD,MAAM,SAAC,MAAM;;AAF1B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mEACqC;AAKtD;IADC,YAAY,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC;uDAOxC;AAdQ,yBAAyB;IAHrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMe,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GALlB,yBAAyB,CAerC;;IClBY,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;ACRtC;;;;;;"}
@@ -16,17 +16,17 @@ TuiDragDirective.ctorParameters = () => [
16
16
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
17
17
  ];
18
18
  __decorate([
19
- Output(`tuiDragStart`)
19
+ Output('tuiDragStart')
20
20
  ], TuiDragDirective.prototype, "start", void 0);
21
21
  __decorate([
22
- Output(`tuiDragContinues`)
22
+ Output('tuiDragContinues')
23
23
  ], TuiDragDirective.prototype, "continues", void 0);
24
24
  __decorate([
25
- Output(`tuiDragEnd`)
25
+ Output('tuiDragEnd')
26
26
  ], TuiDragDirective.prototype, "end", void 0);
27
27
  TuiDragDirective = __decorate([
28
28
  Directive({
29
- selector: `[tuiDragStart], [tuiDragContinues], [tuiDragEnd]`,
29
+ selector: '[tuiDragStart], [tuiDragContinues], [tuiDragEnd]',
30
30
  }),
31
31
  __param(0, Inject(ElementRef))
32
32
  ], TuiDragDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-drag.js","sources":["ng://@taiga-ui/cdk/directives/drag/drag.directive.ts","ng://@taiga-ui/cdk/directives/drag/drag.module.ts","ng://@taiga-ui/cdk/directives/drag/taiga-ui-cdk-directives-drag.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {dragAndDropFrom, TuiDragStage} from '@taiga-ui/cdk/observables';\nimport {Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\n@Directive({\n selector: `[tuiDragStart], [tuiDragContinues], [tuiDragEnd]`,\n})\nexport class TuiDragDirective {\n private readonly dragAndDropFrom$ = dragAndDropFrom(this.elementRef.nativeElement);\n\n @Output(`tuiDragStart`)\n readonly start: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Start),\n map(({event}) => event),\n );\n\n @Output(`tuiDragContinues`)\n readonly continues: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Continues),\n map(({event}) => event),\n );\n\n @Output(`tuiDragEnd`)\n readonly end: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.End),\n map(({event}) => event),\n );\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<Element>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDragDirective} from './drag.directive';\n\n@NgModule({\n declarations: [TuiDragDirective],\n exports: [TuiDragDirective],\n})\nexport class TuiDragModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAQa,gBAAgB,GAA7B,MAAa,gBAAgB;IAqBzB,YAEqB,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;QAtBnC,qBAAgB,GAAG,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAG1E,UAAK,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC/D,MAAM,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,mBAAwB,EACjD,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,CAAC,CAC1B,CAAC;QAGO,cAAS,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACnE,MAAM,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,uBAA4B,EACrD,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,CAAC,CAC1B,CAAC;QAGO,QAAG,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC7D,MAAM,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,iBAAsB,EAC/C,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,CAAC,CAC1B,CAAC;KAKE;EACP;;YAFoC,UAAU,uBADtC,MAAM,SAAC,UAAU;;AAlBtB;IADC,MAAM,CAAC,cAAc,CAAC;+CAIrB;AAGF;IADC,MAAM,CAAC,kBAAkB,CAAC;mDAIzB;AAGF;IADC,MAAM,CAAC,YAAY,CAAC;6CAInB;AAnBO,gBAAgB;IAH5B,SAAS,CAAC;QACP,QAAQ,EAAE,kDAAkD;KAC/D,CAAC;IAuBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAtBd,gBAAgB,CAyB5B;;ICzBY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACR7B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-drag.js","sources":["ng://@taiga-ui/cdk/directives/drag/drag.directive.ts","ng://@taiga-ui/cdk/directives/drag/drag.module.ts","ng://@taiga-ui/cdk/directives/drag/taiga-ui-cdk-directives-drag.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {dragAndDropFrom, TuiDragStage} from '@taiga-ui/cdk/observables';\nimport {Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiDragStart], [tuiDragContinues], [tuiDragEnd]',\n})\nexport class TuiDragDirective {\n private readonly dragAndDropFrom$ = dragAndDropFrom(this.elementRef.nativeElement);\n\n @Output('tuiDragStart')\n readonly start: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Start),\n map(({event}) => event),\n );\n\n @Output('tuiDragContinues')\n readonly continues: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Continues),\n map(({event}) => event),\n );\n\n @Output('tuiDragEnd')\n readonly end: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.End),\n map(({event}) => event),\n );\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<Element>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDragDirective} from './drag.directive';\n\n@NgModule({\n declarations: [TuiDragDirective],\n exports: [TuiDragDirective],\n})\nexport class TuiDragModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAQa,gBAAgB,GAA7B,MAAa,gBAAgB;IAqBzB,YAEqB,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;QAtBnC,qBAAgB,GAAG,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAG1E,UAAK,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC/D,MAAM,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,mBAAwB,EACjD,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,CAAC,CAC1B,CAAC;QAGO,cAAS,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACnE,MAAM,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,uBAA4B,EACrD,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,CAAC,CAC1B,CAAC;QAGO,QAAG,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC7D,MAAM,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,iBAAsB,EAC/C,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,CAAC,CAC1B,CAAC;KAKE;EACP;;YAFoC,UAAU,uBADtC,MAAM,SAAC,UAAU;;AAlBtB;IADC,MAAM,CAAC,cAAc,CAAC;+CAIrB;AAGF;IADC,MAAM,CAAC,kBAAkB,CAAC;mDAIzB;AAGF;IADC,MAAM,CAAC,YAAY,CAAC;6CAInB;AAnBO,gBAAgB;IAH5B,SAAS,CAAC;QACP,QAAQ,EAAE,kDAAkD;KAC/D,CAAC;IAuBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAtBd,gBAAgB,CAyB5B;;ICzBY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACR7B;;;;;;"}
@@ -9,10 +9,10 @@ import { map, filter, switchMap, mapTo, startWith, distinctUntilChanged, takeUnt
9
9
  // @dynamic
10
10
  let TuiDroppableDirective = class TuiDroppableDirective {
11
11
  constructor({ nativeElement }, destroy$) {
12
- this.tuiDroppableDropped = typedFromEvent(nativeElement, `drop`).pipe(preventDefault(), map(event => event.dataTransfer), filter(isPresent));
13
- this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, `dragenter`).pipe(switchMap(({ target, dataTransfer }) => merge(typedFromEvent(nativeElement, `dragleave`).pipe(filter(event => event.target === target)), typedFromEvent(nativeElement, `drop`)).pipe(mapTo(null), startWith(dataTransfer))), distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)));
12
+ this.tuiDroppableDropped = typedFromEvent(nativeElement, 'drop').pipe(preventDefault(), map(event => event.dataTransfer), filter(isPresent));
13
+ this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, 'dragenter').pipe(switchMap(({ target, dataTransfer }) => merge(typedFromEvent(nativeElement, 'dragleave').pipe(filter(event => event.target === target)), typedFromEvent(nativeElement, 'drop')).pipe(mapTo(null), startWith(dataTransfer))), distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)));
14
14
  // Required by Drag and Drop API to stop redirecting
15
- typedFromEvent(nativeElement, `dragover`)
15
+ typedFromEvent(nativeElement, 'dragover')
16
16
  .pipe(preventDefault(), takeUntil(destroy$))
17
17
  .subscribe();
18
18
  }
@@ -29,7 +29,7 @@ __decorate([
29
29
  ], TuiDroppableDirective.prototype, "tuiDroppableDragOverChange", void 0);
30
30
  TuiDroppableDirective = __decorate([
31
31
  Directive({
32
- selector: `[tuiDroppableDropped], [tuiDroppableDragOverChange]`,
32
+ selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',
33
33
  providers: [TuiDestroyService],
34
34
  }),
35
35
  __param(0, Inject(ElementRef)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-droppable.js","sources":["ng://@taiga-ui/cdk/directives/droppable/droppable.directive.ts","ng://@taiga-ui/cdk/directives/droppable/droppable.module.ts","ng://@taiga-ui/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {preventDefault, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n mapTo,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: `[tuiDroppableDropped], [tuiDroppableDragOverChange]`,\n providers: [TuiDestroyService],\n})\nexport class TuiDroppableDirective {\n @Output()\n readonly tuiDroppableDropped: Observable<DataTransfer>;\n\n @Output()\n readonly tuiDroppableDragOverChange: Observable<DataTransfer | null>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n this.tuiDroppableDropped = typedFromEvent(nativeElement, `drop`).pipe(\n preventDefault(),\n map(event => event.dataTransfer),\n filter(isPresent),\n );\n\n this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, `dragenter`).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n typedFromEvent(nativeElement, `dragleave`).pipe(\n filter(event => event.target === target),\n ),\n typedFromEvent(nativeElement, `drop`),\n ).pipe(mapTo(null), startWith(dataTransfer)),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n\n // Required by Drag and Drop API to stop redirecting\n typedFromEvent(nativeElement, `dragover`)\n .pipe(preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDroppableDirective} from './droppable.directive';\n\n@NgModule({\n declarations: [TuiDroppableDirective],\n exports: [TuiDroppableDirective],\n})\nexport class TuiDroppableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;IAKa,qBAAqB,GAAlC,MAAa,qBAAqB;IAO9B,YACwB,EAAC,aAAa,EAA0B,EACjC,QAA0B;QAErD,IAAI,CAAC,mBAAmB,GAAG,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,IAAI,CACjE,cAAc,EAAE,EAChB,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,YAAY,CAAC,EAChC,MAAM,CAAC,SAAS,CAAC,CACpB,CAAC;QAEF,IAAI,CAAC,0BAA0B,GAAG,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,IAAI,CAC7E,SAAS,CAAC,CAAC,EAAC,MAAM,EAAE,YAAY,EAAC,KAC7B,KAAK,CACD,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,IAAI,CAC3C,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,CAC3C,EACD,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,CACxC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAC/C,EACD,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC7D,CAAC;;QAGF,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC;aACpC,IAAI,CAAC,cAAc,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC3C,SAAS,EAAE,CAAC;KACpB;EACJ;;YA1B4C,UAAU,uBAA9C,MAAM,SAAC,UAAU;YACmB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;;AAP7B;IADC,MAAM,EAAE;kEAC8C;AAGvD;IADC,MAAM,EAAE;yEAC4D;AAL5D,qBAAqB;IAJjC,SAAS,CAAC;QACP,QAAQ,EAAE,qDAAqD;QAC/D,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IASO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GATrB,qBAAqB,CAkCjC;;IC9CY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-droppable.js","sources":["ng://@taiga-ui/cdk/directives/droppable/droppable.directive.ts","ng://@taiga-ui/cdk/directives/droppable/droppable.module.ts","ng://@taiga-ui/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {preventDefault, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n mapTo,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n providers: [TuiDestroyService],\n})\nexport class TuiDroppableDirective {\n @Output()\n readonly tuiDroppableDropped: Observable<DataTransfer>;\n\n @Output()\n readonly tuiDroppableDragOverChange: Observable<DataTransfer | null>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n this.tuiDroppableDropped = typedFromEvent(nativeElement, 'drop').pipe(\n preventDefault(),\n map(event => event.dataTransfer),\n filter(isPresent),\n );\n\n this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, 'dragenter').pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n typedFromEvent(nativeElement, 'dragleave').pipe(\n filter(event => event.target === target),\n ),\n typedFromEvent(nativeElement, 'drop'),\n ).pipe(mapTo(null), startWith(dataTransfer)),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n\n // Required by Drag and Drop API to stop redirecting\n typedFromEvent(nativeElement, 'dragover')\n .pipe(preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDroppableDirective} from './droppable.directive';\n\n@NgModule({\n declarations: [TuiDroppableDirective],\n exports: [TuiDroppableDirective],\n})\nexport class TuiDroppableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;IAKa,qBAAqB,GAAlC,MAAa,qBAAqB;IAO9B,YACwB,EAAC,aAAa,EAA0B,EACjC,QAA0B;QAErD,IAAI,CAAC,mBAAmB,GAAG,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,IAAI,CACjE,cAAc,EAAE,EAChB,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,YAAY,CAAC,EAChC,MA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CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -11,8 +11,8 @@ TuiElementDirective.ctorParameters = () => [
11
11
  ];
12
12
  TuiElementDirective = __decorate([
13
13
  Directive({
14
- selector: `[tuiElement]`,
15
- exportAs: `elementRef`,
14
+ selector: '[tuiElement]',
15
+ exportAs: 'elementRef',
16
16
  }),
17
17
  __param(0, Inject(ElementRef))
18
18
  ], TuiElementDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-element.js","sources":["ng://@taiga-ui/cdk/directives/element/element.directive.ts","ng://@taiga-ui/cdk/directives/element/element.module.ts","ng://@taiga-ui/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef, Inject} from '@angular/core';\n\n@Directive({\n selector: `[tuiElement]`,\n exportAs: `elementRef`,\n})\nexport class TuiElementDirective<T extends Element = HTMLElement> extends ElementRef<T> {\n constructor(@Inject(ElementRef) {nativeElement}: ElementRef<T>) {\n super(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiElementDirective} from './element.directive';\n\n@NgModule({\n declarations: [TuiElementDirective],\n exports: [TuiElementDirective],\n})\nexport class TuiElementModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAMa,mBAAmB,GAAhC,MAAa,mBAAqD,SAAQ,UAAa;IACnF,YAAgC,EAAC,aAAa,EAAgB;QAC1D,KAAK,CAAC,aAAa,CAAC,CAAC;KACxB;EACJ;;YAHoD,UAAU,uBAA9C,MAAM,SAAC,UAAU;;AADrB,mBAAmB;IAJ/B,SAAS,CAAC;QACP,QAAQ,EAAE,cAAc;QACxB,QAAQ,EAAE,YAAY;KACzB,CAAC;IAEe,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GADtB,mBAAmB,CAI/B;;ICFY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-element.js","sources":["ng://@taiga-ui/cdk/directives/element/element.directive.ts","ng://@taiga-ui/cdk/directives/element/element.module.ts","ng://@taiga-ui/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef, Inject} from '@angular/core';\n\n@Directive({\n selector: '[tuiElement]',\n exportAs: 'elementRef',\n})\nexport class TuiElementDirective<T extends Element = HTMLElement> extends ElementRef<T> {\n constructor(@Inject(ElementRef) {nativeElement}: ElementRef<T>) {\n super(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiElementDirective} from './element.directive';\n\n@NgModule({\n declarations: [TuiElementDirective],\n exports: [TuiElementDirective],\n})\nexport class TuiElementModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAMa,mBAAmB,GAAhC,MAAa,mBAAqD,SAAQ,UAAa;IACnF,YAAgC,EAAC,aAAa,EAAgB;QAC1D,KAAK,CAAC,aAAa,CAAC,CAAC;KACxB;EACJ;;YAHoD,UAAU,uBAA9C,MAAM,SAAC,UAAU;;AADrB,mBAAmB;IAJ/B,SAAS,CAAC;QACP,QAAQ,EAAE,cAAc;QACxB,QAAQ,EAAE,YAAY;KACzB,CAAC;IAEe,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GADtB,mBAAmB,CAI/B;;ICFY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
@@ -22,7 +22,7 @@ let TuiFocusTrapDirective = class TuiFocusTrapDirective {
22
22
  });
23
23
  }
24
24
  onBlur() {
25
- this.renderer.removeAttribute(this.elementRef.nativeElement, `tabIndex`);
25
+ this.renderer.removeAttribute(this.elementRef.nativeElement, 'tabIndex');
26
26
  }
27
27
  onFocusIn(node) {
28
28
  if (containsOrAfter(this.elementRef.nativeElement, node)) {
@@ -56,16 +56,16 @@ TuiFocusTrapDirective.ctorParameters = () => [
56
56
  { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] }
57
57
  ];
58
58
  __decorate([
59
- HostListener(`blur`)
59
+ HostListener('blur')
60
60
  ], TuiFocusTrapDirective.prototype, "onBlur", null);
61
61
  __decorate([
62
- HostListener(`window:focusin.silent`, [`$event.target`])
62
+ HostListener('window:focusin.silent', ['$event.target'])
63
63
  ], TuiFocusTrapDirective.prototype, "onFocusIn", null);
64
64
  TuiFocusTrapDirective = __decorate([
65
65
  Directive({
66
- selector: `[tuiFocusTrap]`,
66
+ selector: '[tuiFocusTrap]',
67
67
  host: {
68
- tabIndex: `0`,
68
+ tabIndex: '0',
69
69
  },
70
70
  }),
71
71
  __param(0, Inject(DOCUMENT)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focus-trap.js","sources":["ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.directive.ts","ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.module.ts","ng://@taiga-ui/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Renderer2,\n} from '@angular/core';\nimport {containsOrAfter} from '@taiga-ui/cdk/utils/dom';\nimport {\n blurNativeFocused,\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n// @dynamic\n@Directive({\n selector: `[tuiFocusTrap]`,\n host: {\n tabIndex: `0`,\n },\n})\nexport class TuiFocusTrapDirective implements OnDestroy {\n private readonly activeElement = getNativeFocused(this.documentRef);\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n Promise.resolve().then(() => {\n setNativeFocused(this.elementRef.nativeElement);\n });\n }\n\n @HostListener(`blur`)\n onBlur(): void {\n this.renderer.removeAttribute(this.elementRef.nativeElement, `tabIndex`);\n }\n\n @HostListener(`window:focusin.silent`, [`$event.target`])\n onFocusIn(node: Node): void {\n if (containsOrAfter(this.elementRef.nativeElement, node)) {\n return;\n }\n\n const focusable = getClosestFocusable(\n this.elementRef.nativeElement,\n false,\n this.elementRef.nativeElement,\n );\n\n if (focusable) {\n setNativeFocused(focusable);\n }\n }\n\n ngOnDestroy(): void {\n blurNativeFocused(this.documentRef);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n // TODO: iframe warning\n if (this.activeElement instanceof HTMLElement) {\n setNativeFocused(this.activeElement);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusTrapDirective} from './focus-trap.directive';\n\n@NgModule({\n declarations: [TuiFocusTrapDirective],\n exports: [TuiFocusTrapDirective],\n})\nexport class TuiFocusTrapModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAiBA;IAOa,qBAAqB,GAAlC,MAAa,qBAAqB;IAG9B,YACuC,WAAqB,EAEvC,UAAmC,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AAC;sDAexD;AAxCQ,qBAAqB;IANjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE;YACF,QAAQ,EAAE,GAAG;SAChB;KACJ,CAAC;IAKO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAPb,qBAAqB,CA2DjC;;IC3EY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focus-trap.js","sources":["ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.directive.ts","ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.module.ts","ng://@taiga-ui/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Renderer2,\n} from '@angular/core';\nimport {containsOrAfter} from '@taiga-ui/cdk/utils/dom';\nimport {\n blurNativeFocused,\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n// @dynamic\n@Directive({\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n },\n})\nexport class TuiFocusTrapDirective implements OnDestroy {\n private readonly activeElement = getNativeFocused(this.documentRef);\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n Promise.resolve().then(() => {\n setNativeFocused(this.elementRef.nativeElement);\n });\n }\n\n @HostListener('blur')\n onBlur(): void {\n this.renderer.removeAttribute(this.elementRef.nativeElement, 'tabIndex');\n }\n\n @HostListener('window:focusin.silent', ['$event.target'])\n onFocusIn(node: Node): void {\n if (containsOrAfter(this.elementRef.nativeElement, node)) {\n return;\n }\n\n const focusable = getClosestFocusable(\n this.elementRef.nativeElement,\n false,\n this.elementRef.nativeElement,\n );\n\n if (focusable) {\n setNativeFocused(focusable);\n }\n }\n\n ngOnDestroy(): void {\n blurNativeFocused(this.documentRef);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n // TODO: iframe warning\n if (this.activeElement instanceof HTMLElement) {\n setNativeFocused(this.activeElement);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusTrapDirective} from './focus-trap.directive';\n\n@NgModule({\n declarations: [TuiFocusTrapDirective],\n exports: [TuiFocusTrapDirective],\n})\nexport class TuiFocusTrapModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAiBA;IAOa,qBAAqB,GAAlC,MAAa,qBAAqB;IAG9B,YACuC,WAAqB,EAEvC,UAAmC,EAChB,QAAmB;QAHpB,gBAAW,GAAX,WAAW,CAAU;QAEvC,eAAU,GAAV,UAAU,CAAyB;QAChB,aAAQ,GAAR,QAAQ,CAAW;QAN1C,kBAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;;;;;;;QAchE,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;YACnB,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CA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EY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -19,8 +19,8 @@ TuiFocusVisibleDirective.ctorParameters = () => [
19
19
  ];
20
20
  TuiFocusVisibleDirective = __decorate([
21
21
  Directive({
22
- selector: `[tuiFocusVisibleChange]`,
23
- outputs: [`tuiFocusVisibleChange`],
22
+ selector: '[tuiFocusVisibleChange]',
23
+ outputs: ['tuiFocusVisibleChange'],
24
24
  providers: [TuiDestroyService, TuiFocusVisibleService],
25
25
  }),
26
26
  __param(0, Inject(TuiFocusVisibleService))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focus-visible.js","sources":["ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.directive.ts","ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.module.ts","ng://@taiga-ui/cdk/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n/**\n * Directive to imitate :focus-visible\n * (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)\n * in browsers that do not support it\n * @dynamic\n */\n@Directive({\n selector: `[tuiFocusVisibleChange]`,\n outputs: [`tuiFocusVisibleChange`],\n providers: [TuiDestroyService, TuiFocusVisibleService],\n})\nexport class TuiFocusVisibleDirective {\n constructor(\n @Inject(TuiFocusVisibleService)\n readonly tuiFocusVisibleChange: Observable<boolean>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusVisibleDirective} from './focus-visible.directive';\n\n@NgModule({\n declarations: [TuiFocusVisibleDirective],\n exports: [TuiFocusVisibleDirective],\n})\nexport class TuiFocusVisibleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;;;IAWa,wBAAwB,GAArC,MAAa,wBAAwB;IACjC,YAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;EACP;;YAFuC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;AAFzB,wBAAwB;IALpC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;KACzD,CAAC;IAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAF1B,wBAAwB,CAKpC;;ICZY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focus-visible.js","sources":["ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.directive.ts","ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.module.ts","ng://@taiga-ui/cdk/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n/**\n * Directive to imitate :focus-visible\n * (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)\n * in browsers that do not support it\n * @dynamic\n */\n@Directive({\n selector: '[tuiFocusVisibleChange]',\n outputs: ['tuiFocusVisibleChange'],\n providers: [TuiDestroyService, TuiFocusVisibleService],\n})\nexport class TuiFocusVisibleDirective {\n constructor(\n @Inject(TuiFocusVisibleService)\n readonly tuiFocusVisibleChange: Observable<boolean>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusVisibleDirective} from './focus-visible.directive';\n\n@NgModule({\n declarations: [TuiFocusVisibleDirective],\n exports: [TuiFocusVisibleDirective],\n})\nexport class TuiFocusVisibleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;;;IAWa,wBAAwB,GAArC,MAAa,wBAAwB;IACjC,YAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;EACP;;YAFuC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;AAFzB,wBAAwB;IALpC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;KACzD,CAAC;IAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAF1B,wBAAwB,CAKpC;;ICZY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
@@ -16,14 +16,14 @@ let TuiFocusableDirective = class TuiFocusableDirective {
16
16
  }
17
17
  };
18
18
  __decorate([
19
- Input(`tuiFocusable`)
19
+ Input('tuiFocusable')
20
20
  ], TuiFocusableDirective.prototype, "focusable", void 0);
21
21
  __decorate([
22
- HostBinding(`tabIndex`)
22
+ HostBinding('tabIndex')
23
23
  ], TuiFocusableDirective.prototype, "tabIndex", null);
24
24
  TuiFocusableDirective = __decorate([
25
25
  Directive({
26
- selector: `[tuiFocusable]`,
26
+ selector: '[tuiFocusable]',
27
27
  })
28
28
  ], TuiFocusableDirective);
29
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focusable.js","sources":["ng://@taiga-ui/cdk/directives/focusable/focusable.directive.ts","ng://@taiga-ui/cdk/directives/focusable/focusable.module.ts","ng://@taiga-ui/cdk/directives/focusable/taiga-ui-cdk-directives-focusable.ts"],"sourcesContent":["import {Directive, HostBinding, Input} from '@angular/core';\n\n/**\n * Abstraction over `tabindex`\n */\n@Directive({\n selector: `[tuiFocusable]`,\n})\nexport class TuiFocusableDirective {\n /**\n * Element can be focused with keyboard\n */\n @Input(`tuiFocusable`)\n focusable = true;\n\n @HostBinding(`tabIndex`)\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusableDirective} from './focusable.directive';\n\n@NgModule({\n declarations: [TuiFocusableDirective],\n exports: [TuiFocusableDirective],\n})\nexport class TuiFocusableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAAlC;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAClC;EACJ;AANG;IADC,KAAK,CAAC,cAAc,CAAC;wDACL;AAGjB;IADC,WAAW,CAAC,UAAU,CAAC;qDAGvB;AAVQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;KAC7B,CAAC;GACW,qBAAqB,CAWjC;;ICXY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focusable.js","sources":["ng://@taiga-ui/cdk/directives/focusable/focusable.directive.ts","ng://@taiga-ui/cdk/directives/focusable/focusable.module.ts","ng://@taiga-ui/cdk/directives/focusable/taiga-ui-cdk-directives-focusable.ts"],"sourcesContent":["import {Directive, HostBinding, Input} from '@angular/core';\n\n/**\n * Abstraction over `tabindex`\n */\n@Directive({\n selector: '[tuiFocusable]',\n})\nexport class TuiFocusableDirective {\n /**\n * Element can be focused with keyboard\n */\n @Input('tuiFocusable')\n focusable = true;\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusableDirective} from './focusable.directive';\n\n@NgModule({\n declarations: [TuiFocusableDirective],\n exports: [TuiFocusableDirective],\n})\nexport class TuiFocusableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAAlC;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAClC;EACJ;AANG;IADC,KAAK,CAAC,cAAc,CAAC;wDACL;AAGjB;IADC,WAAW,CAAC,UAAU,CAAC;qDAGvB;AAVQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;KAC7B,CAAC;GACW,qBAAqB,CAWjC;;ICXY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -12,7 +12,7 @@ import { map, startWith, distinctUntilChanged, skip } from 'rxjs/operators';
12
12
  */
13
13
  let TuiFocusedDirective = class TuiFocusedDirective {
14
14
  constructor({ nativeElement }, ngZone) {
15
- this.tuiFocusedChange = merge(typedFromEvent(nativeElement, `focusin`), typedFromEvent(nativeElement, `focusout`)).pipe(map(() => isNativeFocused(nativeElement)), startWith(false), distinctUntilChanged(), skip(1), tuiZoneOptimized(ngZone));
15
+ this.tuiFocusedChange = merge(typedFromEvent(nativeElement, 'focusin'), typedFromEvent(nativeElement, 'focusout')).pipe(map(() => isNativeFocused(nativeElement)), startWith(false), distinctUntilChanged(), skip(1), tuiZoneOptimized(ngZone));
16
16
  }
17
17
  };
18
18
  TuiFocusedDirective.ctorParameters = () => [
@@ -24,7 +24,7 @@ __decorate([
24
24
  ], TuiFocusedDirective.prototype, "tuiFocusedChange", void 0);
25
25
  TuiFocusedDirective = __decorate([
26
26
  Directive({
27
- selector: `[tuiFocusedChange]`,
27
+ selector: '[tuiFocusedChange]',
28
28
  }),
29
29
  __param(0, Inject(ElementRef)),
30
30
  __param(1, Inject(NgZone))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focused.js","sources":["ng://@taiga-ui/cdk/directives/focused/focused.directive.ts","ng://@taiga-ui/cdk/directives/focused/focused.module.ts","ng://@taiga-ui/cdk/directives/focused/taiga-ui-cdk-directives-focused.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n/**\n * Directive to monitor focus/blur status, works with focusIn/focus-out\n * instead of focus/blur to sync events order with Internet Explorer and\n * other focus related directives that require bubbling\n */\n@Directive({\n selector: `[tuiFocusedChange]`,\n})\nexport class TuiFocusedDirective {\n @Output()\n readonly tuiFocusedChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef)\n {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n ) {\n this.tuiFocusedChange = merge(\n typedFromEvent(nativeElement, `focusin`),\n typedFromEvent(nativeElement, `focusout`),\n ).pipe(\n map(() => isNativeFocused(nativeElement)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(ngZone),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusedDirective} from './focused.directive';\n\n@NgModule({\n declarations: [TuiFocusedDirective],\n exports: [TuiFocusedDirective],\n})\nexport class TuiFocusedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;IAQa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YAEI,EAAC,aAAa,EAA0B,EACxB,MAAc;QAE9B,IAAI,CAAC,gBAAgB,GAAG,KAAK,CACzB,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,EACxC,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC,CAC5C,CAAC,IAAI,CACF,GAAG,CAAC,MAAM,eAAe,CAAC,aAAa,CAAC,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;EACJ;;YAdwB,UAAU,uBAD1B,MAAM,SAAC,UAAU;YAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;AALlB;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GAPV,mBAAmB,CAoB/B;;IC1BY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focused.js","sources":["ng://@taiga-ui/cdk/directives/focused/focused.directive.ts","ng://@taiga-ui/cdk/directives/focused/focused.module.ts","ng://@taiga-ui/cdk/directives/focused/taiga-ui-cdk-directives-focused.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n/**\n * Directive to monitor focus/blur status, works with focusIn/focus-out\n * instead of focus/blur to sync events order with Internet Explorer and\n * other focus related directives that require bubbling\n */\n@Directive({\n selector: '[tuiFocusedChange]',\n})\nexport class TuiFocusedDirective {\n @Output()\n readonly tuiFocusedChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef)\n {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n ) {\n this.tuiFocusedChange = merge(\n typedFromEvent(nativeElement, 'focusin'),\n typedFromEvent(nativeElement, 'focusout'),\n ).pipe(\n map(() => isNativeFocused(nativeElement)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(ngZone),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusedDirective} from './focused.directive';\n\n@NgModule({\n declarations: [TuiFocusedDirective],\n exports: [TuiFocusedDirective],\n})\nexport class TuiFocusedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;IAQa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YAEI,EAAC,aAAa,EAA0B,EACxB,MAAc;QAE9B,IAAI,CAAC,gBAAgB,GAAG,KAAK,CACzB,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,EACxC,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC,CAC5C,CAAC,IAAI,CACF,GAAG,CAAC,MAAM,eAAe,CAAC,aAAa,CAAC,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;EACJ;;YAdwB,UAAU,uBAD1B,MAAM,SAAC,UAAU;YAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;AALlB;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GAPV,mBAAmB,CAoB/B;;IC1BY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
@@ -41,7 +41,7 @@ __decorate([
41
41
  Input()
42
42
  ], TuiForAsyncDirective.prototype, "tuiForAsyncTimeout", void 0);
43
43
  TuiForAsyncDirective = __decorate([
44
- Directive({ selector: `[tuiForAsync][tuiForAsyncOf]` }),
44
+ Directive({ selector: '[tuiForAsync][tuiForAsyncOf]' }),
45
45
  __param(0, Inject(ViewContainerRef)),
46
46
  __param(1, Inject(TemplateRef))
47
47
  ], TuiForAsyncDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-for-async.js","sources":["ng://@taiga-ui/cdk/directives/for-async/for-async.directive.ts","ng://@taiga-ui/cdk/directives/for-async/for-async.module.ts","ng://@taiga-ui/cdk/directives/for-async/taiga-ui-cdk-directives-for-async.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport {from, of, Subject} from 'rxjs';\nimport {concatMap, delay, takeUntil} from 'rxjs/operators';\n\n@Directive({selector: `[tuiForAsync][tuiForAsyncOf]`})\nexport class TuiForAsyncDirective<T> implements OnChanges, OnDestroy {\n private readonly destroy$ = new Subject<void>();\n\n @Input()\n tuiForAsyncOf: readonly T[] | undefined | null;\n\n @Input()\n tuiForAsyncTimeout = 10;\n\n constructor(\n @Inject(ViewContainerRef) private readonly view: ViewContainerRef,\n @Inject(TemplateRef) private readonly template: TemplateRef<unknown>,\n ) {}\n\n ngOnChanges(): void {\n this.clearViewForOldNodes();\n this.createAsyncViewForNewNodes();\n }\n\n ngOnDestroy(): void {\n this.clearViewForOldNodes();\n this.destroy$.complete();\n }\n\n private createAsyncViewForNewNodes(): void {\n from((this.tuiForAsyncOf || []).entries())\n .pipe(\n concatMap(entry => of(entry).pipe(delay(this.tuiForAsyncTimeout))),\n takeUntil(this.destroy$),\n )\n .subscribe(([index, item]) =>\n this.view\n .createEmbeddedView(this.template, {$implicit: item, index}, index)\n .detectChanges(),\n );\n }\n\n private clearViewForOldNodes(): void {\n this.destroy$.next();\n this.view.clear();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForAsyncDirective} from './for-async.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiForAsyncDirective],\n exports: [TuiForAsyncDirective],\n})\nexport class TuiForAsyncModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAaa,oBAAoB,GAAjC,MAAa,oBAAoB;IAS7B,YAC+C,IAAsB,EAC3B,QAA8B;QADzB,SAAI,GAAJ,IAAI,CAAkB;QAC3B,aAAQ,GAAR,QAAQ,CAAsB;QAVvD,aAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;QAMhD,uBAAkB,G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ApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACXjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-for-async.js","sources":["ng://@taiga-ui/cdk/directives/for-async/for-async.directive.ts","ng://@taiga-ui/cdk/directives/for-async/for-async.module.ts","ng://@taiga-ui/cdk/directives/for-async/taiga-ui-cdk-directives-for-async.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport {from, of, Subject} from 'rxjs';\nimport {concatMap, delay, takeUntil} from 'rxjs/operators';\n\n@Directive({selector: '[tuiForAsync][tuiForAsyncOf]'})\nexport class TuiForAsyncDirective<T> implements OnChanges, OnDestroy {\n private readonly destroy$ = new Subject<void>();\n\n @Input()\n tuiForAsyncOf: readonly T[] | null | undefined;\n\n @Input()\n tuiForAsyncTimeout = 10;\n\n constructor(\n @Inject(ViewContainerRef) private readonly view: ViewContainerRef,\n @Inject(TemplateRef) private readonly template: TemplateRef<unknown>,\n ) {}\n\n ngOnChanges(): void {\n this.clearViewForOldNodes();\n this.createAsyncViewForNewNodes();\n }\n\n ngOnDestroy(): void {\n this.clearViewForOldNodes();\n this.destroy$.complete();\n }\n\n private createAsyncViewForNewNodes(): void {\n from((this.tuiForAsyncOf || []).entries())\n .pipe(\n concatMap(entry => of(entry).pipe(delay(this.tuiForAsyncTimeout))),\n takeUntil(this.destroy$),\n )\n .subscribe(([index, item]) =>\n this.view\n .createEmbeddedView(this.template, {$implicit: item, index}, index)\n .detectChanges(),\n );\n }\n\n private clearViewForOldNodes(): void {\n this.destroy$.next();\n this.view.clear();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForAsyncDirective} from './for-async.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiForAsyncDirective],\n exports: [TuiForAsyncDirective],\n})\nexport class TuiForAsyncModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAaa,oBAAoB,GAAjC,MAAa,oBAAoB;IAS7B,YAC+C,IAAsB,EAC3B,QAA8B;QADzB,SAAI,GAAJ,IAAI,CAAkB;QAC3B,aAAQ,GAAR,QAAQ,CAAsB;QAVvD,aAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;QAMhD,uBAAkB,GAAG,EAAE,CAAC;KAKpB;IAEJ,WAAW;QACP,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,0BAA0B,EAAE,CAAC;KACrC;IAED,WAAW;QACP,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC5B;IAEO,0BAA0B;QAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC;aACrC,IAAI,CACD,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAClE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAC3B;aACA,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,KACrB,IAAI,CAAC,IAAI;aACJ,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAC,EAAE,KAAK,CAAC;aAClE,aAAa,EAAE,CACvB,CAAC;KACT;IAEO,oBAAoB;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;KACrB;EACJ;;YA/BwD,gBAAgB,uBAAhE,MAAM,SAAC,gBAAgB;YACwB,WAAW,uBAA1D,MAAM,SAAC,WAAW;;AAPvB;IADC,KAAK,EAAE;2DACuC;AAG/C;IADC,KAAK,EAAE;gEACgB;AAPf,oBAAoB;IADhC,SAAS,CAAC,EAAC,QAAQ,EAAE,8BAA8B,EAAC,CAAC;IAW7C,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAXf,oBAAoB,CAyChC;;AClDD;;;IAOa,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACXjC;;;;;;"}
@@ -31,7 +31,7 @@ __decorate([
31
31
  ], TuiForDirective.prototype, "ngForEmpty", void 0);
32
32
  TuiForDirective = __decorate([
33
33
  Directive({
34
- selector: `[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]`,
34
+ selector: '[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]',
35
35
  }),
36
36
  __param(0, Inject(ViewContainerRef))
37
37
  ], TuiForDirective);