@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-decorators.js","sources":["ng://@taiga-ui/cdk/decorators/default-prop.ts","ng://@taiga-ui/cdk/decorators/pure.ts","ng://@taiga-ui/cdk/decorators/required-setter.ts","ng://@taiga-ui/cdk/decorators/taiga-ui-cdk-decorators.ts"],"sourcesContent":["import {tuiAssert} from '@taiga-ui/cdk/classes';\nimport {TuiBooleanHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Decorator for checking input values for undefined. You can also pass\n * optional assertion to check input against.\n *\n * CAUTION: This decorator overwrites other getters and setters.\n */\nexport function tuiDefaultProp<T extends object, K extends keyof T>(\n assertion?: TuiBooleanHandler<T[K]>,\n ...args: unknown[]\n): PropertyDecorator {\n return (target, key) => {\n const {name} = target.constructor;\n const errorGetDefaultMessage = errorGetDefault(key, name);\n const errorSetDefaultMessage = errorSetDefault(key, name);\n\n Object.defineProperty(target, key, {\n get(): undefined {\n tuiAssert.assert(false, errorGetDefaultMessage);\n\n return undefined;\n },\n set(this: T, initialValue: T[K]) {\n const isValid = initialValue !== undefined;\n const errorMessage = errorSetDefaultInitial(key, name);\n let currentValue = initialValue;\n\n tuiAssert.assert(isValid, errorMessage);\n\n if (isValid && assertion) {\n tuiAssert.assert(\n assertion.call(this, initialValue),\n `${String(key)} in ${name} received:`,\n initialValue,\n ...args,\n );\n }\n\n Object.defineProperty(this, key, {\n get(): T[K] {\n return currentValue;\n },\n set(this: T, value: T[K]) {\n const isValid = value !== undefined;\n const backupValue = initialValue;\n\n tuiAssert.assert(\n isValid,\n errorSetDefaultMessage,\n String(backupValue),\n );\n\n if (isValid && assertion) {\n tuiAssert.assert(\n assertion.call(this, value),\n `${String(key)} in ${name} received:`,\n value,\n ...args,\n );\n }\n\n currentValue = isValid ? value : backupValue;\n },\n });\n },\n });\n };\n}\n\nfunction errorGetDefault(key: string | symbol, component: string): string {\n return `Default value for ${String(\n key,\n )} was not provided in ${component}, error in Taiga UI Angular Kit`;\n}\n\nfunction errorSetDefault(key: string | symbol, component: string): string {\n return `Undefined was passed as ${String(\n key,\n )} to ${component}, which is invalid input, using default value:`;\n}\n\nfunction errorSetDefaultInitial(key: string | symbol, component: string): string {\n return `Undefined was passed as default value for ${String(\n key,\n )} to ${component}, error in Taiga UI Angular Kit`;\n}\n","import {TuiPureException} from '@taiga-ui/cdk/exceptions';\n\n/**\n * Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.\n * Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned\n * value for function, skipping calculation when arguments are strictly the same.\n *\n * @throws error if used not on getter or function\n *\n * CAUTION: `this` is not available inside such functions/getters, they must be pure.\n */\nexport function tuiPure<T>(\n _target: object,\n propertyKey: string,\n {get, enumerable, value}: TypedPropertyDescriptor<T>,\n): TypedPropertyDescriptor<T> {\n if (get) {\n return {\n enumerable,\n get(): T {\n const value = get.call(this);\n\n Object.defineProperty(this, propertyKey, {enumerable, value});\n\n return value;\n },\n };\n }\n\n if (typeof value !== 'function') {\n throw new TuiPureException();\n }\n\n const original = value;\n\n return {\n enumerable,\n get(): T {\n let previousArgs: readonly unknown[] = [];\n let originalFnWasCalledLeastAtOnce = false;\n let pureValue: unknown;\n\n const patched = (...args: unknown[]): unknown => {\n const isPure =\n originalFnWasCalledLeastAtOnce &&\n previousArgs.length === args.length &&\n args.every((arg, index) => arg === previousArgs[index]);\n\n if (isPure) {\n return pureValue;\n }\n\n previousArgs = args;\n pureValue = original.apply(this, args);\n originalFnWasCalledLeastAtOnce = true;\n\n return pureValue;\n };\n\n Object.defineProperty(this, propertyKey, {value: patched});\n\n return patched as unknown as T;\n },\n };\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\nimport {TuiBooleanHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Decorator for checking input setter values against a custom assertion which\n * takes value passed to input setter and component instance as arguments.\n * It specifically checks for undefined values and prevents calls to the\n * original setter in this case.\n */\nexport function tuiRequiredSetter<T extends object, K extends keyof T>(\n assertion?: TuiBooleanHandler<T[K]>,\n ...args: any[]\n): MethodDecorator {\n return (\n target: object,\n key,\n {configurable, enumerable, get, set}: PropertyDescriptor,\n ): PropertyDescriptor => {\n const {name} = target.constructor;\n\n return {\n configurable,\n enumerable,\n get,\n set(this: T, value: T[K]) {\n if (value !== undefined && assertion) {\n tuiAssert.assert(\n assertion.call(this, value),\n `${String(key)} in ${name} received:`,\n value,\n ...args,\n );\n }\n\n if (!set || value === undefined) {\n tuiAssert.assert(value !== undefined, errorSet(key, name));\n\n return;\n }\n\n set.call(this, value);\n },\n };\n };\n}\n\nfunction errorSet(key: string | symbol, component: string): string {\n return `Undefined was passed as ${String(\n key,\n )} to ${component}, setter will not be called`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;SAMgB,cAAc,CAC1B,SAAmC;IACnC,cAAkB;SAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;QAAlB,6BAAkB;;IAElB,OAAO,UAAC,MAAM,EAAE,GAAG;QACR,IAAA,8BAAI,CAAuB;QAClC,IAAM,sBAAsB,GAAG,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC1D,IAAM,sBAAsB,GAAG,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAE1D,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAC/B,GAAG,EAAH;gBACI,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;gBAEhD,OAAO,SAAS,CAAC;aACpB;YACD,GAAG,EAAH,UAAa,YAAkB;gBAC3B,IAAM,OAAO,GAAG,YAAY,KAAK,SAAS,CAAC;gBAC3C,IAAM,YAAY,GAAG,sBAAsB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;gBACvD,IAAI,YAAY,GAAG,YAAY,CAAC;gBAEhC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;gBAExC,IAAI,OAAO,IAAI,SAAS,EAAE;oBACtB,SAAS,CAAC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AAE,WAAW,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,CAAC,CAAC;YAE3D,OAAO,OAAuB,CAAC;SAClC;KACJ,CAAC;AACN;;AC7DA;;;;;;SAMgB,iBAAiB,CAC7B,SAAmC;IACnC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,6BAAc;;IAEd,OAAO,UACH,MAAc,EACd,GAAG,EACH,EAAwD;YAAvD,8BAAY,EAAE,0BAAU,EAAE,YAAG,EAAE,YAAG;QAE5B,IAAA,8BAAI,CAAuB;QAElC,OAAO;YACH,YAAY,cAAA;YACZ,UAAU,YAAA;YACV,GAAG,KAAA;YACH,GAAG,EAAH,UAAa,KAAW;gBACpB,IAAI,KAAK,KAAK,SAAS,IAAI,SAAS,EAAE;oBAClC,SAAS,CAAC,MAAM,OAAhB,SAAS,YACL,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC;wBACxB,MAAM,CAAC,GAAG,CAAC,YAAO,IAAI,eAAY;wBACrC,KAAK,GACF,IAAI,GACT;iBACL;gBAED,IAAI,CAAC,GAAG,IAAI,KAAK,KAAK,SAAS,EAAE;oBAC7B,SAAS,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;oBAE3D,OAAO;iBACV;gBAED,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACzB;SACJ,CAAC;KACL,CAAC;AACN,CAAC;AAED,SAAS,QAAQ,CAAC,GAAoB,EAAE,SAAiB;IACrD,OAAO,6BAA2B,MAAM,CACpC,GAAG,CACN,YAAO,SAAS,gCAA6B,CAAC;AACnD;;AClDA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-decorators.js","sources":["ng://@taiga-ui/cdk/decorators/default-prop.ts","ng://@taiga-ui/cdk/decorators/pure.ts","ng://@taiga-ui/cdk/decorators/required-setter.ts","ng://@taiga-ui/cdk/decorators/taiga-ui-cdk-decorators.ts"],"sourcesContent":["import {tuiAssert} from '@taiga-ui/cdk/classes';\nimport {TuiBooleanHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Decorator for checking input values for undefined. You can also pass\n * optional assertion to check input against.\n *\n * CAUTION: This decorator overwrites other getters and setters.\n */\nexport function tuiDefaultProp<T extends object, K extends keyof T>(\n assertion?: TuiBooleanHandler<T[K]>,\n ...args: unknown[]\n): PropertyDecorator {\n return (target, key) => {\n const {name} = target.constructor;\n const errorGetDefaultMessage = errorGetDefault(key, name);\n const errorSetDefaultMessage = errorSetDefault(key, name);\n\n Object.defineProperty(target, key, {\n get(): undefined {\n tuiAssert.assert(false, errorGetDefaultMessage);\n\n return undefined;\n },\n set(this: T, initialValue: T[K]) {\n const isValid = initialValue !== undefined;\n const errorMessage = errorSetDefaultInitial(key, name);\n let currentValue = initialValue;\n\n tuiAssert.assert(isValid, errorMessage);\n\n if (isValid && assertion) {\n tuiAssert.assert(\n assertion.call(this, initialValue),\n `${String(key)} in ${name} received:`,\n initialValue,\n ...args,\n );\n }\n\n Object.defineProperty(this, key, {\n get(): T[K] {\n return currentValue;\n },\n set(this: T, value: T[K]) {\n const isValid = value !== undefined;\n const backupValue = initialValue;\n\n tuiAssert.assert(\n isValid,\n errorSetDefaultMessage,\n String(backupValue),\n );\n\n if (isValid && assertion) {\n tuiAssert.assert(\n assertion.call(this, value),\n `${String(key)} in ${name} received:`,\n value,\n ...args,\n );\n }\n\n currentValue = isValid ? value : backupValue;\n },\n });\n },\n });\n };\n}\n\nfunction errorGetDefault(key: string | symbol, component: string): string {\n return `Default value for ${String(\n key,\n )} was not provided in ${component}, error in Taiga UI Angular Kit`;\n}\n\nfunction errorSetDefault(key: string | symbol, component: string): string {\n return `Undefined was passed as ${String(\n key,\n )} to ${component}, which is invalid input, using default value:`;\n}\n\nfunction errorSetDefaultInitial(key: string | symbol, component: string): string {\n return `Undefined was passed as default value for ${String(\n key,\n )} to ${component}, error in Taiga UI Angular Kit`;\n}\n","import {TuiPureException} from '@taiga-ui/cdk/exceptions';\n\n/**\n * Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.\n * Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned\n * value for function, skipping calculation when arguments are strictly the same.\n *\n * @throws error if used not on getter or function\n *\n * CAUTION: `this` is not available inside such functions/getters, they must be pure.\n */\nexport function tuiPure<T>(\n _target: object,\n propertyKey: string,\n {get, enumerable, value}: TypedPropertyDescriptor<T>,\n): TypedPropertyDescriptor<T> {\n if (get) {\n return {\n enumerable,\n get(): T {\n const value = get.call(this);\n\n Object.defineProperty(this, propertyKey, {enumerable, value});\n\n return value;\n },\n };\n }\n\n if (typeof value !== `function`) {\n throw new TuiPureException();\n }\n\n const original = value;\n\n return {\n enumerable,\n get(): T {\n let previousArgs: readonly unknown[] = [];\n let originalFnWasCalledLeastAtOnce = false;\n let pureValue: unknown;\n\n const patched = (...args: unknown[]): unknown => {\n const isPure =\n originalFnWasCalledLeastAtOnce &&\n previousArgs.length === args.length &&\n args.every((arg, index) => arg === previousArgs[index]);\n\n if (isPure) {\n return pureValue;\n }\n\n previousArgs = args;\n pureValue = original.apply(this, args);\n originalFnWasCalledLeastAtOnce = true;\n\n return pureValue;\n };\n\n Object.defineProperty(this, propertyKey, {value: patched});\n\n return patched as unknown as T;\n },\n };\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\nimport {TuiBooleanHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Decorator for checking input setter values against a custom assertion which\n * takes value passed to input setter and component instance as arguments.\n * It specifically checks for undefined values and prevents calls to the\n * original setter in this case.\n */\nexport function tuiRequiredSetter<T extends object, K extends keyof T>(\n assertion?: TuiBooleanHandler<T[K]>,\n ...args: any[]\n): MethodDecorator {\n return (\n target: object,\n key,\n {configurable, enumerable, get, set}: PropertyDescriptor,\n ): PropertyDescriptor => {\n const {name} = target.constructor;\n\n return {\n configurable,\n enumerable,\n get,\n set(this: T, value: T[K]) {\n if (value !== undefined && assertion) {\n tuiAssert.assert(\n assertion.call(this, value),\n `${String(key)} in ${name} received:`,\n value,\n ...args,\n );\n }\n\n if (!set || value === undefined) {\n tuiAssert.assert(value !== undefined, errorSet(key, name));\n\n return;\n }\n\n set.call(this, value);\n },\n };\n };\n}\n\nfunction errorSet(key: string | symbol, component: string): string {\n return `Undefined was passed as ${String(\n key,\n )} to ${component}, setter will not be called`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;SAMgB,cAAc,CAC1B,SAAmC;IACnC,cAAkB;SAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;QAAlB,6BAAkB;;IAElB,OAAO,UAAC,MAAM,EAAE,GAAG;QACR,IAAA,8BAAI,CAAuB;QAClC,IAAM,sBAAsB,GAAG,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC1D,IAAM,sBAAsB,GAAG,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAE1D,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAC/B,GAAG,EAAH;gBACI,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;gBAEhD,OAAO,SAAS,CAAC;aACpB;YACD,GAAG,EAAH,UAAa,YAAkB;gBAC3B,IAAM,OAAO,GAAG,YAAY,KAAK,SAAS,CAAC;gBAC3C,IAAM,YAAY,GAAG,sBAAsB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;gBACvD,IAAI,YAAY,GAAG,YAAY,CAAC;gBAEhC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;gBAExC,IAAI,OAAO,IAAI,SAAS,EAAE;oBACtB,SAAS,CAAC,MAAM,OAAhB,SAAS,YACL,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC;wBAC/B,MAAM,CAAC,GAAG,CAAC,YAAO,IA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A;;;;;;SAMgB,iBAAiB,CAC7B,SAAmC;IACnC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,6BAAc;;IAEd,OAAO,UACH,MAAc,EACd,GAAG,EACH,EAAwD;YAAvD,8BAAY,EAAE,0BAAU,EAAE,YAAG,EAAE,YAAG;QAE5B,IAAA,8BAAI,CAAuB;QAElC,OAAO;YACH,YAAY,cAAA;YACZ,UAAU,YAAA;YACV,GAAG,KAAA;YACH,GAAG,EAAH,UAAa,KAAW;gBACpB,IAAI,KAAK,KAAK,SAAS,IAAI,SAAS,EAAE;oBAClC,SAAS,CAAC,MAAM,OAAhB,SAAS,YACL,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC;wBACxB,MAAM,CAAC,GAAG,CAAC,YAAO,IAAI,eAAY;wBACrC,KAAK,GACF,IAAI,GACT;iBACL;gBAED,IAAI,CAAC,GAAG,IAAI,KAAK,KAAK,SAAS,EAAE;oBAC7B,SAAS,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;oBAE3D,OAAO;iBACV;gBAED,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACzB;SACJ,CAAC;KACL,CAAC;AACN,CAAC;AAED,SAAS,QAAQ,CAAC,GAAoB,EAAE,SAAiB;IACrD,OAAO,6BAA2B,MAAM,CACpC,GAAG,CACN,YAAO,SAAS,gCAA6B,CAAC;AACnD;;AClDA;;;;;;"}
@@ -66,7 +66,7 @@ var TuiActiveZoneDirective = /** @class */ (function () {
66
66
  { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: SkipSelf }, { type: Inject, args: [TuiActiveZoneDirective_1,] }] }
67
67
  ]; };
68
68
  __decorate([
69
- Input('tuiActiveZoneParent'),
69
+ Input("tuiActiveZoneParent"),
70
70
  tuiDefaultProp()
71
71
  ], TuiActiveZoneDirective.prototype, "tuiActiveZoneParentSetter", null);
72
72
  __decorate([
@@ -77,8 +77,8 @@ var TuiActiveZoneDirective = /** @class */ (function () {
77
77
  ], TuiActiveZoneDirective.prototype, "setZone", null);
78
78
  TuiActiveZoneDirective = TuiActiveZoneDirective_1 = __decorate([
79
79
  Directive({
80
- selector: '[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)',
81
- exportAs: 'tuiActiveZone',
80
+ selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)",
81
+ exportAs: "tuiActiveZone",
82
82
  }),
83
83
  __param(0, Inject(TUI_ACTIVE_ELEMENT)),
84
84
  __param(1, Inject(NgZone)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-active-zone.js","sources":["ng://@taiga-ui/cdk/directives/active-zone/active-zone.directive.ts","ng://@taiga-ui/cdk/directives/active-zone/active-zone.module.ts","ng://@taiga-ui/cdk/directives/active-zone/taiga-ui-cdk-directives-active-zone.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Optional,\n Output,\n SkipSelf,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiPure} from '@taiga-ui/cdk/decorators';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n@Directive({\n selector:\n '[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)',\n exportAs: 'tuiActiveZone',\n})\nexport class TuiActiveZoneDirective implements OnDestroy {\n private subActiveZones: readonly TuiActiveZoneDirective[] = [];\n\n private tuiActiveZoneParent: TuiActiveZoneDirective | null = null;\n\n @Input('tuiActiveZoneParent')\n @tuiDefaultProp()\n set tuiActiveZoneParentSetter(zone: TuiActiveZoneDirective | null) {\n this.setZone(zone);\n }\n\n @Output()\n readonly tuiActiveZoneChange = this.active$.pipe(\n map(element => !!element && this.contains(element)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(this.ngZone),\n );\n\n constructor(\n @Inject(TUI_ACTIVE_ELEMENT)\n private readonly active$: Observable<Element | null>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Optional()\n @SkipSelf()\n @Inject(TuiActiveZoneDirective)\n private readonly directParentActiveZone: TuiActiveZoneDirective | null,\n ) {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.addSubActiveZone(this);\n }\n }\n\n ngOnDestroy(): void {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.removeSubActiveZone(this);\n }\n\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n }\n\n contains(node: Node): boolean {\n return (\n this.elementRef.nativeElement.contains(node) ||\n this.subActiveZones.some(\n (item, index, array) =>\n array.indexOf(item) === index && item.contains(node),\n )\n );\n }\n\n @tuiPure\n private setZone(zone: TuiActiveZoneDirective | null): void {\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n\n if (zone) {\n zone.addSubActiveZone(this);\n }\n\n this.tuiActiveZoneParent = zone;\n }\n\n private addSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n this.subActiveZones = [...this.subActiveZones, activeZone];\n }\n\n private removeSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n const index = this.subActiveZones.findIndex(item => item === activeZone);\n\n this.subActiveZones = [\n ...this.subActiveZones.slice(0, index),\n ...this.subActiveZones.slice(index + 1),\n ];\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiActiveZoneDirective} from './active-zone.directive';\n\n@NgModule({\n declarations: [TuiActiveZoneDirective],\n exports: [TuiActiveZoneDirective],\n})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C,MAAM,EAAE;uEAOP;IAsCF;QADC,OAAO;yDAWP;IAlEQ,sBAAsB;QALlC,SAAS,CAAC;YACP,QAAQ,EACJ,qHAAqH;YACzH,QAAQ,EAAE,eAAe;SAC5B,CAAC;QAsBO,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;QAE1B,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,wBAAsB,CAAC,CAAA;OA3B1B,sBAAsB,CAgFlC;IAAD,6BAAC;CAhFD;;;ICdA;KAAmC;IAAtB,mBAAmB;QAJ/B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-active-zone.js","sources":["ng://@taiga-ui/cdk/directives/active-zone/active-zone.directive.ts","ng://@taiga-ui/cdk/directives/active-zone/active-zone.module.ts","ng://@taiga-ui/cdk/directives/active-zone/taiga-ui-cdk-directives-active-zone.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Optional,\n Output,\n SkipSelf,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiPure} from '@taiga-ui/cdk/decorators';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n@Directive({\n selector: `[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)`,\n exportAs: `tuiActiveZone`,\n})\nexport class TuiActiveZoneDirective implements OnDestroy {\n private subActiveZones: readonly TuiActiveZoneDirective[] = [];\n\n private tuiActiveZoneParent: TuiActiveZoneDirective | null = null;\n\n @Input(`tuiActiveZoneParent`)\n @tuiDefaultProp()\n set tuiActiveZoneParentSetter(zone: TuiActiveZoneDirective | null) {\n this.setZone(zone);\n }\n\n @Output()\n readonly tuiActiveZoneChange = this.active$.pipe(\n map(element => !!element && this.contains(element)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(this.ngZone),\n );\n\n constructor(\n @Inject(TUI_ACTIVE_ELEMENT)\n private readonly active$: Observable<Element | null>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Optional()\n @SkipSelf()\n @Inject(TuiActiveZoneDirective)\n private readonly directParentActiveZone: TuiActiveZoneDirective | null,\n ) {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.addSubActiveZone(this);\n }\n }\n\n ngOnDestroy(): void {\n if (this.directParentActiveZone) {\n this.directParentActiveZone.removeSubActiveZone(this);\n }\n\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n }\n\n contains(node: Node): boolean {\n return (\n this.elementRef.nativeElement.contains(node) ||\n this.subActiveZones.some(\n (item, index, array) =>\n array.indexOf(item) === index && item.contains(node),\n )\n );\n }\n\n @tuiPure\n private setZone(zone: TuiActiveZoneDirective | null): void {\n if (this.tuiActiveZoneParent) {\n this.tuiActiveZoneParent.removeSubActiveZone(this);\n }\n\n if (zone) {\n zone.addSubActiveZone(this);\n }\n\n this.tuiActiveZoneParent = zone;\n }\n\n private addSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n this.subActiveZones = [...this.subActiveZones, activeZone];\n }\n\n private removeSubActiveZone(activeZone: TuiActiveZoneDirective): void {\n const index = this.subActiveZones.findIndex(item => item === activeZone);\n\n this.subActiveZones = [\n ...this.subActiveZones.slice(0, index),\n ...this.subActiveZones.slice(index + 1),\n ];\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiActiveZoneDirective} from './active-zone.directive';\n\n@NgModule({\n declarations: [TuiActiveZoneDirective],\n exports: [TuiActiveZoneDirective],\n})\nexport class TuiActiveZoneModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAyCI,gCAEqB,OAAmC,EACnB,MAAc,EACV,UAA+B,EAInD,sBAAqD;QAR1E,iBAaC;QAXoB,YAAO,GAAP,OAAO,CAA4B;QACnB,WAAM,GAAN,MAAM,CAAQ;QACV,eAAU,GAAV,UAAU,CAAqB;QAInD,2BAAsB,GAAtB,sBAAsB,CAA+B;QA3BlE,mBAAc,GAAsC,EAAE,CAAC;QAEvD,wBAAmB,GAAkC,IAAI,CAAC;QASzD,wBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAC5C,GAAG,CAAC,UAAA,OAAO,IAAI,OAAA,CAAC,CAAC,OAAO,IAAI,KAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAA,CAAC,EACnD,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAChC,CAAC;QAYE,IAAI,IAAI,CAAC,sBAAsB,EAAE;YAC7B,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;SACtD;KACJ;+BAjCQ,sBAAsB;IAO/B,sBAAI,6DAAyB;aAA7B,UAA8B,IAAmC;YAC7D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB;;;OAAA;IA0BD,4CAAW,GAAX;QACI,IAAI,IAAI,CAAC,sBAAsB,EAAE;YAC7B,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;SACzD;QAED,IAAI,IAAI,CAAC,mBAAmB,EAAE;YAC1B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IuB,sBAAsB,uBAH9D,QAAQ,YACR,QAAQ,YACR,MAAM,SAAC,wBAAsB;;IApBlC;QAFC,KAAK,CAAC,qBAAqB,CAAC;QAC5B,cAAc,EAAE;2EAGhB;IAGD;QADC,MAAM,EAAE;uEAOP;IAsCF;QADC,OAAO;yDAWP;IAlEQ,sBAAsB;QAJlC,SAAS,CAAC;YACP,QAAQ,EAAE,qHAAqH;YAC/H,QAAQ,EAAE,eAAe;SAC5B,CAAC;QAsBO,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;QAE1B,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,wBAAsB,CAAC,CAAA;OA3B1B,sBAAsB,CAgFlC;IAAD,6BAAC;CAhFD;;;ICbA;KAAmC;IAAtB,mBAAmB;QAJ/B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACRA;;;;;;"}
@@ -23,7 +23,7 @@ var AbstractTuiAutofocusHandler = /** @class */ (function () {
23
23
  });
24
24
  Object.defineProperty(AbstractTuiAutofocusHandler.prototype, "isTextFieldElement", {
25
25
  get: function () {
26
- return this.element.matches('input, textarea');
26
+ return this.element.matches("input, textarea");
27
27
  },
28
28
  enumerable: true,
29
29
  configurable: true
@@ -39,7 +39,7 @@ var AbstractTuiAutofocusHandler = /** @class */ (function () {
39
39
  }());
40
40
 
41
41
  var TIMEOUT = 1000;
42
- var NG_ANIMATION_SELECTOR = '.ng-animating';
42
+ var NG_ANIMATION_SELECTOR = ".ng-animating";
43
43
  var TuiDefaultAutofocusHandler = /** @class */ (function (_super) {
44
44
  __extends(TuiDefaultAutofocusHandler, _super);
45
45
  function TuiDefaultAutofocusHandler(tuiFocusableComponent, elementRef, animationFrame$) {
@@ -104,16 +104,16 @@ var TuiIosAutofocusHandler = /** @class */ (function (_super) {
104
104
  clearTimeout(fakeFocusTimeoutId);
105
105
  fakeFocusTimeoutId = _this.windowRef.setTimeout(function () {
106
106
  clearTimeout(elementFocusTimeoutId);
107
- fakeInput.removeEventListener('blur', blurHandler);
108
- fakeInput.removeEventListener('focus', focusHandler);
107
+ fakeInput.removeEventListener("blur", blurHandler);
108
+ fakeInput.removeEventListener("focus", focusHandler);
109
109
  elementFocusTimeoutId = _this.windowRef.setTimeout(function () {
110
110
  _this.element.focus({ preventScroll: false });
111
111
  fakeInput.remove();
112
112
  }, duration);
113
113
  });
114
114
  };
115
- fakeInput.addEventListener('blur', blurHandler, { once: true });
116
- fakeInput.addEventListener('focus', focusHandler);
115
+ fakeInput.addEventListener("blur", blurHandler, { once: true });
116
+ fakeInput.addEventListener("focus", focusHandler);
117
117
  if (this.insideDialog()) {
118
118
  this.windowRef.document.body.appendChild(fakeInput);
119
119
  }
@@ -128,12 +128,12 @@ var TuiIosAutofocusHandler = /** @class */ (function (_super) {
128
128
  * before focus to real textfield element
129
129
  */
130
130
  TuiIosAutofocusHandler.prototype.makeFakeInput = function () {
131
- var fakeInput = this.renderer.createElement('input');
131
+ var fakeInput = this.renderer.createElement("input");
132
132
  var rect = this.element.getBoundingClientRect();
133
133
  fakeInput.style.height = px(rect.height);
134
134
  fakeInput.style.width = px(rect.width / 2);
135
- fakeInput.style.position = 'fixed';
136
- fakeInput.style.opacity = '0';
135
+ fakeInput.style.position = "fixed";
136
+ fakeInput.style.opacity = "0";
137
137
  fakeInput.style.fontSize = px(16); // disable possible auto zoom
138
138
  fakeInput.readOnly = true; // prevent keyboard for fake input
139
139
  // @note: emulate position cursor before focus to real textfield element
@@ -144,7 +144,7 @@ var TuiIosAutofocusHandler = /** @class */ (function (_super) {
144
144
  TuiIosAutofocusHandler.prototype.getDurationTimeBeforeFocus = function () {
145
145
  return (parseFloat(this.windowRef
146
146
  .getComputedStyle(this.element)
147
- .getPropertyValue('--tui-duration')) || 0);
147
+ .getPropertyValue("--tui-duration")) || 0);
148
148
  };
149
149
  /**
150
150
  * @note:
@@ -154,7 +154,7 @@ var TuiIosAutofocusHandler = /** @class */ (function (_super) {
154
154
  * and then that dialog will be shaking
155
155
  */
156
156
  TuiIosAutofocusHandler.prototype.insideDialog = function () {
157
- return !!this.element.closest('tui-dialog');
157
+ return !!this.element.closest("tui-dialog");
158
158
  };
159
159
  /**
160
160
  * @note:
@@ -170,8 +170,8 @@ var TuiIosAutofocusHandler = /** @class */ (function (_super) {
170
170
  try {
171
171
  for (var _b = __values([documentRef.documentElement, documentRef.body]), _c = _b.next(); !_c.done; _c = _b.next()) {
172
172
  var element = _c.value;
173
- element.style.setProperty('overflow', 'auto');
174
- element.style.setProperty('height', '100%');
173
+ element.style.setProperty("overflow", "auto");
174
+ element.style.setProperty("height", "100%");
175
175
  }
176
176
  }
177
177
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -202,7 +202,7 @@ var TuiIosAutofocusHandler = /** @class */ (function (_super) {
202
202
  return TuiIosAutofocusHandler;
203
203
  }(AbstractTuiAutofocusHandler));
204
204
 
205
- var TUI_AUTOFOCUS_HANDLER = new InjectionToken('Autofocusing handler');
205
+ var TUI_AUTOFOCUS_HANDLER = new InjectionToken("Autofocusing handler");
206
206
  // TODO: 3.0 remove in ivy compilation
207
207
  function tuiAutofocusHandlerFactory(tuiFocusableComponent, elementRef, animationFrame$, renderer, ngZone, windowRef, isIos) {
208
208
  return isIos
@@ -245,7 +245,7 @@ var TuiAutoFocusDirective = /** @class */ (function () {
245
245
  ], TuiAutoFocusDirective.prototype, "autoFocus", void 0);
246
246
  TuiAutoFocusDirective = __decorate([
247
247
  Directive({
248
- selector: '[tuiAutoFocus]',
248
+ selector: "[tuiAutoFocus]",
249
249
  providers: TUI_AUTOFOCUS_PROVIDERS,
250
250
  }),
251
251
  __param(0, Inject(TUI_AUTOFOCUS_HANDLER))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-auto-focus.js","sources":["ng://@taiga-ui/cdk/directives/auto-focus/handlers/abstract.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/default.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/ios.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.options.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.directive.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.module.ts","ng://@taiga-ui/cdk/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiAutofocusHandler} from '../autofocus.options';\n\n@Directive()\nexport abstract class AbstractTuiAutofocusHandler implements TuiAutofocusHandler {\n protected constructor(\n protected readonly tuiFocusableComponent: TuiFocusableElementAccessor | null,\n protected readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n protected get element(): TuiNativeFocusableElement {\n return (\n this.tuiFocusableComponent?.nativeFocusableElement ||\n this.elementRef.nativeElement\n );\n }\n\n protected get isTextFieldElement(): boolean {\n return this.element.matches('input, textarea');\n }\n\n abstract setFocus(): void;\n}\n","import {Directive, ElementRef, Inject, Optional, Self} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {POLLING_TIME} from '@taiga-ui/cdk/constants';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {Observable, race, timer} from 'rxjs';\nimport {map, skipWhile, take, throttleTime} from 'rxjs/operators';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TIMEOUT = 1000;\nconst NG_ANIMATION_SELECTOR = '.ng-animating';\n\n@Directive()\nexport class TuiDefaultAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n ) {\n super(tuiFocusableComponent, elementRef);\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n race(\n timer(TIMEOUT),\n this.animationFrame$.pipe(\n throttleTime(POLLING_TIME),\n map(() => this.element.closest(NG_ANIMATION_SELECTOR)),\n skipWhile(Boolean),\n take(1),\n ),\n ).subscribe(() => this.element.focus());\n } else {\n this.element.focus();\n }\n }\n}\n","import {\n Directive,\n ElementRef,\n Inject,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {px} from '@taiga-ui/cdk/utils';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\n// @dynamic\n@Directive()\nexport class TuiIosAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(WINDOW) private readonly windowRef: Window,\n ) {\n super(tuiFocusableComponent, elementRef);\n this.patchCssStyles();\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n this.ngZone.runOutsideAngular(() => this.iosWebkitAutofocus());\n } else {\n this.element.focus();\n }\n }\n\n private iosWebkitAutofocus(): void {\n const fakeInput: HTMLInputElement = this.makeFakeInput();\n const duration = this.getDurationTimeBeforeFocus();\n let fakeFocusTimeoutId = 0;\n let elementFocusTimeoutId = 0;\n\n const blurHandler = (): void => fakeInput.focus({preventScroll: true});\n const focusHandler = (): void => {\n clearTimeout(fakeFocusTimeoutId);\n\n fakeFocusTimeoutId = this.windowRef.setTimeout(() => {\n clearTimeout(elementFocusTimeoutId);\n\n fakeInput.removeEventListener('blur', blurHandler);\n fakeInput.removeEventListener('focus', focusHandler);\n\n elementFocusTimeoutId = this.windowRef.setTimeout(() => {\n this.element.focus({preventScroll: false});\n fakeInput.remove();\n }, duration);\n });\n };\n\n fakeInput.addEventListener('blur', blurHandler, {once: true});\n fakeInput.addEventListener('focus', focusHandler);\n\n if (this.insideDialog()) {\n this.windowRef.document.body.appendChild(fakeInput);\n } else {\n this.element.parentElement?.appendChild(fakeInput);\n }\n\n fakeInput.focus({preventScroll: true});\n }\n\n /**\n * @note:\n * emulate textfield position in layout with cursor\n * before focus to real textfield element\n */\n private makeFakeInput(): HTMLInputElement {\n const fakeInput: HTMLInputElement = this.renderer.createElement('input');\n const rect: DOMRect = this.element.getBoundingClientRect();\n\n fakeInput.style.height = px(rect.height);\n fakeInput.style.width = px(rect.width / 2);\n fakeInput.style.position = 'fixed';\n fakeInput.style.opacity = '0';\n fakeInput.style.fontSize = px(16); // disable possible auto zoom\n fakeInput.readOnly = true; // prevent keyboard for fake input\n\n // @note: emulate position cursor before focus to real textfield element\n fakeInput.style.top = px(rect.top);\n fakeInput.style.left = px(rect.left);\n\n return fakeInput;\n }\n\n private getDurationTimeBeforeFocus(): number {\n return (\n parseFloat(\n this.windowRef\n .getComputedStyle(this.element)\n .getPropertyValue('--tui-duration'),\n ) || 0\n );\n }\n\n /**\n * @note:\n * unfortunately, in older versions of iOS\n * there is a bug that the fake input cursor\n * will move along with the dialog animation\n * and then that dialog will be shaking\n */\n private insideDialog(): boolean {\n return !!this.element.closest('tui-dialog');\n }\n\n /**\n * @note:\n * This is necessary so that the viewport isn't recalculated\n * and then the dialogs don't shake.\n *\n * Also, we need to fixed height viewport,\n * so that when focusing the dialogs don't shake\n */\n private patchCssStyles(): void {\n const documentRef = this.windowRef.document;\n\n for (const element of [documentRef.documentElement, documentRef.body]) {\n element.style.setProperty('overflow', 'auto');\n element.style.setProperty('height', '100%');\n }\n }\n}\n","import {\n ElementRef,\n InjectionToken,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\n\nimport {TuiDefaultAutofocusHandler} from './handlers/default.handler';\nimport {TuiIosAutofocusHandler} from './handlers/ios.handler';\n\nexport interface TuiAutofocusHandler {\n setFocus(): void;\n}\n\nexport const TUI_AUTOFOCUS_HANDLER = new InjectionToken<TuiAutofocusHandler>(\n 'Autofocusing handler',\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport function tuiAutofocusHandlerFactory(\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n elementRef: ElementRef<HTMLElement>,\n animationFrame$: Observable<number>,\n renderer: Renderer2,\n ngZone: NgZone,\n windowRef: Window,\n isIos: boolean,\n): TuiAutofocusHandler {\n return isIos\n ? new TuiIosAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n renderer,\n ngZone,\n windowRef,\n )\n : new TuiDefaultAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n animationFrame$,\n );\n}\n\nexport const TUI_AUTOFOCUS_PROVIDERS = [\n {\n provide: TUI_AUTOFOCUS_HANDLER,\n // TODO: replace to useClass in v3.0\n useFactory: tuiAutofocusHandlerFactory,\n deps: [\n [new Optional(), new Self(), TUI_FOCUSABLE_ITEM_ACCESSOR],\n ElementRef,\n ANIMATION_FRAME,\n Renderer2,\n NgZone,\n WINDOW,\n TUI_IS_IOS,\n ],\n },\n];\n","import {AfterViewInit, Directive, Inject, Input} from '@angular/core';\n\nimport {\n TUI_AUTOFOCUS_HANDLER,\n TUI_AUTOFOCUS_PROVIDERS,\n TuiAutofocusHandler,\n} from './autofocus.options';\n\n// TODO: 3.0 change input name to tuiAutoFocus and handle empty string\n@Directive({\n selector: '[tuiAutoFocus]',\n providers: TUI_AUTOFOCUS_PROVIDERS,\n})\nexport class TuiAutoFocusDirective implements AfterViewInit {\n @Input()\n autoFocus = true;\n\n constructor(\n @Inject(TUI_AUTOFOCUS_HANDLER) private readonly handler: TuiAutofocusHandler,\n ) {}\n\n ngAfterViewInit(): void {\n if (this.autoFocus) {\n this.handler.setFocus();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutoFocusDirective} from './autofocus.directive';\n\n@NgModule({\n declarations: [TuiAutoFocusDirective],\n exports: [TuiAutoFocusDirective],\n})\nexport class TuiAutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAUI,qCACuB,qBAAyD,EACzD,UAAmC;QADnC,0BAAqB,GAArB,qBAAqB,CAAoC;QACzD,eAAU,GAAV,UAAU,CAAyB;KACtD;IAEJ,sBAAc,gDAAO;aAArB;;YACI,QACI,OAAA,IAAI,CAAC,qBAAqB,0CAAE,sBAAsB;gBAClD,IAAI,CAAC,UAAU,CAAC,aAAa,EAC/B;SACL;;;OAAA;IAED,sBAAc,2DAAkB;aAAhC;YACI,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;SAClD;;;OAAA;;;gBAZkC,UAAU;;IAH3B,2BAA2B;QADhD,SAAS,EAAE;OACU,2BAA2B,CAkBhD;IAAD,kCAAC;CAlBD;;ACCA,IAAM,OAAO,GAAG,IAAI,CAAC;AACrB,IAAM,qBAAqB,GAAG,eAAe,CAAC;;IAGE,8CAA2B;IACvE,oCAII,qBAAyD,EACrC,UA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;CAAlC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-auto-focus.js","sources":["ng://@taiga-ui/cdk/directives/auto-focus/handlers/abstract.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/default.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/handlers/ios.handler.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.options.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.directive.ts","ng://@taiga-ui/cdk/directives/auto-focus/autofocus.module.ts","ng://@taiga-ui/cdk/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiAutofocusHandler} from '../autofocus.options';\n\n@Directive()\nexport abstract class AbstractTuiAutofocusHandler implements TuiAutofocusHandler {\n protected constructor(\n protected readonly tuiFocusableComponent: TuiFocusableElementAccessor | null,\n protected readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n protected get element(): TuiNativeFocusableElement {\n return (\n this.tuiFocusableComponent?.nativeFocusableElement ||\n this.elementRef.nativeElement\n );\n }\n\n protected get isTextFieldElement(): boolean {\n return this.element.matches(`input, textarea`);\n }\n\n abstract setFocus(): void;\n}\n","import {Directive, ElementRef, Inject, Optional, Self} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {POLLING_TIME} from '@taiga-ui/cdk/constants';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {Observable, race, timer} from 'rxjs';\nimport {map, skipWhile, take, throttleTime} from 'rxjs/operators';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\nconst TIMEOUT = 1000;\nconst NG_ANIMATION_SELECTOR = `.ng-animating`;\n\n@Directive()\nexport class TuiDefaultAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n ) {\n super(tuiFocusableComponent, elementRef);\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n race(\n timer(TIMEOUT),\n this.animationFrame$.pipe(\n throttleTime(POLLING_TIME),\n map(() => this.element.closest(NG_ANIMATION_SELECTOR)),\n skipWhile(Boolean),\n take(1),\n ),\n ).subscribe(() => this.element.focus());\n } else {\n this.element.focus();\n }\n }\n}\n","import {\n Directive,\n ElementRef,\n Inject,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk/tokens';\nimport {px} from '@taiga-ui/cdk/utils';\n\nimport {AbstractTuiAutofocusHandler} from './abstract.handler';\n\n// @dynamic\n@Directive()\nexport class TuiIosAutofocusHandler extends AbstractTuiAutofocusHandler {\n constructor(\n @Optional()\n @Self()\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(WINDOW) private readonly windowRef: Window,\n ) {\n super(tuiFocusableComponent, elementRef);\n this.patchCssStyles();\n }\n\n setFocus(): void {\n if (this.isTextFieldElement) {\n this.ngZone.runOutsideAngular(() => this.iosWebkitAutofocus());\n } else {\n this.element.focus();\n }\n }\n\n private iosWebkitAutofocus(): void {\n const fakeInput: HTMLInputElement = this.makeFakeInput();\n const duration = this.getDurationTimeBeforeFocus();\n let fakeFocusTimeoutId = 0;\n let elementFocusTimeoutId = 0;\n\n const blurHandler = (): void => fakeInput.focus({preventScroll: true});\n const focusHandler = (): void => {\n clearTimeout(fakeFocusTimeoutId);\n\n fakeFocusTimeoutId = this.windowRef.setTimeout(() => {\n clearTimeout(elementFocusTimeoutId);\n\n fakeInput.removeEventListener(`blur`, blurHandler);\n fakeInput.removeEventListener(`focus`, focusHandler);\n\n elementFocusTimeoutId = this.windowRef.setTimeout(() => {\n this.element.focus({preventScroll: false});\n fakeInput.remove();\n }, duration);\n });\n };\n\n fakeInput.addEventListener(`blur`, blurHandler, {once: true});\n fakeInput.addEventListener(`focus`, focusHandler);\n\n if (this.insideDialog()) {\n this.windowRef.document.body.appendChild(fakeInput);\n } else {\n this.element.parentElement?.appendChild(fakeInput);\n }\n\n fakeInput.focus({preventScroll: true});\n }\n\n /**\n * @note:\n * emulate textfield position in layout with cursor\n * before focus to real textfield element\n */\n private makeFakeInput(): HTMLInputElement {\n const fakeInput: HTMLInputElement = this.renderer.createElement(`input`);\n const rect: DOMRect = this.element.getBoundingClientRect();\n\n fakeInput.style.height = px(rect.height);\n fakeInput.style.width = px(rect.width / 2);\n fakeInput.style.position = `fixed`;\n fakeInput.style.opacity = `0`;\n fakeInput.style.fontSize = px(16); // disable possible auto zoom\n fakeInput.readOnly = true; // prevent keyboard for fake input\n\n // @note: emulate position cursor before focus to real textfield element\n fakeInput.style.top = px(rect.top);\n fakeInput.style.left = px(rect.left);\n\n return fakeInput;\n }\n\n private getDurationTimeBeforeFocus(): number {\n return (\n parseFloat(\n this.windowRef\n .getComputedStyle(this.element)\n .getPropertyValue(`--tui-duration`),\n ) || 0\n );\n }\n\n /**\n * @note:\n * unfortunately, in older versions of iOS\n * there is a bug that the fake input cursor\n * will move along with the dialog animation\n * and then that dialog will be shaking\n */\n private insideDialog(): boolean {\n return !!this.element.closest(`tui-dialog`);\n }\n\n /**\n * @note:\n * This is necessary so that the viewport isn't recalculated\n * and then the dialogs don't shake.\n *\n * Also, we need to fixed height viewport,\n * so that when focusing the dialogs don't shake\n */\n private patchCssStyles(): void {\n const documentRef = this.windowRef.document;\n\n for (const element of [documentRef.documentElement, documentRef.body]) {\n element.style.setProperty(`overflow`, `auto`);\n element.style.setProperty(`height`, `100%`);\n }\n }\n}\n","import {\n ElementRef,\n InjectionToken,\n NgZone,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {Observable} from 'rxjs';\n\nimport {TuiDefaultAutofocusHandler} from './handlers/default.handler';\nimport {TuiIosAutofocusHandler} from './handlers/ios.handler';\n\nexport interface TuiAutofocusHandler {\n setFocus(): void;\n}\n\nexport const TUI_AUTOFOCUS_HANDLER = new InjectionToken<TuiAutofocusHandler>(\n `Autofocusing handler`,\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport function tuiAutofocusHandlerFactory(\n tuiFocusableComponent: TuiFocusableElementAccessor | null,\n elementRef: ElementRef<HTMLElement>,\n animationFrame$: Observable<number>,\n renderer: Renderer2,\n ngZone: NgZone,\n windowRef: Window,\n isIos: boolean,\n): TuiAutofocusHandler {\n return isIos\n ? new TuiIosAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n renderer,\n ngZone,\n windowRef,\n )\n : new TuiDefaultAutofocusHandler(\n tuiFocusableComponent,\n elementRef,\n animationFrame$,\n );\n}\n\nexport const TUI_AUTOFOCUS_PROVIDERS = [\n {\n provide: TUI_AUTOFOCUS_HANDLER,\n // TODO: replace to useClass in v3.0\n useFactory: tuiAutofocusHandlerFactory,\n deps: [\n [new Optional(), new Self(), TUI_FOCUSABLE_ITEM_ACCESSOR],\n ElementRef,\n ANIMATION_FRAME,\n Renderer2,\n NgZone,\n WINDOW,\n TUI_IS_IOS,\n ],\n },\n];\n","import {AfterViewInit, Directive, Inject, Input} from '@angular/core';\n\nimport {\n TUI_AUTOFOCUS_HANDLER,\n TUI_AUTOFOCUS_PROVIDERS,\n TuiAutofocusHandler,\n} from './autofocus.options';\n\n// TODO: 3.0 change input name to tuiAutoFocus and handle empty string\n@Directive({\n selector: `[tuiAutoFocus]`,\n providers: TUI_AUTOFOCUS_PROVIDERS,\n})\nexport class TuiAutoFocusDirective implements AfterViewInit {\n @Input()\n autoFocus = true;\n\n constructor(\n @Inject(TUI_AUTOFOCUS_HANDLER) private readonly handler: TuiAutofocusHandler,\n ) {}\n\n ngAfterViewInit(): void {\n if (this.autoFocus) {\n this.handler.setFocus();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutoFocusDirective} from './autofocus.directive';\n\n@NgModule({\n declarations: [TuiAutoFocusDirective],\n exports: [TuiAutoFocusDirective],\n})\nexport class TuiAutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAUI,qCACuB,qBAAyD,EACzD,UAAmC;QADnC,0BAAqB,GAArB,qBAAqB,CAAoC;QACzD,eAAU,GAAV,UAAU,CAAyB;KACtD;IAEJ,sBAAc,gDAAO;aAArB;;YACI,QACI,OAAA,IAAI,CAAC,qBAAqB,0CAAE,sBAAsB;gBAClD,IAAI,CAAC,UAAU,CAAC,aAAa,EAC/B;SACL;;;OAAA;IAED,sBAAc,2DAAkB;aAAhC;YACI,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;SAClD;;;OAAA;;;gBAZkC,UAAU;;IAH3B,2BAA2B;QADhD,SAAS,EAAE;OACU,2BAA2B,CAkBhD;IAAD,kCAAC;CAlBD;;ACCA,IAAM,OAAO,GAAG,IAAI,CAAC;AACrB,IAAM,qBAAqB,GAAG,eAAe,CAAC;;IAGE,8CAA2B;IACvE,oCAII,qBA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;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
@@ -7,9 +7,9 @@ var TuiAutofilledStyleComponent = /** @class */ (function () {
7
7
  }
8
8
  TuiAutofilledStyleComponent = __decorate([
9
9
  Component({
10
- template: '',
10
+ template: "",
11
11
  encapsulation: ViewEncapsulation.None,
12
- styles: [".tui-autofill,.tui-autofill input{transition:box-shadow 10ms}.tui-autofill input::-webkit-credit-card-auto-fill-button,.tui-autofill::-webkit-credit-card-auto-fill-button{pointer-events:none;background-color:transparent!important;-webkit-mask-image:none!important}"]
12
+ styles: [".tui-autofill input,input.tui-autofill{transition:box-shadow 10ms}.tui-autofill input::-webkit-credit-card-auto-fill-button,input.tui-autofill::-webkit-credit-card-auto-fill-button{pointer-events:none;background-color:transparent!important;-webkit-mask-image:none!important}"]
13
13
  })
14
14
  ], TuiAutofilledStyleComponent);
15
15
  return TuiAutofilledStyleComponent;
@@ -24,7 +24,7 @@ var TuiAutofilledDirective = /** @class */ (function () {
24
24
  TuiAutofilledDirective.prototype.transitionStartHandler = function (_a) {
25
25
  var propertyName = _a.propertyName, target = _a.target;
26
26
  var _b;
27
- var matchedAutofill = propertyName.includes('box-shadow') && ((_b = target) === null || _b === void 0 ? void 0 : _b.matches('input'));
27
+ var matchedAutofill = propertyName.includes("box-shadow") && ((_b = target) === null || _b === void 0 ? void 0 : _b.matches("input"));
28
28
  if (matchedAutofill) {
29
29
  this.autofilled = !this.autofilled;
30
30
  this.tuiAutofilledChange.emit(this.autofilled);
@@ -34,18 +34,18 @@ var TuiAutofilledDirective = /** @class */ (function () {
34
34
  { type: TuiDirectiveStylesService, decorators: [{ type: Inject, args: [TuiDirectiveStylesService,] }] }
35
35
  ]; };
36
36
  __decorate([
37
- HostBinding('class._autofilled')
37
+ HostBinding("class._autofilled")
38
38
  ], TuiAutofilledDirective.prototype, "autofilled", void 0);
39
39
  __decorate([
40
40
  Output()
41
41
  ], TuiAutofilledDirective.prototype, "tuiAutofilledChange", void 0);
42
42
  __decorate([
43
- HostListener('transitionstart', ['$event'])
43
+ HostListener("transitionstart", ["$event"])
44
44
  ], TuiAutofilledDirective.prototype, "transitionStartHandler", null);
45
45
  TuiAutofilledDirective = __decorate([
46
46
  Directive({
47
- selector: '[tuiAutofilledChange]',
48
- host: { class: 'tui-autofill' },
47
+ selector: "[tuiAutofilledChange]",
48
+ host: { class: "tui-autofill" },
49
49
  }),
50
50
  __param(0, Inject(TuiDirectiveStylesService))
51
51
  ], TuiAutofilledDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-autofilled.js","sources":["ng://@taiga-ui/cdk/directives/autofilled/autofilled-style.component.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.directive.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.module.ts","ng://@taiga-ui/cdk/directives/autofilled/taiga-ui-cdk-directives-autofilled.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./autofilled.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAutofilledStyleComponent {}\n","import {\n Directive,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Output,\n} from '@angular/core';\nimport {TuiDirectiveStylesService} from '@taiga-ui/cdk/services';\n\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@Directive({\n selector: '[tuiAutofilledChange]',\n host: {class: 'tui-autofill'},\n})\nexport class TuiAutofilledDirective {\n @HostBinding('class._autofilled')\n autofilled = false;\n\n @Output()\n readonly tuiAutofilledChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiAutofilledStyleComponent);\n }\n\n @HostListener('transitionstart', ['$event'])\n transitionStartHandler({propertyName, target}: TransitionEvent): void {\n const matchedAutofill =\n propertyName.includes('box-shadow') && (target as Element)?.matches('input');\n\n if (matchedAutofill) {\n this.autofilled = !this.autofilled;\n this.tuiAutofilledChange.emit(this.autofilled);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutofilledDirective} from './autofilled.directive';\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@NgModule({\n exports: [TuiAutofilledDirective],\n entryComponents: [TuiAutofilledStyleComponent],\n declarations: [TuiAutofilledDirective, TuiAutofilledStyleComponent],\n})\nexport class TuiAutofilledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAOA;KAA2C;IAA9B,2BAA2B;QALvC,SAAS,CAAC;YACP,QAAQ,EAAE,EAAE;YAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;SACxC,CAAC;OACW,2BAA2B,CAAG;IAAD,kCAAC;CAA3C;;;ICgBI,gCACuC,eAA0C;QANjF,eAAU,GAAG,KAAK,CAAC;QAGV,wBAAmB,GAAG,IAAI,YAAY,EAAW,CAAC;QAKvD,eAAe,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;KAC7D;IAGD,uDAAsB,GAAtB,UAAuB,EAAuC;YAAtC,8BAAY,EAAE,kBAAM;;QACxC,IAAM,eAAe,GACjB,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAK,MAAkB,0CAAE,OAAO,CAAC,OAAO,EAAC,CAAC;QAEjF,IAAI,eAAe,EAAE;YACjB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACnC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAClD;KACJ;;gBAduD,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;IANrC;QADC,WAAW,CAAC,mBAAmB,CAAC;8DACd;IAGnB;QADC,MAAM,EAAE;uEACkD;IAS3D;QADC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;wEAS3C;IAtBQ,sBAAsB;QAJlC,SAAS,CAAC;YACP,QAAQ,EAAE,uBAAuB;YACjC,IAAI,EAAE,EAAC,KAAK,EAAE,cAAc,EAAC;SAChC,CAAC;QASO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;OAR7B,sBAAsB,CAuBlC;IAAD,6BAAC;CAvBD;;;ICNA;KAAmC;IAAtB,mBAAmB;QAL/B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,sBAAsB,CAAC;YACjC,eAAe,EAAE,CAAC,2BAA2B,CAAC;YAC9C,YAAY,EAAE,CAAC,sBAAsB,EAAE,2BAA2B,CAAC;SACtE,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-autofilled.js","sources":["ng://@taiga-ui/cdk/directives/autofilled/autofilled-style.component.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.directive.ts","ng://@taiga-ui/cdk/directives/autofilled/autofilled.module.ts","ng://@taiga-ui/cdk/directives/autofilled/taiga-ui-cdk-directives-autofilled.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: ``,\n styleUrls: [`./autofilled.style.less`],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAutofilledStyleComponent {}\n","import {\n Directive,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Output,\n} from '@angular/core';\nimport {TuiDirectiveStylesService} from '@taiga-ui/cdk/services';\n\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@Directive({\n selector: `[tuiAutofilledChange]`,\n host: {class: `tui-autofill`},\n})\nexport class TuiAutofilledDirective {\n @HostBinding(`class._autofilled`)\n autofilled = false;\n\n @Output()\n readonly tuiAutofilledChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiAutofilledStyleComponent);\n }\n\n @HostListener(`transitionstart`, [`$event`])\n transitionStartHandler({propertyName, target}: TransitionEvent): void {\n const matchedAutofill =\n propertyName.includes(`box-shadow`) && (target as Element)?.matches(`input`);\n\n if (matchedAutofill) {\n this.autofilled = !this.autofilled;\n this.tuiAutofilledChange.emit(this.autofilled);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiAutofilledDirective} from './autofilled.directive';\nimport {TuiAutofilledStyleComponent} from './autofilled-style.component';\n\n@NgModule({\n exports: [TuiAutofilledDirective],\n entryComponents: [TuiAutofilledStyleComponent],\n declarations: [TuiAutofilledDirective, TuiAutofilledStyleComponent],\n})\nexport class TuiAutofilledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAOA;KAA2C;IAA9B,2BAA2B;QALvC,SAAS,CAAC;YACP,QAAQ,EAAE,EAAE;YAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;SACxC,CAAC;OACW,2BAA2B,CAAG;IAAD,kCAAC;CAA3C;;;ICgBI,gCACuC,eAA0C;QANjF,eAAU,GAAG,KAAK,CAAC;QAGV,wBAAmB,GAAG,IAAI,YAAY,EAAW,CAAC;QAKvD,eAAe,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;KAC7D;IAGD,uDAAsB,GAAtB,UAAuB,EAAuC;YAAtC,8BAAY,EAAE,kBAAM;;QACxC,IAAM,eAAe,GACjB,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAK,MAAkB,0CAAE,OAAO,CAAC,OAAO,EAAC,CAAC;QAEjF,IAAI,eAAe,EAAE;YACjB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACnC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAClD;KACJ;;gBAduD,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;IANrC;QADC,WAAW,CAAC,mBAAmB,CAAC;8DACd;IAGnB;QADC,MAAM,EAAE;uEACkD;IAS3D;QADC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;wEAS3C;IAtBQ,sBAAsB;QAJlC,SAAS,CAAC;YACP,QAAQ,EAAE,uBAAuB;YACjC,IAAI,EAAE,EAAC,KAAK,EAAE,cAAc,EAAC;SAChC,CAAC;QASO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;OAR7B,sBAAsB,CAuBlC;IAAD,6BAAC;CAvBD;;;ICNA;KAAmC;IAAtB,mBAAmB;QAL/B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,sBAAsB,CAAC;YACjC,eAAe,EAAE,CAAC,2BAA2B,CAAC;YAC9C,YAAY,EAAE,CAAC,sBAAsB,EAAE,2BAA2B,CAAC;SACtE,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACVA;;;;;;"}
@@ -6,19 +6,19 @@ var TuiCheckedDirective = /** @class */ (function () {
6
6
  this.element = element;
7
7
  this.renderer = renderer;
8
8
  this.tuiCheckedChange = new EventEmitter();
9
- this.updateProperty('checked', false);
9
+ this.updateProperty("checked", false);
10
10
  }
11
11
  Object.defineProperty(TuiCheckedDirective.prototype, "tuiChecked", {
12
12
  set: function (checked) {
13
- this.updateProperty('checked', checked || false);
14
- this.updateProperty('indeterminate', checked === null);
13
+ this.updateProperty("checked", checked || false);
14
+ this.updateProperty("indeterminate", checked === null);
15
15
  },
16
16
  enumerable: true,
17
17
  configurable: true
18
18
  });
19
19
  TuiCheckedDirective.prototype.onChange = function (_a) {
20
20
  var checked = _a.checked;
21
- this.updateProperty('indeterminate', false);
21
+ this.updateProperty("indeterminate", false);
22
22
  this.tuiCheckedChange.emit(checked);
23
23
  };
24
24
  TuiCheckedDirective.prototype.updateProperty = function (property, value) {
@@ -35,11 +35,11 @@ var TuiCheckedDirective = /** @class */ (function () {
35
35
  Output()
36
36
  ], TuiCheckedDirective.prototype, "tuiCheckedChange", void 0);
37
37
  __decorate([
38
- HostListener('change', ['$event.target'])
38
+ HostListener("change", ["$event.target"])
39
39
  ], TuiCheckedDirective.prototype, "onChange", null);
40
40
  TuiCheckedDirective = __decorate([
41
41
  Directive({
42
- selector: 'input[tuiChecked], input[tuiCheckedChange]',
42
+ selector: "input[tuiChecked], input[tuiCheckedChange]",
43
43
  }),
44
44
  __param(0, Inject(ElementRef)),
45
45
  __param(1, Inject(Renderer2))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-checked.js","sources":["ng://@taiga-ui/cdk/directives/checked/checked.directive.ts","ng://@taiga-ui/cdk/directives/checked/checked.module.ts","ng://@taiga-ui/cdk/directives/checked/taiga-ui-cdk-directives-checked.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Output,\n Renderer2,\n} from '@angular/core';\n\n@Directive({\n selector: 'input[tuiChecked], input[tuiCheckedChange]',\n})\nexport class TuiCheckedDirective {\n @Input()\n set tuiChecked(checked: null | boolean) {\n this.updateProperty('checked', checked || false);\n this.updateProperty('indeterminate', checked === null);\n }\n\n @Output()\n readonly tuiCheckedChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(ElementRef)\n private readonly element: ElementRef<HTMLInputElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n this.updateProperty('checked', false);\n }\n\n @HostListener('change', ['$event.target'])\n onChange({checked}: HTMLInputElement): void {\n this.updateProperty('indeterminate', false);\n this.tuiCheckedChange.emit(checked);\n }\n\n private updateProperty(property: 'checked' | 'indeterminate', value: boolean): void {\n this.renderer.setProperty(this.element.nativeElement, property, value);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCheckedDirective} from './checked.directive';\n\n@NgModule({\n declarations: [TuiCheckedDirective],\n exports: [TuiCheckedDirective],\n})\nexport class TuiCheckedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAwBI,6BAEqB,OAAqC,EAClB,QAAmB;QADtC,YAAO,G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AC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-checked.js","sources":["ng://@taiga-ui/cdk/directives/checked/checked.directive.ts","ng://@taiga-ui/cdk/directives/checked/checked.module.ts","ng://@taiga-ui/cdk/directives/checked/taiga-ui-cdk-directives-checked.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Output,\n Renderer2,\n} from '@angular/core';\n\n@Directive({\n selector: `input[tuiChecked], input[tuiCheckedChange]`,\n})\nexport class TuiCheckedDirective {\n @Input()\n set tuiChecked(checked: null | boolean) {\n this.updateProperty(`checked`, checked || false);\n this.updateProperty(`indeterminate`, checked === null);\n }\n\n @Output()\n readonly tuiCheckedChange = new EventEmitter<boolean>();\n\n constructor(\n @Inject(ElementRef)\n private readonly element: ElementRef<HTMLInputElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n this.updateProperty(`checked`, false);\n }\n\n @HostListener(`change`, [`$event.target`])\n onChange({checked}: HTMLInputElement): void {\n this.updateProperty(`indeterminate`, false);\n this.tuiCheckedChange.emit(checked);\n }\n\n private updateProperty(property: 'checked' | 'indeterminate', value: boolean): void {\n this.renderer.setProperty(this.element.nativeElement, property, value);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCheckedDirective} from './checked.directive';\n\n@NgModule({\n declarations: [TuiCheckedDirective],\n exports: [TuiCheckedDirective],\n})\nexport class TuiCheckedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAwBI,6BAEqB,OAAqC,EAClB,QAAmB;QADtC,YAAO,GAAP,OAAO,CAA8B;QAClB,aAAQ,GAAR,QAAQ,CAAW;QALlD,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;QAOpD,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,KAAK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var _a;
16
16
  var text = tuiGetSelectedText(this.windowRef);
17
17
  if (text) {
18
- (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.setData('text/plain', this.tuiCopyProcessor(text));
18
+ (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.setData("text/plain", this.tuiCopyProcessor(text));
19
19
  }
20
20
  };
21
21
  TuiCopyProcessorDirective.ctorParameters = function () { return [
@@ -26,11 +26,11 @@ var TuiCopyProcessorDirective = /** @class */ (function () {
26
26
  tuiDefaultProp()
27
27
  ], TuiCopyProcessorDirective.prototype, "tuiCopyProcessor", void 0);
28
28
  __decorate([
29
- HostListener('copy.prevent', ['$event'])
29
+ HostListener("copy.prevent", ["$event"])
30
30
  ], TuiCopyProcessorDirective.prototype, "onCopy", null);
31
31
  TuiCopyProcessorDirective = __decorate([
32
32
  Directive({
33
- selector: '[tuiCopyProcessor]',
33
+ selector: "[tuiCopyProcessor]",
34
34
  }),
35
35
  __param(0, Inject(WINDOW))
36
36
  ], TuiCopyProcessorDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-copy-processor.js","sources":["ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.directive.ts","ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.module.ts","ng://@taiga-ui/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, HostListener, Inject, Input} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\nimport {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiCopyProcessor]',\n})\nexport class TuiCopyProcessorDirective {\n @Input()\n @tuiDefaultProp()\n tuiCopyProcessor: TuiStringHandler<string> = identity;\n\n constructor(@Inject(WINDOW) private readonly windowRef: Window) {}\n\n @HostListener('copy.prevent', ['$event'])\n onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.windowRef);\n\n if (text) {\n event.clipboardData?.setData('text/plain', this.tuiCopyProcessor(text));\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCopyProcessorDirective} from './copy-processor.directive';\n\n@NgModule({\n declarations: [TuiCopyProcessorDirective],\n exports: [TuiCopyProcessorDirective],\n})\nexport class TuiCopyProcessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOA;;IASI,mCAA6C,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;QAF9D,qBAAgB,GAA6B,QAAQ,CAAC;KAEY;IAGlE,0CAAM,GAAN,UAAO,KAAqB;;QACxB,IAAM,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhD,IAAI,IAAI,EAAE;YACN,MAAA,KAAK,CAAC,aAAa,0CAAE,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;SAC3E;KACJ;;gBATuD,MAAM,uBAAjD,MAAM,SAAC,MAAM;;IAF1B;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;uEACqC;IAKtD;QADC,YAAY,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC;2DAOxC;IAdQ,yBAAyB;QAHrC,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMe,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;OALlB,yBAAyB,CAerC;IAAD,gCAAC;CAfD;;;ICHA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;YACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-copy-processor.js","sources":["ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.directive.ts","ng://@taiga-ui/cdk/directives/copy-processor/copy-processor.module.ts","ng://@taiga-ui/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, HostListener, Inject, Input} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\nimport {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: `[tuiCopyProcessor]`,\n})\nexport class TuiCopyProcessorDirective {\n @Input()\n @tuiDefaultProp()\n tuiCopyProcessor: TuiStringHandler<string> = identity;\n\n constructor(@Inject(WINDOW) private readonly windowRef: Window) {}\n\n @HostListener(`copy.prevent`, [`$event`])\n onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.windowRef);\n\n if (text) {\n event.clipboardData?.setData(`text/plain`, this.tuiCopyProcessor(text));\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCopyProcessorDirective} from './copy-processor.directive';\n\n@NgModule({\n declarations: [TuiCopyProcessorDirective],\n exports: [TuiCopyProcessorDirective],\n})\nexport class TuiCopyProcessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOA;;IASI,mCAA6C,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;QAF9D,qBAAgB,GAA6B,QAAQ,CAAC;KAEY;IAGlE,0CAAM,GAAN,UAAO,KAAqB;;QACxB,IAAM,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhD,IAAI,IAAI,EAAE;YACN,MAAA,KAAK,CAAC,aAAa,0CAAE,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;SAC3E;KACJ;;gBATuD,MAAM,uBAAjD,MAAM,SAAC,MAAM;;IAF1B;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;uEACqC;IAKtD;QADC,YAAY,CAAC,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC;2DAOxC;IAdQ,yBAAyB;QAHrC,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMe,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;OALlB,yBAAyB,CAerC;IAAD,gCAAC;CAfD;;;ICHA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;YACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACRA;;;;;;"}
@@ -33,17 +33,17 @@ var TuiDragDirective = /** @class */ (function () {
33
33
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
34
34
  ]; };
35
35
  __decorate([
36
- Output('tuiDragStart')
36
+ Output("tuiDragStart")
37
37
  ], TuiDragDirective.prototype, "start", void 0);
38
38
  __decorate([
39
- Output('tuiDragContinues')
39
+ Output("tuiDragContinues")
40
40
  ], TuiDragDirective.prototype, "continues", void 0);
41
41
  __decorate([
42
- Output('tuiDragEnd')
42
+ Output("tuiDragEnd")
43
43
  ], TuiDragDirective.prototype, "end", void 0);
44
44
  TuiDragDirective = __decorate([
45
45
  Directive({
46
- selector: '[tuiDragStart], [tuiDragContinues], [tuiDragEnd]',
46
+ selector: "[tuiDragStart], [tuiDragContinues], [tuiDragEnd]",
47
47
  }),
48
48
  __param(0, Inject(ElementRef))
49
49
  ], TuiDragDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-drag.js","sources":["ng://@taiga-ui/cdk/directives/drag/drag.directive.ts","ng://@taiga-ui/cdk/directives/drag/drag.module.ts","ng://@taiga-ui/cdk/directives/drag/taiga-ui-cdk-directives-drag.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {dragAndDropFrom, TuiDragStage} from '@taiga-ui/cdk/observables';\nimport {Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiDragStart], [tuiDragContinues], [tuiDragEnd]',\n})\nexport class TuiDragDirective {\n private readonly dragAndDropFrom$ = dragAndDropFrom(this.elementRef.nativeElement);\n\n @Output('tuiDragStart')\n readonly start: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Start),\n map(({event}) => event),\n );\n\n @Output('tuiDragContinues')\n readonly continues: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Continues),\n map(({event}) => event),\n );\n\n @Output('tuiDragEnd')\n readonly end: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.End),\n map(({event}) => event),\n );\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<Element>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDragDirective} from './drag.directive';\n\n@NgModule({\n declarations: [TuiDragDirective],\n exports: [TuiDragDirective],\n})\nexport class TuiDragModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IA6BI,0BAEqB,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;QAtBnC,qBAAgB,GAAG,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAG1E,UAAK,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC/D,MAAM,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAuB,CAAC,EACjD,GAAG,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAA,CAAC,CAC1B,CAAC;QAGO,cAAS,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACnE,MAAM,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAA2B,CAAC,EACrD,GAAG,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAA,CAAC,CAC1B,CAAC;QAGO,QAAG,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC7D,MAAM,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAqB,CAAC,EAC/C,GAAG,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAA,CAAC,CAC1B,CAAC;KAKE;;gBAD6B,UAAU,uBADtC,MAAM,SAAC,UAAU;;IAlBtB;QADC,MAAM,CAAC,cAAc,CAAC;mDAIrB;IAGF;QADC,MAAM,CAAC,kBAAkB,CAAC;uDAIzB;IAGF;QADC,MAAM,CAAC,YAAY,CAAC;iDAInB;IAnBO,gBAAgB;QAH5B,SAAS,CAAC;YACP,QAAQ,EAAE,kDAAkD;SAC/D,CAAC;QAuBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAtBd,gBAAgB,CAyB5B;IAAD,uBAAC;CAzBD;;;ICAA;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-drag.js","sources":["ng://@taiga-ui/cdk/directives/drag/drag.directive.ts","ng://@taiga-ui/cdk/directives/drag/drag.module.ts","ng://@taiga-ui/cdk/directives/drag/taiga-ui-cdk-directives-drag.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {dragAndDropFrom, TuiDragStage} from '@taiga-ui/cdk/observables';\nimport {Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\n@Directive({\n selector: `[tuiDragStart], [tuiDragContinues], [tuiDragEnd]`,\n})\nexport class TuiDragDirective {\n private readonly dragAndDropFrom$ = dragAndDropFrom(this.elementRef.nativeElement);\n\n @Output(`tuiDragStart`)\n readonly start: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Start),\n map(({event}) => event),\n );\n\n @Output(`tuiDragContinues`)\n readonly continues: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.Continues),\n map(({event}) => event),\n );\n\n @Output(`tuiDragEnd`)\n readonly end: Observable<MouseEvent> = this.dragAndDropFrom$.pipe(\n filter(({stage}) => stage === TuiDragStage.End),\n map(({event}) => event),\n );\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<Element>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDragDirective} from './drag.directive';\n\n@NgModule({\n declarations: [TuiDragDirective],\n exports: [TuiDragDirective],\n})\nexport class TuiDragModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IA6BI,0BAEqB,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;QAtBnC,qBAAgB,GAAG,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAG1E,UAAK,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC/D,MAAM,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAuB,CAAC,EACjD,GAAG,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAA,CAAC,CAC1B,CAAC;QAGO,cAAS,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACnE,MAAM,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAA2B,CAAC,EACrD,GAAG,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAA,CAAC,CAC1B,CAAC;QAGO,QAAG,GAA2B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC7D,MAAM,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAqB,CAAC,EAC/C,GAAG,CAAC,UAAC,EAAO;gBAAN,gBAAK;YAAM,OAAA,KAAK;SAAA,CAAC,CAC1B,CAAC;KAKE;;gBAD6B,UAAU,uBADtC,MAAM,SAAC,UAAU;;IAlBtB;QADC,MAAM,CAAC,cAAc,CAAC;mDAIrB;IAGF;QADC,MAAM,CAAC,kBAAkB,CAAC;uDAIzB;IAGF;QADC,MAAM,CAAC,YAAY,CAAC;iDAInB;IAnBO,gBAAgB;QAH5B,SAAS,CAAC;YACP,QAAQ,EAAE,kDAAkD;SAC/D,CAAC;QAuBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAtBd,gBAAgB,CAyB5B;IAAD,uBAAC;CAzBD;;;ICAA;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACRA;;;;;;"}
@@ -10,13 +10,13 @@ import { map, filter, switchMap, mapTo, startWith, distinctUntilChanged, takeUnt
10
10
  var TuiDroppableDirective = /** @class */ (function () {
11
11
  function TuiDroppableDirective(_a, destroy$) {
12
12
  var nativeElement = _a.nativeElement;
13
- this.tuiDroppableDropped = typedFromEvent(nativeElement, 'drop').pipe(preventDefault(), map(function (event) { return event.dataTransfer; }), filter(isPresent));
14
- this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, 'dragenter').pipe(switchMap(function (_a) {
13
+ this.tuiDroppableDropped = typedFromEvent(nativeElement, "drop").pipe(preventDefault(), map(function (event) { return event.dataTransfer; }), filter(isPresent));
14
+ this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, "dragenter").pipe(switchMap(function (_a) {
15
15
  var target = _a.target, dataTransfer = _a.dataTransfer;
16
- return merge(typedFromEvent(nativeElement, 'dragleave').pipe(filter(function (event) { return event.target === target; })), typedFromEvent(nativeElement, 'drop')).pipe(mapTo(null), startWith(dataTransfer));
16
+ return merge(typedFromEvent(nativeElement, "dragleave").pipe(filter(function (event) { return event.target === target; })), typedFromEvent(nativeElement, "drop")).pipe(mapTo(null), startWith(dataTransfer));
17
17
  }), distinctUntilChanged(function (a, b) { return (!!a && !!b) || (!a && !b); }));
18
18
  // Required by Drag and Drop API to stop redirecting
19
- typedFromEvent(nativeElement, 'dragover')
19
+ typedFromEvent(nativeElement, "dragover")
20
20
  .pipe(preventDefault(), takeUntil(destroy$))
21
21
  .subscribe();
22
22
  }
@@ -32,7 +32,7 @@ var TuiDroppableDirective = /** @class */ (function () {
32
32
  ], TuiDroppableDirective.prototype, "tuiDroppableDragOverChange", void 0);
33
33
  TuiDroppableDirective = __decorate([
34
34
  Directive({
35
- selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',
35
+ selector: "[tuiDroppableDropped], [tuiDroppableDragOverChange]",
36
36
  providers: [TuiDestroyService],
37
37
  }),
38
38
  __param(0, Inject(ElementRef)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-droppable.js","sources":["ng://@taiga-ui/cdk/directives/droppable/droppable.directive.ts","ng://@taiga-ui/cdk/directives/droppable/droppable.module.ts","ng://@taiga-ui/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {preventDefault, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n mapTo,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n providers: [TuiDestroyService],\n})\nexport class TuiDroppableDirective {\n @Output()\n readonly tuiDroppableDropped: Observable<DataTransfer>;\n\n @Output()\n readonly tuiDroppableDragOverChange: Observable<DataTransfer | null>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n this.tuiDroppableDropped = typedFromEvent(nativeElement, 'drop').pipe(\n preventDefault(),\n map(event => event.dataTransfer),\n filter(isPresent),\n );\n\n this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, 'dragenter').pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n typedFromEvent(nativeElement, 'dragleave').pipe(\n filter(event => event.target === target),\n ),\n typedFromEvent(nativeElement, 'drop'),\n ).pipe(mapTo(null), startWith(dataTransfer)),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n\n // Required by Drag and Drop API to stop redirecting\n typedFromEvent(nativeElement, 'dragover')\n .pipe(preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDroppableDirective} from './droppable.directive';\n\n@NgModule({\n declarations: [TuiDroppableDirective],\n exports: [TuiDroppableDirective],\n})\nexport class TuiDroppableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;;IAYI,+BACwB,EAAwC,EACjC,QAA0B;YADhC,gCAAa;QAGlC,IAAI,CAAC,mBAAmB,GAAG,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,IAAI,CACjE,cAAc,EAAE,EAChB,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,YAAY,GAAA,CAAC,EAChC,MAAM,CAAC,SAAS,CAAC,CACpB,CAAC;QAEF,IAAI,CAAC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O,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-droppable.js","sources":["ng://@taiga-ui/cdk/directives/droppable/droppable.directive.ts","ng://@taiga-ui/cdk/directives/droppable/droppable.module.ts","ng://@taiga-ui/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {preventDefault, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n mapTo,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: `[tuiDroppableDropped], [tuiDroppableDragOverChange]`,\n providers: [TuiDestroyService],\n})\nexport class TuiDroppableDirective {\n @Output()\n readonly tuiDroppableDropped: Observable<DataTransfer>;\n\n @Output()\n readonly tuiDroppableDragOverChange: Observable<DataTransfer | null>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n this.tuiDroppableDropped = typedFromEvent(nativeElement, `drop`).pipe(\n preventDefault(),\n map(event => event.dataTransfer),\n filter(isPresent),\n );\n\n this.tuiDroppableDragOverChange = typedFromEvent(nativeElement, `dragenter`).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n typedFromEvent(nativeElement, `dragleave`).pipe(\n filter(event => event.target === target),\n ),\n typedFromEvent(nativeElement, `drop`),\n ).pipe(mapTo(null), startWith(dataTransfer)),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n\n // Required by Drag and Drop API to stop redirecting\n typedFromEvent(nativeElement, `dragover`)\n .pipe(preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDroppableDirective} from './droppable.directive';\n\n@NgModule({\n declarations: [TuiDroppableDirective],\n exports: [TuiDroppableDirective],\n})\nexport class TuiDroppableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;;IAYI,+BACwB,EAAwC,EACjC,QAA0B;YADhC,gCAAa;QAGlC,IAAI,CAAC,mBAAmB,GAAG,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,IAAI,CACjE,cAAc,EAAE,EAChB,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,YAAY,GAAA,CAAC,EAChC,MAAM,CAAC,SAAS,CAAC,CACpB,CAAC;QAEF,IAAI,CAAC,0BAA0B,GAAG,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,IAAI,CAC7E,SAAS,CAAC,UAAC,EAAsB;gBAArB,kBAAM,EAAE,8BAAY;YAC5B,OAAA,KAAK,CACD,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,IAAI,CAC3C,MAAM,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,MAAM,KAAK,MAAM,GAAA,CAAC,CAC3C,EACD,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,CACxC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;SAAA,CAC/C,EACD,oBAAoB,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAA,CAAC,CAC7D,CAAC;;QAGF,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC;aACpC,IAAI,CAAC,cAAc,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC3C,SAAS,EAAE,CAAC;KACpB;;gBAzBwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACmB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;;IAP7B;QADC,MAAM,EAAE;sEAC8C;IAGvD;QADC,MAAM,EAAE;6EAC4D;IAL5D,qBAAqB;QAJjC,SAAS,CAAC;YACP,QAAQ,EAAE,qDAAqD;YAC/D,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QASO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OATrB,qBAAqB,CAkCjC;IAAD,4BAAC;CAlCD;;;ICZA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
@@ -12,8 +12,8 @@ var TuiElementDirective = /** @class */ (function (_super) {
12
12
  ]; };
13
13
  TuiElementDirective = __decorate([
14
14
  Directive({
15
- selector: '[tuiElement]',
16
- exportAs: 'elementRef',
15
+ selector: "[tuiElement]",
16
+ exportAs: "elementRef",
17
17
  }),
18
18
  __param(0, Inject(ElementRef))
19
19
  ], TuiElementDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-element.js","sources":["ng://@taiga-ui/cdk/directives/element/element.directive.ts","ng://@taiga-ui/cdk/directives/element/element.module.ts","ng://@taiga-ui/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef, Inject} from '@angular/core';\n\n@Directive({\n selector: '[tuiElement]',\n exportAs: 'elementRef',\n})\nexport class TuiElementDirective<T extends Element = HTMLElement> extends ElementRef<T> {\n constructor(@Inject(ElementRef) {nativeElement}: ElementRef<T>) {\n super(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiElementDirective} from './element.directive';\n\n@NgModule({\n declarations: [TuiElementDirective],\n exports: [TuiElementDirective],\n})\nexport class TuiElementModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAM0E,uCAAa;IACnF,6BAAgC,EAA8B;YAA7B,gCAAa;eAC1C,kBAAM,aAAa,CAAC;KACvB;;gBAFgD,UAAU,uBAA9C,MAAM,SAAC,UAAU;;IADrB,mBAAmB;QAJ/B,SAAS,CAAC;YACP,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,YAAY;SACzB,CAAC;QAEe,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OADtB,mBAAmB,CAI/B;IAAD,0BAAC;CAAA,CAJyE,UAAU;;;ICEpF;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-element.js","sources":["ng://@taiga-ui/cdk/directives/element/element.directive.ts","ng://@taiga-ui/cdk/directives/element/element.module.ts","ng://@taiga-ui/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef, Inject} from '@angular/core';\n\n@Directive({\n selector: `[tuiElement]`,\n exportAs: `elementRef`,\n})\nexport class TuiElementDirective<T extends Element = HTMLElement> extends ElementRef<T> {\n constructor(@Inject(ElementRef) {nativeElement}: ElementRef<T>) {\n super(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiElementDirective} from './element.directive';\n\n@NgModule({\n declarations: [TuiElementDirective],\n exports: [TuiElementDirective],\n})\nexport class TuiElementModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAM0E,uCAAa;IACnF,6BAAgC,EAA8B;YAA7B,gCAAa;eAC1C,kBAAM,aAAa,CAAC;KACvB;;gBAFgD,UAAU,uBAA9C,MAAM,SAAC,UAAU;;IADrB,mBAAmB;QAJ/B,SAAS,CAAC;YACP,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,YAAY;SACzB,CAAC;QAEe,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OADtB,mBAAmB,CAI/B;IAAD,0BAAC;CAAA,CAJyE,UAAU;;;ICEpF;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
@@ -23,7 +23,7 @@ var TuiFocusTrapDirective = /** @class */ (function () {
23
23
  });
24
24
  }
25
25
  TuiFocusTrapDirective.prototype.onBlur = function () {
26
- this.renderer.removeAttribute(this.elementRef.nativeElement, 'tabIndex');
26
+ this.renderer.removeAttribute(this.elementRef.nativeElement, "tabIndex");
27
27
  };
28
28
  TuiFocusTrapDirective.prototype.onFocusIn = function (node) {
29
29
  if (containsOrAfter(this.elementRef.nativeElement, node)) {
@@ -57,16 +57,16 @@ var TuiFocusTrapDirective = /** @class */ (function () {
57
57
  { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] }
58
58
  ]; };
59
59
  __decorate([
60
- HostListener('blur')
60
+ HostListener("blur")
61
61
  ], TuiFocusTrapDirective.prototype, "onBlur", null);
62
62
  __decorate([
63
- HostListener('window:focusin.silent', ['$event.target'])
63
+ HostListener("window:focusin.silent", ["$event.target"])
64
64
  ], TuiFocusTrapDirective.prototype, "onFocusIn", null);
65
65
  TuiFocusTrapDirective = __decorate([
66
66
  Directive({
67
- selector: '[tuiFocusTrap]',
67
+ selector: "[tuiFocusTrap]",
68
68
  host: {
69
- tabIndex: '0',
69
+ tabIndex: "0",
70
70
  },
71
71
  }),
72
72
  __param(0, Inject(DOCUMENT)),