@taiga-ui/core 2.24.0 → 2.27.1

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 (605) hide show
  1. package/abstract/abstract-dropdown.d.ts +1 -1
  2. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-data-list.umd.js +20 -20
  8. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.min.js +1 -1
  10. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-dialog.umd.js +14 -38
  12. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  14. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-expand.umd.js +4 -4
  20. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  22. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-hints-host.umd.js +27 -20
  26. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +2 -2
  28. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +9 -9
  30. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  32. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-link.umd.js +5 -4
  36. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-link.umd.min.js +2 -2
  38. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
  42. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  44. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +2 -15
  46. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +1 -1
  48. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +3 -3
  50. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  52. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +17 -14
  54. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +1 -1
  56. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +3 -3
  58. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  62. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +61 -61
  64. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  65. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +2 -2
  66. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-core-components-scrollbar.umd.js +24 -24
  68. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
  70. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-core-components-svg.umd.js +1 -1
  72. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  73. package/bundles/taiga-ui-core-components-svg.umd.min.js +1 -1
  74. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  78. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  80. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-core-components-wrapper.umd.js.map +1 -1
  82. package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-core-components.umd.js +8 -8
  84. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  85. package/bundles/taiga-ui-core-constants.umd.js +3 -3
  86. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  87. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  88. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-core-directives-border.umd.js.map +1 -1
  90. package/bundles/taiga-ui-core-directives-border.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  92. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  94. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  96. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  97. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  98. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-core-directives-hint.umd.js +1 -1
  100. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-hint.umd.min.js +1 -1
  102. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  104. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  105. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +1 -1
  110. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  111. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
  112. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  114. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  116. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  118. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-core-directives.umd.js +8 -8
  120. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  121. package/bundles/taiga-ui-core-enums.umd.js +1 -0
  122. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  123. package/bundles/taiga-ui-core-enums.umd.min.js +1 -1
  124. package/bundles/taiga-ui-core-enums.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  126. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-core-modules-notifications.umd.js +23 -23
  128. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  129. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  130. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  132. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  133. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  134. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  135. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  136. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  138. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  139. package/bundles/taiga-ui-core-pipes.umd.js +12 -12
  140. package/bundles/taiga-ui-core-pipes.umd.min.js +1 -1
  141. package/bundles/taiga-ui-core-providers.umd.js +9 -9
  142. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  143. package/bundles/taiga-ui-core-providers.umd.min.js +1 -1
  144. package/bundles/taiga-ui-core-services.umd.js +1 -1
  145. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  146. package/bundles/taiga-ui-core-services.umd.min.js +1 -1
  147. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  148. package/bundles/taiga-ui-core-tokens.umd.js +25 -25
  149. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  150. package/bundles/taiga-ui-core-tokens.umd.min.js +1 -1
  151. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  152. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  153. package/components/data-list/data-list.component.d.ts +4 -4
  154. package/components/data-list/index.d.ts +1 -1
  155. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  156. package/components/dialog/dialog.directive.d.ts +2 -11
  157. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  158. package/components/dropdown-box/dropdown-box.component.d.ts +2 -2
  159. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  160. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  161. package/components/expand/expand.component.d.ts +2 -2
  162. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  163. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  164. package/components/hints-host/hint-box/hint-box.component.d.ts +5 -3
  165. package/components/hints-host/index.d.ts +2 -2
  166. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  167. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +3 -3
  168. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  169. package/components/index.d.ts +1 -1
  170. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  171. package/components/link/link.component.d.ts +1 -0
  172. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  173. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  174. package/components/primitive-calendar/primitive-calendar.component.d.ts +3 -3
  175. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  176. package/components/primitive-checkbox/primitive-checkbox.component.d.ts +1 -3
  177. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  178. package/components/primitive-spin-button/primitive-spin-button.component.d.ts +1 -1
  179. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  180. package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -3
  181. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  182. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +2 -1
  183. package/components/primitive-year-picker/primitive-year-picker.component.d.ts +3 -3
  184. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
  185. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  186. package/components/scroll-controls/index.d.ts +1 -1
  187. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  188. package/components/scrollbar/index.d.ts +1 -1
  189. package/components/scrollbar/scrollbar.component.d.ts +2 -2
  190. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  191. package/components/svg/svg.component.d.ts +3 -3
  192. package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
  193. package/components/taiga-ui-core-components.metadata.json +1 -1
  194. package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
  195. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  196. package/components/tooltip/tooltip.component.d.ts +1 -1
  197. package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +1 -1
  198. package/constants/index.d.ts +1 -1
  199. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  200. package/constants/version.d.ts +1 -1
  201. package/directives/border/taiga-ui-core-directives-border.metadata.json +1 -1
  202. package/directives/color/index.d.ts +1 -1
  203. package/directives/color/taiga-ui-core-directives-color.metadata.json +1 -1
  204. package/directives/described-by/taiga-ui-core-directives-described-by.metadata.json +1 -1
  205. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  206. package/directives/hint/hint.directive.d.ts +1 -1
  207. package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
  208. package/directives/hint-controller/taiga-ui-core-directives-hint-controller.metadata.json +1 -1
  209. package/directives/index.d.ts +1 -1
  210. package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
  211. package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.metadata.json +1 -1
  212. package/directives/mode/taiga-ui-core-directives-mode.metadata.json +1 -1
  213. package/directives/pointer-hint/pointer-hint.directive.d.ts +1 -1
  214. package/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.metadata.json +1 -1
  215. package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.metadata.json +1 -1
  216. package/directives/table-mode/taiga-ui-core-directives-table-mode.metadata.json +1 -1
  217. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  218. package/directives/textfield-controller/index.d.ts +2 -2
  219. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  220. package/directives/textfield-controller/textfield-controller.provider.d.ts +1 -1
  221. package/enums/appearance.d.ts +1 -0
  222. package/enums/taiga-ui-core-enums.metadata.json +1 -1
  223. package/esm2015/abstract/abstract-dropdown.js +1 -1
  224. package/esm2015/components/button/button.component.js +1 -1
  225. package/esm2015/components/button/button.module.js +1 -1
  226. package/esm2015/components/data-list/data-list.component.js +17 -17
  227. package/esm2015/components/data-list/data-list.module.js +2 -2
  228. package/esm2015/components/data-list/index.js +2 -2
  229. package/esm2015/components/data-list/option/option.component.js +1 -1
  230. package/esm2015/components/dialog/dialog.component.js +1 -1
  231. package/esm2015/components/dialog/dialog.directive.js +14 -36
  232. package/esm2015/components/dialog/dialog.module.js +1 -1
  233. package/esm2015/components/dialog/dialog.service.js +1 -1
  234. package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
  235. package/esm2015/components/dropdown-box/dropdown-box.module.js +1 -1
  236. package/esm2015/components/error/error.component.js +1 -1
  237. package/esm2015/components/error/error.module.js +1 -1
  238. package/esm2015/components/expand/expand.component.js +5 -5
  239. package/esm2015/components/expand/expand.module.js +2 -2
  240. package/esm2015/components/group/group.component.js +1 -1
  241. package/esm2015/components/group/group.module.js +1 -1
  242. package/esm2015/components/hints-host/hint-box/hint-box.component.js +16 -12
  243. package/esm2015/components/hints-host/hint-box/hint-box.module.js +1 -1
  244. package/esm2015/components/hints-host/hints-host.module.js +1 -1
  245. package/esm2015/components/hints-host/index.js +3 -3
  246. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  247. package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  248. package/esm2015/components/index.js +2 -2
  249. package/esm2015/components/label/label.module.js +1 -1
  250. package/esm2015/components/link/link.component.js +5 -3
  251. package/esm2015/components/loader/loader.module.js +1 -1
  252. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  253. package/esm2015/components/primitive-calendar/primitive-calendar.module.js +1 -1
  254. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -13
  255. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +4 -4
  256. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +7 -10
  257. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +1 -1
  258. package/esm2015/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  259. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +9 -3
  260. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +4 -4
  261. package/esm2015/components/root/root.module.js +1 -1
  262. package/esm2015/components/scroll-controls/index.js +2 -2
  263. package/esm2015/components/scroll-controls/scroll-controls.module.js +2 -2
  264. package/esm2015/components/scrollbar/index.js +2 -2
  265. package/esm2015/components/scrollbar/scrollbar.component.js +3 -3
  266. package/esm2015/components/scrollbar/scrollbar.module.js +1 -1
  267. package/esm2015/components/svg/svg.component.js +2 -2
  268. package/esm2015/components/svg/svg.module.js +1 -1
  269. package/esm2015/components/theme-night/theme-night.module.js +1 -1
  270. package/esm2015/components/tooltip/tooltip.component.js +2 -2
  271. package/esm2015/components/wrapper/wrapper.module.js +1 -1
  272. package/esm2015/constants/index.js +2 -2
  273. package/esm2015/constants/version.js +2 -2
  274. package/esm2015/directives/border/border.module.js +1 -1
  275. package/esm2015/directives/color/color.module.js +1 -1
  276. package/esm2015/directives/color/index.js +2 -2
  277. package/esm2015/directives/described-by/described-by.module.js +1 -1
  278. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  279. package/esm2015/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  280. package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  281. package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  282. package/esm2015/directives/hint/hint.directive.js +2 -2
  283. package/esm2015/directives/hint/hint.module.js +1 -1
  284. package/esm2015/directives/hint-controller/hint-controller.directive.js +1 -1
  285. package/esm2015/directives/hint-controller/hint-controller.module.js +1 -1
  286. package/esm2015/directives/hint-controller/hint-controller.provider.js +1 -1
  287. package/esm2015/directives/hint-controller/hint-controller.token.js +1 -1
  288. package/esm2015/directives/index.js +2 -2
  289. package/esm2015/directives/manual-hint/manual-hint.module.js +1 -1
  290. package/esm2015/directives/mask-accessor/mask-accessor.module.js +1 -1
  291. package/esm2015/directives/mode/mode.module.js +1 -1
  292. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +2 -2
  293. package/esm2015/directives/pointer-hint/pointer-hint.module.js +1 -1
  294. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  295. package/esm2015/directives/table-mode/table-mode.module.js +1 -1
  296. package/esm2015/directives/textfield-controller/index.js +3 -3
  297. package/esm2015/directives/textfield-controller/textfield-controller.module.js +1 -1
  298. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  299. package/esm2015/directives/textfield-controller/textfield.controller.js +1 -1
  300. package/esm2015/enums/appearance.js +2 -1
  301. package/esm2015/interfaces/dialog-context.js +1 -1
  302. package/esm2015/interfaces/index.js +1 -1
  303. package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  304. package/esm2015/mask/index.js +1 -1
  305. package/esm2015/modules/notifications/index.js +3 -3
  306. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +1 -1
  307. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +1 -1
  308. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  309. package/esm2015/modules/notifications/notifications.module.js +1 -1
  310. package/esm2015/modules/notifications/notifications.service.js +1 -1
  311. package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  312. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  313. package/esm2015/pipes/calendar-sheet/index.js +2 -2
  314. package/esm2015/pipes/format-number/format-number.pipe.js +1 -1
  315. package/esm2015/pipes/index.js +2 -2
  316. package/esm2015/pipes/month/month.module.js +1 -1
  317. package/esm2015/pipes/pluralize/pluralize.module.js +1 -1
  318. package/esm2015/providers/index.js +2 -2
  319. package/esm2015/services/hint.service.js +1 -1
  320. package/esm2015/services/svg.service.js +2 -2
  321. package/esm2015/tokens/animation-options.js +1 -1
  322. package/esm2015/tokens/index.js +5 -5
  323. package/esm2015/tokens/ordered-short-week-days.js +1 -1
  324. package/esm2015/types/marker-handler.js +1 -1
  325. package/esm5/abstract/abstract-dropdown.js +1 -1
  326. package/esm5/components/button/button.component.js +1 -1
  327. package/esm5/components/button/button.module.js +1 -1
  328. package/esm5/components/data-list/data-list.component.js +21 -21
  329. package/esm5/components/data-list/data-list.module.js +2 -2
  330. package/esm5/components/data-list/index.js +2 -2
  331. package/esm5/components/data-list/option/option.component.js +1 -1
  332. package/esm5/components/dialog/dialog.component.js +1 -1
  333. package/esm5/components/dialog/dialog.directive.js +18 -43
  334. package/esm5/components/dialog/dialog.module.js +1 -1
  335. package/esm5/components/dialog/dialog.service.js +1 -1
  336. package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
  337. package/esm5/components/dropdown-box/dropdown-box.module.js +1 -1
  338. package/esm5/components/error/error.component.js +1 -1
  339. package/esm5/components/error/error.module.js +1 -1
  340. package/esm5/components/expand/expand.component.js +5 -5
  341. package/esm5/components/expand/expand.module.js +2 -2
  342. package/esm5/components/group/group.component.js +1 -1
  343. package/esm5/components/group/group.module.js +1 -1
  344. package/esm5/components/hints-host/hint-box/hint-box.component.js +20 -12
  345. package/esm5/components/hints-host/hint-box/hint-box.module.js +1 -1
  346. package/esm5/components/hints-host/hints-host.module.js +1 -1
  347. package/esm5/components/hints-host/index.js +3 -3
  348. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  349. package/esm5/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  350. package/esm5/components/index.js +2 -2
  351. package/esm5/components/label/label.module.js +1 -1
  352. package/esm5/components/link/link.component.js +5 -3
  353. package/esm5/components/loader/loader.module.js +1 -1
  354. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  355. package/esm5/components/primitive-calendar/primitive-calendar.module.js +1 -1
  356. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -17
  357. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +4 -4
  358. package/esm5/components/primitive-textfield/primitive-textfield.component.js +7 -14
  359. package/esm5/components/primitive-textfield/primitive-textfield.module.js +1 -1
  360. package/esm5/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  361. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +13 -3
  362. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +4 -4
  363. package/esm5/components/root/root.module.js +1 -1
  364. package/esm5/components/scroll-controls/index.js +2 -2
  365. package/esm5/components/scroll-controls/scroll-controls.module.js +2 -2
  366. package/esm5/components/scrollbar/index.js +2 -2
  367. package/esm5/components/scrollbar/scrollbar.component.js +3 -3
  368. package/esm5/components/scrollbar/scrollbar.module.js +1 -1
  369. package/esm5/components/svg/svg.component.js +2 -2
  370. package/esm5/components/svg/svg.module.js +1 -1
  371. package/esm5/components/theme-night/theme-night.module.js +1 -1
  372. package/esm5/components/tooltip/tooltip.component.js +2 -2
  373. package/esm5/components/wrapper/wrapper.module.js +1 -1
  374. package/esm5/constants/index.js +2 -2
  375. package/esm5/constants/version.js +2 -2
  376. package/esm5/directives/border/border.module.js +1 -1
  377. package/esm5/directives/color/color.module.js +1 -1
  378. package/esm5/directives/color/index.js +2 -2
  379. package/esm5/directives/described-by/described-by.module.js +1 -1
  380. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  381. package/esm5/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  382. package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  383. package/esm5/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  384. package/esm5/directives/hint/hint.directive.js +2 -2
  385. package/esm5/directives/hint/hint.module.js +1 -1
  386. package/esm5/directives/hint-controller/hint-controller.directive.js +1 -1
  387. package/esm5/directives/hint-controller/hint-controller.module.js +1 -1
  388. package/esm5/directives/hint-controller/hint-controller.provider.js +1 -1
  389. package/esm5/directives/hint-controller/hint-controller.token.js +1 -1
  390. package/esm5/directives/index.js +2 -2
  391. package/esm5/directives/manual-hint/manual-hint.module.js +1 -1
  392. package/esm5/directives/mask-accessor/mask-accessor.module.js +1 -1
  393. package/esm5/directives/mode/mode.module.js +1 -1
  394. package/esm5/directives/pointer-hint/pointer-hint.directive.js +2 -2
  395. package/esm5/directives/pointer-hint/pointer-hint.module.js +1 -1
  396. package/esm5/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  397. package/esm5/directives/table-mode/table-mode.module.js +1 -1
  398. package/esm5/directives/textfield-controller/index.js +3 -3
  399. package/esm5/directives/textfield-controller/textfield-controller.module.js +1 -1
  400. package/esm5/directives/textfield-controller/textfield-controller.provider.js +2 -2
  401. package/esm5/directives/textfield-controller/textfield.controller.js +1 -1
  402. package/esm5/enums/appearance.js +2 -1
  403. package/esm5/interfaces/dialog-context.js +1 -1
  404. package/esm5/interfaces/index.js +1 -1
  405. package/esm5/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  406. package/esm5/mask/index.js +1 -1
  407. package/esm5/modules/notifications/index.js +3 -3
  408. package/esm5/modules/notifications/notification-alert/Notification-alert.js +1 -1
  409. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +1 -1
  410. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  411. package/esm5/modules/notifications/notifications.module.js +1 -1
  412. package/esm5/modules/notifications/notifications.service.js +1 -1
  413. package/esm5/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  414. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  415. package/esm5/pipes/calendar-sheet/index.js +2 -2
  416. package/esm5/pipes/format-number/format-number.pipe.js +1 -1
  417. package/esm5/pipes/index.js +2 -2
  418. package/esm5/pipes/month/month.module.js +1 -1
  419. package/esm5/pipes/pluralize/pluralize.module.js +1 -1
  420. package/esm5/providers/index.js +2 -2
  421. package/esm5/services/hint.service.js +1 -1
  422. package/esm5/services/svg.service.js +2 -2
  423. package/esm5/tokens/animation-options.js +1 -1
  424. package/esm5/tokens/index.js +5 -5
  425. package/esm5/tokens/ordered-short-week-days.js +1 -1
  426. package/esm5/types/marker-handler.js +1 -1
  427. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  428. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  429. package/fesm2015/taiga-ui-core-components-data-list.js +17 -17
  430. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  431. package/fesm2015/taiga-ui-core-components-dialog.js +14 -35
  432. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  433. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  434. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  435. package/fesm2015/taiga-ui-core-components-expand.js +5 -5
  436. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  437. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  438. package/fesm2015/taiga-ui-core-components-hints-host.js +20 -17
  439. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  440. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  441. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  442. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  443. package/fesm2015/taiga-ui-core-components-link.js +4 -2
  444. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  445. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  446. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +3 -3
  447. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  448. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -12
  449. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  450. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +4 -4
  451. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  452. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +14 -11
  453. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  454. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +3 -3
  455. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  456. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  457. package/fesm2015/taiga-ui-core-components-scroll-controls.js +56 -56
  458. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  459. package/fesm2015/taiga-ui-core-components-scrollbar.js +19 -19
  460. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  461. package/fesm2015/taiga-ui-core-components-svg.js +1 -1
  462. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  463. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  464. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  465. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  466. package/fesm2015/taiga-ui-core-components-wrapper.js.map +1 -1
  467. package/fesm2015/taiga-ui-core-components.js +1 -1
  468. package/fesm2015/taiga-ui-core-constants.js +3 -3
  469. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  470. package/fesm2015/taiga-ui-core-directives-border.js.map +1 -1
  471. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  472. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  473. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  474. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  475. package/fesm2015/taiga-ui-core-directives-hint.js +1 -1
  476. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  477. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  478. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  479. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  480. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +1 -1
  481. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  482. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  483. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  484. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  485. package/fesm2015/taiga-ui-core-directives.js +1 -1
  486. package/fesm2015/taiga-ui-core-enums.js +1 -0
  487. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  488. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  489. package/fesm2015/taiga-ui-core-modules-notifications.js +22 -22
  490. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  491. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  492. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  493. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  494. package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +1 -1
  495. package/fesm2015/taiga-ui-core-pipes.js +1 -1
  496. package/fesm2015/taiga-ui-core-providers.js +7 -7
  497. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  498. package/fesm2015/taiga-ui-core-services.js +1 -1
  499. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  500. package/fesm2015/taiga-ui-core-tokens.js +25 -25
  501. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  502. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  503. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  504. package/fesm5/taiga-ui-core-components-data-list.js +21 -21
  505. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  506. package/fesm5/taiga-ui-core-components-dialog.js +18 -42
  507. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  508. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  509. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  510. package/fesm5/taiga-ui-core-components-expand.js +5 -5
  511. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  512. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  513. package/fesm5/taiga-ui-core-components-hints-host.js +24 -17
  514. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  515. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +10 -10
  516. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  517. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  518. package/fesm5/taiga-ui-core-components-link.js +4 -2
  519. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  520. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  521. package/fesm5/taiga-ui-core-components-primitive-calendar.js +3 -3
  522. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  523. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +3 -16
  524. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  525. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +4 -4
  526. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  527. package/fesm5/taiga-ui-core-components-primitive-textfield.js +18 -15
  528. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  529. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +3 -3
  530. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  531. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  532. package/fesm5/taiga-ui-core-components-scroll-controls.js +63 -63
  533. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  534. package/fesm5/taiga-ui-core-components-scrollbar.js +22 -22
  535. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  536. package/fesm5/taiga-ui-core-components-svg.js +1 -1
  537. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  538. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  539. package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
  540. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  541. package/fesm5/taiga-ui-core-components-wrapper.js.map +1 -1
  542. package/fesm5/taiga-ui-core-components.js +1 -1
  543. package/fesm5/taiga-ui-core-constants.js +3 -3
  544. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  545. package/fesm5/taiga-ui-core-directives-border.js.map +1 -1
  546. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  547. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  548. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  549. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  550. package/fesm5/taiga-ui-core-directives-hint.js +1 -1
  551. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  552. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  553. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  554. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  555. package/fesm5/taiga-ui-core-directives-pointer-hint.js +1 -1
  556. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  557. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  558. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  559. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  560. package/fesm5/taiga-ui-core-directives.js +1 -1
  561. package/fesm5/taiga-ui-core-enums.js +1 -0
  562. package/fesm5/taiga-ui-core-enums.js.map +1 -1
  563. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  564. package/fesm5/taiga-ui-core-modules-notifications.js +23 -23
  565. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  566. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  567. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  568. package/fesm5/taiga-ui-core-pipes-month.js.map +1 -1
  569. package/fesm5/taiga-ui-core-pipes-pluralize.js.map +1 -1
  570. package/fesm5/taiga-ui-core-pipes.js +1 -1
  571. package/fesm5/taiga-ui-core-providers.js +7 -7
  572. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  573. package/fesm5/taiga-ui-core-services.js +1 -1
  574. package/fesm5/taiga-ui-core-services.js.map +1 -1
  575. package/fesm5/taiga-ui-core-tokens.js +25 -25
  576. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  577. package/interfaces/index.d.ts +2 -2
  578. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  579. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  580. package/mask/index.d.ts +1 -1
  581. package/mask/taiga-ui-core-mask.metadata.json +1 -1
  582. package/modules/notifications/index.d.ts +2 -2
  583. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  584. package/package.json +5 -3
  585. package/pipes/calendar-sheet/index.d.ts +1 -1
  586. package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.metadata.json +1 -1
  587. package/pipes/index.d.ts +1 -1
  588. package/pipes/month/taiga-ui-core-pipes-month.metadata.json +1 -1
  589. package/pipes/pluralize/taiga-ui-core-pipes-pluralize.metadata.json +1 -1
  590. package/pipes/taiga-ui-core-pipes.metadata.json +1 -1
  591. package/providers/index.d.ts +1 -1
  592. package/providers/taiga-ui-core-providers.metadata.json +1 -1
  593. package/services/hint.service.d.ts +3 -3
  594. package/services/svg.service.d.ts +1 -1
  595. package/services/taiga-ui-core-services.metadata.json +1 -1
  596. package/styles/theme/variables.less +1 -1
  597. package/styles/theme/wrapper/accent.less +31 -0
  598. package/styles/theme/wrapper/icon.less +1 -0
  599. package/styles/theme/wrapper/outline.less +1 -0
  600. package/styles/theme/wrapper/primary.less +1 -0
  601. package/styles/theme/wrapper/secondary.less +1 -0
  602. package/styles/theme/wrapper/whiteblock.less +2 -0
  603. package/styles/theme/wrapper.less +1 -0
  604. package/tokens/index.d.ts +4 -4
  605. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/button/button-options.ts","ng://@taiga-ui/core/components/button/button.component.ts","ng://@taiga-ui/core/components/button/button.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TUI_BUTTON_DEFAULT_OPTIONS","size","shape","appearance","TUI_BUTTON_OPTIONS","InjectionToken","factory","TuiButtonComponent","elementRef","focusVisible$","hoveredService","destroy$","changeDetectorRef","takeOnlyTrustedEvents","options","_this","_super","call","this","disabled","icon","iconRight","showLoader","createHovered$","nativeElement","pipe","watch","takeUntil","subscribe","hovered","updateHovered","pressedObservable","onlyTrusted","pressed","updatePressed","focusVisible","updateFocusVisible","__","constructor","prototype","create","__extends","nativeDisabled","isNativeFocused","computedDisabled","focusable","onFocused","focused","updateFocused","ElementRef","type","Inject","args","TuiFocusVisibleService","TuiHoveredService","Observable","TuiDestroyService","ChangeDetectorRef","TUI_TAKE_ONLY_TRUSTED_EVENTS","Input","HostBinding","tuiDefaultProp","HostListener","TuiButtonComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiInteractive","TuiButtonModule","NgModule","imports","CommonModule","PolymorpheusModule","TuiWrapperModule","TuiSvgModule","TuiLoaderModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,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,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HZ,EAAvHa,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE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AAsD,EAAAA,OAAOO,EAAAA,+BAEP7D,EAAA,EAAAsD,EAAAA,OAAO/C,KA5CHG,IACDoE,EAAAA,qCC1BZ,SAAAC,KAA8B,OAAjBA,EAAe7F,EAAA,CAX3B8F,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,aACAC,EAAAA,iBAEJC,aAAc,CAAC7E,GACf8E,QAAS,CAAC9E,MAEDqE","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 (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\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 function __createBinding(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, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = 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\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\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 __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\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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = 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, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core/types';\n\nexport interface ButtonOptions {\n readonly size: TuiSizeXS | TuiSizeXL;\n readonly appearance: TuiAppearance | string;\n readonly shape: 'square' | 'rounded' | null;\n}\n\nexport const TUI_BUTTON_DEFAULT_OPTIONS: ButtonOptions = {\n size: 'l',\n shape: null,\n appearance: TuiAppearance.Primary,\n};\n\nexport const TUI_BUTTON_OPTIONS = new InjectionToken<ButtonOptions>(\n 'Default parameters for button component',\n {\n factory: () => TUI_BUTTON_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {\n AbstractTuiInteractive,\n isNativeFocused,\n pressedObservable,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_TAKE_ONLY_TRUSTED_EVENTS,\n tuiDefaultProp,\n TuiDestroyService,\n TuiFocusableElementAccessor,\n TuiFocusVisibleService,\n TuiHoveredService,\n watch,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\nimport {ButtonOptions, TUI_BUTTON_OPTIONS} from './button-options';\n\n@Component({\n selector: 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]',\n templateUrl: './button.template.html',\n styleUrls: ['./button.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiButtonComponent),\n },\n TuiDestroyService,\n TuiFocusVisibleService,\n ],\n})\nexport class TuiButtonComponent\n extends AbstractTuiInteractive\n implements TuiFocusableElementAccessor, ButtonOptions\n{\n @Input()\n @HostBinding('attr.data-appearance')\n @tuiDefaultProp()\n appearance = this.options.appearance;\n\n @Input()\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n @tuiDefaultProp()\n icon: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n iconRight: PolymorpheusContent = '';\n\n @Input()\n @HostBinding('attr.data-tui-host-shape')\n @tuiDefaultProp()\n shape = this.options.shape;\n\n @Input()\n @HostBinding('class._loading')\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size = this.options.size;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiFocusVisibleService) focusVisible$: TuiFocusVisibleService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n @Inject(TUI_BUTTON_OPTIONS) private readonly options: ButtonOptions,\n ) {\n super();\n\n hoveredService\n .createHovered$(elementRef.nativeElement)\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(hovered => {\n this.updateHovered(hovered);\n });\n pressedObservable(elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n })\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(pressed => {\n this.updatePressed(pressed);\n });\n focusVisible$.subscribe(focusVisible => {\n this.updateFocusVisible(focusVisible);\n });\n }\n\n get nativeFocusableElement(): HTMLElement | null {\n return this.nativeDisabled ? null : this.elementRef.nativeElement;\n }\n\n get focused(): boolean {\n return !this.showLoader && isNativeFocused(this.elementRef.nativeElement);\n }\n\n get loaderSize(): TuiSizeS {\n return this.size === 'l' || this.size === 'xl' ? 'm' : 's';\n }\n\n @HostBinding('attr.disabled')\n get nativeDisabled(): '' | null {\n return this.computedDisabled || this.showLoader ? '' : null;\n }\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n\n @HostListener('focusin', ['true'])\n @HostListener('focusout', ['false'])\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLoaderModule} from '@taiga-ui/core/components/loader';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiWrapperModule} from '@taiga-ui/core/components/wrapper';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TuiButtonComponent} from './button.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n ],\n declarations: [TuiButtonComponent],\n exports: [TuiButtonComponent],\n})\nexport class TuiButtonModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/button/button-options.ts","ng://@taiga-ui/core/components/button/button.component.ts","ng://@taiga-ui/core/components/button/button.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TUI_BUTTON_DEFAULT_OPTIONS","size","shape","appearance","TUI_BUTTON_OPTIONS","InjectionToken","factory","TuiButtonComponent","elementRef","focusVisible$","hoveredService","destroy$","changeDetectorRef","takeOnlyTrustedEvents","options","_this","_super","call","this","disabled","icon","iconRight","showLoader","createHovered$","nativeElement","pipe","watch","takeUntil","subscribe","hovered","updateHovered","pressedObservable","onlyTrusted","pressed","updatePressed","focusVisible","updateFocusVisible","__","constructor","prototype","create","__extends","nativeDisabled","isNativeFocused","computedDisabled","focusable","onFocused","focused","updateFocused","ElementRef","type","Inject","args","TuiFocusVisibleService","TuiHoveredService","Observable","TuiDestroyService","ChangeDetectorRef","TUI_TAKE_ONLY_TRUSTED_EVENTS","Input","HostBinding","tuiDefaultProp","HostListener","TuiButtonComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiInteractive","TuiButtonModule","NgModule","imports","CommonModule","PolymorpheusModule","TuiWrapperModule","TuiSvgModule","TuiLoaderModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,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,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HZ,EAAvHa,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOV,OAAOe,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,KAASpB,EAAIS,EAAWW,MAAIJ,GAAKH,EAAI,EAAIb,EAAEgB,GAAKH,EAAI,EAAIb,EAAEU,EAAQC,EAAKK,GAAKhB,EAAEU,EAAQC,KAASK,GAChJ,OAAOH,EAAI,GAAKG,GAAKd,OAAOmB,eAAeX,EAAQC,EAAKK,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,QACAE,EAAAA,kDAMD9E,EAAA,CAHC4E,EAAAA,QACAC,EAAAA,YAAY,4BACZC,EAAAA,8CAMD9E,EAAA,CAHC4E,EAAAA,QACAC,EAAAA,YAAY,kBACZC,EAAAA,mDAMD9E,EAAA,CAHC4E,EAAAA,QACAC,EAAAA,YAAY,2BACZC,EAAAA,6CA8CD9E,EAAA,CADC6E,EAAAA,YAAY,qDAMb7E,EAAA,CADC6E,EAAAA,YAAY,0CAOb7E,EAAA,CAFC+E,EAAAA,aAAa,UAAW,CAAC,SACzBA,EAAAA,aAAa,WAAY,CAAC,yCAzFlBvD,EAAkBwD,EAAAhF,EAAA,CAd9BiF,EAAAA,UAAU,CACPC,SAAU,2EACVC,SAAA,28BAEAC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,UAAW,CACP,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAX,MAElCP,EAAAA,kBACAH,EAAAA,6pFAwCCxD,EAAA,EAAAsD,EAAAA,OAAOF,EAAAA,aACPpD,EAAA,EAAAsD,EAAAA,OAAOE,EAAAA,yBACPxD,EAAA,EAAAsD,EAAAA,OAAOG,EAAAA,oBACPzD,EAAA,EAAAsD,EAAAA,OAAOK,EAAAA,oBACP3D,EAAA,EAAAsD,EAAAA,OAAOM,EAAAA,oBACP5D,EAAA,EAAAsD,EAAAA,OAAOO,EAAAA,+BAEP7D,EAAA,EAAAsD,EAAAA,OAAO/C,KA5CHG,IACDoE,EAAAA,qCC1BZ,SAAAC,KAA8B,OAAjBA,EAAe7F,EAAA,CAX3B8F,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,aACAC,EAAAA,iBAEJC,aAAc,CAAC7E,GACf8E,QAAS,CAAC9E,MAEDqE","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 (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\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 function __createBinding(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, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = 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\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\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 __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\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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = 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, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core/types';\n\nexport interface ButtonOptions {\n readonly size: TuiSizeXS | TuiSizeXL;\n readonly appearance: TuiAppearance | string;\n readonly shape: 'square' | 'rounded' | null;\n}\n\nexport const TUI_BUTTON_DEFAULT_OPTIONS: ButtonOptions = {\n size: 'l',\n shape: null,\n appearance: TuiAppearance.Primary,\n};\n\nexport const TUI_BUTTON_OPTIONS = new InjectionToken<ButtonOptions>(\n 'Default parameters for button component',\n {\n factory: () => TUI_BUTTON_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {\n AbstractTuiInteractive,\n isNativeFocused,\n pressedObservable,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_TAKE_ONLY_TRUSTED_EVENTS,\n tuiDefaultProp,\n TuiDestroyService,\n TuiFocusableElementAccessor,\n TuiFocusVisibleService,\n TuiHoveredService,\n watch,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {ButtonOptions, TUI_BUTTON_OPTIONS} from './button-options';\n\n@Component({\n selector: 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]',\n templateUrl: './button.template.html',\n styleUrls: ['./button.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiButtonComponent),\n },\n TuiDestroyService,\n TuiFocusVisibleService,\n ],\n})\nexport class TuiButtonComponent\n extends AbstractTuiInteractive\n implements TuiFocusableElementAccessor, ButtonOptions\n{\n @Input()\n @HostBinding('attr.data-appearance')\n @tuiDefaultProp()\n appearance = this.options.appearance;\n\n @Input()\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n @tuiDefaultProp()\n icon: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n iconRight: PolymorpheusContent = '';\n\n @Input()\n @HostBinding('attr.data-tui-host-shape')\n @tuiDefaultProp()\n shape = this.options.shape;\n\n @Input()\n @HostBinding('class._loading')\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size = this.options.size;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiFocusVisibleService) focusVisible$: TuiFocusVisibleService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n @Inject(TUI_BUTTON_OPTIONS) private readonly options: ButtonOptions,\n ) {\n super();\n\n hoveredService\n .createHovered$(elementRef.nativeElement)\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(hovered => {\n this.updateHovered(hovered);\n });\n pressedObservable(elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n })\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(pressed => {\n this.updatePressed(pressed);\n });\n focusVisible$.subscribe(focusVisible => {\n this.updateFocusVisible(focusVisible);\n });\n }\n\n get nativeFocusableElement(): HTMLElement | null {\n return this.nativeDisabled ? null : this.elementRef.nativeElement;\n }\n\n get focused(): boolean {\n return !this.showLoader && isNativeFocused(this.elementRef.nativeElement);\n }\n\n get loaderSize(): TuiSizeS {\n return this.size === 'l' || this.size === 'xl' ? 'm' : 's';\n }\n\n @HostBinding('attr.disabled')\n get nativeDisabled(): '' | null {\n return this.computedDisabled || this.showLoader ? '' : null;\n }\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n\n @HostListener('focusin', ['true'])\n @HostListener('focusout', ['false'])\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLoaderModule} from '@taiga-ui/core/components/loader';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiWrapperModule} from '@taiga-ui/core/components/wrapper';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiButtonComponent} from './button.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n ],\n declarations: [TuiButtonComponent],\n exports: [TuiButtonComponent],\n})\nexport class TuiButtonModule {}\n"]}
@@ -327,9 +327,9 @@
327
327
  function TuiDataListComponent(elementRef, defaultEmptyContent$) {
328
328
  this.elementRef = elementRef;
329
329
  this.defaultEmptyContent$ = defaultEmptyContent$;
330
+ this.options = cdk.EMPTY_QUERY;
330
331
  this.role = 'listbox';
331
332
  this.emptyContent = '';
332
- this.options = cdk.EMPTY_QUERY;
333
333
  }
334
334
  TuiDataListComponent_1 = TuiDataListComponent;
335
335
  Object.defineProperty(TuiDataListComponent.prototype, "empty$", {
@@ -342,6 +342,22 @@
342
342
  enumerable: true,
343
343
  configurable: true
344
344
  });
345
+ TuiDataListComponent.prototype.onFocusIn = function (relatedTarget, currentTarget) {
346
+ if (!currentTarget.contains(relatedTarget) && !this.origin) {
347
+ this.origin = relatedTarget;
348
+ }
349
+ };
350
+ TuiDataListComponent.prototype.noop = function () { };
351
+ TuiDataListComponent.prototype.onKeyDownArrow = function (current, step) {
352
+ var elements = this.elements;
353
+ cdk.moveFocus(elements.indexOf(current), elements, step);
354
+ };
355
+ // TODO: Consider aria-activedescendant for proper accessibility implementation
356
+ TuiDataListComponent.prototype.handleFocusLossIfNecessary = function (element) {
357
+ if (this.origin && cdk.isNativeFocusedIn(element)) {
358
+ cdk.setNativeMouseFocused(this.origin, true, true);
359
+ }
360
+ };
345
361
  TuiDataListComponent.prototype.getOptions = function (includeDisabled) {
346
362
  if (includeDisabled === void 0) { includeDisabled = false; }
347
363
  return this.options
@@ -356,27 +372,11 @@
356
372
  })
357
373
  .filter(cdk.isPresent);
358
374
  };
359
- TuiDataListComponent.prototype.onFocusIn = function (relatedTarget, currentTarget) {
360
- if (!currentTarget.contains(relatedTarget) && !this.origin) {
361
- this.origin = relatedTarget;
362
- }
363
- };
364
- TuiDataListComponent.prototype.noop = function () { };
365
- TuiDataListComponent.prototype.onKeyDownArrow = function (current, step) {
366
- var elements = this.elements;
367
- cdk.moveFocus(elements.indexOf(current), elements, step);
368
- };
369
375
  TuiDataListComponent.prototype.onFocus = function (element, top) {
370
376
  var elements = this.elements;
371
377
  cdk.moveFocus(top ? -1 : elements.length, elements, top ? 1 : -1);
372
378
  this.handleFocusLossIfNecessary(element);
373
379
  };
374
- // TODO: Consider aria-activedescendant for proper accessibility implementation
375
- TuiDataListComponent.prototype.handleFocusLossIfNecessary = function (element) {
376
- if (this.origin && cdk.isNativeFocusedIn(element)) {
377
- cdk.setNativeMouseFocused(this.origin, true, true);
378
- }
379
- };
380
380
  Object.defineProperty(TuiDataListComponent.prototype, "elements", {
381
381
  get: function () {
382
382
  return Array.from(this.elementRef.nativeElement.querySelectorAll('[tuiOption]'));
@@ -389,6 +389,9 @@
389
389
  { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
390
390
  { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_NOTHING_FOUND_MESSAGE,] }] }
391
391
  ]; };
392
+ __decorate([
393
+ core.ContentChildren(core.forwardRef(function () { return TuiOptionComponent; }), { descendants: true })
394
+ ], TuiDataListComponent.prototype, "options", void 0);
392
395
  __decorate([
393
396
  core.Input(),
394
397
  core.HostBinding('attr.role'),
@@ -398,9 +401,6 @@
398
401
  core.Input(),
399
402
  cdk.tuiDefaultProp()
400
403
  ], TuiDataListComponent.prototype, "emptyContent", void 0);
401
- __decorate([
402
- core.ContentChildren(core.forwardRef(function () { return TuiOptionComponent; }), { descendants: true })
403
- ], TuiDataListComponent.prototype, "options", void 0);
404
404
  __decorate([
405
405
  cdk.tuiPure
406
406
  ], TuiDataListComponent.prototype, "empty$", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-data-list.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/data-list/option/option.component.ts","ng://@taiga-ui/core/components/data-list/data-list.component.ts","ng://@taiga-ui/core/components/data-list/data-list.directive.ts","ng://@taiga-ui/core/components/data-list/data-list-dropdown-manager.directive.ts","ng://@taiga-ui/core/components/data-list/opt-group.directive.ts","ng://@taiga-ui/core/components/data-list/data-list.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 (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\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 function __createBinding(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, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = 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\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\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 __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\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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = 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, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Self,\n TemplateRef,\n} from '@angular/core';\nimport {\n isNativeFocused,\n setNativeFocused,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiEventWith,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\nimport {TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT} from '@taiga-ui/core/tokens';\nimport {TuiOptionRole, TuiSizeL, TuiSizeXS} from '@taiga-ui/core/types';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {TuiDataListComponent} from '../data-list.component';\n\nexport function shouldFocus({\n currentTarget,\n}: TuiEventWith<MouseEvent, HTMLElement>): boolean {\n return !isNativeFocused(currentTarget);\n}\n\n// TODO: Consider all use cases for aria roles\n@Component({\n selector: `button[tuiOption], a[tuiOption]`,\n templateUrl: './option.template.html',\n styleUrls: ['./option.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n tabIndex: '-1',\n type: 'button',\n '[attr.disabled]': 'disabled || null',\n },\n})\nexport class TuiOptionComponent<T = unknown> implements OnDestroy {\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeXS | TuiSizeL = 'm';\n\n @Input()\n @HostBinding('attr.role')\n @tuiDefaultProp()\n role: TuiOptionRole = 'option';\n\n @Input()\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n value?: T;\n\n // TODO: Fix dataList type when updated to Ivy and compilation drops metadata\n constructor(\n @Optional()\n @Inject(TUI_OPTION_CONTENT)\n readonly content: PolymorpheusContent<\n TuiContextWithImplicit<TemplateRef<{}>>\n > | null,\n @Inject(forwardRef(() => TuiDataListComponent))\n private readonly dataList: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Optional()\n @Inject(TUI_DATA_LIST_HOST)\n private readonly host: TuiDataListHost<T> | null,\n @Optional()\n @Self()\n @Inject(TuiDropdownDirective)\n readonly dropdown: TuiDropdownDirective | null,\n ) {}\n\n @HostBinding('class._with-dropdown')\n get active(): boolean {\n return !!this.dropdown && !!this.dropdown.dropdownBoxRef;\n }\n\n @HostListener('click')\n onClick() {\n if (this.host && this.value !== undefined) {\n this.host.handleOption(this.value);\n }\n }\n\n // @bad TODO: Consider aria-activedescendant for proper accessibility implementation\n @shouldCall(shouldFocus)\n @HostListener('mousemove.init', ['$event'])\n @HostListener('mousemove.silent', ['$event'])\n onMouseMove({currentTarget}: TuiEventWith<MouseEvent, HTMLElement>) {\n setNativeFocused(currentTarget, true, true);\n }\n\n // Preventing focus loss upon focused option removal\n ngOnDestroy() {\n this.dataList.handleFocusLossIfNecessary(this.elementRef.nativeElement);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n isNativeFocusedIn,\n isPresent,\n itemsQueryListObservable,\n moveFocus,\n setNativeMouseFocused,\n tuiDefaultProp,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\nimport {TUI_DATA_LIST_ACCESSOR, TUI_NOTHING_FOUND_MESSAGE} from '@taiga-ui/core/tokens';\nimport {TuiDataListRole} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {TuiOptionComponent} from './option/option.component';\n\n// TODO: Consider aria-activedescendant for proper accessibility implementation\n// @dynamic\n@Component({\n selector: 'tui-data-list',\n templateUrl: './data-list.template.html',\n styleUrls: ['./data-list.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting: forwardRef(() => TuiDataListComponent),\n },\n ],\n})\nexport class TuiDataListComponent<T> implements TuiDataListAccessor<T> {\n @Input()\n @HostBinding('attr.role')\n @tuiDefaultProp()\n role: TuiDataListRole = 'listbox';\n\n @Input()\n @tuiDefaultProp()\n emptyContent: PolymorpheusContent = '';\n\n @ContentChildren(forwardRef(() => TuiOptionComponent), {descendants: true})\n private readonly options: QueryList<TuiOptionComponent<T>> = EMPTY_QUERY;\n\n private origin?: HTMLElement;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_NOTHING_FOUND_MESSAGE)\n readonly defaultEmptyContent$: Observable<string>,\n ) {}\n\n @tuiPure\n get empty$(): Observable<boolean> {\n return itemsQueryListObservable(this.options).pipe(map(({length}) => !length));\n }\n\n getOptions(includeDisabled: boolean = false): ReadonlyArray<T> {\n return this.options\n .toArray()\n .filter(({disabled}) => includeDisabled || !disabled)\n .map(({value}) => value)\n .filter(isPresent);\n }\n\n @HostListener('focusin', ['$event.relatedTarget', '$event.currentTarget'])\n onFocusIn(relatedTarget: HTMLElement, currentTarget: HTMLElement) {\n if (!currentTarget.contains(relatedTarget) && !this.origin) {\n this.origin = relatedTarget;\n }\n }\n\n @HostListener('mousedown.prevent')\n noop() {}\n\n @HostListener('keydown.arrowDown.prevent', ['$event.target', '1'])\n @HostListener('keydown.arrowUp.prevent', ['$event.target', '-1'])\n onKeyDownArrow(current: HTMLElement, step: number) {\n const {elements} = this;\n\n moveFocus(elements.indexOf(current), elements, step);\n }\n\n onFocus(element: HTMLElement, top: boolean) {\n const {elements} = this;\n\n moveFocus(top ? -1 : elements.length, elements, top ? 1 : -1);\n this.handleFocusLossIfNecessary(element);\n }\n\n // TODO: Consider aria-activedescendant for proper accessibility implementation\n @HostListener('wheel.silent.passive', ['$event.currentTarget'])\n @HostListener('mouseleave', ['$event.target'])\n handleFocusLossIfNecessary(element: HTMLElement) {\n if (this.origin && isNativeFocusedIn(element)) {\n setNativeMouseFocused(this.origin, true, true);\n }\n }\n\n private get elements(): ReadonlyArray<HTMLElement> {\n return Array.from(this.elementRef.nativeElement.querySelectorAll('[tuiOption]'));\n }\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: 'ng-template[tuiDataList]',\n})\nexport class TuiDataListDirective {}\n","import {\n AfterViewInit,\n ContentChildren,\n Directive,\n ElementRef,\n QueryList,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n getClosestKeyboardFocusable,\n itemsQueryListObservable,\n preventDefault,\n setNativeFocused,\n tuiPure,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown';\nimport {EMPTY, merge, Observable} from 'rxjs';\nimport {\n debounceTime,\n filter,\n map,\n mapTo,\n shareReplay,\n switchMap,\n take,\n tap,\n} from 'rxjs/operators';\n\n// TODO: Move into separate module in 3.0\n@Directive({\n selector: 'tui-data-list[tuiDataListDropdownManager]',\n})\nexport class TuiDataListDropdownManagerDirective implements AfterViewInit {\n @ContentChildren(TuiDropdownDirective, {descendants: true})\n private readonly dropdowns: QueryList<TuiDropdownDirective> = EMPTY_QUERY;\n\n @ContentChildren(TuiDropdownDirective, {read: ElementRef, descendants: true})\n private readonly elements: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n ngAfterViewInit() {\n this.right$.subscribe(index => {\n this.tryToFocus(index);\n });\n\n merge(this.immediate$, this.debounce$)\n .pipe(\n switchMap(active => {\n this.dropdowns.forEach((dropdown, index) => {\n dropdown.open = index === active;\n });\n\n const element = this.elements.toArray()[active];\n const dropdown = this.dropdowns.toArray()[active];\n\n if (!element || !dropdown || !dropdown.dropdownBoxRef) {\n return EMPTY;\n }\n\n const {nativeElement} = dropdown.dropdownBoxRef.location;\n const mouseEnter$ = typedFromEvent(nativeElement, 'mouseenter').pipe(\n take(1),\n );\n const esc$ = merge(\n typedFromEvent(element.nativeElement, 'keydown'),\n typedFromEvent(nativeElement, 'keydown'),\n ).pipe(filter(({keyCode}) => keyCode === 27));\n\n return merge(mouseEnter$, esc$).pipe(\n tap(event => {\n if (dropdown.dropdownBoxRef) {\n event.stopPropagation();\n }\n\n setNativeFocused(element.nativeElement);\n // TODO: iframe warning\n dropdown.open = event instanceof MouseEvent;\n }),\n );\n }),\n )\n .subscribe();\n }\n\n @tuiPure\n private get elements$(): Observable<ReadonlyArray<HTMLElement>> {\n return itemsQueryListObservable(this.elements).pipe(\n map(array => array.map(({nativeElement}) => nativeElement)),\n shareReplay(1),\n );\n }\n\n @tuiPure\n private get right$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n typedFromEvent(element, 'keydown').pipe(\n filter(({keyCode}) => keyCode === 39),\n preventDefault(),\n mapTo(index),\n ),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get immediate$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n typedFromEvent(element, 'click').pipe(mapTo(index)),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get debounce$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n merge(\n typedFromEvent(element, 'focus'),\n typedFromEvent(element, 'blur'),\n ).pipe(\n filter(({relatedTarget}) =>\n this.notInDropdown(relatedTarget, index),\n ),\n map(({type}) => (type === 'focus' ? index : NaN)),\n ),\n ),\n ),\n ),\n debounceTime(300),\n );\n }\n\n private notInDropdown(element: EventTarget | null, index: number): boolean {\n const dropdown = this.dropdowns.toArray()[index];\n\n return (\n !dropdown ||\n !dropdown.dropdownBoxRef ||\n !dropdown.dropdownBoxRef.location.nativeElement.contains(element)\n );\n }\n\n private tryToFocus(index: number) {\n const dropdown = this.dropdowns.toArray()[index];\n const content =\n dropdown &&\n dropdown.dropdownBoxRef &&\n dropdown.dropdownBoxRef.instance.contentElementRef;\n\n if (!content) {\n return;\n }\n\n const item = getClosestKeyboardFocusable(\n content.nativeElement,\n false,\n content.nativeElement,\n );\n\n if (item) {\n setNativeFocused(item);\n }\n }\n}\n","import {Directive, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Directive({\n selector: 'tui-opt-group',\n host: {\n role: 'group',\n },\n})\nexport class TuiOptGroupDirective {\n @Input()\n @HostBinding('attr.data-label')\n @tuiDefaultProp()\n label = '';\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TuiDataListDropdownManagerDirective} from './data-list-dropdown-manager.directive';\nimport {TuiDataListComponent} from './data-list.component';\nimport {TuiDataListDirective} from './data-list.directive';\nimport {TuiOptGroupDirective} from './opt-group.directive';\nimport {TuiOptionComponent} from './option/option.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule, PolymorpheusModule],\n declarations: [\n TuiDataListComponent,\n TuiOptionComponent,\n TuiOptGroupDirective,\n TuiDataListDirective,\n TuiDataListDropdownManagerDirective,\n ],\n exports: [\n TuiDataListComponent,\n TuiOptionComponent,\n TuiOptGroupDirective,\n TuiDataListDirective,\n TuiDataListDropdownManagerDirective,\n ],\n})\nexport class TuiDataListModule {}\n"],"names":["isNativeFocused","setNativeFocused","Optional","Inject","TUI_OPTION_CONTENT","forwardRef","ElementRef","TUI_DATA_LIST_HOST","TuiDropdownDirective","Self","Input","HostBinding","tuiDefaultProp","HostListener","shouldCall","Component","ChangeDetectionStrategy","EMPTY_QUERY","itemsQueryListObservable","map","isPresent","moveFocus","isNativeFocusedIn","setNativeMouseFocused","Observable","TUI_NOTHING_FOUND_MESSAGE","ContentChildren","tuiPure","ViewEncapsulation","TUI_DATA_LIST_ACCESSOR","Directive","merge","switchMap","EMPTY","typedFromEvent","take","filter","tap","shareReplay","preventDefault","mapTo","debounceTime","getClosestKeyboardFocusable","NgModule","CommonModule","TuiSvgModule","PolymorpheusModule"],"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,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;AACF;IACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;IAC3C,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG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,EAAE,CAAC;SACd;QADG;YAHCpB,UAAK,EAAE;YACPC,gBAAW,CAAC,iBAAiB,CAAC;YAC9BC,kBAAc,EAAE;2DACN;QAJF,oBAAoB;YANhCkB,cAAS,CAAC;gBACP,QAAQ,EAAE,eAAe;gBACzB,IAAI,EAAE;oBACF,IAAI,EAAE,OAAO;iBAChB;aACJ,CAAC;WACW,oBAAoB,CAKhC;QAAD,2BAAC;KALD;;;QCkBA;SAAiC;QAApB,iBAAiB;YAjB7Ba,aAAQ,CAAC;gBACN,OAAO,EAAE,CAACC,mBAAY,EAAEC,gBAAY,EAAEC,iCAAkB,CAAC;gBACzD,YAAY,EAAE;oBACV,oBAAoB;oBACpB,kBAAkB;oBAClB,oBAAoB;oBACpB,oBAAoB;oBACpB,mCAAmC;iBACtC;gBACD,OAAO,EAAE;oBACL,oBAAoB;oBACpB,kBAAkB;oBAClB,oBAAoB;oBACpB,oBAAoB;oBACpB,mCAAmC;iBACtC;aACJ,CAAC;WACW,iBAAiB,CAAG;QAAD,wBAAC;KAAjC;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-data-list.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/core/components/data-list/option/option.component.ts","ng://@taiga-ui/core/components/data-list/data-list.component.ts","ng://@taiga-ui/core/components/data-list/data-list.directive.ts","ng://@taiga-ui/core/components/data-list/data-list-dropdown-manager.directive.ts","ng://@taiga-ui/core/components/data-list/opt-group.directive.ts","ng://@taiga-ui/core/components/data-list/data-list.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 (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\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 function __createBinding(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, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = 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\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\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 __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\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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = 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, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Self,\n TemplateRef,\n} from '@angular/core';\nimport {\n isNativeFocused,\n setNativeFocused,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiEventWith,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\nimport {TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT} from '@taiga-ui/core/tokens';\nimport {TuiOptionRole, TuiSizeL, TuiSizeXS} from '@taiga-ui/core/types';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDataListComponent} from '../data-list.component';\n\nexport function shouldFocus({\n currentTarget,\n}: TuiEventWith<MouseEvent, HTMLElement>): boolean {\n return !isNativeFocused(currentTarget);\n}\n\n// TODO: Consider all use cases for aria roles\n@Component({\n selector: `button[tuiOption], a[tuiOption]`,\n templateUrl: './option.template.html',\n styleUrls: ['./option.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n tabIndex: '-1',\n type: 'button',\n '[attr.disabled]': 'disabled || null',\n },\n})\nexport class TuiOptionComponent<T = unknown> implements OnDestroy {\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeXS | TuiSizeL = 'm';\n\n @Input()\n @HostBinding('attr.role')\n @tuiDefaultProp()\n role: TuiOptionRole = 'option';\n\n @Input()\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n value?: T;\n\n // TODO: Fix dataList type when updated to Ivy and compilation drops metadata\n constructor(\n @Optional()\n @Inject(TUI_OPTION_CONTENT)\n readonly content: PolymorpheusContent<\n TuiContextWithImplicit<TemplateRef<{}>>\n > | null,\n @Inject(forwardRef(() => TuiDataListComponent))\n private readonly dataList: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Optional()\n @Inject(TUI_DATA_LIST_HOST)\n private readonly host: TuiDataListHost<T> | null,\n @Optional()\n @Self()\n @Inject(TuiDropdownDirective)\n readonly dropdown: TuiDropdownDirective | null,\n ) {}\n\n @HostBinding('class._with-dropdown')\n get active(): boolean {\n return !!this.dropdown && !!this.dropdown.dropdownBoxRef;\n }\n\n @HostListener('click')\n onClick() {\n if (this.host && this.value !== undefined) {\n this.host.handleOption(this.value);\n }\n }\n\n // @bad TODO: Consider aria-activedescendant for proper accessibility implementation\n @shouldCall(shouldFocus)\n @HostListener('mousemove.init', ['$event'])\n @HostListener('mousemove.silent', ['$event'])\n onMouseMove({currentTarget}: TuiEventWith<MouseEvent, HTMLElement>) {\n setNativeFocused(currentTarget, true, true);\n }\n\n // Preventing focus loss upon focused option removal\n ngOnDestroy() {\n this.dataList.handleFocusLossIfNecessary(this.elementRef.nativeElement);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n isNativeFocusedIn,\n isPresent,\n itemsQueryListObservable,\n moveFocus,\n setNativeMouseFocused,\n tuiDefaultProp,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\nimport {TUI_DATA_LIST_ACCESSOR, TUI_NOTHING_FOUND_MESSAGE} from '@taiga-ui/core/tokens';\nimport {TuiDataListRole} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TuiOptionComponent} from './option/option.component';\n\n// TODO: Consider aria-activedescendant for proper accessibility implementation\n// @dynamic\n@Component({\n selector: 'tui-data-list',\n templateUrl: './data-list.template.html',\n styleUrls: ['./data-list.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting: forwardRef(() => TuiDataListComponent),\n },\n ],\n})\nexport class TuiDataListComponent<T> implements TuiDataListAccessor<T> {\n @ContentChildren(forwardRef(() => TuiOptionComponent), {descendants: true})\n private readonly options: QueryList<TuiOptionComponent<T>> = EMPTY_QUERY;\n\n private origin?: HTMLElement;\n\n @Input()\n @HostBinding('attr.role')\n @tuiDefaultProp()\n role: TuiDataListRole = 'listbox';\n\n @Input()\n @tuiDefaultProp()\n emptyContent: PolymorpheusContent = '';\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_NOTHING_FOUND_MESSAGE)\n readonly defaultEmptyContent$: Observable<string>,\n ) {}\n\n @tuiPure\n get empty$(): Observable<boolean> {\n return itemsQueryListObservable(this.options).pipe(map(({length}) => !length));\n }\n\n @HostListener('focusin', ['$event.relatedTarget', '$event.currentTarget'])\n onFocusIn(relatedTarget: HTMLElement, currentTarget: HTMLElement) {\n if (!currentTarget.contains(relatedTarget) && !this.origin) {\n this.origin = relatedTarget;\n }\n }\n\n @HostListener('mousedown.prevent')\n noop() {}\n\n @HostListener('keydown.arrowDown.prevent', ['$event.target', '1'])\n @HostListener('keydown.arrowUp.prevent', ['$event.target', '-1'])\n onKeyDownArrow(current: HTMLElement, step: number) {\n const {elements} = this;\n\n moveFocus(elements.indexOf(current), elements, step);\n }\n\n // TODO: Consider aria-activedescendant for proper accessibility implementation\n @HostListener('wheel.silent.passive', ['$event.currentTarget'])\n @HostListener('mouseleave', ['$event.target'])\n handleFocusLossIfNecessary(element: HTMLElement) {\n if (this.origin && isNativeFocusedIn(element)) {\n setNativeMouseFocused(this.origin, true, true);\n }\n }\n\n getOptions(includeDisabled: boolean = false): ReadonlyArray<T> {\n return this.options\n .toArray()\n .filter(({disabled}) => includeDisabled || !disabled)\n .map(({value}) => value)\n .filter(isPresent);\n }\n\n onFocus(element: HTMLElement, top: boolean) {\n const {elements} = this;\n\n moveFocus(top ? -1 : elements.length, elements, top ? 1 : -1);\n this.handleFocusLossIfNecessary(element);\n }\n\n private get elements(): ReadonlyArray<HTMLElement> {\n return Array.from(this.elementRef.nativeElement.querySelectorAll('[tuiOption]'));\n }\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: 'ng-template[tuiDataList]',\n})\nexport class TuiDataListDirective {}\n","import {\n AfterViewInit,\n ContentChildren,\n Directive,\n ElementRef,\n QueryList,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n getClosestKeyboardFocusable,\n itemsQueryListObservable,\n preventDefault,\n setNativeFocused,\n tuiPure,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown';\nimport {EMPTY, merge, Observable} from 'rxjs';\nimport {\n debounceTime,\n filter,\n map,\n mapTo,\n shareReplay,\n switchMap,\n take,\n tap,\n} from 'rxjs/operators';\n\n// TODO: Move into separate module in 3.0\n@Directive({\n selector: 'tui-data-list[tuiDataListDropdownManager]',\n})\nexport class TuiDataListDropdownManagerDirective implements AfterViewInit {\n @ContentChildren(TuiDropdownDirective, {descendants: true})\n private readonly dropdowns: QueryList<TuiDropdownDirective> = EMPTY_QUERY;\n\n @ContentChildren(TuiDropdownDirective, {read: ElementRef, descendants: true})\n private readonly elements: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n ngAfterViewInit() {\n this.right$.subscribe(index => {\n this.tryToFocus(index);\n });\n\n merge(this.immediate$, this.debounce$)\n .pipe(\n switchMap(active => {\n this.dropdowns.forEach((dropdown, index) => {\n dropdown.open = index === active;\n });\n\n const element = this.elements.toArray()[active];\n const dropdown = this.dropdowns.toArray()[active];\n\n if (!element || !dropdown || !dropdown.dropdownBoxRef) {\n return EMPTY;\n }\n\n const {nativeElement} = dropdown.dropdownBoxRef.location;\n const mouseEnter$ = typedFromEvent(nativeElement, 'mouseenter').pipe(\n take(1),\n );\n const esc$ = merge(\n typedFromEvent(element.nativeElement, 'keydown'),\n typedFromEvent(nativeElement, 'keydown'),\n ).pipe(filter(({keyCode}) => keyCode === 27));\n\n return merge(mouseEnter$, esc$).pipe(\n tap(event => {\n if (dropdown.dropdownBoxRef) {\n event.stopPropagation();\n }\n\n setNativeFocused(element.nativeElement);\n // TODO: iframe warning\n dropdown.open = event instanceof MouseEvent;\n }),\n );\n }),\n )\n .subscribe();\n }\n\n @tuiPure\n private get elements$(): Observable<ReadonlyArray<HTMLElement>> {\n return itemsQueryListObservable(this.elements).pipe(\n map(array => array.map(({nativeElement}) => nativeElement)),\n shareReplay(1),\n );\n }\n\n @tuiPure\n private get right$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n typedFromEvent(element, 'keydown').pipe(\n filter(({keyCode}) => keyCode === 39),\n preventDefault(),\n mapTo(index),\n ),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get immediate$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n typedFromEvent(element, 'click').pipe(mapTo(index)),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get debounce$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n merge(\n typedFromEvent(element, 'focus'),\n typedFromEvent(element, 'blur'),\n ).pipe(\n filter(({relatedTarget}) =>\n this.notInDropdown(relatedTarget, index),\n ),\n map(({type}) => (type === 'focus' ? index : NaN)),\n ),\n ),\n ),\n ),\n debounceTime(300),\n );\n }\n\n private notInDropdown(element: EventTarget | null, index: number): boolean {\n const dropdown = this.dropdowns.toArray()[index];\n\n return (\n !dropdown ||\n !dropdown.dropdownBoxRef ||\n !dropdown.dropdownBoxRef.location.nativeElement.contains(element)\n );\n }\n\n private tryToFocus(index: number) {\n const dropdown = this.dropdowns.toArray()[index];\n const content =\n dropdown &&\n dropdown.dropdownBoxRef &&\n dropdown.dropdownBoxRef.instance.contentElementRef;\n\n if (!content) {\n return;\n }\n\n const item = getClosestKeyboardFocusable(\n content.nativeElement,\n false,\n content.nativeElement,\n );\n\n if (item) {\n setNativeFocused(item);\n }\n }\n}\n","import {Directive, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Directive({\n selector: 'tui-opt-group',\n host: {\n role: 'group',\n },\n})\nexport class TuiOptGroupDirective {\n @Input()\n @HostBinding('attr.data-label')\n @tuiDefaultProp()\n label = '';\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDataListComponent} from './data-list.component';\nimport {TuiDataListDirective} from './data-list.directive';\nimport {TuiDataListDropdownManagerDirective} from './data-list-dropdown-manager.directive';\nimport {TuiOptGroupDirective} from './opt-group.directive';\nimport {TuiOptionComponent} from './option/option.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule, PolymorpheusModule],\n declarations: [\n TuiDataListComponent,\n TuiOptionComponent,\n TuiOptGroupDirective,\n TuiDataListDirective,\n TuiDataListDropdownManagerDirective,\n ],\n exports: [\n TuiDataListComponent,\n TuiOptionComponent,\n TuiOptGroupDirective,\n TuiDataListDirective,\n TuiDataListDropdownManagerDirective,\n ],\n})\nexport class TuiDataListModule {}\n"],"names":["isNativeFocused","setNativeFocused","Optional","Inject","TUI_OPTION_CONTENT","forwardRef","ElementRef","TUI_DATA_LIST_HOST","TuiDropdownDirective","Self","Input","HostBinding","tuiDefaultProp","HostListener","shouldCall","Component","ChangeDetectionStrategy","EMPTY_QUERY","itemsQueryListObservable","map","moveFocus","isNativeFocusedIn","setNativeMouseFocused","isPresent","Observable","TUI_NOTHING_FOUND_MESSAGE","ContentChildren","tuiPure","ViewEncapsulation","TUI_DATA_LIST_ACCESSOR","Directive","merge","switchMap","EMPTY","typedFromEvent","take","filter","tap","shareReplay","preventDefault","mapTo","debounceTime","getClosestKeyboardFocusable","NgModule","CommonModule","TuiSvgModule","PolymorpheusModule"],"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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ACW,iBAAiB,CAAG;QAAD,wBAAC;KAAjC;;;;;;;;;;;;;;;;;;"}
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function l(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}function d(e,t){return function(o,n){t(o,n,e)}}function f(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,i=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(e){var t=e.currentTarget;return!o.isNativeFocused(t)}var y=function(){function e(e,t,o,n,r){this.content=e,this.dataList=t,this.elementRef=o,this.host=n,this.dropdown=r,this.size="m",this.role="option",this.disabled=!1}return Object.defineProperty(e.prototype,"active",{get:function(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){this.host&&void 0!==this.value&&this.host.handleOption(this.value)},e.prototype.onMouseMove=function(e){var t=e.currentTarget;o.setNativeFocused(t,!0,!0)},e.prototype.ngOnDestroy=function(){this.dataList.handleFocusLossIfNecessary(this.elementRef.nativeElement)},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[n.TUI_OPTION_CONTENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.forwardRef((function(){return v}))]}]},{type:t.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[n.TUI_DATA_LIST_HOST]}]},{type:a.TuiDropdownDirective,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[a.TuiDropdownDirective]}]}]},l([t.Input(),t.HostBinding("attr.data-size"),o.tuiDefaultProp()],e.prototype,"size",void 0),l([t.Input(),t.HostBinding("attr.role"),o.tuiDefaultProp()],e.prototype,"role",void 0),l([t.Input(),o.tuiDefaultProp()],e.prototype,"disabled",void 0),l([t.Input()],e.prototype,"value",void 0),l([t.HostBinding("class._with-dropdown")],e.prototype,"active",null),l([t.HostListener("click")],e.prototype,"onClick",null),l([s.shouldCall(g),t.HostListener("mousemove.init",["$event"]),t.HostListener("mousemove.silent",["$event"])],e.prototype,"onMouseMove",null),e=l([t.Component({selector:"button[tuiOption], a[tuiOption]",template:'<span\n *ngIf="content; else base"\n polymorpheus-outlet\n class="content"\n [content]="content"\n [context]="{$implicit: base}"\n></span>\n<ng-template #base>\n <ng-content></ng-content>\n <tui-svg *ngIf="dropdown" src="tuiIconChevronRight" class="arrow"></tui-svg>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,host:{tabIndex:"-1",type:"button","[attr.disabled]":"disabled || null"},styles:[":host{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 1rem;border:0;background:padding-box;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;font:var(--tui-font-text-m);width:100%;align-items:center;justify-content:space-between;text-align:left;box-sizing:border-box;color:var(--tui-text-01);outline:0;text-decoration:none;cursor:pointer;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:-.5rem 0}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:default}:host._with-dropdown,:host:focus{background-color:var(--tui-base-02)}:host[data-size=xs]{font:var(--tui-font-text-s);min-height:3rem}:host[data-size='s']{min-height:3rem}:host[data-size='m']{min-height:3.75rem}:host[data-size='l']{min-height:4.5rem}.content{display:flex;flex:1;max-width:100%}.arrow{margin:0 -.5rem 0 .75rem}"]}),d(0,t.Optional()),d(0,t.Inject(n.TUI_OPTION_CONTENT)),d(1,t.Inject(t.forwardRef((function(){return v})))),d(2,t.Inject(t.ElementRef)),d(3,t.Optional()),d(3,t.Inject(n.TUI_DATA_LIST_HOST)),d(4,t.Optional()),d(4,t.Self()),d(4,t.Inject(a.TuiDropdownDirective))],e)}(),v=function(){function e(e,t){this.elementRef=e,this.defaultEmptyContent$=t,this.role="listbox",this.emptyContent="",this.options=o.EMPTY_QUERY}var a;return a=e,Object.defineProperty(e.prototype,"empty$",{get:function(){return o.itemsQueryListObservable(this.options).pipe(i.map((function(e){return!e.length})))},enumerable:!0,configurable:!0}),e.prototype.getOptions=function(e){return void 0===e&&(e=!1),this.options.toArray().filter((function(t){var o=t.disabled;return e||!o})).map((function(e){return e.value})).filter(o.isPresent)},e.prototype.onFocusIn=function(e,t){t.contains(e)||this.origin||(this.origin=e)},e.prototype.noop=function(){},e.prototype.onKeyDownArrow=function(e,t){var n=this.elements;o.moveFocus(n.indexOf(e),n,t)},e.prototype.onFocus=function(e,t){var n=this.elements;o.moveFocus(t?-1:n.length,n,t?1:-1),this.handleFocusLossIfNecessary(e)},e.prototype.handleFocusLossIfNecessary=function(e){this.origin&&o.isNativeFocusedIn(e)&&o.setNativeMouseFocused(this.origin,!0,!0)},Object.defineProperty(e.prototype,"elements",{get:function(){return Array.from(this.elementRef.nativeElement.querySelectorAll("[tuiOption]"))},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:t.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:r.Observable,decorators:[{type:t.Inject,args:[n.TUI_NOTHING_FOUND_MESSAGE]}]}]},l([t.Input(),t.HostBinding("attr.role"),o.tuiDefaultProp()],e.prototype,"role",void 0),l([t.Input(),o.tuiDefaultProp()],e.prototype,"emptyContent",void 0),l([t.ContentChildren(t.forwardRef((function(){return y})),{descendants:!0})],e.prototype,"options",void 0),l([o.tuiPure],e.prototype,"empty$",null),l([t.HostListener("focusin",["$event.relatedTarget","$event.currentTarget"])],e.prototype,"onFocusIn",null),l([t.HostListener("mousedown.prevent")],e.prototype,"noop",null),l([t.HostListener("keydown.arrowDown.prevent",["$event.target","1"]),t.HostListener("keydown.arrowUp.prevent",["$event.target","-1"])],e.prototype,"onKeyDownArrow",null),l([t.HostListener("wheel.silent.passive",["$event.currentTarget"]),t.HostListener("mouseleave",["$event.target"])],e.prototype,"handleFocusLossIfNecessary",null),e=a=l([t.Component({selector:"tui-data-list",template:'<div tabindex="0" class="trap" (focusin)="onFocus($event.target, true)"></div>\n<ng-content></ng-content>\n<div\n *ngIf="empty$ | async"\n polymorpheus-outlet\n class="empty"\n [content]="emptyContent || (defaultEmptyContent$ | async)"\n></div>\n<div tabindex="0" class="trap" (focusin)="onFocus($event.target, false)"></div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[{provide:n.TUI_DATA_LIST_ACCESSOR,useExisting:t.forwardRef((function(){return a}))}],styles:["tui-data-list{display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:.5rem 0;color:var(--tui-text-03)}tui-data-list:focus-within .trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list>.empty{margin:.75rem 1rem}tui-opt-group{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;font:var(--tui-font-text-xs);flex-direction:column;line-height:2rem;padding:.5rem 0;margin:-.5rem 0}tui-opt-group:empty:after,tui-opt-group:empty:before{display:none}tui-opt-group:before{content:attr(data-label);padding:0 1rem;color:var(--tui-text-02)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:1rem}tui-opt-group:not(:empty)~tui-opt-group:after{content:'';position:absolute;left:0;right:0;top:.4375rem;height:1px;background:var(--tui-base-03)}"]}),d(0,t.Inject(t.ElementRef)),d(1,t.Inject(n.TUI_NOTHING_FOUND_MESSAGE))],e)}(),h=function(){function e(){}return e=l([t.Directive({selector:"ng-template[tuiDataList]"})],e)}(),b=function(){function e(){this.dropdowns=o.EMPTY_QUERY,this.elements=o.EMPTY_QUERY}return e.prototype.ngAfterViewInit=function(){var e=this;this.right$.subscribe((function(t){e.tryToFocus(t)})),r.merge(this.immediate$,this.debounce$).pipe(i.switchMap((function(t){e.dropdowns.forEach((function(e,o){e.open=o===t}));var n=e.elements.toArray()[t],a=e.dropdowns.toArray()[t];if(!n||!a||!a.dropdownBoxRef)return r.EMPTY;var s=a.dropdownBoxRef.location.nativeElement,u=o.typedFromEvent(s,"mouseenter").pipe(i.take(1)),p=r.merge(o.typedFromEvent(n.nativeElement,"keydown"),o.typedFromEvent(s,"keydown")).pipe(i.filter((function(e){return 27===e.keyCode})));return r.merge(u,p).pipe(i.tap((function(e){a.dropdownBoxRef&&e.stopPropagation(),o.setNativeFocused(n.nativeElement),a.open=e instanceof MouseEvent})))}))).subscribe()},Object.defineProperty(e.prototype,"elements$",{get:function(){return o.itemsQueryListObservable(this.elements).pipe(i.map((function(e){return e.map((function(e){return e.nativeElement}))})),i.shareReplay(1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right$",{get:function(){return this.elements$.pipe(i.switchMap((function(e){return r.merge.apply(void 0,m(e.map((function(e,t){return o.typedFromEvent(e,"keydown").pipe(i.filter((function(e){return 39===e.keyCode})),o.preventDefault(),i.mapTo(t))}))))})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"immediate$",{get:function(){return this.elements$.pipe(i.switchMap((function(e){return r.merge.apply(void 0,m(e.map((function(e,t){return o.typedFromEvent(e,"click").pipe(i.mapTo(t))}))))})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"debounce$",{get:function(){var e=this;return this.elements$.pipe(i.switchMap((function(t){return r.merge.apply(void 0,m(t.map((function(t,n){return r.merge(o.typedFromEvent(t,"focus"),o.typedFromEvent(t,"blur")).pipe(i.filter((function(t){var o=t.relatedTarget;return e.notInDropdown(o,n)})),i.map((function(e){return"focus"===e.type?n:NaN})))}))))})),i.debounceTime(300))},enumerable:!0,configurable:!0}),e.prototype.notInDropdown=function(e,t){var o=this.dropdowns.toArray()[t];return!o||!o.dropdownBoxRef||!o.dropdownBoxRef.location.nativeElement.contains(e)},e.prototype.tryToFocus=function(e){var t=this.dropdowns.toArray()[e],n=t&&t.dropdownBoxRef&&t.dropdownBoxRef.instance.contentElementRef;if(n){var r=o.getClosestKeyboardFocusable(n.nativeElement,!1,n.nativeElement);r&&o.setNativeFocused(r)}},l([t.ContentChildren(a.TuiDropdownDirective,{descendants:!0})],e.prototype,"dropdowns",void 0),l([t.ContentChildren(a.TuiDropdownDirective,{read:t.ElementRef,descendants:!0})],e.prototype,"elements",void 0),l([o.tuiPure],e.prototype,"elements$",null),l([o.tuiPure],e.prototype,"right$",null),l([o.tuiPure],e.prototype,"immediate$",null),l([o.tuiPure],e.prototype,"debounce$",null),e=l([t.Directive({selector:"tui-data-list[tuiDataListDropdownManager]"})],e)}(),w=function(){function e(){this.label=""}return l([t.Input(),t.HostBinding("attr.data-label"),o.tuiDefaultProp()],e.prototype,"label",void 0),e=l([t.Directive({selector:"tui-opt-group",host:{role:"group"}})],e)}(),x=function(){function e(){}return e=l([t.NgModule({imports:[u.CommonModule,p.TuiSvgModule,c.PolymorpheusModule],declarations:[v,y,w,h,b],exports:[v,y,w,h,b]})],e)}();e.TuiDataListComponent=v,e.TuiDataListDirective=h,e.TuiDataListDropdownManagerDirective=b,e.TuiDataListModule=x,e.TuiOptGroupDirective=w,e.TuiOptionComponent=y,e.shouldFocus=g,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */function l(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}function d(e,t){return function(o,n){t(o,n,e)}}function f(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,i=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(e){var t=e.currentTarget;return!o.isNativeFocused(t)}var y=function(){function e(e,t,o,n,r){this.content=e,this.dataList=t,this.elementRef=o,this.host=n,this.dropdown=r,this.size="m",this.role="option",this.disabled=!1}return Object.defineProperty(e.prototype,"active",{get:function(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){this.host&&void 0!==this.value&&this.host.handleOption(this.value)},e.prototype.onMouseMove=function(e){var t=e.currentTarget;o.setNativeFocused(t,!0,!0)},e.prototype.ngOnDestroy=function(){this.dataList.handleFocusLossIfNecessary(this.elementRef.nativeElement)},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[n.TUI_OPTION_CONTENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.forwardRef((function(){return v}))]}]},{type:t.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[n.TUI_DATA_LIST_HOST]}]},{type:a.TuiDropdownDirective,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[a.TuiDropdownDirective]}]}]},l([t.Input(),t.HostBinding("attr.data-size"),o.tuiDefaultProp()],e.prototype,"size",void 0),l([t.Input(),t.HostBinding("attr.role"),o.tuiDefaultProp()],e.prototype,"role",void 0),l([t.Input(),o.tuiDefaultProp()],e.prototype,"disabled",void 0),l([t.Input()],e.prototype,"value",void 0),l([t.HostBinding("class._with-dropdown")],e.prototype,"active",null),l([t.HostListener("click")],e.prototype,"onClick",null),l([s.shouldCall(g),t.HostListener("mousemove.init",["$event"]),t.HostListener("mousemove.silent",["$event"])],e.prototype,"onMouseMove",null),e=l([t.Component({selector:"button[tuiOption], a[tuiOption]",template:'<span\n *ngIf="content; else base"\n polymorpheus-outlet\n class="content"\n [content]="content"\n [context]="{$implicit: base}"\n></span>\n<ng-template #base>\n <ng-content></ng-content>\n <tui-svg *ngIf="dropdown" src="tuiIconChevronRight" class="arrow"></tui-svg>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,host:{tabIndex:"-1",type:"button","[attr.disabled]":"disabled || null"},styles:[":host{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 1rem;border:0;background:padding-box;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;font:var(--tui-font-text-m);width:100%;align-items:center;justify-content:space-between;text-align:left;box-sizing:border-box;color:var(--tui-text-01);outline:0;text-decoration:none;cursor:pointer;border-top:8px solid transparent;border-bottom:8px solid transparent;margin:-.5rem 0}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:default}:host._with-dropdown,:host:focus{background-color:var(--tui-base-02)}:host[data-size=xs]{font:var(--tui-font-text-s);min-height:3rem}:host[data-size='s']{min-height:3rem}:host[data-size='m']{min-height:3.75rem}:host[data-size='l']{min-height:4.5rem}.content{display:flex;flex:1;max-width:100%}.arrow{margin:0 -.5rem 0 .75rem}"]}),d(0,t.Optional()),d(0,t.Inject(n.TUI_OPTION_CONTENT)),d(1,t.Inject(t.forwardRef((function(){return v})))),d(2,t.Inject(t.ElementRef)),d(3,t.Optional()),d(3,t.Inject(n.TUI_DATA_LIST_HOST)),d(4,t.Optional()),d(4,t.Self()),d(4,t.Inject(a.TuiDropdownDirective))],e)}(),v=function(){function e(e,t){this.elementRef=e,this.defaultEmptyContent$=t,this.options=o.EMPTY_QUERY,this.role="listbox",this.emptyContent=""}var a;return a=e,Object.defineProperty(e.prototype,"empty$",{get:function(){return o.itemsQueryListObservable(this.options).pipe(i.map((function(e){return!e.length})))},enumerable:!0,configurable:!0}),e.prototype.onFocusIn=function(e,t){t.contains(e)||this.origin||(this.origin=e)},e.prototype.noop=function(){},e.prototype.onKeyDownArrow=function(e,t){var n=this.elements;o.moveFocus(n.indexOf(e),n,t)},e.prototype.handleFocusLossIfNecessary=function(e){this.origin&&o.isNativeFocusedIn(e)&&o.setNativeMouseFocused(this.origin,!0,!0)},e.prototype.getOptions=function(e){return void 0===e&&(e=!1),this.options.toArray().filter((function(t){var o=t.disabled;return e||!o})).map((function(e){return e.value})).filter(o.isPresent)},e.prototype.onFocus=function(e,t){var n=this.elements;o.moveFocus(t?-1:n.length,n,t?1:-1),this.handleFocusLossIfNecessary(e)},Object.defineProperty(e.prototype,"elements",{get:function(){return Array.from(this.elementRef.nativeElement.querySelectorAll("[tuiOption]"))},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:t.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:r.Observable,decorators:[{type:t.Inject,args:[n.TUI_NOTHING_FOUND_MESSAGE]}]}]},l([t.ContentChildren(t.forwardRef((function(){return y})),{descendants:!0})],e.prototype,"options",void 0),l([t.Input(),t.HostBinding("attr.role"),o.tuiDefaultProp()],e.prototype,"role",void 0),l([t.Input(),o.tuiDefaultProp()],e.prototype,"emptyContent",void 0),l([o.tuiPure],e.prototype,"empty$",null),l([t.HostListener("focusin",["$event.relatedTarget","$event.currentTarget"])],e.prototype,"onFocusIn",null),l([t.HostListener("mousedown.prevent")],e.prototype,"noop",null),l([t.HostListener("keydown.arrowDown.prevent",["$event.target","1"]),t.HostListener("keydown.arrowUp.prevent",["$event.target","-1"])],e.prototype,"onKeyDownArrow",null),l([t.HostListener("wheel.silent.passive",["$event.currentTarget"]),t.HostListener("mouseleave",["$event.target"])],e.prototype,"handleFocusLossIfNecessary",null),e=a=l([t.Component({selector:"tui-data-list",template:'<div tabindex="0" class="trap" (focusin)="onFocus($event.target, true)"></div>\n<ng-content></ng-content>\n<div\n *ngIf="empty$ | async"\n polymorpheus-outlet\n class="empty"\n [content]="emptyContent || (defaultEmptyContent$ | async)"\n></div>\n<div tabindex="0" class="trap" (focusin)="onFocus($event.target, false)"></div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[{provide:n.TUI_DATA_LIST_ACCESSOR,useExisting:t.forwardRef((function(){return a}))}],styles:["tui-data-list{display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:.5rem 0;color:var(--tui-text-03)}tui-data-list:focus-within .trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list>.empty{margin:.75rem 1rem}tui-opt-group{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;font:var(--tui-font-text-xs);flex-direction:column;line-height:2rem;padding:.5rem 0;margin:-.5rem 0}tui-opt-group:empty:after,tui-opt-group:empty:before{display:none}tui-opt-group:before{content:attr(data-label);padding:0 1rem;color:var(--tui-text-02)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:1rem}tui-opt-group:not(:empty)~tui-opt-group:after{content:'';position:absolute;left:0;right:0;top:.4375rem;height:1px;background:var(--tui-base-03)}"]}),d(0,t.Inject(t.ElementRef)),d(1,t.Inject(n.TUI_NOTHING_FOUND_MESSAGE))],e)}(),h=function(){function e(){}return e=l([t.Directive({selector:"ng-template[tuiDataList]"})],e)}(),b=function(){function e(){this.dropdowns=o.EMPTY_QUERY,this.elements=o.EMPTY_QUERY}return e.prototype.ngAfterViewInit=function(){var e=this;this.right$.subscribe((function(t){e.tryToFocus(t)})),r.merge(this.immediate$,this.debounce$).pipe(i.switchMap((function(t){e.dropdowns.forEach((function(e,o){e.open=o===t}));var n=e.elements.toArray()[t],a=e.dropdowns.toArray()[t];if(!n||!a||!a.dropdownBoxRef)return r.EMPTY;var s=a.dropdownBoxRef.location.nativeElement,u=o.typedFromEvent(s,"mouseenter").pipe(i.take(1)),p=r.merge(o.typedFromEvent(n.nativeElement,"keydown"),o.typedFromEvent(s,"keydown")).pipe(i.filter((function(e){return 27===e.keyCode})));return r.merge(u,p).pipe(i.tap((function(e){a.dropdownBoxRef&&e.stopPropagation(),o.setNativeFocused(n.nativeElement),a.open=e instanceof MouseEvent})))}))).subscribe()},Object.defineProperty(e.prototype,"elements$",{get:function(){return o.itemsQueryListObservable(this.elements).pipe(i.map((function(e){return e.map((function(e){return e.nativeElement}))})),i.shareReplay(1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right$",{get:function(){return this.elements$.pipe(i.switchMap((function(e){return r.merge.apply(void 0,m(e.map((function(e,t){return o.typedFromEvent(e,"keydown").pipe(i.filter((function(e){return 39===e.keyCode})),o.preventDefault(),i.mapTo(t))}))))})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"immediate$",{get:function(){return this.elements$.pipe(i.switchMap((function(e){return r.merge.apply(void 0,m(e.map((function(e,t){return o.typedFromEvent(e,"click").pipe(i.mapTo(t))}))))})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"debounce$",{get:function(){var e=this;return this.elements$.pipe(i.switchMap((function(t){return r.merge.apply(void 0,m(t.map((function(t,n){return r.merge(o.typedFromEvent(t,"focus"),o.typedFromEvent(t,"blur")).pipe(i.filter((function(t){var o=t.relatedTarget;return e.notInDropdown(o,n)})),i.map((function(e){return"focus"===e.type?n:NaN})))}))))})),i.debounceTime(300))},enumerable:!0,configurable:!0}),e.prototype.notInDropdown=function(e,t){var o=this.dropdowns.toArray()[t];return!o||!o.dropdownBoxRef||!o.dropdownBoxRef.location.nativeElement.contains(e)},e.prototype.tryToFocus=function(e){var t=this.dropdowns.toArray()[e],n=t&&t.dropdownBoxRef&&t.dropdownBoxRef.instance.contentElementRef;if(n){var r=o.getClosestKeyboardFocusable(n.nativeElement,!1,n.nativeElement);r&&o.setNativeFocused(r)}},l([t.ContentChildren(a.TuiDropdownDirective,{descendants:!0})],e.prototype,"dropdowns",void 0),l([t.ContentChildren(a.TuiDropdownDirective,{read:t.ElementRef,descendants:!0})],e.prototype,"elements",void 0),l([o.tuiPure],e.prototype,"elements$",null),l([o.tuiPure],e.prototype,"right$",null),l([o.tuiPure],e.prototype,"immediate$",null),l([o.tuiPure],e.prototype,"debounce$",null),e=l([t.Directive({selector:"tui-data-list[tuiDataListDropdownManager]"})],e)}(),w=function(){function e(){this.label=""}return l([t.Input(),t.HostBinding("attr.data-label"),o.tuiDefaultProp()],e.prototype,"label",void 0),e=l([t.Directive({selector:"tui-opt-group",host:{role:"group"}})],e)}(),x=function(){function e(){}return e=l([t.NgModule({imports:[u.CommonModule,p.TuiSvgModule,c.PolymorpheusModule],declarations:[v,y,w,h,b],exports:[v,y,w,h,b]})],e)}();e.TuiDataListComponent=v,e.TuiDataListDirective=h,e.TuiDataListDropdownManagerDirective=b,e.TuiDataListModule=x,e.TuiOptGroupDirective=w,e.TuiOptionComponent=y,e.shouldFocus=g,Object.defineProperty(e,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=taiga-ui-core-components-data-list.umd.min.js.map