@taiga-ui/cdk 4.51.0 → 4.52.0-canary.0ec45da

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 (806) hide show
  1. package/classes/control.d.ts +2 -2
  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 +2 -1
  7. package/constants/version.js.map +1 -0
  8. package/date-time/date-time.d.ts +1 -1
  9. package/date-time/day.d.ts +1 -1
  10. package/date-time/time.d.ts +2 -2
  11. package/date-time/types.d.ts +0 -5
  12. package/directives/active-zone/active-zone.directive.d.ts +4 -3
  13. package/directives/animated/animated.directive.d.ts +0 -1
  14. package/directives/auto-focus/autofocus.options.d.ts +2 -2
  15. package/directives/index.d.ts +1 -1
  16. package/directives/let/let.directive.d.ts +1 -2
  17. package/directives/popover/popover.directive.d.ts +1 -1
  18. package/directives/repeat-times/repeat-times.directive.d.ts +2 -2
  19. package/directives/with-styles/index.d.ts +1 -0
  20. package/directives/with-styles/with-styles.directive.d.ts +10 -0
  21. package/fesm2022/taiga-ui-cdk-classes.mjs +6 -78
  22. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-cdk-constants.mjs +3 -27
  24. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-cdk-date-time.mjs +14 -2
  26. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +22 -26
  28. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +48 -45
  30. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +5 -5
  32. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +4 -4
  34. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -3
  36. package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +4 -4
  38. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +4 -4
  40. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -4
  42. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +11 -19
  44. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +3 -3
  46. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -3
  48. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +8 -8
  50. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -3
  52. package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-cdk-directives-let.mjs +6 -7
  54. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-cdk-directives-media.mjs +4 -4
  56. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +4 -4
  58. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +15 -9
  60. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +8 -8
  62. package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +4 -4
  64. package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-cdk-directives-popover.mjs +3 -3
  66. package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +10 -10
  68. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +7 -7
  70. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +8 -8
  72. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +4 -4
  74. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +3 -3
  76. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +4 -4
  78. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +3 -3
  80. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
  82. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
  83. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +7 -7
  84. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-cdk-directives.mjs +1 -1
  86. package/fesm2022/taiga-ui-cdk-observables.mjs +8 -4
  87. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +3 -3
  89. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -3
  91. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +3 -3
  93. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +3 -3
  95. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -3
  97. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +3 -3
  99. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +3 -3
  101. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +3 -3
  103. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +3 -3
  105. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
  107. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
  108. package/fesm2022/taiga-ui-cdk-services.mjs +17 -15
  109. package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-cdk-tokens.mjs +14 -13
  111. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +1 -23
  113. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-cdk-utils-color.mjs +1 -1
  115. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-cdk-utils-di.mjs +1 -1
  117. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +15 -23
  119. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +13 -14
  121. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +24 -14
  124. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-cdk.mjs +1 -0
  126. package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
  127. package/index.d.ts +1 -0
  128. package/package.json +28 -136
  129. package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
  130. package/portals/directive.d.ts +11 -0
  131. package/portals/index.d.ts +4 -0
  132. package/portals/portal.d.ts +25 -0
  133. package/portals/portals.d.ts +12 -0
  134. package/portals/service.d.ts +15 -0
  135. package/schematics/collection.json +2 -1
  136. package/schematics/constants/file-globs.js +2 -1
  137. package/schematics/constants/file-globs.js.map +1 -0
  138. package/schematics/constants/index.js +1 -0
  139. package/schematics/constants/index.js.map +1 -0
  140. package/schematics/constants/taiga-styles.js +1 -0
  141. package/schematics/constants/taiga-styles.js.map +1 -0
  142. package/schematics/index.js +1 -0
  143. package/schematics/index.js.map +1 -0
  144. package/schematics/migrate-tui-let/index.js +5 -3
  145. package/schematics/migrate-tui-let/index.js.map +1 -0
  146. package/schematics/migrate-tui-let/schema.json +7 -0
  147. package/schematics/ng-add/constants/modules.js +1 -0
  148. package/schematics/ng-add/constants/modules.js.map +1 -0
  149. package/schematics/ng-add/constants/packages.js +1 -0
  150. package/schematics/ng-add/constants/packages.js.map +1 -0
  151. package/schematics/ng-add/constants/versions.d.ts +1 -1
  152. package/schematics/ng-add/constants/versions.js +1 -0
  153. package/schematics/ng-add/constants/versions.js.map +1 -0
  154. package/schematics/ng-add/index.js +2 -2
  155. package/schematics/ng-add/index.js.map +1 -0
  156. package/schematics/ng-add/schema.js +1 -0
  157. package/schematics/ng-add/schema.js.map +1 -0
  158. package/schematics/ng-add/setup-project.js +2 -1
  159. package/schematics/ng-add/setup-project.js.map +1 -0
  160. package/schematics/ng-add/steps/add-taiga-icons.js +3 -3
  161. package/schematics/ng-add/steps/add-taiga-icons.js.map +1 -0
  162. package/schematics/ng-add/steps/add-taiga-modules.js +2 -2
  163. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -0
  164. package/schematics/ng-add/steps/add-taiga-styles.js +2 -2
  165. package/schematics/ng-add/steps/add-taiga-styles.js.map +1 -0
  166. package/schematics/ng-add/steps/wrap-with-tui-root.js +2 -2
  167. package/schematics/ng-add/steps/wrap-with-tui-root.js.map +1 -0
  168. package/schematics/ng-update/interfaces/asset.js +1 -0
  169. package/schematics/ng-update/interfaces/asset.js.map +1 -0
  170. package/schematics/ng-update/interfaces/html-comment.js +1 -0
  171. package/schematics/ng-update/interfaces/html-comment.js.map +1 -0
  172. package/schematics/ng-update/interfaces/index.js +1 -0
  173. package/schematics/ng-update/interfaces/index.js.map +1 -0
  174. package/schematics/ng-update/interfaces/migration-warning.js +1 -0
  175. package/schematics/ng-update/interfaces/migration-warning.js.map +1 -0
  176. package/schematics/ng-update/interfaces/removable-input.js +1 -0
  177. package/schematics/ng-update/interfaces/removable-input.js.map +1 -0
  178. package/schematics/ng-update/interfaces/removed-module.js +1 -0
  179. package/schematics/ng-update/interfaces/removed-module.js.map +1 -0
  180. package/schematics/ng-update/interfaces/replacement-attribute-to-directive.js +1 -0
  181. package/schematics/ng-update/interfaces/replacement-attribute-to-directive.js.map +1 -0
  182. package/schematics/ng-update/interfaces/replacement-attribute-value.js +1 -0
  183. package/schematics/ng-update/interfaces/replacement-attribute-value.js.map +1 -0
  184. package/schematics/ng-update/interfaces/replacement-attribute.js +1 -0
  185. package/schematics/ng-update/interfaces/replacement-attribute.js.map +1 -0
  186. package/schematics/ng-update/interfaces/replacement-enum.js +1 -0
  187. package/schematics/ng-update/interfaces/replacement-enum.js.map +1 -0
  188. package/schematics/ng-update/interfaces/replacement-identifier.js +1 -0
  189. package/schematics/ng-update/interfaces/replacement-identifier.js.map +1 -0
  190. package/schematics/ng-update/interfaces/replacement-service.js +1 -0
  191. package/schematics/ng-update/interfaces/replacement-service.js.map +1 -0
  192. package/schematics/ng-update/interfaces/replacement-tag.js +1 -0
  193. package/schematics/ng-update/interfaces/replacement-tag.js.map +1 -0
  194. package/schematics/ng-update/interfaces/replacement-type.js +1 -0
  195. package/schematics/ng-update/interfaces/replacement-type.js.map +1 -0
  196. package/schematics/ng-update/interfaces/template-resource.js +1 -0
  197. package/schematics/ng-update/interfaces/template-resource.js.map +1 -0
  198. package/schematics/ng-update/steps/icons/replace-imports.js +2 -2
  199. package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -0
  200. package/schematics/ng-update/steps/index.js +1 -0
  201. package/schematics/ng-update/steps/index.js.map +1 -0
  202. package/schematics/ng-update/steps/rename-types.js +2 -2
  203. package/schematics/ng-update/steps/rename-types.js.map +1 -0
  204. package/schematics/ng-update/steps/replace-deep-import.js +2 -2
  205. package/schematics/ng-update/steps/replace-deep-import.js.map +1 -0
  206. package/schematics/ng-update/steps/replace-enums.js +2 -2
  207. package/schematics/ng-update/steps/replace-enums.js.map +1 -0
  208. package/schematics/ng-update/steps/replace-identifier.js +3 -3
  209. package/schematics/ng-update/steps/replace-identifier.js.map +1 -0
  210. package/schematics/ng-update/steps/replace-package-name.js +2 -2
  211. package/schematics/ng-update/steps/replace-package-name.js.map +1 -0
  212. package/schematics/ng-update/steps/replace-services.js +2 -2
  213. package/schematics/ng-update/steps/replace-services.js.map +1 -0
  214. package/schematics/ng-update/steps/show-warnings.js +2 -2
  215. package/schematics/ng-update/steps/show-warnings.js.map +1 -0
  216. package/schematics/ng-update/utils/get-file-system.js +2 -2
  217. package/schematics/ng-update/utils/get-file-system.js.map +1 -0
  218. package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
  219. package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +3 -3
  220. package/schematics/ng-update/utils/replace-functions.js.map +1 -0
  221. package/schematics/ng-update/utils/replace-text.js +2 -2
  222. package/schematics/ng-update/utils/replace-text.js.map +1 -0
  223. package/schematics/ng-update/utils/templates/index.js +1 -0
  224. package/schematics/ng-update/utils/templates/index.js.map +1 -0
  225. package/schematics/ng-update/utils/templates/remove-inputs.js +2 -2
  226. package/schematics/ng-update/utils/templates/remove-inputs.js.map +1 -0
  227. package/schematics/ng-update/utils/templates/replace-attr-values.js +2 -2
  228. package/schematics/ng-update/utils/templates/replace-attr-values.js.map +1 -0
  229. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +2 -2
  230. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js.map +1 -0
  231. package/schematics/ng-update/utils/templates/replace-attrs.js +2 -2
  232. package/schematics/ng-update/utils/templates/replace-attrs.js.map +1 -0
  233. package/schematics/ng-update/utils/templates/replace-tag.js +2 -2
  234. package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -0
  235. package/schematics/ng-update/utils/templates/replace-tags.js +2 -2
  236. package/schematics/ng-update/utils/templates/replace-tags.js.map +1 -0
  237. package/schematics/ng-update/utils/templates/template-comments.js +2 -2
  238. package/schematics/ng-update/utils/templates/template-comments.js.map +1 -0
  239. package/schematics/ng-update/v4/index.js +3 -3
  240. package/schematics/ng-update/v4/index.js.map +1 -0
  241. package/schematics/ng-update/v4/migrate-addon-doc/index.js +2 -2
  242. package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +1 -0
  243. package/schematics/ng-update/v4/migrate-addon-doc/replace-symbols.js +1 -0
  244. package/schematics/ng-update/v4/migrate-addon-doc/replace-symbols.js.map +1 -0
  245. package/schematics/ng-update/v4/migrate-css-vars/index.js +2 -2
  246. package/schematics/ng-update/v4/migrate-css-vars/index.js.map +1 -0
  247. package/schematics/ng-update/v4/migrate-css-vars/palette.js +1 -0
  248. package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -0
  249. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +0 -1
  250. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +2 -2
  251. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -0
  252. package/schematics/ng-update/v4/migrate-icons/index.js +2 -2
  253. package/schematics/ng-update/v4/migrate-icons/index.js.map +1 -0
  254. package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
  255. package/schematics/ng-update/v4/migrate-icons/rename-icons.js +2 -2
  256. package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +1 -0
  257. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +0 -1
  258. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +2 -2
  259. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +1 -0
  260. package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +1 -0
  261. package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js.map +1 -0
  262. package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +1 -0
  263. package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js.map +1 -0
  264. package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +1 -0
  265. package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js.map +1 -0
  266. package/schematics/ng-update/v4/steps/constants/enums.js +1 -0
  267. package/schematics/ng-update/v4/steps/constants/enums.js.map +1 -0
  268. package/schematics/ng-update/v4/steps/constants/functions.js +1 -0
  269. package/schematics/ng-update/v4/steps/constants/functions.js.map +1 -0
  270. package/schematics/ng-update/v4/steps/constants/html-comments.js +1 -0
  271. package/schematics/ng-update/v4/steps/constants/html-comments.js.map +1 -0
  272. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +1 -0
  273. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js.map +1 -0
  274. package/schematics/ng-update/v4/steps/constants/index.js +1 -0
  275. package/schematics/ng-update/v4/steps/constants/index.js.map +1 -0
  276. package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +1 -0
  277. package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js.map +1 -0
  278. package/schematics/ng-update/v4/steps/constants/migration-warnings.js +2 -1
  279. package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -0
  280. package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +1 -0
  281. package/schematics/ng-update/v4/steps/constants/modules-to-remove.js.map +1 -0
  282. package/schematics/ng-update/v4/steps/constants/modules-to-replace.js +1 -0
  283. package/schematics/ng-update/v4/steps/constants/modules-to-replace.js.map +1 -0
  284. package/schematics/ng-update/v4/steps/constants/services.js +1 -0
  285. package/schematics/ng-update/v4/steps/constants/services.js.map +1 -0
  286. package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +1 -0
  287. package/schematics/ng-update/v4/steps/constants/tags-to-replace.js.map +1 -0
  288. package/schematics/ng-update/v4/steps/constants/types.js +1 -0
  289. package/schematics/ng-update/v4/steps/constants/types.js.map +1 -0
  290. package/schematics/ng-update/v4/steps/drop-universal-mock.js +2 -2
  291. package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +1 -0
  292. package/schematics/ng-update/v4/steps/index.js +1 -0
  293. package/schematics/ng-update/v4/steps/index.js.map +1 -0
  294. package/schematics/ng-update/v4/steps/migrate-alert-service.js +2 -2
  295. package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +1 -0
  296. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +2 -2
  297. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +1 -0
  298. package/schematics/ng-update/v4/steps/migrate-destroy-service.js +2 -2
  299. package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +1 -0
  300. package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -1
  301. package/schematics/ng-update/v4/steps/migrate-editor.js +3 -2
  302. package/schematics/ng-update/v4/steps/migrate-editor.js.map +1 -0
  303. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +2 -2
  304. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +1 -0
  305. package/schematics/ng-update/v4/steps/migrate-month-context.js +2 -2
  306. package/schematics/ng-update/v4/steps/migrate-month-context.js.map +1 -0
  307. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +2 -2
  308. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +1 -0
  309. package/schematics/ng-update/v4/steps/migrate-option-providers.js +2 -2
  310. package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +1 -0
  311. package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -1
  312. package/schematics/ng-update/v4/steps/migrate-proprietary.js +3 -3
  313. package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +1 -0
  314. package/schematics/ng-update/v4/steps/migrate-providers-from.js +2 -2
  315. package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +1 -0
  316. package/schematics/ng-update/v4/steps/migrate-root.js +2 -2
  317. package/schematics/ng-update/v4/steps/migrate-root.js.map +1 -0
  318. package/schematics/ng-update/v4/steps/migrate-templates.js +3 -3
  319. package/schematics/ng-update/v4/steps/migrate-templates.js.map +1 -0
  320. package/schematics/ng-update/v4/steps/remove-duplicates.js +2 -2
  321. package/schematics/ng-update/v4/steps/remove-duplicates.js.map +1 -0
  322. package/schematics/ng-update/v4/steps/restore-tui-mapper.js +3 -3
  323. package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -0
  324. package/schematics/ng-update/v4/steps/restore-tui-matcher.js +3 -3
  325. package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -0
  326. package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -1
  327. package/schematics/ng-update/v4/steps/styles/index.js +3 -2
  328. package/schematics/ng-update/v4/steps/styles/index.js.map +1 -0
  329. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +2 -2
  330. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +1 -0
  331. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +2 -2
  332. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +1 -0
  333. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +2 -2
  334. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +1 -0
  335. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +2 -2
  336. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +1 -0
  337. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +2 -2
  338. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -0
  339. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +2 -2
  340. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -0
  341. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +2 -2
  342. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +1 -0
  343. package/schematics/ng-update/v4/steps/templates/index.js +1 -0
  344. package/schematics/ng-update/v4/steps/templates/index.js.map +1 -0
  345. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +2 -2
  346. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +1 -0
  347. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +2 -2
  348. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +1 -0
  349. package/schematics/ng-update/v4/steps/templates/migrate-axes.js +2 -2
  350. package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +1 -0
  351. package/schematics/ng-update/v4/steps/templates/migrate-badge.js +2 -2
  352. package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +1 -0
  353. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +2 -2
  354. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +1 -0
  355. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +2 -2
  356. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +1 -0
  357. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +2 -2
  358. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +1 -0
  359. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +2 -2
  360. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +1 -0
  361. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +2 -2
  362. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +1 -0
  363. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +2 -2
  364. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +1 -0
  365. package/schematics/ng-update/v4/steps/templates/migrate-label.js +2 -2
  366. package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +1 -0
  367. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +2 -2
  368. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +1 -0
  369. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +2 -2
  370. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +1 -0
  371. package/schematics/ng-update/v4/steps/templates/migrate-money.js +2 -2
  372. package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +1 -0
  373. package/schematics/ng-update/v4/steps/templates/migrate-notification.js +2 -2
  374. package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +1 -0
  375. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +2 -2
  376. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +1 -0
  377. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +2 -2
  378. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +1 -0
  379. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +2 -2
  380. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +1 -0
  381. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +2 -2
  382. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +1 -0
  383. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +2 -2
  384. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +1 -0
  385. package/schematics/ng-update/v4/steps/templates/toggles/common.js +5 -5
  386. package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +1 -0
  387. package/schematics/ng-update/v4/steps/templates/toggles/index.js +1 -0
  388. package/schematics/ng-update/v4/steps/templates/toggles/index.js.map +1 -0
  389. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +2 -2
  390. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +1 -0
  391. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +2 -2
  392. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +1 -0
  393. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +2 -2
  394. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +1 -0
  395. package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -1
  396. package/schematics/ng-update/v4/steps/update-packages.js +3 -2
  397. package/schematics/ng-update/v4/steps/update-packages.js.map +1 -0
  398. package/schematics/ng-update/v4/steps/utils/clean-object.js +2 -2
  399. package/schematics/ng-update/v4/steps/utils/clean-object.js.map +1 -0
  400. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +2 -2
  401. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +1 -0
  402. package/schematics/ng-update/v4/steps/utils/remove-attrs.js +2 -2
  403. package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +1 -0
  404. package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js +1 -0
  405. package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +1 -0
  406. package/schematics/ng-update/v4/steps/utils/replace-substrings.js +2 -2
  407. package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +1 -0
  408. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +2 -2
  409. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +1 -0
  410. package/schematics/ng-update/v5/index.js +11 -2
  411. package/schematics/ng-update/v5/index.js.map +1 -0
  412. package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
  413. package/schematics/ng-update/v5/steps/constants/functions.js +72 -0
  414. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
  415. package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
  416. package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
  417. package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
  418. package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
  419. package/schematics/ng-update/v5/steps/migrate-templates.js +40 -0
  420. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
  421. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +2 -2
  422. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -0
  423. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +2 -2
  424. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -0
  425. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js +2 -2
  426. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js.map +1 -0
  427. package/schematics/utils/add-import-to-closest-module.js +3 -3
  428. package/schematics/utils/add-import-to-closest-module.js.map +1 -0
  429. package/schematics/utils/add-unique-import.js +2 -2
  430. package/schematics/utils/add-unique-import.js.map +1 -0
  431. package/schematics/utils/angular-json-manipulations.js +3 -5
  432. package/schematics/utils/angular-json-manipulations.js.map +1 -0
  433. package/schematics/utils/create-angular-json.js +2 -2
  434. package/schematics/utils/create-angular-json.js.map +1 -0
  435. package/schematics/utils/get-component-from-identifier.js +2 -2
  436. package/schematics/utils/get-component-from-identifier.js.map +1 -0
  437. package/schematics/utils/get-execution-time.js +2 -2
  438. package/schematics/utils/get-execution-time.js.map +1 -0
  439. package/schematics/utils/get-named-import-references.js +2 -2
  440. package/schematics/utils/get-named-import-references.js.map +1 -0
  441. package/schematics/utils/get-project-target-options.js +2 -2
  442. package/schematics/utils/get-project-target-options.js.map +1 -0
  443. package/schematics/utils/get-projects.js +2 -2
  444. package/schematics/utils/get-projects.js.map +1 -0
  445. package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
  446. package/schematics/utils/get-standalone-bootstrap-function.js +3 -5
  447. package/schematics/utils/get-standalone-bootstrap-function.js.map +1 -0
  448. package/schematics/utils/import-manipulations.js +3 -3
  449. package/schematics/utils/import-manipulations.js.map +1 -0
  450. package/schematics/utils/insert-todo.js +3 -2
  451. package/schematics/utils/insert-todo.js.map +1 -0
  452. package/schematics/utils/is-ci.js +2 -2
  453. package/schematics/utils/is-ci.js.map +1 -0
  454. package/schematics/utils/make-angular-json-with-assets.js +2 -2
  455. package/schematics/utils/make-angular-json-with-assets.js.map +1 -0
  456. package/schematics/utils/progress.js +2 -2
  457. package/schematics/utils/progress.js.map +1 -0
  458. package/schematics/utils/project-root.js +1 -0
  459. package/schematics/utils/project-root.js.map +1 -0
  460. package/schematics/utils/push-to-array-property.js +2 -2
  461. package/schematics/utils/push-to-array-property.js.map +1 -0
  462. package/schematics/utils/remove-module.js +3 -3
  463. package/schematics/utils/remove-module.js.map +1 -0
  464. package/schematics/utils/templates/elements.js +16 -24
  465. package/schematics/utils/templates/elements.js.map +1 -0
  466. package/schematics/utils/templates/get-component-templates.js +2 -2
  467. package/schematics/utils/templates/get-component-templates.js.map +1 -0
  468. package/schematics/utils/templates/inputs.js +3 -3
  469. package/schematics/utils/templates/inputs.js.map +1 -0
  470. package/schematics/utils/templates/ng-component-input-manipulations.js +7 -9
  471. package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -0
  472. package/schematics/utils/templates/template-resource.js +4 -4
  473. package/schematics/utils/templates/template-resource.js.map +1 -0
  474. package/services/scroll.service.d.ts +3 -0
  475. package/tokens/environment.d.ts +5 -0
  476. package/utils/browser/index.d.ts +0 -2
  477. package/utils/di/create-options.d.ts +2 -2
  478. package/utils/dom/get-element-obscurers.d.ts +1 -1
  479. package/utils/focus/blur-native-focused.d.ts +1 -1
  480. package/utils/focus/get-native-focused.d.ts +1 -1
  481. package/utils/focus/is-native-focused-in.d.ts +1 -1
  482. package/utils/focus/is-native-focused.d.ts +1 -1
  483. package/utils/focus/is-native-keyboard-focusable.d.ts +1 -1
  484. package/utils/focus/is-native-mouse-focusable.d.ts +1 -1
  485. package/utils/miscellaneous/index.d.ts +1 -1
  486. package/utils/miscellaneous/is-string.js +2 -2
  487. package/utils/miscellaneous/is-string.js.map +1 -0
  488. package/utils/miscellaneous/provide-options.d.ts +2 -2
  489. package/utils/miscellaneous/set-signal.d.ts +2 -0
  490. package/classes/portals.d.ts +0 -33
  491. package/constants/allow-signal-writes.d.ts +0 -2
  492. package/directives/for/for.directive.d.ts +0 -12
  493. package/directives/for/index.d.ts +0 -1
  494. package/esm2022/classes/control.mjs +0 -96
  495. package/esm2022/classes/index.mjs +0 -5
  496. package/esm2022/classes/portals.mjs +0 -77
  497. package/esm2022/classes/taiga-ui-cdk-classes.mjs +0 -5
  498. package/esm2022/classes/validation-error.mjs +0 -7
  499. package/esm2022/classes/value-transformer.mjs +0 -25
  500. package/esm2022/constants/allow-signal-writes.mjs +0 -3
  501. package/esm2022/constants/empty.mjs +0 -25
  502. package/esm2022/constants/handlers.mjs +0 -11
  503. package/esm2022/constants/index.mjs +0 -10
  504. package/esm2022/constants/matchers.mjs +0 -26
  505. package/esm2022/constants/regexp.mjs +0 -4
  506. package/esm2022/constants/svg-node-filter.mjs +0 -8
  507. package/esm2022/constants/taiga-ui-cdk-constants.mjs +0 -5
  508. package/esm2022/constants/unicode-chars.mjs +0 -64
  509. package/esm2022/constants/used-icons.mjs +0 -76
  510. package/esm2022/constants/version.mjs +0 -2
  511. package/esm2022/date-time/date-clamp.mjs +0 -10
  512. package/esm2022/date-time/date-fillers.mjs +0 -15
  513. package/esm2022/date-time/date-time.mjs +0 -20
  514. package/esm2022/date-time/day-of-week.mjs +0 -10
  515. package/esm2022/date-time/day-range.mjs +0 -84
  516. package/esm2022/date-time/day.mjs +0 -294
  517. package/esm2022/date-time/days.const.mjs +0 -6
  518. package/esm2022/date-time/index.mjs +0 -13
  519. package/esm2022/date-time/month-number.mjs +0 -15
  520. package/esm2022/date-time/month-range.mjs +0 -27
  521. package/esm2022/date-time/month.mjs +0 -152
  522. package/esm2022/date-time/taiga-ui-cdk-date-time.mjs +0 -5
  523. package/esm2022/date-time/time.mjs +0 -161
  524. package/esm2022/date-time/types.mjs +0 -2
  525. package/esm2022/date-time/year.mjs +0 -111
  526. package/esm2022/directives/active-zone/active-zone.directive.mjs +0 -74
  527. package/esm2022/directives/active-zone/index.mjs +0 -2
  528. package/esm2022/directives/active-zone/taiga-ui-cdk-directives-active-zone.mjs +0 -5
  529. package/esm2022/directives/animated/animated-parent.directive.mjs +0 -39
  530. package/esm2022/directives/animated/animated.directive.mjs +0 -81
  531. package/esm2022/directives/animated/index.mjs +0 -3
  532. package/esm2022/directives/animated/taiga-ui-cdk-directives-animated.mjs +0 -5
  533. package/esm2022/directives/auto-focus/autofocus.directive.mjs +0 -46
  534. package/esm2022/directives/auto-focus/autofocus.options.mjs +0 -31
  535. package/esm2022/directives/auto-focus/handlers/abstract.handler.mjs +0 -17
  536. package/esm2022/directives/auto-focus/handlers/default.handler.mjs +0 -21
  537. package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +0 -125
  538. package/esm2022/directives/auto-focus/handlers/sync.handler.mjs +0 -7
  539. package/esm2022/directives/auto-focus/index.mjs +0 -7
  540. package/esm2022/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.mjs +0 -5
  541. package/esm2022/directives/click-outside/click-outside.directive.mjs +0 -33
  542. package/esm2022/directives/click-outside/index.mjs +0 -2
  543. package/esm2022/directives/click-outside/taiga-ui-cdk-directives-click-outside.mjs +0 -5
  544. package/esm2022/directives/control/control.directive.mjs +0 -23
  545. package/esm2022/directives/control/index.mjs +0 -2
  546. package/esm2022/directives/control/taiga-ui-cdk-directives-control.mjs +0 -5
  547. package/esm2022/directives/copy-processor/copy-processor.directive.mjs +0 -33
  548. package/esm2022/directives/copy-processor/index.mjs +0 -2
  549. package/esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs +0 -5
  550. package/esm2022/directives/droppable/droppable.directive.mjs +0 -31
  551. package/esm2022/directives/droppable/index.mjs +0 -2
  552. package/esm2022/directives/droppable/taiga-ui-cdk-directives-droppable.mjs +0 -5
  553. package/esm2022/directives/element/element.directive.mjs +0 -35
  554. package/esm2022/directives/element/index.mjs +0 -2
  555. package/esm2022/directives/element/taiga-ui-cdk-directives-element.mjs +0 -5
  556. package/esm2022/directives/focus-trap/focus-trap.directive.mjs +0 -67
  557. package/esm2022/directives/focus-trap/index.mjs +0 -2
  558. package/esm2022/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.mjs +0 -5
  559. package/esm2022/directives/font-size/font-size.directive.mjs +0 -27
  560. package/esm2022/directives/font-size/index.mjs +0 -2
  561. package/esm2022/directives/font-size/taiga-ui-cdk-directives-font-size.mjs +0 -5
  562. package/esm2022/directives/for/for.directive.mjs +0 -34
  563. package/esm2022/directives/for/index.mjs +0 -2
  564. package/esm2022/directives/for/taiga-ui-cdk-directives-for.mjs +0 -5
  565. package/esm2022/directives/high-dpi/high-dpi.directive.mjs +0 -23
  566. package/esm2022/directives/high-dpi/index.mjs +0 -2
  567. package/esm2022/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.mjs +0 -5
  568. package/esm2022/directives/hovered/hovered.directive.mjs +0 -22
  569. package/esm2022/directives/hovered/hovered.service.mjs +0 -35
  570. package/esm2022/directives/hovered/index.mjs +0 -3
  571. package/esm2022/directives/hovered/taiga-ui-cdk-directives-hovered.mjs +0 -5
  572. package/esm2022/directives/index.mjs +0 -30
  573. package/esm2022/directives/item/index.mjs +0 -2
  574. package/esm2022/directives/item/item.directive.mjs +0 -18
  575. package/esm2022/directives/item/taiga-ui-cdk-directives-item.mjs +0 -5
  576. package/esm2022/directives/let/index.mjs +0 -3
  577. package/esm2022/directives/let/let-context.mjs +0 -15
  578. package/esm2022/directives/let/let.directive.mjs +0 -34
  579. package/esm2022/directives/let/taiga-ui-cdk-directives-let.mjs +0 -5
  580. package/esm2022/directives/media/index.mjs +0 -2
  581. package/esm2022/directives/media/media.directive.mjs +0 -89
  582. package/esm2022/directives/media/taiga-ui-cdk-directives-media.mjs +0 -5
  583. package/esm2022/directives/native-validator/index.mjs +0 -2
  584. package/esm2022/directives/native-validator/native-validator.directive.mjs +0 -43
  585. package/esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs +0 -5
  586. package/esm2022/directives/obscured/index.mjs +0 -3
  587. package/esm2022/directives/obscured/obscured.directive.mjs +0 -36
  588. package/esm2022/directives/obscured/obscured.service.mjs +0 -24
  589. package/esm2022/directives/obscured/taiga-ui-cdk-directives-obscured.mjs +0 -5
  590. package/esm2022/directives/pan/index.mjs +0 -3
  591. package/esm2022/directives/pan/pan.directive.mjs +0 -22
  592. package/esm2022/directives/pan/pan.service.mjs +0 -28
  593. package/esm2022/directives/pan/taiga-ui-cdk-directives-pan.mjs +0 -5
  594. package/esm2022/directives/platform/index.mjs +0 -2
  595. package/esm2022/directives/platform/platform.directive.mjs +0 -35
  596. package/esm2022/directives/platform/taiga-ui-cdk-directives-platform.mjs +0 -5
  597. package/esm2022/directives/popover/index.mjs +0 -2
  598. package/esm2022/directives/popover/popover.directive.mjs +0 -26
  599. package/esm2022/directives/popover/taiga-ui-cdk-directives-popover.mjs +0 -5
  600. package/esm2022/directives/repeat-times/index.mjs +0 -2
  601. package/esm2022/directives/repeat-times/repeat-times.directive.mjs +0 -55
  602. package/esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs +0 -5
  603. package/esm2022/directives/resizer/index.mjs +0 -3
  604. package/esm2022/directives/resizer/resizable.directive.mjs +0 -16
  605. package/esm2022/directives/resizer/resizer.directive.mjs +0 -83
  606. package/esm2022/directives/resizer/taiga-ui-cdk-directives-resizer.mjs +0 -5
  607. package/esm2022/directives/swipe/index.mjs +0 -4
  608. package/esm2022/directives/swipe/swipe.directive.mjs +0 -22
  609. package/esm2022/directives/swipe/swipe.options.mjs +0 -8
  610. package/esm2022/directives/swipe/swipe.service.mjs +0 -50
  611. package/esm2022/directives/swipe/swipe.types.mjs +0 -2
  612. package/esm2022/directives/swipe/taiga-ui-cdk-directives-swipe.mjs +0 -5
  613. package/esm2022/directives/taiga-ui-cdk-directives.mjs +0 -5
  614. package/esm2022/directives/transitioned/index.mjs +0 -2
  615. package/esm2022/directives/transitioned/taiga-ui-cdk-directives-transitioned.mjs +0 -5
  616. package/esm2022/directives/transitioned/transitioned.directive.mjs +0 -27
  617. package/esm2022/directives/validator/index.mjs +0 -2
  618. package/esm2022/directives/validator/taiga-ui-cdk-directives-validator.mjs +0 -5
  619. package/esm2022/directives/validator/validator.directive.mjs +0 -30
  620. package/esm2022/directives/value-changes/index.mjs +0 -2
  621. package/esm2022/directives/value-changes/taiga-ui-cdk-directives-value-changes.mjs +0 -5
  622. package/esm2022/directives/value-changes/value-changes.directive.mjs +0 -28
  623. package/esm2022/directives/visual-viewport/index.mjs +0 -2
  624. package/esm2022/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.mjs +0 -5
  625. package/esm2022/directives/visual-viewport/visual-viewport.directive.mjs +0 -34
  626. package/esm2022/directives/zoom/index.mjs +0 -4
  627. package/esm2022/directives/zoom/taiga-ui-cdk-directives-zoom.mjs +0 -5
  628. package/esm2022/directives/zoom/zoom.directive.mjs +0 -24
  629. package/esm2022/directives/zoom/zoom.options.mjs +0 -10
  630. package/esm2022/directives/zoom/zoom.service.mjs +0 -46
  631. package/esm2022/directives/zoom/zoom.types.mjs +0 -2
  632. package/esm2022/index.mjs +0 -10
  633. package/esm2022/observables/close-watcher.mjs +0 -22
  634. package/esm2022/observables/control-value.mjs +0 -8
  635. package/esm2022/observables/drag-and-drop-from.mjs +0 -14
  636. package/esm2022/observables/events.mjs +0 -8
  637. package/esm2022/observables/if-map.mjs +0 -5
  638. package/esm2022/observables/index.mjs +0 -14
  639. package/esm2022/observables/must-be-present.mjs +0 -17
  640. package/esm2022/observables/query-list-observable.mjs +0 -9
  641. package/esm2022/observables/scroll-from.mjs +0 -10
  642. package/esm2022/observables/taiga-ui-cdk-observables.mjs +0 -5
  643. package/esm2022/observables/take-until-destroyed.mjs +0 -9
  644. package/esm2022/observables/typed-from-event.mjs +0 -9
  645. package/esm2022/observables/untracked-scheduler.mjs +0 -11
  646. package/esm2022/observables/watch.mjs +0 -6
  647. package/esm2022/observables/zone.mjs +0 -34
  648. package/esm2022/pipes/animation/animation.pipe.mjs +0 -27
  649. package/esm2022/pipes/animation/index.mjs +0 -2
  650. package/esm2022/pipes/animation/taiga-ui-cdk-pipes-animation.mjs +0 -5
  651. package/esm2022/pipes/filter/filter.pipe.mjs +0 -25
  652. package/esm2022/pipes/filter/index.mjs +0 -2
  653. package/esm2022/pipes/filter/taiga-ui-cdk-pipes-filter.mjs +0 -5
  654. package/esm2022/pipes/index.mjs +0 -10
  655. package/esm2022/pipes/is-present/index.mjs +0 -2
  656. package/esm2022/pipes/is-present/is-present.pipe.mjs +0 -19
  657. package/esm2022/pipes/is-present/taiga-ui-cdk-pipes-is-present.mjs +0 -5
  658. package/esm2022/pipes/keys/index.mjs +0 -2
  659. package/esm2022/pipes/keys/keys.pipe.mjs +0 -18
  660. package/esm2022/pipes/keys/taiga-ui-cdk-pipes-keys.mjs +0 -5
  661. package/esm2022/pipes/mapper/index.mjs +0 -2
  662. package/esm2022/pipes/mapper/mapper.pipe.mjs +0 -25
  663. package/esm2022/pipes/mapper/taiga-ui-cdk-pipes-mapper.mjs +0 -5
  664. package/esm2022/pipes/obfuscate/index.mjs +0 -3
  665. package/esm2022/pipes/obfuscate/obfuscate.options.mjs +0 -10
  666. package/esm2022/pipes/obfuscate/obfuscate.pipe.mjs +0 -44
  667. package/esm2022/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.mjs +0 -5
  668. package/esm2022/pipes/repeat-times/index.mjs +0 -19
  669. package/esm2022/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.mjs +0 -5
  670. package/esm2022/pipes/replace/index.mjs +0 -2
  671. package/esm2022/pipes/replace/replace.pipe.mjs +0 -20
  672. package/esm2022/pipes/replace/taiga-ui-cdk-pipes-replace.mjs +0 -5
  673. package/esm2022/pipes/taiga-ui-cdk-pipes.mjs +0 -5
  674. package/esm2022/pipes/to-array/index.mjs +0 -2
  675. package/esm2022/pipes/to-array/taiga-ui-cdk-pipes-to-array.mjs +0 -5
  676. package/esm2022/pipes/to-array/to-array.pipe.mjs +0 -18
  677. package/esm2022/services/id.service.mjs +0 -21
  678. package/esm2022/services/index.mjs +0 -5
  679. package/esm2022/services/popover.service.mjs +0 -45
  680. package/esm2022/services/scroll.service.mjs +0 -55
  681. package/esm2022/services/taiga-ui-cdk-services.mjs +0 -5
  682. package/esm2022/services/theme-color.service.mjs +0 -33
  683. package/esm2022/taiga-ui-cdk.mjs +0 -5
  684. package/esm2022/tokens/active-element.mjs +0 -56
  685. package/esm2022/tokens/base-href.mjs +0 -6
  686. package/esm2022/tokens/environment.mjs +0 -64
  687. package/esm2022/tokens/fallback-value.mjs +0 -11
  688. package/esm2022/tokens/index.mjs +0 -8
  689. package/esm2022/tokens/range.mjs +0 -9
  690. package/esm2022/tokens/removed-element.mjs +0 -20
  691. package/esm2022/tokens/taiga-ui-cdk-tokens.mjs +0 -5
  692. package/esm2022/tokens/window-size.mjs +0 -28
  693. package/esm2022/types/context.mjs +0 -2
  694. package/esm2022/types/handler.mjs +0 -2
  695. package/esm2022/types/index.mjs +0 -2
  696. package/esm2022/types/loose-union.mjs +0 -2
  697. package/esm2022/types/mapper.mjs +0 -2
  698. package/esm2022/types/matcher.mjs +0 -2
  699. package/esm2022/types/rounding.mjs +0 -2
  700. package/esm2022/types/safe-html.mjs +0 -2
  701. package/esm2022/types/taiga-ui-cdk-types.mjs +0 -5
  702. package/esm2022/types/values-of.mjs +0 -2
  703. package/esm2022/utils/browser/index.mjs +0 -6
  704. package/esm2022/utils/browser/is-apple.mjs +0 -14
  705. package/esm2022/utils/browser/is-edge.mjs +0 -4
  706. package/esm2022/utils/browser/is-firefox.mjs +0 -4
  707. package/esm2022/utils/browser/is-ios.mjs +0 -7
  708. package/esm2022/utils/browser/is-safari.mjs +0 -12
  709. package/esm2022/utils/browser/taiga-ui-cdk-utils-browser.mjs +0 -5
  710. package/esm2022/utils/color/get-gradient-data.mjs +0 -6
  711. package/esm2022/utils/color/hex-to-rgb.mjs +0 -12
  712. package/esm2022/utils/color/hex-to-rgba.mjs +0 -29
  713. package/esm2022/utils/color/hsv-to-rgb.mjs +0 -11
  714. package/esm2022/utils/color/index.mjs +0 -10
  715. package/esm2022/utils/color/parse-color.mjs +0 -27
  716. package/esm2022/utils/color/parse-gradient.mjs +0 -70
  717. package/esm2022/utils/color/rgb-to-hex.mjs +0 -4
  718. package/esm2022/utils/color/rgb-to-hsv.mjs +0 -8
  719. package/esm2022/utils/color/rgba-to-hex.mjs +0 -23
  720. package/esm2022/utils/color/taiga-ui-cdk-utils-color.mjs +0 -5
  721. package/esm2022/utils/di/create-options.mjs +0 -9
  722. package/esm2022/utils/di/index.mjs +0 -3
  723. package/esm2022/utils/di/taiga-ui-cdk-utils-di.mjs +0 -5
  724. package/esm2022/utils/dom/contains-or-after.mjs +0 -10
  725. package/esm2022/utils/dom/element-checks.mjs +0 -20
  726. package/esm2022/utils/dom/event-checks.mjs +0 -4
  727. package/esm2022/utils/dom/get-actual-target.mjs +0 -7
  728. package/esm2022/utils/dom/get-clipboard-data-text.mjs +0 -11
  729. package/esm2022/utils/dom/get-document-or-shadow-root.mjs +0 -6
  730. package/esm2022/utils/dom/get-element-obscurers.mjs +0 -44
  731. package/esm2022/utils/dom/get-element-offset.mjs +0 -20
  732. package/esm2022/utils/dom/get-element-point.mjs +0 -6
  733. package/esm2022/utils/dom/get-selected-text.mjs +0 -15
  734. package/esm2022/utils/dom/index.mjs +0 -20
  735. package/esm2022/utils/dom/inject-element.mjs +0 -5
  736. package/esm2022/utils/dom/is-current-target.mjs +0 -4
  737. package/esm2022/utils/dom/is-element-editable.mjs +0 -6
  738. package/esm2022/utils/dom/is-inside-iframe.mjs +0 -7
  739. package/esm2022/utils/dom/is-node-in.mjs +0 -14
  740. package/esm2022/utils/dom/point-to-client-rect.mjs +0 -17
  741. package/esm2022/utils/dom/retarget-boundary-crossing.mjs +0 -16
  742. package/esm2022/utils/dom/taiga-ui-cdk-utils-dom.mjs +0 -5
  743. package/esm2022/utils/dom/value-binding.mjs +0 -29
  744. package/esm2022/utils/dom/value.mjs +0 -78
  745. package/esm2022/utils/focus/blur-native-focused.mjs +0 -12
  746. package/esm2022/utils/focus/focused-in.mjs +0 -8
  747. package/esm2022/utils/focus/get-closest-focusable.mjs +0 -26
  748. package/esm2022/utils/focus/get-native-focused.mjs +0 -16
  749. package/esm2022/utils/focus/index.mjs +0 -10
  750. package/esm2022/utils/focus/is-native-focused-in.mjs +0 -12
  751. package/esm2022/utils/focus/is-native-focused.mjs +0 -15
  752. package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +0 -33
  753. package/esm2022/utils/focus/is-native-mouse-focusable.mjs +0 -7
  754. package/esm2022/utils/focus/move-focus.mjs +0 -19
  755. package/esm2022/utils/focus/taiga-ui-cdk-utils-focus.mjs +0 -5
  756. package/esm2022/utils/index.mjs +0 -8
  757. package/esm2022/utils/math/clamp.mjs +0 -16
  758. package/esm2022/utils/math/in-range.mjs +0 -9
  759. package/esm2022/utils/math/index.mjs +0 -11
  760. package/esm2022/utils/math/normalize-to-int-number.mjs +0 -22
  761. package/esm2022/utils/math/quantize.mjs +0 -15
  762. package/esm2022/utils/math/round-with.mjs +0 -14
  763. package/esm2022/utils/math/round.mjs +0 -42
  764. package/esm2022/utils/math/sum.mjs +0 -7
  765. package/esm2022/utils/math/taiga-ui-cdk-utils-math.mjs +0 -5
  766. package/esm2022/utils/math/to-int.mjs +0 -4
  767. package/esm2022/utils/math/to-integer.mjs +0 -4
  768. package/esm2022/utils/math/to-radians.mjs +0 -7
  769. package/esm2022/utils/miscellaneous/array-remove.mjs +0 -4
  770. package/esm2022/utils/miscellaneous/array-shallow-equals.mjs +0 -4
  771. package/esm2022/utils/miscellaneous/array-toggle.mjs +0 -8
  772. package/esm2022/utils/miscellaneous/change-date-separator.mjs +0 -3
  773. package/esm2022/utils/miscellaneous/count-filled-controls.mjs +0 -13
  774. package/esm2022/utils/miscellaneous/create-token.mjs +0 -16
  775. package/esm2022/utils/miscellaneous/default-sort.mjs +0 -11
  776. package/esm2022/utils/miscellaneous/directive-binding.mjs +0 -26
  777. package/esm2022/utils/miscellaneous/directive-listener.mjs +0 -8
  778. package/esm2022/utils/miscellaneous/distance-between-touches.mjs +0 -4
  779. package/esm2022/utils/miscellaneous/ease-in-out-quad.mjs +0 -7
  780. package/esm2022/utils/miscellaneous/flat-length.mjs +0 -9
  781. package/esm2022/utils/miscellaneous/font-size-watcher.mjs +0 -30
  782. package/esm2022/utils/miscellaneous/get-original-array-from-query-list.mjs +0 -15
  783. package/esm2022/utils/miscellaneous/index.mjs +0 -31
  784. package/esm2022/utils/miscellaneous/is-control-empty.mjs +0 -4
  785. package/esm2022/utils/miscellaneous/is-falsy.mjs +0 -4
  786. package/esm2022/utils/miscellaneous/is-number.mjs +0 -4
  787. package/esm2022/utils/miscellaneous/is-object.mjs +0 -4
  788. package/esm2022/utils/miscellaneous/is-present.mjs +0 -4
  789. package/esm2022/utils/miscellaneous/is-string.mjs +0 -4
  790. package/esm2022/utils/miscellaneous/is-valid-url.mjs +0 -13
  791. package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +0 -16
  792. package/esm2022/utils/miscellaneous/nullable-same.mjs +0 -18
  793. package/esm2022/utils/miscellaneous/obfuscate.mjs +0 -53
  794. package/esm2022/utils/miscellaneous/provide-options.mjs +0 -11
  795. package/esm2022/utils/miscellaneous/provide.mjs +0 -4
  796. package/esm2022/utils/miscellaneous/pure.mjs +0 -83
  797. package/esm2022/utils/miscellaneous/px.mjs +0 -9
  798. package/esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs +0 -5
  799. package/esm2022/utils/miscellaneous/uniq-by.mjs +0 -6
  800. package/esm2022/utils/miscellaneous/with-styles.mjs +0 -17
  801. package/esm2022/utils/taiga-ui-cdk-utils.mjs +0 -5
  802. package/fesm2022/taiga-ui-cdk-directives-for.mjs +0 -40
  803. package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +0 -1
  804. package/utils/browser/is-apple.d.ts +0 -11
  805. package/utils/browser/is-ios.d.ts +0 -6
  806. package/utils/miscellaneous/directive-listener.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-swipe.mjs","sources":["../../../projects/cdk/directives/swipe/swipe.options.ts","../../../projects/cdk/directives/swipe/swipe.service.ts","../../../projects/cdk/directives/swipe/swipe.directive.ts","../../../projects/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {type TuiSwipeOptions} from './swipe.types';\n\nexport const TUI_SWIPE_OPTIONS = new InjectionToken<TuiSwipeOptions>(\n ngDevMode ? 'TUI_SWIPE_OPTIONS' : '',\n {\n factory: () => ({\n timeout: 500,\n threshold: 30,\n }),\n },\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {filter, map, merge, Observable, pairwise} from 'rxjs';\n\nimport {TUI_SWIPE_OPTIONS} from './swipe.options';\nimport {type TuiSwipeDirection, type TuiSwipeEvent} from './swipe.types';\n\n@Injectable()\nexport class TuiSwipeService extends Observable<TuiSwipeEvent> {\n constructor() {\n const doc = inject(DOCUMENT);\n const el = tuiInjectElement();\n const {timeout, threshold} = inject(TUI_SWIPE_OPTIONS);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}),\n tuiTypedFromEvent(doc, 'touchend'),\n )\n .pipe(\n pairwise(),\n filter(\n ([first, second]) =>\n !!first.touches.length &&\n first.touches[0]?.identifier ===\n second.changedTouches[0]?.identifier,\n ),\n map(([start, end]) => {\n const startX = start.touches[0]?.clientX ?? 0;\n const startY = start.touches[0]?.clientY ?? 0;\n const endX = end.changedTouches[0]?.clientX ?? 0;\n const endY = end.changedTouches[0]?.clientY ?? 0;\n\n const distanceX = startX - endX;\n const distanceY = startY - endY;\n const duration = end.timeStamp - start.timeStamp;\n\n if (\n (Math.abs(distanceX) > threshold ||\n Math.abs(distanceY) > threshold) &&\n duration < timeout\n ) {\n return {\n direction: tuiGetSwipeDirection(distanceX, distanceY),\n events: [start, end] as [TouchEvent, TouchEvent],\n };\n }\n\n return null;\n }),\n filter(tuiIsPresent),\n )\n .subscribe(subscriber),\n );\n }\n}\n\nfunction tuiGetSwipeDirection(deltaX: number, deltaY: number): TuiSwipeDirection {\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n return deltaY > 0 ? 'top' : 'bottom';\n }\n\n return deltaX > 0 ? 'left' : 'right';\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiSwipeService} from './swipe.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiSwipe]',\n providers: [TuiSwipeService],\n})\nexport class TuiSwipe {\n @Output()\n public readonly tuiSwipe = inject(TuiSwipeService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAIa,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,OAAO,EAAE,GAAG;AACZ,QAAA,SAAS,EAAE,EAAE;KAChB,CAAC;AACL,CAAA;;ACDL,MACa,eAAgB,SAAQ,UAAyB,CAAA;AAC1D,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC7B,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;QAC9B,MAAM,EAAC,OAAO,EAAE,SAAS,EAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAEvD,KAAK,CAAC,CAAC,UAAU,KACb,KAAK,CACD,iBAAiB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,EACpD,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CACrC;aACI,IAAI,CACD,QAAQ,EAAE,EACV,MAAM,CACF,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,KACZ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;AACtB,YAAA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU;AACxB,gBAAA,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAC/C,EACD,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,KAAI;AACjB,YAAA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC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AI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QACrC,OAAO,MAAM,GAAG,CAAC,GAAG,KAAK,GAAG,QAAQ,CAAC;AACxC,KAAA;IAED,OAAO,MAAM,GAAG,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC;AACzC;;AC9DA,MAKa,QAAQ,CAAA;AALrB,IAAA,WAAA,GAAA;AAOoB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AACtD,KAAA;+GAHY,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,SAAA,EAFN,CAAC,eAAe,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAEnB,QAAQ,EAAA,UAAA,EAAA,CAAA;kBALpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,YAAY;oBACtB,SAAS,EAAE,CAAC,eAAe,CAAC;AAC/B,iBAAA,CAAA;8BAGmB,QAAQ,EAAA,CAAA;sBADvB,MAAM;;;ACVX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-swipe.mjs","sources":["../../../projects/cdk/directives/swipe/swipe.options.ts","../../../projects/cdk/directives/swipe/swipe.service.ts","../../../projects/cdk/directives/swipe/swipe.directive.ts","../../../projects/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {type TuiSwipeOptions} from './swipe.types';\n\nexport const TUI_SWIPE_OPTIONS = new InjectionToken<TuiSwipeOptions>(\n ngDevMode ? 'TUI_SWIPE_OPTIONS' : '',\n {\n factory: () => ({\n timeout: 500,\n threshold: 30,\n }),\n },\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {filter, map, merge, Observable, pairwise} from 'rxjs';\n\nimport {TUI_SWIPE_OPTIONS} from './swipe.options';\nimport {type TuiSwipeDirection, type TuiSwipeEvent} from './swipe.types';\n\n@Injectable()\nexport class TuiSwipeService extends Observable<TuiSwipeEvent> {\n constructor() {\n const doc = inject(DOCUMENT);\n const el = tuiInjectElement();\n const {timeout, threshold} = inject(TUI_SWIPE_OPTIONS);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}),\n tuiTypedFromEvent(doc, 'touchend'),\n )\n .pipe(\n pairwise(),\n filter(\n ([first, second]) =>\n !!first.touches.length &&\n first.touches[0]?.identifier ===\n second.changedTouches[0]?.identifier,\n ),\n map(([start, end]) => {\n const startX = start.touches[0]?.clientX ?? 0;\n const startY = start.touches[0]?.clientY ?? 0;\n const endX = end.changedTouches[0]?.clientX ?? 0;\n const endY = end.changedTouches[0]?.clientY ?? 0;\n\n const distanceX = startX - endX;\n const distanceY = startY - endY;\n const duration = end.timeStamp - start.timeStamp;\n\n if (\n (Math.abs(distanceX) > threshold ||\n Math.abs(distanceY) > threshold) &&\n duration < timeout\n ) {\n return {\n direction: tuiGetSwipeDirection(distanceX, distanceY),\n events: [start, end] as [TouchEvent, TouchEvent],\n };\n }\n\n return null;\n }),\n filter(tuiIsPresent),\n )\n .subscribe(subscriber),\n );\n }\n}\n\nfunction tuiGetSwipeDirection(deltaX: number, deltaY: number): TuiSwipeDirection {\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n return deltaY > 0 ? 'top' : 'bottom';\n }\n\n return deltaX > 0 ? 'left' : 'right';\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiSwipeService} from './swipe.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiSwipe]',\n providers: [TuiSwipeService],\n})\nexport class TuiSwipe {\n @Output()\n public readonly tuiSwipe = inject(TuiSwipeService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAIa,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,OAAO,EAAE,GAAG;AACZ,QAAA,SAAS,EAAE,EAAE;KAChB,CAAC;AACL,CAAA;;ACAC,MAAO,eAAgB,SAAQ,UAAyB,CAAA;AAC1D,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE;QAC7B,MAAM,EAAC,OAAO,EAAE,SAAS,EAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC;QAEtD,KAAK,CAAC,CAAC,UAAU,KACb,KAAK,CACD,iBAAiB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,EACpD,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC;aAEjC,IAAI,CACD,QAAQ,EAAE,EACV,MAAM,CACF,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,KACZ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;AACtB,YAAA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU;AACxB,gBAAA,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAC/C,EACD,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,KAAI;AACjB,YAAA,MAAM,MAA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,GAAG,CAAC,MAAM,CAAC,EAAE;QACrC,OAAO,MAAM,GAAG,CAAC,GAAG,KAAK,GAAG,QAAQ;;IAGxC,OAAO,MAAM,GAAG,CAAC,GAAG,MAAM,GAAG,OAAO;AACxC;;MCzDa,QAAQ,CAAA;AALrB,IAAA,WAAA,GAAA;AAOoB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC;AACrD;+GAHY,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,SAAA,EAFN,CAAC,eAAe,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAEnB,QAAQ,EAAA,UAAA,EAAA,CAAA;kBALpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,YAAY;oBACtB,SAAS,EAAE,CAAC,eAAe,CAAC;AAC/B,iBAAA;8BAGmB,QAAQ,EAAA,CAAA;sBADvB;;;ACVL;;AAEG;;;;"}
@@ -11,10 +11,10 @@ class TuiTransitioned {
11
11
  });
12
12
  });
13
13
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTransitioned, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
15
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiTransitioned, isStandalone: true, selector: "[tuiTransitioned]", host: { properties: { "style.transition": "\"none\"" } }, ngImport: i0 }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTransitioned, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
15
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiTransitioned, isStandalone: true, selector: "[tuiTransitioned]", host: { properties: { "style.transition": "\"none\"" } }, ngImport: i0 }); }
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTransitioned, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTransitioned, decorators: [{
18
18
  type: Directive,
19
19
  args: [{
20
20
  standalone: true,
@@ -23,7 +23,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
23
23
  '[style.transition]': '"none"',
24
24
  },
25
25
  }]
26
- }], ctorParameters: function () { return []; } });
26
+ }], ctorParameters: () => [] });
27
27
 
28
28
  /**
29
29
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-transitioned.mjs","sources":["../../../projects/cdk/directives/transitioned/transitioned.directive.ts","../../../projects/cdk/directives/transitioned/taiga-ui-cdk-directives-transitioned.ts"],"sourcesContent":["import {Directive, inject, NgZone} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiTransitioned]',\n host: {\n '[style.transition]': '\"none\"',\n },\n})\nexport class TuiTransitioned {\n constructor() {\n const el = tuiInjectElement();\n\n inject(NgZone).runOutsideAngular(() => {\n setTimeout(() => {\n el.style.transition = '';\n });\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAOa,eAAe,CAAA;AACxB,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;AAE9B,QAAA,MAAM,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,MAAK;YAClC,UAAU,CAAC,MAAK;AACZ,gBAAA,EAAE,CAAC,KAAK,CAAC,UAAU,GAAG,EAAE,CAAC;AAC7B,aAAC,CAAC,CAAC;AACP,SAAC,CAAC,CAAC;KACN;+GATQ,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,IAAI,EAAE;AACF,wBAAA,oBAAoB,EAAE,QAAQ;AACjC,qBAAA;AACJ,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-transitioned.mjs","sources":["../../../projects/cdk/directives/transitioned/transitioned.directive.ts","../../../projects/cdk/directives/transitioned/taiga-ui-cdk-directives-transitioned.ts"],"sourcesContent":["import {Directive, inject, NgZone} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiTransitioned]',\n host: {\n '[style.transition]': '\"none\"',\n },\n})\nexport class TuiTransitioned {\n constructor() {\n const el = tuiInjectElement();\n\n inject(NgZone).runOutsideAngular(() => {\n setTimeout(() => {\n el.style.transition = '';\n });\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAUa,eAAe,CAAA;AACxB,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE;AAE7B,QAAA,MAAM,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,MAAK;YAClC,UAAU,CAAC,MAAK;AACZ,gBAAA,EAAE,CAAC,KAAK,CAAC,UAAU,GAAG,EAAE;AAC5B,aAAC,CAAC;AACN,SAAC,CAAC;;+GARG,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,IAAI,EAAE;AACF,wBAAA,oBAAoB,EAAE,QAAQ;AACjC,qBAAA;AACJ,iBAAA;;;ACTD;;AAEG;;;;"}
@@ -15,10 +15,10 @@ class TuiValidator {
15
15
  ngOnChanges() {
16
16
  this.onChange();
17
17
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiValidator, isStandalone: true, selector: "[tuiValidator]", inputs: { validate: ["tuiValidator", "validate"] }, providers: [tuiProvide(NG_VALIDATORS, TuiValidator, true)], usesOnChanges: true, ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiValidator, isStandalone: true, selector: "[tuiValidator]", inputs: { validate: ["tuiValidator", "validate"] }, providers: [tuiProvide(NG_VALIDATORS, TuiValidator, true)], usesOnChanges: true, ngImport: i0 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValidator, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValidator, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
24
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-validator.mjs","sources":["../../../projects/cdk/directives/validator/validator.directive.ts","../../../projects/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, type OnChanges} from '@angular/core';\nimport {NG_VALIDATORS, type Validator, Validators} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiProvide} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiValidator]',\n inputs: ['validate: tuiValidator'],\n providers: [tuiProvide(NG_VALIDATORS, TuiValidator, true)],\n})\nexport class TuiValidator implements Validator, OnChanges {\n protected onChange = EMPTY_FUNCTION;\n\n public validate = Validators.nullValidator;\n\n public registerOnValidatorChange(onChange: (...args: any[]) => void): void {\n this.onChange = onChange;\n }\n\n public ngOnChanges(): void {\n this.onChange();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKA,MAMa,YAAY,CAAA;AANzB,IAAA,WAAA,GAAA;QAOc,IAAQ,CAAA,QAAA,GAAG,cAAc,CAAC;AAE7B,QAAA,IAAA,CAAA,QAAQ,GAAG,UAAU,CAAC,aAAa,CAAC;AAS9C,KAAA;AAPU,IAAA,yBAAyB,CAAC,QAAkC,EAAA;AAC/D,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAEM,WAAW,GAAA;QACd,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;+GAXQ,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,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,cAAA,EAAA,UAAA,CAAA,EAAA,EAAA,SAAA,EAFV,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAEjD,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,MAAM,EAAE,CAAC,wBAAwB,CAAC;oBAClC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAAgB,YAAA,EAAA,IAAI,CAAC,CAAC;AAC7D,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-validator.mjs","sources":["../../../projects/cdk/directives/validator/validator.directive.ts","../../../projects/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, type OnChanges} from '@angular/core';\nimport {NG_VALIDATORS, type Validator, Validators} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiProvide} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiValidator]',\n inputs: ['validate: tuiValidator'],\n providers: [tuiProvide(NG_VALIDATORS, TuiValidator, true)],\n})\nexport class TuiValidator implements Validator, OnChanges {\n protected onChange = EMPTY_FUNCTION;\n\n public validate = Validators.nullValidator;\n\n public registerOnValidatorChange(onChange: (...args: any[]) => void): void {\n this.onChange = onChange;\n }\n\n public ngOnChanges(): void {\n this.onChange();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,YAAY,CAAA;AANzB,IAAA,WAAA,GAAA;QAOc,IAAQ,CAAA,QAAA,GAAG,cAAc;AAE5B,QAAA,IAAA,CAAA,QAAQ,GAAG,UAAU,CAAC,aAAa;AAS7C;AAPU,IAAA,yBAAyB,CAAC,QAAkC,EAAA;AAC/D,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;;IAGrB,WAAW,GAAA;QACd,IAAI,CAAC,QAAQ,EAAE;;+GAVV,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,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,cAAA,EAAA,UAAA,CAAA,EAAA,EAAA,SAAA,EAFV,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAEjD,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,MAAM,EAAE,CAAC,wBAAwB,CAAC;oBAClC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAAgB,YAAA,EAAA,IAAI,CAAC,CAAC;AAC7D,iBAAA;;;ACVD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Directive, Output } from '@angular/core';
2
+ import { inject, Output, Directive } from '@angular/core';
3
3
  import { ControlContainer, NgControl } from '@angular/forms';
4
4
  import { Subject, distinctUntilChanged, switchAll, EMPTY } from 'rxjs';
5
5
 
@@ -13,10 +13,10 @@ class TuiValueChanges {
13
13
  ngDoCheck() {
14
14
  this.refresh$.next(this.control?.valueChanges || this.container?.valueChanges || EMPTY);
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValueChanges, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiValueChanges, isStandalone: true, selector: "[tuiValueChanges]", outputs: { tuiValueChanges: "tuiValueChanges" }, ngImport: i0 }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValueChanges, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiValueChanges, isStandalone: true, selector: "[tuiValueChanges]", outputs: { tuiValueChanges: "tuiValueChanges" }, ngImport: i0 }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValueChanges, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValueChanges, decorators: [{
20
20
  type: Directive,
21
21
  args: [{
22
22
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-value-changes.mjs","sources":["../../../projects/cdk/directives/value-changes/value-changes.directive.ts","../../../projects/cdk/directives/value-changes/taiga-ui-cdk-directives-value-changes.ts"],"sourcesContent":["import {Directive, type DoCheck, inject, Output} from '@angular/core';\nimport {ControlContainer, NgControl} from '@angular/forms';\nimport {distinctUntilChanged, EMPTY, type Observable, Subject, switchAll} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiValueChanges]',\n})\nexport class TuiValueChanges<T> implements DoCheck {\n private readonly container = inject(ControlContainer, {optional: true});\n private readonly control = inject(NgControl, {optional: true});\n private readonly refresh$ = new Subject<Observable<T>>();\n\n @Output()\n public readonly tuiValueChanges = this.refresh$.pipe(\n distinctUntilChanged(),\n switchAll(),\n distinctUntilChanged(),\n );\n\n public ngDoCheck(): void {\n this.refresh$.next(\n this.control?.valueChanges || this.container?.valueChanges || EMPTY,\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA,MAIa,eAAe,CAAA;AAJ5B,IAAA,WAAA,GAAA;QAKqB,IAAS,CAAA,SAAA,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;QACvD,IAAO,CAAA,OAAA,GAAG,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;AAC9C,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAiB,CAAC;AAGzC,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAChD,oBAAoB,EAAE,EACtB,SAAS,EAAE,EACX,oBAAoB,EAAE,CACzB,CAAC;AAOL,KAAA;IALU,SAAS,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CACd,IAAI,CAAC,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC,SAAS,EAAE,YAAY,IAAI,KAAK,CACtE,CAAC;KACL;+GAhBQ,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAChC,iBAAA,CAAA;8BAOmB,eAAe,EAAA,CAAA;sBAD9B,MAAM;;;ACbX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-value-changes.mjs","sources":["../../../projects/cdk/directives/value-changes/value-changes.directive.ts","../../../projects/cdk/directives/value-changes/taiga-ui-cdk-directives-value-changes.ts"],"sourcesContent":["import {Directive, type DoCheck, inject, Output} from '@angular/core';\nimport {ControlContainer, NgControl} from '@angular/forms';\nimport {distinctUntilChanged, EMPTY, type Observable, Subject, switchAll} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiValueChanges]',\n})\nexport class TuiValueChanges<T> implements DoCheck {\n private readonly container = inject(ControlContainer, {optional: true});\n private readonly control = inject(NgControl, {optional: true});\n private readonly refresh$ = new Subject<Observable<T>>();\n\n @Output()\n public readonly tuiValueChanges = this.refresh$.pipe(\n distinctUntilChanged(),\n switchAll(),\n distinctUntilChanged(),\n );\n\n public ngDoCheck(): void {\n this.refresh$.next(\n this.control?.valueChanges || this.container?.valueChanges || EMPTY,\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAQa,eAAe,CAAA;AAJ5B,IAAA,WAAA,GAAA;QAKqB,IAAS,CAAA,SAAA,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QACtD,IAAO,CAAA,OAAA,GAAG,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAC7C,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAiB;AAGxC,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAChD,oBAAoB,EAAE,EACtB,SAAS,EAAE,EACX,oBAAoB,EAAE,CACzB;AAOJ;IALU,SAAS,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CACd,IAAI,CAAC,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC,SAAS,EAAE,YAAY,IAAI,KAAK,CACtE;;+GAfI,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAChC,iBAAA;8BAOmB,eAAe,EAAA,CAAA;sBAD9B;;;ACbL;;AAEG;;;;"}
@@ -21,10 +21,10 @@ class TuiVisualViewport {
21
21
  this.style.setProperty('--tui-viewport-vw', tuiPx(this.w.innerWidth / 100));
22
22
  });
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiVisualViewport, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
25
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiVisualViewport, isStandalone: true, selector: "[tuiVisualViewport]", ngImport: i0 }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiVisualViewport, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
25
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiVisualViewport, isStandalone: true, selector: "[tuiVisualViewport]", ngImport: i0 }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiVisualViewport, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiVisualViewport, decorators: [{
28
28
  type: Directive,
29
29
  args: [{
30
30
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-visual-viewport.mjs","sources":["../../../projects/cdk/directives/visual-viewport/visual-viewport.directive.ts","../../../projects/cdk/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.ts"],"sourcesContent":["import {Directive, inject} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {ViewportService} from '@ng-web-apis/screen-orientation';\nimport {tuiInjectElement, tuiPx} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiVisualViewport]',\n})\nexport class TuiVisualViewport {\n private readonly w = inject(WA_WINDOW);\n private readonly style = tuiInjectElement().style;\n\n protected readonly $ = inject(ViewportService)\n .pipe(takeUntilDestroyed())\n .subscribe(({offsetLeft, offsetTop, height, width, scale}) => {\n this.style.setProperty('--tui-viewport-x', tuiPx(offsetLeft));\n this.style.setProperty('--tui-viewport-y', tuiPx(offsetTop));\n this.style.setProperty('--tui-viewport-height', tuiPx(height));\n this.style.setProperty('--tui-viewport-width', tuiPx(width));\n this.style.setProperty('--tui-viewport-scale', String(scale));\n this.style.setProperty('--tui-viewport-vh', tuiPx(this.w.innerHeight / 100));\n this.style.setProperty('--tui-viewport-vw', tuiPx(this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G,CAAC,CAAC,CAAC;AAChF,SAAC,CAAC,CAAC;AACV,KAAA;+GAfY,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAClC,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-visual-viewport.mjs","sources":["../../../projects/cdk/directives/visual-viewport/visual-viewport.directive.ts","../../../projects/cdk/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.ts"],"sourcesContent":["import {Directive, inject} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {ViewportService} from '@ng-web-apis/screen-orientation';\nimport {tuiInjectElement, tuiPx} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: '[tuiVisualViewport]',\n})\nexport class TuiVisualViewport {\n private readonly w = inject(WA_WINDOW);\n private readonly style = tuiInjectElement().style;\n\n protected readonly $ = inject(ViewportService)\n .pipe(takeUntilDestroyed())\n .subscribe(({offsetLeft, offsetTop, height, width, scale}) => {\n this.style.setProperty('--tui-viewport-x', tuiPx(offsetLeft));\n this.style.setProperty('--tui-viewport-y', tuiPx(offsetTop));\n this.style.setProperty('--tui-viewport-height', tuiPx(height));\n this.style.setProperty('--tui-viewport-width', tuiPx(width));\n this.style.setProperty('--tui-viewport-scale', String(scale));\n this.style.setProperty('--tui-viewport-vh', tuiPx(this.w.innerHeight / 100));\n this.style.setProperty('--tui-viewport-vw', tuiPx(this.w.innerWidth / 100));\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAUa,iBAAiB,CAAA;AAJ9B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC;AACrB,QAAA,IAAA,CAAA,KAAK,GAAG,gBAAgB,EAAE,CAAC,KAAK;AAE9B,QAAA,IAAA,CAAA,CAAC,GAAG,MAAM,CAAC,eAAe;aACxC,IAAI,CAAC,kBAAkB,EAAE;AACzB,aAAA,SAAS,CAAC,CAAC,EAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAC,KAAI;AACzD,YAAA,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,kBAAkB,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;AAC7D,YAAA,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;AAC5D,YAAA,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AAC9D,YAAA,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5D,YAAA,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7D,YAAA,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC;AAC5E,YAAA,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC;AAC/E,SAAC,CAAC;AACT;+GAfY,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAClC,iBAAA;;;ACTD;;AAEG;;;;"}
@@ -0,0 +1,29 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, inject, EnvironmentInjector, createComponent, Directive } from '@angular/core';
3
+
4
+ const TUI_STYLES = new InjectionToken(ngDevMode ? 'TUI_STYLES' : '');
5
+ function provideStyles(useValue) {
6
+ return { provide: TUI_STYLES, multi: true, useValue };
7
+ }
8
+ // Use it after this is fixed: https://github.com/angular/angular/issues/57846
9
+ class TuiWithStyles {
10
+ constructor() {
11
+ this.injector = inject(EnvironmentInjector);
12
+ this.refs = inject(TUI_STYLES, { self: true }).map((component) => createComponent(component, { environmentInjector: this.injector }));
13
+ }
14
+ ngOnDestroy() {
15
+ this.refs.forEach((ref) => ref.destroy());
16
+ }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWithStyles, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
18
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiWithStyles, isStandalone: true, ngImport: i0 }); }
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWithStyles, decorators: [{
21
+ type: Directive
22
+ }] });
23
+
24
+ /**
25
+ * Generated bundle index. Do not edit.
26
+ */
27
+
28
+ export { TuiWithStyles, provideStyles };
29
+ //# sourceMappingURL=taiga-ui-cdk-directives-with-styles.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-cdk-directives-with-styles.mjs","sources":["../../../projects/cdk/directives/with-styles/with-styles.directive.ts","../../../projects/cdk/directives/with-styles/taiga-ui-cdk-directives-with-styles.ts"],"sourcesContent":["import {\n createComponent,\n Directive,\n EnvironmentInjector,\n inject,\n InjectionToken,\n type OnDestroy,\n type Type,\n type ValueProvider,\n} from '@angular/core';\n\nconst TUI_STYLES = new InjectionToken<ReadonlyArray<Type<unknown>>>(\n ngDevMode ? 'TUI_STYLES' : '',\n);\n\nexport function provideStyles(useValue: Type<unknown>): ValueProvider {\n return {provide: TUI_STYLES, multi: true, useValue};\n}\n\n// Use it after this is fixed: https://github.com/angular/angular/issues/57846\n@Directive()\nexport class TuiWithStyles implements OnDestroy {\n private readonly injector = inject(EnvironmentInjector);\n private readonly refs = inject(TUI_STYLES, {self: true}).map((component) =>\n createComponent(component, {environmentInjector: this.injector}),\n );\n\n public ngOnDestroy(): void {\n this.refs.forEach((ref) => ref.destroy());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAWA,MAAM,UAAU,GAAG,IAAI,cAAc,CACjC,SAAS,GAAG,YAAY,GAAG,EAAE,CAChC;AAEK,SAAU,aAAa,CAAC,QAAuB,EAAA;IACjD,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAC;AACvD;AAEA;MAEa,aAAa,CAAA;AAD1B,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACtC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,KACnE,eAAe,CAAC,SAAS,EAAE,EAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CACnE;AAKJ;IAHU,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC;;+GAPpC,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB;;;ACpBD;;AAEG;;;;"}
@@ -45,21 +45,21 @@ class TuiZoomService extends Observable {
45
45
  event: wheel,
46
46
  })))).subscribe(subscriber));
47
47
  }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiZoomService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
49
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiZoomService }); }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiZoomService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
49
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiZoomService }); }
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiZoomService, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiZoomService, decorators: [{
52
52
  type: Injectable
53
- }], ctorParameters: function () { return []; } });
53
+ }], ctorParameters: () => [] });
54
54
 
55
55
  class TuiZoom {
56
56
  constructor() {
57
57
  this.tuiZoom = inject(TuiZoomService);
58
58
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiZoom, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
60
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiZoom, isStandalone: true, selector: "[tuiZoom]", outputs: { tuiZoom: "tuiZoom" }, host: { properties: { "style.touch-action": "\"none\"" } }, providers: [TuiZoomService], ngImport: i0 }); }
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiZoom, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
60
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiZoom, isStandalone: true, selector: "[tuiZoom]", outputs: { tuiZoom: "tuiZoom" }, host: { properties: { "style.touch-action": "\"none\"" } }, providers: [TuiZoomService], ngImport: i0 }); }
61
61
  }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiZoom, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiZoom, decorators: [{
63
63
  type: Directive,
64
64
  args: [{
65
65
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-zoom.mjs","sources":["../../../projects/cdk/directives/zoom/zoom.options.ts","../../../projects/cdk/directives/zoom/zoom.service.ts","../../../projects/cdk/directives/zoom/zoom.directive.ts","../../../projects/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {type TuiZoomOptions} from './zoom.types';\n\n/**\n * Zoom options\n */\nexport const TUI_ZOOM_OPTIONS = new InjectionToken<TuiZoomOptions>(\n ngDevMode ? 'TUI_ZOOM_OPTIONS' : '',\n {\n factory: () => ({\n wheelSensitivity: 0.01,\n }),\n },\n);\n","import {inject, Injectable} from '@angular/core';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiDistanceBetweenTouches, tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {filter, map, merge, Observable, scan, switchMap, takeUntil} from 'rxjs';\n\nimport {TUI_ZOOM_OPTIONS} from './zoom.options';\nimport {type TuiZoomEvent} from './zoom.types';\n\nconst TOUCH_SENSITIVITY = 0.01;\n\n@Injectable()\nexport class TuiZoomService extends Observable<TuiZoomEvent> {\n constructor() {\n const el = tuiInjectElement();\n const {wheelSensitivity} = inject(TUI_ZOOM_OPTIONS);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}).pipe(\n filter(({touches}) => touches.length > 1),\n switchMap((startEvent) =>\n tuiTypedFromEvent(el, 'touchmove', {passive: true}).pipe(\n tuiPreventDefault(),\n scan(\n (prev, event) => {\n const distance = tuiDistanceBetweenTouches(event);\n\n return {\n event,\n distance,\n delta:\n (distance - prev.distance) *\n TOUCH_SENSITIVITY,\n };\n },\n {\n event: startEvent,\n distance: tuiDistanceBetweenTouches(startEvent),\n delta: 0,\n },\n ),\n map(({event, delta}) => {\n const clientX =\n ((event.touches[0]?.clientX ?? 0) +\n (event.touches[1]?.clientX ?? 0)) /\n 2;\n const clientY =\n ((event.touches[0]?.clientY ?? 0) +\n (event.touches[1]?.clientY ?? 0)) /\n 2;\n\n return {clientX, clientY, delta, event};\n }),\n takeUntil(tuiTypedFromEvent(el, 'touchend')),\n ),\n ),\n ),\n tuiTypedFromEvent(el, 'wheel', {passive: false}).pipe(\n tuiPreventDefault(),\n map((wheel) => ({\n clientX: wheel.clientX,\n clientY: wheel.clientY,\n delta: -wheel.deltaY * wheelSensitivity,\n event: wheel,\n })),\n ),\n ).subscribe(subscriber),\n );\n }\n}\n","import {Directive, inject} from '@angular/core';\n\nimport {TuiZoomService} from './zoom.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiZoom]',\n outputs: ['tuiZoom'],\n providers: [TuiZoomService],\n host: {\n '[style.touch-action]': '\"none\"',\n },\n})\nexport class TuiZoom {\n protected readonly tuiZoom = inject(TuiZoomService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAIA;;AAEG;AACU,MAAA,gBAAgB,GAAG,IAAI,cAAc,CAC9C,SAAS,GAAG,kBAAkB,GAAG,EAAE,EACnC;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,gBAAgB,EAAE,IAAI;KACzB,CAAC;AACL,CAAA;;ACLL,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B,MACa,cAAe,SAAQ,UAAwB,CAAA;AACxD,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;QAC9B,MAAM,EAAC,gBAAgB,EAAC,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEpD,QAAA,KAAK,CAAC,CAAC,UAAU,KACb,KAAK,CACD,iBAAiB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACrD,MAAM,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EACzC,SAAS,CAAC,CAAC,UAAU,KACjB,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACpD,iBAAiB,EAAE,EACnB,IAAI,CACA,CAAC,IAAI,EAAE,KAAK,KAAI;AACZ,YAAA,MAAM,QAAQ,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;YAElD,OAAO;gBACH,KAAK;gBACL,QAAQ;AACR,gBAAA,KAAK,EACD,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ;oBACzB,iBA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,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;mHAAd,cAAc,EAAA,CAAA,CAAA,EAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;;;ACNX,MASa,OAAO,CAAA;AATpB,IAAA,WAAA,GAAA;AAUuB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AACvD,KAAA;+GAFY,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,OAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,SAAA,EALL,CAAC,cAAc,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAKlB,OAAO,EAAA,UAAA,EAAA,CAAA;kBATnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;oBACrB,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,SAAS,EAAE,CAAC,cAAc,CAAC;AAC3B,oBAAA,IAAI,EAAE;AACF,wBAAA,sBAAsB,EAAE,QAAQ;AACnC,qBAAA;AACJ,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-zoom.mjs","sources":["../../../projects/cdk/directives/zoom/zoom.options.ts","../../../projects/cdk/directives/zoom/zoom.service.ts","../../../projects/cdk/directives/zoom/zoom.directive.ts","../../../projects/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {type TuiZoomOptions} from './zoom.types';\n\n/**\n * Zoom options\n */\nexport const TUI_ZOOM_OPTIONS = new InjectionToken<TuiZoomOptions>(\n ngDevMode ? 'TUI_ZOOM_OPTIONS' : '',\n {\n factory: () => ({\n wheelSensitivity: 0.01,\n }),\n },\n);\n","import {inject, Injectable} from '@angular/core';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiDistanceBetweenTouches, tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {filter, map, merge, Observable, scan, switchMap, takeUntil} from 'rxjs';\n\nimport {TUI_ZOOM_OPTIONS} from './zoom.options';\nimport {type TuiZoomEvent} from './zoom.types';\n\nconst TOUCH_SENSITIVITY = 0.01;\n\n@Injectable()\nexport class TuiZoomService extends Observable<TuiZoomEvent> {\n constructor() {\n const el = tuiInjectElement();\n const {wheelSensitivity} = inject(TUI_ZOOM_OPTIONS);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}).pipe(\n filter(({touches}) => touches.length > 1),\n switchMap((startEvent) =>\n tuiTypedFromEvent(el, 'touchmove', {passive: true}).pipe(\n tuiPreventDefault(),\n scan(\n (prev, event) => {\n const distance = tuiDistanceBetweenTouches(event);\n\n return {\n event,\n distance,\n delta:\n (distance - prev.distance) *\n TOUCH_SENSITIVITY,\n };\n },\n {\n event: startEvent,\n distance: tuiDistanceBetweenTouches(startEvent),\n delta: 0,\n },\n ),\n map(({event, delta}) => {\n const clientX =\n ((event.touches[0]?.clientX ?? 0) +\n (event.touches[1]?.clientX ?? 0)) /\n 2;\n const clientY =\n ((event.touches[0]?.clientY ?? 0) +\n (event.touches[1]?.clientY ?? 0)) /\n 2;\n\n return {clientX, clientY, delta, event};\n }),\n takeUntil(tuiTypedFromEvent(el, 'touchend')),\n ),\n ),\n ),\n tuiTypedFromEvent(el, 'wheel', {passive: false}).pipe(\n tuiPreventDefault(),\n map((wheel) => ({\n clientX: wheel.clientX,\n clientY: wheel.clientY,\n delta: -wheel.deltaY * wheelSensitivity,\n event: wheel,\n })),\n ),\n ).subscribe(subscriber),\n );\n }\n}\n","import {Directive, inject} from '@angular/core';\n\nimport {TuiZoomService} from './zoom.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiZoom]',\n outputs: ['tuiZoom'],\n providers: [TuiZoomService],\n host: {\n '[style.touch-action]': '\"none\"',\n },\n})\nexport class TuiZoom {\n protected readonly tuiZoom = inject(TuiZoomService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAIA;;AAEG;AACU,MAAA,gBAAgB,GAAG,IAAI,cAAc,CAC9C,SAAS,GAAG,kBAAkB,GAAG,EAAE,EACnC;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,gBAAgB,EAAE,IAAI;KACzB,CAAC;AACL,CAAA;;ACLL,MAAM,iBAAiB,GAAG,IAAI;AAGxB,MAAO,cAAe,SAAQ,UAAwB,CAAA;AACxD,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE;QAC7B,MAAM,EAAC,gBAAgB,EAAC,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAEnD,QAAA,KAAK,CAAC,CAAC,UAAU,KACb,KAAK,CACD,iBAAiB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACrD,MAAM,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EACzC,SAAS,CAAC,CAAC,UAAU,KACjB,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACpD,iBAAiB,EAAE,EACnB,IAAI,CACA,CAAC,IAAI,EAAE,KAAK,KAAI;AACZ,YAAA,MAAM,QAAQ,GAAG,yBAAyB,CAAC,KAAK,CAAC;YAEjD,OAAO;gBACH,KAAK;gBACL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AAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAd,cAAc,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B;;;MCGY,OAAO,CAAA;AATpB,IAAA,WAAA,GAAA;AAUuB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC;AACtD;+GAFY,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,OAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,SAAA,EALL,CAAC,cAAc,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAKlB,OAAO,EAAA,UAAA,EAAA,CAAA;kBATnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;oBACrB,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,SAAS,EAAE,CAAC,cAAc,CAAC;AAC3B,oBAAA,IAAI,EAAE;AACF,wBAAA,sBAAsB,EAAE,QAAQ;AACnC,qBAAA;AACJ,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -8,7 +8,6 @@ export * from '@taiga-ui/cdk/directives/droppable';
8
8
  export * from '@taiga-ui/cdk/directives/element';
9
9
  export * from '@taiga-ui/cdk/directives/focus-trap';
10
10
  export * from '@taiga-ui/cdk/directives/font-size';
11
- export * from '@taiga-ui/cdk/directives/for';
12
11
  export * from '@taiga-ui/cdk/directives/high-dpi';
13
12
  export * from '@taiga-ui/cdk/directives/hovered';
14
13
  export * from '@taiga-ui/cdk/directives/item';
@@ -26,6 +25,7 @@ export * from '@taiga-ui/cdk/directives/transitioned';
26
25
  export * from '@taiga-ui/cdk/directives/validator';
27
26
  export * from '@taiga-ui/cdk/directives/value-changes';
28
27
  export * from '@taiga-ui/cdk/directives/visual-viewport';
28
+ export * from '@taiga-ui/cdk/directives/with-styles';
29
29
  export * from '@taiga-ui/cdk/directives/zoom';
30
30
 
31
31
  /**
@@ -5,7 +5,7 @@ import { untracked, inject, ChangeDetectorRef, NgZone } from '@angular/core';
5
5
 
6
6
  function tuiCloseWatcher() {
7
7
  return new Observable((subscriber) => {
8
- let watcher = getWatcher();
8
+ let watcher;
9
9
  const setup = () => {
10
10
  watcher = getWatcher();
11
11
  watcher.onclose = () => setup();
@@ -19,9 +19,13 @@ function tuiCloseWatcher() {
19
19
  });
20
20
  }
21
21
  function getWatcher() {
22
- // @ts-ignore
23
- // eslint-disable-next-line unicorn/no-typeof-undefined
24
- return typeof CloseWatcher === 'undefined' ? { destroy: () => { } } : new CloseWatcher();
22
+ try {
23
+ // @ts-ignore
24
+ return new CloseWatcher();
25
+ }
26
+ catch {
27
+ return { destroy: () => { } };
28
+ }
25
29
  }
26
30
 
27
31
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-observables.mjs","sources":["../../../projects/cdk/observables/close-watcher.ts","../../../projects/cdk/observables/control-value.ts","../../../projects/cdk/observables/typed-from-event.ts","../../../projects/cdk/observables/drag-and-drop-from.ts","../../../projects/cdk/observables/events.ts","../../../projects/cdk/observables/if-map.ts","../../../projects/cdk/observables/must-be-present.ts","../../../projects/cdk/observables/query-list-observable.ts","../../../projects/cdk/observables/scroll-from.ts","../../../projects/cdk/observables/take-until-destroyed.ts","../../../projects/cdk/observables/untracked-scheduler.ts","../../../projects/cdk/observables/watch.ts","../../../projects/cdk/observables/zone.ts","../../../projects/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {Observable} from 'rxjs';\n\ninterface CloseWatcher {\n destroy: () => void;\n onclose?: (event: Event) => void;\n oncancel?: (event: Event) => void;\n}\n\nexport function tuiCloseWatcher(): Observable<void> {\n return new Observable((subscriber) => {\n let watcher = getWatcher();\n\n const setup = (): void => {\n watcher = getWatcher();\n watcher.onclose = () => setup();\n\n watcher.oncancel = (event) => {\n event.preventDefault();\n subscriber.next();\n };\n };\n\n setup();\n\n return () => watcher.destroy();\n });\n}\n\nfunction getWatcher(): CloseWatcher {\n // @ts-ignore\n // eslint-disable-next-line unicorn/no-typeof-undefined\n return typeof CloseWatcher === 'undefined' ? {destroy: () => {}} : new CloseWatcher();\n}\n","import {type AbstractControl, type AbstractControlDirective} from '@angular/forms';\nimport {Observable, startWith} from 'rxjs';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n */\nexport function tuiControlValue<T>(\n control?: AbstractControl | AbstractControlDirective | null,\n): Observable<T> {\n return new Observable((subscriber) =>\n control?.valueChanges?.pipe(startWith(control.value)).subscribe(subscriber),\n );\n}\n","import {fromEvent, type Observable} from 'rxjs';\n\nexport interface TuiTypedEventTarget<E> {\n addEventListener(\n type: string,\n listener: ((evt: E) => void) | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n removeEventListener(\n type: string,\n listener?: ((evt: E) => void) | null,\n options?: EventListenerOptions | boolean,\n ): void;\n}\n\n/**\n * Wrapper around {@link Event} to add typings to target and currentTarget.\n */\nexport type TuiEventWith<G extends Event, T extends TuiTypedEventTarget<G>> = G & {\n readonly currentTarget: T;\n};\n\nexport function tuiTypedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n /**\n * @note:\n * in RxJS 7 type signature `TuiTypedEventTarget<E>` !== `HasEventTargetAddRemove<E>`\n */\n return fromEvent<E>(target as any, event, options) as unknown as Observable<E>;\n}\n","import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n concat,\n endWith,\n map,\n merge,\n type Observable,\n repeat,\n take,\n takeWhile,\n} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\nexport type TuiDragStage = 'continues' | 'end' | 'start';\n\nexport class TuiDragState {\n constructor(\n public readonly stage: TuiDragStage,\n public readonly event: MouseEvent,\n ) {}\n}\n\nexport function tuiDragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n return concat(\n tuiTypedFromEvent(element, 'mousedown').pipe(\n take(1),\n map((event) => new TuiDragState('start', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mousemove').pipe(\n map((event) => new TuiDragState('continues', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mouseup'),\n tuiTypedFromEvent(ownerDocument, 'dragend'),\n ).pipe(\n take(1),\n map((event) => new TuiDragState('end', event)),\n endWith(null),\n ),\n ).pipe(takeWhile(tuiIsPresent)),\n ).pipe(repeat());\n}\n","import {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiPreventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.preventDefault());\n}\n\nexport function tuiStopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.stopPropagation());\n}\n","import {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {EMPTY, type Observable, type OperatorFunction, pipe, switchMap} from 'rxjs';\n\nexport function tuiIfMap<T, G>(\n project: (value: T) => Observable<G>,\n predicate: TuiBooleanHandler<T> = Boolean,\n): OperatorFunction<T, G> {\n return pipe(switchMap((value) => (predicate(value) ? project(value) : EMPTY)));\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type OperatorFunction} from 'rxjs';\n\nexport function tuiMustBePresent<T>(): OperatorFunction<T | null | undefined, T> {\n return map((value) => {\n if (!tuiIsPresent(value)) {\n throw new TuiValuePresentException();\n }\n\n return value;\n });\n}\n\nexport class TuiValuePresentException extends Error {\n constructor() {\n super(ngDevMode ? 'Value must present' : '');\n }\n}\n","import {type QueryList} from '@angular/core';\nimport {tuiGetOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type Observable, startWith} from 'rxjs';\n\n/**\n * Converts changes observable of a QueryList to an Observable of arrays\n */\nexport function tuiQueryListChanges<T>(\n queryList: QueryList<T>,\n): Observable<readonly T[]> {\n return queryList.changes.pipe(\n startWith(null),\n map(() => tuiGetOriginalArrayFromQueryList(queryList)),\n );\n}\n","import {type Observable} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\n/**\n * Normalizes scroll event in case element is `html` (document.documentElement)\n */\nexport function tuiScrollFrom(element: Element): Observable<Event> {\n return tuiTypedFromEvent(\n element === element.ownerDocument.documentElement\n ? element.ownerDocument\n : element,\n 'scroll',\n );\n}\n","import {type DestroyRef} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n catchError,\n defaultIfEmpty,\n EMPTY,\n type MonoTypeOperatorFunction,\n NEVER,\n pipe,\n takeUntil,\n} from 'rxjs';\n\n// NOTE: takeUntilDestroyed and DestroyRef can cause error:\n// NG0911: View has already been destroyed\n// https://github.com/angular/angular/issues/54527\nexport function tuiTakeUntilDestroyed<T>(\n destroyRef?: DestroyRef,\n): MonoTypeOperatorFunction<T> {\n return pipe(\n takeUntil(\n NEVER.pipe(\n takeUntilDestroyed(destroyRef),\n catchError(() => EMPTY),\n defaultIfEmpty(null),\n ),\n ),\n );\n}\n","import {untracked} from '@angular/core';\nimport {\n queueScheduler,\n type SchedulerAction,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport const tuiUntrackedScheduler: SchedulerLike = {\n now: queueScheduler.now.bind(queueScheduler),\n\n schedule<T>(\n work: (this: SchedulerAction<T>, state?: T) => void,\n delay?: number,\n state?: T,\n ): Subscription {\n return queueScheduler.schedule(\n function (this: SchedulerAction<T>, s?: T) {\n return untracked(() => work.call(this, s));\n },\n delay,\n state,\n );\n },\n};\n","import {ChangeDetectorRef, inject} from '@angular/core';\nimport {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiWatch<T>(\n cdr = inject(ChangeDetectorRef),\n): MonoTypeOperatorFunction<T> {\n return tap(() => cdr.markForCheck());\n}\n","import {inject, NgZone} from '@angular/core';\nimport {\n asyncScheduler,\n type MonoTypeOperatorFunction,\n Observable,\n pipe,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport function tuiZonefull<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n source.subscribe({\n next: (value) => zone.run(() => subscriber.next(value)),\n error: (error: unknown) => zone.run(() => subscriber.error(error)),\n complete: () => zone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n zone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(zone), tuiZonefull(zone));\n}\n\nclass TuiZoneScheduler implements SchedulerLike {\n constructor(\n private readonly zoneConditionFn: <T>(fn: (...args: unknown[]) => T) => T,\n private readonly scheduler: SchedulerLike = asyncScheduler,\n ) {}\n\n public now(): number {\n return this.scheduler.now();\n }\n\n public schedule(...args: Parameters<SchedulerLike['schedule']>): Subscription {\n return this.zoneConditionFn(() => this.scheduler.schedule(...args));\n }\n}\n\nexport function tuiZonefreeScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.runOutsideAngular.bind(zone), scheduler);\n}\n\nexport function tuiZonefullScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.run.bind(zone), scheduler);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;SAQgB,eAAe,GAAA;AAC3B,IAAA,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,KAAI;AACjC,QAAA,IAAI,OAAO,GAAG,UAAU,EAAE,CAAC;QAE3B,MAAM,KAAK,GAAG,MAAW;YACrB,OAAO,GAAG,UAAU,EAAE,CAAC;YACvB,OAAO,CAAC,OAAO,GAAG,MAAM,KAAK,EAAE,CAAC;AAEhC,YAAA,OAAO,CAAC,QAAQ,GAAG,CAAC,KAAK,KAAI;gBACzB,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,UAAU,CAAC,IAAI,EAAE,CAAC;AACtB,aAAC,CAAC;AACN,SAAC,CAAC;AAEF,QAAA,KAAK,EAAE,CAAC;AAER,QAAA,OAAO,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;AACnC,KAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,UAAU,GAAA;;;IAGf,O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AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;AAC9E,CAAC;AAEK,SAAU,oBAAoB,CAChC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EACrB,SAAA,GAA2B,cAAc,EAAA;AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;AAChE;;AC3DA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-observables.mjs","sources":["../../../projects/cdk/observables/close-watcher.ts","../../../projects/cdk/observables/control-value.ts","../../../projects/cdk/observables/typed-from-event.ts","../../../projects/cdk/observables/drag-and-drop-from.ts","../../../projects/cdk/observables/events.ts","../../../projects/cdk/observables/if-map.ts","../../../projects/cdk/observables/must-be-present.ts","../../../projects/cdk/observables/query-list-observable.ts","../../../projects/cdk/observables/scroll-from.ts","../../../projects/cdk/observables/take-until-destroyed.ts","../../../projects/cdk/observables/untracked-scheduler.ts","../../../projects/cdk/observables/watch.ts","../../../projects/cdk/observables/zone.ts","../../../projects/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {Observable} from 'rxjs';\n\ninterface CloseWatcher {\n destroy: () => void;\n onclose?: (event: Event) => void;\n oncancel?: (event: Event) => void;\n}\n\nexport function tuiCloseWatcher(): Observable<void> {\n return new Observable((subscriber) => {\n let watcher!: CloseWatcher;\n\n const setup = (): void => {\n watcher = getWatcher();\n watcher.onclose = () => setup();\n\n watcher.oncancel = (event) => {\n event.preventDefault();\n subscriber.next();\n };\n };\n\n setup();\n\n return () => watcher.destroy();\n });\n}\n\nfunction getWatcher(): CloseWatcher {\n try {\n // @ts-ignore\n return new CloseWatcher();\n } catch {\n return {destroy: () => {}};\n }\n}\n","import {type AbstractControl, type AbstractControlDirective} from '@angular/forms';\nimport {Observable, startWith} from 'rxjs';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n */\nexport function tuiControlValue<T>(\n control?: AbstractControl | AbstractControlDirective | null,\n): Observable<T> {\n return new Observable((subscriber) =>\n control?.valueChanges?.pipe(startWith(control.value)).subscribe(subscriber),\n );\n}\n","import {fromEvent, type Observable} from 'rxjs';\n\nexport interface TuiTypedEventTarget<E> {\n addEventListener(\n type: string,\n listener: ((evt: E) => void) | null,\n options?: AddEventListenerOptions | boolean,\n ): void;\n removeEventListener(\n type: string,\n listener?: ((evt: E) => void) | null,\n options?: EventListenerOptions | boolean,\n ): void;\n}\n\n/**\n * Wrapper around {@link Event} to add typings to target and currentTarget.\n */\nexport type TuiEventWith<G extends Event, T extends TuiTypedEventTarget<G>> = G & {\n readonly currentTarget: T;\n};\n\nexport function tuiTypedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\n\nexport function tuiTypedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\n\nexport function tuiTypedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n /**\n * @note:\n * in RxJS 7 type signature `TuiTypedEventTarget<E>` !== `HasEventTargetAddRemove<E>`\n */\n return fromEvent<E>(target as any, event, options) as unknown as Observable<E>;\n}\n","import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n concat,\n endWith,\n map,\n merge,\n type Observable,\n repeat,\n take,\n takeWhile,\n} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\nexport type TuiDragStage = 'continues' | 'end' | 'start';\n\nexport class TuiDragState {\n constructor(\n public readonly stage: TuiDragStage,\n public readonly event: MouseEvent,\n ) {}\n}\n\nexport function tuiDragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n return concat(\n tuiTypedFromEvent(element, 'mousedown').pipe(\n take(1),\n map((event) => new TuiDragState('start', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mousemove').pipe(\n map((event) => new TuiDragState('continues', event)),\n ),\n merge(\n tuiTypedFromEvent(ownerDocument, 'mouseup'),\n tuiTypedFromEvent(ownerDocument, 'dragend'),\n ).pipe(\n take(1),\n map((event) => new TuiDragState('end', event)),\n endWith(null),\n ),\n ).pipe(takeWhile(tuiIsPresent)),\n ).pipe(repeat());\n}\n","import {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiPreventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.preventDefault());\n}\n\nexport function tuiStopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap((event) => event.stopPropagation());\n}\n","import {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {EMPTY, type Observable, type OperatorFunction, pipe, switchMap} from 'rxjs';\n\nexport function tuiIfMap<T, G>(\n project: (value: T) => Observable<G>,\n predicate: TuiBooleanHandler<T> = Boolean,\n): OperatorFunction<T, G> {\n return pipe(switchMap((value) => (predicate(value) ? project(value) : EMPTY)));\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type OperatorFunction} from 'rxjs';\n\nexport function tuiMustBePresent<T>(): OperatorFunction<T | null | undefined, T> {\n return map((value) => {\n if (!tuiIsPresent(value)) {\n throw new TuiValuePresentException();\n }\n\n return value;\n });\n}\n\nexport class TuiValuePresentException extends Error {\n constructor() {\n super(ngDevMode ? 'Value must present' : '');\n }\n}\n","import {type QueryList} from '@angular/core';\nimport {tuiGetOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map, type Observable, startWith} from 'rxjs';\n\n/**\n * Converts changes observable of a QueryList to an Observable of arrays\n */\nexport function tuiQueryListChanges<T>(\n queryList: QueryList<T>,\n): Observable<readonly T[]> {\n return queryList.changes.pipe(\n startWith(null),\n map(() => tuiGetOriginalArrayFromQueryList(queryList)),\n );\n}\n","import {type Observable} from 'rxjs';\n\nimport {tuiTypedFromEvent} from './typed-from-event';\n\n/**\n * Normalizes scroll event in case element is `html` (document.documentElement)\n */\nexport function tuiScrollFrom(element: Element): Observable<Event> {\n return tuiTypedFromEvent(\n element === element.ownerDocument.documentElement\n ? element.ownerDocument\n : element,\n 'scroll',\n );\n}\n","import {type DestroyRef} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n catchError,\n defaultIfEmpty,\n EMPTY,\n type MonoTypeOperatorFunction,\n NEVER,\n pipe,\n takeUntil,\n} from 'rxjs';\n\n// NOTE: takeUntilDestroyed and DestroyRef can cause error:\n// NG0911: View has already been destroyed\n// https://github.com/angular/angular/issues/54527\nexport function tuiTakeUntilDestroyed<T>(\n destroyRef?: DestroyRef,\n): MonoTypeOperatorFunction<T> {\n return pipe(\n takeUntil(\n NEVER.pipe(\n takeUntilDestroyed(destroyRef),\n catchError(() => EMPTY),\n defaultIfEmpty(null),\n ),\n ),\n );\n}\n","import {untracked} from '@angular/core';\nimport {\n queueScheduler,\n type SchedulerAction,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport const tuiUntrackedScheduler: SchedulerLike = {\n now: queueScheduler.now.bind(queueScheduler),\n\n schedule<T>(\n work: (this: SchedulerAction<T>, state?: T) => void,\n delay?: number,\n state?: T,\n ): Subscription {\n return queueScheduler.schedule(\n function (this: SchedulerAction<T>, s?: T) {\n return untracked(() => work.call(this, s));\n },\n delay,\n state,\n );\n },\n};\n","import {ChangeDetectorRef, inject} from '@angular/core';\nimport {type MonoTypeOperatorFunction, tap} from 'rxjs';\n\nexport function tuiWatch<T>(\n cdr = inject(ChangeDetectorRef),\n): MonoTypeOperatorFunction<T> {\n return tap(() => cdr.markForCheck());\n}\n","import {inject, NgZone} from '@angular/core';\nimport {\n asyncScheduler,\n type MonoTypeOperatorFunction,\n Observable,\n pipe,\n type SchedulerLike,\n type Subscription,\n} from 'rxjs';\n\nexport function tuiZonefull<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n source.subscribe({\n next: (value) => zone.run(() => subscriber.next(value)),\n error: (error: unknown) => zone.run(() => subscriber.error(error)),\n complete: () => zone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return (source) =>\n new Observable((subscriber) =>\n zone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(zone = inject(NgZone)): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(zone), tuiZonefull(zone));\n}\n\nclass TuiZoneScheduler implements SchedulerLike {\n constructor(\n private readonly zoneConditionFn: <T>(fn: (...args: unknown[]) => T) => T,\n private readonly scheduler: SchedulerLike = asyncScheduler,\n ) {}\n\n public now(): number {\n return this.scheduler.now();\n }\n\n public schedule(...args: Parameters<SchedulerLike['schedule']>): Subscription {\n return this.zoneConditionFn(() => this.scheduler.schedule(...args));\n }\n}\n\nexport function tuiZonefreeScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.runOutsideAngular.bind(zone), scheduler);\n}\n\nexport function tuiZonefullScheduler(\n zone = inject(NgZone),\n scheduler: SchedulerLike = asyncScheduler,\n): SchedulerLike {\n return new TuiZoneScheduler(zone.run.bind(zone), scheduler);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;SAQgB,eAAe,GAAA;AAC3B,IAAA,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,KAAI;AACjC,QAAA,IAAI,OAAsB;QAE1B,MAAM,KAAK,GAAG,MAAW;YACrB,OAAO,GAAG,UAAU,EAAE;YACtB,OAAO,CAAC,OAAO,GAAG,MAAM,KAAK,EAAE;AAE/B,YAAA,OAAO,CAAC,QAAQ,GAAG,CAAC,KAAK,KAAI;gBACzB,KAAK,CAAC,cAAc,EAAE;gBACtB,UAAU,CAAC,IAAI,EAAE;AACrB,aAAC;AACL,SAAC;AAED,QAAA,KAAK,EAAE;AAEP,QAAA,OAAO,MAAM,OAAO,CAAC,OAAO,EAAE;AAClC,KAAC,CAAC;AACN;AAEA,SAAS,UAAU,GAAA;AACf,IAAA,IAAI;;QAEA,OAAO,IAAI,YAAY,EAAE;;AAC3B,IAAA,MAAM;QACJ,OAAO,EAAC,OAAO,EAAE,MAAO,GAAC,EAAC;;AAElC;;AChCA;;AAEG;AACG,SAAU,eAAe,CAC3B,OAA2D,EAAA;IAE3D,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,KAC7B,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAC9E;AACL;;AC2CM,SAAU,iBAAiB,CAC7B,MAA8B,EAC9B,KAAa,EACb,UAAmC,EAAE,EAAA;AAErC;;;AAGG;IACH,OAAO,SAAS,CAAI,MAAa,EAAE,KAAK,EAAE,OAAO,CAA6B;AAClF;;MCjDa,YAAY,CAAA;IACrB,WACoB,CAA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BAAgB,CAAA;IAClB,WACqB,CAAA,eAAwD,EACxD,SAAA,GAA2B,cAAc,EAAA;QADzC,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IAAS,CAAA,SAAA,GAAT,SAAS;;IAGvB,GAAG,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;;IAGxB,QAAQ,CAAC,GAAG,IAA2C,EAAA;AAC1D,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;;AAE1E;AAEK,SAAU,oBAAoB,CAChC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EACrB,SAAA,GAA2B,cAAc,EAAA;AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;AAC7E;AAEM,SAAU,oBAAoB,CAChC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EACrB,SAAA,GAA2B,cAAc,EAAA;AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;AAC/D;;AC3DA;;AAEG;;;;"}
@@ -14,10 +14,10 @@ class TuiAnimationPipe {
14
14
  },
15
15
  });
16
16
  }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAnimationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
18
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiAnimationPipe, isStandalone: true, name: "tuiAnimation" }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
18
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, isStandalone: true, name: "tuiAnimation" }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiAnimationPipe, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, decorators: [{
21
21
  type: Pipe,
22
22
  args: [{
23
23
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-animation.mjs","sources":["../../../projects/cdk/pipes/animation/animation.pipe.ts","../../../projects/cdk/pipes/animation/taiga-ui-cdk-pipes-animation.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiDurationOptions} from '@taiga-ui/core/animations';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\n@Pipe({\n standalone: true,\n name: 'tuiAnimation',\n})\nexport class TuiAnimationPipe implements PipeTransform {\n private readonly speed = inject(TUI_ANIMATIONS_SPEED);\n public readonly transform = ({\n duration,\n speed,\n value,\n ...params\n }: Partial<{duration: number; speed: number; value: string}> &\n Record<string, any> = {}): TuiDurationOptions => ({\n value: value ?? '',\n params: {\n ...params,\n duration: (duration ?? 1) * tuiGetDuration(speed ?? this.speed),\n },\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAIa,gBAAgB,CAAA;AAJ7B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,SAAS,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,GAAG,MAAM,EAEa,GAAA,EAAE,MAA0B;YAClD,KAAK,EAAE,KAAK,IAAI,EAAE;AAClB,YAAA,MAAM,EAAE;AACJ,gBAAA,GAAG,MAAM;AACT,gBAAA,QAAQ,EAAE,CAAC,QAAQ,IAAI,CAAC,IAAI,cAAc,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC;AAClE,aAAA;AACJ,SAAA,CAAC,CAAC;AACN,KAAA;+GAfY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA,EAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-pipes-animation.mjs","sources":["../../../projects/cdk/pipes/animation/animation.pipe.ts","../../../projects/cdk/pipes/animation/taiga-ui-cdk-pipes-animation.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiDurationOptions} from '@taiga-ui/core/animations';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\n@Pipe({\n standalone: true,\n name: 'tuiAnimation',\n})\nexport class TuiAnimationPipe implements PipeTransform {\n private readonly speed = inject(TUI_ANIMATIONS_SPEED);\n public readonly transform = ({\n duration,\n speed,\n value,\n ...params\n }: Partial<{duration: number; speed: number; value: string}> &\n Record<string, any> = {}): TuiDurationOptions => ({\n value: value ?? '',\n params: {\n ...params,\n duration: (duration ?? 1) * tuiGetDuration(speed ?? this.speed),\n },\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,gBAAgB,CAAA;AAJ7B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACrC,QAAA,IAAA,CAAA,SAAS,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,GAAG,MAAM,EAEa,GAAA,EAAE,MAA0B;YAClD,KAAK,EAAE,KAAK,IAAI,EAAE;AAClB,YAAA,MAAM,EAAE;AACJ,gBAAA,GAAG,MAAM;AACT,gBAAA,QAAQ,EAAE,CAAC,QAAQ,IAAI,CAAC,IAAI,cAAc,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC;AAClE,aAAA;AACJ,SAAA,CAAC;AACL;+GAfY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -12,10 +12,10 @@ class TuiFilterPipe {
12
12
  transform(items, matcher, ...args) {
13
13
  return items.filter((item) => matcher(item, ...args));
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
16
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiFilterPipe, isStandalone: true, name: "tuiFilter" }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
16
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiFilterPipe, isStandalone: true, name: "tuiFilter" }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFilterPipe, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFilterPipe, decorators: [{
19
19
  type: Pipe,
20
20
  args: [{
21
21
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-filter.mjs","sources":["../../../projects/cdk/pipes/filter/filter.pipe.ts","../../../projects/cdk/pipes/filter/taiga-ui-cdk-pipes-filter.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMatcher} from '@taiga-ui/cdk/types';\n\n@Pipe({\n standalone: true,\n name: 'tuiFilter',\n})\nexport class TuiFilterPipe implements PipeTransform {\n /**\n * Filters an array through a matcher function using additional arguments\n *\n * @param items array\n * @param matcher method for filtering\n * @param args arbitrary number of additional arguments\n */\n public transform<T, U extends unknown[]>(\n items: readonly T[],\n matcher: TuiMatcher<[T, ...U]>,\n ...args: U\n ): T[] {\n return items.filter((item) => matcher(item, ...args));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAGA,MAIa,aAAa,CAAA;AACtB;;;;;;AAMG;AACI,IAAA,SAAS,CACZ,KAAmB,EACnB,OAA8B,EAC9B,GAAG,IAAO,EAAA;AAEV,QAAA,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;KACzD;+GAdQ,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA,EAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,WAAW;AACpB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-pipes-filter.mjs","sources":["../../../projects/cdk/pipes/filter/filter.pipe.ts","../../../projects/cdk/pipes/filter/taiga-ui-cdk-pipes-filter.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMatcher} from '@taiga-ui/cdk/types';\n\n@Pipe({\n standalone: true,\n name: 'tuiFilter',\n})\nexport class TuiFilterPipe implements PipeTransform {\n /**\n * Filters an array through a matcher function using additional arguments\n *\n * @param items array\n * @param matcher method for filtering\n * @param args arbitrary number of additional arguments\n */\n public transform<T, U extends unknown[]>(\n items: readonly T[],\n matcher: TuiMatcher<[T, ...U]>,\n ...args: U\n ): T[] {\n return items.filter((item) => matcher(item, ...args));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,aAAa,CAAA;AACtB;;;;;;AAMG;AACI,IAAA,SAAS,CACZ,KAAmB,EACnB,OAA8B,EAC9B,GAAG,IAAO,EAAA;AAEV,QAAA,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;;+GAbhD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,WAAW;AACpB,iBAAA;;;ACND;;AAEG;;;;"}
@@ -6,10 +6,10 @@ class TuiIsPresentPipe {
6
6
  transform(value) {
7
7
  return tuiIsPresent(value);
8
8
  }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiIsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiIsPresentPipe, isStandalone: true, name: "tuiIsPresent" }); }
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, isStandalone: true, name: "tuiIsPresent" }); }
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiIsPresentPipe, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, decorators: [{
13
13
  type: Pipe,
14
14
  args: [{
15
15
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-is-present.mjs","sources":["../../../projects/cdk/pipes/is-present/is-present.pipe.ts","../../../projects/cdk/pipes/is-present/taiga-ui-cdk-pipes-is-present.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n standalone: true,\n name: 'tuiIsPresent',\n})\nexport class TuiIsPresentPipe implements PipeTransform {\n public transform<T>(value?: T | null): value is T {\n return tuiIsPresent(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAIa,gBAAgB,CAAA;AAClB,IAAA,SAAS,CAAI,KAAgB,EAAA;AAChC,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;KAC9B;+GAHQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA,EAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-pipes-is-present.mjs","sources":["../../../projects/cdk/pipes/is-present/is-present.pipe.ts","../../../projects/cdk/pipes/is-present/taiga-ui-cdk-pipes-is-present.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n standalone: true,\n name: 'tuiIsPresent',\n})\nexport class TuiIsPresentPipe implements PipeTransform {\n public transform<T>(value?: T | null): value is T {\n return tuiIsPresent(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,gBAAgB,CAAA;AAClB,IAAA,SAAS,CAAI,KAAgB,EAAA;AAChC,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC;;+GAFrB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACND;;AAEG;;;;"}
@@ -5,10 +5,10 @@ class TuiKeysPipe {
5
5
  transform(object) {
6
6
  return Object.keys(object);
7
7
  }
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiKeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiKeysPipe, isStandalone: true, name: "tuiKeys" }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, isStandalone: true, name: "tuiKeys" }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiKeysPipe, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, decorators: [{
12
12
  type: Pipe,
13
13
  args: [{
14
14
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-keys.mjs","sources":["../../../projects/cdk/pipes/keys/keys.pipe.ts","../../../projects/cdk/pipes/keys/taiga-ui-cdk-pipes-keys.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n standalone: true,\n name: 'tuiKeys',\n})\nexport class TuiKeysPipe implements PipeTransform {\n public transform(object: Record<any, any>): string[] {\n return Object.keys(object);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,MAIa,WAAW,CAAA;AACb,IAAA,SAAS,CAAC,MAAwB,EAAA;AACrC,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC9B;+GAHQ,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,CAAA,EAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,SAAS;AAClB,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-pipes-keys.mjs","sources":["../../../projects/cdk/pipes/keys/keys.pipe.ts","../../../projects/cdk/pipes/keys/taiga-ui-cdk-pipes-keys.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n standalone: true,\n name: 'tuiKeys',\n})\nexport class TuiKeysPipe implements PipeTransform {\n public transform(object: Record<any, any>): string[] {\n return Object.keys(object);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,WAAW,CAAA;AACb,IAAA,SAAS,CAAC,MAAwB,EAAA;AACrC,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;;+GAFrB,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,SAAS;AAClB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -12,10 +12,10 @@ class TuiMapperPipe {
12
12
  transform(value, mapper, ...args) {
13
13
  return mapper(value, ...args);
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMapperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
16
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiMapperPipe, isStandalone: true, name: "tuiMapper" }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMapperPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
16
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiMapperPipe, isStandalone: true, name: "tuiMapper" }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMapperPipe, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMapperPipe, decorators: [{
19
19
  type: Pipe,
20
20
  args: [{
21
21
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-mapper.mjs","sources":["../../../projects/cdk/pipes/mapper/mapper.pipe.ts","../../../projects/cdk/pipes/mapper/taiga-ui-cdk-pipes-mapper.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n\n@Pipe({\n standalone: true,\n name: 'tuiMapper',\n})\nexport class TuiMapperPipe implements PipeTransform {\n /**\n * Maps object to an arbitrary result through a mapper function\n *\n * @param value an item to transform\n * @param mapper a mapping function\n * @param args arbitrary number of additional arguments\n */\n public transform<T extends unknown[], U, G>(\n value: U,\n mapper: TuiMapper<[U, ...T], G>,\n ...args: T\n ): G {\n return mapper(value, ...args);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAGA,MAIa,aAAa,CAAA;AACtB;;;;;;AAMG;AACI,IAAA,SAAS,CACZ,KAAQ,EACR,MAA+B,EAC/B,GAAG,IAAO,EAAA;AAEV,QAAA,OAAO,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;KACjC;+GAdQ,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA,EAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,WAAW;AACpB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-pipes-mapper.mjs","sources":["../../../projects/cdk/pipes/mapper/mapper.pipe.ts","../../../projects/cdk/pipes/mapper/taiga-ui-cdk-pipes-mapper.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n\n@Pipe({\n standalone: true,\n name: 'tuiMapper',\n})\nexport class TuiMapperPipe implements PipeTransform {\n /**\n * Maps object to an arbitrary result through a mapper function\n *\n * @param value an item to transform\n * @param mapper a mapping function\n * @param args arbitrary number of additional arguments\n */\n public transform<T extends unknown[], U, G>(\n value: U,\n mapper: TuiMapper<[U, ...T], G>,\n ...args: T\n ): G {\n return mapper(value, ...args);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,aAAa,CAAA;AACtB;;;;;;AAMG;AACI,IAAA,SAAS,CACZ,KAAQ,EACR,MAA+B,EAC/B,GAAG,IAAO,EAAA;AAEV,QAAA,OAAO,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC;;+GAbxB,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,WAAW;AACpB,iBAAA;;;ACND;;AAEG;;;;"}
@@ -40,10 +40,10 @@ class TuiObfuscatePipe {
40
40
  const availableRecipes = Object.keys(this.option.recipes).sort();
41
41
  throw new Error(`Obfuscate recipe "${recipe}" not found. Available recipes: [${availableRecipes}]`);
42
42
  }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObfuscatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
44
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiObfuscatePipe, isStandalone: true, name: "tuiObfuscate" }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObfuscatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
44
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiObfuscatePipe, isStandalone: true, name: "tuiObfuscate" }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObfuscatePipe, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObfuscatePipe, decorators: [{
47
47
  type: Pipe,
48
48
  args: [{
49
49
  standalone: true,