@taiga-ui/kit 2.52.0 → 2.53.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 (407) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js +1 -0
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-action.umd.js +1 -1
  6. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  8. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +1 -1
  10. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +1 -1
  12. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-files.umd.js +2 -2
  14. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-files.umd.min.js +1 -1
  16. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -1
  18. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  20. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-input-files.umd.js +1 -1
  22. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-input-files.umd.min.js +1 -1
  24. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +1 -1
  26. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  28. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-input-month.umd.js +1 -1
  30. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  32. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-input-number.umd.js +8 -2
  34. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  36. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +7 -0
  38. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  40. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-phone.umd.js +1 -0
  42. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-range.umd.js +1 -1
  45. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
  47. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-input-slider.umd.js +1 -1
  49. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  51. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-tag.umd.js +1 -1
  53. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  55. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +1 -1
  57. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +1 -1
  59. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-multi-select.umd.js +1 -0
  61. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-pagination.umd.js +3 -2
  64. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  66. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +1 -1
  68. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +1 -1
  70. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-progress.umd.js +2 -0
  72. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  75. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  77. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-select-option.umd.js +1 -1
  79. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-select-option.umd.min.js +1 -1
  81. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-slider.umd.js +1 -1
  83. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-slider.umd.min.js +1 -1
  85. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-tabs.umd.js +7 -5
  87. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-text-area.umd.js +1 -1
  91. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  93. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-tree.umd.js +2 -1
  95. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +2 -12
  99. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +1 -9
  103. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-providers.umd.js +6 -0
  107. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-kit-utils-dom.umd.js +14 -0
  110. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-utils-dom.umd.min.js +1 -1
  112. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-kit-utils-files.umd.js +12 -0
  114. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-utils-files.umd.min.js +1 -1
  116. package/bundles/taiga-ui-kit-utils-files.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-kit-utils-format.umd.js +4 -0
  118. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-utils-format.umd.min.js +1 -1
  120. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-kit-utils-mask.umd.js +6 -0
  122. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  123. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +1 -1
  124. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-kit-utils-math.umd.js +2 -2
  126. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-utils-math.umd.min.js +1 -1
  128. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +10 -0
  130. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js +1 -1
  132. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  133. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  134. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  135. package/components/files/taiga-ui-kit-components-files.metadata.json +1 -1
  136. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  137. package/components/input-files/taiga-ui-kit-components-input-files.metadata.json +1 -1
  138. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  139. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  140. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  141. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  142. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  143. package/components/input-phone-international/utils/extract-value-from-event.d.ts +4 -0
  144. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  145. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  146. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  147. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  148. package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.metadata.json +1 -1
  149. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  150. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -1
  151. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  152. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  153. package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
  154. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  155. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  156. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  157. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  158. package/directives/dropdown-context/dropdown-context.directive.d.ts +0 -1
  159. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  160. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  161. package/esm2015/abstract/input-slider.js +2 -1
  162. package/esm2015/components/action/action.component.js +2 -2
  163. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
  164. package/esm2015/components/files/file/file.component.js +2 -2
  165. package/esm2015/components/files/files.component.js +2 -2
  166. package/esm2015/components/input-file/file/file.component.js +2 -2
  167. package/esm2015/components/input-files/input-files.component.js +2 -2
  168. package/esm2015/components/input-month/input-month.component.js +2 -2
  169. package/esm2015/components/input-month-range/input-month-range.component.js +2 -2
  170. package/esm2015/components/input-number/input-number.component.js +9 -3
  171. package/esm2015/components/input-phone/input-phone.providers.js +2 -1
  172. package/esm2015/components/input-phone-international/const/countries.js +2 -1
  173. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +6 -1
  174. package/esm2015/components/input-range/input-range.component.js +2 -2
  175. package/esm2015/components/input-slider/input-slider.component.js +2 -2
  176. package/esm2015/components/input-tag/input-tag.component.js +2 -2
  177. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -1
  178. package/esm2015/components/multi-select-option/multi-select-option.component.js +2 -2
  179. package/esm2015/components/pagination/pagination.component.js +5 -4
  180. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +2 -2
  181. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +3 -1
  182. package/esm2015/components/range/range.component.js +2 -2
  183. package/esm2015/components/select-option/select-option.component.js +2 -2
  184. package/esm2015/components/slider/slider-old.component.js +2 -2
  185. package/esm2015/components/tabs/tab/tab.component.js +1 -1
  186. package/esm2015/components/tabs/tab/tab.providers.js +2 -1
  187. package/esm2015/components/tabs/tabs/tabs.component.js +3 -3
  188. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -3
  189. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -1
  190. package/esm2015/components/text-area/text-area.component.js +2 -2
  191. package/esm2015/components/tree/components/tree-item/tree-item.providers.js +2 -1
  192. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +2 -2
  193. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +4 -14
  194. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +3 -11
  195. package/esm2015/providers/month-formatter.provider.js +5 -1
  196. package/esm2015/providers/specific-dropdown-controllers.js +3 -1
  197. package/esm2015/utils/dom/get-word-range.js +4 -1
  198. package/esm2015/utils/dom/scroll-to-element.js +6 -1
  199. package/esm2015/utils/dom/set-range-offset.js +4 -1
  200. package/esm2015/utils/files/format-size.js +6 -1
  201. package/esm2015/utils/files/get-accept-array.js +6 -1
  202. package/esm2015/utils/format/string-hash-to-hsl.js +4 -1
  203. package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +6 -1
  204. package/esm2015/utils/math/horizontal-direction-to-number.js +2 -2
  205. package/esm2015/utils/miscellaneous/get-precision.js +4 -1
  206. package/esm2015/utils/miscellaneous/is-flat.js +6 -1
  207. package/esm5/abstract/input-slider.js +2 -1
  208. package/esm5/components/action/action.component.js +2 -2
  209. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
  210. package/esm5/components/files/file/file.component.js +2 -2
  211. package/esm5/components/files/files.component.js +2 -2
  212. package/esm5/components/input-file/file/file.component.js +2 -2
  213. package/esm5/components/input-files/input-files.component.js +2 -2
  214. package/esm5/components/input-month/input-month.component.js +2 -2
  215. package/esm5/components/input-month-range/input-month-range.component.js +2 -2
  216. package/esm5/components/input-number/input-number.component.js +9 -3
  217. package/esm5/components/input-phone/input-phone.providers.js +2 -1
  218. package/esm5/components/input-phone-international/const/countries.js +2 -1
  219. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +6 -1
  220. package/esm5/components/input-range/input-range.component.js +2 -2
  221. package/esm5/components/input-slider/input-slider.component.js +2 -2
  222. package/esm5/components/input-tag/input-tag.component.js +2 -2
  223. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -1
  224. package/esm5/components/multi-select-option/multi-select-option.component.js +2 -2
  225. package/esm5/components/pagination/pagination.component.js +5 -4
  226. package/esm5/components/pdf-viewer/pdf-viewer.component.js +2 -2
  227. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +3 -1
  228. package/esm5/components/range/range.component.js +2 -2
  229. package/esm5/components/select-option/select-option.component.js +2 -2
  230. package/esm5/components/slider/slider-old.component.js +2 -2
  231. package/esm5/components/tabs/tab/tab.component.js +1 -1
  232. package/esm5/components/tabs/tab/tab.providers.js +2 -1
  233. package/esm5/components/tabs/tabs/tabs.component.js +3 -3
  234. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -3
  235. package/esm5/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -1
  236. package/esm5/components/text-area/text-area.component.js +2 -2
  237. package/esm5/components/tree/components/tree-item/tree-item.providers.js +2 -1
  238. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +2 -2
  239. package/esm5/directives/dropdown-context/dropdown-context.directive.js +4 -14
  240. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +3 -11
  241. package/esm5/providers/month-formatter.provider.js +5 -1
  242. package/esm5/providers/specific-dropdown-controllers.js +3 -1
  243. package/esm5/utils/dom/get-word-range.js +4 -1
  244. package/esm5/utils/dom/scroll-to-element.js +6 -1
  245. package/esm5/utils/dom/set-range-offset.js +4 -1
  246. package/esm5/utils/files/format-size.js +6 -1
  247. package/esm5/utils/files/get-accept-array.js +6 -1
  248. package/esm5/utils/format/string-hash-to-hsl.js +4 -1
  249. package/esm5/utils/mask/create-auto-corrected-date-pipe.js +6 -1
  250. package/esm5/utils/math/horizontal-direction-to-number.js +2 -2
  251. package/esm5/utils/miscellaneous/get-precision.js +4 -1
  252. package/esm5/utils/miscellaneous/is-flat.js +6 -1
  253. package/fesm2015/taiga-ui-kit-abstract.js +1 -0
  254. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  255. package/fesm2015/taiga-ui-kit-components-action.js +1 -1
  256. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  257. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +1 -1
  258. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  259. package/fesm2015/taiga-ui-kit-components-files.js +2 -2
  260. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  261. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -1
  262. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  263. package/fesm2015/taiga-ui-kit-components-input-files.js +1 -1
  264. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  265. package/fesm2015/taiga-ui-kit-components-input-month-range.js +1 -1
  266. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  267. package/fesm2015/taiga-ui-kit-components-input-month.js +1 -1
  268. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  269. package/fesm2015/taiga-ui-kit-components-input-number.js +8 -2
  270. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  271. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +7 -1
  272. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  273. package/fesm2015/taiga-ui-kit-components-input-phone.js +1 -0
  274. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  275. package/fesm2015/taiga-ui-kit-components-input-range.js +1 -1
  276. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  277. package/fesm2015/taiga-ui-kit-components-input-slider.js +1 -1
  278. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  279. package/fesm2015/taiga-ui-kit-components-input-tag.js +1 -1
  280. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  281. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +1 -1
  282. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  283. package/fesm2015/taiga-ui-kit-components-multi-select.js +1 -0
  284. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  285. package/fesm2015/taiga-ui-kit-components-pagination.js +4 -3
  286. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  287. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +1 -1
  288. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  289. package/fesm2015/taiga-ui-kit-components-progress.js +2 -0
  290. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  291. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  292. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  293. package/fesm2015/taiga-ui-kit-components-select-option.js +1 -1
  294. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  295. package/fesm2015/taiga-ui-kit-components-slider.js +1 -1
  296. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  297. package/fesm2015/taiga-ui-kit-components-tabs.js +7 -5
  298. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  299. package/fesm2015/taiga-ui-kit-components-text-area.js +1 -1
  300. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  301. package/fesm2015/taiga-ui-kit-components-tree.js +2 -1
  302. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  303. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +3 -13
  304. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  305. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +2 -10
  306. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  307. package/fesm2015/taiga-ui-kit-providers.js +6 -0
  308. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  309. package/fesm2015/taiga-ui-kit-utils-dom.js +12 -1
  310. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  311. package/fesm2015/taiga-ui-kit-utils-files.js +11 -1
  312. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  313. package/fesm2015/taiga-ui-kit-utils-format.js +4 -1
  314. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  315. package/fesm2015/taiga-ui-kit-utils-mask.js +6 -1
  316. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  317. package/fesm2015/taiga-ui-kit-utils-math.js +2 -2
  318. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  319. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +9 -1
  320. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  321. package/fesm5/taiga-ui-kit-abstract.js +1 -0
  322. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  323. package/fesm5/taiga-ui-kit-components-action.js +1 -1
  324. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  325. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +1 -1
  326. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  327. package/fesm5/taiga-ui-kit-components-files.js +2 -2
  328. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  329. package/fesm5/taiga-ui-kit-components-input-file.js +1 -1
  330. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  331. package/fesm5/taiga-ui-kit-components-input-files.js +1 -1
  332. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  333. package/fesm5/taiga-ui-kit-components-input-month-range.js +1 -1
  334. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  335. package/fesm5/taiga-ui-kit-components-input-month.js +1 -1
  336. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  337. package/fesm5/taiga-ui-kit-components-input-number.js +8 -2
  338. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  339. package/fesm5/taiga-ui-kit-components-input-phone-international.js +7 -1
  340. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  341. package/fesm5/taiga-ui-kit-components-input-phone.js +1 -0
  342. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  343. package/fesm5/taiga-ui-kit-components-input-range.js +1 -1
  344. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  345. package/fesm5/taiga-ui-kit-components-input-slider.js +1 -1
  346. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  347. package/fesm5/taiga-ui-kit-components-input-tag.js +1 -1
  348. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  349. package/fesm5/taiga-ui-kit-components-multi-select-option.js +1 -1
  350. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  351. package/fesm5/taiga-ui-kit-components-multi-select.js +1 -0
  352. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  353. package/fesm5/taiga-ui-kit-components-pagination.js +4 -3
  354. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  355. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +1 -1
  356. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  357. package/fesm5/taiga-ui-kit-components-progress.js +2 -0
  358. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  359. package/fesm5/taiga-ui-kit-components-range.js +1 -1
  360. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  361. package/fesm5/taiga-ui-kit-components-select-option.js +1 -1
  362. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  363. package/fesm5/taiga-ui-kit-components-slider.js +1 -1
  364. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  365. package/fesm5/taiga-ui-kit-components-tabs.js +7 -5
  366. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  367. package/fesm5/taiga-ui-kit-components-text-area.js +1 -1
  368. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  369. package/fesm5/taiga-ui-kit-components-tree.js +2 -1
  370. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  371. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +3 -13
  372. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  373. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +2 -10
  374. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  375. package/fesm5/taiga-ui-kit-providers.js +6 -0
  376. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  377. package/fesm5/taiga-ui-kit-utils-dom.js +12 -1
  378. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  379. package/fesm5/taiga-ui-kit-utils-files.js +11 -1
  380. package/fesm5/taiga-ui-kit-utils-files.js.map +1 -1
  381. package/fesm5/taiga-ui-kit-utils-format.js +4 -1
  382. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  383. package/fesm5/taiga-ui-kit-utils-mask.js +6 -1
  384. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  385. package/fesm5/taiga-ui-kit-utils-math.js +2 -2
  386. package/fesm5/taiga-ui-kit-utils-math.js.map +1 -1
  387. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +9 -1
  388. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  389. package/package.json +4 -4
  390. package/providers/month-formatter.provider.d.ts +3 -0
  391. package/providers/taiga-ui-kit-providers.metadata.json +1 -1
  392. package/utils/dom/get-word-range.d.ts +2 -0
  393. package/utils/dom/scroll-to-element.d.ts +4 -0
  394. package/utils/dom/set-range-offset.d.ts +2 -0
  395. package/utils/dom/taiga-ui-kit-utils-dom.metadata.json +1 -1
  396. package/utils/files/format-size.d.ts +4 -0
  397. package/utils/files/get-accept-array.d.ts +4 -0
  398. package/utils/files/taiga-ui-kit-utils-files.metadata.json +1 -1
  399. package/utils/format/string-hash-to-hsl.d.ts +2 -0
  400. package/utils/format/taiga-ui-kit-utils-format.metadata.json +1 -1
  401. package/utils/mask/create-auto-corrected-date-pipe.d.ts +4 -0
  402. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  403. package/utils/math/horizontal-direction-to-number.d.ts +1 -1
  404. package/utils/math/taiga-ui-kit-utils-math.metadata.json +1 -1
  405. package/utils/miscellaneous/get-precision.d.ts +2 -0
  406. package/utils/miscellaneous/is-flat.d.ts +4 -0
  407. package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.directive.ts","ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","create","TuiDropdownContextDirective","elementRef","documentRef","destroy$","componentFactoryResolver","injector","portalService","activeZone","_this","_super","this","lastClickedClientRect","getClientRectFromDot","content","refresh$","EMPTY","context","close","closeDropdownBox","tuiActiveZoneChange","pipe","filter","isActive","takeUntil","subscribe","TypeError","String","__","constructor","__extends","_b","_a","dropdownBoxRef","instance","contentElementRef","nativeElement","onHostClick","onContextMenu","x","y","openDropdown","onAnotherContextOpen","contains","onArrow","event","down","activeElement","getNativeFocused","focusInside","dropdownContent","preventDefault","nextEl","nextElementSibling","initial","checkIsFocusableElement","focusable","getClosestFocusable","setNativeFocused","onKeyDownEsc","stopPropagation","openDropdownBox","top","bottom","left","right","height","width","element","ElementRef","Document","type","Inject","args","DOCUMENT","Observable","TuiDestroyService","ComponentFactoryResolver","Injector","TuiPortalService","TuiActiveZoneDirective","Input","tuiDefaultProp","HostListener","TuiDropdownContextDirective_1","Directive","selector","providers","provide","TUI_DROPDOWN_DIRECTIVE","useExisting","forwardRef","AbstractTuiDropdown","TuiDropdownContextModule","NgModule","imports","TuiDropdownBoxModule","declarations","exports"],"mappings":"qtBAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,S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AAU,SACtDA,EAAAA,aAAa,2BAA4B,CAAC,SAAU,uCAwBrDpG,EAAA,CADCoG,EAAAA,aAAa,uBAAwB,CAAC,6CA1F9BlF,EAA2BmF,EAAArG,EAAA,CAXvCsG,EAAAA,UAAU,CACPC,SAAU,uBACVC,UAAW,CACPX,EAAAA,kBACAI,EAAAA,uBACA,CACIQ,QAASC,EAAAA,uBACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAP,SAoBjCvF,EAAA,EAAA2E,EAAAA,OAAOE,EAAAA,WACP7E,EAAA,EAAA2E,EAAAA,OAAOI,EAAAA,oBACP/E,EAAA,EAAA2E,EAAAA,OAAOK,EAAAA,2BAEPhF,EAAA,EAAA2E,EAAAA,OAAOM,EAAAA,WACPjF,EAAA,EAAA2E,EAAAA,OAAOO,EAAAA,oBArBH9E,IACD2F,EAAAA,kCC5BZ,SAAAC,KAAuC,OAA1BA,EAAwB9G,EAAA,CALpC+G,EAAAA,SAAS,CACNC,QAAS,CAACC,EAAAA,sBACVC,aAAc,CAAChG,GACfiG,QAAS,CAACjG,MAED4F","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {DOCUMENT} from '@angular/common';\nimport {\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n} from '@angular/core';\nimport {\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown, TUI_DROPDOWN_DIRECTIVE, TuiDropdown} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Observable} from 'rxjs';\nimport {filter, takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: '[tuiDropdownContext]',\n providers: [\n TuiDestroyService,\n TuiActiveZoneDirective,\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownContextDirective),\n },\n ],\n})\nexport class TuiDropdownContextDirective\n extends AbstractTuiDropdown\n implements TuiDropdown\n{\n private lastClickedClientRect: ClientRect = this.getClientRectFromDot(0, 0);\n\n @Input('tuiDropdownContext')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n readonly refresh$ = EMPTY;\n\n readonly context = {close: () => this.closeDropdownBox()};\n\n constructor(\n protected readonly elementRef: ElementRef,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService) portalService: TuiPortalService,\n readonly activeZone: TuiActiveZoneDirective,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n\n activeZone.tuiActiveZoneChange\n .pipe(\n filter(isActive => !isActive),\n takeUntil(destroy$),\n )\n .subscribe(() => this.closeDropdownBox());\n }\n\n get clientRect(): ClientRect {\n return this.lastClickedClientRect;\n }\n\n get fixed(): boolean {\n return true;\n }\n\n private get dropdownContent(): HTMLElement | null {\n return this.dropdownBoxRef?.instance.contentElementRef?.nativeElement || null;\n }\n\n @HostListener('click')\n onHostClick(): void {\n this.closeDropdownBox();\n }\n\n @HostListener('contextmenu.prevent', ['$event.clientX', '$event.clientY'])\n onContextMenu(x: number, y: number): void {\n this.closeDropdownBox();\n this.openDropdown(x, y);\n }\n\n @HostListener('document:contextmenu', ['$event.target'])\n onAnotherContextOpen(target: HTMLElement): void {\n const isAnotherContextOpened = !this.elementRef.nativeElement.contains(target);\n\n if (isAnotherContextOpened) {\n this.closeDropdownBox();\n }\n }\n\n @HostListener('document:keydown.arrowDown', ['$event', 'true'])\n @HostListener('document:keydown.arrowUp', ['$event', 'false'])\n onArrow(event: KeyboardEvent, down: boolean): void {\n const activeElement = getNativeFocused(this.documentRef);\n const focusInside = activeElement && this.activeZone.contains(activeElement);\n\n if (!this.dropdownContent || focusInside) {\n return;\n }\n\n event.preventDefault();\n\n const nextEl = this.dropdownContent.nextElementSibling;\n const initial =\n down || !this.checkIsFocusableElement(nextEl) ? this.dropdownContent : nextEl;\n const focusable = getClosestFocusable(initial, !down, this.dropdownContent);\n\n if (focusable === null) {\n return;\n }\n\n setNativeFocused(focusable);\n }\n\n @HostListener('document:keydown.esc', ['$event'])\n onKeyDownEsc(event: KeyboardEvent): void {\n if (!this.dropdownContent) {\n return;\n }\n\n event.stopPropagation();\n this.closeDropdownBox();\n }\n\n private openDropdown(x: number, y: number): void {\n this.lastClickedClientRect = this.getClientRectFromDot(x, y);\n this.openDropdownBox();\n }\n\n private getClientRectFromDot(x: number, y: number): ClientRect {\n return {\n top: y,\n bottom: y,\n left: x,\n right: x,\n height: 0,\n width: 0,\n };\n }\n\n private checkIsFocusableElement(element: Element | null): element is HTMLElement {\n return !!element && 'focus' in element && 'blur' in element;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core';\n\nimport {TuiDropdownContextDirective} from './dropdown-context.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownContextDirective],\n exports: [TuiDropdownContextDirective],\n})\nexport class TuiDropdownContextModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.directive.ts","ng://@taiga-ui/kit/directives/dropdown-context/dropdown-context.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","create","TuiDropdownContextDirective","elementRef","documentRef","destroy$","componentFactoryResolver","injector","portalService","activeZone","_this","_super","this","lastClickedClientRect","EMPTY_CLIENT_RECT","content","refresh$","EMPTY","context","close","closeDropdownBox","tuiActiveZoneChange","pipe","filter","isActive","takeUntil","subscribe","TypeError","String","__","constructor","__extends","_b","_a","dropdownBoxRef","instance","contentElementRef","nativeElement","onHostClick","onContextMenu","x","y","openDropdown","onAnotherContextOpen","contains","onArrow","event","down","activeElement","getNativeFocused","focusInside","dropdownContent","preventDefault","nextEl","nextElementSibling","initial","checkIsFocusableElement","focusable","getClosestFocusable","setNativeFocused","onKeyDownEsc","stopPropagation","tuiPointToClientRect","openDropdownBox","element","ElementRef","Document","type","Inject","args","DOCUMENT","Observable","TuiDestroyService","ComponentFactoryResolver","Injector","TuiPortalService","TuiActiveZoneDirective","Input","tuiDefaultProp","HostListener","TuiDropdownContextDirective_1","Directive","selector","providers","provide","TUI_DROPDOWN_DIRECTIVE","useExisting","forwardRef","AbstractTuiDropdown","TuiDropdownContextModule","NgModule","imports","TuiDropdownBoxModule","declarations","exports"],"mappings":"qtBAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,MAC3EN,EAAGC,IAkCrB,SAASS,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2Hd,EAAvHe,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOZ,OAAOiB,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAAStB,EAAIW,EAAWW,MAAIJ,GAAKH,EAAI,EAAIf,EAAEkB,GAAKH,EAAI,EAAIf,EAAEY,EAAQC,EAAKK,GAAKlB,EAAEY,EAAQC,KAASK,GAChJ,OAAOH,EAAI,GAAKG,GAAKhB,OAAOqB,eAAeX,EAAQC,EAAKK,GAAIA,EAGzD,SAASM,EAAQC,EAAYC,GAChC,OAAO,SAAUd,EAAQC,GAAOa,EAAUd,EAAQC,EAAKY,IA6C9BvB,OAAOyB,OA0GXzB,OAAOyB,yBChK5B,SAAAC,EACuBC,EACgBC,EACRC,EAE3BC,EACkBC,EACQC,EACjBC,GARb,IA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,sBACNC,EAAAA,gDAwCD9F,EAAA,CADC+F,EAAAA,aAAa,0CAMd/F,EAAA,CADC+F,EAAAA,aAAa,sBAAuB,CAAC,iBAAkB,sDAOxD/F,EAAA,CADC+F,EAAAA,aAAa,uBAAwB,CAAC,4DAWvC/F,EAAA,CAFC+F,EAAAA,aAAa,6BAA8B,CAAC,SAAU,SACtDA,EAAAA,aAAa,2BAA4B,CAAC,SAAU,uCAwBrD/F,EAAA,CADC+F,EAAAA,aAAa,uBAAwB,CAAC,6CA1F9B7E,EAA2B8E,EAAAhG,EAAA,CAXvCiG,EAAAA,UAAU,CACPC,SAAU,uBACVC,UAAW,CACPX,EAAAA,kBACAI,EAAAA,uBACA,CACIQ,QAASC,EAAAA,uBACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAP,SAoBjClF,EAAA,EAAAsE,EAAAA,OAAOE,EAAAA,WACPxE,EAAA,EAAAsE,EAAAA,OAAOI,EAAAA,oBACP1E,EAAA,EAAAsE,EAAAA,OAAOK,EAAAA,2BAEP3E,EAAA,EAAAsE,EAAAA,OAAOM,EAAAA,WACP5E,EAAA,EAAAsE,EAAAA,OAAOO,EAAAA,oBArBHzE,IACDsF,EAAAA,kCC9BZ,SAAAC,KAAuC,OAA1BA,EAAwBzG,EAAA,CALpC0G,EAAAA,SAAS,CACNC,QAAS,CAACC,EAAAA,sBACVC,aAAc,CAAC3F,GACf4F,QAAS,CAAC5F,MAEDuF","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {DOCUMENT} from '@angular/common';\nimport {\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n} from '@angular/core';\nimport {\n EMPTY_CLIENT_RECT,\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n tuiPointToClientRect,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown, TUI_DROPDOWN_DIRECTIVE, TuiDropdown} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Observable} from 'rxjs';\nimport {filter, takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: '[tuiDropdownContext]',\n providers: [\n TuiDestroyService,\n TuiActiveZoneDirective,\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownContextDirective),\n },\n ],\n})\nexport class TuiDropdownContextDirective\n extends AbstractTuiDropdown\n implements TuiDropdown\n{\n private lastClickedClientRect = EMPTY_CLIENT_RECT;\n\n @Input('tuiDropdownContext')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n readonly refresh$ = EMPTY;\n\n readonly context = {close: () => this.closeDropdownBox()};\n\n constructor(\n protected readonly elementRef: ElementRef,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService) portalService: TuiPortalService,\n readonly activeZone: TuiActiveZoneDirective,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n\n activeZone.tuiActiveZoneChange\n .pipe(\n filter(isActive => !isActive),\n takeUntil(destroy$),\n )\n .subscribe(() => this.closeDropdownBox());\n }\n\n get clientRect(): ClientRect {\n return this.lastClickedClientRect;\n }\n\n get fixed(): boolean {\n return true;\n }\n\n private get dropdownContent(): HTMLElement | null {\n return this.dropdownBoxRef?.instance.contentElementRef?.nativeElement || null;\n }\n\n @HostListener('click')\n onHostClick(): void {\n this.closeDropdownBox();\n }\n\n @HostListener('contextmenu.prevent', ['$event.clientX', '$event.clientY'])\n onContextMenu(x: number, y: number): void {\n this.closeDropdownBox();\n this.openDropdown(x, y);\n }\n\n @HostListener('document:contextmenu', ['$event.target'])\n onAnotherContextOpen(target: HTMLElement): void {\n const isAnotherContextOpened = !this.elementRef.nativeElement.contains(target);\n\n if (isAnotherContextOpened) {\n this.closeDropdownBox();\n }\n }\n\n @HostListener('document:keydown.arrowDown', ['$event', 'true'])\n @HostListener('document:keydown.arrowUp', ['$event', 'false'])\n onArrow(event: KeyboardEvent, down: boolean): void {\n const activeElement = getNativeFocused(this.documentRef);\n const focusInside = activeElement && this.activeZone.contains(activeElement);\n\n if (!this.dropdownContent || focusInside) {\n return;\n }\n\n event.preventDefault();\n\n const nextEl = this.dropdownContent.nextElementSibling;\n const initial =\n down || !this.checkIsFocusableElement(nextEl) ? this.dropdownContent : nextEl;\n const focusable = getClosestFocusable(initial, !down, this.dropdownContent);\n\n if (focusable === null) {\n return;\n }\n\n setNativeFocused(focusable);\n }\n\n @HostListener('document:keydown.esc', ['$event'])\n onKeyDownEsc(event: KeyboardEvent): void {\n if (!this.dropdownContent) {\n return;\n }\n\n event.stopPropagation();\n this.closeDropdownBox();\n }\n\n private openDropdown(x: number, y: number): void {\n this.lastClickedClientRect = tuiPointToClientRect(x, y);\n this.openDropdownBox();\n }\n\n private checkIsFocusableElement(element: Element | null): element is HTMLElement {\n return !!element && 'focus' in element && 'blur' in element;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core';\n\nimport {TuiDropdownContextDirective} from './dropdown-context.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownContextDirective],\n exports: [TuiDropdownContextDirective],\n})\nexport class TuiDropdownContextModule {}\n"]}
@@ -253,14 +253,6 @@
253
253
  return typeof state === "function" ? receiver === state : state.has(receiver);
254
254
  }
255
255
 
256
- var EMPTY_RECT = {
257
- bottom: 0,
258
- height: 0,
259
- left: 0,
260
- right: 0,
261
- top: 0,
262
- width: 0,
263
- };
264
256
  // @dynamic
265
257
  var TuiDropdownSelectionDirective = /** @class */ (function (_super) {
266
258
  __extends(TuiDropdownSelectionDirective, _super);
@@ -350,7 +342,7 @@
350
342
  */
351
343
  get: function () {
352
344
  if (!this.range) {
353
- return EMPTY_RECT;
345
+ return cdk.EMPTY_CLIENT_RECT;
354
346
  }
355
347
  switch (this.position) {
356
348
  case 'tag': {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-dropdown-selection.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/directives/dropdown-selection/dropdown-selection.directive.ts","ng://@taiga-ui/kit/directives/dropdown-selection/dropdown-selection.module.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n Host,\n Inject,\n Injector,\n Input,\n NgZone,\n OnDestroy,\n Optional,\n Renderer2,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n ALWAYS_TRUE_HANDLER,\n CHAR_NO_BREAK_SPACE,\n CHAR_ZERO_WIDTH_SPACE,\n getNativeFocused,\n px,\n TuiActiveZoneDirective,\n TuiBooleanHandler,\n TuiDestroyService,\n TuiParentsScrollService,\n TuiPortalService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {\n AbstractTuiDropdown,\n TUI_DOCUMENT_OR_SHADOW_ROOT,\n TUI_DROPDOWN_DIRECTIVE,\n TUI_ELEMENT_REF,\n TuiDropdown,\n} from '@taiga-ui/core';\nimport {getWordRange} from '@taiga-ui/kit/utils/dom';\nimport {merge} from 'rxjs';\nimport {map, switchMapTo, takeUntil} from 'rxjs/operators';\n\nconst EMPTY_RECT: ClientRect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n};\n\n// @dynamic\n@Directive({\n selector: '[tuiDropdownSelection]:not(ng-container)',\n providers: [\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownSelectionDirective),\n },\n TuiParentsScrollService,\n TuiDestroyService,\n ],\n})\nexport class TuiDropdownSelectionDirective\n extends AbstractTuiDropdown\n implements TuiDropdown, OnDestroy\n{\n private visibilityHandler: TuiBooleanHandler<Range> = ALWAYS_TRUE_HANDLER;\n private readonly documentRef: Document;\n private ghost?: HTMLElement;\n private range?: Range;\n\n @Input()\n set tuiDropdownSelection(handler: TuiBooleanHandler<Range> | '') {\n if (!handler || !this.range) {\n return;\n }\n\n const inHostAndValid =\n this.elementRef.nativeElement.contains(this.range.commonAncestorContainer) &&\n handler(this.range);\n\n this.visibilityHandler = handler;\n this.toggleDropdownBox(inHostAndValid);\n }\n\n @Input('tuiDropdownSelectionPosition')\n position: 'selection' | 'word' | 'tag' = 'selection';\n\n constructor(\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService) portalService: TuiPortalService,\n @Host() @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiActiveZoneDirective)\n @Optional()\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TUI_DOCUMENT_OR_SHADOW_ROOT)\n @Optional()\n shadowRootRef: Document | null,\n @Inject(TUI_ELEMENT_REF)\n @Optional()\n customElementRef: ElementRef<HTMLElement> | null,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiParentsScrollService) readonly refresh$: TuiParentsScrollService,\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef,\n ) {\n super(\n componentFactoryResolver,\n injector,\n portalService,\n customElementRef || elementRef,\n activeZone,\n );\n this.documentRef = shadowRootRef || documentRef;\n\n // SSR protection\n if (!this.documentRef.createRange) {\n return;\n }\n\n this.range = this.documentRef.createRange();\n\n const {nativeElement} = this.elementRef;\n\n merge(\n typedFromEvent(this.documentRef, 'mouseup'),\n typedFromEvent(nativeElement, 'mousedown').pipe(\n switchMapTo(\n typedFromEvent(nativeElement, 'mousemove').pipe(\n takeUntil(typedFromEvent(this.documentRef, 'mouseup')),\n ),\n ),\n ),\n typedFromEvent(nativeElement, 'keyup'),\n )\n .pipe(\n map(() => {\n const active = getNativeFocused(this.documentRef);\n const selection = this.documentRef.getSelection();\n\n // TODO: iframe warning\n if (\n (active instanceof HTMLInputElement ||\n active instanceof HTMLTextAreaElement) &&\n nativeElement.contains(active)\n ) {\n return this.veryVerySadInputFix(active);\n }\n\n return selection?.rangeCount ? selection.getRangeAt(0) : this.range;\n }),\n takeUntil(destroy$),\n )\n .subscribe(range => {\n const contained =\n !!range && nativeElement.contains(range.commonAncestorContainer);\n\n this.range = contained ? range : this.range;\n\n const valid =\n contained &&\n (!this.visibilityHandler ||\n !this.range ||\n this.visibilityHandler(this.range));\n\n this.toggleDropdownBox(!!range && (valid || this.inDropdown(range)));\n });\n }\n\n get clientRect(): ClientRect {\n const {defaultView} = this.documentRef;\n const {rangeRect} = this;\n const frameElement = defaultView ? defaultView.frameElement : null;\n\n if (!frameElement) {\n return rangeRect;\n }\n\n const documentRect = frameElement.getBoundingClientRect();\n\n return {\n top: rangeRect.top + documentRect.top,\n left: rangeRect.left + documentRect.left,\n right: rangeRect.left + documentRect.left + rangeRect.width,\n bottom: rangeRect.top + documentRect.top + rangeRect.height,\n width: rangeRect.width,\n height: rangeRect.height,\n };\n }\n\n ngOnDestroy(): void {\n this.closeDropdownBox();\n\n if (this.ghost) {\n this.renderer.removeChild(\n this.viewContainerRef.element.nativeElement,\n this.ghost,\n );\n }\n }\n\n /**\n * get ClientRect of current Range according to provided position\n */\n private get rangeRect(): ClientRect {\n if (!this.range) {\n return EMPTY_RECT;\n }\n\n switch (this.position) {\n case 'tag': {\n const {commonAncestorContainer} = this.range;\n const element =\n commonAncestorContainer.nodeType === Node.ELEMENT_NODE\n ? commonAncestorContainer\n : commonAncestorContainer.parentNode;\n\n return (element as Element).getBoundingClientRect();\n }\n case 'word':\n return getWordRange(this.range).getBoundingClientRect();\n default:\n return this.range.getBoundingClientRect();\n }\n }\n\n /**\n * Toggle dropdown visibility (has to be in ngZone.run because it could be initiated inside iframe in Editor)\n */\n private toggleDropdownBox(visible: boolean): void {\n this.ngZone.run(() => {\n if (visible) {\n this.openDropdownBox();\n } else {\n this.closeDropdownBox();\n }\n\n this.changeDetectorRef.markForCheck();\n });\n }\n\n /**\n * Check if Node is inside dropdown\n */\n private boxContains(node: Node): boolean {\n return (\n !!this.dropdownBoxRef &&\n this.dropdownBoxRef.location.nativeElement.contains(node)\n );\n }\n\n /**\n * Check if given range is at least partially inside dropdown\n */\n private inDropdown(range: Range): boolean {\n const {startContainer, endContainer} = range;\n const inDropdown = this.boxContains(range.commonAncestorContainer);\n const hostToDropdown =\n this.boxContains(endContainer) &&\n this.elementRef.nativeElement.contains(startContainer);\n const dropdownToHost =\n this.boxContains(startContainer) &&\n this.elementRef.nativeElement.contains(endContainer);\n\n return inDropdown || hostToDropdown || dropdownToHost;\n }\n\n /**\n * Position invisible DIV and create Range similar to selected range inside input/textarea\n */\n private veryVerySadInputFix(element: HTMLInputElement | HTMLTextAreaElement): Range {\n const {ghost = this.initGhost(element)} = this;\n const {top, left, width, height} = element.getBoundingClientRect();\n const {selectionStart, selectionEnd} = element;\n const range = this.documentRef.createRange();\n const hostRect = this.elementRef.nativeElement.getBoundingClientRect();\n\n ghost.style.top = px(top - hostRect.top);\n ghost.style.left = px(left - hostRect.left);\n ghost.style.width = px(width);\n ghost.style.height = px(height);\n ghost.textContent = CHAR_ZERO_WIDTH_SPACE + element.value + CHAR_NO_BREAK_SPACE;\n\n range.setStart(ghost.firstChild!, selectionStart || 0);\n range.setEnd(ghost.firstChild!, selectionEnd || 0);\n\n return range;\n }\n\n /**\n * Create an invisible DIV styled exactly like input/textarea element inside directive\n */\n private initGhost(element: HTMLInputElement | HTMLTextAreaElement): HTMLElement {\n const ghost = this.renderer.createElement('div');\n const {nativeElement} = this.viewContainerRef.element;\n const {font, letterSpacing, textTransform, padding} = getComputedStyle(element);\n\n ghost.style.position = 'absolute';\n ghost.style.pointerEvents = 'none';\n ghost.style.opacity = '0';\n ghost.style.whiteSpace = 'pre-wrap';\n ghost.style.font = font;\n ghost.style.letterSpacing = letterSpacing;\n ghost.style.textTransform = textTransform;\n ghost.style.padding = padding;\n\n this.renderer.appendChild(nativeElement, ghost);\n this.ghost = ghost;\n\n return ghost;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core';\n\nimport {TuiDropdownSelectionDirective} from './dropdown-selection.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownSelectionDirective],\n exports: [TuiDropdownSelectionDirective],\n})\nexport class TuiDropdownSelectionModule {}\n"],"names":["ALWAYS_TRUE_HANDLER","merge","typedFromEvent","switchMapTo","takeUntil","map","getNativeFocused","getWordRange","px","CHAR_ZERO_WIDTH_SPACE","CHAR_NO_BREAK_SPACE","Inject","DOCUMENT","ComponentFactoryResolver","Injector","TuiPortalService","ElementRef","Host","TuiActiveZoneDirective","Optional","TUI_DOCUMENT_OR_SHADOW_ROOT","TUI_ELEMENT_REF","TuiDestroyService","TuiParentsScrollService","ChangeDetectorRef","NgZone","Renderer2","ViewContainerRef","Input","Directive","TUI_DROPDOWN_DIRECTIVE","forwardRef","AbstractTuiDropdown","NgModule","TuiDropdownBoxModule"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1G,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;AACF;IACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;IAC7C,QAAQ,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CAAC;IAClG,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,C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AAAC,aAAQ,EAAE,CAAA;YAEV,WAAAR,WAAM,CAACS,kCAA2B,CAAC,CAAA;YACnC,WAAAD,aAAQ,EAAE,CAAA;YAEV,WAAAR,WAAM,CAACU,sBAAe,CAAC,CAAA;YACvB,WAAAF,aAAQ,EAAE,CAAA;YAEV,WAAAR,WAAM,CAACW,qBAAiB,CAAC,CAAA;YAEzB,WAAAX,WAAM,CAACY,2BAAuB,CAAC,CAAA;YAC/B,YAAAZ,WAAM,CAACa,sBAAiB,CAAC,CAAA;YACzB,YAAAb,WAAM,CAACc,WAAM,CAAC,CAAA;YACd,YAAAd,WAAM,CAACe,cAAS,CAAC,CAAA;YACjB,YAAAf,WAAM,CAACgB,qBAAgB,CAAC,CAAA;WAhDpB,6BAA6B,CA+PzC;QAAD,oCAAC;KAAA,CA9PWK,0BAAmB;;;QCrD/B;SAA0C;QAA7B,0BAA0B;YALtCC,aAAQ,CAAC;gBACN,OAAO,EAAE,CAACC,2BAAoB,CAAC;gBAC/B,YAAY,EAAE,CAAC,6BAA6B,CAAC;gBAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;aAC3C,CAAC;WACW,0BAA0B,CAAG;QAAD,iCAAC;KAA1C;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-dropdown-selection.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/directives/dropdown-selection/dropdown-selection.directive.ts","ng://@taiga-ui/kit/directives/dropdown-selection/dropdown-selection.module.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n Host,\n Inject,\n Injector,\n Input,\n NgZone,\n OnDestroy,\n Optional,\n Renderer2,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n ALWAYS_TRUE_HANDLER,\n CHAR_NO_BREAK_SPACE,\n CHAR_ZERO_WIDTH_SPACE,\n EMPTY_CLIENT_RECT,\n getNativeFocused,\n px,\n TuiActiveZoneDirective,\n TuiBooleanHandler,\n TuiDestroyService,\n TuiParentsScrollService,\n TuiPortalService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {\n AbstractTuiDropdown,\n TUI_DOCUMENT_OR_SHADOW_ROOT,\n TUI_DROPDOWN_DIRECTIVE,\n TUI_ELEMENT_REF,\n TuiDropdown,\n} from '@taiga-ui/core';\nimport {getWordRange} from '@taiga-ui/kit/utils/dom';\nimport {merge} from 'rxjs';\nimport {map, switchMapTo, takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: '[tuiDropdownSelection]:not(ng-container)',\n providers: [\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownSelectionDirective),\n },\n TuiParentsScrollService,\n TuiDestroyService,\n ],\n})\nexport class TuiDropdownSelectionDirective\n extends AbstractTuiDropdown\n implements TuiDropdown, OnDestroy\n{\n private visibilityHandler: TuiBooleanHandler<Range> = ALWAYS_TRUE_HANDLER;\n private readonly documentRef: Document;\n private ghost?: HTMLElement;\n private range?: Range;\n\n @Input()\n set tuiDropdownSelection(handler: TuiBooleanHandler<Range> | '') {\n if (!handler || !this.range) {\n return;\n }\n\n const inHostAndValid =\n this.elementRef.nativeElement.contains(this.range.commonAncestorContainer) &&\n handler(this.range);\n\n this.visibilityHandler = handler;\n this.toggleDropdownBox(inHostAndValid);\n }\n\n @Input('tuiDropdownSelectionPosition')\n position: 'selection' | 'word' | 'tag' = 'selection';\n\n constructor(\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService) portalService: TuiPortalService,\n @Host() @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiActiveZoneDirective)\n @Optional()\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TUI_DOCUMENT_OR_SHADOW_ROOT)\n @Optional()\n shadowRootRef: Document | null,\n @Inject(TUI_ELEMENT_REF)\n @Optional()\n customElementRef: ElementRef<HTMLElement> | null,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiParentsScrollService) readonly refresh$: TuiParentsScrollService,\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef,\n ) {\n super(\n componentFactoryResolver,\n injector,\n portalService,\n customElementRef || elementRef,\n activeZone,\n );\n this.documentRef = shadowRootRef || documentRef;\n\n // SSR protection\n if (!this.documentRef.createRange) {\n return;\n }\n\n this.range = this.documentRef.createRange();\n\n const {nativeElement} = this.elementRef;\n\n merge(\n typedFromEvent(this.documentRef, 'mouseup'),\n typedFromEvent(nativeElement, 'mousedown').pipe(\n switchMapTo(\n typedFromEvent(nativeElement, 'mousemove').pipe(\n takeUntil(typedFromEvent(this.documentRef, 'mouseup')),\n ),\n ),\n ),\n typedFromEvent(nativeElement, 'keyup'),\n )\n .pipe(\n map(() => {\n const active = getNativeFocused(this.documentRef);\n const selection = this.documentRef.getSelection();\n\n // TODO: iframe warning\n if (\n (active instanceof HTMLInputElement ||\n active instanceof HTMLTextAreaElement) &&\n nativeElement.contains(active)\n ) {\n return this.veryVerySadInputFix(active);\n }\n\n return selection?.rangeCount ? selection.getRangeAt(0) : this.range;\n }),\n takeUntil(destroy$),\n )\n .subscribe(range => {\n const contained =\n !!range && nativeElement.contains(range.commonAncestorContainer);\n\n this.range = contained ? range : this.range;\n\n const valid =\n contained &&\n (!this.visibilityHandler ||\n !this.range ||\n this.visibilityHandler(this.range));\n\n this.toggleDropdownBox(!!range && (valid || this.inDropdown(range)));\n });\n }\n\n get clientRect(): ClientRect {\n const {defaultView} = this.documentRef;\n const {rangeRect} = this;\n const frameElement = defaultView ? defaultView.frameElement : null;\n\n if (!frameElement) {\n return rangeRect;\n }\n\n const documentRect = frameElement.getBoundingClientRect();\n\n return {\n top: rangeRect.top + documentRect.top,\n left: rangeRect.left + documentRect.left,\n right: rangeRect.left + documentRect.left + rangeRect.width,\n bottom: rangeRect.top + documentRect.top + rangeRect.height,\n width: rangeRect.width,\n height: rangeRect.height,\n };\n }\n\n ngOnDestroy(): void {\n this.closeDropdownBox();\n\n if (this.ghost) {\n this.renderer.removeChild(\n this.viewContainerRef.element.nativeElement,\n this.ghost,\n );\n }\n }\n\n /**\n * get ClientRect of current Range according to provided position\n */\n private get rangeRect(): ClientRect {\n if (!this.range) {\n return EMPTY_CLIENT_RECT;\n }\n\n switch (this.position) {\n case 'tag': {\n const {commonAncestorContainer} = this.range;\n const element =\n commonAncestorContainer.nodeType === Node.ELEMENT_NODE\n ? commonAncestorContainer\n : commonAncestorContainer.parentNode;\n\n return (element as Element).getBoundingClientRect();\n }\n case 'word':\n return getWordRange(this.range).getBoundingClientRect();\n default:\n return this.range.getBoundingClientRect();\n }\n }\n\n /**\n * Toggle dropdown visibility (has to be in ngZone.run because it could be initiated inside iframe in Editor)\n */\n private toggleDropdownBox(visible: boolean): void {\n this.ngZone.run(() => {\n if (visible) {\n this.openDropdownBox();\n } else {\n this.closeDropdownBox();\n }\n\n this.changeDetectorRef.markForCheck();\n });\n }\n\n /**\n * Check if Node is inside dropdown\n */\n private boxContains(node: Node): boolean {\n return (\n !!this.dropdownBoxRef &&\n this.dropdownBoxRef.location.nativeElement.contains(node)\n );\n }\n\n /**\n * Check if given range is at least partially inside dropdown\n */\n private inDropdown(range: Range): boolean {\n const {startContainer, endContainer} = range;\n const inDropdown = this.boxContains(range.commonAncestorContainer);\n const hostToDropdown =\n this.boxContains(endContainer) &&\n this.elementRef.nativeElement.contains(startContainer);\n const dropdownToHost =\n this.boxContains(startContainer) &&\n this.elementRef.nativeElement.contains(endContainer);\n\n return inDropdown || hostToDropdown || dropdownToHost;\n }\n\n /**\n * Position invisible DIV and create Range similar to selected range inside input/textarea\n */\n private veryVerySadInputFix(element: HTMLInputElement | HTMLTextAreaElement): Range {\n const {ghost = this.initGhost(element)} = this;\n const {top, left, width, height} = element.getBoundingClientRect();\n const {selectionStart, selectionEnd} = element;\n const range = this.documentRef.createRange();\n const hostRect = this.elementRef.nativeElement.getBoundingClientRect();\n\n ghost.style.top = px(top - hostRect.top);\n ghost.style.left = px(left - hostRect.left);\n ghost.style.width = px(width);\n ghost.style.height = px(height);\n ghost.textContent = CHAR_ZERO_WIDTH_SPACE + element.value + CHAR_NO_BREAK_SPACE;\n\n range.setStart(ghost.firstChild!, selectionStart || 0);\n range.setEnd(ghost.firstChild!, selectionEnd || 0);\n\n return range;\n }\n\n /**\n * Create an invisible DIV styled exactly like input/textarea element inside directive\n */\n private initGhost(element: HTMLInputElement | HTMLTextAreaElement): HTMLElement {\n const ghost = this.renderer.createElement('div');\n const {nativeElement} = this.viewContainerRef.element;\n const {font, letterSpacing, textTransform, padding} = getComputedStyle(element);\n\n ghost.style.position = 'absolute';\n ghost.style.pointerEvents = 'none';\n ghost.style.opacity = '0';\n ghost.style.whiteSpace = 'pre-wrap';\n ghost.style.font = font;\n ghost.style.letterSpacing = letterSpacing;\n ghost.style.textTransform = textTransform;\n ghost.style.padding = padding;\n\n this.renderer.appendChild(nativeElement, ghost);\n this.ghost = ghost;\n\n return ghost;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core';\n\nimport {TuiDropdownSelectionDirective} from './dropdown-selection.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownSelectionDirective],\n exports: [TuiDropdownSelectionDirective],\n})\nexport class TuiDropdownSelectionModule {}\n"],"names":["ALWAYS_TRUE_HANDLER","merge","typedFromEvent","switchMapTo","takeUntil","map","getNativeFocused","EMPTY_CLIENT_RECT","getWordRange","px","CHAR_ZERO_WIDTH_SPACE","CHAR_NO_BREAK_SPACE","Inject","DOCUMENT","ComponentFactoryResolver","Injector","TuiPortalService","ElementRef","Host","TuiActiveZoneDirective","Optional","TUI_DOCUMENT_OR_SHADOW_ROOT","TUI_ELEMENT_REF","TuiDestroyService","TuiParentsScrollService","ChangeDetectorRef","NgZone","Renderer2","ViewContainerRef","Input","Directive","TUI_DROPDOWN_DIRECTIVE","forwardRef","AbstractTuiDropdown","NgModule","TuiDropdownBoxModule"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AAC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C7C/B;SAA0C;QAA7B,0BAA0B;YALtCC,aAAQ,CAAC;gBACN,OAAO,EAAE,CAACC,2BAAoB,CAAC;gBAC/B,YAAY,EAAE,CAAC,6BAA6B,CAAC;gBAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;aAC3C,CAAC;WACW,0BAA0B,CAAG;QAAD,iCAAC;KAA1C;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("@taiga-ui/kit/utils/dom"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/directives/dropdown-selection",["exports","@angular/common","@angular/core","@taiga-ui/cdk","@taiga-ui/core","@taiga-ui/kit/utils/dom","rxjs","rxjs/operators"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.directives=e["taiga-ui"].kit.directives||{},e["taiga-ui"].kit.directives["dropdown-selection"]={}),e.ng.common,e.ng.core,e.cdk,e.core$1,e["taiga-ui"].kit.utils.dom,e.rxjs,e.rxjs.operators)}(this,(function(e,t,n,o,r,i,a,c){"use strict";var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function p(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,o){t(n,o,e)}}Object.create;Object.create;var l={bottom:0,height:0,left:0,right:0,top:0,width:0},d=function(e){function d(t,n,r,i,s,p,u,l,d,g,f,y,h,m){var v=e.call(this,n,r,i,l||s,p)||this;if(v.refresh$=g,v.changeDetectorRef=f,v.ngZone=y,v.renderer=h,v.viewContainerRef=m,v.visibilityHandler=o.ALWAYS_TRUE_HANDLER,v.position="selection",v.documentRef=u||t,!v.documentRef.createRange)return v;v.range=v.documentRef.createRange();var R=v.elementRef.nativeElement;return a.merge(o.typedFromEvent(v.documentRef,"mouseup"),o.typedFromEvent(R,"mousedown").pipe(c.switchMapTo(o.typedFromEvent(R,"mousemove").pipe(c.takeUntil(o.typedFromEvent(v.documentRef,"mouseup"))))),o.typedFromEvent(R,"keyup")).pipe(c.map((function(){var e=o.getNativeFocused(v.documentRef),t=v.documentRef.getSelection();return(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&R.contains(e)?v.veryVerySadInputFix(e):(null==t?void 0:t.rangeCount)?t.getRangeAt(0):v.range})),c.takeUntil(d)).subscribe((function(e){var t=!!e&&R.contains(e.commonAncestorContainer);v.range=t?e:v.range;var n=t&&(!v.visibilityHandler||!v.range||v.visibilityHandler(v.range));v.toggleDropdownBox(!!e&&(n||v.inDropdown(e)))})),v}var g;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(d,e),g=d,Object.defineProperty(d.prototype,"tuiDropdownSelection",{set:function(e){if(e&&this.range){var t=this.elementRef.nativeElement.contains(this.range.commonAncestorContainer)&&e(this.range);this.visibilityHandler=e,this.toggleDropdownBox(t)}},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"clientRect",{get:function(){var e=this.documentRef.defaultView,t=this.rangeRect,n=e?e.frameElement:null;if(!n)return t;var o=n.getBoundingClientRect();return{top:t.top+o.top,left:t.left+o.left,right:t.left+o.left+t.width,bottom:t.top+o.top+t.height,width:t.width,height:t.height}},enumerable:!0,configurable:!0}),d.prototype.ngOnDestroy=function(){this.closeDropdownBox(),this.ghost&&this.renderer.removeChild(this.viewContainerRef.element.nativeElement,this.ghost)},Object.defineProperty(d.prototype,"rangeRect",{get:function(){if(!this.range)return l;switch(this.position){case"tag":var e=this.range.commonAncestorContainer;return(e.nodeType===Node.ELEMENT_NODE?e:e.parentNode).getBoundingClientRect();case"word":return i.getWordRange(this.range).getBoundingClientRect();default:return this.range.getBoundingClientRect()}},enumerable:!0,configurable:!0}),d.prototype.toggleDropdownBox=function(e){var t=this;this.ngZone.run((function(){e?t.openDropdownBox():t.closeDropdownBox(),t.changeDetectorRef.markForCheck()}))},d.prototype.boxContains=function(e){return!!this.dropdownBoxRef&&this.dropdownBoxRef.location.nativeElement.contains(e)},d.prototype.inDropdown=function(e){var t=e.startContainer,n=e.endContainer,o=this.boxContains(e.commonAncestorContainer),r=this.boxContains(n)&&this.elementRef.nativeElement.contains(t),i=this.boxContains(t)&&this.elementRef.nativeElement.contains(n);return o||r||i},d.prototype.veryVerySadInputFix=function(e){var t=this.ghost,n=void 0===t?this.initGhost(e):t,r=e.getBoundingClientRect(),i=r.top,a=r.left,c=r.width,s=r.height,p=e.selectionStart,u=e.selectionEnd,l=this.documentRef.createRange(),d=this.elementRef.nativeElement.getBoundingClientRect();return n.style.top=o.px(i-d.top),n.style.left=o.px(a-d.left),n.style.width=o.px(c),n.style.height=o.px(s),n.textContent=o.CHAR_ZERO_WIDTH_SPACE+e.value+o.CHAR_NO_BREAK_SPACE,l.setStart(n.firstChild,p||0),l.setEnd(n.firstChild,u||0),l},d.prototype.initGhost=function(e){var t=this.renderer.createElement("div"),n=this.viewContainerRef.element.nativeElement,o=getComputedStyle(e),r=o.font,i=o.letterSpacing,a=o.textTransform,c=o.padding;return t.style.position="absolute",t.style.pointerEvents="none",t.style.opacity="0",t.style.whiteSpace="pre-wrap",t.style.font=r,t.style.letterSpacing=i,t.style.textTransform=a,t.style.padding=c,this.renderer.appendChild(n,t),this.ghost=t,t},d.ctorParameters=function(){return[{type:Document,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:n.ComponentFactoryResolver,decorators:[{type:n.Inject,args:[n.ComponentFactoryResolver]}]},{type:n.Injector,decorators:[{type:n.Inject,args:[n.Injector]}]},{type:o.TuiPortalService,decorators:[{type:n.Inject,args:[o.TuiPortalService]}]},{type:n.ElementRef,decorators:[{type:n.Host},{type:n.Inject,args:[n.ElementRef]}]},{type:o.TuiActiveZoneDirective,decorators:[{type:n.Inject,args:[o.TuiActiveZoneDirective]},{type:n.Optional}]},{type:Document,decorators:[{type:n.Inject,args:[r.TUI_DOCUMENT_OR_SHADOW_ROOT]},{type:n.Optional}]},{type:n.ElementRef,decorators:[{type:n.Inject,args:[r.TUI_ELEMENT_REF]},{type:n.Optional}]},{type:o.TuiDestroyService,decorators:[{type:n.Inject,args:[o.TuiDestroyService]}]},{type:o.TuiParentsScrollService,decorators:[{type:n.Inject,args:[o.TuiParentsScrollService]}]},{type:n.ChangeDetectorRef,decorators:[{type:n.Inject,args:[n.ChangeDetectorRef]}]},{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:n.Renderer2,decorators:[{type:n.Inject,args:[n.Renderer2]}]},{type:n.ViewContainerRef,decorators:[{type:n.Inject,args:[n.ViewContainerRef]}]}]},p([n.Input()],d.prototype,"tuiDropdownSelection",null),p([n.Input("tuiDropdownSelectionPosition")],d.prototype,"position",void 0),d=g=p([n.Directive({selector:"[tuiDropdownSelection]:not(ng-container)",providers:[{provide:r.TUI_DROPDOWN_DIRECTIVE,useExisting:n.forwardRef((function(){return g}))},o.TuiParentsScrollService,o.TuiDestroyService]}),u(0,n.Inject(t.DOCUMENT)),u(1,n.Inject(n.ComponentFactoryResolver)),u(2,n.Inject(n.Injector)),u(3,n.Inject(o.TuiPortalService)),u(4,n.Host()),u(4,n.Inject(n.ElementRef)),u(5,n.Inject(o.TuiActiveZoneDirective)),u(5,n.Optional()),u(6,n.Inject(r.TUI_DOCUMENT_OR_SHADOW_ROOT)),u(6,n.Optional()),u(7,n.Inject(r.TUI_ELEMENT_REF)),u(7,n.Optional()),u(8,n.Inject(o.TuiDestroyService)),u(9,n.Inject(o.TuiParentsScrollService)),u(10,n.Inject(n.ChangeDetectorRef)),u(11,n.Inject(n.NgZone)),u(12,n.Inject(n.Renderer2)),u(13,n.Inject(n.ViewContainerRef))],d)}(r.AbstractTuiDropdown),g=function(){function e(){}return e=p([n.NgModule({imports:[r.TuiDropdownBoxModule],declarations:[d],exports:[d]})],e)}();e.TuiDropdownSelectionDirective=d,e.TuiDropdownSelectionModule=g,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("@taiga-ui/kit/utils/dom"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/directives/dropdown-selection",["exports","@angular/common","@angular/core","@taiga-ui/cdk","@taiga-ui/core","@taiga-ui/kit/utils/dom","rxjs","rxjs/operators"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.directives=e["taiga-ui"].kit.directives||{},e["taiga-ui"].kit.directives["dropdown-selection"]={}),e.ng.common,e.ng.core,e.cdk,e.core$1,e["taiga-ui"].kit.utils.dom,e.rxjs,e.rxjs.operators)}(this,(function(e,t,n,o,r,i,a,c){"use strict";var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function p(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,o){t(n,o,e)}}Object.create;Object.create;var l=function(e){function l(t,n,r,i,s,p,u,l,d,g,f,y,m,v){var h=e.call(this,n,r,i,l||s,p)||this;if(h.refresh$=g,h.changeDetectorRef=f,h.ngZone=y,h.renderer=m,h.viewContainerRef=v,h.visibilityHandler=o.ALWAYS_TRUE_HANDLER,h.position="selection",h.documentRef=u||t,!h.documentRef.createRange)return h;h.range=h.documentRef.createRange();var R=h.elementRef.nativeElement;return a.merge(o.typedFromEvent(h.documentRef,"mouseup"),o.typedFromEvent(R,"mousedown").pipe(c.switchMapTo(o.typedFromEvent(R,"mousemove").pipe(c.takeUntil(o.typedFromEvent(h.documentRef,"mouseup"))))),o.typedFromEvent(R,"keyup")).pipe(c.map((function(){var e=o.getNativeFocused(h.documentRef),t=h.documentRef.getSelection();return(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&R.contains(e)?h.veryVerySadInputFix(e):(null==t?void 0:t.rangeCount)?t.getRangeAt(0):h.range})),c.takeUntil(d)).subscribe((function(e){var t=!!e&&R.contains(e.commonAncestorContainer);h.range=t?e:h.range;var n=t&&(!h.visibilityHandler||!h.range||h.visibilityHandler(h.range));h.toggleDropdownBox(!!e&&(n||h.inDropdown(e)))})),h}var d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(l,e),d=l,Object.defineProperty(l.prototype,"tuiDropdownSelection",{set:function(e){if(e&&this.range){var t=this.elementRef.nativeElement.contains(this.range.commonAncestorContainer)&&e(this.range);this.visibilityHandler=e,this.toggleDropdownBox(t)}},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"clientRect",{get:function(){var e=this.documentRef.defaultView,t=this.rangeRect,n=e?e.frameElement:null;if(!n)return t;var o=n.getBoundingClientRect();return{top:t.top+o.top,left:t.left+o.left,right:t.left+o.left+t.width,bottom:t.top+o.top+t.height,width:t.width,height:t.height}},enumerable:!0,configurable:!0}),l.prototype.ngOnDestroy=function(){this.closeDropdownBox(),this.ghost&&this.renderer.removeChild(this.viewContainerRef.element.nativeElement,this.ghost)},Object.defineProperty(l.prototype,"rangeRect",{get:function(){if(!this.range)return o.EMPTY_CLIENT_RECT;switch(this.position){case"tag":var e=this.range.commonAncestorContainer;return(e.nodeType===Node.ELEMENT_NODE?e:e.parentNode).getBoundingClientRect();case"word":return i.getWordRange(this.range).getBoundingClientRect();default:return this.range.getBoundingClientRect()}},enumerable:!0,configurable:!0}),l.prototype.toggleDropdownBox=function(e){var t=this;this.ngZone.run((function(){e?t.openDropdownBox():t.closeDropdownBox(),t.changeDetectorRef.markForCheck()}))},l.prototype.boxContains=function(e){return!!this.dropdownBoxRef&&this.dropdownBoxRef.location.nativeElement.contains(e)},l.prototype.inDropdown=function(e){var t=e.startContainer,n=e.endContainer,o=this.boxContains(e.commonAncestorContainer),r=this.boxContains(n)&&this.elementRef.nativeElement.contains(t),i=this.boxContains(t)&&this.elementRef.nativeElement.contains(n);return o||r||i},l.prototype.veryVerySadInputFix=function(e){var t=this.ghost,n=void 0===t?this.initGhost(e):t,r=e.getBoundingClientRect(),i=r.top,a=r.left,c=r.width,s=r.height,p=e.selectionStart,u=e.selectionEnd,l=this.documentRef.createRange(),d=this.elementRef.nativeElement.getBoundingClientRect();return n.style.top=o.px(i-d.top),n.style.left=o.px(a-d.left),n.style.width=o.px(c),n.style.height=o.px(s),n.textContent=o.CHAR_ZERO_WIDTH_SPACE+e.value+o.CHAR_NO_BREAK_SPACE,l.setStart(n.firstChild,p||0),l.setEnd(n.firstChild,u||0),l},l.prototype.initGhost=function(e){var t=this.renderer.createElement("div"),n=this.viewContainerRef.element.nativeElement,o=getComputedStyle(e),r=o.font,i=o.letterSpacing,a=o.textTransform,c=o.padding;return t.style.position="absolute",t.style.pointerEvents="none",t.style.opacity="0",t.style.whiteSpace="pre-wrap",t.style.font=r,t.style.letterSpacing=i,t.style.textTransform=a,t.style.padding=c,this.renderer.appendChild(n,t),this.ghost=t,t},l.ctorParameters=function(){return[{type:Document,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]},{type:n.ComponentFactoryResolver,decorators:[{type:n.Inject,args:[n.ComponentFactoryResolver]}]},{type:n.Injector,decorators:[{type:n.Inject,args:[n.Injector]}]},{type:o.TuiPortalService,decorators:[{type:n.Inject,args:[o.TuiPortalService]}]},{type:n.ElementRef,decorators:[{type:n.Host},{type:n.Inject,args:[n.ElementRef]}]},{type:o.TuiActiveZoneDirective,decorators:[{type:n.Inject,args:[o.TuiActiveZoneDirective]},{type:n.Optional}]},{type:Document,decorators:[{type:n.Inject,args:[r.TUI_DOCUMENT_OR_SHADOW_ROOT]},{type:n.Optional}]},{type:n.ElementRef,decorators:[{type:n.Inject,args:[r.TUI_ELEMENT_REF]},{type:n.Optional}]},{type:o.TuiDestroyService,decorators:[{type:n.Inject,args:[o.TuiDestroyService]}]},{type:o.TuiParentsScrollService,decorators:[{type:n.Inject,args:[o.TuiParentsScrollService]}]},{type:n.ChangeDetectorRef,decorators:[{type:n.Inject,args:[n.ChangeDetectorRef]}]},{type:n.NgZone,decorators:[{type:n.Inject,args:[n.NgZone]}]},{type:n.Renderer2,decorators:[{type:n.Inject,args:[n.Renderer2]}]},{type:n.ViewContainerRef,decorators:[{type:n.Inject,args:[n.ViewContainerRef]}]}]},p([n.Input()],l.prototype,"tuiDropdownSelection",null),p([n.Input("tuiDropdownSelectionPosition")],l.prototype,"position",void 0),l=d=p([n.Directive({selector:"[tuiDropdownSelection]:not(ng-container)",providers:[{provide:r.TUI_DROPDOWN_DIRECTIVE,useExisting:n.forwardRef((function(){return d}))},o.TuiParentsScrollService,o.TuiDestroyService]}),u(0,n.Inject(t.DOCUMENT)),u(1,n.Inject(n.ComponentFactoryResolver)),u(2,n.Inject(n.Injector)),u(3,n.Inject(o.TuiPortalService)),u(4,n.Host()),u(4,n.Inject(n.ElementRef)),u(5,n.Inject(o.TuiActiveZoneDirective)),u(5,n.Optional()),u(6,n.Inject(r.TUI_DOCUMENT_OR_SHADOW_ROOT)),u(6,n.Optional()),u(7,n.Inject(r.TUI_ELEMENT_REF)),u(7,n.Optional()),u(8,n.Inject(o.TuiDestroyService)),u(9,n.Inject(o.TuiParentsScrollService)),u(10,n.Inject(n.ChangeDetectorRef)),u(11,n.Inject(n.NgZone)),u(12,n.Inject(n.Renderer2)),u(13,n.Inject(n.ViewContainerRef))],l)}(r.AbstractTuiDropdown),d=function(){function e(){}return e=p([n.NgModule({imports:[r.TuiDropdownBoxModule],declarations:[l],exports:[l]})],e)}();e.TuiDropdownSelectionDirective=l,e.TuiDropdownSelectionModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=taiga-ui-kit-directives-dropdown-selection.umd.min.js.map