@taiga-ui/cdk 4.52.0-canary.216e347 → 4.52.0-canary.2c75afa

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 (751) hide show
  1. package/classes/control.d.ts +3 -5
  2. package/classes/index.d.ts +0 -1
  3. package/constants/index.d.ts +0 -1
  4. package/constants/used-icons.d.ts +1 -1
  5. package/constants/version.d.ts +1 -1
  6. package/constants/version.js +1 -1
  7. package/date-time/date-time.d.ts +1 -1
  8. package/date-time/day.d.ts +1 -1
  9. package/date-time/time.d.ts +2 -2
  10. package/date-time/types.d.ts +0 -5
  11. package/directives/active-zone/active-zone.directive.d.ts +4 -3
  12. package/directives/animated/animated.directive.d.ts +0 -1
  13. package/directives/auto-focus/autofocus.directive.d.ts +2 -3
  14. package/directives/auto-focus/autofocus.options.d.ts +2 -2
  15. package/directives/click-outside/click-outside.directive.d.ts +2 -2
  16. package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
  17. package/directives/droppable/droppable.directive.d.ts +4 -2
  18. package/directives/hovered/hovered.directive.d.ts +1 -2
  19. package/directives/index.d.ts +1 -2
  20. package/directives/let/let.directive.d.ts +1 -2
  21. package/directives/media/media.directive.d.ts +8 -12
  22. package/directives/native-validator/native-validator.directive.d.ts +2 -2
  23. package/directives/obscured/obscured.directive.d.ts +4 -4
  24. package/directives/pan/pan.directive.d.ts +1 -2
  25. package/directives/platform/platform.directive.d.ts +2 -2
  26. package/directives/repeat-times/repeat-times.directive.d.ts +5 -4
  27. package/directives/resizer/resizer.directive.d.ts +3 -4
  28. package/directives/swipe/swipe.directive.d.ts +1 -2
  29. package/directives/value-changes/value-changes.directive.d.ts +2 -2
  30. package/directives/with-styles/index.d.ts +1 -0
  31. package/directives/with-styles/with-styles.directive.d.ts +10 -0
  32. package/fesm2022/taiga-ui-cdk-classes.mjs +8 -92
  33. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-cdk-constants.mjs +14 -27
  35. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-cdk-date-time.mjs +14 -2
  37. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +22 -27
  39. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +48 -47
  41. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +11 -14
  43. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +8 -9
  45. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
  47. package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +7 -10
  49. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +10 -12
  51. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -5
  53. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +11 -20
  55. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
  57. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
  59. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +11 -14
  61. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
  63. package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-cdk-directives-let.mjs +6 -8
  65. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-cdk-directives-media.mjs +32 -57
  67. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +7 -10
  69. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +21 -21
  71. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +11 -13
  73. package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
  75. package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +22 -23
  77. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
  79. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +11 -13
  81. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +4 -5
  83. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +3 -4
  85. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
  87. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +3 -4
  89. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
  91. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
  92. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +7 -8
  93. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-cdk-directives.mjs +1 -2
  95. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-cdk-observables.mjs +8 -4
  97. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +3 -4
  99. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
  101. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +3 -4
  103. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +3 -4
  105. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
  107. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +3 -4
  109. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +3 -4
  111. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +3 -4
  113. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +3 -4
  115. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-cdk-portals.mjs +127 -0
  117. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
  118. package/fesm2022/taiga-ui-cdk-services.mjs +13 -54
  119. package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-cdk-tokens.mjs +11 -10
  121. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +1 -23
  123. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-cdk-utils-color.mjs +3 -2
  125. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-cdk-utils-di.mjs +1 -2
  127. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +16 -23
  129. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +13 -14
  131. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +26 -15
  134. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-cdk.mjs +1 -0
  136. package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
  137. package/index.d.ts +1 -0
  138. package/package.json +27 -136
  139. package/pipes/obfuscate/obfuscate.options.d.ts +2 -2
  140. package/portals/directive.d.ts +11 -0
  141. package/portals/index.d.ts +4 -0
  142. package/portals/portal.d.ts +25 -0
  143. package/portals/portals.d.ts +12 -0
  144. package/portals/service.d.ts +15 -0
  145. package/schematics/collection.json +2 -1
  146. package/schematics/constants/file-globs.js +1 -1
  147. package/schematics/constants/file-globs.js.map +1 -1
  148. package/schematics/migrate-tui-let/index.js +5 -4
  149. package/schematics/migrate-tui-let/index.js.map +1 -1
  150. package/schematics/migrate-tui-let/schema.json +7 -0
  151. package/schematics/ng-add/constants/versions.d.ts +1 -1
  152. package/schematics/ng-add/index.js +1 -2
  153. package/schematics/ng-add/index.js.map +1 -1
  154. package/schematics/ng-add/setup-project.js +1 -1
  155. package/schematics/ng-add/setup-project.js.map +1 -1
  156. package/schematics/ng-add/steps/add-taiga-icons.js +2 -3
  157. package/schematics/ng-add/steps/add-taiga-icons.js.map +1 -1
  158. package/schematics/ng-add/steps/add-taiga-modules.js +1 -2
  159. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
  160. package/schematics/ng-add/steps/add-taiga-styles.js +1 -2
  161. package/schematics/ng-add/steps/add-taiga-styles.js.map +1 -1
  162. package/schematics/ng-add/steps/wrap-with-tui-root.js +1 -2
  163. package/schematics/ng-add/steps/wrap-with-tui-root.js.map +1 -1
  164. package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
  165. package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
  166. package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
  167. package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
  168. package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
  169. package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
  170. package/schematics/ng-update/steps/icons/replace-imports.js +1 -2
  171. package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -1
  172. package/schematics/ng-update/steps/rename-types.js +1 -2
  173. package/schematics/ng-update/steps/rename-types.js.map +1 -1
  174. package/schematics/ng-update/steps/replace-deep-import.js +1 -2
  175. package/schematics/ng-update/steps/replace-deep-import.js.map +1 -1
  176. package/schematics/ng-update/steps/replace-enums.js +1 -2
  177. package/schematics/ng-update/steps/replace-enums.js.map +1 -1
  178. package/schematics/ng-update/steps/replace-identifier.js +2 -3
  179. package/schematics/ng-update/steps/replace-identifier.js.map +1 -1
  180. package/schematics/ng-update/steps/replace-package-name.js +1 -2
  181. package/schematics/ng-update/steps/replace-package-name.js.map +1 -1
  182. package/schematics/ng-update/steps/replace-services.js +1 -2
  183. package/schematics/ng-update/steps/replace-services.js.map +1 -1
  184. package/schematics/ng-update/steps/show-warnings.js +1 -2
  185. package/schematics/ng-update/steps/show-warnings.js.map +1 -1
  186. package/schematics/ng-update/utils/get-file-system.js +1 -2
  187. package/schematics/ng-update/utils/get-file-system.js.map +1 -1
  188. package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
  189. package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +2 -3
  190. package/schematics/ng-update/utils/replace-functions.js.map +1 -0
  191. package/schematics/ng-update/utils/replace-text.js +1 -2
  192. package/schematics/ng-update/utils/replace-text.js.map +1 -1
  193. package/schematics/ng-update/utils/templates/remove-inputs.js +1 -2
  194. package/schematics/ng-update/utils/templates/remove-inputs.js.map +1 -1
  195. package/schematics/ng-update/utils/templates/replace-attr-values.js +1 -2
  196. package/schematics/ng-update/utils/templates/replace-attr-values.js.map +1 -1
  197. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +1 -2
  198. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js.map +1 -1
  199. package/schematics/ng-update/utils/templates/replace-attrs.js +1 -2
  200. package/schematics/ng-update/utils/templates/replace-attrs.js.map +1 -1
  201. package/schematics/ng-update/utils/templates/replace-tag.js +1 -2
  202. package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -1
  203. package/schematics/ng-update/utils/templates/replace-tags.js +1 -2
  204. package/schematics/ng-update/utils/templates/replace-tags.js.map +1 -1
  205. package/schematics/ng-update/utils/templates/template-comments.js +1 -2
  206. package/schematics/ng-update/utils/templates/template-comments.js.map +1 -1
  207. package/schematics/ng-update/v4/index.js +2 -3
  208. package/schematics/ng-update/v4/index.js.map +1 -1
  209. package/schematics/ng-update/v4/migrate-addon-doc/index.js +1 -2
  210. package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +1 -1
  211. package/schematics/ng-update/v4/migrate-css-vars/index.js +1 -2
  212. package/schematics/ng-update/v4/migrate-css-vars/index.js.map +1 -1
  213. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +0 -1
  214. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +2 -3
  215. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
  216. package/schematics/ng-update/v4/migrate-icons/index.js +1 -2
  217. package/schematics/ng-update/v4/migrate-icons/index.js.map +1 -1
  218. package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
  219. package/schematics/ng-update/v4/migrate-icons/rename-icons.js +1 -2
  220. package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +1 -1
  221. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +0 -1
  222. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +1 -2
  223. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +1 -1
  224. package/schematics/ng-update/v4/steps/constants/migration-warnings.js +1 -1
  225. package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -1
  226. package/schematics/ng-update/v4/steps/drop-universal-mock.js +1 -2
  227. package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +1 -1
  228. package/schematics/ng-update/v4/steps/migrate-alert-service.js +1 -2
  229. package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +1 -1
  230. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +1 -2
  231. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +1 -1
  232. package/schematics/ng-update/v4/steps/migrate-destroy-service.js +1 -2
  233. package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +1 -1
  234. package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -1
  235. package/schematics/ng-update/v4/steps/migrate-editor.js +2 -2
  236. package/schematics/ng-update/v4/steps/migrate-editor.js.map +1 -1
  237. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +1 -2
  238. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +1 -1
  239. package/schematics/ng-update/v4/steps/migrate-month-context.js +1 -2
  240. package/schematics/ng-update/v4/steps/migrate-month-context.js.map +1 -1
  241. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +1 -2
  242. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +1 -1
  243. package/schematics/ng-update/v4/steps/migrate-option-providers.js +1 -2
  244. package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +1 -1
  245. package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -1
  246. package/schematics/ng-update/v4/steps/migrate-proprietary.js +2 -3
  247. package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +1 -1
  248. package/schematics/ng-update/v4/steps/migrate-providers-from.js +1 -2
  249. package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +1 -1
  250. package/schematics/ng-update/v4/steps/migrate-root.js +1 -2
  251. package/schematics/ng-update/v4/steps/migrate-root.js.map +1 -1
  252. package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
  253. package/schematics/ng-update/v4/steps/migrate-templates.js +2 -3
  254. package/schematics/ng-update/v4/steps/migrate-templates.js.map +1 -1
  255. package/schematics/ng-update/v4/steps/remove-duplicates.js +1 -2
  256. package/schematics/ng-update/v4/steps/remove-duplicates.js.map +1 -1
  257. package/schematics/ng-update/v4/steps/restore-tui-mapper.js +2 -3
  258. package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
  259. package/schematics/ng-update/v4/steps/restore-tui-matcher.js +2 -3
  260. package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
  261. package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -1
  262. package/schematics/ng-update/v4/steps/styles/index.js +2 -2
  263. package/schematics/ng-update/v4/steps/styles/index.js.map +1 -1
  264. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +1 -2
  265. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +1 -1
  266. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +1 -2
  267. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +1 -1
  268. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +1 -2
  269. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +1 -1
  270. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +1 -2
  271. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +1 -1
  272. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +2 -3
  273. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
  274. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +1 -2
  275. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
  276. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +1 -2
  277. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +1 -1
  278. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +1 -2
  279. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +1 -1
  280. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +1 -2
  281. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +1 -1
  282. package/schematics/ng-update/v4/steps/templates/migrate-axes.js +1 -2
  283. package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +1 -1
  284. package/schematics/ng-update/v4/steps/templates/migrate-badge.js +1 -2
  285. package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +1 -1
  286. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -2
  287. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +1 -1
  288. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +1 -2
  289. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +1 -1
  290. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +1 -2
  291. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +1 -1
  292. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +1 -2
  293. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +1 -1
  294. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +1 -2
  295. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +1 -1
  296. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +1 -2
  297. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +1 -1
  298. package/schematics/ng-update/v4/steps/templates/migrate-label.js +1 -2
  299. package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +1 -1
  300. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +1 -2
  301. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +1 -1
  302. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +1 -2
  303. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +1 -1
  304. package/schematics/ng-update/v4/steps/templates/migrate-money.js +1 -2
  305. package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +1 -1
  306. package/schematics/ng-update/v4/steps/templates/migrate-notification.js +1 -2
  307. package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +1 -1
  308. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +1 -2
  309. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +1 -1
  310. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +1 -2
  311. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +1 -1
  312. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +1 -2
  313. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +1 -1
  314. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +1 -2
  315. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +1 -1
  316. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +1 -2
  317. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +1 -1
  318. package/schematics/ng-update/v4/steps/templates/toggles/common.js +4 -5
  319. package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +1 -1
  320. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +1 -2
  321. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +1 -1
  322. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +1 -2
  323. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +1 -1
  324. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +1 -2
  325. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +1 -1
  326. package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -1
  327. package/schematics/ng-update/v4/steps/update-packages.js +2 -2
  328. package/schematics/ng-update/v4/steps/update-packages.js.map +1 -1
  329. package/schematics/ng-update/v4/steps/utils/clean-object.js +1 -2
  330. package/schematics/ng-update/v4/steps/utils/clean-object.js.map +1 -1
  331. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +1 -2
  332. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +1 -1
  333. package/schematics/ng-update/v4/steps/utils/remove-attrs.js +1 -2
  334. package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +1 -1
  335. package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +1 -1
  336. package/schematics/ng-update/v4/steps/utils/replace-substrings.js +1 -2
  337. package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +1 -1
  338. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +1 -2
  339. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +1 -1
  340. package/schematics/ng-update/v5/index.js +13 -2
  341. package/schematics/ng-update/v5/index.js.map +1 -1
  342. package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
  343. package/schematics/ng-update/v5/steps/constants/functions.js +72 -0
  344. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
  345. package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
  346. package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
  347. package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
  348. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
  349. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +22 -0
  350. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
  351. package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
  352. package/schematics/ng-update/v5/steps/migrate-templates.js +42 -0
  353. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
  354. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +1 -2
  355. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -1
  356. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +1 -2
  357. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -1
  358. package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
  359. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
  360. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
  361. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js +1 -2
  362. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js.map +1 -1
  363. package/schematics/utils/add-import-to-closest-module.js +2 -3
  364. package/schematics/utils/add-import-to-closest-module.js.map +1 -1
  365. package/schematics/utils/add-unique-import.js +1 -2
  366. package/schematics/utils/add-unique-import.js.map +1 -1
  367. package/schematics/utils/angular-json-manipulations.js +2 -5
  368. package/schematics/utils/angular-json-manipulations.js.map +1 -1
  369. package/schematics/utils/create-angular-json.js +1 -2
  370. package/schematics/utils/create-angular-json.js.map +1 -1
  371. package/schematics/utils/get-component-from-identifier.js +1 -2
  372. package/schematics/utils/get-component-from-identifier.js.map +1 -1
  373. package/schematics/utils/get-execution-time.js +1 -2
  374. package/schematics/utils/get-execution-time.js.map +1 -1
  375. package/schematics/utils/get-named-import-references.js +1 -2
  376. package/schematics/utils/get-named-import-references.js.map +1 -1
  377. package/schematics/utils/get-project-target-options.js +1 -2
  378. package/schematics/utils/get-project-target-options.js.map +1 -1
  379. package/schematics/utils/get-projects.js +1 -2
  380. package/schematics/utils/get-projects.js.map +1 -1
  381. package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
  382. package/schematics/utils/get-standalone-bootstrap-function.js +2 -5
  383. package/schematics/utils/get-standalone-bootstrap-function.js.map +1 -1
  384. package/schematics/utils/import-manipulations.js +2 -3
  385. package/schematics/utils/import-manipulations.js.map +1 -1
  386. package/schematics/utils/insert-todo.js +2 -2
  387. package/schematics/utils/insert-todo.js.map +1 -1
  388. package/schematics/utils/is-ci.js +1 -2
  389. package/schematics/utils/is-ci.js.map +1 -1
  390. package/schematics/utils/make-angular-json-with-assets.js +1 -2
  391. package/schematics/utils/make-angular-json-with-assets.js.map +1 -1
  392. package/schematics/utils/progress.js +1 -2
  393. package/schematics/utils/progress.js.map +1 -1
  394. package/schematics/utils/push-to-array-property.js +1 -2
  395. package/schematics/utils/push-to-array-property.js.map +1 -1
  396. package/schematics/utils/remove-module.js +2 -3
  397. package/schematics/utils/remove-module.js.map +1 -1
  398. package/schematics/utils/run-migration.d.ts +14 -0
  399. package/schematics/utils/run-migration.js +26 -0
  400. package/schematics/utils/run-migration.js.map +1 -0
  401. package/schematics/utils/templates/elements.js +15 -24
  402. package/schematics/utils/templates/elements.js.map +1 -1
  403. package/schematics/utils/templates/get-component-templates.js +1 -2
  404. package/schematics/utils/templates/get-component-templates.js.map +1 -1
  405. package/schematics/utils/templates/inputs.js +2 -3
  406. package/schematics/utils/templates/inputs.js.map +1 -1
  407. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
  408. package/schematics/utils/templates/ng-component-input-manipulations.js +6 -9
  409. package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
  410. package/schematics/utils/templates/template-resource.js +3 -4
  411. package/schematics/utils/templates/template-resource.js.map +1 -1
  412. package/services/index.d.ts +0 -1
  413. package/tokens/environment.d.ts +5 -0
  414. package/utils/browser/index.d.ts +0 -2
  415. package/utils/di/create-options.d.ts +2 -2
  416. package/utils/dom/get-element-obscurers.d.ts +1 -1
  417. package/utils/focus/blur-native-focused.d.ts +1 -1
  418. package/utils/focus/get-native-focused.d.ts +1 -1
  419. package/utils/focus/is-native-focused-in.d.ts +1 -1
  420. package/utils/focus/is-native-focused.d.ts +1 -1
  421. package/utils/focus/is-native-keyboard-focusable.d.ts +1 -1
  422. package/utils/focus/is-native-mouse-focusable.d.ts +1 -1
  423. package/utils/miscellaneous/index.d.ts +2 -1
  424. package/utils/miscellaneous/is-string.js +1 -2
  425. package/utils/miscellaneous/is-string.js.map +1 -1
  426. package/utils/miscellaneous/object-shallow-equals.d.ts +1 -0
  427. package/utils/miscellaneous/provide-options.d.ts +2 -2
  428. package/utils/miscellaneous/set-signal.d.ts +2 -0
  429. package/classes/portals.d.ts +0 -33
  430. package/constants/allow-signal-writes.d.ts +0 -2
  431. package/directives/for/for.directive.d.ts +0 -12
  432. package/directives/for/index.d.ts +0 -1
  433. package/directives/popover/index.d.ts +0 -1
  434. package/directives/popover/popover.directive.d.ts +0 -14
  435. package/esm2022/classes/control.mjs +0 -96
  436. package/esm2022/classes/index.mjs +0 -5
  437. package/esm2022/classes/portals.mjs +0 -77
  438. package/esm2022/classes/taiga-ui-cdk-classes.mjs +0 -5
  439. package/esm2022/classes/validation-error.mjs +0 -7
  440. package/esm2022/classes/value-transformer.mjs +0 -25
  441. package/esm2022/constants/allow-signal-writes.mjs +0 -3
  442. package/esm2022/constants/empty.mjs +0 -25
  443. package/esm2022/constants/handlers.mjs +0 -11
  444. package/esm2022/constants/index.mjs +0 -10
  445. package/esm2022/constants/matchers.mjs +0 -26
  446. package/esm2022/constants/regexp.mjs +0 -4
  447. package/esm2022/constants/svg-node-filter.mjs +0 -8
  448. package/esm2022/constants/taiga-ui-cdk-constants.mjs +0 -5
  449. package/esm2022/constants/unicode-chars.mjs +0 -64
  450. package/esm2022/constants/used-icons.mjs +0 -76
  451. package/esm2022/constants/version.mjs +0 -2
  452. package/esm2022/date-time/date-clamp.mjs +0 -10
  453. package/esm2022/date-time/date-fillers.mjs +0 -15
  454. package/esm2022/date-time/date-time.mjs +0 -20
  455. package/esm2022/date-time/day-of-week.mjs +0 -10
  456. package/esm2022/date-time/day-range.mjs +0 -84
  457. package/esm2022/date-time/day.mjs +0 -294
  458. package/esm2022/date-time/days.const.mjs +0 -6
  459. package/esm2022/date-time/index.mjs +0 -13
  460. package/esm2022/date-time/month-number.mjs +0 -15
  461. package/esm2022/date-time/month-range.mjs +0 -27
  462. package/esm2022/date-time/month.mjs +0 -152
  463. package/esm2022/date-time/taiga-ui-cdk-date-time.mjs +0 -5
  464. package/esm2022/date-time/time.mjs +0 -161
  465. package/esm2022/date-time/types.mjs +0 -2
  466. package/esm2022/date-time/year.mjs +0 -111
  467. package/esm2022/directives/active-zone/active-zone.directive.mjs +0 -74
  468. package/esm2022/directives/active-zone/index.mjs +0 -2
  469. package/esm2022/directives/active-zone/taiga-ui-cdk-directives-active-zone.mjs +0 -5
  470. package/esm2022/directives/animated/animated-parent.directive.mjs +0 -39
  471. package/esm2022/directives/animated/animated.directive.mjs +0 -81
  472. package/esm2022/directives/animated/index.mjs +0 -3
  473. package/esm2022/directives/animated/taiga-ui-cdk-directives-animated.mjs +0 -5
  474. package/esm2022/directives/auto-focus/autofocus.directive.mjs +0 -46
  475. package/esm2022/directives/auto-focus/autofocus.options.mjs +0 -31
  476. package/esm2022/directives/auto-focus/handlers/abstract.handler.mjs +0 -17
  477. package/esm2022/directives/auto-focus/handlers/default.handler.mjs +0 -21
  478. package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +0 -125
  479. package/esm2022/directives/auto-focus/handlers/sync.handler.mjs +0 -7
  480. package/esm2022/directives/auto-focus/index.mjs +0 -7
  481. package/esm2022/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.mjs +0 -5
  482. package/esm2022/directives/click-outside/click-outside.directive.mjs +0 -33
  483. package/esm2022/directives/click-outside/index.mjs +0 -2
  484. package/esm2022/directives/click-outside/taiga-ui-cdk-directives-click-outside.mjs +0 -5
  485. package/esm2022/directives/control/control.directive.mjs +0 -23
  486. package/esm2022/directives/control/index.mjs +0 -2
  487. package/esm2022/directives/control/taiga-ui-cdk-directives-control.mjs +0 -5
  488. package/esm2022/directives/copy-processor/copy-processor.directive.mjs +0 -33
  489. package/esm2022/directives/copy-processor/index.mjs +0 -2
  490. package/esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs +0 -5
  491. package/esm2022/directives/droppable/droppable.directive.mjs +0 -31
  492. package/esm2022/directives/droppable/index.mjs +0 -2
  493. package/esm2022/directives/droppable/taiga-ui-cdk-directives-droppable.mjs +0 -5
  494. package/esm2022/directives/element/element.directive.mjs +0 -35
  495. package/esm2022/directives/element/index.mjs +0 -2
  496. package/esm2022/directives/element/taiga-ui-cdk-directives-element.mjs +0 -5
  497. package/esm2022/directives/focus-trap/focus-trap.directive.mjs +0 -67
  498. package/esm2022/directives/focus-trap/index.mjs +0 -2
  499. package/esm2022/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.mjs +0 -5
  500. package/esm2022/directives/font-size/font-size.directive.mjs +0 -27
  501. package/esm2022/directives/font-size/index.mjs +0 -2
  502. package/esm2022/directives/font-size/taiga-ui-cdk-directives-font-size.mjs +0 -5
  503. package/esm2022/directives/for/for.directive.mjs +0 -34
  504. package/esm2022/directives/for/index.mjs +0 -2
  505. package/esm2022/directives/for/taiga-ui-cdk-directives-for.mjs +0 -5
  506. package/esm2022/directives/high-dpi/high-dpi.directive.mjs +0 -23
  507. package/esm2022/directives/high-dpi/index.mjs +0 -2
  508. package/esm2022/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.mjs +0 -5
  509. package/esm2022/directives/hovered/hovered.directive.mjs +0 -22
  510. package/esm2022/directives/hovered/hovered.service.mjs +0 -35
  511. package/esm2022/directives/hovered/index.mjs +0 -3
  512. package/esm2022/directives/hovered/taiga-ui-cdk-directives-hovered.mjs +0 -5
  513. package/esm2022/directives/index.mjs +0 -30
  514. package/esm2022/directives/item/index.mjs +0 -2
  515. package/esm2022/directives/item/item.directive.mjs +0 -18
  516. package/esm2022/directives/item/taiga-ui-cdk-directives-item.mjs +0 -5
  517. package/esm2022/directives/let/index.mjs +0 -3
  518. package/esm2022/directives/let/let-context.mjs +0 -15
  519. package/esm2022/directives/let/let.directive.mjs +0 -34
  520. package/esm2022/directives/let/taiga-ui-cdk-directives-let.mjs +0 -5
  521. package/esm2022/directives/media/index.mjs +0 -2
  522. package/esm2022/directives/media/media.directive.mjs +0 -89
  523. package/esm2022/directives/media/taiga-ui-cdk-directives-media.mjs +0 -5
  524. package/esm2022/directives/native-validator/index.mjs +0 -2
  525. package/esm2022/directives/native-validator/native-validator.directive.mjs +0 -43
  526. package/esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs +0 -5
  527. package/esm2022/directives/obscured/index.mjs +0 -3
  528. package/esm2022/directives/obscured/obscured.directive.mjs +0 -36
  529. package/esm2022/directives/obscured/obscured.service.mjs +0 -24
  530. package/esm2022/directives/obscured/taiga-ui-cdk-directives-obscured.mjs +0 -5
  531. package/esm2022/directives/pan/index.mjs +0 -3
  532. package/esm2022/directives/pan/pan.directive.mjs +0 -22
  533. package/esm2022/directives/pan/pan.service.mjs +0 -28
  534. package/esm2022/directives/pan/taiga-ui-cdk-directives-pan.mjs +0 -5
  535. package/esm2022/directives/platform/index.mjs +0 -2
  536. package/esm2022/directives/platform/platform.directive.mjs +0 -35
  537. package/esm2022/directives/platform/taiga-ui-cdk-directives-platform.mjs +0 -5
  538. package/esm2022/directives/popover/index.mjs +0 -2
  539. package/esm2022/directives/popover/popover.directive.mjs +0 -26
  540. package/esm2022/directives/popover/taiga-ui-cdk-directives-popover.mjs +0 -5
  541. package/esm2022/directives/repeat-times/index.mjs +0 -2
  542. package/esm2022/directives/repeat-times/repeat-times.directive.mjs +0 -55
  543. package/esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs +0 -5
  544. package/esm2022/directives/resizer/index.mjs +0 -3
  545. package/esm2022/directives/resizer/resizable.directive.mjs +0 -16
  546. package/esm2022/directives/resizer/resizer.directive.mjs +0 -83
  547. package/esm2022/directives/resizer/taiga-ui-cdk-directives-resizer.mjs +0 -5
  548. package/esm2022/directives/swipe/index.mjs +0 -4
  549. package/esm2022/directives/swipe/swipe.directive.mjs +0 -22
  550. package/esm2022/directives/swipe/swipe.options.mjs +0 -8
  551. package/esm2022/directives/swipe/swipe.service.mjs +0 -50
  552. package/esm2022/directives/swipe/swipe.types.mjs +0 -2
  553. package/esm2022/directives/swipe/taiga-ui-cdk-directives-swipe.mjs +0 -5
  554. package/esm2022/directives/taiga-ui-cdk-directives.mjs +0 -5
  555. package/esm2022/directives/transitioned/index.mjs +0 -2
  556. package/esm2022/directives/transitioned/taiga-ui-cdk-directives-transitioned.mjs +0 -5
  557. package/esm2022/directives/transitioned/transitioned.directive.mjs +0 -27
  558. package/esm2022/directives/validator/index.mjs +0 -2
  559. package/esm2022/directives/validator/taiga-ui-cdk-directives-validator.mjs +0 -5
  560. package/esm2022/directives/validator/validator.directive.mjs +0 -30
  561. package/esm2022/directives/value-changes/index.mjs +0 -2
  562. package/esm2022/directives/value-changes/taiga-ui-cdk-directives-value-changes.mjs +0 -5
  563. package/esm2022/directives/value-changes/value-changes.directive.mjs +0 -28
  564. package/esm2022/directives/visual-viewport/index.mjs +0 -2
  565. package/esm2022/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.mjs +0 -5
  566. package/esm2022/directives/visual-viewport/visual-viewport.directive.mjs +0 -34
  567. package/esm2022/directives/zoom/index.mjs +0 -4
  568. package/esm2022/directives/zoom/taiga-ui-cdk-directives-zoom.mjs +0 -5
  569. package/esm2022/directives/zoom/zoom.directive.mjs +0 -24
  570. package/esm2022/directives/zoom/zoom.options.mjs +0 -10
  571. package/esm2022/directives/zoom/zoom.service.mjs +0 -46
  572. package/esm2022/directives/zoom/zoom.types.mjs +0 -2
  573. package/esm2022/index.mjs +0 -10
  574. package/esm2022/observables/close-watcher.mjs +0 -22
  575. package/esm2022/observables/control-value.mjs +0 -8
  576. package/esm2022/observables/drag-and-drop-from.mjs +0 -14
  577. package/esm2022/observables/events.mjs +0 -8
  578. package/esm2022/observables/if-map.mjs +0 -5
  579. package/esm2022/observables/index.mjs +0 -14
  580. package/esm2022/observables/must-be-present.mjs +0 -17
  581. package/esm2022/observables/query-list-observable.mjs +0 -9
  582. package/esm2022/observables/scroll-from.mjs +0 -10
  583. package/esm2022/observables/taiga-ui-cdk-observables.mjs +0 -5
  584. package/esm2022/observables/take-until-destroyed.mjs +0 -9
  585. package/esm2022/observables/typed-from-event.mjs +0 -9
  586. package/esm2022/observables/untracked-scheduler.mjs +0 -11
  587. package/esm2022/observables/watch.mjs +0 -6
  588. package/esm2022/observables/zone.mjs +0 -34
  589. package/esm2022/pipes/animation/animation.pipe.mjs +0 -27
  590. package/esm2022/pipes/animation/index.mjs +0 -2
  591. package/esm2022/pipes/animation/taiga-ui-cdk-pipes-animation.mjs +0 -5
  592. package/esm2022/pipes/filter/filter.pipe.mjs +0 -25
  593. package/esm2022/pipes/filter/index.mjs +0 -2
  594. package/esm2022/pipes/filter/taiga-ui-cdk-pipes-filter.mjs +0 -5
  595. package/esm2022/pipes/index.mjs +0 -10
  596. package/esm2022/pipes/is-present/index.mjs +0 -2
  597. package/esm2022/pipes/is-present/is-present.pipe.mjs +0 -19
  598. package/esm2022/pipes/is-present/taiga-ui-cdk-pipes-is-present.mjs +0 -5
  599. package/esm2022/pipes/keys/index.mjs +0 -2
  600. package/esm2022/pipes/keys/keys.pipe.mjs +0 -18
  601. package/esm2022/pipes/keys/taiga-ui-cdk-pipes-keys.mjs +0 -5
  602. package/esm2022/pipes/mapper/index.mjs +0 -2
  603. package/esm2022/pipes/mapper/mapper.pipe.mjs +0 -25
  604. package/esm2022/pipes/mapper/taiga-ui-cdk-pipes-mapper.mjs +0 -5
  605. package/esm2022/pipes/obfuscate/index.mjs +0 -3
  606. package/esm2022/pipes/obfuscate/obfuscate.options.mjs +0 -10
  607. package/esm2022/pipes/obfuscate/obfuscate.pipe.mjs +0 -44
  608. package/esm2022/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.mjs +0 -5
  609. package/esm2022/pipes/repeat-times/index.mjs +0 -19
  610. package/esm2022/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.mjs +0 -5
  611. package/esm2022/pipes/replace/index.mjs +0 -2
  612. package/esm2022/pipes/replace/replace.pipe.mjs +0 -20
  613. package/esm2022/pipes/replace/taiga-ui-cdk-pipes-replace.mjs +0 -5
  614. package/esm2022/pipes/taiga-ui-cdk-pipes.mjs +0 -5
  615. package/esm2022/pipes/to-array/index.mjs +0 -2
  616. package/esm2022/pipes/to-array/taiga-ui-cdk-pipes-to-array.mjs +0 -5
  617. package/esm2022/pipes/to-array/to-array.pipe.mjs +0 -18
  618. package/esm2022/services/id.service.mjs +0 -21
  619. package/esm2022/services/index.mjs +0 -5
  620. package/esm2022/services/popover.service.mjs +0 -45
  621. package/esm2022/services/scroll.service.mjs +0 -58
  622. package/esm2022/services/taiga-ui-cdk-services.mjs +0 -5
  623. package/esm2022/services/theme-color.service.mjs +0 -33
  624. package/esm2022/taiga-ui-cdk.mjs +0 -5
  625. package/esm2022/tokens/active-element.mjs +0 -56
  626. package/esm2022/tokens/base-href.mjs +0 -6
  627. package/esm2022/tokens/environment.mjs +0 -64
  628. package/esm2022/tokens/fallback-value.mjs +0 -11
  629. package/esm2022/tokens/index.mjs +0 -8
  630. package/esm2022/tokens/range.mjs +0 -9
  631. package/esm2022/tokens/removed-element.mjs +0 -20
  632. package/esm2022/tokens/taiga-ui-cdk-tokens.mjs +0 -5
  633. package/esm2022/tokens/window-size.mjs +0 -28
  634. package/esm2022/types/context.mjs +0 -2
  635. package/esm2022/types/handler.mjs +0 -2
  636. package/esm2022/types/index.mjs +0 -2
  637. package/esm2022/types/loose-union.mjs +0 -2
  638. package/esm2022/types/mapper.mjs +0 -2
  639. package/esm2022/types/matcher.mjs +0 -2
  640. package/esm2022/types/rounding.mjs +0 -2
  641. package/esm2022/types/safe-html.mjs +0 -2
  642. package/esm2022/types/taiga-ui-cdk-types.mjs +0 -5
  643. package/esm2022/types/values-of.mjs +0 -2
  644. package/esm2022/utils/browser/index.mjs +0 -6
  645. package/esm2022/utils/browser/is-apple.mjs +0 -14
  646. package/esm2022/utils/browser/is-edge.mjs +0 -4
  647. package/esm2022/utils/browser/is-firefox.mjs +0 -4
  648. package/esm2022/utils/browser/is-ios.mjs +0 -7
  649. package/esm2022/utils/browser/is-safari.mjs +0 -12
  650. package/esm2022/utils/browser/taiga-ui-cdk-utils-browser.mjs +0 -5
  651. package/esm2022/utils/color/get-gradient-data.mjs +0 -6
  652. package/esm2022/utils/color/hex-to-rgb.mjs +0 -12
  653. package/esm2022/utils/color/hex-to-rgba.mjs +0 -29
  654. package/esm2022/utils/color/hsv-to-rgb.mjs +0 -11
  655. package/esm2022/utils/color/index.mjs +0 -10
  656. package/esm2022/utils/color/parse-color.mjs +0 -27
  657. package/esm2022/utils/color/parse-gradient.mjs +0 -70
  658. package/esm2022/utils/color/rgb-to-hex.mjs +0 -4
  659. package/esm2022/utils/color/rgb-to-hsv.mjs +0 -8
  660. package/esm2022/utils/color/rgba-to-hex.mjs +0 -23
  661. package/esm2022/utils/color/taiga-ui-cdk-utils-color.mjs +0 -5
  662. package/esm2022/utils/di/create-options.mjs +0 -10
  663. package/esm2022/utils/di/index.mjs +0 -3
  664. package/esm2022/utils/di/taiga-ui-cdk-utils-di.mjs +0 -5
  665. package/esm2022/utils/dom/contains-or-after.mjs +0 -10
  666. package/esm2022/utils/dom/element-checks.mjs +0 -20
  667. package/esm2022/utils/dom/event-checks.mjs +0 -4
  668. package/esm2022/utils/dom/get-actual-target.mjs +0 -7
  669. package/esm2022/utils/dom/get-clipboard-data-text.mjs +0 -11
  670. package/esm2022/utils/dom/get-document-or-shadow-root.mjs +0 -6
  671. package/esm2022/utils/dom/get-element-obscurers.mjs +0 -44
  672. package/esm2022/utils/dom/get-element-offset.mjs +0 -20
  673. package/esm2022/utils/dom/get-element-point.mjs +0 -6
  674. package/esm2022/utils/dom/get-selected-text.mjs +0 -15
  675. package/esm2022/utils/dom/index.mjs +0 -20
  676. package/esm2022/utils/dom/inject-element.mjs +0 -5
  677. package/esm2022/utils/dom/is-current-target.mjs +0 -4
  678. package/esm2022/utils/dom/is-element-editable.mjs +0 -6
  679. package/esm2022/utils/dom/is-inside-iframe.mjs +0 -7
  680. package/esm2022/utils/dom/is-node-in.mjs +0 -14
  681. package/esm2022/utils/dom/point-to-client-rect.mjs +0 -17
  682. package/esm2022/utils/dom/retarget-boundary-crossing.mjs +0 -16
  683. package/esm2022/utils/dom/taiga-ui-cdk-utils-dom.mjs +0 -5
  684. package/esm2022/utils/dom/value-binding.mjs +0 -29
  685. package/esm2022/utils/dom/value.mjs +0 -78
  686. package/esm2022/utils/focus/blur-native-focused.mjs +0 -12
  687. package/esm2022/utils/focus/focused-in.mjs +0 -8
  688. package/esm2022/utils/focus/get-closest-focusable.mjs +0 -26
  689. package/esm2022/utils/focus/get-native-focused.mjs +0 -16
  690. package/esm2022/utils/focus/index.mjs +0 -10
  691. package/esm2022/utils/focus/is-native-focused-in.mjs +0 -12
  692. package/esm2022/utils/focus/is-native-focused.mjs +0 -15
  693. package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +0 -33
  694. package/esm2022/utils/focus/is-native-mouse-focusable.mjs +0 -7
  695. package/esm2022/utils/focus/move-focus.mjs +0 -19
  696. package/esm2022/utils/focus/taiga-ui-cdk-utils-focus.mjs +0 -5
  697. package/esm2022/utils/index.mjs +0 -8
  698. package/esm2022/utils/math/clamp.mjs +0 -16
  699. package/esm2022/utils/math/in-range.mjs +0 -9
  700. package/esm2022/utils/math/index.mjs +0 -11
  701. package/esm2022/utils/math/normalize-to-int-number.mjs +0 -22
  702. package/esm2022/utils/math/quantize.mjs +0 -15
  703. package/esm2022/utils/math/round-with.mjs +0 -14
  704. package/esm2022/utils/math/round.mjs +0 -42
  705. package/esm2022/utils/math/sum.mjs +0 -7
  706. package/esm2022/utils/math/taiga-ui-cdk-utils-math.mjs +0 -5
  707. package/esm2022/utils/math/to-int.mjs +0 -4
  708. package/esm2022/utils/math/to-integer.mjs +0 -4
  709. package/esm2022/utils/math/to-radians.mjs +0 -7
  710. package/esm2022/utils/miscellaneous/array-remove.mjs +0 -4
  711. package/esm2022/utils/miscellaneous/array-shallow-equals.mjs +0 -4
  712. package/esm2022/utils/miscellaneous/array-toggle.mjs +0 -8
  713. package/esm2022/utils/miscellaneous/change-date-separator.mjs +0 -3
  714. package/esm2022/utils/miscellaneous/count-filled-controls.mjs +0 -13
  715. package/esm2022/utils/miscellaneous/create-token.mjs +0 -16
  716. package/esm2022/utils/miscellaneous/default-sort.mjs +0 -11
  717. package/esm2022/utils/miscellaneous/directive-binding.mjs +0 -26
  718. package/esm2022/utils/miscellaneous/directive-listener.mjs +0 -8
  719. package/esm2022/utils/miscellaneous/distance-between-touches.mjs +0 -4
  720. package/esm2022/utils/miscellaneous/ease-in-out-quad.mjs +0 -7
  721. package/esm2022/utils/miscellaneous/flat-length.mjs +0 -9
  722. package/esm2022/utils/miscellaneous/font-size-watcher.mjs +0 -30
  723. package/esm2022/utils/miscellaneous/get-original-array-from-query-list.mjs +0 -15
  724. package/esm2022/utils/miscellaneous/index.mjs +0 -31
  725. package/esm2022/utils/miscellaneous/is-control-empty.mjs +0 -4
  726. package/esm2022/utils/miscellaneous/is-falsy.mjs +0 -4
  727. package/esm2022/utils/miscellaneous/is-number.mjs +0 -4
  728. package/esm2022/utils/miscellaneous/is-object.mjs +0 -4
  729. package/esm2022/utils/miscellaneous/is-present.mjs +0 -4
  730. package/esm2022/utils/miscellaneous/is-string.mjs +0 -4
  731. package/esm2022/utils/miscellaneous/is-valid-url.mjs +0 -13
  732. package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +0 -16
  733. package/esm2022/utils/miscellaneous/nullable-same.mjs +0 -18
  734. package/esm2022/utils/miscellaneous/obfuscate.mjs +0 -53
  735. package/esm2022/utils/miscellaneous/provide-options.mjs +0 -14
  736. package/esm2022/utils/miscellaneous/provide.mjs +0 -4
  737. package/esm2022/utils/miscellaneous/pure.mjs +0 -83
  738. package/esm2022/utils/miscellaneous/px.mjs +0 -9
  739. package/esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs +0 -5
  740. package/esm2022/utils/miscellaneous/uniq-by.mjs +0 -6
  741. package/esm2022/utils/miscellaneous/with-styles.mjs +0 -17
  742. package/esm2022/utils/taiga-ui-cdk-utils.mjs +0 -5
  743. package/fesm2022/taiga-ui-cdk-directives-for.mjs +0 -40
  744. package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +0 -1
  745. package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
  746. package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
  747. package/schematics/ng-update/v4/steps/replace-functions.js.map +0 -1
  748. package/services/popover.service.d.ts +0 -25
  749. package/utils/browser/is-apple.d.ts +0 -11
  750. package/utils/browser/is-ios.d.ts +0 -6
  751. package/utils/miscellaneous/directive-listener.d.ts +0 -9
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Directive, Input } from '@angular/core';
2
+ import { inject, input, Directive } from '@angular/core';
3
3
  import { WA_WINDOW } from '@ng-web-apis/common';
4
4
  import { tuiGetSelectedText } from '@taiga-ui/cdk/utils';
5
5
  import { identity } from 'rxjs';
@@ -7,29 +7,26 @@ import { identity } from 'rxjs';
7
7
  class TuiCopyProcessor {
8
8
  constructor() {
9
9
  this.win = inject(WA_WINDOW);
10
- this.tuiCopyProcessor = identity;
10
+ this.tuiCopyProcessor = input(identity);
11
11
  }
12
12
  onCopy(event) {
13
13
  const text = tuiGetSelectedText(this.win);
14
14
  if (text) {
15
- event.clipboardData?.setData('text/plain', this.tuiCopyProcessor(text));
15
+ event.clipboardData?.setData('text/plain', this.tuiCopyProcessor()(text));
16
16
  }
17
17
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCopyProcessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiCopyProcessor, isStandalone: true, selector: "[tuiCopyProcessor]", inputs: { tuiCopyProcessor: "tuiCopyProcessor" }, host: { listeners: { "copy.prevent": "onCopy($event)" } }, ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiCopyProcessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiCopyProcessor, isStandalone: true, selector: "[tuiCopyProcessor]", inputs: { tuiCopyProcessor: { classPropertyName: "tuiCopyProcessor", publicName: "tuiCopyProcessor", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "copy.prevent": "onCopy($event)" } }, ngImport: i0 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCopyProcessor, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiCopyProcessor, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
- standalone: true,
25
24
  selector: '[tuiCopyProcessor]',
26
25
  host: {
27
26
  '(copy.prevent)': 'onCopy($event)',
28
27
  },
29
28
  }]
30
- }], propDecorators: { tuiCopyProcessor: [{
31
- type: Input
32
- }] } });
29
+ }] });
33
30
 
34
31
  /**
35
32
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-copy-processor.mjs","sources":["../../../projects/cdk/directives/copy-processor/copy-processor.directive.ts","../../../projects/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, inject, Input} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiCopyProcessor]',\n host: {\n '(copy.prevent)': 'onCopy($event)',\n },\n})\nexport class TuiCopyProcessor {\n private readonly win = inject(WA_WINDOW);\n\n @Input()\n public tuiCopyProcessor: TuiStringHandler<string> = identity;\n\n protected onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.win);\n\n if (text) {\n event.clipboardData?.setData('text/plain', this.tuiCopyProcessor(text));\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA,MAOa,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;AAQqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAGlC,IAAgB,CAAA,gBAAA,GAA6B,QAAQ,CAAC;AAShE,KAAA;AAPa,IAAA,MAAM,CAAC,KAAqB,EAAA;QAClC,MAAM,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE1C,QAAA,IAAI,IAAI,EAAE;AACN,YAAA,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3E,SAAA;KACJ;+GAZQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,gBAAgB,EAAE,gBAAgB;AACrC,qBAAA;AACJ,iBAAA,CAAA;8BAKU,gBAAgB,EAAA,CAAA;sBADtB,KAAK;;;AChBV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-copy-processor.mjs","sources":["../../../projects/cdk/directives/copy-processor/copy-processor.directive.ts","../../../projects/cdk/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.ts"],"sourcesContent":["import {Directive, inject, input} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiGetSelectedText} from '@taiga-ui/cdk/utils';\nimport {identity} from 'rxjs';\n\n@Directive({\n selector: '[tuiCopyProcessor]',\n host: {\n '(copy.prevent)': 'onCopy($event)',\n },\n})\nexport class TuiCopyProcessor {\n private readonly win = inject(WA_WINDOW);\n\n public readonly tuiCopyProcessor = input<TuiStringHandler<string>>(identity);\n\n protected onCopy(event: ClipboardEvent): void {\n const text = tuiGetSelectedText(this.win);\n\n if (text) {\n event.clipboardData?.setData('text/plain', this.tuiCopyProcessor()(text));\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAYa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;AAOqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC;AAExB,QAAA,IAAA,CAAA,gBAAgB,GAAG,KAAK,CAA2B,QAAQ,CAAC;AAS/E;AAPa,IAAA,MAAM,CAAC,KAAqB,EAAA;QAClC,MAAM,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC;QAEzC,IAAI,IAAI,EAAE;AACN,YAAA,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC,IAAI,CAAC,CAAC;;;+GATxE,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,EAAA,iBAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,gBAAgB,EAAE,gBAAgB;AACrC,qBAAA;AACJ,iBAAA;;;ACXD;;AAEG;;;;"}
@@ -1,5 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Output } from '@angular/core';
2
+ import { Directive } from '@angular/core';
3
+ import { outputFromObservable } from '@angular/core/rxjs-interop';
3
4
  import { tuiTypedFromEvent, tuiPreventDefault } from '@taiga-ui/cdk/observables';
4
5
  import { tuiInjectElement } from '@taiga-ui/cdk/utils';
5
6
  import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
@@ -8,26 +9,23 @@ import { map, filter, switchMap, merge, startWith, distinctUntilChanged } from '
8
9
  class TuiDroppable {
9
10
  constructor() {
10
11
  this.el = tuiInjectElement();
11
- this.tuiDroppableDropped = tuiTypedFromEvent(this.el, 'drop').pipe(tuiPreventDefault(), map((event) => event.dataTransfer), filter(tuiIsPresent));
12
- this.tuiDroppableDragOverChange = tuiTypedFromEvent(this.el, 'dragenter').pipe(switchMap(({ target, dataTransfer }) => merge(tuiTypedFromEvent(this.el, 'dragleave').pipe(filter((event) => event.target === target)), tuiTypedFromEvent(this.el, 'drop')).pipe(map(() => null), startWith(dataTransfer))), distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)));
12
+ this.tuiDroppableDropped$ = tuiTypedFromEvent(this.el, 'drop').pipe(tuiPreventDefault(), map((event) => event.dataTransfer), filter(tuiIsPresent));
13
+ this.tuiDroppableDragOverChange$ = tuiTypedFromEvent(this.el, 'dragenter').pipe(switchMap(({ target, dataTransfer }) => merge(tuiTypedFromEvent(this.el, 'dragleave').pipe(filter((event) => event.target === target)), tuiTypedFromEvent(this.el, 'drop')).pipe(map(() => null), startWith(dataTransfer))), distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)));
14
+ this.tuiDroppableDropped = outputFromObservable(this.tuiDroppableDropped$);
15
+ this.tuiDroppableDragOverChange = outputFromObservable(this.tuiDroppableDragOverChange$);
13
16
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDroppable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
15
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDroppable, isStandalone: true, selector: "[tuiDroppableDropped], [tuiDroppableDragOverChange]", outputs: { tuiDroppableDropped: "tuiDroppableDropped", tuiDroppableDragOverChange: "tuiDroppableDragOverChange" }, host: { listeners: { "dragover.prevent.zoneless": "0" } }, ngImport: i0 }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDroppable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
18
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDroppable, isStandalone: true, selector: "[tuiDroppableDropped], [tuiDroppableDragOverChange]", outputs: { tuiDroppableDropped: "tuiDroppableDropped", tuiDroppableDragOverChange: "tuiDroppableDragOverChange" }, host: { listeners: { "dragover.prevent.zoneless": "0" } }, ngImport: i0 }); }
16
19
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDroppable, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDroppable, decorators: [{
18
21
  type: Directive,
19
22
  args: [{
20
- standalone: true,
21
23
  selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',
22
24
  host: {
23
25
  '(dragover.prevent.zoneless)': '0',
24
26
  },
25
27
  }]
26
- }], propDecorators: { tuiDroppableDropped: [{
27
- type: Output
28
- }], tuiDroppableDragOverChange: [{
29
- type: Output
30
- }] } });
28
+ }] });
31
29
 
32
30
  /**
33
31
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-droppable.mjs","sources":["../../../projects/cdk/directives/droppable/droppable.directive.ts","../../../projects/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive, Output} from '@angular/core';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {distinctUntilChanged, filter, map, merge, startWith, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n host: {\n '(dragover.prevent.zoneless)': '0',\n },\n})\nexport class TuiDroppable {\n private readonly el = tuiInjectElement();\n\n @Output()\n public readonly tuiDroppableDropped = tuiTypedFromEvent(this.el, 'drop').pipe(\n tuiPreventDefault(),\n map((event) => event.dataTransfer),\n filter(tuiIsPresent),\n );\n\n @Output()\n public readonly tuiDroppableDragOverChange = tuiTypedFromEvent(\n this.el,\n 'dragenter',\n ).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n tuiTypedFromEvent(this.el, 'dragleave').pipe(\n filter((event) => event.target === target),\n ),\n tuiTypedFromEvent(this.el, 'drop'),\n ).pipe(\n map(() => null),\n startWith(dataTransfer),\n ),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA,MAOa,YAAY,CAAA;AAPzB,IAAA,WAAA,GAAA;QAQqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;AAGzB,QAAA,IAAA,CAAA,mBAAmB,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,IAAI,CACzE,iBAAiB,EAAE,EACnB,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,YAAY,CAAC,EAClC,MAAM,CAAC,YAAY,CAAC,CACvB,CAAC;QAGc,IAA0B,CAAA,0BAAA,GAAG,iBAAiB,CAC1D,IAAI,CAAC,EAAE,EACP,WAAW,CACd,CAAC,IAAI,CACF,SAAS,CAAC,CAAC,EAAC,MAAM,EAAE,YAAY,EAAC,KAC7B,KAAK,CACD,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,IAAI,CACxC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,CAC7C,EACD,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CACrC,CAAC,IAAI,CACF,GAAG,CAAC,MAAM,IAAI,CAAC,EACf,SAAS,CAAC,YAAY,CAAC,CAC1B,CACJ,EACD,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC7D,CAAC;AACL,KAAA;+GA5BY,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,OAAA,EAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,0BAAA,EAAA,4BAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,2BAAA,EAAA,GAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qDAAqD;AAC/D,oBAAA,IAAI,EAAE;AACF,wBAAA,6BAA6B,EAAE,GAAG;AACrC,qBAAA;AACJ,iBAAA,CAAA;8BAKmB,mBAAmB,EAAA,CAAA;sBADlC,MAAM;gBAQS,0BAA0B,EAAA,CAAA;sBADzC,MAAM;;;ACvBX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-droppable.mjs","sources":["../../../projects/cdk/directives/droppable/droppable.directive.ts","../../../projects/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {outputFromObservable} from '@angular/core/rxjs-interop';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {distinctUntilChanged, filter, map, merge, startWith, switchMap} from 'rxjs';\n\n@Directive({\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n host: {\n '(dragover.prevent.zoneless)': '0',\n },\n})\nexport class TuiDroppable {\n private readonly el = tuiInjectElement();\n\n private readonly tuiDroppableDropped$ = tuiTypedFromEvent(this.el, 'drop').pipe(\n tuiPreventDefault(),\n map((event) => event.dataTransfer),\n filter(tuiIsPresent),\n );\n\n private readonly tuiDroppableDragOverChange$ = tuiTypedFromEvent(\n this.el,\n 'dragenter',\n ).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n tuiTypedFromEvent(this.el, 'dragleave').pipe(\n filter((event) => event.target === target),\n ),\n tuiTypedFromEvent(this.el, 'drop'),\n ).pipe(\n map(() => null),\n startWith(dataTransfer),\n ),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n\n public readonly tuiDroppableDropped = outputFromObservable(this.tuiDroppableDropped$);\n\n public readonly tuiDroppableDragOverChange = outputFromObservable(\n this.tuiDroppableDragOverChange$,\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAaa,YAAY,CAAA;AANzB,IAAA,WAAA,GAAA;QAOqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAEvB,QAAA,IAAA,CAAA,oBAAoB,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,IAAI,CAC3E,iBAAiB,EAAE,EACnB,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,YAAY,CAAC,EAClC,MAAM,CAAC,YAAY,CAAC,CACvB;QAEgB,IAA2B,CAAA,2BAAA,GAAG,iBAAiB,CAC5D,IAAI,CAAC,EAAE,EACP,WAAW,CACd,CAAC,IAAI,CACF,SAAS,CAAC,CAAC,EAAC,MAAM,EAAE,YAAY,EAAC,KAC7B,KAAK,CACD,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,IAAI,CACxC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,CAC7C,EACD,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CACrC,CAAC,IAAI,CACF,GAAG,CAAC,MAAM,IAAI,CAAC,EACf,SAAS,CAAC,YAAY,CAAC,CAC1B,CACJ,EACD,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC7D;AAEe,QAAA,IAAA,CAAA,mBAAmB,GAAG,oBAAoB,CAAC,IAAI,CAAC,oBAAoB,CAAC;AAErE,QAAA,IAAA,CAAA,0BAA0B,GAAG,oBAAoB,CAC7D,IAAI,CAAC,2BAA2B,CACnC;AACJ;+GAhCY,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,OAAA,EAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,0BAAA,EAAA,4BAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,2BAAA,EAAA,GAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qDAAqD;AAC/D,oBAAA,IAAI,EAAE;AACF,wBAAA,6BAA6B,EAAE,GAAG;AACrC,qBAAA;AACJ,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -21,17 +21,16 @@ class TuiElement {
21
21
  */
22
22
  return new ElementRef(this.nativeElement);
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiElement, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
25
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiElement, isStandalone: true, selector: "[tuiElement]", exportAs: ["elementRef"], ngImport: i0 }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiElement, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
25
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiElement, isStandalone: true, selector: "[tuiElement]", exportAs: ["elementRef"], ngImport: i0 }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiElement, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiElement, decorators: [{
28
28
  type: Directive,
29
29
  args: [{
30
- standalone: true,
31
30
  selector: '[tuiElement]',
32
31
  exportAs: 'elementRef',
33
32
  }]
34
- }], ctorParameters: function () { return []; } });
33
+ }], ctorParameters: () => [] });
35
34
 
36
35
  /**
37
36
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-element.mjs","sources":["../../../projects/cdk/directives/element/element.directive.ts","../../../projects/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiElement]',\n exportAs: 'elementRef',\n})\nexport class TuiElement<T extends Element = HTMLElement> implements ElementRef<T> {\n public nativeElement = tuiInjectElement<T>();\n\n constructor() {\n /**\n * @note:\n * Typically, when your constructor is invoked with new,\n * an object is created, its constructor is assigned to\n * the invoked constructor and the object is then assigned\n * to this before executing any operations specified\n * in your constructor method.\n *\n * ERROR TypeError: Class constructor ElementRef cannot be invoked without 'new'\n * https://github.com/taiga-family/taiga-ui/issues/3072\n *\n * This way we can instantiate object creation\n * without additional prototype chain for possible fix bug.\n */\n return new ElementRef<T>(this.nativeElement);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAKa,UAAU,CAAA;AAGnB,IAAA,WAAA,GAAA;QAFO,IAAa,CAAA,aAAA,GAAG,gBAAgB,EAAK,CAAC;AAGzC;;;;;;;;;;;;;AAaG;AACH,QAAA,OAAO,IAAI,UAAU,CAAI,IAAI,CAAC,aAAa,CAAC,CAAC;KAChD;+GAnBQ,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBALtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,YAAY;AACzB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-element.mjs","sources":["../../../projects/cdk/directives/element/element.directive.ts","../../../projects/cdk/directives/element/taiga-ui-cdk-directives-element.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n selector: '[tuiElement]',\n exportAs: 'elementRef',\n})\nexport class TuiElement<T extends Element = HTMLElement> implements ElementRef<T> {\n public nativeElement = tuiInjectElement<T>();\n\n constructor() {\n /**\n * @note:\n * Typically, when your constructor is invoked with new,\n * an object is created, its constructor is assigned to\n * the invoked constructor and the object is then assigned\n * to this before executing any operations specified\n * in your constructor method.\n *\n * ERROR TypeError: Class constructor ElementRef cannot be invoked without 'new'\n * https://github.com/taiga-family/taiga-ui/issues/3072\n *\n * This way we can instantiate object creation\n * without additional prototype chain for possible fix bug.\n */\n return new ElementRef<T>(this.nativeElement);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,UAAU,CAAA;AAGnB,IAAA,WAAA,GAAA;QAFO,IAAa,CAAA,aAAA,GAAG,gBAAgB,EAAK;AAGxC;;;;;;;;;;;;;AAaG;AACH,QAAA,OAAO,IAAI,UAAU,CAAI,IAAI,CAAC,aAAa,CAAC;;+GAlBvC,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,QAAQ,EAAE,YAAY;AACzB,iBAAA;;;ACND;;AAEG;;;;"}
@@ -2,7 +2,7 @@ import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { inject, Directive } from '@angular/core';
4
4
  import { tuiInjectElement, tuiIsHTMLElement, tuiContainsOrAfter } from '@taiga-ui/cdk/utils/dom';
5
- import { tuiGetNativeFocused, tuiBlurNativeFocused, tuiGetClosestFocusable } from '@taiga-ui/cdk/utils/focus';
5
+ import { tuiGetFocused, tuiGetClosestFocusable } from '@taiga-ui/cdk/utils/focus';
6
6
 
7
7
  class TuiFocusTrap {
8
8
  constructor() {
@@ -20,26 +20,18 @@ class TuiFocusTrap {
20
20
  * The same event can synchronously close already opened focus trap and open another one.
21
21
  * All focus traps have microtask inside its `ngOnDestroy` –
22
22
  * they should be resolved before enabling of new focus trap.
23
- * Don't enable any new event listeners before `initialized` equals to `true`!
23
+ * Don't enable any new event listeners before `initialized` is equal to `true`!
24
24
  */
25
25
  this.initialized = true;
26
- this.activeElement = tuiGetNativeFocused(this.doc);
26
+ this.activeElement = tuiGetFocused(this.doc);
27
27
  this.el.focus();
28
28
  });
29
29
  }
30
30
  ngOnDestroy() {
31
- tuiBlurNativeFocused(this.doc);
32
- /**
33
- * HostListeners are triggered even after ngOnDestroy
34
- * {@link https://github.com/angular/angular/issues/38100}
35
- * so we need to delay it but stay in the same sync cycle,
36
- * therefore using Promise instead of setTimeout
37
- */
38
- Promise.resolve().then(() => {
39
- if (tuiIsHTMLElement(this.activeElement)) {
40
- this.activeElement.focus();
41
- }
42
- });
31
+ this.initialized = false;
32
+ if (tuiIsHTMLElement(this.activeElement)) {
33
+ this.activeElement.focus();
34
+ }
43
35
  }
44
36
  onFocusIn(node) {
45
37
  const { firstElementChild } = this.el;
@@ -50,20 +42,19 @@ class TuiFocusTrap {
50
42
  })?.focus();
51
43
  }
52
44
  }
53
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFocusTrap, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
54
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiFocusTrap, isStandalone: true, selector: "[tuiFocusTrap]", host: { attributes: { "tabIndex": "0" }, listeners: { "window:focusin.zoneless": "initialized && onFocusIn($event.target)" } }, ngImport: i0 }); }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFocusTrap, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
46
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiFocusTrap, isStandalone: true, selector: "[tuiFocusTrap]", host: { attributes: { "tabIndex": "0" }, listeners: { "window:focusin.zoneless": "initialized && onFocusIn($event.target)" } }, ngImport: i0 }); }
55
47
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFocusTrap, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFocusTrap, decorators: [{
57
49
  type: Directive,
58
50
  args: [{
59
- standalone: true,
60
51
  selector: '[tuiFocusTrap]',
61
52
  host: {
62
53
  tabIndex: '0',
63
54
  '(window:focusin.zoneless)': 'initialized && onFocusIn($event.target)',
64
55
  },
65
56
  }]
66
- }], ctorParameters: function () { return []; } });
57
+ }], ctorParameters: () => [] });
67
58
 
68
59
  /**
69
60
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-focus-trap.mjs","sources":["../../../projects/cdk/directives/focus-trap/focus-trap.directive.ts","../../../projects/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, type OnDestroy} from '@angular/core';\nimport {\n tuiContainsOrAfter,\n tuiInjectElement,\n tuiIsHTMLElement,\n} from '@taiga-ui/cdk/utils/dom';\nimport {\n tuiBlurNativeFocused,\n tuiGetClosestFocusable,\n tuiGetNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n@Directive({\n standalone: true,\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n '(window:focusin.zoneless)': 'initialized && onFocusIn($event.target)',\n },\n})\nexport class TuiFocusTrap implements OnDestroy {\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n private activeElement: Element | null = null;\n protected initialized = false;\n\n constructor() {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n Promise.resolve().then(() => {\n /**\n * The same event can synchronously close already opened focus trap and open another one.\n * All focus traps have microtask inside its `ngOnDestroy` –\n * they should be resolved before enabling of new focus trap.\n * Don't enable any new event listeners before `initialized` equals to `true`!\n */\n this.initialized = true;\n this.activeElement = tuiGetNativeFocused(this.doc);\n this.el.focus();\n });\n }\n\n public ngOnDestroy(): void {\n tuiBlurNativeFocused(this.doc);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n Promise.resolve().then(() => {\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n });\n }\n\n protected onFocusIn(node: Node): void {\n const {firstElementChild} = this.el;\n\n if (!tuiContainsOrAfter(this.el, node) && firstElementChild) {\n tuiGetClosestFocusable({\n initial: firstElementChild,\n root: this.el,\n })?.focus();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAaA,MAQa,YAAY,CAAA;AAMrB,IAAA,WAAA,GAAA;AALiB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QACvB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;QACjC,IAAa,CAAA,aAAA,GAAmB,IAAI,CAAC;QACnC,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AAG1B;;;;AAIG;AACH,QAAA,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAK;AACxB;;;;;AAKG;AACH,YAAA,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,aAAa,GAAG,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnD,YAAA,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;AACpB,SAAC,CAAC,CAAC;KACN;IAEM,WAAW,GAAA;AACd,QAAA,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/B;;;;;AAKG;AACH,QAAA,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAK;AACxB,YAAA,IAAI,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;AACtC,gBAAA,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;AAC9B,aAAA;AACL,SAAC,CAAC,CAAC;KACN;AAES,IAAA,SAAS,CAAC,IAAU,EAAA;AAC1B,QAAA,MAAM,EAAC,iBAAiB,EAAC,GAAG,IAAI,CAAC,EAAE,CAAC;QAEpC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,iBAAiB,EAAE;AACzD,YAAA,sBAAsB,CAAC;AACnB,gBAAA,OAAO,EAAE,iBAAiB;gBAC1B,IAAI,EAAE,IAAI,CAAC,EAAE;aAChB,CAAC,EAAE,KAAK,EAAE,CAAC;AACf,SAAA;KACJ;+GAlDQ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,GAAA,EAAA,EAAA,SAAA,EAAA,EAAA,yBAAA,EAAA,yCAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBARxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE;AACF,wBAAA,QAAQ,EAAE,GAAG;AACb,wBAAA,2BAA2B,EAAE,yCAAyC;AACzE,qBAAA;AACJ,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-focus-trap.mjs","sources":["../../../projects/cdk/directives/focus-trap/focus-trap.directive.ts","../../../projects/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, type OnDestroy} from '@angular/core';\nimport {\n tuiContainsOrAfter,\n tuiInjectElement,\n tuiIsHTMLElement,\n} from '@taiga-ui/cdk/utils/dom';\nimport {tuiGetClosestFocusable, tuiGetFocused} from '@taiga-ui/cdk/utils/focus';\n\n@Directive({\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n '(window:focusin.zoneless)': 'initialized && onFocusIn($event.target)',\n },\n})\nexport class TuiFocusTrap implements OnDestroy {\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n private activeElement: Element | null = null;\n protected initialized = false;\n\n constructor() {\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n Promise.resolve().then(() => {\n /**\n * The same event can synchronously close already opened focus trap and open another one.\n * All focus traps have microtask inside its `ngOnDestroy` –\n * they should be resolved before enabling of new focus trap.\n * Don't enable any new event listeners before `initialized` is equal to `true`!\n */\n this.initialized = true;\n this.activeElement = tuiGetFocused(this.doc);\n this.el.focus();\n });\n }\n\n public ngOnDestroy(): void {\n this.initialized = false;\n\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n }\n\n protected onFocusIn(node: Node): void {\n const {firstElementChild} = this.el;\n\n if (!tuiContainsOrAfter(this.el, node) && firstElementChild) {\n tuiGetClosestFocusable({\n initial: firstElementChild,\n root: this.el,\n })?.focus();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAgBa,YAAY,CAAA;AAMrB,IAAA,WAAA,GAAA;AALiB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;QAChC,IAAa,CAAA,aAAA,GAAmB,IAAI;QAClC,IAAW,CAAA,WAAA,GAAG,KAAK;AAGzB;;;;AAIG;AACH,QAAA,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAK;AACxB;;;;;AAKG;AACH,YAAA,IAAI,CAAC,WAAW,GAAG,IAAI;YACvB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;AAC5C,YAAA,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;AACnB,SAAC,CAAC;;IAGC,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK;AAExB,QAAA,IAAI,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;AACtC,YAAA,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE;;;AAIxB,IAAA,SAAS,CAAC,IAAU,EAAA;AAC1B,QAAA,MAAM,EAAC,iBAAiB,EAAC,GAAG,IAAI,CAAC,EAAE;AAEnC,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,iBAAiB,EAAE;AACzD,YAAA,sBAAsB,CAAC;AACnB,gBAAA,OAAO,EAAE,iBAAiB;gBAC1B,IAAI,EAAE,IAAI,CAAC,EAAE;aAChB,CAAC,EAAE,KAAK,EAAE;;;+GAxCV,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,GAAA,EAAA,EAAA,SAAA,EAAA,EAAA,yBAAA,EAAA,yCAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE;AACF,wBAAA,QAAQ,EAAE,GAAG;AACb,wBAAA,2BAA2B,EAAE,yCAAyC;AACzE,qBAAA;AACJ,iBAAA;;;ACfD;;AAEG;;;;"}
@@ -15,14 +15,11 @@ class TuiFontSize {
15
15
  ? tuiFontSizeWatcher(this.handler, inject(WA_WINDOW))
16
16
  : EMPTY_FUNCTION);
17
17
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFontSize, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiFontSize, isStandalone: true, ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFontSize, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiFontSize, isStandalone: true, ngImport: i0 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFontSize, decorators: [{
22
- type: Directive,
23
- args: [{
24
- standalone: true,
25
- }]
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFontSize, decorators: [{
22
+ type: Directive
26
23
  }] });
27
24
 
28
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-font-size.mjs","sources":["../../../projects/cdk/directives/font-size/font-size.directive.ts","../../../projects/cdk/directives/font-size/taiga-ui-cdk-directives-font-size.ts"],"sourcesContent":["import {isPlatformBrowser} from '@angular/common';\nimport {DestroyRef, Directive, inject, InjectionToken, PLATFORM_ID} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiFontSizeWatcher} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_FONT_SIZE_HANDLER = new InjectionToken<(size: number) => void>(\n ngDevMode ? 'TUI_FONT_SIZE_HANDLER' : '',\n);\n\n@Directive({\n standalone: true,\n})\nexport class TuiFontSize {\n private readonly handler = inject(TUI_FONT_SIZE_HANDLER, {optional: true});\n protected readonly nothing = inject(DestroyRef).onDestroy(\n this.handler &&\n isPlatformBrowser(inject(PLATFORM_ID)) &&\n typeof ResizeObserver !== 'undefined'\n ? tuiFontSizeWatcher(this.handler, inject(WA_WINDOW))\n : EMPTY_FUNCTION,\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMa,MAAA,qBAAqB,GAAG,IAAI,cAAc,CACnD,SAAS,GAAG,uBAAuB,GAAG,EAAE,EAC1C;AAEF,MAGa,WAAW,CAAA;AAHxB,IAAA,WAAA,GAAA;QAIqB,IAAO,CAAA,OAAA,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;QACxD,IAAO,CAAA,OAAA,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CACrD,IAAI,CAAC,OAAO;AACR,YAAA,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACtC,OAAO,cAAc,KAAK,WAAW;cACnC,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;cACnD,cAAc,CACvB,CAAC;AACL,KAAA;+GATY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAHvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-font-size.mjs","sources":["../../../projects/cdk/directives/font-size/font-size.directive.ts","../../../projects/cdk/directives/font-size/taiga-ui-cdk-directives-font-size.ts"],"sourcesContent":["import {isPlatformBrowser} from '@angular/common';\nimport {DestroyRef, Directive, inject, InjectionToken, PLATFORM_ID} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiFontSizeWatcher} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_FONT_SIZE_HANDLER = new InjectionToken<(size: number) => void>(\n ngDevMode ? 'TUI_FONT_SIZE_HANDLER' : '',\n);\n\n@Directive()\nexport class TuiFontSize {\n private readonly handler = inject(TUI_FONT_SIZE_HANDLER, {optional: true});\n protected readonly nothing = inject(DestroyRef).onDestroy(\n this.handler &&\n isPlatformBrowser(inject(PLATFORM_ID)) &&\n typeof ResizeObserver !== 'undefined'\n ? tuiFontSizeWatcher(this.handler, inject(WA_WINDOW))\n : EMPTY_FUNCTION,\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMa,MAAA,qBAAqB,GAAG,IAAI,cAAc,CACnD,SAAS,GAAG,uBAAuB,GAAG,EAAE;MAI/B,WAAW,CAAA;AADxB,IAAA,WAAA,GAAA;QAEqB,IAAO,CAAA,OAAA,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QACvD,IAAO,CAAA,OAAA,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CACrD,IAAI,CAAC,OAAO;AACR,YAAA,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACtC,OAAO,cAAc,KAAK;cACxB,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC;cAClD,cAAc,CACvB;AACJ;+GATY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB;;;ACVD;;AAEG;;;;"}
@@ -10,13 +10,12 @@ class TuiHighDpi {
10
10
  this.ref = inject(WA_WINDOW).devicePixelRatio > 1 &&
11
11
  inject(ViewContainerRef).createEmbeddedView(inject(TemplateRef));
12
12
  }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHighDpi, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
14
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHighDpi, isStandalone: true, selector: "[tuiHighDpi]", ngImport: i0 }); }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHighDpi, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
14
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiHighDpi, isStandalone: true, selector: "[tuiHighDpi]", ngImport: i0 }); }
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHighDpi, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHighDpi, decorators: [{
17
17
  type: Directive,
18
18
  args: [{
19
- standalone: true,
20
19
  selector: '[tuiHighDpi]',
21
20
  }]
22
21
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-high-dpi.mjs","sources":["../../../projects/cdk/directives/high-dpi/high-dpi.directive.ts","../../../projects/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n */\n@Directive({\n standalone: true,\n selector: '[tuiHighDpi]',\n})\nexport class TuiHighDpi {\n protected readonly ref =\n inject(WA_WINDOW).devicePixelRatio > 1 &&\n inject(ViewContainerRef).createEmbeddedView(inject(TemplateRef));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;AAEG;AACH,MAIa,UAAU,CAAA;AAJvB,IAAA,WAAA,GAAA;QAKuB,IAAG,CAAA,GAAA,GAClB,MAAM,CAAC,SAAS,CAAC,CAAC,gBAAgB,GAAG,CAAC;YACtC,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;AACxE,KAAA;+GAJY,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AAC3B,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-high-dpi.mjs","sources":["../../../projects/cdk/directives/high-dpi/high-dpi.directive.ts","../../../projects/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n */\n@Directive({\n selector: '[tuiHighDpi]',\n})\nexport class TuiHighDpi {\n protected readonly ref =\n inject(WA_WINDOW).devicePixelRatio > 1 &&\n inject(ViewContainerRef).createEmbeddedView(inject(TemplateRef));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;AAEG;MAIU,UAAU,CAAA;AAHvB,IAAA,WAAA,GAAA;QAIuB,IAAG,CAAA,GAAA,GAClB,MAAM,CAAC,SAAS,CAAC,CAAC,gBAAgB,GAAG,CAAC;YACtC,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACvE;+GAJY,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAHtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,cAAc;AAC3B,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, NgZone, Injectable, Directive, Output } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
2
+ import { inject, NgZone, Injectable, Directive } from '@angular/core';
3
+ import { toSignal, outputFromObservable } from '@angular/core/rxjs-interop';
4
4
  import { TUI_TRUE_HANDLER, TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
5
5
  import { tuiTypedFromEvent, tuiZoneOptimized, tuiWatch } from '@taiga-ui/cdk/observables';
6
6
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
@@ -21,12 +21,12 @@ class TuiHoveredService extends Observable {
21
21
  // Hello, Safari
22
22
  tuiTypedFromEvent(this.el, 'mouseout').pipe(filter(movedOut), map(TUI_FALSE_HANDLER))).pipe(distinctUntilChanged(), tuiZoneOptimized(this.zone));
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHoveredService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
25
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHoveredService }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHoveredService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
25
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHoveredService }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHoveredService, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHoveredService, decorators: [{
28
28
  type: Injectable
29
- }], ctorParameters: function () { return []; } });
29
+ }], ctorParameters: () => [] });
30
30
  function tuiHovered() {
31
31
  return toSignal(inject(TUI_IS_MOBILE) ? of(false) : inject(TuiHoveredService).pipe(tuiWatch()), {
32
32
  initialValue: false,
@@ -35,21 +35,18 @@ function tuiHovered() {
35
35
 
36
36
  class TuiHovered {
37
37
  constructor() {
38
- this.tuiHoveredChange = inject(TuiHoveredService);
38
+ this.tuiHoveredChange = outputFromObservable(inject(TuiHoveredService));
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHovered, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHovered, isStandalone: true, selector: "[tuiHoveredChange]", outputs: { tuiHoveredChange: "tuiHoveredChange" }, providers: [TuiHoveredService], ngImport: i0 }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHovered, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiHovered, isStandalone: true, selector: "[tuiHoveredChange]", outputs: { tuiHoveredChange: "tuiHoveredChange" }, providers: [TuiHoveredService], ngImport: i0 }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHovered, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHovered, decorators: [{
44
44
  type: Directive,
45
45
  args: [{
46
- standalone: true,
47
46
  selector: '[tuiHoveredChange]',
48
47
  providers: [TuiHoveredService],
49
48
  }]
50
- }], propDecorators: { tuiHoveredChange: [{
51
- type: Output
52
- }] } });
49
+ }] });
53
50
 
54
51
  /**
55
52
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-hovered.mjs","sources":["../../../projects/cdk/directives/hovered/hovered.service.ts","../../../projects/cdk/directives/hovered/hovered.directive.ts","../../../projects/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {inject, Injectable, NgZone, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_FALSE_HANDLER, TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiTypedFromEvent, tuiWatch, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement, tuiIsElement} from '@taiga-ui/cdk/utils';\nimport {distinctUntilChanged, filter, map, merge, Observable, of} from 'rxjs';\n\nfunction movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n return (\n !tuiIsElement(relatedTarget) ||\n !tuiIsElement(currentTarget) ||\n !currentTarget.contains(relatedTarget)\n );\n}\n\n@Injectable()\nexport class TuiHoveredService extends Observable<boolean> {\n private readonly el = tuiInjectElement();\n private readonly zone = inject(NgZone);\n\n private readonly stream$ = merge(\n tuiTypedFromEvent(this.el, 'mouseenter').pipe(map(TUI_TRUE_HANDLER)),\n tuiTypedFromEvent(this.el, 'mouseleave').pipe(map(TUI_FALSE_HANDLER)),\n // Hello, Safari\n tuiTypedFromEvent(this.el, 'mouseout').pipe(\n filter(movedOut),\n map(TUI_FALSE_HANDLER),\n ),\n ).pipe(distinctUntilChanged(), tuiZoneOptimized(this.zone));\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n}\n\nexport function tuiHovered(): Signal<boolean> {\n return toSignal(\n inject(TUI_IS_MOBILE) ? of(false) : inject(TuiHoveredService).pipe(tuiWatch()),\n {\n initialValue: false,\n },\n );\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiHoveredService} from './hovered.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiHoveredChange]',\n providers: [TuiHoveredService],\n})\nexport class TuiHovered {\n @Output()\n public readonly tuiHoveredChange = inject(TuiHoveredService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAQA,SAAS,QAAQ,CAAC,EAAC,aAAa,EAAE,aAAa,EAAa,EAAA;AACxD,IAAA,QACI,CAAC,YAAY,CAAC,aAAa,CAAC;QAC5B,CAAC,YAAY,CAAC,aAAa,CAAC;AAC5B,QAAA,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,EACxC;AACN,CAAC;AAED,MACa,iBAAkB,SAAQ,UAAmB,CAAA;AActD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;QAd7C,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;AACxB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAEtB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAC5B,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,EACpE,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;;AAErE,QAAA,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC,IAAI,CACvC,MAAM,CAAC,QAAQ,CAAC,EAChB,GAAG,CAAC,iBAAiB,CAAC,CACzB,CACJ,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAI3D;+GAhBQ,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;mHAAjB,iBAAiB,EAAA,CAAA,CAAA,EAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,UAAU;;SAoBK,UAAU,GAAA;IACtB,OAAO,QAAQ,CACX,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAC9E;AACI,QAAA,YAAY,EAAE,KAAK;AACtB,KAAA,CACJ,CAAC;AACN;;ACvCA,MAKa,UAAU,CAAA;AALvB,IAAA,WAAA,GAAA;AAOoB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAChE,KAAA;+GAHY,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,SAAA,EAFR,CAAC,iBAAiB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAErB,UAAU,EAAA,UAAA,EAAA,CAAA;kBALtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;oBAC9B,SAAS,EAAE,CAAC,iBAAiB,CAAC;AACjC,iBAAA,CAAA;8BAGmB,gBAAgB,EAAA,CAAA;sBAD/B,MAAM;;;ACVX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-hovered.mjs","sources":["../../../projects/cdk/directives/hovered/hovered.service.ts","../../../projects/cdk/directives/hovered/hovered.directive.ts","../../../projects/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {inject, Injectable, NgZone, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_FALSE_HANDLER, TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiTypedFromEvent, tuiWatch, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement, tuiIsElement} from '@taiga-ui/cdk/utils';\nimport {distinctUntilChanged, filter, map, merge, Observable, of} from 'rxjs';\n\nfunction movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n return (\n !tuiIsElement(relatedTarget) ||\n !tuiIsElement(currentTarget) ||\n !currentTarget.contains(relatedTarget)\n );\n}\n\n@Injectable()\nexport class TuiHoveredService extends Observable<boolean> {\n private readonly el = tuiInjectElement();\n private readonly zone = inject(NgZone);\n\n private readonly stream$ = merge(\n tuiTypedFromEvent(this.el, 'mouseenter').pipe(map(TUI_TRUE_HANDLER)),\n tuiTypedFromEvent(this.el, 'mouseleave').pipe(map(TUI_FALSE_HANDLER)),\n // Hello, Safari\n tuiTypedFromEvent(this.el, 'mouseout').pipe(\n filter(movedOut),\n map(TUI_FALSE_HANDLER),\n ),\n ).pipe(distinctUntilChanged(), tuiZoneOptimized(this.zone));\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n}\n\nexport function tuiHovered(): Signal<boolean> {\n return toSignal(\n inject(TUI_IS_MOBILE) ? of(false) : inject(TuiHoveredService).pipe(tuiWatch()),\n {\n initialValue: false,\n },\n );\n}\n","import {Directive, inject} from '@angular/core';\nimport {outputFromObservable} from '@angular/core/rxjs-interop';\n\nimport {TuiHoveredService} from './hovered.service';\n\n@Directive({\n selector: '[tuiHoveredChange]',\n providers: [TuiHoveredService],\n})\nexport class TuiHovered {\n public readonly tuiHoveredChange = outputFromObservable(inject(TuiHoveredService));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAQA,SAAS,QAAQ,CAAC,EAAC,aAAa,EAAE,aAAa,EAAa,EAAA;AACxD,IAAA,QACI,CAAC,YAAY,CAAC,aAAa,CAAC;QAC5B,CAAC,YAAY,CAAC,aAAa,CAAC;AAC5B,QAAA,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC;AAE9C;AAGM,MAAO,iBAAkB,SAAQ,UAAmB,CAAA;AActD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAd5C,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AAErB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAC5B,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,EACpE,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;;AAErE,QAAA,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC,IAAI,CACvC,MAAM,CAAC,QAAQ,CAAC,EAChB,GAAG,CAAC,iBAAiB,CAAC,CACzB,CACJ,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;+GAZlD,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAjB,iBAAiB,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B;;SAoBe,UAAU,GAAA;IACtB,OAAO,QAAQ,CACX,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAC9E;AACI,QAAA,YAAY,EAAE,KAAK;AACtB,KAAA,CACJ;AACL;;MClCa,UAAU,CAAA;AAJvB,IAAA,WAAA,GAAA;QAKoB,IAAgB,CAAA,gBAAA,GAAG,oBAAoB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACrF;+GAFY,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,SAAA,EAFR,CAAC,iBAAiB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAErB,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;oBAC9B,SAAS,EAAE,CAAC,iBAAiB,CAAC;AACjC,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -5,13 +5,12 @@ import { Directive } from '@angular/core';
5
5
  * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`
6
6
  */
7
7
  class TuiItem {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
9
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiItem, isStandalone: true, selector: "[tuiItem]", ngImport: i0 }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
9
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiItem, isStandalone: true, selector: "[tuiItem]", ngImport: i0 }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItem, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItem, decorators: [{
12
12
  type: Directive,
13
13
  args: [{
14
- standalone: true,
15
14
  selector: '[tuiItem]',
16
15
  }]
17
16
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-item.mjs","sources":["../../../projects/cdk/directives/item/item.directive.ts","../../../projects/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`\n */\n@Directive({\n standalone: true,\n selector: '[tuiItem]',\n})\nexport class TuiItem {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;AACH,MAIa,OAAO,CAAA;+GAAP,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAJnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACxB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-item.mjs","sources":["../../../projects/cdk/directives/item/item.directive.ts","../../../projects/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`\n */\n@Directive({\n selector: '[tuiItem]',\n})\nexport class TuiItem {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;MAIU,OAAO,CAAA;+GAAP,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAHnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,WAAW;AACxB,iBAAA;;;ACPD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, Directive, Input } from '@angular/core';
2
+ import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
3
3
 
4
4
  /**
5
5
  * @internal
@@ -17,8 +17,7 @@ class TuiLetContext {
17
17
  }
18
18
 
19
19
  /**
20
- * Works like *ngIf but does not have a condition — use it to declare
21
- * the result of pipes calculation (i.e. async pipe)
20
+ * @deprecated use @let instead
22
21
  */
23
22
  class TuiLet {
24
23
  constructor() {
@@ -33,16 +32,15 @@ class TuiLet {
33
32
  static ngTemplateContextGuard(_dir, _ctx) {
34
33
  return true;
35
34
  }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
36
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
38
37
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLet, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, decorators: [{
40
39
  type: Directive,
41
40
  args: [{
42
- standalone: true,
43
41
  selector: '[tuiLet]',
44
42
  }]
45
- }], ctorParameters: function () { return []; }, propDecorators: { tuiLet: [{
43
+ }], ctorParameters: () => [], propDecorators: { tuiLet: [{
46
44
  type: Input
47
45
  }] } });
48
46
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-let.mjs","sources":["../../../projects/cdk/directives/let/let-context.ts","../../../projects/cdk/directives/let/let.directive.ts","../../../projects/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {type TuiLet} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContext<T> {\n constructor(private readonly internalDirectiveInstance: TuiLet<T>) {}\n\n public get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n public get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n standalone: true,\n selector: '[tuiLet]',\n})\nexport class TuiLet<T> {\n @Input()\n public tuiLet!: T;\n\n constructor() {\n inject(ViewContainerRef).createEmbeddedView(\n inject(TemplateRef<TuiLetContext<T>>),\n new TuiLetContext<T>(this),\n );\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n public static ngTemplateContextGuard<T>(\n _dir: TuiLet<T>,\n _ctx: unknown,\n ): _ctx is TuiLetContext<T> {\n return true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;AAEG;MACU,aAAa,CAAA;AACtB,IAAA,WAAA,CAA6B,yBAAoC,EAAA;QAApC,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB,CAAW;KAAI;AAErE,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;AAED,IAAA,IAAW,MAAM,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;AACJ;;ACbD;;;AAGG;AACH,MAIa,MAAM,CAAA;AAIf,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CACvC,MAAM,EAAC,WAA6B,EAAC,EACrC,IAAI,aAAa,CAAI,IAAI,CAAC,CAC7B,CAAC;KACL;AAED;;;;;AAKG;AACI,IAAA,OAAO,sBAAsB,CAChC,IAAe,EACf,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI,CAAC;KACf;+GAtBQ,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAN,MAAM,EAAA,UAAA,EAAA,CAAA;kBAJlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,UAAU;AACvB,iBAAA,CAAA;0EAGU,MAAM,EAAA,CAAA;sBADZ,KAAK;;;ACbV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-let.mjs","sources":["../../../projects/cdk/directives/let/let-context.ts","../../../projects/cdk/directives/let/let.directive.ts","../../../projects/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {type TuiLet} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContext<T> {\n constructor(private readonly internalDirectiveInstance: TuiLet<T>) {}\n\n public get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n public get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * @deprecated use @let instead\n */\n@Directive({\n selector: '[tuiLet]',\n})\nexport class TuiLet<T> {\n @Input()\n public tuiLet!: T;\n\n constructor() {\n inject(ViewContainerRef).createEmbeddedView(\n inject(TemplateRef<TuiLetContext<T>>),\n new TuiLetContext<T>(this),\n );\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n public static ngTemplateContextGuard<T>(\n _dir: TuiLet<T>,\n _ctx: unknown,\n ): _ctx is TuiLetContext<T> {\n return true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;AAEG;MACU,aAAa,CAAA;AACtB,IAAA,WAAA,CAA6B,yBAAoC,EAAA;QAApC,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB;;AAEtD,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAGhD,IAAA,IAAW,MAAM,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAEnD;;ACbD;;AAEG;MAIU,MAAM,CAAA;AAIf,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CACvC,MAAM,EAAC,WAA6B,EAAC,EACrC,IAAI,aAAa,CAAI,IAAI,CAAC,CAC7B;;AAGL;;;;;AAKG;AACI,IAAA,OAAO,sBAAsB,CAChC,IAAe,EACf,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI;;+GArBN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAN,MAAM,EAAA,UAAA,EAAA,CAAA;kBAHlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,UAAU;AACvB,iBAAA;wDAGU,MAAM,EAAA,CAAA;sBADZ;;;ACXL;;AAEG;;;;"}