@taiga-ui/cdk 2.55.0 → 2.58.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 (668) hide show
  1. package/bundles/taiga-ui-cdk-abstract.umd.js +12 -12
  2. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-cdk-classes.umd.js +1 -1
  5. package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
  6. package/bundles/taiga-ui-cdk-classes.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-coercion.umd.js +1 -1
  8. package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-coercion.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +1 -1
  11. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  12. package/bundles/taiga-ui-cdk-components-alert-host.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +4 -4
  14. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +4 -4
  17. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
  18. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js +1 -1
  19. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-cdk-components-portal-host.umd.js +1 -1
  21. package/bundles/taiga-ui-cdk-components-portal-host.umd.js.map +1 -1
  22. package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-constants.umd.js +25 -15
  24. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-constants.umd.min.js +1 -1
  26. package/bundles/taiga-ui-cdk-constants.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-date-time.umd.js +35 -35
  28. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-date-time.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-cdk-decorators.umd.js +1 -1
  31. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  32. package/bundles/taiga-ui-cdk-decorators.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
  34. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +15 -15
  37. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  38. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +7 -7
  40. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
  41. package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js +1 -1
  42. package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-cdk-directives-checked.umd.js +6 -6
  44. package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-directives-checked.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +3 -3
  47. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
  48. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-cdk-directives-drag.umd.js +4 -4
  50. package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-directives-drag.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -5
  53. package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
  54. package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-cdk-directives-element.umd.js +2 -2
  56. package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
  57. package/bundles/taiga-ui-cdk-directives-element.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +5 -5
  59. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
  60. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +2 -2
  62. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
  63. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-cdk-directives-focusable.umd.js +3 -3
  65. package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
  66. package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-cdk-directives-focused.umd.js +2 -2
  68. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  69. package/bundles/taiga-ui-cdk-directives-focused.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +1 -1
  71. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  72. package/bundles/taiga-ui-cdk-directives-for-async.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-cdk-directives-for.umd.js +1 -1
  74. package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
  75. package/bundles/taiga-ui-cdk-directives-for.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +1 -1
  77. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
  78. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +4 -4
  80. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  81. package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-cdk-directives-input-mode.umd.js +10 -10
  83. package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +1 -1
  84. package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-cdk-directives-item.umd.js +1 -1
  86. package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
  87. package/bundles/taiga-ui-cdk-directives-item.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-cdk-directives-let.umd.js +1 -1
  89. package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
  90. package/bundles/taiga-ui-cdk-directives-let.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-cdk-directives-media.umd.js +12 -12
  92. package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
  93. package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-cdk-directives-obscured.umd.js +1 -1
  95. package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
  96. package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js.map +1 -1
  97. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +11 -11
  98. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  99. package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-cdk-directives-pan.umd.js +2 -2
  101. package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
  102. package/bundles/taiga-ui-cdk-directives-pan.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-cdk-directives-portal.umd.js +1 -1
  104. package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
  105. package/bundles/taiga-ui-cdk-directives-portal.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-cdk-directives-pressed.umd.js +1 -1
  107. package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
  108. package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
  110. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  111. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js.map +1 -1
  112. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +1 -1
  113. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
  114. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-cdk-directives-resize.umd.js +2 -2
  116. package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
  117. package/bundles/taiga-ui-cdk-directives-resize.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-cdk-directives-swipe.umd.js +2 -2
  119. package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
  120. package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-cdk-directives-validator.umd.js +1 -1
  122. package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
  123. package/bundles/taiga-ui-cdk-directives-validator.umd.min.js.map +1 -1
  124. package/bundles/taiga-ui-cdk-directives-zoom.umd.js +3 -3
  125. package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
  126. package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
  128. package/bundles/taiga-ui-cdk-enums.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-cdk-exceptions.umd.js +10 -10
  130. package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
  131. package/bundles/taiga-ui-cdk-exceptions.umd.min.js.map +1 -1
  132. package/bundles/taiga-ui-cdk-observables.umd.js +7 -7
  133. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  134. package/bundles/taiga-ui-cdk-observables.umd.min.js.map +1 -1
  135. package/bundles/taiga-ui-cdk-pipes-filter.umd.js +1 -1
  136. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  137. package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +1 -1
  139. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  140. package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js.map +1 -1
  141. package/bundles/taiga-ui-cdk-services.umd.js +27 -27
  142. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  143. package/bundles/taiga-ui-cdk-services.umd.min.js.map +1 -1
  144. package/bundles/taiga-ui-cdk-tokens.umd.js +31 -31
  145. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  146. package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
  147. package/bundles/taiga-ui-cdk-utils-browser.umd.js +5 -5
  148. package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
  149. package/bundles/taiga-ui-cdk-utils-browser.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-cdk-utils-dom.umd.js +17 -11
  151. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  152. package/bundles/taiga-ui-cdk-utils-dom.umd.min.js +1 -1
  153. package/bundles/taiga-ui-cdk-utils-dom.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-cdk-utils-focus.umd.js +19 -19
  155. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  156. package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-cdk-utils-format.umd.js +2 -2
  158. package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
  159. package/bundles/taiga-ui-cdk-utils-format.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-cdk-utils-math.umd.js +4 -4
  161. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  162. package/bundles/taiga-ui-cdk-utils-math.umd.min.js.map +1 -1
  163. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +4 -4
  164. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  165. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-cdk-utils-os.umd.js +1 -1
  167. package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
  168. package/bundles/taiga-ui-cdk-utils-os.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-cdk-utils-svg.umd.js +1 -1
  170. package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
  171. package/bundles/taiga-ui-cdk-utils-svg.umd.min.js.map +1 -1
  172. package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.metadata.json +1 -1
  173. package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
  174. package/constants/unicode-chars.d.ts +8 -0
  175. package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
  176. package/directives/autofilled/taiga-ui-cdk-directives-autofilled.metadata.json +1 -1
  177. package/esm2015/abstract/control.js +4 -4
  178. package/esm2015/abstract/interactive.js +8 -8
  179. package/esm2015/abstract/portal-host.js +2 -2
  180. package/esm2015/abstract/theme-switcher.js +2 -2
  181. package/esm2015/classes/assert.js +2 -2
  182. package/esm2015/coercion/coerce-boolean-property.js +2 -2
  183. package/esm2015/components/alert-host/alert-host.component.js +2 -2
  184. package/esm2015/components/dialog-host/dialog-host.component.js +5 -5
  185. package/esm2015/components/dropdown-host/dropdown-host.component.js +5 -5
  186. package/esm2015/components/portal-host/portal.service.js +2 -2
  187. package/esm2015/constants/parent-animation.js +5 -5
  188. package/esm2015/constants/svg-node-filter.js +2 -2
  189. package/esm2015/constants/unicode-chars.js +19 -11
  190. package/esm2015/date-time/date-fillers.js +3 -3
  191. package/esm2015/date-time/date-format.js +3 -3
  192. package/esm2015/date-time/date-separator.js +3 -3
  193. package/esm2015/date-time/day-range.js +7 -7
  194. package/esm2015/date-time/day.js +14 -14
  195. package/esm2015/date-time/month.js +2 -2
  196. package/esm2015/date-time/time.js +7 -7
  197. package/esm2015/date-time/year.js +2 -2
  198. package/esm2015/decorators/pure.js +2 -2
  199. package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
  200. package/esm2015/directives/auto-focus/autofocus.directive.js +2 -2
  201. package/esm2015/directives/auto-focus/autofocus.options.js +2 -2
  202. package/esm2015/directives/auto-focus/handlers/abstract.handler.js +2 -2
  203. package/esm2015/directives/auto-focus/handlers/default.handler.js +2 -2
  204. package/esm2015/directives/auto-focus/handlers/ios.handler.js +12 -12
  205. package/esm2015/directives/autofilled/autofilled-style.component.js +3 -3
  206. package/esm2015/directives/autofilled/autofilled.directive.js +6 -6
  207. package/esm2015/directives/checked/checked.directive.js +7 -7
  208. package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
  209. package/esm2015/directives/drag/drag.directive.js +5 -5
  210. package/esm2015/directives/droppable/droppable.directive.js +5 -5
  211. package/esm2015/directives/element/element.directive.js +3 -3
  212. package/esm2015/directives/focus-trap/focus-trap.directive.js +6 -6
  213. package/esm2015/directives/focus-visible/focus-visible.directive.js +3 -3
  214. package/esm2015/directives/focusable/focusable.directive.js +4 -4
  215. package/esm2015/directives/focused/focused.directive.js +3 -3
  216. package/esm2015/directives/for/for.directive.js +2 -2
  217. package/esm2015/directives/for-async/for-async.directive.js +2 -2
  218. package/esm2015/directives/high-dpi/high-dpi.directive.js +2 -2
  219. package/esm2015/directives/hovered/hovered.directive.js +5 -5
  220. package/esm2015/directives/input-mode/input-mode.directive.js +11 -11
  221. package/esm2015/directives/item/item.directive.js +2 -2
  222. package/esm2015/directives/let/let.directive.js +2 -2
  223. package/esm2015/directives/media/media.directive.js +13 -13
  224. package/esm2015/directives/obscured/obscured.directive.js +2 -2
  225. package/esm2015/directives/overscroll/overscroll.directive.js +12 -12
  226. package/esm2015/directives/pan/pan.directive.js +3 -3
  227. package/esm2015/directives/portal/portal.directive.js +2 -2
  228. package/esm2015/directives/pressed/pressed.directive.js +2 -2
  229. package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
  230. package/esm2015/directives/repeat-times/repeat-times.directive.js +2 -2
  231. package/esm2015/directives/resize/resize.directive.js +3 -3
  232. package/esm2015/directives/swipe/swipe.directive.js +3 -3
  233. package/esm2015/directives/validator/validator.directive.js +2 -2
  234. package/esm2015/directives/zoom/zoom.directive.js +4 -4
  235. package/esm2015/enums/autocomplete.js +1 -1
  236. package/esm2015/enums/input-mode.js +1 -1
  237. package/esm2015/enums/input-type.js +1 -1
  238. package/esm2015/enums/overscroll-mode.js +1 -1
  239. package/esm2015/exceptions/computed-document.exception.js +2 -2
  240. package/esm2015/exceptions/document-selection.exception.js +2 -2
  241. package/esm2015/exceptions/no-host.exception.js +2 -2
  242. package/esm2015/exceptions/owner-document.exception.js +2 -2
  243. package/esm2015/exceptions/pure.exception.js +2 -2
  244. package/esm2015/exceptions/table-sort-key.exception.js +2 -2
  245. package/esm2015/exceptions/ts-parser.exception.js +2 -2
  246. package/esm2015/exceptions/value-changes.exception.js +2 -2
  247. package/esm2015/exceptions/value-present.exception.js +2 -2
  248. package/esm2015/exceptions/xml-parsing.exception.js +2 -2
  249. package/esm2015/observables/drag-and-drop-from.js +2 -2
  250. package/esm2015/observables/focus-visible-observable.js +5 -5
  251. package/esm2015/observables/mouse-drag-finish-from.js +2 -2
  252. package/esm2015/observables/pressed-observable.js +2 -2
  253. package/esm2015/pipes/filter/filter.pipe.js +2 -2
  254. package/esm2015/pipes/mapper/mapper.pipe.js +2 -2
  255. package/esm2015/services/directive-styles.service.js +5 -5
  256. package/esm2015/services/hovered.service.js +4 -4
  257. package/esm2015/services/id.service.js +3 -3
  258. package/esm2015/services/obscured.service.js +2 -2
  259. package/esm2015/services/pan.service.js +5 -5
  260. package/esm2015/services/parents-scroll.service.js +2 -2
  261. package/esm2015/services/scroll.service.js +5 -5
  262. package/esm2015/services/static-request.service.js +3 -3
  263. package/esm2015/services/swipe.service.js +2 -2
  264. package/esm2015/services/zoom.service.js +3 -3
  265. package/esm2015/tokens/active-element.js +9 -9
  266. package/esm2015/tokens/alerts.js +2 -2
  267. package/esm2015/tokens/default-renderer.js +2 -2
  268. package/esm2015/tokens/dialogs.js +2 -2
  269. package/esm2015/tokens/focusable-item-accessor.js +2 -2
  270. package/esm2015/tokens/is-android.js +2 -2
  271. package/esm2015/tokens/is-apple.js +2 -2
  272. package/esm2015/tokens/is-chromium.js +2 -2
  273. package/esm2015/tokens/is-cypress.js +2 -2
  274. package/esm2015/tokens/is-firefox.js +3 -3
  275. package/esm2015/tokens/is-ios.js +2 -2
  276. package/esm2015/tokens/is-mobile.js +2 -2
  277. package/esm2015/tokens/is-webkit.js +2 -2
  278. package/esm2015/tokens/removed-element.js +2 -2
  279. package/esm2015/tokens/sanitizer.js +2 -2
  280. package/esm2015/tokens/swipe-options.js +2 -2
  281. package/esm2015/tokens/take-only-trusted-events.js +2 -2
  282. package/esm2015/tokens/touch-supported.js +3 -3
  283. package/esm2015/tokens/window-height.js +3 -3
  284. package/esm2015/tokens/zoom-options.js +2 -2
  285. package/esm2015/utils/browser/is-edge-older-than.js +2 -2
  286. package/esm2015/utils/browser/is-edge.js +2 -2
  287. package/esm2015/utils/browser/is-firefox.js +2 -2
  288. package/esm2015/utils/browser/is-ie.js +2 -2
  289. package/esm2015/utils/browser/is-safari.js +2 -2
  290. package/esm2015/utils/dom/custom-event.js +3 -3
  291. package/esm2015/utils/dom/get-actual-target.js +2 -2
  292. package/esm2015/utils/dom/get-clipboard-data-text.js +4 -4
  293. package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -2
  294. package/esm2015/utils/dom/get-element-offset.js +2 -2
  295. package/esm2015/utils/dom/index.js +2 -1
  296. package/esm2015/utils/dom/is-element.js +5 -0
  297. package/esm2015/utils/dom/is-form-field.js +4 -4
  298. package/esm2015/utils/focus/is-native-keyboard-focusable.js +14 -14
  299. package/esm2015/utils/focus/is-native-mouse-focusable.js +3 -3
  300. package/esm2015/utils/focus/set-native-mouse-focused.js +5 -5
  301. package/esm2015/utils/format/pad-start.js +2 -2
  302. package/esm2015/utils/format/px.js +2 -2
  303. package/esm2015/utils/math/round.js +5 -5
  304. package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
  305. package/esm2015/utils/miscellaneous/get-swipe-direction.js +3 -3
  306. package/esm2015/utils/miscellaneous/is-number.js +2 -2
  307. package/esm2015/utils/os/is-apple-platform.js +2 -2
  308. package/esm2015/utils/svg/svg-linear-gradient-processor.js +2 -2
  309. package/esm5/abstract/control.js +4 -4
  310. package/esm5/abstract/interactive.js +8 -8
  311. package/esm5/abstract/portal-host.js +2 -2
  312. package/esm5/abstract/theme-switcher.js +2 -2
  313. package/esm5/classes/assert.js +2 -2
  314. package/esm5/coercion/coerce-boolean-property.js +2 -2
  315. package/esm5/components/alert-host/alert-host.component.js +2 -2
  316. package/esm5/components/dialog-host/dialog-host.component.js +5 -5
  317. package/esm5/components/dropdown-host/dropdown-host.component.js +5 -5
  318. package/esm5/components/portal-host/portal.service.js +2 -2
  319. package/esm5/constants/parent-animation.js +5 -5
  320. package/esm5/constants/svg-node-filter.js +2 -2
  321. package/esm5/constants/unicode-chars.js +19 -11
  322. package/esm5/date-time/date-fillers.js +3 -3
  323. package/esm5/date-time/date-format.js +3 -3
  324. package/esm5/date-time/date-separator.js +3 -3
  325. package/esm5/date-time/day-range.js +8 -8
  326. package/esm5/date-time/day.js +15 -15
  327. package/esm5/date-time/month.js +2 -2
  328. package/esm5/date-time/time.js +7 -7
  329. package/esm5/date-time/year.js +2 -2
  330. package/esm5/decorators/pure.js +2 -2
  331. package/esm5/directives/active-zone/active-zone.directive.js +4 -4
  332. package/esm5/directives/auto-focus/autofocus.directive.js +2 -2
  333. package/esm5/directives/auto-focus/autofocus.options.js +2 -2
  334. package/esm5/directives/auto-focus/handlers/abstract.handler.js +2 -2
  335. package/esm5/directives/auto-focus/handlers/default.handler.js +2 -2
  336. package/esm5/directives/auto-focus/handlers/ios.handler.js +12 -12
  337. package/esm5/directives/autofilled/autofilled-style.component.js +3 -3
  338. package/esm5/directives/autofilled/autofilled.directive.js +6 -6
  339. package/esm5/directives/checked/checked.directive.js +7 -7
  340. package/esm5/directives/copy-processor/copy-processor.directive.js +4 -4
  341. package/esm5/directives/drag/drag.directive.js +5 -5
  342. package/esm5/directives/droppable/droppable.directive.js +6 -6
  343. package/esm5/directives/element/element.directive.js +3 -3
  344. package/esm5/directives/focus-trap/focus-trap.directive.js +6 -6
  345. package/esm5/directives/focus-visible/focus-visible.directive.js +3 -3
  346. package/esm5/directives/focusable/focusable.directive.js +4 -4
  347. package/esm5/directives/focused/focused.directive.js +3 -3
  348. package/esm5/directives/for/for.directive.js +2 -2
  349. package/esm5/directives/for-async/for-async.directive.js +2 -2
  350. package/esm5/directives/high-dpi/high-dpi.directive.js +2 -2
  351. package/esm5/directives/hovered/hovered.directive.js +5 -5
  352. package/esm5/directives/input-mode/input-mode.directive.js +11 -11
  353. package/esm5/directives/item/item.directive.js +2 -2
  354. package/esm5/directives/let/let.directive.js +2 -2
  355. package/esm5/directives/media/media.directive.js +13 -13
  356. package/esm5/directives/obscured/obscured.directive.js +2 -2
  357. package/esm5/directives/overscroll/overscroll.directive.js +12 -12
  358. package/esm5/directives/pan/pan.directive.js +3 -3
  359. package/esm5/directives/portal/portal.directive.js +2 -2
  360. package/esm5/directives/pressed/pressed.directive.js +2 -2
  361. package/esm5/directives/prevent-default/prevent-default.directive.js +4 -4
  362. package/esm5/directives/repeat-times/repeat-times.directive.js +2 -2
  363. package/esm5/directives/resize/resize.directive.js +3 -3
  364. package/esm5/directives/swipe/swipe.directive.js +3 -3
  365. package/esm5/directives/validator/validator.directive.js +2 -2
  366. package/esm5/directives/zoom/zoom.directive.js +4 -4
  367. package/esm5/enums/autocomplete.js +1 -1
  368. package/esm5/enums/input-mode.js +1 -1
  369. package/esm5/enums/input-type.js +1 -1
  370. package/esm5/enums/overscroll-mode.js +1 -1
  371. package/esm5/exceptions/computed-document.exception.js +2 -2
  372. package/esm5/exceptions/document-selection.exception.js +2 -2
  373. package/esm5/exceptions/no-host.exception.js +2 -2
  374. package/esm5/exceptions/owner-document.exception.js +2 -2
  375. package/esm5/exceptions/pure.exception.js +2 -2
  376. package/esm5/exceptions/table-sort-key.exception.js +2 -2
  377. package/esm5/exceptions/ts-parser.exception.js +2 -2
  378. package/esm5/exceptions/value-changes.exception.js +2 -2
  379. package/esm5/exceptions/value-present.exception.js +2 -2
  380. package/esm5/exceptions/xml-parsing.exception.js +2 -2
  381. package/esm5/observables/drag-and-drop-from.js +2 -2
  382. package/esm5/observables/focus-visible-observable.js +5 -5
  383. package/esm5/observables/mouse-drag-finish-from.js +2 -2
  384. package/esm5/observables/pressed-observable.js +2 -2
  385. package/esm5/pipes/filter/filter.pipe.js +2 -2
  386. package/esm5/pipes/mapper/mapper.pipe.js +2 -2
  387. package/esm5/services/directive-styles.service.js +5 -5
  388. package/esm5/services/hovered.service.js +5 -5
  389. package/esm5/services/id.service.js +3 -3
  390. package/esm5/services/obscured.service.js +2 -2
  391. package/esm5/services/pan.service.js +5 -5
  392. package/esm5/services/parents-scroll.service.js +2 -2
  393. package/esm5/services/scroll.service.js +5 -5
  394. package/esm5/services/static-request.service.js +3 -3
  395. package/esm5/services/swipe.service.js +2 -2
  396. package/esm5/services/zoom.service.js +5 -5
  397. package/esm5/tokens/active-element.js +10 -10
  398. package/esm5/tokens/alerts.js +2 -2
  399. package/esm5/tokens/default-renderer.js +2 -2
  400. package/esm5/tokens/dialogs.js +2 -2
  401. package/esm5/tokens/focusable-item-accessor.js +2 -2
  402. package/esm5/tokens/is-android.js +2 -2
  403. package/esm5/tokens/is-apple.js +2 -2
  404. package/esm5/tokens/is-chromium.js +2 -2
  405. package/esm5/tokens/is-cypress.js +2 -2
  406. package/esm5/tokens/is-firefox.js +3 -3
  407. package/esm5/tokens/is-ios.js +2 -2
  408. package/esm5/tokens/is-mobile.js +2 -2
  409. package/esm5/tokens/is-webkit.js +2 -2
  410. package/esm5/tokens/removed-element.js +2 -2
  411. package/esm5/tokens/sanitizer.js +2 -2
  412. package/esm5/tokens/swipe-options.js +2 -2
  413. package/esm5/tokens/take-only-trusted-events.js +2 -2
  414. package/esm5/tokens/touch-supported.js +3 -3
  415. package/esm5/tokens/window-height.js +3 -3
  416. package/esm5/tokens/zoom-options.js +2 -2
  417. package/esm5/utils/browser/is-edge-older-than.js +2 -2
  418. package/esm5/utils/browser/is-edge.js +2 -2
  419. package/esm5/utils/browser/is-firefox.js +2 -2
  420. package/esm5/utils/browser/is-ie.js +2 -2
  421. package/esm5/utils/browser/is-safari.js +2 -2
  422. package/esm5/utils/dom/custom-event.js +3 -3
  423. package/esm5/utils/dom/get-actual-target.js +2 -2
  424. package/esm5/utils/dom/get-clipboard-data-text.js +4 -4
  425. package/esm5/utils/dom/get-document-or-shadow-root.js +2 -2
  426. package/esm5/utils/dom/get-element-offset.js +2 -2
  427. package/esm5/utils/dom/index.js +2 -1
  428. package/esm5/utils/dom/is-element.js +5 -0
  429. package/esm5/utils/dom/is-form-field.js +4 -4
  430. package/esm5/utils/focus/is-native-keyboard-focusable.js +14 -14
  431. package/esm5/utils/focus/is-native-mouse-focusable.js +3 -3
  432. package/esm5/utils/focus/set-native-mouse-focused.js +5 -5
  433. package/esm5/utils/format/pad-start.js +2 -2
  434. package/esm5/utils/format/px.js +2 -2
  435. package/esm5/utils/math/round.js +5 -5
  436. package/esm5/utils/miscellaneous/ease-in-out-quad.js +2 -2
  437. package/esm5/utils/miscellaneous/get-swipe-direction.js +3 -3
  438. package/esm5/utils/miscellaneous/is-number.js +2 -2
  439. package/esm5/utils/os/is-apple-platform.js +2 -2
  440. package/esm5/utils/svg/svg-linear-gradient-processor.js +2 -2
  441. package/fesm2015/taiga-ui-cdk-abstract.js +12 -12
  442. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  443. package/fesm2015/taiga-ui-cdk-classes.js +1 -1
  444. package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
  445. package/fesm2015/taiga-ui-cdk-coercion.js +1 -1
  446. package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
  447. package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
  448. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  449. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +4 -4
  450. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  451. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +4 -4
  452. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  453. package/fesm2015/taiga-ui-cdk-components-portal-host.js +1 -1
  454. package/fesm2015/taiga-ui-cdk-components-portal-host.js.map +1 -1
  455. package/fesm2015/taiga-ui-cdk-constants.js +24 -16
  456. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  457. package/fesm2015/taiga-ui-cdk-date-time.js +33 -33
  458. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  459. package/fesm2015/taiga-ui-cdk-decorators.js +1 -1
  460. package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
  461. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
  462. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  463. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +15 -15
  464. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  465. package/fesm2015/taiga-ui-cdk-directives-autofilled.js +7 -7
  466. package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  467. package/fesm2015/taiga-ui-cdk-directives-checked.js +6 -6
  468. package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
  469. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
  470. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  471. package/fesm2015/taiga-ui-cdk-directives-drag.js +4 -4
  472. package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
  473. package/fesm2015/taiga-ui-cdk-directives-droppable.js +4 -4
  474. package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
  475. package/fesm2015/taiga-ui-cdk-directives-element.js +2 -2
  476. package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
  477. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +5 -5
  478. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  479. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +2 -2
  480. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  481. package/fesm2015/taiga-ui-cdk-directives-focusable.js +3 -3
  482. package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
  483. package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
  484. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  485. package/fesm2015/taiga-ui-cdk-directives-for-async.js +1 -1
  486. package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
  487. package/fesm2015/taiga-ui-cdk-directives-for.js +1 -1
  488. package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
  489. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +1 -1
  490. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  491. package/fesm2015/taiga-ui-cdk-directives-hovered.js +4 -4
  492. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  493. package/fesm2015/taiga-ui-cdk-directives-input-mode.js +10 -10
  494. package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  495. package/fesm2015/taiga-ui-cdk-directives-item.js +1 -1
  496. package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
  497. package/fesm2015/taiga-ui-cdk-directives-let.js +1 -1
  498. package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
  499. package/fesm2015/taiga-ui-cdk-directives-media.js +12 -12
  500. package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
  501. package/fesm2015/taiga-ui-cdk-directives-obscured.js +1 -1
  502. package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
  503. package/fesm2015/taiga-ui-cdk-directives-overscroll.js +11 -11
  504. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  505. package/fesm2015/taiga-ui-cdk-directives-pan.js +2 -2
  506. package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
  507. package/fesm2015/taiga-ui-cdk-directives-portal.js +1 -1
  508. package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
  509. package/fesm2015/taiga-ui-cdk-directives-pressed.js +1 -1
  510. package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
  511. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
  512. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  513. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +1 -1
  514. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  515. package/fesm2015/taiga-ui-cdk-directives-resize.js +2 -2
  516. package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
  517. package/fesm2015/taiga-ui-cdk-directives-swipe.js +2 -2
  518. package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
  519. package/fesm2015/taiga-ui-cdk-directives-validator.js +1 -1
  520. package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
  521. package/fesm2015/taiga-ui-cdk-directives-zoom.js +3 -3
  522. package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
  523. package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
  524. package/fesm2015/taiga-ui-cdk-exceptions.js +10 -10
  525. package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
  526. package/fesm2015/taiga-ui-cdk-observables.js +7 -7
  527. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  528. package/fesm2015/taiga-ui-cdk-pipes-filter.js +1 -1
  529. package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
  530. package/fesm2015/taiga-ui-cdk-pipes-mapper.js +1 -1
  531. package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  532. package/fesm2015/taiga-ui-cdk-services.js +24 -24
  533. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  534. package/fesm2015/taiga-ui-cdk-tokens.js +30 -30
  535. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  536. package/fesm2015/taiga-ui-cdk-utils-browser.js +5 -5
  537. package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
  538. package/fesm2015/taiga-ui-cdk-utils-dom.js +17 -12
  539. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  540. package/fesm2015/taiga-ui-cdk-utils-focus.js +19 -19
  541. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  542. package/fesm2015/taiga-ui-cdk-utils-format.js +2 -2
  543. package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
  544. package/fesm2015/taiga-ui-cdk-utils-math.js +4 -4
  545. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  546. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +4 -4
  547. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  548. package/fesm2015/taiga-ui-cdk-utils-os.js +1 -1
  549. package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
  550. package/fesm2015/taiga-ui-cdk-utils-svg.js +1 -1
  551. package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
  552. package/fesm5/taiga-ui-cdk-abstract.js +12 -12
  553. package/fesm5/taiga-ui-cdk-abstract.js.map +1 -1
  554. package/fesm5/taiga-ui-cdk-classes.js +1 -1
  555. package/fesm5/taiga-ui-cdk-classes.js.map +1 -1
  556. package/fesm5/taiga-ui-cdk-coercion.js +1 -1
  557. package/fesm5/taiga-ui-cdk-coercion.js.map +1 -1
  558. package/fesm5/taiga-ui-cdk-components-alert-host.js +1 -1
  559. package/fesm5/taiga-ui-cdk-components-alert-host.js.map +1 -1
  560. package/fesm5/taiga-ui-cdk-components-dialog-host.js +4 -4
  561. package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  562. package/fesm5/taiga-ui-cdk-components-dropdown-host.js +4 -4
  563. package/fesm5/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  564. package/fesm5/taiga-ui-cdk-components-portal-host.js +1 -1
  565. package/fesm5/taiga-ui-cdk-components-portal-host.js.map +1 -1
  566. package/fesm5/taiga-ui-cdk-constants.js +24 -16
  567. package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
  568. package/fesm5/taiga-ui-cdk-date-time.js +35 -35
  569. package/fesm5/taiga-ui-cdk-date-time.js.map +1 -1
  570. package/fesm5/taiga-ui-cdk-decorators.js +1 -1
  571. package/fesm5/taiga-ui-cdk-decorators.js.map +1 -1
  572. package/fesm5/taiga-ui-cdk-directives-active-zone.js +3 -3
  573. package/fesm5/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  574. package/fesm5/taiga-ui-cdk-directives-auto-focus.js +15 -15
  575. package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  576. package/fesm5/taiga-ui-cdk-directives-autofilled.js +7 -7
  577. package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  578. package/fesm5/taiga-ui-cdk-directives-checked.js +6 -6
  579. package/fesm5/taiga-ui-cdk-directives-checked.js.map +1 -1
  580. package/fesm5/taiga-ui-cdk-directives-copy-processor.js +3 -3
  581. package/fesm5/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  582. package/fesm5/taiga-ui-cdk-directives-drag.js +4 -4
  583. package/fesm5/taiga-ui-cdk-directives-drag.js.map +1 -1
  584. package/fesm5/taiga-ui-cdk-directives-droppable.js +5 -5
  585. package/fesm5/taiga-ui-cdk-directives-droppable.js.map +1 -1
  586. package/fesm5/taiga-ui-cdk-directives-element.js +2 -2
  587. package/fesm5/taiga-ui-cdk-directives-element.js.map +1 -1
  588. package/fesm5/taiga-ui-cdk-directives-focus-trap.js +5 -5
  589. package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  590. package/fesm5/taiga-ui-cdk-directives-focus-visible.js +2 -2
  591. package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  592. package/fesm5/taiga-ui-cdk-directives-focusable.js +3 -3
  593. package/fesm5/taiga-ui-cdk-directives-focusable.js.map +1 -1
  594. package/fesm5/taiga-ui-cdk-directives-focused.js +2 -2
  595. package/fesm5/taiga-ui-cdk-directives-focused.js.map +1 -1
  596. package/fesm5/taiga-ui-cdk-directives-for-async.js +1 -1
  597. package/fesm5/taiga-ui-cdk-directives-for-async.js.map +1 -1
  598. package/fesm5/taiga-ui-cdk-directives-for.js +1 -1
  599. package/fesm5/taiga-ui-cdk-directives-for.js.map +1 -1
  600. package/fesm5/taiga-ui-cdk-directives-high-dpi.js +1 -1
  601. package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  602. package/fesm5/taiga-ui-cdk-directives-hovered.js +4 -4
  603. package/fesm5/taiga-ui-cdk-directives-hovered.js.map +1 -1
  604. package/fesm5/taiga-ui-cdk-directives-input-mode.js +10 -10
  605. package/fesm5/taiga-ui-cdk-directives-input-mode.js.map +1 -1
  606. package/fesm5/taiga-ui-cdk-directives-item.js +1 -1
  607. package/fesm5/taiga-ui-cdk-directives-item.js.map +1 -1
  608. package/fesm5/taiga-ui-cdk-directives-let.js +1 -1
  609. package/fesm5/taiga-ui-cdk-directives-let.js.map +1 -1
  610. package/fesm5/taiga-ui-cdk-directives-media.js +12 -12
  611. package/fesm5/taiga-ui-cdk-directives-media.js.map +1 -1
  612. package/fesm5/taiga-ui-cdk-directives-obscured.js +1 -1
  613. package/fesm5/taiga-ui-cdk-directives-obscured.js.map +1 -1
  614. package/fesm5/taiga-ui-cdk-directives-overscroll.js +11 -11
  615. package/fesm5/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  616. package/fesm5/taiga-ui-cdk-directives-pan.js +2 -2
  617. package/fesm5/taiga-ui-cdk-directives-pan.js.map +1 -1
  618. package/fesm5/taiga-ui-cdk-directives-portal.js +1 -1
  619. package/fesm5/taiga-ui-cdk-directives-portal.js.map +1 -1
  620. package/fesm5/taiga-ui-cdk-directives-pressed.js +1 -1
  621. package/fesm5/taiga-ui-cdk-directives-pressed.js.map +1 -1
  622. package/fesm5/taiga-ui-cdk-directives-prevent-default.js +3 -3
  623. package/fesm5/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  624. package/fesm5/taiga-ui-cdk-directives-repeat-times.js +1 -1
  625. package/fesm5/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  626. package/fesm5/taiga-ui-cdk-directives-resize.js +2 -2
  627. package/fesm5/taiga-ui-cdk-directives-resize.js.map +1 -1
  628. package/fesm5/taiga-ui-cdk-directives-swipe.js +2 -2
  629. package/fesm5/taiga-ui-cdk-directives-swipe.js.map +1 -1
  630. package/fesm5/taiga-ui-cdk-directives-validator.js +1 -1
  631. package/fesm5/taiga-ui-cdk-directives-validator.js.map +1 -1
  632. package/fesm5/taiga-ui-cdk-directives-zoom.js +3 -3
  633. package/fesm5/taiga-ui-cdk-directives-zoom.js.map +1 -1
  634. package/fesm5/taiga-ui-cdk-enums.js.map +1 -1
  635. package/fesm5/taiga-ui-cdk-exceptions.js +10 -10
  636. package/fesm5/taiga-ui-cdk-exceptions.js.map +1 -1
  637. package/fesm5/taiga-ui-cdk-observables.js +7 -7
  638. package/fesm5/taiga-ui-cdk-observables.js.map +1 -1
  639. package/fesm5/taiga-ui-cdk-pipes-filter.js +1 -1
  640. package/fesm5/taiga-ui-cdk-pipes-filter.js.map +1 -1
  641. package/fesm5/taiga-ui-cdk-pipes-mapper.js +1 -1
  642. package/fesm5/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  643. package/fesm5/taiga-ui-cdk-services.js +27 -27
  644. package/fesm5/taiga-ui-cdk-services.js.map +1 -1
  645. package/fesm5/taiga-ui-cdk-tokens.js +31 -31
  646. package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
  647. package/fesm5/taiga-ui-cdk-utils-browser.js +5 -5
  648. package/fesm5/taiga-ui-cdk-utils-browser.js.map +1 -1
  649. package/fesm5/taiga-ui-cdk-utils-dom.js +17 -12
  650. package/fesm5/taiga-ui-cdk-utils-dom.js.map +1 -1
  651. package/fesm5/taiga-ui-cdk-utils-focus.js +19 -19
  652. package/fesm5/taiga-ui-cdk-utils-focus.js.map +1 -1
  653. package/fesm5/taiga-ui-cdk-utils-format.js +2 -2
  654. package/fesm5/taiga-ui-cdk-utils-format.js.map +1 -1
  655. package/fesm5/taiga-ui-cdk-utils-math.js +4 -4
  656. package/fesm5/taiga-ui-cdk-utils-math.js.map +1 -1
  657. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +4 -4
  658. package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  659. package/fesm5/taiga-ui-cdk-utils-os.js +1 -1
  660. package/fesm5/taiga-ui-cdk-utils-os.js.map +1 -1
  661. package/fesm5/taiga-ui-cdk-utils-svg.js +1 -1
  662. package/fesm5/taiga-ui-cdk-utils-svg.js.map +1 -1
  663. package/package.json +1 -1
  664. package/schematics/ng-update/constants/templates.d.ts +4 -0
  665. package/schematics/ng-update/constants/templates.js +5 -0
  666. package/utils/dom/index.d.ts +1 -0
  667. package/utils/dom/is-element.d.ts +1 -0
  668. package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focus-trap.js","sources":["ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.directive.ts","ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.module.ts","ng://@taiga-ui/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Renderer2,\n} from '@angular/core';\nimport {containsOrAfter} from '@taiga-ui/cdk/utils/dom';\nimport {\n blurNativeFocused,\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n// @dynamic\n@Directive({\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n },\n})\nexport class TuiFocusTrapDirective implements OnDestroy {\n private readonly activeElement = getNativeFocused(this.documentRef);\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n Promise.resolve().then(() => {\n setNativeFocused(this.elementRef.nativeElement);\n });\n }\n\n @HostListener('blur')\n onBlur(): void {\n this.renderer.removeAttribute(this.elementRef.nativeElement, 'tabIndex');\n }\n\n @HostListener('window:focusin.silent', ['$event.target'])\n onFocusIn(node: Node): void {\n if (containsOrAfter(this.elementRef.nativeElement, node)) {\n return;\n }\n\n const focusable = getClosestFocusable(\n this.elementRef.nativeElement,\n false,\n this.elementRef.nativeElement,\n );\n\n if (focusable) {\n setNativeFocused(focusable);\n }\n }\n\n ngOnDestroy(): void {\n blurNativeFocused(this.documentRef);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n // TODO: iframe warning\n if (this.activeElement instanceof HTMLElement) {\n setNativeFocused(this.activeElement);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusTrapDirective} from './focus-trap.directive';\n\n@NgModule({\n declarations: [TuiFocusTrapDirective],\n exports: [TuiFocusTrapDirective],\n})\nexport class TuiFocusTrapModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAiBA;IAOa,qBAAqB,GAAlC,MAAa,qBAAqB;IAG9B,YACuC,WAAqB,EAEvC,UAAmC,EAChB,QAAmB;QAHpB,gBAAW,GAAX,WAAW,CAAU;QAEvC,eAAU,GAAV,UAAU,CAAyB;QAChB,aAAQ,GAAR,QAAQ,CAAW;QAN1C,kBAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;;;;;;;QAchE,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;YACnB,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACnD,CAAC,CAAC;KACN;IAGD,MAAM;QACF,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;KAC5E;IAGD,SAAS,CAAC,IAAU;QAChB,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,IAAI,CAAC,EAAE;YACtD,OAAO;SACV;QAED,MAAM,SAAS,GAAG,mBAAmB,CACjC,IAAI,CAAC,UAAU,CAAC,aAAa,EAC7B,KAAK,EACL,IAAI,CAAC,UAAU,CAAC,aAAa,CAChC,CAAC;QAEF,IAAI,SAAS,EAAE;YACX,gBAAgB,CAAC,SAAS,CAAC,CAAC;SAC/B;KACJ;IAED,WAAW;QACP,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;;;;;;;;QASpC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;;YAEnB,IAAI,IAAI,CAAC,aAAa,YAAY,WAAW,EAAE;gBAC3C,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACxC;SACJ,CAAC,CAAC;KACN;EACJ;;YAvDuD,QAAQ,uBAAvD,MAAM,SAAC,QAAQ;YAEa,UAAU,uBADtC,MAAM,SAAC,UAAU;YAE4B,SAAS,uBAAtD,MAAM,SAAC,SAAS;;AAcrB;IADC,YAAY,CAAC,MAAM,CAAC;mDAGpB;AAGD;IADC,YAAY,CAAC,uBAAuB,EAAE,CAAC,eAAe,CAAC,CAAC;sDAexD;AAxCQ,qBAAqB;IANjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE;YACF,QAAQ,EAAE,GAAG;SAChB;KACJ,CAAC;IAKO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAPb,qBAAqB,CA2DjC;;IC3EY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focus-trap.js","sources":["ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.directive.ts","ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.module.ts","ng://@taiga-ui/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Renderer2,\n} from '@angular/core';\nimport {containsOrAfter} from '@taiga-ui/cdk/utils/dom';\nimport {\n blurNativeFocused,\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n// @dynamic\n@Directive({\n selector: `[tuiFocusTrap]`,\n host: {\n tabIndex: `0`,\n },\n})\nexport class TuiFocusTrapDirective implements OnDestroy {\n private readonly activeElement = getNativeFocused(this.documentRef);\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n Promise.resolve().then(() => {\n setNativeFocused(this.elementRef.nativeElement);\n });\n }\n\n @HostListener(`blur`)\n onBlur(): void {\n this.renderer.removeAttribute(this.elementRef.nativeElement, `tabIndex`);\n }\n\n @HostListener(`window:focusin.silent`, [`$event.target`])\n onFocusIn(node: Node): void {\n if (containsOrAfter(this.elementRef.nativeElement, node)) {\n return;\n }\n\n const focusable = getClosestFocusable(\n this.elementRef.nativeElement,\n false,\n this.elementRef.nativeElement,\n );\n\n if (focusable) {\n setNativeFocused(focusable);\n }\n }\n\n ngOnDestroy(): void {\n blurNativeFocused(this.documentRef);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n // TODO: iframe warning\n if (this.activeElement instanceof HTMLElement) {\n setNativeFocused(this.activeElement);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusTrapDirective} from './focus-trap.directive';\n\n@NgModule({\n declarations: [TuiFocusTrapDirective],\n exports: [TuiFocusTrapDirective],\n})\nexport class TuiFocusTrapModule {}\n","/**\n * Generated bundle index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BAAtD,MAAM,SAAC,SAAS;;AAcrB;IADC,YAAY,CAAC,MAAM,CAAC;mDAGpB;AAGD;IADC,YAAY,CAAC,uBAAuB,EAAE,CAAC,eAAe,CAAC,CAAC;sDAexD;AAxCQ,qBAAqB;IANjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE;YACF,QAAQ,EAAE,GAAG;SAChB;KACJ,CAAC;IAKO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAPb,qBAAqB,CA2DjC;;IC3EY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -19,8 +19,8 @@ TuiFocusVisibleDirective.ctorParameters = () => [
19
19
  ];
20
20
  TuiFocusVisibleDirective = __decorate([
21
21
  Directive({
22
- selector: '[tuiFocusVisibleChange]',
23
- outputs: ['tuiFocusVisibleChange'],
22
+ selector: `[tuiFocusVisibleChange]`,
23
+ outputs: [`tuiFocusVisibleChange`],
24
24
  providers: [TuiDestroyService, TuiFocusVisibleService],
25
25
  }),
26
26
  __param(0, Inject(TuiFocusVisibleService))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focus-visible.js","sources":["ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.directive.ts","ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.module.ts","ng://@taiga-ui/cdk/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n/**\n * Directive to imitate :focus-visible\n * (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)\n * in browsers that do not support it\n * @dynamic\n */\n@Directive({\n selector: '[tuiFocusVisibleChange]',\n outputs: ['tuiFocusVisibleChange'],\n providers: [TuiDestroyService, TuiFocusVisibleService],\n})\nexport class TuiFocusVisibleDirective {\n constructor(\n @Inject(TuiFocusVisibleService)\n readonly tuiFocusVisibleChange: Observable<boolean>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusVisibleDirective} from './focus-visible.directive';\n\n@NgModule({\n declarations: [TuiFocusVisibleDirective],\n exports: [TuiFocusVisibleDirective],\n})\nexport class TuiFocusVisibleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;;;IAWa,wBAAwB,GAArC,MAAa,wBAAwB;IACjC,YAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;EACP;;YAFuC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;AAFzB,wBAAwB;IALpC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;KACzD,CAAC;IAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAF1B,wBAAwB,CAKpC;;ICZY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focus-visible.js","sources":["ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.directive.ts","ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.module.ts","ng://@taiga-ui/cdk/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n/**\n * Directive to imitate :focus-visible\n * (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)\n * in browsers that do not support it\n * @dynamic\n */\n@Directive({\n selector: `[tuiFocusVisibleChange]`,\n outputs: [`tuiFocusVisibleChange`],\n providers: [TuiDestroyService, TuiFocusVisibleService],\n})\nexport class TuiFocusVisibleDirective {\n constructor(\n @Inject(TuiFocusVisibleService)\n readonly tuiFocusVisibleChange: Observable<boolean>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusVisibleDirective} from './focus-visible.directive';\n\n@NgModule({\n declarations: [TuiFocusVisibleDirective],\n exports: [TuiFocusVisibleDirective],\n})\nexport class TuiFocusVisibleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;;;IAWa,wBAAwB,GAArC,MAAa,wBAAwB;IACjC,YAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;EACP;;YAFuC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;AAFzB,wBAAwB;IALpC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;KACzD,CAAC;IAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAF1B,wBAAwB,CAKpC;;ICZY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
@@ -16,14 +16,14 @@ let TuiFocusableDirective = class TuiFocusableDirective {
16
16
  }
17
17
  };
18
18
  __decorate([
19
- Input('tuiFocusable')
19
+ Input(`tuiFocusable`)
20
20
  ], TuiFocusableDirective.prototype, "focusable", void 0);
21
21
  __decorate([
22
- HostBinding('tabIndex')
22
+ HostBinding(`tabIndex`)
23
23
  ], TuiFocusableDirective.prototype, "tabIndex", null);
24
24
  TuiFocusableDirective = __decorate([
25
25
  Directive({
26
- selector: '[tuiFocusable]',
26
+ selector: `[tuiFocusable]`,
27
27
  })
28
28
  ], TuiFocusableDirective);
29
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focusable.js","sources":["ng://@taiga-ui/cdk/directives/focusable/focusable.directive.ts","ng://@taiga-ui/cdk/directives/focusable/focusable.module.ts","ng://@taiga-ui/cdk/directives/focusable/taiga-ui-cdk-directives-focusable.ts"],"sourcesContent":["import {Directive, HostBinding, Input} from '@angular/core';\n\n/**\n * Abstraction over `tabindex`\n */\n@Directive({\n selector: '[tuiFocusable]',\n})\nexport class TuiFocusableDirective {\n /**\n * Element can be focused with keyboard\n */\n @Input('tuiFocusable')\n focusable = true;\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusableDirective} from './focusable.directive';\n\n@NgModule({\n declarations: [TuiFocusableDirective],\n exports: [TuiFocusableDirective],\n})\nexport class TuiFocusableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAAlC;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAClC;EACJ;AANG;IADC,KAAK,CAAC,cAAc,CAAC;wDACL;AAGjB;IADC,WAAW,CAAC,UAAU,CAAC;qDAGvB;AAVQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;KAC7B,CAAC;GACW,qBAAqB,CAWjC;;ICXY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focusable.js","sources":["ng://@taiga-ui/cdk/directives/focusable/focusable.directive.ts","ng://@taiga-ui/cdk/directives/focusable/focusable.module.ts","ng://@taiga-ui/cdk/directives/focusable/taiga-ui-cdk-directives-focusable.ts"],"sourcesContent":["import {Directive, HostBinding, Input} from '@angular/core';\n\n/**\n * Abstraction over `tabindex`\n */\n@Directive({\n selector: `[tuiFocusable]`,\n})\nexport class TuiFocusableDirective {\n /**\n * Element can be focused with keyboard\n */\n @Input(`tuiFocusable`)\n focusable = true;\n\n @HostBinding(`tabIndex`)\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusableDirective} from './focusable.directive';\n\n@NgModule({\n declarations: [TuiFocusableDirective],\n exports: [TuiFocusableDirective],\n})\nexport class TuiFocusableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAAlC;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAClC;EACJ;AANG;IADC,KAAK,CAAC,cAAc,CAAC;wDACL;AAGjB;IADC,WAAW,CAAC,UAAU,CAAC;qDAGvB;AAVQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;KAC7B,CAAC;GACW,qBAAqB,CAWjC;;ICXY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -12,7 +12,7 @@ import { map, startWith, distinctUntilChanged, skip } from 'rxjs/operators';
12
12
  */
13
13
  let TuiFocusedDirective = class TuiFocusedDirective {
14
14
  constructor({ nativeElement }, ngZone) {
15
- this.tuiFocusedChange = merge(typedFromEvent(nativeElement, 'focusin'), typedFromEvent(nativeElement, 'focusout')).pipe(map(() => isNativeFocused(nativeElement)), startWith(false), distinctUntilChanged(), skip(1), tuiZoneOptimized(ngZone));
15
+ this.tuiFocusedChange = merge(typedFromEvent(nativeElement, `focusin`), typedFromEvent(nativeElement, `focusout`)).pipe(map(() => isNativeFocused(nativeElement)), startWith(false), distinctUntilChanged(), skip(1), tuiZoneOptimized(ngZone));
16
16
  }
17
17
  };
18
18
  TuiFocusedDirective.ctorParameters = () => [
@@ -24,7 +24,7 @@ __decorate([
24
24
  ], TuiFocusedDirective.prototype, "tuiFocusedChange", void 0);
25
25
  TuiFocusedDirective = __decorate([
26
26
  Directive({
27
- selector: '[tuiFocusedChange]',
27
+ selector: `[tuiFocusedChange]`,
28
28
  }),
29
29
  __param(0, Inject(ElementRef)),
30
30
  __param(1, Inject(NgZone))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focused.js","sources":["ng://@taiga-ui/cdk/directives/focused/focused.directive.ts","ng://@taiga-ui/cdk/directives/focused/focused.module.ts","ng://@taiga-ui/cdk/directives/focused/taiga-ui-cdk-directives-focused.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n/**\n * Directive to monitor focus/blur status, works with focusIn/focus-out\n * instead of focus/blur to sync events order with Internet Explorer and\n * other focus related directives that require bubbling\n */\n@Directive({\n selector: '[tuiFocusedChange]',\n})\nexport class TuiFocusedDirective {\n @Output()\n readonly tuiFocusedChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef)\n {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n ) {\n this.tuiFocusedChange = merge(\n typedFromEvent(nativeElement, 'focusin'),\n typedFromEvent(nativeElement, 'focusout'),\n ).pipe(\n map(() => isNativeFocused(nativeElement)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(ngZone),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusedDirective} from './focused.directive';\n\n@NgModule({\n declarations: [TuiFocusedDirective],\n exports: [TuiFocusedDirective],\n})\nexport class TuiFocusedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;IAQa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YAEI,EAAC,aAAa,EAA0B,EACxB,MAAc;QAE9B,IAAI,CAAC,gBAAgB,GAAG,KAAK,CACzB,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,EACxC,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC,CAC5C,CAAC,IAAI,CACF,GAAG,CAAC,MAAM,eAAe,CAAC,aAAa,CAAC,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;EACJ;;YAdwB,UAAU,uBAD1B,MAAM,SAAC,UAAU;YAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;AALlB;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GAPV,mBAAmB,CAoB/B;;IC1BY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focused.js","sources":["ng://@taiga-ui/cdk/directives/focused/focused.directive.ts","ng://@taiga-ui/cdk/directives/focused/focused.module.ts","ng://@taiga-ui/cdk/directives/focused/taiga-ui-cdk-directives-focused.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n/**\n * Directive to monitor focus/blur status, works with focusIn/focus-out\n * instead of focus/blur to sync events order with Internet Explorer and\n * other focus related directives that require bubbling\n */\n@Directive({\n selector: `[tuiFocusedChange]`,\n})\nexport class TuiFocusedDirective {\n @Output()\n readonly tuiFocusedChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef)\n {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n ) {\n this.tuiFocusedChange = merge(\n typedFromEvent(nativeElement, `focusin`),\n typedFromEvent(nativeElement, `focusout`),\n ).pipe(\n map(() => isNativeFocused(nativeElement)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(ngZone),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusedDirective} from './focused.directive';\n\n@NgModule({\n declarations: [TuiFocusedDirective],\n exports: [TuiFocusedDirective],\n})\nexport class TuiFocusedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;IAQa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YAEI,EAAC,aAAa,EAA0B,EACxB,MAAc;QAE9B,IAAI,CAAC,gBAAgB,GAAG,KAAK,CACzB,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,EACxC,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC,CAC5C,CAAC,IAAI,CACF,GAAG,CAAC,MAAM,eAAe,CAAC,aAAa,CAAC,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;EACJ;;YAdwB,UAAU,uBAD1B,MAAM,SAAC,UAAU;YAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;AALlB;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GAPV,mBAAmB,CAoB/B;;IC1BY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
@@ -41,7 +41,7 @@ __decorate([
41
41
  Input()
42
42
  ], TuiForAsyncDirective.prototype, "tuiForAsyncTimeout", void 0);
43
43
  TuiForAsyncDirective = __decorate([
44
- Directive({ selector: '[tuiForAsync][tuiForAsyncOf]' }),
44
+ Directive({ selector: `[tuiForAsync][tuiForAsyncOf]` }),
45
45
  __param(0, Inject(ViewContainerRef)),
46
46
  __param(1, Inject(TemplateRef))
47
47
  ], TuiForAsyncDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-for-async.js","sources":["ng://@taiga-ui/cdk/directives/for-async/for-async.directive.ts","ng://@taiga-ui/cdk/directives/for-async/for-async.module.ts","ng://@taiga-ui/cdk/directives/for-async/taiga-ui-cdk-directives-for-async.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport {from, of, Subject} from 'rxjs';\nimport {concatMap, delay, takeUntil} from 'rxjs/operators';\n\n@Directive({selector: '[tuiForAsync][tuiForAsyncOf]'})\nexport class TuiForAsyncDirective<T> implements OnChanges, OnDestroy {\n private readonly destroy$ = new Subject<void>();\n\n @Input()\n tuiForAsyncOf: readonly T[] | undefined | null;\n\n @Input()\n tuiForAsyncTimeout = 10;\n\n constructor(\n @Inject(ViewContainerRef) private readonly view: ViewContainerRef,\n @Inject(TemplateRef) private readonly template: TemplateRef<unknown>,\n ) {}\n\n ngOnChanges(): void {\n this.clearViewForOldNodes();\n this.createAsyncViewForNewNodes();\n }\n\n ngOnDestroy(): void {\n this.clearViewForOldNodes();\n this.destroy$.complete();\n }\n\n private createAsyncViewForNewNodes(): void {\n from((this.tuiForAsyncOf || []).entries())\n .pipe(\n concatMap(entry => of(entry).pipe(delay(this.tuiForAsyncTimeout))),\n takeUntil(this.destroy$),\n )\n .subscribe(([index, item]) =>\n this.view\n .createEmbeddedView(this.template, {$implicit: item, index}, index)\n .detectChanges(),\n );\n }\n\n private clearViewForOldNodes(): void {\n this.destroy$.next();\n this.view.clear();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForAsyncDirective} from './for-async.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiForAsyncDirective],\n exports: [TuiForAsyncDirective],\n})\nexport class TuiForAsyncModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAaa,oBAAoB,GAAjC,MAAa,oBAAoB;IAS7B,YAC+C,IAAsB,EAC3B,QAA8B;QADzB,SAAI,GAAJ,IAAI,CAAkB;QAC3B,aAAQ,GAAR,QAAQ,CAAsB;QAVvD,aAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;QAMhD,uBAAkB,GAAG,EAAE,CAAC;KAKpB;IAEJ,WAAW;QACP,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,0BAA0B,EAAE,CAAC;KACrC;IAED,WAAW;QACP,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC5B;IAEO,0BAA0B;QAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC;aACrC,IAAI,CACD,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAClE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAC3B;aACA,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,KACrB,IAAI,CAAC,IAAI;aACJ,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAC,EAAE,KAAK,CAAC;aAClE,aAAa,EAAE,CACvB,CAAC;KACT;IAEO,oBAAoB;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;KACrB;EACJ;;YA/BwD,gBAAgB,uBAAhE,MAAM,SAAC,gBAAgB;YACwB,WAAW,uBAA1D,MAAM,SAAC,WAAW;;AAPvB;IADC,KAAK,EAAE;2DACuC;AAG/C;IADC,KAAK,EAAE;gEACgB;AAPf,oBAAoB;IADhC,SAAS,CAAC,EAAC,QAAQ,EAAE,8BAA8B,EAAC,CAAC;IAW7C,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAXf,oBAAoB,CAyChC;;AClDD;;;IAOa,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACXjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-for-async.js","sources":["ng://@taiga-ui/cdk/directives/for-async/for-async.directive.ts","ng://@taiga-ui/cdk/directives/for-async/for-async.module.ts","ng://@taiga-ui/cdk/directives/for-async/taiga-ui-cdk-directives-for-async.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport {from, of, Subject} from 'rxjs';\nimport {concatMap, delay, takeUntil} from 'rxjs/operators';\n\n@Directive({selector: `[tuiForAsync][tuiForAsyncOf]`})\nexport class TuiForAsyncDirective<T> implements OnChanges, OnDestroy {\n private readonly destroy$ = new Subject<void>();\n\n @Input()\n tuiForAsyncOf: readonly T[] | undefined | null;\n\n @Input()\n tuiForAsyncTimeout = 10;\n\n constructor(\n @Inject(ViewContainerRef) private readonly view: ViewContainerRef,\n @Inject(TemplateRef) private readonly template: TemplateRef<unknown>,\n ) {}\n\n ngOnChanges(): void {\n this.clearViewForOldNodes();\n this.createAsyncViewForNewNodes();\n }\n\n ngOnDestroy(): void {\n this.clearViewForOldNodes();\n this.destroy$.complete();\n }\n\n private createAsyncViewForNewNodes(): void {\n from((this.tuiForAsyncOf || []).entries())\n .pipe(\n concatMap(entry => of(entry).pipe(delay(this.tuiForAsyncTimeout))),\n takeUntil(this.destroy$),\n )\n .subscribe(([index, item]) =>\n this.view\n .createEmbeddedView(this.template, {$implicit: item, index}, index)\n .detectChanges(),\n );\n }\n\n private clearViewForOldNodes(): void {\n this.destroy$.next();\n this.view.clear();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForAsyncDirective} from './for-async.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiForAsyncDirective],\n exports: [TuiForAsyncDirective],\n})\nexport class TuiForAsyncModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAaa,oBAAoB,GAAjC,MAAa,oBAAoB;IAS7B,YAC+C,IAAsB,EAC3B,QAA8B;QADzB,SAAI,GAAJ,IAAI,CAAkB;QAC3B,aAAQ,GAAR,QAAQ,CAAsB;QAVvD,aAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;QAMhD,uBAAkB,GAAG,EAAE,CAAC;KAKpB;IAEJ,WAAW;QACP,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,0BAA0B,EAAE,CAAC;KACrC;IAED,WAAW;QACP,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC5B;IAEO,0BAA0B;QAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC;aACrC,IAAI,CACD,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAClE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAC3B;aACA,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,KACrB,IAAI,CAAC,IAAI;aACJ,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAC,EAAE,KAAK,CAAC;aAClE,aAAa,EAAE,CACvB,CAAC;KACT;IAEO,oBAAoB;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;KACrB;EACJ;;YA/BwD,gBAAgB,uBAAhE,MAAM,SAAC,gBAAgB;YACwB,WAAW,uBAA1D,MAAM,SAAC,WAAW;;AAPvB;IADC,KAAK,EAAE;2DACuC;AAG/C;IADC,KAAK,EAAE;gEACgB;AAPf,oBAAoB;IADhC,SAAS,CAAC,EAAC,QAAQ,EAAE,8BAA8B,EAAC,CAAC;IAW7C,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAXf,oBAAoB,CAyChC;;AClDD;;;IAOa,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACXjC;;;;;;"}
@@ -31,7 +31,7 @@ __decorate([
31
31
  ], TuiForDirective.prototype, "ngForEmpty", void 0);
32
32
  TuiForDirective = __decorate([
33
33
  Directive({
34
- selector: '[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]',
34
+ selector: `[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]`,
35
35
  }),
36
36
  __param(0, Inject(ViewContainerRef))
37
37
  ], TuiForDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-for.js","sources":["ng://@taiga-ui/cdk/directives/for/for.directive.ts","ng://@taiga-ui/cdk/directives/for/for.module.ts","ng://@taiga-ui/cdk/directives/for/taiga-ui-cdk-directives-for.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnChanges,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector: '[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]',\n})\nexport class TuiForDirective<T, K = unknown> implements OnChanges {\n private ref?: EmbeddedViewRef<unknown>;\n\n @Input()\n ngForOf: T[] | readonly T[] | null = [];\n\n @Input()\n ngForElse?: TemplateRef<K>;\n\n @Input()\n ngForEmpty?: TemplateRef<K>;\n\n constructor(@Inject(ViewContainerRef) private readonly vcr: ViewContainerRef) {}\n\n ngOnChanges(): void {\n this.ref?.destroy();\n\n if (this.ngForOf?.length === 0 && this.ngForEmpty) {\n this.ref = this.vcr.createEmbeddedView(this.ngForEmpty);\n } else if (!this.ngForOf && this.ngForElse) {\n this.ref = this.vcr.createEmbeddedView(this.ngForElse);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForDirective} from './for.directive';\n\n@NgModule({\n declarations: [TuiForDirective],\n exports: [TuiForDirective],\n})\nexport class TuiForModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAaa,eAAe,GAA5B,MAAa,eAAe;IAYxB,YAAuD,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAR5E,YAAO,GAA8B,EAAE,CAAC;KAQwC;IAEhF,WAAW;;QACP,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,GAAG;QAEpB,IAAI,OAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,MAAK,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE;YAC/C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC3D;aAAM,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;YACxC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1D;KACJ;EACJ;;YAX+D,gBAAgB,uBAA/D,MAAM,SAAC,gBAAgB;;AARpC;IADC,KAAK,EAAE;gDACgC;AAGxC;IADC,KAAK,EAAE;kDACmB;AAG3B;IADC,KAAK,EAAE;mDACoB;AAVnB,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,0DAA0D;KACvE,CAAC;IAae,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAZ5B,eAAe,CAuB3B;;IC5BY,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACR5B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-for.js","sources":["ng://@taiga-ui/cdk/directives/for/for.directive.ts","ng://@taiga-ui/cdk/directives/for/for.module.ts","ng://@taiga-ui/cdk/directives/for/taiga-ui-cdk-directives-for.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnChanges,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector: `[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]`,\n})\nexport class TuiForDirective<T, K = unknown> implements OnChanges {\n private ref?: EmbeddedViewRef<unknown>;\n\n @Input()\n ngForOf: T[] | readonly T[] | null = [];\n\n @Input()\n ngForElse?: TemplateRef<K>;\n\n @Input()\n ngForEmpty?: TemplateRef<K>;\n\n constructor(@Inject(ViewContainerRef) private readonly vcr: ViewContainerRef) {}\n\n ngOnChanges(): void {\n this.ref?.destroy();\n\n if (this.ngForOf?.length === 0 && this.ngForEmpty) {\n this.ref = this.vcr.createEmbeddedView(this.ngForEmpty);\n } else if (!this.ngForOf && this.ngForElse) {\n this.ref = this.vcr.createEmbeddedView(this.ngForElse);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForDirective} from './for.directive';\n\n@NgModule({\n declarations: [TuiForDirective],\n exports: [TuiForDirective],\n})\nexport class TuiForModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAaa,eAAe,GAA5B,MAAa,eAAe;IAYxB,YAAuD,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAR5E,YAAO,GAA8B,EAAE,CAAC;KAQwC;IAEhF,WAAW;;QACP,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,GAAG;QAEpB,IAAI,OAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,MAAK,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE;YAC/C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC3D;aAAM,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;YACxC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1D;KACJ;EACJ;;YAX+D,gBAAgB,uBAA/D,MAAM,SAAC,gBAAgB;;AARpC;IADC,KAAK,EAAE;gDACgC;AAGxC;IADC,KAAK,EAAE;kDACmB;AAG3B;IADC,KAAK,EAAE;mDACoB;AAVnB,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,0DAA0D;KACvE,CAAC;IAae,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAZ5B,eAAe,CAuB3B;;IC5BY,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACR5B;;;;;;"}
@@ -20,7 +20,7 @@ TuiHighDpiDirective.ctorParameters = () => [
20
20
  ];
21
21
  TuiHighDpiDirective = __decorate([
22
22
  Directive({
23
- selector: '[tuiHighDpi]',
23
+ selector: `[tuiHighDpi]`,
24
24
  }),
25
25
  __param(0, Inject(WINDOW)),
26
26
  __param(1, Inject(ViewContainerRef)),
@@ -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<Record<string, 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;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YACoB,EAAC,gBAAgB,EAAS,EAChB,aAA+B,EACpC,WAAiD;QAEtE,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;EACJ;;YAR2C,MAAM,uBAAzC,MAAM,SAAC,MAAM;YAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJd,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,cAAc;KAC3B,CAAC;IAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAJf,mBAAmB,CAU/B;;ICZY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-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<Record<string, 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;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YACoB,EAAC,gBAAgB,EAAS,EAChB,aAA+B,EACpC,WAAiD;QAEtE,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;EACJ;;YAR2C,MAAM,uBAAzC,MAAM,SAAC,MAAM;YAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJd,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,cAAc;KAC3B,CAAC;IAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAJf,mBAAmB,CAU/B;;ICZY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
@@ -27,16 +27,16 @@ __decorate([
27
27
  Output()
28
28
  ], TuiHoveredDirective.prototype, "tuiHoveredChange", void 0);
29
29
  __decorate([
30
- HostListener('mouseenter')
30
+ HostListener(`mouseenter`)
31
31
  ], TuiHoveredDirective.prototype, "onHover", null);
32
32
  __decorate([
33
33
  shouldCall(movedOut),
34
- HostListener('mouseout.init', ['$event']),
35
- HostListener('mouseout.silent', ['$event'])
34
+ HostListener(`mouseout.init`, [`$event`]),
35
+ HostListener(`mouseout.silent`, [`$event`])
36
36
  ], TuiHoveredDirective.prototype, "onOut", null);
37
37
  TuiHoveredDirective = __decorate([
38
38
  Directive({
39
- selector: '[tuiHoveredChange]',
39
+ selector: `[tuiHoveredChange]`,
40
40
  })
41
41
  ], TuiHoveredDirective);
42
42
 
@@ -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, EventEmitter, HostListener, Output} from '@angular/core';\nimport {tuiAssertIsHTMLElement} from '@taiga-ui/cdk/classes';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n if (!relatedTarget) {\n return true;\n }\n\n tuiAssertIsHTMLElement(currentTarget);\n tuiAssertIsHTMLElement(relatedTarget);\n\n return !currentTarget.contains(relatedTarget);\n}\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange = new EventEmitter<boolean>();\n\n @HostListener('mouseenter')\n onHover(): void {\n this.tuiHoveredChange.emit(true);\n }\n\n @shouldCall(movedOut)\n @HostListener('mouseout.init', ['$event'])\n @HostListener('mouseout.silent', ['$event'])\n onOut(_: MouseEvent): void {\n this.tuiHoveredChange.emit(false);\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":";;;;;AAIA;SACgB,QAAQ,CAAC,EAAC,aAAa,EAAE,aAAa,EAAa;IAC/D,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IAED,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACtC,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAEtC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAClD,CAAC;IAKY,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAEa,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;KAa3D;IAVG,OAAO;QACH,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpC;IAKD,KAAK,CAAC,CAAa;QACf,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACrC;EACJ;AAbG;IADC,MAAM,EAAE;6DAC+C;AAGxD;IADC,YAAY,CAAC,YAAY,CAAC;kDAG1B;AAKD;IAHC,UAAU,CAAC,QAAQ,CAAC;IACpB,YAAY,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;gDAG3C;AAdQ,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;GACW,mBAAmB,CAe/B;;IC1BY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-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, EventEmitter, HostListener, Output} from '@angular/core';\nimport {tuiAssertIsHTMLElement} from '@taiga-ui/cdk/classes';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n if (!relatedTarget) {\n return true;\n }\n\n tuiAssertIsHTMLElement(currentTarget);\n tuiAssertIsHTMLElement(relatedTarget);\n\n return !currentTarget.contains(relatedTarget);\n}\n\n@Directive({\n selector: `[tuiHoveredChange]`,\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange = new EventEmitter<boolean>();\n\n @HostListener(`mouseenter`)\n onHover(): void {\n this.tuiHoveredChange.emit(true);\n }\n\n @shouldCall(movedOut)\n @HostListener(`mouseout.init`, [`$event`])\n @HostListener(`mouseout.silent`, [`$event`])\n onOut(_: MouseEvent): void {\n this.tuiHoveredChange.emit(false);\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":";;;;;AAIA;SACgB,QAAQ,CAAC,EAAC,aAAa,EAAE,aAAa,EAAa;IAC/D,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IAED,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACtC,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAEtC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAClD,CAAC;IAKY,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAEa,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;KAa3D;IAVG,OAAO;QACH,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpC;IAKD,KAAK,CAAC,CAAa;QACf,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACrC;EACJ;AAbG;IADC,MAAM,EAAE;6DAC+C;AAGxD;IADC,YAAY,CAAC,YAAY,CAAC;kDAG1B;AAKD;IAHC,UAAU,CAAC,QAAQ,CAAC;IACpB,YAAY,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;gDAG3C;AAdQ,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;GACW,mBAAmB,CAe/B;;IC1BY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
@@ -9,31 +9,31 @@ let TuiInputModeDirective = class TuiInputModeDirective {
9
9
  constructor(pattern, isIOS) {
10
10
  this.pattern = pattern;
11
11
  this.isIOS = isIOS;
12
- this.mode = 'text';
12
+ this.mode = `text`;
13
13
  }
14
14
  get patternAttribute() {
15
- return this.mode === 'numeric' && this.isIOS && !this.pattern
16
- ? '[0-9]*'
15
+ return this.mode === `numeric` && this.isIOS && !this.pattern
16
+ ? `[0-9]*`
17
17
  : this.pattern;
18
18
  }
19
19
  };
20
20
  TuiInputModeDirective.ctorParameters = () => [
21
- { type: String, decorators: [{ type: Attribute, args: ['pattern',] }] },
21
+ { type: String, decorators: [{ type: Attribute, args: [`pattern`,] }] },
22
22
  { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] }
23
23
  ];
24
24
  __decorate([
25
- Input('tuiInputMode'),
26
- HostBinding('attr.inputmode'),
27
- HostBinding('attr.x-inputmode')
25
+ Input(`tuiInputMode`),
26
+ HostBinding(`attr.inputmode`),
27
+ HostBinding(`attr.x-inputmode`)
28
28
  ], TuiInputModeDirective.prototype, "mode", void 0);
29
29
  __decorate([
30
- HostBinding('attr.pattern')
30
+ HostBinding(`attr.pattern`)
31
31
  ], TuiInputModeDirective.prototype, "patternAttribute", null);
32
32
  TuiInputModeDirective = __decorate([
33
33
  Directive({
34
- selector: 'input[tuiInputMode]',
34
+ selector: `input[tuiInputMode]`,
35
35
  }),
36
- __param(0, Attribute('pattern')),
36
+ __param(0, Attribute(`pattern`)),
37
37
  __param(1, Inject(TUI_IS_IOS))
38
38
  ], TuiInputModeDirective);
39
39
 
@@ -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';\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;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAM9B,YAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;cACvD,QAAQ;cACR,IAAI,CAAC,OAAO,CAAC;KACtB;EACJ;;yCAVQ,SAAS,SAAC,SAAS;0CACnB,MAAM,SAAC,UAAU;;AAJtB;IAHC,KAAK,CAAC,cAAc,CAAC;IACrB,WAAW,CAAC,gBAAgB,CAAC;IAC7B,WAAW,CAAC,kBAAkB,CAAC;mDACH;AAQ7B;IADC,WAAW,CAAC,cAAc,CAAC;6DAK3B;AAhBQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;KAClC,CAAC;IAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GARd,qBAAqB,CAiBjC;;ICnBY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-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;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAM9B,YAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;cACvD,QAAQ;cACR,IAAI,CAAC,OAAO,CAAC;KACtB;EACJ;;yCAVQ,SAAS,SAAC,SAAS;0CACnB,MAAM,SAAC,UAAU;;AAJtB;IAHC,KAAK,CAAC,cAAc,CAAC;IACrB,WAAW,CAAC,gBAAgB,CAAC;IAC7B,WAAW,CAAC,kBAAkB,CAAC;mDACH;AAQ7B;IADC,WAAW,CAAC,cAAc,CAAC;6DAK3B;AAhBQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;KAClC,CAAC;IAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GARd,qBAAqB,CAiBjC;;ICnBY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
@@ -9,7 +9,7 @@ let TuiItemDirective = class TuiItemDirective {
9
9
  };
10
10
  TuiItemDirective = __decorate([
11
11
  Directive({
12
- selector: 'ng-template[tuiItem]',
12
+ selector: `ng-template[tuiItem]`,
13
13
  })
14
14
  ], TuiItemDirective);
15
15
 
@@ -1 +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: 3.0 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,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAH5B,SAAS,CAAC;QACP,QAAQ,EAAE,sBAAsB;KACnC,CAAC;GACW,gBAAgB,CAAG;;ICDnB,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACR7B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-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: 3.0 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,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAH5B,SAAS,CAAC;QACP,QAAQ,EAAE,sBAAsB;KACnC,CAAC;GACW,gBAAgB,CAAG;;ICDnB,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACR7B;;;;;;"}
@@ -43,7 +43,7 @@ __decorate([
43
43
  ], TuiLetDirective.prototype, "tuiLet", void 0);
44
44
  TuiLetDirective = __decorate([
45
45
  Directive({
46
- selector: '[tuiLet]',
46
+ selector: `[tuiLet]`,
47
47
  }),
48
48
  __param(0, Inject(ViewContainerRef)),
49
49
  __param(1, Inject(TemplateRef))
@@ -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';\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: unknown,\n ): _ctx is TuiLetDirective<Exclude<T, null | undefined>> {\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;;;MAGa,aAAa;IACtB,YAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;;;ACZL;;;;IAOa,eAAe,GAA5B,MAAa,eAAe;IAIxB,YAC8B,aAA+B,EACpC,WAA0C;QAE/D,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,IAAI,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC;KAC7E;;;;;;;IAQD,OAAO,sBAAsB,CACzB,IAAwB,EACxB,IAAa;QAEb,OAAO,IAAI,CAAC;KACf;EACJ;;YAlBgD,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJvB;IADC,KAAK,EAAE;+CACG;AAFF,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;KACvB,CAAC;IAMO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GANf,eAAe,CAuB3B;;IC1BY,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACR5B;;;;;;"}
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: unknown,\n ): _ctx is TuiLetDirective<Exclude<T, null | undefined>> {\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;;;MAGa,aAAa;IACtB,YAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;;;ACZL;;;;IAOa,eAAe,GAA5B,MAAa,eAAe;IAIxB,YAC8B,aAA+B,EACpC,WAA0C;QAE/D,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,IAAI,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC;KAC7E;;;;;;;IAQD,OAAO,sBAAsB,CACzB,IAAwB,EACxB,IAAa;QAEb,OAAO,IAAI,CAAC;KACf;EACJ;;YAlBgD,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJvB;IADC,KAAK,EAAE;+CACG;AAFF,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;KACvB,CAAC;IAMO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GANf,eAAe,CAuB3B;;IC1BY,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACR5B;;;;;;"}
@@ -68,11 +68,11 @@ TuiMediaDirective.ctorParameters = () => [
68
68
  ];
69
69
  __decorate([
70
70
  Input(),
71
- HostBinding('volume'),
71
+ HostBinding(`volume`),
72
72
  tuiDefaultProp(volumeAssertion)
73
73
  ], TuiMediaDirective.prototype, "volume", void 0);
74
74
  __decorate([
75
- Input('playbackRate'),
75
+ Input(`playbackRate`),
76
76
  tuiRequiredSetter(nonNegativeFiniteAssertion)
77
77
  ], TuiMediaDirective.prototype, "playbackRateSetter", null);
78
78
  __decorate([
@@ -92,25 +92,25 @@ __decorate([
92
92
  Output()
93
93
  ], TuiMediaDirective.prototype, "volumeChange", void 0);
94
94
  __decorate([
95
- HostListener('ended', ['true']),
96
- HostListener('pause', ['true']),
97
- HostListener('play', ['false'])
95
+ HostListener(`ended`, [`true`]),
96
+ HostListener(`pause`, [`true`]),
97
+ HostListener(`play`, [`false`])
98
98
  ], TuiMediaDirective.prototype, "onPausedChange", null);
99
99
  __decorate([
100
- HostListener('volumechange')
100
+ HostListener(`volumechange`)
101
101
  ], TuiMediaDirective.prototype, "onVolumeChange", null);
102
102
  __decorate([
103
- HostListener('timeupdate'),
104
- HostListener('seeking'),
105
- HostListener('seeked')
103
+ HostListener(`timeupdate`),
104
+ HostListener(`seeking`),
105
+ HostListener(`seeked`)
106
106
  ], TuiMediaDirective.prototype, "onCurrentTimeChange", null);
107
107
  __decorate([
108
- HostListener('durationchange')
108
+ HostListener(`durationchange`)
109
109
  ], TuiMediaDirective.prototype, "changeDetectionTrigger", null);
110
110
  TuiMediaDirective = __decorate([
111
111
  Directive({
112
- selector: 'video[tuiMedia], audio[tuiMedia]',
113
- exportAs: 'tuiMedia',
112
+ selector: `video[tuiMedia], audio[tuiMedia]`,
113
+ exportAs: `tuiMedia`,
114
114
  }),
115
115
  __param(0, Inject(ElementRef))
116
116
  ], TuiMediaDirective);
@@ -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\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return isFinite(value) && value >= 0;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\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 // eslint-disable-next-line @typescript-eslint/no-floating-promises\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): void {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n @HostListener('volumechange')\n onVolumeChange(): void {\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(): void {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n @HostListener('durationchange')\n changeDetectionTrigger(): void {\n // @bad TODO: consider if other events need to trigger CD\n }\n\n private updatePlaybackRate(playbackRate: number): void {\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 TuiMediaMod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/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;uDAI/B;AAGD;IADC,YAAY,CAAC,cAAc,CAAC;uDAI5B;AAKD;IAHC,YAAY,CAAC,YAAY,CAAC;IAC1B,YAAY,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,QAAQ,CAAC;4DAGtB;AAGD;IADC,YAAY,CAAC,gBAAgB,CAAC;+DAG9B;AAhFQ,iBAAiB;IAJ7B,SAAS,CAAC;QACP,QAAQ,EAAE,kCAAkC;QAC5C,QAAQ,EAAE,UAAU;KACvB,CAAC;IA4CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GA3Cd,iBAAiB,CAsF7B;;ICxGY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAJ1B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACR9B;;;;;;"}
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\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return isFinite(value) && value >= 0;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\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 // eslint-disable-next-line @typescript-eslint/no-floating-promises\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): void {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n @HostListener(`volumechange`)\n onVolumeChange(): void {\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(): void {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n @HostListener(`durationchange`)\n changeDetectionTrigger(): void {\n // @bad TODO: consider if other events need to trigger CD\n }\n\n private updatePlaybackRate(playbackRate: number): void {\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":";;;;AAYA;SACgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzC,CAAC;AAED;SACgB,eAAe,CAAC,MAAc;IAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC;AAC1D,CAAC;IAMY,iBAAiB,GAA9B,MAAa,iBAAiB;IA0C1B,YAEqB,UAAwC;QAAxC,eAAU,GAAV,UAAU,CAA8B;QA3CrD,iBAAY,GAAG,CAAC,CAAC;QAKzB,WAAM,GAAG,CAAC,CAAC;QA4BF,sBAAiB,GAAG,IAAI,YAAY,EAAU,CAAC;QAG/C,iBAAY,GAAG,IAAI,YAAY,EAAW,CAAC;QAG3C,iBAAY,GAAG,IAAI,YAAY,EAAU,CAAC;KAK/C;IAnCJ,IAAI,kBAAkB,CAAC,YAAoB;QACvC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;KACzC;IAID,IAAI,WAAW,CAAC,WAAmB;QAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;YACjD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;SAC3D;KACJ;IAGD,IAAI,MAAM,CAAC,MAAe;QACtB,IAAI,MAAM,EAAE;YACR,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;SACzC;aAAM;;YAEH,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;YACrC,IAAI,CAAC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AAmBnD;IAHC,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;uDAI/B;AAGD;IADC,YAAY,CAAC,cAAc,CAAC;uDAI5B;AAKD;IAHC,YAAY,CAAC,YAAY,CAAC;IAC1B,YAAY,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,QAAQ,CAAC;4DAGtB;AAGD;IADC,YAAY,CAAC,gBAAgB,CAAC;+DAG9B;AAhFQ,iBAAiB;IAJ7B,SAAS,CAAC;QACP,QAAQ,EAAE,kCAAkC;QAC5C,QAAQ,EAAE,UAAU;KACvB,CAAC;IA4CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GA3Cd,iBAAiB,CAsF7B;;ICxGY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAJ1B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACR9B;;;;;;"}
@@ -35,7 +35,7 @@ __decorate([
35
35
  ], TuiObscuredDirective.prototype, "tuiObscured", void 0);
36
36
  TuiObscuredDirective = __decorate([
37
37
  Directive({
38
- selector: '[tuiObscured]',
38
+ selector: `[tuiObscured]`,
39
39
  providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],
40
40
  }),
41
41
  __param(0, Optional()),
@@ -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';\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;;;IAOa,oBAAoB,GAAjC,MAAa,oBAAoB;IAY7B,YAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC1B,GAAG,CACC,UAAU,IACN,CAAC,CAAC,UAAU;aACX,CAAC,UAAU;gBACR,CAAC,UAAU,CAAC,MAAM;gBAClB,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CACtE,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,SAAS,CAAC,OAAO,KAAK,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC,CACpD,CAAC;KACL;IA5BD,IAAI,kBAAkB,CAAC,OAAgB;QACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B;EA2BJ;;YAnBmB,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;YAInB,kBAAkB,uBAF5B,IAAI,YACJ,MAAM,SAAC,kBAAkB;;AAZ9B;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;8DAGnB;AAGD;IADC,MAAM,EAAE;yDACiC;AAVjC,oBAAoB;IAJhC,SAAS,CAAC;QACP,QAAQ,EAAE,eAAe;QACzB,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;KAC9E,CAAC;IAcO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GAjBtB,oBAAoB,CAkChC;;IC5CY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACRjC;;;;;;"}
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;;;IAOa,oBAAoB,GAAjC,MAAa,oBAAoB;IAY7B,YAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,MAAM,OAAO,G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 import { filter, takeUntil, switchMap, tap } from 'rxjs/operators';
12
12
  */
13
13
  let TuiOverscrollDirective = class TuiOverscrollDirective {
14
14
  constructor({ nativeElement }, ngZone, destroy$) {
15
- this.mode = 'scroll';
16
- typedFromEvent(nativeElement, 'wheel', { passive: false })
15
+ this.mode = `scroll`;
16
+ typedFromEvent(nativeElement, `wheel`, { passive: false })
17
17
  .pipe(filter(() => this.enabled), tuiZonefree(ngZone), takeUntil(destroy$))
18
18
  .subscribe(event => {
19
19
  this.processEvent(event, !!event.deltaY, event.deltaY ? event.deltaY < 0 : event.deltaX < 0);
20
20
  });
21
- typedFromEvent(nativeElement, 'touchstart', { passive: true })
21
+ typedFromEvent(nativeElement, `touchstart`, { passive: true })
22
22
  .pipe(switchMap(({ touches }) => {
23
23
  let { clientX, clientY } = touches[0];
24
24
  let deltaX = 0;
25
25
  let deltaY = 0;
26
26
  let vertical;
27
- return typedFromEvent(nativeElement, 'touchmove', {
27
+ return typedFromEvent(nativeElement, `touchmove`, {
28
28
  passive: false,
29
29
  }).pipe(filter(() => this.enabled), tap(event => {
30
30
  // We have to have it in tap instead of subscribe due to variables in closure
@@ -42,10 +42,10 @@ let TuiOverscrollDirective = class TuiOverscrollDirective {
42
42
  .subscribe();
43
43
  }
44
44
  get enabled() {
45
- return this.mode !== 'none';
45
+ return this.mode !== `none`;
46
46
  }
47
47
  get overscrollBehavior() {
48
- return this.enabled ? 'contain' : null;
48
+ return this.enabled ? `contain` : null;
49
49
  }
50
50
  processEvent(event, vertical, negative) {
51
51
  var _a;
@@ -53,11 +53,11 @@ let TuiOverscrollDirective = class TuiOverscrollDirective {
53
53
  // TODO: iframe warning
54
54
  if (!cancelable ||
55
55
  !(target instanceof Element) ||
56
- ((_a = target) === null || _a === void 0 ? void 0 : _a.type) === 'range') {
56
+ ((_a = target) === null || _a === void 0 ? void 0 : _a.type) === `range`) {
57
57
  return;
58
58
  }
59
59
  // This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior
60
- if (this.mode === 'all' &&
60
+ if (this.mode === `all` &&
61
61
  ((vertical && !currentTarget.contains(getScrollParent(target))) ||
62
62
  (!vertical && !currentTarget.contains(getScrollParent(target, false))))) {
63
63
  event.preventDefault();
@@ -83,14 +83,14 @@ TuiOverscrollDirective.ctorParameters = () => [
83
83
  { type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] }
84
84
  ];
85
85
  __decorate([
86
- Input('tuiOverscroll')
86
+ Input(`tuiOverscroll`)
87
87
  ], TuiOverscrollDirective.prototype, "mode", void 0);
88
88
  __decorate([
89
- HostBinding('style.overscrollBehavior')
89
+ HostBinding(`style.overscrollBehavior`)
90
90
  ], TuiOverscrollDirective.prototype, "overscrollBehavior", null);
91
91
  TuiOverscrollDirective = __decorate([
92
92
  Directive({
93
- selector: '[tuiOverscroll]',
93
+ selector: `[tuiOverscroll]`,
94
94
  providers: [TuiDestroyService],
95
95
  }),
96
96
  __param(0, Inject(ElementRef)),
@@ -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 tuiZonefree(ngZone),\n takeUntil(destroy$),\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 tuiZonefree(ngZone),\n takeUntil(destroy$),\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 ): void {\n const {target, currentTarget, cancelable} = event;\n\n // TODO: iframe warning\n if (\n !cancelable ||\n !(target instanceof Element) ||\n (target as HTMLInputElement)?.type === 'range'\n ) {\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;;;;IAQa,sBAAsB,GAAnC,MAAa,sBAAsB;IAI/B,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B;QALzD,SAAI,GAA4B,QAAQ,CAAC;QAOrC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAC1B,WAAW,CAAC,MAAM,CAAC,EACnB,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC,KAAK;YACZ,IAAI,CAAC,YAAY,CACb,KAAK,EACL,CAAC,CAAC,KAAK,CAAC,MAAM,EACd,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CACrD,CAAC;SACL,CAAC,CAAC;QAEP,cAAc,CAAC,aAAa,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;aACvD,IAAI,CACD,SAAS,CAAC,CAAC,EAAC,OAAO,EAAC;YAChB,IA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B,CAAC;gEAGvC;AArEQ,sBAAsB;IAJlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAPrB,sBAAsB,CAqHlC;;IC7HY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-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 tuiZonefree(ngZone),\n takeUntil(destroy$),\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 tuiZonefree(ngZone),\n takeUntil(destroy$),\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 ): void {\n const {target, currentTarget, cancelable} = event;\n\n // TODO: iframe warning\n if (\n !cancelable ||\n !(target instanceof Element) ||\n (target as HTMLInputElement)?.type === `range`\n ) {\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;;;;IAQa,sBAAsB,GAAnC,MAAa,sBAAsB;IAI/B,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B;QALzD,SAAI,GAA4B,QAAQ,CAAC;QAOrC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAC1B,WAAW,CAAC,MAAM,CAAC,EACnB,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC,KAAK;YACZ,IAAI,CAAC,YAAY,CACb,KAAK,EACL,CAAC,CAAC,KAAK,CAAC,MAAM,EACd,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CACrD,CAAC;SACL,CAAC,CAAC;QAEP,cAAc,CAAC,aAAa,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;aACvD,IAAI,CACD,SAAS,CAAC,CAAC,EAAC,OAAO,EAAC;YAChB,IAAI,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACpC,IAAI,MAAM,GAAG,CAAC,CAAC;YACf,IAAI,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;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAPrB,sBAAsB,CAqHlC;;IC7HY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
@@ -14,8 +14,8 @@ TuiPanDirective.ctorParameters = () => [
14
14
  ];
15
15
  TuiPanDirective = __decorate([
16
16
  Directive({
17
- selector: '[tuiPan]',
18
- outputs: ['tuiPan'],
17
+ selector: `[tuiPan]`,
18
+ outputs: [`tuiPan`],
19
19
  providers: [TuiPanService],
20
20
  }),
21
21
  __param(0, Inject(TuiPanService))