@taiga-ui/cdk 2.23.0 → 2.27.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 (490) hide show
  1. package/README.md +7 -3
  2. package/abstract/control.d.ts +1 -1
  3. package/abstract/dialog.directive.d.ts +12 -0
  4. package/abstract/index.d.ts +1 -0
  5. package/abstract/interactive.d.ts +4 -4
  6. package/abstract/taiga-ui-cdk-abstract.metadata.json +1 -1
  7. package/bundles/taiga-ui-cdk-abstract.umd.js +45 -7
  8. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-abstract.umd.min.js +2 -2
  10. package/bundles/taiga-ui-cdk-abstract.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +1 -1
  12. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js +1 -1
  14. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-components-portal-host.umd.js.map +1 -1
  16. package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  18. package/bundles/taiga-ui-cdk-constants.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-date-time.umd.js +349 -349
  20. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-date-time.umd.min.js +2 -2
  22. package/bundles/taiga-ui-cdk-date-time.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  24. package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  26. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
  28. package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
  30. package/bundles/taiga-ui-cdk-directives-checked.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +276 -0
  32. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -0
  33. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js +16 -0
  34. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js.map +1 -0
  35. package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
  36. package/bundles/taiga-ui-cdk-directives-drag.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
  38. package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
  40. package/bundles/taiga-ui-cdk-directives-element.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
  42. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
  44. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
  46. package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  48. package/bundles/taiga-ui-cdk-directives-focused.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
  50. package/bundles/taiga-ui-cdk-directives-for.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
  52. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  54. package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +1 -1
  56. package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-cdk-directives-item.umd.js +259 -0
  58. package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -0
  59. package/bundles/taiga-ui-cdk-directives-item.umd.min.js +16 -0
  60. package/bundles/taiga-ui-cdk-directives-item.umd.min.js.map +1 -0
  61. package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
  62. package/bundles/taiga-ui-cdk-directives-let.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-cdk-directives-media.umd.js +1 -1
  64. package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
  65. package/bundles/taiga-ui-cdk-directives-media.umd.min.js +1 -1
  66. package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
  68. package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js.map +1 -1
  69. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  70. package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-cdk-directives-pan.umd.js +5 -5
  72. package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
  73. package/bundles/taiga-ui-cdk-directives-pan.umd.min.js +2 -2
  74. package/bundles/taiga-ui-cdk-directives-pan.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
  76. package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  78. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
  80. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
  82. package/bundles/taiga-ui-cdk-directives-resize.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-cdk-directives-swipe.umd.js +5 -5
  84. package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
  85. package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js +2 -2
  86. package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
  88. package/bundles/taiga-ui-cdk-directives-validator.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-cdk-directives-zoom.umd.js +5 -5
  90. package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
  91. package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js +2 -2
  92. package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-cdk-directives.umd.js +26 -18
  94. package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
  95. package/bundles/taiga-ui-cdk-directives.umd.min.js +1 -1
  96. package/bundles/taiga-ui-cdk-enums.umd.js +11 -11
  97. package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
  98. package/bundles/taiga-ui-cdk-enums.umd.min.js +1 -1
  99. package/bundles/taiga-ui-cdk-enums.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  101. package/bundles/taiga-ui-cdk-observables.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  103. package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  105. package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-cdk-services.umd.js +38 -38
  107. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  108. package/bundles/taiga-ui-cdk-services.umd.min.js +1 -1
  109. package/bundles/taiga-ui-cdk-services.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-cdk-tokens.umd.js +11 -11
  111. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  112. package/bundles/taiga-ui-cdk-tokens.umd.min.js +1 -1
  113. package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-cdk-utils-dom.umd.js +8 -10
  115. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  116. package/bundles/taiga-ui-cdk-utils-dom.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  118. package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +14 -14
  120. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  121. package/components/dialog-host/taiga-ui-cdk-components-dialog-host.metadata.json +1 -1
  122. package/components/portal-host/taiga-ui-cdk-components-portal-host.metadata.json +1 -1
  123. package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
  124. package/date-time/day-range.d.ts +14 -14
  125. package/date-time/day.d.ts +57 -57
  126. package/date-time/index.d.ts +4 -4
  127. package/date-time/month-range.d.ts +1 -1
  128. package/date-time/month.d.ts +26 -26
  129. package/date-time/taiga-ui-cdk-date-time.metadata.json +1 -1
  130. package/date-time/time.d.ts +12 -12
  131. package/date-time/year.d.ts +27 -27
  132. package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
  133. package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.metadata.json +1 -1
  134. package/directives/autofilled/taiga-ui-cdk-directives-autofilled.metadata.json +1 -1
  135. package/directives/checked/taiga-ui-cdk-directives-checked.metadata.json +1 -1
  136. package/directives/copy-processor/copy-processor.directive.d.ts +7 -0
  137. package/directives/copy-processor/copy-processor.module.d.ts +2 -0
  138. package/directives/copy-processor/index.d.ts +2 -0
  139. package/directives/copy-processor/package.json +13 -0
  140. package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +4 -0
  141. package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.metadata.json +1 -0
  142. package/directives/drag/taiga-ui-cdk-directives-drag.metadata.json +1 -1
  143. package/directives/droppable/taiga-ui-cdk-directives-droppable.metadata.json +1 -1
  144. package/directives/element/taiga-ui-cdk-directives-element.metadata.json +1 -1
  145. package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.metadata.json +1 -1
  146. package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.metadata.json +1 -1
  147. package/directives/focusable/taiga-ui-cdk-directives-focusable.metadata.json +1 -1
  148. package/directives/focused/taiga-ui-cdk-directives-focused.metadata.json +1 -1
  149. package/directives/for/for.directive.d.ts +1 -1
  150. package/directives/for/taiga-ui-cdk-directives-for.metadata.json +1 -1
  151. package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.metadata.json +1 -1
  152. package/directives/hovered/taiga-ui-cdk-directives-hovered.metadata.json +1 -1
  153. package/directives/index.d.ts +5 -4
  154. package/directives/input-mode/taiga-ui-cdk-directives-input-mode.metadata.json +1 -1
  155. package/directives/item/index.d.ts +2 -0
  156. package/directives/item/item.directive.d.ts +6 -0
  157. package/directives/item/item.module.d.ts +2 -0
  158. package/directives/item/package.json +13 -0
  159. package/directives/item/taiga-ui-cdk-directives-item.d.ts +4 -0
  160. package/directives/item/taiga-ui-cdk-directives-item.metadata.json +1 -0
  161. package/directives/let/taiga-ui-cdk-directives-let.metadata.json +1 -1
  162. package/directives/media/media.directive.d.ts +1 -1
  163. package/directives/media/taiga-ui-cdk-directives-media.metadata.json +1 -1
  164. package/directives/obscured/taiga-ui-cdk-directives-obscured.metadata.json +1 -1
  165. package/directives/overscroll/taiga-ui-cdk-directives-overscroll.metadata.json +1 -1
  166. package/directives/pan/pan.directive.d.ts +3 -3
  167. package/directives/pan/taiga-ui-cdk-directives-pan.metadata.json +1 -1
  168. package/directives/pressed/taiga-ui-cdk-directives-pressed.metadata.json +1 -1
  169. package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.metadata.json +1 -1
  170. package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.metadata.json +1 -1
  171. package/directives/resize/taiga-ui-cdk-directives-resize.metadata.json +1 -1
  172. package/directives/swipe/swipe.directive.d.ts +4 -3
  173. package/directives/swipe/taiga-ui-cdk-directives-swipe.metadata.json +1 -1
  174. package/directives/taiga-ui-cdk-directives.metadata.json +1 -1
  175. package/directives/validator/taiga-ui-cdk-directives-validator.metadata.json +1 -1
  176. package/directives/zoom/taiga-ui-cdk-directives-zoom.metadata.json +1 -1
  177. package/directives/zoom/zoom.directive.d.ts +4 -3
  178. package/enums/index.d.ts +1 -1
  179. package/enums/taiga-ui-cdk-enums.metadata.json +1 -1
  180. package/esm2015/abstract/control.js +1 -1
  181. package/esm2015/abstract/dialog.directive.js +35 -0
  182. package/esm2015/abstract/index.js +2 -1
  183. package/esm2015/abstract/interactive.js +4 -4
  184. package/esm2015/abstract/multiple-control.js +1 -1
  185. package/esm2015/abstract/nullable-control.js +1 -1
  186. package/esm2015/components/dialog-host/dialog-host.component.js +3 -3
  187. package/esm2015/components/dialog-host/dialog-host.module.js +1 -1
  188. package/esm2015/components/portal-host/portal-host.component.js +1 -1
  189. package/esm2015/components/portal-host/portal-host.module.js +1 -1
  190. package/esm2015/components/portal-host/portal.service.js +1 -1
  191. package/esm2015/constants/matcher.js +1 -1
  192. package/esm2015/date-time/date-fillers.js +1 -1
  193. package/esm2015/date-time/day-range.js +26 -26
  194. package/esm2015/date-time/day.js +120 -120
  195. package/esm2015/date-time/index.js +5 -5
  196. package/esm2015/date-time/month-range.js +6 -6
  197. package/esm2015/date-time/month.js +56 -56
  198. package/esm2015/date-time/time.js +40 -40
  199. package/esm2015/date-time/year.js +49 -49
  200. package/esm2015/directives/active-zone/active-zone.module.js +1 -1
  201. package/esm2015/directives/auto-focus/autofocus.module.js +1 -1
  202. package/esm2015/directives/autofilled/autofilled.module.js +1 -1
  203. package/esm2015/directives/checked/checked.module.js +1 -1
  204. package/esm2015/directives/copy-processor/copy-processor.directive.js +37 -0
  205. package/esm2015/directives/copy-processor/copy-processor.module.js +13 -0
  206. package/esm2015/directives/copy-processor/index.js +3 -0
  207. package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +5 -0
  208. package/esm2015/directives/drag/drag.module.js +1 -1
  209. package/esm2015/directives/droppable/droppable.module.js +1 -1
  210. package/esm2015/directives/element/element.module.js +1 -1
  211. package/esm2015/directives/focus-trap/focus-trap.module.js +1 -1
  212. package/esm2015/directives/focus-visible/focus-visible.module.js +1 -1
  213. package/esm2015/directives/focusable/focusable.module.js +1 -1
  214. package/esm2015/directives/focused/focused.module.js +1 -1
  215. package/esm2015/directives/for/for.directive.js +1 -1
  216. package/esm2015/directives/for/for.module.js +1 -1
  217. package/esm2015/directives/high-dpi/high-dpi.module.js +1 -1
  218. package/esm2015/directives/hovered/hovered.module.js +1 -1
  219. package/esm2015/directives/index.js +6 -5
  220. package/esm2015/directives/input-mode/input-mode.module.js +1 -1
  221. package/esm2015/directives/item/index.js +3 -0
  222. package/esm2015/directives/item/item.directive.js +15 -0
  223. package/esm2015/directives/item/item.module.js +13 -0
  224. package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +5 -0
  225. package/esm2015/directives/let/let.directive.js +1 -1
  226. package/esm2015/directives/let/let.module.js +1 -1
  227. package/esm2015/directives/media/media.directive.js +2 -2
  228. package/esm2015/directives/media/media.module.js +1 -1
  229. package/esm2015/directives/obscured/obscured.module.js +1 -1
  230. package/esm2015/directives/overscroll/overscroll.module.js +1 -1
  231. package/esm2015/directives/pan/pan.directive.js +3 -2
  232. package/esm2015/directives/pan/pan.module.js +1 -1
  233. package/esm2015/directives/pressed/pressed.module.js +1 -1
  234. package/esm2015/directives/prevent-default/prevent-default.module.js +1 -1
  235. package/esm2015/directives/repeat-times/repeat-times.module.js +1 -1
  236. package/esm2015/directives/resize/resize.module.js +1 -1
  237. package/esm2015/directives/swipe/swipe.directive.js +3 -2
  238. package/esm2015/directives/swipe/swipe.module.js +1 -1
  239. package/esm2015/directives/validator/validator.module.js +1 -1
  240. package/esm2015/directives/zoom/zoom.directive.js +3 -2
  241. package/esm2015/directives/zoom/zoom.module.js +1 -1
  242. package/esm2015/enums/index.js +2 -2
  243. package/esm2015/interfaces/base-dialog-context.js +1 -1
  244. package/esm2015/interfaces/base-dialog.js +1 -1
  245. package/esm2015/interfaces/focusable-element-accessor.js +1 -1
  246. package/esm2015/interfaces/index.js +1 -1
  247. package/esm2015/observables/drag-and-drop-from.js +1 -1
  248. package/esm2015/observables/focus-visible-observable.js +1 -1
  249. package/esm2015/observables/mouse-drag-finish-from.js +1 -1
  250. package/esm2015/observables/pressed-observable.js +1 -1
  251. package/esm2015/pipes/filter/filter.module.js +1 -1
  252. package/esm2015/pipes/mapper/mapper.module.js +1 -1
  253. package/esm2015/services/focus-visible.service.js +1 -1
  254. package/esm2015/services/index.js +2 -2
  255. package/esm2015/services/obscured.service.js +1 -1
  256. package/esm2015/services/pan.service.js +3 -3
  257. package/esm2015/services/resize.service.js +1 -1
  258. package/esm2015/services/static-request.service.js +1 -1
  259. package/esm2015/tokens/active-element.js +4 -5
  260. package/esm2015/tokens/index.js +3 -3
  261. package/esm2015/tokens/is-android.js +1 -1
  262. package/esm2015/types/index.js +1 -1
  263. package/esm2015/utils/dom/contains-or-after.js +2 -4
  264. package/esm2015/utils/dom/get-element-obscurers.js +1 -1
  265. package/esm2015/utils/dom/index.js +2 -2
  266. package/esm2015/utils/focus/get-closest-keyboard-focusable.js +1 -1
  267. package/esm2015/utils/miscellaneous/index.js +3 -3
  268. package/esm5/abstract/control.js +1 -1
  269. package/esm5/abstract/dialog.directive.js +44 -0
  270. package/esm5/abstract/index.js +2 -1
  271. package/esm5/abstract/interactive.js +4 -4
  272. package/esm5/abstract/multiple-control.js +1 -1
  273. package/esm5/abstract/nullable-control.js +1 -1
  274. package/esm5/components/dialog-host/dialog-host.component.js +3 -3
  275. package/esm5/components/dialog-host/dialog-host.module.js +1 -1
  276. package/esm5/components/portal-host/portal-host.component.js +1 -1
  277. package/esm5/components/portal-host/portal-host.module.js +1 -1
  278. package/esm5/components/portal-host/portal.service.js +1 -1
  279. package/esm5/constants/matcher.js +1 -1
  280. package/esm5/date-time/date-fillers.js +1 -1
  281. package/esm5/date-time/day-range.js +26 -26
  282. package/esm5/date-time/day.js +120 -120
  283. package/esm5/date-time/index.js +5 -5
  284. package/esm5/date-time/month-range.js +6 -6
  285. package/esm5/date-time/month.js +56 -56
  286. package/esm5/date-time/time.js +41 -41
  287. package/esm5/date-time/year.js +49 -49
  288. package/esm5/directives/active-zone/active-zone.module.js +1 -1
  289. package/esm5/directives/auto-focus/autofocus.module.js +1 -1
  290. package/esm5/directives/autofilled/autofilled.module.js +1 -1
  291. package/esm5/directives/checked/checked.module.js +1 -1
  292. package/esm5/directives/copy-processor/copy-processor.directive.js +38 -0
  293. package/esm5/directives/copy-processor/copy-processor.module.js +16 -0
  294. package/esm5/directives/copy-processor/index.js +3 -0
  295. package/esm5/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +5 -0
  296. package/esm5/directives/drag/drag.module.js +1 -1
  297. package/esm5/directives/droppable/droppable.module.js +1 -1
  298. package/esm5/directives/element/element.module.js +1 -1
  299. package/esm5/directives/focus-trap/focus-trap.module.js +1 -1
  300. package/esm5/directives/focus-visible/focus-visible.module.js +1 -1
  301. package/esm5/directives/focusable/focusable.module.js +1 -1
  302. package/esm5/directives/focused/focused.module.js +1 -1
  303. package/esm5/directives/for/for.directive.js +1 -1
  304. package/esm5/directives/for/for.module.js +1 -1
  305. package/esm5/directives/high-dpi/high-dpi.module.js +1 -1
  306. package/esm5/directives/hovered/hovered.module.js +1 -1
  307. package/esm5/directives/index.js +6 -5
  308. package/esm5/directives/input-mode/input-mode.module.js +1 -1
  309. package/esm5/directives/item/index.js +3 -0
  310. package/esm5/directives/item/item.directive.js +18 -0
  311. package/esm5/directives/item/item.module.js +16 -0
  312. package/esm5/directives/item/taiga-ui-cdk-directives-item.js +5 -0
  313. package/esm5/directives/let/let.directive.js +1 -1
  314. package/esm5/directives/let/let.module.js +1 -1
  315. package/esm5/directives/media/media.directive.js +2 -2
  316. package/esm5/directives/media/media.module.js +1 -1
  317. package/esm5/directives/obscured/obscured.module.js +1 -1
  318. package/esm5/directives/overscroll/overscroll.module.js +1 -1
  319. package/esm5/directives/pan/pan.directive.js +3 -2
  320. package/esm5/directives/pan/pan.module.js +1 -1
  321. package/esm5/directives/pressed/pressed.module.js +1 -1
  322. package/esm5/directives/prevent-default/prevent-default.module.js +1 -1
  323. package/esm5/directives/repeat-times/repeat-times.module.js +1 -1
  324. package/esm5/directives/resize/resize.module.js +1 -1
  325. package/esm5/directives/swipe/swipe.directive.js +3 -2
  326. package/esm5/directives/swipe/swipe.module.js +1 -1
  327. package/esm5/directives/validator/validator.module.js +1 -1
  328. package/esm5/directives/zoom/zoom.directive.js +3 -2
  329. package/esm5/directives/zoom/zoom.module.js +1 -1
  330. package/esm5/enums/index.js +2 -2
  331. package/esm5/interfaces/base-dialog-context.js +1 -1
  332. package/esm5/interfaces/base-dialog.js +1 -1
  333. package/esm5/interfaces/focusable-element-accessor.js +1 -1
  334. package/esm5/interfaces/index.js +1 -1
  335. package/esm5/observables/drag-and-drop-from.js +1 -1
  336. package/esm5/observables/focus-visible-observable.js +1 -1
  337. package/esm5/observables/mouse-drag-finish-from.js +1 -1
  338. package/esm5/observables/pressed-observable.js +1 -1
  339. package/esm5/pipes/filter/filter.module.js +1 -1
  340. package/esm5/pipes/mapper/mapper.module.js +1 -1
  341. package/esm5/services/focus-visible.service.js +1 -1
  342. package/esm5/services/index.js +2 -2
  343. package/esm5/services/obscured.service.js +1 -1
  344. package/esm5/services/pan.service.js +3 -3
  345. package/esm5/services/resize.service.js +1 -1
  346. package/esm5/services/static-request.service.js +1 -1
  347. package/esm5/tokens/active-element.js +5 -5
  348. package/esm5/tokens/index.js +3 -3
  349. package/esm5/tokens/is-android.js +1 -1
  350. package/esm5/types/index.js +1 -1
  351. package/esm5/utils/dom/contains-or-after.js +2 -4
  352. package/esm5/utils/dom/get-element-obscurers.js +1 -1
  353. package/esm5/utils/dom/index.js +2 -2
  354. package/esm5/utils/focus/get-closest-keyboard-focusable.js +1 -1
  355. package/esm5/utils/miscellaneous/index.js +3 -3
  356. package/fesm2015/taiga-ui-cdk-abstract.js +36 -7
  357. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  358. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +1 -1
  359. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  360. package/fesm2015/taiga-ui-cdk-components-portal-host.js.map +1 -1
  361. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  362. package/fesm2015/taiga-ui-cdk-date-time.js +343 -343
  363. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  364. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  365. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  366. package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  367. package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
  368. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +52 -0
  369. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -0
  370. package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
  371. package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
  372. package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
  373. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  374. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  375. package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
  376. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  377. package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
  378. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  379. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  380. package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  381. package/fesm2015/taiga-ui-cdk-directives-item.js +30 -0
  382. package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -0
  383. package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
  384. package/fesm2015/taiga-ui-cdk-directives-media.js +1 -1
  385. package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
  386. package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
  387. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  388. package/fesm2015/taiga-ui-cdk-directives-pan.js +2 -1
  389. package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
  390. package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
  391. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  392. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  393. package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
  394. package/fesm2015/taiga-ui-cdk-directives-swipe.js +2 -1
  395. package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
  396. package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
  397. package/fesm2015/taiga-ui-cdk-directives-zoom.js +2 -1
  398. package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
  399. package/fesm2015/taiga-ui-cdk-directives.js +5 -4
  400. package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
  401. package/fesm2015/taiga-ui-cdk-enums.js +11 -11
  402. package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
  403. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  404. package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
  405. package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  406. package/fesm2015/taiga-ui-cdk-services.js +29 -29
  407. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  408. package/fesm2015/taiga-ui-cdk-tokens.js +10 -11
  409. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  410. package/fesm2015/taiga-ui-cdk-utils-dom.js +8 -10
  411. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  412. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  413. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +13 -13
  414. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  415. package/fesm5/taiga-ui-cdk-abstract.js +45 -7
  416. package/fesm5/taiga-ui-cdk-abstract.js.map +1 -1
  417. package/fesm5/taiga-ui-cdk-components-dialog-host.js +1 -1
  418. package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  419. package/fesm5/taiga-ui-cdk-components-portal-host.js.map +1 -1
  420. package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
  421. package/fesm5/taiga-ui-cdk-date-time.js +343 -343
  422. package/fesm5/taiga-ui-cdk-date-time.js.map +1 -1
  423. package/fesm5/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  424. package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  425. package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  426. package/fesm5/taiga-ui-cdk-directives-checked.js.map +1 -1
  427. package/fesm5/taiga-ui-cdk-directives-copy-processor.js +56 -0
  428. package/fesm5/taiga-ui-cdk-directives-copy-processor.js.map +1 -0
  429. package/fesm5/taiga-ui-cdk-directives-drag.js.map +1 -1
  430. package/fesm5/taiga-ui-cdk-directives-droppable.js.map +1 -1
  431. package/fesm5/taiga-ui-cdk-directives-element.js.map +1 -1
  432. package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  433. package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  434. package/fesm5/taiga-ui-cdk-directives-focusable.js.map +1 -1
  435. package/fesm5/taiga-ui-cdk-directives-focused.js.map +1 -1
  436. package/fesm5/taiga-ui-cdk-directives-for.js.map +1 -1
  437. package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  438. package/fesm5/taiga-ui-cdk-directives-hovered.js.map +1 -1
  439. package/fesm5/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  440. package/fesm5/taiga-ui-cdk-directives-item.js +36 -0
  441. package/fesm5/taiga-ui-cdk-directives-item.js.map +1 -0
  442. package/fesm5/taiga-ui-cdk-directives-let.js.map +1 -1
  443. package/fesm5/taiga-ui-cdk-directives-media.js +1 -1
  444. package/fesm5/taiga-ui-cdk-directives-media.js.map +1 -1
  445. package/fesm5/taiga-ui-cdk-directives-obscured.js.map +1 -1
  446. package/fesm5/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  447. package/fesm5/taiga-ui-cdk-directives-pan.js +2 -1
  448. package/fesm5/taiga-ui-cdk-directives-pan.js.map +1 -1
  449. package/fesm5/taiga-ui-cdk-directives-pressed.js.map +1 -1
  450. package/fesm5/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  451. package/fesm5/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  452. package/fesm5/taiga-ui-cdk-directives-resize.js.map +1 -1
  453. package/fesm5/taiga-ui-cdk-directives-swipe.js +2 -1
  454. package/fesm5/taiga-ui-cdk-directives-swipe.js.map +1 -1
  455. package/fesm5/taiga-ui-cdk-directives-validator.js.map +1 -1
  456. package/fesm5/taiga-ui-cdk-directives-zoom.js +2 -1
  457. package/fesm5/taiga-ui-cdk-directives-zoom.js.map +1 -1
  458. package/fesm5/taiga-ui-cdk-directives.js +5 -4
  459. package/fesm5/taiga-ui-cdk-directives.js.map +1 -1
  460. package/fesm5/taiga-ui-cdk-enums.js +11 -11
  461. package/fesm5/taiga-ui-cdk-enums.js.map +1 -1
  462. package/fesm5/taiga-ui-cdk-observables.js.map +1 -1
  463. package/fesm5/taiga-ui-cdk-pipes-filter.js.map +1 -1
  464. package/fesm5/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  465. package/fesm5/taiga-ui-cdk-services.js +39 -39
  466. package/fesm5/taiga-ui-cdk-services.js.map +1 -1
  467. package/fesm5/taiga-ui-cdk-tokens.js +11 -11
  468. package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
  469. package/fesm5/taiga-ui-cdk-utils-dom.js +8 -10
  470. package/fesm5/taiga-ui-cdk-utils-dom.js.map +1 -1
  471. package/fesm5/taiga-ui-cdk-utils-focus.js.map +1 -1
  472. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +14 -14
  473. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  474. package/interfaces/focusable-element-accessor.d.ts +2 -0
  475. package/interfaces/index.d.ts +1 -1
  476. package/interfaces/taiga-ui-cdk-interfaces.metadata.json +1 -1
  477. package/observables/taiga-ui-cdk-observables.metadata.json +1 -1
  478. package/package.json +3 -3
  479. package/pipes/filter/taiga-ui-cdk-pipes-filter.metadata.json +1 -1
  480. package/pipes/mapper/taiga-ui-cdk-pipes-mapper.metadata.json +1 -1
  481. package/services/index.d.ts +1 -1
  482. package/services/taiga-ui-cdk-services.metadata.json +1 -1
  483. package/tokens/index.d.ts +2 -2
  484. package/tokens/taiga-ui-cdk-tokens.metadata.json +1 -1
  485. package/types/index.d.ts +1 -1
  486. package/types/taiga-ui-cdk-types.metadata.json +1 -1
  487. package/utils/dom/index.d.ts +1 -1
  488. package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +1 -1
  489. package/utils/miscellaneous/index.d.ts +2 -2
  490. package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-high-dpi.js","sources":["ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.directive.ts","ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.module.ts","ng://@taiga-ui/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n * @dynamic\n */\n@Directive({\n selector: '[tuiHighDpi]',\n})\nexport class TuiHighDpiDirective {\n constructor(\n @Inject(WINDOW) {devicePixelRatio}: Window,\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<unknown>,\n ) {\n if (devicePixelRatio > 1) {\n viewContainer.createEmbeddedView(templateRef);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiHighDpiDirective} from './high-dpi.directive';\n\n@NgModule({\n declarations: [TuiHighDpiDirective],\n exports: [TuiHighDpiDirective],\n})\nexport class TuiHighDpiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;IAQI,6BACoB,EAA0B,EAChB,aAA+B,EACpC,WAAiC;YAFrC,sCAAgB;QAIjC,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;;gBAPuC,MAAM,uBAAzC,MAAM,SAAC,MAAM;gBAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;gBACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;IAJd,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,cAAc;SAC3B,CAAC;QAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAJf,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;ICHA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-high-dpi.js","sources":["ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.directive.ts","ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.module.ts","ng://@taiga-ui/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n * @dynamic\n */\n@Directive({\n selector: '[tuiHighDpi]',\n})\nexport class TuiHighDpiDirective {\n constructor(\n @Inject(WINDOW) {devicePixelRatio}: Window,\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<unknown>,\n ) {\n if (devicePixelRatio > 1) {\n viewContainer.createEmbeddedView(templateRef);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHighDpiDirective} from './high-dpi.directive';\n\n@NgModule({\n declarations: [TuiHighDpiDirective],\n exports: [TuiHighDpiDirective],\n})\nexport class TuiHighDpiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;IAQI,6BACoB,EAA0B,EAChB,aAA+B,EACpC,WAAiC;YAFrC,sCAAgB;QAIjC,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;;gBAPuC,MAAM,uBAAzC,MAAM,SAAC,MAAM;gBAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;gBACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;IAJd,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,cAAc;SAC3B,CAAC;QAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAJf,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;ICFA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {TuiHoveredService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<Element>,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n this.tuiHoveredChange = hoveredService.createHovered$(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiHoveredDirective} from './hovered.directive';\n\n@NgModule({\n declarations: [TuiHoveredDirective],\n exports: [TuiHoveredDirective],\n})\nexport class TuiHoveredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAWI,6BACwB,EAAoC,EAC7B,cAAiC;YADvC,gCAAa;QAGlC,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;KACxE;;gBAJwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACyB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;IAJ7B;QADC,MAAM,EAAE;iEACsC;IAFtC,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OANrB,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;ICAA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {TuiHoveredService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<Element>,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n this.tuiHoveredChange = hoveredService.createHovered$(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHoveredDirective} from './hovered.directive';\n\n@NgModule({\n declarations: [TuiHoveredDirective],\n exports: [TuiHoveredDirective],\n})\nexport class TuiHoveredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAWI,6BACwB,EAAoC,EAC7B,cAAiC;YADvC,gCAAa;QAGlC,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;KACxE;;gBAJwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACyB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;IAJ7B;QADC,MAAM,EAAE;iEACsC;IAFtC,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OANrB,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;ICCA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-input-mode.js","sources":["ng://@taiga-ui/cdk/directives/input-mode/input-mode.directive.ts","ng://@taiga-ui/cdk/directives/input-mode/input-mode.module.ts","ng://@taiga-ui/cdk/directives/input-mode/taiga-ui-cdk-directives-input-mode.ts"],"sourcesContent":["import {Attribute, Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {TuiInputModeT} from '@taiga-ui/cdk/types';\n\n/**\n * Abstraction over `inputMode` attribute\n */\n@Directive({\n selector: 'input[tuiInputMode]',\n})\nexport class TuiInputModeDirective {\n @Input('tuiInputMode')\n @HostBinding('attr.inputmode')\n @HostBinding('attr.x-inputmode')\n mode: TuiInputModeT = 'text';\n\n constructor(\n @Attribute('pattern') private readonly pattern: string | null,\n @Inject(TUI_IS_IOS) private readonly isIOS: boolean,\n ) {}\n\n @HostBinding('attr.pattern')\n get patternAttribute(): string | null {\n return this.mode === 'numeric' && this.isIOS && !this.pattern\n ? '[0-9]*'\n : this.pattern;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiInputModeDirective} from './input-mode.directive';\n\n@NgModule({\n declarations: [TuiInputModeDirective],\n exports: [TuiInputModeDirective],\n})\nexport class TuiInputModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;IAYI,+BAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;kBACvD,QAAQ;kBACR,IAAI,CAAC,OAAO,CAAC;SACtB;;;OAAA;;6CATI,SAAS,SAAC,SAAS;8CACnB,MAAM,SAAC,UAAU;;IAJtB;QAHC,KAAK,CAAC,cAAc,CAAC;QACrB,WAAW,CAAC,gBAAgB,CAAC;QAC7B,WAAW,CAAC,kBAAkB,CAAC;uDACH;IAQ7B;QADC,WAAW,CAAC,cAAc,CAAC;iEAK3B;IAhBQ,qBAAqB;QAHjC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;QACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OARd,qBAAqB,CAiBjC;IAAD,4BAAC;CAjBD;;;ICHA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-input-mode.js","sources":["ng://@taiga-ui/cdk/directives/input-mode/input-mode.directive.ts","ng://@taiga-ui/cdk/directives/input-mode/input-mode.module.ts","ng://@taiga-ui/cdk/directives/input-mode/taiga-ui-cdk-directives-input-mode.ts"],"sourcesContent":["import {Attribute, Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {TuiInputModeT} from '@taiga-ui/cdk/types';\n\n/**\n * Abstraction over `inputMode` attribute\n */\n@Directive({\n selector: 'input[tuiInputMode]',\n})\nexport class TuiInputModeDirective {\n @Input('tuiInputMode')\n @HostBinding('attr.inputmode')\n @HostBinding('attr.x-inputmode')\n mode: TuiInputModeT = 'text';\n\n constructor(\n @Attribute('pattern') private readonly pattern: string | null,\n @Inject(TUI_IS_IOS) private readonly isIOS: boolean,\n ) {}\n\n @HostBinding('attr.pattern')\n get patternAttribute(): string | null {\n return this.mode === 'numeric' && this.isIOS && !this.pattern\n ? '[0-9]*'\n : this.pattern;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiInputModeDirective} from './input-mode.directive';\n\n@NgModule({\n declarations: [TuiInputModeDirective],\n exports: [TuiInputModeDirective],\n})\nexport class TuiInputModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;IAYI,+BAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;kBACvD,QAAQ;kBACR,IAAI,CAAC,OAAO,CAAC;SACtB;;;OAAA;;6CATI,SAAS,SAAC,SAAS;8CACnB,MAAM,SAAC,UAAU;;IAJtB;QAHC,KAAK,CAAC,cAAc,CAAC;QACrB,WAAW,CAAC,gBAAgB,CAAC;QAC7B,WAAW,CAAC,kBAAkB,CAAC;uDACH;IAQ7B;QADC,WAAW,CAAC,cAAc,CAAC;iEAK3B;IAhBQ,qBAAqB;QAHjC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;QACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OARd,qBAAqB,CAiBjC;IAAD,4BAAC;CAjBD;;;ICFA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { __decorate } from 'tslib';
2
+ import { Directive, NgModule } from '@angular/core';
3
+
4
+ /**
5
+ * Blank directive to query for {@link TemplateRef}
6
+ * TODO: Migrate everything to this directive
7
+ */
8
+ var TuiItemDirective = /** @class */ (function () {
9
+ function TuiItemDirective() {
10
+ }
11
+ TuiItemDirective = __decorate([
12
+ Directive({
13
+ selector: 'ng-template[tuiItem]',
14
+ })
15
+ ], TuiItemDirective);
16
+ return TuiItemDirective;
17
+ }());
18
+
19
+ var TuiItemModule = /** @class */ (function () {
20
+ function TuiItemModule() {
21
+ }
22
+ TuiItemModule = __decorate([
23
+ NgModule({
24
+ declarations: [TuiItemDirective],
25
+ exports: [TuiItemDirective],
26
+ })
27
+ ], TuiItemModule);
28
+ return TuiItemModule;
29
+ }());
30
+
31
+ /**
32
+ * Generated bundle index. Do not edit.
33
+ */
34
+
35
+ export { TuiItemDirective, TuiItemModule };
36
+ //# sourceMappingURL=taiga-ui-cdk-directives-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-cdk-directives-item.js","sources":["ng://@taiga-ui/cdk/directives/item/item.directive.ts","ng://@taiga-ui/cdk/directives/item/item.module.ts","ng://@taiga-ui/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive to query for {@link TemplateRef}\n * TODO: Migrate everything to this directive\n */\n@Directive({\n selector: 'ng-template[tuiItem]',\n})\nexport class TuiItemDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiItemDirective} from './item.directive';\n\n@NgModule({\n declarations: [TuiItemDirective],\n exports: [TuiItemDirective],\n})\nexport class TuiItemModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;;IAOA;KAAgC;IAAnB,gBAAgB;QAH5B,SAAS,CAAC;YACP,QAAQ,EAAE,sBAAsB;SACnC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;;ICDA;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-let.js","sources":["ng://@taiga-ui/cdk/directives/let/let-context.ts","ng://@taiga-ui/cdk/directives/let/let.directive.ts","ng://@taiga-ui/cdk/directives/let/let.module.ts","ng://@taiga-ui/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiLetDirective} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContextWithImplicit<T> {\n constructor(private readonly internalDirectiveInstance: TuiLetDirective<T>) {}\n\n get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n selector: '[tuiLet]',\n})\nexport class TuiLetDirective<T> {\n @Input()\n tuiLet!: T;\n\n constructor(\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<TuiLetContext<T>>,\n ) {\n viewContainer.createEmbeddedView(templateRef, new TuiLetContext<T>(this));\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(\n _dir: TuiLetDirective<T>,\n _ctx: any,\n ): _ctx is TuiLetDirective<T> {\n return true;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiLetDirective} from './let.directive';\n\n@NgModule({\n declarations: [TuiLetDirective],\n exports: [TuiLetDirective],\n})\nexport class TuiLetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;;;IAII,uBAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,sBAAI,oCAAS;aAAb;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IAED,sBAAI,iCAAM;aAAV;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IACL,oBAAC;AAAD,CAAC;;ACdD;;;;;IAWI,yBAC8B,aAA+B,EACpC,WAA0C;QAE/D,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,IAAI,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC;KAC7E;;;;;;;IAQM,sCAAsB,GAA7B,UACI,IAAwB,EACxB,IAAS;QAET,OAAO,IAAI,CAAC;KACf;;gBAjB4C,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;gBACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;IAJvB;QADC,KAAK,EAAE;mDACG;IAFF,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;SACvB,CAAC;QAMO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OANf,eAAe,CAuB3B;IAAD,sBAAC;CAvBD;;;ICHA;KAA4B;IAAf,YAAY;QAJxB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-let.js","sources":["ng://@taiga-ui/cdk/directives/let/let-context.ts","ng://@taiga-ui/cdk/directives/let/let.directive.ts","ng://@taiga-ui/cdk/directives/let/let.module.ts","ng://@taiga-ui/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiLetDirective} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContextWithImplicit<T> {\n constructor(private readonly internalDirectiveInstance: TuiLetDirective<T>) {}\n\n get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n selector: '[tuiLet]',\n})\nexport class TuiLetDirective<T> {\n @Input()\n tuiLet!: T;\n\n constructor(\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<TuiLetContext<T>>,\n ) {\n viewContainer.createEmbeddedView(templateRef, new TuiLetContext<T>(this));\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(\n _dir: TuiLetDirective<T>,\n _ctx: any,\n ): _ctx is TuiLetDirective<T> {\n return true;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiLetDirective} from './let.directive';\n\n@NgModule({\n declarations: [TuiLetDirective],\n exports: [TuiLetDirective],\n})\nexport class TuiLetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;;;IAII,uBAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,sBAAI,oCAAS;aAAb;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IAED,sBAAI,iCAAM;aAAV;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IACL,oBAAC;AAAD,CAAC;;ACbD;;;;;IAWI,yBAC8B,aAA+B,EACpC,WAA0C;QAE/D,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,IAAI,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC;KAC7E;;;;;;;IAQM,sCAAsB,GAA7B,UACI,IAAwB,EACxB,IAAS;QAET,OAAO,IAAI,CAAC;KACf;;gBAjB4C,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;gBACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;IAJvB;QADC,KAAK,EAAE;mDACG;IAFF,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;SACvB,CAAC;QAMO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OANf,eAAe,CAuB3B;IAAD,sBAAC;CAvBD;;;ICHA;KAA4B;IAAf,YAAY;QAJxB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACRA;;;;;;"}
@@ -11,11 +11,11 @@ function volumeAssertion(volume) {
11
11
  var TuiMediaDirective = /** @class */ (function () {
12
12
  function TuiMediaDirective(elementRef) {
13
13
  this.elementRef = elementRef;
14
+ this.playbackRate = 1;
14
15
  this.volume = 1;
15
16
  this.currentTimeChange = new EventEmitter();
16
17
  this.pausedChange = new EventEmitter();
17
18
  this.volumeChange = new EventEmitter();
18
- this.playbackRate = 1;
19
19
  }
20
20
  Object.defineProperty(TuiMediaDirective.prototype, "playbackRateSetter", {
21
21
  set: function (playbackRate) {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-media.js","sources":["ng://@taiga-ui/cdk/directives/media/media.directive.ts","ng://@taiga-ui/cdk/directives/media/media.module.ts","ng://@taiga-ui/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\n\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return isFinite(value) && value >= 0;\n}\n\nexport function volumeAssertion(volume: number): boolean {\n return isFinite(volume) && volume >= 0 && volume <= 1;\n}\n\n@Directive({\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n})\nexport class TuiMediaDirective {\n @Input()\n @HostBinding('volume')\n @tuiDefaultProp(volumeAssertion)\n volume = 1;\n\n @Input('playbackRate')\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.elementRef.nativeElement.currentTime = currentTime;\n }\n }\n\n @Input()\n set paused(paused: boolean) {\n if (paused) {\n this.elementRef.nativeElement.pause();\n } else {\n this.elementRef.nativeElement.play();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n @Output()\n readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n readonly volumeChange = new EventEmitter<number>();\n\n private playbackRate = 1;\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLMediaElement>,\n ) {}\n\n get paused(): boolean {\n return this.elementRef.nativeElement.paused;\n }\n\n get currentTime(): number {\n return this.elementRef.nativeElement.currentTime;\n }\n\n // @bad TODO: Make sure no other events can affect this like network issues etc.\n @HostListener('ended', ['true'])\n @HostListener('pause', ['true'])\n @HostListener('play', ['false'])\n onPausedChange(paused: boolean) {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n @HostListener('volumechange')\n onVolumeChange() {\n this.volume = this.elementRef.nativeElement.volume;\n this.volumeChange.emit(this.volume);\n }\n\n @HostListener('timeupdate')\n @HostListener('seeking')\n @HostListener('seeked')\n onCurrentTimeChange() {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n @HostListener('durationchange')\n changeDetectionTrigger() {\n // @bad TODO: consider if other events need to trigger CD\n }\n\n private updatePlaybackRate(playbackRate: number) {\n this.playbackRate = playbackRate;\n this.elementRef.nativeElement.playbackRate = this.playbackRate;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMediaDirective} from './media.directive';\n\n@NgModule({\n declarations: [TuiMediaDirective],\n exports: [TuiMediaDirective],\n})\nexport class TuiMediaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SAYgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzC,CAAC;SAEe,eAAe,CAAC,MAAc;IAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC;AAC1D,CAAC;;IA+CG,2BAEqB,UAAwC;QAAxC,eAAU,GAAV,UAAU,CAA8B;QAvC7D,WAAM,GAAG,CAAC,CAAC;QA2BF,sBAAiB,GAAG,IAAI,YAAY,EAAU,CAAC;QAG/C,iBAAY,GAAG,IAAI,YAAY,EAAW,CAAC;QAG3C,iBAAY,GAAG,IAAI,YAAY,EAAU,CAAC;QAE3C,iBAAY,GAAG,CAAC,CAAC;KAKrB;IApCJ,sBAAI,iDAAkB;aAAtB,UAAuB,YAAoB;YACvC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;SACzC;;;OAAA;IAID,sBAAI,0CAAW;aAoCf;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC;SACpD;aAtCD,UAAgB,WAAmB;YAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;gBACjD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;aAC3D;SACJ;;;OAAA;IAGD,sBAAI,qCAAM;aAyBV;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC;SAC/C;aA3BD,UAAW,MAAe;YACtB,IAAI,MAAM,EAAE;gBACR,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;aACzC;iBAA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C,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;2DAI/B;IAGD;QADC,YAAY,CAAC,cAAc,CAAC;2DAI5B;IAKD;QAHC,YAAY,CAAC,YAAY,CAAC;QAC1B,YAAY,CAAC,SAAS,CAAC;QACvB,YAAY,CAAC,QAAQ,CAAC;gEAGtB;IAGD;QADC,YAAY,CAAC,gBAAgB,CAAC;mEAG9B;IA/EQ,iBAAiB;QAJ7B,SAAS,CAAC;YACP,QAAQ,EAAE,kCAAkC;YAC5C,QAAQ,EAAE,UAAU;SACvB,CAAC;QA2CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OA1Cd,iBAAiB,CAqF7B;IAAD,wBAAC;CArFD;;;ICjBA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-media.js","sources":["ng://@taiga-ui/cdk/directives/media/media.directive.ts","ng://@taiga-ui/cdk/directives/media/media.module.ts","ng://@taiga-ui/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\n\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return isFinite(value) && value >= 0;\n}\n\nexport function volumeAssertion(volume: number): boolean {\n return isFinite(volume) && volume >= 0 && volume <= 1;\n}\n\n@Directive({\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n})\nexport class TuiMediaDirective {\n private playbackRate = 1;\n\n @Input()\n @HostBinding('volume')\n @tuiDefaultProp(volumeAssertion)\n volume = 1;\n\n @Input('playbackRate')\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.elementRef.nativeElement.currentTime = currentTime;\n }\n }\n\n @Input()\n set paused(paused: boolean) {\n if (paused) {\n this.elementRef.nativeElement.pause();\n } else {\n this.elementRef.nativeElement.play();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n @Output()\n readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n readonly volumeChange = new EventEmitter<number>();\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLMediaElement>,\n ) {}\n\n get paused(): boolean {\n return this.elementRef.nativeElement.paused;\n }\n\n get currentTime(): number {\n return this.elementRef.nativeElement.currentTime;\n }\n\n // @bad TODO: Make sure no other events can affect this like network issues etc.\n @HostListener('ended', ['true'])\n @HostListener('pause', ['true'])\n @HostListener('play', ['false'])\n onPausedChange(paused: boolean) {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n @HostListener('volumechange')\n onVolumeChange() {\n this.volume = this.elementRef.nativeElement.volume;\n this.volumeChange.emit(this.volume);\n }\n\n @HostListener('timeupdate')\n @HostListener('seeking')\n @HostListener('seeked')\n onCurrentTimeChange() {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n @HostListener('durationchange')\n changeDetectionTrigger() {\n // @bad TODO: consider if other events need to trigger CD\n }\n\n private updatePlaybackRate(playbackRate: number) {\n this.playbackRate = playbackRate;\n this.elementRef.nativeElement.playbackRate = this.playbackRate;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMediaDirective} from './media.directive';\n\n@NgModule({\n declarations: [TuiMediaDirective],\n exports: [TuiMediaDirective],\n})\nexport class TuiMediaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SAYgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzC,CAAC;SAEe,eAAe,CAAC,MAAc;IAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC;AAC1D,CAAC;;IA+CG,2BAEqB,UAAwC;QAAxC,eAAU,GAAV,UAAU,CAA8B;QA1CrD,iBAAY,GAAG,CAAC,CAAC;QAKzB,WAAM,GAAG,CAAC,CAAC;QA2BF,sBAAiB,GAAG,IAAI,YAAY,EAAU,CAAC;QAG/C,iBAAY,GAAG,IAAI,YAAY,EAAW,CAAC;QAG3C,iBAAY,GAAG,IAAI,YAAY,EAAU,CAAC;KAK/C;IAlCJ,sBAAI,iDAAkB;aAAtB,UAAuB,YAAoB;YACvC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;SACzC;;;OAAA;IAID,sBAAI,0CAAW;aAkCf;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC;SACpD;aApCD,UAAgB,WAAmB;YAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;gBACjD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;aAC3D;SACJ;;;OAAA;IAGD,sBAAI,qCAAM;aAuBV;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC;SAC/C;aAzBD,UAAW,MAAe;YACtB,IAAI,MAAM,EAAE;gBACR,IAAI,CAAC,UAAU,CAAC,aAAa,CAA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C,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;2DAI/B;IAGD;QADC,YAAY,CAAC,cAAc,CAAC;2DAI5B;IAKD;QAHC,YAAY,CAAC,YAAY,CAAC;QAC1B,YAAY,CAAC,SAAS,CAAC;QACvB,YAAY,CAAC,QAAQ,CAAC;gEAGtB;IAGD;QADC,YAAY,CAAC,gBAAgB,CAAC;mEAG9B;IA/EQ,iBAAiB;QAJ7B,SAAS,CAAC;YACP,QAAQ,EAAE,kCAAkC;YAC5C,QAAQ,EAAE,UAAU;SACvB,CAAC;QA2CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OA1Cd,iBAAiB,CAqF7B;IAAD,wBAAC;CArFD;;;IChBA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-obscured.js","sources":["ng://@taiga-ui/cdk/directives/obscured/obscured.directive.ts","ng://@taiga-ui/cdk/directives/obscured/obscured.module.ts","ng://@taiga-ui/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {Directive, Inject, Input, Optional, Output, Self} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiActiveZoneDirective} from '@taiga-ui/cdk/directives/active-zone';\nimport {\n TuiDestroyService,\n TuiObscuredService,\n TuiParentsScrollService,\n} from '@taiga-ui/cdk/services';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {map, switchMap} from 'rxjs/operators';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n selector: '[tuiObscured]',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiObscuredDirective {\n private readonly enabled$ = new Subject<boolean>();\n\n @Input()\n @tuiRequiredSetter()\n set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n\n @Output()\n readonly tuiObscured: Observable<boolean>;\n\n constructor(\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Self()\n @Inject(TuiObscuredService)\n obscured$: TuiObscuredService,\n ) {\n const mapped$ = obscured$.pipe(\n map(\n obscuredBy =>\n !!obscuredBy &&\n (!activeZone ||\n !obscuredBy.length ||\n obscuredBy.every(element => !activeZone.contains(element))),\n ),\n );\n\n this.tuiObscured = this.enabled$.pipe(\n switchMap(enabled => (enabled ? mapped$ : EMPTY)),\n );\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiObscuredDirective} from './obscured.directive';\n\n@NgModule({\n declarations: [TuiObscuredDirective],\n exports: [TuiObscuredDirective],\n})\nexport class TuiObscuredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWA;;;;IAmBI,8BAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC1B,GAAG,CACC,UAAA,UAAU;YACN,OAAA,CAAC,CAAC,UAAU;iBACX,CAAC,UAAU;oBACR,CAAC,UAAU,CAAC,MAAM;oBAClB,UAAU,CAAC,KAAK,CAAC,UAAA,OAAO,IAAI,OAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAA,CAAC,CAAC;SAAA,CACtE,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,SAAS,CAAC,UAAA,OAAO,IAAI,QAAC,OAAO,GAAG,OAAO,GAAG,KAAK,IAAC,CAAC,CACpD,CAAC;KACL;IA5BD,sBAAI,oDAAkB;aAAtB,UAAuB,OAAgB;YACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC/B;;;OAAA;;gBAQe,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;gBAInB,kBAAkB,uBAF5B,IAAI,YACJ,MAAM,SAAC,kBAAkB;;IAZ9B;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;kEAGnB;IAGD;QADC,MAAM,EAAE;6DACiC;IAVjC,oBAAoB;QAJhC,SAAS,CAAC;YACP,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;SAC9E,CAAC;QAcO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;QAE9B,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OAjBtB,oBAAoB,CAkChC;IAAD,2BAAC;CAlCD;;;ICXA;KAAiC;IAApB,iBAAiB;QAJ7B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-obscured.js","sources":["ng://@taiga-ui/cdk/directives/obscured/obscured.directive.ts","ng://@taiga-ui/cdk/directives/obscured/obscured.module.ts","ng://@taiga-ui/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {Directive, Inject, Input, Optional, Output, Self} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiActiveZoneDirective} from '@taiga-ui/cdk/directives/active-zone';\nimport {\n TuiDestroyService,\n TuiObscuredService,\n TuiParentsScrollService,\n} from '@taiga-ui/cdk/services';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {map, switchMap} from 'rxjs/operators';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n selector: '[tuiObscured]',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiObscuredDirective {\n private readonly enabled$ = new Subject<boolean>();\n\n @Input()\n @tuiRequiredSetter()\n set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n\n @Output()\n readonly tuiObscured: Observable<boolean>;\n\n constructor(\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Self()\n @Inject(TuiObscuredService)\n obscured$: TuiObscuredService,\n ) {\n const mapped$ = obscured$.pipe(\n map(\n obscuredBy =>\n !!obscuredBy &&\n (!activeZone ||\n !obscuredBy.length ||\n obscuredBy.every(element => !activeZone.contains(element))),\n ),\n );\n\n this.tuiObscured = this.enabled$.pipe(\n switchMap(enabled => (enabled ? mapped$ : EMPTY)),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiObscuredDirective} from './obscured.directive';\n\n@NgModule({\n declarations: [TuiObscuredDirective],\n exports: [TuiObscuredDirective],\n})\nexport class TuiObscuredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWA;;;;IAmBI,8BAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC1B,GAAG,CACC,UAAA,UAAU;YACN,OAAA,CAAC,CAAC,UAAU;iBACX,CAAC,UAAU;oBACR,CAAC,UAAU,CAAC,MAAM;oBAClB,UAAU,CAAC,KAAK,CAAC,UAAA,OAAO,IAAI,OAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAA,CAAC,CAAC;SAAA,CACtE,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,SAAS,CAAC,UAAA,OAAO,IAAI,QAAC,OAAO,GAAG,OAAO,GAAG,KAAK,IAAC,CAAC,CACpD,CAAC;KACL;IA5BD,sBAAI,oDAAkB;aAAtB,UAAuB,OAAgB;YACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC/B;;;OAAA;;gBAQe,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;gBAInB,kBAAkB,uBAF5B,IAAI,YACJ,MAAM,SAAC,kBAAkB;;IAZ9B;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;kEAGnB;IAGD;QADC,MAAM,EAAE;6DACiC;IAVjC,oBAAoB;QAJhC,SAAS,CAAC;YACP,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;SAC9E,CAAC;QAcO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;QAE9B,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OAjBtB,oBAAoB,CAkChC;IAAD,2BAAC;CAlCD;;;ICVA;KAAiC;IAApB,iBAAiB;QAJ7B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["ng://@taiga-ui/cdk/directives/overscroll/overscroll.directive.ts","ng://@taiga-ui/cdk/directives/overscroll/overscroll.module.ts","ng://@taiga-ui/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Inject, Input, NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollModeT} from '@taiga-ui/cdk/types';\nimport {canScroll, getScrollParent} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n * @dynamic\n */\n@Directive({\n selector: '[tuiOverscroll]',\n providers: [TuiDestroyService],\n})\nexport class TuiOverscrollDirective {\n @Input('tuiOverscroll')\n mode: TuiOverscrollModeT = 'scroll';\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n typedFromEvent(nativeElement, 'wheel', {passive: false})\n .pipe(\n filter(() => this.enabled),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe(event => {\n this.processEvent(\n event,\n !!event.deltaY,\n event.deltaY ? event.deltaY < 0 : event.deltaX < 0,\n );\n });\n\n typedFromEvent(nativeElement, 'touchstart', {passive: true})\n .pipe(\n switchMap(({touches}) => {\n let {clientX, clientY} = touches[0];\n let deltaX = 0;\n let deltaY = 0;\n let vertical: boolean;\n\n return typedFromEvent(nativeElement, 'touchmove', {\n passive: false,\n }).pipe(\n filter(() => this.enabled),\n tap(event => {\n // We have to have it in tap instead of subscribe due to variables in closure\n const changedTouch = event.changedTouches[0];\n\n deltaX = clientX - changedTouch.clientX;\n deltaY = clientY - changedTouch.clientY;\n clientX = changedTouch.clientX;\n clientY = changedTouch.clientY;\n\n if (vertical === undefined) {\n vertical = Math.abs(deltaY) > Math.abs(deltaX);\n }\n\n this.processEvent(\n event,\n vertical,\n vertical ? deltaY < 0 : deltaX < 0,\n );\n }),\n );\n }),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe();\n }\n\n get enabled(): boolean {\n return this.mode !== 'none';\n }\n\n @HostBinding('style.overscrollBehavior')\n get overscrollBehavior(): 'contain' | null {\n return this.enabled ? 'contain' : null;\n }\n\n private processEvent(\n event: TuiEventWith<Event, HTMLElement>,\n vertical: boolean,\n negative: boolean,\n ) {\n const {target, currentTarget, cancelable} = event;\n\n // TODO: iframe warning\n if (!cancelable || !(target instanceof Element)) {\n return;\n }\n\n // This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior\n if (\n this.mode === 'all' &&\n ((vertical && !currentTarget.contains(getScrollParent(target))) ||\n (!vertical && !currentTarget.contains(getScrollParent(target, false))))\n ) {\n event.preventDefault();\n\n return;\n }\n\n // This is Safari/IE/Edge fallback\n if (\n vertical &&\n ((negative && !canScroll(target, currentTarget, true, false)) ||\n (!negative && !canScroll(target, currentTarget, true, true)))\n ) {\n event.preventDefault();\n\n return;\n }\n\n if (\n !vertical &&\n ((negative && !canScroll(target, currentTarget, false, false)) ||\n (!negative && !canScroll(target, currentTarget, false, true)))\n ) {\n event.preventDefault();\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiOverscrollDirective} from './overscroll.directive';\n\n@NgModule({\n declarations: [TuiOverscrollDirective],\n exports: [TuiOverscrollDirective],\n})\nexport class TuiOverscrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQA;;;;;IAYI,gCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B;QAHzD,iBAwDC;YAvDwB,gCAAa;QAHtC,SAAI,GAAuB,QAAQ,CAAC;QAOhC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,cAAM,OAAA,KAAI,CAAC,OAAO,GAAA,CAAC,EAC1B,S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,EAAE,KAAK,EAAE,KAAK,CAAC;iBACxD,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EACpE;YACE,KAAK,CAAC,cAAc,EAAE,CAAC;SAC1B;KACJ;;gBA3GwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;gBACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;;IAL7B;QADC,KAAK,CAAC,eAAe,CAAC;wDACa;IAiEpC;QADC,WAAW,CAAC,0BAA0B,CAAC;oEAGvC;IArEQ,sBAAsB;QAJlC,SAAS,CAAC;YACP,QAAQ,EAAE,iBAAiB;YAC3B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAPrB,sBAAsB,CAiHlC;IAAD,6BAAC;CAjHD;;;ICTA;KAAmC;IAAtB,mBAAmB;QAJ/B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["ng://@taiga-ui/cdk/directives/overscroll/overscroll.directive.ts","ng://@taiga-ui/cdk/directives/overscroll/overscroll.module.ts","ng://@taiga-ui/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Inject, Input, NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollModeT} from '@taiga-ui/cdk/types';\nimport {canScroll, getScrollParent} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n * @dynamic\n */\n@Directive({\n selector: '[tuiOverscroll]',\n providers: [TuiDestroyService],\n})\nexport class TuiOverscrollDirective {\n @Input('tuiOverscroll')\n mode: TuiOverscrollModeT = 'scroll';\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n typedFromEvent(nativeElement, 'wheel', {passive: false})\n .pipe(\n filter(() => this.enabled),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe(event => {\n this.processEvent(\n event,\n !!event.deltaY,\n event.deltaY ? event.deltaY < 0 : event.deltaX < 0,\n );\n });\n\n typedFromEvent(nativeElement, 'touchstart', {passive: true})\n .pipe(\n switchMap(({touches}) => {\n let {clientX, clientY} = touches[0];\n let deltaX = 0;\n let deltaY = 0;\n let vertical: boolean;\n\n return typedFromEvent(nativeElement, 'touchmove', {\n passive: false,\n }).pipe(\n filter(() => this.enabled),\n tap(event => {\n // We have to have it in tap instead of subscribe due to variables in closure\n const changedTouch = event.changedTouches[0];\n\n deltaX = clientX - changedTouch.clientX;\n deltaY = clientY - changedTouch.clientY;\n clientX = changedTouch.clientX;\n clientY = changedTouch.clientY;\n\n if (vertical === undefined) {\n vertical = Math.abs(deltaY) > Math.abs(deltaX);\n }\n\n this.processEvent(\n event,\n vertical,\n vertical ? deltaY < 0 : deltaX < 0,\n );\n }),\n );\n }),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe();\n }\n\n get enabled(): boolean {\n return this.mode !== 'none';\n }\n\n @HostBinding('style.overscrollBehavior')\n get overscrollBehavior(): 'contain' | null {\n return this.enabled ? 'contain' : null;\n }\n\n private processEvent(\n event: TuiEventWith<Event, HTMLElement>,\n vertical: boolean,\n negative: boolean,\n ) {\n const {target, currentTarget, cancelable} = event;\n\n // TODO: iframe warning\n if (!cancelable || !(target instanceof Element)) {\n return;\n }\n\n // This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior\n if (\n this.mode === 'all' &&\n ((vertical && !currentTarget.contains(getScrollParent(target))) ||\n (!vertical && !currentTarget.contains(getScrollParent(target, false))))\n ) {\n event.preventDefault();\n\n return;\n }\n\n // This is Safari/IE/Edge fallback\n if (\n vertical &&\n ((negative && !canScroll(target, currentTarget, true, false)) ||\n (!negative && !canScroll(target, currentTarget, true, true)))\n ) {\n event.preventDefault();\n\n return;\n }\n\n if (\n !vertical &&\n ((negative && !canScroll(target, currentTarget, false, false)) ||\n (!negative && !canScroll(target, currentTarget, false, true)))\n ) {\n event.preventDefault();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiOverscrollDirective} from './overscroll.directive';\n\n@NgModule({\n declarations: [TuiOverscrollDirective],\n exports: [TuiOverscrollDirective],\n})\nexport class TuiOverscrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQA;;;;;IAYI,gCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B;QAHzD,iBAwDC;YAvDwB,gCAAa;QAHtC,SAAI,GAAuB,QAAQ,CAAC;QAOhC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,cAAM,OAAA,KAAI,CAAC,OAAO,GAAA,CAAC,EAC1B,SAAS,CAAC,QAAQ,CAAC,EACnB,WAAW,CAAC,MAAM,CAAC,CACtB;aACA,SAAS,CAAC,UAAA,KAAK;YACZ,KAAI,CAAC,YAAY,CACb,KAAK,EACL,CAAC,CAAC,KAAK,CAAC,MAAM,EACd,KAAK,CAAC,MAAM,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B;KACJ;;gBA3GwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;gBACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;;IAL7B;QADC,KAAK,CAAC,eAAe,CAAC;wDACa;IAiEpC;QADC,WAAW,CAAC,0BAA0B,CAAC;oEAGvC;IArEQ,sBAAsB;QAJlC,SAAS,CAAC;YACP,QAAQ,EAAE,iBAAiB;YAC3B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAPrB,sBAAsB,CAiHlC;IAAD,6BAAC;CAjHD;;;ICRA;KAAmC;IAAtB,mBAAmB;QAJ/B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACRA;;;;;;"}
@@ -1,6 +1,7 @@
1
1
  import { __decorate, __param } from 'tslib';
2
2
  import { Inject, Directive, NgModule } from '@angular/core';
3
3
  import { TuiPanService } from '@taiga-ui/cdk/services';
4
+ import { Observable } from 'rxjs';
4
5
 
5
6
  // @dynamic
6
7
  var TuiPanDirective = /** @class */ (function () {
@@ -8,7 +9,7 @@ var TuiPanDirective = /** @class */ (function () {
8
9
  this.tuiPan = tuiPan;
9
10
  }
10
11
  TuiPanDirective.ctorParameters = function () { return [
11
- { type: TuiPanService, decorators: [{ type: Inject, args: [TuiPanService,] }] }
12
+ { type: Observable, decorators: [{ type: Inject, args: [TuiPanService,] }] }
12
13
  ]; };
13
14
  TuiPanDirective = __decorate([
14
15
  Directive({
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-pan.js","sources":["ng://@taiga-ui/cdk/directives/pan/pan.directive.ts","ng://@taiga-ui/cdk/directives/pan/pan.module.ts","ng://@taiga-ui/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiPan]',\n outputs: ['tuiPan'],\n providers: [TuiPanService],\n})\nexport class TuiPanDirective {\n constructor(@Inject(TuiPanService) readonly tuiPan: TuiPanService) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPanDirective} from './pan.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiPanDirective],\n exports: [TuiPanDirective],\n})\nexport class TuiPanModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAOI,yBAA4C,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;KAAI;;gBAAjB,aAAa,uBAApD,MAAM,SAAC,aAAa;;IADxB,eAAe;QAL3B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;YACnB,SAAS,EAAE,CAAC,aAAa,CAAC;SAC7B,CAAC;QAEe,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;OADzB,eAAe,CAE3B;IAAD,sBAAC;CAFD;;ACNA;;;;IAOA;KAA4B;IAAf,YAAY;QAJxB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-pan.js","sources":["ng://@taiga-ui/cdk/directives/pan/pan.directive.ts","ng://@taiga-ui/cdk/directives/pan/pan.module.ts","ng://@taiga-ui/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiPan]',\n outputs: ['tuiPan'],\n providers: [TuiPanService],\n})\nexport class TuiPanDirective {\n constructor(\n @Inject(TuiPanService) readonly tuiPan: Observable<readonly [number, number]>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPanDirective} from './pan.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiPanDirective],\n exports: [TuiPanDirective],\n})\nexport class TuiPanModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;IAOI,yBACoC,MAA6C;QAA7C,WAAM,GAAN,MAAM,CAAuC;KAC7E;;gBADwC,UAAU,uBAAjD,MAAM,SAAC,aAAa;;IAFhB,eAAe;QAL3B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;YACnB,SAAS,EAAE,CAAC,aAAa,CAAC;SAC7B,CAAC;QAGO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;OAFjB,eAAe,CAI3B;IAAD,sBAAC;CAJD;;ACNA;;;;IAOA;KAA4B;IAAf,YAAY;QAJxB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACXA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["ng://@taiga-ui/cdk/directives/pressed/pressed.directive.ts","ng://@taiga-ui/cdk/directives/pressed/pressed.module.ts","ng://@taiga-ui/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {pressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector: '[tuiPressedChange]',\n})\nexport class TuiPressedDirective {\n @Output()\n readonly tuiPressedChange = pressedObservable(this.elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n });\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n ) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPressedDirective} from './pressed.directive';\n\n@NgModule({\n declarations: [TuiPressedDirective],\n exports: [TuiPressedDirective],\n})\nexport class TuiPressedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAaI,6BACyC,UAA+B,EAEnD,qBAA8B;QAFV,eAAU,GAAV,UAAU,CAAqB;QAEnD,0BAAqB,GAArB,qBAAqB,CAAS;QAP1C,qBAAgB,GAAG,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YACzE,WAAW,EAAE,IAAI,CAAC,qBAAqB;SAC1C,CAAC,CAAC;KAMC;;gBAHiD,UAAU,uBAA1D,MAAM,SAAC,UAAU;8CACjB,MAAM,SAAC,4BAA4B;;IANxC;QADC,MAAM,EAAE;iEAGN;IAJM,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;OARhC,mBAAmB,CAW/B;IAAD,0BAAC;CAXD;;;ICAA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["ng://@taiga-ui/cdk/directives/pressed/pressed.directive.ts","ng://@taiga-ui/cdk/directives/pressed/pressed.module.ts","ng://@taiga-ui/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {pressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector: '[tuiPressedChange]',\n})\nexport class TuiPressedDirective {\n @Output()\n readonly tuiPressedChange = pressedObservable(this.elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n });\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPressedDirective} from './pressed.directive';\n\n@NgModule({\n declarations: [TuiPressedDirective],\n exports: [TuiPressedDirective],\n})\nexport class TuiPressedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAaI,6BACyC,UAA+B,EAEnD,qBAA8B;QAFV,eAAU,GAAV,UAAU,CAAqB;QAEnD,0BAAqB,GAArB,qBAAqB,CAAS;QAP1C,qBAAgB,GAAG,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YACzE,WAAW,EAAE,IAAI,CAAC,qBAAqB;SAC1C,CAAC,CAAC;KAMC;;gBAHiD,UAAU,uBAA1D,MAAM,SAAC,UAAU;8CACjB,MAAM,SAAC,4BAA4B;;IANxC;QADC,MAAM,EAAE;iEAGN;IAJM,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;OARhC,mBAAmB,CAW/B;IAAD,0BAAC;CAXD;;;ICCA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.directive.ts","ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.module.ts","ng://@taiga-ui/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone} from '@angular/core';\nimport {preventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n * @dynamic\n */\n@Directive({\n selector: '[tuiPreventDefault]',\n providers: [TuiDestroyService],\n})\nexport class TuiPreventDefaultDirective {\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Attribute('tuiPreventDefault') eventName: string,\n ) {\n fromEvent(nativeElement, eventName, {passive: false})\n .pipe(tuiZonefree(ngZone), preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPreventDefaultDirective} from './prevent-default.directive';\n\n@NgModule({\n declarations: [TuiPreventDefaultDirective],\n exports: [TuiPreventDefaultDirective],\n})\nexport class TuiPreventDefaultModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;IAUI,oCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B,EACrB,SAAiB;YAH5B,gCAAa;QAKlC,SAAS,CAAC,aAAa,EAAE,SAAS,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aAChD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAChE,SAAS,EAAE,CAAC;KACpB;;gBARwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;gBACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;6CACxB,SAAS,SAAC,mBAAmB;;IALzB,0BAA0B;QAJtC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;YAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,SAAS,CAAC,mBAAmB,CAAC,CAAA;OAL1B,0BAA0B,CAWtC;IAAD,iCAAC;CAXD;;;ICRA;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;YAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.directive.ts","ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.module.ts","ng://@taiga-ui/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone} from '@angular/core';\nimport {preventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n * @dynamic\n */\n@Directive({\n selector: '[tuiPreventDefault]',\n providers: [TuiDestroyService],\n})\nexport class TuiPreventDefaultDirective {\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Attribute('tuiPreventDefault') eventName: string,\n ) {\n fromEvent(nativeElement, eventName, {passive: false})\n .pipe(tuiZonefree(ngZone), preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPreventDefaultDirective} from './prevent-default.directive';\n\n@NgModule({\n declarations: [TuiPreventDefaultDirective],\n exports: [TuiPreventDefaultDirective],\n})\nexport class TuiPreventDefaultModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;IAUI,oCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B,EACrB,SAAiB;YAH5B,gCAAa;QAKlC,SAAS,CAAC,aAAa,EAAE,SAAS,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aAChD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAChE,SAAS,EAAE,CAAC;KACpB;;gBARwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;gBACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;6CACxB,SAAS,SAAC,mBAAmB;;IALzB,0BAA0B;QAJtC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;YAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,SAAS,CAAC,mBAAmB,CAAC,CAAA;OAL1B,0BAA0B,CAWtC;IAAD,iCAAC;CAXD;;;ICPA;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;YAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.directive.ts","ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.module.ts","ng://@taiga-ui/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {clamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimesDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(clamp(count, 0, MAX_VALUE));\n\n const {length} = this.viewContainer;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainer: ViewContainerRef,\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<TuiRepeatTimesContext>,\n ) {}\n\n private addContainers(count: number) {\n for (let index = this.viewContainer.length; index < count; index++) {\n this.viewContainer.createEmbeddedView<TuiRepeatTimesContext>(\n this.templateRef,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number) {\n for (let index = 0; index < amount; index++) {\n this.viewContainer.remove();\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiRepeatTimesDirective} from './repeat-times.directive';\n\n@NgModule({\n declarations: [TuiRepeatTimesDirective],\n exports: [TuiRepeatTimesDirective],\n})\nexport class TuiRepeatTimesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,IAAM,SAAS,GAAG,OAAO,CAAC;;IAGtB,+BAAqB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;KAAI;IAC9C,4BAAC;AAAD,CAAC,IAAA;AAED;;;;;;;;IAyBI,iCAEqB,aAA+B,EAE/B,WAA+C;QAF/C,kBAAa,GAAb,aAAa,CAAkB;QAE/B,gBAAW,GAAX,WAAW,CAAoC;KAChE;IAjBJ,sBAAI,qDAAgB;aAApB,UAAqB,KAAa;YAC9B,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;YAElD,IAAA,kCAAM,CAAuB;YAEpC,IAAI,KAAK,GAAG,MAAM,EAAE;gBAChB,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;aACzC;iBAAM;gBACH,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;aACjC;SACJ;;;OAAA;IASO,+CAAa,GAArB,UAAsB,KAAa;QAC/B,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE;YAChE,IAAI,CAAC,aAAa,CAAC,kBAAkB,CACjC,IAAI,CAAC,WAAW,EAChB,IAAI,qBAAqB,CAAC,KAAK,CAAC,CACnC,CAAC;SACL;KACJ;IAEO,kDAAgB,GAAxB,UAAyB,MAAc;QACnC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;YACzC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;SAC/B;KACJ;;gBAlBmC,gBAAgB,uBAD/C,MAAM,SAAC,gBAAgB;gBAGM,WAAW,uBADxC,MAAM,SAAC,WAAW;;IAfvB;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;mEAWnB;IAbQ,uBAAuB;QAHnC,SAAS,CAAC;YACP,QAAQ,EAAE,oCAAoC;SACjD,CAAC;QAiBO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QAExB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAlBf,uBAAuB,CAoCnC;IAAD,8BAAC;CApCD;;;ICdA;KAAoC;IAAvB,oBAAoB;QAJhC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.directive.ts","ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.module.ts","ng://@taiga-ui/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {clamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimesDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(clamp(count, 0, MAX_VALUE));\n\n const {length} = this.viewContainer;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainer: ViewContainerRef,\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<TuiRepeatTimesContext>,\n ) {}\n\n private addContainers(count: number) {\n for (let index = this.viewContainer.length; index < count; index++) {\n this.viewContainer.createEmbeddedView<TuiRepeatTimesContext>(\n this.templateRef,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number) {\n for (let index = 0; index < amount; index++) {\n this.viewContainer.remove();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRepeatTimesDirective} from './repeat-times.directive';\n\n@NgModule({\n declarations: [TuiRepeatTimesDirective],\n exports: [TuiRepeatTimesDirective],\n})\nexport class TuiRepeatTimesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,IAAM,SAAS,GAAG,OAAO,CAAC;;IA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AAC;QAiBO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QAExB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAlBf,uBAAuB,CAoCnC;IAAD,8BAAC;CApCD;;;ICbA;KAAoC;IAAvB,oBAAoB;QAJhC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["ng://@taiga-ui/cdk/directives/resize/resize.directive.ts","ng://@taiga-ui/cdk/directives/resize/resize.module.ts","ng://@taiga-ui/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiResize]',\n outputs: ['tuiResize'],\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiResizeDirective {\n constructor(\n @Inject(TuiResizeService)\n readonly tuiResize: Observable<ReadonlyArray<ResizeObserverEntry>>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiResizeDirective} from './resize.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiResizeDirective],\n exports: [TuiResizeDirective],\n})\nexport class TuiResizeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;IAOI,4BAEa,SAAyD;QAAzD,cAAS,GAAT,SAAS,CAAgD;KAClE;;gBADoB,UAAU,uBAD7B,MAAM,SAAC,gBAAgB;;IAFnB,kBAAkB;QAL9B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,OAAO,EAAE,CAAC,WAAW,CAAC;YACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;SACnD,CAAC;QAGO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;OAFpB,kBAAkB,CAK9B;IAAD,yBAAC;CALD;;ACPA;;;;IAOA;KAA+B;IAAlB,eAAe;QAJ3B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["ng://@taiga-ui/cdk/directives/resize/resize.directive.ts","ng://@taiga-ui/cdk/directives/resize/resize.module.ts","ng://@taiga-ui/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiResize]',\n outputs: ['tuiResize'],\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiResizeDirective {\n constructor(\n @Inject(TuiResizeService)\n readonly tuiResize: Observable<ReadonlyArray<ResizeObserverEntry>>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizeDirective} from './resize.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiResizeDirective],\n exports: [TuiResizeDirective],\n})\nexport class TuiResizeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;IAOI,4BAEa,SAAyD;QAAzD,cAAS,GAAT,SAAS,CAAgD;KAClE;;gBADoB,UAAU,uBAD7B,MAAM,SAAC,gBAAgB;;IAFnB,kBAAkB;QAL9B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,OAAO,EAAE,CAAC,WAAW,CAAC;YACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;SACnD,CAAC;QAGO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;OAFpB,kBAAkB,CAK9B;IAAD,yBAAC;CALD;;ACNA;;;;IAOA;KAA+B;IAAlB,eAAe;QAJ3B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACXA;;;;;;"}
@@ -1,6 +1,7 @@
1
1
  import { __decorate, __param } from 'tslib';
2
2
  import { Inject, Directive, NgModule } from '@angular/core';
3
3
  import { TuiSwipeService } from '@taiga-ui/cdk/services';
4
+ import { Observable } from 'rxjs';
4
5
 
5
6
  // @dynamic
6
7
  var TuiSwipeDirective = /** @class */ (function () {
@@ -8,7 +9,7 @@ var TuiSwipeDirective = /** @class */ (function () {
8
9
  this.tuiSwipe = tuiSwipe;
9
10
  }
10
11
  TuiSwipeDirective.ctorParameters = function () { return [
11
- { type: TuiSwipeService, decorators: [{ type: Inject, args: [TuiSwipeService,] }] }
12
+ { type: Observable, decorators: [{ type: Inject, args: [TuiSwipeService,] }] }
12
13
  ]; };
13
14
  TuiSwipeDirective = __decorate([
14
15
  Directive({
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["ng://@taiga-ui/cdk/directives/swipe/swipe.directive.ts","ng://@taiga-ui/cdk/directives/swipe/swipe.module.ts","ng://@taiga-ui/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiSwipe]',\n outputs: ['tuiSwipe'],\n providers: [TuiSwipeService],\n})\nexport class TuiSwipeDirective {\n constructor(@Inject(TuiSwipeService) readonly tuiSwipe: TuiSwipeService) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiSwipeDirective} from './swipe.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiSwipeDirective],\n exports: [TuiSwipeDirective],\n})\nexport class TuiSwipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAOI,2BAA8C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;;gBAAnB,eAAe,uBAA1D,MAAM,SAAC,eAAe;;IAD1B,iBAAiB;QAL7B,SAAS,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,CAAC,UAAU,CAAC;YACrB,SAAS,EAAE,CAAC,eAAe,CAAC;SAC/B,CAAC;QAEe,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OAD3B,iBAAiB,CAE7B;IAAD,wBAAC;CAFD;;ACNA;;;;IAOA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["ng://@taiga-ui/cdk/directives/swipe/swipe.directive.ts","ng://@taiga-ui/cdk/directives/swipe/swipe.module.ts","ng://@taiga-ui/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipe} from '@taiga-ui/cdk/interfaces';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiSwipe]',\n outputs: ['tuiSwipe'],\n providers: [TuiSwipeService],\n})\nexport class TuiSwipeDirective {\n constructor(@Inject(TuiSwipeService) readonly tuiSwipe: Observable<TuiSwipe>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSwipeDirective} from './swipe.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiSwipeDirective],\n exports: [TuiSwipeDirective],\n})\nexport class TuiSwipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA;;IAOI,2BAA8C,QAA8B;QAA9B,aAAQ,GAAR,QAAQ,CAAsB;KAAI;;gBAAxB,UAAU,uBAArD,MAAM,SAAC,eAAe;;IAD1B,iBAAiB;QAL7B,SAAS,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,CAAC,UAAU,CAAC;YACrB,SAAS,EAAE,CAAC,eAAe,CAAC;SAC/B,CAAC;QAEe,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OAD3B,iBAAiB,CAE7B;IAAD,wBAAC;CAFD;;ACPA;;;;IAOA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACXA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["ng://@taiga-ui/cdk/directives/validator/validator.directive.ts","ng://@taiga-ui/cdk/directives/validator/validator.module.ts","ng://@taiga-ui/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector: '[tuiValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TuiValidatorDirective),\n multi: true,\n },\n ],\n})\nexport class TuiValidatorDirective implements Validator, OnChanges, OnDestroy {\n private onChange = EMPTY_FUNCTION;\n\n @Input()\n @tuiDefaultProp()\n tuiValidator: ValidatorFn = Validators.nullValidator;\n\n validate(control: AbstractControl): ValidationErrors | null {\n return this.tuiValidator(control);\n }\n\n registerOnValidatorChange(onChange: Function) {\n this.onChange = onChange;\n }\n\n ngOnChanges() {\n this.onChange();\n }\n\n ngOnDestroy() {\n this.tuiValidator = Validators.nullValidator;\n this.onChange();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiValidatorDirective} from './validator.directive';\n\n@NgModule({\n declarations: [TuiValidatorDirective],\n exports: [TuiValidatorDirective],\n})\nexport class TuiValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAsBA;QACY,aAAQ,GAAG,cAAc,CAAC;QAIlC,iBAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;KAkBxD;8BAvBY,qBAAqB;IAO9B,wCAAQ,GAAR,UAAS,OAAwB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;IAED,yDAAyB,GAAzB,UAA0B,QAAkB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;;IAjBD;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;+DACoC;IAL5C,qBAAqB;QAVjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,aAAa;oBACtB,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;oBACpD,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,qBAAqB,CAuBjC;IAAD,4BAAC;CAvBD;;;ICfA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["ng://@taiga-ui/cdk/directives/validator/validator.directive.ts","ng://@taiga-ui/cdk/directives/validator/validator.module.ts","ng://@taiga-ui/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector: '[tuiValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TuiValidatorDirective),\n multi: true,\n },\n ],\n})\nexport class TuiValidatorDirective implements Validator, OnChanges, OnDestroy {\n private onChange = EMPTY_FUNCTION;\n\n @Input()\n @tuiDefaultProp()\n tuiValidator: ValidatorFn = Validators.nullValidator;\n\n validate(control: AbstractControl): ValidationErrors | null {\n return this.tuiValidator(control);\n }\n\n registerOnValidatorChange(onChange: Function) {\n this.onChange = onChange;\n }\n\n ngOnChanges() {\n this.onChange();\n }\n\n ngOnDestroy() {\n this.tuiValidator = Validators.nullValidator;\n this.onChange();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValidatorDirective} from './validator.directive';\n\n@NgModule({\n declarations: [TuiValidatorDirective],\n exports: [TuiValidatorDirective],\n})\nexport class TuiValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAsBA;QACY,aAAQ,GAAG,cAAc,CAAC;QAIlC,iBAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;KAkBxD;8BAvBY,qBAAqB;IAO9B,wCAAQ,GAAR,UAAS,OAAwB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;IAED,yDAAyB,GAAzB,UAA0B,QAAkB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;;IAjBD;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;+DACoC;IAL5C,qBAAqB;QAVjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,aAAa;oBACtB,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;oBACpD,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,qBAAqB,CAuBjC;IAAD,4BAAC;CAvBD;;;ICdA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
@@ -1,6 +1,7 @@
1
1
  import { __decorate, __param } from 'tslib';
2
2
  import { Inject, Directive, NgModule } from '@angular/core';
3
3
  import { TuiZoomService } from '@taiga-ui/cdk/services';
4
+ import { Observable } from 'rxjs';
4
5
 
5
6
  // @dynamic
6
7
  var TuiZoomDirective = /** @class */ (function () {
@@ -8,7 +9,7 @@ var TuiZoomDirective = /** @class */ (function () {
8
9
  this.tuiZoom = tuiZoom;
9
10
  }
10
11
  TuiZoomDirective.ctorParameters = function () { return [
11
- { type: TuiZoomService, decorators: [{ type: Inject, args: [TuiZoomService,] }] }
12
+ { type: Observable, decorators: [{ type: Inject, args: [TuiZoomService,] }] }
12
13
  ]; };
13
14
  TuiZoomDirective = __decorate([
14
15
  Directive({
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-zoom.js","sources":["ng://@taiga-ui/cdk/directives/zoom/zoom.directive.ts","ng://@taiga-ui/cdk/directives/zoom/zoom.module.ts","ng://@taiga-ui/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiZoomService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiZoom]',\n outputs: ['tuiZoom'],\n providers: [TuiZoomService],\n host: {\n '[style.touch-actions]': '\"none\"',\n },\n})\nexport class TuiZoomDirective {\n constructor(@Inject(TuiZoomService) readonly tuiZoom: TuiZoomService) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiZoomDirective} from './zoom.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiZoomDirective],\n exports: [TuiZoomDirective],\n})\nexport class TuiZoomModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAUI,0BAA6C,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;KAAI;;gBAAlB,cAAc,uBAAvD,MAAM,SAAC,cAAc;;IADzB,gBAAgB;QAR5B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;YACrB,OAAO,EAAE,CAAC,SAAS,CAAC;YACpB,SAAS,EAAE,CAAC,cAAc,CAAC;YAC3B,IAAI,EAAE;gBACF,uBAAuB,EAAE,QAAQ;aACpC;SACJ,CAAC;QAEe,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;OAD1B,gBAAgB,CAE5B;IAAD,uBAAC;CAFD;;ACTA;;;;IAOA;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-zoom.js","sources":["ng://@taiga-ui/cdk/directives/zoom/zoom.directive.ts","ng://@taiga-ui/cdk/directives/zoom/zoom.module.ts","ng://@taiga-ui/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiZoom} from '@taiga-ui/cdk/interfaces';\nimport {TuiZoomService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiZoom]',\n outputs: ['tuiZoom'],\n providers: [TuiZoomService],\n host: {\n '[style.touch-actions]': '\"none\"',\n },\n})\nexport class TuiZoomDirective {\n constructor(@Inject(TuiZoomService) readonly tuiZoom: Observable<TuiZoom>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiZoomDirective} from './zoom.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiZoomDirective],\n exports: [TuiZoomDirective],\n})\nexport class TuiZoomModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA;;IAUI,0BAA6C,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;KAAI;;gBAAvB,UAAU,uBAAnD,MAAM,SAAC,cAAc;;IADzB,gBAAgB;QAR5B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;YACrB,OAAO,EAAE,CAAC,SAAS,CAAC;YACpB,SAAS,EAAE,CAAC,cAAc,CAAC;YAC3B,IAAI,EAAE;gBACF,uBAAuB,EAAE,QAAQ;aACpC;SACJ,CAAC;QAEe,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;OAD1B,gBAAgB,CAE5B;IAAD,uBAAC;CAFD;;ACVA;;;;IAOA;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACXA;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  export * from '@taiga-ui/cdk/directives/active-zone';
2
- export * from '@taiga-ui/cdk/directives/autofilled';
3
2
  export * from '@taiga-ui/cdk/directives/auto-focus';
3
+ export * from '@taiga-ui/cdk/directives/autofilled';
4
4
  export * from '@taiga-ui/cdk/directives/checked';
5
5
  export * from '@taiga-ui/cdk/directives/drag';
6
6
  export * from '@taiga-ui/cdk/directives/droppable';
@@ -13,17 +13,18 @@ export * from '@taiga-ui/cdk/directives/for';
13
13
  export * from '@taiga-ui/cdk/directives/high-dpi';
14
14
  export * from '@taiga-ui/cdk/directives/hovered';
15
15
  export * from '@taiga-ui/cdk/directives/input-mode';
16
+ export * from '@taiga-ui/cdk/directives/item';
16
17
  export * from '@taiga-ui/cdk/directives/let';
17
18
  export * from '@taiga-ui/cdk/directives/media';
18
19
  export * from '@taiga-ui/cdk/directives/obscured';
19
20
  export * from '@taiga-ui/cdk/directives/overscroll';
21
+ export * from '@taiga-ui/cdk/directives/pan';
20
22
  export * from '@taiga-ui/cdk/directives/pressed';
21
- export * from '@taiga-ui/cdk/directives/resize';
22
23
  export * from '@taiga-ui/cdk/directives/prevent-default';
23
24
  export * from '@taiga-ui/cdk/directives/repeat-times';
24
- export * from '@taiga-ui/cdk/directives/validator';
25
- export * from '@taiga-ui/cdk/directives/pan';
25
+ export * from '@taiga-ui/cdk/directives/resize';
26
26
  export * from '@taiga-ui/cdk/directives/swipe';
27
+ export * from '@taiga-ui/cdk/directives/validator';
27
28
  export * from '@taiga-ui/cdk/directives/zoom';
28
29
 
29
30
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives.js","sources":["ng://@taiga-ui/cdk/directives/taiga-ui-cdk-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives.js","sources":["ng://@taiga-ui/cdk/directives/taiga-ui-cdk-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;"}
@@ -53,6 +53,17 @@ var TuiTransactionAutofillName;
53
53
  TuiTransactionAutofillName["TransactionAmount"] = "transaction-amount";
54
54
  })(TuiTransactionAutofillName || (TuiTransactionAutofillName = {}));
55
55
 
56
+ var TuiDayOfWeek;
57
+ (function (TuiDayOfWeek) {
58
+ TuiDayOfWeek[TuiDayOfWeek["Sunday"] = 0] = "Sunday";
59
+ TuiDayOfWeek[TuiDayOfWeek["Monday"] = 1] = "Monday";
60
+ TuiDayOfWeek[TuiDayOfWeek["Tuesday"] = 2] = "Tuesday";
61
+ TuiDayOfWeek[TuiDayOfWeek["Wednesday"] = 3] = "Wednesday";
62
+ TuiDayOfWeek[TuiDayOfWeek["Thursday"] = 4] = "Thursday";
63
+ TuiDayOfWeek[TuiDayOfWeek["Friday"] = 5] = "Friday";
64
+ TuiDayOfWeek[TuiDayOfWeek["Saturday"] = 6] = "Saturday";
65
+ })(TuiDayOfWeek || (TuiDayOfWeek = {}));
66
+
56
67
  /**
57
68
  * @deprecated use join type {@link TuiInputModeT}
58
69
  */
@@ -111,17 +122,6 @@ var TuiOverscrollMode;
111
122
  TuiOverscrollMode["None"] = "none";
112
123
  })(TuiOverscrollMode || (TuiOverscrollMode = {}));
113
124
 
114
- var TuiDayOfWeek;
115
- (function (TuiDayOfWeek) {
116
- TuiDayOfWeek[TuiDayOfWeek["Sunday"] = 0] = "Sunday";
117
- TuiDayOfWeek[TuiDayOfWeek["Monday"] = 1] = "Monday";
118
- TuiDayOfWeek[TuiDayOfWeek["Tuesday"] = 2] = "Tuesday";
119
- TuiDayOfWeek[TuiDayOfWeek["Wednesday"] = 3] = "Wednesday";
120
- TuiDayOfWeek[TuiDayOfWeek["Thursday"] = 4] = "Thursday";
121
- TuiDayOfWeek[TuiDayOfWeek["Friday"] = 5] = "Friday";
122
- TuiDayOfWeek[TuiDayOfWeek["Saturday"] = 6] = "Saturday";
123
- })(TuiDayOfWeek || (TuiDayOfWeek = {}));
124
-
125
125
  /**
126
126
  * Generated bundle index. Do not edit.
127
127
  */
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-enums.js","sources":["ng://@taiga-ui/cdk/enums/autocomplete.ts","ng://@taiga-ui/cdk/enums/input-mode.ts","ng://@taiga-ui/cdk/enums/input-type.ts","ng://@taiga-ui/cdk/enums/month-number.ts","ng://@taiga-ui/cdk/enums/overscroll-mode.ts","ng://@taiga-ui/cdk/enums/day-of-week.ts","ng://@taiga-ui/cdk/enums/taiga-ui-cdk-enums.ts"],"sourcesContent":["export const enum TuiCreditCardAutofillName {\n Off = 'off',\n CcName = 'cc-name',\n CcNumber = 'cc-number',\n CcCsc = 'cc-csc',\n CcExp_mounth = 'cc-exp-month',\n CcExp_year = 'cc-exp-year',\n CcExp = 'cc-exp',\n CcType = 'cc-type',\n}\n\nexport const enum TuiNameAutofillName {\n Off = 'off',\n Name = 'name',\n GivenName = 'given-name',\n AdditionalName = 'additional-name',\n FamilyName = 'family-name',\n}\n\nexport const enum TuiAccountAutofillName {\n Off = 'off',\n Username = 'username',\n NewPassword = 'new-password',\n CurrentPassword = 'current-password',\n}\n\nexport const enum TuiEmailAutofillName {\n Off = 'off',\n Email = 'email',\n}\n\nexport const enum TuiAddressAutofillName {\n Off = 'off',\n StreetAddress = 'street-address',\n PostalCode = 'postal-code',\n CountryName = 'country-name',\n}\n\nexport const enum TuiPhoneAutofillName {\n Off = 'off',\n Tel = 'tel',\n}\n\nexport const enum TuiDateAutofillName {\n Off = 'off',\n Bday = 'bday',\n}\n\nexport const enum TuiTransactionAutofillName {\n Off = 'off',\n TransactionCurrency = 'transaction-currency',\n TransactionAmount = 'transaction-amount',\n}\nexport type TuiAutofillFieldName =\n | TuiCreditCardAutofillName\n | TuiNameAutofillName\n | TuiAccountAutofillName\n | TuiEmailAutofillName\n | TuiAddressAutofillName\n | TuiPhoneAutofillName\n | TuiDateAutofillName\n | TuiTransactionAutofillName;\n","/**\n * @deprecated use join type {@link TuiInputModeT}\n */\nexport const enum TuiInputMode {\n None = 'none',\n Text = 'text',\n Decimal = 'decimal',\n Numeric = 'numeric',\n Tel = 'tel',\n Email = 'email',\n Url = 'url',\n Search = 'search',\n}\n","/**\n * @deprecated use join type {@link TuiInputTypeT}\n */\nexport const enum TuiInputType {\n Text = 'text',\n Tel = 'tel',\n Email = 'email',\n Url = 'url',\n Password = 'password',\n}\n","export const enum TuiMonthNumber {\n January,\n February,\n March,\n April,\n May,\n June,\n July,\n August,\n September,\n October,\n November,\n December,\n}\n","/**\n * Modes for {@link TuiOverscrollDirective}:\n *\n * All — blocks all scroll actions\n * Scroll — blocks scroll actions only if content is scrollable (equivalent to overscroll-behavior: contain)\n * None — blocking is disabled\n * @deprecated use join type {@link TuiOverscrollModeT}\n */\nexport const enum TuiOverscrollMode {\n All = 'all',\n Scroll = 'scroll',\n None = 'none',\n}\n","export const enum TuiDayOfWeek {\n Sunday,\n Monday,\n Tuesday,\n Wednesday,\n Thursday,\n Friday,\n Saturday,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"IAAkB;AAAlB,WAAkB,yBAAyB;IACvC,wCAAW,CAAA;IACX,+CAAkB,CAAA;IAClB,mDAAsB,CAAA;IACtB,6CAAgB,CAAA;IAChB,0DAA6B,CAAA;IAC7B,uDAA0B,CAAA;IAC1B,6CAAgB,CA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,iCAAiB,CAAA;AACrB,CAAC,EATiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,+BAAe,CAAA;IACf,2BAAW,CAAA;IACX,qCAAqB,CAAA;AACzB,CAAC,EANiB,YAAY,KAAZ,YAAY;;ICHZ;AAAlB,WAAkB,cAAc;IAC5B,yDAAO,CAAA;IACP,2DAAQ,CAAA;IACR,qDAAK,CAAA;IACL,qDAAK,CAAA;IACL,iDAAG,CAAA;IACH,mDAAI,CAAA;IACJ,mDAAI,CAAA;IACJ,uDAAM,CAAA;IACN,6DAAS,CAAA;IACT,yDAAO,CAAA;IACP,4DAAQ,CAAA;IACR,4DAAQ,CAAA;AACZ,CAAC,EAbiB,cAAc,KAAd,cAAc;;ACAhC;;;;;;;;IAQkB;AAAlB,WAAkB,iBAAiB;IAC/B,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,kCAAa,CAAA;AACjB,CAAC,EAJiB,iBAAiB,KAAjB,iBAAiB;;ICRjB;AAAlB,WAAkB,YAAY;IAC1B,mDAAM,CAAA;IACN,mDAAM,CAAA;IACN,qDAAO,CAAA;IACP,yDAAS,CAAA;IACT,uDAAQ,CAAA;IACR,mDAAM,CAAA;IACN,uDAAQ,CAAA;AACZ,CAAC,EARiB,YAAY,KAAZ,YAAY;;ACA9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-enums.js","sources":["ng://@taiga-ui/cdk/enums/autocomplete.ts","ng://@taiga-ui/cdk/enums/day-of-week.ts","ng://@taiga-ui/cdk/enums/input-mode.ts","ng://@taiga-ui/cdk/enums/input-type.ts","ng://@taiga-ui/cdk/enums/month-number.ts","ng://@taiga-ui/cdk/enums/overscroll-mode.ts","ng://@taiga-ui/cdk/enums/taiga-ui-cdk-enums.ts"],"sourcesContent":["export const enum TuiCreditCardAutofillName {\n Off = 'off',\n CcName = 'cc-name',\n CcNumber = 'cc-number',\n CcCsc = 'cc-csc',\n CcExp_mounth = 'cc-exp-month',\n CcExp_year = 'cc-exp-year',\n CcExp = 'cc-exp',\n CcType = 'cc-type',\n}\n\nexport const enum TuiNameAutofillName {\n Off = 'off',\n Name = 'name',\n GivenName = 'given-name',\n AdditionalName = 'additional-name',\n FamilyName = 'family-name',\n}\n\nexport const enum TuiAccountAutofillName {\n Off = 'off',\n Username = 'username',\n NewPassword = 'new-password',\n CurrentPassword = 'current-password',\n}\n\nexport const enum TuiEmailAutofillName {\n Off = 'off',\n Email = 'email',\n}\n\nexport const enum TuiAddressAutofillName {\n Off = 'off',\n StreetAddress = 'street-address',\n PostalCode = 'postal-code',\n CountryName = 'country-name',\n}\n\nexport const enum TuiPhoneAutofillName {\n Off = 'off',\n Tel = 'tel',\n}\n\nexport const enum TuiDateAutofillName {\n Off = 'off',\n Bday = 'bday',\n}\n\nexport const enum TuiTransactionAutofillName {\n Off = 'off',\n TransactionCurrency = 'transaction-currency',\n TransactionAmount = 'transaction-amount',\n}\nexport type TuiAutofillFieldName =\n | TuiCreditCardAutofillName\n | TuiNameAutofillName\n | TuiAccountAutofillName\n | TuiEmailAutofillName\n | TuiAddressAutofillName\n | TuiPhoneAutofillName\n | TuiDateAutofillName\n | TuiTransactionAutofillName;\n","export const enum TuiDayOfWeek {\n Sunday,\n Monday,\n Tuesday,\n Wednesday,\n Thursday,\n Friday,\n Saturday,\n}\n","/**\n * @deprecated use join type {@link TuiInputModeT}\n */\nexport const enum TuiInputMode {\n None = 'none',\n Text = 'text',\n Decimal = 'decimal',\n Numeric = 'numeric',\n Tel = 'tel',\n Email = 'email',\n Url = 'url',\n Search = 'search',\n}\n","/**\n * @deprecated use join type {@link TuiInputTypeT}\n */\nexport const enum TuiInputType {\n Text = 'text',\n Tel = 'tel',\n Email = 'email',\n Url = 'url',\n Password = 'password',\n}\n","export const enum TuiMonthNumber {\n January,\n February,\n March,\n April,\n May,\n June,\n July,\n August,\n September,\n October,\n November,\n December,\n}\n","/**\n * Modes for {@link TuiOverscrollDirective}:\n *\n * All — blocks all scroll actions\n * Scroll — blocks scroll actions only if content is scrollable (equivalent to overscroll-behavior: contain)\n * None — blocking is disabled\n * @deprecated use join type {@link TuiOverscrollModeT}\n */\nexport const enum TuiOverscrollMode {\n All = 'all',\n Scroll = 'scroll',\n None = 'none',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"IAAkB;AAAlB,WAAkB,yBAAyB;IACvC,wCAAW,CAAA;IACX,+CAAkB,CAAA;IAClB,mDAAsB,CAAA;IACtB,6CAAgB,CAAA;IAChB,0DAA6B,CAAA;IAC7B,uDAA0B,CAAA;IAC1B,6CAAgB,CAAA;IAChB,+CAAkB,CAAA;AACtB,CAAC,EATiB,yBAAyB,KAAzB,yBAAyB,QAS1C;IAEiB;AAAlB,WAAkB,mBAAmB;IACjC,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,+CAAwB,CAAA;IACxB,yDAAkC,CAAA;IAClC,iDAA0B,CAAA;AAC9B,CAAC,EANiB,mBAAmB,KAAnB,mBAAmB,QAMpC;IAEiB;AAAlB,WAAkB,sBAAsB;IACpC,qCAAW,CAAA;IACX,+CAAqB,CAAA;IACrB,sDAA4B,CAAA;IAC5B,8DAAoC,CAAA;AACxC,CAAC,EALiB,sBAAsB,KAAtB,sBAAsB,QAKvC;IAEiB;AAAlB,WAAkB,oBAAoB;IAClC,mCAAW,CAAA;IACX,uCAAe,CAAA;AACnB,CAAC,EAHiB,oBAAoB,KAApB,oBAAoB,QAGrC;IAEiB;AAAlB,WAAkB,sBAAsB;IACpC,qCAAW,CAAA;IACX,0DAAgC,CAAA;IAChC,oDAA0B,CAAA;IAC1B,sDAA4B,CAAA;AAChC,CAAC,EALiB,sBAAsB,KAAtB,sBAAsB,QAKvC;IAEiB;AAAlB,WAAkB,oBAAoB;IAClC,mCAAW,CAAA;IACX,mCAAW,CAAA;AACf,CAAC,EAHiB,oBAAoB,KAApB,oBAAoB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A;IACjB,kCAAa,CAAA;AACjB,CAAC,EAJiB,iBAAiB,KAAjB,iBAAiB;;ACRnC;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-observables.js","sources":["ng://@taiga-ui/cdk/observables/typed-from-event.ts","ng://@taiga-ui/cdk/observables/mouse-drag-finish-from.ts","ng://@taiga-ui/cdk/observables/drag-and-drop-from.ts","ng://@taiga-ui/cdk/observables/is-alive.ts","ng://@taiga-ui/cdk/observables/focus-visible-observable.ts","ng://@taiga-ui/cdk/observables/items-query-list-observable.ts","ng://@taiga-ui/cdk/observables/must-be-present.ts","ng://@taiga-ui/cdk/observables/pressed-observable.ts","ng://@taiga-ui/cdk/observables/prevent-default.ts","ng://@taiga-ui/cdk/observables/replay-control-value-changes.ts","ng://@taiga-ui/cdk/observables/stop-propagation.ts","ng://@taiga-ui/cdk/observables/watch.ts","ng://@taiga-ui/cdk/observables/zone-free.ts","ng://@taiga-ui/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {fromEvent, Observable} from 'rxjs';\n\nexport function typedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\nexport function typedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\nexport function typedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\nexport function typedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n return fromEvent(target, event, options);\n}\n","import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {merge, Observable} from 'rxjs';\nimport {typedFromEvent} from './typed-from-event';\n\n/**\n * Letting go of the mouse after it was pressed\n * @param target\n */\nexport function mouseDragFinishFrom<\n T extends TuiTypedEventTarget<TuiEventWith<DragEvent, T>>,\n>(target: Exclude<T, null>): Observable<TuiEventWith<MouseEvent, T>> {\n return merge(typedFromEvent(target, 'mouseup'), typedFromEvent(target, 'dragend'));\n}\n","import {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {concat, merge, Observable} from 'rxjs';\nimport {endWith, map, repeat, take, takeWhile} from 'rxjs/operators';\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport const enum TuiDragStage {\n Start,\n Continues,\n End,\n}\n\nexport class TuiDragState {\n constructor(readonly stage: TuiDragStage, readonly event: MouseEvent) {}\n}\n\nexport function dragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new Error('element does not have ownerDocument');\n }\n\n return concat(\n typedFromEvent(element, 'mousedown').pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.Start, event)),\n ),\n merge(\n typedFromEvent(ownerDocument, 'mousemove').pipe(\n map(event => new TuiDragState(TuiDragStage.Continues, event)),\n ),\n mouseDragFinishFrom(ownerDocument).pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.End, event)),\n endWith(null),\n ),\n ).pipe(takeWhile(isPresent)),\n ).pipe(repeat());\n}\n","import {OperatorFunction, pipe, timer} from 'rxjs';\nimport {distinctUntilChanged, mapTo, startWith, switchMapTo} from 'rxjs/operators';\n\n/**\n * Operator to set lifespan after which current value is considered obsolete\n */\nexport function tuiIsAlive(lifespan: number = 0): OperatorFunction<any, boolean> {\n return pipe(\n switchMapTo(timer(lifespan).pipe(mapTo(false), startWith(true))),\n distinctUntilChanged(),\n );\n}\n","import {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {concat, merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n ignoreElements,\n mapTo,\n repeat,\n shareReplay,\n startWith,\n switchMapTo,\n take,\n withLatestFrom,\n} from 'rxjs/operators';\nimport {tuiIsAlive} from './is-alive';\nimport {typedFromEvent} from './typed-from-event';\n\nlet documentMouseUpIsAlive$: Observable<boolean>;\nlet documentMouseDownIsAlive$: Observable<boolean>;\n\nexport function focusVisibleObservable(element: Element): Observable<boolean> {\n const elementBlur$ = typedFromEvent(element, 'blur');\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new Error('element does not have ownerDocument');\n }\n\n if (!documentMouseDownIsAlive$ || !documentMouseUpIsAlive$) {\n documentMouseUpIsAlive$ = typedFromEvent(ownerDocument, 'mouseup', {\n capture: true,\n }).pipe(tuiIsAlive(), startWith(false), shareReplay(1));\n documentMouseDownIsAlive$ = typedFromEvent(ownerDocument, 'mousedown', {\n capture: true,\n }).pipe(tuiIsAlive(), startWith(false), shareReplay(1));\n }\n\n return merge(\n // focus events excluding ones that came right after mouse action\n concat(\n typedFromEvent(element, 'focus').pipe(take(1)),\n // filtering out blur events when element remains focused so that we ignore browser tab focus loss\n elementBlur$.pipe(\n filter(() => !isNativeFocused(element)),\n take(1),\n ignoreElements(),\n ),\n ).pipe(\n repeat(),\n withLatestFrom(\n documentMouseDownIsAlive$,\n documentMouseUpIsAlive$,\n (_event, elementActual, documentActual) =>\n elementActual || documentActual,\n ),\n filter(isUserFocus => !isUserFocus),\n ),\n ).pipe(\n switchMapTo(elementBlur$.pipe(mapTo(false), take(1), startWith(true))),\n distinctUntilChanged(),\n );\n}\n","import {QueryList} from '@angular/core';\nimport {getOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\n/**\n * Converts changes observable of a QueryList to an Observable of arrays\n */\nexport function itemsQueryListObservable<T>(\n queryList: QueryList<T>,\n): Observable<ReadonlyArray<T>> {\n return queryList.changes.pipe(\n map(() => getOriginalArrayFromQueryList(queryList)),\n startWith(getOriginalArrayFromQueryList(queryList)),\n );\n}\n","import {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {OperatorFunction} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nexport function mustBePresent<T>(): OperatorFunction<T | undefined | null, T> {\n return map(value => {\n if (!isPresent(value)) {\n throw new Error('Value must present');\n }\n\n return value;\n });\n}\n","import {Observable} from 'rxjs';\nimport {filter, mapTo, startWith, switchMapTo, take} from 'rxjs/operators';\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport interface TuiPressedObservableOptions {\n onlyTrusted: boolean;\n}\n\nexport function pressedObservable(\n element: Element,\n {onlyTrusted}: TuiPressedObservableOptions = {onlyTrusted: true},\n): Observable<boolean> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new Error('element does not have ownerDocument');\n }\n\n return typedFromEvent(element, 'mousedown').pipe(\n filter(({isTrusted}) => isTrusted || !onlyTrusted),\n switchMapTo(\n mouseDragFinishFrom(ownerDocument).pipe(\n mapTo(false),\n take(1),\n startWith(true),\n ),\n ),\n );\n}\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\nexport function preventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(e => {\n e.preventDefault();\n });\n}\n","import {AbstractControl, AbstractControlDirective} from '@angular/forms';\nimport {Observable} from 'rxjs';\nimport {startWith} from 'rxjs/operators';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n */\nexport function tuiReplayedValueChangesFrom<T>(\n control: AbstractControl | AbstractControlDirective,\n): Observable<T> {\n return new Observable(subscriber => {\n if (!control.valueChanges) {\n throw new Error('Control does not have valueChanges');\n }\n\n control.valueChanges.pipe(startWith(control.value)).subscribe(subscriber);\n });\n}\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\nexport function stopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(e => {\n e.stopPropagation();\n });\n}\n","import {ChangeDetectorRef} from '@angular/core';\nimport {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\nexport function watch<T>(\n changeDetectorRef: ChangeDetectorRef,\n): MonoTypeOperatorFunction<T> {\n return tap(() => {\n changeDetectorRef.markForCheck();\n });\n}\n","import {NgZone} from '@angular/core';\nimport {MonoTypeOperatorFunction, Observable, pipe} from 'rxjs';\n\nexport function tuiZonefull<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n source.subscribe({\n next: value => ngZone.run(() => subscriber.next(value)),\n error: error => ngZone.run(() => subscriber.error(error)),\n complete: () => ngZone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n ngZone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(ngZone), tuiZonefull(ngZone));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;SA+BgB,cAAc,CAC1B,MAA8B,EAC9B,KAAa,EACb,OAAqC;IAArC,wBAAA,EAAA,YAAqC;IAErC,OAAO,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAC7C;;ACjCA;;;;SAIgB,mBAAmB,CAEjC,MAAwB;IACtB,OAAO,KAAK,CAAC,cAAc,CAAC,MAAM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W,CAAI,MAAc;IACzC,OAAO,UAAA,MAAM;QACT,OAAA,IAAI,UAAU,CAAC,UAAA,UAAU;YACrB,OAAA,MAAM,CAAC,iBAAiB,CAAC,cAAM,OAAA,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,GAAA,CAAC;SAAA,CAC/D;KAAA,CAAC;AACV,CAAC;SAEe,gBAAgB,CAAI,MAAc;IAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AAC1D;;ACvBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-observables.js","sources":["ng://@taiga-ui/cdk/observables/typed-from-event.ts","ng://@taiga-ui/cdk/observables/mouse-drag-finish-from.ts","ng://@taiga-ui/cdk/observables/drag-and-drop-from.ts","ng://@taiga-ui/cdk/observables/is-alive.ts","ng://@taiga-ui/cdk/observables/focus-visible-observable.ts","ng://@taiga-ui/cdk/observables/items-query-list-observable.ts","ng://@taiga-ui/cdk/observables/must-be-present.ts","ng://@taiga-ui/cdk/observables/pressed-observable.ts","ng://@taiga-ui/cdk/observables/prevent-default.ts","ng://@taiga-ui/cdk/observables/replay-control-value-changes.ts","ng://@taiga-ui/cdk/observables/stop-propagation.ts","ng://@taiga-ui/cdk/observables/watch.ts","ng://@taiga-ui/cdk/observables/zone-free.ts","ng://@taiga-ui/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {fromEvent, Observable} from 'rxjs';\n\nexport function typedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\nexport function typedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\nexport function typedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\nexport function typedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n return fromEvent(target, event, options);\n}\n","import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {merge, Observable} from 'rxjs';\n\nimport {typedFromEvent} from './typed-from-event';\n\n/**\n * Letting go of the mouse after it was pressed\n * @param target\n */\nexport function mouseDragFinishFrom<\n T extends TuiTypedEventTarget<TuiEventWith<DragEvent, T>>,\n>(target: Exclude<T, null>): Observable<TuiEventWith<MouseEvent, T>> {\n return merge(typedFromEvent(target, 'mouseup'), typedFromEvent(target, 'dragend'));\n}\n","import {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {concat, merge, Observable} from 'rxjs';\nimport {endWith, map, repeat, take, takeWhile} from 'rxjs/operators';\n\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport const enum TuiDragStage {\n Start,\n Continues,\n End,\n}\n\nexport class TuiDragState {\n constructor(readonly stage: TuiDragStage, readonly event: MouseEvent) {}\n}\n\nexport function dragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new Error('element does not have ownerDocument');\n }\n\n return concat(\n typedFromEvent(element, 'mousedown').pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.Start, event)),\n ),\n merge(\n typedFromEvent(ownerDocument, 'mousemove').pipe(\n map(event => new TuiDragState(TuiDragStage.Continues, event)),\n ),\n mouseDragFinishFrom(ownerDocument).pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.End, event)),\n endWith(null),\n ),\n ).pipe(takeWhile(isPresent)),\n ).pipe(repeat());\n}\n","import {OperatorFunction, pipe, timer} from 'rxjs';\nimport {distinctUntilChanged, mapTo, startWith, switchMapTo} from 'rxjs/operators';\n\n/**\n * Operator to set lifespan after which current value is considered obsolete\n */\nexport function tuiIsAlive(lifespan: number = 0): OperatorFunction<any, boolean> {\n return pipe(\n switchMapTo(timer(lifespan).pipe(mapTo(false), startWith(true))),\n distinctUntilChanged(),\n );\n}\n","import {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {concat, merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n ignoreElements,\n mapTo,\n repeat,\n shareReplay,\n startWith,\n switchMapTo,\n take,\n withLatestFrom,\n} from 'rxjs/operators';\n\nimport {tuiIsAlive} from './is-alive';\nimport {typedFromEvent} from './typed-from-event';\n\nlet documentMouseUpIsAlive$: Observable<boolean>;\nlet documentMouseDownIsAlive$: Observable<boolean>;\n\nexport function focusVisibleObservable(element: Element): Observable<boolean> {\n const elementBlur$ = typedFromEvent(element, 'blur');\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new Error('element does not have ownerDocument');\n }\n\n if (!documentMouseDownIsAlive$ || !documentMouseUpIsAlive$) {\n documentMouseUpIsAlive$ = typedFromEvent(ownerDocument, 'mouseup', {\n capture: true,\n }).pipe(tuiIsAlive(), startWith(false), shareReplay(1));\n documentMouseDownIsAlive$ = typedFromEvent(ownerDocument, 'mousedown', {\n capture: true,\n }).pipe(tuiIsAlive(), startWith(false), shareReplay(1));\n }\n\n return merge(\n // focus events excluding ones that came right after mouse action\n concat(\n typedFromEvent(element, 'focus').pipe(take(1)),\n // filtering out blur events when element remains focused so that we ignore browser tab focus loss\n elementBlur$.pipe(\n filter(() => !isNativeFocused(element)),\n take(1),\n ignoreElements(),\n ),\n ).pipe(\n repeat(),\n withLatestFrom(\n documentMouseDownIsAlive$,\n documentMouseUpIsAlive$,\n (_event, elementActual, documentActual) =>\n elementActual || documentActual,\n ),\n filter(isUserFocus => !isUserFocus),\n ),\n ).pipe(\n switchMapTo(elementBlur$.pipe(mapTo(false), take(1), startWith(true))),\n distinctUntilChanged(),\n );\n}\n","import {QueryList} from '@angular/core';\nimport {getOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\n/**\n * Converts changes observable of a QueryList to an Observable of arrays\n */\nexport function itemsQueryListObservable<T>(\n queryList: QueryList<T>,\n): Observable<ReadonlyArray<T>> {\n return queryList.changes.pipe(\n map(() => getOriginalArrayFromQueryList(queryList)),\n startWith(getOriginalArrayFromQueryList(queryList)),\n );\n}\n","import {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {OperatorFunction} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nexport function mustBePresent<T>(): OperatorFunction<T | undefined | null, T> {\n return map(value => {\n if (!isPresent(value)) {\n throw new Error('Value must present');\n }\n\n return value;\n });\n}\n","import {Observable} from 'rxjs';\nimport {filter, mapTo, startWith, switchMapTo, take} from 'rxjs/operators';\n\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport interface TuiPressedObservableOptions {\n onlyTrusted: boolean;\n}\n\nexport function pressedObservable(\n element: Element,\n {onlyTrusted}: TuiPressedObservableOptions = {onlyTrusted: true},\n): Observable<boolean> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new Error('element does not have ownerDocument');\n }\n\n return typedFromEvent(element, 'mousedown').pipe(\n filter(({isTrusted}) => isTrusted || !onlyTrusted),\n switchMapTo(\n mouseDragFinishFrom(ownerDocument).pipe(\n mapTo(false),\n take(1),\n startWith(true),\n ),\n ),\n );\n}\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\nexport function preventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(e => {\n e.preventDefault();\n });\n}\n","import {AbstractControl, AbstractControlDirective} from '@angular/forms';\nimport {Observable} from 'rxjs';\nimport {startWith} from 'rxjs/operators';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n */\nexport function tuiReplayedValueChangesFrom<T>(\n control: AbstractControl | AbstractControlDirective,\n): Observable<T> {\n return new Observable(subscriber => {\n if (!control.valueChanges) {\n throw new Error('Control does not have valueChanges');\n }\n\n control.valueChanges.pipe(startWith(control.value)).subscribe(subscriber);\n });\n}\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\nexport function stopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(e => {\n e.stopPropagation();\n });\n}\n","import {ChangeDetectorRef} from '@angular/core';\nimport {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\nexport function watch<T>(\n changeDetectorRef: ChangeDetectorRef,\n): MonoTypeOperatorFunction<T> {\n return tap(() => {\n changeDetectorRef.markForCheck();\n });\n}\n","import {NgZone} from '@angular/core';\nimport {MonoTypeOperatorFunction, Observable, pipe} from 'rxjs';\n\nexport function tuiZonefull<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n source.subscribe({\n next: value => ngZone.run(() => subscriber.next(value)),\n error: error => ngZone.run(() => subscriber.error(error)),\n complete: () => ngZone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n ngZone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(ngZone), tuiZonefull(ngZone));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n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