@taiga-ui/core 3.17.0 → 3.18.0-dev.main-05a0bf8

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 (312) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +11 -19
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-alert.umd.js +14 -23
  4. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-components-button.umd.js +11 -20
  6. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-calendar.umd.js +11 -20
  8. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-data-list.umd.js +20 -29
  10. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-dialog.umd.js +203 -190
  12. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-error.umd.js +11 -20
  14. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-expand.umd.js +14 -23
  16. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-group.umd.js +14 -23
  18. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-hints-host.umd.js +7 -7
  20. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +14 -23
  21. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-label.umd.js +11 -20
  23. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-link.umd.js +12 -21
  25. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-loader.umd.js +11 -20
  27. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-notification.umd.js +13 -22
  29. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +11 -20
  31. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +11 -20
  33. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +11 -20
  35. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +21 -30
  37. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +11 -20
  39. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-root.umd.js +11 -20
  41. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +17 -26
  43. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-scrollbar.umd.js +17 -26
  45. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-svg.umd.js +109 -38
  47. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  48. package/bundles/taiga-ui-core-components-theme-night.umd.js +11 -20
  49. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  50. package/bundles/taiga-ui-core-components-tooltip.umd.js +39 -30
  51. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  52. package/bundles/taiga-ui-core-directives-dropdown.umd.js +83 -72
  53. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  54. package/bundles/taiga-ui-core-directives-hint.umd.js +95 -100
  55. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  56. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +7 -7
  57. package/bundles/taiga-ui-core-directives-mode.umd.js +11 -20
  58. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +11 -20
  60. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +35 -44
  62. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-directives-wrapper.umd.js +7 -7
  64. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +11 -20
  65. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +7 -7
  67. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +7 -7
  68. package/bundles/taiga-ui-core-pipes-format-date.umd.js +7 -7
  69. package/bundles/taiga-ui-core-pipes-format-number.umd.js +7 -7
  70. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +7 -7
  71. package/bundles/taiga-ui-core-pipes-month.umd.js +7 -7
  72. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +11 -20
  73. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  74. package/bundles/taiga-ui-core-services.umd.js +22 -31
  75. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-tokens.umd.js +43 -14
  77. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  78. package/bundles/taiga-ui-core-utils-format.umd.js +4 -13
  79. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  80. package/bundles/taiga-ui-core-utils-mask.umd.js +4 -13
  81. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  82. package/components/dialog/dialog-close.service.d.ts +15 -0
  83. package/components/dialog/dialog.component.d.ts +5 -4
  84. package/components/dialog/dialog.tokens.d.ts +2 -0
  85. package/components/dialog/index.d.ts +1 -1
  86. package/components/notification/notification.component.d.ts +2 -2
  87. package/components/svg/deprecated-icons.d.ts +1 -0
  88. package/components/svg/index.d.ts +2 -0
  89. package/components/svg/svg-options.d.ts +14 -0
  90. package/components/svg/svg.component.d.ts +5 -7
  91. package/components/tooltip/tooltip.component.d.ts +2 -2
  92. package/components/tooltip/tooltip.module.d.ts +5 -4
  93. package/directives/dropdown/dropdown-hover-options.directive.d.ts +9 -0
  94. package/directives/dropdown/dropdown-hover.directive.d.ts +3 -1
  95. package/directives/dropdown/dropdown-position-sided.directive.d.ts +2 -2
  96. package/directives/dropdown/dropdown-position.directive.d.ts +2 -2
  97. package/directives/dropdown/index.d.ts +1 -0
  98. package/directives/hint/hint-hover.directive.d.ts +4 -2
  99. package/directives/hint/hint-position.directive.d.ts +2 -2
  100. package/esm2015/abstract/abstract-driver.directive.js +3 -3
  101. package/esm2015/abstract/abstract-textfield-host.js +3 -3
  102. package/esm2015/abstract/rect-accessor.js +2 -1
  103. package/esm2015/components/alert/alert.component.js +3 -3
  104. package/esm2015/components/alert/alert.module.js +4 -4
  105. package/esm2015/components/alert/alert.service.js +3 -3
  106. package/esm2015/components/button/button.component.js +3 -3
  107. package/esm2015/components/button/button.module.js +4 -4
  108. package/esm2015/components/calendar/calendar.component.js +3 -3
  109. package/esm2015/components/calendar/calendar.module.js +4 -4
  110. package/esm2015/components/data-list/data-list.component.js +3 -3
  111. package/esm2015/components/data-list/data-list.directive.js +3 -3
  112. package/esm2015/components/data-list/data-list.module.js +4 -4
  113. package/esm2015/components/data-list/opt-group.directive.js +3 -3
  114. package/esm2015/components/data-list/option/option.component.js +3 -3
  115. package/esm2015/components/dialog/dialog-close.service.js +51 -0
  116. package/esm2015/components/dialog/dialog.component.js +27 -11
  117. package/esm2015/components/dialog/dialog.directive.js +3 -3
  118. package/esm2015/components/dialog/dialog.module.js +4 -4
  119. package/esm2015/components/dialog/dialog.service.js +3 -3
  120. package/esm2015/components/dialog/dialog.tokens.js +5 -1
  121. package/esm2015/components/dialog/index.js +2 -2
  122. package/esm2015/components/error/error.component.js +3 -3
  123. package/esm2015/components/error/error.module.js +4 -4
  124. package/esm2015/components/expand/expand-content.directive.js +3 -3
  125. package/esm2015/components/expand/expand.component.js +3 -3
  126. package/esm2015/components/expand/expand.module.js +4 -4
  127. package/esm2015/components/group/group-styles.component.js +3 -3
  128. package/esm2015/components/group/group.directive.js +3 -3
  129. package/esm2015/components/group/group.module.js +4 -4
  130. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  131. package/esm2015/components/hints-host/hints-host.module.js +4 -4
  132. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +3 -3
  133. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +3 -3
  134. package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +4 -4
  135. package/esm2015/components/label/label.component.js +3 -3
  136. package/esm2015/components/label/label.module.js +4 -4
  137. package/esm2015/components/link/link.component.js +4 -4
  138. package/esm2015/components/link/link.module.js +4 -4
  139. package/esm2015/components/loader/loader.component.js +3 -3
  140. package/esm2015/components/loader/loader.module.js +4 -4
  141. package/esm2015/components/notification/notification.component.js +6 -6
  142. package/esm2015/components/notification/notification.module.js +4 -4
  143. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  144. package/esm2015/components/primitive-calendar/primitive-calendar.module.js +4 -4
  145. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +3 -3
  146. package/esm2015/components/primitive-checkbox/primitive-checkbox.module.js +4 -4
  147. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  148. package/esm2015/components/primitive-spin-button/primitive-spin-button.module.js +4 -4
  149. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +5 -5
  150. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +3 -3
  151. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +4 -4
  152. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +3 -3
  153. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  154. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  155. package/esm2015/components/primitive-year-picker/primitive-year-picker.module.js +4 -4
  156. package/esm2015/components/root/root.component.js +3 -3
  157. package/esm2015/components/root/root.module.js +4 -4
  158. package/esm2015/components/scroll-controls/scroll-controls.component.js +3 -3
  159. package/esm2015/components/scroll-controls/scroll-controls.module.js +4 -4
  160. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +3 -3
  161. package/esm2015/components/scroll-controls/scrollbar.directive.js +3 -3
  162. package/esm2015/components/scrollbar/scroll-ref.directive.js +3 -3
  163. package/esm2015/components/scrollbar/scrollable.directive.js +3 -3
  164. package/esm2015/components/scrollbar/scrollbar.component.js +3 -3
  165. package/esm2015/components/scrollbar/scrollbar.module.js +4 -4
  166. package/esm2015/components/svg/deprecated-icons.js +59 -0
  167. package/esm2015/components/svg/index.js +3 -1
  168. package/esm2015/components/svg/svg-options.js +29 -0
  169. package/esm2015/components/svg/svg.component.js +14 -19
  170. package/esm2015/components/svg/svg.module.js +4 -4
  171. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  172. package/esm2015/components/theme-night/theme-night.module.js +4 -4
  173. package/esm2015/components/tooltip/tooltip.component.js +15 -15
  174. package/esm2015/components/tooltip/tooltip.module.js +23 -6
  175. package/esm2015/directives/dropdown/dropdown-context.directive.js +3 -3
  176. package/esm2015/directives/dropdown/dropdown-driver.directive.js +3 -3
  177. package/esm2015/directives/dropdown/dropdown-host.directive.js +3 -3
  178. package/esm2015/directives/dropdown/dropdown-hover-options.directive.js +14 -0
  179. package/esm2015/directives/dropdown/dropdown-hover.directive.js +12 -7
  180. package/esm2015/directives/dropdown/dropdown-manual.directive.js +3 -3
  181. package/esm2015/directives/dropdown/dropdown-options.directive.js +3 -3
  182. package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +14 -14
  183. package/esm2015/directives/dropdown/dropdown-position.directive.js +13 -13
  184. package/esm2015/directives/dropdown/dropdown-selection.directive.js +3 -3
  185. package/esm2015/directives/dropdown/dropdown.component.js +3 -3
  186. package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
  187. package/esm2015/directives/dropdown/dropdown.module.js +4 -4
  188. package/esm2015/directives/dropdown/index.js +2 -1
  189. package/esm2015/directives/hint/hint-describe.directive.js +3 -3
  190. package/esm2015/directives/hint/hint-driver.directive.js +3 -3
  191. package/esm2015/directives/hint/hint-host.directive.js +3 -3
  192. package/esm2015/directives/hint/hint-hover.directive.js +14 -11
  193. package/esm2015/directives/hint/hint-manual.directive.js +3 -3
  194. package/esm2015/directives/hint/hint-options.directive.js +5 -5
  195. package/esm2015/directives/hint/hint-pointer.directive.js +3 -3
  196. package/esm2015/directives/hint/hint-position.directive.js +14 -13
  197. package/esm2015/directives/hint/hint.component.js +6 -5
  198. package/esm2015/directives/hint/hint.directive.js +3 -3
  199. package/esm2015/directives/hint/hint.module.js +4 -4
  200. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +3 -3
  201. package/esm2015/directives/mask-accessor/mask-accessor.module.js +4 -4
  202. package/esm2015/directives/mode/mode.directive.js +3 -3
  203. package/esm2015/directives/mode/mode.module.js +4 -4
  204. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +3 -3
  205. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +4 -4
  206. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +3 -3
  207. package/esm2015/directives/textfield-controller/textfield-controller.module.js +4 -4
  208. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +3 -3
  209. package/esm2015/directives/textfield-controller/textfield-filler.directive.js +3 -3
  210. package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +3 -3
  211. package/esm2015/directives/textfield-controller/textfield-icon.directive.js +3 -3
  212. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +3 -3
  213. package/esm2015/directives/textfield-controller/textfield-postfix.directive.js +3 -3
  214. package/esm2015/directives/textfield-controller/textfield-prefix.directive.js +3 -3
  215. package/esm2015/directives/textfield-controller/textfield-size.directive.js +3 -3
  216. package/esm2015/directives/wrapper/wrapper.directive.js +3 -3
  217. package/esm2015/directives/wrapper/wrapper.module.js +4 -4
  218. package/esm2015/interfaces/dialog-options.js +1 -1
  219. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +3 -3
  220. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.js +4 -4
  221. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +3 -3
  222. package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +4 -4
  223. package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +4 -4
  224. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +3 -3
  225. package/esm2015/pipes/format-date/format-date.module.js +4 -4
  226. package/esm2015/pipes/format-date/format-date.pipe.js +3 -3
  227. package/esm2015/pipes/format-number/format-number.module.js +4 -4
  228. package/esm2015/pipes/format-number/format-number.pipe.js +3 -3
  229. package/esm2015/pipes/format-phone/format-phone.module.js +4 -4
  230. package/esm2015/pipes/format-phone/format-phone.pipe.js +3 -3
  231. package/esm2015/pipes/month/month.module.js +4 -4
  232. package/esm2015/pipes/month/month.pipe.js +3 -3
  233. package/esm2015/pipes/order-week-days/order-week-days.module.js +4 -4
  234. package/esm2015/pipes/order-week-days/order-week-days.pipe.js +3 -3
  235. package/esm2015/services/format-date.service.js +3 -3
  236. package/esm2015/services/hint.service.js +3 -3
  237. package/esm2015/services/night-theme.service.js +3 -3
  238. package/esm2015/services/position.service.js +3 -3
  239. package/esm2015/services/router-link-active.service.js +3 -3
  240. package/esm2015/services/svg.service.js +3 -3
  241. package/esm2015/tokens/icon-place.js +5 -2
  242. package/esm2015/tokens/icons-path.js +4 -1
  243. package/esm2015/tokens/index.js +2 -1
  244. package/esm2015/tokens/svg-content-processor.js +4 -1
  245. package/esm2015/tokens/svg-src-processor.js +4 -1
  246. package/esm2015/tokens/viewport.js +26 -0
  247. package/fesm2015/taiga-ui-core-abstract.js +7 -6
  248. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  249. package/fesm2015/taiga-ui-core-components-alert.js +10 -10
  250. package/fesm2015/taiga-ui-core-components-button.js +7 -7
  251. package/fesm2015/taiga-ui-core-components-calendar.js +7 -7
  252. package/fesm2015/taiga-ui-core-components-data-list.js +16 -16
  253. package/fesm2015/taiga-ui-core-components-dialog.js +96 -80
  254. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  255. package/fesm2015/taiga-ui-core-components-error.js +7 -7
  256. package/fesm2015/taiga-ui-core-components-expand.js +10 -10
  257. package/fesm2015/taiga-ui-core-components-group.js +10 -10
  258. package/fesm2015/taiga-ui-core-components-hints-host.js +7 -7
  259. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  260. package/fesm2015/taiga-ui-core-components-label.js +7 -7
  261. package/fesm2015/taiga-ui-core-components-link.js +8 -8
  262. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  263. package/fesm2015/taiga-ui-core-components-loader.js +7 -7
  264. package/fesm2015/taiga-ui-core-components-notification.js +9 -9
  265. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  266. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +7 -7
  267. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +7 -7
  268. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +7 -7
  269. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +17 -17
  270. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  271. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +7 -7
  272. package/fesm2015/taiga-ui-core-components-root.js +7 -7
  273. package/fesm2015/taiga-ui-core-components-scroll-controls.js +13 -13
  274. package/fesm2015/taiga-ui-core-components-scrollbar.js +13 -13
  275. package/fesm2015/taiga-ui-core-components-svg.js +103 -26
  276. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  277. package/fesm2015/taiga-ui-core-components-theme-night.js +7 -7
  278. package/fesm2015/taiga-ui-core-components-tooltip.js +36 -19
  279. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  280. package/fesm2015/taiga-ui-core-directives-dropdown.js +76 -59
  281. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  282. package/fesm2015/taiga-ui-core-directives-hint.js +61 -58
  283. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  284. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +7 -7
  285. package/fesm2015/taiga-ui-core-directives-mode.js +7 -7
  286. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +7 -7
  287. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +31 -31
  288. package/fesm2015/taiga-ui-core-directives-wrapper.js +7 -7
  289. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +7 -7
  290. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +7 -7
  291. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +7 -7
  292. package/fesm2015/taiga-ui-core-pipes-format-date.js +7 -7
  293. package/fesm2015/taiga-ui-core-pipes-format-number.js +7 -7
  294. package/fesm2015/taiga-ui-core-pipes-format-phone.js +7 -7
  295. package/fesm2015/taiga-ui-core-pipes-month.js +7 -7
  296. package/fesm2015/taiga-ui-core-pipes-order-week-days.js +7 -7
  297. package/fesm2015/taiga-ui-core-services.js +18 -18
  298. package/fesm2015/taiga-ui-core-tokens.js +38 -2
  299. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  300. package/interfaces/dialog-options.d.ts +4 -3
  301. package/package.json +4 -4
  302. package/styles/mixins/textfield.less +4 -22
  303. package/styles/mixins/textfield.scss +3 -22
  304. package/styles/theme/wrapper/icon.less +17 -27
  305. package/tokens/icon-place.d.ts +3 -0
  306. package/tokens/icons-path.d.ts +3 -0
  307. package/tokens/index.d.ts +1 -0
  308. package/tokens/svg-content-processor.d.ts +3 -0
  309. package/tokens/svg-src-processor.d.ts +3 -0
  310. package/tokens/viewport.d.ts +4 -0
  311. package/components/dialog/dialog.providers.d.ts +0 -5
  312. package/esm2015/components/dialog/dialog.providers.js +0 -51
@@ -26,9 +26,9 @@ class TuiFormatDateService {
26
26
  }));
27
27
  }
28
28
  }
29
- TuiFormatDateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatDateService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
30
- TuiFormatDateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatDateService, providedIn: `root` });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatDateService, decorators: [{
29
+ TuiFormatDateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFormatDateService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
30
+ TuiFormatDateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFormatDateService, providedIn: `root` });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiFormatDateService, decorators: [{
32
32
  type: Injectable,
33
33
  args: [{
34
34
  providedIn: `root`,
@@ -54,9 +54,9 @@ class TuiHintService extends BehaviorSubject {
54
54
  }
55
55
  }
56
56
  }
57
- TuiHintService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
58
- TuiHintService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintService, providedIn: `root` });
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintService, decorators: [{
57
+ TuiHintService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiHintService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
58
+ TuiHintService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiHintService, providedIn: `root` });
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiHintService, decorators: [{
60
60
  type: Injectable,
61
61
  args: [{
62
62
  providedIn: `root`,
@@ -70,9 +70,9 @@ class TuiNightThemeService extends Observable {
70
70
  super(subscriber => media$.subscribe(subscriber));
71
71
  }
72
72
  }
73
- TuiNightThemeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiNightThemeService, deps: [{ token: WINDOW }], target: i0.ɵɵFactoryTarget.Injectable });
74
- TuiNightThemeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiNightThemeService, providedIn: `root` });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiNightThemeService, decorators: [{
73
+ TuiNightThemeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiNightThemeService, deps: [{ token: WINDOW }], target: i0.ɵɵFactoryTarget.Injectable });
74
+ TuiNightThemeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiNightThemeService, providedIn: `root` });
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiNightThemeService, decorators: [{
76
76
  type: Injectable,
77
77
  args: [{
78
78
  providedIn: `root`,
@@ -89,9 +89,9 @@ class TuiPositionService extends Observable {
89
89
  .subscribe(subscriber));
90
90
  }
91
91
  }
92
- TuiPositionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPositionService, deps: [{ token: ElementRef }, { token: ANIMATION_FRAME }, { token: NgZone }, { token: TuiPositionAccessor }], target: i0.ɵɵFactoryTarget.Injectable });
93
- TuiPositionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPositionService });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPositionService, decorators: [{
92
+ TuiPositionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiPositionService, deps: [{ token: ElementRef }, { token: ANIMATION_FRAME }, { token: NgZone }, { token: TuiPositionAccessor }], target: i0.ɵɵFactoryTarget.Injectable });
93
+ TuiPositionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiPositionService });
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiPositionService, decorators: [{
95
95
  type: Injectable
96
96
  }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
97
97
  type: Inject,
@@ -116,9 +116,9 @@ class TuiRouterLinkActiveService extends Observable {
116
116
  super(subscriber => stream$.subscribe(subscriber));
117
117
  }
118
118
  }
119
- TuiRouterLinkActiveService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRouterLinkActiveService, deps: [{ token: RouterLinkActive, optional: true }, { token: NgZone }, { token: ANIMATION_FRAME }, { token: TuiDestroyService, self: true }], target: i0.ɵɵFactoryTarget.Injectable });
120
- TuiRouterLinkActiveService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRouterLinkActiveService });
121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRouterLinkActiveService, decorators: [{
119
+ TuiRouterLinkActiveService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRouterLinkActiveService, deps: [{ token: RouterLinkActive, optional: true }, { token: NgZone }, { token: ANIMATION_FRAME }, { token: TuiDestroyService, self: true }], target: i0.ɵɵFactoryTarget.Injectable });
120
+ TuiRouterLinkActiveService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRouterLinkActiveService });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRouterLinkActiveService, decorators: [{
122
122
  type: Injectable
123
123
  }], ctorParameters: function () { return [{ type: i1$1.RouterLinkActive, decorators: [{
124
124
  type: Optional
@@ -180,9 +180,9 @@ class TuiSvgService {
180
180
  : this.sanitizer.sanitize(SecurityContext.HTML, src)) || ``);
181
181
  }
182
182
  }
183
- TuiSvgService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSvgService, deps: [{ token: TUI_SANITIZER, optional: true }, { token: DomSanitizer }, { token: TUI_ICONS }], target: i0.ɵɵFactoryTarget.Injectable });
184
- TuiSvgService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSvgService, providedIn: `root` });
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSvgService, decorators: [{
183
+ TuiSvgService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiSvgService, deps: [{ token: TUI_SANITIZER, optional: true }, { token: DomSanitizer }, { token: TUI_ICONS }], target: i0.ɵɵFactoryTarget.Injectable });
184
+ TuiSvgService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiSvgService, providedIn: `root` });
185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiSvgService, decorators: [{
186
186
  type: Injectable,
187
187
  args: [{
188
188
  providedIn: `root`,
@@ -71,7 +71,10 @@ const TUI_SHORT_WEEK_DAYS = new InjectionToken(`[TUI_SHORT_WEEK_DAYS]: calendars
71
71
  factory: tuiExtractI18n(`shortWeekDays`),
72
72
  });
73
73
 
74
- const TUI_ICONS_PLACE = new InjectionToken(`[TUI_ICONS_PLACE]: Recommended paths to icons from documentation guide`, {
74
+ /**
75
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
76
+ */
77
+ const TUI_ICONS_PLACE = new InjectionToken(`[TUI_ICONS_PLACE]: Paths to icons`, {
75
78
  factory: () => `assets/taiga-ui/icons`,
76
79
  });
77
80
 
@@ -79,6 +82,9 @@ const TUI_ICONS = new InjectionToken(`[TUI_ICONS]: A key/value dictionary of ico
79
82
  factory: () => ({}),
80
83
  });
81
84
 
85
+ /**
86
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
87
+ */
82
88
  const TUI_ICONS_PATH = new InjectionToken(`[TUI_ICONS_PATH]: A handler to retrieve USE id for icon by name`, { factory: () => tuiIconsPathFactory(inject(TUI_ICONS_PLACE)) });
83
89
 
84
90
  const TUI_MEDIA = new InjectionToken(`[TUI_MEDIA]: Token for media constant`, {
@@ -164,10 +170,16 @@ const TUI_SELECTION_STREAM = new InjectionToken(`[TUI_SELECTION_STREAM]: A strea
164
170
  },
165
171
  });
166
172
 
173
+ /**
174
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
175
+ */
167
176
  const TUI_SVG_CONTENT_PROCESSOR = new InjectionToken(`[TUI_SVG_CONTENT_PROCESSOR]: Transform function the contents of the loaded svg file`, {
168
177
  factory: () => tuiSvgLinearGradientProcessor,
169
178
  });
170
179
 
180
+ /**
181
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
182
+ */
171
183
  const TUI_SVG_SRC_PROCESSOR = new InjectionToken(`[TUI_SVG_SRC_PROCESSOR]: Source path processor for svg`, {
172
184
  factory: () => identity,
173
185
  });
@@ -190,9 +202,33 @@ const TUI_THEME = new InjectionToken(`[TUI_THEME]: Theme name`, {
190
202
 
191
203
  const TUI_VALUE_ACCESSOR = new InjectionToken(`[TUI_VALUE_ACCESSOR]: Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`);
192
204
 
205
+ const TUI_VIEWPORT = new InjectionToken(`[TUI_VIEWPORT]: Viewport accessor`, {
206
+ factory: () => {
207
+ const windowRef = inject(WINDOW);
208
+ return {
209
+ getClientRect() {
210
+ return {
211
+ top: 0,
212
+ left: 0,
213
+ right: windowRef.innerWidth,
214
+ bottom: windowRef.innerHeight,
215
+ width: windowRef.innerWidth,
216
+ height: windowRef.innerHeight,
217
+ };
218
+ },
219
+ };
220
+ },
221
+ });
222
+ function tuiAsViewport(useExisting) {
223
+ return {
224
+ provide: TUI_VIEWPORT,
225
+ useExisting,
226
+ };
227
+ }
228
+
193
229
  /**
194
230
  * Generated bundle index. Do not edit.
195
231
  */
196
232
 
197
- export { TUI_ANIMATIONS_DURATION, TUI_ANIMATION_OPTIONS, TUI_ASSERT_ENABLED, TUI_CLOSE_WORD, TUI_DATA_LIST_ACCESSOR, TUI_DATA_LIST_HOST, TUI_DAY_TYPE_HANDLER, TUI_DEFAULT_ERROR_MESSAGE, TUI_DOCUMENT_OR_SHADOW_ROOT, TUI_ELEMENT_REF, TUI_FIRST_DAY_OF_WEEK, TUI_ICONS, TUI_ICONS_PATH, TUI_ICONS_PLACE, TUI_IS_MOBILE_RES, TUI_MEDIA, TUI_MODE, TUI_MONTHS, TUI_NOTHING_FOUND_MESSAGE, TUI_NOTIFICATION_DEFAULT_OPTIONS, TUI_NOTIFICATION_OPTIONS, TUI_NUMBER_FORMAT, TUI_OPTION_CONTENT, TUI_ORDERED_SHORT_WEEK_DAYS, TUI_SANITIZER, TUI_SCROLL_REF, TUI_SELECTION_STREAM, TUI_SHORT_WEEK_DAYS, TUI_SPIN_TEXTS, TUI_SVG_CONTENT_PROCESSOR, TUI_SVG_SRC_PROCESSOR, TUI_TEXTFIELD_APPEARANCE, TUI_TEXTFIELD_HOST, TUI_THEME, TUI_VALUE_ACCESSOR, tuiAsDataListAccessor, tuiAsDataListHost, tuiAsOptionContent, tuiAsTextfieldHost, tuiNotificationOptionsProvider };
233
+ export { TUI_ANIMATIONS_DURATION, TUI_ANIMATION_OPTIONS, TUI_ASSERT_ENABLED, TUI_CLOSE_WORD, TUI_DATA_LIST_ACCESSOR, TUI_DATA_LIST_HOST, TUI_DAY_TYPE_HANDLER, TUI_DEFAULT_ERROR_MESSAGE, TUI_DOCUMENT_OR_SHADOW_ROOT, TUI_ELEMENT_REF, TUI_FIRST_DAY_OF_WEEK, TUI_ICONS, TUI_ICONS_PATH, TUI_ICONS_PLACE, TUI_IS_MOBILE_RES, TUI_MEDIA, TUI_MODE, TUI_MONTHS, TUI_NOTHING_FOUND_MESSAGE, TUI_NOTIFICATION_DEFAULT_OPTIONS, TUI_NOTIFICATION_OPTIONS, TUI_NUMBER_FORMAT, TUI_OPTION_CONTENT, TUI_ORDERED_SHORT_WEEK_DAYS, TUI_SANITIZER, TUI_SCROLL_REF, TUI_SELECTION_STREAM, TUI_SHORT_WEEK_DAYS, TUI_SPIN_TEXTS, TUI_SVG_CONTENT_PROCESSOR, TUI_SVG_SRC_PROCESSOR, TUI_TEXTFIELD_APPEARANCE, TUI_TEXTFIELD_HOST, TUI_THEME, TUI_VALUE_ACCESSOR, TUI_VIEWPORT, tuiAsDataListAccessor, tuiAsDataListHost, tuiAsOptionContent, tuiAsTextfieldHost, tuiAsViewport, tuiNotificationOptionsProvider };
198
234
  //# sourceMappingURL=taiga-ui-core-tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-tokens.js","sources":["../../../projects/core/tokens/animations-duration.ts","../../../projects/core/tokens/animation-options.ts","../../../projects/core/tokens/assert-enabled.ts","../../../projects/core/tokens/data-list-accessor.ts","../../../projects/core/tokens/data-list-host.ts","../../../projects/core/tokens/day-type-handler.ts","../../../projects/core/tokens/document-or-shadow-root.ts","../../../projects/core/tokens/element-ref.ts","../../../projects/core/tokens/first-day-of-week.ts","../../../projects/core/tokens/i18n.ts","../../../projects/core/tokens/icon-place.ts","../../../projects/core/tokens/icons.ts","../../../projects/core/tokens/icons-path.ts","../../../projects/core/tokens/media.ts","../../../projects/core/tokens/is-mobile-resolution.ts","../../../projects/core/tokens/mode.ts","../../../projects/core/tokens/notification-options.ts","../../../projects/core/tokens/number-format.ts","../../../projects/core/tokens/option-content.ts","../../../projects/core/tokens/ordered-short-week-days.ts","../../../projects/core/tokens/sanitizer.ts","../../../projects/core/tokens/scroll-ref.ts","../../../projects/core/tokens/selection-stream.ts","../../../projects/core/tokens/svg-content-processor.ts","../../../projects/core/tokens/svg-src-processor.ts","../../../projects/core/tokens/textfield-appearance.ts","../../../projects/core/tokens/textfield-host.ts","../../../projects/core/tokens/theme.ts","../../../projects/core/tokens/value-accessor.ts","../../../projects/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport const TUI_ANIMATIONS_DURATION = new InjectionToken<number>(\n `[TUI_ANIMATIONS_DURATION]: Duration of all Taiga UI animations in ms`,\n {\n factory: () => 300,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {inject, InjectionToken} from '@angular/core';\n\nimport {TUI_ANIMATIONS_DURATION} from './animations-duration';\n\nexport const TUI_ANIMATION_OPTIONS = new InjectionToken<AnimationOptions>(\n `[TUI_ANIMATION_OPTIONS]: Options for Taiga UI animations`,\n {\n factory: () => ({\n params: {\n duration: inject(TUI_ANIMATIONS_DURATION),\n },\n }),\n },\n);\n","import {InjectionToken, isDevMode} from '@angular/core';\n\nexport const TUI_ASSERT_ENABLED = new InjectionToken(\n `[TUI_ASSERT_ENABLED]: Flag to enable assertions across Taiga UI`,\n {\n factory: () => isDevMode(),\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_ACCESSOR = new InjectionToken<TuiDataListAccessor>(\n `[TUI_DATA_LIST_ACCESSOR]: Accessor for options`,\n);\n\nexport function tuiAsDataListAccessor(useExisting: Type<TuiDataListAccessor>): Provider {\n return {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting,\n };\n}\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_HOST = new InjectionToken<TuiDataListHost<unknown>>(\n `[TUI_DATA_LIST_HOST]: DataList controller`,\n);\n\nexport function tuiAsDataListHost(useExisting: Type<TuiDataListHost<unknown>>): Provider {\n return {\n provide: TUI_DATA_LIST_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {TuiDay, TuiHandler} from '@taiga-ui/cdk';\n\nexport const TUI_DAY_TYPE_HANDLER = new InjectionToken<TuiHandler<TuiDay, string>>(\n `[TUI_DAY_TYPE_HANDLER]: Token for adding data-type attribute to calendar cell`,\n {\n factory: () => (day: TuiDay) => day.isWeekend ? `weekend` : `weekday`,\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken<DocumentOrShadowRoot>(\n `[TUI_DOCUMENT_OR_SHADOW_ROOT]: Document or ShadowRoot`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_ELEMENT_REF = new InjectionToken<ElementRef>(\n `[TUI_ELEMENT_REF]: ElementRef when you cannot use @Input for single time injection`,\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDayOfWeek} from '@taiga-ui/cdk';\n\nexport const TUI_FIRST_DAY_OF_WEEK = new InjectionToken<TuiDayOfWeek>(\n `[TUI_FIRST_DAY_OF_WEEK]: The first day of the week index`,\n {\n factory: () => TuiDayOfWeek.Monday,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {tuiExtractI18n} from '@taiga-ui/i18n';\n\nexport const TUI_MONTHS = new InjectionToken(`[TUI_MONTHS]: Localized months names`, {\n factory: tuiExtractI18n(`months`),\n});\n\nexport const TUI_CLOSE_WORD = new InjectionToken(`[TUI_CLOSE_WORD]: i18n 'close' word`, {\n factory: tuiExtractI18n(`close`),\n});\n\nexport const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(\n `[TUI_NOTHING_FOUND_MESSAGE]: i18n 'Nothing found' message`,\n {\n factory: tuiExtractI18n(`nothingFoundMessage`),\n },\n);\n\nexport const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(\n `[TUI_DEFAULT_ERROR_MESSAGE]: i18n of error message`,\n {\n factory: tuiExtractI18n(`defaultErrorMessage`),\n },\n);\n\nexport const TUI_SPIN_TEXTS = new InjectionToken(`[TUI_SPIN_TEXTS]: spin i18n texts`, {\n factory: tuiExtractI18n(`spinTexts`),\n});\n\nexport const TUI_SHORT_WEEK_DAYS = new InjectionToken(\n `[TUI_SHORT_WEEK_DAYS]: calendars i18n texts`,\n {\n factory: tuiExtractI18n(`shortWeekDays`),\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS_PLACE: InjectionToken<string> = new InjectionToken<string>(\n `[TUI_ICONS_PLACE]: Recommended paths to icons from documentation guide`,\n {\n factory: () => `assets/taiga-ui/icons`,\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS = new InjectionToken<Record<string, string>>(\n `[TUI_ICONS]: A key/value dictionary of icon names and src to be defined with TuiSvgService`,\n {\n factory: () => ({}),\n },\n);\n","import {inject, InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {tuiIconsPathFactory} from '@taiga-ui/core/utils';\n\nimport {TUI_ICONS_PLACE} from './icon-place';\n\nexport const TUI_ICONS_PATH: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `[TUI_ICONS_PATH]: A handler to retrieve USE id for icon by name`,\n {factory: () => tuiIconsPathFactory(inject(TUI_ICONS_PLACE))},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\n\nexport const TUI_MEDIA = new InjectionToken<TuiMedia>(\n `[TUI_MEDIA]: Token for media constant`,\n {\n factory: () => ({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n }),\n },\n);\n","import {inject, InjectionToken, NgZone} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {tuiIsMobile} from '@taiga-ui/core/utils';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, startWith} from 'rxjs/operators';\n\nimport {TUI_MEDIA} from './media';\n\nexport const TUI_IS_MOBILE_RES = new InjectionToken<Observable<boolean>>(\n `[TUI_IS_MOBILE_RES]: Mobile resolution stream for private providers`,\n {\n factory: () => {\n const windowRef = inject(WINDOW);\n const media = inject(TUI_MEDIA);\n\n return tuiTypedFromEvent(windowRef, `resize`).pipe(\n share(),\n startWith(null),\n map(() => tuiIsMobile(windowRef, media)),\n distinctUntilChanged(),\n tuiZoneOptimized(inject(NgZone)),\n );\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MODE: InjectionToken<Observable<TuiBrightness | null>> =\n new InjectionToken<Observable<TuiBrightness | null>>(\n `[TUI_MODE]: Mode stream for private providers`,\n );\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\n\nexport interface TuiNotificationDefaultOptions\n extends Omit<TuiAlertOptions<unknown>, 'data'> {\n readonly defaultAutoCloseTime: number;\n}\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: TuiNotificationDefaultOptions = {\n autoClose: true,\n label: ``,\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n defaultAutoCloseTime: 3000,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<TuiNotificationDefaultOptions>(\n `[TUI_NOTIFICATION_OPTIONS]: Default parameters for notification alert component`,\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiNotificationOptionsProvider(\n options: Partial<TuiNotificationDefaultOptions>,\n): ValueProvider {\n return {\n provide: TUI_NOTIFICATION_OPTIONS,\n useValue: {...TUI_NOTIFICATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<TuiNumberFormatSettings>(\n `[TUI_NUMBER_FORMAT]: Formatting configuration for displayed numbers`,\n {\n factory: () => TUI_DEFAULT_NUMBER_FORMAT,\n },\n);\n","import {InjectionToken, Provider, TemplateRef} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_OPTION_CONTENT = new InjectionToken<\n PolymorpheusContent<TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>>\n>(`[TUI_OPTION_CONTENT]: Content for tuiOption component`);\n\nexport function tuiAsOptionContent(\n useValue: PolymorpheusContent<\n TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>\n >,\n): Provider {\n return {\n provide: TUI_OPTION_CONTENT,\n useValue,\n };\n}\n","/**\n * TODO: v4.0 delete the whole file\n */\nimport {inject, InjectionToken} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_FIRST_DAY_OF_WEEK} from './first-day-of-week';\nimport {TUI_SHORT_WEEK_DAYS} from './i18n';\n\n/**\n * @deprecated\n */\nexport type WEEK_DAYS_NAMES = [string, string, string, string, string, string, string];\n\nconst convertToSundayFirstWeekFormat = (\n weekDaysNames: WEEK_DAYS_NAMES,\n): WEEK_DAYS_NAMES => {\n const sundayIndex = weekDaysNames.length - 1;\n\n return [\n weekDaysNames[sundayIndex],\n ...weekDaysNames.slice(0, sundayIndex),\n ] as WEEK_DAYS_NAMES;\n};\n\n/**\n * @deprecated\n */\nexport const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken<\n Observable<WEEK_DAYS_NAMES>\n>(`[TUI_ORDERED_SHORT_WEEK_DAYS]: Ordered calendars i18n texts`, {\n factory: () => {\n const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);\n\n return inject(TUI_SHORT_WEEK_DAYS).pipe(\n map(convertToSundayFirstWeekFormat),\n map(\n weekDays =>\n [\n ...weekDays.slice(firstDayOfWeekIndex),\n ...weekDays.slice(0, firstDayOfWeekIndex),\n ] as WEEK_DAYS_NAMES,\n ),\n );\n },\n});\n","import {InjectionToken, Sanitizer} from '@angular/core';\n\nexport const TUI_SANITIZER = new InjectionToken<Sanitizer>(\n `[TUI_SANITIZER]: A custom Sanitizer to sanitize source before inlining`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_SCROLL_REF = new InjectionToken<ElementRef<HTMLElement>>(\n `[TUI_SCROLL_REF]: Scrollable container`,\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject, InjectionToken} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {share, switchMap, takeUntil} from 'rxjs/operators';\n\nexport const TUI_SELECTION_STREAM = new InjectionToken<Observable<unknown>>(\n `[TUI_SELECTION_STREAM]: A stream of possible selection changes`,\n {\n factory: () => {\n const documentRef = inject(DOCUMENT);\n\n return merge(\n tuiTypedFromEvent(documentRef, `selectionchange`),\n tuiTypedFromEvent(documentRef, `mouseup`),\n tuiTypedFromEvent(documentRef, `mousedown`).pipe(\n switchMap(() =>\n tuiTypedFromEvent(documentRef, `mousemove`).pipe(\n takeUntil(tuiTypedFromEvent(documentRef, `mouseup`)),\n ),\n ),\n ),\n tuiTypedFromEvent(documentRef, `keydown`),\n tuiTypedFromEvent(documentRef, `keyup`),\n ).pipe(share());\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {SafeHtml} from '@angular/platform-browser';\nimport {TuiHandler, tuiSvgLinearGradientProcessor} from '@taiga-ui/cdk';\n\nexport const TUI_SVG_CONTENT_PROCESSOR = new InjectionToken<\n TuiHandler<SafeHtml | string, SafeHtml | string>\n>(`[TUI_SVG_CONTENT_PROCESSOR]: Transform function the contents of the loaded svg file`, {\n factory: () => tuiSvgLinearGradientProcessor,\n});\n","import {InjectionToken} from '@angular/core';\nimport {SafeHtml} from '@angular/platform-browser';\nimport {TuiHandler} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\nexport const TUI_SVG_SRC_PROCESSOR = new InjectionToken<\n TuiHandler<SafeHtml | string, SafeHtml | string>\n>(`[TUI_SVG_SRC_PROCESSOR]: Source path processor for svg`, {\n factory: () => identity,\n});\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\n\nexport const TUI_TEXTFIELD_APPEARANCE = new InjectionToken<string>(\n `[TUI_TEXTFIELD_APPEARANCE]: Appearance for inputs`,\n {\n factory: () => TuiAppearance.Textfield,\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_TEXTFIELD_HOST = new InjectionToken<TuiTextfieldHost>(\n `[TUI_TEXTFIELD_HOST]: An interface to communicate with textfield based controls`,\n);\n\nexport function tuiAsTextfieldHost(useExisting: Type<TuiTextfieldHost>): Provider {\n return {\n provide: TUI_TEXTFIELD_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_THEME = new InjectionToken<string>(`[TUI_THEME]: Theme name`, {\n factory: () => `Taiga`,\n});\n","import {InjectionToken} from '@angular/core';\nimport {ControlValueAccessor} from '@angular/forms';\n\nexport const TUI_VALUE_ACCESSOR = new InjectionToken<ControlValueAccessor>(\n `[TUI_VALUE_ACCESSOR]: Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`,\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CACrD,sEAAsE,EACtE;AACI,IAAA,OAAO,EAAE,MAAM,GAAG;AACrB,CAAA;;MCDQ,qBAAqB,GAAG,IAAI,cAAc,CACnD,0DAA0D,EAC1D;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,MAAM,EAAE;AACJ,YAAA,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;AAC5C,SAAA;KACJ,CAAC;AACL,CAAA;;MCXQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,iEAAiE,EACjE;AACI,IAAA,OAAO,EAAE,MAAM,SAAS,EAAE;AAC7B,CAAA;;MCHQ,sBAAsB,GAAG,IAAI,cAAc,CACpD,CAAgD,8CAAA,CAAA,EAClD;AAEI,SAAU,qBAAqB,CAAC,WAAsC,EAAA;IACxE,OAAO;AACH,QAAA,OAAO,EAAE,sBAAsB;QAC/B,WAAW;KACd,CAAC;AACN;;MCTa,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAA2C,yCAAA,CAAA,EAC7C;AAEI,SAAU,iBAAiB,CAAC,WAA2C,EAAA;IACzE,OAAO;AACH,QAAA,OAAO,EAAE,kB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wBAAwB,GAAG,IAAI,cAAc,CACtD,mDAAmD,EACnD;IACI,OAAO,EAAE,MAA6B,WAAA;AACzC,CAAA;;MCJQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAAiF,+EAAA,CAAA,EACnF;AAEI,SAAU,kBAAkB,CAAC,WAAmC,EAAA;IAClE,OAAO;AACH,QAAA,OAAO,EAAE,kBAAkB;QAC3B,WAAW;KACd,CAAC;AACN;;MCVa,SAAS,GAAG,IAAI,cAAc,CAAS,yBAAyB,EAAE;AAC3E,IAAA,OAAO,EAAE,MAAM,CAAO,KAAA,CAAA;AACzB,CAAA;;MCDY,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAAsF,oFAAA,CAAA;;ACJ1F;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-tokens.js","sources":["../../../projects/core/tokens/animations-duration.ts","../../../projects/core/tokens/animation-options.ts","../../../projects/core/tokens/assert-enabled.ts","../../../projects/core/tokens/data-list-accessor.ts","../../../projects/core/tokens/data-list-host.ts","../../../projects/core/tokens/day-type-handler.ts","../../../projects/core/tokens/document-or-shadow-root.ts","../../../projects/core/tokens/element-ref.ts","../../../projects/core/tokens/first-day-of-week.ts","../../../projects/core/tokens/i18n.ts","../../../projects/core/tokens/icon-place.ts","../../../projects/core/tokens/icons.ts","../../../projects/core/tokens/icons-path.ts","../../../projects/core/tokens/media.ts","../../../projects/core/tokens/is-mobile-resolution.ts","../../../projects/core/tokens/mode.ts","../../../projects/core/tokens/notification-options.ts","../../../projects/core/tokens/number-format.ts","../../../projects/core/tokens/option-content.ts","../../../projects/core/tokens/ordered-short-week-days.ts","../../../projects/core/tokens/sanitizer.ts","../../../projects/core/tokens/scroll-ref.ts","../../../projects/core/tokens/selection-stream.ts","../../../projects/core/tokens/svg-content-processor.ts","../../../projects/core/tokens/svg-src-processor.ts","../../../projects/core/tokens/textfield-appearance.ts","../../../projects/core/tokens/textfield-host.ts","../../../projects/core/tokens/theme.ts","../../../projects/core/tokens/value-accessor.ts","../../../projects/core/tokens/viewport.ts","../../../projects/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport const TUI_ANIMATIONS_DURATION = new InjectionToken<number>(\n `[TUI_ANIMATIONS_DURATION]: Duration of all Taiga UI animations in ms`,\n {\n factory: () => 300,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {inject, InjectionToken} from '@angular/core';\n\nimport {TUI_ANIMATIONS_DURATION} from './animations-duration';\n\nexport const TUI_ANIMATION_OPTIONS = new InjectionToken<AnimationOptions>(\n `[TUI_ANIMATION_OPTIONS]: Options for Taiga UI animations`,\n {\n factory: () => ({\n params: {\n duration: inject(TUI_ANIMATIONS_DURATION),\n },\n }),\n },\n);\n","import {InjectionToken, isDevMode} from '@angular/core';\n\nexport const TUI_ASSERT_ENABLED = new InjectionToken(\n `[TUI_ASSERT_ENABLED]: Flag to enable assertions across Taiga UI`,\n {\n factory: () => isDevMode(),\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_ACCESSOR = new InjectionToken<TuiDataListAccessor>(\n `[TUI_DATA_LIST_ACCESSOR]: Accessor for options`,\n);\n\nexport function tuiAsDataListAccessor(useExisting: Type<TuiDataListAccessor>): Provider {\n return {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting,\n };\n}\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_HOST = new InjectionToken<TuiDataListHost<unknown>>(\n `[TUI_DATA_LIST_HOST]: DataList controller`,\n);\n\nexport function tuiAsDataListHost(useExisting: Type<TuiDataListHost<unknown>>): Provider {\n return {\n provide: TUI_DATA_LIST_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {TuiDay, TuiHandler} from '@taiga-ui/cdk';\n\nexport const TUI_DAY_TYPE_HANDLER = new InjectionToken<TuiHandler<TuiDay, string>>(\n `[TUI_DAY_TYPE_HANDLER]: Token for adding data-type attribute to calendar cell`,\n {\n factory: () => (day: TuiDay) => day.isWeekend ? `weekend` : `weekday`,\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken<DocumentOrShadowRoot>(\n `[TUI_DOCUMENT_OR_SHADOW_ROOT]: Document or ShadowRoot`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_ELEMENT_REF = new InjectionToken<ElementRef>(\n `[TUI_ELEMENT_REF]: ElementRef when you cannot use @Input for single time injection`,\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDayOfWeek} from '@taiga-ui/cdk';\n\nexport const TUI_FIRST_DAY_OF_WEEK = new InjectionToken<TuiDayOfWeek>(\n `[TUI_FIRST_DAY_OF_WEEK]: The first day of the week index`,\n {\n factory: () => TuiDayOfWeek.Monday,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {tuiExtractI18n} from '@taiga-ui/i18n';\n\nexport const TUI_MONTHS = new InjectionToken(`[TUI_MONTHS]: Localized months names`, {\n factory: tuiExtractI18n(`months`),\n});\n\nexport const TUI_CLOSE_WORD = new InjectionToken(`[TUI_CLOSE_WORD]: i18n 'close' word`, {\n factory: tuiExtractI18n(`close`),\n});\n\nexport const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(\n `[TUI_NOTHING_FOUND_MESSAGE]: i18n 'Nothing found' message`,\n {\n factory: tuiExtractI18n(`nothingFoundMessage`),\n },\n);\n\nexport const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(\n `[TUI_DEFAULT_ERROR_MESSAGE]: i18n of error message`,\n {\n factory: tuiExtractI18n(`defaultErrorMessage`),\n },\n);\n\nexport const TUI_SPIN_TEXTS = new InjectionToken(`[TUI_SPIN_TEXTS]: spin i18n texts`, {\n factory: tuiExtractI18n(`spinTexts`),\n});\n\nexport const TUI_SHORT_WEEK_DAYS = new InjectionToken(\n `[TUI_SHORT_WEEK_DAYS]: calendars i18n texts`,\n {\n factory: tuiExtractI18n(`shortWeekDays`),\n },\n);\n","import {InjectionToken} from '@angular/core';\n\n/**\n * @deprecated Use {@link TUI_SVG_OPTIONS} instead\n */\nexport const TUI_ICONS_PLACE: InjectionToken<string> = new InjectionToken<string>(\n `[TUI_ICONS_PLACE]: Paths to icons`,\n {\n factory: () => `assets/taiga-ui/icons`,\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS = new InjectionToken<Record<string, string>>(\n `[TUI_ICONS]: A key/value dictionary of icon names and src to be defined with TuiSvgService`,\n {\n factory: () => ({}),\n },\n);\n","import {inject, InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {tuiIconsPathFactory} from '@taiga-ui/core/utils';\n\nimport {TUI_ICONS_PLACE} from './icon-place';\n\n/**\n * @deprecated Use {@link TUI_SVG_OPTIONS} instead\n */\nexport const TUI_ICONS_PATH: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `[TUI_ICONS_PATH]: A handler to retrieve USE id for icon by name`,\n {factory: () => tuiIconsPathFactory(inject(TUI_ICONS_PLACE))},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\n\nexport const TUI_MEDIA = new InjectionToken<TuiMedia>(\n `[TUI_MEDIA]: Token for media constant`,\n {\n factory: () => ({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n }),\n },\n);\n","import {inject, InjectionToken, NgZone} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {tuiIsMobile} from '@taiga-ui/core/utils';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, startWith} from 'rxjs/operators';\n\nimport {TUI_MEDIA} from './media';\n\nexport const TUI_IS_MOBILE_RES = new InjectionToken<Observable<boolean>>(\n `[TUI_IS_MOBILE_RES]: Mobile resolution stream for private providers`,\n {\n factory: () => {\n const windowRef = inject(WINDOW);\n const media = inject(TUI_MEDIA);\n\n return tuiTypedFromEvent(windowRef, `resize`).pipe(\n share(),\n startWith(null),\n map(() => tuiIsMobile(windowRef, media)),\n distinctUntilChanged(),\n tuiZoneOptimized(inject(NgZone)),\n );\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MODE: InjectionToken<Observable<TuiBrightness | null>> =\n new InjectionToken<Observable<TuiBrightness | null>>(\n `[TUI_MODE]: Mode stream for private providers`,\n );\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\n\nexport interface TuiNotificationDefaultOptions\n extends Omit<TuiAlertOptions<unknown>, 'data'> {\n readonly defaultAutoCloseTime: number;\n}\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: TuiNotificationDefaultOptions = {\n autoClose: true,\n label: ``,\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n defaultAutoCloseTime: 3000,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<TuiNotificationDefaultOptions>(\n `[TUI_NOTIFICATION_OPTIONS]: Default parameters for notification alert component`,\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiNotificationOptionsProvider(\n options: Partial<TuiNotificationDefaultOptions>,\n): ValueProvider {\n return {\n provide: TUI_NOTIFICATION_OPTIONS,\n useValue: {...TUI_NOTIFICATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<TuiNumberFormatSettings>(\n `[TUI_NUMBER_FORMAT]: Formatting configuration for displayed numbers`,\n {\n factory: () => TUI_DEFAULT_NUMBER_FORMAT,\n },\n);\n","import {InjectionToken, Provider, TemplateRef} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_OPTION_CONTENT = new InjectionToken<\n PolymorpheusContent<TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>>\n>(`[TUI_OPTION_CONTENT]: Content for tuiOption component`);\n\nexport function tuiAsOptionContent(\n useValue: PolymorpheusContent<\n TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>\n >,\n): Provider {\n return {\n provide: TUI_OPTION_CONTENT,\n useValue,\n };\n}\n","/**\n * TODO: v4.0 delete the whole file\n */\nimport {inject, InjectionToken} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_FIRST_DAY_OF_WEEK} from './first-day-of-week';\nimport {TUI_SHORT_WEEK_DAYS} from './i18n';\n\n/**\n * @deprecated\n */\nexport type WEEK_DAYS_NAMES = [string, string, string, string, string, string, string];\n\nconst convertToSundayFirstWeekFormat = (\n weekDaysNames: WEEK_DAYS_NAMES,\n): WEEK_DAYS_NAMES => {\n const sundayIndex = weekDaysNames.length - 1;\n\n return [\n weekDaysNames[sundayIndex],\n ...weekDaysNames.slice(0, sundayIndex),\n ] as WEEK_DAYS_NAMES;\n};\n\n/**\n * @deprecated\n */\nexport const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken<\n Observable<WEEK_DAYS_NAMES>\n>(`[TUI_ORDERED_SHORT_WEEK_DAYS]: Ordered calendars i18n texts`, {\n factory: () => {\n const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);\n\n return inject(TUI_SHORT_WEEK_DAYS).pipe(\n map(convertToSundayFirstWeekFormat),\n map(\n weekDays =>\n [\n ...weekDays.slice(firstDayOfWeekIndex),\n ...weekDays.slice(0, firstDayOfWeekIndex),\n ] as WEEK_DAYS_NAMES,\n ),\n );\n },\n});\n","import {InjectionToken, Sanitizer} from '@angular/core';\n\nexport const TUI_SANITIZER = new InjectionToken<Sanitizer>(\n `[TUI_SANITIZER]: A custom Sanitizer to sanitize source before inlining`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_SCROLL_REF = new InjectionToken<ElementRef<HTMLElement>>(\n `[TUI_SCROLL_REF]: Scrollable container`,\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject, InjectionToken} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {share, switchMap, takeUntil} from 'rxjs/operators';\n\nexport const TUI_SELECTION_STREAM = new InjectionToken<Observable<unknown>>(\n `[TUI_SELECTION_STREAM]: A stream of possible selection changes`,\n {\n factory: () => {\n const documentRef = inject(DOCUMENT);\n\n return merge(\n tuiTypedFromEvent(documentRef, `selectionchange`),\n tuiTypedFromEvent(documentRef, `mouseup`),\n tuiTypedFromEvent(documentRef, `mousedown`).pipe(\n switchMap(() =>\n tuiTypedFromEvent(documentRef, `mousemove`).pipe(\n takeUntil(tuiTypedFromEvent(documentRef, `mouseup`)),\n ),\n ),\n ),\n tuiTypedFromEvent(documentRef, `keydown`),\n tuiTypedFromEvent(documentRef, `keyup`),\n ).pipe(share());\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {SafeHtml} from '@angular/platform-browser';\nimport {TuiHandler, tuiSvgLinearGradientProcessor} from '@taiga-ui/cdk';\n\n/**\n * @deprecated Use {@link TUI_SVG_OPTIONS} instead\n */\nexport const TUI_SVG_CONTENT_PROCESSOR = new InjectionToken<\n TuiHandler<SafeHtml | string, SafeHtml | string>\n>(`[TUI_SVG_CONTENT_PROCESSOR]: Transform function the contents of the loaded svg file`, {\n factory: () => tuiSvgLinearGradientProcessor,\n});\n","import {InjectionToken} from '@angular/core';\nimport {SafeHtml} from '@angular/platform-browser';\nimport {TuiHandler} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\n/**\n * @deprecated Use {@link TUI_SVG_OPTIONS} instead\n */\nexport const TUI_SVG_SRC_PROCESSOR = new InjectionToken<\n TuiHandler<SafeHtml | string, SafeHtml | string>\n>(`[TUI_SVG_SRC_PROCESSOR]: Source path processor for svg`, {\n factory: () => identity,\n});\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\n\nexport const TUI_TEXTFIELD_APPEARANCE = new InjectionToken<string>(\n `[TUI_TEXTFIELD_APPEARANCE]: Appearance for inputs`,\n {\n factory: () => TuiAppearance.Textfield,\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_TEXTFIELD_HOST = new InjectionToken<TuiTextfieldHost>(\n `[TUI_TEXTFIELD_HOST]: An interface to communicate with textfield based controls`,\n);\n\nexport function tuiAsTextfieldHost(useExisting: Type<TuiTextfieldHost>): Provider {\n return {\n provide: TUI_TEXTFIELD_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_THEME = new InjectionToken<string>(`[TUI_THEME]: Theme name`, {\n factory: () => `Taiga`,\n});\n","import {InjectionToken} from '@angular/core';\nimport {ControlValueAccessor} from '@angular/forms';\n\nexport const TUI_VALUE_ACCESSOR = new InjectionToken<ControlValueAccessor>(\n `[TUI_VALUE_ACCESSOR]: Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`,\n);\n","import {inject, InjectionToken, Provider, Type} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {TuiRectAccessor} from '@taiga-ui/core/abstract';\n\nexport const TUI_VIEWPORT = new InjectionToken<TuiRectAccessor>(\n `[TUI_VIEWPORT]: Viewport accessor`,\n {\n factory: () => {\n const windowRef = inject(WINDOW);\n\n return {\n getClientRect() {\n return {\n top: 0,\n left: 0,\n right: windowRef.innerWidth,\n bottom: windowRef.innerHeight,\n width: windowRef.innerWidth,\n height: windowRef.innerHeight,\n };\n },\n };\n },\n },\n);\n\nexport function tuiAsViewport(useExisting: Type<TuiRectAccessor>): Provider {\n return {\n provide: TUI_VIEWPORT,\n useExisting,\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CACrD,sEAAsE,EACtE;AACI,IAAA,OAAO,EAAE,MAAM,GAAG;AACrB,CAAA;;MCDQ,qBAAqB,GAAG,IAAI,cAAc,CACnD,0DAA0D,EAC1D;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,MAAM,EAAE;AACJ,YAAA,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;AAC5C,SAAA;KACJ,CAAC;AACL,CAAA;;MCXQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,iEAAiE,EACjE;AACI,IAAA,OAAO,EAAE,MAAM,SAAS,EAAE;AAC7B,CAAA;;MCHQ,sBAAsB,GAAG,IAAI,cAAc,CACpD,CAAgD,8CAAA,CAAA,EAClD;AAEI,SAAU,qBAAqB,CAAC,WAAsC,EAAA;IACxE,OAAO;AACH,QAAA,OAAO,EAAE,sBAAsB;QAC/B,WAAW;KACd,CAAC;AACN;;MCTa,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAA2C,yCAAA,CAAA,EAC7C;AAEI,SAAU,iBAAiB,CAAC,WAA2C,EAAA;IACzE,OAAO;AACH,QAAA,OAAO,EAAE,kBAAkB;QAC3B,WAAW;KACd,CAAC;AACN;;MCTa,oBAAoB,GAAG,IAAI,cAAc,CAClD,+EAA+E,EAC/E;AACI,IAAA,OAAO,EAAE,MAAM,CAAC,GAAW,KAAK,GAAG,CAAC,SAAS,GAAG,SAAS,GAAG,CAAS,OAAA,CAAA;A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,EACnF;AAEI,SAAU,kBAAkB,CAAC,WAAmC,EAAA;IAClE,OAAO;AACH,QAAA,OAAO,EAAE,kBAAkB;QAC3B,WAAW;KACd,CAAC;AACN;;MCVa,SAAS,GAAG,IAAI,cAAc,CAAS,yBAAyB,EAAE;AAC3E,IAAA,OAAO,EAAE,MAAM,CAAO,KAAA,CAAA;AACzB,CAAA;;MCDY,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAAsF,oFAAA,CAAA;;MCA7E,YAAY,GAAG,IAAI,cAAc,CAC1C,mCAAmC,EACnC;IACI,OAAO,EAAE,MAAK;AACV,QAAA,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO;YACH,aAAa,GAAA;gBACT,OAAO;AACH,oBAAA,GAAG,EAAE,CAAC;AACN,oBAAA,IAAI,EAAE,CAAC;oBACP,KAAK,EAAE,SAAS,CAAC,UAAU;oBAC3B,MAAM,EAAE,SAAS,CAAC,WAAW;oBAC7B,KAAK,EAAE,SAAS,CAAC,UAAU;oBAC3B,MAAM,EAAE,SAAS,CAAC,WAAW;iBAChC,CAAC;aACL;SACJ,CAAC;KACL;AACJ,CAAA,EACH;AAEI,SAAU,aAAa,CAAC,WAAkC,EAAA;IAC5D,OAAO;AACH,QAAA,OAAO,EAAE,YAAY;QACrB,WAAW;KACd,CAAC;AACN;;AC/BA;;AAEG;;;;"}
@@ -1,13 +1,14 @@
1
1
  import { TuiDialog } from '@taiga-ui/cdk';
2
2
  import { TuiDialogSize } from '@taiga-ui/core/types';
3
3
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
+ import { Observable } from 'rxjs';
4
5
  /**
5
6
  * Options for a dialog
6
7
  *
7
8
  * size - size of the dialog ('m' by default)
8
9
  * required - closing dialog throws (false by default)
9
10
  * closeable - show close button (true by default)
10
- * dismissible - close dialog by Esc button or click on overlay (false by default)
11
+ * dismissible - close dialog by Esc button or click on overlay (true by default)
11
12
  * label - string title for the dialog ('' by default)
12
13
  * header - content above title ('' by default)
13
14
  * data - arbitrary data for dialog (undefined by default)
@@ -15,8 +16,8 @@ import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
15
16
  export interface TuiDialogOptions<I> {
16
17
  readonly size: TuiDialogSize;
17
18
  readonly required: boolean;
18
- readonly closeable: boolean;
19
- readonly dismissible: boolean;
19
+ readonly closeable: Observable<boolean> | boolean;
20
+ readonly dismissible: Observable<boolean> | boolean;
20
21
  readonly label: string;
21
22
  readonly header: PolymorpheusContent<TuiDialog<TuiDialogOptions<I>, any>>;
22
23
  readonly data: I;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/core",
3
- "version": "3.17.0",
3
+ "version": "3.18.0-dev.main-05a0bf8",
4
4
  "description": "Core library for creating Angular components and applications using Taiga UI",
5
5
  "keywords": [
6
6
  "angular",
@@ -15,7 +15,7 @@
15
15
  "repository": "https://github.com/tinkoff/taiga-ui",
16
16
  "license": "Apache-2.0",
17
17
  "dependencies": {
18
- "@taiga-ui/i18n": "^3.17.0",
18
+ "@taiga-ui/i18n": "^3.18.0",
19
19
  "tslib": ">=2.0.0"
20
20
  },
21
21
  "peerDependencies": {
@@ -27,8 +27,8 @@
27
27
  "@angular/router": ">=12.0.0",
28
28
  "@ng-web-apis/common": ">=2.0.0",
29
29
  "@ng-web-apis/mutation-observer": ">=2.0.0",
30
- "@taiga-ui/cdk": ">=3.17.0",
31
- "@taiga-ui/i18n": ">=3.17.0",
30
+ "@taiga-ui/cdk": ">=3.18.0",
31
+ "@taiga-ui/i18n": ">=3.18.0",
32
32
  "@tinkoff/ng-event-plugins": ">=3.1.0",
33
33
  "@tinkoff/ng-polymorpheus": ">=4.0.0",
34
34
  "rxjs": ">=6.0.0"
@@ -213,42 +213,23 @@
213
213
  }
214
214
 
215
215
  .input-icon() {
216
+ position: relative;
216
217
  display: flex;
217
218
  width: 1.5rem;
218
219
  height: 1.5rem;
219
220
  align-items: center;
220
221
  justify-content: center;
221
- color: var(--tui-text-03);
222
-
223
- :host[data-mode='onDark'] & {
224
- color: var(--tui-text-03-night);
225
- }
222
+ box-sizing: border-box;
223
+ cursor: pointer;
226
224
  }
227
225
 
228
226
  .icon-button() {
229
- .transition(all);
230
227
  .input-icon();
231
- position: relative;
232
- box-sizing: border-box;
233
- cursor: pointer;
234
- transition-property: color, transform;
235
-
236
- &:hover {
237
- color: var(--tui-text-02);
238
- }
239
228
 
240
229
  :host._readonly &,
241
230
  :host._disabled & {
242
231
  pointer-events: none;
243
232
  }
244
-
245
- :host[data-mode='onDark'] & {
246
- color: var(--tui-text-03-night);
247
-
248
- &:hover {
249
- color: var(--tui-text-01-night);
250
- }
251
- }
252
233
  }
253
234
 
254
235
  .textfield() {
@@ -279,6 +260,7 @@
279
260
  // @bad TODO: Refactor this and interactive icons together
280
261
  .t-icon {
281
262
  .input-icon();
263
+ pointer-events: none;
282
264
 
283
265
  &_left {
284
266
  margin: 0 2 * @space 0 -@space;
@@ -214,42 +214,23 @@ $line-height-l: 1.25rem;
214
214
  }
215
215
 
216
216
  @mixin input-icon() {
217
+ position: relative;
217
218
  display: flex;
218
219
  width: 1.5rem;
219
220
  height: 1.5rem;
220
221
  align-items: center;
221
222
  justify-content: center;
222
- color: var(--tui-text-03);
223
-
224
- :host[data-mode='onDark'] & {
225
- color: var(--tui-text-03-night);
226
- }
223
+ box-sizing: border-box;
224
+ cursor: pointer;
227
225
  }
228
226
 
229
227
  @mixin icon-button() {
230
- @include transition(all);
231
228
  @include input-icon();
232
- position: relative;
233
- box-sizing: border-box;
234
- cursor: pointer;
235
- transition-property: color, transform;
236
-
237
- &:hover {
238
- color: var(--tui-text-02);
239
- }
240
229
 
241
230
  :host._readonly &,
242
231
  :host._disabled & {
243
232
  pointer-events: none;
244
233
  }
245
-
246
- :host[data-mode='onDark'] & {
247
- color: var(--tui-text-03-night);
248
-
249
- &:hover {
250
- color: var(--tui-text-01-night);
251
- }
252
- }
253
234
  }
254
235
 
255
236
  @mixin textfield() {
@@ -1,51 +1,41 @@
1
1
  @import '../../taiga-ui-local.less';
2
2
 
3
3
  /* stylelint-disable order/order */
4
+ /* stylelint-disable selector-max-specificity */
4
5
  [tuiWrapper][data-appearance='icon'] {
5
- background: transparent;
6
- color: var(--tui-base-06);
6
+ .transition(opacity);
7
+ color: var(--tui-text-01);
8
+ opacity: 0.5;
9
+
10
+ [tuiWrapper]:not([data-state='readonly']):hover .t-textfield-icon & {
11
+ opacity: 0.65;
12
+ }
7
13
 
8
14
  &[data-mode='onDark'] {
9
15
  color: var(--tui-text-01-night);
10
- opacity: var(--tui-disabled-opacity);
11
-
12
- .wrapper-focus({
13
- --tui-focus: var(--tui-base-01);
14
- });
15
16
 
16
- .wrapper-hover({
17
- color: var(--tui-text-01-night);
17
+ [tuiWrapper]:not([data-state='readonly']):hover .t-textfield-icon & {
18
18
  opacity: 1;
19
- });
19
+ }
20
20
 
21
- .wrapper-active({
22
- color: var(--tui-text-01-night);
23
- opacity: 1;
21
+ .wrapper-focus({
22
+ --tui-focus: var(--tui-base-01);
24
23
  });
25
- }
26
-
27
- &[data-mode='onLight'] {
28
- color: var(--tui-text-01);
29
- opacity: var(--tui-disabled-opacity);
30
24
 
31
25
  .wrapper-hover({
32
- color: var(--tui-text-01);
33
- opacity: 1;
34
- });
35
-
36
- .wrapper-active({
37
- color: var(--tui-text-01);
38
26
  opacity: 1;
39
27
  });
40
28
  }
41
29
 
42
30
  .wrapper-hover({
43
- color: var(--tui-base-07);
44
- opacity: 1;
31
+ opacity: 0.65;
45
32
  });
46
33
 
47
34
  .wrapper-active({
48
- color: var(--tui-base-08);
49
35
  opacity: 1;
50
36
  });
37
+
38
+ .wrapper-disabled({
39
+ opacity: calc(0.5 * var(--tui-disabled-opacity));
40
+ });
51
41
  }
@@ -1,2 +1,5 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
4
+ */
2
5
  export declare const TUI_ICONS_PLACE: InjectionToken<string>;
@@ -1,3 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { TuiStringHandler } from '@taiga-ui/cdk';
3
+ /**
4
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
5
+ */
3
6
  export declare const TUI_ICONS_PATH: InjectionToken<TuiStringHandler<string>>;
package/tokens/index.d.ts CHANGED
@@ -27,3 +27,4 @@ export * from './textfield-appearance';
27
27
  export * from './textfield-host';
28
28
  export * from './theme';
29
29
  export * from './value-accessor';
30
+ export * from './viewport';
@@ -1,4 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { SafeHtml } from '@angular/platform-browser';
3
3
  import { TuiHandler } from '@taiga-ui/cdk';
4
+ /**
5
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
6
+ */
4
7
  export declare const TUI_SVG_CONTENT_PROCESSOR: InjectionToken<TuiHandler<string | SafeHtml, string | SafeHtml>>;
@@ -1,4 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { SafeHtml } from '@angular/platform-browser';
3
3
  import { TuiHandler } from '@taiga-ui/cdk';
4
+ /**
5
+ * @deprecated Use {@link TUI_SVG_OPTIONS} instead
6
+ */
4
7
  export declare const TUI_SVG_SRC_PROCESSOR: InjectionToken<TuiHandler<string | SafeHtml, string | SafeHtml>>;
@@ -0,0 +1,4 @@
1
+ import { InjectionToken, Provider, Type } from '@angular/core';
2
+ import { TuiRectAccessor } from '@taiga-ui/core/abstract';
3
+ export declare const TUI_VIEWPORT: InjectionToken<TuiRectAccessor>;
4
+ export declare function tuiAsViewport(useExisting: Type<TuiRectAccessor>): Provider;
@@ -1,5 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- export declare const TUI_DIALOGS_CLOSE: InjectionToken<Observable<unknown>>;
4
- export declare const TUI_DIALOG_CLOSE_STREAM: InjectionToken<Observable<unknown>>;
5
- export declare const TUI_DIALOG_PROVIDERS: Provider[];
@@ -1,51 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import { ElementRef, InjectionToken } from '@angular/core';
3
- import { WINDOW } from '@ng-web-apis/common';
4
- import { tuiContainsOrAfter, TuiDestroyService, tuiGetActualTarget, tuiIsCurrentTarget, tuiIsElement, tuiTypedFromEvent, } from '@taiga-ui/cdk';
5
- import { tuiGetViewportWidth } from '@taiga-ui/core/utils/dom';
6
- import { POLYMORPHEUS_CONTEXT } from '@tinkoff/ng-polymorpheus';
7
- import { EMPTY, merge } from 'rxjs';
8
- import { filter, switchMap, take, takeUntil } from 'rxjs/operators';
9
- export const TUI_DIALOGS_CLOSE = new InjectionToken(`[TUI_DIALOGS_CLOSE]: A stream to close dialogs`, {
10
- factory: () => EMPTY,
11
- });
12
- const SCROLLBAR_PLACEHOLDER = 17;
13
- export const TUI_DIALOG_CLOSE_STREAM = new InjectionToken(`[TUI_DIALOG_CLOSE_STREAM]: Dialogs closing stream`);
14
- export const TUI_DIALOG_PROVIDERS = [
15
- TuiDestroyService,
16
- {
17
- provide: TUI_DIALOG_CLOSE_STREAM,
18
- deps: [
19
- DOCUMENT,
20
- WINDOW,
21
- ElementRef,
22
- TUI_DIALOGS_CLOSE,
23
- TuiDestroyService,
24
- POLYMORPHEUS_CONTEXT,
25
- ],
26
- useFactory: (documentRef, windowRef, { nativeElement }, close$, destroy$, { dismissible }) => {
27
- return dismissible
28
- ? merge(tuiTypedFromEvent(nativeElement, `click`).pipe(filter(tuiIsCurrentTarget)), tuiTypedFromEvent(documentRef, `keydown`).pipe(filter(event => {
29
- const key = event.key;
30
- const target = tuiGetActualTarget(event);
31
- return (key === `Escape` &&
32
- tuiIsElement(target) &&
33
- (!tuiContainsOrAfter(nativeElement, target) ||
34
- nativeElement.contains(target)));
35
- })), tuiTypedFromEvent(documentRef, `mousedown`).pipe(filter(event => {
36
- const target = tuiGetActualTarget(event);
37
- const clientX = event.clientX;
38
- return (tuiIsElement(target) &&
39
- tuiGetViewportWidth(windowRef) - clientX >
40
- SCROLLBAR_PLACEHOLDER &&
41
- !tuiContainsOrAfter(nativeElement, target));
42
- }), switchMap(() => tuiTypedFromEvent(documentRef, `mouseup`).pipe(take(1), filter(event => {
43
- const target = tuiGetActualTarget(event);
44
- return (tuiIsElement(target) &&
45
- !tuiContainsOrAfter(nativeElement, target));
46
- })))), close$).pipe(takeUntil(destroy$))
47
- : close$;
48
- },
49
- },
50
- ];
51
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLnByb3ZpZGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9kaWFsb2cvZGlhbG9nLnByb3ZpZGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUFDLFVBQVUsRUFBRSxjQUFjLEVBQVcsTUFBTSxlQUFlLENBQUM7QUFDbkUsT0FBTyxFQUFDLE1BQU0sRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBQzNDLE9BQU8sRUFDSCxrQkFBa0IsRUFDbEIsaUJBQWlCLEVBRWpCLGtCQUFrQixFQUNsQixrQkFBa0IsRUFDbEIsWUFBWSxFQUNaLGlCQUFpQixHQUNwQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUM3RCxPQUFPLEVBQUMsb0JBQW9CLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUM5RCxPQUFPLEVBQUMsS0FBSyxFQUFFLEtBQUssRUFBYSxNQUFNLE1BQU0sQ0FBQztBQUM5QyxPQUFPLEVBQUMsTUFBTSxFQUFFLFNBQVMsRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFDLE1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ge25hdGl2ZUVsZW1lbnR9OiBFbGVtZW50UmVmPEhUTUxFbGVtZW50PixcbiAgICAgICAgICAgIGNsb3NlJDogT2JzZXJ2YWJsZTx2b2lkPixcbiAgICAgICAgICAgIGRlc3Ryb3kkOiBPYnNlcnZhYmxlPHZvaWQ+LFxuICAgICAgICAgICAge2Rpc21pc3NpYmxlfTogVHVpRGlhbG9nPFR1aURpYWxvZ09wdGlvbnM8dW5rbm93bj4sIHVua25vd24+LFxuICAgICAgICApOiBPYnNlcnZhYmxlPHVua25vd24+ID0+IHtcbiAgICAgICAgICAgIHJldHVybiBkaXNtaXNzaWJsZVxuICAgICAgICAgICAgICAgID8gbWVyZ2UoXG4gICAgICAgICAgICAgICAgICAgICAgdHVpVHlwZWRGcm9tRXZlbnQobmF0aXZlRWxlbWVudCwgYGNsaWNrYCkucGlwZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsdGVyKHR1aUlzQ3VycmVudFRhcmdldCksXG4gICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICB0dWlUeXBlZEZyb21FdmVudChkb2N1bWVudFJlZiwgYGtleWRvd25gKS5waXBlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBmaWx0ZXIoZXZlbnQgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3Qga2V5ID0gZXZlbnQua2V5O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgdGFyZ2V0ID0gdHVpR2V0QWN0dWFsVGFyZ2V0KGV2ZW50KTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZXkgPT09IGBFc2NhcGVgICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHVpSXNFbGVtZW50KHRhcmdldCkgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoIXR1aUNvbnRhaW5zT3JBZnRlcihuYXRpdmVFbGVtZW50LCB0YXJnZXQpIHx8XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hdGl2ZUVsZW1lbnQuY29udGFpbnModGFyZ2V0KSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgdHVpVHlwZWRGcm9tRXZlbnQoZG9jdW1lbnRSZWYsIGBtb3VzZWRvd25gKS5waXBlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBmaWx0ZXIoZXZlbnQgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgdGFyZ2V0ID0gdHVpR2V0QWN0dWFsVGFyZ2V0KGV2ZW50KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGNsaWVudFggPSBldmVudC5jbGllbnRYO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR1aUlzRWxlbWVudCh0YXJnZXQpICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHVpR2V0Vmlld3BvcnRXaWR0aCh3aW5kb3dSZWYpIC0gY2xpZW50WCA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNDUk9MTEJBUl9QTEFDRUhPTERFUiAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICF0dWlDb250YWluc09yQWZ0ZXIobmF0aXZlRWxlbWVudCwgdGFyZ2V0KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHN3aXRjaE1hcCgoKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHVpVHlwZWRGcm9tRXZlbnQoZG9jdW1lbnRSZWYsIGBtb3VzZXVwYCkucGlwZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YWtlKDEpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcihldmVudCA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHRhcmdldCA9IHR1aUdldEFjdHVhbFRhcmdldChldmVudCk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR1aUlzRWxlbWVudCh0YXJnZXQpICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAhdHVpQ29udGFpbnNPckFmdGVyKG5hdGl2ZUVsZW1lbnQsIHRhcmdldClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICBjbG9zZSQsXG4gICAgICAgICAgICAgICAgICApLnBpcGUodGFrZVVudGlsKGRlc3Ryb3kkKSlcbiAgICAgICAgICAgICAgICA6IGNsb3NlJDtcbiAgICAgICAgfSxcbiAgICB9LFxuXTtcbiJdfQ==